gxd-uni-library-editx 1.0.192 → 1.0.193

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.192",
3
+ "version": "1.0.193",
4
4
  "private": false,
5
5
  "description": "聚福宝基础插件专用库",
6
6
  "main": "index.js",
@@ -143,19 +143,22 @@
143
143
  this.$emit("onInit", res.total_amount)
144
144
 
145
145
  if(this.defaultUseFirst){
146
- if(this.showWalletList.length===0) return;
147
146
  setTimeout(() => {
148
- let item = this.showWalletList[0];
149
- if(item.amount <= 0) return;
150
- this.handleChange(true, item, () => {
151
- this.handleChose();
152
- }, true);
147
+ this.handleChoseDefault();
153
148
  }, 300)
154
149
  }
155
150
 
156
151
  })
157
152
  },
158
153
  methods: {
154
+ handleChoseDefault(){
155
+ if(this.showWalletList.length===0) return;
156
+ let item = this.showWalletList[0];
157
+ if(item.amount <= 0) return;
158
+ this.handleChange(true, item, () => {
159
+ this.handleChose();
160
+ }, true);
161
+ },
159
162
  clearChecked(){
160
163
  this.walletPayPrice = 0;
161
164
  this.selectedWalletList = []