Browse Source

未登录用户允许访问商品详情页面

zyh
Gao xiaosong 4 years ago
parent
commit
8aa46ec1d4
  1. 2
      config/index.js
  2. 11
      pages/shop/GoodsCon/index.vue

2
config/index.js

@ -3,7 +3,7 @@ export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api'
// export const VUE_APP_API_URL = 'http://139.186.134.205:9006/api'
// export const VUE_APP_API_URL = 'http://192.168.31.223:8008/api'
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://tapi.xinxintuan.co/api'
// export const VUE_APP_API_URL = 'https://thapi.xinxintuan.co/api'
// export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api';
export const VUE_APP_RESOURCES_URL = 'https://wx.yixiang.co/static'

11
pages/shop/GoodsCon/index.vue

@ -293,7 +293,8 @@ export default {
if (!url) {
url = handleUrlParam(getCurrentPageUrlWithArgs())
}
this.coupons()
const token = cookie.get('login_status')
if (url && url.id) {
this.id = url.id
let urlSpread = parseInt(url.spread)
@ -303,7 +304,15 @@ export default {
} else {
this.id = this._route.query.id
}
this.isIntegral = url.isIntegral == 'true'
if (!token) {
this.productCon()
return
}
this.coupons()
this.productCon()
this.setOpenShare()
},

Loading…
Cancel
Save