jufubao-base 1.0.140-beta4 → 1.0.140
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
|
@@ -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 =
|
|
606
|
+
this.tabIndex = 1;
|
|
607
|
+
this.disableList = [];
|
|
608
|
+
this.changeList=[];
|
|
609
|
+
this.showList = [];
|
|
610
|
+
debugger
|
|
602
611
|
this.onJfbLoad(options);
|
|
603
612
|
},
|
|
604
613
|
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
<view class="card-list__content">
|
|
177
177
|
<view>
|
|
178
178
|
<text>券号:</text>
|
|
179
|
-
<text>{{item.card_number}}</text>
|
|
179
|
+
<text>{{item.card_number}}{{showIndex?(':' + index):''}}</text>
|
|
180
180
|
</view>
|
|
181
181
|
<view @click.stop="toDetail(item)" v-if="isShowCode === 'Y'">
|
|
182
182
|
<view>
|
|
@@ -453,6 +453,7 @@ export default {
|
|
|
453
453
|
//cardLayout: "1", //票券布局
|
|
454
454
|
showDisabled: 'Y',
|
|
455
455
|
showCardList: false,
|
|
456
|
+
showIndex:false,
|
|
456
457
|
|
|
457
458
|
//活动
|
|
458
459
|
dialogEvent: false,
|
|
@@ -663,6 +664,7 @@ export default {
|
|
|
663
664
|
},
|
|
664
665
|
|
|
665
666
|
onJfbLoad(options) {
|
|
667
|
+
if(options['x-test'] === 'jfb-console') this.showIndex = true;
|
|
666
668
|
this.options = options;
|
|
667
669
|
let { inCallback } = options;
|
|
668
670
|
if(!inCallback) this.$storage.remove("inCallback"); //作为入口
|