update bug

This commit is contained in:
cmxdd 2020-08-06 11:48:45 +08:00
parent e67e2fe701
commit 04a4ed523f
3 changed files with 70 additions and 16 deletions

View File

@ -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">
<image :src="list.goods_image"></image>
<view class="info-right"> <view class="info-right">
<view class="name u-line-1">{{ info.extend_order_goods[0].goods_name }}</view> <view class="name u-line-1">{{ list.goods_name }}</view>
<view class="info"> <view class="info">
<view class="num">{{ info.extend_order_goods[0].goods_num }}件商品</view> <view class="num">{{ list.goods_num }}件商品</view>
<view class="price"> <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);
} }

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 723 B