Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
cd22d164
Commit
cd22d164
authored
Nov 04, 2022
by
kyle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个人中心
parent
7b3ee24c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
117 additions
and
11 deletions
+117
-11
App.vue
+7
-0
common/common.ts
+2
-2
pages/courseDetail/courseDetail.vue
+0
-3
pages/personalCenter/personalCenter.vue
+108
-6
No files found.
App.vue
View file @
cd22d164
...
...
@@ -33,4 +33,11 @@
-webkit-text-stroke-width
:
0.2px
;
-moz-osx-font-smoothing
:
grayscale
;
}
ul
,
li
{
margin
:
0
;
padding
:
0
;
}
.container
{
background-color
:
#FBFBFB
;
}
</
style
>
common/common.ts
View file @
cd22d164
...
...
@@ -9,10 +9,10 @@ export default {
},
// 封装报错弹窗
errorDialog
(
type
,
content
){
errorDialog
(
type
,
content
,
title
=
null
){
// type 1 必填项校验 2 规则校验
uni
.
showModal
({
title
:
t
ype
===
1
?
'必填项校验'
:
'规则校验'
,
title
:
t
itle
?
title
:
(
type
===
1
?
'必填项校验'
:
'规则校验'
)
,
content
:
content
,
showCancel
:
false
,
success
:
function
(
res
)
{
...
...
pages/courseDetail/courseDetail.vue
View file @
cd22d164
...
...
@@ -97,9 +97,6 @@
</
script
>
<
style
lang=
"scss"
>
.container
{
background-color
:
#FBFBFB
;
}
.courseBannerBox
{
height
:
300
rpx
;
background-color
:
#ebebeb
;
...
...
pages/personalCenter/personalCenter.vue
View file @
cd22d164
<
template
>
<view>
<view
class=
"container"
>
<!-- 头部信息 -->
<view
class=
"basicInfoBox"
>
<view
class=
"avatar"
>
...
...
@@ -22,14 +22,36 @@
</view>
<!-- 主要菜单 -->
<view
class=
"mainMenuBox"
>
<view
class=
"item"
v-for=
"mainMenu in mainMenuLists"
:key=
"mainMenu.id"
>
<h4>
{{
mainMenu
.
categoryName
}}
</h4>
<view
class=
"menuItemBox"
>
<view
class=
"mainMenuItem"
v-for=
"menuItem in mainMenu.children.filter(v=>v.isShow)"
:key=
"menuItem.title"
@
click=
"goDetail(menuItem)"
>
<img
:src=
"'/static/moduleIcon/'+menuItem.icon+'.png'"
alt=
""
srcset=
""
>
<text>
{{
menuItem
.
title
}}
</text>
</view>
</view>
</view>
</view>
<!-- 个人信息 -->
<view
class=
"personalInfo"
></view>
<view
class=
"personalInfo"
>
<ul>
<li
v-for=
"item in minorMenuLists.filter(v=>v.isShow)"
:key=
"item.title"
>
<view
class=
"infoBox"
>
<img
:src=
"'/static/moduleIcon/'+item.icon+'.png'"
alt=
""
srcset=
""
>
<text>
{{
item
.
title
}}
</text>
</view>
<view
class=
"iconBox"
>
<i
class=
"iconfont icon-youjiantou"
></i>
</view>
</li>
</ul>
</view>
</view>
</
template
>
<
script
>
import
common
from
"../../common/common"
;
export
default
{
data
()
{
return
{
...
...
@@ -39,7 +61,7 @@
children
:[
{
title
:
'销售课程'
,
icon
:
'salesCourse'
,
link
:
''
,
isOpen
:
true
,
isShow
:
true
},
{
title
:
'销售保单'
,
icon
:
'salesOrder'
,
link
:
''
,
isOpen
:
true
,
isShow
:
true
},
{
title
:
'我的售后'
,
icon
:
'afterSales'
,
link
:
''
,
isOpen
:
tru
e
,
isShow
:
true
}
{
title
:
'我的售后'
,
icon
:
'afterSales'
,
link
:
''
,
isOpen
:
fals
e
,
isShow
:
true
}
],
},
{
id
:
'01'
,
categoryName
:
'积分管理'
,
...
...
@@ -79,12 +101,27 @@
}
},
methods
:
{
// 菜单跳转页面
goDetail
(
item
){
if
(
item
.
isShow
&&
item
.
isOpen
){
}
else
{
common
.
errorDialog
(
2
,
'该模块正在开发中,敬请期待!'
,
'提示'
);
}
},
// 弹窗
errorDialog
(
type
,
content
){
common
.
errorDialog
(
type
,
content
);
return
false
;
}
}
}
</
script
>
<
style
lang=
"scss"
>
.container
{
padding-bottom
:
160
rpx
;
}
.basicInfoBox
{
display
:
flex
;
padding
:
17
rpx
20
rpx
0
28
rpx
;
...
...
@@ -109,7 +146,7 @@
border-radius
:
10
rpx
;
border
:
1
rpx
solid
#666
;
padding
:
4
rpx
10
rpx
;
margin-left
:
6
rpx
;
margin-left
:
10
rpx
;
font-size
:
24
rpx
;
}
.personalInfoBtn
{
...
...
@@ -118,6 +155,11 @@
color
:
#fff
;
text-align
:
center
;
padding
:
6
rpx
7
rpx
;
font-size
:
24
rpx
;
.iconfont{
font-size
:
24
rpx
;
margin-left
:
4
rpx
;
}
}
}
.firstLineBox
{
...
...
@@ -127,5 +169,65 @@
}
}
}
.mainMenuBox
{
background-color
:
#fff
;
width
:
95%
;
margin
:
-60
rpx
auto
30
rpx
;
border-radius
:
10
rpx
;
padding
:
12
rpx
30
rpx
;
box-sizing
:
border-box
;
h4{
font-size
:
30
rpx
;
color
:
#333
;
margin-bottom
:
10
rpx
;
}
.item
{
margin-bottom
:
30
rpx
;
}
.menuItemBox
{
display
:
flex
;
flex-wrap
:
wrap
;
.mainMenuItem{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
max-width
:
20%
;
flex
:
1
;
img{
width
:
80
rpx
;
}
text
{
font-size
:
28
rpx
;
color
:
#333
;
}
}
}
}
.personalInfo
{
background
:
#fff
;
width
:
95%
;
margin
:
6
rpx
auto
0
;
ul{
padding
:
0
30
rpx
;
li{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
border-bottom
:
1px
solid
#E6E6E6
;
height
:
92
rpx
;
.infoBox{
display
:
flex
;
align-items
:
center
;
img{
width
:
52
rpx
;
height
:
52
rpx
;
}
}
&
:last-child
{
border
:
none
;
}
}
}
}
</
style
>
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