Commit bed17652 authored by caimeng's avatar caimeng

修改退出登录的弹框;

贷超首页的刷新逻辑有问题,进行了优化(手机号相等判断有问题)
parent 456ddf99
......@@ -214,9 +214,11 @@ export default {
uni.setStorageSync('mobileCall', self.mobile)
uni.setStorageSync('deviceId', deviceId)
uni.setStorageSync('tokenFinance', token)
uni.navigateBack({
delta: 1
})
}).catch(err => {
console.log(err, '请求出错')
})
......
......@@ -91,6 +91,7 @@ export default {
},
methods: {
toJSON(){},
// 初始化
init() {
const token = uni.getStorageSync('token')
......
.set-page{
.set-page {
width: 100%;
height: 100vh;
// min-height: 1624rpx;
background: #F7FAFF;
.set-main{
padding-top:8rpx;
.main-line{
margin:24rpx 30rpx;
.set-main {
padding-top: 8rpx;
.main-line {
margin: 24rpx 30rpx;
background: #FFFFFF;
.line-item{
.line-item {
margin: 0 13rpx 0 27rpx;
height: 110rpx;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1rpx solid #E9E9E9;
.item-text{
.item-text {
font-family: PingFangSC, PingFang SC;
font-weight: 400;
font-size: 32rpx;
......@@ -24,16 +28,19 @@
text-align: left;
font-style: normal;
}
.item-icon{
.item-icon {
width: 30rpx;
height: 30rpx;
background: url('https://ddh.yyhock.com/ddhMall/my-back.png') 0 0 no-repeat;
background-size: 100%;
}
.item-r{
.item-r {
display: flex;
align-items: center;
.r-text{
.r-text {
font-family: PingFangSC, PingFang SC;
font-weight: 400;
font-size: 32rpx;
......@@ -42,7 +49,8 @@
text-align: left;
font-style: normal;
}
.r-icon{
.r-icon {
display: inline-block;
width: 30rpx;
height: 30rpx;
......@@ -51,7 +59,8 @@
}
}
.item-version{
.item-version {
font-family: PingFangSC, PingFang SC;
font-weight: 400;
font-size: 32rpx;
......@@ -61,12 +70,14 @@
font-style: normal;
}
}
.line-item:last-child{
border-bottom:none;
.line-item:last-child {
border-bottom: none;
}
}
.line-des{
margin-left:30rpx;
.line-des {
margin-left: 30rpx;
display: flex;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
......@@ -75,12 +86,14 @@
line-height: 33rpx;
text-align: left;
font-style: normal;
.des-x{
color:#2263E6;
.des-x {
color: #2263E6;
}
}
.line-tips{
margin-left:30rpx;
.line-tips {
margin-left: 30rpx;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
font-size: 24rpx;
......@@ -90,13 +103,14 @@
font-style: normal;
}
}
.set-footer{
margin:0 40rpx;
.set-footer {
margin: 0 40rpx;
position: fixed;
bottom:30rpx;
bottom: 30rpx;
width: 670rpx;
height: 88rpx;
background: linear-gradient( 137deg, #3877F5 0%, #5690FA 100%);
background: linear-gradient(137deg, #3877F5 0%, #5690FA 100%);
border-radius: 44rpx;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
......@@ -106,6 +120,7 @@
text-align: center;
font-style: normal;
}
.popup_overlay {
position: fixed;
top: 0%;
......@@ -132,49 +147,61 @@
background-color: white;
z-index: 1002;
overflow: auto;
// display: flex;
// flex-direction: column;
.popup_title {
padding:38rpx 0 24rpx 0;
text-align: center;
font-size: 32rpx;
height: 100rpx;
line-height: 100rpx;
box-sizing: border-box;
}
.popup_main{
margin:0 44rpx;
height: 84rpx;
.popup_main {
margin: 0 44rpx;
height: 136rpx;
font-size: 30rpx;
padding-top: 20rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #757575;
line-height: 42rpx;
padding-bottom:26rpx;
padding-bottom: 26rpx;
box-sizing: border-box;
text-align: center;
}
.popup-m-text{
padding-left:40rpx;
}
.btn-main{
.btn-main {
flex: 1;
display: flex;
align-items: center;
border-top: 2rpx solid #E5E5E5;
width: 100%;
height: 100rpx;
line-height: 100rpx;
&>view {
flex: 1;
height: 100%;
.btn-cel{
flex:1;
font-size: 36rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #2263E6;
line-height:109rpx;
text-align: center;
}
.btn-confirm{
flex:1;
.btn-cel {
color: #2263E6;
}
.btn-confirm {
background: #FFFFFF;
border-right: 2rpx solid #E5E5E5;
font-size: 36rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #333333;
line-height: 109rpx;
text-align: center;
}
}
......
......@@ -102,6 +102,7 @@
});
},
methods: {
toJSON(){},
init(){
const self=this
self.$request('/pawn/setting','GET').then(res => {
......@@ -159,7 +160,24 @@
})
},
loginOut(){
const pages = getCurrentPages();
pages.forEach(page=>{
console.log(page,'页面')
const isWebView = page.$getAppWebview();
if(isWebView){
let currentPages = page.$getAppWebview()
let children = isWebView.children()
if (children.length){
children[0].close()
}
}
})
//退出登录
const self=this
console.log(333)
......
......@@ -6,21 +6,12 @@
<script>
import { loadLocation } from './tools'
import {
CheckContactPermission,
SelectContact
} from './authPermission'
import storage from '@/utils/storage'
import {
UploadFile
} from './utils/uploads'
import { CheckContactPermission, SelectContact } from './authPermission'
import { UploadFile } from './utils/uploads'
import Permission from '@/js_sdk/wa-permission/permission' //权限工具类
const LF = uni.requireNativePlugin('AThree-LFv2')
import api from '@/config/api'
let reloadTimeOut = null
let token = uni.getStorageSync('token')
console.log(token, '是否登录')
export default {
name: "WEB",
......@@ -68,6 +59,9 @@ export default {
},
onTabItemTap(e) {
console.log(e, 'tabItemTap')
const pages = getCurrentPages();
const $CurrentPage = pages[pages.length - 1];
console.log($CurrentPage.route, '路由信息')
this.wv && this.wv.evalJS(`callback({ 'action': 'OnShow' })`)
},
async onLoad(option) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -6651,7 +6651,7 @@ if(false) {}
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/runtime/api.js */ 10);
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, ".set-page[data-v-602012f8] {\n width: 100%;\n height: 100vh;\n background: #F7FAFF;\n}\n.set-page .set-main[data-v-602012f8] {\n padding-top: 8rpx;\n}\n.set-page .set-main .main-line[data-v-602012f8] {\n margin: 24rpx 30rpx;\n background: #FFFFFF;\n}\n.set-page .set-main .main-line .line-item[data-v-602012f8] {\n margin: 0 13rpx 0 27rpx;\n height: 110rpx;\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-bottom: 1rpx solid #E9E9E9;\n}\n.set-page .set-main .main-line .line-item .item-text[data-v-602012f8] {\n font-family: PingFangSC, PingFang SC;\n font-weight: 400;\n font-size: 32rpx;\n color: #333333;\n line-height: 110rpx;\n text-align: left;\n font-style: normal;\n}\n.set-page .set-main .main-line .line-item .item-icon[data-v-602012f8] {\n width: 30rpx;\n height: 30rpx;\n background: url('https://ddh.yyhock.com/ddhMall/my-back.png') 0 0 no-repeat;\n background-size: 100%;\n}\n.set-page .set-main .main-line .line-item .item-r[data-v-602012f8] {\n display: flex;\n align-items: center;\n}\n.set-page .set-main .main-line .line-item .item-r .r-text[data-v-602012f8] {\n font-family: PingFangSC, PingFang SC;\n font-weight: 400;\n font-size: 32rpx;\n color: #999999;\n line-height: 40rpx;\n text-align: left;\n font-style: normal;\n}\n.set-page .set-main .main-line .line-item .item-r .r-icon[data-v-602012f8] {\n display: inline-block;\n width: 30rpx;\n height: 30rpx;\n background: url('https://ddh.yyhock.com/ddhMall/my-back.png') 0 0 no-repeat;\n background-size: 100%;\n}\n.set-page .set-main .main-line .line-item .item-version[data-v-602012f8] {\n font-family: PingFangSC, PingFang SC;\n font-weight: 400;\n font-size: 32rpx;\n color: #999999;\n line-height: 110rpx;\n text-align: right;\n font-style: normal;\n}\n.set-page .set-main .main-line .line-item[data-v-602012f8]:last-child {\n border-bottom: none;\n}\n.set-page .set-main .line-des[data-v-602012f8] {\n margin-left: 30rpx;\n display: flex;\n font-family: PingFangSC, PingFang SC;\n font-weight: 400;\n font-size: 24rpx;\n color: #999999;\n line-height: 33rpx;\n text-align: left;\n font-style: normal;\n}\n.set-page .set-main .line-des .des-x[data-v-602012f8] {\n color: #2263E6;\n}\n.set-page .set-main .line-tips[data-v-602012f8] {\n margin-left: 30rpx;\n font-family: PingFangSC, PingFang SC;\n font-weight: 400;\n font-size: 24rpx;\n color: #999999;\n line-height: 33rpx;\n text-align: left;\n font-style: normal;\n}\n.set-page .set-footer[data-v-602012f8] {\n margin: 0 40rpx;\n position: fixed;\n bottom: 30rpx;\n width: 670rpx;\n height: 88rpx;\n background: linear-gradient(137deg, #3877F5 0%, #5690FA 100%);\n border-radius: 44rpx;\n font-family: PingFangSC, PingFang SC;\n font-weight: 400;\n font-size: 32rpx;\n color: #FFFFFF;\n line-height: 88rpx;\n text-align: center;\n font-style: normal;\n}\n.set-page .popup_overlay[data-v-602012f8] {\n position: fixed;\n top: 0%;\n left: 0%;\n width: 100%;\n height: 100%;\n background-color: black;\n z-index: 1001;\n -moz-opacity: 0.8;\n opacity: 0.5;\n filter: alpha(opacity=88);\n}\n.set-page .popup_content[data-v-602012f8] {\n position: fixed;\n top: 50%;\n left: 52%;\n width: 540rpx;\n height: 336rpx;\n background: #FFFFFF;\n border-radius: 22rpx;\n margin-left: -290rpx;\n margin-top: -270rpx;\n background-color: white;\n z-index: 1002;\n overflow: auto;\n}\n.set-page .popup_content .popup_title[data-v-602012f8] {\n padding: 38rpx 0 24rpx 0;\n text-align: center;\n font-size: 32rpx;\n}\n.set-page .popup_content .popup_main[data-v-602012f8] {\n margin: 0 44rpx;\n height: 84rpx;\n font-size: 30rpx;\n font-family: PingFangSC-Regular, PingFang SC;\n font-weight: 400;\n color: #757575;\n line-height: 42rpx;\n padding-bottom: 26rpx;\n text-align: center;\n}\n.set-page .popup_content .popup-m-text[data-v-602012f8] {\n padding-left: 40rpx;\n}\n.set-page .popup_content .btn-main[data-v-602012f8] {\n display: flex;\n border-top: 2rpx solid #E5E5E5;\n width: 100%;\n height: 100%;\n}\n.set-page .popup_content .btn-main .btn-cel[data-v-602012f8] {\n flex: 1;\n font-size: 36rpx;\n font-family: PingFangSC-Medium, PingFang SC;\n font-weight: 500;\n color: #2263E6;\n line-height: 109rpx;\n text-align: center;\n}\n.set-page .popup_content .btn-main .btn-confirm[data-v-602012f8] {\n flex: 1;\n background: #FFFFFF;\n border-right: 2rpx solid #E5E5E5;\n font-size: 36rpx;\n font-family: PingFangSC-Regular, PingFang SC;\n font-weight: 400;\n color: #333333;\n line-height: 109rpx;\n text-align: center;\n}\n", ""]);
exports.push([module.i, ".set-page[data-v-602012f8] {\n width: 100%;\n height: 100vh;\n background: #F7FAFF;\n}\n.set-page .set-main[data-v-602012f8] {\n padding-top: 8rpx;\n}\n.set-page .set-main .main-line[data-v-602012f8] {\n margin: 24rpx 30rpx;\n background: #FFFFFF;\n}\n.set-page .set-main .main-line .line-item[data-v-602012f8] {\n margin: 0 13rpx 0 27rpx;\n height: 110rpx;\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-bottom: 1rpx solid #E9E9E9;\n}\n.set-page .set-main .main-line .line-item .item-text[data-v-602012f8] {\n font-family: PingFangSC, PingFang SC;\n font-weight: 400;\n font-size: 32rpx;\n color: #333333;\n line-height: 110rpx;\n text-align: left;\n font-style: normal;\n}\n.set-page .set-main .main-line .line-item .item-icon[data-v-602012f8] {\n width: 30rpx;\n height: 30rpx;\n background: url('https://ddh.yyhock.com/ddhMall/my-back.png') 0 0 no-repeat;\n background-size: 100%;\n}\n.set-page .set-main .main-line .line-item .item-r[data-v-602012f8] {\n display: flex;\n align-items: center;\n}\n.set-page .set-main .main-line .line-item .item-r .r-text[data-v-602012f8] {\n font-family: PingFangSC, PingFang SC;\n font-weight: 400;\n font-size: 32rpx;\n color: #999999;\n line-height: 40rpx;\n text-align: left;\n font-style: normal;\n}\n.set-page .set-main .main-line .line-item .item-r .r-icon[data-v-602012f8] {\n display: inline-block;\n width: 30rpx;\n height: 30rpx;\n background: url('https://ddh.yyhock.com/ddhMall/my-back.png') 0 0 no-repeat;\n background-size: 100%;\n}\n.set-page .set-main .main-line .line-item .item-version[data-v-602012f8] {\n font-family: PingFangSC, PingFang SC;\n font-weight: 400;\n font-size: 32rpx;\n color: #999999;\n line-height: 110rpx;\n text-align: right;\n font-style: normal;\n}\n.set-page .set-main .main-line .line-item[data-v-602012f8]:last-child {\n border-bottom: none;\n}\n.set-page .set-main .line-des[data-v-602012f8] {\n margin-left: 30rpx;\n display: flex;\n font-family: PingFangSC, PingFang SC;\n font-weight: 400;\n font-size: 24rpx;\n color: #999999;\n line-height: 33rpx;\n text-align: left;\n font-style: normal;\n}\n.set-page .set-main .line-des .des-x[data-v-602012f8] {\n color: #2263E6;\n}\n.set-page .set-main .line-tips[data-v-602012f8] {\n margin-left: 30rpx;\n font-family: PingFangSC, PingFang SC;\n font-weight: 400;\n font-size: 24rpx;\n color: #999999;\n line-height: 33rpx;\n text-align: left;\n font-style: normal;\n}\n.set-page .set-footer[data-v-602012f8] {\n margin: 0 40rpx;\n position: fixed;\n bottom: 30rpx;\n width: 670rpx;\n height: 88rpx;\n background: linear-gradient(137deg, #3877F5 0%, #5690FA 100%);\n border-radius: 44rpx;\n font-family: PingFangSC, PingFang SC;\n font-weight: 400;\n font-size: 32rpx;\n color: #FFFFFF;\n line-height: 88rpx;\n text-align: center;\n font-style: normal;\n}\n.set-page .popup_overlay[data-v-602012f8] {\n position: fixed;\n top: 0%;\n left: 0%;\n width: 100%;\n height: 100%;\n background-color: black;\n z-index: 1001;\n -moz-opacity: 0.8;\n opacity: 0.5;\n filter: alpha(opacity=88);\n}\n.set-page .popup_content[data-v-602012f8] {\n position: fixed;\n top: 50%;\n left: 52%;\n width: 540rpx;\n height: 336rpx;\n background: #FFFFFF;\n border-radius: 22rpx;\n margin-left: -290rpx;\n margin-top: -270rpx;\n background-color: white;\n z-index: 1002;\n overflow: auto;\n}\n.set-page .popup_content .popup_title[data-v-602012f8] {\n text-align: center;\n font-size: 32rpx;\n height: 100rpx;\n line-height: 100rpx;\n box-sizing: border-box;\n}\n.set-page .popup_content .popup_main[data-v-602012f8] {\n margin: 0 44rpx;\n height: 136rpx;\n font-size: 30rpx;\n padding-top: 20rpx;\n font-family: PingFangSC-Regular, PingFang SC;\n font-weight: 400;\n color: #757575;\n line-height: 42rpx;\n padding-bottom: 26rpx;\n box-sizing: border-box;\n text-align: center;\n}\n.set-page .popup_content .btn-main[data-v-602012f8] {\n flex: 1;\n display: flex;\n align-items: center;\n border-top: 2rpx solid #E5E5E5;\n width: 100%;\n height: 100rpx;\n line-height: 100rpx;\n}\n.set-page .popup_content .btn-main > uni-view[data-v-602012f8] {\n flex: 1;\n height: 100%;\n font-size: 36rpx;\n font-family: PingFangSC-Medium, PingFang SC;\n font-weight: 500;\n text-align: center;\n}\n.set-page .popup_content .btn-main .btn-cel[data-v-602012f8] {\n color: #2263E6;\n}\n.set-page .popup_content .btn-main .btn-confirm[data-v-602012f8] {\n background: #FFFFFF;\n border-right: 2rpx solid #E5E5E5;\n font-weight: 400;\n color: #333333;\n}\n", ""]);
// Exports
module.exports = exports;
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