jufubao-base 1.0.314 → 1.0.315

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.314",
3
+ "version": "1.0.315",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -198,7 +198,7 @@
198
198
  </view>
199
199
  </view>
200
200
  <CusVipOpenDialog
201
- v-if="is_vip==='N'"
201
+ v-if="showVipOpenDialog"
202
202
  :bgImg="openVipBgImg"
203
203
  :btnBgImg="openVipBtnBgImg"
204
204
  @onOpen="handleToOpen"
@@ -296,6 +296,7 @@
296
296
  QPImg: "",
297
297
  openVipBtnBgImg: "",
298
298
  openVipBgImg: "",
299
+ is_plus_site: false
299
300
  }
300
301
  },
301
302
  watch: {
@@ -326,10 +327,14 @@
326
327
  backgroundSize: '100% 100%'
327
328
  }
328
329
  },
330
+ showVipOpenDialog() {
331
+ return this.is_plus_site && this.is_vip === 'N';
332
+ }
329
333
  },
330
334
  created() {
331
335
  this.isPreview = this.$configProject['isPreview']
332
336
  this.is_vip = this.getTokenForKey('user_level') && this.getTokenForKey('user_level') === 'VIP' ? 'Y' : 'N'
337
+ this.is_plus_site = this.$configProject.headers['X-Site-Group']==="vip";
333
338
  if (this.$configProject['isPreview']) {
334
339
  this.is_vip='Y'
335
340
  }