gxd-uni-library-editx 1.0.60 → 1.0.62
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
|
@@ -94,6 +94,11 @@
|
|
|
94
94
|
</view>
|
|
95
95
|
|
|
96
96
|
</view>
|
|
97
|
+
|
|
98
|
+
<view class="ticket_add_new" @click="xdDownDrawerNewCard=true">
|
|
99
|
+
<view class="plus_icon">+</view>
|
|
100
|
+
<view>使用新票券</view>
|
|
101
|
+
</view>
|
|
97
102
|
</view>
|
|
98
103
|
<view style="height: 100rpx;"></view>
|
|
99
104
|
<view
|
|
@@ -228,10 +233,14 @@ export default {
|
|
|
228
233
|
type: Array,
|
|
229
234
|
default: () => ([])
|
|
230
235
|
},
|
|
231
|
-
|
|
236
|
+
orderTotalPrice: { //订单总额 单位元
|
|
232
237
|
type: String|Number,
|
|
233
238
|
default: "100"
|
|
234
239
|
},
|
|
240
|
+
orderNeedPayPrice:{
|
|
241
|
+
type: String | Number,
|
|
242
|
+
default: "100"
|
|
243
|
+
},
|
|
235
244
|
jwxSDK: { //JSSDK授权对象
|
|
236
245
|
type: Object,
|
|
237
246
|
},
|
|
@@ -252,11 +261,14 @@ export default {
|
|
|
252
261
|
xdDownDrawer(n){
|
|
253
262
|
this.$emit('update:show', n);
|
|
254
263
|
},
|
|
255
|
-
|
|
264
|
+
orderTotalPrice: {
|
|
256
265
|
handler(n){
|
|
257
|
-
this.
|
|
258
|
-
}
|
|
259
|
-
|
|
266
|
+
this.clearChecked();
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
orderNeedPayPrice(n, o){
|
|
270
|
+
console.log("orderNeedPayPrice", n)
|
|
271
|
+
this.needPayPrice = n;
|
|
260
272
|
},
|
|
261
273
|
xdDownDrawerNewCard(n){
|
|
262
274
|
if(!n){
|
|
@@ -315,6 +327,7 @@ export default {
|
|
|
315
327
|
alert_bottom(){
|
|
316
328
|
return this.fixedStyle({paddingBottom: 24, zIndex: 110})
|
|
317
329
|
},
|
|
330
|
+
|
|
318
331
|
},
|
|
319
332
|
async created(){
|
|
320
333
|
this.switchValidToken();
|
|
@@ -324,7 +337,7 @@ export default {
|
|
|
324
337
|
},
|
|
325
338
|
methods: {
|
|
326
339
|
handleInit(){
|
|
327
|
-
this.total_price = this.$xdUniHelper.multiplyFloatNumber(this.
|
|
340
|
+
this.total_price = this.$xdUniHelper.multiplyFloatNumber(this.orderTotalPrice, 100);
|
|
328
341
|
this.needPayPrice = this.total_price;
|
|
329
342
|
this.getList();
|
|
330
343
|
this.selectedCardList = this.selectedCardList.map(item => {
|
|
@@ -332,6 +345,17 @@ export default {
|
|
|
332
345
|
return item;
|
|
333
346
|
})
|
|
334
347
|
},
|
|
348
|
+
clearChecked(){
|
|
349
|
+
console.log("xdCardPayChose", this.orderTotalPrice)
|
|
350
|
+
this.total_price = this.$xdUniHelper.multiplyFloatNumber(this.orderTotalPrice, 100);
|
|
351
|
+
this.needPayPrice = this.total_price;
|
|
352
|
+
this.cardPayPrice = 0;
|
|
353
|
+
this.selectedCardList = this.selectedCardList.map(item => {
|
|
354
|
+
item['card_use_point'] = 0;
|
|
355
|
+
return item;
|
|
356
|
+
})
|
|
357
|
+
this.doTicketPay();
|
|
358
|
+
},
|
|
335
359
|
divideFloatNumber(num){
|
|
336
360
|
return this.$xdUniHelper.divisionFloatNumber(num, 100);
|
|
337
361
|
},
|
|
@@ -440,7 +464,7 @@ export default {
|
|
|
440
464
|
}else{
|
|
441
465
|
this.selectedCardList = selected_card_list;
|
|
442
466
|
this.needPayPrice = need_pay_price;
|
|
443
|
-
this.cardPayPrice = card_total_use_price
|
|
467
|
+
this.cardPayPrice = card_total_use_price;
|
|
444
468
|
this.renderChecked = Date.now();
|
|
445
469
|
}
|
|
446
470
|
}, (err) => {
|
|
@@ -535,7 +559,7 @@ export default {
|
|
|
535
559
|
this.$xdHideLoading();
|
|
536
560
|
|
|
537
561
|
//成功回调
|
|
538
|
-
let {selected_card_list=[], need_pay_price, is_need_pop} = res;
|
|
562
|
+
let {selected_card_list=[], need_pay_price, is_need_pop, card_total_use_price} = res;
|
|
539
563
|
|
|
540
564
|
if(is_need_pop){
|
|
541
565
|
this.useCardPop(res).then((select_content) => {
|
|
@@ -578,6 +602,7 @@ export default {
|
|
|
578
602
|
this.cardList = selected_card_list.concat(this.cardList);
|
|
579
603
|
this.selectedCardList = selected_card_list.concat(this.selectedCardList);
|
|
580
604
|
this.needPayPrice = need_pay_price;
|
|
605
|
+
this.cardPayPrice = card_total_use_price
|
|
581
606
|
}
|
|
582
607
|
this.xdDownDrawerNewCard = false;
|
|
583
608
|
this.renderChecked = Date.now();
|
|
@@ -699,6 +724,33 @@ export default {
|
|
|
699
724
|
}
|
|
700
725
|
|
|
701
726
|
.ticket_list{
|
|
727
|
+
.ticket_add_new{
|
|
728
|
+
width: 690rpx;
|
|
729
|
+
height: 220rpx;
|
|
730
|
+
border-radius: 10rpx;
|
|
731
|
+
background: rgba(255, 255, 255, 1);
|
|
732
|
+
box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
|
|
733
|
+
margin: 30rpx auto;
|
|
734
|
+
display: flex;
|
|
735
|
+
flex-direction: column;
|
|
736
|
+
align-items: center;
|
|
737
|
+
justify-content: center;
|
|
738
|
+
font-size: 24rpx;
|
|
739
|
+
color: var(--main-color);
|
|
740
|
+
|
|
741
|
+
.plus_icon{
|
|
742
|
+
background-color: var(--main-color);
|
|
743
|
+
color: #FFFFFF;
|
|
744
|
+
border-radius: 20rpx;
|
|
745
|
+
display: flex;
|
|
746
|
+
align-items: center;
|
|
747
|
+
justify-content: center;
|
|
748
|
+
font-size: 48rpx;
|
|
749
|
+
width: 80rpx;
|
|
750
|
+
height: 80rpx;
|
|
751
|
+
margin-bottom: 20rpx;
|
|
752
|
+
}
|
|
753
|
+
}
|
|
702
754
|
.ticket_item{
|
|
703
755
|
width: 690rpx;
|
|
704
756
|
border-radius: 10rpx;
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
showWalletList(){
|
|
71
71
|
let combineList = this.walletList.map(item => {
|
|
72
72
|
let cur = this.selectedWalletList.find(ii => ii.wallet_virtual_number == item.wallet_virtual_number);
|
|
73
|
-
if(cur) return Object.assign(item, cur);
|
|
73
|
+
if(cur) return Object.assign({}, item, cur);
|
|
74
74
|
return item;
|
|
75
75
|
})
|
|
76
76
|
return combineList;
|
|
@@ -103,6 +103,11 @@
|
|
|
103
103
|
})
|
|
104
104
|
},
|
|
105
105
|
methods: {
|
|
106
|
+
clearChecked(){
|
|
107
|
+
this.walletPayPrice = 0;
|
|
108
|
+
this.selectedWalletList = []
|
|
109
|
+
this.handleChose();
|
|
110
|
+
},
|
|
106
111
|
handleChose(){
|
|
107
112
|
let data = {
|
|
108
113
|
walletPayPrice: this.walletPayPrice,
|