|
@@ -249,7 +249,7 @@
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
class="submit"
|
|
|
- @click="login"
|
|
|
+ @click="login()"
|
|
|
:loading="isLogin"
|
|
|
>登录</el-button
|
|
|
>
|
|
@@ -503,7 +503,7 @@
|
|
|
type="primary"
|
|
|
:loading="isBind"
|
|
|
round
|
|
|
- @click="bind"
|
|
|
+ @click="bind()"
|
|
|
>确定</el-button
|
|
|
>
|
|
|
<div class="bind-next" @click="bindNext">下次再关联</div>
|
|
@@ -585,7 +585,7 @@ export default {
|
|
|
read: [{ required: true, trigger: "blur", message: "请勾选服务协议" }],
|
|
|
},
|
|
|
bindShow: false,
|
|
|
- loginType: 1,
|
|
|
+ loginType: 2,
|
|
|
loginForm: {},
|
|
|
loginSmsForm: {},
|
|
|
bindForm: {},
|
|
@@ -914,17 +914,17 @@ export default {
|
|
|
* 微信登入—返回数据
|
|
|
*/
|
|
|
wxLoginBack(res) {
|
|
|
- if (res.data.full_info) {
|
|
|
+ // if (res.data.full_info) {
|
|
|
localStorage.setItem("user_account", res.data.user_account);
|
|
|
localStorage.setItem("token", res.data.token);
|
|
|
this.getInfo();
|
|
|
- } else {
|
|
|
+ // } else {
|
|
|
this.indexUserAccount = res.data.user_account;
|
|
|
this.indexToken = res.data.token;
|
|
|
- this.isLogin = false;
|
|
|
+ // this.isLogin = false;
|
|
|
//弹窗
|
|
|
- this.bindShow = true;
|
|
|
- }
|
|
|
+ // this.bindShow = true;
|
|
|
+ // }
|
|
|
},
|
|
|
goLast() {
|
|
|
if (this.recordList.goodsType == 6) {
|
|
@@ -1201,18 +1201,18 @@ export default {
|
|
|
this.$request
|
|
|
.login(loginForm)
|
|
|
.then((res) => {
|
|
|
- if (res.data.full_info) {
|
|
|
+ // if (res.data.full_info) {
|
|
|
localStorage.setItem("user_account", res.data.user_account);
|
|
|
localStorage.setItem("token", res.data.token);
|
|
|
|
|
|
this.getInfo();
|
|
|
- } else {
|
|
|
+ // } else {
|
|
|
this.indexUserAccount = res.data.user_account;
|
|
|
this.indexToken = res.data.token;
|
|
|
- this.isLogin = false;
|
|
|
+ // this.isLogin = false;
|
|
|
//弹窗
|
|
|
- this.bindShow = true;
|
|
|
- }
|
|
|
+ // this.bindShow = true;
|
|
|
+ // }
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
this.isLogin = false;
|
|
@@ -1271,16 +1271,16 @@ export default {
|
|
|
.loginSms(this.loginSmsForm)
|
|
|
.then((res) => {
|
|
|
this.isloginSms = false;
|
|
|
- if (res.data.full_info) {
|
|
|
+ // if (res.data.full_info) {
|
|
|
localStorage.setItem("user_account", res.data.user_account);
|
|
|
localStorage.setItem("token", res.data.token);
|
|
|
this.$tools.setUuid(new Date().valueOf() + "");
|
|
|
this.getInfo();
|
|
|
- } else {
|
|
|
+ // } else {
|
|
|
this.indexUserAccount = res.data.user_account;
|
|
|
this.indexToken = res.data.token;
|
|
|
- this.bindShow = true;
|
|
|
- }
|
|
|
+ // this.bindShow = true;
|
|
|
+ // }
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
this.isloginSms = false;
|
|
@@ -1320,7 +1320,7 @@ export default {
|
|
|
*/
|
|
|
getInfo() {
|
|
|
this.$request
|
|
|
- .getInfo()
|
|
|
+ .getInfo({fromPlat: 2})
|
|
|
.then((res) => {
|
|
|
this.loginForm = {};
|
|
|
this.loginSmsForm = {};
|