jufubao-third 1.0.10-beta1 → 1.0.10-beta2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-third",
3
- "version": "1.0.10-beta1",
3
+ "version": "1.0.10-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件第三方购物平台包",
6
6
  "main": "index.js",
@@ -59,7 +59,7 @@
59
59
  :plus_saving_money="plus_saving_money"
60
60
  @choseVipCard="handleChoseVipCard"></cus-vip-list>
61
61
  </view>
62
- <view v-if="vip_card_id" class="pay_section">
62
+ <view v-if="isShowPlusSaveMoney" class="pay_section">
63
63
  <xd-list-item label="PLUS专项立减" size="small" paddingLR="40rpx" >
64
64
  <view slot="label" style="color: #86541E;">PLUS专项立减</view>
65
65
  <!-- <view style="color: #FF7070;">-5.00</view> -->
@@ -332,7 +332,7 @@
332
332
  ],
333
333
  data() {
334
334
  return {
335
-
335
+ isVip: false,
336
336
  xdDownDrawer: false,
337
337
  payChannels: [],
338
338
  channel_provider_id: "",
@@ -383,6 +383,11 @@
383
383
  ...mapState({
384
384
  brandInfo: state => state.brandInfo
385
385
  }),
386
+ //是否展示vip减免
387
+ isShowPlusSaveMoney(){
388
+ if(this.show_vip_card === 'Y') return this.vip_card_id;
389
+ else return this.isVip && this.plus_saving_money;
390
+ },
386
391
  showCardList(){
387
392
  //筛选出不存在于cardList的数据
388
393
  let otherCardList = this.selectedCardList.filter(item =>{
@@ -412,6 +417,7 @@
412
417
  this.init(this.container);
413
418
  let valid_token = this.$xdUniHelper.randomChar(20);
414
419
  this.$set(this.cardForm, "valid_token", valid_token);
420
+ this.isVip = this.getTokenForKey('user_level') === 'VIP';
415
421
 
416
422
  // #ifdef H5
417
423
  if (!this.$configProject.isPreview) {