|
@@ -14,11 +14,10 @@
|
|
|
}"></u-tabs>
|
|
|
</view> -->
|
|
|
<view class="top-content">
|
|
|
-
|
|
|
- <view class="fixed1"></view>
|
|
|
+
|
|
|
+ <view class="fixed1"></view>
|
|
|
<view class="fix-content">
|
|
|
- <u-search placeholder="搜索订单"
|
|
|
- v-model="searchKeyWord" bgColor='white' :actionStyle='searchStyle'
|
|
|
+ <u-search placeholder="搜索订单" v-model="searchKeyWord" bgColor='white' :actionStyle='searchStyle'
|
|
|
@custom="getSearch" @search="getSearch" :clearabled="true"></u-search>
|
|
|
<view class="tab-content">
|
|
|
<u-tabs :list="tabList" @click="clickTab" lineColor='transparent' :current='tabIndex'
|
|
@@ -39,7 +38,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
</view>
|
|
|
<view class="all-menu">
|
|
|
<u-transition :show="showMenu" mode="fade">
|
|
@@ -50,71 +49,79 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</u-transition>
|
|
|
- <view @touchmove.stop.prevent="moveHandle" class="modal-black" v-show="showMenu" ></view>
|
|
|
+ <view @touchmove.stop.prevent="moveHandle" class="modal-black" v-show="showMenu"></view>
|
|
|
</view>
|
|
|
- <mescroll-body ref="mescrollRef" :up="upOption" @init="mescrollInit" @down="downCallback" @up="upCallback" class="mescroll">
|
|
|
- <view class="evaluatePage flex flex-space-between" v-show="tabIndex == 10" @click="evaluationRecord">
|
|
|
- <view class="left flex flex-space-between">
|
|
|
- <!-- <u-icon size="20" name="edit-pen"></u-icon> -->
|
|
|
- <image class="pingjia" src="@/static/images/order/pingjia.png"></image>
|
|
|
- <view style="margin-left: 20prx;">我的评价</view>
|
|
|
- </view>
|
|
|
- <view class="right">
|
|
|
- <image style='width:12px;height:12px;' src="@/static/images/order/right.png"></image>
|
|
|
+ <mescroll-body ref="mescrollRef" :up="upOption" @init="mescrollInit" @down="downCallback" @up="upCallback"
|
|
|
+ class="mescroll">
|
|
|
+ <view class="evaluatePage flex flex-space-between" v-show="tabIndex == 10" @click="evaluationRecord">
|
|
|
+ <view class="left flex flex-space-between">
|
|
|
+ <!-- <u-icon size="20" name="edit-pen"></u-icon> -->
|
|
|
+ <image class="pingjia" src="@/static/images/order/pingjia.png"></image>
|
|
|
+ <view style="margin-left: 20prx;">我的评价</view>
|
|
|
+ </view>
|
|
|
+ <view class="right">
|
|
|
+ <image style='width:12px;height:12px;' src="@/static/images/order/right.png"></image>
|
|
|
<!-- <u-icon size="20" name="arrow-right"></u-icon> -->
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view :id="'good'+good.id" class="good-list" v-for="good in goods" :key="good.id"
|
|
|
- @click="toDetail(good.id)">
|
|
|
- <view style="padding: 0 35rpx 20rpx 35rpx;">
|
|
|
- <view class="flex flex-space-between row1">
|
|
|
- <view class="item1">
|
|
|
- {{good.orderNo}}
|
|
|
- <!-- {{good.goodsName}} -->
|
|
|
- </view>
|
|
|
- <view class="item2">
|
|
|
- {{good.cargoOwnerStatus}}
|
|
|
- </view>
|
|
|
+ <view :id="'good'+good.id" class="good-list" v-for="good in goods" :key="good.id"
|
|
|
+ @click="toDetail(good.id)">
|
|
|
+ <view style="padding: 0 35rpx 20rpx 35rpx;">
|
|
|
+ <view class="flex flex-space-between row1">
|
|
|
+ <view class="item1">
|
|
|
+ {{good.orderNo}}
|
|
|
+ <!-- {{good.goodsName}} -->
|
|
|
+ </view>
|
|
|
+ <view class="item2">
|
|
|
+ {{good.cargoOwnerStatus}}
|
|
|
</view>
|
|
|
- <view class="flex row2">
|
|
|
- <view class="left">
|
|
|
- <view class="top">
|
|
|
- <view class="ssx">{{$helper.getProvinceAbbreviation(good.sendPrivate?good.sendPrivate:good.sendCity)}}</view>
|
|
|
- <view class="level2-title">{{$helper.filterUrban(good.sendCity)}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="flex row2">
|
|
|
+ <view class="left">
|
|
|
+ <view class="top">
|
|
|
+ <view class="ssx">
|
|
|
+ {{$helper.getProvinceAbbreviation(good.sendPrivate?good.sendPrivate:good.sendCity)}}
|
|
|
</view>
|
|
|
- <view class="bottom">{{$helper.filterArea(good.sendArea)}}</view>
|
|
|
- </view>
|
|
|
- <view class="jt-image">
|
|
|
- <image class="jt-icon" src="@/static/images/order/jt.png" mode='widthFix'>
|
|
|
- </image>
|
|
|
+ <view class="level2-title">{{$helper.filterUrban(good.sendCity)}}</view>
|
|
|
</view>
|
|
|
+ <view class="bottom">{{$helper.filterArea(good.sendArea)}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="jt-image">
|
|
|
+ <image class="jt-icon" src="@/static/images/order/jt.png" mode='widthFix'>
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
|
|
|
- <view class="right">
|
|
|
- <view class="top">
|
|
|
- <view class="ssx">
|
|
|
- {{$helper.getProvinceAbbreviation(good.unloadPrivate?good.unloadPrivate:good.unloadCity)}}
|
|
|
- </view>
|
|
|
- <view class="level2-title">{{$helper.filterUrban(good.unloadCity)}}</view>
|
|
|
- </view>
|
|
|
- <view class="bottom">
|
|
|
- {{$helper.filterArea(good.unloadArea)}}
|
|
|
+ <view class="right">
|
|
|
+ <view class="top">
|
|
|
+ <view class="ssx">
|
|
|
+ {{$helper.getProvinceAbbreviation(good.unloadPrivate?good.unloadPrivate:good.unloadCity)}}
|
|
|
</view>
|
|
|
+ <view class="level2-title">{{$helper.filterUrban(good.unloadCity)}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="bottom">
|
|
|
+ {{$helper.filterArea(good.unloadArea)}}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="flex row3 s-row">
|
|
|
- <view class="flex align-center">
|
|
|
- <image class="hz" src="@/static/images/news/sj.png"></image>
|
|
|
- <view style="margin-right: 20rpx;" @click.stop="goTodriverDetail(good)">{{good.driverName}}</view>
|
|
|
- <!-- <view style="margin-right: 20rpx;">{{good.driverCall}}</view> -->
|
|
|
- <image class="hz-good" src="@/static/images/order/good-img.png"></image>
|
|
|
- <view>{{good.goodsName}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="flex row3 s-row">
|
|
|
+ <view class="flex align-center">
|
|
|
+ <image class="hz" src="@/static/images/news/sj.png"></image>
|
|
|
+ <view style="margin-right: 20rpx;" @click.stop="goTodriverDetail(good)">{{good.driverName}}
|
|
|
</view>
|
|
|
- <view class="flex align-center">
|
|
|
- <view style="margin-right: 20rpx;">运距 {{good.distance}}km</view>
|
|
|
- <view v-if="good.cargoOwnerStatus!='已完结'" class="car">{{good.freight?good.freight:good.freightInfo.freight}}{{good.billingMethod==0?'元/吨':'元/车'}}</view>
|
|
|
- <view v-else class="car">{{good.freight?good.freight:good.freightInfo.freight}}{{good.billingMethod==0?'元/吨':'元/车'}}</view>
|
|
|
+ <!-- <view style="margin-right: 20rpx;">{{good.driverCall}}</view> -->
|
|
|
+ <image class="hz-good" src="@/static/images/order/good-img.png"></image>
|
|
|
+ <view>{{good.goodsName}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="flex align-center">
|
|
|
+ <view style="margin-right: 20rpx;">运距 {{good.distance}}km</view>
|
|
|
+ <view v-if="good.cargoOwnerStatus!='已完结'" class="car">
|
|
|
+ {{good.freight?good.freight:good.freightInfo.freight}}{{good.billingMethod==0?'元/吨':'元/车'}}
|
|
|
</view>
|
|
|
- <!-- <view class="right">
|
|
|
+ <view v-else class="car">
|
|
|
+ {{good.freight?good.freight:good.freightInfo.freight}}{{good.billingMethod==0?'元/吨':'元/车'}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <!-- <view class="right">
|
|
|
<view class="flex fontsize-26 row">
|
|
|
<view>{{good.compName}}</view>
|
|
|
<view class="sline"></view>
|
|
@@ -124,47 +131,52 @@
|
|
|
<view class="fontsize-26 ">运距 {{good.distance}}km</view>
|
|
|
</view>
|
|
|
</view> -->
|
|
|
- </view>
|
|
|
- <view class="row4 flex align-center">
|
|
|
- <view class="time">{{good.updateDate}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="row4 flex align-center">
|
|
|
+ <view class="time">{{good.updateDate}}</view>
|
|
|
|
|
|
- </view>
|
|
|
- <view class="row5 flex flex-end">
|
|
|
- <!-- <image class="jt-icon" src="@/static/images/order/position.png" mode='widthFix'
|
|
|
+ </view>
|
|
|
+ <view class="row5 flex flex-end">
|
|
|
+ <!-- <image class="jt-icon" src="@/static/images/order/position.png" mode='widthFix'
|
|
|
@click.stop="toMap(good)">
|
|
|
</image> -->
|
|
|
- <view v-if="good.cargoOwnerStatus=='运输中'||good.cargoOwnerStatus=='已完结'" class="start normal look-map" @click.stop="toMap(good)">
|
|
|
- 查看轨迹</view>
|
|
|
- <view class="stop" @click.stop="accept(good,1)" v-if="good.cargoOwnerStatus=='待接单'">接受
|
|
|
- </view>
|
|
|
- <!-- <view class="stop active" @click.stop="accept(good,1)">接受</view> -->
|
|
|
- <view class="normal" @click.stop="accept(good,2)" v-if="good.cargoOwnerStatus=='待接单'">拒绝
|
|
|
- </view>
|
|
|
- <view class="normal" @click.stop="stop(good)" v-if="good.cargoOwnerStatus=='未装车'">终止</view>
|
|
|
- <!-- <view class="stop active" @click.stop="stop(good)">终止</view> -->
|
|
|
-
|
|
|
- <!-- confirmLoading(good,3) -->
|
|
|
- <view v-if="good.cargoOwnerStatus=='待确认装车'" class="start normal" @click.stop="toDetail(good.id)"
|
|
|
- >确认装车</view>
|
|
|
- <view v-if="good.cargoOwnerStatus=='司机驳回运费信息'" class="start normal" @click.stop="toDetail(good.id)">确认运费</view>
|
|
|
- <!-- <view class="start normal" @click.stop="confirmLoading(good,1)">确认装车</view> -->
|
|
|
- <view class="start normal" v-if="good.cargoOwnerStatus!='待接单'&&good.cargoOwnerStatus!='未装车'" @click.stop="$helper.contactCustomerService()">
|
|
|
- 联系客服</view>
|
|
|
- <view class="start normal" @click.stop="toDetail(good.id)"
|
|
|
- v-if="good.cargoOwnerStatus=='待收货'">确认卸车</view>
|
|
|
- <!-- <view class="start normal" @click.stop="confirmLoading(good,4)"
|
|
|
+ <view v-if="good.cargoOwnerStatus=='运输中'||good.cargoOwnerStatus=='已完结'"
|
|
|
+ class="start normal look-map" @click.stop="toMap(good)">
|
|
|
+ 查看轨迹</view>
|
|
|
+ <view class="stop" @click.stop="accept(good,1)" v-if="good.cargoOwnerStatus=='待接单'">接受
|
|
|
+ </view>
|
|
|
+ <!-- <view class="stop active" @click.stop="accept(good,1)">接受</view> -->
|
|
|
+ <view class="normal" @click.stop="accept(good,2)" v-if="good.cargoOwnerStatus=='待接单'">拒绝
|
|
|
+ </view>
|
|
|
+ <view class="normal" @click.stop="stop(good)" v-if="good.cargoOwnerStatus=='未装车'">终止</view>
|
|
|
+ <!-- <view class="stop active" @click.stop="stop(good)">终止</view> -->
|
|
|
+
|
|
|
+ <!-- confirmLoading(good,3) -->
|
|
|
+ <view v-if="good.cargoOwnerStatus=='待确认装车'" class="start normal"
|
|
|
+ @click.stop="toDetail(good.id)">确认装车</view>
|
|
|
+ <view v-if="good.cargoOwnerStatus=='司机驳回运费信息'" class="start normal"
|
|
|
+ @click.stop="toDetail(good.id)">确认运费</view>
|
|
|
+ <!-- <view class="start normal" @click.stop="confirmLoading(good,1)">确认装车</view> -->
|
|
|
+ <view class="start normal" v-if="good.cargoOwnerStatus!='待接单'&&good.cargoOwnerStatus!='未装车'"
|
|
|
+ @click.stop="$helper.contactCustomerService()">
|
|
|
+ 联系客服</view>
|
|
|
+ <view class="start normal" @click.stop="toDetail(good.id)" v-if="good.cargoOwnerStatus=='待收货'">
|
|
|
+ 确认卸车</view>
|
|
|
+ <!-- <view class="start normal" @click.stop="confirmLoading(good,4)"
|
|
|
v-if="good.cargoOwnerStatus=='待收货'">确认卸车</view> -->
|
|
|
- <!-- <view class="start normal" @click.stop="confirmLoading(good,2)">确认卸车</view> -->
|
|
|
- <!-- <view class="normal" @click.stop="stop(good)" v-if="good.cargoOwnerStatus=='已结算'">付款</view> -->
|
|
|
- <!-- <view class="normal" @click.stop="stop(good)"
|
|
|
+ <!-- <view class="start normal" @click.stop="confirmLoading(good,2)">确认卸车</view> -->
|
|
|
+ <!-- <view class="normal" @click.stop="stop(good)" v-if="good.cargoOwnerStatus=='已结算'">付款</view> -->
|
|
|
+ <!-- <view class="normal" @click.stop="stop(good)"
|
|
|
v-if="good.cargoOwnerStatus=='待还款'||good.cargoOwnerStatus=='已还款'">还款</view> -->
|
|
|
|
|
|
- <!-- <view class="start normal" @click.stop="addevaluation(good)" v-if="good.cargoOwnerStatus=='已完结'">评价</view> --><!-- driverEvaluated 为1是已评价过-->
|
|
|
- <view class="start normal" @click.stop="addevaluation(good)" v-if="good.cargoOwnerStatus=='已完结' && good.ownerEvaluated != 1" >评价</view>
|
|
|
- </view>
|
|
|
+ <!-- <view class="start normal" @click.stop="addevaluation(good)" v-if="good.cargoOwnerStatus=='已完结'">评价</view> -->
|
|
|
+ <!-- driverEvaluated 为1是已评价过-->
|
|
|
+ <view class="start normal" @click.stop="addevaluation(good)"
|
|
|
+ v-if="good.cargoOwnerStatus=='已完结' && good.ownerEvaluated != 1">评价</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </mescroll-body>
|
|
|
+ </view>
|
|
|
+ </mescroll-body>
|
|
|
<!-- </view> -->
|
|
|
<!-- <view v-else class="search-view">
|
|
|
<view class="flex">
|
|
@@ -192,26 +204,28 @@
|
|
|
</u-modal>
|
|
|
<u-popup :show="show" mode="bottom" @close="close" @open="open">
|
|
|
<view class="u-popup-wrap">
|
|
|
- <view >
|
|
|
- <image style='width:12px;height:12px;' @click='closepopup' class='close' src="../../static/images/order/guanbi@3x.png" mode=""></image>
|
|
|
+ <view>
|
|
|
+ <image style='width:12px;height:12px;' @click='closepopup' class='close'
|
|
|
+ src="../../static/images/order/guanbi@3x.png" mode=""></image>
|
|
|
<!-- <u-icon @click="closepopup" class='close' name="close" size="20"></u-icon> -->
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
<view style='fon-size:34rpx;margin-bottom:20px;text-align:center;font-weight: 600;'>确认终止订单</view>
|
|
|
<view style="margin: 0 auto;">
|
|
|
- <u-radio-group iconPlacement="right" v-model="radiovalue1" placement="" >
|
|
|
- <u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in radiolist1" :key="index"
|
|
|
- :label="item.name" :name="item.name" @change="radioChange" >
|
|
|
- </u-radio>
|
|
|
- </u-radio-group>
|
|
|
- </view>
|
|
|
- <view style='border-top:10px solid #F2F4F7;position:absolute;left:0;height:0;width:100%;'></view>
|
|
|
- <view style='padding:40rpx 0 30rpx;'>终止原因描述</view>
|
|
|
- <u--textarea class="row" v-model="value2" placeholder="终止原因描述" count maxlength='50'>
|
|
|
- </u--textarea>
|
|
|
- <view class='termination' :class="{'active':value2.length>0}" @click='$u.throttle(termination, 5000)'>终止</view>
|
|
|
+ <u-radio-group iconPlacement="right" v-model="radiovalue1" placement="">
|
|
|
+ <u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in radiolist1" :key="index"
|
|
|
+ :label="item.name" :name="item.name" @change="radioChange">
|
|
|
+ </u-radio>
|
|
|
+ </u-radio-group>
|
|
|
+ </view>
|
|
|
+ <view style='border-top:10px solid #F2F4F7;position:absolute;left:0;height:0;width:100%;'></view>
|
|
|
+ <view style='padding:40rpx 0 30rpx;'>终止原因描述</view>
|
|
|
+ <u--textarea class="row" v-model="value2" placeholder="终止原因描述" count maxlength='50'>
|
|
|
+ </u--textarea>
|
|
|
+ <view class='termination' :class="{'active':value2.length>0}" @click='$u.throttle(termination, 5000)'>终止
|
|
|
+ </view>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
</u-popup>
|
|
|
<u-toast ref="uToast"></u-toast>
|
|
|
</view>
|
|
@@ -228,14 +242,14 @@
|
|
|
apiGoods
|
|
|
} from "@/api/mock.js"
|
|
|
export default {
|
|
|
- components:{
|
|
|
+ components: {
|
|
|
uniPopup
|
|
|
},
|
|
|
mixins: [MescrollMixin], // 使用mixin
|
|
|
data() {
|
|
|
return {
|
|
|
confirmText: '',
|
|
|
- show:false,
|
|
|
+ show: false,
|
|
|
showCancelButton: true,
|
|
|
type: null,
|
|
|
objData: {},
|
|
@@ -246,16 +260,16 @@
|
|
|
position: "absolute",
|
|
|
right: "30rpx",
|
|
|
padding: "6rpx 20rpx",
|
|
|
- margin:'0 20rpx 0 0',
|
|
|
+ margin: '0 20rpx 0 0',
|
|
|
"border-radius": '30rpx'
|
|
|
},
|
|
|
upOption: {
|
|
|
page: {
|
|
|
- size: 10 // 每页数据的数量,默认10
|
|
|
- },
|
|
|
- noMoreSize: 0, // 配置列表的总数量要大于等于5条才显示'-- END --'的提示
|
|
|
+ size: 10 // 每页数据的数量,默认10
|
|
|
+ },
|
|
|
+ noMoreSize: 0, // 配置列表的总数量要大于等于5条才显示'-- END --'的提示
|
|
|
empty: {
|
|
|
- tip: '暂无相关数据'
|
|
|
+ tip: '没有更多记录啦!'
|
|
|
}
|
|
|
},
|
|
|
searchKeyWord: '',
|
|
@@ -345,7 +359,7 @@
|
|
|
//#endif
|
|
|
},
|
|
|
onLoad() {
|
|
|
-
|
|
|
+
|
|
|
// that = this
|
|
|
// // #ifdef APP-PLUS
|
|
|
// let _status = await that.$request.baseRequest('get', '/cargoOwnerInfo/firstAuthentication', {
|
|
@@ -354,7 +368,7 @@
|
|
|
// if(res.data){
|
|
|
// return res.data.authenticationStatus
|
|
|
// }
|
|
|
-
|
|
|
+
|
|
|
// })
|
|
|
// if (_status == '已禁用') {
|
|
|
// this.isShowAlert = true
|
|
@@ -375,7 +389,7 @@
|
|
|
that.$request.baseRequest('get', '/newsInfo/unreadMessage', {
|
|
|
reCommonId: this.userInfo.id,
|
|
|
}).then(res3 => {
|
|
|
- if (res3.data||res3.data==0) {
|
|
|
+ if (res3.data || res3.data == 0) {
|
|
|
let name = 'myTip';
|
|
|
let value = res3.data
|
|
|
if (value == 0) {
|
|
@@ -417,28 +431,30 @@
|
|
|
|
|
|
// },
|
|
|
methods: {
|
|
|
- closepopup(){
|
|
|
- this.show=false
|
|
|
+ closepopup() {
|
|
|
+ this.show = false
|
|
|
},
|
|
|
- moveHandle(){
|
|
|
+ moveHandle() {
|
|
|
// console.log(1111)
|
|
|
},
|
|
|
open() {
|
|
|
- // console.log('open');
|
|
|
+ // console.log('open');
|
|
|
},
|
|
|
close() {
|
|
|
this.show = false
|
|
|
- // console.log('close');
|
|
|
+ // console.log('close');
|
|
|
},
|
|
|
- goTodriverDetail(val){
|
|
|
- uni.$u.route('/pages/order/driverDetail',{
|
|
|
- driver:JSON.stringify(val)
|
|
|
+ goTodriverDetail(val) {
|
|
|
+ uni.$u.route('/pages/order/driverDetail', {
|
|
|
+ driver: JSON.stringify(val)
|
|
|
});
|
|
|
},
|
|
|
- addevaluation(val){
|
|
|
- uni.$u.route('/pages/order/addEvaluation',{val:JSON.stringify(val)});
|
|
|
+ addevaluation(val) {
|
|
|
+ uni.$u.route('/pages/order/addEvaluation', {
|
|
|
+ val: JSON.stringify(val)
|
|
|
+ });
|
|
|
},
|
|
|
- evaluationRecord(){
|
|
|
+ evaluationRecord() {
|
|
|
uni.$u.route('/pages/order/evaluationRecord');
|
|
|
},
|
|
|
toMap(val) {
|
|
@@ -519,7 +535,7 @@
|
|
|
// } else {
|
|
|
// this.isShowTerminationReason = true
|
|
|
// }
|
|
|
- // this.alertTitle = '确定终止订单?'
|
|
|
+ // this.alertTitle = '确定终止订单?'
|
|
|
this.id = item.id
|
|
|
this.show = true
|
|
|
},
|
|
@@ -529,8 +545,8 @@
|
|
|
del() {
|
|
|
this.isShowAlert = true
|
|
|
},
|
|
|
- termination(){
|
|
|
- var that=this
|
|
|
+ termination() {
|
|
|
+ var that = this
|
|
|
let _terminationReason = ''
|
|
|
if (this.radiovalue1 == '已与司机协商') {
|
|
|
_terminationReason = 1
|
|
@@ -541,33 +557,33 @@
|
|
|
} else if (this.radiovalue1 == '其他') {
|
|
|
_terminationReason = 4
|
|
|
}
|
|
|
- this.$request.baseRequest('post', '/orderInfo/api/end', {
|
|
|
- id: this.id,
|
|
|
- terminator: 2,
|
|
|
- terminationReason: _terminationReason,
|
|
|
- terminationReasonDescription: this.value2
|
|
|
- }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.show=false
|
|
|
- this.value2=''
|
|
|
- this.$refs.uToast.show({
|
|
|
- type: 'success',
|
|
|
- message: '终止订单成功',
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.$refs.uToast.show({
|
|
|
- type: 'success',
|
|
|
- message: '终止订单失败',
|
|
|
- })
|
|
|
- }
|
|
|
- that.mescroll.resetUpScroll()
|
|
|
- })
|
|
|
- .catch(res => {
|
|
|
- uni.$u.toast(res.message);
|
|
|
- });
|
|
|
+ this.$request.baseRequest('post', '/orderInfo/api/end', {
|
|
|
+ id: this.id,
|
|
|
+ terminator: 2,
|
|
|
+ terminationReason: _terminationReason,
|
|
|
+ terminationReasonDescription: this.value2
|
|
|
+ }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.show = false
|
|
|
+ this.value2 = ''
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'success',
|
|
|
+ message: '终止订单成功',
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'success',
|
|
|
+ message: '终止订单失败',
|
|
|
+ })
|
|
|
+ }
|
|
|
+ that.mescroll.resetUpScroll()
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ uni.$u.toast(res.message);
|
|
|
+ });
|
|
|
},
|
|
|
confirmClick() {
|
|
|
- var that =this
|
|
|
+ var that = this
|
|
|
// // #ifdef APP-PLUS
|
|
|
// if (this.alertTitle == '账号审核中') {
|
|
|
// if (uni.getSystemInfoSync().platform == 'ios') {
|
|
@@ -595,7 +611,10 @@
|
|
|
type: 'success',
|
|
|
message: _title,
|
|
|
complete() {
|
|
|
- that.upCallback({size: 10,num: 1})
|
|
|
+ that.upCallback({
|
|
|
+ size: 10,
|
|
|
+ num: 1
|
|
|
+ })
|
|
|
that.mescroll.resetUpScroll()
|
|
|
}
|
|
|
})
|
|
@@ -609,7 +628,10 @@
|
|
|
type: 'success',
|
|
|
message: _title,
|
|
|
complete() {
|
|
|
- that.upCallback({size: 10,num: 1})
|
|
|
+ that.upCallback({
|
|
|
+ size: 10,
|
|
|
+ num: 1
|
|
|
+ })
|
|
|
that.mescroll.resetUpScroll()
|
|
|
}
|
|
|
})
|
|
@@ -644,7 +666,7 @@
|
|
|
.catch(res => {
|
|
|
uni.$u.toast(res.message);
|
|
|
});
|
|
|
- }
|
|
|
+ }
|
|
|
},
|
|
|
cancelClick() {
|
|
|
this.isShowAlert = false
|
|
@@ -709,12 +731,15 @@
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
- .content{
|
|
|
+ .content {
|
|
|
padding-bottom: 160px;
|
|
|
}
|
|
|
- .ssx{
|
|
|
- position:relative;top:3rpx;
|
|
|
+
|
|
|
+ .ssx {
|
|
|
+ position: relative;
|
|
|
+ top: 3rpx;
|
|
|
}
|
|
|
+
|
|
|
.top-content {
|
|
|
background: url(../../static/images/order/bg.png) no-repeat;
|
|
|
background-size: cover;
|
|
@@ -725,7 +750,8 @@
|
|
|
// margin-top: var(--status-bar-height);
|
|
|
// padding-bottom: 320rpx;
|
|
|
}
|
|
|
- .fix-content{
|
|
|
+
|
|
|
+ .fix-content {
|
|
|
// width: 96%;
|
|
|
margin-right: 20rpx;
|
|
|
}
|
|
@@ -1081,48 +1107,57 @@
|
|
|
|
|
|
.look-map {
|
|
|
background: #2772FB;
|
|
|
- border:1px solid #2772FB;
|
|
|
+ border: 1px solid #2772FB;
|
|
|
color: white;
|
|
|
}
|
|
|
- .evaluatePage{
|
|
|
+
|
|
|
+ .evaluatePage {
|
|
|
background: white;
|
|
|
margin: 20rpx;
|
|
|
padding: 20rpx;
|
|
|
border-radius: 20rpx;
|
|
|
}
|
|
|
- /deep/.u-popup__content{
|
|
|
+
|
|
|
+ /deep/.u-popup__content {
|
|
|
border-radius: 10px;
|
|
|
// padding:20px;
|
|
|
}
|
|
|
- /deep/.u-radio{
|
|
|
- margin:40rpx 0;
|
|
|
+
|
|
|
+ /deep/.u-radio {
|
|
|
+ margin: 40rpx 0;
|
|
|
}
|
|
|
- .close{
|
|
|
- position:absolute;
|
|
|
- right:20px;
|
|
|
- top:26px;
|
|
|
+
|
|
|
+ .close {
|
|
|
+ position: absolute;
|
|
|
+ right: 20px;
|
|
|
+ top: 26px;
|
|
|
}
|
|
|
- .termination{
|
|
|
- background:#F1F3F6;
|
|
|
- color:#C5CAD4;
|
|
|
- padding:10px;
|
|
|
- border-radius:30px;
|
|
|
+
|
|
|
+ .termination {
|
|
|
+ background: #F1F3F6;
|
|
|
+ color: #C5CAD4;
|
|
|
+ padding: 10px;
|
|
|
+ border-radius: 30px;
|
|
|
text-align: center;
|
|
|
- margin-top:30rpx;
|
|
|
+ margin-top: 30rpx;
|
|
|
}
|
|
|
- .termination.active{
|
|
|
+
|
|
|
+ .termination.active {
|
|
|
background: #2772FB;
|
|
|
color: white;
|
|
|
}
|
|
|
- .quanbu{
|
|
|
- width:16px;
|
|
|
- height:16px;
|
|
|
+
|
|
|
+ .quanbu {
|
|
|
+ width: 16px;
|
|
|
+ height: 16px;
|
|
|
}
|
|
|
- .pingjia{
|
|
|
- width:14px;
|
|
|
- height:14px;
|
|
|
+
|
|
|
+ .pingjia {
|
|
|
+ width: 14px;
|
|
|
+ height: 14px;
|
|
|
}
|
|
|
- .u-popup-wrap{
|
|
|
- padding:20px;
|
|
|
+
|
|
|
+ .u-popup-wrap {
|
|
|
+ padding: 20px;
|
|
|
}
|
|
|
</style>
|