diff --git a/jiuyi2/api/shop.js b/jiuyi2/api/shop.js index f8763317..e398172b 100644 --- a/jiuyi2/api/shop.js +++ b/jiuyi2/api/shop.js @@ -344,6 +344,19 @@ const shop = { load: true, }) }, + + /** + * 订单取消 + * @param {Object} param + */ + orderAfterSales(param) { + return util.request({ + url: `/shopify/appRefundOrder/addRefund`, + data: param.data, + method: 'POST', + load: true, + }) + }, } export default shop \ No newline at end of file diff --git a/jiuyi2/common/js/order.js b/jiuyi2/common/js/order.js index adca2aa6..c8f0de5b 100644 --- a/jiuyi2/common/js/order.js +++ b/jiuyi2/common/js/order.js @@ -43,7 +43,19 @@ const order = { orderId: event.id, }) }) - } + }, + + /** + * 申请售后 + * @param {Object} event 事件对象 + */ + orderAfterSales(event) { + uni.navigateTo({ + url: util.setUrl('/pages/shop/order/refundStar', { + orderId: event.id, + }) + }) + }, } export default order \ No newline at end of file diff --git a/jiuyi2/components/shop/detail/makeOrder.vue b/jiuyi2/components/shop/detail/makeOrder.vue new file mode 100644 index 00000000..ec6be2bf --- /dev/null +++ b/jiuyi2/components/shop/detail/makeOrder.vue @@ -0,0 +1,142 @@ + + + + + \ No newline at end of file diff --git a/jiuyi2/components/shop/order/logistics.vue b/jiuyi2/components/shop/order/logistics.vue index d9e02992..45c64eb2 100644 --- a/jiuyi2/components/shop/order/logistics.vue +++ b/jiuyi2/components/shop/order/logistics.vue @@ -39,7 +39,7 @@ function link(url) { uni.navigateTo({ url: util.setUrl('/pages/shop/order/logistics', { - // + orderId: props.detail.id, }) }) } diff --git a/jiuyi2/pages/shop/collect.vue b/jiuyi2/pages/shop/collect.vue index 68dba176..d502feaa 100644 --- a/jiuyi2/pages/shop/collect.vue +++ b/jiuyi2/pages/shop/collect.vue @@ -2,7 +2,8 @@ // 商品收藏 import { - ref + ref, + reactive, } from 'vue'; import apex from '@/components/header/apex' import { @@ -18,6 +19,10 @@ import util from '@/common/js/util'; // const setting = ref(false) + // 收藏列表 + const list = reactive({ + data: [], + }) onLoad(() => { // 获取列表 @@ -28,8 +33,24 @@ function getList() { api.shop.getCollectList({}).then(res => { console.log(res) + if (res.code == 200) { + list.data = res.data + return + } + util.alert({ + content: res.msg, + showCancel: false, + }) }) } + + /** + * 规格选择 + * @param {Object} secItem + */ + function handleSpec(secItem) { + // + }