jufubao-mall 2.0.35-beta9 → 2.0.35-beta91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,6 +43,8 @@ export default function (data, gValue, gColor, oldData){
43
43
  placeholder: '请选择服务类型',
44
44
  className: 'input100',
45
45
  groupKey:'content',
46
+ notice:' 更换服务类型时,请注意修改高级配置中对应的跳转地址',
47
+ inline: false,
46
48
  rules: [
47
49
  {required: true, message: '请选择服务类型', trigger: ['blur', 'change']}
48
50
  ],
@@ -54,7 +56,7 @@ export default function (data, gValue, gColor, oldData){
54
56
  server:'supplier-partner',
55
57
  fn:'shop',
56
58
  path:'p1',
57
- }, {consume_mode: 2})
59
+ }, {cusume_mode: 1})
58
60
  .then(res => {
59
61
  data.cb(res['consume_mode'])
60
62
  })
@@ -63,6 +65,8 @@ export default function (data, gValue, gColor, oldData){
63
65
  });
64
66
  },
65
67
  },
68
+
69
+
66
70
  0&&{
67
71
  label: '标签切换下划线样式:',
68
72
  ele: 'xd-radio',
@@ -79,7 +83,7 @@ export default function (data, gValue, gColor, oldData){
79
83
  {"label": "细线(短)", "value": "smallLineShort"},
80
84
  ]
81
85
  },
82
- 0&&{
86
+ {
83
87
  ele: 'title',
84
88
  label: '组件样式',
85
89
  size: 'small',
@@ -106,7 +110,7 @@ export default function (data, gValue, gColor, oldData){
106
110
  });
107
111
  },
108
112
  },
109
- 0&&{
113
+ {
110
114
  label: "门店样式",
111
115
  ele: "xd-style-image",
112
116
  groupKey: 'content',
@@ -134,7 +138,7 @@ export default function (data, gValue, gColor, oldData){
134
138
  });
135
139
  },
136
140
  },
137
- 0&&{
141
+ {
138
142
  label: "选项样式",
139
143
  ele: "xd-style-image",
140
144
  groupKey: 'content',
@@ -162,17 +166,18 @@ export default function (data, gValue, gColor, oldData){
162
166
  });
163
167
  },
164
168
  },
