This commit is contained in:
zmr900709 2020-07-03 10:50:02 +08:00
parent b7f5711c02
commit d5eb0e6908

View File

@ -50,7 +50,7 @@
<image src="../../static/pageA/weixin.png" class="image"></image>
<view>微信登录</view>
</view>
<view class="rect_butoon" @click="show = false">取消</view>
<view class="rect_butoon" @click="show = false">取消</view>
</view>
</view>
</u-mask>
@ -149,18 +149,27 @@
console.log(res)
// console.log(res)
if (res.errCode == 0) {
//
uni.setStorage({
key: 'user_info',
data: res.data,
success: function() {
console.log('success');
//
uni.navigateTo({
url : '/pageA/topick/topick'
})
}
});
if(res.data == ''){
this.$refs.uToast.show({
title: res.message,
type: 'error'
})
return false
}else{
//
uni.setStorage({
key: 'user_info',
data: res.data,
success: function() {
console.log('success');
//
uni.navigateTo({
url : '/pageA/topick/topick'
})
}
});
}
// token
uni.setStorage({
@ -180,7 +189,6 @@
type: 'error'
})
}
})
},
// qq