jufubao-base 1.0.145-beta12 → 1.0.145-beta14
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 +1 -1
- package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +3 -3
- package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +10 -5
- package/src/components/JfbBaseCardDisabledEntry/cardListMixins.js +15 -1
- package/src/components/JfbBaseEntry/JfbBaseEntry.vue +13 -4
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +0 -1
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
173
|
-
|
|
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,14 +235,16 @@ export default {
|
|
|
233
235
|
vm: this,
|
|
234
236
|
success: (res) => {
|
|
235
237
|
if (res.confirm) {
|
|
236
|
-
let cardIds = this.
|
|
238
|
+
let cardIds = this.cardOrgList.map(item=>{
|
|
237
239
|
return item.card_number + ''
|
|
238
240
|
});
|
|
241
|
+
debugger
|
|
239
242
|
jfbRootExec("batchDisabledCardUnbindEntry", {vm: this, data: {card_numbers: cardIds.join(','),},})
|
|
240
243
|
.then((res) => {
|
|
241
244
|
this.$xdAlert({
|
|
242
245
|
content: "全部失效票券已解绑",
|
|
243
246
|
close: () => {
|
|
247
|
+
this.clearData();
|
|
244
248
|
this.getCardList();
|
|
245
249
|
},
|
|
246
250
|
});
|
|
@@ -275,6 +279,7 @@ export default {
|
|
|
275
279
|
this.$xdAlert({
|
|
276
280
|
content: "票券已解绑",
|
|
277
281
|
close: () => {
|
|
282
|
+
this.clearData();
|
|
278
283
|
this.getCardList();
|
|
279
284
|
},
|
|
280
285
|
});
|
|
@@ -295,7 +300,7 @@ export default {
|
|
|
295
300
|
init(container) {},
|
|
296
301
|
|
|
297
302
|
onJfbBack(options) {
|
|
298
|
-
|
|
303
|
+
this.$xdUniHelper.navigateBack();
|
|
299
304
|
},
|
|
300
305
|
|
|
301
306
|
},
|
|
@@ -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;
|
|
@@ -136,10 +136,18 @@
|
|
|
136
136
|
return item;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
let jumpUrl =
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
139
|
+
let jumpUrl = path;
|
|
140
|
+
//域名相同并且应用路径不相同时候处理
|
|
141
|
+
if(host ===this.projectAttr.host
|
|
142
|
+
&& this.projectAttr['deploy_dir'] !== dir
|
|
143
|
+
){
|
|
144
|
+
jumpUrl = `//${host}/${dir}${path}`;
|
|
145
|
+
//#ifdef MP-WEIXIN
|
|
146
|
+
jumpUrl = `https:${jumpUrl}`;
|
|
147
|
+
//#endif
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
|
|
143
151
|
|
|
144
152
|
if(item['redirect_data']['fixed_business_code'] === '') {
|
|
145
153
|
item['redirect_data']['path'] = `${jumpUrl}?x-common=${nsp}&vs=${new Date().getTime()}`
|
|
@@ -149,6 +157,7 @@
|
|
|
149
157
|
}
|
|
150
158
|
return item;
|
|
151
159
|
});
|
|
160
|
+
console.log( this.entryList)
|
|
152
161
|
if(res.list.length === 1) this.toLink(this.entryList[0]);
|
|
153
162
|
if(res.list.length === 0) {
|
|
154
163
|
this.$xdAlert({content: '当前票券暂无支持服务'})
|