一键登录调整优化

This commit is contained in:
唐明明
2021-10-20 11:03:30 +08:00
parent 9052c3001b
commit 660ed885d3
7 changed files with 9 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ const config = {
let loginHintState = false
// 网络请求
const request = (parameter) => {
const request = (parameter, hideLoding) => {
// 检查url配置
if(parameter.url === 'undefined' || parameter.url === ''){
uni.showToast({
@@ -33,11 +33,11 @@ const request = (parameter) => {
'Authorization': store.getters.getToken || ''
}
// 加载提示
uni.showLoading({
if(!hideLoding) uni.showLoading({
title: '加载中',
mask : true
});
// console.log('debug', parameter)
// 请求实例
return new Promise((resolve, reject) => {
uni.request({

View File

@@ -40,7 +40,7 @@ const keyAuth = (data) => {
url: 'user/socialite/login/unicloud/app',
method: 'POST',
data: data
})
}, true)
}

View File

@@ -25,7 +25,7 @@
<view class="quick">
<view class="quick-title">快捷登录</view>
<view class="quick-box">
<image class="quick-icon" src="@/static/icons/wechat.png" mode="widthFix" @click="onKeyAuth"></image>
<image class="quick-icon" src="@/static/icons/keyphone.png" mode="widthFix" @click="onKeyAuth"></image>
</view>
</view>
<!-- 用户登录注册协议 -->

BIN
static/icons/keyphone.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

File diff suppressed because one or more lines are too long

View File

@@ -14174,7 +14174,7 @@ var render = function() {
_c("v-uni-image", {
staticClass: _vm._$g(17, "sc"),
attrs: {
src: "/static/icons/wechat.png",
src: "/static/icons/keyphone.png",
mode: "widthFix",
_i: 17
},

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB