jufubao-base 1.0.254-beta1 → 1.0.254

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.254-beta1",
3
+ "version": "1.0.254",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -195,8 +195,7 @@
195
195
  jwxSDK: null,
196
196
  refresh: true, //onshow是否刷新数据
197
197
  showLocationDialog: false,
198
- cityPath: '',
199
- resource_shop_id: ''
198
+ cityPath: ''
200
199
  }
201
200
  },
202
201
  watch: {
@@ -253,7 +252,7 @@
253
252
  // #endif
254
253
  },
255
254
  methods: {
256
- async onJfbLoad(options) {
255
+ async onJfbLoad(options) {
257
256
  this.xnamespace = this.projectAttr.business_code
258
257
  this.getUserInfo()
259
258
  this.options = options
@@ -282,7 +281,6 @@
282
281
  }).then(res => {
283
282
  if (res && res.list.length > 0) {
284
283
  this.shop_id = res.list[0].shop_id;
285
- this.resource_shop_id = res.list[0].resource_shop_id;
286
284
  this.shopName = res.list[0].resource_shop_name;
287
285
  this.showMask = true;
288
286
  this.showDialog = true;
@@ -293,7 +291,6 @@
293
291
  })
294
292
  } else {
295
293
  this.shop_id = this.options.shop_id;
296
- this.resource_shop_id = this.options.resource_shop_id;
297
294
  this.p_getAsyncStep();
298
295
  }
299
296
  },
@@ -375,16 +372,12 @@
375
372
  p_getQuickPayQRCode() {
376
373
  return new Promise((resolve, reject) => {
377
374
  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
385
375
  jfbRootExec("getConsumpCode", {
386
376
  vm: this,
387
- data: data
377
+ data: {
378
+ shop_id: this.shop_id,
379
+ temp_order_id: this.temp_order_id,
380
+ }
388
381
  }).then(res => {
389
382
  this.$xdHideLoading();
390
383
  this.plusDiscount = res.plus_discount
@@ -20,7 +20,6 @@
20
20
  <iframe frameborder="0" v-if="iframe" :src="iframe" class="jfb-base-map-overlay__body-iframe"></iframe>
21
21
  <xd-baidu-overlay v-else :defaultOverlays="overlays" :level="11"></xd-baidu-overlay>
22
22
  </template>
23
-
24
23
  <!-- #endif -->
25
24
  <!-- #ifdef MP -->
26
25
  <xd-map-overlay :defaultOverlays="overlays" :level="11"></xd-map-overlay>
@@ -114,25 +113,27 @@
114
113
  if(res['is_ifream'] === 'Y') {
115
114
  // #ifdef MP
116
115
  if(!res.url){
117
- return this.$xdAlert({
116
+ this.$xdAlert({
118
117
  content: 'URL不存在',
119
118
  time: 2500,
120
119
  isClose: false,
121
120
  zIndex: 5000
122
121
  });
122
+ return;
123
123
  }
124
124
  this.$xdUniHelper.redirectTo({
125
- url: url,
125
+ url: res.url,
126
126
  })
127
127
  // #endif
128
128
  // #ifdef H5
129
129
  this.iframe = res.url
130
130
  // #endif
131
131
  }
132
+ //本页面打开
132
133
  else{
133
134
  this.overlays = res.data;
135
+ this.loaded = true;
134
136
  }
135
- this.loaded = true;
136
137
  })
137
138
  },
138
139
  gcj02tobd09(lng, lat) {
@@ -271,7 +271,6 @@ export default {
271
271
  list: [
272
272
  { label: '全部用户', value: 'all' },
273
273
  { label: '仅会员', value: 'vip' },
274
- { label: '非会员', value: 'notvip' },
275
274
  ]
276
275
  },
277
276
  {
@@ -152,14 +152,10 @@ export default {
152
152
  } else {
153
153
  if(this.showGroup==='all') {
154
154
  this.handlePop();
155
- } else if(this.showGroup==='vip') {
155
+ }else {
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
- }
163
159
  }
164
160
  }
165
161
  }