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 @@
{
"navigationBarTitleText": "订单详情",
"navigationStyle": "custom",
"navigationStyle": "custom", // 隐藏系统导航栏
"disableScroll": true
}
......
......@@ -4,7 +4,7 @@
refresher-background="#F4F5F7" @refresherpulling="triggered = true" @refresherrefresh="onRefresh"
@refresherrestore="onRestore" @refresherabort="onAbort" enable-back-to-top>
<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-title">最新消息</view>
......@@ -67,6 +67,12 @@
<view class="bottom-line-view"></view>
</view>
</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>
</template>
......@@ -76,12 +82,14 @@
import NoOrder from "@/components/order/noOrder.vue"
const app = getApp();
import OrderCell from "@/components/order/index.vue";
import Customer from "@/components/mine/customer.vue"
export default {
components: {
OrderCell,
TabBarPage,
NoOrder
NoOrder,
Customer
},
data() {
return {
......@@ -103,7 +111,8 @@
},
waitInit: false, // 当token为空时,等待自动登录结束
triggered: false,
_freshing: false,
_freshing: false,
visible: false,
};
},
watch: {
......@@ -138,12 +147,15 @@
return process.uniEnv.qn_base_url + 'weiruzhu.png'
},
},
onLoad() {
onLoad(e) {
this._freshing = false;
if(this.vuex_token) {
this.getOrderCount()
} else {
this.waitInit = true
}
if (e && e.visible) {
this.visible = e.visible
}
},
onShow() {
......@@ -152,7 +164,7 @@
if (this.vuex_token) {
this.initSettleInfo();
}
this.getLocation()
this.getLocation()
},
// onPullDownRefresh() {
// console.log('------下拉刷新------')
......@@ -383,7 +395,15 @@
res.eventChannel.emit('acceptDataFromLearn', item)
}
});
}
},
handleClickBanner() {
uni.navigateTo({
url: "/pages/mine/customer/index" + '?type=exclusive',
});
},
handleDownload() {
this.visible = false
}
},
};
</script>
......
This diff is collapsed.
......@@ -55,8 +55,8 @@
return this.vuex_settled && this.vuex_settled.avatar || ''
},
name() {
return this.settled && this.settled.id_card_name
|| this.settled.nickname || this.settled.name || ''
return this.settled && (this.settled.id_card_name
|| this.settled.nickname || this.settled.name) || ''
},
mobile() {
return this.settled && this.settled.mobile || ''
......
......@@ -136,7 +136,7 @@ export default {
//判断是否通过,通过去成功页,失败去失败页
let examInfo = this.examInfo;
let examId = this.examId;
let status = examInfo.examLevelResult == "通过";
let status = examInfo.examLevelResult == "已通过";
if (status) {
wx.navigateTo({
url:
......@@ -332,7 +332,8 @@ export default {
"&questionId=" +
questionId +
"&userAnswerIds=" +
(this.userAnswerIds || "9999"), // 9999超时自动下一题
(this.userAnswerIds || "9999") +
",", // 9999超时自动下一题
method: "POST",
data: {
// userExamId:this.userExamId,
......
......@@ -77,15 +77,17 @@ export default {
//再次考试
getAgain: function () {
wx.navigateTo({
url: "./assessment",
url: "/pages/learn/assessment",
});
},
//下次再考跳转到学习主界面页面
toIndex: function () {
wx.reLaunch({
url: "/pages/index/learn?tabs=3",
let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
let length = routes.length
uni.navigateBack({
delta: length - 1
});
// wx.navigateBack({ delta: 1 })//返回上一级页面
},
},
};
......
......@@ -87,10 +87,12 @@ export default {
},
//下次再考跳转到学习主界面页面
toIndex: function () {
wx.reLaunch({
url: "/pages/index/learn?tabs=3",
let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
let length = routes.length
uni.navigateBack({
delta: length - 1
});
// wx.navigateBack({ delta: 1 })//返回上一级页面
},
},
};
......
......@@ -112,7 +112,7 @@
},
toDetail(key) {
let data = this.list[key].data;
if(!data.isUpload){
if(data.status != 1){
return;
}
wx.navigateTo({
......
<template>
<view class="cus-wrap">
<template>
<view class="cus-wrap">
<w-navbar title="联系客服"></w-navbar>
<view class="content">
<u-image class="qrcode" :src="cusQrcode" width="400" height="400" mode="widthFix" :fade="true" duration="450">
<u-loading slot="loading"></u-loading>
<view slot="error" style="font-size: 24rpx;">加载失败</view>
</u-image>
<text class="desc">长按二维码保存图片添加官方客服微信</text>
</view>
</view>
</template>
<script>
export default {
data() {
return {
};
},
computed: {
cusQrcode() {
return process.uniEnv.qn_base_url + 'erweima-bg.png'
},
},
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>
<style lang="scss">
.cus-wrap {
background-color: #F4F5F7;
padding: 30rpx;
.content {
width: 690rpx;
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;
}
}
}
<view class="cus-wrap-content">
<Customer :type="type"></Customer>
</view>
</view>
</template>
<script>
import Customer from "@/components/mine/customer.vue"
export default {
components: {
Customer
},
data() {
return {
type: 'mine'
};
},
onLoad(e) {
if (e && e.type) {
this.type = e.type
}
},
}
</script>
<style lang="scss">
.cus-wrap {
background-color: #F4F5F7;
padding: 20rpx 30rpx;
height: 100vh;
.cus-wrap-content {
overflow: auto;
}
}
</style>
<template>
<view class="wallet-view">
<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="header-view">
<image class="header-image" mode="widthFix" :src="qianbaobeijing"></image>
......
<template>
<view class="settlement-view">
<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-content-view">
<view class="head-view">
......
<template>
<view class="statement-view">
<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-content-view">
<view class="head-view">
......
<template>
<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>
<view class="withdraw-content">
<view class="withdraw-content-main">
......
......@@ -2,7 +2,7 @@
<view class="com-content">
<complete-check :show="completeCheckStatus" :list-data="completeCheckResult" :pass="pass" @close="closeCheckResult" @handle="handerProgrom" @change="confirm"></complete-check>
<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>
<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">
......
......@@ -23,7 +23,7 @@
<text>客户信息:</text>
<text>{{ order.contactName }}</text>
</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 class="order-cell">
<text>联系方式:</text>
......@@ -34,7 +34,7 @@
<u-icon name="map" size="28"></u-icon>
<text class="address-txt">{{ formatAddress }}</text>
</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>
<!-- <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">
......@@ -223,7 +223,7 @@
scenePhoto: false,
isErrorSign:false,
errorSignUrl:'',
isAllowDianhuaAndDaohang : false,
isAllowDianhuaAndDaohang : true,
appointmentDatetimeRange:'',
appointmentDatetime:'',
signDistance:3000,
......@@ -231,7 +231,7 @@
contactAddressLatitud:0,
num:0,
showTimeOut:true,
clicking: false
clicking: false,
}
},
onLoad(option) {
......@@ -669,28 +669,14 @@
})
},
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({
url: 'pages/order/complete?orderId='+this.order.orderId
+ "&categoryId=" + this.order.categoryId
+ "&orderServiceType=" + this.order.orderServiceType
+ "&inGuaranteePeriod=" + this.order.inGuaranteePeriod
+ "&partnerCompanyId=" + this.order.partnerCompanyId
})
}else{
this.commonToast('当前工单已被改派!','warning')
}
} else {
console.log(res.message, "获取订单详情失败!");
}
});
// 去完工
uni.navigateTo({
url: 'pages/order/complete?orderId='+this.order.orderId
+ "&categoryId=" + this.order.categoryId
+ "&orderServiceType=" + this.order.orderServiceType
+ "&inGuaranteePeriod=" + this.order.inGuaranteePeriod
+ "&partnerCompanyId=" + this.order.partnerCompanyId
})
},
rejectOrder() { // 拒单
// 检查是否可以拒单
......
<!-- 过程反馈 -->
<template>
<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="top-tab">
<u-tabs
......
<template>
<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>
<view class="topView">
<view :class="['topItemView', {'active':activeTop===ikey}]" @click="handleTopItemChange(ikey,item)"
......
......@@ -90,7 +90,7 @@
statusName: '已支付保证金',
txtArr: ['您已成功缴纳配件押金', " 成功缴纳配件押金后即前往接单"],
btnTxt: '去首页',
url: '/pages/index/index'
url: '/pages/index/index?visible=1'
}],
// 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交'
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