Commit cac963da authored by linwenqing's avatar linwenqing

improvement:登录失败,提示修改

parent f9d816ec
......@@ -158,7 +158,7 @@ export default {
}
} else {
uni.showModal({
title: "登录失败",
title: "登录失败,请重试",
content: "未获取到code",
});
}
......
......@@ -22,7 +22,8 @@
</view>
<u-gap height="480"></u-gap>
<view v-if="needAuth">
<button class="loginBtn" lang="zh_CN" @tap="getUserProfile">
<button class="loginBtn" lang="zh_CN" @click.capture="loadLogin"
@tap="getUserProfile">
<text class="u-font-32 white">{{ loginTitle }}</text>
</button>
</view>
......@@ -70,6 +71,12 @@ export default {
}
},
methods: {
loadLogin() {
uni.showLoading({
title: '加载中..',
mask: true
});
},
qnFile(src) {
return process.uniEnv.qn_base_url + src
},
......
......@@ -15,7 +15,7 @@ function appLogin() {
fail() {
uni.hideLoading();
uni.showModal({
content: '小程序登录失败',
content: '小程序登录失败,请重试',
showCancel: false
});
reject();
......@@ -57,7 +57,7 @@ function signup(data) {
} else {
console.log(res.message)
uni.showModal({
content: '登录失败',
content: '登录失败,请重试',
showCancel: false
});
reject(res);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment