jufubao-base 1.0.159-beta2 → 1.0.159-beta20

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.
Files changed (50) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseAfterOrderDetail/Attr.js +9 -0
  3. package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +40 -75
  4. package/src/components/JfbBaseAfterOrderDetail/Mock.js +3 -2
  5. package/src/components/JfbBaseAfterOrderList/Attr.js +9 -0
  6. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +63 -83
  7. package/src/components/JfbBaseAfterOrderList/Mock.js +8 -0
  8. package/src/components/JfbBaseCard/Attr.js +220 -194
  9. package/src/components/JfbBaseCard/JfbBaseCard.vue +47 -18
  10. package/src/components/JfbBaseCard/Mock.js +7 -6
  11. package/src/components/JfbBaseCardBind/JfbBaseCardBind.vue +2 -0
  12. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +39 -6
  13. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +3 -3
  14. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +2 -2
  15. package/src/components/JfbBaseCardEntry/Attr.js +12 -0
  16. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +50 -9
  17. package/src/components/JfbBaseCardEntry/Mock.js +1 -0
  18. package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +33 -29
  19. package/src/components/JfbBaseCardInfoEntry/Attr.js +22 -0
  20. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +291 -259
  21. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfo.vue +2 -3
  22. package/src/components/JfbBaseCardV2/Attr.js +39 -2
  23. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +46 -24
  24. package/src/components/JfbBaseCardV2/Mock.js +12 -11
  25. package/src/components/JfbBaseCardV3/Attr.js +13 -1
  26. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +5 -1
  27. package/src/components/JfbBaseCardV3/Mock.js +1 -1
  28. package/src/components/JfbBaseConList/JfbBaseConList.vue +1 -3
  29. package/src/components/JfbBaseEntry/JfbBaseEntry.vue +4 -4
  30. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +2 -2
  31. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +12 -5
  32. package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwd.vue +3 -0
  33. package/src/components/JfbBaseMultipleExpress/Attr.js +9 -0
  34. package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpress.vue +20 -28
  35. package/src/components/JfbBaseMultipleExpress/Mock.js +10 -0
  36. package/src/components/JfbBaseOrderDetail/Attr.js +23 -0
  37. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +72 -164
  38. package/src/components/JfbBaseOrderDetail/bizMock.js +4 -2
  39. package/src/components/JfbBaseOrderList/Attr.js +9 -0
  40. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +38 -91
  41. package/src/components/JfbBaseOrderList/Mock.js +27 -5
  42. package/src/components/JfbBasePhoneCollect/Attr.js +11 -0
  43. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +13 -0
  44. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +10 -0
  45. package/src/components/JfbBasePoster/Attr.js +1 -0
  46. package/src/components/JfbBasePosterBigSmall/Attr.js +4 -1
  47. package/src/components/JfbBasePosterType/Attr.js +35 -25
  48. package/src/components/JfbBasePosterType/FourScreen.vue +18 -19
  49. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +12 -0
  50. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +5 -5
@@ -44,6 +44,7 @@
44
44
  <image></image>
45
45
  <view class="jfb-base-order-list__body-order-item-content-info">
46
46
  <view class="jfb-base-order-list__body-order-item-content-info-name"></view>
47
+ <view class="brand_name"></view>
47
48
  <view class="jfb-base-order-list__body-order-item-content-info-price">
48
49
  <view></view>
49
50
  <view class="info-price"></view>
@@ -82,49 +83,26 @@
82
83
  :icon="item.biz_code_icon"
83
84
  :size="item['biz_code_icon_size']"
84
85
  ></xd-font-icon>
85
- <view :class="{ marginLeft: item.biz_code_icon }">{{
86
- item.biz_code_name
87
- }}</view>
86
+ <view :class="{ marginLeft: item.biz_code_icon }">{{item.biz_code_name }}</view>
88
87
  </view>
89
88
  <view class="jfb-base-order-list__body-order-item-title">
90
89
  <view>订单编号:{{ item.main_order_id }}</view>
91
- <view
92
- :style="{color:item.status.status_type !== 'error' ? mainColor : '#999999',}"
93
- >{{ item.status.status_name }}</view>
90
+ <view :style="{color:item.status.status_type !== 'error' ? mainColor : '#999999',}">{{ item.status.status_name }}</view>
94
91
  </view>
