jufubao-base 1.0.311-beta4 → 1.0.311-beta6
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/JfbBaseCardInfo/Attr.js +14 -2
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +8 -10
- package/src/components/JfbBaseCardInfoEntry/Attr.js +14 -2
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +7 -10
- package/src/components/JfbBaseCardSweepInfo/Attr.js +14 -2
- package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfo.vue +17 -2
package/package.json
CHANGED
|
@@ -5,11 +5,23 @@ export default {
|
|
|
5
5
|
advanced: [],
|
|
6
6
|
content: [
|
|
7
7
|
{
|
|
8
|
-
label: '
|
|
8
|
+
label: '票券绑定成功回跳票券列表地址:',
|
|
9
9
|
ele: 'xd-select-pages-path',
|
|
10
10
|
valueKey: 'back_url',
|
|
11
11
|
groupKey:'advanced',
|
|
12
|
-
placeholder: '
|
|
12
|
+
placeholder: '请选择票券绑定成功回跳票券列表地址',
|
|
13
|
+
value: null,
|
|
14
|
+
setting: {
|
|
15
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
16
|
+
},
|
|
17
|
+
inline: false,
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
label: '票券绑定成功回跳票券详情地址:',
|
|
21
|
+
ele: 'xd-select-pages-path',
|
|
22
|
+
valueKey: 'back_detail_url',
|
|
23
|
+
groupKey:'advanced',
|
|
24
|
+
placeholder: '请选择票券绑定成功回跳票券详情地址',
|
|
13
25
|
value: null,
|
|
14
26
|
setting: {
|
|
15
27
|
router: XdBus.getParentApi('getPagesTree'),
|
|
@@ -162,7 +162,7 @@ export default {
|
|
|
162
162
|
backUrl: "",
|
|
163
163
|
is_show_balance: "N", //是否显示余额
|
|
164
164
|
my_card_url: "", //我的票券跳转地址
|
|
165
|
-
|
|
165
|
+
back_detail_url:"",//详情页地址
|
|
166
166
|
inCallbackUrlOrg:'',//是否带有回调地址
|
|
167
167
|
|
|
168
168
|
card_password_focus: false,
|
|
@@ -254,7 +254,10 @@ export default {
|
|
|
254
254
|
if(this.qrcode&&this.info.card_number){
|
|
255
255
|
card_number = this.info.card_number;
|
|
256
256
|
}
|
|
257
|
-
let path = this.getUrlCallback(this.my_card_url || this.backUrl)
|
|
257
|
+
let path = this.getUrlCallback(this.my_card_url || this.backUrl);
|
|
258
|
+
if(res.jump_page==='detail'){
|
|
259
|
+
path = this.getUrlCallback(this.back_detail_url)+`?card_number=${card_number}`;
|
|
260
|
+
}
|
|
258
261
|
//有优惠券处理
|
|
259
262
|
if(this.hasCon){
|
|
260
263
|
this.toShowCouponDialog();
|
|
@@ -282,13 +285,6 @@ export default {
|
|
|
282
285
|
|
|
283
286
|
//卡券已被自己绑定时的弹框
|
|
284
287
|
handleBindConfirm(){
|
|
285
|
-
let card_number
|
|
286
|
-
if(this.card_number){
|
|
287
|
-
card_number = this.card_number;
|
|
288
|
-
}
|
|
289
|
-
if(this.qrcode&&this.info.card_number){
|
|
290
|
-
card_number = this.info.card_number;
|
|
291
|
-
}
|
|
292
288
|
this.$xdConfirm({
|
|
293
289
|
styles: this.styles,
|
|
294
290
|
width: '90%',
|
|
@@ -298,7 +294,8 @@ export default {
|
|
|
298
294
|
showClose: false,
|
|
299
295
|
success: (res) => {
|
|
300
296
|
if (res.confirm) {
|
|
301
|
-
let path = this.getUrlCallback(this.my_card_url || this.backUrl)
|
|
297
|
+
let path = this.getUrlCallback(this.my_card_url || this.backUrl);
|
|
298
|
+
|
|
302
299
|
this.$xdUniHelper.redirectTo({ url: path});
|
|
303
300
|
}else{
|
|
304
301
|
}
|
|
@@ -307,6 +304,7 @@ export default {
|
|
|
307
304
|
},
|
|
308
305
|
init(container) {
|
|
309
306
|
this.backUrl = getContainerPropsValue(container, "content.back_url", { value: "/pages/card/card" }).value;
|
|
307
|
+
this.back_detail_url = getContainerPropsValue(container, "content.back_detail_url", { value: "" }).value;
|
|
310
308
|
this.card_num_placeholder = getContainerPropsValue(container, "content.card_num_placeholder", "请输入券号(电子券除外)");
|
|
311
309
|
this.card_pwd_placeholder = getContainerPropsValue(container, "content.card_pwd_placeholder", "请输入密码");
|
|
312
310
|
this.is_show_balance = getContainerPropsValue(container, 'content.is_show_balance', "N");
|
|
@@ -69,11 +69,23 @@ export default {
|
|
|
69
69
|
]
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
|
-
label: '
|
|
72
|
+
label: '票券绑定成功回跳票券列表地址:',
|
|
73
73
|
ele: 'xd-select-pages-path',
|
|
74
74
|
valueKey: 'back_url',
|
|
75
75
|
groupKey:'advanced',
|
|
76
|
-
placeholder: '
|
|
76
|
+
placeholder: '请选择票券绑定成功回跳票券列表地址',
|
|
77
|
+
value: null,
|
|
78
|
+
setting: {
|
|
79
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
80
|
+
},
|
|
81
|
+
inline: false,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
label: '票券绑定成功回跳票券详情地址:',
|
|
85
|
+
ele: 'xd-select-pages-path',
|
|
86
|
+
valueKey: 'back_detail_url',
|
|
87
|
+
groupKey:'advanced',
|
|
88
|
+
placeholder: '请选择票券绑定成功回跳票券详情地址',
|
|
77
89
|
value: null,
|
|
78
90
|
setting: {
|
|
79
91
|
router: XdBus.getParentApi('getPagesTree'),
|
|
@@ -166,6 +166,7 @@ export default {
|
|
|
166
166
|
|
|
167
167
|
//页面跳转地址
|
|
168
168
|
backUrl: "",
|
|
169
|
+
back_detail_url: "",//票券详情跳转地址
|
|
169
170
|
headerBg: {},
|
|
170
171
|
my_card_url: "", //我的票券跳转地址
|
|
171
172
|
inCallbackUrlOrg:'',//是否带有回调地址
|
|
@@ -273,11 +274,14 @@ export default {
|
|
|
273
274
|
if(this.qrcode&&this.info.card_number){
|
|
274
275
|
card_number = this.info.card_number;
|
|
275
276
|
}
|
|
277
|
+
let path = this.getUrlCallback(this.my_card_url || this.backUrl);
|
|
278
|
+
if(res.jump_page==='detail'){
|
|
279
|
+
path = this.getUrlCallback(this.back_detail_url)+`?card_number=${card_number}`;
|
|
280
|
+
}
|
|
276
281
|
if(this.hasCon){
|
|
277
282
|
this.toShowCouponDialog();
|
|
278
283
|
this.$bus.$on("onCloseConDialog",(container_id) => {
|
|
279
284
|
if(container_id === this.hasCon){
|
|
280
|
-
let path = this.getUrlCallback(this.backUrl)+`?card_number=${card_number}`
|
|
281
285
|
this.$xdUniHelper.redirectTo({
|
|
282
286
|
url: path,
|
|
283
287
|
});
|
|
@@ -287,7 +291,6 @@ export default {
|
|
|
287
291
|
this.$xdAlert({
|
|
288
292
|
content: "票券绑定成功",
|
|
289
293
|
close: () => {
|
|
290
|
-
let path = this.getUrlCallback(this.backUrl)+`?card_number=${card_number}`
|
|
291
294
|
this.$xdUniHelper.redirectTo({
|
|
292
295
|
url: path,
|
|
293
296
|
});
|
|
@@ -297,13 +300,6 @@ export default {
|
|
|
297
300
|
},
|
|
298
301
|
//卡券已被自己绑定时的弹框
|
|
299
302
|
handleBindConfirm(){
|
|
300
|
-
let card_number
|
|
301
|
-
if(this.card_number){
|
|
302
|
-
card_number = this.card_number;
|
|
303
|
-
}
|
|
304
|
-
if(this.qrcode&&this.info.card_number){
|
|
305
|
-
card_number = this.info.card_number;
|
|
306
|
-
}
|
|
307
303
|
this.$xdConfirm({
|
|
308
304
|
styles: this.styles,
|
|
309
305
|
width: '90%',
|
|
@@ -313,7 +309,7 @@ export default {
|
|
|
313
309
|
showClose: false,
|
|
314
310
|
success: (res) => {
|
|
315
311
|
if (res.confirm) {
|
|
316
|
-
let path = this.getUrlCallback(this.my_card_url || this.backUrl)
|
|
312
|
+
let path = this.getUrlCallback(this.my_card_url || this.backUrl)
|
|
317
313
|
this.$xdUniHelper.redirectTo({
|
|
318
314
|
url: path,
|
|
319
315
|
});
|
|
@@ -324,6 +320,7 @@ export default {
|
|
|
324
320
|
},
|
|
325
321
|
init(container) {
|
|
326
322
|
this.backUrl = getContainerPropsValue(container, "content.back_url", { value: "/pages/card/card" }).value;
|
|
323
|
+
this.back_detail_url = getContainerPropsValue(container, "content.back_detail_url", { value: "" }).value;
|
|
327
324
|
this.card_num_placeholder = getContainerPropsValue(container, "content.card_num_placeholder", "请输入券号(电子券除外)");
|
|
328
325
|
this.card_pwd_placeholder = getContainerPropsValue(container, "content.card_pwd_placeholder", "请输入密码");
|
|
329
326
|
this.my_card_url = getContainerPropsValue(container, 'content.my_card_url', { value: "" }).value;
|
|
@@ -5,11 +5,23 @@ export default {
|
|
|
5
5
|
advanced: [],
|
|
6
6
|
content: [
|
|
7
7
|
{
|
|
8
|
-
label: '
|
|
8
|
+
label: '票券绑定成功回跳票券列表地址:',
|
|
9
9
|
ele: 'xd-select-pages-path',
|
|
10
10
|
valueKey: 'back_url',
|
|
11
11
|
groupKey:'advanced',
|
|
12
|
-
placeholder: '
|
|
12
|
+
placeholder: '请选择票券绑定成功回跳票券列表地址',
|
|
13
|
+
value: null,
|
|
14
|
+
setting: {
|
|
15
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
16
|
+
},
|
|
17
|
+
inline: false,
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
label: '票券绑定成功回跳票券详情地址:',
|
|
21
|
+
ele: 'xd-select-pages-path',
|
|
22
|
+
valueKey: 'back_detail_url',
|
|
23
|
+
groupKey:'advanced',
|
|
24
|
+
placeholder: '请选择票券绑定成功回跳票券详情地址',
|
|
13
25
|
value: null,
|
|
14
26
|
setting: {
|
|
15
27
|
router: XdBus.getParentApi('getPagesTree'),
|
|
@@ -106,10 +106,11 @@ export default {
|
|
|
106
106
|
pa: "", //二维码
|
|
107
107
|
//页面跳转地址
|
|
108
108
|
backUrl: "",
|
|
109
|
-
|
|
109
|
+
back_detail_url: "",//票券绑定成功回跳票券详情地址
|
|
110
110
|
inCallbackUrlOrg:'',//是否带有回调地址
|
|
111
111
|
is_show_balance: "N", //是否显示余额
|
|
112
112
|
hasCon: "", //是否有优惠券
|
|
113
|
+
card_number: "", //票券号码
|
|
113
114
|
};
|
|
114
115
|
},
|
|
115
116
|
watch: {
|
|
@@ -164,6 +165,9 @@ export default {
|
|
|
164
165
|
//#ifdef H5
|
|
165
166
|
let base = this.jfbAuthorize.getBasePath(this);
|
|
166
167
|
let url = `${location.origin}${base}${this.backUrl}`;
|
|
168
|
+
if(res.jump_page==='detail'){
|
|
169
|
+
url = `${location.origin}${base}${this.back_detail_url}`+`?card_number=${this.card_number}`;
|
|
170
|
+
}
|
|
167
171
|
url = this.getUrlCallback(url)
|
|
168
172
|
this.$xdLog.setARMSInfo({url}, 'static_qr_card_bind');
|
|
169
173
|
|
|
@@ -173,7 +177,10 @@ export default {
|
|
|
173
177
|
// #endif
|
|
174
178
|
|
|
175
179
|
//#ifndef H5
|
|
176
|
-
let wPath = this.getUrlCallback(this.backUrl)
|
|
180
|
+
let wPath = this.getUrlCallback(this.backUrl);
|
|
181
|
+
if(res.jump_page==='detail'){
|
|
182
|
+
wPath = this.getUrlCallback(this.back_detail_url)+`?card_number=${this.card_number}`;
|
|
183
|
+
}
|
|
177
184
|
this.$xdUniHelper.redirectTo({
|
|
178
185
|
url:wPath,
|
|
179
186
|
});
|
|
@@ -187,6 +194,9 @@ export default {
|
|
|
187
194
|
//#ifdef H5
|
|
188
195
|
let base = this.jfbAuthorize.getBasePath(this);
|
|
189
196
|
let url = `${location.origin}${base}${this.backUrl}`;
|
|
197
|
+
if(res.jump_page==='detail'){
|
|
198
|
+
url = `${location.origin}${base}${this.back_detail_url}`+`?card_number=${this.card_number}`;
|
|
199
|
+
}
|
|
190
200
|
url = this.getUrlCallback(url)
|
|
191
201
|
this.$xdLog.setARMSInfo({url}, 'static_qr_card_bind');
|
|
192
202
|
|
|
@@ -197,6 +207,9 @@ export default {
|
|
|
197
207
|
|
|
198
208
|
//#ifndef H5
|
|
199
209
|
let wPath = this.getUrlCallback(this.backUrl)
|
|
210
|
+
if(res.jump_page==='detail'){
|
|
211
|
+
wPath = this.getUrlCallback(this.back_detail_url)+`?card_number=${this.card_number}`
|
|
212
|
+
}
|
|
200
213
|
this.$xdUniHelper.redirectTo({
|
|
201
214
|
url:wPath,
|
|
202
215
|
});
|
|
@@ -212,6 +225,7 @@ export default {
|
|
|
212
225
|
},
|
|
213
226
|
init() {
|
|
214
227
|
this.backUrl = getContainerPropsValue( this.container, "content.back_url", { value: "" }).value;
|
|
228
|
+
this.back_detail_url = getContainerPropsValue( this.container, "content.back_detail_url", { value: "" }).value;
|
|
215
229
|
this.is_show_balance = getContainerPropsValue(this.container, 'content.is_show_balance', "N");
|
|
216
230
|
},
|
|
217
231
|
onJfbLoad(options) {
|
|
@@ -239,6 +253,7 @@ export default {
|
|
|
239
253
|
})
|
|
240
254
|
.then((res) => {
|
|
241
255
|
console.log('getSweepByQrCardDetail',res)
|
|
256
|
+
this.card_number = res.card_number;
|
|
242
257
|
res.is_exchange_name = res.is_exchange === "Y" ? "可转换" : "不可转换";
|
|
243
258
|
let temp = {};
|
|
244
259
|
Object.keys(res).map((key) => {
|