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
7de33871
Commit
7de33871
authored
Jan 12, 2023
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重置密码页面重构&一些返回键样式调整&切换账号缓存&我的分享详情页日期&课程列表页轮播图不显示
parent
41cc903e
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
173 additions
and
98 deletions
+173
-98
components/carousel/carousel.vue
+2
-5
components/menuList/menuList.vue
+2
-2
pages/announcement/announcement.vue
+2
-2
pages/certifyDetail/certifyDetail.vue
+6
-11
pages/certifyDetail/uploadinformation.vue
+13
-7
pages/commonDetail/commonDetail.vue
+5
-2
pages/courselist/courselist.vue
+14
-2
pages/index/index.vue
+5
-2
pages/learnCertify/learnCertify.vue
+2
-2
pages/myCertify/myCertify.vue
+1
-1
pages/myLearning/myLearning.vue
+1
-1
pages/myPoints/myPoints.vue
+1
-9
pages/myShare/myShare.vue
+5
-10
pages/personalCenter/accountoperation/confirmResetpassword.vue
+46
-7
pages/personalCenter/accountoperation/resetpassword.vue
+3
-14
pages/personalCenter/myTeam.vue
+54
-18
pages/personalCenter/personalCenter.vue
+1
-1
pages/personalCenter/teamMembers/teamMembers.vue
+1
-1
pages/product/finance-calculator.vue
+9
-1
No files found.
components/carousel/carousel.vue
View file @
7de33871
<
template
>
<view
class=
"banner"
>
<view
class=
"uni-margin-wrap"
>
<swiper
class=
"swiper"
circular
:indicator-dots=
"indicatorDots"
:autoplay=
"autoplay"
:interval=
"interval"
:duration=
"duration"
>
<swiper-item
v-for=
"bannerItem in carouselList"
>
...
...
@@ -9,8 +7,6 @@
</uni-link>
</swiper-item>
</swiper>
</view>
</view>
</
template
>
<
script
>
...
...
@@ -37,6 +33,6 @@
<
style
lang=
"scss"
>
.swiper
{
height
:
2
3
8
rpx
;
height
:
2
2
8
rpx
;
}
</
style
>
\ No newline at end of file
components/menuList/menuList.vue
View file @
7de33871
...
...
@@ -69,10 +69,10 @@
.personalInfo
{
background
:
#fff
;
width
:
95%
;
margin
:
2
0
rpx
auto
0
;
margin
:
5
0
rpx
auto
0
;
.ulBox
{
padding
:
0
3
0
rpx
;
padding
:
0
2
0
rpx
;
.liBox
{
display
:
flex
;
...
...
pages/announcement/announcement.vue
View file @
7de33871
...
...
@@ -57,8 +57,8 @@
})
},
goBack
(){
uni
.
navigateBack
({
delta
:
1
uni
.
switchTab
({
url
:
`/pages/index/index`
})
}
}
...
...
pages/certifyDetail/certifyDetail.vue
View file @
7de33871
<
template
>
<view
class=
"container"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"
left: 20rpx;
"
></text>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"
top:20rpx
"
></text>
<view
class=
"certifyIntro"
v-html=
"certificateInfo.cerIntroduce"
></view>
<view
class=
"certifySignInfo"
>
<view
class=
"ulBox"
>
...
...
@@ -100,14 +100,9 @@
},
methods
:{
goBack
(){
let
back
=
getCurrentPages
();
if
(
back
&&
back
.
length
>
1
)
{
uni
.
navigateBack
({
delta
:
1
});
}
else
{
history
.
back
();
}
uni
.
navigateBack
({
delta
:
1
});
},
queryCertificateInfo
(
certificateId
,
userSignupId
){
const
params
=
{
...
...
@@ -185,9 +180,9 @@
<
style
lang=
"scss"
>
.container
{
padding-top
:
40
rpx
;
//
padding-top
:
40
rpx
;
.certifyIntro{
padding
:
20
rpx
3
0
rpx
;
padding
:
60
rpx
30
rpx
2
0
rpx
;
text-indent
:
60
rpx
;
line-height
:
1.5
;
border-bottom
:
1px
solid
#e4e4e4
;
...
...
pages/certifyDetail/uploadinformation.vue
View file @
7de33871
<
template
>
<view
class=
"content"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top:20rpx"
></text>
<view
class=
"band"
>
<view
class=
"contentItem"
>
<text>
姓名:
</text>
...
...
@@ -41,9 +42,7 @@
</view>
<view
class=
"uploadpdf"
>
<view
class=
"uploadimg"
>
<view
class=
""
style=
"width: 50px;"
>
<image
class=
"image"
src=
"../../static/myteam/Group1646.png"
></image>
</view>
<text
class=
"iconfont icon-weibiaoti553"
></text>
<p>
点击添加计划书
</p>
<view
class=
"uploadFileBox"
v-if=
"status != 3"
>
<uploadFile
:deformats=
"formats"
:opacity=
"0"
ref=
"uploadRef"
:widt=
"'100%'"
:height=
"'320rpx'"
:instantly=
"'true'"
:requestVO=
"JSON.stringify(dataForm)"
@
sendPath=
"getPath"
></uploadFile>
...
...
@@ -104,6 +103,11 @@
},
methods
:
{
goBack
(){
uni
.
navigateBack
({
delta
:
1
});
},
// 上传成功回调方法
getPath
(
e
,
a
){
const
param
=
JSON
.
parse
(
JSON
.
parse
(
e
));
...
...
@@ -182,6 +186,7 @@
<
style
lang=
"scss"
>
.content
{
width
:
100vw
;
padding-top
:
80
rpx
;
}
.signfile
{
...
...
@@ -197,9 +202,10 @@
.user-input
{
text-align
:
right
;
}
.icon-weibiaoti553
{
font-size
:
120
rpx
;
color
:
#627AB5
;
}
.uploadimg
{
position
:
relative
;
height
:
100%
;
...
...
@@ -257,7 +263,7 @@
}
.contentItem
{
margin-
top
:
20
rpx
;
margin-
bottom
:
20
rpx
;
display
:
flex
;
justify-content
:
space-between
;
border-bottom
:
2
rpx
solid
#E4E4E4
;
...
...
pages/commonDetail/commonDetail.vue
View file @
7de33871
...
...
@@ -23,7 +23,8 @@
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
typeName
:
''
,
shareId
:
''
,
readId
:
''
readId
:
''
,
queryDate
:
''
}
},
methods
:
{
...
...
@@ -32,7 +33,8 @@
userId
:
this
.
userId
,
fileId
:
this
.
fileId
,
shareId
:
this
.
shareId
?
this
.
shareId
:
undefined
,
readId
:
this
.
readId
?
this
.
readId
:
undefined
readId
:
this
.
readId
?
this
.
readId
:
undefined
,
queryDate
:
this
.
queryDate
?
this
.
queryDate
:
undefined
}
api
[
obj
.
req
](
params
).
then
(
res
=>
{
if
(
res
[
'success'
]){
...
...
@@ -62,6 +64,7 @@
this
.
type
=
option
.
type
;
this
.
shareId
=
option
.
shareId
;
this
.
readId
=
option
.
readId
;
this
.
queryDate
=
option
.
queryDate
;
},
mounted
()
{
console
.
log
(
'mounted'
)
...
...
pages/courselist/courselist.vue
View file @
7de33871
...
...
@@ -3,7 +3,11 @@
<!--搜索组件-->
<search
:isSearch=
"1"
@
send=
"getCourseList"
></search>
<!--轮播组件-->
<carousel
:carouselList=
"fileUploadItemCFFPList"
></carousel>
<view
class=
"banner"
>
<view
class=
"uni-margin-wrap"
>
<carousel
:carouselList=
"fileUploadItemCFFPList"
></carousel>
</view>
</view>
<h4
v-if=
"cffpCourseInfos.length
<
=
0
"
class=
"noListTip"
>
暂无课程列表
</h4>
<view
class=
"ulBox"
v-if=
"cffpCourseInfos.length>0"
>
<view
class=
"liBox"
v-for=
"item in cffpCourseInfos"
:key=
"item.fileId"
@
click=
"goDetail(item)"
>
...
...
@@ -38,7 +42,6 @@
search
},
onLoad
(){
this
.
fileUploadItemCFFPList
=
uni
.
getStorageSync
(
'fileUploadItemCFFPList'
);
this
.
queryName
=
uni
.
getStorageSync
(
'queryName'
);
},
methods
:{
...
...
@@ -77,6 +80,7 @@
}
},
mounted
()
{
this
.
fileUploadItemCFFPList
=
uni
.
getStorageSync
(
'fileUploadItemCFFPList'
);
this
.
courseList
();
},
onHide
()
{
...
...
@@ -102,5 +106,12 @@
}
.pad
{
padding
:
0
30
rpx
20
rpx
30
rpx
;
.banner
{
border-radius
:
20
rpx
;
overflow
:
hidden
;
.swiper{
height
:
200
rpx
;
}
}
}
</
style
>
\ No newline at end of file
pages/index/index.vue
View file @
7de33871
...
...
@@ -17,7 +17,11 @@
<!--搜索组件-->
<search
:isSearch=
"0"
></search>
<!--轮播组件-->
<carousel
:carouselList=
"cffpUserInfo.fileUploadItemList"
></carousel>
<view
class=
"banner"
>
<view
class=
"uni-margin-wrap"
>
<carousel
:carouselList=
"cffpUserInfo.fileUploadItemList"
></carousel>
</view>
</view>
</view>
<view
class=
"message"
@
click=
"jumpToAnnouncement()"
>
<view
style=
"display: flex;align-items: center;"
>
...
...
@@ -340,7 +344,6 @@
font-size
:
40
rpx
;
}
}
.banner
{
border-radius
:
20
rpx
;
overflow
:
hidden
;
...
...
pages/learnCertify/learnCertify.vue
View file @
7de33871
...
...
@@ -185,7 +185,7 @@
.isAdopt
{
position
:
absolute
;
border
:
2
rpx
soli
d
#06A632
;
border
:
2
rpx
dashe
d
#06A632
;
text-align
:
center
;
color
:
#06A632
;
transform
:
rotate
(
-45deg
);
...
...
@@ -196,7 +196,7 @@
.isUnder
{
position
:
absolute
;
border
:
2
rpx
soli
d
#3671F4
;
border
:
2
rpx
dashe
d
#3671F4
;
text-align
:
center
;
color
:
#3671F4
;
transform
:
rotate
(
-45deg
);
...
...
pages/myCertify/myCertify.vue
View file @
7de33871
<
template
>
<view
class=
"container"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"
left
: 20rpx;"
></text>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"
top
: 20rpx;"
></text>
<!-- tab选项 -->
<view
class=
"tabTitle"
>
<text
:class=
"
{'actived': tabType===1}" @click="switchTab(1)">报名项目
</text>
...
...
pages/myLearning/myLearning.vue
View file @
7de33871
<
template
>
<view
class=
"container"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"
left
: 20rpx;"
></text>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"
top
: 20rpx;"
></text>
<!-- tab选项 -->
<view
class=
"tabTitle"
>
<text
:class=
"
{'actived': tabType===1}" @click="switchTab(1)">学习记录
</text>
...
...
pages/myPoints/myPoints.vue
View file @
7de33871
<
template
>
<view
class=
"container"
>
<view
class=
"top"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
></text>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 20rpx;"
></text>
<view
class=
"exchange_wrapper"
>
<navigator
url=
"../pointsExchange/pointsStatus"
>
可兑换积分
<text
style=
"color: #FF7704;"
>
{{
yesExchangeFortune
}}
积分 >
</text></navigator>
<navigator
url=
"../pointsExchange/pointsExchange"
style=
"color:#C85E04;text-decoration: underline;"
>
可兑换提现
{{
yesExchangeFortune
}}
>
</navigator>
...
...
@@ -182,14 +182,6 @@
flex-wrap
:
wrap
;
align-items
:
center
;
padding-top
:
60
rpx
;
.zuojiantou{
display
:
inline-block
;
transform
:
rotate
(
180deg
);
font-size
:
30
rpx
;
z-index
:
1
;
position
:
absolute
;
top
:
30
rpx
;
}
.exchange_wrapper{
width
:
60%
;
margin-right
:
10%
;
...
...
pages/myShare/myShare.vue
View file @
7de33871
...
...
@@ -2,7 +2,7 @@
<view
class=
"container"
>
<!-- 时间选择 -->
<view
class=
"timeSelectContent"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"left: 20rpx;"
></text>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
></text>
<picker
mode=
"date"
:value=
"queryDate"
:end=
"maxDate"
fields=
"month"
@
change=
"bindDateChange"
>
<view
class=
"uni-input"
>
{{
queryDate
}}
</view>
</picker>
...
...
@@ -100,14 +100,9 @@
},
methods
:
{
goBack
()
{
let
back
=
getCurrentPages
();
if
(
back
&&
back
.
length
>
1
)
{
uni
.
navigateBack
({
delta
:
1
});
}
else
{
history
.
back
();
}
uni
.
navigateBack
({
delta
:
1
});
},
bindDateChange
:
function
(
e
)
{
this
.
queryDate
=
e
.
detail
.
value
;
...
...
@@ -159,7 +154,7 @@
// 查看详情
goDetail
(
val
,
type
)
{
uni
.
navigateTo
({
url
:
`/pages/commonDetail/commonDetail?fileId=
${
val
}
&type=
${
type
}
`
url
:
`/pages/commonDetail/commonDetail?fileId=
${
val
}
&type=
${
type
}
&queryDate=
${
this
.
queryDate
}
`
})
},
// 查看积分
...
...
pages/personalCenter/accountoperation/confirmResetpassword.vue
View file @
7de33871
...
...
@@ -5,16 +5,17 @@
<text>
重置密码
</text>
</view>
<view
class=
"input-row"
>
<input
type=
"text"
placeholder=
"6-20位数字字母组合"
/>
<input
type=
"text"
placeholder=
"再次确认"
/>
<input
class=
"uni-input"
password
type=
"text"
placeholder=
"密码(6-20位字母数字组合)"
v-model=
"form.password"
/>
<input
class=
"uni-input"
password
type=
"text"
placeholder=
"再次确认"
v-model=
"confirmPassword"
/>
</view>
<view
class=
"forgetpsd"
@
click=
"resetPassword()"
>
保存
</view>
<view
class=
"forgetpsd"
>
<button
class=
"primary log-btn"
@
click=
"resetPassword()"
>
修改密码
</button>
</view>
</view>
</
template
>
<
script
>
import
common
from
'../../../common/common'
;
import
api
from
"@/api/api"
;
export
default
{
data
(){
...
...
@@ -24,13 +25,19 @@
code
:
''
,
password
:
''
,
},
confirmPassword
:
''
}
},
components
:{},
onLoad
(){
onLoad
(
options
){
this
.
form
.
code
=
options
.
code
;
},
methods
:{
goBack
()
{
uni
.
navigateBack
({
delta
:
1
});
},
resetPassword
(){
const
params
=
{
...
this
.
form
...
...
@@ -39,6 +46,10 @@
common
.
errorDialog
(
2
,
'请输入6-12位数字字母组合'
);
return
false
;
}
if
(
this
.
form
.
password
!=
this
.
confirmPassword
){
common
.
errorDialog
(
2
,
'两次密码输入不一致'
);
return
false
;
}
api
.
resetPassword
(
params
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
uni
.
showToast
({
...
...
@@ -95,4 +106,31 @@
position
:
absolute
;
}
}
.input-row
{
.uni-input{
background
:
#F4F4F4
;
margin
:
20
rpx
auto
;
height
:
90
rpx
;
line-height
:
90
rpx
;
width
:
90%
;
padding-left
:
10
rpx
;
}
}
.forgetpsd
{
width
:
60%
;
margin
:
0
auto
;
height
:
80
rpx
;
line-height
:
80
rpx
;
border-radius
:
100
rpx
;
font-size
:
34
rpx
;
color
:
#FFFFFF
;
background
:
#20269B
;
text-align
:
center
;
position
:
absolute
;
bottom
:
30
rpx
;
left
:
0
;
right
:
0
;
}
</
style
>
\ No newline at end of file
pages/personalCenter/accountoperation/resetpassword.vue
View file @
7de33871
...
...
@@ -61,9 +61,10 @@
methods
:
{
//验证码输入完成
vcodeInput
(
val
)
{
this
.
code
=
val
;
const
param
=
{
mobile
:
this
.
usermobile
,
code
:
val
code
:
this
.
code
}
api
.
verification
(
param
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
...
...
@@ -111,7 +112,7 @@
},
nextPage
(){
uni
.
navigateTo
({
url
:
'/pages/personalCenter/accountoperation/confirmResetpassword'
url
:
`/pages/personalCenter/accountoperation/confirmResetpassword?code=
${
this
.
code
}
`
})
},
sendCode
()
{
...
...
@@ -205,16 +206,4 @@
padding-left
:
20
upx
;
background
:
#FFFFFF
;
}
.forgetpsd
{
margin
:
40
upx
20
upx
;
}
.log-btn
{
border-radius
:
10
upx
;
font-size
:
34
upx
;
color
:
#FFFFFF
;
background
:
#20269B
;
box-shadow
:
0px
16
upx
32
upx
0px
rgba
(
2
,
168
,
244
,
0.24
);
}
</
style
>
pages/personalCenter/myTeam.vue
View file @
7de33871
<
template
>
<view
class=
"container"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"
left
: 20rpx;"
></text>
<view
v-for=
"item in minorMenuLists.filter(v=>v.isShow)"
:key=
"item.title"
@
click=
"goteam(item)"
class=
"liBox"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"
top
: 20rpx;"
></text>
<
!--
<
view
v-for=
"item in minorMenuLists.filter(v=>v.isShow)"
:key=
"item.title"
@
click=
"goteam(item)"
class=
"liBox"
>
<view
class=
"infoBox"
>
<!--
<image
:src=
"'/static/moduleIcon/'+item.icon+'.png'"
alt=
""
srcset=
""
mode=
"widthFix"
></image>
-->
<view
class=
"infoBoxtext"
>
{{
item
.
title
}}
</view>
</view>
<view
class=
"iconBox"
>
<i
class=
"iconfont icon-youjiantou"
></i>
</view>
</view>
-->
<view
class=
"ulBox"
>
<view
v-for=
"item in minorMenuLists.filter(v=>v.isShow)"
:key=
"item.title"
@
click=
"goteam(item)"
class=
"liBox"
>
<view
class=
"infoBox"
>
<text>
{{
item
.
title
}}
</text>
</view>
<view
class=
"iconBox"
>
<view
class=
""
v-if=
"item.isType == 'text'"
>
<text>
{{
item
.
contentType
}}
</text>
</view>
<i
v-else
class=
"iconfont icon-youjiantou"
></i>
</view>
</view>
</view>
</view>
</
template
>
...
...
@@ -54,21 +67,43 @@
.container
{
height
:
100%
;
background
:
#FFFFFF
;
padding-top
:
20
rpx
;
}
.liBox
{
display
:
flex
;
margin
:
50
rpx
30
rpx
;
padding
:
8
rpx
0
;
justify-content
:
space-between
;
border-bottom
:
1px
solid
#F2F2F2
;
padding-top
:
50
rpx
;
}
.infoBoxtext
{
width
:
64px
;
height
:
24px
;
font-size
:
16px
;
font-weight
:
400
;
border-bottom
:
3px
transparent
solid
;
border-image
:
linear-gradient
(
to
right
,
#FA882F
,
#FFCCCC
)
0.5
10
;
.ulBox
{
padding
:
0
30
rpx
;
.liBox
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
border-bottom
:
1px
solid
#E6E6E6
;
height
:
92
rpx
;
.infoBox
{
display
:
flex
;
align-items
:
center
;
image
{
width
:
52
rpx
!important
;
height
:
52
rpx
;
}
}
&
>
view
:first-child
{
position
:
relative
;
&::after{
content
:
''
;
position
:
absolute
;
left
:
0
;
bottom
:
-6
rpx
;
background
:
linear-gradient
(
90deg
,
#FA882F
,
#D9D9D9
);
border-radius
:
4
rpx
;
height
:
8
rpx
;
width
:
80
rpx
;
}
}
&
:last-child
{
border
:
none
;
}
}
}
</
style
>
\ No newline at end of file
pages/personalCenter/personalCenter.vue
View file @
7de33871
...
...
@@ -273,7 +273,7 @@
<
style
lang=
"scss"
>
.container
{
padding-bottom
:
160
rpx
;
//
padding-bottom
:
160
rpx
;
}
.avatar
{
width
:
90
rpx
;
...
...
pages/personalCenter/teamMembers/teamMembers.vue
View file @
7de33871
...
...
@@ -132,7 +132,7 @@
font-size
:
30
rpx
;
z-index
:
1
;
position
:
absolute
;
top
:
3
0
rpx
;
top
:
2
0
rpx
;
}
.tabTitle
{
color
:
#666666
;
...
...
pages/product/finance-calculator.vue
View file @
7de33871
<
template
>
<view>
<view
style=
"position: relative;"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: -30rpx;"
></text>
<menu-list
v-if=
"menuList != 'undefined '"
:menuList=
"minorMenuLists"
></menu-list>
</view>
</
template
>
...
...
@@ -45,6 +46,13 @@ import MenuList from "@/components/menuList/menuList.vue"
},
]
}
},
methods
:{
goBack
(){
uni
.
navigateBack
({
delta
:
1
});
}
}
}
</
script
>
...
...
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