pages/video/video-goods-detail.vue
@@ -29,7 +29,7 @@ <script> import {getGoodsDetail} from "@/api/video.js" import { buyBack } from "@/api/trade.js"; import '@/components/uview-components/uview-ui'; export default { computed: { @@ -61,7 +61,17 @@ }, // 生成订单-支付 toPay() { const buyList = this.goodsList.map(goods => { return { skuId: goods.id, num: goods.goodsNum } }) buyBack(buyList).then(res => { uni.navigateTo({ url: "/pages/order/fillorder?way=CART" }) }) } } }