|
@@ -233,11 +233,7 @@
|
|
|
title: "加载中",
|
|
|
mask: true,
|
|
|
})
|
|
|
- var headImg = "";
|
|
|
- var userInfo = this.carhelp.get("xpgj_wx_user_info")
|
|
|
- if (userInfo) {
|
|
|
- headImg = userInfo.headimgurl;
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
loginApi.register({
|
|
|
realName: this.form.realName,
|
|
@@ -246,15 +242,15 @@
|
|
|
verifyCode: this.form.verifyCode,
|
|
|
telephone: this.form.telephone,
|
|
|
openId: this.carhelp.getOpenId(),
|
|
|
- headImg: headImg
|
|
|
+
|
|
|
}).then((response) => {
|
|
|
var token = response ? response.data.token : '';
|
|
|
this.carhelp.setToken(token);
|
|
|
this.carhelp.setPersonInfo(response.data.memberInfo);
|
|
|
- //this.gotoUrl("pages/user/index")
|
|
|
- uni.switchTab({
|
|
|
- url: '/pages/index/index'
|
|
|
- })
|
|
|
+ this.gotoUrl("pages/login/step1")
|
|
|
+ // uni.switchTab({
|
|
|
+ // url: '/pages/index/index'
|
|
|
+ // })
|
|
|
}).catch(error => {
|
|
|
uni.showToast({
|
|
|
title: error,
|