[新增退款流程、查看物流]
This commit is contained in:
@@ -7,6 +7,7 @@ Page({
|
||||
data: {
|
||||
logisticArr : [],
|
||||
expressData : '',
|
||||
orderExpress: ''
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
@@ -14,6 +15,7 @@ Page({
|
||||
newData = {}
|
||||
} = options;
|
||||
const data = JSON.parse(decodeURIComponent(newData));
|
||||
|
||||
this.setData({
|
||||
expressData: data
|
||||
})
|
||||
@@ -26,9 +28,10 @@ Page({
|
||||
|
||||
// 查看物流
|
||||
h5url() {
|
||||
wx.$api.order.kuaiDi({express_no: this.data.expressData.express_no}).then(res => {
|
||||
wx.$api.order.kuaiDi(this.data.expressData).then(res => {
|
||||
this.setData({
|
||||
logisticArr: res.data.data
|
||||
logisticArr : res.data.logistics,
|
||||
orderExpress: res.data.orderExpress
|
||||
})
|
||||
}).catch(err => {})
|
||||
// wx.request({
|
||||
|
||||
@@ -1,17 +1,18 @@
|
||||
<block wx:if="{{logisticArr.length > 0}}">
|
||||
<view class="top">
|
||||
<view class="top-logo">
|
||||
<image src="{{expressData.express_cover}}" mode="aspectFill"></image>
|
||||
<image src="{{orderExpress.logistic_cover}}" mode="aspectFill"></image>
|
||||
</view>
|
||||
<view class="top-cont">
|
||||
<view class="top-name">
|
||||
{{expressData.express_name}}
|
||||
{{orderExpress.logistic_name}}
|
||||
<view class="top-no">
|
||||
{{expressData.express_no}}
|
||||
{{orderExpress.express_no}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="top-type">
|
||||
{{expressData.name}}<text>{{expressData.mobile}}</text>
|
||||
{{orderExpress.order_state}}
|
||||
<!-- <text>{{orderExpress.mobile}}</text> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -21,7 +22,7 @@
|
||||
收
|
||||
</view>
|
||||
<view class="address-text">
|
||||
{{expressData.full_address}}
|
||||
{{orderExpress.address}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="list">
|
||||
|
||||
Reference in New Issue
Block a user