jufubao-base 1.0.191 → 1.0.192-beta1

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 (27) hide show
  1. package/commands.js +1 -1
  2. package/package.json +1 -1
  3. package/src/ICONS.js +1128 -0
  4. package/src/components/JfbBaseAddress/Attr.js +109 -1
  5. package/src/components/JfbBaseAddress/JfbBaseAddress.vue +153 -77
  6. package/src/components/JfbBaseAddress/XdTfkItem.vue +117 -0
  7. package/src/components/JfbBaseFastLink/Attr.js +22 -6
  8. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +35 -20
  9. package/src/components/JfbBaseFooter/Attr.js +141 -75
  10. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +50 -15
  11. package/src/components/JfbBaseLogin/Attr.js +3 -9
  12. package/src/components/JfbBaseOrderDetail/Attr.js +147 -65
  13. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +96 -46
  14. package/src/components/JfbBaseOrderList/Attr.js +59 -2
  15. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +139 -92
  16. package/src/components/JfbBaseOrderList/Mock.js +3 -0
  17. package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +267 -0
  18. package/src/components/JfbBasePhoneCollect/Attr.js +3 -15
  19. package/src/components/JfbBasePhoneLogin/Attr.js +3 -14
  20. package/src/components/JfbBaseUserCenter/Attr.js +240 -48
  21. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +101 -30
  22. package/src/components/JfbBaseUserInfo/Attr.js +179 -30
  23. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +80 -44
  24. package/src/components/JfbBaseUserOrder/Attr.js +291 -25
  25. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +172 -54
  26. package/src/components/JfbBaseWallet/Attr.js +340 -2
  27. package/src/components/JfbBaseWallet/JfbBaseWallet.vue +173 -49
@@ -14,21 +14,29 @@
14
14
  </view>
15
15
  <!-- #endif -->
16
16
  <view class="jfb-base-wallet__body">
17
+ <view class="x-line"></view>
17
18
  <template v-if="showContent">
18
- <view class="jfb-base-wallet__body-title">我的账户</view>
19
- <view class="jfb-base-wallet__body-type" v-if="showType.length > 0">
20
- <view
21
- :style="{marginRight: index === showType.length - 1 ? '0' : '36rpx',}"
22
- v-for="(item, index) in showType"
23
- @click="handleJumpTo(item)"
24
- :key="index"
25
- class="jfb-base-wallet__body-type-item"
26
- >
27
- <XdFontIcon :icon="item.icon"></XdFontIcon>
28
- <view>{{ item.label }}</view>
19
+ <view :style="[{
20
+ margin:marginComp,
21
+ padding:paddingComp,
22
+ backgroundColor:bodyBgColor,
23
+ borderRadius:bodyRadius+'rpx'
24
+ }]">
25
+ <view class="jfb-base-wallet__body-title" :style="[titleStyleComp]">{{accountName}}</view>
26
+ <view class="jfb-base-wallet__body-type" :style="[contStyleComp]" v-if="showType.length > 0">
27
+ <view
28
+ :style="[itemStyleComp]"
29
+ v-for="(item, index) in showType"
30
+ @click="handleJumpTo(item)"
31
+ :key="index"
32
+ class="jfb-base-wallet__body-type-item"
33
+ >
34
+ <xd-font-icon :icon="item.icon" :color="iconColor"></xd-font-icon>
35
+ <view>{{ item.label }}</view>
36
+ </view>
29
37
  </view>
38
+ <view v-else class="jfb-base-wallet__body-type notice" :style="{backgroundColor:backgroundColor, color:warningColor}">我的账户无配置数据,在正式环境将不显示改模块</view>
30
39
  </view>
31
- <view v-else class="jfb-base-wallet__body-type notice" :style="{backgroundColor:backgroundColor, color:warningColor}">我的账户无配置数据,在正式环境将不显示改模块</view>
32
40
  </template>
33
41
  </view>
34
42
  </view>
