Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uni-app-ddh-shop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhanhai
uni-app-ddh-shop
Commits
bed17652
Commit
bed17652
authored
Oct 29, 2024
by
caimeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改退出登录的弹框;
贷超首页的刷新逻辑有问题,进行了优化(手机号相等判断有问题)
parent
456ddf99
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
154 additions
and
112 deletions
+154
-112
login.vue
pages/login/login.vue
+2
-0
index.vue
pages/my/index.vue
+1
-0
index.less
pages/setting/index.less
+121
-94
setting.vue
pages/setting/setting.vue
+18
-0
web.vue
pages/web/web.vue
+5
-11
app-service.js
unpackage/dist/dev/app-plus/app-service.js
+6
-6
app-view.js
unpackage/dist/dev/app-plus/app-view.js
+1
-1
No files found.
pages/login/login.vue
View file @
bed17652
...
...
@@ -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
,
'请求出错'
)
})
...
...
pages/my/index.vue
View file @
bed17652
...
...
@@ -91,6 +91,7 @@ export default {
},
methods
:
{
toJSON
(){},
// 初始化
init
()
{
const
token
=
uni
.
getStorageSync
(
'token'
)
...
...
pages/setting/index.less
View file @
bed17652
.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,16 +49,18 @@
text-align: left;
font-style: normal;
}
.r-icon{
.r-icon {
display: inline-block;
width: 30rpx;
height: 30rpx;
background: url('https://ddh.yyhock.com/ddhMall/my-back.png') 0 0 no-repeat;
background-size: 100%;
}
}
.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,78 +120,91 @@
text-align: center;
font-style: normal;
}
.popup_overlay {
position: fixed;
top: 0%;
left: 0%;
width: 100%;
height: 100%;
background-color: black;
z-index: 1001;
-moz-opacity: 0.8;
opacity: 0.5;
filter: alpha(opacity=88);
.popup_overlay {
position: fixed;
top: 0%;
left: 0%;
width: 100%;
height: 100%;
background-color: black;
z-index: 1001;
-moz-opacity: 0.8;
opacity: 0.5;
filter: alpha(opacity=88);
}
.popup_content {
position: fixed;
top: 50%;
left: 52%;
width: 540rpx;
height: 336rpx;
background: #FFFFFF;
border-radius: 22rpx;
margin-left: -290rpx;
margin-top: -270rpx;
background-color: white;
z-index: 1002;
overflow: auto;
// display: flex;
// flex-direction: column;
.popup_title {
text-align: center;
font-size: 32rpx;
height: 100rpx;
line-height: 100rpx;
box-sizing: border-box;
}
.popup_content {
position: fixed;
top: 50%;
left: 52%;
width: 540rpx;
height: 336rpx;
background: #FFFFFF;
border-radius: 22rpx;
margin-left: -290rpx;
margin-top: -270rpx;
background-color: white;
z-index: 1002;
overflow: auto;
.popup_title {
padding:38rpx 0 24rpx 0;
text-align: center;
font-size: 32rpx;
}
.popup_main{
margin:0 44rpx;
height: 84rpx;
font-size: 30rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #757575;
line-height: 42rpx;
padding-bottom:26rpx;
.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;
box-sizing: border-box;
text-align: center;
}
.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%;
font-size: 36rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
text-align: center;
}
.popup-m-text{
padding-left:40rpx;
.btn-cel {
color: #2263E6;
}
.btn-main{
display: flex;
border-top: 2rpx solid #E5E5E5;
width: 100%;
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;
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;
}
.btn-confirm {
background: #FFFFFF;
border-right: 2rpx solid #E5E5E5;
font-weight: 400;
color: #333333;
}
}
}
}
}
\ No newline at end of file
pages/setting/setting.vue
View file @
bed17652
...
...
@@ -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
)
...
...
pages/web/web.vue
View file @
bed17652
...
...
@@ -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
)
{
...
...
unpackage/dist/dev/app-plus/app-service.js
View file @
bed17652
This source diff could not be displayed because it is too large. You can
view the blob
instead.
unpackage/dist/dev/app-plus/app-view.js
View file @
bed17652
...
...
@@ -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;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment