| | |
| | | > |
| | | 退款/售后 |
| | | </view> |
| | | <view |
| | | ripple |
| | | shape="circle" |
| | | class="cancel-btn" |
| | | size="mini" |
| | | v-if="order.orderStatus === 'COMPLETED' " |
| | | @click="buyBack(order)" |
| | | > |
| | | 再来一单 |
| | | </view> |
| | | <!-- TODO 后续完善 --> |
| | | <!-- <u-button ripple shape="circle" class="rebuy-btn" size="mini" v-if=" |
| | | <!-- <u-button ripple shape="circle" class="rebuy-btn" size="mini" v-if=" |
| | | order.orderStatus === 'CANCELLED' || |
| | | order.orderStatus === 'COMPLETE' |
| | | " @click="reBuy(order)"> |
| | |
| | | import { getOrderXcxList, cancelOrder, confirmReceipt } from "@/api/order.js"; |
| | | import { getClearReason } from "@/api/after-sale.js"; |
| | | import LiLiWXPay from "@/js_sdk/lili-pay/wx-pay.js"; |
| | | import {buyBack} from "@/api/trade.js"; |
| | | export default { |
| | | |
| | | data() { |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | //再来一单 |
| | | buyBack(order){ |
| | | console.log(JSON.stringify(order)) |
| | | const param = order.orderItems.map(item => { |
| | | return { |
| | | skuId: item.skuId, |
| | | num: item.num |
| | | } |
| | | }) |
| | | console.log('------------------>',JSON.stringify(param)) |
| | | buyBack(param).then(res=>{ |
| | | console.log('------------------->',res) |
| | | if(res.data.code==200){ |
| | | uni.navigateTo({ |
| | | url: "/pages/order/fillorder?way=CART" |
| | | }) |
| | | } |
| | | }) |
| | | |
| | | }, |
| | | // 售后 |
| | | applyService(order) { |
| | | uni.navigateTo({ |