jufubao-base 1.0.159-beta16 → 1.0.159-beta18

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 (38) 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/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +3 -3
  13. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +2 -2
  14. package/src/components/JfbBaseCardEntry/Attr.js +12 -0
  15. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +35 -2
  16. package/src/components/JfbBaseCardEntry/Mock.js +1 -0
  17. package/src/components/JfbBaseCardV2/Attr.js +39 -2
  18. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +46 -24
  19. package/src/components/JfbBaseCardV2/Mock.js +12 -11
  20. package/src/components/JfbBaseCardV3/Attr.js +13 -1
  21. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +5 -1
  22. package/src/components/JfbBaseCardV3/Mock.js +1 -1
  23. package/src/components/JfbBaseMultipleExpress/Attr.js +9 -0
  24. package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpress.vue +20 -28
  25. package/src/components/JfbBaseMultipleExpress/Mock.js +10 -0
  26. package/src/components/JfbBaseOrderDetail/Attr.js +23 -0
  27. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +55 -135
  28. package/src/components/JfbBaseOrderDetail/bizMock.js +4 -2
  29. package/src/components/JfbBaseOrderList/Attr.js +9 -0
  30. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +33 -90
  31. package/src/components/JfbBaseOrderList/Mock.js +27 -5
  32. package/src/components/JfbBasePhoneCollect/Attr.js +11 -0
  33. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +3 -0
  34. package/src/components/JfbBasePoster/Attr.js +1 -0
  35. package/src/components/JfbBasePosterBigSmall/Attr.js +3 -0
  36. package/src/components/JfbBasePosterType/Attr.js +35 -25
  37. package/src/components/JfbBasePosterType/FourScreen.vue +18 -19
  38. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +12 -0
@@ -81,7 +81,7 @@
81
81
  @click.stop="handleUnBindCard(item)"
82
82
  v-if="isShowUnbind"
83
83
  :style="{ background: '#fff',color:'#999',border: '1px solid #999' }"
84
- >解绑</view>
84
+ >解绑</view>
85
85
  </view>
86
86
  </view>
87
87
  </view>
@@ -110,7 +110,7 @@ export default {
110
110
  data() {
111
111
  return {
112
112
  disableList: [],
113
- isShowUnbind: false,
113
+ isShowUnbind: true,
114
114
  loadingList: true,
115
115
  };
116
116
  },
@@ -138,7 +138,7 @@ export default {
138
138
  })
