141 lines
2.7 KiB
Vue
141 lines
2.7 KiB
Vue
<template>
|
|
<view class="details">
|
|
<view class="goods-info">
|
|
<image :src="info.complain_goods_image"></image>
|
|
<view class="text">
|
|
<view class="name u-line-1">{{info.complain_goods_name}}</view>
|
|
<view class="num">共{{info.complain_goods_num}}件商品</view>
|
|
</view>
|
|
</view>
|
|
<view class="worker-info">
|
|
<view class="title">骑手信息</view>
|
|
<view class="item">
|
|
<view>
|
|
<view class="item-title">姓名</view>
|
|
<view class="value">{{info.takeawayer_name}}</view>
|
|
</view>
|
|
<view>
|
|
<view class="item-title">手机号</view>
|
|
<view class="value">{{info.takeawayer_mobile}}</view>
|
|
</view>
|
|
<view>
|
|
<view class="item-title">公司名称</view>
|
|
<view class="value">{{info.company}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="reason">
|
|
<view class="title">投诉原因</view>
|
|
<view class="value u-line-4">{{info.complain_desc}}</view>
|
|
</view>
|
|
<u-toast ref="uToast" />
|
|
</view>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
info:{}
|
|
}
|
|
},
|
|
onLoad(option) {
|
|
this.getinfo(option.id)
|
|
},
|
|
methods:{
|
|
getinfo(id){
|
|
let that = this;
|
|
this.$u.api.reportdetail({
|
|
id: id
|
|
}).then(res => {
|
|
console.log(res)
|
|
if (res.errCode != 0) {
|
|
this.$refs.uToast.show({
|
|
title: res.message,
|
|
type: 'error'
|
|
});
|
|
} else {
|
|
this.info = res.data.info;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
.details {
|
|
min-height: calc(100vh - var(--window-top));
|
|
background-color: #ECECEC;
|
|
.goods-info {
|
|
padding: 30rpx;
|
|
margin: 2rpx 0 20rpx;
|
|
background-color: #FFFFFF;
|
|
display: flex;
|
|
align-items: center;
|
|
> image {
|
|
width: 160rpx;
|
|
height: 160rpx;
|
|
background-color: aqua;
|
|
border-radius: 10rpx;
|
|
margin-right: 25rpx;
|
|
}
|
|
.text {
|
|
.name {
|
|
width: 440rpx;
|
|
font-size: 28rpx;
|
|
color: rgba(51,51,51,1);
|
|
margin-bottom: 35rpx;
|
|
}
|
|
.num {
|
|
font-size: 26rpx;
|
|
color: rgba(102,102,102,1);
|
|
}
|
|
}
|
|
}
|
|
.worker-info {
|
|
padding: 30rpx;
|
|
background-color: #FFFFFF;
|
|
margin-bottom: 20rpx;
|
|
.title {
|
|
font-size: 30rpx;
|
|
font-weight: 500;
|
|
color: rgba(51,51,51,1);
|
|
margin-bottom: 60rpx;
|
|
}
|
|
.item {
|
|
> view {
|
|
display: flex;
|
|
align-items: center;
|
|
color: rgba(51,51,51,1);
|
|
&:not(:last-child) {
|
|
margin-bottom: 60rpx;
|
|
}
|
|
.item-title {
|
|
width: 120rpx;
|
|
margin-right: 40rpx;
|
|
font-size: 30rpx;
|
|
}
|
|
.value {
|
|
font-size: 26rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.reason {
|
|
padding: 30rpx {
|
|
bottom: 60rpx;
|
|
};
|
|
background-color: #FFFFFF;
|
|
.title {
|
|
font-size: 30rpx;
|
|
font-weight: 500;
|
|
color: rgba(51,51,51,1);
|
|
margin-bottom: 60rpx;
|
|
}
|
|
.value {
|
|
font-size: 26rpx;
|
|
color: rgba(51,51,51,1);
|
|
line-height: 36rpx;
|
|
}
|
|
}
|
|
}
|
|
</style> |