From f199320de0c0a08bfe872a2433ce18f5ea044ff9 Mon Sep 17 00:00:00 2001
From: YuanHuakk <1751826683@qq.com>
Date: Mon, 12 Aug 2024 19:14:01 +0800
Subject: [PATCH] =?UTF-8?q?refactor(custom):=20=E5=90=8E=E7=BB=93=E6=94=B6?=
=?UTF-8?q?=E6=AC=BE=E5=A2=9E=E5=8A=A0=E5=8A=A0=E8=BD=BD=E5=8A=A8=E7=94=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/.gitignore | 5 ++
.idea/codeStyles/Project.xml | 57 +++++++++++++++++++
.idea/codeStyles/codeStyleConfig.xml | 5 ++
.idea/git_toolbox_blame.xml | 6 ++
.idea/inspectionProfiles/Project_Default.xml | 7 +++
.idea/jdt-user.iml | 12 ++++
.idea/modules.xml | 8 +++
.idea/vcs.xml | 6 ++
.idea/watcherTasks.xml | 4 ++
.../add_order/pending_order/pay/index.vue | 53 ++++++++++-------
src/utils/index.ts | 10 ++--
11 files changed, 148 insertions(+), 25 deletions(-)
create mode 100644 .idea/.gitignore
create mode 100644 .idea/codeStyles/Project.xml
create mode 100644 .idea/codeStyles/codeStyleConfig.xml
create mode 100644 .idea/git_toolbox_blame.xml
create mode 100644 .idea/inspectionProfiles/Project_Default.xml
create mode 100644 .idea/jdt-user.iml
create mode 100644 .idea/modules.xml
create mode 100644 .idea/vcs.xml
create mode 100644 .idea/watcherTasks.xml
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..10b731c
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,5 @@
+# 默认忽略的文件
+/shelf/
+/workspace.xml
+# 基于编辑器的 HTTP 客户端请求
+/httpRequests/
diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
new file mode 100644
index 0000000..c9827f9
--- /dev/null
+++ b/.idea/codeStyles/Project.xml
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml
new file mode 100644
index 0000000..79ee123
--- /dev/null
+++ b/.idea/codeStyles/codeStyleConfig.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/git_toolbox_blame.xml b/.idea/git_toolbox_blame.xml
new file mode 100644
index 0000000..7dc1249
--- /dev/null
+++ b/.idea/git_toolbox_blame.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000..7c4836f
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/jdt-user.iml b/.idea/jdt-user.iml
new file mode 100644
index 0000000..24643cc
--- /dev/null
+++ b/.idea/jdt-user.iml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..df5e3fa
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/watcherTasks.xml b/.idea/watcherTasks.xml
new file mode 100644
index 0000000..fb0d65a
--- /dev/null
+++ b/.idea/watcherTasks.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/admin/add_order/pending_order/pay/index.vue b/src/pages/admin/add_order/pending_order/pay/index.vue
index bafbf55..ba31e97 100644
--- a/src/pages/admin/add_order/pending_order/pay/index.vue
+++ b/src/pages/admin/add_order/pending_order/pay/index.vue
@@ -26,8 +26,7 @@
+ :content="itm.Goods.name">
@@ -45,28 +44,38 @@
- 立即收款
+ 立即收款
diff --git a/src/utils/index.ts b/src/utils/index.ts
index d78e816..5ecb32a 100644
--- a/src/utils/index.ts
+++ b/src/utils/index.ts
@@ -7,11 +7,11 @@ export function calculateDistance(
la2: number,
lo2: number,
): any {
- var radLat1 = (la1 * Math.PI) / 180.0;
- var radLat2 = (la2 * Math.PI) / 180.0;
- var a = radLat1 - radLat2;
- var b = (lo1 * Math.PI) / 180.0 - (lo2 * Math.PI) / 180.0;
- var s =
+ const radLat1 = (la1 * Math.PI) / 180.0;
+ const radLat2 = (la2 * Math.PI) / 180.0;
+ const a = radLat1 - radLat2;
+ const b = (lo1 * Math.PI) / 180.0 - (lo2 * Math.PI) / 180.0;
+ let s =
2 *
Math.asin(
Math.sqrt(