From 4dacb5cb65080607a45f3b906c0b6cee0f0752a7 Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Tue, 14 Jun 2022 17:25:15 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8=E7=AD=9B=E9=80=89=E3=80=81?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=8B=E6=9C=BA=E5=8F=B7=E3=80=81=E9=82=AE?=
=?UTF-8?q?=E7=AE=B1=E3=80=81=E8=B4=A6=E5=8F=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
apis/modules/user.js | 16 +
components/filter-popup/components/mask.vue | 130 +++++
components/filter-popup/components/popup.vue | 510 +++++++++++++++++++
components/filter-popup/detail.md | 155 ++++++
components/filter-popup/filter-popup.vue | 466 +++++++++++++++++
package.json | 12 +
pages.json | 24 +
pages/account/account.vue | 64 +++
pages/clients/clients.vue | 71 +--
pages/email/email.vue | 130 +++++
pages/ordered/ordered.vue | 103 ++--
pages/orders/orders.vue | 89 ++--
pages/phone/phone.vue | 130 +++++
pages/plans/plans.vue | 18 +-
pages/products/products.vue | 35 +-
pages/qrcode/qrcode.vue | 2 +-
pages/setting/setting.vue | 8 +-
pages/teams/teams.vue | 2 +-
styles/common.scss | 34 ++
19 files changed, 1808 insertions(+), 191 deletions(-)
create mode 100644 components/filter-popup/components/mask.vue
create mode 100644 components/filter-popup/components/popup.vue
create mode 100644 components/filter-popup/detail.md
create mode 100644 components/filter-popup/filter-popup.vue
create mode 100644 package.json
create mode 100644 pages/account/account.vue
create mode 100644 pages/email/email.vue
create mode 100644 pages/phone/phone.vue
diff --git a/apis/modules/user.js b/apis/modules/user.js
index b7b812a..4952680 100644
--- a/apis/modules/user.js
+++ b/apis/modules/user.js
@@ -17,4 +17,20 @@ export const getUserRolesPermissionMenu = (data) => {
return get('users/user-role/getUserRolesPermissionMenu', data)
}
+export const updatePersonCenter = (data) => {
+ return post('users/users/userAccount/updatePersonCenter', data)
+}
+
+export const queryUserInfoDetails = () => {
+ return get('users/users/userAccount/queryUserInfoDetails')
+}
+
+export const bindPhoneOrEmail = (data) => {
+ return post('users/users/userAccount/bindPhoneOrEmail', data)
+}
+
+export const sendPhoneOrEmailCode = (data) => {
+ return post('users/users/userAccount/sendPhoneOrEmailCode', data)
+}
+
export const updateUserAvatars = `http://39.108.250.202:9000/users/users/userAccount/updateUserAvatars`
\ No newline at end of file
diff --git a/components/filter-popup/components/mask.vue b/components/filter-popup/components/mask.vue
new file mode 100644
index 0000000..521f0d9
--- /dev/null
+++ b/components/filter-popup/components/mask.vue
@@ -0,0 +1,130 @@
+
+ {}"
+ :class="{
+ 'u-mask-zoom': zoom,
+ 'u-mask-show': show,
+ }"
+ >
+
+
+
+
+
+
+
diff --git a/components/filter-popup/components/popup.vue b/components/filter-popup/components/popup.vue
new file mode 100644
index 0000000..fffcfdc
--- /dev/null
+++ b/components/filter-popup/components/popup.vue
@@ -0,0 +1,510 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/filter-popup/detail.md b/components/filter-popup/detail.md
new file mode 100644
index 0000000..e704412
--- /dev/null
+++ b/components/filter-popup/detail.md
@@ -0,0 +1,155 @@
+## 导入即用 全端支持
+
+### 有问题 + wx : zy597172583 标注来意 可评论 看到及时回复
+1.使用方式
+
+```javascript
+
+
+
+
+
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..de153de
--- /dev/null
+++ b/package.json
@@ -0,0 +1,12 @@
+{
+ "id": "filter-popup",
+ "name": "筛选 菜单 筛选菜单 上拉筛选 ",
+ "version": "1.0.4",
+ "description": "筛选菜单,支持单选和多选 , 选择后的数据通过.sync双向绑定,全端支持 导入即用",
+ "keywords": [
+ "筛选",
+ "菜单",
+ "筛选菜单",
+ "上拉筛选"
+ ]
+}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index 1236a81..09e1e20 100644
--- a/pages.json
+++ b/pages.json
@@ -159,6 +159,30 @@
"navigationBarTitleText": "编辑产品",
"enablePullDownRefresh": false
}
+ },
+ {
+ "path" : "pages/account/account",
+ "style" :
+ {
+ "navigationBarTitleText": "修改账号",
+ "enablePullDownRefresh": false
+ }
+ }
+ ,{
+ "path" : "pages/phone/phone",
+ "style" :
+ {
+ "navigationBarTitleText": "修改手机号",
+ "enablePullDownRefresh": false
+ }
+ }
+ ,{
+ "path" : "pages/email/email",
+ "style" :
+ {
+ "navigationBarTitleText": "修改邮箱",
+ "enablePullDownRefresh": false
+ }
}
],
"condition": { //模式配置,仅开发期间生效
diff --git a/pages/account/account.vue b/pages/account/account.vue
new file mode 100644
index 0000000..88435a2
--- /dev/null
+++ b/pages/account/account.vue
@@ -0,0 +1,64 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/clients/clients.vue b/pages/clients/clients.vue
index 1dd49f0..8550f1a 100644
--- a/pages/clients/clients.vue
+++ b/pages/clients/clients.vue
@@ -1,15 +1,12 @@
+
+
+
+
-
-
-
-
-
-
-
- {{ menuList[0].detailList.find(e => e.value === item.customerType).title }}客户
+ {{ filterData[0].data.find(e => e.value === item.customerType).title }}客户
@@ -45,6 +42,7 @@
+
@@ -54,32 +52,34 @@
export default {
data() {
return {
- menuList: [
- {
- 'title': '客户类型',
- 'detailTitle': '请选择客户类型',
- 'key': 'customerType',
- 'isMutiple': false,
- 'detailList': [
- {
- 'title': '全部',
- 'value': ''
- },
- {
- 'title': '正式',
- 'value': 1
- },
- {
- 'title': '试用',
- 'value': 2
- },
- {
- 'title': '到期',
- 'value': 3
- }
- ]
- }
+ popup: false,
+ //筛选表单数据
+ filterData: [
+ {
+ children: false,//是否有子项
+ title: "客户类型",
+ key: "customerType", //键名 接收对象名字
+ keyValue: "value", //获取的值是哪个
+ isRadio: true, //是否单选 否则多选
+ data: [
+ {
+ title: '正式',
+ value: 1
+ },
+ {
+ title: '试用',
+ value: 2
+ },
+ {
+ title: '到期',
+ value: 3
+ }
+ ],
+ }
],
+ filterForm: {
+ customerType: []
+ },
curTab: 0,
tabs: [],
reachBottom: 0, // 是否是上拉加载。0->否,1->是,-1->加载完所有数据
@@ -168,8 +168,9 @@
this.getList()
},
// 筛选确定回调
- result(val) {
- this.customerType = val.customerType
+ subFinsh(val) {
+ const { customerType } = val
+ this.customerType = customerType.length ? customerType[0] : ''
this.initList()
},
// tab切换
diff --git a/pages/email/email.vue b/pages/email/email.vue
new file mode 100644
index 0000000..3e46897
--- /dev/null
+++ b/pages/email/email.vue
@@ -0,0 +1,130 @@
+
+
+
+
+
+
+
+ {{ btnText }}
+
+
+
+
+
+
+
+
diff --git a/pages/ordered/ordered.vue b/pages/ordered/ordered.vue
index 9568122..cb273f8 100644
--- a/pages/ordered/ordered.vue
+++ b/pages/ordered/ordered.vue
@@ -1,18 +1,15 @@
-
-
-
-
-
+
+
-
@@ -46,48 +45,45 @@
return {
normalIcon: product.normalIcon,
customerId: '',
- menuList: [
- {
- 'title': '订阅状态',
- 'detailTitle': '请选择订阅状态',
- 'key': 'orderStatus',
- 'isMutiple': false,
- 'detailList': [
- {
- 'title': '全部',
- 'value': ''
- },
- {
- 'title': '生效',
- 'value': 1
- },
- {
- 'title': '过期',
- 'value': 2
- }
- ]
- },
- {
- 'title': '产品状态',
- 'detailTitle': '请选择产品状态',
- 'key': 'productStatus',
- 'isMutiple': false,
- 'detailList': [
- {
- 'title': '全部',
- 'value': ''
- },
- {
- 'title': '启用',
- 'value': 1
- },
- {
- 'title': '禁用',
- 'value': 2
- }
- ]
- }
+ popup: false,
+ //筛选表单数据
+ filterData: [
+ {
+ children: false,//是否有子项
+ title: "订阅状态",
+ key: "orderStatus", //键名 接收对象名字
+ keyValue: "value", //获取的值是哪个
+ isRadio: true, //是否单选 否则多选
+ data: [
+ {
+ title: '生效',
+ value: 1
+ },
+ {
+ title: '过期',
+ value: 2
+ },
+ ],
+ },
+ {
+ children: false,//是否有子项
+ title: "产品状态",
+ key: "productStatus", //键名 接收对象名字
+ keyValue: "value", //获取的值是哪个
+ isRadio: true, //是否单选 否则多选
+ data: [
+ {
+ title: '启用',
+ value: 1
+ },
+ {
+ title: '禁用',
+ value: 2
+ },
+ ],
+ }
],
+ filterForm: {},
curTab: '',
tabs: [
{
@@ -204,18 +200,19 @@
this.listAll = data
}).catch(e => {})
},
+ // 筛选确定回调
+ subFinsh(val) {
+ const { orderStatus, productStatus } = val
+ this.orderStatus = orderStatus.length ? orderStatus[0] : ''
+ this.productStatus = productStatus.length ? productStatus[0] : ''
+ this.filter()
+ },
// 筛选
filter() {
const list = this.listAll
const { orderStatus, productStatus, keyword, curTab } = this
this.list = list.filter(e => (orderStatus === '' || ((orderStatus === 2 && e.status === '已过期') || (orderStatus === 1 && e.status === '生效中'))) && (productStatus === '' || ((productStatus === 2 && e.isEnable === '禁用') || (productStatus === 1 && e.isEnable === '启用'))) && e.productName.includes(keyword) && (curTab === '' || (curTab === e.productType)))
},
- // 筛选确定回调
- result(val) {
- this.orderStatus = val.orderStatus || ''
- this.productStatus = val.productStatus || ''
- this.filter()
- },
// tab切换
tabChange(tab) {
this.curTab = tab.id
diff --git a/pages/orders/orders.vue b/pages/orders/orders.vue
index bcd1eea..f28a4d5 100644
--- a/pages/orders/orders.vue
+++ b/pages/orders/orders.vue
@@ -1,17 +1,14 @@
+
+
+
+
+
-
-
-
-
-
-
-
-
@@ -46,7 +43,7 @@
- {{ menuList[0].detailList.find(e => e.value === item.orderStatus).title }}
+ {{ filterData[0].data.find(e => e.value === item.orderStatus).title }}
@@ -58,6 +55,7 @@
+
@@ -68,45 +66,28 @@
export default {
data() {
return {
- menuList: [
- {
- 'title': '订单状态',
- 'detailTitle': '请选择订单状态',
- 'key': 'orderStatus',
- 'isMutiple': false,
- 'detailList': [
- {
- 'title': '全部',
- 'value': ''
- },
- {
- 'title': '待发货',
- 'value': 0
- },
- {
- 'title': '已完成',
- 'value': 1
- }
- ]
- },
- {
- 'title': '排序',
- 'detailTitle': '请选择排序(按下单日期)',
- 'key': 'sort',
- 'isSort': true,
- 'isMutiple': false,
- 'detailList': [
- {
- 'title': '倒序',
- 'value': 'desc'
- },
- {
- 'title': '顺序',
- 'value': 'asc'
- }
- ]
- }
+ popup: false,
+ //筛选表单数据
+ filterData: [
+ {
+ children: false,//是否有子项
+ title: "订单状态",
+ key: "orderStatus", //键名 接收对象名字
+ keyValue: "value", //获取的值是哪个
+ isRadio: true, //是否单选 否则多选
+ data: [
+ {
+ title: "待发货",
+ value: 0
+ },
+ {
+ title: "已完成",
+ value: 1
+ },
+ ],
+ }
],
+ filterForm: {},
curTab: 0,
tabs: [
{
@@ -224,9 +205,14 @@
item.toggle = !item.toggle
},
// 筛选确定回调
- result(val) {
- if (val.orderStatus !== undefined) this.orderStatus = val.orderStatus
- if (val.sort) this.sort = val.sort
+ subFinsh(val) {
+ const { orderStatus } = val
+ this.orderStatus = orderStatus.length ? orderStatus[0] : ''
+ this.initList()
+ },
+ // 排序
+ switchSort() {
+ this.sort = this.sort === 'desc' ? 'asc' : 'desc'
this.initList()
},
// tab切换
@@ -262,9 +248,6 @@
diff --git a/pages/plans/plans.vue b/pages/plans/plans.vue
index ed9d566..28c530e 100644
--- a/pages/plans/plans.vue
+++ b/pages/plans/plans.vue
@@ -1,8 +1,7 @@
-
-
-
+
+