Commit 0c6b970c authored by Facius's avatar Facius

Merge branch 'dev' of https://git.banshouhui.com/lijundan/self-support into dev

parents ac958e52 82618ed0
<template> <template>
<view class="cus-wrap-component"> <view class="cus-wrap-component">
<image class="top-image" mode="widthFix" v-if="!isPop" :src="minekefutuImage"></image> <image class="top-image" mode="widthFix" v-if="!isPop" :src="qnFile(imageName)"></image>
<view class="content-view"> <view class="content-view">
<view :class="['title-view', {'is-mine': isMine}]"> <view :class="['title-view', {'is-mine': isMine}]">
<text :class="['title-text', {'is-mine': isMine}]">{{titleText[typeIndex]}}</text> <text :class="['title-text', {'is-mine': isMine}]">{{titleText[typeIndex]}}</text>
<text>{{tipText[typeIndex]}}</text> <text>{{tipText[typeIndex]}}</text>
</view> </view>
<u-image :class="['qrcode', {'is-mine': isMine}]" :src="cusQrcode" mode="widthFix" :fade="true" <u-image :class="['qrcode', {'is-mine': isMine}]" :src="qnFile(cusQrcode)" mode="widthFix" :fade="false">
duration="450">
<u-loading slot="loading"></u-loading> <u-loading slot="loading"></u-loading>
<view slot="error" style="font-size: 24rpx;">加载失败</view> <view slot="error" style="font-size: 24rpx;">加载失败</view>
</u-image> </u-image>
<button :class="['settle-button', {'is-mine': isMine}]" type="primary" :open-type="openTypes[typeIndex]" show-message-card <button :class="['settle-button', {'is-mine': isMine}]" type="primary" :open-type="openTypes[typeIndex]" show-message-card
send-message-title="点击下方客服会话添加订单助手" shape="circle" @click="download" :send-message-img="kefuzxiaoxiImage" send-message-title="点击下方客服会话添加订单助手" shape="circle" @click="download" :send-message-img="qnFile('kefuzxiaoxi.png')"
send-message-path="/pages/index/index"> send-message-path="/pages/index/index">
{{buttonText[typeIndex]}} {{buttonText[typeIndex]}}
</button> </button>
...@@ -45,14 +44,7 @@ ...@@ -45,14 +44,7 @@
}, },
computed: { computed: {
cusQrcode() { cusQrcode() {
let src = this.isMine ? 'erweima-rk.png' : 'dingdanzhushou-n.png'; return this.isMine ? 'erweima-rk.png' : 'dingdanzhushou-n.png';
return util.imageCache(this, src)
},
kefuzxiaoxiImage() {
return util.imageCache(this, 'kefuzxiaoxi.png')
},
minekefutuImage() {
return util.imageCache(this, this.imageName)
}, },
imageName() { imageName() {
return this.isMine ? 'kefufuwu-n.png' : 'kefutuzs.png' return this.isMine ? 'kefufuwu-n.png' : 'kefutuzs.png'
...@@ -92,6 +84,9 @@ ...@@ -92,6 +84,9 @@
} }
}, },
methods: { methods: {
qnFile(src) {
return process.uniEnv.qn_base_url + src
},
phoneToCustomer() { // 联系客户 phoneToCustomer() { // 联系客户
uni.makePhoneCall({ uni.makePhoneCall({
phoneNumber: this.phone, //仅为示例 phoneNumber: this.phone, //仅为示例
......
...@@ -5,13 +5,12 @@ ...@@ -5,13 +5,12 @@
"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue" "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
} }
}, },
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages "pages": [
{ {
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
"navigationBarTitleText": "首页", "navigationBarTitleText": "首页",
"navigationStyle": "custom", "navigationStyle": "custom",
// "enablePullDownRefresh": true,
"disableScroll": true "disableScroll": true
} }
}, },
...@@ -27,15 +26,15 @@ ...@@ -27,15 +26,15 @@
"path": "pages/index/learn", "path": "pages/index/learn",
"style": { "style": {
"navigationBarTitleText": "学习", "navigationBarTitleText": "学习",
"navigationStyle":"custom",//隐藏系统导航栏 "navigationStyle": "custom",
"disableScroll": true "disableScroll": true
} }
}, },
{ {
"path": "pages/index/mine", "path": "pages/index/mine",
"style": { "style": {
"navigationBarTitleText": "我的", "navigationBarTitleText": "我的",
"navigationStyle": "custom" , "navigationStyle": "custom",
"disableScroll": true "disableScroll": true
} }
}, },
...@@ -47,8 +46,9 @@ ...@@ -47,8 +46,9 @@
"disableScroll": true "disableScroll": true
} }
} }
], ],
"subPackages": [{ "subPackages": [
{
"root": "pages/exam", "root": "pages/exam",
"pages": [ "pages": [
{ {
...@@ -74,42 +74,42 @@ ...@@ -74,42 +74,42 @@
"path": "assessment", "path": "assessment",
"style": { "style": {
"navigationBarTitleText": "认证介绍", "navigationBarTitleText": "认证介绍",
"navigationStyle":"custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "answer", "path": "answer",
"style": { "style": {
"navigationBarTitleText": "考核认证", "navigationBarTitleText": "考核认证",
"navigationStyle":"custom" "navigationStyle": "custom"
} }
}, },
{ {
"path":"result", "path": "result",
"style":{ "style": {
"navigationBarTitleText":"", "navigationBarTitleText": "",
"navigationStyle":"custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "news-details", "path": "news-details",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
"navigationStyle":"custom" "navigationStyle": "custom"
} }
}, },
{ {
"path":"section", "path": "section",
"style" :{ "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
"navigationStyle":"custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "curriculum", "path": "curriculum",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
"navigationStyle": "custom" // 隐藏系统导航栏 "navigationStyle": "custom"
} }
}, },
{ {
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
"style": { "style": {
"navigationBarTitleText": "在线考试", "navigationBarTitleText": "在线考试",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom", // 隐藏系统导航栏 "navigationStyle": "custom",
"disableScroll": true "disableScroll": true
} }
}, },
...@@ -125,18 +125,18 @@ ...@@ -125,18 +125,18 @@
"path": "course-detail", "path": "course-detail",
"style": { "style": {
"navigationBarTitleText": "培训视频", "navigationBarTitleText": "培训视频",
"navigationBarBackgroundColor":"#F4F5F7", "navigationBarBackgroundColor": "#F4F5F7",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom", // 隐藏系统导航栏 "navigationStyle": "custom",
"disableScroll": true "disableScroll": true
} }
}, },
{ {
"path": "exam-pass", "path": "exam-pass",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" // 隐藏系统导航栏 "navigationStyle": "custom"
} }
} }
] ]
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
"style": { "style": {
"navigationBarTitleText": "收获地址", "navigationBarTitleText": "收获地址",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom", // 隐藏系统导航栏 "navigationStyle": "custom",
"disableScroll": true "disableScroll": true
} }
}, },
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
"style": { "style": {
"navigationBarTitleText": "修改地址", "navigationBarTitleText": "修改地址",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom", // 隐藏系统导航栏 "navigationStyle": "custom",
"disableScroll": true "disableScroll": true
} }
}, },
...@@ -168,8 +168,8 @@ ...@@ -168,8 +168,8 @@
"navigationBarTitleText": "我的钱包", "navigationBarTitleText": "我的钱包",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"disableScroll": true, "disableScroll": true,
"navigationStyle": "custom", // 隐藏系统导航栏 "navigationStyle": "custom",
"navigationBarBackgroundColor":"#F4F5F7" "navigationBarBackgroundColor": "#F4F5F7"
} }
}, },
{ {
...@@ -178,8 +178,8 @@ ...@@ -178,8 +178,8 @@
"navigationBarTitleText": "提现", "navigationBarTitleText": "提现",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"disableScroll": true, "disableScroll": true,
"navigationStyle": "custom", // 隐藏系统导航栏 "navigationStyle": "custom",
"navigationBarBackgroundColor":"#F4F5F7" "navigationBarBackgroundColor": "#F4F5F7"
} }
}, },
{ {
...@@ -188,8 +188,8 @@ ...@@ -188,8 +188,8 @@
"navigationBarTitleText": "收入流水", "navigationBarTitleText": "收入流水",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"disableScroll": true, "disableScroll": true,
"navigationStyle": "custom", // 隐藏系统导航栏 "navigationStyle": "custom",
"navigationBarBackgroundColor":"#F4F5F7" "navigationBarBackgroundColor": "#F4F5F7"
} }
}, },
{ {
...@@ -198,80 +198,77 @@ ...@@ -198,80 +198,77 @@
"navigationBarTitleText": "结算账单", "navigationBarTitleText": "结算账单",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"disableScroll": true, "disableScroll": true,
"navigationStyle": "custom", // 隐藏系统导航栏 "navigationStyle": "custom",
"navigationBarBackgroundColor":"#F4F5F7" "navigationBarBackgroundColor": "#F4F5F7"
} }
}, },
{ {
"path": "cert/index", "path": "cert/index",
"style": { "style": {
"navigationBarTitleText": "我的证件", "navigationBarTitleText": "我的证件",
"navigationStyle":"custom", "navigationStyle": "custom",
"disableScroll": true "disableScroll": true
} }
}, },
{ {
"path": "cert/detail", "path": "cert/detail",
"style": { "style": {
"navigationBarTitleText": "",//证件详情 "navigationBarTitleText": "证件详情",
"navigationStyle":"custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "cert/upload", "path": "cert/upload",
"style": { "style": {
"navigationBarTitleText": "",//证件上传 "navigationBarTitleText": "证件上传",
"navigationStyle":"custom" "navigationStyle": "custom"
} }
}, },
{ {
"path":"contract/index", "path": "contract/index",
"style":{ "style": {
"navigationBarTitleText":"",//我的合同 "navigationBarTitleText": "我的合同",
"navigationStyle":"custom" "navigationStyle": "custom"
} }
}, },
{ {
"path":"contract/out", "path": "contract/out",
"style":{ "style": {
"navigationBarTitleText":"" "navigationBarTitleText": ""
}
} },
}, {
{ "path": "customer/index",
"path": "customer/index", "style": {
"style": { "navigationStyle": "custom",
"navigationStyle":"custom",
"navigationBarTitleText": "联系客服", "navigationBarTitleText": "联系客服",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"disableScroll": true "disableScroll": true
} }
}, },
{ {
"path": "deposit/index", "path": "deposit/index",
"style": { "style": {
"navigationStyle":"custom", "navigationStyle": "custom",
"navigationBarTitleText": "配件押金", "navigationBarTitleText": "配件押金",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{ {
"path": "warehouse/index", "path": "warehouse/index",
"style": { "style": {
"navigationStyle":"custom", "navigationStyle": "custom",
"navigationBarTitleText": "我的仓库", "navigationBarTitleText": "我的仓库",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{
{ "path": "superLogin/index",
"path": "superLogin/index", "style": {
"style": { "navigationBarTitleText": ""
"navigationBarTitleText": "" }
}
} }
] ]
}, },
{ {
"root": "pages/order", "root": "pages/order",
...@@ -279,7 +276,7 @@ ...@@ -279,7 +276,7 @@
{ {
"path": "complete", "path": "complete",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "订单完工",
"navigationStyle": "custom", "navigationStyle": "custom",
"disableScroll": true "disableScroll": true
} }
...@@ -287,49 +284,44 @@ ...@@ -287,49 +284,44 @@
{ {
"path": "feedback", "path": "feedback",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "过程反馈",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom", // 隐藏系统导航栏 "navigationStyle": "custom",
"disableScroll": true "disableScroll": true
} }
}, },
{ {
"path": "refuse", "path": "refuse",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "订单拒单",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom", // 隐藏系统导航栏 "navigationStyle": "custom",
"disableScroll": true "disableScroll": true
} }
}, },
{ {
"path" : "detail", "path": "detail",
"style" : "style": {
{
"navigationBarTitleText": "订单详情", "navigationBarTitleText": "订单详情",
"navigationStyle": "custom", "navigationStyle": "custom",
"disableScroll": true "disableScroll": true
} }
},
}, {
{ "path": "search",
"path" : "search", "style": {
"style" : "navigationBarTitleText": "订单搜索",
{ "enablePullDownRefresh": false,
"navigationBarTitleText": "订单搜索", "navigationBarBackgroundColor": "#F4F5F7"
"enablePullDownRefresh": false, }
"navigationBarBackgroundColor":"#F4F5F7" },
} {
}, "path": "material",
{ "style": {
"path" : "material", "navigationBarTitleText": "勘察材料",
"style" : "enablePullDownRefresh": false,
{ "navigationBarBackgroundColor": "#FFFFFF"
"navigationBarTitleText": "勘察材料", }
"enablePullDownRefresh": false,
"navigationBarBackgroundColor":"#FFFFFF"
}
} }
] ]
}, },
...@@ -340,22 +332,22 @@ ...@@ -340,22 +332,22 @@
"path": "index", "path": "index",
"style": { "style": {
"navigationBarTitleText": "拍照小工具", "navigationBarTitleText": "拍照小工具",
"navigationBarBackgroundColor":"#FFFFFF", "navigationBarBackgroundColor": "#FFFFFF",
"backgroundColor":"#F4F5F7" "backgroundColor": "#F4F5F7"
} }
}, },
{ {
"path": "setting", "path": "setting",
"style": { "style": {
"navigationBarTitleText": "水印设置", "navigationBarTitleText": "水印设置",
"navigationBarBackgroundColor":"#FFFFFF", "navigationBarBackgroundColor": "#FFFFFF",
"backgroundColor":"#F4F5F7" "backgroundColor": "#F4F5F7"
} }
}, },
{ {
"path": "take", "path": "take",
"style": { "style": {
"navigationStyle":"custom", "navigationStyle": "custom",
"navigationBarTitleText": "拍照", "navigationBarTitleText": "拍照",
"navigationBarBackgroundColor": "#333333", "navigationBarBackgroundColor": "#333333",
"navigationBarTextStyle": "#FFFFFF", "navigationBarTextStyle": "#FFFFFF",
...@@ -366,18 +358,18 @@ ...@@ -366,18 +358,18 @@
"path": "preview", "path": "preview",
"style": { "style": {
"navigationBarTitleText": "照片预览", "navigationBarTitleText": "照片预览",
"navigationBarBackgroundColor":"#333333", "navigationBarBackgroundColor": "#333333",
"backgroundColor":"#FFFFFF", "backgroundColor": "#FFFFFF",
"navigationBarTextStyle":"white" "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "list", "path": "list",
"style": { "style": {
"navigationBarTitleText": "规范展示", "navigationBarTitleText": "规范展示",
"navigationBarBackgroundColor":"#FFFFFF", "navigationBarBackgroundColor": "#FFFFFF",
"backgroundColor":"#F4F5F7", "backgroundColor": "#F4F5F7",
"navigationStyle": "custom", // 隐藏系统导航栏 "navigationStyle": "custom",
"disableScroll": true "disableScroll": true
} }
} }
...@@ -390,7 +382,7 @@ ...@@ -390,7 +382,7 @@
"path": "index", "path": "index",
"style": { "style": {
"navigationBarTitleText": "入驻", "navigationBarTitleText": "入驻",
"navigationStyle": "custom", // 隐藏系统导航栏 "navigationStyle": "custom",
"disableScroll": true "disableScroll": true
} }
}, },
...@@ -436,7 +428,7 @@ ...@@ -436,7 +428,7 @@
"path": "sign-contract", "path": "sign-contract",
"style": { "style": {
"navigationBarTitleText": "签约页面", "navigationBarTitleText": "签约页面",
"navigationStyle": "custom", // 隐藏系统导航栏 "navigationStyle": "custom",
"disableScroll": true "disableScroll": true
} }
}, },
...@@ -454,7 +446,11 @@ ...@@ -454,7 +446,11 @@
"preloadRule": { "preloadRule": {
"pages/index/index": { "pages/index/index": {
"network": "all", "network": "all",
"packages": ["pages/order", "pages/learn", "pages/mine"] "packages": [
"pages/order",
"pages/learn",
"pages/mine"
]
} }
}, },
"globalStyle": { "globalStyle": {
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
</view> </view>
</scroll-view> </scroll-view>
</swiper-item> </swiper-item>
<swiper-item @touchmove.stop.prevent="stopTouchMove"> <swiper-item @touchmove.stop.prevent="stopTouchMove" v-if="version">
<scroll-view scroll-y style="height:100%;width:100%;"> <scroll-view scroll-y style="height:100%;width:100%;">
<view class="title u-margin-top-10 u-margin-bottom-30">通用课程</view> <view class="title u-margin-top-10 u-margin-bottom-30">通用课程</view>
<view class="learn-currency-class"> <view class="learn-currency-class">
...@@ -231,12 +231,12 @@ var json = { ...@@ -231,12 +231,12 @@ var json = {
sectionId: "", sectionId: "",
}, },
{ {
title: "充电桩安装要点提示", title: "学习-我的模块",
desc: "在充电装安装过程中需要着重注意的要点", desc: "学习-我的模块",
pic: process.uniEnv.qn_base_url + "cdz-3x-v2.png", pic: process.uniEnv.qn_base_url + "cdz-3x-v2.png",
percent: 0, percent: 0,
status: "", status: "",
id: 151, id: 152,
sectionId: "", sectionId: "",
}, },
], ],
...@@ -374,6 +374,9 @@ export default { ...@@ -374,6 +374,9 @@ export default {
{ {
name: "消息通知", name: "消息通知",
}, },
{
name: "在线学习",
},
{ {
name: "考核认证", name: "考核认证",
}, },
...@@ -385,9 +388,6 @@ export default { ...@@ -385,9 +388,6 @@ export default {
{ {
name: "消息通知", name: "消息通知",
}, },
{
name: "在线学习",
},
{ {
name: "考核认证", name: "考核认证",
}, },
...@@ -474,7 +474,7 @@ export default { ...@@ -474,7 +474,7 @@ export default {
isReflesh: true, isReflesh: true,
triggered: false, triggered: false,
_freshing: false, _freshing: false,
version: false, version: true,
}; };
}, },
onLoad(param) { onLoad(param) {
...@@ -512,8 +512,9 @@ export default { ...@@ -512,8 +512,9 @@ export default {
.getVersionInfo(version) .getVersionInfo(version)
.then((res) => { .then((res) => {
let data = res.data; let data = res.data;
if(data.hasOwnProperty('is_audit') && data.is_audit == 1){ if(data.hasOwnProperty('is_audit') && data.is_audit == 0){
that.tabs = that.tabs2; that.tabs = that.tabs2;
that.version = false
} }
}) })
.catch((err) => { .catch((err) => {
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<u-cell-group :border="false"> <u-cell-group :border="false">
<view v-for="(item, index) in items" :key="index"> <view v-for="(item, index) in items" :key="index">
<u-cell-item :value="item.value" :border-bottom="false" @click="handleClick(item.pathName)"> <u-cell-item :value="item.value" :border-bottom="false" @click="handleClick(item.pathName)">
<image slot="icon" :src="qnPath + item.icon" :style="item.imageStyle"></image> <image slot="icon" :src="qnFile(item.icon)" :style="item.imageStyle"></image>
<view slot="title" class="item-title">{{item.title}}</view> <view slot="title" class="item-title">{{item.title}}</view>
<view slot="value" class="item-value">{{value}}</view> <view slot="value" class="item-value">{{value}}</view>
</u-cell-item> </u-cell-item>
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
export default { export default {
data() { data() {
return { return {
qnPath: process.uniEnv.qn_base_url,
serviceTel: '18124099271', serviceTel: '18124099271',
showSuperButton: false, showSuperButton: false,
show: false, show: false,
...@@ -142,10 +141,13 @@ ...@@ -142,10 +141,13 @@
this.getData() this.getData()
} }
} }
this.wodebeijingImage = await util.imageCache(this, 'wodebeijing.png') this.wodebeijingImage = this.qnFile('wodebeijing.png')
this.placeholderImage = await util.imageCache(this, 'touxiang.png') this.placeholderImage = this.qnFile('touxiang.png')
}, },
methods: { methods: {
qnFile(src) {
return process.uniEnv.qn_base_url + src
},
getData() { getData() {
let self = this let self = this
app.getBaseInfo(self); app.getBaseInfo(self);
......
<template> <template>
<view class="learn-vedio"> <view class="learn-vedio">
<u-navbar title="培训视频"></u-navbar> <view v-if="version && loaded">
<view class="uni-padding-wrap uni-common-mt"> <u-navbar title="培训视频"></u-navbar>
<view <view class="uni-padding-wrap uni-common-mt">
><video <view><video object-fit="fill" class="course-video" id="courseVideo" :src="courseSrc" @play="playCourse"
object-fit="fill" @error="videoErrorCallback" controls></video></view>
class="course-video" <view class="title-content">
id="courseVideo" <view class="item-content">
:src="courseSrc" <view class="item-st">
@play="playCourse" <image style="width: 80rpx; height: 36rpx" :src="kcImage"></image>
@error="videoErrorCallback" <text class="item-st-text">{{ courseTitle.split(" ") ? courseTitle.split(" ")[0] : "" }}</text>
controls </view>
></video <view class="item-title">{{ courseTitle.split(" ") ? courseTitle.split(" ")[1] : "" }}</view>
></view> </view>
<view class="title-content"> <view>接单操作须知有助你快速了解充电桩安装业务,提高接单效率,请认真查看及学习。</view>
<view class="item-content"> </view>
<view class="item-st"> <view class="learn-view" v-if="courseId >= 0">
<image style="width: 80rpx; height: 36rpx" :src="kcImage"></image> <view class="learn-view-title">视频内容介绍</view>
<text class="item-st-text">{{ <view class="learn-list" v-for="(item, key) in courseOutlines[courseId]" :key="key">
courseTitle.split(" ") ? courseTitle.split(" ")[0] : "" <view class="learn-list-item">{{ item }}</view>
}}</text> </view>
</view> </view>
<view class="item-title">{{ </view>
courseTitle.split(" ") ? courseTitle.split(" ")[1] : ""
}}</view>
</view> </view>
<view <view v-else-if="loaded">
>接单操作须知有助你快速了解充电桩安装业务,提高接单效率,请认真查看及学习。</view <u-navbar title=" "></u-navbar>
> <view style="text-align: center;">暂无数据</view>
</view>
<view class="learn-view" v-if="courseId >= 0">
<view class="learn-view-title">视频内容介绍</view>
<view
class="learn-list"
v-for="(item, key) in courseOutlines[courseId]"
:key="key"
>
<view class="learn-list-item">{{ item }}</view>
</view> </view>
</view>
</view> </view>
</view>
</template> </template>
<script> <script>
let app = getApp(); let app = getApp();
export default { export default {
data() { data() {
return { return {
courseId: "", courseId: "",
courseStatus: 0, courseStatus: 0,
courseSrc: "", courseSrc: "",
courseTitle: "", courseTitle: "",
courseDesc: "", courseDesc: "",
currentIndex: -1, // 第几个视频 currentIndex: -1, // 第几个视频
}; version: true,
}, loaded: false
computed: { };
courseOutlines() { },
// 视频内容介绍 computed: {
return { courseOutlines() {
1: [ // 视频内容介绍
"1、考核规则:接单及时率", return {
"2、考核规则:上门及时率", 1: [
"3、考核规则:安装完工率", "1、考核规则:接单及时率",
"4、考核规则:资料提交及时率", "2、考核规则:上门及时率",
"5、考核规则:安装完工率", "3、考核规则:安装完工率",
"6、考核规则:客户满意度", "4、考核规则:资料提交及时率",
], "5、考核规则:安装完工率",
2: ["1、必备材料4大类", "2、施工工具准备"], "6、考核规则:客户满意度",
3: [ ],
"1、接线安装工艺标准", 2: ["1、必备材料4大类", "2、施工工具准备"],
"2、PVC、镀锌管电缆管明敷", 3: [
"3、电缆敷设的防火要求", "1、接线安装工艺标准",
"4、电源点标识", "2、PVC、镀锌管电缆管明敷",
"5、配电箱接线及安装", "3、电缆敷设的防火要求",
"6、管线敷设接头处理", "4、电源点标识",
"7、充电桩内部接线", "5、配电箱接线及安装",
"8、配电箱安装", "6、管线敷设接头处理",
], "7、充电桩内部接线",
4: ["1、勘测环节录单要求", "2、安装环节录单要求"], "8、配电箱安装",
}; ],
}, 4: ["1、勘测环节录单要求", "2、安装环节录单要求"],
kcImage() { };
return process.uniEnv.qn_base_url + "kc.png"; },
}, kcImage() {
}, return process.uniEnv.qn_base_url + "kc.png";
onLoad(e) { },
app.trackPage('入驻培训视频页') },
if (e) { onLoad(e) {
if (e.courseId) { app.trackPage('入驻培训视频页')
this.courseId = e.courseId; if (e) {
} if (e.courseId) {
if (e.id) { this.courseId = e.courseId;
this.courseId = e.courseId; }
this.courseSrc = app.globalData.service_standard[e.id].url; if (e.id) {
this.courseTitle = app.globalData.service_standard[e.id].title; this.courseId = e.courseId;
this.courseDesc = app.globalData.service_standard[e.id].desc; this.courseSrc = app.globalData.service_standard[e.id].url;
} this.courseTitle = app.globalData.service_standard[e.id].title;
this.courseDesc = app.globalData.service_standard[e.id].desc;
if (e.status) { }
this.courseStatus = e.status;
} if (e.status) {
} this.courseStatus = e.status;
}, }
onReady: function (res) {
// #ifndef MP-ALIPAY
this.videoContext = uni.createVideoContext("courseVideo");
// #endif
},
methods: {
videoErrorCallback: function (e) {
uni.showModal({
content: e.target.errMsg,
showCancel: false,
});
},
playCourse: function (e) {
if(this.courseStatus && (this.courseStatus == "1"||this.courseStatus == 1)) {
return
}
this.changeCourseStatus();
},
changeCourseStatus() {
let that = this;
if (that.courseId) {
that.$u.api
.saveCourseRate({
courseId: that.courseId,
})
.then((res) => {
if (res.code !== 200) {
uni.showToast({
icon: "none",
title: "更新课程状态失败",
});
} }
}); this.getVersion();
} else { },
uni.showToast({ onReady: function(res) {
title: "课程ID为空,请重新选择课程", // #ifndef MP-ALIPAY
}); this.videoContext = uni.createVideoContext("courseVideo");
} // #endif
}, },
}, methods: {
}; getVersion() {
let version = process.uniEnv.version_number;
let that = this;
this.$u.api
.getVersionInfo(version)
.then((res) => {
that.loaded = true
let data = res.data;
if (data.hasOwnProperty('is_audit') && data.is_audit == 0) {
that.version = false
}
})
.catch((err) => {
});
},
videoErrorCallback: function(e) {
uni.showModal({
content: e.target.errMsg,
showCancel: false,
});
},
playCourse: function(e) {
if (this.courseStatus && (this.courseStatus == "1" || this.courseStatus == 1)) {
return
}
this.changeCourseStatus();
},
changeCourseStatus() {
let that = this;
if (that.courseId) {
that.$u.api
.saveCourseRate({
courseId: that.courseId,
})
.then((res) => {
if (res.code !== 200) {
uni.showToast({
icon: "none",
title: "更新课程状态失败",
});
}
});
} else {
uni.showToast({
title: "课程ID为空,请重新选择课程",
});
}
},
},
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.learn-vedio { .learn-vedio {
background-color: #f4f5f7; background-color: #f4f5f7;
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow-y:auto; overflow-y: auto;
} }
.course-video { .course-video {
width: 750rpx; width: 750rpx;
} }
.course-title { .course-title {
font-size: 36rpx; font-size: 36rpx;
font-weight: 700; font-weight: 700;
padding: 80rpx 60rpx 40rpx 60rpx; padding: 80rpx 60rpx 40rpx 60rpx;
} }
.course-desc { .course-desc {
margin-left: 60rpx; margin-left: 60rpx;
} }
.title-content { .title-content {
padding: 40rpx 30rpx; padding: 40rpx 30rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
background-color: #ffffff; background-color: #ffffff;
color: #999999; color: #999999;
font-size: 24rpx; font-size: 24rpx;
.item-content { .item-content {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.item-st { .item-st {
width: 80rpx; width: 80rpx;
height: 36rpx; height: 36rpx;
padding-right: 2rpx; padding-right: 2rpx;
text-align: center; text-align: center;
margin-right: 20rpx; margin-right: 20rpx;
line-height: 24rpx; line-height: 24rpx;
position: relative; position: relative;
.item-st-text {
color: #ffffff; .item-st-text {
position: absolute; color: #ffffff;
font-size: 16rpx; position: absolute;
left: 20rpx; font-size: 16rpx;
top: 8rpx; left: 20rpx;
line-height: 28rpx; top: 8rpx;
line-height: 28rpx;
}
}
.item-title {
color: #333333;
font-size: 44rpx;
font-weight: bold;
}
} }
}
.item-content {
.item-title { display: flex;
color: #333333; padding-bottom: 30rpx;
font-size: 44rpx;
font-weight: bold;
}
}
.item-content {
display: flex;
padding-bottom: 30rpx;
}
.item-title {
color: #333333;
font-size: 28rpx;
}
.learn-view {
background-color: #ffffff;
border-radius: 12rpx;
padding: 38rpx 30rpx 30rpx 30rpx;
margin-bottom: 20rpx;
font-size: 32rpx;
color: #333333;
.learn-view-title {
font-size: 32rpx;
font-weight: bold;
margin-bottom: 10rpx;
}
.learn-list {
.learn-list-item {
font-size: 28rpx;
margin-top: 30rpx;
margin-bottom: 30rpx;
color: #333333;
} }
.line-view { .item-title {
background-color: #f4f5f7; color: #333333;
height: 2rpx; font-size: 28rpx;
width: 100%; }
.learn-view {
background-color: #ffffff;
border-radius: 12rpx;
padding: 38rpx 30rpx 30rpx 30rpx;
margin-bottom: 20rpx;
font-size: 32rpx;
color: #333333;
.learn-view-title {
font-size: 32rpx;
font-weight: bold;
margin-bottom: 10rpx;
}
.learn-list {
.learn-list-item {
font-size: 28rpx;
margin-top: 30rpx;
margin-bottom: 30rpx;
color: #333333;
}
.line-view {
background-color: #f4f5f7;
height: 2rpx;
width: 100%;
}
}
} }
} </style>
}
</style>
<template> <template v-cloak>
<view class=""> <view class="">
<view class="learn-vedio"> <view class="learn-vedio" v-if="version && loaded">
<u-navbar back-icon-color="#000000" :background="background" title-color="#000000" :border-bottom="false"> <u-navbar back-icon-color="#000000" :background="background" title-color="#000000" :border-bottom="false">
</u-navbar> </u-navbar>
<view class="uni-padding-wrap uni-common-mt"> <view class="uni-padding-wrap uni-common-mt">
...@@ -48,6 +48,11 @@ ...@@ -48,6 +48,11 @@
</view> </view>
</view> </view>
</view> </view>
<view v-else-if="loaded">
<u-navbar back-icon-color="#000000" :background="background" title-color="#000000" :border-bottom="false">
</u-navbar>
<view style="text-align: center;">暂无数据</view>
</view>
</view> </view>
</template> </template>
...@@ -100,7 +105,9 @@ ...@@ -100,7 +105,9 @@
scrollTop: null scrollTop: null
}, },
scrollValue: 0, scrollValue: 0,
nowTime: 0 nowTime: 0,
version: true,
loaded: false
}; };
}, },
computed: { computed: {
...@@ -109,18 +116,37 @@ ...@@ -109,18 +116,37 @@
}, },
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('学习视频详情页') this.getVersion();
this.section_id = e.section_id getApp().trackPage('学习视频详情页')
this.params.course_id = e.course_id if(e){
this.getCapterDetails() this.section_id = e.section_id
this.getSectionInfo({ this.params.course_id = e.course_id
section_id: e.section_id this.getCapterDetails()
}) this.getSectionInfo({
section_id: e.section_id
})
}
}, },
onReady: function(res) { onReady: function(res) {
this.videoContext = uni.createVideoContext("courseVideo"); this.videoContext = uni.createVideoContext("courseVideo");
}, },
methods: { methods: {
getVersion() {
let version = process.uniEnv.version_number;
let that = this;
this.$u.api
.getVersionInfo(version)
.then((res) => {
that.loaded = true
let data = res.data;
if(data.hasOwnProperty('is_audit') && data.is_audit == 0){
that.version = false
}
})
.catch((err) => {
that.loaded = true
});
},
scroll: function(e) { scroll: function(e) {
this.old.scrollTop = e.detail.scrollTop this.old.scrollTop = e.detail.scrollTop
}, },
......
<template> <template>
<view class=""> <view class="">
<w-navbar></w-navbar>
<view class="backView"> <view class="backView">
<view class="login-block" v-if="needAuth"> <view class="login-block" v-if="needAuth">
<u-image class="u-flex u-row-center logo" :src="logo" width="200" height="200"> <u-image :fade="false" class="u-flex u-row-center logo" :src="logo" width="200" height="200">
<u-loading slot="loading"></u-loading> <u-loading slot="loading"></u-loading>
<view slot="error" style="font-size: 24rpx;">加载失败</view> <view slot="error" style="font-size: 24rpx;">加载失败</view>
</u-image> </u-image>
<u-image class="u-flex u-row-center logo2" :src="logo2" width="214" height="60"> <u-image :fade="false" class="u-flex u-row-center logo2" :src="logo2" width="214" height="60">
<u-loading slot="loading"></u-loading> <u-loading slot="loading"></u-loading>
<view slot="error" style="font-size: 24rpx;">加载失败</view> <view slot="error" style="font-size: 24rpx;">加载失败</view>
</u-image> </u-image>
</view> </view>
<view class="bind-block" v-else> <view class="bind-block" v-else>
<u-image class="u-flex u-row-between logo" :src="logo" width="148" height="148"> <u-image :fade="false" class="u-flex u-row-between logo" :src="logo" width="148" height="148">
<u-loading slot="loading"></u-loading> <u-loading slot="loading"></u-loading>
<view slot="error" style="font-size: 24rpx;">加载失败</view> <view slot="error" style="font-size: 24rpx;">加载失败</view>
</u-image> </u-image>
...@@ -38,7 +39,6 @@ const app = getApp() ...@@ -38,7 +39,6 @@ const app = getApp()
export default { export default {
data() { data() {
return { return {
qnPath: process.uniEnv.qn_base_url,
needAuth: true, needAuth: true,
TimeID: -1, TimeID: -1,
loginTitle: '用户登录', loginTitle: '用户登录',
...@@ -50,10 +50,10 @@ export default { ...@@ -50,10 +50,10 @@ export default {
}, },
computed: { computed: {
logo() { logo() {
return util.imageCache(this, 'logo.png') return this.qnFile('logo.png')
}, },
logo2() { logo2() {
return util.imageCache(this, 'logo-2.png') return this.qnFile('logo-2.png')
}, },
}, },
onLoad(e) { onLoad(e) {
...@@ -67,6 +67,9 @@ export default { ...@@ -67,6 +67,9 @@ export default {
this.getCode() this.getCode()
}, },
methods: { methods: {
qnFile(src) {
return process.uniEnv.qn_base_url + src
},
async getCode() { async getCode() {
login.appLogin().then(res => { login.appLogin().then(res => {
this.code = res.code this.code = res.code
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
:border-bottom="false" title-bold></u-navbar> :border-bottom="false" title-bold></u-navbar>
<view class="wallet-content-view"> <view class="wallet-content-view">
<view class="header-view"> <view class="header-view">
<image class="header-image" :src="qianbaobeijing"></image> <image class="header-image" :src="qnFile('qianbaobeijing.png')"></image>
</view> </view>
<view class="survey-view"> <view class="survey-view">
<view class="survey-top-view"> <view class="survey-top-view">
...@@ -109,9 +109,6 @@ ...@@ -109,9 +109,6 @@
imageUrl() { imageUrl() {
return process.uniEnv.qn_base_url return process.uniEnv.qn_base_url
}, },
qianbaobeijing() {
return util.imageCache(this, 'qianbaobeijing.png')
},
buttonStyle() { buttonStyle() {
return { return {
width: "200rpx", width: "200rpx",
...@@ -139,6 +136,9 @@ ...@@ -139,6 +136,9 @@
this.loadStatement() this.loadStatement()
}, },
methods: { methods: {
qnFile(src) {
return process.uniEnv.qn_base_url + src
},
// 提现 // 提现
handleClickWithdraw() { handleClickWithdraw() {
this.$u.route({ this.$u.route({
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</view> </view>
</view> </view>
</view> </view>
<image :src="liushuibeijingImage" class="head-back-image" mode="widthFix"></image> <image :src="qnFile('liushuibeijing.png')" class="head-back-image" mode="widthFix"></image>
<view class="list-view" v-if="hasInfo"> <view class="list-view" v-if="hasInfo">
<view class="u-flex u-row-center" v-if="loading"> <view class="u-flex u-row-center" v-if="loading">
<u-gap height="20"></u-gap> <u-gap height="20"></u-gap>
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</view> </view>
</view> </view>
<view class="list-view-empty" v-else> <view class="list-view-empty" v-else>
<u-image class="empty-image" :src="banner" width="374" height="246" mode="widthFix" :fade="true" duration="450"> <u-image class="empty-image" :src="banner" width="374" height="246" mode="widthFix" :fade="false">
<u-loading slot="loading"></u-loading> <u-loading slot="loading"></u-loading>
<view slot="error" style="font-size: 24rpx;">加载失败</view> <view slot="error" style="font-size: 24rpx;">加载失败</view>
</u-image> </u-image>
...@@ -64,9 +64,6 @@ ...@@ -64,9 +64,6 @@
} }
}, },
computed: { computed: {
liushuibeijingImage() {
return util.imageCache(this, 'liushuibeijing.png')
},
imageUrl() { imageUrl() {
return process.uniEnv.qn_base_url return process.uniEnv.qn_base_url
}, },
...@@ -74,7 +71,7 @@ ...@@ -74,7 +71,7 @@
return this.loading || this.info.payableRecordExtendDtos && this.info.payableRecordExtendDtos.length return this.loading || this.info.payableRecordExtendDtos && this.info.payableRecordExtendDtos.length
}, },
banner() { banner() {
return util.imageCache(this, 'receipt.png') return this.qnFile('receipt.png')
}, },
}, },
onLoad() { onLoad() {
...@@ -82,6 +79,9 @@ ...@@ -82,6 +79,9 @@
this.loadPayRecord() this.loadPayRecord()
}, },
methods: { methods: {
qnFile(src) {
return process.uniEnv.qn_base_url + src
},
async loadPayRecord() { async loadPayRecord() {
let self = this let self = this
self.loading = true self.loading = true
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</view> </view>
</view> </view>
</view> </view>
<image :src="liushuibeijingImage" class="head-back-image" mode="widthFix"></image> <image :src="qnFile('liushuibeijing.png')" class="head-back-image" mode="widthFix"></image>
<view class="list-view" v-if="hasInfo"> <view class="list-view" v-if="hasInfo">
<view class="u-flex u-row-center" v-if="loading"> <view class="u-flex u-row-center" v-if="loading">
<u-gap height="20"></u-gap> <u-gap height="20"></u-gap>
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</view> </view>
</view> </view>
<view class="list-view-empty" v-else> <view class="list-view-empty" v-else>
<u-image class="empty-image" :src="banner" width="374" height="246" mode="widthFix" :fade="true" duration="450"> <u-image class="empty-image" :src="banner" width="374" height="246" mode="widthFix" :fade="false">
<u-loading slot="loading"></u-loading> <u-loading slot="loading"></u-loading>
<view slot="error" style="font-size: 24rpx;">加载失败</view> <view slot="error" style="font-size: 24rpx;">加载失败</view>
</u-image> </u-image>
...@@ -84,14 +84,11 @@ ...@@ -84,14 +84,11 @@
} }
}, },
liushuibeijingImage() {
return util.imageCache(this, 'liushuibeijing.png')
},
imageUrl() { imageUrl() {
return process.uniEnv.qn_base_url return process.uniEnv.qn_base_url
}, },
banner() { banner() {
return util.imageCache(this, 'receipt.png') return this.qnFile('receipt.png')
}, },
hasInfo() { hasInfo() {
return this.loading || this.data.statementList && this.data.statementList.length return this.loading || this.data.statementList && this.data.statementList.length
...@@ -101,7 +98,10 @@ ...@@ -101,7 +98,10 @@
getApp().trackPage('收入流水列表页') getApp().trackPage('收入流水列表页')
this.loadStatement() this.loadStatement()
}, },
methods: { methods: {
qnFile(src) {
return process.uniEnv.qn_base_url + src
},
bindDateChange: function(e) { bindDateChange: function(e) {
this.date = e.target.value this.date = e.target.value
this.loadStatement() this.loadStatement()
......
...@@ -38,14 +38,14 @@ const setOpenid = function (openid) { ...@@ -38,14 +38,14 @@ const setOpenid = function (openid) {
function validImages(imgurl) { function validImages(imgurl) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uni.getImageInfo({ uni.getImageInfo({
src: imgurl, src: imgurl,
success (res) { success(res) {
resolve(true) resolve(true)
}, },
fail () { fail() {
reject(false) reject(false)
} }
}) })
}) })
} }
...@@ -58,7 +58,6 @@ function validImages(imgurl) { ...@@ -58,7 +58,6 @@ function validImages(imgurl) {
const imageCache = async function (vm, src, host) { const imageCache = async function (vm, src, host) {
host = host || process.uniEnv.qn_base_url host = host || process.uniEnv.qn_base_url
let image_url = host + src let image_url = host + src
return image_url // 临时
let image_name = md5Libs.md5(image_url) let image_name = md5Libs.md5(image_url)
var arr = Object.keys(vm.vuex_cache); var arr = Object.keys(vm.vuex_cache);
const result = await validImages(vm.vuex_cache[image_name]) const result = await validImages(vm.vuex_cache[image_name])
...@@ -70,7 +69,6 @@ const imageCache = async function (vm, src, host) { ...@@ -70,7 +69,6 @@ const imageCache = async function (vm, src, host) {
url: image_url, url: image_url,
success: (res) => { success: (res) => {
if (res.statusCode === 200) { if (res.statusCode === 200) {
// call_back(res.tempFilePath)
vm.$u.vuex(`vuex_cache.${image_name}`, res.tempFilePath) vm.$u.vuex(`vuex_cache.${image_name}`, res.tempFilePath)
} }
} }
......
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