一键登录调整优化
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -40,7 +40,7 @@ const keyAuth = (data) => {
|
||||
url: 'user/socialite/login/unicloud/app',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}, true)
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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
BIN
static/icons/keyphone.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.3 KiB |
6
unpackage/dist/dev/app-plus/app-service.js
vendored
6
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
2
unpackage/dist/dev/app-plus/app-view.js
vendored
2
unpackage/dist/dev/app-plus/app-view.js
vendored
@@ -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
|
||||
},
|
||||
|
||||
BIN
unpackage/dist/dev/app-plus/static/icons/keyphone.png
vendored
Normal file
BIN
unpackage/dist/dev/app-plus/static/icons/keyphone.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.3 KiB |
Reference in New Issue
Block a user