update bug
This commit is contained in:
parent
e67e2fe701
commit
04a4ed523f
@ -1,18 +1,37 @@
|
||||
<template>
|
||||
<view class="details">
|
||||
<view class="goods-info">
|
||||
<image :src="info.extend_order_goods[0].goods_image"></image>
|
||||
<view class="info-right">
|
||||
<view class="name u-line-1">{{ info.extend_order_goods[0].goods_name }}</view>
|
||||
<view class="info">
|
||||
<view class="num">共{{ info.extend_order_goods[0].goods_num }}件商品</view>
|
||||
<view class="price">
|
||||
实付
|
||||
<span>¥{{ info.extend_order_goods[0].goods_pay_price }}</span>
|
||||
<view class="box" v-if="type<4">
|
||||
<view class="goods-info" v-for="list in info.extend_order_goods">
|
||||
<image :src="list.goods_image"></image>
|
||||
<view class="info-right">
|
||||
<view class="name u-line-1">{{ list.goods_name }}</view>
|
||||
<view class="info">
|
||||
<view class="num">共{{ list.goods_num }}件商品</view>
|
||||
<view class="price">
|
||||
实付
|
||||
<span>¥{{ list.goods_pay_price }}</span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<u-radio-group class="box" v-model="value" v-if="type>3">
|
||||
<view class="goods-info" v-for="list in info.refund_list">
|
||||
<image :src="list.goods_image"></image>
|
||||
<view class="info-right">
|
||||
<view class="name u-line-1">{{ list.goods_name }}</view>
|
||||
<view class="info">
|
||||
<view class="num">共{{ list.goods_num }}件商品</view>
|
||||
<view class="price">
|
||||
实付
|
||||
<span>¥{{ list.refund_amount }}</span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<u-radio :name="list.refund_id" shape="circle" @change="radioGroupChange">
|
||||
</u-radio>
|
||||
</view>
|
||||
</u-radio-group>
|
||||
<!-- 待处理 -->
|
||||
<view class="user-info" v-if="type == 1">
|
||||
<view class="info-title">收件人信息</view>
|
||||
@ -32,10 +51,12 @@
|
||||
</view>
|
||||
</view>
|
||||
<!-- 待处理之后的 -->
|
||||
<view class="refunds-title" v-if="type!=1">收件人信息</view>
|
||||
<view class="refunds-user" v-if="type == 2 || type == 3 || type == 4 || type == 5 || type == 6">
|
||||
<view>
|
||||
<image src="/static/image/home/2.png"></image>
|
||||
<view>{{ info.extend_order_common.reciver_name }}</view>
|
||||
<image src="/static/image/home/chat.png" @click="tochat(info.buyer_id)"></image>
|
||||
</view>
|
||||
<view>
|
||||
<image src="/static/image/home/3.png"></image>
|
||||
@ -135,29 +156,51 @@ export default {
|
||||
express: '',
|
||||
type: '',
|
||||
orderid: 0,
|
||||
info: {},
|
||||
info: {
|
||||
extend_order_goods:[{}],
|
||||
extend_order_common:{
|
||||
reciver_info:{
|
||||
mob_phone:"",
|
||||
address:""
|
||||
},
|
||||
receive_name:""
|
||||
}
|
||||
},
|
||||
list: [],
|
||||
pushid: null,
|
||||
pushstate: false, //显示物流单号
|
||||
selctcar: null, //骑手信息
|
||||
companyidA: null, //物流派送公司id
|
||||
companyidB: null //骑手派送公司id
|
||||
companyidB: null, //骑手派送公司id
|
||||
value:"",
|
||||
refundid:null
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
this.type = option.type;
|
||||
console.log(this.type)
|
||||
this.orderid = option.id;
|
||||
this.resetinfo();
|
||||
if (this.type == 1) {
|
||||
// 获取快递公司
|
||||
this.getcompanyinfo();
|
||||
}
|
||||
if (this.type == 2) {
|
||||
// 获取物流信息
|
||||
this.getcarinfo();
|
||||
}
|
||||
|
||||
// 订单状态: 0:全部 1已付款未发货 2已发货 3已完成 4申请退款/退货 5已退款/退货 6拒绝退款/退货
|
||||
},
|
||||
methods: {
|
||||
// 跳转详情页面
|
||||
tochat(ID){
|
||||
console.log(ID)
|
||||
},
|
||||
// 退款单选
|
||||
radioGroupChange(e) {
|
||||
this.refundid = e
|
||||
console.log(e);
|
||||
},
|
||||
// 人工配送
|
||||
pushstyleA() {
|
||||
this.cur = 0;
|
||||
@ -189,7 +232,7 @@ export default {
|
||||
if (this.cur == 0) {
|
||||
// 确定退款
|
||||
this.$u.api.refund({
|
||||
refund_id: this.orderid,
|
||||
refund_id: this.refundid,
|
||||
seller_state:2,
|
||||
seller_message:""
|
||||
}).then(res => {
|
||||
@ -212,7 +255,7 @@ export default {
|
||||
} else {
|
||||
// 不进行退款
|
||||
this.$u.api.refund({
|
||||
refund_id: this.orderid,
|
||||
refund_id: this.refundid,
|
||||
seller_state:3,
|
||||
seller_message:""
|
||||
}).then(res => {
|
||||
@ -395,6 +438,13 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
.refunds-title{
|
||||
padding: 25rpx 30rpx;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
background-color: #ffffff;
|
||||
border-bottom: 2rpx solid #ececec;
|
||||
}
|
||||
.refunds-user {
|
||||
padding: 25rpx 30rpx;
|
||||
background-color: #ffffff;
|
||||
@ -402,6 +452,7 @@ export default {
|
||||
> view {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 30rpx;
|
||||
@mixin image-class($width, $right) {
|
||||
> image {
|
||||
@ -423,6 +474,7 @@ export default {
|
||||
@include image-class($width: 36rpx, $right: 22rpx);
|
||||
}
|
||||
> view {
|
||||
flex: 1;
|
||||
font-size: 26rpx;
|
||||
color: rgba(51, 51, 51, 1);
|
||||
}
|
||||
|
@ -33,7 +33,7 @@
|
||||
<view class="info">
|
||||
<image></image>
|
||||
<view class="center">
|
||||
<view class="name">{{item.member_nickname}}</view>
|
||||
<view class="name">{{item.member_nickname}}回复了{{info.reply_member_nickname}}</view>
|
||||
<view class="time">{{item.create_time}}</view>
|
||||
</view>
|
||||
<view class="btn" @click="showreply(item.id)">回复</view>
|
||||
@ -101,6 +101,8 @@ export default {
|
||||
} else {
|
||||
this.pid = "";
|
||||
this.content = "";
|
||||
this.getdetail();
|
||||
this.showChat = false
|
||||
this.$refs.uToast.show({
|
||||
title: res.message,
|
||||
type: 'success'
|
||||
|
BIN
static/image/home/chat.png
Normal file
BIN
static/image/home/chat.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 723 B |
Loading…
Reference in New Issue
Block a user