Commit c198c9a6 authored by wangwei's avatar wangwei

星星

parent 4d7e8f1a
......@@ -7,7 +7,7 @@ module.exports = merge(prodEnv, {
API_URL: '"http://192.168.31.242:8085/"',
MAX_FILESIZE:'1024*1024*10',
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/#/"',
REDIRECT_URL:'"http://localhost:8085/"',
});
......@@ -237,7 +237,8 @@
initPage(){
if(!JSON.parse(localStorage.getItem('userDesc')).mobile|| JSON.parse(localStorage.getItem('userDesc')).mobile === ''){
this.$router.push({name:'bindMobile',query:{retUrl:this.$route.fullPath}})
}else{
}else
{
getwechatParam({api_list:'chooseWXPay'}).then(res=>{
wx.config({
debug: false,
......
......@@ -20,7 +20,7 @@
</div>
<div class="btn-block">
<div class="btn" @click="toBuy">
了解一下
快去报名
</div>
</div>
</div>
......@@ -57,7 +57,7 @@
})
},
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(){
......
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