zmr #45

Merged
zhaomingrui merged 3 commits from zmr into master 2020-07-03 02:59:02 +00:00
Showing only changes of commit d5eb0e6908 - Show all commits

View File

@@ -50,7 +50,7 @@
<image src="../../static/pageA/weixin.png" class="image"></image> <image src="../../static/pageA/weixin.png" class="image"></image>
<view>微信登录</view> <view>微信登录</view>
</view> </view>
<view class="rect_butoon" @click="show = false">取消</view> <view class="rect_butoon" @click="show = false">取消</view>
</view> </view>
</view> </view>
</u-mask> </u-mask>
@@ -149,18 +149,27 @@
console.log(res) console.log(res)
// console.log(res) // console.log(res)
if (res.errCode == 0) { if (res.errCode == 0) {
// 缓存用户的信息 if(res.data == ''){
uni.setStorage({ this.$refs.uToast.show({
key: 'user_info', title: res.message,
data: res.data, type: 'error'
success: function() { })
console.log('success'); return false
// 跳转首页 }else{
uni.navigateTo({ // 缓存用户的信息
url : '/pageA/topick/topick' uni.setStorage({
}) key: 'user_info',
} data: res.data,
}); success: function() {
console.log('success');
// 跳转首页
uni.navigateTo({
url : '/pageA/topick/topick'
})
}
});
}
// 存储接口请求所需token // 存储接口请求所需token
uni.setStorage({ uni.setStorage({
@@ -180,7 +189,6 @@
type: 'error' type: 'error'
}) })
} }
}) })
}, },
// qq授权登录 // qq授权登录