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
5051ea4f
Commit
5051ea4f
authored
Dec 20, 2022
by
sunerhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改邀请加盟原生返回按钮不刷新接口,增加广播通知,刷新queryById 解决问题。
2.增加图片放大事件。 3.对课程列表样式进行微调
parent
3a31c0ab
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
128 additions
and
68 deletions
+128
-68
components/courseItem/courseItem.vue
+68
-55
pages/application-process/contract.vue
+2
-2
pages/application-process/education.vue
+22
-3
pages/application-process/id-card.vue
+18
-5
pages/application-process/work-experience.vue
+0
-0
pages/courselist/courselist.vue
+2
-1
pages/personalCenter/personalCenter.vue
+4
-2
util/uploaderFile.ts
+12
-0
No files found.
components/courseItem/courseItem.vue
View file @
5051ea4f
...
...
@@ -5,7 +5,7 @@
</view>
<view
class=
"courseDetailBox"
>
<view
class=
"title"
>
<
h4>
{{
title
}}
</h4
>
<
text
style=
"overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"
>
{{
title
}}
</text
>
<!--
<text
class=
"detailBtn"
@
click=
"viewDetail()"
v-if=
"isNeedViewDetail"
>
订单详情>
</text>
-->
</view>
<view
class=
"summaryBox"
v-if=
"summaryBox"
>
...
...
@@ -22,7 +22,7 @@
<
template
v-else-if=
"_tagList"
>
<view
class=
"tagItem"
v-for=
"tagItem in tagConcat(_tagList.v1,_tagList.v2)"
>
{{
tagItem
}}
</view>
</
template
>
</view>
</view>
</view>
...
...
@@ -31,66 +31,68 @@
<
script
>
import
api
from
"@/api/api"
;
export
default
{
name
:
"courseItem"
,
props
:{
fileLecturerId
:{
type
:
Number
name
:
"courseItem"
,
props
:
{
fileLecturerId
:
{
type
:
Number
},
thumbnailPath
:{
type
:
String
thumbnailPath
:
{
type
:
String
},
title
:{
type
:
String
title
:
{
type
:
String
},
summaryBox
:{
type
:
String
summaryBox
:
{
type
:
String
},
dataList
:{
type
:
Object
dataList
:
{
type
:
Object
},
isNeedViewDetail
:{
type
:
Boolean
,
isNeedViewDetail
:
{
type
:
Boolean
,
// 销售课程传参判断是否需要显示订单详情字段 --暂时废弃
},
orderId
:{
type
:
Number
orderId
:
{
type
:
Number
},
tagList
:{
type
:
Object
tagList
:
{
type
:
Object
},
fileId
:{
fileId
:
{
type
:
Number
}
},
data
()
{
return
{
_tagList
:{}
_tagList
:
{}
};
},
methods
:{
tagConcat
(
v1
,
v2
)
{
if
(
v1
&&
v2
&&
v2
.
indexOf
(
','
)
>
0
&&
v1
.
indexOf
(
','
)
>
0
)
{
return
[].
concat
(
v2
.
split
(
','
).
split
(
','
),
v1
.
split
(
','
))
}
else
if
(
v1
&&
v1
.
indexOf
(
','
)
>
0
)
{
return
[].
concat
(
v2
,
v1
.
split
(
','
))
}
else
if
(
v2
&&
v2
.
indexOf
(
','
)
>
0
)
{
return
[].
concat
(
v2
.
split
(
','
),
v1
)
}
else
{
return
[].
concat
(
v2
,
v1
)
methods
:
{
tagConcat
(
v1
,
v2
)
{
if
(
v1
&&
v2
&&
v2
.
indexOf
(
','
)
>
0
&&
v1
.
indexOf
(
','
)
>
0
)
{
return
[].
concat
(
v2
.
split
(
','
).
split
(
','
),
v1
.
split
(
','
))
}
else
if
(
v1
&&
v1
.
indexOf
(
','
)
>
0
)
{
return
[].
concat
(
v2
,
v1
.
split
(
','
))
}
else
if
(
v2
&&
v2
.
indexOf
(
','
)
>
0
)
{
return
[].
concat
(
v2
.
split
(
','
),
v1
)
}
else
{
return
[].
concat
(
v2
,
v1
)
}
},
lecturerQuery
(){
api
.
lecturerQuery
({
id
:
this
.
fileLecturerId
}).
then
(
res
=>
{
if
(
res
[
'success'
]){
lecturerQuery
()
{
api
.
lecturerQuery
({
id
:
this
.
fileLecturerId
}).
then
(
res
=>
{
if
(
res
[
'success'
])
{
this
.
_tagList
[
'v1'
]
=
res
[
'data'
][
'lecturerInfos'
][
0
][
'lecturerRankNames'
];
this
.
_tagList
[
'v2'
]
=
res
[
'data'
][
'lecturerInfos'
][
0
][
'lecturerName'
];
}
})
}
},
updated
()
{
if
(
this
.
fileLecturerId
)
{
if
(
this
.
fileLecturerId
)
{
this
.
lecturerQuery
()
}
},
...
...
@@ -99,55 +101,67 @@
</
script
>
<
style
lang=
"scss"
>
.itemContent
{
.itemContent
{
display
:
flex
;
.thumbnailBox{
.thumbnailBox
{
width
:
300
rpx
;
margin-right
:
26
rpx
;
image{
max-width
:
100%
;
image
{
max-width
:
100%
;
height
:
auto
;
}
}
.courseDetailBox
{
.courseDetailBox
{
width
:
100%
;
color
:
#333
;
.title{
.title
{
display
:
flex
;
max-
width
:
380
rpx
;
width
:
380
rpx
;
justify-content
:
space-between
;
align-items
:
center
;
.detailBtn{
font-size
:
36
rpx
;
.detailBtn
{
font-size
:
24
rpx
;
color
:
#4A4A4A
;
white-space
:
nowrap
;
}
}
h4
{
h4
{
font-size
:
32
rpx
;
}
.summaryBox
{
.summaryBox
{
font-size
:
24
rpx
;
margin
:
10
rpx
0
;
text{
text
{
margin-right
:
20
rpx
;
}
}
.dataBox
{
strong{
.dataBox
{
strong
{
color
:
#F15A1F
;
font-size
:
30
rpx
;
margin
:
10
rpx
20
rpx
10
rpx
0
;
}
text
{
text
{
font-size
:
28
rpx
;
}
}
.tagListBox
{
.tagListBox
{
display
:
flex
;
flex-wrap
:
wrap
;
margin-top
:
20
rpx
;
.tagItem{
.tagItem
{
color
:
#20279B
;
font-size
:
24
rpx
;
border-radius
:
20
rpx
;
...
...
@@ -162,4 +176,4 @@
}
}
}
</
style
>
\ No newline at end of file
</
style
>
pages/application-process/contract.vue
View file @
5051ea4f
...
...
@@ -44,7 +44,7 @@
<view
class=
"title"
>
{{
curTitle
}}
</view>
<scroll-view
scroll-y
style=
"height: 100
vh
;"
>
<scroll-view
scroll-y
style=
"height: 100
%
;"
>
<view
class=
"contract"
v-html=
"curContract"
></view>
</scroll-view>
...
...
@@ -222,7 +222,7 @@
position
:
fixed
;
bottom
:
0
;
width
:
100%
;
height
:
7
0
%
;
height
:
7
5
%
;
left
:
0
;
right
:
0
;
margin
:
0
auto
;
...
...
pages/application-process/education.vue
View file @
5051ea4f
...
...
@@ -49,8 +49,12 @@
<text
class=
"iconfont icon-weibiaoti553"
></text>
<view
style=
"margin-top: 10px;"
>
点击添加毕业证照片
</view>
</view>
<image
:src=
"applyParam.lastGraduateCertificationOssPath"
v-if=
"applyParam.lastGraduateCertificationOssPath"
@
click=
"upLoadPhoto()"
mode=
"widthFix"
></image>
<!-- mode="widthFix" -->
<view
class=
"photo_w"
v-if=
"applyParam.lastGraduateCertificationOssPath"
>
<image
:src=
"applyParam.lastGraduateCertificationOssPath"
@
click=
"upLoadPhoto()"
></image>
</view>
<view
class=
"tips"
>
<view>
(jpg,png 文件大小不大于1mb)
</view>
</view>
...
...
@@ -101,7 +105,11 @@
},
500
)
},
onShow
()
{
uni
.
$on
(
"ckqueryById"
,
res
=>
{
if
(
res
==
true
){
this
.
queryById
(
null
,
uni
.
getStorageSync
(
'cffp_userId'
))
}
})
},
methods
:{
educationLevelQuery
(){
...
...
@@ -195,4 +203,14 @@
<
style
lang=
"scss"
>
@import
'applyCommon.scss'
;
.photo_w
{
height
:
320
rpx
;
width
:
80%
;
margin
:
auto
;
padding-bottom
:
20
rpx
;
}
.photo_w
image
{
width
:
100%
;
height
:
100%
;
}
</
style
>
\ No newline at end of file
pages/application-process/id-card.vue
View file @
5051ea4f
...
...
@@ -31,11 +31,10 @@
<text
class=
"iconfont icon-weibiaoti553"
></text>
<view
class=
"choseBtn"
>
点击添加身份证正面
</view>
</view>
<view
class=
"content_w
rapper
"
>
<image
:src=
"applyParam.idFrontPageOssPath"
v-if=
"applyParam.idFrontPageOssPath"
<view
class=
"content_w
"
v-if=
"applyParam.idFrontPageOssPath
"
>
<image
:src=
"applyParam.idFrontPageOssPath"
@
click=
"upLoadPhoto('front')"
></image>
</view>
<view
class=
"tips"
>
<view>
(正确示例:身份证正面,字体清晰)
</view>
<view>
(jpg,png 文件大小不大于1mb)
</view>
...
...
@@ -47,8 +46,10 @@
<text
class=
"iconfont icon-weibiaoti553"
></text>
<view
class=
"choseBtn"
>
点击添加身份证反面
</view>
</view>
<image
:src=
"applyParam.idBackPageOssPath"
mode=
"widthFix"
v-if=
"applyParam.idBackPageOssPath"
@
click=
"upLoadPhoto('front')"
></image>
<view
class=
"content_w"
v-if=
"applyParam.idBackPageOssPath"
>
<image
:src=
"applyParam.idBackPageOssPath"
@
click=
"upLoadPhoto('back')"
></image>
</view>
<view
class=
"tips"
>
<view>
(正确示例:身份证反面,字体清晰)
</view>
<view>
(jpg,png 文件大小不大于1mb)
</view>
...
...
@@ -156,6 +157,7 @@
// url:`id-card?id=${res['data']['id']}`
url
:
`education`
});
uni
.
$emit
(
"ckqueryById"
,
true
);
}
else
{
uni
.
showToast
({
title
:
res
[
'message'
],
...
...
@@ -208,5 +210,15 @@
}
}
}
.content_w
{
height
:
380
rpx
;
width
:
76%
;
margin
:
auto
;
padding-bottom
:
20
rpx
;
}
.content_w
image
{
width
:
100%
;
height
:
100%
;
}
</
style
>
\ No newline at end of file
pages/application-process/work-experience.vue
View file @
5051ea4f
This diff is collapsed.
Click to expand it.
pages/courselist/courselist.vue
View file @
5051ea4f
...
...
@@ -84,8 +84,9 @@
<
style
lang=
"scss"
>
.ulBox
,
.liBox
{
padding-bottom
:
30
rpx
;
display
:
flex
;
}
.ulBox
{
flex-direction
:
column
;
...
...
pages/personalCenter/personalCenter.vue
View file @
5051ea4f
...
...
@@ -134,10 +134,12 @@
onShow
()
{
uni
.
$on
(
"handClick"
,
res
=>
{
this
.
customerBasicInfo
=
res
.
data
// 清除监听
uni
.
$off
(
'handClick'
);
})
},
onUnload
()
{
// 移除监听事件
uni
.
$off
(
'handClick'
);
},
methods
:
{
close
(){
this
.
bootpage
=
false
...
...
util/uploaderFile.ts
View file @
5051ea4f
...
...
@@ -54,6 +54,18 @@ export function CommonUpload(psrams) {
})
}
//图片放大
export
function
ckbigImg
(
params
)
{
wx
.
previewImage
({
urls
:
[
params
],
//需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
current
:
''
,
// 当前显示图片的http链接,默认是第一个
success
:
function
(
res
)
{},
fail
:
function
(
res
)
{},
complete
:
function
(
res
)
{},
})
}
// 这个方法用来上传文件
export
function
uploadFilepdf
(
params
)
{
let
requestVO
=
params
...
...
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