Commit 82dcab17 authored by Damon's avatar Damon
parents cce27333 60e65e6d
<template>
<view class="cus-wrap-component">
<image class="top-image" mode="widthFix" :src="minekefutuImage"></image>
<view class="content-view">
<view class="title-view" v-if="!isPop">
<text class="title-text">客服微信</text>
<text v-if="isMine">下载二维码添加官方客服微信</text>
</view>
<u-image :class="['qrcode', {'is-pop': isPop}]" :src="cusQrcode" mode="widthFix" :fade="true"
duration="450">
<u-loading slot="loading"></u-loading>
<view slot="error" style="font-size: 24rpx;">加载失败</view>
</u-image>
<view v-if="isPop" class="pop-tip-view">
<text>请务必添加该微信号,后续工单相关通知均以微信消息形式通知</text>
</view>
<u-button class="settle-button" type="primary" shape="circle" @click="download" :custom-style="buttonStyle">
点击下载
</u-button>
<view class="bottom-view" v-if="isMine">
<view class="line-view"></view>
<view class="phone-view">
<view class="phone-left-view">
<text class="phone-text">客服电话</text>
<text>{{phone}}</text>
</view>
<image class="phone-image" :src="phoneIcon" @click="phoneToCustomer">
</u-image>
</view>
</view>
<view v-else-if="isExclusive" class="tip-view">
<text>请务必添加该微信号,后续工单相关通知均以微信消息形式通知</text>
</view>
</view>
</view>
</template>
<script>
export default {
props: {
type: { // exclusive:专属; mine:我的页面客服; pop: 弹窗客服
type: String,
default: 'mine'
}
},
data() {
return {
};
},
computed: {
cusQrcode() {
return process.uniEnv.qn_base_url + 'erweima-bg.png'
},
minekefutuImage() {
return process.uniEnv.qn_base_url + this.imageName
},
imageName() {
return this.isMine ? 'kefufuwu-n.png' : 'kefutuzs.png'
},
isMine() { // exclusive:专属; mine:我的页面客服; pop: 弹窗客服
return this.type == 'mine'
},
isPop() {
return this.type == 'pop'
},
isExclusive() {
return this.type == 'exclusive'
},
phoneIcon() {
return process.uniEnv.qn_base_url + 'dianhua.png'
},
buttonStyle() {
return {
width: "300rpx",
height: "80rpx",
"font-size": "32rpx",
"font-weight": "bold",
};
},
phone() {
return '0755-81773817'
}
},
methods: {
phoneToCustomer() { // 联系客户
uni.makePhoneCall({
phoneNumber: this.phone, //仅为示例
complete() {}
});
},
download() {
let self = this
uni.downloadFile({ //获得二维码的临时地址
url: self.cusQrcode,
success: (result) => {
if (result.statusCode == 200) {
uni.saveImageToPhotosAlbum({
filePath: result.tempFilePath, //传入临时地址
success(e) {
self.$u.toast('保存成功!');
self.$emit('click')
},
fail(res) {
if (res.errMsg.indexOf('auth') != -1) {
uni.showModal({
title: '提示',
content: '获取权限失败,请到设置页面开启权限',
confirmText: '好的',
success(res) {
if (res.confirm) {
uni.openSetting({
success(res) {
console.log(res.authSetting)
}
});
}
}
})
} else if (res.errMsg) {
self.$u.toast('保存失败!');
}
},
})
}
}
})
}
}
}
</script>
<style lang="scss">
.cus-wrap-component {
background: #FFFFFF;
border-radius: 12rpx;
.top-image {
width: 100%;
}
.content-view {
padding: 30rpx;
display: flex;
flex-direction: column;
align-items: center;
.title-view {
font-size: 24rpx;
color: #666666;
width: 100%;
margin-top: 10rpx;
display: flex;
align-items: flex-end;
.title-text {
font-weight: bold;
font-size: 32rpx;
color: #333333;
margin-right: 30rpx;
}
}
.qrcode {
margin-top: 60rpx;
margin-bottom: 60rpx;
width: 400rpx;
height: 400rpx;
&.is-pop {
width: 248rpx;
height: 248rpx;
padding: 24rpx;
border: 6rpx solid #2272FF;
border-radius: 32rpx;
margin-top: 10rpx;
margin-bottom: 40rpx;
}
}
.desc {
margin-top: 40rpx;
font-size: 24rpx;
font-weight: 400;
color: #666666;
line-height: 24rpx;
}
.bottom-view {
width: 100%;
.line-view {
background-color: #F4F5F7;
height: 2rpx;
width: 100%;
margin-top: 46rpx;
}
.phone-view {
display: flex;
align-items: center;
width: 100%;
justify-content: space-between;
padding: 40rpx 0 30rpx 0;
.phone-left-view {
display: flex;
align-items: center;
color: #999999;
font-size: 26rpx;
.phone-text {
color: #333333;
font-size: 32rpx;
font-weight: bold;
margin-right: 40rpx;
}
}
.phone-image {
width: 84rpx;
height: 56rpx;
}
}
}
.settle-button {
margin-bottom: 14rpx;
}
.pop-tip-view {
text-align: center;
color: #333333;
font-size: 28rpx;
margin: 0rpx 60rpx 40rpx 60rpx;
}
.tip-view {
margin: 46rpx 60rpx 50rpx 60rpx;
text-align: center;
color: #333333;
font-size: 28rpx;
}
}
}
</style>
...@@ -291,7 +291,6 @@ ...@@ -291,7 +291,6 @@
{ {
"navigationBarTitleText": "订单详情", "navigationBarTitleText": "订单详情",
"navigationStyle": "custom", "navigationStyle": "custom",
"navigationStyle": "custom", // 隐藏系统导航栏
"disableScroll": true "disableScroll": true
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
refresher-background="#F4F5F7" @refresherpulling="triggered = true" @refresherrefresh="onRefresh" refresher-background="#F4F5F7" @refresherpulling="triggered = true" @refresherrefresh="onRefresh"
@refresherrestore="onRestore" @refresherabort="onAbort" enable-back-to-top> @refresherrestore="onRestore" @refresherabort="onAbort" enable-back-to-top>
<TabBarPage title="充电桩自营平台"> <TabBarPage title="充电桩自营平台">
<image class="banner-image" :src="bannerImage"></image> <image class="banner-image" :src="bannerImage" @click="handleClickBanner"></image>
<view class="msg-view"> <view class="msg-view">
<view class="msg-title">最新消息</view> <view class="msg-title">最新消息</view>
...@@ -67,6 +67,12 @@ ...@@ -67,6 +67,12 @@
<view class="bottom-line-view"></view> <view class="bottom-line-view"></view>
</view> </view>
</TabBarPage> </TabBarPage>
<u-popup border-radius="12" v-model="visible" safe-area-inset-bottom mode="center" width="690rpx" closeable
:mask-close-able="false" close-icon-color="#FFFFFF">
<view class="order-pop-view">
<Customer type="pop" @click="handleDownload"></Customer>
</view>
</u-popup>
</scroll-view> </scroll-view>
</template> </template>
...@@ -76,12 +82,14 @@ ...@@ -76,12 +82,14 @@
import NoOrder from "@/components/order/noOrder.vue" import NoOrder from "@/components/order/noOrder.vue"
const app = getApp(); const app = getApp();
import OrderCell from "@/components/order/index.vue"; import OrderCell from "@/components/order/index.vue";
import Customer from "@/components/mine/customer.vue"
export default { export default {
components: { components: {
OrderCell, OrderCell,
TabBarPage, TabBarPage,
NoOrder NoOrder,
Customer
}, },
data() { data() {
return { return {
...@@ -104,6 +112,7 @@ ...@@ -104,6 +112,7 @@
waitInit: false, // 当token为空时,等待自动登录结束 waitInit: false, // 当token为空时,等待自动登录结束
triggered: false, triggered: false,
_freshing: false, _freshing: false,
visible: false,
}; };
}, },
watch: { watch: {
...@@ -138,13 +147,16 @@ ...@@ -138,13 +147,16 @@
return process.uniEnv.qn_base_url + 'weiruzhu.png' return process.uniEnv.qn_base_url + 'weiruzhu.png'
}, },
}, },
onLoad() { onLoad(e) {
this._freshing = false; this._freshing = false;
if(this.vuex_token) { if(this.vuex_token) {
this.getOrderCount() this.getOrderCount()
} else { } else {
this.waitInit = true this.waitInit = true
} }
if (e && e.visible) {
this.visible = e.visible
}
}, },
onShow() { onShow() {
// 每次进入页面都刷新入驻状态 // 每次进入页面都刷新入驻状态
...@@ -383,6 +395,14 @@ ...@@ -383,6 +395,14 @@
res.eventChannel.emit('acceptDataFromLearn', item) res.eventChannel.emit('acceptDataFromLearn', item)
} }
}); });
},
handleClickBanner() {
uni.navigateTo({
url: "/pages/mine/customer/index" + '?type=exclusive',
});
},
handleDownload() {
this.visible = false
} }
}, },
}; };
......
...@@ -4,8 +4,7 @@ ...@@ -4,8 +4,7 @@
<text class="title-view">学习</text> <text class="title-view">学习</text>
</u-navbar> </u-navbar>
<image :src="bannerImage" mode="" class="banner"></image> <image :src="bannerImage" mode="" class="banner"></image>
<u-tabs-swiper bg-color="#F4F5F7" inactive-color="#999999" font-size="28" ref="uTabs" :list="tabs" <u-tabs-swiper bg-color="#F4F5F7" inactive-color="#999999" font-size="28" ref="uTabs" :list="tabs" :current="current" @change="tabsChange" :is-scroll="false" :bar-width="52" swiperWidth="750"></u-tabs-swiper>
:current="current" @change="tabsChange" :is-scroll="false" :bar-width="52" swiperWidth="750"></u-tabs-swiper>
<swiper class="swiper_group" :current="swiperCurrent" @animationfinish="animationfinish"> <swiper class="swiper_group" :current="swiperCurrent" @animationfinish="animationfinish">
<swiper-item @touchmove.stop.prevent="stopTouchMove" v-show="current == 0"> <swiper-item @touchmove.stop.prevent="stopTouchMove" v-show="current == 0">
<scroll-view scroll-y style="height:100%;width:100%;"> <scroll-view scroll-y style="height:100%;width:100%;">
...@@ -23,10 +22,7 @@ ...@@ -23,10 +22,7 @@
</scroll-view> </scroll-view>
</swiper-item> </swiper-item>
<swiper-item @touchmove.stop.prevent="stopTouchMove" v-show="current == 1"> <swiper-item @touchmove.stop.prevent="stopTouchMove" v-show="current == 1">
<scroll-view scroll-y style="height:100%;width:100%;" @scrolltolower="onReachBottom" <scroll-view scroll-y style="height:100%;width:100%;" @scrolltolower="onReachBottom" scroll-y="true" refresher-enabled="true" :refresher-triggered="triggered" :refresher-threshold="100" @refresherpulling="onPulling" @refresherrefresh="onRefresh" @refresherrestore="onRestore" @refresherabort="onAbort">
scroll-y="true" refresher-enabled="true" :refresher-triggered="triggered"
:refresher-threshold="100" @refresherpulling="onPulling" @refresherrefresh="onRefresh"
@refresherrestore="onRestore" @refresherabort="onAbort">
<view v-for="item in list" :key="item.id" class="notice" @click="bbb(item)"> <view v-for="item in list" :key="item.id" class="notice" @click="bbb(item)">
<view class="n-head"> <view class="n-head">
{{item.title}} {{item.title}}
...@@ -61,11 +57,9 @@ ...@@ -61,11 +57,9 @@
</view> </view>
</view> </view>
<view class="line-percent u-margin-top-35"> <view class="line-percent u-margin-top-35">
<u-line-progress active-color="#2979ff" :percent="courselist[0].percent" <u-line-progress active-color="#2979ff" :percent="courselist[0].percent" :show-percent="false">
:show-percent="false">
</u-line-progress> </u-line-progress>
<text class="font-default-color" :class="{'font-active-color':courselist[0].percent}" <text class="font-default-color" :class="{'font-active-color':courselist[0].percent}" v-text="courselist[0].status"></text>
v-text="courselist[0].status"></text>
</view> </view>
</view> </view>
<view class="learn-class1 u-margin-left-30" @click="goPlay(courselist[1])"> <view class="learn-class1 u-margin-left-30" @click="goPlay(courselist[1])">
...@@ -80,11 +74,9 @@ ...@@ -80,11 +74,9 @@
</view> </view>
</view> </view>
<view class="line-percent u-margin-top-35"> <view class="line-percent u-margin-top-35">
<u-line-progress active-color="#2979ff" :percent="courselist[1].percent" <u-line-progress active-color="#2979ff" :percent="courselist[1].percent" :show-percent="false">
:show-percent="false">
</u-line-progress> </u-line-progress>
<text class="font-default-color" :class="{'font-active-color':courselist[1].percent}" <text class="font-default-color" :class="{'font-active-color':courselist[1].percent}" v-text="courselist[1].status"></text>
v-text="courselist[1].status"></text>
</view> </view>
</view> </view>
</view> </view>
...@@ -101,13 +93,10 @@ ...@@ -101,13 +93,10 @@
{{ courselist[2].desc }} {{ courselist[2].desc }}
</view> </view>
</view> </view>
<view class="line-percent u-margin-top-35" <view class="line-percent u-margin-top-35" style="display:flex;justify-content: space-between;">
style="display:flex;justify-content: space-between;"> <u-line-progress active-color="#2979ff" :percent="courselist[2].percent" :show-percent="false">
<u-line-progress active-color="#2979ff" :percent="courselist[2].percent"
:show-percent="false">
</u-line-progress> </u-line-progress>
<text class="font-default-color" :class="{'font-active-color':courselist[2].percent}" <text class="font-default-color" :class="{'font-active-color':courselist[2].percent}" v-text="courselist[2].status"></text>
v-text="courselist[2].status"></text>
</view> </view>
</view> </view>
</view> </view>
...@@ -128,8 +117,7 @@ ...@@ -128,8 +117,7 @@
</view> </view>
<view class="u-font-24" style="display:flex;justify-content: space-between;"> <view class="u-font-24" style="display:flex;justify-content: space-between;">
<text class="font-color-999999">{{ examList[0].condition }}</text> <text class="font-color-999999">{{ examList[0].condition }}</text>
<text class="font-default-exam-color" <text class="font-default-exam-color" :class="{'font-active-color':examList[0].isComplete}">
:class="{'font-active-color':examList[0].isComplete}">
{{ examList[0].status }} {{ examList[0].status }}
</text> </text>
</view> </view>
...@@ -146,8 +134,7 @@ ...@@ -146,8 +134,7 @@
</view> </view>
<view class="u-font-24" style="display:flex;justify-content: space-between;"> <view class="u-font-24" style="display:flex;justify-content: space-between;">
<text class="font-color-999999">{{ examList[1].condition }}</text> <text class="font-color-999999">{{ examList[1].condition }}</text>
<text class="font-default-exam-color" <text class="font-default-exam-color" :class="{'font-active-color':examList[1].isComplete}">
:class="{'font-active-color':examList[1].isComplete}">
{{ examList[1].status }}</text> {{ examList[1].status }}</text>
</view> </view>
</view> </view>
...@@ -160,169 +147,176 @@ ...@@ -160,169 +147,176 @@
</template> </template>
<script> <script>
var json = { var json = {
"dev": [{ dev: [
"title": "服务规范", {
"desc": "为用户提供更好服务,自己赚更多钱", title: "服务规范",
"pic": process.uniEnv.qn_base_url + "fwgf-3x.png", desc: "为用户提供更好服务,自己赚更多钱",
"percent": 0, pic: process.uniEnv.qn_base_url + "fwgf-3x.png",
"status": "", percent: 0,
"id": 173, status: "",
"sectionId": "" id: 173,
sectionId: "",
}, },
{ {
"title": "接单规范", title: "接单规范",
"desc": "快速学习,使用APP 接单、抢单", desc: "快速学习,使用APP 接单、抢单",
"pic": process.uniEnv.qn_base_url + "jdgf-3x.png", pic: process.uniEnv.qn_base_url + "jdgf-3x.png",
"percent": 0, percent: 0,
"status": "", status: "",
"id": 173, id: 173,
"sectionId": "" sectionId: "",
}, },
{ {
"title": "从0-1学习充电桩安装服务", title: "从0-1学习充电桩安装服务",
"desc": "让你全面了解充电桩市场及服务规范", desc: "让你全面了解充电桩市场及服务规范",
"pic": process.uniEnv.qn_base_url + "cdz-3x.png", pic: process.uniEnv.qn_base_url + "cdz-3x.png",
"percent": 0, percent: 0,
"status": "", status: "",
"id": 173, id: 173,
"sectionId": "" sectionId: "",
} },
], ],
"test": [{ test: [
"title": "服务规范", {
"desc": "为用户提供更好服务,自己赚更多钱", title: "服务规范",
"pic": process.uniEnv.qn_base_url + "fwgf-3x.png", desc: "为用户提供更好服务,自己赚更多钱",
"percent": 0, pic: process.uniEnv.qn_base_url + "fwgf-3x.png",
"status": "", percent: 0,
"id": 150, status: "",
"sectionId": "" id: 150,
sectionId: "",
}, },
{ {
"title": "接单规范", title: "接单规范",
"desc": "快速学习,使用APP 接单、抢单", desc: "快速学习,使用APP 接单、抢单",
"pic": process.uniEnv.qn_base_url + "jdgf-3x.png", pic: process.uniEnv.qn_base_url + "jdgf-3x.png",
"percent": 0, percent: 0,
"status": "", status: "",
"id": 149, id: 149,
"sectionId": "" sectionId: "",
}, },
{ {
"title": "从0-1学习充电桩安装服务", title: "从0-1学习充电桩安装服务",
"desc": "让你全面了解充电桩市场及服务规范", desc: "让你全面了解充电桩市场及服务规范",
"pic": process.uniEnv.qn_base_url + "cdz-3x.png", pic: process.uniEnv.qn_base_url + "cdz-3x.png",
"percent": 0, percent: 0,
"status": "", status: "",
"id": 151, id: 151,
"sectionId": "" sectionId: "",
} },
], ],
"prod": [{ prod: [
"title": "服务规范", {
"desc": "为用户提供更好服务,自己赚更多钱", title: "服务规范",
"pic": process.uniEnv.qn_base_url + "fwgf-3x.png", desc: "为用户提供更好服务,自己赚更多钱",
"percent": 0, pic: process.uniEnv.qn_base_url + "fwgf-3x.png",
"status": "", percent: 0,
"sectionId": "" status: "",
sectionId: "",
}, },
{ {
"title": "接单规范", title: "接单规范",
"desc": "快速学习,使用APP 接单、抢单", desc: "快速学习,使用APP 接单、抢单",
"pic": process.uniEnv.qn_base_url + "jdgf-3x.png", pic: process.uniEnv.qn_base_url + "jdgf-3x.png",
"percent": 0, percent: 0,
"status": "", status: "",
"sectionId": "" sectionId: "",
}, },
{ {
"title": "从0-1学习充电桩安装服务", title: "从0-1学习充电桩安装服务",
"desc": "让你全面了解充电桩市场及服务规范", desc: "让你全面了解充电桩市场及服务规范",
"pic": process.uniEnv.qn_base_url + "cdz-3x.png", pic: process.uniEnv.qn_base_url + "cdz-3x.png",
"percent": 0, percent: 0,
"status": "", status: "",
"sectionId": "" sectionId: "",
} },
] ],
} };
var examJson = { var examJson = {
"dev": [{ dev: [
title: '服务规范', {
desc: '通过本认证,是接单的必要条件', title: "服务规范",
condition: '随机20题,及格20题', desc: "通过本认证,是接单的必要条件",
status: '', condition: "随机20题,及格20题",
status: "",
pic: process.uniEnv.qn_base_url + "fwgf-3x.png", pic: process.uniEnv.qn_base_url + "fwgf-3x.png",
id: 2, id: 2,
examId: '', examId: "",
examStatus: '', examStatus: "",
isComplete: false isComplete: false,
}, },
{ {
title: '接单操作', title: "接单操作",
desc: '快速认证,是否具备接单操作能力', desc: "快速认证,是否具备接单操作能力",
condition: '随机20题,及格16题', condition: "随机20题,及格16题",
status: '', status: "",
pic: process.uniEnv.qn_base_url + "jdgf-e-3x.png", pic: process.uniEnv.qn_base_url + "jdgf-e-3x.png",
id: 2, id: 2,
examId: '', examId: "",
examStatus: '', examStatus: "",
isComplete: false isComplete: false,
} },
], ],
"test": [{ test: [
title: '服务规范', {
desc: '通过本认证,是接单的必要条件', title: "服务规范",
condition: '随机10题,及格10题', desc: "通过本认证,是接单的必要条件",
status: '', condition: "随机10题,及格10题",
status: "",
pic: process.uniEnv.qn_base_url + "fwgf-e-3x.png", pic: process.uniEnv.qn_base_url + "fwgf-e-3x.png",
id: 3, id: 3,
examId: '', examId: "",
examStatus: '', examStatus: "",
isComplete: false isComplete: false,
}, },
{ {
title: '交付规范', title: "交付规范",
desc: '快速认证,是否具备接单操作能力', desc: "快速认证,是否具备接单操作能力",
condition: '随机4题,及格4题', condition: "随机5题,及格5题",
status: '', status: "",
pic: process.uniEnv.qn_base_url + "jdgf-e-3x.png", pic: process.uniEnv.qn_base_url + "jdgf-e-3x.png",
id: 4, id: 4,
examId: '', examId: "",
examStatus: '', examStatus: "",
isComplete: false isComplete: false,
} },
], ],
"prod": [{ prod: [
title: '服务规范', {
desc: '通过本认证,是接单的必要条件', title: "服务规范",
condition: '随机20题,及格20题', desc: "通过本认证,是接单的必要条件",
status: '', condition: "随机20题,及格20题",
status: "",
pic: process.uniEnv.qn_base_url + "fwgf-e-3x.png", pic: process.uniEnv.qn_base_url + "fwgf-e-3x.png",
id: 3, id: 3,
examId: '', examId: "",
examStatus: '', examStatus: "",
isComplete: false isComplete: false,
}, },
{ {
title: '接单操作', title: "接单操作",
desc: '快速认证,是否具备接单操作能力', desc: "快速认证,是否具备接单操作能力",
condition: '随机20题,及格16题', condition: "随机20题,及格16题",
status: '', status: "",
pic: process.uniEnv.qn_base_url + "jdgf-e-3x.png", pic: process.uniEnv.qn_base_url + "jdgf-e-3x.png",
id: 4, id: 4,
examId: '', examId: "",
examStatus: '', examStatus: "",
isComplete: false isComplete: false,
} },
] ],
} };
let env = process.uniEnv.node_env; let env = process.uniEnv.node_env;
let courseListJson = json.[env]; let courseListJson = json[env];
let examListJson = examJson[env]; let examListJson = examJson[env];
export default { export default {
data() { data() {
return { return {
tabs: [{ tabs: [
{
name: "交付规范", name: "交付规范",
}, },
{ {
...@@ -343,16 +337,17 @@ ...@@ -343,16 +337,17 @@
}, },
list: [], list: [],
rule: { rule: {
pic: process.uniEnv.qn_base_url + "guifan@3x.png" pic: process.uniEnv.qn_base_url + "guifan@3x.png",
}, },
courselist: [{ courselist: [
{
title: courseListJson[0].title, title: courseListJson[0].title,
desc: courseListJson[0].desc, desc: courseListJson[0].desc,
percent: courseListJson[0].percent, percent: courseListJson[0].percent,
status: courseListJson[0].status, status: courseListJson[0].status,
pic: courseListJson[0].pic, pic: courseListJson[0].pic,
id: courseListJson[0].id, id: courseListJson[0].id,
sectionId: courseListJson[0].sectionId sectionId: courseListJson[0].sectionId,
}, },
{ {
title: courseListJson[1].title, title: courseListJson[1].title,
...@@ -361,7 +356,7 @@ ...@@ -361,7 +356,7 @@
status: courseListJson[1].status, status: courseListJson[1].status,
pic: courseListJson[1].pic, pic: courseListJson[1].pic,
id: courseListJson[1].id, id: courseListJson[1].id,
sectionId: courseListJson[1].sectionId sectionId: courseListJson[1].sectionId,
}, },
{ {
title: courseListJson[2].title, title: courseListJson[2].title,
...@@ -371,9 +366,10 @@ ...@@ -371,9 +366,10 @@
pic: courseListJson[2].pic, pic: courseListJson[2].pic,
id: courseListJson[2].id, id: courseListJson[2].id,
sectionId: courseListJson[2].sectionId, sectionId: courseListJson[2].sectionId,
} },
], ],
examList: [{ examList: [
{
title: examListJson[0].title, title: examListJson[0].title,
desc: examListJson[0].desc, desc: examListJson[0].desc,
condition: examListJson[0].condition, condition: examListJson[0].condition,
...@@ -382,7 +378,7 @@ ...@@ -382,7 +378,7 @@
id: examListJson[0].id, id: examListJson[0].id,
examId: examListJson[0].examId, examId: examListJson[0].examId,
examStatus: examListJson[0].examStatus, examStatus: examListJson[0].examStatus,
isComplete: examListJson[0].isComplete isComplete: examListJson[0].isComplete,
}, },
{ {
title: examListJson[1].title, title: examListJson[1].title,
...@@ -393,8 +389,8 @@ ...@@ -393,8 +389,8 @@
id: examListJson[1].id, id: examListJson[1].id,
examId: examListJson[1].examId, examId: examListJson[1].examId,
examStatus: examListJson[1].examStatus, examStatus: examListJson[1].examStatus,
isComplete: examListJson[1].isComplete isComplete: examListJson[1].isComplete,
} },
], ],
loadStatus: "loading", loadStatus: "loading",
isLoadMore: false, isLoadMore: false,
...@@ -403,7 +399,7 @@ ...@@ -403,7 +399,7 @@
isReflesh: true, isReflesh: true,
triggered: false, triggered: false,
_freshing: false, _freshing: false,
} };
}, },
onLoad(param) { onLoad(param) {
var that = this; var that = this;
...@@ -419,21 +415,21 @@ ...@@ -419,21 +415,21 @@
return process.uniEnv.qn_base_url + "banner-xx@3x.png"; return process.uniEnv.qn_base_url + "banner-xx@3x.png";
}, },
}, },
onShow: function(param) { onShow: function (param) {
if(this.current == 2 || this.current == 3){ if (this.current == 2 || this.current == 3) {
this.tabsChange(this.current); this.tabsChange(this.current);
} }
}, },
methods: { methods: {
stopPull() { stopPull() {
let that = this; let that = this;
setTimeout(function(){ setTimeout(function () {
that.triggered = false; that.triggered = false;
that._freshing = false; that._freshing = false;
}, 1000) }, 1000);
}, },
onPulling(e) { onPulling(e) {
return true return true;
console.log("onpulling", e); console.log("onpulling", e);
}, },
onRefresh() { onRefresh() {
...@@ -445,7 +441,7 @@ ...@@ -445,7 +441,7 @@
this.loadNews(); this.loadNews();
}, },
onRestore() { onRestore() {
this.triggered = 'restore'; // 需要重置 this.triggered = "restore"; // 需要重置
console.log("onRestore"); console.log("onRestore");
}, },
onAbort() { onAbort() {
...@@ -471,7 +467,7 @@ ...@@ -471,7 +467,7 @@
.getTrainingNoticeList(this.params) .getTrainingNoticeList(this.params)
.then((res) => { .then((res) => {
that.stopPull(); that.stopPull();
if(res.code != 200){ if (res.code != 200) {
uni.showToast({ uni.showToast({
title: res.message, title: res.message,
icon: "none", icon: "none",
...@@ -484,14 +480,16 @@ ...@@ -484,14 +480,16 @@
if (res.data) { if (res.data) {
let length = res.data.length; let length = res.data.length;
for (let i = 0; i < length; i++) { for (let i = 0; i < length; i++) {
res.data[i].create_at = this.timeFormat(res.data[i].create_at, res.data[i].create_at = this.timeFormat(
'yyyy.MM.dd hh:mm'); res.data[i].create_at,
"yyyy.MM.dd hh:mm"
);
} }
that.list = that.list.concat(res.data); that.list = that.list.concat(res.data);
} }
if(res.data.length >= 5){ if (res.data.length >= 5) {
that.isLoadMore = false; that.isLoadMore = false;
}else{ } else {
that.isLoadMore = true; that.isLoadMore = true;
that.loadStatus = "nomore"; that.loadStatus = "nomore";
} }
...@@ -509,31 +507,34 @@ ...@@ -509,31 +507,34 @@
}, },
timeFormat(time, format, fromMysql = true) { timeFormat(time, format, fromMysql = true) {
let rate = fromMysql ? 1000 : 1; let rate = fromMysql ? 1000 : 1;
let dataFmt = format || 'yyyy-MM-dd hh:mm:ss' // 需要格式化的规则 let dataFmt = format || "yyyy-MM-dd hh:mm:ss"; // 需要格式化的规则
time = typeof(time) == 'number' ? time : new Date(time * rate) // 处理传入的time time = typeof time == "number" ? time : new Date(time * rate); // 处理传入的time
let fmt = { let fmt = {
'y+': time.getFullYear(), // 年份 "y+": time.getFullYear(), // 年份
'M+': time.getMonth() + 1, // 月份 "M+": time.getMonth() + 1, // 月份
'd+': time.getDate(), // 日 "d+": time.getDate(), // 日
'h+': time.getHours(), // 小时 "h+": time.getHours(), // 小时
'm+': time.getMinutes(), // 分钟 "m+": time.getMinutes(), // 分钟
's+': time.getSeconds() // 秒 "s+": time.getSeconds(), // 秒
} };
for (let i in fmt) { for (let i in fmt) {
if (new RegExp('(' + i + ')').test(dataFmt)) { if (new RegExp("(" + i + ")").test(dataFmt)) {
dataFmt = dataFmt.replace(RegExp.$1, fmt[i].toString().length <= 1 ? '0' + fmt[i] : fmt[i]) dataFmt = dataFmt.replace(
RegExp.$1,
fmt[i].toString().length <= 1 ? "0" + fmt[i] : fmt[i]
);
} }
} }
return dataFmt; return dataFmt;
}, },
getTypeName(percent) { getTypeName(percent) {
if (percent == 0) { if (percent == 0) {
return '未开始'; return "未开始";
} else if (percent == '100') { } else if (percent == "100") {
return '已完成'; return "已完成";
} else { } else {
return '继续'; return "继续";
} }
}, },
//在线学习通用课程信息 //在线学习通用课程信息
...@@ -541,7 +542,7 @@ ...@@ -541,7 +542,7 @@
let courseLength = this.courselist.length; let courseLength = this.courselist.length;
for (let i = 0; i < courseLength; i++) { for (let i = 0; i < courseLength; i++) {
let param = { let param = {
course_id: this.courselist[i].id course_id: this.courselist[i].id,
}; };
this.$u.api this.$u.api
.CourseList(param) .CourseList(param)
...@@ -554,9 +555,13 @@ ...@@ -554,9 +555,13 @@
} }
if (res.data) { if (res.data) {
res.data.learnedInfo.learnPercent *= 100; res.data.learnedInfo.learnPercent *= 100;
this.courselist[i].status = this.getTypeName(res.data.learnedInfo.learnPercent); this.courselist[i].status = this.getTypeName(
this.courselist[i].percent = res.data.learnedInfo.learnPercent; res.data.learnedInfo.learnPercent
this.courselist[i].sectionId = res.data.learnedInfo.nextLearnedSectionId; );
this.courselist[i].percent =
res.data.learnedInfo.learnPercent;
this.courselist[i].sectionId =
res.data.learnedInfo.nextLearnedSectionId;
} }
}) })
.catch((err) => { .catch((err) => {
...@@ -572,7 +577,7 @@ ...@@ -572,7 +577,7 @@
this.swiperCurrent = index; this.swiperCurrent = index;
switch (index) { switch (index) {
case 1: case 1:
this.loadNews() this.loadNews();
break; break;
case 2: case 2:
this.getCourseList(); this.getCourseList();
...@@ -621,17 +626,18 @@ ...@@ -621,17 +626,18 @@
this.$u.api this.$u.api
.getExamResult(examId) .getExamResult(examId)
.then((res) => { .then((res) => {
if(res.code != 200){ if (res.code != 200) {
console.log('getUserExamInfo 200 err'); console.log("getUserExamInfo 200 err");
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
title: '获取考试信息失败', title: "获取考试信息失败",
}); });
} }
this.examList[i].examId = res.data.id; this.examList[i].examId = res.data.id;
this.examList[i].examStatus = res.data.examStatus; //i;// this.examList[i].examStatus = res.data.examStatus; //i;//
let examResult = res.data.examLevelResult; let examResult = res.data.examLevelResult;
this.examList[i].status = examResult != '' ? examResult : '未通过'; this.examList[i].status =
examResult != "" ? examResult : "未通过";
// examStatus 用户考试状态 0考试中 1考试完成 2未参与 // examStatus 用户考试状态 0考试中 1考试完成 2未参与
that.exam = res.data; that.exam = res.data;
console.log(that.exam); console.log(that.exam);
...@@ -641,7 +647,8 @@ ...@@ -641,7 +647,8 @@
} }
if (res.data.examStatus == 1) { if (res.data.examStatus == 1) {
console.log("examStatus " + i + " 1"); console.log("examStatus " + i + " 1");
that.examList[i].isComplete = this.examList[i].status == '通过'; that.examList[i].isComplete =
this.examList[i].status == "通过";
that.examScore = res.data.examScore; that.examScore = res.data.examScore;
return; return;
} }
...@@ -651,7 +658,7 @@ ...@@ -651,7 +658,7 @@
} }
}) })
.catch((err) => { .catch((err) => {
console.log('getUserExamInfo err' + err); console.log("getUserExamInfo err" + err);
uni.hideLoading(); uni.hideLoading();
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
...@@ -673,13 +680,19 @@ ...@@ -673,13 +680,19 @@
}); });
} else if (examInfo.examStatus == 1) { } else if (examInfo.examStatus == 1) {
// examInfo.status = '通过'; // examInfo.status = '通过';
if (examInfo.status == '通过') { if (examInfo.status == "已通过") {
wx.navigateTo({ wx.navigateTo({
url: "/pages/learn/exam-pass?userExamId=" + examInfo.examId, url:
"/pages/learn/exam-pass?userExamId=" +
examInfo.examId,
}); });
} else { } else {
wx.navigateTo({ wx.navigateTo({
url: "/pages/learn/result?userExamId=" + examInfo.examId + "&examId=" + examInfo.id, url:
"/pages/learn/result?userExamId=" +
examInfo.examId +
"&examId=" +
examInfo.id,
}); });
} }
} else if (examInfo.examStatus == 2) { } else if (examInfo.examStatus == 2) {
...@@ -691,47 +704,51 @@ ...@@ -691,47 +704,51 @@
//跳转到播放 //跳转到播放
goPlay(info) { goPlay(info) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/learn/section?section_id=" + info.sectionId + "&course_id=" + info.id, url:
"/pages/learn/section?section_id=" +
info.sectionId +
"&course_id=" +
info.id,
}); });
}, },
//跳转到 //跳转到
bbb(e) { bbb(e) {
var news = { var news = {
body: e.body, body: e.body,
title: e.title title: e.title,
}; };
let that = this; let that = this;
wx.navigateTo({ wx.navigateTo({
url: '/pages/learn/news-details', url: "/pages/learn/news-details",
success: function(res) { success: function (res) {
res.eventChannel.emit('acceptDataFromLearn', news) res.eventChannel.emit("acceptDataFromLearn", news);
} },
}); });
}, },
}, },
}; };
</script> </script>
<style> <style>
.study { .study {
height: 100vh; height: 100vh;
background-color: #f4f5f7; background-color: #f4f5f7;
padding: 0rpx 30rpx 0 30rpx; padding: 0rpx 30rpx 0 30rpx;
} }
.title-view { .title-view {
color: #333333; color: #333333;
font-weight: bold; font-weight: bold;
font-size: 40rpx; font-size: 40rpx;
} }
.banner { .banner {
width: 690rpx; width: 690rpx;
height: 240rpx; height: 240rpx;
margin-top: 10rpx; margin-top: 10rpx;
} }
/* 交付规范 */ /* 交付规范 */
.standard { .standard {
width: 690rpx; width: 690rpx;
height: 180rpx; height: 180rpx;
display: flex; display: flex;
...@@ -742,11 +759,11 @@ ...@@ -742,11 +759,11 @@
border-radius: 12rpx; border-radius: 12rpx;
padding: 30rpx; padding: 30rpx;
margin-top: 30rpx; margin-top: 30rpx;
background-color: #FFFFFF; background-color: #ffffff;
} }
/* 培训通知 */ /* 培训通知 */
.notice { .notice {
/* border: #808080 solid 2rpx; */ /* border: #808080 solid 2rpx; */
width: 100%; width: 100%;
min-height: 370rpx; min-height: 370rpx;
...@@ -755,16 +772,16 @@ ...@@ -755,16 +772,16 @@
background-color: #ffffff; background-color: #ffffff;
border-radius: 12rpx; border-radius: 12rpx;
padding: 30rpx; padding: 30rpx;
} }
.n-head { .n-head {
text-align: left; text-align: left;
font-size: 32rpx; font-size: 32rpx;
font-weight: bold; font-weight: bold;
color: #333333; color: #333333;
} }
.news { .news {
height: 168rpx; height: 168rpx;
overflow: hidden; overflow: hidden;
margin-top: 30rpx; margin-top: 30rpx;
...@@ -772,46 +789,46 @@ ...@@ -772,46 +789,46 @@
color: #666666; color: #666666;
line-height: 34rpx; line-height: 34rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
/* 在线学习 */ /* 在线学习 */
.currency-class { .currency-class {
width: 100%; width: 100%;
background: #ffffff; background: #ffffff;
padding: 30rpx; padding: 30rpx;
border-radius: 12rpx; border-radius: 12rpx;
} }
.learn-currency-class { .learn-currency-class {
width: 100%; width: 100%;
border-radius: 12rpx; border-radius: 12rpx;
display: flex; display: flex;
} }
.jf-currency-class { .jf-currency-class {
width: 100%; width: 100%;
height: 180rpx; height: 180rpx;
position: absolute; position: absolute;
border-radius: 12rpx; border-radius: 12rpx;
margin-top: 60rpx; margin-top: 60rpx;
} }
.title { .title {
font-size: 32rpx; font-size: 32rpx;
font-weight: bold; font-weight: bold;
font-family: PingFang-SC-Bold, PingFang-SC; font-family: PingFang-SC-Bold, PingFang-SC;
} }
.class1 { .class1 {
display: -webkit-box; display: -webkit-box;
display: -webkit-flex; display: -webkit-flex;
display: flex; display: flex;
-webkit-box-pack: justify; -webkit-box-pack: justify;
-webkit-justify-content: space-between; -webkit-justify-content: space-between;
justify-content: space-between; justify-content: space-between;
} }
.learn-class1 { .learn-class1 {
display: -webkit-box; display: -webkit-box;
display: -webkit-flex; display: -webkit-flex;
display: block; display: block;
...@@ -823,182 +840,181 @@ ...@@ -823,182 +840,181 @@
background-color: #ffffff; background-color: #ffffff;
position: relative; position: relative;
border-radius: 12rpx; border-radius: 12rpx;
} }
.img { .img {
width: 160rpx; width: 160rpx;
height: 120rpx; height: 120rpx;
} }
.learn-img { .learn-img {
width: 330rpx; width: 330rpx;
height: 194rpx; height: 194rpx;
} }
.jf-img { .jf-img {
width: 160rpx; width: 160rpx;
height: 200rpx; height: 200rpx;
position: absolute; position: absolute;
top: -45rpx; top: -45rpx;
left: 30rpx; left: 30rpx;
} }
.right { .right {
width: 434rpx; width: 434rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
} }
.intro { .intro {
color: #9999a6; color: #9999a6;
} }
.tab { .tab {
background: #fff; background: #fff;
height: 82rpx; height: 82rpx;
margin: 0 0; margin: 0 0;
} }
.text { .text {
margin: 0 40rpx; margin: 0 40rpx;
line-height: 82rpx; line-height: 82rpx;
color: #667eb5; color: #667eb5;
} }
.content { .content {
margin: 5px 0; margin: 5px 0;
height: 485rpx; height: 485rpx;
background: #fff; background: #fff;
} }
swiper { swiper {
height: 70vh; height: 70vh;
} }
.line-percent { .line-percent {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
font-size: 24rpx; font-size: 24rpx;
color: #999999; color: #999999;
margin: 20rpx; margin: 20rpx;
margin-top: 25rpx; margin-top: 25rpx;
} }
.jf-line { .jf-line {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
width: 120rpx; width: 120rpx;
height: 52rpx; height: 52rpx;
border-radius: 26rpx; border-radius: 26rpx;
background-color: #ffffff; background-color: #ffffff;
color: #2272FF; color: #2272ff;
text-align: center; text-align: center;
padding-left: 20rpx; padding-left: 20rpx;
padding-top: 6rpx; padding-top: 6rpx;
margin-top: 20rpx; margin-top: 20rpx;
} }
.u-progress { .u-progress {
width: 160rpx !important; width: 160rpx !important;
height: 12rpx !important; height: 12rpx !important;
background-color: #ececec; background-color: #ececec;
} }
.font-bold { .font-bold {
font-weight: bold; font-weight: bold;
} }
.font-default-color { .font-default-color {
color: #999999; color: #999999;
} }
.font-default-exam-color { .font-default-exam-color {
color: #FA5A49; color: #fa5a49;
} }
.font-active-color { .font-active-color {
color: #2272FF; color: #2272ff;
} }
.font-color-999999 { .font-color-999999 {
color: #999999; color: #999999;
} }
.standard-img { .standard-img {
width: 160rpx; width: 160rpx;
height: 120rpx; height: 120rpx;
} }
.standard-body { .standard-body {
height: 120rpx; height: 120rpx;
display: flex; display: flex;
} }
.standard-body-title { .standard-body-title {
font-size: 32rpx; font-size: 32rpx;
font-weight: bold; font-weight: bold;
}
} .jf-right {
.jf-right {
padding-left: 190rpx; padding-left: 190rpx;
width: 460rpx; width: 460rpx;
color: #ffffff; color: #ffffff;
} }
.notice-bottom { .notice-bottom {
margin-top: 20rpx; margin-top: 20rpx;
display: block; display: block;
position: relative; position: relative;
} }
.notice-bottom-left { .notice-bottom-left {
font-size: 24rpx; font-size: 24rpx;
color: #999999; color: #999999;
float: left; float: left;
} }
.notice-bottom-right { .notice-bottom-right {
font-size: 24rpx; font-size: 24rpx;
color: #2272FF; color: #2272ff;
float: right; float: right;
} }
.bofang { .bofang {
width: 60rpx; width: 60rpx;
height: 60rpx; height: 60rpx;
position: absolute; position: absolute;
left: 130rpx; left: 130rpx;
top: 70rpx; top: 70rpx;
} }
.learn-desc { .learn-desc {
height: 138rpx; height: 138rpx;
margin-top: -10rpx; margin-top: -10rpx;
padding-top: 20rpx; padding-top: 20rpx;
padding-left: 20rpx; padding-left: 20rpx;
padding-right: 20rpx; padding-right: 20rpx;
} }
.learn-intro { .learn-intro {
color: #999999; color: #999999;
margin-top: 20rpx; margin-top: 20rpx;
font-size: 20rpx; font-size: 20rpx;
} }
.h48 { .h48 {
height: 48rpx; height: 48rpx;
} }
.current-img { .current-img {
width: 100%; width: 100%;
height: 100%; height: 100%;
position: absolute; position: absolute;
} }
.load-more { .load-more {
padding-top: 50rpx; padding-top: 50rpx;
padding-bottom: 200rpx; padding-bottom: 200rpx;
} }
</style> </style>
...@@ -55,8 +55,8 @@ ...@@ -55,8 +55,8 @@
return this.vuex_settled && this.vuex_settled.avatar || '' return this.vuex_settled && this.vuex_settled.avatar || ''
}, },
name() { name() {
return this.settled && this.settled.id_card_name return this.settled && (this.settled.id_card_name
|| this.settled.nickname || this.settled.name || '' || this.settled.nickname || this.settled.name) || ''
}, },
mobile() { mobile() {
return this.settled && this.settled.mobile || '' return this.settled && this.settled.mobile || ''
......
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
//判断是否通过,通过去成功页,失败去失败页 //判断是否通过,通过去成功页,失败去失败页
let examInfo = this.examInfo; let examInfo = this.examInfo;
let examId = this.examId; let examId = this.examId;
let status = examInfo.examLevelResult == "通过"; let status = examInfo.examLevelResult == "已通过";
if (status) { if (status) {
wx.navigateTo({ wx.navigateTo({
url: url:
...@@ -332,7 +332,8 @@ export default { ...@@ -332,7 +332,8 @@ export default {
"&questionId=" + "&questionId=" +
questionId + questionId +
"&userAnswerIds=" + "&userAnswerIds=" +
(this.userAnswerIds || "9999"), // 9999超时自动下一题 (this.userAnswerIds || "9999") +
",", // 9999超时自动下一题
method: "POST", method: "POST",
data: { data: {
// userExamId:this.userExamId, // userExamId:this.userExamId,
......
...@@ -77,15 +77,17 @@ export default { ...@@ -77,15 +77,17 @@ export default {
//再次考试 //再次考试
getAgain: function () { getAgain: function () {
wx.navigateTo({ wx.navigateTo({
url: "./assessment", url: "/pages/learn/assessment",
}); });
}, },
//下次再考跳转到学习主界面页面 //下次再考跳转到学习主界面页面
toIndex: function () { toIndex: function () {
wx.reLaunch({ let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
url: "/pages/index/learn?tabs=3", let length = routes.length
uni.navigateBack({
delta: length - 1
}); });
// wx.navigateBack({ delta: 1 })//返回上一级页面
}, },
}, },
}; };
......
...@@ -87,10 +87,12 @@ export default { ...@@ -87,10 +87,12 @@ export default {
}, },
//下次再考跳转到学习主界面页面 //下次再考跳转到学习主界面页面
toIndex: function () { toIndex: function () {
wx.reLaunch({ let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
url: "/pages/index/learn?tabs=3", let length = routes.length
uni.navigateBack({
delta: length - 1
}); });
// wx.navigateBack({ delta: 1 })//返回上一级页面
}, },
}, },
}; };
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
}, },
toDetail(key) { toDetail(key) {
let data = this.list[key].data; let data = this.list[key].data;
if(!data.isUpload){ if(data.status != 1){
return; return;
} }
wx.navigateTo({ wx.navigateTo({
......
<template> <template>
<view class="cus-wrap"> <view class="cus-wrap">
<w-navbar title="联系客服"></w-navbar> <w-navbar title="联系客服"></w-navbar>
<view class="content"> <view class="cus-wrap-content">
<u-image class="qrcode" :src="cusQrcode" width="400" height="400" mode="widthFix" :fade="true" duration="450"> <Customer :type="type"></Customer>
<u-loading slot="loading"></u-loading>
<view slot="error" style="font-size: 24rpx;">加载失败</view>
</u-image>
<text class="desc">长按二维码保存图片添加官方客服微信</text>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import Customer from "@/components/mine/customer.vue"
export default { export default {
components: {
Customer
},
data() { data() {
return { return {
type: 'mine'
}; };
}, },
computed: { onLoad(e) {
cusQrcode() { if (e && e.type) {
return process.uniEnv.qn_base_url + 'erweima-bg.png' this.type = e.type
},
},
methods: {
// download() {
// let that = this;
// uni.downloadFile({ //获得二维码的临时地址
// url: that.erweimaImage,
// success:(res)=>{
// if(res.statusCode == 200){
// uni.saveImageToPhotosAlbum({
// filePath:res.tempFilePath,//传入临时地址
// success() {
// that.$u.toast('保存成功!');
// },
// fail() {
// that.$u.toast('保存失败!');
// }
// })
// }
// }
// })
// }
} }
},
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.cus-wrap { .cus-wrap {
background-color: #F4F5F7; background-color: #F4F5F7;
padding: 30rpx; padding: 20rpx 30rpx;
height: 100vh;
.content { .cus-wrap-content {
width: 690rpx; overflow: auto;
height: 800rpx;
background: #FFFFFF;
border-radius: 12rpx;
display: flex;
flex-direction: column;
align-items: center;
.qrcode {
margin-top: 160rpx;
} }
.desc {
margin-top: 40rpx;
font-size: 24rpx;
font-weight: 400;
color: #666666;
line-height: 24rpx;
} }
}
}
</style> </style>
<template> <template>
<view class="wallet-view"> <view class="wallet-view">
<u-navbar back-icon-color="#333333" background="#F4F5F7" title="我的钱包" titleColor="#333333" <u-navbar back-icon-color="#333333" background="#F4F5F7" title="我的钱包" titleColor="#333333"
:border-bottom="false"></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" mode="widthFix" :src="qianbaobeijing"></image> <image class="header-image" mode="widthFix" :src="qianbaobeijing"></image>
......
<template> <template>
<view class="settlement-view"> <view class="settlement-view">
<u-navbar back-icon-color="#333333" background="#F4F5F7" title="结算账单" titleColor="#333333" <u-navbar back-icon-color="#333333" background="#F4F5F7" title="结算账单" titleColor="#333333"
:border-bottom="false"></u-navbar> :border-bottom="false" title-bold></u-navbar>
<view class="settlement-conten"> <view class="settlement-conten">
<view class="settlement-content-view"> <view class="settlement-content-view">
<view class="head-view"> <view class="head-view">
......
<template> <template>
<view class="statement-view"> <view class="statement-view">
<u-navbar back-icon-color="#333333" background="#F4F5F7" title="收入流水" titleColor="#333333" <u-navbar back-icon-color="#333333" background="#F4F5F7" title="收入流水" titleColor="#333333"
:border-bottom="false"></u-navbar> :border-bottom="false" title-bold></u-navbar>
<view class="statement-conten"> <view class="statement-conten">
<view class="statement-content-view"> <view class="statement-content-view">
<view class="head-view"> <view class="head-view">
......
<template> <template>
<view class="withdraw-view"> <view class="withdraw-view">
<u-navbar back-icon-color="#333333" background="#F4F5F7" title="提现" titleColor="#333333" :border-bottom="false"> <u-navbar back-icon-color="#333333" background="#F4F5F7" title="提现" titleColor="#333333" :border-bottom="false" title-bold>
</u-navbar> </u-navbar>
<view class="withdraw-content"> <view class="withdraw-content">
<view class="withdraw-content-main"> <view class="withdraw-content-main">
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="com-content"> <view class="com-content">
<complete-check :show="completeCheckStatus" :list-data="completeCheckResult" :pass="pass" @close="closeCheckResult" @handle="handerProgrom" @change="confirm"></complete-check> <complete-check :show="completeCheckStatus" :list-data="completeCheckResult" :pass="pass" @close="closeCheckResult" @handle="handerProgrom" @change="confirm"></complete-check>
<view class="u-wrap"> <view class="u-wrap">
<u-navbar :background="{background: '#2272FF'}" back-icon-color="#fff" :title-size="32" title-color="#fff" :border-bottom="false" title="完工信息"></u-navbar> <u-navbar :background="{background: '#2272FF'}" back-icon-color="#fff" :title-size="32" title-color="#fff" :border-bottom="false" title="完工信息" title-bold></u-navbar>
<u-tabs class="order-tabs" ref="tabs" :current="tabIndex" name="panelName" :list="list" @change="tabsChange" :is-scroll="false" bg-color="#2272FF" inactive-color="#a6c6ff" active-color="#fff" height="80" font-size="32"></u-tabs> <u-tabs class="order-tabs" ref="tabs" :current="tabIndex" name="panelName" :list="list" @change="tabsChange" :is-scroll="false" bg-color="#2272FF" inactive-color="#a6c6ff" active-color="#fff" height="80" font-size="32"></u-tabs>
<view class="u-menu-wrap"> <view class="u-menu-wrap">
<scroll-view scroll-y scroll-with-animation class="u-tab-view menu-scroll-view" :scroll-top="scrollTop" :scroll-into-view="itemId" v-if="list[tabIndex].items.length > 1"> <scroll-view scroll-y scroll-with-animation class="u-tab-view menu-scroll-view" :scroll-top="scrollTop" :scroll-into-view="itemId" v-if="list[tabIndex].items.length > 1">
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<text>客户信息:</text> <text>客户信息:</text>
<text>{{ order.contactName }}</text> <text>{{ order.contactName }}</text>
</view> </view>
<u-image width="84rpx" height="56rpx" :src="phoneIcon" @click="phoneToCustomer(order.contactPhone)" ></u-image> <image style="width: 84rpx;height: 56rpx;" :src="phoneIcon" @click="phoneToCustomer(order.contactPhone)" ></image>
</view> </view>
<view class="order-cell"> <view class="order-cell">
<text>联系方式:</text> <text>联系方式:</text>
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<u-icon name="map" size="28"></u-icon> <u-icon name="map" size="28"></u-icon>
<text class="address-txt">{{ formatAddress }}</text> <text class="address-txt">{{ formatAddress }}</text>
</view> </view>
<u-image width="84rpx" height="56rpx" :src="navigationIcon" @click="openLocation(order.contactAddress)"></u-image> <image style="width: 84rpx;height: 56rpx;" :src="navigationIcon" @click="openLocation(order.contactAddress)"></image>
</view> </view>
<!-- <u-read-more ref="uReadMore" :show-height="40" :shadowStyle="{paddingTop: '0rpx',marginTop: '0rpx'}" close-text="查看更多" open-text="点击收起" toggle color="#2272FF" font-size="26"> --> <!-- <u-read-more ref="uReadMore" :show-height="40" :shadowStyle="{paddingTop: '0rpx',marginTop: '0rpx'}" close-text="查看更多" open-text="点击收起" toggle color="#2272FF" font-size="26"> -->
<view v-if="readMore" @click="readMore = false" class="read-more-toggle"> <view v-if="readMore" @click="readMore = false" class="read-more-toggle">
...@@ -223,7 +223,7 @@ ...@@ -223,7 +223,7 @@
scenePhoto: false, scenePhoto: false,
isErrorSign:false, isErrorSign:false,
errorSignUrl:'', errorSignUrl:'',
isAllowDianhuaAndDaohang : false, isAllowDianhuaAndDaohang : true,
appointmentDatetimeRange:'', appointmentDatetimeRange:'',
appointmentDatetime:'', appointmentDatetime:'',
signDistance:3000, signDistance:3000,
...@@ -231,7 +231,7 @@ ...@@ -231,7 +231,7 @@
contactAddressLatitud:0, contactAddressLatitud:0,
num:0, num:0,
showTimeOut:true, showTimeOut:true,
clicking: false clicking: false,
} }
}, },
onLoad(option) { onLoad(option) {
...@@ -669,13 +669,6 @@ ...@@ -669,13 +669,6 @@
}) })
}, },
filish(){ filish(){
let self = this
var data = {
'orderId': self.orderId
};
self.$u.api.orderDetail(data, self.orderId).then((res) => {
if (res.code == 200) {
if(res.data.orderStatus > 31 && res.data.orderStatus < 80){
// 去完工 // 去完工
uni.navigateTo({ uni.navigateTo({
url: 'pages/order/complete?orderId='+this.order.orderId url: 'pages/order/complete?orderId='+this.order.orderId
...@@ -684,13 +677,6 @@ ...@@ -684,13 +677,6 @@
+ "&inGuaranteePeriod=" + this.order.inGuaranteePeriod + "&inGuaranteePeriod=" + this.order.inGuaranteePeriod
+ "&partnerCompanyId=" + this.order.partnerCompanyId + "&partnerCompanyId=" + this.order.partnerCompanyId
}) })
}else{
this.commonToast('当前工单已被改派!','warning')
}
} else {
console.log(res.message, "获取订单详情失败!");
}
});
}, },
rejectOrder() { // 拒单 rejectOrder() { // 拒单
// 检查是否可以拒单 // 检查是否可以拒单
......
<!-- 过程反馈 --> <!-- 过程反馈 -->
<template> <template>
<view class="feedback-box bg"> <view class="feedback-box bg">
<u-navbar back-icon-color="#FFFFFF" :background="background" title="过程反馈" titleColor="#FFFFFF" :border-bottom="false"></u-navbar> <u-navbar back-icon-color="#FFFFFF" :background="background" title="过程反馈" titleColor="#FFFFFF" :border-bottom="false" title-bold></u-navbar>
<view class="content u-p-l-30 u-p-r-30"> <view class="content u-p-l-30 u-p-r-30">
<view class="top-tab"> <view class="top-tab">
<u-tabs <u-tabs
......
<template> <template>
<view class="backView"> <view class="backView">
<u-navbar :title-size="32" title-color="#000" :border-bottom="false" :title="title"></u-navbar> <u-navbar :title-size="32" title-color="#000" :border-bottom="false" :title="title" title-bold></u-navbar>
<u-loading style="position: fixed;top: 50%;" :show="loading" size="36" mode="flower"></u-loading> <u-loading style="position: fixed;top: 50%;" :show="loading" size="36" mode="flower"></u-loading>
<view class="topView"> <view class="topView">
<view :class="['topItemView', {'active':activeTop===ikey}]" @click="handleTopItemChange(ikey,item)" <view :class="['topItemView', {'active':activeTop===ikey}]" @click="handleTopItemChange(ikey,item)"
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
statusName: '已支付保证金', statusName: '已支付保证金',
txtArr: ['您已成功缴纳配件押金', " 成功缴纳配件押金后即前往接单"], txtArr: ['您已成功缴纳配件押金', " 成功缴纳配件押金后即前往接单"],
btnTxt: '去首页', btnTxt: '去首页',
url: '/pages/index/index' url: '/pages/index/index?visible=1'
}], }],
// 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交' // 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交'
status: '', status: '',
......
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