From b3513f97f75ab9653bf62ecdf2cd4b737d31e6b0 Mon Sep 17 00:00:00 2001 From: xingyu Date: Wed, 9 Aug 2023 19:28:25 +0800 Subject: [PATCH 01/11] chore: update deps --- package.json | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index a04c2520..bcf5a141 100644 --- a/package.json +++ b/package.json @@ -71,9 +71,9 @@ "xml-js": "^1.6.11" }, "devDependencies": { - "@commitlint/cli": "^17.6.7", - "@commitlint/config-conventional": "^17.6.7", - "@iconify/json": "^2.2.98", + "@commitlint/cli": "^17.7.0", + "@commitlint/config-conventional": "^17.7.0", + "@iconify/json": "^2.2.100", "@intlify/unplugin-vue-i18n": "^0.12.2", "@purge-icons/generated": "^0.9.0", "@types/intro.js": "^5.1.1", @@ -82,20 +82,20 @@ "@types/nprogress": "^0.2.0", "@types/qrcode": "^1.5.1", "@types/qs": "^6.9.7", - "@typescript-eslint/eslint-plugin": "^6.2.1", - "@typescript-eslint/parser": "^6.2.1", - "@unocss/transformer-variant-group": "^0.54.1", + "@typescript-eslint/eslint-plugin": "^6.3.0", + "@typescript-eslint/parser": "^6.3.0", + "@unocss/transformer-variant-group": "^0.54.3", "@vitejs/plugin-legacy": "^4.1.1", "@vitejs/plugin-vue": "^4.2.3", "@vitejs/plugin-vue-jsx": "^3.0.1", - "@vue-macros/volar": "^0.13.2", + "@vue-macros/volar": "^0.13.3", "autoprefixer": "^10.4.14", "bpmn-js": "^8.9.0", "bpmn-js-properties-panel": "^0.46.0", "consola": "^3.2.3", "eslint": "^8.46.0", - "eslint-config-prettier": "^8.10.0", - "eslint-define-config": "^1.22.0", + "eslint-config-prettier": "^9.0.0", + "eslint-define-config": "^1.23.0", "eslint-plugin-prettier": "^5.0.0", "eslint-plugin-vue": "^9.16.1", "lint-staged": "^13.2.3", @@ -104,7 +104,7 @@ "postcss-scss": "^4.0.6", "prettier": "^3.0.1", "rimraf": "^5.0.1", - "rollup": "^3.27.2", + "rollup": "^3.28.0", "sass": "^1.64.2", "stylelint": "^15.10.2", "stylelint-config-html": "^1.1.0", @@ -113,11 +113,11 @@ "stylelint-order": "^6.0.3", "terser": "^5.19.2", "typescript": "5.1.6", - "unocss": "^0.54.1", + "unocss": "^0.54.3", "unplugin-auto-import": "^0.16.6", "unplugin-element-plus": "^0.8.0", "unplugin-vue-components": "^0.25.1", - "vite": "4.4.8", + "vite": "4.4.9", "vite-plugin-compression": "^0.5.1", "vite-plugin-ejs": "^1.6.4", "vite-plugin-eslint": "^1.8.1", From b9477463fdd2945caabb0ef8d36a953272121f06 Mon Sep 17 00:00:00 2001 From: xingyu Date: Sat, 12 Aug 2023 12:23:17 +0800 Subject: [PATCH 02/11] =?UTF-8?q?fix:=20=E6=8F=90=E4=BA=A4=E5=90=8E?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/pay/demo/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/pay/demo/index.vue b/src/views/pay/demo/index.vue index 125ba8a0..f99d13c4 100644 --- a/src/views/pay/demo/index.vue +++ b/src/views/pay/demo/index.vue @@ -96,7 +96,7 @@ > {{ item.name }} - + ¥{{ (item.price / 100.0).toFixed(2) }} @@ -228,6 +228,7 @@ const submitForm = async () => { dialogVisible.value = false } finally { formLoading.value = false + getList() } } From 2ec50bab155e29bdfc47dc7d4f3597f13e101e9a Mon Sep 17 00:00:00 2001 From: xingyu Date: Sat, 12 Aug 2023 12:23:36 +0800 Subject: [PATCH 03/11] chore: remove qrcode.vue use qrcode --- package.json | 13 ++++++------- src/views/pay/cashier/index.vue | 10 +++++----- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index abc1018a..34b33f53 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,6 @@ "nprogress": "^0.2.0", "pinia": "^2.1.6", "qrcode": "^1.5.3", - "qrcode.vue": "^3.4.0", "qs": "^6.11.2", "steady-xml": "^0.1.0", "url": "^0.11.1", @@ -72,7 +71,7 @@ "xml-js": "^1.6.11" }, "devDependencies": { - "@commitlint/cli": "^17.7.0", + "@commitlint/cli": "^17.7.1", "@commitlint/config-conventional": "^17.7.0", "@iconify/json": "^2.2.100", "@intlify/unplugin-vue-i18n": "^0.12.2", @@ -85,7 +84,7 @@ "@types/qs": "^6.9.7", "@typescript-eslint/eslint-plugin": "^6.3.0", "@typescript-eslint/parser": "^6.3.0", - "@unocss/transformer-variant-group": "^0.54.3", + "@unocss/transformer-variant-group": "^0.55.0", "@vitejs/plugin-legacy": "^4.1.1", "@vitejs/plugin-vue": "^4.2.3", "@vitejs/plugin-vue-jsx": "^3.0.1", @@ -94,11 +93,11 @@ "bpmn-js": "^8.9.0", "bpmn-js-properties-panel": "^0.46.0", "consola": "^3.2.3", - "eslint": "^8.46.0", + "eslint": "^8.47.0", "eslint-config-prettier": "^9.0.0", "eslint-define-config": "^1.23.0", "eslint-plugin-prettier": "^5.0.0", - "eslint-plugin-vue": "^9.16.1", + "eslint-plugin-vue": "^9.17.0", "lint-staged": "^13.2.3", "postcss": "^8.4.27", "postcss-html": "^1.5.0", @@ -106,7 +105,7 @@ "prettier": "^3.0.1", "rimraf": "^5.0.1", "rollup": "^3.28.0", - "sass": "^1.64.2", + "sass": "^1.65.1", "stylelint": "^15.10.2", "stylelint-config-html": "^1.1.0", "stylelint-config-recommended": "^13.0.0", @@ -114,7 +113,7 @@ "stylelint-order": "^6.0.3", "terser": "^5.19.2", "typescript": "5.1.6", - "unocss": "^0.54.3", + "unocss": "^0.55.0", "unplugin-auto-import": "^0.16.6", "unplugin-element-plus": "^0.8.0", "unplugin-vue-components": "^0.25.1", diff --git a/src/views/pay/cashier/index.vue b/src/views/pay/cashier/index.vue index c55656bd..12723dba 100644 --- a/src/views/pay/cashier/index.vue +++ b/src/views/pay/cashier/index.vue @@ -68,7 +68,7 @@ append-to-body :close-on-press-escape="false" > - + @@ -115,7 +115,7 @@ From 10c121d62d622b3b3d46af3210170a1e1b103c99 Mon Sep 17 00:00:00 2001 From: dhb52 Date: Sun, 13 Aug 2023 01:53:08 +0800 Subject: [PATCH 05/11] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DElDescriptions?= =?UTF-8?q?=E5=AF=B9=E9=BD=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/pay/order/OrderDetail.vue | 28 ++++++++++++--------------- src/views/pay/refund/RefundDetail.vue | 23 +++++++++++----------- 2 files changed, 23 insertions(+), 28 deletions(-) diff --git a/src/views/pay/order/OrderDetail.vue b/src/views/pay/order/OrderDetail.vue index 3489d4a9..7fe122c2 100644 --- a/src/views/pay/order/OrderDetail.vue +++ b/src/views/pay/order/OrderDetail.vue @@ -7,20 +7,17 @@ {{ detailData.no }} - - + {{ detailData.appId }} {{ detailData.appName }} - - + ¥{{ (detailData.price / 100.0).toFixed(2) }} - - + ¥{{ (detailData.channelFeePrice / 100.0).toFixed(2) }} @@ -29,16 +26,14 @@ {{ (detailData.channelFeeRate / 100.0).toFixed(2) }}% - - + {{ formatDate(detailData.successTime) }} {{ formatDate(detailData.expireTime) }} - - + {{ formatDate(detailData.createTime) }} @@ -46,27 +41,26 @@ {{ formatDate(detailData.updateTime) }} + + {{ detailData.subject }} {{ detailData.body }} - - + {{ detailData.userIp }} - - + {{ detailData.channelOrderNo }} {{ detailData.channelUserId }} - - + ¥{{ (detailData.refundPrice / 100.0).toFixed(2) }} @@ -74,8 +68,10 @@ {{ detailData.notifyUrl }} + + {{ detailData.extension.channelNotifyData }} diff --git a/src/views/pay/refund/RefundDetail.vue b/src/views/pay/refund/RefundDetail.vue index 7e970251..04b548d5 100644 --- a/src/views/pay/refund/RefundDetail.vue +++ b/src/views/pay/refund/RefundDetail.vue @@ -9,20 +9,17 @@ refundDetail.channelRefundNo }} - - + {{ refundDetail.merchantOrderId }} {{ refundDetail.channelOrderNo }} - - + {{ refundDetail.appId }} {{ refundDetail.appName }} - - + ¥{{ (refundDetail.payPrice / 100.0).toFixed(2) }}¥{{ (refundDetail.refundPrice / 100.0).toFixed(2) }} - - + {{ formatDate(refundDetail.successTime) }} - - + {{ formatDate(refundDetail.createTime) }} @@ -50,20 +45,23 @@ formatDate(refundDetail.updateTime) }} + + {{ refundDetail.reason }} - - + {{ refundDetail.userIp }} {{ refundDetail.notifyUrl }} + + {{ refundDetail.channelErrorCode @@ -72,6 +70,7 @@ refundDetail.channelErrorMsg }} + {{ refundDetail.channelNotifyData }} From c3a8479eca28e6179681ec9514937b22c3c33226 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 13 Aug 2023 11:02:12 +0800 Subject: [PATCH 06/11] =?UTF-8?q?=E6=94=AF=E4=BB=98=E9=80=80=E6=AC=BE?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E7=9A=84=20review?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/pay/order/OrderDetail.vue | 12 ------ src/views/pay/refund/RefundDetail.vue | 60 ++++++++++----------------- src/views/pay/refund/index.vue | 2 +- 3 files changed, 22 insertions(+), 52 deletions(-) diff --git a/src/views/pay/order/OrderDetail.vue b/src/views/pay/order/OrderDetail.vue index 7fe122c2..5f2a496c 100644 --- a/src/views/pay/order/OrderDetail.vue +++ b/src/views/pay/order/OrderDetail.vue @@ -7,17 +7,14 @@ {{ detailData.no }} - {{ detailData.appId }} {{ detailData.appName }} - ¥{{ (detailData.price / 100.0).toFixed(2) }} - ¥{{ (detailData.channelFeePrice / 100.0).toFixed(2) }} @@ -26,14 +23,12 @@ {{ (detailData.channelFeeRate / 100.0).toFixed(2) }}% - {{ formatDate(detailData.successTime) }} {{ formatDate(detailData.expireTime) }} - {{ formatDate(detailData.createTime) }} @@ -41,26 +36,21 @@ {{ formatDate(detailData.updateTime) }} - - {{ detailData.subject }} {{ detailData.body }} - {{ detailData.userIp }} - {{ detailData.channelOrderNo }} {{ detailData.channelUserId }} - ¥{{ (detailData.refundPrice / 100.0).toFixed(2) }} @@ -68,10 +58,8 @@ {{ detailData.notifyUrl }} - - {{ detailData.extension.channelNotifyData }} diff --git a/src/views/pay/refund/RefundDetail.vue b/src/views/pay/refund/RefundDetail.vue index 04b548d5..72f7a8c1 100644 --- a/src/views/pay/refund/RefundDetail.vue +++ b/src/views/pay/refund/RefundDetail.vue @@ -9,68 +9,57 @@ refundDetail.channelRefundNo }} - {{ refundDetail.merchantOrderId }} {{ refundDetail.channelOrderNo }} - {{ refundDetail.appId }} {{ refundDetail.appName }} - - ¥{{ (refundDetail.payPrice / 100.0).toFixed(2) }} + + ¥{{ (refundDetail.payPrice / 100.0).toFixed(2) }} + - ¥{{ (refundDetail.refundPrice / 100.0).toFixed(2) }} + + ¥{{ (refundDetail.refundPrice / 100.0).toFixed(2) }} + - - {{ - formatDate(refundDetail.successTime) - }} - - {{ - formatDate(refundDetail.createTime) - }} - {{ - formatDate(refundDetail.updateTime) - }} + + {{ formatDate(refundDetail.successTime) }} + + + {{ formatDate(refundDetail.createTime) }} + + + {{ formatDate(refundDetail.updateTime) }} + - - {{ refundDetail.reason }} - {{ refundDetail.userIp }} {{ refundDetail.notifyUrl }} - - - {{ - refundDetail.channelErrorCode - }} - {{ - refundDetail.channelErrorMsg - }} + + {{ refundDetail.channelErrorCode }} + + + {{ refundDetail.channelErrorMsg }} + - {{ refundDetail.channelNotifyData }} @@ -102,10 +91,3 @@ const open = async (id: number) => { } defineExpose({ open }) // 提供 open 方法,用于打开弹窗 - diff --git a/src/views/pay/refund/index.vue b/src/views/pay/refund/index.vue index 90c3b093..eaa17b4c 100644 --- a/src/views/pay/refund/index.vue +++ b/src/views/pay/refund/index.vue @@ -113,6 +113,7 @@ + @@ -289,7 +290,6 @@ onMounted(async () => { appList.value = await AppApi.getAppList() }) -