jufubao-base 1.0.253 → 1.0.254-beta1

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.253",
3
+ "version": "1.0.254-beta1",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -195,7 +195,8 @@
195
195
  jwxSDK: null,
196
196
  refresh: true, //onshow是否刷新数据
197
197
  showLocationDialog: false,
198
- cityPath: ''
198
+ cityPath: '',
199
+ resource_shop_id: ''
199
200
  }
200
201
  },
201
202
  watch: {
@@ -252,7 +253,7 @@
252
253
  // #endif
253
254
  },
254
255
  methods: {
255
- async onJfbLoad(options) {
256
+ async onJfbLoad(options) {
256
257
  this.xnamespace = this.projectAttr.business_code
257
258
  this.getUserInfo()
258
259
  this.options = options
@@ -281,6 +282,7 @@
281
282
  }).then(res => {
282
283
  if (res && res.list.length > 0) {
283
284
  this.shop_id = res.list[0].shop_id;
285
+ this.resource_shop_id = res.list[0].resource_shop_id;
284
286
  this.shopName = res.list[0].resource_shop_name;
285
287
  this.showMask = true;
286
288
  this.showDialog = true;
@@ -291,6 +293,7 @@
291
293
  })
292
294
  } else {
293
295
  this.shop_id = this.options.shop_id;
296
+ this.resource_shop_id = this.options.resource_shop_id;
294
297
  this.p_getAsyncStep();
295
298
  }
296
299
  },
@@ -372,12 +375,16 @@
372
375
  p_getQuickPayQRCode() {
373
376
  return new Promise((resolve, reject) => {
374
377
  this.$xdShowLoading({});
378
+ let data = {
379
+ shop_id: this.shop_id,
380
+ temp_order_id: this.temp_order_id,
381
+ business_code: this.xnamespace,
382
+ resource_shop_id: this.resource_shop_id
383
+ }
384
+ if(data.resource_shop_id) delete data.shop_id
375
385
  jfbRootExec("getConsumpCode", {
376
386
  vm: this,
377
- data: {
378
- shop_id: this.shop_id,
379
- temp_order_id: this.temp_order_id,
380
- }
387
+ data: data
381
388
  }).then(res => {
382
389
  this.$xdHideLoading();
383
390
  this.plusDiscount = res.plus_discount
@@ -271,6 +271,7 @@ export default {
271
271
  list: [
272
272
  { label: '全部用户', value: 'all' },
273
273
  { label: '仅会员', value: 'vip' },
274
+ { label: '非会员', value: 'notvip' },
274
275
  ]
275
276
  },
276
277
  {
@@ -152,10 +152,14 @@ export default {
152
152
  } else {
153
153
  if(this.showGroup==='all') {
154
154
  this.handlePop();
155
- }else {
155
+ } else if(this.showGroup==='vip') {
156
156
  if(this.getTokenForKey('user_level')&&this.getTokenForKey('user_level')==='VIP') {
157
157
  this.handlePop();
158
158
  }
159
+ } else if(this.showGroup==='notvip'){
160
+ if(!this.getTokenForKey('user_level')) {
161
+ this.handlePop();
162
+ }
159
163
  }
160
164
  }
161
165
  }