jufubao-movie 1.0.56-beta6 → 1.0.56-beta8

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-beta6",
3
+ "version": "1.0.56-beta8",
4
4
  "private": false,
5
5
  "description": "聚福宝在线选座业务组件插件包",
6
6
  "main": "index.js",
@@ -5,6 +5,17 @@ export default {
5
5
  advanced: [],
6
6
  content: (data)=>{
7
7
  return [
8
+ {
9
+ label: "无其他支付时直接跳到支付页面:",
10
+ ele: "xd-radio",
11
+ valueKey: "skipToPay",
12
+ value: data['skipToPay'] || 'N',
13
+ groupKey: "content",
14
+ list: [
15
+ {label: '是', value: 'Y'},
16
+ {label: '否', value: 'N'},
17
+ ]
18
+ },
8
19
  {
9
20
  label: '去支付路径:',
10
21
  ele: 'xd-select-pages-path',
@@ -140,16 +140,16 @@
140
140
  @choseVipCard="handleChoseVipCard"></cus-vip-list>
141
141
  </view>
142
142
 
143
- <view v-if="is_show_vip_card_list==='Y'" class="vip_pay_info">
143
+ <view v-if="isShowPlusSavingMoneyPrice" 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> -->
147
- <xd-unit :price="origin_total_price" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
147
+ <xd-unit :isShowIcon="isShowIcon" :price="origin_total_price" colorNew="#999" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
148
148
  </xd-list-item>
149
- <xd-list-item v-if="isShowPlusSavingMoney" label="PLUS专项立减" size="small" paddingLR="40rpx" >
150
- <view slot="label" style="color: #86541E;">PLUS专项立减</view>
149
+ <xd-list-item v-if="isShowPlusSavingMoney" label="PLUS专享立减" size="small" paddingLR="40rpx" >
150
+ <view slot="label" style="color: #86541E;">PLUS专享立减</view>
151
151
  <!-- <view style="color: #FF7070;">-5.00</view> -->
152
- <xd-unit :price="plus_saving_money" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
152
+ <xd-unit :isShowIcon="isShowIcon" :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">
@@ -161,7 +161,7 @@
161
161
 
162
162
  <view v-if="otherPayMethod.length" class="jfb-movie-confirm__body-card">
163
163
  <template v-for="item in otherPayMethod">
164
- <xd-list-item v-if="item.method === 'card'" :key="item.method" :label="item.show_name" paddingLR="60rpx" size="small" :showRight="!(choseCoupon && choseCoupon.cardPayPrice)" @click="toChoseCard">
164
+ <xd-list-item v-if="item.method === 'card'" :key="item.method" :label="item.show_name" paddingLR="0" size="small" :showRight="!(choseCoupon && choseCoupon.cardPayPrice)" @click="toChoseCard">
165
165
  <view v-if="(choseCoupon && choseCoupon.cardPayPrice)">
166
166
  <view style="color:#CCCCCC;font-size: 20rpx">已使用其他票券,不可用</view>
167
167
  </view>
@@ -174,7 +174,7 @@
174
174
  <view v-else>请选择</view>
175
175
  </view>
176
176
  </xd-list-item>
177
- <xd-list-item v-if="item.method === 'wallet'" :key="item.method" :label="item.show_name" paddingLR="60rpx" size="small" :showRight="!(choseCoupon && choseCoupon.cardPayPrice)" @click="toChoseWallet">
177
+ <xd-list-item v-if="item.method === 'wallet'" :key="item.method" :label="item.show_name" paddingLR="0" size="small" :showRight="!(choseCoupon && choseCoupon.cardPayPrice)" @click="toChoseWallet">
178
178
  <view v-if="(choseCoupon && choseCoupon.cardPayPrice)">
179
179
  <view style="color:#CCCCCC;font-size: 20rpx">已使用其他票券,不可用</view>
180
180
  </view>
@@ -183,7 +183,7 @@
183
183
  <view v-else>请选择</view>
184
184
  </view>
185
185
  </xd-list-item>
186
- <xd-list-item v-if="item.method === 'coupon'" :key="item.method" :label="item.show_name" paddingLR="60rpx" size="small" :showRight="!(choseCard && choseCard.cardPayPrice)" @click="toChoseCoupon">
186
+ <xd-list-item v-if="item.method === 'coupon'" :key="item.method" :label="item.show_name" paddingLR="0" size="small" :showRight="!(choseCard && choseCard.cardPayPrice)" @click="toChoseCoupon">
187
187
  <view v-if="(choseCoupon && choseCoupon.cardPayPrice)" slot="label">
188
188
  {{item.show_name}} <text style="color:red;margin-left: 4px;">(已选{{ choseCoupon.selectedCardList.length }}张)</text>
189
189
  </view>
@@ -401,7 +401,7 @@
401
401
  couponUseBtnPadding: {},
402
402
  couponImageUrl: "",
403
403
  is_plus_site: false,
404
-
404
+ skipToPay: "",
405
405
  }
406
406
  },
407
407
  watch: {
@@ -416,6 +416,7 @@
416
416
  siteInfo: state => state.siteInfo,
417
417
  }),
418
418
  isShowIcon() {
419
+ if(this.$configProject.isPreview) return true;
419
420
  return this.siteInfo.mapping.is_show_coin_icon==='Y'
420
421
  },
421
422
  bottomFixedStyle(){
@@ -438,6 +439,15 @@
438
439
  return true; //都开启补差
439
440
  // return this.otherPayMethod.find(item => item.method === 'third')
440
441
  },
442
+ //实付展示plus立减的商品价格
443
+ isShowPlusSavingMoneyPrice(){
444
+ //如果是会员
445
+ if(this.isVip) return true;
446
+ else{
447
+ if(this.is_show_vip_card_list === 'Y') return true;
448
+ }
449
+ return false;
450
+ },
441
451
  //是否展示plus立减
442
452
  isShowPlusSavingMoney(){
443
453
  if(this.is_show_vip_card_list === 'Y') return this.vip_card_id;
@@ -784,7 +794,11 @@
784
794
  }
785
795
  this.useTickAndWalletPay(selected_card_list, selected_wallet_list);
786
796
  }else{
787
- this.showCardPay = true;
797
+ if(this.skipToPay === 'N'){
798
+ this.showCardPay = true;
799
+ }else{
800
+ this.useTickAndWalletPay([], []);
801
+ }
788
802
  }
789
803
  }else{
790
804
  this.createSettleOrder({
@@ -916,6 +930,7 @@
916
930
  */
917
931
  init(container) {
918
932
  this.bgColor = this.$colorChange(this.mainColor).alpha(0.1).toString();
933
+ this.skipToPay = getContainerPropsValue(container, 'content.skipToPay', 'N');
919
934
  this.payPath = getContainerPropsValue(container, 'content.payPath', {value: ''}).value;
920
935
  this.paySuccessPath = getContainerPropsValue(container, 'content.paySuccessPath', {value: "/pages/order/success"}).value;
921
936
  this.bindCard = getContainerPropsValue(container,"content.bindCard","1");