jufubao-base 1.0.237-beta2 → 1.0.237-beta5

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 (35) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseBalance/JfbBaseBalance.vue +0 -1
  3. package/src/components/JfbBaseCodeOpenVip/Api.js +1 -2
  4. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +0 -2
  5. package/src/components/JfbBaseConsumpCode/Attr.js +1 -1
  6. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +14 -2
  7. package/src/components/JfbBaseFastLink/Attr.js +12 -1
  8. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +63 -0
  9. package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +2 -2
  10. package/src/components/JfbBaseOpenVip/Api.js +1 -1
  11. package/src/components/JfbBaseOpenVip/Attr.js +50 -1
  12. package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +40 -15
  13. package/src/components/JfbBaseOpenVip/Mock.js +1 -1
  14. package/src/components/JfbBaseOpenVip/XdVipList.vue +4 -1
  15. package/src/components/JfbBaseOpenVipDetail/Api.js +1 -2
  16. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +2 -3
  17. package/src/components/JfbBaseOpenVipDetail/Mock.js +13 -11
  18. package/src/components/JfbBasePay/Attr.js +40 -0
  19. package/src/components/JfbBasePay/JfbBasePay.vue +12 -4
  20. package/src/components/JfbBasePay/Mock.js +0 -9
  21. package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +1 -1
  22. package/src/components/JfbBasePoster/Attr.js +1 -1
  23. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +2 -2
  24. package/src/components/JfbBasePosterGroup/Api.js +7 -43
  25. package/src/components/JfbBasePosterGroup/Attr.js +124 -26
  26. package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +189 -34
  27. package/src/components/JfbBaseShare/JfbBaseShare.vue +16 -5
  28. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +1 -0
  29. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +4 -0
  30. package/src/components/JfbBaseTfkSearch/listMixins.js +2 -1
  31. package/src/components/JfbBaseUserInfo/Attr.js +12 -0
  32. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +9 -2
  33. package/src/components/JfbBaseUserOrder/Attr.js +16 -0
  34. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +11 -2
  35. package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +15 -3
@@ -73,6 +73,7 @@
73
73
  import listMixins from "./listMixins";
74
74
  import CustomList from "./CustomList.vue";
75
75
  import AllList from "./AllList.vue";
76
+ import { mapState } from 'vuex';
76
77
 
77
78
  class EmitParent {
78
79
  constructor(options) {
@@ -131,6 +132,9 @@
131
132
  }
132
133
  },
133
134
  computed: {
135
+ ...mapState({
136
+ siteInfo: state => state.siteInfo,
137
+ }),
134
138
  showMenuList(){
135
139
  return [{label: "全部", value: "all"}, ...this.menuList]
136
140
  },
@@ -24,7 +24,8 @@ export default {
24
24
  let differ = getContainerPropsValue(container, 'content.differ', 1);
25
25
  let showActivityPrice = getContainerPropsValue(container, 'content.showActivityPrice', 'N');
26
26
  let isShowExchange = getContainerPropsValue(container, 'content.isShowExchange', 'N');
27
- this.productConfig = {is_show_brand, isPrice, isShowTag, isShowDiscount, isAddCart, differ, showActivityPrice, isShowExchange,is_plus_site: this.is_plus_site};
27
+ let isShowIcon = this.siteInfo.mapping.is_show_coin_icon==='Y'
28
+ this.productConfig = {is_show_brand, isPrice, isShowTag, isShowDiscount, isAddCart, differ, showActivityPrice, isShowExchange,is_plus_site: this.is_plus_site,isShowIcon};
28
29
 
29
30
  //内容
30
31
  let brandColor = getContainerPropsValue(container, 'content.brandColor', '#aaa');
@@ -544,6 +544,18 @@ export default {
544
544
  },
545
545
  inline: false,
546
546
  },
547
+ data['is_plus_site']==='Y'&&{
548
+ label: '二维码路径:',
549
+ ele: 'xd-select-pages-path',
550
+ valueKey: 'codePath',
551
+ groupKey:'advanced',
552
+ placeholder: '请选择二维码路径',
553
+ value: data['codePath'] || null,
554
+ setting: {
555
+ router: XdBus.getParentApi('getPagesTree'),
556
+ },
557
+ inline: false,
558
+ },
547
559
  {
548
560
  label: '',
549
561
  ele: 'slot',
@@ -24,14 +24,14 @@
24
24
  </view>
25
25
  <view class="jfb-base-user-info__body-plus-header-top-left-info">
26
26
  <view class="jfb-base-user-info__body-plus-header-top-left-info-name" v-if="logined">
27
- <view>{{userInfo|getName}} </view>
27
+ <view :style="[nickNameStyle]">{{userInfo|getName}} </view>
28
28
  <view v-if="is_vip==='Y'"><text>PLUS</text>会员</view>
29
29
  <view v-else>普通用户</view>
30
30
  </view>
31
31
  <view>{{userInfo.phone_number}}</view>
32
32
  </view>
33
33
  </view>
34
- <view class="jfb-base-user-info__body-plus-header-right">
34
+ <view @click="handleToCode" class="jfb-base-user-info__body-plus-header-right">
35
35
  <xd-font-icon size="40" icon="iconerweima"></xd-font-icon>
36
36
  </view>
37
37
  </view>
@@ -270,6 +270,7 @@
270
270
  plusBottomBackgroundColor: '',
271
271
  normalTopBackgroundColor: '',
272
272
  normalBottomBackgroundColor: '',
273
+ codePath: ''
273
274
  }
274
275
  },
