@@ -83,7 +83,7 @@ module.exports = (vm) => {
unlogin()
}
- if(data.msg == "用户不存在!"){
+ if(data.msg == "用户不存在!"||data.msg == "用户未注册"){
uni.clearStorage();
@@ -179,7 +179,7 @@
})
return
- this.showAuthorizeUser=false;
+ this.showAuthorizePhone=false;
this.loginBtn = false;
let _this = this;
// this.getMobile()
@@ -195,6 +195,7 @@
icon:'error',
duration: 2000
});
+ this.loginBtn = true;
},
async login(e){
@@ -2,7 +2,8 @@
<view class="pages">
<u-navbar
title="产品详情"
- :autoBack="true"
+ :autoBack="false"
+ @leftClick="leftClick"
:safeAreaInsetTop="true"
>
</u-navbar>
@@ -130,6 +131,14 @@
this.getCartList()
methods: {
+ leftClick(e){
+ let pages = getCurrentPages();
+ if(pages.length==1){
+ uni.$u.route('/pages/index/index')
+ }else{
+ uni.navigateBack()
+ };
+ },
getCartList(isAdd){
this.$u.api.cartList().then(res=>{
if(isAdd){