Commit f056857c by 程默

fix err

parent d27d4183
<template>
<div class="domain">
<div class="toCLogin">
<image class="img" mode="aspectFit" :src="logoUrl"/>
<image class="img" mode="aspectFit" :src="logoUrl" />
<p class="shopName" v-if="shopName">{{shopName}}</p>
<div class="btn_info">
<button class="btn" lang="zh_CN" open-type="getUserInfo" @getuserinfo="getUserInfo">微信一键登录</button>
......@@ -34,7 +34,7 @@ export default {
return {
session_key: "",
shopName: "",
logoUrl:"",
logoUrl: "",
isShow: false,
isShowPhone: false,
getPhone: false,
......@@ -50,7 +50,7 @@ export default {
isHaveUnion: "",
unionId: "",
userInfo: "",
NEED_CERTIFIED: ""
NEED_CERTIFIED: "",
};
},
created() {},
......@@ -76,8 +76,9 @@ export default {
console.log(res, "shop");
if (res.data.code == 200) {
this.shopName = res.data.data.shopName;
this.logoUrl=process.env.IMG_DOMAIN + res.data.data.logoUrl;
console.log(this.logoUrl)
this.logoUrl = process.env.IMG_DOMAIN + res.data.data.logoUrl;
console.log(this.logoUrl);
} else {
}
});
},
......@@ -96,7 +97,9 @@ export default {
if (res.data.data.isHaveUnion == "true") {
//有账号
this.isHaveUnion = true;
this.backParams += `&sessionid=${res.data.data.sessionId}&needCertified=${res.data.data.NEED_CERTIFIED}`;
this.backParams += `&sessionid=${
res.data.data.sessionId
}&needCertified=${res.data.data.NEED_CERTIFIED}`;
this.NEED_CERTIFIED = res.data.data.NEED_CERTIFIED;
wx.setStorage({
key: "sessionid",
......@@ -110,11 +113,13 @@ export default {
this.session_key = res.data.data.session_key;
this.openid = res.data.data.openid;
this.isShow = true;
}else{
wx.showToast({title: res.data.msg,icon: 'none'})
} else {
wx.showToast({ title: res.data.msg, icon: "none" });
}
})
.catch(err => {});
.catch(err => {
wx.showToast({ title: err, icon: "none" });
});
}
}
});
......@@ -152,7 +157,9 @@ export default {
console.log("check", res);
if (res.data.data.isHaveUnion == "true") {
this.NEED_CERTIFIED = res.data.data.NEED_CERTIFIED;
this.backParams += `&sessionid=${res.data.data.sessionId}&needCertified=${res.data.data.NEED_CERTIFIED}`;
this.backParams += `&sessionid=${
res.data.data.sessionId
}&needCertified=${res.data.data.NEED_CERTIFIED}`;
wx.setStorage({
key: "sessionid",
data: res.data.data.sessionId
......@@ -214,19 +221,21 @@ export default {
otherPhone: 0
};
if (this.$store.state.spokesmanGroupId != "") {
query.spokesmanRelId=this.$store.state.spokesmanRelId;
query.spokesmanGroupId=this.$store.state.spokesmanGroupId;
query.spokesmanShopId=this.$store.state.spokesmanShopId;
query.spokesmanRelId = this.$store.state.spokesmanRelId;
query.spokesmanGroupId = this.$store.state.spokesmanGroupId;
query.spokesmanShopId = this.$store.state.spokesmanShopId;
}
console.log(query,'query')
console.log(query, "query");
login
.bindUser(query)
.then(res => {
//绑定成功
if (res.data.code == 200) {
this.NEED_CERTIFIED = res.data.data.NEED_CERTIFIED;
this.backParams += `&sessionid=${res.data.data.sessionId}&needCertified=${res.data.data.NEED_CERTIFIED}`;
this.backParams += `&sessionid=${
res.data.data.sessionId
}&needCertified=${res.data.data.NEED_CERTIFIED}`;
wx.setStorage({
key: "sessionid",
data: res.data.data.sessionId
......@@ -293,7 +302,7 @@ export default {
font-weight: bold;
color: #333;
}
.img{
.img {
width: 100px;
height: 100px;
}
......
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