jufubao-movie 1.0.55-beta1 → 1.0.55-beta3

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-movie",
3
- "version": "1.0.55-beta1",
3
+ "version": "1.0.55-beta3",
4
4
  "private": false,
5
5
  "description": "聚福宝在线选座业务组件插件包",
6
6
  "main": "index.js",
@@ -133,14 +133,14 @@
133
133
  </view>
134
134
  </view>
135
135
 
136
- <view class="vip_list_wrap">
136
+ <view v-if="is_show_vip_card_list==='Y'" class="vip_list_wrap">
137
137
  <cus-vip-list :list="vipCardList"
138
138
  :vip_card_id="vip_card_id"
139
139
  :plus_saving_money="plus_saving_money"
140
140
  @choseVipCard="handleChoseVipCard"></cus-vip-list>
141
141
  </view>
142
142
 
143
- <view class="vip_pay_info">
143
+ <view v-if="isShowPlusSavingMoney" class="vip_pay_info">
144
144
  <view class="good_vip_price">
145
145
  <xd-list-item label="商品价格" paddingLR="40rpx" size="small" showBottom>
146
146
  <!-- <view style="color: #999999;">145.00</view> -->
@@ -340,6 +340,7 @@
340
340
  mixins: [componentsMixins,extsMixins,JfbMovieConfirmMixin],
341
341
  data() {
342
342
  return {
343
+ isVip: false,
343
344
  times: null,
344
345
  timeMsg: '',
345
346
  timer: null,
@@ -430,6 +431,11 @@
430
431
  return true; //都开启补差
431
432
  // return this.otherPayMethod.find(item => item.method === 'third')
432
433
  },
434
+ //是否展示plus立减
435
+ isShowPlusSavingMoney(){
436
+ if(this.is_show_vip_card_list === 'Y') return this.vip_card_id;
437
+ else return (this.isVip && this.plus_saving_money)
438
+ },
433
439
  //订单实际需要支付金额(减去各项已选,票券、钱包)
434
440
  orderNeedPayPrice(){
435
441
  if(!this.order_info) return 0;
@@ -455,6 +461,7 @@
455
461
  created() {
456
462
  this.init(this.container);
457
463
  this.xnamespace =this.projectAttr.business_code;
464
+ this.isVip = this.getTokenForKey('user_level') === 'VIP';
458
465
  // #ifdef H5
459
466
  if (!this.$configProject.isPreview){
460
467
  jfbRootExec("getH5WxAuthorize", {
@@ -146,4 +146,5 @@ module.exports = {
146
146
  },
147
147
  getPayMethod: {"list":[{"method":"card","show_name":"使用票券1","icon":"icon_4"},{"method":"wallet","show_name":"使用我的元宝","icon":"icon_1"},{"method":"score","show_name":"使用积分","icon":"icon_3"}],"request_id":"3746368129d64b96"},
148
148
  getUserWallet: {"show_name":"我的元宝","icon":"icon_1","total_amount":179989,"list":[{"wallet_type":"UB","wallet_name":"账户3","wallet_virtual_number":"1000000000000244","amount":79789,"business_codes":"cake,v-RcA8Mv-Gpd96_Y_mjIf","business_codes_name":"蛋糕(勿改),商城","wallet_rule":"<p>UB使用规则说明<\/p>\n<p>123456<\/p>"},{"wallet_type":"UC","wallet_name":"账户1","wallet_virtual_number":"1000000000000245","amount":100200,"business_codes":"mall,movie,v-RcA8Mv-Gpd96_Y_mjIf,cake","business_codes_name":"商城,电影(勿改),商城,蛋糕(勿改)","wallet_rule":"<p>UC使用规则说明<\/p>\n<p>123<\/p>\n<p>阿达我娃的啊我啊我啊我啊我<\/p>\n<p><span style=\"color: #ff0000;\">阿我打我爱我的啊我啊我<\/span><\/p>"}],"request_id":"823e7aa78fa32fa9"},
149
+ getVipList:{"total_size":3,"next_page_token":"","list":[{"vip_card_id":3,"product_id":60038520,"product_name":"体验卡","sale_price":10000000,"vip_card_icon":""},{"vip_card_id":2,"product_id":60038519,"product_name":"月卡","sale_price":10000000,"vip_card_icon":""},{"vip_card_id":1,"product_id":60038515,"product_name":"测1","sale_price":10000000,"vip_card_icon":""}],"request_id":"c5cf58415cffdc30"},
149
150
  }