jufubao-base 1.0.311-beta3 → 1.0.311-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 +1 -1
- package/src/components/JfbBaseCardDetail/JfbBaseCardDetail.vue +1 -1
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +1 -1
- package/src/components/JfbBaseCardInfo/Attr.js +14 -2
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +15 -4
- package/src/components/JfbBaseCardInfoEntry/Attr.js +14 -2
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +18 -5
- package/src/components/JfbBaseCardSweepInfo/Attr.js +14 -2
- package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfo.vue +14 -2
package/package.json
CHANGED
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
<view>打开支付宝APP,点击扫一扫直接扫码或点击相册中保存图片</view>
|
|
130
130
|
<view class="code_box">
|
|
131
131
|
<view class="qr_code">
|
|
132
|
-
<image mode="aspectFit" :src="sign_url_qrcode"></image>
|
|
132
|
+
<image show-menu-by-longpress mode="aspectFit" :src="sign_url_qrcode"></image>
|
|
133
133
|
</view>
|
|
134
134
|
<view>长按保存二维码</view>
|
|
135
135
|
</view>
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
<view>打开支付宝APP,点击扫一扫直接扫码或点击相册中保存图片</view>
|
|
144
144
|
<view class="code_box">
|
|
145
145
|
<view class="qr_code">
|
|
146
|
-
<image mode="aspectFit" :src="sign_url_qrcode"></image>
|
|
146
|
+
<image show-menu-by-longpress mode="aspectFit" :src="sign_url_qrcode"></image>
|
|
147
147
|
</view>
|
|
148
148
|
<view>长按保存二维码</view>
|
|
149
149
|
</view>
|
|
@@ -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,
|
|
@@ -247,8 +247,17 @@ export default {
|
|
|
247
247
|
this.handleBindConfirm();
|
|
248
248
|
return;
|
|
249
249
|
}
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
let card_number
|
|
251
|
+
if(this.card_number){
|
|
252
|
+
card_number = this.card_number;
|
|
253
|
+
}
|
|
254
|
+
if(this.qrcode&&this.info.card_number){
|
|
255
|
+
card_number = this.info.card_number;
|
|
256
|
+
}
|
|
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
|
+
}
|
|
252
261
|
//有优惠券处理
|
|
253
262
|
if(this.hasCon){
|
|
254
263
|
this.toShowCouponDialog();
|
|
@@ -285,7 +294,8 @@ export default {
|
|
|
285
294
|
showClose: false,
|
|
286
295
|
success: (res) => {
|
|
287
296
|
if (res.confirm) {
|
|
288
|
-
let path = this.getUrlCallback(this.my_card_url || this.backUrl)
|
|
297
|
+
let path = this.getUrlCallback(this.my_card_url || this.backUrl);
|
|
298
|
+
|
|
289
299
|
this.$xdUniHelper.redirectTo({ url: path});
|
|
290
300
|
}else{
|
|
291
301
|
}
|
|
@@ -294,6 +304,7 @@ export default {
|
|
|
294
304
|
},
|
|
295
305
|
init(container) {
|
|
296
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;
|
|
297
308
|
this.card_num_placeholder = getContainerPropsValue(container, "content.card_num_placeholder", "请输入券号(电子券除外)");
|
|
298
309
|
this.card_pwd_placeholder = getContainerPropsValue(container, "content.card_pwd_placeholder", "请输入密码");
|
|
299
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:'',//是否带有回调地址
|
|
@@ -266,12 +267,21 @@ export default {
|
|
|
266
267
|
this.handleBindConfirm();
|
|
267
268
|
return;
|
|
268
269
|
}
|
|
269
|
-
|
|
270
|
+
let card_number
|
|
271
|
+
if(this.card_number){
|
|
272
|
+
card_number = this.card_number;
|
|
273
|
+
}
|
|
274
|
+
if(this.qrcode&&this.info.card_number){
|
|
275
|
+
card_number = this.info.card_number;
|
|
276
|
+
}
|
|
270
277
|
if(this.hasCon){
|
|
271
278
|
this.toShowCouponDialog();
|
|
272
279
|
this.$bus.$on("onCloseConDialog",(container_id) => {
|
|
273
280
|
if(container_id === this.hasCon){
|
|
274
|
-
let path = this.getUrlCallback(this.backUrl)
|
|
281
|
+
let path = this.getUrlCallback(this.backUrl)
|
|
282
|
+
if(res.jump_page==='detail'){
|
|
283
|
+
path = this.getUrlCallback(this.back_detail_url)+`?card_number=${card_number}`
|
|
284
|
+
}
|
|
275
285
|
this.$xdUniHelper.redirectTo({
|
|
276
286
|
url: path,
|
|
277
287
|
});
|
|
@@ -281,7 +291,10 @@ export default {
|
|
|
281
291
|
this.$xdAlert({
|
|
282
292
|
content: "票券绑定成功",
|
|
283
293
|
close: () => {
|
|
284
|
-
let path = this.getUrlCallback(this.backUrl)
|
|
294
|
+
let path = this.getUrlCallback(this.backUrl)
|
|
295
|
+
if(res.jump_page==='detail'){
|
|
296
|
+
path = this.getUrlCallback(this.back_detail_url)+`?card_number=${card_number}`
|
|
297
|
+
}
|
|
285
298
|
this.$xdUniHelper.redirectTo({
|
|
286
299
|
url: path,
|
|
287
300
|
});
|
|
@@ -300,7 +313,7 @@ export default {
|
|
|
300
313
|
showClose: false,
|
|
301
314
|
success: (res) => {
|
|
302
315
|
if (res.confirm) {
|
|
303
|
-
let path = this.getUrlCallback(this.my_card_url || this.backUrl)
|
|
316
|
+
let path = this.getUrlCallback(this.my_card_url || this.backUrl)
|
|
304
317
|
this.$xdUniHelper.redirectTo({
|
|
305
318
|
url: path,
|
|
306
319
|
});
|
|
@@ -311,6 +324,7 @@ export default {
|
|
|
311
324
|
},
|
|
312
325
|
init(container) {
|
|
313
326
|
this.backUrl = getContainerPropsValue(container, "content.back_url", { value: "/pages/card/card" }).value;
|
|
327
|
+
this.back_detail_url = getContainerPropsValue(container, "content.back_detail_url", { value: "" }).value;
|
|
314
328
|
this.card_num_placeholder = getContainerPropsValue(container, "content.card_num_placeholder", "请输入券号(电子券除外)");
|
|
315
329
|
this.card_pwd_placeholder = getContainerPropsValue(container, "content.card_pwd_placeholder", "请输入密码");
|
|
316
330
|
this.my_card_url = getContainerPropsValue(container, 'content.my_card_url', { value: "" }).value;
|
|
@@ -327,7 +341,6 @@ export default {
|
|
|
327
341
|
this.qrcode = decodeURIComponent(this.qrcode);
|
|
328
342
|
}
|
|
329
343
|
//#endif
|
|
330
|
-
|
|
331
344
|
if(options.inCallback) {
|
|
332
345
|
this.inCallbackUrlOrg = options.inCallback;
|
|
333
346
|
}
|
|
@@ -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,7 +106,7 @@ 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: "", //是否有优惠券
|
|
@@ -164,6 +164,9 @@ export default {
|
|
|
164
164
|
//#ifdef H5
|
|
165
165
|
let base = this.jfbAuthorize.getBasePath(this);
|
|
166
166
|
let url = `${location.origin}${base}${this.backUrl}`;
|
|
167
|
+
if(res.jump_page==='detail'){
|
|
168
|
+
url = `${location.origin}${base}${this.back_detail_url}`+`?card_number=${this.showValueKey['card_number']}`;
|
|
169
|
+
}
|
|
167
170
|
url = this.getUrlCallback(url)
|
|
168
171
|
this.$xdLog.setARMSInfo({url}, 'static_qr_card_bind');
|
|
169
172
|
|
|
@@ -173,7 +176,10 @@ export default {
|
|
|
173
176
|
// #endif
|
|
174
177
|
|
|
175
178
|
//#ifndef H5
|
|
176
|
-
let wPath = this.getUrlCallback(this.backUrl)
|
|
179
|
+
let wPath = this.getUrlCallback(this.backUrl);
|
|
180
|
+
if(res.jump_page==='detail'){
|
|
181
|
+
wPath = this.getUrlCallback(this.back_detail_url)+`?card_number=${this.showValueKey['card_number']}`;
|
|
182
|
+
}
|
|
177
183
|
this.$xdUniHelper.redirectTo({
|
|
178
184
|
url:wPath,
|
|
179
185
|
});
|
|
@@ -187,6 +193,9 @@ export default {
|
|
|
187
193
|
//#ifdef H5
|
|
188
194
|
let base = this.jfbAuthorize.getBasePath(this);
|
|
189
195
|
let url = `${location.origin}${base}${this.backUrl}`;
|
|
196
|
+
if(res.jump_page==='detail'){
|
|
197
|
+
url = `${location.origin}${base}${this.back_detail_url}`+`?card_number=${this.showValueKey['card_number']}`;
|
|
198
|
+
}
|
|
190
199
|
url = this.getUrlCallback(url)
|
|
191
200
|
this.$xdLog.setARMSInfo({url}, 'static_qr_card_bind');
|
|
192
201
|
|
|
@@ -197,6 +206,9 @@ export default {
|
|
|
197
206
|
|
|
198
207
|
//#ifndef H5
|
|
199
208
|
let wPath = this.getUrlCallback(this.backUrl)
|
|
209
|
+
if(res.jump_page==='detail'){
|
|
210
|
+
wPath = this.getUrlCallback(this.back_detail_url)+`?card_number=${this.showValueKey['card_number']}`
|
|
211
|
+
}
|
|
200
212
|
this.$xdUniHelper.redirectTo({
|
|
201
213
|
url:wPath,
|
|
202
214
|
});
|