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