jufubao-base 1.0.140-beta3 → 1.0.140-beta5

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.140-beta3",
3
+ "version": "1.0.140-beta5",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -156,7 +156,7 @@
156
156
  <view>{{ item.card_type_name }}</view>
157
157
  </view>
158
158
  <view>
159
- <view>{{ item.card_number }}</view>
159
+ <view>{{ item.card_number }}{{showIndex?(':' + index):''}}</view>
160
160
  <view>有效期至:{{ item.end_time }}</view>
161
161
  </view>
162
162
  </view>
@@ -307,6 +307,7 @@ export default {
307
307
  disableList: [], //不可用卡列表
308
308
  inCallback: null, //内部跳转地址
309
309
  loadingCardList: true,
310
+ showIndex: false,
310
311
 
311
312
  //页面跳转地址
312
313
  login_name:'',//登录文案
@@ -526,6 +527,7 @@ export default {
526
527
 
527
528
  onJfbLoad(options) {
528
529
  this.options = options;
530
+ if(options['x-test'] === 'jfb-console') this.showIndex = true;
529
531
  let { inCallback } = options;
530
532
  if(!inCallback) this.$storage.remove("inCallback"); //作为入口
531
533
  else {
@@ -577,12 +579,15 @@ export default {
577
579
  item['index'] = index;
578
580
  return item
579
581
  });
582
+ console.warn(`cardList:${this.cardList.length}`)
580
583
  this.disableList = res.list.filter((item) => {
581
584
  return item["is_valid"] === "N";
582
585
  });
586
+ console.warn(`disableList:${this.disableList.length}`)
583
587
  this.changeList = this.cardList.filter((item) => {
584
588
  return item["is_exchange"] === "Y";
585
589
  })
590
+ console.warn(`changeList:${this.changeList.length}`)
586
591
  this.showList = this.getPageCardContent(this.cardList);
587
592
  if(this.hasContent) this.offsetIndex++;
588
593
  this.$xdHideLoading();
@@ -598,7 +603,11 @@ export default {
598
603
  onJfbShow(options) {
599
604
  this.offsetIndex = 0;
600
605
  this.hasContent = true;
601
- this.tabIndex = 0;
606
+ this.tabIndex = 1;
607
+ this.disableList = [];
608
+ this.changeList=[];
609
+ this.showList = [];
610
+ debugger
602
611
  this.onJfbLoad(options);
603
612
  },
604
613
 
@@ -216,7 +216,7 @@ export default {
216
216
  //设置列表
217
217
  this.ajaxCardList = res;
218
218
  this.handleCardInit(this.ajaxCardList);
219
-
219
+ this.cardPageNum = 1;
220
220
  this.$xdHideLoading();
221
221
  })
222
222
  .catch(() => this.$xdHideLoading());
@@ -150,6 +150,7 @@
150
150
  </view>
151
151
  </view>
152
152
  </view>
153
+
153
154
  <template v-else>
154
155
  <view
155
156
  v-if="tabIndex === 2 || tabIndex === 1 && (cardList && cardList.length > 0)"
@@ -175,7 +176,7 @@
175
176
  <view class="card-list__content">
176
177
  <view>
177
178
  <text>券号:</text>
178
- <text>{{item.card_number}}</text>
179
+ <text>{{item.card_number}}{{showIndex?(':' + index):''}}</text>
179
180
  </view>
180
181
  <view @click.stop="toDetail(item)" v-if="isShowCode === 'Y'">
181
182
  <view>
@@ -285,6 +286,7 @@
285
286
  ></xd-font-icon>
286
287
  </view>
287
288
  </view>
289
+
288
290
  <view class="computed-height" >
289
291
  <view
290
292
  v-for="(item,index) in cardComputedList"
@@ -416,6 +418,7 @@ export default {
416
418
  },
417
419
  tabIndex(){
418
420
  this.clearDefault();
421
+ this.cardPageNum = 0;
419
422
  this.onJfbLoad(this.options);
420
423
  }
421
424
  },
@@ -450,6 +453,7 @@ export default {
450
453
  //cardLayout: "1", //票券布局
451
454
  showDisabled: 'Y',
452
455
  showCardList: false,
456
+ showIndex:false,
453
457
 
454
458
  //活动
455
459
  dialogEvent: false,
@@ -660,6 +664,7 @@ export default {
660
664
  },
661
665
 
662
666
  onJfbLoad(options) {
667
+ if(options['x-test'] === 'jfb-console') this.showIndex = true;
663
668
  this.options = options;
664
669
  let { inCallback } = options;
665
670
  if(!inCallback) this.$storage.remove("inCallback"); //作为入口
@@ -712,9 +717,8 @@ export default {
712
717
  this.hasChangeStatus = this.getCardGroupItem(this.ajaxCardList.list.filter((item) => {
713
718
  return item["is_exchange"] === "Y";
714
719
  }), res['site_entry_settings']).length > 0;
715
-
716
-
717
720
  this.handleCardInit(this.ajaxCardList, this.tabIndex === 1);
721
+ this.cardPageNum = 1;
718
722
  this.$xdHideLoading();
719
723
  })
720
724
  .catch(() => this.$xdHideLoading());