95
92
  <view class="order-list">
96
93
  <view
97
94
  class="jfb-base-order-list__body-order-item-content"
98
95
  v-for="(Sitem, Sindex) in item.products"
99
96
  :key="Sitem.key"
100
- v-if="(item['isOpen'] === false && Sindex < showLen) || item['isOpen']">
101
- <image
102
- :src="Sitem.product_thumb"
103
- style="background: #ffffff"
104
- mode="aspectFit"
105
- ></image>
97
+ v-if="(item['isOpen'] === false && Sindex < showLen) || item['isOpen']"
98
+ >
99
+ <image :src="Sitem.product_thumb" style="background: #ffffff" mode="aspectFit"></image>
106
100
  <view class="jfb-base-order-list__body-order-item-content-info">
107
- <view
108
- class="jfb-base-order-list__body-order-item-content-info-name"
109
- >{{ Sitem.product_name }}</view
110
- >
111
- <view
112
- v-if="Sitem.product_sku_name"
113
- class="jfb-base-order-list__body-order-item-content-info-skuname"
114
- >规格:{{ Sitem.product_sku_name }}</view
115
- >
116
- <view
117
- class="jfb-base-order-list__body-order-item-content-info-price"
118
- >
119
- <view :style="{ fontSize: '32rpx', color: mainColor }">
120
- <!-- <xd-unit
121
- :isOld="false"
122
- :price="Sitem.sale_price"
123
- :color="mainColor"
124
- :fontSize="32"
125
- v-if="item.biz_code !== 'gift'"
126
- ></xd-unit> -->
127
- </view>
101
+ <view class="jfb-base-order-list__body-order-item-content-info-name">{{ Sitem.product_name }}</view>
102
+ <view class="brand-name" v-if="Sitem.brand_name" :style="{color:brandTextColor}">{{ Sitem.brand_name }}</view>
103
+ <view v-if="Sitem.product_sku_name" class="jfb-base-order-list__body-order-item-content-info-skuname">规格:{{ Sitem.product_sku_name }}</view>
104
+ <view class="jfb-base-order-list__body-order-item-content-info-price">
105
+ <view></view>
128
106
  <view class="info-price">
129
107
  <text>X</text>
130
108
  <text>{{ Sitem.product_num }}</text>
@@ -136,7 +114,7 @@
136
114
  class="order-list-icon"
137
115
  :style="{ bottom: item['isOpen'] ? '-30rpx' : '-54rpx' }"
138
116
  v-if="item.products.length > showLen"
139
- @click.stop="item['isOpen'] = !item['isOpen']"
117
+ @click.stop="switchOpen(item)"
140
118
  >
141
119
  <view :style="{ background: backgroundColor }">
142
120
  <xd-font-icon
@@ -180,8 +158,7 @@
180
158
  :type="getBtnType(btn.action)"
181
159
  size="mini"
182
160
  @click="handleBtnEvent(btn.action, item)"
183
- >{{ btn.text }}
184
- </xd-button>
161
+ >{{ btn.text }}</xd-button>
185
162
  </view>
186
163
  </view>
187
164
  </view>
