From b247fdf80345105d53f57cddc5a60f9ea2b87d21 Mon Sep 17 00:00:00 2001
From: aihe <961836564@qq.com>
Date: Mon, 29 Apr 2024 14:51:51 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0layout=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E7=BB=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
common/enum.js | 1 +
components/tpx-page/tpx-page.vue | 36 +++
components/tpx-select/tpx-select.vue | 9 +-
pages/post/openorder.vue | 419 ++++++++++++++-------------
static/images/mine/kjcha.png | Bin 0 -> 3769 bytes
5 files changed, 251 insertions(+), 214 deletions(-)
create mode 100644 components/tpx-page/tpx-page.vue
create mode 100644 static/images/mine/kjcha.png
diff --git a/common/enum.js b/common/enum.js
index fe80448..76e1658 100644
--- a/common/enum.js
+++ b/common/enum.js
@@ -167,6 +167,7 @@ const dateRangeList = [
]
const pageEventNames = {
+ globalClick: "globalClick", // 全局页面 click事件
chooseAddress: "chooseAddress", // 地址选择
}
diff --git a/components/tpx-page/tpx-page.vue b/components/tpx-page/tpx-page.vue
new file mode 100644
index 0000000..6b1dd2b
--- /dev/null
+++ b/components/tpx-page/tpx-page.vue
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/tpx-select/tpx-select.vue b/components/tpx-select/tpx-select.vue
index 803bb8e..83712e7 100644
--- a/components/tpx-select/tpx-select.vue
+++ b/components/tpx-select/tpx-select.vue
@@ -33,6 +33,8 @@
import ContentItems from "./content-items"
import DefaultSelectInput from "./default-select-input"
import { transListKeyTitle } from "@/common/util"
+ import { pageEventNames } from "@/common/enum"
+
const modeEnum = {
sheet: 'sheet',
drop: 'drop'
@@ -141,18 +143,15 @@
}
},
created() {
- uni.$on('click', this.handleDocumentClick);
- // document.addEventListener('click', this.handleDocumentClick)
+ uni.$on(pageEventNames.globalClick, this.handleDocumentClick);
},
unmounted() {
- uni.$off('click', this.handleDocumentClick);
- // document.removeEventListener('click', this.handleDocumentClick)
+ uni.$off(pageEventNames.globalClick, this.handleDocumentClick);
},
methods: {
handleDocumentClick(){
- debugger
this.show = false
},
handleSelectSwitch() {
diff --git a/pages/post/openorder.vue b/pages/post/openorder.vue
index 22b6e41..53985a9 100644
--- a/pages/post/openorder.vue
+++ b/pages/post/openorder.vue
@@ -1,238 +1,239 @@
-
-
-
-
-
- 运单号
-
-
-
-
- 系统生成
-
-
-
-
- 客户
-
-
-
-
-
+
+
+
+
+
+
+ 运单号
+
+
+
+
+ 系统生成
+
+
+
+
+ 客户
+
+
+
+
+
+
+
+
+ 订单号:TWO291929
+
+
+
+
+
+
+
-
-
- 订单号:TWO291929
-
-
-
-
-
-
-
-
- 路线信息
-
-
-
+ 路线信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
-
-
-
+
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
+
+
+
-
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 是否短信
+
+
+
+
+
+
+
+
+ 是否短信
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 是否短信
-
-
-
-
-
-
-
-
- 是否短信
-
-
-
-
-
+
+
+
+
+ 发货信息(进仓情况)
+
+
+
+
+
+
+
+
+
+ 计费信息
+
+
+
+
+
+
+
+
+ 备注
+
+
+
+
-
-
-
- 发货信息(进仓情况)
-
+
+
+
+
+ 保存
+
+ 确认并打印
-
-
-
-
-
-
- 计费信息
-
-
-
-
-
-
-
-
- 备注
-
-
-
-
-
+
+
+
+
+ 托寄货物描述
+
+
+
-
-
-
-
- 保存
-
- 确认并打印
-
+
+
-
-
-
-
- 托寄货物描述
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+