This commit is contained in:
Gdpao
2020-09-19 20:02:43 +08:00
parent a732778481
commit 49fe886234
9 changed files with 127 additions and 25 deletions

View File

@@ -146,6 +146,38 @@
<view class="refund" v-if="type == 5 ">退款状态:同意退款请注意查收</view>
<view class="refund" v-if="type == 6 ">退款状态:商家同意退款等待后台处理</view>
<view class="refund" v-if="type == 7 ">退款状态:商家拒绝退款请等待客服联系</view>
<view class="pain-box" v-if="type == 10 ">
<view class="info-container">
<view>
<view class="title">姓名</view>
<view class="value">{{ info.extend_order_common.reciver_name }}</view>
<image src="/static/image/home/chat.png" @click="tochat(info.buyer_id)"></image>
</view>
<view>
<view class="title">手机号</view>
<view class="value" @longtap="longtap(info.extend_order_common.reciver_info.mob_phone)">{{ info.extend_order_common.reciver_info.mob_phone }}</view>
</view>
<view>
<view class="title">收货地址</view>
<view class="value u-line-2" @longtap="longtap(info.extend_order_common.reciver_info.address)">{{ info.extend_order_common.reciver_info.address }}</view>
</view>
<view>
<view class="title">派送方式</view>
<view class="value u-line-1">{{ users_type == 0 ? "-" : users_type == 1 ? "快递" : users_type == 2 ? "骑手" : "自提" }}</view>
</view>
<view class="remark">
<view class="title">订单备注</view>
<view class="value" @longtap="longtap(info.extend_order_common.order_message)">{{ info.extend_order_common.order_message }}</view>
</view>
<view @click="showInvoice">
<view class="title">开具发票</view>
<view class="invoice">
<text>{{ is_invoice ? "是" : "否" }}</text>
<u-icon name="arrow-right" color="#999" size="20" style="margin-left: 10rpx;"></u-icon>
</view>
</view>
</view>
</view>
<u-popup v-model="showDelivery" mode="center" border-radius="10" class="delivery-popup">
<view class="title">骑手信息</view>
<view class="input-info">
@@ -813,6 +845,46 @@ export default {
}
}
}
.pain-box {
.info-container {
padding: 0 30rpx;
background-color: #ffffff;
margin-bottom: 20rpx;
.remark {
padding: 10rpx 0;
height: 100%;
min-height: 88rpx;
}
> view {
display: flex;
align-items: center;
height: 88rpx;
padding: 10rpx 0;
color: rgba(51, 51, 51, 1);
&:not(:last-child) {
border-bottom: 2rpx solid #ececec;
}
.title {
width: 150rpx;
font-size: 30rpx;
margin-right: 10rpx;
}
.value {
font-size: 26rpx;
flex: 1;
}
.invoice {
margin-left: auto;
font-size: 26rpx;
color: #333;
}
image{
width: 40rpx;
height: 40rpx;
}
}
}
}
.delivery {
flex: 1;
background-color: #ffffff;

View File

@@ -56,6 +56,12 @@
</view>
<u-empty margin-top="20" v-if="!badlist.length" mode="order"></u-empty>
</view>
<view v-else-if="current == 7">
<view v-for="(item, index) in paidList" :key="index">
<OrderItem :info="item"></OrderItem>
</view>
<u-empty margin-top="20" v-if="!paidList.length" mode="order"></u-empty>
</view>
<view class="release-btn" @click="publish">
<image src="../../static/image/index/publish.png"></image>
<view class="text">发布</view>
@@ -124,7 +130,10 @@ export default {
},
{
name: '退货订单'
}
},
{
name: '待支付订单'
}
],
imageList: [],
showSelect: false,
@@ -142,6 +151,7 @@ export default {
finshlist: [], //已完成列表
badlist: [], //退货列表
carlist: [], //可投诉订单列表
paidList: [], // 待支付订单
reportinfo: null, //投诉信息
reportcontent: '', //投诉内容
del_id: 0, // 删除id
@@ -178,6 +188,7 @@ export default {
this.badlist = [];
this.badlist = [];
this.testlist = [];
this.paidList = [];
},
// 根据current请求不同的接口
reset() {
@@ -202,7 +213,10 @@ export default {
} else if (current == 6) {
// 退货订单
this.getallorder(4);
}
} else if (current == 7) {
// 待支付订单
this.getallorder(10);
}
},
// 关闭发布弹窗
close() {
@@ -332,7 +346,9 @@ export default {
this.badlist.push(arr[index]);
} else if (type == 5) {
this.badlist.push(arr[index]);
}
} else if (type == 10) {
this.paidList.push(arr[index]);
}
}
}
});