165
- 0&&{
169
+ {
166
170
  label: "展示内容",
167
171
  ele: "title",
168
172
  groupKey: "content",
169
173
  size: "small",
170
174
  },
171
- 0&&{
175
+
176
+ {
172
177
  label: '常用门店',
173
178
  ele: 'xd-cus-switch',
174
179
  valueKey: 'showOftenTab',
175
- value: 'N',//dataVal({data, key:'showOftenTab', dValue:'N', gValue}),
180
+ value: dataVal({data, key:'showOftenTab', dValue:'N', gValue}),
176
181
  isRefresh: true,
177
182
  className: 'input100',
178
183
  groupKey:'content',
@@ -182,11 +187,11 @@ export default function (data, gValue, gColor, oldData){
182
187
  isBackType: 'string'
183
188
  },
184
189
  },
185
- 0&&{
190
+ {
186
191
  ele:'xd-line',
187
192
  groupKey:'content'
188
193
  },
189
- 0&&{
194
+ {
190
195
  label: '门店图片',
191
196
  ele: 'xd-cus-switch',
192
197
  valueKey: 'showStoreImg',
@@ -200,11 +205,11 @@ export default function (data, gValue, gColor, oldData){
200
205
  isBackType: 'string'
201
206
  },
202
207
  },
203
- 0&&{
208
+ {
204
209
  ele:'xd-line',
205
210
  groupKey:'content'
206
211
  },
207
- 0&&{
212
+ {
208
213
  label: '门店地址',
209
214
  ele: 'xd-cus-switch',
210
215
  valueKey: 'showStoreAddress',
@@ -218,11 +223,11 @@ export default function (data, gValue, gColor, oldData){
218
223
  isBackType: 'string'
219
224
  },
220
225
  },
221
- 0&&{
226
+ {
222
227
  ele:'xd-line',
223
228
  groupKey:'content'
224
229
  },
225
- 0&&{
230
+ {
226
231
  label: '距离',
227
232
  ele: 'xd-cus-switch',
228
233
  valueKey: 'showStoreDistance',
@@ -235,11 +240,11 @@ export default function (data, gValue, gColor, oldData){
235
240
  isBackType: 'string'
236
241
  },
237
242
  },
238
- 0&&{
243
+ {
239
244
  ele:'xd-line',
240
245
  groupKey:'content'
241
246
  },
242
- 0&&{
247
+ {
243
248
  label: '折扣/价格',
244
249
  ele: 'xd-cus-switch',
245
250
  valueKey: 'showStorePrice',
@@ -254,8 +259,8 @@ export default function (data, gValue, gColor, oldData){
254
259
  isBackType: 'string'
255
260
  },
256
261
  },
257
- 0&&{ele: 'group_start'},
258
- 0&&{
262
+ {ele: 'group_start'},
263
+ {
259
264
  label: "全部选项",
260
265
  ele: "xd-radio",
261
266
  groupKey: "content",
@@ -269,12 +274,12 @@ export default function (data, gValue, gColor, oldData){
269
274
  labelInline: true,
270
275
  indent: true
271
276
  },
272
- 0&&{ele: 'group_end'},
273
- 0&&{
277
+ {ele: 'group_end'},
278
+ {
274
279
  ele:'xd-line',
275
280
  groupKey:'content'
276
281
  },
277
- 0&&{
282
+ {
278
283
  label: '快捷入口',
279
284
  ele: 'xd-cus-switch',
280
285
  valueKey: 'fastEntryStatus',
@@ -287,8 +292,8 @@ export default function (data, gValue, gColor, oldData){
287
292
  isBackType: 'string'
288
293
  },
289
294
  },
290
- 0&&{ele: 'group_start'},
291
- 0&&{
295
+ {ele: 'group_start'},
296
+ {
292
297
  label: '',
293
298
  ele: 'xd-name-check',
294
299
  valueKey: 'fastEntry',
@@ -296,23 +301,21 @@ export default function (data, gValue, gColor, oldData){
296
301
  value: dataVal({data, key:'fastEntry', dValue:[], gValue}),
297
302
  className: 'input100',
298
303
  setting: {
299
- isSort:true,
300
- width: 90,
304
+ isSort:false,
305
+ width: 100,
301
306
  },
302
307
  labelInline:true,
303
308
  hidden: data['fastEntryStatus'] !== 'Y',
304
309
  handleCustom({action, data}) {
305
310
  data.cb([
306
- {value:'jhd', label: '聚好兑', input:'',def:'聚好兑', check: false,placeholder:'服务类型为支持核销时使用'},
307
- {value:'wb', label: '扫一扫',input:'',def:'扫一扫',check: false,placeholder:'服务类型为支持核销时使用'},
308
- {value:'qp', label: '快捷码',input:'',def:'去提货',check: false,placeholder:'服务类型为支持核销时使用'},
309
- {value:'seat', label: '在线选座',input:'',def:'去购票',check: false,placeholder:''},
310
- {value:'code', label: '电子码',input:'',def:'电子码',check: false,placeholder:''},
311
- {value:'hdSelf', label: '到店自取',input:'',def:'去下单',check: false,placeholder:'服务类型为小时达到店时使用'},
312
- {value:'travel', label: '旅游门票',input:'',def:'去购票',check: false,placeholder:''}
311
+ {value:'cashier', label: '支持核销',input:'',check: false,placeholder:'支持核销名称,默认“去买单”'},
312
+ {value:'buyTicket', label: '在线选座',input:'',check: false,placeholder:'在线选座名称,默认“去购票”'},
313
+ {value:'code', label: '电子码门店',input:'',check: false,placeholder:'电子码门店称,默认“电子码”'},
314
+ {value:'hdSelf', label: '小时达到店',input:'',check: false,placeholder:'小时达到店名称,默认“到店自取”'},
315
+ {value:'travel', label: '旅游门票',input:'',check: false,placeholder:'旅游门票名称,默认“去购票”'}
313
316
  ])
314
317
  },
315
318
  },
316
- 0&&{ele: 'group_end'},
319
+ {ele: 'group_end'},
317
320
  ].filter(i=>i)
318
321
  }
@@ -40,7 +40,7 @@ export default function (data, gValue, gColor, oldData) {
40
40
  value: dataVal({
41
41
  data,
42
42
  key:'itemPadding',
43
- dValue:[gValue.isAdd && gValue.isFirst ?{top:32,left:32, right:32, bottom:32}:20],
43
+ dValue:[gValue.isAdd && gValue.isFirst ?{top:16,left:16, right:16, bottom:16}:20],
44
44
  gValue,
45
45
  isPM: true,
46
46
  }),
@@ -63,7 +63,7 @@ export default function (data, gValue, gColor, oldData) {
63
63
  },
64
64
  {ele: 'group_start'},
65
65
  {
66
- label: '',
66
+ label: '颜色',
67
67
  ele: 'xd-color',
68
68
  groupKey:'style',
69
69
  valueKey: 'cardItemBgColor',
@@ -79,7 +79,7 @@ export default function (data, gValue, gColor, oldData) {
79
79
  },
80
80
  {ele: 'group_end'},
81
81
  {
82
- label: '行间距',
82
+ label: '间距设置',
83
83
  ele: 'xd-radio',
84
84
  groupKey: 'style',
85
85
  valueKey: 'cardItemSpaceStatus',
@@ -124,7 +124,7 @@ export default function (data, gValue, gColor, oldData) {
124
124
  },
125
125
  {ele: 'group_start'},
126
126
  {
127
- label: '',
127
+ label: '大小',
128
128
  ele: 'xd-site-select-list',
129
129
  labelInline: true,
130
130
  valueKey: 'cardItemRadius',
@@ -201,6 +201,66 @@ export default function (data, gValue, gColor, oldData) {
201
201
  },
202
202
  },
203
203
 
204
+ {
205
+ label: '图片圆角',
206
+ ele: 'xd-radio',
207
+ groupKey: 'style',
208
+ valueKey: 'itemImageRadiusStatus',
209
+ value: statusDataVal({data, key:'itemImageRadiusStatus', cValue:'N', fields:['itemImageRadius'],gValue}),
210
+ labelInline:true,
211
+ list: [
212
+ {label: '默认', value: 'D'},
213
+ {label: '无圆角', value: 'N'},
214
+ {label: '自定义', value: 'C'},
215
+ ]
216
+ },
217
+ {ele: 'group_start'},
218
+ {
219
+ label: '大小',
220
+ ele: 'xd-site-select-list',
221
+ labelInline: true,
222
+ valueKey: 'itemImageRadius',
223
+ value: dataVal({data, key:'itemImageRadius', dValue:['10'], gValue}),
224
+ hidden: !statusShow({data, key: 'itemImageRadiusStatus', fields:['itemImageRadius'], gValue}),
225
+ placeholder: '请选择圆角',
226
+ multiple: false,
227
+ className: 'input40',
228
+ groupKey:'style',
229
+ handleCustom({action, data}) {
230
+ XdBus.getParentApi('getOptionsSettingList')({
231
+ setting_id: 'edtix_style_radius',
232
+ key: Date.now()
233
+ })
234
+ .then(res => {
235
+ res.list = res.list.filter(item=>{
236
+ return item.label !== '无';
237
+ });
238
+ data.cb(res.list)
239
+ })
240
+ .catch(error => {
241
+ console.error(error);
242
+ });
243
+ },
244
+ },
245
+ {ele: 'group_end'},
246
+ {
247
+ label: '图片描边',
248
+ ele: 'xd-border',
249
+ labelInline: true,
250
+ groupKey:'style',
251
+ valueKey: 'cardImageBorder',
252
+ value: defCardImageBorder,
253
+ setting: {
254
+ selected:defCardImageBorder.type,
255
+ isRadio: true,//启用editx默认
256
+ isDef: true, //启动默认选项
257
+ //==设置默认值==
258
+ color: '#f8f8f8',
259
+ width: '2',
260
+ style: 'solid'
261
+ //==设置默认值==
262
+ },
263
+ },
204
264
  {
205
265
  label: "背景颜色:",
206
266
  ele: "xd-color",
@@ -223,7 +283,7 @@ export default function (data, gValue, gColor, oldData) {
223
283
  },
224
284
  {ele: 'group_start'},
225
285
  {
226
- label: '',
286
+ label: '文字颜色',
227
287
  ele: 'xd-color',
228
288
  groupKey:'style',
229
289
  valueKey: 'distanceColor',
@@ -7,6 +7,7 @@ import {
7
7
  } from "@/utils/AttrTools";
8
8
 
9
9
  import shops from "./shops";
10
+ import tab from "./tab";
10
11
 
11
12
  export default function (data, gValue,gColor,oldData){
12
13
  return [
@@ -61,7 +62,7 @@ export default function (data, gValue,gColor,oldData){
61
62
  },
62
63
  {ele: 'group_start'},
63
64
  {
64
- label: '',
65
+ label: '颜色',
65
66
  ele: 'xd-color',
66
67
  groupKey:'style',
67
68
  valueKey: 'contentBgColor',
@@ -76,6 +77,7 @@ export default function (data, gValue,gColor,oldData){
76
77
  inline: false,
77
78
  },
78
79
  {ele: 'group_end'},
80
+ ...tab(data, gValue,gColor,oldData),
79
81
  ...shops(data, gValue,gColor,oldData),
80
82
 
81
83
  ].filter(i=>i)