Commit 923baff0 authored by Morson's avatar Morson

修改课程页列表

parent 5c00bbda
...@@ -18,19 +18,24 @@ ...@@ -18,19 +18,24 @@
// 服务规范教程视频 // 服务规范教程视频
service_standard: { service_standard: {
"Course1": { "Course1": {
url: "https://xy-hybrid.kakalili.com/web/vivaVideo/home/static/img/videoen.mp4", url: "https://qn-static.banshouhui.com/self-support/videoen.mp4",
title: "第一节 接单服务标准", title: "第一节 师傅考核规则",
desc: "1.不同车企品牌结算价格不一,675元-1890元不等;", desc: "接单操作须知有助你快速了解充电桩安装业务,提高接单效率,请认真查看及学习。",
}, },
"Course2": { "Course2": {
url: "https://xy-hybrid.kakalili.com/web/vivaVideo/home/static/img/videoen.mp4", url: "https://qn-static.banshouhui.com/self-support/videoen.mp4",
title: "第二节 完工服务标准", title: "第二节 安装材料及工具",
desc: "2.结算价格为包工包料价,安装材料根据车企品牌规格自行采购(电缆、空开、漏保);", desc: "接单操作须知有助你快速了解充电桩安装业务,提高接单效率,请认真查看及学习。",
}, },
"Course3": { "Course3": {
url: "https://xy-hybrid.kakalili.com/web/vivaVideo/home/static/img/videoen.mp4", url: "https://qn-static.banshouhui.com/self-support/videoen.mp4",
title: "第二节 结算服务标准", title: "第二节 安装施工规范",
desc: "3.需具备一定的作业工具:如液压压线钳、冲击钻、电锤、登高安全带、电锤、绝缘电阻仪(摇表)、交流充电模拟器等;", desc: "接单操作须知有助你快速了解充电桩安装业务,提高接单效率,请认真查看及学习。",
},
"Course4": {
url: "https://qn-static.banshouhui.com/self-support/videoen.mp4",
title: "第二节 录单上传要求",
desc: "接单操作须知有助你快速了解充电桩安装业务,提高接单效率,请认真查看及学习。",
}, },
}, },
......
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
</view> </view>
<view>接单操作须知有助你快速了解充电桩安装业务,提高接单效率,请认真查看及学习。</view> <view>接单操作须知有助你快速了解充电桩安装业务,提高接单效率,请认真查看及学习。</view>
</view> </view>
<view class="learn-view" v-if="currentIndex >= 0"> <view class="learn-view" v-if="courseId >= 0">
<view class="learn-view-title">视频内容介绍</view> <view class="learn-view-title">视频内容介绍</view>
<view class="learn-list" v-for="(item, key) in courseOutlines[currentIndex]" :key="key"> <view class="learn-list" v-for="(item, key) in courseOutlines[courseId]" :key="key">
<view class="learn-list-item">{{item}}</view> <view class="learn-list-item">{{item}}</view>
</view> </view>
</view> </view>
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
}, },
computed: { computed: {
courseOutlines() { // 视频内容介绍 courseOutlines() { // 视频内容介绍
return [[ return {1:[
'1、考核规则:接单及时率', '1、考核规则:接单及时率',
'2、考核规则:上门及时率', '2、考核规则:上门及时率',
'3、考核规则:安装完工率', '3、考核规则:安装完工率',
...@@ -45,11 +45,11 @@ ...@@ -45,11 +45,11 @@
'5、考核规则:安装完工率', '5、考核规则:安装完工率',
'6、考核规则:客户满意度' '6、考核规则:客户满意度'
], ],
[ 2:[
'1、必备材料4大类', '1、必备材料4大类',
'2、施工工具准备' '2、施工工具准备'
], ],
[ 3:[
'1、接线安装工艺标准', '1、接线安装工艺标准',
'2、PVC、镀锌管电缆管明敷', '2、PVC、镀锌管电缆管明敷',
'3、电缆敷设的防火要求', '3、电缆敷设的防火要求',
...@@ -59,10 +59,10 @@ ...@@ -59,10 +59,10 @@
'7、充电桩内部接线', '7、充电桩内部接线',
'8、配电箱安装' '8、配电箱安装'
], ],
[ 4:[
'1、勘测环节录单要求', '1、勘测环节录单要求',
'2、安装环节录单要求' '2、安装环节录单要求'
]] ]}
} }
}, },
onLoad(e) { onLoad(e) {
...@@ -110,19 +110,12 @@ ...@@ -110,19 +110,12 @@
that.$u.api.saveCourseRate({ that.$u.api.saveCourseRate({
courseId: that.courseId courseId: that.courseId
}).then(res => { }).then(res => {
if (res.code == 200) { if (res.code !== 200) {
// uni.navigateBack({delta: 1})
uni.navigateTo({
url: "/pages/learn/exam"
})
} else {
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
title: "更新课程状态失败" title: "更新课程状态失败"
}) })
} }
}).catch(e => {
}) })
} else { } else {
uni.showToast({ uni.showToast({
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
id: 'Course1', id: 'Course1',
courseId: 1, courseId: 1,
title: '', title: '',
value: '已学习', value: '去学习',
courseActive: {}, courseActive: {},
status: 1, status: 1,
url: '' url: ''
...@@ -103,6 +103,15 @@ ...@@ -103,6 +103,15 @@
courseActive: {}, courseActive: {},
status: 0, status: 0,
url: '' url: ''
},
{
id: 'Course4',
courseId: 4,
title: '',
value: '去学习',
courseActive: {},
status: 0,
url: ''
} }
], ],
tipsDescription: '接单考核可让您快速了解如何使用小程序,建议先查看学习教程' tipsDescription: '接单考核可让您快速了解如何使用小程序,建议先查看学习教程'
...@@ -156,8 +165,9 @@ ...@@ -156,8 +165,9 @@
that.$u.api that.$u.api
.listOrderingTutorials() .listOrderingTutorials()
.then(res => { .then(res => {
debugger
const results = res.data; const results = res.data;
if (res.status == 200 && results && results.length > 0) { if (res.code == 200 && results && results.length > 0) {
that.tutorials.forEach((data, i) => { that.tutorials.forEach((data, i) => {
if (results.hasOwnProperty(data.id)) { if (results.hasOwnProperty(data.id)) {
data.status = results[data.id]; data.status = results[data.id];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment