Commit 4ad4f85b authored by Facius's avatar Facius

删掉测试数据

parent 8d842531
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<view class="image-list"> <view class="image-list">
<image class="image-view" v-for="(item, index) in images" :key="index" :src="item"></image> <image class="image-view" v-for="(item, index) in images" :key="index" :src="item"></image>
<view class="info-view" v-if="info.items.length == 1"> <view class="info-view" v-if="info.items.length == 1">
<view class="name-text">{{info.items[0].name}}</view> <view class="name-text">{{info.items[0] ? info.items[0].name : ''}}</view>
<view>{{noteText}}</view> <view>{{noteText}}</view>
</view> </view>
</view> </view>
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
return this.texts[this.info.status] return this.texts[this.info.status]
}, },
noteText() { noteText() {
if (this.info.items[0].categoryName || this.info.items[0].brandName) { if (this.info.items[0] && (this.info.items[0].categoryName || this.info.items[0].brandName)) {
return (this.info.items[0].categoryName || '通用') + '-' + (this.info.items[0].brandName || '通用') return (this.info.items[0].categoryName || '通用') + '-' + (this.info.items[0].brandName || '通用')
} else { } else {
return '通用' return '通用'
...@@ -174,14 +174,12 @@ ...@@ -174,14 +174,12 @@
}, },
methods: { methods: {
handleClick() { handleClick() {
console.log('--handleClick----')
this.$emit('action', this.info) this.$emit('action', this.info)
}, },
handleOperate() { handleOperate() {
this.$emit('operate', this.info.id, this.buttonOperateType, this.willStatus) this.$emit('operate', this.info.id, this.buttonOperateType, this.willStatus)
}, },
handleClickExpress() { handleClickExpress() {
console.log('--handleClickExpress----')
this.$emit('express', this.info) this.$emit('express', this.info)
} }
} }
......
...@@ -117,60 +117,6 @@ ...@@ -117,60 +117,6 @@
methods: { methods: {
getLogistics() { getLogistics() {
this.$u.api.getLogistics(this.info.id).then((res) => { this.$u.api.getLogistics(this.info.id).then((res) => {
res = {
"code": 200,
"message": "",
"data": {
"orderId": 1883,
"status": 15,
"com": "sf",
"number": "SF1314164238675",
"name": "周明杨",
"phoneNumber": "17630408443",
"areaCode": 0,
"province": "44",
"city": "4401",
"district": "440106",
"street": "440106001",
"address": "广东省 广州市 天河区 长兴街道 芩村北街四巷16号菜鸟驿站",
"fullAddress": null,
"remark": "",
"createTime": 1624104976000,
"deliveryTime": 1624256100000,
"receiveTime": null,
"updateTime": 1624256100000,
"expressInfo": {
"state": "1",
"state_name": "transporting",
"state_orig": "0",
"records": [{
"datetime": "2021-06-22 04:09:08",
"context": "[杭州市]快件在【杭州萧山铁路站点】完成分拣,准备发往 【广州棠溪铁路站点】"
}, {
"datetime": "2021-06-22 04:09:08",
"context": "[杭州市]快件到达 【杭州萧山铁路站点】"
}, {
"datetime": "2021-06-21 23:46:32",
"context": "[金华市]快件已发车"
}, {
"datetime": "2021-06-21 23:46:26",
"context": "[金华市]快件在【金华金东中转场】完成分拣,准备发往 【杭州萧山铁路站点】"
}, {
"datetime": "2021-06-21 19:33:17",
"context": "[金华市]快件到达 【金华金东中转场】"
}, {
"datetime": "2021-06-21 18:41:02",
"context": "[金华市]快件已发车"
}, {
"datetime": "2021-06-21 18:40:53",
"context": "[金华市]快件在【金华永康滨江速运营业点】完成分拣,准备发往 【金华金东中转场】"
}, {
"datetime": "2021-06-21 17:17:54",
"context": "[金华市]顺丰速运 已收取快件"
}]
}
}
}
if (res.code == 200) { if (res.code == 200) {
if (res.data && res.data.expressInfo && res.data.expressInfo.records) { if (res.data && res.data.expressInfo && res.data.expressInfo.records) {
this.logisticsRecords = res.data.expressInfo.records this.logisticsRecords = res.data.expressInfo.records
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment