diff --git a/src/boot/axios.js b/src/boot/axios.js index 28c9adc..f024c1a 100644 --- a/src/boot/axios.js +++ b/src/boot/axios.js @@ -62,6 +62,7 @@ service.interceptors.response.use( ); const api = { + registerDomain: 'https://www.dxzj8888.top/', domain: process.env.BASE_URL == '/'? (window.location.origin+'/') : process.env.BASE_URL, checkUpdate(){ if (!Platform.is.cordova) { diff --git a/src/pages/shop/ShopSharePage.vue b/src/pages/shop/ShopSharePage.vue index bb595d8..986379e 100644 --- a/src/pages/shop/ShopSharePage.vue +++ b/src/pages/shop/ShopSharePage.vue @@ -41,7 +41,7 @@ let size = Math.ceil(window.innerWidth*(window.devicePixelRatio||1)/2) size = Math.ceil(size/100)*100 const tabs = [{ name: '邀请彩民', - url: api.getQrcodeUrl(store.buyer.domain+'/register/index.html?shopsn='+store.shop.shop_sn,size) + url: api.getQrcodeUrl(api.registerDomain+'register/index.html?shopsn='+store.shop.shop_sn,size) // },{ // name: '彩民APP下载', // url: api.getQrcodeUrl('https://file.daxiangzj.com/client/app_download',size)