送洗显示信息

This commit is contained in:
ghusermoon 2020-09-10 10:00:04 +08:00
parent fe60d5a1cf
commit d79e38e44c
2 changed files with 18 additions and 6 deletions

View File

@ -5,7 +5,7 @@
</view>
<view class="comment-container" v-if="isShow">
<view v-for="(item, index) in evalueList" :key="index" class="itme">
<comment :reply="true" :content="item" v-if="isShow"></comment>
<comment :reply="true" :content="item"></comment>
</view>
<u-empty text="暂无评价" mode="list" v-if="!evalueList.length" margin-top="120" color="#333"></u-empty>
</view>
@ -25,7 +25,7 @@ export default {
evaluateSpec: {},
loadStatus: 'loadmore',
timer: true,
isShow: false,
isShow: false, //
}
},
components: {

View File

@ -411,12 +411,16 @@ export default {
radioChange(e){
const ids = e.split(" ");
// console.log(ids)
let checkedGoods = {};
let checkedGoods;
this.orderList.forEach(order => {
if(order.order_id == ids[0]) {
Object.assign(checkedGoods, { store: order.extend_store });
Object.assign(checkedGoods, { order_sn: order.order_sn });
Object.assign(checkedGoods, { order_id: order.order_id });
checkedGoods = {
store: order.extend_store,
order_sn: order.order_sn,
order_id: order.order_id,
reciver_info: order.extend_order_common.reciver_info,
reciver_name: order.extend_order_common.reciver_name
}
order.extend_order_goods.forEach(goods => {
if(goods.goods_id == ids[1]) {
Object.assign(checkedGoods, { goods: goods });
@ -425,6 +429,14 @@ export default {
})
}
})
console.log(this.checkedGoods);
this.setDefaultValue();
},
setDefaultValue() {
this.name = this.checkedGoods.reciver_name;
this.phone = this.checkedGoods.reciver_info.mob_phone;
this.area = this.checkedGoods.reciver_info.area;
this.address = this.checkedGoods.reciver_info.street;
},
setArea(area) {
// console.log(area);