jufubao-base 1.0.311-beta4 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.311-beta4",
3
+ "version": "1.0.311-beta5",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -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)+`?card_number=${card_number}`;
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)+`?card_number=${card_number}`;
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:'',//是否带有回调地址
@@ -277,7 +278,10 @@ export default {
277
278
  this.toShowCouponDialog();
278
279
  this.$bus.$on("onCloseConDialog",(container_id) => {
279
280
  if(container_id === this.hasCon){
280
- let path = this.getUrlCallback(this.backUrl)+`?card_number=${card_number}`
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
+ }
281
285
  this.$xdUniHelper.redirectTo({
282
286
  url: path,
283
287
  });
@@ -287,7 +291,10 @@ export default {
287
291
  this.$xdAlert({
288
292
  content: "票券绑定成功",
289
293
  close: () => {
290
- let path = this.getUrlCallback(this.backUrl)+`?card_number=${card_number}`
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
+ }
291
298
  this.$xdUniHelper.redirectTo({
292
299
  url: path,
293
300
  });
@@ -297,13 +304,6 @@ export default {
297
304
  },
298
305
  //卡券已被自己绑定时的弹框
299
306
  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
307
  this.$xdConfirm({
308
308
  styles: this.styles,
309
309
  width: '90%',
@@ -313,7 +313,7 @@ export default {
313
313
  showClose: false,
314
314
  success: (res) => {
315
315
  if (res.confirm) {
316
- let path = this.getUrlCallback(this.my_card_url || this.backUrl)+`?card_number=${card_number}`
316
+ let path = this.getUrlCallback(this.my_card_url || this.backUrl)
317
317
  this.$xdUniHelper.redirectTo({
318
318
  url: path,
319
319
  });
@@ -324,6 +324,7 @@ export default {
324
324
  },
325
325
  init(container) {
326
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;
327
328
  this.card_num_placeholder = getContainerPropsValue(container, "content.card_num_placeholder", "请输入券号(电子券除外)");
328
329
  this.card_pwd_placeholder = getContainerPropsValue(container, "content.card_pwd_placeholder", "请输入密码");
329
330
  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,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
  });