gxd-uni-library-editx 1.0.60 → 1.0.61

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": "gxd-uni-library-editx",
3
- "version": "1.0.60",
3
+ "version": "1.0.61",
4
4
  "private": false,
5
5
  "description": "聚福宝基础插件专用库",
6
6
  "main": "index.js",
@@ -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
- price: { //订单总额 单位元
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
- price: {
264
+ orderTotalPrice: {
256
265
  handler(n){
257
- this.needPayPrice = this.$xdUniHelper.multiplyFloatNumber(n, 100);
258
- },
259
- immediate: true
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.price, 100);
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
  },
@@ -699,6 +723,33 @@ export default {
699
723
  }
700
724
 
701
725
  .ticket_list{
726
+ .ticket_add_new{
727
+ width: 690rpx;
728
+ height: 220rpx;
729
+ border-radius: 10rpx;
730
+ background: rgba(255, 255, 255, 1);
731
+ box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
732
+ margin: 30rpx auto;
733
+ display: flex;
734
+ flex-direction: column;
735
+ align-items: center;
736
+ justify-content: center;
737
+ font-size: 24rpx;
738
+ color: var(--main-color);
739
+
740
+ .plus_icon{
741
+ background-color: var(--main-color);
742
+ color: #FFFFFF;
743
+ border-radius: 20rpx;
744
+ display: flex;
745
+ align-items: center;
746
+ justify-content: center;
747
+ font-size: 48rpx;
748
+ width: 80rpx;
749
+ height: 80rpx;
750
+ margin-bottom: 20rpx;
751
+ }
752
+ }
702
753
  .ticket_item{
703
754
  width: 690rpx;
704
755
  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,