Commit 94ff638b authored by mengqr's avatar mengqr

调试登录

parent 79f23797
...@@ -9,9 +9,9 @@ const appName = "test5" ...@@ -9,9 +9,9 @@ const appName = "test5"
const IS_PROD = ["production", "prod"].includes(process.env.NODE_ENV); const IS_PROD = ["production", "prod"].includes(process.env.NODE_ENV);
// 接口路径 // 接口路径
const BASEURL_TEST = 'https://test6.douniu8.com' const BASEURL_TEST = 'https://api.douniu8.com'
// const BASEURL_TEST = 'http://39.105.193.58:8081' // const BASEURL_TEST = 'http://39.105.193.58:8081'
const BASEURL_PROD = 'https://test6.douniu8.com' const BASEURL_PROD = 'https://api.douniu8.com'
const CONTRACT_TEST = 'http://47.95.140.89:9090' const CONTRACT_TEST = 'http://47.95.140.89:9090'
const CONTRACT_PROD = 'http://ht.douniu8.com:9090' const CONTRACT_PROD = 'http://ht.douniu8.com:9090'
const baseURL = IS_PROD ? BASEURL_PROD : BASEURL_TEST; const baseURL = IS_PROD ? BASEURL_PROD : BASEURL_TEST;
......
...@@ -347,7 +347,7 @@ export default { ...@@ -347,7 +347,7 @@ export default {
pwd: request.mqtt.mqttPwd, pwd: request.mqtt.mqttPwd,
domain: request.mqtt.mqttDomain, domain: request.mqtt.mqttDomain,
port: request.mqtt.mqttPort, port: request.mqtt.mqttPort,
destination: request.douniuLive.destination[0] + 46 + destination: request.douniuLive.destination[0] + this.$route.query.lvrId +
request.douniuLive.destination[1], request.douniuLive.destination[1],
}, this.getMessage); }, this.getMessage);
......
...@@ -365,7 +365,7 @@ export default { ...@@ -365,7 +365,7 @@ export default {
pwd: request.mqtt.mqttPwd, pwd: request.mqtt.mqttPwd,
domain: request.mqtt.mqttDomain, domain: request.mqtt.mqttDomain,
port: request.mqtt.mqttPort, port: request.mqtt.mqttPort,
destination: request.douniuLive.destination[0] + 46 + destination: request.douniuLive.destination[0] + this.$route.query.lvrId +
request.douniuLive.destination[1], request.douniuLive.destination[1],
}, this.getMessage); }, this.getMessage);
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
<span class="privacy" @click="privacy()">《隐私政策》</span> <span class="privacy" @click="privacy()">《隐私政策》</span>
<img class="default-img" v-if="ifSend==false" src="../common/img/default-img.png" alt=""> <img class="default-img" v-if="ifSend==false" src="../common/img/default-img.png" alt="">
<img class="default-img" v-if="ifSend==true" @click="goTo()" src="../common/img/new-send.png" alt=""> <img class="default-img" v-if="ifSend==true" @click="goTo()" src="../common/img/new-send.png" alt="">
<span class="third">第三方登录</span> <!-- <span class="third">第三方登录</span> -->
<img class="wechact" src="../common/img/wechact.png" alt="" @click="Wget"> <!-- <img class="wechact" src="../common/img/wechact.png" alt="" @click="Wget"> -->
<span v-if="errorPhone==true" class="errorTip">*手机号码错误</span> <span v-if="errorPhone==true" class="errorTip">*手机号码错误</span>
<!-- <span class="registerOne">没有账号,</span><span class="registerTwo" @click="register()">立即注册</span> <!-- <span class="registerOne">没有账号,</span><span class="registerTwo" @click="register()">立即注册</span>
<input type="number" v-model="userPhone" placeholder="输入手机号" oninput="if(value.length>11)value=value.slice(0,11)" class="wbk1"> <input type="number" v-model="userPhone" placeholder="输入手机号" oninput="if(value.length>11)value=value.slice(0,11)" class="wbk1">
...@@ -218,8 +218,10 @@ export default { ...@@ -218,8 +218,10 @@ export default {
this.server.live.buy_code(temp).then(res=>{ this.server.live.buy_code(temp).then(res=>{
//order成功判断内置浏览器,在微信就授权,内置微信还是浏览器 微信jsapi 浏览器h5 //order成功判断内置浏览器,在微信就授权,内置微信还是浏览器 微信jsapi 浏览器h5
if(res.code=200){ console.log(res.data)
// window.location.href='' if(res.data.code==200){
let url=res.data.data
window.location.href=url
} }
}) })
...@@ -238,6 +240,14 @@ export default { ...@@ -238,6 +240,14 @@ export default {
console.log("阿斯蒂芬") console.log("阿斯蒂芬")
sessionStorage.removeItem('ifLvrUbId'); sessionStorage.removeItem('ifLvrUbId');
} }
if(this.$route.query.lvrUbId){
this.$router.push(
{
path:'/',
});
}
} }
}, },
......
...@@ -277,6 +277,23 @@ export default { ...@@ -277,6 +277,23 @@ export default {
} }
} }
}, },
go_get(){
let temp=this.qs.stringify({
urlTag:'nh5'
})
this.server.live.buy_code(temp).then(res=>{
//order成功判断内置浏览器,在微信就授权,内置微信还是浏览器 微信jsapi 浏览器h5
console.log(res.data)
if(res.data.code==200){
let url=res.data.data
window.location.href=url
}
})
},
goTo(){ goTo(){
let verification= this.numberOne +this.numberTwo+this.numberThree+this.numberFour+this.numberFive+this.numberSix let verification= this.numberOne +this.numberTwo+this.numberThree+this.numberFour+this.numberFive+this.numberSix
let temp=this.qs.stringify({ let temp=this.qs.stringify({
...@@ -306,11 +323,12 @@ export default { ...@@ -306,11 +323,12 @@ export default {
sessionStorage.setItem("openId", openId);//opendid sessionStorage.setItem("openId", openId);//opendid
store.commit("SET_TOKEN", thisToken); store.commit("SET_TOKEN", thisToken);
// this.getLive() // this.getLive()
this.$router.push( this.go_get()
{ // this.$router.push(
path:'/', // {
// path:'/',
}); // });
}) })
}, },
......
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