Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bda09b1a
authored
Apr 08, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
首页添加退出、优化弹窗
1 parent
79001e16
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
14 deletions
pages.json
pages/detail/detail.vue
pages/home/home.vue
pages.json
View file @
bda09b1
...
@@ -4,18 +4,19 @@
...
@@ -4,18 +4,19 @@
},
},
"pages"
:
[
"pages"
:
[
{
{
"path"
:
"pages/
home/home
"
,
"path"
:
"pages/
common/login
"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
},
},
{
{
"path"
:
"pages/
common/login
"
,
"path"
:
"pages/
home/home
"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
},
},
{
{
"path"
:
"pages/detail/detail"
,
"path"
:
"pages/detail/detail"
,
"style"
:
{
"style"
:
{
...
...
pages/detail/detail.vue
View file @
bda09b1
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
* @Author: huyue
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @Date: 2024-04-08 11:30:30
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2024-04-08 17:
20:55
* @LastEditTime: 2024-04-08 17:
46:38
-->
-->
<
template
>
<
template
>
<view>
<view>
详情页
详情页
<button
@
click=
"open"
>
打开弹窗
</button>
<button
@
click=
"open"
>
完成接待
</button>
<uni-popup
ref=
"popup"
type=
"bottom"
:mask-click=
"false"
border-radius=
"16px 16px 0 0"
>
<uni-popup
ref=
"popup"
type=
"bottom"
:mask-click=
"false"
border-radius=
"16px 16px 0 0"
>
<view
class=
"popup-wrapper"
>
<view
class=
"popup-wrapper"
>
<view
class=
"popup-box"
>
<view
class=
"popup-box"
>
...
@@ -78,7 +78,7 @@ const ACCOUT_LIST = [
...
@@ -78,7 +78,7 @@ const ACCOUT_LIST = [
},
},
{
{
label
:
'支行账号'
,
label
:
'支行账号'
,
field
:
'
paymentType
'
field
:
'
subBranchAccount
'
},
},
{
{
label
:
'一般账户'
,
label
:
'一般账户'
,
...
...
pages/home/home.vue
View file @
bda09b1
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2024-04-07 14:39:40
* @Date: 2024-04-07 14:39:40
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2024-04-08 1
6:44:42
* @LastEditTime: 2024-04-08 1
7:40:50
-->
-->
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
...
@@ -15,11 +15,11 @@
...
@@ -15,11 +15,11 @@
src=
"../../static/logo.png"
src=
"../../static/logo.png"
mode=
"scaleToFill"
mode=
"scaleToFill"
/>
/>
<view
class=
"user-name"
>
huyue
</view>
<view
class=
"user-name"
>
{{
userInfo
.
name
}}
</view>
<view
class=
"user-position"
>
延保专员
</view>
<view
class=
"user-position"
>
延保专员
</view>
</view>
</view>
<view
class=
"left-footer"
>
<view
class=
"left-footer"
>
<view
class=
"logout"
>
<view
class=
"logout"
@
click=
"logout"
>
<glsx-image
class=
"icon-logout"
src=
"home/icon-logout.png"
mode=
"scaleToFill"
/>
<glsx-image
class=
"icon-logout"
src=
"home/icon-logout.png"
mode=
"scaleToFill"
/>
<view>
退出
</view>
<view>
退出
</view>
</view>
</view>
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
src=
"home/icon-addr.png"
src=
"home/icon-addr.png"
mode=
"scaleToFill"
mode=
"scaleToFill"
/>
/>
<view
class=
"addr-text"
>
东莞问界交付中心
</view>
<view
class=
"addr-text"
>
{{
userInfo
.
merchantName
}}
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -66,20 +66,26 @@ export default {
...
@@ -66,20 +66,26 @@ export default {
title
:
"问界三包政策"
,
title
:
"问界三包政策"
,
type
:
1
,
type
:
1
,
}
}
]
],
userInfo
:
{}
};
};
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
const
text
=
options
.
text
;
this
.
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
uni
.
setNavigationBarTitle
({
title
:
text
,
});
this
.
getSoure
()
this
.
getSoure
()
},
},
methods
:
{
methods
:
{
// 查询素材
async
getSoure
()
{
async
getSoure
()
{
this
.
moduleList
=
await
uni
.
$api
.
commonApi
.
findSoureList
()
this
.
moduleList
=
await
uni
.
$api
.
commonApi
.
findSoureList
()
},
},
// 退出
logout
()
{
console
.
log
(
1111111
)
uni
.
reLaunch
({
url
:
'/pages/common/login'
})
},
toDetail
(
item
)
{
toDetail
(
item
)
{
// this.$Router.push({name:'detail'})
// this.$Router.push({name:'detail'})
uni
.
navigateTo
({
uni
.
navigateTo
({
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment