jufubao-base 1.0.145 → 1.0.146-beta32

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": "jufubao-base",
3
- "version": "1.0.145",
3
+ "version": "1.0.146-beta32",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -391,6 +391,10 @@ export default {
391
391
  },
392
392
 
393
393
  setReceiptRegionName() {
394
+ console.log(this.level,'apapappap');
395
+ this.city_name = this.city_name.splice(0, this.level+1);
396
+ this.city_code = this.city_code.splice(0, this.level+1);
397
+ // this.city_selected_data = this.city_selected_data.splice(0, this.level+1);
394
398
  this.receipt_region_name = this.city_name.join(this.citySeparator);
395
399
  },
396
400
 
@@ -423,10 +427,10 @@ export default {
423
427
  },
424
428
 
425
429
  selectCity(item) {
430
+ console.log(this.maxLevel,'this.maxLevel');
426
431
  if (this.level < this.maxLevel - 1) {
427
432
  this.level++;
428
433
  }
429
-
430
434
  //保存信息
431
435
  this.$set(this.city_name, this.level, item.label);
432
436
  this.$set(this.city_code, this.level, item.value);
@@ -121,7 +121,7 @@ export default {
121
121
  },
122
122
  created() {
123
123
  this.init(this.container);
124
-
124
+
125
125
  },
126
126
  methods: {
127
127
  onJfbLoad(options) {
@@ -195,9 +195,9 @@ export default {
195
195
  * @param container {object} 业务组件对象自己
196
196
  */
197
197
  init(container) {},
198
-
198
+
199
199
  onJfbBack(options) {
200
- console.log("event.onJfbBack", options);
200
+ this.$xdUniHelper.navigateBack();
201
201
  },
202
202
  },
203
203
  };
@@ -41,7 +41,7 @@
41
41
  <div class="card-list__content">
42
42
  <view>
43
43
  <text>券号:</text>
44
- <text>{{item.card_number}}</text>
44
+ <text>{{item.card_number}}{{isShowIndex?`--${item.index}`:''}}</text>
45
45
  </view>
46
46
  </div>
47
47
  <view class="card-list__date">
@@ -169,8 +169,8 @@ export default {
169
169
  mixins: [componentsMixins, extsMixins, JfbBaseCardDisabledEntryMixin, colorCardMixins, cardListMixins],
170
170
  data() {
171
171
  return {
172
- disableList: [],
173
- isShowUnbind: false
172
+ isShowUnbind: false,
173
+ isShowIndex:false,
174
174
  };
175
175
  },
176
176
  computed:{
@@ -191,9 +191,11 @@ export default {
191
191
  },
192
192
  methods: {
193
193
  onJfbLoad(options) {
194
+ this.isShowIndex = options['show_index'] === '1';
194
195
  this.getCardList();
195
196
  },
196
197
 
198
+
197
199
  getCardList() {
198
200
  this.$xdShowLoading({});
199
201
  jfbRootExec("getDisableCardListEntry", {vm: this, data: {is_all: "Y", is_show_entry_settings: 'Y'},})
@@ -233,7 +235,7 @@ export default {
233
235
  vm: this,
234
236
  success: (res) => {
235
237
  if (res.confirm) {
236
- let cardIds = this.disableList.map(item=>{
238
+ let cardIds = this.cardOrgList.map(item=>{
237
239
  return item.card_number + ''
238
240
  });
239
241
  jfbRootExec("batchDisabledCardUnbindEntry", {vm: this, data: {card_numbers: cardIds.join(','),},})
@@ -241,6 +243,7 @@ export default {
241
243
  this.$xdAlert({
242
244
  content: "全部失效票券已解绑",
243
245
  close: () => {
246
+ this.clearData();
244
247
  this.getCardList();
245
248
  },
246
249
  });
@@ -275,6 +278,7 @@ export default {
275
278
  this.$xdAlert({
276
279
  content: "票券已解绑",
277
280
  close: () => {
281
+ this.clearData();
278
282
  this.getCardList();
279
283
  },
280
284
  });
@@ -295,7 +299,7 @@ export default {
295
299
  init(container) {},
296
300
 
297
301
  onJfbBack(options) {
298
- console.log("event.onJfbBack", options);
302
+ this.$xdUniHelper.navigateBack();
299
303
  },
300
304
 
301
305
  },
@@ -65,6 +65,19 @@ export default {
65
65
 
66
66
  },
67
67
 
68
+ clearData(){
69
+ this.ajaxCardList = null;
70
+ this.cardOrgList = []
71
+ this.cardList = null;
72
+ this.cardPageNum = 0;
73
+ this.cardComputedList = [];
74
+ this.cardLoading = false;
75
+ this.cardNextTop = 0;
76
+ this.cardIndex = 0;
77
+ this.contentStatus = false;
78
+ this.hasContent = true;
79
+ },
80
+
68
81
  async handleCardComputed(paddingBottom=30){
69
82
  this.$xdShowLoading({});
70
83
  if(this.contentStatus === false) await this.getBoxTop();
@@ -83,7 +96,6 @@ export default {
83
96
  return card
84
97
  });
85
98
  this.cardList = (this.cardList||[]).concat(arr);
86
- this.cardPageNum++;
87
99
  this.$xdHideLoading();
88
100
  }).exec();
89
101
  })
@@ -102,6 +114,7 @@ export default {
102
114
  this.cardPageNum*this.cardPageLen,
103
115
  this.cardPageNum*this.cardPageLen + this.cardPageLen
104
116
  );
117
+ console.warn(`无效卡张数:${validCardList.length} 张,页码:第 ${this.cardPageNum} 页`);
105
118
  if(this.cardComputedList.length < this.cardPageLen) {
106
119
  this.hasContent = false;
107
120
  }
@@ -120,6 +133,7 @@ export default {
120
133
  this.cardPageNum*this.cardPageLen,
121
134
  this.cardPageNum*this.cardPageLen + this.cardPageLen
122
135
  );
136
+ console.warn(`无效卡张数:${this.cardOrgList.length} 张,页码:第 ${this.cardPageNum} 页`);
123
137
  this.handleCardComputed().then().catch();
124
138
  if(this.cardComputedList.length < this.cardPageLen) {
125
139
  this.hasContent = false;