| | |
| | | <text class="blue-btn small-btn" @click="cancelOrder(item.orderId)">取消订单</text> |
| | | </view> |
| | | </view> |
| | | <no-record :isShow="!list.length" txt="暂无订单记录"></no-record> |
| | | <view v-if="list.length"> |
| | | <uni-load-more :status="loadStatus" color="#a5abaf"></uni-load-more> |
| | | </view> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | queryKey: '', |
| | | orderStatus: 0, |
| | | tabs:[ |
| | | { |
| | |
| | | onLoad(options) { |
| | | if(options.status){ |
| | | this.orderStatus = Number(options.status); |
| | | } |
| | | if(options.queryKey){ |
| | | this.queryKey = options.queryKey; |
| | | } |
| | | this.loadList() |
| | | |
| | |
| | | content: '确定取消订单吗?', |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | console.log('用户点击确定'); |
| | | this.$httpUtils.request('/api/order/cancelOrder/'+id).then((res) => { |
| | | if(res.status == 200){ |
| | | this.reloadData() |