修改订单表格样式
This commit is contained in:
@@ -10,14 +10,13 @@
|
||||
style=" margin-left:10px;">收货地址</span>:天津市河东区天津站</div> -->
|
||||
<div style=""><icon-svg name="ren"></icon-svg><span
|
||||
style=" margin-left:10px;">收货人</span>:{{ deliverOrder.userName }}</div>
|
||||
<div style="margin-bottom: 5px;"><icon-svg name="dianhua"></icon-svg><span style=" margin-left:10px;">电
|
||||
话</span>:{{ deliverOrder.userPhone }}</div>
|
||||
<div style="margin-bottom: 5px;"><icon-svg name="dianhua"></icon-svg><span style=" margin-left:10px;">电 话</span>:{{ deliverOrder.userPhone }}</div>
|
||||
|
||||
</div>
|
||||
<el-row :gutter="10" class="flexbox">
|
||||
<div v-if="activities.length === 0" class="noinfo">-暂无物流信息-</div>
|
||||
<div v-if="activities.length == 0" class="noinfo">-暂无物流信息-</div>
|
||||
<el-col v-else :lg="8" :md="12" :xs="24" v-for="(item, index) in activities"
|
||||
:class="item.length == 1 ? 'onlyOne' : 'notOone'">
|
||||
:class="item.length == 1 ? 'onlyOne' : 'notOone'" >
|
||||
<div class="scroll">
|
||||
<div style="margin-bottom: 5px;"><icon-svg name="truck"></icon-svg><span
|
||||
style=" margin-left: 10px;">快递</span>:
|
||||
@@ -65,7 +64,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
// 根据订单ID查询物流信息
|
||||
getDeliverList() {
|
||||
getDeliverList(deliverOrder) {
|
||||
// this.DeliverList = data.list
|
||||
// console.log('根据订单ID查询物流信息')
|
||||
// console.log(this.deliverOrder)
|
||||
@@ -75,28 +74,27 @@ export default {
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
});
|
||||
console.log(this.deliverOrder)
|
||||
console.log(deliverOrder.orderId, '收到的deliverOrder')
|
||||
this.$http({
|
||||
url: this.$http.adornUrl('/book/buyorder/queryFMS'),
|
||||
method: 'post',
|
||||
params: this.$http.adornParams({
|
||||
'orderId': this.deliverOrder.orderId
|
||||
'orderId': deliverOrder.orderId
|
||||
})
|
||||
}).then(({ data }) => {
|
||||
loading.close()
|
||||
if (data && data.code === 0) {
|
||||
console.log(data)
|
||||
if (data.rntStr != []) {
|
||||
this.activities = data.rntStr
|
||||
|
||||
console.log(data,'data')
|
||||
if (data.msg.indexOf('暂未查到物流信息') != -1) {
|
||||
this.activities = []
|
||||
} else {
|
||||
this.activities = []
|
||||
}
|
||||
loading.close()
|
||||
this.activities = data.rntStr
|
||||
}
|
||||
this.visible = true
|
||||
console.log(this.activities,4545)
|
||||
} else {
|
||||
loading.close()
|
||||
return this.$message.error('获取失败,请重新尝试')
|
||||
return this.$message.error('获取失败,请重新尝试')
|
||||
}
|
||||
}).catch(() => {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user