|
@@ -70,6 +70,7 @@ export default {
|
|
|
countdown: 60,
|
|
countdown: 60,
|
|
|
timer: null,
|
|
timer: null,
|
|
|
imgurl:"https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu",
|
|
imgurl:"https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu",
|
|
|
|
|
+ tenantId:0,
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -79,7 +80,11 @@ export default {
|
|
|
this.timer = null;
|
|
this.timer = null;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- onLoad(){
|
|
|
|
|
|
|
+ onLoad(opt){
|
|
|
|
|
+ if(opt.uid){
|
|
|
|
|
+ this.tenantId = opt.uid;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
let token = getAdminToken()
|
|
let token = getAdminToken()
|
|
|
if(token){
|
|
if(token){
|
|
|
this.doLoginSuccess();
|
|
this.doLoginSuccess();
|
|
@@ -128,7 +133,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 调用API
|
|
// 调用API
|
|
|
- getVerificationCode(this.phone,userType).then(res => {
|
|
|
|
|
|
|
+ getVerificationCode(this.phone,userType,this.tenantId).then(res => {
|
|
|
if(res.code !== 0){
|
|
if(res.code !== 0){
|
|
|
uni.showToast({ title: res.msg || '找不到用户信息,请确认', icon: 'none' });
|
|
uni.showToast({ title: res.msg || '找不到用户信息,请确认', icon: 'none' });
|
|
|
return;
|
|
return;
|
|
@@ -184,7 +189,7 @@ export default {
|
|
|
provider: 'weixin', //使用微信登录
|
|
provider: 'weixin', //使用微信登录
|
|
|
success: function (loginRes) {
|
|
success: function (loginRes) {
|
|
|
let jsCode = loginRes.code;
|
|
let jsCode = loginRes.code;
|
|
|
- login(self.phone, self.code,userType,jsCode).then(res => {
|
|
|
|
|
|
|
+ login(self.phone, self.code,userType,jsCode,this.tenantId).then(res => {
|
|
|
// 登录成功 (res.code === 0)
|
|
// 登录成功 (res.code === 0)
|
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
|
|
|
|