This commit is contained in:
Gdpao
2020-09-05 12:30:22 +08:00
parent 539309b370
commit 388daaa901
4 changed files with 44 additions and 25 deletions

View File

@@ -97,7 +97,7 @@
<view class="pushtimeline" v-if="type == 2">
<view class="timelinetitle">物流信息</view>
<view class="timelineid">订单单号:&nbsp;&nbsp;&nbsp;{{ info.order_sn }}</view>
<view class="timelinebox" v-for="list in info.express_list">
<view class="timelinebox" v-for="(list,index) in info.express_list" :key="index">
<view class="timelinecontent">{{list.content}}</view>
<view class="timelinetime">{{list.kd_time}}</view>
</view>
@@ -163,13 +163,13 @@
<view class="info">
<view>
<text>发票抬头</text>
<text>{{ invoiceList.invoice_title }}</text>
<view class="u-line-2">{{ invoiceList.invoice_title }}</view>
</view>
<view v-if="invoice_type!=2">
<view v-if="invoice_type==2">
<text>税号</text>
<text>{{ invoiceList.invoice_code }}</text>
</view>
<view v-if="invoice_type!=2">
<view v-if="invoice_type==2">
<text>单位地址</text>
<view class="u-line-2">{{ invoiceList.invoice_goto_addr }}</view>
</view>
@@ -177,17 +177,17 @@
<text>电话号码</text>
<text>{{ invoiceList.invoice_reg_mobphone }}</text>
</view>
<view v-if="invoice_type!=2">
<view v-if="invoice_type==2">
<text>开户银行</text>
<text>{{ invoiceList.invoice_reg_bname }}</text>
</view>
<view v-if="invoice_type!=2">
<view v-if="invoice_type==2">
<text>银行账户</text>
<text>{{ invoiceList.invoice_reg_baccount }}</text>
</view>
<view v-if="invoice_type==2">
<view v-if="invoice_type==1">
<text>省份证号</text>
<text>111</text>
<text>{{ invoiceList.invoice_code }}</text>
</view>
</view>
</u-popup>
@@ -238,7 +238,7 @@ export default {
},
onLoad(option) {
this.type = option.type;
console.log(this.type)
// console.log(this.type)
this.orderid = option.id;
this.resetinfo();
if (this.type == 1) {
@@ -247,7 +247,7 @@ export default {
}
if (this.type == 2) {
// 获取物流信息
this.getcarinfo();
// this.getcarinfo();
}
// 订单状态: 0:全部 1已付款未发货 2已发货 3已完成 4申请退款/退货 5已退款/退货 6拒绝退款/退货
},
@@ -319,13 +319,13 @@ export default {
});
},
// 查询物流
getcarinfo() {
this.$u.api.getcarinfo({
order_id: this.orderid
}).then(res => {
console.log(res);
})
},
// getcarinfo() {
// this.$u.api.getcarinfo({
// order_id: this.orderid
// }).then(res => {
// console.log(res);
// })
// },
// 保存订单号
saveDelivery() {
if (!this.pushid) {