jufubao-movie 1.0.56-beta3 → 1.0.56-beta6

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-beta3",
3
+ "version": "1.0.56-beta6",
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 :isVip="is_plus_site" :showPrice="order_info.show_prices" type="order" ></CusPrice>
104
+ <CusPrice :isShowIcon="isShowIcon" :isVip="is_plus_site" :showPrice="order_info.show_prices" type="order" ></CusPrice>
105
105
  </template>
106
106
 
107
107
  </view>
@@ -132,7 +132,7 @@
132
132
  <xd-content-xss style="color: #999" :html="notice"></xd-content-xss>
133
133
  </view>
134
134
  </view>
135
-
135
+
136
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"
@@ -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 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>
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>
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 v-if="choseWallet && choseWallet.walletPayPrice" :price='choseWallet.walletPayPrice' :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
182
+ <xd-unit :isShowIcon="isShowIcon" 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,6 +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
  :price="orderNeedPayPrice"
203
204
  :isOld="false"
204
205
  :font-size="36"
@@ -400,7 +401,7 @@
400
401
  couponUseBtnPadding: {},
401
402
  couponImageUrl: "",
402
403
  is_plus_site: false,
403
-
404
+
404
405
  }
405
406
  },
406
407
  watch: {
@@ -411,8 +412,12 @@
411
412
  },
412
413
  computed: {
413
414
  ...mapState({
414
- brandInfo: state => state.brandInfo
415
+ brandInfo: state => state.brandInfo,
416
+ siteInfo: state => state.siteInfo,
415
417
  }),
418
+ isShowIcon() {
419
+ return this.siteInfo.mapping.is_show_coin_icon==='Y'
420
+ },
416
421
  bottomFixedStyle(){
417
422
  return this.fixedStyle({paddingBottom: 10, zIndex: 100});
418
423
  },
@@ -460,6 +465,9 @@
460
465
  return false;
461
466
  }
462
467
  },
468
+ destroyed() {
469
+ if(this.timer) clearInterval(this.timer);
470
+ },
463
471
  created() {
464
472
  this.init(this.container);
465
473
  this.xnamespace =this.projectAttr.business_code;
@@ -972,68 +980,71 @@
972
980
 
973
981
  addSettleCoupon(options, successCb, errCb) {
974
982
 
975
- this.$xdShowLoading({})
976
- jfbRootExec('movieAddCard', {
977
- vm: this,
978
- data: {
979
- ...options,
980
- cart_order_id: this.tempOrderId,
981
- show_type: 'coupon'
982
- }
983
- }).then(res => {
984
- this.$xdHideLoading();
985
- uni.showToast({
986
- title: "添加成功",
987
- icon: "none"
988
- });
989
- successCb(res);
990
- }).catch(err => {
991
- console.log(err, 'err')
992
- this.$xdHideLoading();
993
- if(errCb) errCb();
994
- this.$xdLog.catch(err);
995
- })
983
+ this.$xdShowLoading({})
984
+ jfbRootExec('movieAddCard', {
985
+ vm: this,
986
+ data: {
987
+ ...options,
988
+ cart_order_id: this.tempOrderId,
989
+ show_type: 'coupon'
990
+ }
991
+ }).then(res => {
992
+ this.$xdHideLoading();
993
+ uni.showToast({
994
+ title: "添加成功",
995
+ icon: "none"
996
+ });
997
+ successCb(res);
998
+ }).catch(err => {
999
+ console.log(err, 'err')
1000
+ this.$xdHideLoading();
1001
+ if(errCb) errCb();
1002
+ this.$xdLog.catch(err);
1003
+ })
996
1004
  },
997
- getSettleListCoupons(cb) {
1005
+ getSettleListCoupons(cb) {
998
1006
 
999
- jfbRootExec('movieCardList', {
1000
- vm: this,
1001
- data: {
1002
- show_type: 'coupon'
1003
- }
1004
- }).then(res => {
1005
- cb(res.list)
1006
- this.cardList = res.list
1007
- }).catch(this.$xdLog.catch)
1008
- },
1009
- setSettleSelectCoupon(options, successCb, errCb) {
1010
-
1011
- this.$xdShowLoading({})
1012
- let cart_order_id = this.tempOrderId;
1013
- jfbRootExec('movieSelectCard', {
1014
- vm: this,
1015
- data: {
1016
- cart_order_id: cart_order_id,
1017
- select_content: 1,
1018
- ...options,
1019
- }
1020
- }).then(res => {
1021
- successCb(res)
1022
- this.$xdHideLoading()
1023
- }).catch(err => {
1024
- if(errCb) errCb(err)
1025
- this.$xdHideLoading()
1026
- this.$xdLog.catch(err);
1027
- })
1028
- },
1007
+ jfbRootExec('movieCardList', {
1008
+ vm: this,
1009
+ data: {
1010
+ show_type: 'coupon'
1011
+ }
1012
+ }).then(res => {
1013
+ cb(res.list)
1014
+ this.cardList = res.list
1015
+ }).catch(this.$xdLog.catch)
1016
+ },
1017
+ setSettleSelectCoupon(options, successCb, errCb) {
1018
+
1019
+ this.$xdShowLoading({})
1020
+ let cart_order_id = this.tempOrderId;
1021
+ jfbRootExec('movieSelectCard', {
1022
+ vm: this,
1023
+ data: {
1024
+ cart_order_id: cart_order_id,
1025
+ select_content: 1,
1026
+ ...options,
1027
+ }
1028
+ }).then(res => {
1029
+ successCb(res)
1030
+ this.$xdHideLoading()
1031
+ }).catch(err => {
1032
+ if(errCb) errCb(err)
1033
+ this.$xdHideLoading()
1034
+ this.$xdLog.catch(err);
1035
+ })
1036
+ },
1029
1037
 
1030
1038
  onJfbBack(options) {
1031
1039
  this.$xdUniHelper.navigateBack()
1032
1040
  },
1033
1041
 
1034
1042
  onJfbShow(options) {
1035
- if(this.timer) clearTimeout(this.timer);
1043
+ if(this.timer) clearInterval(this.timer);
1036
1044
  this.onJfbLoad(options)
1045
+ },
1046
+ onJfbUnload(){
1047
+ if(this.timer) clearInterval(this.timer);
1037
1048
  }
1038
1049
  }
1039
1050
  }
@@ -168,7 +168,7 @@
168
168
  :isShowIcon="false"
169
169
  :font-size="24"/> -->
170
170
  <!-- {{item.sale_price}} -->
171
- <CusPrice :isPlus="is_plus_site" :showPrice="item.show_prices" range="起" type="schedule"></CusPrice>
171
+ <CusPrice :isShowIcon="isShowIcon" :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>
@@ -257,7 +257,11 @@
257
257
  computed: {
258
258
  ...mapState({
259
259
  siteMap: state => state.siteInfo.mapping,
260
+ siteInfo: state => state.siteInfo,
260
261
  }),
262
+ isShowIcon() {
263
+ return this.siteInfo.mapping.is_show_coin_icon==='Y'
264
+ },
261
265
  film_id(){
262
266
  if(!this.filmInfo) return "";
263
267
  return this.filmInfo['film_id']