gxd-uni-library-editx 1.0.62 → 1.0.64
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,13 +253,31 @@ 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
|
+
item['card_use_point'] = 0;
|
|
273
|
+
}
|
|
274
|
+
return item;
|
|
275
|
+
})
|
|
276
|
+
|
|
277
|
+
}
|
|
262
278
|
this.$emit('update:show', n);
|
|
279
|
+
this.$emit("onAlert");
|
|
280
|
+
|
|
263
281
|
},
|
|
264
282
|
orderTotalPrice: {
|
|
265
283
|
handler(n){
|
|
@@ -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,28 @@
|
|
|
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
|
+
}else{
|
|
74
|
+
let checkedArr = this.hadChoseWallet.map(w => w.wallet_virtual_number);
|
|
75
|
+
console.log('checkedArr', checkedArr)
|
|
76
|
+
this.selectedWalletList = this.selectedWalletList.filter(item => {
|
|
77
|
+
return checkedArr.incluedes(item.wallet_virtual_number);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
66
81
|
this.$emit('update:show', n);
|
|
67
82
|
},
|
|
68
83
|
},
|
|
@@ -71,6 +86,7 @@
|
|
|
71
86
|
let combineList = this.walletList.map(item => {
|
|
72
87
|
let cur = this.selectedWalletList.find(ii => ii.wallet_virtual_number == item.wallet_virtual_number);
|
|
73
88
|
if(cur) return Object.assign({}, item, cur);
|
|
89
|
+
else item['wallet_use_price'] = 0;
|
|
74
90
|
return item;
|
|
75
91
|
})
|
|
76
92
|
return combineList;
|
|
@@ -141,7 +157,7 @@
|
|
|
141
157
|
return item.wallet_virtual_number != row.wallet_virtual_number
|
|
142
158
|
})
|
|
143
159
|
this.walletPayPrice = this.walletPayPrice - row.wallet_use_price;
|
|
144
|
-
this.$set(row, "wallet_use_price", 0);
|
|
160
|
+
// this.$set(row, "wallet_use_price", 0);
|
|
145
161
|
}
|
|
146
162
|
},
|
|
147
163
|
fixedStyle(options = {}, type = 'bottom') {
|