jufubao-movie 1.0.56-beta8 → 1.0.57-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-movie",
3
- "version": "1.0.56-beta8",
3
+ "version": "1.0.57-beta1",
4
4
  "private": false,
5
5
  "description": "聚福宝在线选座业务组件插件包",
6
6
  "main": "index.js",
@@ -101,7 +101,7 @@
101
101
  :fontSize="24"
102
102
  :price="order_info.total_price"
103
103
  ></xd-unit> -->
104
- <CusPrice :isShowIcon="isShowIcon" :isVip="is_plus_site" :showPrice="order_info.show_prices" type="order" ></CusPrice>
104
+ <CusPrice :isVip="is_plus_site" :showPrice="order_info.show_prices" type="order" ></CusPrice>
105
105
  </template>
106
106
 
107
107
  </view>
@@ -144,12 +144,12 @@
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> -->
147
- <xd-unit :isShowIcon="isShowIcon" :price="origin_total_price" colorNew="#999" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
147
+ <xd-unit :price="origin_total_price" colorNew="#999" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
148
148
  </xd-list-item>
149
149
  <xd-list-item v-if="isShowPlusSavingMoney" label="PLUS专享立减" size="small" paddingLR="40rpx" >
150
150
  <view slot="label" style="color: #86541E;">PLUS专享立减</view>
151
151
  <!-- <view style="color: #FF7070;">-5.00</view> -->
152
- <xd-unit :isShowIcon="isShowIcon" :largeZero="false" :price="-plus_saving_money" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
152
+ <xd-unit :largeZero="false" :price="-plus_saving_money" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
153
153
  </xd-list-item>
154
154
  </view>
155
155
  <!-- <view class="vip_remain">
@@ -168,8 +168,8 @@
168
168
  <view v-else>
169
169
  <view v-if="choseCard && choseCard.cardPayPrice" slot="label">{{item.show_name}} <text style="color:red;margin-left: 4px;">(已选{{ choseCard.selectedCardList.length }}张)</text></view>
170
170
  <template v-if="choseCard && choseCard.cardPayPrice">
171
- <xd-unit :isShowIcon="isShowIcon" v-if="choseCard.unit == '次'" :price="choseCard.cardPayPoint" :isOld="false" :fontSize="24" :iconSize="0.3" :unit="choseCard.unit"></xd-unit>
172
- <xd-unit :isShowIcon="isShowIcon" v-else :price="choseCard.cardPayPrice" :isOld="false" :fontSize="24" :iconSize="0.3" :unit="choseCard.unit || ''"></xd-unit>
171
+ <xd-unit v-if="choseCard.unit == '次'" :price="choseCard.cardPayPoint" :isOld="false" :fontSize="24" :iconSize="0.3" :unit="choseCard.unit"></xd-unit>
172
+ <xd-unit v-else :price="choseCard.cardPayPrice" :isOld="false" :fontSize="24" :iconSize="0.3" :unit="choseCard.unit || ''"></xd-unit>
173
173
  </template>
174
174
  <view v-else>请选择</view>
175
175
  </view>
@@ -179,7 +179,7 @@
179
179
  <view style="color:#CCCCCC;font-size: 20rpx">已使用其他票券,不可用</view>
180
180
  </view>
181
181
  <view v-else>
182
- <xd-unit :isShowIcon="isShowIcon" v-if="choseWallet && choseWallet.walletPayPrice" :price='choseWallet.walletPayPrice' :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
182
+ <xd-unit v-if="choseWallet && choseWallet.walletPayPrice" :price='choseWallet.walletPayPrice' :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
183
183
  <view v-else>请选择</view>
184
184
  </view>
185
185
  </xd-list-item>
@@ -199,7 +199,7 @@
199
199
  <view v-if="is_not_show_price !== 'Y'" style="display: flex;align-items:center;">
200
200
  <view style="margin-right: 8rpx;">应付:</view>
201
201
  <xd-unit
202
- :isShowIcon="isShowIcon"
202
+
203
203
  :price="orderNeedPayPrice"
204
204
  :isOld="false"
205
205
  :font-size="36"
@@ -317,9 +317,6 @@
317
317
  import CusPrice from '@/components/CusPrice/CusPrice'
318
318
  import CusVipList from "@/components/CusVipList/CusVipList"
319
319
 
320
- // #ifdef H5
321
- import cookie from "@/common/cookie";
322
- //#endif
323
320
  import {Base64} from "js-base64";
