From 4c74f2a2a4fcbd6b8c34c3b15c309134540b8a48 Mon Sep 17 00:00:00 2001
From: "3075067877@qq.com" <3075067877@qq.com>
Date: Mon, 5 Feb 2024 10:55:33 +0800
Subject: [PATCH] finish pay
---
uniapp_project_code/src/App.vue | 61 ++-
.../src/components/index/keyboard/input_box_QR.vue | 62 ++-
.../index/keyboard/input_box_end_phone.vue | 9 +-
.../index/keyboard/keyboard_listener.vue | 53 +++
.../components/index/keyboard/view_keyboard.vue | 2 +-
.../src/components/index/list_item.nvue | 224 ----------
.../src/components/index/list_item.vue | 250 +++++++++++
.../src/components/index/list_item_nvue.nvue | 248 +++++++++++
.../src/components/index/view_footer.nvue | 25 +-
.../src/components/index/view_header.nvue | 4 +-
uniapp_project_code/src/components/pay/paying.vue | 2 +-
uniapp_project_code/src/components/pay/success.vue | 2 +-
uniapp_project_code/src/manifest.json | 15 +-
uniapp_project_code/src/pages.json | 11 +-
uniapp_project_code/src/pages/index/-index.nvue | 398 ++++++++++++++++++
uniapp_project_code/src/pages/index/index.nvue | 169 --------
uniapp_project_code/src/pages/index/index.vue | 461 +++++++++++++++++++++
uniapp_project_code/src/pages/index/standby.nvue | 29 ++
uniapp_project_code/src/pages/pay/index.vue | 232 ++++++++++-
uniapp_project_code/src/utils/api.js | 35 ++
uniapp_project_code/src/utils/dictOfKeyboard.js | 219 ++++++++++
uniapp_project_code/src/utils/server.js | 113 +++++
uniapp_project_code/src/utils/util.js | 40 ++
23 files changed, 2211 insertions(+), 453 deletions(-)
create mode 100644 uniapp_project_code/src/components/index/keyboard/keyboard_listener.vue
delete mode 100644 uniapp_project_code/src/components/index/list_item.nvue
create mode 100644 uniapp_project_code/src/components/index/list_item.vue
create mode 100644 uniapp_project_code/src/components/index/list_item_nvue.nvue
create mode 100644 uniapp_project_code/src/pages/index/-index.nvue
delete mode 100644 uniapp_project_code/src/pages/index/index.nvue
create mode 100644 uniapp_project_code/src/pages/index/index.vue
create mode 100644 uniapp_project_code/src/pages/index/standby.nvue
create mode 100644 uniapp_project_code/src/utils/api.js
create mode 100644 uniapp_project_code/src/utils/dictOfKeyboard.js
create mode 100644 uniapp_project_code/src/utils/server.js
diff --git a/uniapp_project_code/src/App.vue b/uniapp_project_code/src/App.vue
index 25001e6..7fac56a 100644
--- a/uniapp_project_code/src/App.vue
+++ b/uniapp_project_code/src/App.vue
@@ -1,13 +1,52 @@
-
diff --git a/uniapp_project_code/src/components/index/keyboard/input_box_QR.vue b/uniapp_project_code/src/components/index/keyboard/input_box_QR.vue
index d8ea8e1..eb03d63 100644
--- a/uniapp_project_code/src/components/index/keyboard/input_box_QR.vue
+++ b/uniapp_project_code/src/components/index/keyboard/input_box_QR.vue
@@ -1,23 +1,26 @@
-
+
输入条形码
-
+
+
{{inputValue||"请输入条形码"}}
+ 查询不到该条形码商品信息, 请检查是否有误
-
+
确定
-
+
\ No newline at end of file
diff --git a/uniapp_project_code/src/components/index/keyboard/view_keyboard.vue b/uniapp_project_code/src/components/index/keyboard/view_keyboard.vue
index c2deacf..5c1be37 100644
--- a/uniapp_project_code/src/components/index/keyboard/view_keyboard.vue
+++ b/uniapp_project_code/src/components/index/keyboard/view_keyboard.vue
@@ -30,7 +30,7 @@
let activeValue = ref("") //active btn value
onMounted(async (res) => {
- console.log(res + ` the keyboard_box component is now mounted. ` + props.maskHeight)
+ // console.log(res + ` the keyboard_box component is now mounted. ` + props.maskHeight)
})
const getNumBtnClass = (i) => {
diff --git a/uniapp_project_code/src/components/index/list_item.nvue b/uniapp_project_code/src/components/index/list_item.nvue
deleted file mode 100644
index d973a30..0000000
--- a/uniapp_project_code/src/components/index/list_item.nvue
+++ /dev/null
@@ -1,224 +0,0 @@
-
-
-
-
-
-
-
-
- 维他命柠檬茶锡兰风味250ml
-
-
-
-
- 330ml
-
- ¥4.90
- ¥9.90
-
-
-
-
- 1
-
-
-
-
- 下单得积分
- 50
-
- ¥
- 4.90
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/uniapp_project_code/src/components/index/list_item.vue b/uniapp_project_code/src/components/index/list_item.vue
new file mode 100644
index 0000000..196c1e8
--- /dev/null
+++ b/uniapp_project_code/src/components/index/list_item.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+ {{mitem.erp_goods?.erp_goods_name||"-"}}
+
+
+
+
+
+ {{mitem.erp_goods?.erp_goods_specs||"-"}}
+
+ ¥{{mitem.erp_goods?.erp_goods_price||"-"}}
+ ¥{{mitem.erp_goods?.erp_goods_price||"-"}}
+
+
+
+
+ {{mitem.shopCount||1}}
+
+
+
+
+ 下单得积分
+ {{mitem.score||0}}
+
+ ¥
+ {{mitem.shopCountPrice||"-"}}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uniapp_project_code/src/components/index/list_item_nvue.nvue b/uniapp_project_code/src/components/index/list_item_nvue.nvue
new file mode 100644
index 0000000..4278e61
--- /dev/null
+++ b/uniapp_project_code/src/components/index/list_item_nvue.nvue
@@ -0,0 +1,248 @@
+
+
+
+
+
+
+
+
+ {{mitem.erp_goods?.erp_goods_name||"-"}}
+
+
+
+
+
+ {{mitem.erp_goods?.erp_goods_specs||"-"}}
+
+ ¥{{mitem.erp_goods?.erp_goods_price||"-"}}
+ ¥{{mitem.erp_goods?.erp_goods_price||"-"}}
+
+
+
+
+ {{mitem.shopCount||1}}
+
+
+
+
+ 下单得积分
+ {{mitem.score||0}}
+
+ ¥
+ {{mitem.shopCountPrice||"-"}}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uniapp_project_code/src/components/index/view_footer.nvue b/uniapp_project_code/src/components/index/view_footer.nvue
index 5089c6d..b07f846 100644
--- a/uniapp_project_code/src/components/index/view_footer.nvue
+++ b/uniapp_project_code/src/components/index/view_footer.nvue
@@ -25,12 +25,12 @@
应付:
¥
- 4.90
+ {{tolPrice}}
|
商品:
- 15
+ {{tolCount}}
@@ -45,7 +45,7 @@
-
+
去付款
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uniapp_project_code/src/pages/index/index.nvue b/uniapp_project_code/src/pages/index/index.nvue
deleted file mode 100644
index f3c3763..0000000
--- a/uniapp_project_code/src/pages/index/index.nvue
+++ /dev/null
@@ -1,169 +0,0 @@
-
-
-
-
-
-
-
-
- i
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/uniapp_project_code/src/pages/index/index.vue b/uniapp_project_code/src/pages/index/index.vue
new file mode 100644
index 0000000..2f9a8c6
--- /dev/null
+++ b/uniapp_project_code/src/pages/index/index.vue
@@ -0,0 +1,461 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uniapp_project_code/src/pages/index/standby.nvue b/uniapp_project_code/src/pages/index/standby.nvue
new file mode 100644
index 0000000..d2de1e8
--- /dev/null
+++ b/uniapp_project_code/src/pages/index/standby.nvue
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uniapp_project_code/src/pages/pay/index.vue b/uniapp_project_code/src/pages/pay/index.vue
index 28efc1f..ab1b8d7 100644
--- a/uniapp_project_code/src/pages/pay/index.vue
+++ b/uniapp_project_code/src/pages/pay/index.vue
@@ -1,26 +1,38 @@
-
-
+
+
+
+ @showIt="handle_closeEndPhoneBox" @clickCommit="handle_clickCommit_end_phone">
+
+
+