From 0da574b6543e54ee9418509835f2cef95d6f0b10 Mon Sep 17 00:00:00 2001 From: lidongtony Date: Wed, 29 Mar 2023 16:23:08 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E8=AE=A2=E9=98=85=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E6=8F=90=E9=86=92=E6=97=B6=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- env | 7 +- pages/order/aftersale/apply.vue | 484 +++++++++++++++----------------- pages/order/list.vue | 2 +- pages/pay/recharge.vue | 410 +++++++++++++-------------- sheep/platform/pay.js | 4 +- 5 files changed, 426 insertions(+), 481 deletions(-) diff --git a/env b/env index 30465447..c20e1407 100644 --- a/env +++ b/env @@ -1,3 +1,6 @@ +# 版本号 +SHOPRO_VERSION = v1.8.1 + # 正式环境接口域名 SHOPRO_BASE_URL = https://api.shopro.sheepjs.com @@ -13,7 +16,5 @@ SHOPRO_API_PATH = /shop/api/ # 客户端静态资源地址 空=默认使用服务端指定的CDN资源地址前缀 | local=本地 | http(s)://xxx.xxx=自定义静态资源地址前缀 SHOPRO_STATIC_URL = https://file.sheepjs.com -SHOPRO_VERSION = v1.8.1 - -# 是否开启直播 1 开启直播 | 0 关闭直播 +# 是否开启直播 1 开启直播 | 0 关闭直播 (小程序官方后台未审核开通直播权限时请勿开启) SHOPRO_MPLIVE_ON = 0 \ No newline at end of file diff --git a/pages/order/aftersale/apply.vue b/pages/order/aftersale/apply.vue index b07407c7..6c620df7 100644 --- a/pages/order/aftersale/apply.vue +++ b/pages/order/aftersale/apply.vue @@ -3,13 +3,9 @@ - + @@ -18,17 +14,9 @@ 售后类型 - @@ -47,13 +35,8 @@ 联系方式 - + @@ -61,23 +44,11 @@ 相关描述 - + - + @@ -86,9 +57,7 @@ - + @@ -97,29 +66,17 @@ - 申请原因 + 申请原因 - - + @@ -127,232 +84,235 @@ diff --git a/pages/order/list.vue b/pages/order/list.vue index a51399ef..da5a5644 100644 --- a/pages/order/list.vue +++ b/pages/order/list.vue @@ -394,7 +394,7 @@ success: async function (res) { if (res.confirm) { // #ifdef MP - sheep.$platform.useProvider('wechat').subscribeMessage('order_apply_refund'); + sheep.$platform.useProvider('wechat').subscribeMessage('order_refund'); // #endif const { error, data } = await sheep.$api.order.applyRefund(orderId); if (error === 0) { diff --git a/pages/pay/recharge.vue b/pages/pay/recharge.vue index 08353bb7..ccd8adff 100644 --- a/pages/pay/recharge.vue +++ b/pages/pay/recharge.vue @@ -1,53 +1,34 @@ diff --git a/sheep/platform/pay.js b/sheep/platform/pay.js index aa97e206..29120038 100644 --- a/sheep/platform/pay.js +++ b/sheep/platform/pay.js @@ -135,7 +135,7 @@ export default class SheepPay { const { error, data } = await this.prepay(); if (error === 0) { const redirect_url = `${getRootUrl()}pages/pay/result?orderSN=${this.orderSN}&payment=${this.payment - }`; + }&orderType=${this.orderType}`; location.href = `${data.pay_data.h5_url}&redirect_url=${encodeURIComponent(redirect_url)}`; } } @@ -145,7 +145,7 @@ export default class SheepPay { let { error, data } = await this.prepay(); if (error === 0) { const redirect_url = `${getRootUrl()}pages/pay/result?orderSN=${this.orderSN}&payment=${this.payment - }`; + }&orderType=${this.orderType}`; location.href = data.pay_data + encodeURIComponent(redirect_url); } } From aa22b927e7a4e6dcb91a808202cdb6972b881661 Mon Sep 17 00:00:00 2001 From: lidongtony Date: Wed, 29 Mar 2023 16:26:54 +0800 Subject: [PATCH 2/3] rename: mplive-manifest-plugin --- vite.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.js b/vite.config.js index 0331684f..40016f4f 100644 --- a/vite.config.js +++ b/vite.config.js @@ -3,7 +3,7 @@ import uni from '@dcloudio/vite-plugin-uni'; import path from 'path'; // import viteCompression from 'vite-plugin-compression'; import uniReadPagesV3Plugin from './sheep/router/utils/uni-read-pages-v3'; -import mpliveMainfestPlugin from './sheep/libs/mpLive-manifest-plugin'; +import mpliveMainfestPlugin from './sheep/libs/mplive-manifest-plugin'; // https://vitejs.dev/config/ From cd12e5510d2042244c24e7cdd2bc3bd799ccdb33 Mon Sep 17 00:00:00 2001 From: lidongtony Date: Wed, 29 Mar 2023 19:29:32 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E8=B4=AD=E7=89=A9?= =?UTF-8?q?=E8=BD=A6=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/cart.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/index/cart.vue b/pages/index/cart.vue index c67c8b6a..2485ae84 100644 --- a/pages/index/cart.vue +++ b/pages/index/cart.vue @@ -151,6 +151,7 @@ cart.delete(cartItem.id); return; } + if(cartItem.goods_num === e) return; cartItem.goods_num = e; cart.update({ goods_id: cartItem.goods_id,