324
321
 
325
322
  export default {
@@ -411,14 +408,8 @@
411
408
  },
412
409
  },
413
410
  computed: {
414
- ...mapState({
415
- brandInfo: state => state.brandInfo,
416
- siteInfo: state => state.siteInfo,
417
- }),
418
- isShowIcon() {
419
- if(this.$configProject.isPreview) return true;
420
- return this.siteInfo.mapping.is_show_coin_icon==='Y'
421
- },
411
+ ...mapState(['jfbAuthorize','brandInfo','siteInfo']),
412
+
422
413
  bottomFixedStyle(){
423
414
  return this.fixedStyle({paddingBottom: 10, zIndex: 100});
424
415
  },
@@ -551,6 +542,7 @@
551
542
  res.seat_name = JSON.parse(res.seat_name).join(' | ')
552
543
  // res.total_price = this.$xdUniHelper.divisionFloatNumber(res.total_price, 100)
553
544
  res.total_price = res.total_price;
545
+ let priceChange = this.order_info && this.order_info.total_price != res.total_price;
554
546
  this.order_info = res
555
547
  this.times = Number(this.order_info['count_down']);
556
548
  let minutes = Math.floor(this.times / 60);
@@ -572,6 +564,10 @@
572
564
  res.pay_methods.push('coupon')
573
565
  this.p_getPayMethod(res.pay_methods);
574
566
  }
567
+ //确认订单价格改变,清空选择
568
+ if(priceChange){
569
+ this.clearCheckedWhenPriceChange();
570
+ }
575
571
  if(res.vip_card_item){
576
572
  if(res.vip_card_item.is_can_buy === 'Y'){
577
573
  this.vip_card_id = res.vip_card_item.vip_card_id;
@@ -591,6 +587,11 @@
591
587
  // }
592
588
  });
593
589
  },
590
+ //确认订单价格改变,清空选择
591
+ clearCheckedWhenPriceChange(){
592
+ this.$refs['xdCardPayChose'].clearChecked();
593
+ this.$refs['xdWalletChose'].clearChecked();
594
+ },
594
595
  handleChoseVipCard(vip_card_id){
595
596
  this.vip_card_id = vip_card_id;
596
597
  this.p_getConfirmOrder();
@@ -877,6 +878,13 @@
877
878
  getCountDown() {
878
879
  this.show = true;
879
880
  this.timer = setInterval(() => {
881
+ let pages = getCurrentPages();
882
+ let curPage = pages[pages.length - 1];
883
+ if(this.pageAttr["page_id"] !== curPage.page_id){
884
+ clearInterval(this.timer);
885
+ return;
886
+ }
887
+
880
888
  let minutes = Math.floor(this.times / 60);
881
889
  let seconds = Math.floor(this.times % 60);
882
890
  if (minutes < 10) {
@@ -953,7 +961,7 @@
953
961
  let payPath = '';
954
962
  let isMp = false;
955
963
  // #ifdef H5
956
- payPath = cookie.get(`jfb-pay-path-${this.brandInfo.site_id}`);
964
+ payPath = this.jfbAuthorize.getMpKey('paySetting');
957
965
  if(navigator.userAgent.match(/miniprogram/i)) isMp = true;
958
966
  //#endif
959
967
  if(payPath && isMp) {
@@ -168,7 +168,7 @@
168
168
  :isShowIcon="false"
169
169
  :font-size="24"/> -->
170
170
  <!-- {{item.sale_price}} -->
171
- <CusPrice :isShowIcon="isShowIcon" :isPlus="is_plus_site" :showPrice="item.show_prices" range="起" type="schedule"></CusPrice>
171
+ <CusPrice :isShowIcon="false" :isPlus="is_plus_site" :showPrice="item.show_prices" range="起" type="schedule"></CusPrice>
172
172
  </view>
173
173
  <!-- <view class="_sub"> <xd-coins class="xd-coins" :size="0.2"></xd-coins> 起</view> -->
174
174
  </view>
@@ -259,9 +259,6 @@
259
259
  siteMap: state => state.siteInfo.mapping,
260
260
  siteInfo: state => state.siteInfo,
261
261
  }),
262
- isShowIcon() {
263
- return this.siteInfo.mapping.is_show_coin_icon==='Y'
264
- },
265
262
  film_id(){
266
263
  if(!this.filmInfo) return "";
267
264
  return this.filmInfo['film_id']