@@ -224,6 +201,7 @@ export default {
224
201
  mixins: [componentsMixins, extsMixins, JfbBaseOrderListMixin],
225
202
  data() {
226
203
  return {
204
+
227
205
  showLen: 3,
228
206
  tabList: [],
229
207
  tabIndex: 0,
@@ -241,6 +219,7 @@ export default {
241
219
  //基础
242
220
  radius: 0,
243
221
  backgroundColor: "",
222
+ brandTextColor:'',
244
223
  padding: 0,
245
224
 
246
225
  //投影
@@ -320,72 +299,34 @@ export default {
320
299
  * @param container {object} 业务组件对象自己
321
300
  */
322
301
  init(container) {
323
- this.margin = getContainerPropsValue(container, "content.margin", {
324
- top: 0,
325
- left: 0,
326
- right: 0,
327
- bottom: 0,
328
- });
302
+ this.margin = getContainerPropsValue(container, "content.margin", {top: 0, left: 0, right: 0, bottom: 0,});
329
303
  this.radius = getContainerPropsValue(container, "content.radius", 0);
330
- this.backgroundColor = getContainerPropsValue(
331
- container,
332
- "content.backgroundColor",
333
- "#f8f8f8"
334
- );
304
+ this.backgroundColor = getContainerPropsValue(container, "content.backgroundColor", "#f8f8f8");
305
+ this.brandTextColor = getContainerPropsValue(container, "content.brandTextColor", this.mainColor);
335
306
  this.padding = getContainerPropsValue(container, "content.padding", 20);
336
307
 
337
- this.is_shadow = getContainerPropsValue(
338
- container,
339
- "content.is_shadow",
340
- "N"
341
- );
342
- this.is_shadow_bg = getContainerPropsValue(
343
- container,
344
- "content.is_shadow_bg",
345
- "#fff"
346
- );
347
- this.is_shadow_w = getContainerPropsValue(
348
- container,
349
- "content.is_shadow_w",
350
- "10"
351
- );
308
+ this.is_shadow = getContainerPropsValue(container, "content.is_shadow", "N");
309
+ this.is_shadow_bg = getContainerPropsValue(container, "content.is_shadow_bg", "#fff");
310
+ this.is_shadow_w = getContainerPropsValue(container, "content.is_shadow_w", "10");
352
311
 
353
- this.is_border = getContainerPropsValue(
354
- container,
355
- "content.is_border",
356
- "N"
357
- );
358
- this.is_border_c = getContainerPropsValue(
359
- container,
360
- "content.is_border_c",
361
- "#fff"
362
- );
363
- this.is_border_w = getContainerPropsValue(
364
- container,
365
- "content.is_border_w",
366
- 2
367
- );
312
+ this.is_border = getContainerPropsValue(container, "content.is_border", "N");
313
+ this.is_border_c = getContainerPropsValue(container, "content.is_border_c", "#fff");
314
+ this.is_border_w = getContainerPropsValue(container, "content.is_border_w", 2);
368
315
 
369
- this.detailPath = getContainerPropsValue(
370
- container,
371
- "content.detailPath",
372
- { value: "" }
373
- ).value;
374
- this.payPath = getContainerPropsValue(container, "content.payPath", {
375
- value: "",
376
- }).value;
377
- this.tabList = getContainerPropsValue(
378
- container,
379
- "content.orderTypeList",
380
- []
381
- ).map((item) => {
316
+ this.detailPath = getContainerPropsValue(container, "content.detailPath", { value: "" }).value;
317
+ this.payPath = getContainerPropsValue(container, "content.payPath", {value: "",}).value;
318
+ this.tabList = getContainerPropsValue(container, "content.orderTypeList", []).map((item) => {
382
319
  return {
383
320
  name: item.customName || item.label,
384
321
  ...item,
385
322
  size: Number(item.size ? item.size : 18) * 2,
386
323
  };
387
324
  });
388
- console.log("this.tabList", this.tabList);
325
+
326
+ },
327
+
328
+ switchOpen(item){
329
+ item['isOpen'] = !item['isOpen']
389
330
  },
390
331
 
391
332
  cancelUnPayOrder(main_order_id) {
@@ -572,6 +513,12 @@ export default {
572
513
  }
573
514
  }
574
515
  &-order {
516
+ .brand-name {
517
+ font-size: 24rpx;
518
+ margin-bottom: 6rpx;
519
+ .uni-max-cut(2, 64);
520
+ line-height: 32rpx;
521
+ }
575
522
  &-item {
576
523
  .skeleton-wrap & {
577
524
  background-color: #FFFFFF;
@@ -13,6 +13,8 @@ module.exports = {
13
13
  "biz_code_name": "蛋糕(勿改)订单",
14
14
  "biz_code_icon": "icondangao-01",
15
15
  "products": [{
16
+ 'brand_id': 2,
17
+ 'brand_name': "味多美",
16
18
  "product_id": 60007286,
17
19
  "product_name": "多规格商品测试",
18
20
  "product_sku_id": "70015608",
@@ -34,6 +36,8 @@ module.exports = {
34
36
  "biz_code_name": "礼包(勿改)订单",
35
37
  "biz_code_icon": "icondalibao-01",
36
38
  "products": [{
39
+ 'brand_id': 2,
40
+ 'brand_name': "味多美",
37
41
  "product_id": 60006975,
38
42
  "product_name": "大碗茶001",
39
43
  "product_sku_id": "0",
@@ -43,6 +47,8 @@ module.exports = {
43
47
  "product_thumb": "\/\/sandbox-img.jufubao.cn\/uploads\/20230411\/c9376f60c446efe811edd5b8b874ceb3.png",
44
48
  "sale_price": 1950
45
49
  }, {
50
+ 'brand_id': 2,
51
+ 'brand_name': "味多美",
46
52
  "product_id": 60007126,
47
53
  "product_name": "牛肉干",
48
54
  "product_sku_id": "0",
@@ -52,6 +58,8 @@ module.exports = {
52
58
  "product_thumb": "\/\/sandbox-img.jufubao.cn\/uploads\/20230421\/0a2b0fd8c7b3395fd9f286d332ae4171.png",
53
59
  "sale_price": 3250
54
60
  }, {
61
+ 'brand_id': 2,
62
+ 'brand_name': "味多美",
55
63
  "product_id": 60007126,
56
64
  "product_name": "牛肉干",
57
65
  "product_sku_id": "0",
@@ -61,8 +69,10 @@ module.exports = {
61
69
  "product_thumb": "\/\/sandbox-img.jufubao.cn\/uploads\/20230421\/0a2b0fd8c7b3395fd9f286d332ae4171.png",
62
70
  "sale_price": 3250
63
71
  }, {
72
+ 'brand_id': 2,
73
+ 'brand_name': "味多美",
64
74
  "product_id": 60007091,
65
- "product_name": "选品规则指定商品001",
75
+ "product_name": "冷冻千丝万缕面线虾 250g*2件共20只",
66
76
  "product_sku_id": "0",
67
77
  "product_sku_name": "",
68
78
  "product_type": "good",
@@ -70,8 +80,10 @@ module.exports = {
70
80
  "product_thumb": "\/\/sandbox-img.jufubao.cn\/uploads\/20230418\/5a7a974454ea4258edd50e89960dacb5.png",
71
81
  "sale_price": 1300
72
82
  }, {
83
+ 'brand_id': 2,
84
+ 'brand_name': "味多美",
73
85
  "product_id": 60007091,
74
- "product_name": "选品规则指定商品001",
86
+ "product_name": "【动物奶油】你的眼里有星河冰淇淋",
75
87
  "product_sku_id": "0",
76
88
  "product_sku_name": "",
77
89
  "product_type": "good",
@@ -79,6 +91,8 @@ module.exports = {
79
91
  "product_thumb": "\/\/sandbox-img.jufubao.cn\/uploads\/20230418\/5a7a974454ea4258edd50e89960dacb5.png",
80
92
  "sale_price": 1300
81
93
  }, {
94
+ 'brand_id': 2,
95
+ 'brand_name': "味多美",
82
96
  "product_id": 60007097,
83
97
  "product_name": "小吊梨汤榴莲蛋糕",
84
98
  "product_sku_id": "70004316",
@@ -100,8 +114,10 @@ module.exports = {
100
114
  "biz_code_name": "礼包(勿改)订单",
101
115
  "biz_code_icon": "icondalibao-01",
102
116
  "products": [{
117
+ 'brand_id': 20167,
118
+ 'brand_name': "派悦坊",
103
119
  "product_id": 60007217,
104
- "product_name": "001号商品",
120
+ "product_name": "仙桃盛宴”祝寿定制蛋糕",
105
121
  "product_sku_id": "0",
106
122
  "product_sku_name": "",
107
123
  "product_type": "good",
@@ -121,8 +137,10 @@ module.exports = {
121
137
  "biz_code_name": "电影(勿改)订单",
122
138
  "biz_code_icon": "icondianying-01",
123
139
  "products": [{
140
+ 'brand_id': 20001,
141
+ 'brand_name': "维尔纳斯",
124
142
  "product_id": 581,
125
- "product_name": "聚福宝-万里归途",
143
+ "product_name": "动物奶油】ins小清新动物奶油生日蛋糕",
126
144
  "product_sku_id": "F7-9218531180-1306340102#02#09",
127
145
  "product_sku_name": "6厅(需自备3D眼镜)-2排9列",
128
146
  "product_type": "virtual",
@@ -142,6 +160,8 @@ module.exports = {
142
160
  "biz_code_name": "蛋糕(勿改)订单",
143
161
  "biz_code_icon": "icondangao-01",
144
162
  "products": [{
163
+ 'brand_id': 2,
164
+ 'brand_name': "北京味多美蛋糕叔叔/HEYTEA/喜茶/凯蒂猫/Quange/全格",
145
165
  "product_id": 60007126,
146
166
  "product_name": "牛肉干",
147
167
  "product_sku_id": "0",
@@ -151,8 +171,10 @@ module.exports = {
151
171
  "product_thumb": "\/\/sandbox-img.jufubao.cn\/uploads\/20230421\/0a2b0fd8c7b3395fd9f286d332ae4171.png",
152
172
  "sale_price": 3250
153
173
  }, {
174
+ 'brand_id': 2,
175
+ 'brand_name': "北京味多美蛋糕叔叔/HEYTEA/喜茶/凯蒂猫/Quange/全格",
154
176
  "product_id": 60006975,
155
- "product_name": "大碗茶001",
177
+ "product_name": "满庭芳”杨梅荔枝红丝绒蛋糕",
156
178
  "product_sku_id": "0",
157
179
  "product_sku_name": "",
158
180
  "product_type": "good",
@@ -456,5 +456,16 @@ export default {
456
456
  inline: false,
457
457
  notice: '',
458
458
  },
459
+ {
460
+ label: "是否展示[跳过]功能",
461
+ ele: "xd-radio",
462
+ valueKey: "is_show_skip",
463
+ value: "",
464
+ groupKey: "content",
465
+ list: [
466
+ { label: '展示', value: 'Y' },
467
+ { label: '隐藏', value: 'N' },
468
+ ]
469
+ }
459
470
  ]
460
471
  }
@@ -74,6 +74,7 @@
74
74
  >
75
75
  </view>
76
76
  <view
77
+ v-if="is_show_skip === 'Y'"
77
78
  class="jump_collect"
78
79
  @click="jumpCollect"
79
80
  >跳过</view>
@@ -102,6 +103,10 @@ import XdFormCheckbox from "@/components/XdFormCheckbox/XdFormCheckbox";
102
103
  import JfbBasePhoneCollectMixin from "./JfbBasePhoneCollectMixin";
103
104
 
104
105
  export default {
106
+ // #ifdef MP-WEIXIN
107
+ options: { styleIsolation: 'shared' },
108
+ // #endif
109
+
105
110
  name: "JfbBasePhoneCollect",
106
111
  components: {
107
112
  XdFontIcon,
@@ -123,6 +128,7 @@ export default {
123
128
  interval: null,
124
129
  provider_id: "",
125
130
  callback_url: "",
131
+ is_show_skip: "",
126
132
  };
127
133
  },
128
134
  computed: {
@@ -170,6 +176,7 @@ export default {
170
176
  init(container) {
171
177
  //this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
172
178
  //this.height = getContainerPropsValue(container, 'content.height', 10);
179
+ this.is_show_skip = getContainerPropsValue(container, 'content.is_show_skip', "Y");
173
180
  },
174
181
  reGetCode() {
175
182
  this.$xdLog.setProject('get.code.handle', {
@@ -329,7 +336,13 @@ export default {
329
336
  align-items: center;
330
337
  }
331
338
  /* #ifdef MP-WEIXIN */
339
+ /deep/ .xd-form-checkbox .checklist-group {
340
+ justify-content: center;
341
+ display: flex;
342
+ align-items: center;
343
+ }
332
344
  .text-content {
345
+ width: 100%;
333
346
  & > text {
334
347
  font-size: 26rpx;
335
348
  }
@@ -100,6 +100,10 @@
100
100
  import XdFormCheckbox from "@/components/XdFormCheckbox/XdFormCheckbox"
101
101
 
102
102
  export default {
103
+ // #ifdef MP-WEIXIN
104
+ options: { styleIsolation: 'shared' },
105
+ // #endif
106
+
103
107
  name: "JfbBasePhoneLogin",
104
108
  components: {
105
109
  XdFontIcon,
@@ -362,7 +366,13 @@
362
366
  align-items: center;
363
367
  }
364
368
  /* #ifdef MP-WEIXIN */
369
+ /deep/ .xd-form-checkbox .checklist-group {
370
+ justify-content: center;
371
+ display: flex;
372
+ align-items: center;
373
+ }
365
374
  .text-content {
375
+ width: 100%;
366
376
  & > text {
367
377
  font-size: 26rpx;
368
378
  }
@@ -338,6 +338,7 @@ export default {
338
338
  {label: '显示圆点+长条', value: 'round'},
339
339
  {label: '显示索引+标题', value: 'nav'},
340
340
  {label: '显示索引', value: 'indexes'},
341
+ {label: '不显示', value: 'normal'},
341
342
  ],
342
343
  notice: '在使用非通屏显示类型广告位之外的样式时,<span style="color: red">(显示索引+标题|显示索引)</span>使用"<span style="color: red">显示圆点</span>"',
343
344
  inline: false,
@@ -118,7 +118,7 @@ export default {
118
118
  //当一个插件中出现多个内容分类时候需要设置code值,在页面引用时候(容器id + code)进行拼接获取数据列表
119
119
  data.params = Object.assign({}, data.params, {code: 'big'});
120
120
  }
121
- console.log(data.params,'data.paramsdata.paramsdata.params');
121
+
122
122
  //设置场景参数
123
123
  if(data) {
124
124
  data.params = Object.assign({}, {scene: 'normal'}, data.params || {})
@@ -403,6 +403,7 @@ export default {
403
403
  {label: '显示圆点+长条', value: 'round'},
404
404
  {label: '显示索引+标题', value: 'nav'},
405
405
  {label: '显示索引', value: 'indexes'},
406
+ {label: '不显示', value: 'normal'},
406
407
  ],
407
408
  notice: '在使用非通屏显示类型广告位之外的样式时,<span style="color: red">(显示索引+标题|显示索引)</span>使用"<span style="color: red">显示圆点</span>"',
408
409
  inline: false,
@@ -718,6 +719,7 @@ export default {
718
719
  {label: '显示圆点+长条', value: 'round'},
719
720
  {label: '显示索引+标题', value: 'nav'},
720
721
  {label: '显示索引', value: 'indexes'},
722
+ {label: '不显示', value: 'normal'},
721
723
  ],
722
724
  notice: '在使用非通屏显示类型广告位之外的样式时,<span style="color: red">(显示索引+标题|显示索引)</span>使用"<span style="color: red">显示圆点</span>"',
723
725
  inline: false,
@@ -1033,6 +1035,7 @@ export default {
1033
1035
  {label: '显示圆点+长条', value: 'round'},
1034
1036
  {label: '显示索引+标题', value: 'nav'},
1035
1037
  {label: '显示索引', value: 'indexes'},
1038
+ {label: '不显示', value: 'normal'},
1036
1039
  ],
1037
1040
  notice: '在使用非通屏显示类型广告位之外的样式时,<span style="color: red">(显示索引+标题|显示索引)</span>使用"<span style="color: red">显示圆点</span>"',
1038
1041
  inline: false,
@@ -8,6 +8,7 @@ import console from "@dcloudio/uni-h5/src/core/helpers/console";
8
8
  export default {
9
9
  style:[],
10
10
  content:(params)=>{
11
+ let defaultPadding = 20;
11
12
  if (!params['isCarousel']) params['isCarousel'] = 1;
12
13
  if (!params['number']) params['number'] = 20;
13
14
  if (params['shadow'] === undefined) params['shadow'] = 2;
@@ -15,6 +16,7 @@ export default {
15
16
  if (!params['jdRows']) params['jdRows'] = 1;
16
17
  if (!params['radius']) params['radius'] = '20';
17
18
  if (!params['carouselTime']) params['carouselTime'] = 5;
19
+ if(params['cells'] === 4) defaultPadding = 30
18
20
  return [
19
21
  {
20
22
  label: '导航配置:',
@@ -263,7 +265,7 @@ export default {
263
265
  {"label": "轮播图显示", "value": 2},
264
266
  ]
265
267
  },
266
- params['isCarousel'] === 2 && {
268
+ {
267
269
  label: '导航轮播周期:',
268
270
  ele: 'el-input',
269
271
  type: 'number',
@@ -273,26 +275,8 @@ export default {
273
275
  value: params.carouselTime,
274
276
  placeholder: '请输入导航轮播周期,单位秒',
275
277
  className: 'input60',
276
- unit: '秒',
277
- rules: [
278
- {
279
- required: true,
280
- message: '请输入导航轮播周期',
281
- trigger: 'blur'
282
- },
283
- ]
284
- },
285
- {
286
- label: '导航内容显示列数:',
287
- ele: 'xd-select-list',
288
- valueKey: 'cells',
289
- groupKey:'content',
290
- value: params.cells,
291
- className: 'input60',
292
- list: [
293
- {"label": "四列", "value": 4},
294
- {"label": '五列', "value": 5},
295
- ]
278
+ inline: false,
279
+ notice: '轮播周期时间设置仅在“<span style="color:red">轮播图显示</span>”生效,单位:<span style="color:red">秒</span>',
296
280
  },
297
281
  {
298
282
  label: '导航内容显示行数:',
@@ -325,12 +309,37 @@ export default {
325
309
  },
326
310
  ]
327
311
  },
312
+ {
313
+ label: '导航内容显示列数:',
314
+ ele: 'xd-select-list',
315
+ valueKey: 'cells',
316
+ groupKey:'content',
317
+ value: params.cells,
318
+ className: 'input60',
319
+ list: [
320
+ {"label": "四列", "value": 4},
321
+ {"label": '五列', "value": 5},
322
+ ]
323
+ },
324
+ {
325
+ label: 'ICON图标填充设置:',
326
+ ele: 'xd-margin-padding',
327
+ valueKey: 'iconPadding',
328
+ groupKey:'content',
329
+ value: params.iconPadding || null,
330
+ setting: {
331
+ type: 'margin',
332
+ },
333
+ placeholder: '请设置外边距',
334
+ inline: false,
335
+ notice: `ICON图标填充设置,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">${defaultPadding}</span> 像素,<br/><span style="color: red">注意</span>:上下填充数值相加=左右填充数值相加时,ICON才会时正方形。`,
336
+ },
328
337
  {
329
338
  label: '导航ICON圆角设置:',
330
339
  ele: 'xd-site-select-list',
331
340
  valueKey: 'radius',
332
341
  value: params['radius'],
333
- groupKey:'style',
342
+ groupKey:'content',
334
343
  placeholder: '请选择导航ICON圆角设置',
335
344
  multiple: false,
336
345
  className: 'input60',
@@ -348,7 +357,7 @@ export default {
348
357
  label: '导航ICON是否阴影设置:',
349
358
  ele: 'xd-radio',
350
359
  valueKey: 'shadow',
351
- groupKey:'style',
360
+ groupKey:'content',
352
361
  value: params['shadow'],
353
362
  placeholder: '请选择导航ICON阴影设置',
354
363
  className: 'input60',
@@ -357,15 +366,16 @@ export default {
357
366
  {"label": "否", "value": 2},
358
367
  ]
359
368
  },
360
- params['shadow'] === 1&& {
369
+ params['shadow'] === 1 && {
361
370
  label: '导航ICON阴影颜色配置:',
362
371
  ele: 'xd-color',
363
372
  valueKey: 'shadowColor',
364
- groupKey:'style',
373
+ groupKey:'content',
365
374
  value: params['shadowColor'] || '',
366
375
  placeholder: '导航ICON阴影颜色配置',
367
376
  classNmae: 'input60',
368
377
  },
378
+
369
379
  {
370
380
  ele: 'title',
371
381
  label: '样式设置',