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 856f65cb
authored
Dec 08, 2025
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.5.0' of
http://192.168.3.233:8090/glsx/gl_tape
into SAAS+V5.5.0
2 parents
c098c3ab
265c15a3
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
241 additions
and
282 deletions
assets/css/common.scss
assets/images/studyCenter/Leaderboard-bg.png
components/ExamSubmitPopup.vue
components/HomeFrame/components/LeftSide.vue
components/HomeFrame/components/Study/Course.vue
components/HomeFrame/components/Study/Studying.vue
components/HomeFrame/components/StudyCenter.vue
components/HomeFrame/index.vue
components/OrderPopup/components/Customer.vue
pages/common/studyCenter/components/CompletedCourse.vue
pages/common/studyCenter/components/MyTask.vue
pages/common/studyCenter/components/ToLearnCourse.vue
pages/common/studyCenter/courseDetail.vue
pages/common/studyCenter/leaderboard.vue
pages/common/studyCenter/myCourse.vue
pages/common/studyCenter/myExam.vue
pages/common/studyCenter/myTask.vue
pages/equity/tool/components/ContractPopup.vue
pages/equity/tool/components/DefeatOrder.vue
pages/equity/tool/components/OrderCard.vue
pages/equity/tool/components/OrderManagement.vue
assets/css/common.scss
View file @
856f65c
...
@@ -198,6 +198,9 @@
...
@@ -198,6 +198,9 @@
.py-16
{
.py-16
{
padding
:
toRpx
(
16
)
0
;
padding
:
toRpx
(
16
)
0
;
}
}
.py-24
{
padding
:
toRpx
(
24
)
0
;
}
.pt-32
{
.pt-32
{
padding-top
:
toRpx
(
32
)
!
important
;
padding-top
:
toRpx
(
32
)
!
important
;
}
}
...
...
assets/images/studyCenter/Leaderboard-bg.png
View file @
856f65c
56.1 KB
|
W:
|
H:
30.4 KB
|
W:
|
H:
2-up
Swipe
Onion skin
components/ExamSubmitPopup.vue
View file @
856f65c
...
@@ -18,9 +18,10 @@
...
@@ -18,9 +18,10 @@
<view
class=
"cancel-button"
@
click=
"handleCancel"
>
<view
class=
"cancel-button"
@
click=
"handleCancel"
>
未提交
未提交
</view>
</view>
<view
class=
"confirm-button"
@
click=
"handleConfirm"
>
<view
class=
"confirm-button"
v-if=
"!isLoading"
@
click=
"handleConfirm"
>
{{ confirmText }}
{{ confirmText }}
</view>
</view>
<view
class=
"confirm-button confirm-button-loading"
v-else
>
{{ confirmText }}
</view>
</view>
</view>
...
@@ -145,6 +146,10 @@ export default {
...
@@ -145,6 +146,10 @@ export default {
text-align
:
center
;
text-align
:
center
;
line-height
:
toRpx
(
80
);
line-height
:
toRpx
(
80
);
&-loading
{
opacity
:
0.5
;
}
&
:active
{
&
:active
{
opacity
:
0.8
;
opacity
:
0.8
;
}
}
...
...
components/HomeFrame/components/LeftSide.vue
View file @
856f65c
...
@@ -185,11 +185,12 @@ export default {
...
@@ -185,11 +185,12 @@ export default {
// index = tabs.findIndex(e => e.name == 'ActivityCenter')
// index = tabs.findIndex(e => e.name == 'ActivityCenter')
// this.changeIndex(index, this.tabs[index])
// this.changeIndex(index, this.tabs[index])
// })
// })
// uni.$on('studyCenter', () => {
// 监听学习任务弹窗提醒,长课程
// let { tabs } = this,
uni
.
$on
(
'studyCenter'
,
()
=>
{
// index = tabs.findIndex(e => e.name == 'StudyCenter')
let
{
tabs
}
=
this
,
// this.changeIndex(index, this.tabs[index])
index
=
tabs
.
findIndex
(
e
=>
e
.
name
==
'StudyCenter'
)
// });
this
.
changeIndex
(
index
,
this
.
tabs
[
index
])
});
console
.
log
(
'this.tabIndex'
,
this
.
tabIndex
)
console
.
log
(
'this.tabIndex'
,
this
.
tabIndex
)
this
.
getUnreadCount
()
this
.
getUnreadCount
()
this
.
getStudyCenterPermission
()
this
.
getStudyCenterPermission
()
...
...
components/HomeFrame/components/Study/Course.vue
View file @
856f65c
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
</view>
</view>
<image
class=
"recommend-course-item-img"
<image
class=
"recommend-course-item-img"
src=
"../../../../assets/images/common/recommend-course-default.webp
"
mode=
"scaleToFill"
/>
:src=
"require(`@/assets/images/common/${COURSE_TYPE[item.courseFileType].image}.webp`)
"
mode=
"scaleToFill"
/>
<view
class=
"recommend-course-content"
>
<view
class=
"recommend-course-content"
>
<view
class=
"recommend-course-item-title"
>
<view
class=
"recommend-course-item-title"
>
{{ item.title }}
{{ item.title }}
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
</template>
</template>
<
template
v-else
>
<
template
v-else
>
<view
class=
"nothing flex"
>
<view
class=
"nothing flex"
>
<image
class=
"icon"
src=
"../../../../assets/images/
boutique/nothing
.png"
/>
<image
class=
"icon"
src=
"../../../../assets/images/
common/noData
.png"
/>
暂无数据
暂无数据
</view>
</view>
</
template
>
</
template
>
...
@@ -360,16 +360,17 @@ export default {
...
@@ -360,16 +360,17 @@ export default {
}
}
.nothing
{
.nothing
{
width
:
100%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
flex-direction
:
column
;
flex-direction
:
column
;
margin-top
:
toRpx
(
280
);
height
:
toRpx
(
1000
);
font-size
:
toRpx
(
28
);
color
:
#999999
;
color
:
#999999
;
font-size
:
toRpx
(
24
);
.icon
{
.icon
{
width
:
toRpx
(
678
);
width
:
toRpx
(
344
);
height
:
toRpx
(
284
);
height
:
toRpx
(
208
);
margin-bottom
:
toRpx
(
24
);
}
}
}
}
...
...
components/HomeFrame/components/Study/Studying.vue
View file @
856f65c
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
</template>
</template>
<
template
v-else
>
<
template
v-else
>
<view
class=
"nothing flex"
>
<view
class=
"nothing flex"
>
<image
class=
"icon"
src=
"../../../../assets/images/
boutique/nothing
.png"
/>
<image
class=
"icon"
src=
"../../../../assets/images/
common/noData
.png"
/>
暂无数据
暂无数据
</view>
</view>
</
template
>
</
template
>
...
...
components/HomeFrame/components/StudyCenter.vue
View file @
856f65c
...
@@ -229,6 +229,7 @@ export default {
...
@@ -229,6 +229,7 @@ export default {
created
()
{
created
()
{
// 监听课程数量更新事件
// 监听课程数量更新事件
uni
.
$on
(
'update:totalCourseCount'
,
(
count
)
=>
{
uni
.
$on
(
'update:totalCourseCount'
,
(
count
)
=>
{
console
.
log
(
count
,
'totalCourseCount'
)
this
.
totalCourseCount
=
count
this
.
totalCourseCount
=
count
})
})
},
},
...
@@ -237,15 +238,15 @@ export default {
...
@@ -237,15 +238,15 @@ export default {
uni
.
$off
(
'update:totalCourseCount'
)
uni
.
$off
(
'update:totalCourseCount'
)
},
},
async
mounted
()
{
async
mounted
()
{
const
beisenToken
=
uni
.
$storage
.
get
(
'beisenToken'
)
//
const beisenToken = uni.$storage.get('beisenToken')
console
.
log
(
beisenToken
,
'beisenToken'
)
//
console.log(beisenToken, 'beisenToken')
this
.
isBeisen
=
!!
beisenToken
//
this.isBeisen = !!beisenToken
if
(
!
beisenToken
)
{
//
if (!beisenToken) {
// 没有北森权限则typeList没有推荐课程
//
// 没有北森权限则typeList没有推荐课程
this
.
typeList
=
[
//
this.typeList = [
{
tabName
:
'我的任务'
,
num
:
()
=>
''
}
//
{ tabName: '我的任务', num: () => '' }
]
//
]
}
//
}
// 检查是否显示我的任务
// 检查是否显示我的任务
this
.
showMyTask
=
await
this
.
checkStudyCenterPermission
()
this
.
showMyTask
=
await
this
.
checkStudyCenterPermission
()
...
@@ -270,7 +271,7 @@ export default {
...
@@ -270,7 +271,7 @@ export default {
if
(
res
)
{
if
(
res
)
{
const
list
=
Array
.
isArray
(
res
)
?
res
:
[]
const
list
=
Array
.
isArray
(
res
)
?
res
:
[]
const
filtered
=
list
const
filtered
=
list
.
filter
(
item
=>
item
&&
item
.
categoryName
!==
'未分组'
)
.
filter
(
item
=>
item
&&
item
.
id
!==
1
)
.
map
(
item
=>
({
.
map
(
item
=>
({
...
item
,
...
item
,
children
:
[
children
:
[
...
...
components/HomeFrame/index.vue
View file @
856f65c
<
template
>
<
template
>
<view
<view
class=
"container"
@
click=
"handleTouchStart"
>
class=
"container"
@
click=
"handleTouchStart"
>
<view
:class=
"['home',
{ show: !id
&&
showHome }]">
<view
:class=
"['home',
{ show: !id
&&
showHome }]">
<left-side
<left-side
:userInfo=
"userInfo"
:tabIndex
.
sync=
"tabIndex"
ref=
"leftBox"
@
changeTab=
"changeTab"
@
stopAudio=
"stopAudio"
@
showReadCountTips=
"showReadCountTips"
@
closeTips=
"closeTips"
/>
:userInfo=
"userInfo"
<view
class=
"tips-box"
:style=
"tipsObject.style"
@
click
.
stop=
"closeTips"
>
{{
tipsObject
.
text
}}
</view>
:tabIndex
.
sync=
"tabIndex"
ref=
"leftBox"
@
changeTab=
"changeTab"
@
stopAudio=
"stopAudio"
@
showReadCountTips=
"showReadCountTips"
@
closeTips=
"closeTips"
/>
<view
class=
"tips-box"
:style=
"tipsObject.style"
@
click
.
stop=
"closeTips"
>
{{
tipsObject
.
text
}}
</view>
<view
class=
"right-side"
>
<view
class=
"right-side"
>
<view
:class=
"['app-content-box right-content',
{ 'show-content-box': tabIndex == 0 }]">
<view
:class=
"['app-content-box right-content',
{ 'show-content-box': tabIndex == 0 }]">
<view
<view
class=
"start"
@
click=
"start"
>
class=
"start"
@
click=
"start"
>
<template
v-if=
"sceneType != 7"
>
<template
v-if=
"sceneType != 7"
>
<view
class=
"sprite-icon icon-start-text"
></view>
<view
class=
"sprite-icon icon-start-text"
></view>
</
template
>
</
template
>
...
@@ -37,15 +19,7 @@
...
@@ -37,15 +19,7 @@
<slot
name=
"swiperCustom"
/>
<slot
name=
"swiperCustom"
/>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<swiper-component
<swiper-component
:moduleList=
"moduleList"
@
click=
"swiperClick"
:stopAutoPlay=
"previewOff"
:imgKey=
"bannerKey"
:loadComplete=
"loadComplete"
:noDataObject=
"swiperNoDataObject"
></swiper-component>
:moduleList=
"moduleList"
@
click=
"swiperClick"
:stopAutoPlay=
"previewOff"
:imgKey=
"bannerKey"
:loadComplete=
"loadComplete"
:noDataObject=
"swiperNoDataObject"
>
</swiper-component>
</
template
>
</
template
>
</view>
</view>
</view>
</view>
...
@@ -59,36 +33,19 @@
...
@@ -59,36 +33,19 @@
<view
class=
"content-right box-class"
>
<view
class=
"content-right box-class"
>
<view
class=
"common-title"
>
服务中心
</view>
<view
class=
"common-title"
>
服务中心
</view>
<view
class=
"content-box"
>
<view
class=
"content-box"
>
<MessageIndex
<MessageIndex
class=
"message-box"
ref=
"messageRef"
/>
class=
"message-box"
ref=
"messageRef"
/>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view
:class=
"['app-content-box right-content', { 'show-content-box': tabIndex == 99 }]"
>
<view
:class=
"['app-content-box right-content', { 'show-content-box': tabIndex == 99 }]"
>
<component
<component
:is=
"'Point'"
ref=
"pointRef"
:userInfo=
"userInfo"
@
showPage=
"handleShowPage"
/>
:is=
"'Point'"
ref=
"pointRef"
:userInfo=
"userInfo"
@
showPage=
"handleShowPage"
/>
</view>
</view>
<
template
v-if=
"tabIndex != 0 && tabIndex != 99"
>
<
template
v-if=
"tabIndex != 0 && tabIndex != 99"
>
<component
<component
:is=
"componentName"
ref=
"pointRef"
:userInfo=
"userInfo"
@
showPage=
"handleShowPage"
:isPermissionFunction=
"isPermission"
/>
:is=
"componentName"
ref=
"pointRef"
:userInfo=
"userInfo"
@
showPage=
"handleShowPage"
:isPermissionFunction=
"isPermission"
/>
</
template
>
</
template
>
</view>
</view>
<view
<view
class=
"store-addr"
v-if=
"footerBox"
>
class=
"store-addr"
v-if=
"footerBox"
>
<view
class=
"icon-addr sprite-icon icon-addr"
></view>
<view
class=
"icon-addr sprite-icon icon-addr"
></view>
<view
class=
"addr-text"
>
{{ userInfo.shopMerchantName }}
</view>
<view
class=
"addr-text"
>
{{ userInfo.shopMerchantName }}
</view>
</view>
</view>
...
@@ -96,41 +53,17 @@
...
@@ -96,41 +53,17 @@
<view
:class=
"['detail', { show: id }]"
>
<view
:class=
"['detail', { show: id }]"
>
<slot
name=
"detail"
/>
<slot
name=
"detail"
/>
</view>
</view>
<view
<view
class=
"point-page"
v-if=
"!showHome"
>
class=
"point-page"
<component
:is=
"pointComponentName"
@
backHome=
"backHome"
@
jump=
"jump"
:transfer=
"transfer"
/>
v-if=
"!showHome"
>
<component
:is=
"pointComponentName"
@
backHome=
"backHome"
@
jump=
"jump"
:transfer=
"transfer"
/>
</view>
</view>
<!-- 未点击开始接待,弹窗 -->
<!-- 未点击开始接待,弹窗 -->
<MessageBox
<MessageBox
ref=
"previewRef"
@
confirm=
"previewHandler('preview', true)"
:popupW=
"704"
content=
"直接点击素材可进行预览,若面向车主展示,请点击「开始接待」"
confirmBtnText=
"预览素材"
@
cancel=
"previewHandler('previewCancel')"
@
close=
"previewHandler('previewClose')"
></MessageBox>
ref=
"previewRef"
@
confirm=
"previewHandler('preview', true)"
:popupW=
"704"
content=
"直接点击素材可进行预览,若面向车主展示,请点击「开始接待」"
confirmBtnText=
"预览素材"
@
cancel=
"previewHandler('previewCancel')"
@
close=
"previewHandler('previewClose')"
></MessageBox>
<!-- 停留弹框 -->
<!-- 停留弹框 -->
<!-- <MessageBox ref="tipBox" @cancel="tipCancel" @confirm="tipConfirm" content="系统检测到您在当前页面停留较久,是否仍在客户接待中?" cancelBtnText="否" confirmBtnText="是"></MessageBox> -->
<!-- <MessageBox ref="tipBox" @cancel="tipCancel" @confirm="tipConfirm" content="系统检测到您在当前页面停留较久,是否仍在客户接待中?" cancelBtnText="否" confirmBtnText="是"></MessageBox> -->
<!-- 退出弹框 -->
<!-- 退出弹框 -->
<MessageBox
<MessageBox
:popupW=
"704"
ref=
"finish"
:content=
"finishContene"
:isFooter=
"false"
>
:popupW=
"704"
ref=
"finish"
:content=
"finishContene"
:isFooter=
"false"
>
<view
class=
"footer"
>
<view
class=
"footer"
>
<view
<view
class=
"footer-btn confirm flex"
@
click=
"$emit('openStep')"
>
class=
"footer-btn confirm flex"
@
click=
"$emit('openStep')"
>
<
template
v-if=
"finishDoneText"
>
<
template
v-if=
"finishDoneText"
>
{{
finishDoneText
}}
{{
finishDoneText
}}
</
template
>
</
template
>
...
@@ -139,10 +72,7 @@
...
@@ -139,10 +72,7 @@
<text>
(推荐)
</text>
<text>
(推荐)
</text>
</
template
>
</
template
>
</view>
</view>
<view
<view
class=
"footer-btn cancel flex"
@
click=
"$emit('backHome')"
>
class=
"footer-btn cancel flex"
@
click=
"$emit('backHome')"
>
仍要退出
仍要退出
<text>
(不推荐)
</text>
<text>
(不推荐)
</text>
</view>
</view>
...
@@ -151,11 +81,7 @@
...
@@ -151,11 +81,7 @@
<!-- 升级弹框 -->
<!-- 升级弹框 -->
<update-box
/>
<update-box
/>
<slot
name=
"content"
/>
<slot
name=
"content"
/>
<web-view
<web-view
@
message=
"handlerMessage"
ref=
"webview"
src=
"/hybrid/html/index.html"
></web-view>
@
message=
"handlerMessage"
ref=
"webview"
src=
"/hybrid/html/index.html"
></web-view>
<!-- <web-view
<!-- <web-view
ref="studyWebview"
ref="studyWebview"
:src="jumpUrl"
:src="jumpUrl"
...
@@ -163,62 +89,18 @@
...
@@ -163,62 +89,18 @@
></web-view> -->
></web-view> -->
<!-- 学习中心 等级考试弹窗 -->
<!-- 学习中心 等级考试弹窗 -->
<StudyPopup
<StudyPopup
:show
.
sync=
"showStudyPopup"
title=
"开始您的学习之旅"
:topImage=
"require('@/assets/images/common/study-center-bg.png')"
:topImageWidth=
"848"
:topImageHeight=
"248"
>
:show
.
sync=
"showStudyPopup"
<StudyPopupContent
cardTitle=
"个性化学习路径"
description=
"根据您当前的学习情况,我们将为您定制专属的学习计划,帮助您高效提升技能,实现职业突破。"
:listItems=
"['基于当前能力水平评估', '结合岗位发展目标制定', '定期跟踪学习进度和效果']"
tipText=
"true"
:courseName=
"courseInfo.title"
buttonText=
"开始测评"
@
button-click=
"handleStartAssessment"
/>
title=
"开始您的学习之旅"
:topImage=
"require('@/assets/images/common/study-center-bg.png')"
:topImageWidth=
"848"
:topImageHeight=
"248"
>
<StudyPopupContent
cardTitle=
"个性化学习路径"
description=
"根据您当前的学习情况,我们将为您定制专属的学习计划,帮助您高效提升技能,实现职业突破。"
:listItems=
"[
'基于当前能力水平评估',
'结合岗位发展目标制定',
'定期跟踪学习进度和效果'
]"
tipText=
"true"
:courseName=
"courseInfo.title"
buttonText=
"开始测评"
@
button-click=
"handleStartAssessment"
/>
</StudyPopup>
</StudyPopup>
<!-- 考试提交确认弹窗 -->
<!-- 考试提交确认弹窗 -->
<StudyPopup
<StudyPopup
:show
.
sync=
"showExamPopup"
title=
""
:width=
"848"
:height=
"examPopInfo.isExamLoading ? 740 : 656"
:topImage=
"require('@/assets/images/common/warning-notice.png')"
:topImageWidth=
"848"
:topImageHeight=
"248"
>
:show
.
sync=
"showExamPopup"
<ExamSubmitPopup
:isLoading=
"examPopInfo.isExamLoading"
:showError=
"examPopInfo.showError"
:confirmText=
"examPopInfo.confirmText"
@
cancel=
"handleExamCancel"
@
confirm=
"handleExamConfirm"
/>
title=
""
:width=
"848"
:height=
"examPopInfo.isExamLoading ? 740 : 656"
:topImage=
"require('@/assets/images/common/warning-notice.png')"
:topImageWidth=
"848"
:topImageHeight=
"248"
>
<ExamSubmitPopup
:isLoading=
"examPopInfo.isExamLoading"
:showError=
"examPopInfo.showError"
:confirmText=
"examPopInfo.confirmText"
@
cancel=
"handleExamCancel"
@
confirm=
"handleExamConfirm"
/>
</StudyPopup>
</StudyPopup>
<!-- 学习中心权限弹窗 -->
<!-- 学习中心权限弹窗 -->
<StudyPopup
<StudyPopup
:show
.
sync=
"showStudyPermissionPopup"
title=
""
:width=
"848"
:height=
"870"
:topImage=
"require('@/assets/images/common/warning-notice.png')"
:topImageWidth=
"848"
:topImageHeight=
"248"
style=
"overflow: hidden"
>
:show
.
sync=
"showStudyPermissionPopup"
<StudyCenterPermissionPopup
:lockReason=
"lockReason"
@
confirm=
"handleStudyPermissionConfirm"
/>
title=
""
:width=
"848"
:height=
"870"
:topImage=
"require('@/assets/images/common/warning-notice.png')"
:topImageWidth=
"848"
:topImageHeight=
"248"
style=
"overflow: hidden;"
>
<StudyCenterPermissionPopup
:lockReason=
"lockReason"
@
confirm=
"handleStudyPermissionConfirm"
/>
</StudyPopup>
</StudyPopup>
</view>
</view>
</template>
</template>
...
@@ -276,9 +158,9 @@ export default {
...
@@ -276,9 +158,9 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
true
default
:
true
},
},
swiperCustom
:
Boolean
,
swiperCustom
:
Boolean
},
},
data
()
{
data
()
{
return
{
return
{
studyUrl
:
''
,
studyUrl
:
''
,
jumpUrl
:
''
,
jumpUrl
:
''
,
...
@@ -312,34 +194,40 @@ export default {
...
@@ -312,34 +194,40 @@ export default {
console
.
log
(
'接收到考试提交弹窗事件'
)
console
.
log
(
'接收到考试提交弹窗事件'
)
this
.
showExamPopup
=
true
this
.
showExamPopup
=
true
})
})
uni
.
$on
(
'showStudyPopup'
,
(
obj
)
=>
{
console
.
log
(
'接收到学习弹窗事件'
,
obj
)
// 查询是否有等级考试
this
.
getLevelExamInfo
()
})
},
},
beforeDestroy
()
{
beforeDestroy
()
{
// 组件销毁前移除监听
// 组件销毁前移除监听
uni
.
$off
(
'showExamSubmitPopup'
)
uni
.
$off
(
'showExamSubmitPopup'
)
uni
.
$off
(
'showStudyPopup'
)
},
},
mounted
()
{
mounted
()
{
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
this
.
userInfo
=
userInfo
this
.
userInfo
=
userInfo
if
(
this
.
checkRecordAudio
)
permision
.
requestAndroidPermission
(
'android.permission.RECORD_AUDIO'
)
// 进入界面时检查权限
if
(
this
.
checkRecordAudio
)
permision
.
requestAndroidPermission
(
'android.permission.RECORD_AUDIO'
)
// 进入界面时检查权限
},
},
provide
()
{
provide
()
{
return
{
return
{
showPage
:
this
.
handleShowPage
,
showPage
:
this
.
handleShowPage
,
hideFooter
:
this
.
handleFooter
hideFooter
:
this
.
handleFooter
}
}
},
},
computed
:
{
computed
:
{
previewRef
()
{
previewRef
()
{
return
this
.
$refs
.
previewRef
return
this
.
$refs
.
previewRef
},
},
finishRef
()
{
finishRef
()
{
return
this
.
$refs
.
finish
return
this
.
$refs
.
finish
},
},
componentName
()
{
componentName
()
{
let
tabs
=
this
.
$refs
.
leftBox
?.
tabs
let
tabs
=
this
.
$refs
.
leftBox
?.
tabs
return
tabs
?
tabs
[
this
.
tabIndex
].
name
:
''
return
tabs
?
tabs
[
this
.
tabIndex
].
name
:
''
},
},
sceneType
()
{
sceneType
()
{
const
{
sceneType
}
=
uni
.
$storage
.
get
(
'userInfo'
)
const
{
sceneType
}
=
uni
.
$storage
.
get
(
'userInfo'
)
return
sceneType
return
sceneType
}
}
...
@@ -356,45 +244,53 @@ export default {
...
@@ -356,45 +244,53 @@ export default {
uni
.
hideLoading
()
uni
.
hideLoading
()
if
(
token
)
{
if
(
token
)
{
// const COURSE_ID = 'c6d20419-fae9-4d35-a1d1-bd2b35c0c619';
// const COURSE_ID = 'c6d20419-fae9-4d35-a1d1-bd2b35c0c619';
const
baseUrl
=
'https://cloud.italent.cn/PageHome/Index'
;
const
baseUrl
=
'https://cloud.italent.cn/PageHome/Index'
const
params
=
{
const
params
=
{
product
:
'Learning'
,
product
:
'Learning'
,
keyName
:
'Nusion'
,
keyName
:
'Nusion'
,
pageCode
:
'LearningExamTraineePage'
,
pageCode
:
'LearningExamTraineePage'
,
appCode
:
'Learning'
,
appCode
:
'Learning'
,
examId
:
this
.
courseInfo
.
examId
examId
:
this
.
courseInfo
.
examId
}
;
}
const
queryString
=
Object
.
entries
(
params
)
const
queryString
=
Object
.
entries
(
params
)
.
map
(([
key
,
value
])
=>
`
${
key
}
=
${
value
}
`
)
.
map
(([
key
,
value
])
=>
`
${
key
}
=
${
value
}
`
)
.
join
(
'&'
)
;
.
join
(
'&'
)
const
tokenUrl
=
this
.
tokenUrl
||
uni
.
$storage
.
get
(
'beisenToken'
)
const
tokenUrl
=
this
.
tokenUrl
||
uni
.
$storage
.
get
(
'beisenToken'
)
// this.setWebviewStyle()
// this.setWebviewStyle()
const
url
=
encodeURIComponent
(
`
${
baseUrl
}
?
${
queryString
}
#/viewDynamic?1=1`
)
;
const
url
=
encodeURIComponent
(
`
${
baseUrl
}
?
${
queryString
}
#/viewDynamic?1=1`
)
this
.
jumpUrl
=
`
${
tokenUrl
}
&return_url=
${
url
}
`
;
this
.
jumpUrl
=
`
${
tokenUrl
}
&return_url=
${
url
}
`
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/common/studyWebview?url=
${
encodeURIComponent
(
this
.
jumpUrl
)}
&pageTitle=学习测评`
url
:
`/pages/common/studyWebview?url=
${
encodeURIComponent
(
this
.
jumpUrl
)}
&pageTitle=学习测评`
})
})
}
else
{
}
else
{
throw
new
Error
(
'获取 token 失败'
)
uni
.
showToast
({
title
:
'培训账号未创建'
,
icon
:
'none'
})
this
.
getLevelExamInfo
()
throw
new
Error
(
'获取 token 失败1'
)
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
uni
.
hideLoading
()
uni
.
hideLoading
()
console
.
error
(
'❌ 获取 token 失败:'
,
error
)
console
.
error
(
'❌ 获取 token 失败:'
,
error
)
//
uni.showToast({
uni
.
showToast
({
// title: '获取授权失败,请重试
',
title
:
'培训账号未创建
'
,
//
icon: 'none'
icon
:
'none'
//
})
})
}
}
},
},
// 获取北森 SSO Token(参考 detail.vue 的方法)
// 获取北森 SSO Token(参考 detail.vue 的方法)
findBeiSenSSOToken
()
{
findBeiSenSSOToken
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
uni
.
$api
.
commonApi
.
findBeiSenSSOToken
({}).
then
(
res
=>
{
uni
.
$api
.
commonApi
uni
.
$storage
.
set
(
'beisenToken'
,
res
.
data
)
.
findBeiSenSSOToken
({})
resolve
(
res
.
data
||
''
)
.
then
(
res
=>
{
}).
catch
(
err
=>
{
uni
.
$storage
.
set
(
'beisenToken'
,
res
.
data
)
reject
(
err
)
resolve
(
res
.
data
||
''
)
})
})
.
catch
(
err
=>
{
reject
(
err
)
})
})
})
},
},
// 处理考试取消(用户选择未提交)
// 处理考试取消(用户选择未提交)
...
@@ -423,7 +319,7 @@ export default {
...
@@ -423,7 +319,7 @@ export default {
async
checkStudyCenterPermission
()
{
async
checkStudyCenterPermission
()
{
try
{
try
{
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
// 如果是渠道类型为9,没有权限
// 如果是渠道类型为9,没有权限
if
(
userInfo
?.
subLoginUser
?.
channelType
==
9
)
{
if
(
userInfo
?.
subLoginUser
?.
channelType
==
9
)
{
return
false
return
false
...
@@ -431,7 +327,7 @@ export default {
...
@@ -431,7 +327,7 @@ export default {
// 获取权限信息
// 获取权限信息
let
studyCenterPermission
=
uni
.
$storage
.
get
(
'studyCenterPermission'
)
let
studyCenterPermission
=
uni
.
$storage
.
get
(
'studyCenterPermission'
)
// 如果缓存中没有,调用接口获取
// 如果缓存中没有,调用接口获取
if
(
!
studyCenterPermission
)
{
if
(
!
studyCenterPermission
)
{
const
yqMerchantIdList
=
userInfo
?.
subLoginUser
?.
yqMerchantIdList
||
[]
const
yqMerchantIdList
=
userInfo
?.
subLoginUser
?.
yqMerchantIdList
||
[]
...
@@ -443,7 +339,7 @@ export default {
...
@@ -443,7 +339,7 @@ export default {
// 判断权限:直营 或者 (鸿蒙智行 且 有延保业务)
// 判断权限:直营 或者 (鸿蒙智行 且 有延保业务)
const
{
directSaleAuth
,
hmzxAuth
,
authorizedBusinessList
}
=
studyCenterPermission
const
{
directSaleAuth
,
hmzxAuth
,
authorizedBusinessList
}
=
studyCenterPermission
const
isYb
=
authorizedBusinessList
&&
authorizedBusinessList
.
includes
(
1
)
// 1.延保 2.轻改 3.权益
const
isYb
=
authorizedBusinessList
&&
authorizedBusinessList
.
includes
(
1
)
// 1.延保 2.轻改 3.权益
// 有直营权限 或者 (有鸿蒙智行权限 且 有延保业务权限)则显示
// 有直营权限 或者 (有鸿蒙智行权限 且 有延保业务权限)则显示
// 这里返回 false 表示没有权限(即未完成学习任务),需要弹出提示
// 这里返回 false 表示没有权限(即未完成学习任务),需要弹出提示
// TODO: 这里后续需要调用接口查询是否完成必修课
// TODO: 这里后续需要调用接口查询是否完成必修课
...
@@ -495,11 +391,11 @@ export default {
...
@@ -495,11 +391,11 @@ export default {
})
})
}
}
},
},
async
changeTab
({
item
,
index
})
{
async
changeTab
({
item
,
index
})
{
if
(
index
==
0
)
this
.
$refs
.
messageRef
.
getMessageSummary
()
if
(
index
==
0
)
this
.
$refs
.
messageRef
.
getMessageSummary
()
this
.
previewOff
=
index
!=
0
this
.
previewOff
=
index
!=
0
this
.
$emit
(
'changeTab'
,
index
)
this
.
$emit
(
'changeTab'
,
index
)
// 切换到学习中心时显示弹窗
// 切换到学习中心时显示弹窗
if
(
item
.
name
===
'StudyCenter'
)
{
if
(
item
.
name
===
'StudyCenter'
)
{
this
.
getLevelExamInfo
()
this
.
getLevelExamInfo
()
...
@@ -513,16 +409,16 @@ export default {
...
@@ -513,16 +409,16 @@ export default {
this
.
courseInfo
=
res
this
.
courseInfo
=
res
}
}
},
},
handleFooter
(
val
)
{
handleFooter
(
val
)
{
this
.
footerBox
=
val
this
.
footerBox
=
val
},
},
backHome
()
{
backHome
()
{
this
.
showHome
=
true
this
.
showHome
=
true
Promise
.
resolve
().
then
(()
=>
{
Promise
.
resolve
().
then
(()
=>
{
this
.
$refs
.
pointRef
?.
$refs
?.
centerRef
?.
init
&&
this
.
$refs
.
pointRef
.
$refs
.
centerRef
.
init
()
this
.
$refs
.
pointRef
?.
$refs
?.
centerRef
?.
init
&&
this
.
$refs
.
pointRef
.
$refs
.
centerRef
.
init
()
})
})
},
},
jump
(
val
)
{
jump
(
val
)
{
this
.
showHome
=
true
this
.
showHome
=
true
if
(
val
==
'CustomerFile'
)
{
if
(
val
==
'CustomerFile'
)
{
this
.
tabIndex
=
2
this
.
tabIndex
=
2
...
@@ -530,12 +426,12 @@ export default {
...
@@ -530,12 +426,12 @@ export default {
}
}
this
.
start
()
this
.
start
()
},
},
handleShowPage
(
name
,
transfer
)
{
handleShowPage
(
name
,
transfer
)
{
this
.
transfer
=
transfer
this
.
transfer
=
transfer
this
.
showHome
=
false
this
.
showHome
=
false
this
.
pointComponentName
=
name
this
.
pointComponentName
=
name
},
},
handleOperation
(
val
,
data
)
{
handleOperation
(
val
,
data
)
{
const
{
type
}
=
val
const
{
type
}
=
val
// 提取公共的webview设置逻辑
// 提取公共的webview设置逻辑
...
@@ -605,32 +501,33 @@ export default {
...
@@ -605,32 +501,33 @@ export default {
}
}
},
},
// 学习中心修改阅读状态,打开后才修改
// 学习中心修改阅读状态,打开后才修改
async
getStudyCenterRead
(
id
)
{
async
getStudyCenterRead
(
id
)
{
const
res
=
await
uni
.
$api
.
commonApi
.
getStudyCenterRead
({
id
})
const
res
=
await
uni
.
$api
.
commonApi
.
getStudyCenterRead
({
id
})
},
},
showReadCountTips
(
res
)
{
showReadCountTips
(
res
)
{
this
.
tipsObject
=
res
this
.
tipsObject
=
res
},
},
closeTips
()
{
closeTips
()
{
this
.
$refs
.
leftBox
.
readCount
=
0
this
.
$refs
.
leftBox
.
readCount
=
0
this
.
tipsObject
=
{
this
.
tipsObject
=
{
style
:
''
,
style
:
''
,
text
:
''
text
:
''
}
}
},
},
swiperClick
(
e
)
{
swiperClick
(
e
)
{
if
(
this
.
sceneType
==
0
)
uni
.
$track
.
add
({
if
(
this
.
sceneType
==
0
)
eventCode
:
'app_product_Introduction'
uni
.
$track
.
add
({
})
//轻改场景不埋点
eventCode
:
'app_product_Introduction'
})
//轻改场景不埋点
this
.
previewOff
=
true
this
.
previewOff
=
true
this
.
$emit
(
'swiperClick'
,
e
)
this
.
$emit
(
'swiperClick'
,
e
)
},
},
previewHandler
(
name
,
off
=
false
)
{
previewHandler
(
name
,
off
=
false
)
{
this
.
previewOff
=
off
this
.
previewOff
=
off
this
.
$emit
(
name
)
this
.
$emit
(
name
)
},
},
start
()
{
start
()
{
const
{
sceneType
}
=
this
const
{
sceneType
}
=
this
if
(
sceneType
==
7
)
return
//二手车无接待功能
if
(
sceneType
==
7
)
return
//二手车无接待功能
uni
.
$track
.
add
({
uni
.
$track
.
add
({
...
@@ -638,11 +535,11 @@ export default {
...
@@ -638,11 +535,11 @@ export default {
})
})
this
.
$emit
(
'start'
)
this
.
$emit
(
'start'
)
},
},
async
updateApp
(
requested
=
false
)
{
async
updateApp
(
requested
=
false
)
{
if
(
!
requested
)
await
uni
.
$api
.
systemApi
.
getMockData
(
true
)
if
(
!
requested
)
await
uni
.
$api
.
systemApi
.
getMockData
(
true
)
this
.
checkVersion
()
this
.
checkVersion
()
},
},
async
entranceClick
(
item
)
{
async
entranceClick
(
item
)
{
// 清除评估单的图片视频资源缓存
// 清除评估单的图片视频资源缓存
const
noInterceptPage
=
[
'DailyReport'
,
'DeliveryManagement'
],
const
noInterceptPage
=
[
'DailyReport'
,
'DeliveryManagement'
],
...
@@ -650,10 +547,10 @@ export default {
...
@@ -650,10 +547,10 @@ export default {
if
(
!
noInterceptPage
.
includes
(
item
.
name
))
{
if
(
!
noInterceptPage
.
includes
(
item
.
name
))
{
if
(
sceneType
!=
7
)
{
if
(
sceneType
!=
7
)
{
if
(
await
this
.
inspectionOfProhibitionBill
())
return
if
(
await
this
.
inspectionOfProhibitionBill
())
return
if
(
await
this
.
getLimitRecord
())
{
//
if (await this.getLimitRecord()) {
this
.
showStudyPermissionPopup
=
true
//
this.showStudyPermissionPopup = true
return
//
return
}
//
}
}
}
if
(
await
this
.
checkDailyReport
(
sceneType
!=
7
))
return
if
(
await
this
.
checkDailyReport
(
sceneType
!=
7
))
return
}
}
...
@@ -664,9 +561,10 @@ export default {
...
@@ -664,9 +561,10 @@ export default {
})
})
return
return
}
}
if
(
item
.
page
)
return
uni
.
navigateTo
({
if
(
item
.
page
)
url
:
item
.
page
return
uni
.
navigateTo
({
})
url
:
item
.
page
})
let
pageName
=
{
let
pageName
=
{
0
:
'equity'
,
0
:
'equity'
,
1
:
'boutique'
,
1
:
'boutique'
,
...
...
components/OrderPopup/components/Customer.vue
View file @
856f65c
...
@@ -48,6 +48,9 @@ export default {
...
@@ -48,6 +48,9 @@ export default {
}
}
let
apiTargetName
=
!
params
.
defeat
?
'getQuotationCustomerList'
:
'getWorkPackageGoodsList'
let
apiTargetName
=
!
params
.
defeat
?
'getQuotationCustomerList'
:
'getWorkPackageGoodsList'
console
.
log
(
apiTargetName
,
'apiTargetName'
)
console
.
log
(
apiTargetName
,
'apiTargetName'
)
if
(
params
.
defeat
)
{
apiParams
.
keyword
=
searchValue
}
const
{
list
}
=
await
uni
.
$api
.
popupApi
[
apiTargetName
](
apiParams
)
const
{
list
}
=
await
uni
.
$api
.
popupApi
[
apiTargetName
](
apiParams
)
let
customerList
=
list
let
customerList
=
list
if
(
params
.
defeat
)
{
if
(
params
.
defeat
)
{
...
...
pages/common/studyCenter/components/CompletedCourse.vue
View file @
856f65c
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
</view>
</view>
<image
class=
"completed-course-item-img"
<image
class=
"completed-course-item-img"
src=
"../../../../assets/images/common/course-default-bg.webp
"
mode=
"scaleToFill"
/>
:src=
"require(`@/assets/images/common/${COURSE_TYPE[item.courseFileType].image}.webp`)
"
mode=
"scaleToFill"
/>
<view
class=
"completed-course-content"
>
<view
class=
"completed-course-content"
>
<view
class=
"completed-course-item-title"
>
<view
class=
"completed-course-item-title"
>
{{ item.title }}
{{ item.title }}
...
...
pages/common/studyCenter/components/MyTask.vue
View file @
856f65c
...
@@ -578,7 +578,7 @@ export default {
...
@@ -578,7 +578,7 @@ export default {
}
}
}
}
.task-item-progress
{
.task-item-progress
{
width
:
toRpx
(
151
);
width
:
toRpx
(
214
);
height
:
toRpx
(
16
);
height
:
toRpx
(
16
);
background
:
linear-gradient
(
128.8deg
,
rgba
(
117
,
188
,
255
,
.35
)
0%
,
rgba
(
44
,
102
,
247
,
.35
)
100%
);
background
:
linear-gradient
(
128.8deg
,
rgba
(
117
,
188
,
255
,
.35
)
0%
,
rgba
(
44
,
102
,
247
,
.35
)
100%
);
border-radius
:
toRpx
(
8
);
border-radius
:
toRpx
(
8
);
...
...
pages/common/studyCenter/components/ToLearnCourse.vue
View file @
856f65c
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</view>
</view>
<image
class=
"recommend-course-item-img"
<image
class=
"recommend-course-item-img"
src=
"../../../../assets/images/common/course-default-bg.webp
"
mode=
"scaleToFill"
/>
:src=
"require(`@/assets/images/common/${COURSE_TYPE[item.courseFileType].image}.webp`)
"
mode=
"scaleToFill"
/>
<view
class=
"recommend-course-content"
>
<view
class=
"recommend-course-content"
>
<view
class=
"recommend-course-item-title"
>
<view
class=
"recommend-course-item-title"
>
{{ item.title }}
{{ item.title }}
...
...
pages/common/studyCenter/courseDetail.vue
View file @
856f65c
...
@@ -105,6 +105,8 @@ export default {
...
@@ -105,6 +105,8 @@ export default {
// if(currentWebview)
{
// if(currentWebview)
{
// currentWebview.close()
// currentWebview.close()
//
}
//
}
// 点击返回按钮,触发学习弹窗事件
uni
.
$emit
(
'showStudyPopup'
,
{
name
:
'courseDetail'
}
)
uni
.
navigateBack
()
uni
.
navigateBack
()
}
,
}
,
async
openCourse
(
index
,
item
)
{
async
openCourse
(
index
,
item
)
{
...
...
pages/common/studyCenter/leaderboard.vue
View file @
856f65c
...
@@ -95,6 +95,8 @@ export default {
...
@@ -95,6 +95,8 @@ export default {
},
},
methods
:
{
methods
:
{
back
()
{
back
()
{
// 点击返回按钮,触发学习弹窗事件
uni
.
$emit
(
'showStudyPopup'
,
{
name
:
'leaderboard'
})
uni
.
navigateBack
()
uni
.
navigateBack
()
},
},
switchTab
(
index
)
{
switchTab
(
index
)
{
...
@@ -163,7 +165,7 @@ export default {
...
@@ -163,7 +165,7 @@ export default {
top
:
50%
;
top
:
50%
;
left
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
font-weight
:
7
00
;
font-weight
:
5
00
;
font-size
:
toRpx
(
32
);
font-size
:
toRpx
(
32
);
color
:
#1a1a1a
;
color
:
#1a1a1a
;
}
}
...
@@ -179,7 +181,7 @@ export default {
...
@@ -179,7 +181,7 @@ export default {
width
:
toRpx
(
1084
);
width
:
toRpx
(
1084
);
height
:
toRpx
(
1312
);
height
:
toRpx
(
1312
);
border-radius
:
toRpx
(
32
);
border-radius
:
toRpx
(
32
);
background
:
#ffffff
b3
;
background
:
#ffffff
;
backdrop-filter
:
blur
(
toRpx
(
16
));
backdrop-filter
:
blur
(
toRpx
(
16
));
box-shadow
:
inset
0
0
toRpx
(
16
)
0
#ffffff
;
box-shadow
:
inset
0
0
toRpx
(
16
)
0
#ffffff
;
position
:
relative
;
position
:
relative
;
...
@@ -194,7 +196,7 @@ export default {
...
@@ -194,7 +196,7 @@ export default {
width
:
100%
;
width
:
100%
;
height
:
toRpx
(
128
);
height
:
toRpx
(
128
);
display
:
block
;
display
:
block
;
//
background-color
:
#ecf2ff
;
background-color
:
#ecf2ff
;
}
}
}
}
...
@@ -347,7 +349,7 @@ export default {
...
@@ -347,7 +349,7 @@ export default {
}
}
.rank-scroll
{
.rank-scroll
{
max-height
:
toRpx
(
9
60
);
max-height
:
toRpx
(
9
44
);
}
}
}
}
...
...
pages/common/studyCenter/myCourse.vue
View file @
856f65c
...
@@ -72,6 +72,8 @@ export default {
...
@@ -72,6 +72,8 @@ export default {
},
},
methods
:
{
methods
:
{
back
()
{
back
()
{
// 点击返回按钮,触发学习弹窗事件
uni
.
$emit
(
'showStudyPopup'
,
{
name
:
'myCourse'
})
uni
.
navigateBack
()
uni
.
navigateBack
()
},
},
switchTab
(
index
)
{
switchTab
(
index
)
{
...
@@ -140,7 +142,7 @@ export default {
...
@@ -140,7 +142,7 @@ export default {
}
}
.title
{
.title
{
font-size
:
toRpx
(
3
6
);
font-size
:
toRpx
(
3
2
);
font-weight
:
500
;
font-weight
:
500
;
color
:
#000000
;
color
:
#000000
;
text-align
:
center
;
text-align
:
center
;
...
...
pages/common/studyCenter/myExam.vue
View file @
856f65c
...
@@ -69,6 +69,8 @@ export default {
...
@@ -69,6 +69,8 @@ export default {
},
},
methods
:
{
methods
:
{
back
()
{
back
()
{
// 点击返回按钮,触发学习弹窗事件
uni
.
$emit
(
'showStudyPopup'
,
{
name
:
'myExam'
})
uni
.
navigateBack
()
uni
.
navigateBack
()
},
},
switchTab
(
index
)
{
switchTab
(
index
)
{
...
@@ -120,7 +122,7 @@ export default {
...
@@ -120,7 +122,7 @@ export default {
top
:
50%
;
top
:
50%
;
left
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
font-weight
:
7
00
;
font-weight
:
5
00
;
font-size
:
toRpx
(
32
);
font-size
:
toRpx
(
32
);
color
:
#1a1a1a
;
color
:
#1a1a1a
;
}
}
...
...
pages/common/studyCenter/myTask.vue
View file @
856f65c
...
@@ -118,10 +118,13 @@
...
@@ -118,10 +118,13 @@
}
}
this
.
isHmzx
=
studyCenterPermission
.
hmzxAuth
this
.
isHmzx
=
studyCenterPermission
.
hmzxAuth
this
.
isYb
=
studyCenterPermission
.
authorizedBusinessList
&&
studyCenterPermission
.
authorizedBusinessList
.
includes
(
1
)
this
.
isYb
=
studyCenterPermission
.
authorizedBusinessList
&&
studyCenterPermission
.
authorizedBusinessList
.
includes
(
1
)
console
.
log
(
this
.
isBeisen
,
this
.
isHmzx
,
this
.
isYb
,
'this.isYb'
)
this
.
getStudyBoard
();
this
.
getStudyBoard
();
},
},
methods
:
{
methods
:
{
back
()
{
back
()
{
// 点击返回按钮,触发学习弹窗事件
uni
.
$emit
(
'showStudyPopup'
,
{
name
:
'myTask'
})
uni
.
navigateBack
()
uni
.
navigateBack
()
},
},
goToMyTask
()
{
goToMyTask
()
{
...
@@ -221,7 +224,7 @@
...
@@ -221,7 +224,7 @@
}
}
.title
{
.title
{
font-size
:
toRpx
(
3
6
);
font-size
:
toRpx
(
3
2
);
font-weight
:
500
;
font-weight
:
500
;
color
:
#000000
;
color
:
#000000
;
text-align
:
center
;
text-align
:
center
;
...
@@ -251,7 +254,6 @@
...
@@ -251,7 +254,6 @@
flex
:
1
;
flex
:
1
;
padding
:
toRpx
(
56
)
toRpx
(
48
)
toRpx
(
80
);
padding
:
toRpx
(
56
)
toRpx
(
48
)
toRpx
(
80
);
overflow
:
hidden
;
overflow
:
hidden
;
padding-top
:
toRpx
(
44
);
.study-left
{
.study-left
{
width
:
toRpx
(
656
);
width
:
toRpx
(
656
);
...
...
pages/equity/tool/components/ContractPopup.vue
View file @
856f65c
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</view>
</view>
<view
class=
"file-info"
>
<view
class=
"file-info"
>
<text
class=
"file-name"
>
{{
getFileName
(
file
)
}}
</text>
<text
class=
"file-name"
>
{{
getFileName
(
file
)
}}
</text>
<
text
class=
"file-size"
>
{{
formatFileSize
(
file
.
size
)
}}
</text
>
<
!--
<text
class=
"file-size"
>
{{
formatFileSize
(
file
.
size
)
}}
</text>
--
>
</view>
</view>
</view>
</view>
<!-- 图片文件显示 -->
<!-- 图片文件显示 -->
...
@@ -90,12 +90,12 @@ export default {
...
@@ -90,12 +90,12 @@ export default {
console
.
log
(
'data'
,
data
)
console
.
log
(
'data'
,
data
)
if
(
data
&&
data
.
zyPayUrl
)
{
if
(
data
&&
data
.
zyPayUrl
)
{
const
urls
=
data
.
zyPayUrl
.
split
(
','
).
filter
(
url
=>
url
.
trim
())
const
urls
=
data
.
zyPayUrl
.
split
(
','
).
filter
(
url
=>
url
.
trim
())
this
.
$set
(
this
.
contractData
,
this
.
uploadField
.
key
,
urls
.
map
(
url
=>
({
this
.
$set
(
this
.
contractData
,
this
.
uploadField
.
key
,
urls
.
map
(
url
=>
({
url
:
url
.
trim
(),
url
:
url
.
trim
(),
type
:
this
.
getFileTypeFromUrl
(
url
.
trim
()),
type
:
this
.
getFileTypeFromUrl
(
url
.
trim
()),
name
:
this
.
getFileNameFromUrl
(
url
.
trim
()),
name
:
this
.
getFileNameFromUrl
(
url
.
trim
()),
size
:
0
// 从字符串无法获取文件大小
size
:
0
// 从字符串无法获取文件大小
})))
})))
console
.
log
(
'this.contractData'
,
this
.
contractData
)
console
.
log
(
'this.contractData'
,
this
.
contractData
)
}
}
...
@@ -253,9 +253,10 @@ export default {
...
@@ -253,9 +253,10 @@ export default {
uni
.
showLoading
({
title
:
'上传中...'
,
mask
:
true
})
uni
.
showLoading
({
title
:
'上传中...'
,
mask
:
true
})
// 使用tempFilePath进行上传
// 使用tempFilePath进行上传
uploadFile
(
null
,
fileData
.
tempFilePath
)
uploadFile
(
fileData
.
tempFile
,
fileData
.
tempFilePath
)
.
then
(
url
=>
{
.
then
(
url
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
console
.
log
(
'上传成功'
,
url
)
// 添加到合同文件列表
// 添加到合同文件列表
this
.
addContractFile
({
this
.
addContractFile
({
url
:
url
,
url
:
url
,
...
@@ -280,12 +281,14 @@ export default {
...
@@ -280,12 +281,14 @@ export default {
// 获取合同文件数组
// 获取合同文件数组
getContractFiles
()
{
getContractFiles
()
{
console
.
log
(
this
.
contractData
,
'this.contractData'
)
const
files
=
this
.
contractData
[
this
.
uploadField
.
key
]
const
files
=
this
.
contractData
[
this
.
uploadField
.
key
]
return
Array
.
isArray
(
files
)
?
files
:
[]
return
Array
.
isArray
(
files
)
?
files
:
[]
},
},
// 检查是否是PDF文件
// 检查是否是PDF文件
isPdfFile
(
file
)
{
isPdfFile
(
file
)
{
console
.
log
(
file
,
'file'
)
if
(
typeof
file
===
'object'
&&
file
.
type
)
{
if
(
typeof
file
===
'object'
&&
file
.
type
)
{
return
file
.
type
===
'pdf'
return
file
.
type
===
'pdf'
}
}
...
...
pages/equity/tool/components/DefeatOrder.vue
View file @
856f65c
...
@@ -683,7 +683,7 @@ export default {
...
@@ -683,7 +683,7 @@ export default {
padding-bottom
:
toRpx
(
24
);
padding-bottom
:
toRpx
(
24
);
position
:
relative
;
position
:
relative
;
.scroll-view
{
.scroll-view
{
height
:
100%
;
height
:
calc
(
100%
-
#{
toRpx
(
168
)}
)
;
}
}
}
}
...
...
pages/equity/tool/components/OrderCard.vue
View file @
856f65c
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
<PublishPopup
ref=
"defeatOrderPopup"
popupClass=
"defeatOrderPopup"
type=
"center"
:showClose=
"true"
:isMaskClick=
"false"
title=
"战败原因"
>
<PublishPopup
ref=
"defeatOrderPopup"
popupClass=
"defeatOrderPopup"
type=
"center"
:showClose=
"true"
:isMaskClick=
"false"
title=
"战败原因"
>
<template
#
content
>
<template
#
content
>
<view
class=
"defeat-order-box modatcontent"
>
<view
class=
"defeat-order-box modatcontent"
>
<textarea
class=
"defeat-textarea"
placeholder=
"请填写战败原因"
maxlength=
"
15
"
v-model=
"textareaValue"
/>
<textarea
class=
"defeat-textarea"
placeholder=
"请填写战败原因"
maxlength=
"
30
"
v-model=
"textareaValue"
/>
</view>
</view>
</
template
>
</
template
>
<
template
#
footer
>
<
template
#
footer
>
...
@@ -559,47 +559,80 @@ export default {
...
@@ -559,47 +559,80 @@ export default {
urls
=
val
.
contractFiles
.
map
(
file
=>
file
.
url
).
filter
(
url
=>
url
)
urls
=
val
.
contractFiles
.
map
(
file
=>
file
.
url
).
filter
(
url
=>
url
)
}
}
console
.
log
(
urls
)
console
.
log
(
urls
)
uni
.
$api
.
equityApi
const
that
=
this
.
getQuotationInfoById
({
if
(
this
.
orderCardDetail
.
zyPayStatus
==
2
&&
this
.
orderCardDetail
.
canUpdateZyPayUrl
==
1
)
{
id
:
this
.
orderCardDetail
?.
id
uni
.
showModal
({
title
:
'修改确认'
,
content
:
'本次操作将永久替换原图或协议(仅限1次修改权限),请确认是否更新?'
,
confirmText
:
'确定'
,
confirmColor
:
'#347BFF'
,
success
(
res
)
{
if
(
res
.
confirm
)
{
uni
.
showLoading
({
mask
:
true
})
console
.
log
(
that
.
orderCardDetail
)
uni
.
$api
.
equityApi
.
updateZyInfo
({
id
:
that
.
orderCardDetail
?.
id
,
zyPayUrl
:
urls
.
join
(
','
)
}).
then
(
res
=>
{
uni
.
hideLoading
()
uni
.
showToast
({
title
:
'提交成功'
,
icon
:
'none'
})
setTimeout
(()
=>
{
that
.
$emit
(
'refresh'
)
// _this.getList();
},
500
)
})
}
}
})
})
.
then
(
res
=>
{
}
else
{
console
.
log
(
res
,
'res'
)
uni
.
$api
.
equityApi
let
orderInfo
=
{}
.
getQuotationInfoById
({
let
{
default4SStoreInfo
}
=
this
.
userInfo
id
:
this
.
orderCardDetail
?.
id
orderInfo
.
check
=
true
orderInfo
.
id
=
res
.
id
orderInfo
.
orderId
=
res
.
orderId
orderInfo
.
merchantId4s
=
default4SStoreInfo
?.
merchantId
orderInfo
.
merchantName4s
=
default4SStoreInfo
?.
merchantName
orderInfo
.
referrer
=
res
.
referrer
orderInfo
.
referrerId
=
res
.
referrerId
console
.
log
(
orderInfo
,
'orderInfo'
)
uni
.
showLoading
({
mask
:
true
})
})
uni
.
$api
.
equityApi
.
then
(
res
=>
{
.
updateCustomerInfo
({
console
.
log
(
res
,
'res'
)
...
orderInfo
,
let
orderInfo
=
{}
zyPayUrl
:
urls
.
join
(
','
)
let
{
default4SStoreInfo
}
=
this
.
userInfo
})
orderInfo
.
check
=
true
.
then
(
result
=>
{
orderInfo
.
id
=
res
.
id
console
.
log
(
result
,
'resultresult'
)
orderInfo
.
orderId
=
res
.
orderId
this
.
$refs
.
contractPopupRef
.
close
()
orderInfo
.
merchantId4s
=
default4SStoreInfo
?.
merchantId
uni
.
hideLoading
()
orderInfo
.
merchantName4s
=
default4SStoreInfo
?.
merchantName
setTimeout
(()
=>
{
orderInfo
.
referrer
=
res
.
referrer
this
.
$emit
(
'refresh'
)
orderInfo
.
referrerId
=
res
.
referrerId
// _this.getList();
console
.
log
(
orderInfo
,
'orderInfo'
)
},
500
)
uni
.
showLoading
({
})
mask
:
true
.
catch
(
err
=>
{
console
.
log
(
err
)
uni
.
hideLoading
()
})
})
})
uni
.
$api
.
equityApi
.
catch
(
err
=>
{
.
updateCustomerInfo
({
uni
.
hideLoading
()
...
orderInfo
,
})
zyPayUrl
:
urls
.
join
(
','
)
})
.
then
(
result
=>
{
console
.
log
(
result
,
'resultresult'
)
this
.
$refs
.
contractPopupRef
.
close
()
uni
.
hideLoading
()
uni
.
showToast
({
title
:
'提交成功'
,
icon
:
'none'
})
setTimeout
(()
=>
{
this
.
$emit
(
'refresh'
)
// _this.getList();
},
500
)
})
.
catch
(
err
=>
{
console
.
log
(
err
)
uni
.
hideLoading
()
})
})
.
catch
(
err
=>
{
uni
.
hideLoading
()
})
}
}
}
},
},
get
methods
()
{
get
methods
()
{
...
...
pages/equity/tool/components/OrderManagement.vue
View file @
856f65c
<
template
>
<
template
>
<view
class=
"order-management"
>
<view
class=
"order-management"
>
<view
class=
"search-box"
>
<view
class=
"search-box"
>
<input
class=
"search-input"
placeholder-class=
"placeholder"
v-model=
"customerName"
confirm-type=
"search"
@
confirm=
"search"
placeholder=
"输入客户姓名搜索"
/>
<input
class=
"search-input"
placeholder-class=
"placeholder"
v-model=
"customerName"
confirm-type=
"search"
@
confirm=
"search"
placeholder=
"输入客户姓名
/商品名称/订单编号/手机号
搜索"
/>
<view
class=
"clear flex"
@
click=
"clear"
>
<view
class=
"clear flex"
@
click=
"clear"
>
<uni-icons
type=
"closeempty"
size=
"16"
v-if=
"customerName"
></uni-icons>
<uni-icons
type=
"closeempty"
size=
"16"
v-if=
"customerName"
></uni-icons>
</view>
</view>
</view>
</view>
<view
class=
"tab-container flex"
>
<view
class=
"tab-container flex"
>
<view
class=
"flex"
>
<view
class=
"flex
tab-flex-box
"
>
<view
class=
"tab-item"
:class=
"
{ active: tabIndex === index }" v-for="(item, index) in tabList" :key="index" @click="switchTab(index)">
<view
class=
"tab-item"
:class=
"
{ active: tabIndex === index }" v-for="(item, index) in tabList" :key="index" @click="switchTab(index)">
<text>
{{
item
.
tabName
}}
</text>
<text>
{{
item
.
tabName
}}
</text>
<text
class=
"num"
>
{{
item
.
num
}}
</text>
<text
class=
"num"
>
{{
item
.
num
}}
</text>
...
@@ -333,7 +333,6 @@ export default {
...
@@ -333,7 +333,6 @@ export default {
.search-box
{
.search-box
{
padding
:
toRpx
(
40
)
toRpx
(
48
)
toRpx
(
0
);
padding
:
toRpx
(
40
)
toRpx
(
48
)
toRpx
(
0
);
margin-bottom
:
toRpx
(
24
);
position
:
relative
;
position
:
relative
;
&::after
{
&::after
{
content
:
''
;
content
:
''
;
...
@@ -401,9 +400,11 @@ export default {
...
@@ -401,9 +400,11 @@ export default {
.tab-container
{
.tab-container
{
display
:
flex
;
display
:
flex
;
//
justify-content
:
start
;
//
justify-content
:
start
;
padding
:
toRpx
(
0
)
toRpx
(
48
);
margin-bottom
:
toRpx
(
24
);
position
:
relative
;
position
:
relative
;
padding-right
:
toRpx
(
48
);
.tab-flex-box
{
padding
:
toRpx
(
24
)
0
toRpx
(
24
)
toRpx
(
48
);
}
.flex
:first-child
{
.flex
:first-child
{
display
:
flex
;
display
:
flex
;
...
...
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