275
276
  watch: {
@@ -397,6 +398,7 @@
397
398
  this.normalBottomBackgroundColor = getContainerPropsValue(container, 'content.normalBottomBackgroundColor', 'linear-gradient(90deg, #FCF2DC 0%, #FAE7C4 100%)');
398
399
  this.openVipPath = getContainerPropsValue(container, 'content.openVipPath', { value: "" }).value;
399
400
  this.viewPath = getContainerPropsValue(container, 'content.viewPath', { value: "" }).value;
401
+ this.codePath = getContainerPropsValue(container, 'content.codePath', { value: "" }).value;
400
402
  },
401
403
  handleAddress() {
402
404
  this.$xdUniHelper.navigateTo({
@@ -412,6 +414,11 @@
412
414
  this.$xdUniHelper.navigateTo({
413
415
  url: this.viewPath
414
416
  })
417
+ },
418
+ handleToCode() {
419
+ this.$xdUniHelper.navigateTo({
420
+ url: this.codePath
421
+ })
415
422
  }
416
423
  }
417
424
  }
@@ -21,6 +21,21 @@ export default {
21
21
  groupKey:'advanced',
22
22
  },
23
23
  {
24
+ label: '是否展示我的订单:',
25
+ ele: 'xd-radio',
26
+ valueKey: 'isShowMyOrder',
27
+ value: data['isShowMyOrder'] || 'Y',
28
+ placeholder: '请选择是否展示我的订单',
29
+ groupKey:'content',
30
+ multiple: false,
31
+ labelInline:true,
32
+ className: 'input80',
33
+ list: [
34
+ {label: '展示', value: 'Y'},
35
+ {label: '隐藏', value: 'N'},
36
+ ]
37
+ },
38
+ data['isShowMyOrder']==='Y'&&{
24
39
  label: '我的订单自定义名称:',
25
40
  ele: 'el-input',
26
41
  type: 'text',
@@ -101,6 +116,7 @@ export default {
101
116
  {"label": "待收货", "value": 'unreceived'},
102
117
  {"label": "已取消", "value": 'cancel'},
103
118
  {"label": "已完成", "value": 'com'},
119
+ {"label": "售后", "value": 'afterSale'},
104
120
  ])
105
121
  }
106
122
  },
@@ -16,8 +16,9 @@
16
16
  <view class="jfb-base-user-order__body">
17
17
  <view class="x-line"></view>
18
18
  <view :style="[bodyStyleComp]" v-if="list.length > 0">
