gxd-uni-library-editx 1.0.63 → 1.0.65
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,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="xd-card-pay">
|
|
3
3
|
<slot></slot>
|
|
4
|
-
<xd-down-drawer :show.sync="xdDownDrawer"
|
|
4
|
+
<xd-down-drawer :show.sync="xdDownDrawer" :isBodyClose="false"
|
|
5
5
|
:z-index="3000">
|
|
6
6
|
<view style="height: 80rpx;background:#FFF;"></view>
|
|
7
7
|
<view class="jfb-cashier-verification-pay__body">
|
|
@@ -253,14 +253,32 @@ export default {
|
|
|
253
253
|
addSettleCard: { //添加卡券
|
|
254
254
|
type: Function
|
|
255
255
|
},
|
|
256
|
+
hadChoseCard: {
|
|
257
|
+
type: null | Array,
|
|
258
|
+
}
|
|
256
259
|
},
|
|
257
260
|
watch: {
|
|
258
261
|
show(n, o){
|
|
259
262
|
this.xdDownDrawer = n;
|
|
260
263
|
},
|
|
261
|
-
xdDownDrawer(n){
|
|
264
|
+
xdDownDrawer(n, o){
|
|
265
|
+
console.log('xdDownDrawer value', n, o);
|
|
266
|
+
if(n){
|
|
267
|
+
console.log(this.hadChoseCard);
|
|
268
|
+
let checkedArr = (this.hadChoseCard || []).map(c => c.card_number);
|
|
269
|
+
this.selectedCardList = this.selectedCardList.map(item => {
|
|
270
|
+
if(!checkedArr.includes(item.card_number)){
|
|
271
|
+
this.needPayPrice = +this.needPayPrice + item['card_use_price'];
|
|
272
|
+
this.cardPayPrice = this.cardPayPrice - item.card_use_price;
|
|
273
|
+
item['card_use_point'] = 0;
|
|
274
|
+
}
|
|
275
|
+
return item;
|
|
276
|
+
})
|
|
277
|
+
|
|
278
|
+
}
|
|
262
279
|
this.$emit('update:show', n);
|
|
263
|
-
this.$emit("onAlert")
|
|
280
|
+
this.$emit("onAlert");
|
|
281
|
+
|
|
264
282
|
},
|
|
265
283
|
orderTotalPrice: {
|
|
266
284
|
handler(n){
|
|
@@ -840,4 +858,4 @@ export default {
|
|
|
840
858
|
}
|
|
841
859
|
}
|
|
842
860
|
}
|
|
843
|
-
</style>
|
|
861
|
+
</style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="xd-wallet-chose">
|
|
3
|
-
<xd-down-drawer :show.sync="xdDownDrawer">
|
|
3
|
+
<xd-down-drawer :show.sync="xdDownDrawer" :isBodyClose="false">
|
|
4
4
|
<view class="title" >请选择{{showName}}</view>
|
|
5
5
|
<view class="wallet_body">
|
|
6
6
|
<view class="wallet_total">
|
|
@@ -56,13 +56,32 @@
|
|
|
56
56
|
},
|
|
57
57
|
useBindedWallet: {
|
|
58
58
|
type: Function
|
|
59
|
+
},
|
|
60
|
+
hadChoseWallet:{
|
|
61
|
+
type: null | Array
|
|
59
62
|
}
|
|
60
63
|
},
|
|
61
64
|
watch: {
|
|
62
65
|
show(n, o){
|
|
63
66
|
this.xdDownDrawer = n;
|
|
64
67
|
},
|
|
65
|
-
xdDownDrawer(n){
|
|
68
|
+
xdDownDrawer(n, o){
|
|
69
|
+
console.log('xdDownDrawer show', n, o, this.hadChoseWallet);
|
|
70
|
+
if(n){
|
|
71
|
+
if(!this.hadChoseWallet){
|
|
72
|
+
this.selectedWalletList = [];
|
|
73
|
+
this.walletPayPrice = 0;
|
|
74
|
+
}else{
|
|
75
|
+
let checkedArr = this.hadChoseWallet.map(w => w.wallet_virtual_number);
|
|
76
|
+
this.selectedWalletList = this.selectedWalletList.map(item => {
|
|
77
|
+
if(!checkedArr.includes(item.wallet_virtual_number)){
|
|
78
|
+
this.walletPayPrice = this.walletPayPrice - item.wallet_use_price;
|
|
79
|
+
item['wallet_use_price'] = 0;
|
|
80
|
+
}
|
|
81
|
+
return item;
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
66
85
|
this.$emit('update:show', n);
|
|
67
86
|
},
|
|
68
87
|
},
|
|
@@ -71,6 +90,7 @@
|
|
|
71
90
|
let combineList = this.walletList.map(item => {
|
|
72
91
|
let cur = this.selectedWalletList.find(ii => ii.wallet_virtual_number == item.wallet_virtual_number);
|
|
73
92
|
if(cur) return Object.assign({}, item, cur);
|
|
93
|
+
else item['wallet_use_price'] = 0;
|
|
74
94
|
return item;
|
|
75
95
|
})
|
|
76
96
|
return combineList;
|
|
@@ -141,7 +161,7 @@
|
|
|
141
161
|
return item.wallet_virtual_number != row.wallet_virtual_number
|
|
142
162
|
})
|
|
143
163
|
this.walletPayPrice = this.walletPayPrice - row.wallet_use_price;
|
|
144
|
-
this.$set(row, "wallet_use_price", 0);
|
|
164
|
+
// this.$set(row, "wallet_use_price", 0);
|
|
145
165
|
}
|
|
146
166
|
},
|
|
147
167
|
fixedStyle(options = {}, type = 'bottom') {
|