@@ -72,6 +80,37 @@ export default {
72
80
  isCard: "Y",
73
81
  isYuanbao: "Y",
74
82
  isIntegral: "Y",
83
+ accountName:'我的账户',
84
+
85
+ //标题
86
+ titleStyle:{},
87
+
88
+ //轮廓
89
+ bodyRadius:'0',
90
+ bodyMargin:{},
91
+ bodyPadding:{},
92
+ rowSpacing:10,
93
+ columnSpacing:36,
94
+ bodyBgColor:'rgba(0,0,0,0)',
95
+
96
+ //content
97
+ contPadding:{},
98
+ contBgColor:'rgba(0,0,0,0)',
99
+ contRadius:'10',
100
+ contShadow:'0 0 0 rgba(0,0,0,0)',
101
+ contBorder:{},
102
+
103
+ //item
104
+ itemPadding:{},
105
+ itemBgColor:'rgba(0,0,0,0)',
106
+ itemRadius:'10',
107
+ itemShadow: '0 0 0 rgba(0,0,0,0)',
108
+ itemBorder:{},
109
+ itemPStyle:{},
110
+ iconColor: '#333',
111
+
112
+
113
+ //高级
75
114
  cardPath: "",
76
115
  yuanbaoPath: "",
77
116
  integralPath: "",
@@ -177,7 +216,89 @@ export default {
177
216
  showContent(){
178
217
  if(this.$configProject.isPreview) return true;
179
218
  return this.showType.length > 0;
180
- }
219
+ },
220
+
221
+ titleStyleComp(){
222
+ return {
223
+ fontSize: this.titleStyle.fontSize || '28rpx',
224
+ color: `${this.titleStyle.color || '#333'}`,
225
+ fontWeight: `${this.titleStyle.fontWeight || 'normal'}`,
226
+ marginBottom: `${this.rowSpacing}rpx`,
227
+ }
228
+ },
229
+
230
+ marginComp() {
231
+ let str = `${this.checkValue(this.bodyMargin.top, 0)}rpx`;
232
+ str = `${str} ${this.checkValue(this.bodyMargin.right, 0)}rpx`;
233
+ str = `${str} ${this.checkValue(this.bodyMargin.bottom, 0)}rpx`;
234
+ str = `${str} ${this.checkValue(this.bodyMargin.left, 0)}rpx`;
235
+ return str
236
+ },
237
+
238
+ paddingComp() {
239
+ let str = `${this.checkValue(this.bodyPadding.top, 20)}rpx`;
240
+ str = `${str} ${this.checkValue(this.bodyPadding.right, 20)}rpx`;
241
+ str = `${str} ${this.checkValue(this.bodyPadding.bottom, 20)}rpx`;
242
+ str = `${str} ${this.checkValue(this.bodyPadding.left, 20)}rpx`;
243
+ return str
244
+ },
245
+
246
+ contStyleComp(){
247
+ let str = `${this.checkValue(this.contPadding.top, 32)}rpx`;
248
+ str = `${str} ${this.checkValue(this.contPadding.right, 48)}rpx`;
249
+ str = `${str} ${this.checkValue(this.contPadding.bottom, 32)}rpx`;
250
+ str = `${str} ${this.checkValue(this.contPadding.left, 48)}rpx`;
251
+ let border = {
252
+ borderWidth: '2rpx',
253
+ borderStyle: 'solid',
254
+ borderColor: '#eee',
255
+ }
256
+ if(this.contBorder && this.contBorder.type === 'Y') {
257
+ let value = this.contBorder.value || {};
258
+ if(value.color) border.borderColor = value.color;
259
+ if(value.style) border.borderStyle = value.style;
260
+ if(value.width) border.borderWidth = value.width + 'rpx';
261
+ }
262
+
263
+ return {
264
+ padding: str,
265
+ backgroundColor: this.contBgColor,
266
+ borderRadius: this.contRadius + 'rpx',
267
+ boxShadow: this.contShadow,
268
+ ...border,
269
+ }
270
+ },
271
+
272
+ itemStyleComp(){
273
+ let str = `${this.checkValue(this.itemPadding.top, 20)}rpx`;
274
+ str = `${str} ${this.checkValue(this.itemPadding.right, 0)}rpx`;
275
+ str = `${str} ${this.checkValue(this.itemPadding.bottom, 20)}rpx`;
276
+ str = `${str} ${this.checkValue(this.itemPadding.left, 0)}rpx`;
277
+
278
+ let border = {
279
+ borderWidth: '2rpx',
280
+ borderStyle: 'solid',
281
+ borderColor: '#eee',
282
+ }
283
+ if(this.itemBorder && this.itemBorder.type === 'Y') {
284
+ let value = this.itemBorder.value || {};
285
+ if(value.color) border.borderColor = value.color;
286
+ if(value.style) border.borderStyle = value.style;
287
+ if(value.width) border.borderWidth = value.width + 'rpx';
288
+ }
289
+ if(this.itemPStyle.color !== undefined) this.iconColor =this.itemPStyle.color
290
+ return {
291
+ padding: str,
292
+ backgroundColor: this.itemBgColor,
293
+ borderRadius: this.itemRadius + 'rpx',
294
+ marginRight: this.columnSpacing + 'rpx',
295
+ boxShadow: this.itemShadow,
296
+ fontSize: this.itemPStyle.fontSize || '28rpx',
297
+ color: `${this.itemPStyle.color || '#333'}`,
298
+ fontWeight: `${this.itemPStyle.fontWeight || 'normal'}`,
299
+ ...border
300
+ }
301
+ },
181
302
  },
