Commit 7f66c1bb authored by Morson's avatar Morson
parents dc1fd77c eb1f3bb4
...@@ -48,7 +48,7 @@ let orderApiFun = function(vm){ ...@@ -48,7 +48,7 @@ let orderApiFun = function(vm){
/** /**
* 查询工单操作记录列表接口 * 查询工单操作记录列表接口
*/ */
let listOrderRecord = async (params = {}) => await vm.$u.get('/wxh-worker-rest/rest/order/record/'+ vm.vuex_token+'/listOrderRecord/'+params.orderId, params); let listOrderRecord = async (params = {}) => await vm.$u.get('/wxh-worker-rest/rest/order/record/'+ vm.vuex_token+'/listOrderRecord/V2/'+params.orderId, params);
/** /**
* 接单 * 接单
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<template> <template>
<view :style="{'width': fieldsWidth}"> <view :style="{'width': fieldsWidth}">
<u-input :type="type" class="input-item" v-model="dataValue" @input="valueChange" :placeholder="placeholder" :placeholder-style="placeholderStyle" <u-input :type="type" class="input-item" v-model="dataValue" @input="valueChange" :placeholder="placeholder" :placeholder-style="placeholderStyle"
:custom-style="customStyle" :clearable="false" :border="border" border-color="#ECECEC"/> :custom-style="customStyle" :clearable="false" :border="border" border-color="#ECECEC" :maxlength="maxlength"/>
</view> </view>
</template> </template>
...@@ -23,18 +23,26 @@ ...@@ -23,18 +23,26 @@
// } // }
}, },
data() { data() {
return {} return {
maxlength: 140,
}
}, },
computed: { computed: {
type() { type() {
let ty = this.item.fieldsType.toLocaleLowerCase() let ty = this.item.fieldsType.toLocaleLowerCase()
if (this.item && ty == 'password') { if (this.item.fieldsId == 200) {
return this.item.fieldsType this.maxlength = 9
}else if (this.item && ty == 'text') { return 'digit'
return 'textarea' } else {
}else { if (this.item && ty == 'password') {
return 'text' return this.item.fieldsType
}else if (this.item && ty == 'text') {
return 'textarea'
} else {
return 'text'
}
} }
}, },
fieldsWidth() { fieldsWidth() {
return this.item.fieldsWidth ? (this.item.fieldsWidth + 'rpx') : '100%' return this.item.fieldsWidth ? (this.item.fieldsWidth + 'rpx') : '100%'
......
...@@ -186,8 +186,9 @@ ...@@ -186,8 +186,9 @@
tagText() { tagText() {
return this.timeout ? '超' : '剩' return this.timeout ? '超' : '剩'
}, },
timeText() { timeText() {
return this.orderType == 4 ? this.orderData.submissionTime : this.orderData.auditDatetime let time = this.orderType == 4 ? this.orderData.orderFinishDatetime : this.orderData.auditDatetime
return this.$u.timeFormat(time, 'yyyy.mm.dd hh:MM:ss')
}, },
timeTitle() { timeTitle() {
return this.orderType == 4 ? '提交时间:' : '审核时间:' return this.orderType == 4 ? '提交时间:' : '审核时间:'
...@@ -195,8 +196,8 @@ ...@@ -195,8 +196,8 @@
showReason() { showReason() {
return this.orderType == 5 return this.orderType == 5
}, },
showDistance() { showDistance() {
return this.orderType == 0 && this.location.length >= 2 return this.orderType == 0 && this.location.length >= 2 && (this.orderData.contactAddressLatitud || this.orderData.contactAddressLongitud)
}, },
types() { types() {
return { return {
...@@ -210,7 +211,6 @@ ...@@ -210,7 +211,6 @@
} }
}, },
orderDistance() { orderDistance() {
console.log('orderData.contactAddressLatitud:',this.orderData.contactAddressLatitud,'orderData.contactAddressLongitud',this.orderData.contactAddressLongitud, 'location:',this.location[0], this.location[1])
return this.distance(this.orderData.contactAddressLatitud,this.orderData.contactAddressLongitud, this.location[0], this.location[1]) return this.distance(this.orderData.contactAddressLatitud,this.orderData.contactAddressLongitud, this.location[0], this.location[1])
} }
}, },
...@@ -280,27 +280,29 @@ ...@@ -280,27 +280,29 @@
} }
return address return address
}, },
/** /**
* echo distance(116.3896,39.91917,116.3940,39.91726); * echo distance(116.3896,39.91917,116.3940,39.91726);
* 计算两点之间直线距离 * 计算两点之间直线距离
* @param float $lon1 经度 * @param float $lon1 经度
* @param float $lat1 维度 * @param float $lat1 维度
* @param float $lon2 经度 * @param float $lon2 经度
* @param float $lat2 维度 * @param float $lat2 维度
* @return float 浮点数 * @return float 浮点数
*/ */
distance(la1, lo1, la2, lo2) { distance(lat1, lng1, lat2, lng2) {
var La1 = la1 * Math.PI / 180.0; var radLat1 = this.Rad(lat1);
var La2 = la2 * Math.PI / 180.0; var radLat2 = this.Rad(lat2);
var La3 = La1 - La2; var a = radLat1 - radLat2;
var Lb3 = lo1 * Math.PI / 180.0 - lo2 * Math.PI / 180.0; var b = this.Rad(lng1) - this.Rad(lng2);
var s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(La3 / 2), 2), Math.cos(La1) * Math.cos(La2) * Math.pow( var s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a/2),2) +
Math.sin(Lb3 / 2), 2))); Math.cos(radLat1)*Math.cos(radLat2)*Math.pow(Math.sin(b/2),2)));
s = s * 6378.137; //地球半径 s = s *6378.137 ;// EARTH_RADIUS;
s = Math.round(s * 10000) / 10000; s = Math.round(s * 10000)/10000 //输出为米
// console.log("计算结果",s,'KM'); return Number(s?s.toFixed(2):0);
return s ? s.toFixed(2) : 0; },
}, Rad(d){
return d * Math.PI / 180.0;//经纬度转换成三角函数中度分表形式。
},
} }
} }
</script> </script>
......
...@@ -11,11 +11,23 @@ ...@@ -11,11 +11,23 @@
customStyle: { customStyle: {
type: String, type: String,
default: 'background-color: #FFFFFF' default: 'background-color: #FFFFFF'
},
type: { // 图片
type: String,
default: 'white',
} }
}, },
computed: { computed: {
wudingdanImage() { wudingdanImage() {
return process.uniEnv.qn_base_url + 'wudingdan.png' var name = 'wudingdan.png'
switch(this.type) {
case 'black':
name = "zwdd.png"
break
default:
break
}
return process.uniEnv.qn_base_url + name
} }
} }
} }
......
...@@ -6,10 +6,11 @@ ...@@ -6,10 +6,11 @@
"versionCode" : "100", "versionCode" : "100",
"transformPx" : false, "transformPx" : false,
"app-plus" : { "app-plus" : {
"optimization": { "optimization" : {
"subPackages": true "subPackages" : true
}, },
"runmode" : "liberate", // 开启分包优化后,必须配置资源释放模式 "runmode" : "liberate", // 开启分包优化后,必须配置资源释放模式
/* 5+App特有相关 */ /* 5+App特有相关 */
"usingComponents" : true, "usingComponents" : true,
"splashscreen" : { "splashscreen" : {
...@@ -68,7 +69,7 @@ ...@@ -68,7 +69,7 @@
"usingComponents" : true, "usingComponents" : true,
"permission" : { "permission" : {
"scope.userLocation" : { "scope.userLocation" : {
"desc" : "需要获得位置权限以方便用户定位下单地址" "desc" : "方便查看订单与你的距离"
} }
} }
}, },
......
...@@ -26,7 +26,8 @@ ...@@ -26,7 +26,8 @@
"path": "pages/index/learn", "path": "pages/index/learn",
"style": { "style": {
"navigationBarTitleText": "学习", "navigationBarTitleText": "学习",
"navigationStyle":"custom"//隐藏系统导航栏 "navigationStyle":"custom",//隐藏系统导航栏
"disableScroll": true
} }
}, },
{ {
...@@ -89,13 +90,15 @@ ...@@ -89,13 +90,15 @@
{ {
"path": "news-details", "path": "news-details",
"style": { "style": {
"navigationBarTitleText": "" "navigationBarTitleText": "",
"navigationStyle":"default"
} }
}, },
{ {
"path":"section", "path":"section",
"style" :{ "style" :{
"navigationBarTitleText": "" "navigationBarTitleText": "",
"navigationStyle":"default"
} }
}, },
{ {
...@@ -243,7 +246,8 @@ ...@@ -243,7 +246,8 @@
"navigationBarTitleText": "规范展示", "navigationBarTitleText": "规范展示",
"navigationBarBackgroundColor":"#FFFFFF", "navigationBarBackgroundColor":"#FFFFFF",
"backgroundColor":"#F4F5F7", "backgroundColor":"#F4F5F7",
"navigationStyle": "custom" // 隐藏系统导航栏 "navigationStyle": "custom", // 隐藏系统导航栏
"disableScroll": true
} }
} }
] ]
...@@ -430,6 +434,11 @@ ...@@ -430,6 +434,11 @@
"name": "订单 - 过程反馈", //模式名称 "name": "订单 - 过程反馈", //模式名称
"path": "pages/order/feedback", //启动页面,必选 "path": "pages/order/feedback", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到 "query": "" //启动参数,在页面的onLoad函数里面得到
},
{
"name": "学习 - 首页", //模式名称
"path": "pages/index/learn", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
} }
] ]
} }
......
...@@ -115,8 +115,8 @@ ...@@ -115,8 +115,8 @@
computed: { computed: {
buttonStyle() { buttonStyle() {
return { return {
width: "400rpx", width: "300rpx",
height: "104rpx", height: "80rpx",
"font-size": "32rpx", "font-size": "32rpx",
"font-weight": "bold", "font-weight": "bold",
}; };
...@@ -525,7 +525,7 @@ ...@@ -525,7 +525,7 @@
.tip-other { .tip-other {
font-size: 28rpx; font-size: 28rpx;
color: #666666; color: #666666;
margin-bottom: 20rpx; margin-bottom: 30rpx;
} }
.settle-button {} .settle-button {}
......
This diff is collapsed.
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
scroll-y="true" refresher-enabled="true" :refresher-triggered="triggered" :refresher-threshold="100" scroll-y="true" refresher-enabled="true" :refresher-triggered="triggered" :refresher-threshold="100"
refresher-background="#F4F5F7" @refresherpulling="triggered = true" @refresherrefresh="onRefresh" refresher-background="#F4F5F7" @refresherpulling="triggered = true" @refresherrefresh="onRefresh"
@refresherrestore="onRestore" @refresherabort="onAbort"> @refresherrestore="onRestore" @refresherabort="onAbort">
<NoOrder v-if="noMore" customStyle="margin-top: 100rpx;background-color: #F4F5F7" /> <NoOrder v-if="noMore" type="black" customStyle="margin-top: 100rpx;background-color: #F4F5F7" />
<template v-else> <template v-else>
<view v-for="(item, index) in orderList" :key="item.orderId"> <view v-for="(item, index) in orderList" :key="item.orderId">
<OrderCell :orderData="item" :type="orderType" :location="dataValue" @click="handleClick(item)" <OrderCell :orderData="item" :type="orderType" :location="dataValue" @click="handleClick(item)"
...@@ -256,6 +256,9 @@ ...@@ -256,6 +256,9 @@
if (res.data.type != self.orderType) return if (res.data.type != self.orderType) return
self.triggered = false; self.triggered = false;
self._freshing = false; self._freshing = false;
if (self.pageNumber == 1) {
self.orderList = []
}
if (res.data.list) { if (res.data.list) {
self.orderList.push(...res.data.list) self.orderList.push(...res.data.list)
if (self.list[self.types[res.data.type]]) { if (self.list[self.types[res.data.type]]) {
......
<template> <template>
<view> <view>
<view class="title"> <view class="title">
{{newsInfo.title}} {{ title }}
</view> </view>
<view class="u-content"> <view class="u-content">
<u-parse :html="newsInfo.body" :tag-style="style"></u-parse> <u-parse :html="body" :tag-style="style"></u-parse>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
banner:{}, title: '',
obj:{ body: ''
}
}, },
newsInfo: { onLoad() {
title: '', var that = this;
body: '' const eventChannel = this.getOpenerEventChannel()
} eventChannel.on('acceptDataFromLearn', function(data) {
} that.title = data.title;
}, that.body = data.body;
methods: { })
this.$u.mpShare.path = ''
}, },
onLoad() { }
},
onShow(){
uni.$on('news',(news)=>{
this.newsInfo = news;
console.log(news,'news')
})
},
onLoad() {
this.$u.mpShare.path = ''
},
}
</script> </script>
<style> <style>
.title{ .title{
font-size: 32rpx; font-size: 32rpx;
font-weight: bold; font-weight: bold;
margin-left: 30rpx; margin-left: 30rpx;
margin-top: 30rpx; margin-top: 30rpx;
} }
.content{ .u-content{
font-size: 24rpx; font-size: 24rpx;
line-height: 36rpx; line-height: 36rpx;
color: #666666; color: #666666;
margin-left: 30rpx; margin-left: 30rpx;
margin-top: 30rpx; margin-top: 30rpx;
} margin-right: 30rpx;
}
</style> </style>
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class="uni-padding-wrap uni-common-mt"> <view class="uni-padding-wrap uni-common-mt">
<view><video object-fit="cover" class="course-video" id="courseVideo" :src="courseSrc" <view><video object-fit="cover" class="course-video" id="courseVideo" :src="courseSrc"
:options="playerOptions" :playsinline="true" @play="playCourse" @error="videoErrorCallback" :options="playerOptions" :playsinline="true" @play="playCourse" @error="videoErrorCallback"
@ready="playerReadied" @timeupdate="onPlayerTimeupdate($event)" controls></video></view> @ready="playerReadied" @timeupdate="onPlayerTimeupdate($event)" autoplay="true" controls></video></view>
<view class="title-content"> <view class="title-content">
<view class="item-content"> <view class="item-content">
<view class="item-st"> <view class="item-st">
...@@ -18,23 +18,28 @@ ...@@ -18,23 +18,28 @@
<view class="learn-view" v-if="courseId >= 0"> <view class="learn-view" v-if="courseId >= 0">
<view class="learn-view-title color-teacher">课程讲师</view> <view class="learn-view-title color-teacher">课程讲师</view>
<view class="" style="padding-top: 30rpx;display: flex;padding-left: 30rpx;"> <view class="" style="padding-top: 30rpx;display: flex;padding-left: 30rpx;">
<u-avatar :style="{'width':'100rpx', 'height':'100rpx'}" :src="teacherImage" mode="circle"></u-avatar> <u-avatar :style="{'width':'100rpx', 'height':'100rpx'}" :src="teacherImage" mode="circle">
</u-avatar>
<view style="height:120rpx;font-size: 30rpx;padding-left:30rpx;"> <view style="height:120rpx;font-size: 30rpx;padding-left:30rpx;">
<view class="" style="display: flex;font-size: 32rpx;"> <view class="" style="display: flex;font-size: 32rpx;">
<view class="" style="font-size: 32rpx;font-weight: bold;">{{ teacher.name }}</view> <view class="" style="font-size: 32rpx;font-weight: bold;">{{ teacher.name }}</view>
<view class="" style="font-size: 24rpx;margin-left: 30rpx;margin-top: 6rpx;color: #999999;">课程讲师</view> <view class=""
style="font-size: 24rpx;margin-left: 30rpx;margin-top: 6rpx;color: #999999;">课程讲师
</view>
</view> </view>
<view class="" style="font-size: 24rpx;margin-top: 30rpx;">{{ teacherIntro }}</view> <view class="" style="font-size: 24rpx;margin-top: 30rpx;">{{ teacherIntro }}</view>
</view> </view>
</view> </view>
<view class="learn-view-title">目录</view> <view class="learn-view-title">目录</view>
<view class="" style="display: flex;overflow: auto;padding-top: 30rpx;padding-bottom: 30rpx;"> <view class="catalogue">
<view v-for="(item, index) in list" :key="index"> <view v-for="(item, index) in list" :key="index">
<view @click="goNext(item)" class="list-cell list-default" :class="{'list-default-active': item.isActive}" style="width:280rpx;height:150rpx;margin-left: 20rpx;padding: 20rpx;border-radius: 12rpx;"> <view @click="goNext(item)" class="list-cell list-default"
:class="{'list-default-active': item.isActive}"
style="width:280rpx;height:150rpx;margin-left: 20rpx;padding: 20rpx;border-radius: 12rpx;">
<view class="" style="font-size: 24rpx;">{{ item.title }}</view> <view class="" style="font-size: 24rpx;">{{ item.title }}</view>
<view class="" style="font-size: 26rpx;margin-top: 16rpx;"> <view class="" style="font-size: 26rpx;margin-top: 16rpx;">
{{ item.intro }} {{ item.intro }}
</view> </view>
</view> </view>
</view> </view>
...@@ -70,14 +75,41 @@ ...@@ -70,14 +75,41 @@
section_id: 0, section_id: 0,
active_section_id: 0, active_section_id: 0,
isShowVideo: false, isShowVideo: false,
CourseSectionlist: {name: '', content: ''}, //节信息 CourseSectionlist: {
list: [ name: '',
{'title': '第1节', 'intro': '考核规则1:接单及 时率', 'isActive': true, "id": null}, content: ''
{'title': '第2节', 'intro': '考核规则1:接单及 时率', 'isActive': false, "id": null}, }, //节信息
{'title': '第3节', 'intro': '考核规则1:接单及 时率', 'isActive': false, "id": null}, list: [{
{'title': '第4节', 'intro': '考核规则1:接单及 时率', 'isActive': false, "id": null}, 'title': '第1节',
{'title': '第5节', 'intro': '考核规则1:接单及 时率', 'isActive':false, "id": null}, 'intro': '考核规则1:接单及 时率',
], 'isActive': true,
"id": null
},
{
'title': '第2节',
'intro': '考核规则1:接单及 时率',
'isActive': false,
"id": null
},
{
'title': '第3节',
'intro': '考核规则1:接单及 时率',
'isActive': false,
"id": null
},
{
'title': '第4节',
'intro': '考核规则1:接单及 时率',
'isActive': false,
"id": null
},
{
'title': '第5节',
'intro': '考核规则1:接单及 时率',
'isActive': false,
"id": null
},
],
teacher: { teacher: {
name: "", name: "",
avatar: "" avatar: ""
...@@ -100,8 +132,8 @@ ...@@ -100,8 +132,8 @@
fullscreenToggle: true //全屏按钮 fullscreenToggle: true //全屏按钮
} }
}, },
params:{ params: {
course_id:null, course_id: null,
}, },
gklog: '', gklog: '',
videoTotalTime: 0, videoTotalTime: 0,
...@@ -154,7 +186,7 @@ ...@@ -154,7 +186,7 @@
// #endif // #endif
}, },
methods: { methods: {
goNext(info){ goNext(info) {
uni.navigateTo({ uni.navigateTo({
url: "./section?section_id=" + info.id + "&course_id=" + info.course_id url: "./section?section_id=" + info.id + "&course_id=" + info.course_id
}); });
...@@ -207,7 +239,7 @@ ...@@ -207,7 +239,7 @@
this.section_id = res.data.id; this.section_id = res.data.id;
this.section_content = res.data.content; this.section_content = res.data.content;
this.teacher.name = res.data.teachers[0].name; this.teacher.name = res.data.teachers[0].name;
this.teacher.avatar = res.data.teachers[0].avatar; this.teacherImage = res.data.teachers[0].avatar;
this.teacherIntro = res.data.teachers[0].intro.replace(/<p.*?>|<\/p>/ig, ""); this.teacherIntro = res.data.teachers[0].intro.replace(/<p.*?>|<\/p>/ig, "");
this.params.course_id = res.data.course_id; this.params.course_id = res.data.course_id;
if (this.isShowVideo) { if (this.isShowVideo) {
...@@ -215,7 +247,7 @@ ...@@ -215,7 +247,7 @@
this.courseSrc = coureWareList[0].src; this.courseSrc = coureWareList[0].src;
this.videoTotalTime = parseInt(JSON.parse(coureWareList[0].info).time); this.videoTotalTime = parseInt(JSON.parse(coureWareList[0].info).time);
console.log('视频时长信息:' + this.videoTotalTime); console.log('视频时长信息:' + this.videoTotalTime);
}else{ } else {
this.updateLearnedStatusForText(); this.updateLearnedStatusForText();
} }
} }
...@@ -287,10 +319,11 @@ ...@@ -287,10 +319,11 @@
this.list = res.data[0].section; this.list = res.data[0].section;
this.courseTotal = this.list.length; this.courseTotal = this.list.length;
let length = this.list.length; let length = this.list.length;
for(let i = 0; i < length; i++){ for (let i = 0; i < length; i++) {
this.list[i].title = "第" + (i + 1) + "节"; this.list[i].title = "第" + (i + 1) + "节";
this.list[i].intro = this.list[i].name; this.list[i].intro = this.list[i].name;
this.list[i].isActive = this.active_section_id == this.list[i].id ? true : false; this.list[i].isActive = this.active_section_id == this.list[i].id ? true :
false;
} }
console.log('--select-list--') console.log('--select-list--')
console.log(this.list) console.log(this.list)
...@@ -413,6 +446,7 @@ ...@@ -413,6 +446,7 @@
// margin-bottom: 20rpx; // margin-bottom: 20rpx;
font-size: 32rpx; font-size: 32rpx;
color: #333333; color: #333333;
height: 820rpx;
.learn-view-title { .learn-view-title {
font-size: 32rpx; font-size: 32rpx;
...@@ -443,13 +477,13 @@ ...@@ -443,13 +477,13 @@
padding: 40rpx 30rpx; padding: 40rpx 30rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
.list-default { .list-default {
background-color: #F4F5F7; background-color: #F4F5F7;
border-radius: 12rpx; border-radius: 12rpx;
color: #333333; color: #333333;
} }
.list-default-active { .list-default-active {
background-color: #ffffff; background-color: #ffffff;
border-radius: 12rpx; border-radius: 12rpx;
...@@ -457,8 +491,16 @@ ...@@ -457,8 +491,16 @@
border: 2rpx solid #2272FF; border: 2rpx solid #2272FF;
box-sizing: border-box; box-sizing: border-box;
} }
.color-teacher { .color-teacher {
color: #999999; color: #999999;
} }
.catalogue {
display: flex;
overflow: auto;
padding-top: 30rpx;
padding-bottom: 30rpx;
padding-right: 30rpx;
}
</style> </style>
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
<view class="class-item" :key="groupIndex" v-show="current == groupIndex"> <view class="class-item" :key="groupIndex" v-show="current == groupIndex">
<view class="title" v-if="groupItem.name !== '基本信息'">{{groupItem.name}}</view> <view class="title" v-if="groupItem.name !== '基本信息'">{{groupItem.name}}</view>
<view class="class-bd"> <view class="class-bd">
<u-form-item v-for="(item,itemIndex) in groupItem.items" :key="itemIndex" <u-form-item v-for="(item,itemIndex) in groupItem.items" :key="itemIndex" v-if="typeToComponentType(item.fieldsType)!=='location'"
label-position="top" :prop="item.fieldsName" :border-bottom="false"> label-position="top" :prop="item.fieldsName" :border-bottom="false" v-show="item.fieldsId != 200 || show200">
<view :class="[{'label-bold': groupItem.name === '基本信息'}, 'label']" v-if="typeToComponentType(item.fieldsType)!=='location'"> <view :class="[{'label-bold': groupItem.name === '基本信息'}, 'label']">
<image class="item-image" :src="mixingImage" v-if="item.required"></image> <image class="item-image" :src="mixingImage" v-if="item.required"></image>
{{item.fieldsTitle}} {{item.fieldsTitle}}
</view> </view>
...@@ -124,6 +124,7 @@ ...@@ -124,6 +124,7 @@
inGuaranteePeriod:'', inGuaranteePeriod:'',
list: [], list: [],
tabIndex: 0, tabIndex: 0,
show200: true, // 基础信息显示金额输入框
scrollTop: 0, //tab标题的滚动条位置 scrollTop: 0, //tab标题的滚动条位置
oldScrollTop: 0, oldScrollTop: 0,
current: 0, // 预设当前项的值 current: 0, // 预设当前项的值
...@@ -385,6 +386,7 @@ ...@@ -385,6 +386,7 @@
if (groupItem.items) { if (groupItem.items) {
innerItem = groupItem.items[data.itemIndex] innerItem = groupItem.items[data.itemIndex]
} }
if(innerItem.fieldsType ==='multiInput'){ if(innerItem.fieldsType ==='multiInput'){
// 多个输入框的值触发 // 多个输入框的值触发
let key = Object.keys(data.value)[0] let key = Object.keys(data.value)[0]
...@@ -392,6 +394,7 @@ ...@@ -392,6 +394,7 @@
}else{ }else{
this.$set(this.form,innerItem.fieldsName,data.value) this.$set(this.form,innerItem.fieldsName,data.value)
} }
this.show200 = innerItem.fieldsId != 199 || data.value != '03'
console.log(this.form) console.log(this.form)
}, },
nextStep() { nextStep() {
......
...@@ -78,15 +78,23 @@ ...@@ -78,15 +78,23 @@
<view v-if="orderRecords.length == 0" class="no-record-view">当前暂无履约记录</view> <view v-if="orderRecords.length == 0" class="no-record-view">当前暂无履约记录</view>
<view v-else> <view v-else>
<view class="record-line-view"> <view class="record-line-view">
<view class="order-cell between-cell" v-for="(record,index) in shwoOrderRecords" :key="record.operationContent"> <view class="order-cell display-cell" v-for="(record,index) in shwoOrderRecords" :key="record.operationContent">
<view class="node-view"></view> <view class="node-view"></view>
<view class="line-view-left"> <view class="line-view-left">
<text>{{$u.timeFormat(record.operationDatetime, 'yyyy.mm.dd hh:MM:ss')}} </text> <text>{{$u.timeFormat(record.operationDatetime, 'yyyy.mm.dd \n hh:MM:ss')}} </text>
</view> </view>
<text v-show="record.operationType==='报备'"> {{record.orderRecordRemark}}</text>
<view class="line-view-right"> <view class="line-view-right">
<text style="color: red;">{{record.overTime?'(超时)':''}}{{record.exception?'(异常)':''}}</text> <view>
<text>{{record.operationType}}</text> <text>{{record.operationType}}</text>
<text style="color: red;">{{record.overTime?'(超时)':''}}{{record.exception?'(异常)':''}}</text>
</view>
<view v-show="record.operationType==='报备' || record.operationType==='改约'">
<text>{{record.operationType==='报备' ? '下次联系时间:' : '改约时间:'}}</text>
<text style="color: #2272FF;">{{
record.operationType==='报备' && record.orderRecordRemark && record.orderRecordRemark.length>1?
record.orderRecordRemark.substring(record.orderRecordRemark.indexOf(':')+1,record.orderRecordRemark.length)
:record.orderRecordRemark}}</text>
</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -340,13 +348,15 @@ ...@@ -340,13 +348,15 @@
contactTime() { contactTime() {
let self = this let self = this
var data={} var data={}
self.$u.api.contactTime(data,this.order.orderId).then((res)=>{ if(this.submitType === "workerAppointment"){
if (res.code == 200) { self.$u.api.contactTime(data,this.order.orderId).then((res)=>{
console.log("===", res.data) if (res.code == 200) {
} else { console.log("===", res.data)
console.log(res.message); } else {
} console.log(res.message);
}) }
})
}
}, },
handleClickRight(active) { handleClickRight(active) {
this.scenePhoto ? this.scenePhotoClick() : this.take() this.scenePhoto ? this.scenePhotoClick() : this.take()
...@@ -499,6 +509,7 @@ ...@@ -499,6 +509,7 @@
// 已派单的时显示拒单按钮 // 已派单的时显示拒单按钮
this.allowRejection = true this.allowRejection = true
this.submitType = "orderAccept" this.submitType = "orderAccept"
this.readMore = false
} else if (orderStatus < 31 && orderBusinessType === '订单池') { } else if (orderStatus < 31 && orderBusinessType === '订单池') {
// 抢单 // 抢单
this.centerButton = "appoint1" this.centerButton = "appoint1"
...@@ -506,6 +517,7 @@ ...@@ -506,6 +517,7 @@
this.showCenterBtn = true this.showCenterBtn = true
this.submitType = "orderGan" this.submitType = "orderGan"
this.showTimeOut=false this.showTimeOut=false
this.readMore = false
} else if (orderStatus === 31 && !this.order.appointmentDatetime) { } else if (orderStatus === 31 && !this.order.appointmentDatetime) {
// 预约 // 预约
this.centerButton = "appoint2" this.centerButton = "appoint2"
...@@ -514,6 +526,7 @@ ...@@ -514,6 +526,7 @@
this.showCenterBtn = true this.showCenterBtn = true
this.showTimeSelect = true this.showTimeSelect = true
this.isAllowDianhuaAndDaohang = true this.isAllowDianhuaAndDaohang = true
this.readMore = true
this.submitType = "workerAppointment" this.submitType = "workerAppointment"
this.loadCalendar() this.loadCalendar()
} else if (orderStatus === 31 && this.order.appointmentDatetime) { } else if (orderStatus === 31 && this.order.appointmentDatetime) {
...@@ -534,6 +547,7 @@ ...@@ -534,6 +547,7 @@
this.allowFeedback = true this.allowFeedback = true
this.showCenterBtn = true this.showCenterBtn = true
this.scenePhoto = true this.scenePhoto = true
this.readMore = true
this.isAllowDianhuaAndDaohang = true this.isAllowDianhuaAndDaohang = true
} else {} } else {}
}, },
...@@ -627,7 +641,7 @@ ...@@ -627,7 +641,7 @@
clickFeedback(){ clickFeedback(){
// 过程反馈 // 过程反馈
uni.navigateTo({ uni.navigateTo({
url: 'pages/order/feedback?orderId='+this.order.orderId+'&categoryId='+this.order.categoryId url: 'pages/order/feedback?orderId='+this.order.orderId+'&categoryId='+this.order.categoryId+'&showGY=' + (this.centerButtonText != '预约' ? '1' : '0')
}) })
}, },
filish(){ filish(){
...@@ -903,11 +917,11 @@ ...@@ -903,11 +917,11 @@
margin-left: 6rpx; margin-left: 6rpx;
} }
.line-view-left { .line-view-left {
width: 270rpx; width: 170rpx;
flex-shrink: 0; flex-shrink: 0;
} }
.line-view-right { .line-view-right {
text-align: right; // text-align: right;
} }
.record-line-view ::before { .record-line-view ::before {
...@@ -1063,6 +1077,9 @@ ...@@ -1063,6 +1077,9 @@
justify-content: space-between; justify-content: space-between;
align-items: flex-start; align-items: flex-start;
} }
.display-cell {
display: flex;
}
.cell-title { .cell-title {
text-align: left; text-align: left;
flex-shrink: 0; flex-shrink: 0;
......
...@@ -75,6 +75,7 @@ export default { ...@@ -75,6 +75,7 @@ export default {
return { return {
orderId: null, orderId: null,
categoryId: null, categoryId: null,
showGY: true, // 非预约进来才显示改约
background: { background: {
backgroundColor: 'none' backgroundColor: 'none'
}, },
...@@ -156,6 +157,7 @@ export default { ...@@ -156,6 +157,7 @@ export default {
if (e) { if (e) {
this.orderId = e.orderId || null; this.orderId = e.orderId || null;
this.categoryId = e.categoryId || null; this.categoryId = e.categoryId || null;
this.showGY = e.showGY == '1'
} }
uni.showLoading({ uni.showLoading({
title: '数据加载中', title: '数据加载中',
...@@ -171,7 +173,18 @@ export default { ...@@ -171,7 +173,18 @@ export default {
let params = { categoryId: self.categoryId }; let params = { categoryId: self.categoryId };
let res = await self.$u.api.feedbackConfig(params); let res = await self.$u.api.feedbackConfig(params);
if (res && res.code == 200) { if (res && res.code == 200) {
self.feedback = res.data;
if (!self.showGY) {
delete res.code['改约']
}
var data = {}
for (var item in res.data) {
if (item != '改约' || self.showGY) {
data[item] = res.data[item]
}
}
self.feedback = data;
self.buildConfig(); self.buildConfig();
} }
uni.hideLoading(); uni.hideLoading();
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</view> </view>
<u-loadmore :status="loadStatus" bgColor="#F4F5F7"></u-loadmore> <u-loadmore :status="loadStatus" bgColor="#F4F5F7"></u-loadmore>
</view> </view>
<view v-else="search.keyword" class="empty-result"> <view v-else-if="loaded" class="empty-result">
<u-image width="374" height="256" :src="searchEmpty"> <u-image width="374" height="256" :src="searchEmpty">
<u-loading slot="loading"></u-loading> <u-loading slot="loading"></u-loading>
</u-image> </u-image>
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
orderStatusRangeType: '', orderStatusRangeType: '',
}, },
orderList: [], orderList: [],
loaded: false,
}; };
}, },
onLoad() { onLoad() {
...@@ -85,6 +85,7 @@ ...@@ -85,6 +85,7 @@
// 状态处理 // 状态处理
self.search.pageNumber += 1 self.search.pageNumber += 1
self.loaded = false
self.$u.api.listOrder(self.search).then((res) => { self.$u.api.listOrder(self.search).then((res) => {
if (res.code == 200) { if (res.code == 200) {
if (res.data) { if (res.data) {
...@@ -94,6 +95,7 @@ ...@@ -94,6 +95,7 @@
} else { } else {
self.$u.toast(res.message); self.$u.toast(res.message);
} }
self.loaded = true
}); });
}, },
......
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