Commit c198c9a6 authored by wangwei's avatar wangwei

星星

parent 4d7e8f1a
...@@ -7,7 +7,7 @@ module.exports = merge(prodEnv, { ...@@ -7,7 +7,7 @@ module.exports = merge(prodEnv, {
API_URL: '"http://192.168.31.242:8085/"', API_URL: '"http://192.168.31.242:8085/"',
MAX_FILESIZE:'1024*1024*10', MAX_FILESIZE:'1024*1024*10',
IMAGE_URL_HEAD:'"http://cdn.singsingenglish.com/"', IMAGE_URL_HEAD:'"http://cdn.singsingenglish.com/"',
BUY_URL:'"http://wechat.test.changchangenglish.com/#/buyDetail?"', BUY_URL:'"http://wechat-test.changchangenglish.com/#/buyDetail?"',
AUTHOR_UEL:'"http://wechat-test.changchangenglish.com/api/client/login?redirect_url=http://192.168.31.242:8085/#/"', AUTHOR_UEL:'"http://wechat-test.changchangenglish.com/api/client/login?redirect_url=http://192.168.31.242:8085/#/"',
REDIRECT_URL:'"http://localhost:8085/"', REDIRECT_URL:'"http://localhost:8085/"',
}); });
...@@ -237,7 +237,8 @@ ...@@ -237,7 +237,8 @@
initPage(){ initPage(){
if(!JSON.parse(localStorage.getItem('userDesc')).mobile|| JSON.parse(localStorage.getItem('userDesc')).mobile === ''){ if(!JSON.parse(localStorage.getItem('userDesc')).mobile|| JSON.parse(localStorage.getItem('userDesc')).mobile === ''){
this.$router.push({name:'bindMobile',query:{retUrl:this.$route.fullPath}}) this.$router.push({name:'bindMobile',query:{retUrl:this.$route.fullPath}})
}else{ }else
{
getwechatParam({api_list:'chooseWXPay'}).then(res=>{ getwechatParam({api_list:'chooseWXPay'}).then(res=>{
wx.config({ wx.config({
debug: false, debug: false,
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</div> </div>
<div class="btn-block"> <div class="btn-block">
<div class="btn" @click="toBuy"> <div class="btn" @click="toBuy">
了解一下 快去报名
</div> </div>
</div> </div>
</div> </div>
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
}) })
}, },
toBuy(){ toBuy(){
window.location.href = process.env.BUY_URL + 'shopId=' + this.shopId window.location.href = `${process.env.API_URL}#/buy?shopId=${this.shopId}&invite_code=CC-USER-${this.$route.query.userID}`
} }
}, },
mounted(){ mounted(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment