| | |
| | | this.getList() |
| | | }, |
| | | onReachBottom() { |
| | | this.page.current += 1 |
| | | this.getMore() |
| | | }, |
| | | async onPullDownRefresh() { |
| | |
| | | }) |
| | | this.$message.hideLoading() |
| | | if (code === 0) { |
| | | this.$store.dispatch('sign_add','order') |
| | | this.refreshList() |
| | | } |
| | | } |
| | |
| | | console.log('pay success', res) |
| | | that.$message.showToast('支付成功') |
| | | setTimeout(() => { |
| | | that.$store.dispatch('sign_add','order') |
| | | that.refreshList() |
| | | }, 200) |
| | | }, |
| | |
| | | |
| | | // }, |
| | | case 'cancelOrder': { |
| | | this.$message.showToast('敬请期待') |
| | | }, |
| | | await this.$message.confirm('是否取消订单') |
| | | // 发送请求 |
| | | this.$message.showLoading() |
| | | const { |
| | | code |
| | | } = await this.$http.request('get', '/api/customer/order/cancel', { |
| | | params: { |
| | | id: item.id, |
| | | } |
| | | }) |
| | | this.$message.hideLoading() |
| | | if (code === 0) { |
| | | this.$store.dispatch('sign_add','order') |
| | | this.refreshList() |
| | | } |
| | | } |
| | | break |
| | | default: |
| | | break |
| | | } |
| | |
| | | </view> |
| | | <view class="value">{{ item.customerAddress }}</view> |
| | | </view> |
| | | <view class="desc flex" v-if="item.status!=='PENDING'"> |
| | | <view class="desc flex" v-if="item.statusBackend!=='PENDING'"> |
| | | <view class="label"> |
| | | 支付时间: |
| | | </view> |
| | |
| | | </view> |
| | | <view class="line-gray"></view> |
| | | <view class="flex buttons"> |
| | | <view class="button button-0 m-l-a m-r-0" v-if="item.status==='PENDING'" |
| | | <view class="button button-0 m-l-a m-r-15" v-if="item.statusBackend==='PENDING'" |
| | | @click="buttonClick(item,'cancelOrder')">取消订单</view> |
| | | <view class="button button-1 m-l-15 m-r-0" v-if="item.status==='PENDING'" |
| | | <view class="button button-1 m-l-15 m-r-15" v-if="item.statusBackend==='PENDING'" |
| | | @click="buttonClick(item,'payAgain')">重新支付</view> |
| | | |
| | | <view class="button button-0 m-l-a m-r-0" @click="buttonClick('refund')" v-if="item.couldRefund"> |
| | | <view class="button button-0 m-l-a m-r-15" @click="buttonClick('refund')" v-if="item.couldRefund"> |
| | | 申请退款 |
| | | </view> |
| | | <view class="button button-0 m-l-a m-r-0" @click="buttonClick('confirm')" |
| | | v-if="item.status ==='RECEIVE'"> 确认收货 |
| | | <view class="button button-0 m-l-a m-r-15" @click="buttonClick('confirm')" |
| | | v-if="item.statusBackend ==='RECEIVE'"> 确认收货 |
| | | </view> |
| | | |
| | | <view class="button button-1 m-l-a m-r-0" @click="toDetailSale(item)" |
| | | v-if=" item.status === 'EVALUATE'||item.status=='COMPLETED'"> 申请售后 |
| | | <view class="button button-1 m-l-a m-r-15" @click="toDetailSale(item)" |
| | | v-if=" item.statusBackend === 'EVALUATE'||item.statusBackend=='COMPLETED'"> 申请售后 |
| | | </view> |
| | | <view class="button button-0 m-l-a m-r-0" @click="buttonClick(item,'evaluate')" |
| | | v-if=" item.status === 'EVALUATE'"> 评价 |
| | | <view class="button button-0 m-l-a m-r-15" @click="buttonClick(item,'evaluate')" |
| | | v-if=" item.statusBackend === 'EVALUATE'"> 评价 |
| | | </view> |
| | | |
| | | |