19
- <view class="my-order__add" :style="[titleMarginComp]">
20
- <view :style="[titleStyleComp]">{{myOrderName}}</view>
19
+ <view v-if="isShowMyOrder==='Y'||isShowBtn === 'Y'" class="my-order__add" :style="[titleMarginComp]">
20
+ <view v-if="isShowMyOrder==='Y'" :style="[titleStyleComp]">{{myOrderName}}</view>
21
+ <view v-else></view>
21
22
  <view
22
23
  v-if="isShowBtn === 'Y'"
23
24
  @click="handleToLink(afterUrl)"
@@ -179,6 +180,7 @@
179
180
  cardNameColor: '#333',
180
181
  titleStyle: {},
181
182
  titleMargin:{},
183
+ isShowMyOrder: '',
182
184
 
183
185
  //售后订单
184
186
  isShowBtn:'Y',
@@ -274,6 +276,7 @@
274
276
 
275
277
 
276
278
  //标题
279
+ this.isShowMyOrder = getContainerPropsValue(container, 'content.isShowMyOrder', 'Y');
277
280
  this.myOrderName = getContainerPropsValue(container, 'content.myOrderName', '我的订单')
278
281
  this.titleStyle = getContainerPropsValue(container, 'content.titleStyle', {});
279
282
  this.titleMargin = getContainerPropsValue(container,'content.titleMargin', {})
@@ -333,6 +336,12 @@
333
336
 
334
337
  handleToLink(path, type) {
335
338
  if (this.$configProject['isPreview']) return;
339
+ if(type==='afterSale'){
340
+ this.$xdUniHelper.navigateTo({
341
+ url: this.afterUrl
342
+ })
343
+ return
344
+ }
336
345
  this.$xdUniHelper.navigateTo({
337
346
  url: type ? `${path}?type=${type}` : path
338
347
  })
@@ -11,14 +11,14 @@
11
11
  <view>提现金额</view>
12
12
  <view @click="handleAllWithDraw">全部提现</view>
13
13
  </view>
14
- <input class="jfb-base-withdraw__body-amount" v-model="amount"></input>
14
+ <input @input="handleAmountChange" class="jfb-base-withdraw__body-amount" v-model="amount"></input>
15
15
  <view class="jfb-base-withdraw__body-balance">可提现余额¥{{getAmout(balance)}}</view>
16
16
  </view>
17
17
  <view v-if="notice" :style="[bodyStyleComp]">
18
18
  <XdContentXss v-html="notice"></XdContentXss>
19
19
  </view>
20
20
  <view class="fixe_bottom" :style="prod_bottom">
21
- <XdButton v-if="amount>0" fontSize="32" type="primary" @click="handleWithDraw">提现</XdButton>
21
+ <XdButton v-if="amount>0&&amount<=getAmout(balance)" fontSize="32" type="primary" @click="handleWithDraw">提现</XdButton>
22
22
  <XdButton v-else disabled fontSize="32" type="primary">提现</XdButton>
23
23
  <view @click="handleToWithDrawRecord">提现记录</view>
24
24
  </view>
@@ -56,7 +56,7 @@
56
56
  withDrawRecordPath: '',
57
57
  withDrawPath: '',
58
58
  balance: 0,
59
- amount: 0,
59
+ amount: '',
60
60
  showSuccess: false,
61
61
  method: '',
62
62
  wallet_type: ''
@@ -165,6 +165,18 @@
165
165
  handleWithDrawSuccess() {
166
166
  this.showSuccess = false;
167
167
  },
168
+ handleAmountChange(e) {
169
+ this.$nextTick(() => {
170
+ if(e.detail.value>this.getAmout(this.balance)) {
171
+ uni.showToast(
172
+ {
173
+ title: '输入金额超过可提现余额',
174
+ icon: 'none'
175
+ }
176
+ )
177
+ }
178
+ })
179
+ },
168
180
  onJfbScroll(options) {
169
181
  console.log('event.onJfbScroll', options)
170
182
  },