Commit 923baff0 authored by Morson's avatar Morson

修改课程页列表

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