182
303
  created() {
183
304
  this.backgroundColor = Color(this.warningColor).alpha(0.2).toString();
@@ -196,34 +317,42 @@ export default {
196
317
  init(container) {
197
318
  this.newLabel = getContainerPropsValue(container, "content.newLabel", []);
198
319
  this.isCard = getContainerPropsValue(container, "content.isCard", "Y");
199
- this.isYuanbao = getContainerPropsValue(
200
- container,
201
- "content.isYuanbao",
202
- "Y"
203
- );
204
- this.isIntegral = getContainerPropsValue(
205
- container,
206
- "content.isIntegral",
207
- "Y"
208
- );
209
- this.cardPath = getContainerPropsValue(container, "content.cardPath", {
210
- value: "",
211
- }).value;
212
-
213
- this.yuanbaoPath = getContainerPropsValue(
214
- container,
215
- "content.yuanbaoPath",
216
- { value: "" }
217
- ).value;
218
-
219
- this.integralPath = getContainerPropsValue(
220
- container,
221
- "content.integralPath",
222
- { value: "" }
223
- ).value;
320
+ this.isYuanbao = getContainerPropsValue(container, "content.isYuanbao", "Y");
321
+ this.isIntegral = getContainerPropsValue(container, "content.isIntegral", "Y");
322
+ this.accountName = getContainerPropsValue(container, "content.accountName", "我的账户");
323
+ this.rowSpacing = Number(getContainerPropsValue(container, "content.rowSpacing", 10));
324
+ this.columnSpacing = Number(getContainerPropsValue(container, "content.columnSpacing", 36));
325
+ this.bodyBgColor = getContainerPropsValue(container, "content.bodyBgColor", 'rgba(0,0,0,0)');
326
+ this.bodyPadding = getContainerPropsValue(container, "content.bodyPadding", {});
327
+ this.bodyMargin = getContainerPropsValue(container, "content.bodyMargin", {});
328
+ this.bodyRadius = getContainerPropsValue(container, "content.bodyRadius", '0');
329
+
330
+ //标题
331
+ this.titleStyle = getContainerPropsValue(container, 'content.titleStyle', {});
332
+
333
+ //content
334
+ this.contPadding = getContainerPropsValue(container, "content.contPadding", {});
335
+ this.contBgColor = getContainerPropsValue(container, "content.contBgColor", 'rgba(0,0,0,0)');
336
+ this.contRadius = getContainerPropsValue(container, "content.contRadius", '10');
337
+ this.contBorder = getContainerPropsValue(container, "content.contBorder", {});
338
+ this.contShadow = this.getXdShadow({width:20, color:'rgba(0,0,0,.3)'},getContainerPropsValue(container, 'content.contShadow', {}))
339
+
340
+
341
+ //item
342
+ this.itemPadding = getContainerPropsValue(container, 'content.itemPadding', {});
343
+ this.itemBgColor = getContainerPropsValue(container, 'content.itemBgColor', 'rgba(0,0,0,0)');
344
+ this.itemRadius = getContainerPropsValue(container, 'content.itemRadius', '10');
345
+ this.itemShadow = this.getXdShadow({width:20, color:'rgba(0,0,0,.3)'},getContainerPropsValue(container, 'content.itemShadow', {}))
346
+ this.itemBorder = getContainerPropsValue(container, "content.itemBorder", {});
347
+ this.itemPStyle = getContainerPropsValue(container, "content.itemStyle", {});
348
+
349
+ //高级
350
+ this.cardPath = getContainerPropsValue(container, "content.cardPath", {value: "",}).value;
351
+ this.yuanbaoPath = getContainerPropsValue(container, "content.yuanbaoPath", { value: "" }).value;
352
+ this.integralPath = getContainerPropsValue(container, "content.integralPath", { value: "" }).value;
224
353
  },
225
354
  handleJumpTo(item) {
226
- console.log(item, "ppppp");
355
+ if(this.$configProject.isPreview) return;
227
356
  switch (item.value) {
228
357
  case "card":
229
358
  this.$xdUniHelper.navigateTo({
@@ -257,22 +386,20 @@ export default {
257
386
  .jfb-base-wallet {
258
387
  &__body {
259
388
  &-title {
260
- padding: 20rpx;
389
+ min-height: 64rpx;
390
+ line-height: 64rpx;
261
391
  }
262
392
  &-type {
263
393
  display: flex;
264
394
  border-radius: 20rpx;
265
395
  background: rgba(255, 255, 255, 1);
266
396
  border: 1rpx solid rgba(238, 238, 238, 1);
267
- padding: 32rpx 48rpx 32rpx 48rpx;
268
- margin: 0 20rpx 0;
269
397
 
270
398
  &.notice {
271
399
  font-size: 26rpx;
272
400
  }
273
401
 
274
402
  &-item {
275
- color: #999999;
276
403
  flex: 1;
277
404
  display: flex;
278
405
  flex-direction: column;
@@ -280,12 +407,9 @@ export default {
280
407
  justify-content: center;
281
408
  font-size: 24rpx;
282
409
  border: 2rpx solid #eeeeee;
283
- border-radius: 16rpx;
284
- background: #ffffff;
285
- padding: 16rpx 0;
286
- margin-right: 36rpx;
287
- & > view:nth-child(2) {
288
- margin-top: 12rpx;
410
+
411
+ &:last-child{
412
+ margin-right: 0!important;
289
413
  }
290
414
  }
291
415
  }