Commit 919226d6 authored by zhengke's avatar zhengke

修改

parent cc5bd543
......@@ -100,8 +100,8 @@
{{item.title}}
</view>
<view style="margin-left:10px;">
<u-icon name="arrow-down" @click="getShow(item)" v-if="item.isShowHalf" color="#2979ff" size="28"></u-icon>
<u-icon name="arrow-up" @click="getShow(item)" v-else color="#2979ff" size="28"></u-icon>
<u-icon name="arrow-down" @click.native.stop="getShow(item)" v-if="item.isShowHalf" color="#2979ff" size="28"></u-icon>
<u-icon name="arrow-up" @click.native.stop="getShow(item)" v-else color="#2979ff" size="28"></u-icon>
</view>
<view class="jz-Oright">
{{item.orderStateName=='占位'?'待付款':item.orderStateName}}
......@@ -267,7 +267,6 @@
},
//取消订单
goCancel(item) {
console.log(item, 'item');
//未付款-调用后台取消
if ((item.paymentTime == null||item.paymentTime=='')&&item.orderState==2) {
this.apipost(
......@@ -275,7 +274,7 @@
ID: item.orderId
},
res => {
if (res.data.resultCode == 1) {
if (res.resultCode == 1) {
uni.showToast({
title: '操作成功',
icon: 'success',
......
......@@ -195,10 +195,10 @@
padding:0 45rpx;
}
.jz_form .form-items{
margin-bottom: 20rpx;
margin-bottom: 30rpx;
display: flex;
align-items: center;
padding-bottom: 20rpx;
padding-bottom: 30rpx;
border-bottom:1px solid #f5f5f5;
font-size: 28px;
font-weight: 500;
......@@ -320,6 +320,12 @@
line-height: 40rpx;
margin-right: 24rpx;
}
.jz_Reserve .jz_SureVal{
flex: 1;
font-size: 28rpx;
font-weight: 500;
width: 100%;
}
</style>
<template>
<view class="jz_Reserve" v-if="orderData">
......@@ -369,32 +375,32 @@
<view class="jz_form">
<view class="form-items">
<view class="label">订单编号</view>
<view class="val">
<text>{{orderData.model.OrderId}}</text>
<view class="jz_SureVal">
{{orderData.model.OrderId}}
</view>
</view>
<view class="form-items">
<view class="label">下单日期</view>
<view class="val">
<text>{{orderData.model.CreateDate.replace('T',' ')}}</text>
<view class="jz_SureVal">
{{orderData.model.CreateDate.replace('T',' ')}}
</view>
</view>
<view class="form-items">
<view class="label">下单日期</view>
<view class="val">
<text>{{orderData.model.CreateDate.replace('T',' ')}}</text>
<view class="jz_SureVal">
{{orderData.model.CreateDate.replace('T',' ')}}
</view>
</view>
<view class="form-items">
<view class="label">游客姓名</view>
<view class="val">
<text>{{orderData.model.ContactName}}</text>
<view class="jz_SureVal">
{{orderData.model.ContactName}}
</view>
</view>
<view class="form-items">
<view class="label">联系电话</view>
<view class="val">
<text>{{orderData.model.ContactMobile}}</text>
<view class="jz_SureVal">
{{orderData.model.ContactMobile}}
</view>
</view>
</view>
......@@ -524,6 +530,49 @@
goCancel(){
if(this.submit||this.submitCancel)
return;
//未付款-调用后台取消
if (this.orderData.model.OrderState==2) {
this.apipost(
"sellorder_post_B2BRemoveOrder", {
ID: this.orderData.model.OrderId
},
res => {
if (res.resultCode == 1) {
uni.showToast({
title: '操作成功',
icon: 'success',
})
uni.navigateTo({
url: "/pages/jiuzhai/jz_MyOrder"
});
}
},
err => {}
);
}
else{
let msg={
OrderId:this.orderData.model.OrderId,
UserId:uni.getStorageSync('mall_UserInfo').UserId
}
//已付款取消申请
this.apipost("sellorder_post_AppletUserCancelOrder", msg ,
res => {
if (res.resultCode == 1) {
uni.showToast({
title: '操作成功',
icon: 'success',
})
uni.navigateTo({
url: "/pages/jiuzhai/jz_MyOrder"
});
} else {
}
},
null
);
}
},
getWeek(date) {
var weekArray = new Array("日", "一", "二", "三", "四", "五", "六");
......
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