diff --git a/src/App.vue b/src/App.vue index 6a3a97f..1ee34d0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,7 @@ @@ -293,7 +335,7 @@ /* 公用颜色 */ .green-color { - color: #51A97D; + color: $theme-color; } icon { diff --git a/src/api/goods.js b/src/api/goods.js index 17e5c56..364bb45 100644 --- a/src/api/goods.js +++ b/src/api/goods.js @@ -24,5 +24,30 @@ export default { method: 'GET', interfaceType: 0 }); - } + }, + //根据门店ID查询 门店素材 + queryStoreMaterialById(id) { + return request({ + url: '/api/minimaterial/store', + method: 'POST', + data: { + storeId: id, + current: 1, + pageSize: 999 + }, + interfaceType: 0 + }); + }, + + /**获取OOS服务器地址 + * @param {Object} data + */ + GetCosRequestURL(data) { + return request({ + url: '/api/systemconfig/GetCosRequestSignURL', + method: 'POST', + data: data, + interfaceType: 0 + }); + }, } \ No newline at end of file diff --git a/src/api/order.js b/src/api/order.js index c784a43..be8bccf 100644 --- a/src/api/order.js +++ b/src/api/order.js @@ -4,7 +4,7 @@ export default { //订单分页查询 orderPageQuery(data) { return request({ - url: 'api/order/fullorderbyuserid', + url: '/order/fullorderbyuserid', method: 'POST', data: data, interfaceType: 1 @@ -13,7 +13,7 @@ export default { //用户主动下单:新增订单 newOrder(data) { return request({ - url: 'api/order/v2/neworder', + url: '/order/v2/neworder', method: 'POST', data: data, interfaceType: 1 @@ -22,7 +22,7 @@ export default { //代客下单:新增订单 adminNewOrder(data) { return request({ - url: 'api/order/admin/neworder', + url: '/order/admin/neworder', method: 'POST', data: data, interfaceType: 1 @@ -31,7 +31,7 @@ export default { //订单付款 orderPay(orderNumber, reason = '用户主动点击付款') { return request({ - url: 'api/order/v2/orderpay', + url: '/order/v2/orderpay', data: { orderNumber, reason @@ -43,7 +43,7 @@ export default { //根据订单编号获取完整订单 fullorderByNumber(orderNumber) { return request({ - url: `api/order/fullorderbynumber/${orderNumber}`, + url: `/order/fullorderbynumber/${orderNumber}`, interfaceType: 1, method: 'GET' }); @@ -51,7 +51,7 @@ export default { //申请售后 applySaleAfter(data) { return request({ - url: 'api/order/applysaleafter', + url: '/order/applysaleafter', method: 'POST', data: data, interfaceType: 1 @@ -60,7 +60,25 @@ export default { //取消售后 cancelSaleAfter(data) { return request({ - url: 'api/order/cancelsaleafter', + url: '/order/cancelsaleafter', + method: 'POST', + data: data, + interfaceType: 1 + }); + }, + //查询退款订单 + queryRefundOrderByuserId(data) { + return request({ + url: '/order/refundorderbyuserid', + method: 'POST', + data: data, + interfaceType: 1 + }); + }, + //退单回调(在申请微信退款之后) + refundrefuc(data) { + return request({ + url: '/order/refundrefuc', method: 'POST', data: data, interfaceType: 1 diff --git a/src/api/pay.js b/src/api/pay.js index 0dba428..bd309c3 100644 --- a/src/api/pay.js +++ b/src/api/pay.js @@ -18,6 +18,7 @@ export default { interfaceType: 2 }); }, + //解密 decryptUserInfo(data) { return request({ url : 'api/wechat/decryptuserinfo', @@ -25,5 +26,14 @@ export default { data: data, interfaceType: 2 }); + }, + //退款 + wechatrefund(data) { + return request({ + url : 'api/wechat/wechatrefund', + method: 'POST', + data: data, + interfaceType: 2 + }); } } \ No newline at end of file diff --git a/src/components/CouponList/CouponList.vue b/src/components/CouponList/CouponList.vue index d266a00..343f797 100644 --- a/src/components/CouponList/CouponList.vue +++ b/src/components/CouponList/CouponList.vue @@ -14,7 +14,7 @@ 满¥{{item.condition}}元,减¥{{item.couponValue}}元。 - + 有效期:{{item.validStartTime}}-{{item.validEndTime}} @@ -112,9 +112,10 @@ } - diff --git a/src/components/GoodsList/GoodsList.vue b/src/components/GoodsList/GoodsList.vue index 49cf164..9d99bfe 100644 --- a/src/components/GoodsList/GoodsList.vue +++ b/src/components/GoodsList/GoodsList.vue @@ -4,7 +4,7 @@ - + {{item.name}} @@ -12,11 +12,8 @@ - -