From 44a40dd2d64782924de43353144b90c42ad33b4e Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Wed, 11 May 2022 14:06:11 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E8=81=94=E8=B0=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
apis/modules/client.js | 16 +
apis/request.js | 2 +-
components/sl-filter/filter-view.vue | 475 +++++++++++++++++++++
components/sl-filter/iconfont/iconfont.css | 20 +
components/sl-filter/popup-layer.vue | 122 ++++++
components/sl-filter/sl-filter.vue | 302 +++++++++++++
pages.json | 29 +-
pages/clientDetail/clientDetail.vue | 179 ++++----
pages/clients/clients.vue | 106 +++--
pages/orderDetail/orderDetail.vue | 231 ++++++++++
pages/orders/orders.vue | 48 ++-
styles/common.scss | 5 +
12 files changed, 1416 insertions(+), 119 deletions(-)
create mode 100644 components/sl-filter/filter-view.vue
create mode 100644 components/sl-filter/iconfont/iconfont.css
create mode 100644 components/sl-filter/popup-layer.vue
create mode 100644 components/sl-filter/sl-filter.vue
create mode 100644 pages/orderDetail/orderDetail.vue
diff --git a/apis/modules/client.js b/apis/modules/client.js
index 90d2a4e..24b6538 100644
--- a/apis/modules/client.js
+++ b/apis/modules/client.js
@@ -3,4 +3,20 @@ const { get, post } = request
export const queryCustomer = (data) => {
return post('nakadai/nakadai/customer/queryCustomer', data)
+}
+
+export const queryCustomerDetails = (data) => {
+ return get('nakadai/nakadai/customer/queryCustomerDetails', data)
+}
+
+export const querySchool = (data) => {
+ return get('nakadai/nakadai/school/querySchool', data)
+}
+
+export const queryIndustryClass = (data) => {
+ return get('nakadai/nakadai/hrIndustryClass/queryIndustryClass', data)
+}
+
+export const queryIndustry = (data) => {
+ return get('nakadai/nakadai/hrIndustry/queryIndustry', data)
}
\ No newline at end of file
diff --git a/apis/request.js b/apis/request.js
index 019b072..4ede338 100644
--- a/apis/request.js
+++ b/apis/request.js
@@ -12,7 +12,7 @@ const request = options => {
})
}
const header = Object.assign({}, config.headers, {
- token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNjUyMTQ5MDU1LCJleHAiOjE2NTIxOTIyNTUsImFjY291bnRJZCI6IjEifQ.VVjW9tgd0b7_My91VRGJncv62qkILLQGl9PqMkwU0v4'
+ token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNjUyMjM0OTM2LCJleHAiOjE2NTIyNzgxMzYsImFjY291bnRJZCI6IjEifQ.QwmlBM6uDfRpW4xV8b0r3aBOqXQu5gWLj5Jbrlnrtcg'
})
return new Promise((resolve, reject)=>{
uni.request({
diff --git a/components/sl-filter/filter-view.vue b/components/sl-filter/filter-view.vue
new file mode 100644
index 0000000..0ca41f1
--- /dev/null
+++ b/components/sl-filter/filter-view.vue
@@ -0,0 +1,475 @@
+
+
+
+
+
+
+
+
+ {{detailItem.title}}
+
+
+
+
+
+ {{item.detailTitle}}
+
+
+
+ {{detailItem.title}}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/sl-filter/iconfont/iconfont.css b/components/sl-filter/iconfont/iconfont.css
new file mode 100644
index 0000000..a1b4344
--- /dev/null
+++ b/components/sl-filter/iconfont/iconfont.css
@@ -0,0 +1,20 @@
+@font-face {
+ font-family: 'sl-font';
+ src: url('data:font/truetype;charset=utf-8;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzI8kEgOAAABfAAAAFZjbWFwZO3RAgAAAeAAAAGGZ2x5Zh0ZI/EAAANwAAAAyGhlYWQVZkUXAAAA4AAAADZoaGVhB94DhAAAALwAAAAkaG10eAwAAAAAAAHUAAAADGxvY2EAMgBkAAADaAAAAAhtYXhwAREAKAAAARgAAAAgbmFtZT5U/n0AAAQ4AAACbXBvc3TohGjqAAAGqAAAADMAAQAAA4D/gABcBAA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-style: normal;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+.sl-down:before {
+ content: "\e61a";
+}
+
+.sl-up:before {
+ content: "\e61c";
+}
diff --git a/components/sl-filter/popup-layer.vue b/components/sl-filter/popup-layer.vue
new file mode 100644
index 0000000..63c5f1b
--- /dev/null
+++ b/components/sl-filter/popup-layer.vue
@@ -0,0 +1,122 @@
+
+
+
+
+
+
+
diff --git a/components/sl-filter/sl-filter.vue b/components/sl-filter/sl-filter.vue
new file mode 100644
index 0000000..42b3118
--- /dev/null
+++ b/components/sl-filter/sl-filter.vue
@@ -0,0 +1,302 @@
+
+
+
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages.json b/pages.json
index 0a0b121..f24623f 100644
--- a/pages.json
+++ b/pages.json
@@ -1,5 +1,21 @@
{
"pages": [
+ {
+ "path" : "pages/clients/clients",
+ "style" :
+ {
+ "navigationBarTitleText": "客户列表",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path" : "pages/orderDetail/orderDetail",
+ "style" :
+ {
+ "navigationBarTitleText": "订单详情",
+ "enablePullDownRefresh": false
+ }
+ },
{
"path" : "pages/orders/orders",
"style" :
@@ -14,14 +30,6 @@
"navigationBarTitleText": "首页"
}
},
- {
- "path" : "pages/clients/clients",
- "style" :
- {
- "navigationBarTitleText": "客户列表",
- "enablePullDownRefresh": true
- }
- },
{
"path" : "pages/password/password",
"style" :
@@ -122,15 +130,14 @@
"enablePullDownRefresh": false
}
- }
- ,{
+ },
+ {
"path" : "pages/detail/detail",
"style" :
{
"navigationBarTitleText": "详情",
"enablePullDownRefresh": false
}
-
}
],
"condition": { //模式配置,仅开发期间生效
diff --git a/pages/clientDetail/clientDetail.vue b/pages/clientDetail/clientDetail.vue
index 4405a47..2c172f7 100644
--- a/pages/clientDetail/clientDetail.vue
+++ b/pages/clientDetail/clientDetail.vue
@@ -1,12 +1,11 @@
-
+
- 华工大学
+ {{ form.customerName }}
客户编号:2124232
- 客户类型:2124232
- 商务经理:2124232
- 产品到期时间:2124232
+ 客户类型:{{ customerType }}
+ 产品到期时间:{{ form.expireDate }}
@@ -14,7 +13,9 @@
-
+
+
+
@@ -22,29 +23,36 @@
+
+
+
+
+
-
+
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
+
-
+
@@ -68,72 +76,96 @@
diff --git a/pages/orders/orders.vue b/pages/orders/orders.vue
index 5ae73c1..72fef9f 100644
--- a/pages/orders/orders.vue
+++ b/pages/orders/orders.vue
@@ -36,6 +36,49 @@
export default {
data() {
return {
+ menuList: [
+ {
+ 'title': '客户类型',
+ 'detailTitle': '请选择客户类型',
+ 'key': 'customerType',
+ 'isMutiple': false,
+ 'detailList': [
+ {
+ 'title': '正式',
+ 'value': 1
+ },
+ {
+ 'title': '试用',
+ 'value': 2
+ },
+ {
+ 'title': '到期',
+ 'value': 3
+ }
+ ]
+ },
+ {
+ 'title': '菜单3',
+ 'detailTitle': '子标题3',
+ 'key': 'key_3',
+ 'isSort': true,
+ 'isMutiple': false,
+ 'detailList': [
+ {
+ 'title': '条件_3_1',
+ 'value': 'val_3_1'
+ },
+ {
+ 'title': '条件_3_2',
+ 'value': 'val_3_2'
+ },
+ {
+ 'title': '条件_3_3',
+ 'value': 'val_3_3'
+ }
+ ]
+ }
+ ],
curTab: 0,
tabs: [
{
@@ -94,9 +137,4 @@
color: #ff7b2d;
}
}
-.plus {
- position: fixed;
- bottom: 20px;
- right: 20px;
-}
diff --git a/styles/common.scss b/styles/common.scss
index 5039078..e377bbd 100644
--- a/styles/common.scss
+++ b/styles/common.scss
@@ -18,4 +18,9 @@ button[type=primary] {
color: $uni-primary;
border-bottom-color: $uni-primary;
}
+}
+.plus {
+ position: fixed;
+ bottom: 20px;
+ right: 20px;
}
\ No newline at end of file