139
139
  .then((res) => {
140
140
  this.loadingList = false;
141
- this.isShowUnbind = (res["is_can_unbind"] === 'Y' || res["is_can_unbind"] === undefined);
141
+ //this.isShowUnbind = (res["is_can_unbind"] === 'Y' || res["is_can_unbind"] === undefined);
142
142
  res.list = res.list.map((item) => {
143
143
  return {
144
144
  ...item,
@@ -169,7 +169,7 @@ export default {
169
169
  mixins: [componentsMixins, extsMixins, JfbBaseCardDisabledEntryMixin, colorCardMixins, cardListMixins],
170
170
  data() {
171
171
  return {
172
- isShowUnbind: false,
172
+ isShowUnbind: true,
173
173
  isShowIndex:false,
174
174
  };
175
175
  },
@@ -200,7 +200,7 @@ export default {
200
200
  this.$xdShowLoading({});
201
201
  jfbRootExec("getDisableCardListEntry", {vm: this, data: {is_all: "Y", is_show_entry_settings: 'Y'},})
202
202
  .then((res) => {
203
- this.isShowUnbind = (res["is_can_unbind"] === 'Y' || res["is_can_unbind"] === undefined);
203
+ //this.isShowUnbind = (res["is_can_unbind"] === 'Y' || res["is_can_unbind"] === undefined);
204
204
  res.list = res.list.map((item) => {
205
205
  return {
206
206
  ...item,
@@ -252,6 +252,18 @@ export default {
252
252
  inline: false,
253
253
  notice: '请配置温馨提示内容,未配置的情况将不显示此模块',
254
254
  },
255
+ {
256
+ label: '票券已登录文案:',
257
+ ele: 'el-input',
258
+ type: 'text',
259
+ valueKey: 'logged_name',
260
+ groupKey:'content',
261
+ value: '',
262
+ placeholder: '请输入票券已登录文案',
263
+ className: 'input80',
264
+ inline: false,
265
+ notice: '当未设置文案时候,前台页面显示为"<span style="color:red">已登录</span>",建议不超过<span style="color:red">4</span>个汉字'
266
+ },
255
267
  {
256
268
  label: "是否展示核销二维码",
257
269
  ele: "xd-radio",
@@ -173,7 +173,12 @@
173
173
  }"
174
174
  >
175
175
  <view class="card-list-warp" :style="{backgroundImage: 'url('+ item['theme']['image'] +')'}">
176
- <view class="card-list__title"><view>{{item['card_type_name']}}</view></view>
176
+ <view class="card-list__title">
177
+ <view>
178
+ <view>{{item['card_type_name']}}</view>
179
+ <view v-if="item['is_login'] === 'Y'"><text></text><text>已登录</text></view>
180
+ </view>
181
+ </view>
177
182
  <view class="card-list__content">
178
183
  <view>
179
184
  <text>券号:</text>
@@ -957,16 +962,44 @@ export default {
957
962
  align-items: center;
958
963
 
959
964
  & > view {
960
- padding: 0 unit(80, rpx);
965
+ padding: 0 unit(40, rpx);
961
966
  font-size: unit(24, rpx);
962
967
  line-height: unit(56, rpx);
963
968
  background: rgba(102, 102, 102, 0.4);
964
969
  color: #fff;
965
970
  border-radius: 0 0 unit(16, rpx) 0;
971
+ display: flex;
972
+ justify-content: center;
973
+ align-items: center;
966
974
 
967
975
  .skeleton-card &{
968
976
  .skeleton-item(120rpx, 50rpx, 0 0 16rpx 0, #EEEEEE);
969
977
  }
978
+
979
+ & > view:nth-child(2) {
980
+ height: 36rpx;
981
+ line-height: 36rpx;
982
+ background-color: rgb(41, 203, 151);
983
+ display: flex;
984
+ justify-content: center;
985
+ align-items: center;
986
+ margin-left: 30rpx;
987
+ padding: 0 20rpx;
988
+ border-radius: 8rpx;
989
+
990
+ & > text:nth-child(1) {
991
+ width: 10rpx;
992
+ height: 10rpx;
993
+ border-radius: 50%;
994
+ background-color: #fff;
995
+ margin-right: 10rpx;
996
+ }
997
+
998
+ & > text:nth-child(2) {
999
+ font-size: 24rpx;
1000
+ }
1001
+ }
1002
+
970
1003
  }
971
1004
 
972
1005
  }
@@ -14,6 +14,7 @@ module.exports = {
14
14
  "other_card_point": 0,
15
15
  "is_exchange": "N",
16
16
  "card_point_type": 1,
17
+ "is_login":'Y',
17
18
  "business_codes": ["health"]
18
19
  }, {
19
20
  "card_number": "121000100000028",
@@ -17,7 +17,32 @@ export default {
17
17
  placeholder: '请输入票券登录文案',
18
18
  className: 'input80',
19
19
  inline: false,
20
- notice: '当未设置文案时候,前台页面显示未"登录"'
20
+ notice: '当未设置文案时候,前台页面显示为"<span style="color:red">登录</span>",建议不超过<span style="color:red">4</span>个汉字'
21
+ },
22
+ {
23
+ label: '票券已登录文案:',
24
+ ele: 'el-input',
25
+ type: 'text',
26
+ valueKey: 'logged_name',
27
+ groupKey:'content',
28
+ value: data.logged_name || '',
29
+ placeholder: '请输入票券已登录文案',
30
+ className: 'input80',
31
+ inline: false,
32
+ notice: '当未设置文案时候,前台页面显示为"<span style="color:red">已登录</span>",建议不超过<span style="color:red">4</span>个汉字'
33
+ },
34
+
35
+ {
36
+ label: '票券查看文案:',
37
+ ele: 'el-input',
38
+ type: 'text',
39
+ valueKey: 'look_name',
40
+ groupKey:'content',
41
+ value: data.look_name || '',
42
+ placeholder: '请输入票券查看文案',
43
+ className: 'input80',
44
+ inline: false,
45
+ notice: '当未设置文案时候,前台页面显示为"<span style="color:red">查看</span>",建议不超过<span style="color:red">4</span>个汉字'
21
46
  },
22
47
  {
23
48
  label: '填充设置:',
@@ -30,7 +55,19 @@ export default {
30
55
  },
31
56
  placeholder: '请设填充距设置',
32
57
  inline: false,
33
- notice: '填充设置,<span style="color: red">单位:像素</span>。默认值:20像素',
58
+ notice: '填充设置,<span style="color: red">单位:像素</span>。默认值:<span style="color:red">20</span>像素',
59
+ },
60
+ {
61
+ label: '列表间距:',
62
+ ele: 'el-input',
63
+ type: 'text',
64
+ valueKey: 'list_sp',
65
+ value: data['list_sp'] || '',
66
+ placeholder: '请输入列表间距',
67
+ className: 'input80',
68
+ groupKey: 'style',
69
+ inline: false,
70
+ notice: '列表间距,单位:像素,默认值:<span style="color:red">20</span>像素'
34
71
  },
35
72
  {
36
73
  label: '卡券详情地址:',
@@ -38,7 +38,7 @@
38
38
  <view class="jfb-base-card__body-card-item-right-bottom-info-residue"></view>
39
39
  <view class="jfb-base-card__body-card-item-right-bottom-info-deduction"></view>
40
40
  </view>
41
- <view :style="{ background: mainColor }"></view>
41
+ <view :style="{ background: '#F2F2F2' }"></view>
42
42
  </view>
43
43
  </view>
44
44
  </view>
@@ -47,26 +47,35 @@
47
47
  <template v-else>
48
48
  <view
49
49
  class="jfb-base-card__body-card"
50
- :style="{
51
- margin: marginUi,
52
- }"
50
+ :style="{padding: marginUi}"
53
51
  >
54
52
  <view
55
53
  v-for="(item, index) in cardList"
56
54
  :key="index"
57
55
  @click="handleBindLogin(item)"
58
56
  class="jfb-base-card__body-card-item"
57
+ :style="{
58
+ marginBottom: list_sp + 'rpx',
59
+ backgroundColor:(item['is_login'] === 'Y'? mainBorderColor : '#fff'),
60
+ borderColor:`${item['is_login'] === 'Y'? mainSubBorderColor:'#eeeeee'}`
61
+ }"
59
62
  >
60
63
  <view class="jfb-base-card__body-card-item-left">
61
64
  <xd-font-icon
62
65
  size="100"
63
- color="#8D5F18"
64
- icon="iconyouhuiquan1-011"
66
+ :color="mainColor"
67
+ :icon="item['is_login'] === 'Y'?'iconkaquandengluchenggong':'iconyouhuiquan1-011'"
65
68
  ></xd-font-icon>
66
- <view>{{login_name}}</view>
69
+ <view :style="{color: item['is_login'] === 'Y'?mainColor :''}">{{ item['is_login'] === 'Y'? logged_name : login_name}}</view>
67
70
  </view>
68
- <view class="jfb-base-card__body-card-item-right">
69
- <view class="jfb-base-card__body-card-item-right-top">
71
+ <view
72
+ class="jfb-base-card__body-card-item-right"
73
+ :style="{borderColor: item['is_login'] === 'Y'? mainSubBorderColor:'#eeeeee'}"
74
+ >
75
+ <view
76
+ class="jfb-base-card__body-card-item-right-top"
77
+ :style="{borderColor: item['is_login'] === 'Y'? mainSubBorderColor:'#eeeeee'}"
78
+ >
70
79
  <view>
71
80
  <xd-font-icon
72
81
  icon="iconkaquan"
@@ -85,10 +94,7 @@
85
94
  <view class="jfb-base-card__body-card-item-right-bottom-info-residue">剩余{{ item.unit }}数:{{ item.card_point }}{{ item.unit }}</view>
86
95
  <view class="jfb-base-card__body-card-item-right-bottom-info-deduction">购买其他物品可抵:{{ item.other_card_point }}</view>
87
96
  </view>
88
- <view
89
- @click.stop="toDetail(item)"
90
- :style="{ background: mainColor }"
91
- >查看</view>
97
+ <view @click.stop="toDetail(item)" :style="{ background: mainColor }">{{look_name}}</view>
92
98
  </view>
93
99
  </view>
94
100
  </view>
@@ -121,6 +127,7 @@
121
127
  import extsMixins from "@/mixins/extsMixins";
122
128
  import {Base64} from "js-base64";
123
129
  import {mapState} from "vuex";
130
+ import Color from "color";
124
131
 
125
132
  export default {
126
133
  name: "JfbBaseCardV2",
@@ -135,19 +142,19 @@
135
142
  return {
136
143
  cardList: [],
137
144
  inCallback: "",
145
+ mainBorderColor:'',
146
+ mainSubBorderColor:'',
138
147
 
139
148
  //面板
140
149
  cardInfoPath: "", //卡券详情
141
150
  cardBindPath: "",
142
151
  orderListPath: "",
143
152
  login_name:'',
144
- margin: {
145
- top: 0,
146
- left: 0,
147
- bottom: 0,
148
- right: 0
149
- },
153
+ look_name:'',
154
+ logged_name:'',
155
+ margin: {},
150
156
  loadingCardList: true,
157
+ list_sp:20,
151
158
 
152
159
  inCallbackUrlOrg:'',//是否带有回调地址
153
160
  }
@@ -165,11 +172,17 @@
165
172
  return this.fixedStyle({paddingBottom: 0, zIndex: 111})
166
173
  },
167
174
  marginUi() {
168
- return `${this.margin.top || 0}rpx ${this.margin.right || 0}rpx ${this.margin.bottom || 0}rpx ${this.margin.left || 0}rpx`
175
+ let str = `${this.checkValue(this.margin.top, 20)}rpx`;
176
+ str = `${str} ${this.checkValue(this.margin.right, 20)}rpx`;
177
+ str = `${str} ${this.checkValue(this.margin.bottom, 20)}rpx`;
178
+ str = `${str} ${this.checkValue(this.margin.left, 20)}rpx`;
179
+ return str
169
180
  },
170
181
  },
171
182
  created() {
172
183
  this.init(this.container);
184
+ this.mainBorderColor = Color(this.mainColor).alpha(0.05).toString();
185
+ this.mainSubBorderColor = Color(this.mainColor).alpha(0.1).toString();
173
186
  },
174
187
  methods: {
175
188
  onJfbLoad(options) {
@@ -216,7 +229,11 @@
216
229
  this.cardBindPath = getContainerPropsValue(container, "content.cardBindPath", {value: ""}).value;
217
230
  this.orderListPath = getContainerPropsValue(container, "content.orderListPath", {value: ""}).value;
218
231
  this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
219
- this.margin = getContainerPropsValue(container, 'content.margin', {top: 0, left: 0, bottom: 0, right: 0});
232
+ this.margin = getContainerPropsValue(container, 'content.margin', {});
233
+ this.look_name = getContainerPropsValue(container, 'content.look_name', '查看');
234
+ this.logged_name = getContainerPropsValue(container, 'content.logged_name', '已登录');
235
+ this.list_sp = getContainerPropsValue(container, 'content.list_sp', 20);
236
+
220
237
  },
221
238
 
222
239
  handleBindLogin(item){
@@ -317,9 +334,13 @@
317
334
  display: flex;
318
335
  align-items: center;
319
336
  justify-content: flex-start;
320
- border: unit(2, rpx) solid #eeeeeeff;
337
+ border: unit(2, rpx) solid #eee;
321
338
  border-radius: unit(20, rpx);
322
- margin-bottom: unit(30, rpx);
339
+
340
+ &:last-child {
341
+ margin-bottom: 0;
342
+ }
343
+
323
344
 
324
345
  &-left {
325
346
  width: unit(200, rpx);
@@ -394,13 +415,14 @@
394
415
  }
395
416
 
396
417
  & > view:nth-child(2) {
397
- width: unit(80, rpx);
418
+ min-width: unit(80, rpx);
398
419
  height: unit(40, rpx);
399
420
  border-radius: unit(20, rpx);
400
421
  font-size: unit(22, rpx);
401
422
  color: #fff;
402
423
  text-align: center;
403
424
  line-height: unit(40, rpx);
425
+ padding: 2rpx 10rpx;
404
426
  }
405
427
  }
406
428
  }
@@ -8,17 +8,18 @@ module.exports = {
8
8
  "card_point": 100000000,
9
9
  "card_type_name": "聚福宝福卡测试蛋糕",
10
10
  "unit": "",
11
- "end_time": "2024-10-31 23:59:59",
11
+ "end_time": "2024-10-31",
12
12
  "is_valid": "Y",
13
13
  "main_product_name": "",
14
14
  "other_card_point": 0,
15
- "is_exchange": "N"
15
+ "is_exchange": "N",
16
+ "is_login":"Y"
16
17
  }, {
17
18
  "card_number": "101001000005193",
18
19
  "card_point": 99963600,
19
20
  "card_type_name": "聚福宝福卡测试蛋糕",
20
21
  "unit": "次",
21
- "end_time": "2024-10-31 23:59:59",
22
+ "end_time": "2024-10-31",
22
23
  "is_valid": "Y",
23
24
  "main_product_name": "",
24
25
  "other_card_point": 0,
@@ -28,7 +29,7 @@ module.exports = {
28
29
  "card_point": 100000000,
29
30
  "card_type_name": "聚福宝福卡测试蛋糕",
30
31
  "unit": "",
31
- "end_time": "2024-10-31 23:59:59",
32
+ "end_time": "2024-10-31",
32
33
  "is_valid": "Y",
33
34
  "main_product_name": "",
34
35
  "other_card_point": 0,
@@ -38,7 +39,7 @@ module.exports = {
38
39
  "card_point": 99631000,
39
40
  "card_type_name": "聚福宝福卡测试蛋糕",
40
41
  "unit": "点",
41
- "end_time": "2024-10-31 23:59:59",
42
+ "end_time": "2024-10-31",
42
43
  "is_valid": "Y",
43
44
  "main_product_name": "",
44
45
  "other_card_point": 0,
@@ -48,7 +49,7 @@ module.exports = {
48
49
  "card_point": 1400,
49
50
  "card_type_name": "聚福宝福卡测试蛋糕",
50
51
  "unit": "",
51
- "end_time": "2025-05-03 23:59:59",
52
+ "end_time": "2025-05-03",
52
53
  "is_valid": "Y",
53
54
  "main_product_name": "",
54
55
  "other_card_point": 0,
@@ -58,7 +59,7 @@ module.exports = {
58
59
  "card_point": 0,
59
60
  "card_type_name": "聚福宝测试C40",
60
61
  "unit": "次",
61
- "end_time": "2025-05-03 23:59:59",
62
+ "end_time": "2025-05-03",
62
63
  "is_valid": "Y",
63
64
  "main_product_name": "",
64
65
  "other_card_point": 0,
@@ -68,7 +69,7 @@ module.exports = {
68
69
  "card_point": 3600,
69
70
  "card_type_name": "聚福宝福卡测试蛋糕",
70
71
  "unit": "",
71
- "end_time": "2025-05-03 23:59:59",
72
+ "end_time": "2025-05-03",
72
73
  "is_valid": "Y",
73
74
  "main_product_name": "",
74
75
  "other_card_point": 0,
@@ -78,7 +79,7 @@ module.exports = {
78
79
  "card_point": 0,
79
80
  "card_type_name": "聚福宝测试C40",
80
81
  "unit": "次",
81
- "end_time": "2025-05-03 23:59:59",
82
+ "end_time": "2025-05-03",
82
83
  "is_valid": "Y",
83
84
  "main_product_name": "",
84
85
  "other_card_point": 0,
@@ -88,7 +89,7 @@ module.exports = {
88
89
  "card_point": 10000000,
89
90
  "card_type_name": "聚福宝福卡测试蛋糕",
90
91
  "unit": "点",
91
- "end_time": "2024-02-03 23:59:59",
92
+ "end_time": "2024-02-03",
92
93
  "is_valid": "Y",
93
94
  "main_product_name": "",
94
95
  "other_card_point": 0,
@@ -98,7 +99,7 @@ module.exports = {
98
99
  "card_point": 1000000,
99
100
  "card_type_name": "聚福宝福卡测试蛋糕",
100
101
  "unit": "点",
101
- "end_time": "2024-02-23 23:59:59",
102
+ "end_time": "2024-02-23",
102
103
  "is_valid": "Y",
103
104
  "main_product_name": "",
104
105
  "other_card_point": 0,
@@ -17,7 +17,19 @@ export default {
17
17
  placeholder: '请输入票券登录文案',
18
18
  className: 'input80',
19
19
  inline: false,
20
- notice: '当未设置文案时候,前台页面显示为"<span style="color:red">登录</span>"'
20
+ notice: '当未设置文案时候,前台页面显示为"<span style="color:red">登录</span>",建议不超过<span style="color:red">4</span>个汉字'
21
+ },
22
+ {
23
+ label: '票券已登录文案:',
24
+ ele: 'el-input',
25
+ type: 'text',
26
+ valueKey: 'logged_name',
27
+ groupKey:'content',
28
+ value: data.logged_name || '',
29
+ placeholder: '请输入票券已登录文案',
30
+ className: 'input80',
31
+ inline: false,
32
+ notice: '当未设置文案时候,前台页面显示为"<span style="color:red">已登录</span>",建议不超过<span style="color:red">4</span>个汉字'
21
33
  },
22
34
  {
23
35
  label: '绑定新票券地址:',
@@ -20,9 +20,11 @@
20
20
  </view>
21
21
  <template v-else>
22
22
  <view class="card_list" v-if="cardList.length">
23
- <xd-card-v2 v-for="(item, index) in cardList"
23
+ <xd-card-v2
24
+ v-for="(item, index) in cardList"
24
25
  :mainColor="mainColor"
25
26
  :login-name="login_name"
27
+ :logged-name="logged_name"
26
28
  :key="index"
27
29
  :cardInfo="item"
28
30
  :tabIndex="1"
@@ -73,6 +75,7 @@
73
75
  changeUrl: "",
74
76
  detailUrl: "",
75
77
  login_name:'',
78
+ logged_name:'',
76
79
  loadingCardList: true,
77
80
 
78
81
  inCallbackUrlOrg:'',//是否带有回调地址
@@ -136,6 +139,7 @@
136
139
  this.changeUrl = getContainerPropsValue(container, "content.changeUrl", {value: ""}).value;
137
140
  this.detailUrl = getContainerPropsValue(container, "content.detailUrl", {value: ""}).value;
138
141
  this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
142
+ this.logged_name = getContainerPropsValue(container, "content.logged_name", "已登录");
139
143
  },
140
144
  toBindCard(){
141
145
  let path = this.getUrlCallback(this.cardBindPath)
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
- aaaa: {}
4
+ getListCardBindV3: {}
5
5
  }
@@ -7,6 +7,15 @@ export default {
7
7
  style: [],
8
8
  content: (data) => {
9
9
  return [
10
+ {
11
+ label: '品牌文字颜色:',
12
+ ele: 'xd-color',
13
+ valueKey: 'brandTextColor',
14
+ groupKey:'style',
15
+ value: data['brandTextColor'] || null,
16
+ placeholder: '请选择品牌文字颜色',
17
+ classNmae: 'input80',
18
+ },
10
19
  {
11
20
  label: '物流详情路径:',
12
21
  ele: 'xd-select-pages-path',
@@ -10,9 +10,7 @@
10
10
  :class="{ editx: isEditx && active }"
11
11
  v-if="isEditx && active"
12
12
  >
13
- <view class="jfb-base-multiple-express__edit-icon" @click="delEdit"
14
- >删除</view
15
- >
13
+ <view class="jfb-base-multiple-express__edit-icon" @click="delEdit">删除</view>
16
14
  </view>
17
15
  <!-- #endif -->
18
16
  <view class="jfb-base-multiple-express__body" v-if="express.length > 0">
@@ -36,8 +34,7 @@
36
34
  <view
37
35
  class="jfb-base-multiple-express__body-express-number-copy"
38
36
  @click="copy(item.logistics_number)"
39
- >复制单号</view
40
- >
37
+ >复制单号</view>
41
38
  </view>
42
39
  <view
43
40
  class="jfb-base-multiple-express__body-express-product"
@@ -46,30 +43,22 @@
46
43
  <view
47
44
  :style="{ color: mainColor }"
48
45
  class="jfb-base-multiple-express__body-express-product-status"
49
- >{{ item.sub_order_status_text }}</view
50
- >
46
+ >{{ item.sub_order_status_text }}</view>
51
47
  <view
52
48
  class="jfb-base-multiple-express__body-express-product-content"
53
49
  v-for="(Sitem, Sindex) in item.showList"
54
50
  :key="Sindex"
55
51
  >
56
- <image
57
- :src="Sitem.thumb"
58
- style="background: #ffffff"
59
- mode="aspectFit"
60
- ></image>
52
+ <image :src="Sitem.thumb" style="background: #ffffff" mode="aspectFit"></image>
61
53
  <view
62
54
  class="jfb-base-multiple-express__body-express-product-content-info"
63
55
  >
64
- <view
65
- class="jfb-base-multiple-express__body-express-product-content-info-name"
66
- >{{ Sitem.product_name }}</view
67
- >
56
+ <view class="jfb-base-multiple-express__body-express-product-content-info-name">{{ Sitem.product_name }}</view>
57
+ <view class="brand-name" v-if="Sitem.brand_name" :style="{color:brandTextColor}">{{ Sitem.brand_name }}</view>
68
58
  <view
69
59
  v-if="Sitem.sku_name"
70
60
  class="jfb-base-multiple-express__body-express-product-content-info-skuname"
71
- >规格:{{ Sitem.sku_name }}</view
72
- >
61
+ >规格:{{ Sitem.sku_name }}</view>
73
62
  <view
74
63
  class="jfb-base-multiple-express__body-express-product-content-info-price"
75
64
  >
@@ -83,7 +72,7 @@
83
72
  </view>
84
73
  <view v-else></view>
85
74
  <view class="info-price">
86
- x
75
+ <text>x</text>
87
76
  <text style="margin-left: 8rpx;">{{ Sitem.num }}</text>
88
77
  </view>
89
78
  </view>
@@ -127,6 +116,7 @@ export default {
127
116
  return {
128
117
  express: [],
129
118
  main_order_id: "",
119
+ brandTextColor:'',
130
120
  };
131
121
  },
132
122
  watch: {
@@ -180,13 +170,8 @@ export default {
180
170
  * @param container {object} 业务组件对象自己
181
171
  */
182
172
  init(container) {
183
- this.expressPath = getContainerPropsValue(
184
- container,
185
- "content.expressPath",
186
- {
187
- value: "",
188
- }
189
- ).value;
173
+ this.expressPath = getContainerPropsValue(container, "content.expressPath", {value: "",}).value;
174
+ this.brandTextColor = getContainerPropsValue(container, "content.brandTextColor", this.mainColor);
190
175
  },
191
176
  handleToDetail(item) {
192
177
  this.$xdUniHelper.navigateTo({
@@ -289,7 +274,7 @@ export default {
289
274
  &-status {
290
275
  font-size: unit(24, rpx);
291
276
  text-align: right;
292
- margin: unit(36, rpx) 0;
277
+ margin: unit(20, rpx) 0;
293
278
  }
294
279
 
295
280
  &-content {
@@ -310,7 +295,14 @@ export default {
310
295
  flex-direction: column;
311
296
  justify-content: space-between;
312
297
  margin-left: unit(24, rpx);
313
- height: unit(160, rpx);
298
+ min-height: unit(160, rpx);
299
+
300
+ .brand-name {
301
+ font-size: 24rpx;
302
+ margin-bottom: 6rpx;
303
+ .uni-max-cut(2, 64);
304
+ line-height: 32rpx;
305
+ }
314
306
 
315
307
  &-name {
316
308
  font-size: unit(32, rpx);