jufubao-base 1.0.312 → 1.0.314

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.
@@ -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) => {
@@ -8,10 +8,12 @@ module.exports = [
8
8
  {
9
9
  mapFnName: "getExchangeCode",
10
10
  title: "兑换码",
11
- path: "/member/v1/exchange/:exchange_code",
11
+ path: "/member/v1/card",
12
12
  isRule: true,
13
13
  params: {
14
- exchange_code: ['兑换码', 'String', '必选']
14
+ card_number: ['券号', 'String', '可选'],
15
+ card_password: ['密码', 'String', '可选'],
16
+ card_qrcode: ['二维码', 'String', '可选'],
15
17
  },
16
18
  isConsole: true,
17
19
  disabled: true,
@@ -19,7 +21,7 @@ module.exports = [
19
21
  {
20
22
  mapFnName: "createVipOrder",
21
23
  title: "创建VIP订单",
22
- path: "/member/v1/order/submit",
24
+ path: "/member/v1/new-order/submit",
23
25
  isRule: false,
24
26
  data: {
25
27
  business_code: ['业务编码', 'String', '必选'],
@@ -31,5 +33,14 @@ module.exports = [
31
33
  },
32
34
  isConsole: true,
33
35
  disabled: true,
34
- }
36
+ },
37
+ {
38
+ mapFnName: 'getOpenBaseUserInfo',
39
+ title: '获取用户信息',
40
+ path: '/passport/v1/user/get',
41
+ params: {},
42
+ isRule: false,
43
+ isConsole: true,
44
+ disabled: true,
45
+ },
35
46
  ];