|
@@ -47,7 +47,12 @@
|
|
|
<view class="bottom">
|
|
|
<view class="left-location"><text class="iconfont icon-dingwei"></text>{{item.city}} {{item.area}}</view>
|
|
|
<view class="right-btn" @tap.stop>
|
|
|
- <u-button text="取消订单" shape="circle"></u-button>
|
|
|
+
|
|
|
+ <block v-if="item.status == 'WAIT'">
|
|
|
+ <u-button text="取消订单" shape="circle"></u-button>
|
|
|
+ <u-button text="去支付" shape="circle" type="primary" plain @tap="toPay(item.goodsId, item.orderId)"></u-button>
|
|
|
+ </block>
|
|
|
+
|
|
|
<u-button text="查看物流" shape="circle" @tap="toLogistics(item.logisticsNum)"></u-button>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -174,6 +179,12 @@
|
|
|
this.$navToPage({
|
|
|
url: `/pages/mine/myBuy/logistics?logisticsNum=${logisticsNum}`
|
|
|
})
|
|
|
+ },
|
|
|
+
|
|
|
+ toPay(goodsId, orderId) {
|
|
|
+ this.$navToPage({
|
|
|
+ url: `/pages/goods/order?goodsId=${goodsId}&orderId=${orderId}`
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
}
|