Commit cac963da authored by linwenqing's avatar linwenqing

improvement:登录失败,提示修改

parent f9d816ec
...@@ -158,7 +158,7 @@ export default { ...@@ -158,7 +158,7 @@ export default {
} }
} else { } else {
uni.showModal({ uni.showModal({
title: "登录失败", title: "登录失败,请重试",
content: "未获取到code", content: "未获取到code",
}); });
} }
......
...@@ -22,7 +22,8 @@ ...@@ -22,7 +22,8 @@
</view> </view>
<u-gap height="480"></u-gap> <u-gap height="480"></u-gap>
<view v-if="needAuth"> <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> <text class="u-font-32 white">{{ loginTitle }}</text>
</button> </button>
</view> </view>
...@@ -70,6 +71,12 @@ export default { ...@@ -70,6 +71,12 @@ export default {
} }
}, },
methods: { methods: {
loadLogin() {
uni.showLoading({
title: '加载中..',
mask: true
});
},
qnFile(src) { qnFile(src) {
return process.uniEnv.qn_base_url + src return process.uniEnv.qn_base_url + src
}, },
......
...@@ -15,7 +15,7 @@ function appLogin() { ...@@ -15,7 +15,7 @@ function appLogin() {
fail() { fail() {
uni.hideLoading(); uni.hideLoading();
uni.showModal({ uni.showModal({
content: '小程序登录失败', content: '小程序登录失败,请重试',
showCancel: false showCancel: false
}); });
reject(); reject();
...@@ -57,7 +57,7 @@ function signup(data) { ...@@ -57,7 +57,7 @@ function signup(data) {
} else { } else {
console.log(res.message) console.log(res.message)
uni.showModal({ uni.showModal({
content: '登录失败', content: '登录失败,请重试',
showCancel: false showCancel: false
}); });
reject(res); 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