From 1fa75fba6c4ee506afee692fad968ccf0c3c7431 Mon Sep 17 00:00:00 2001
From: chen <2659004835@qq.com>
Date: Thu, 24 Mar 2022 16:34:50 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A1=B5=E9=9D=A2=E9=93=BE?=
=?UTF-8?q?=E6=8E=A5=E3=80=81=E8=B0=83=E7=94=A8=E8=A7=A3=E5=86=B3=E6=96=B9?=
=?UTF-8?q?=E6=A1=88=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3=E3=80=81=E8=B0=83?=
=?UTF-8?q?=E7=94=A8=E5=B8=B8=E8=A7=81=E9=97=AE=E9=A2=98=E7=9B=B8=E5=85=B3?=
=?UTF-8?q?=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
commons/base.css | 11 +
commons/flying-monkey.css | 19 +
jsFile/public-api.js | 5 +
jsFile/requst.js | 2 +-
pages.json | 13 +-
pages/dataQuery/queryFunction.vue | 386 ++++++------
pages/login/login.vue | 9 +-
pages/project/projectList.vue | 566 ++++++++----------
pages/tabbar/pagehome/pagehome.vue | 76 ++-
pagesB/message-center/message-center.vue | 46 ++
.../personal-information.vue | 104 +++-
pagesB/plan-fault-product-detail/detail.vue | 36 +-
pagesB/plan-fault/plan-fault.vue | 59 +-
pagesB/service-range/service-range.vue | 20 +-
pagesB/set-up/set-up.vue | 42 +-
15 files changed, 821 insertions(+), 573 deletions(-)
create mode 100644 jsFile/public-api.js
create mode 100644 pagesB/message-center/message-center.vue
diff --git a/commons/base.css b/commons/base.css
index 525bf77..f660238 100644
--- a/commons/base.css
+++ b/commons/base.css
@@ -169,6 +169,17 @@ button:after{content: none!important;}
/* 文字空两格 */
.tindent{text-indent: 2em;}
+/* 元素缩小 */
+.scal13{transform: scale(1.3);}
+.scal12{transform: scale(1.2);}
+.scal11{transform: scale(1.1);}
+.scal10{transform: scale(1);}
+.scal09{transform: scale(.9);}
+.scal08{transform: scale(.8);}
+.scal07{transform: scale(.7);}
+.scal06{transform: scale(.6);}
+.scal05{transform: scale(.5);}
+
/* 行间距 */
.linh40{line-height: 40rpx;}
.linh50{line-height: 50rpx;}
diff --git a/commons/flying-monkey.css b/commons/flying-monkey.css
index 1ed5c5c..a6b2c2b 100644
--- a/commons/flying-monkey.css
+++ b/commons/flying-monkey.css
@@ -357,4 +357,23 @@ uni-radio .uni-radio-input {border: 1rpx solid #444444;}
border-radius: 6rpx;
padding: 6rpx 20rpx;
margin-top: 10rpx;
+}
+/* 消息中心 */
+.message-circle::before {
+ content: '';
+ display: flex;
+ width: 24rpx;
+ height: 24rpx;
+ background-color: #6f91ff;
+ border-radius: 100%;
+ margin-right: 20rpx;
+}
+.activity-message::before {
+ background-color: #6f91ff;
+}
+.audit-failed::before {
+ background-color: #f15d5d;
+}
+.system-notification::before {
+ background-color: #2cfc3b;
}
\ No newline at end of file
diff --git a/jsFile/public-api.js b/jsFile/public-api.js
new file mode 100644
index 0000000..bc8d59e
--- /dev/null
+++ b/jsFile/public-api.js
@@ -0,0 +1,5 @@
+import request from './requst.js';
+export function uploadImg(data) {
+ console.log(data,3);
+ return request.upload("/universal/api.upload/upload", data);
+}
\ No newline at end of file
diff --git a/jsFile/requst.js b/jsFile/requst.js
index 1dfc909..5a3f313 100644
--- a/jsFile/requst.js
+++ b/jsFile/requst.js
@@ -105,7 +105,7 @@ const request = (method, url, options) => {
// 上传文件 封装请求
const uploadFile = (url, options) => {
let tempData = options || {}
-
+ console.log(tempData,108);
return new Promise((resolve, reject) => {
uni.uploadFile({
url: `${uni.getStorageSync('hostapi')}${url}`,
diff --git a/pages.json b/pages.json
index 8640ea7..b1f090d 100644
--- a/pages.json
+++ b/pages.json
@@ -230,7 +230,9 @@
"style" :
{
"navigationBarTitleText": "",
- "enablePullDownRefresh": false
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom", //禁用原生导航栏,微信小程序可用
+ "navigationBarTextStyle": "white"
}
}
@@ -313,6 +315,15 @@
"enablePullDownRefresh": false
}
+ }
+ ,{
+ "path" : "message-center/message-center",
+ "style" :
+ {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
}
]
}
diff --git a/pages/dataQuery/queryFunction.vue b/pages/dataQuery/queryFunction.vue
index ebf1017..7f5dd01 100644
--- a/pages/dataQuery/queryFunction.vue
+++ b/pages/dataQuery/queryFunction.vue
@@ -1,193 +1,211 @@
-
-
-
- 查询功能
-
-
-
-
-
-
- {{item.title}}
-
-
-
-
-
-
- 查询
-
-
-
-
-
-
-
-
-
-
- 最后查询
-
-
-
-
-
-
-
- 湖南争鸣光电科技有限公司
-
-
- 编号:FRID23123141123321124
-
-
- 2121-1-8 12:23
-
-
-
-
-
+
+
+ 查询功能
+
+
+
+
+ {{item.title}}
+
+
+
+
+
+ 查询
+
+
+ 最近查询
+
+
+
+
+ 湖南争鸣光电科技有限公司
+ 编号:FRID23123141123321124
+ 2121-1-8 12:23
+
+
+
+
diff --git a/pages/login/login.vue b/pages/login/login.vue
index e6a7b2f..fbeaf3b 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -8,7 +8,7 @@
-
+
@@ -17,7 +17,7 @@
-
+
{{codeText}}
@@ -27,7 +27,7 @@
-
+
@@ -35,7 +35,7 @@
-
+
@@ -96,6 +96,7 @@
this.$toolAll.tools.showToast('登录成功');
// 缓存token和角色类型
uni.setStorageSync('token',res.data.token);
+ // 角色(1:业务员、2:客户、3:客服、4:工程师)
uni.setStorageSync('type_id',res.data.type_id);
setTimeout(()=>{
uni.reLaunch({
diff --git a/pages/project/projectList.vue b/pages/project/projectList.vue
index 41f5b75..2da386a 100644
--- a/pages/project/projectList.vue
+++ b/pages/project/projectList.vue
@@ -1,353 +1,289 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ 产品类型
+
+
+
+
+
+ 竣工日期
+
+
+
+
+ 筛选
+
+
+
+
+
+
+
+
+ 湖南工业大学化工学院会议室P2.5全彩LED显示屏
+
+ 项目编号:20220108-1001
+ 规格型号:DS-CK25FI/H
+ 产品尺寸:3.94m*2.02m
+ 安装位置:xxx综合楼2楼会议室
+
+
+
+
+
+
+ 湖南省长沙市高新开发区谷园路109号像素大厦1205
+
+ 2022/01/08
+
+ 质保到期
+
+
+
-
-
-
-
-
- 产品类型
-
-
-
-
-
-
-
-
-
- 竣工日期
-
-
-
-
-
-
-
-
- 筛选
-
-
-
-
-
-
-
-
-
-
-
-
- 湖南工业大学化工学院会议室P2.5全彩LED显示屏
-
-
- 项目编号:20220108-1001
-
-
- 规格型号:DS-CK25FI/H
-
-
- 产品尺寸:3.94m*2.02m
-
-
- 安装位置:xxx综合楼2楼会议室
-
-
-
-
-
-
-
-
- 湖南省长沙市高新开发区谷园路109号像素大厦1205
-
-
-
- 2022/01/08
-
-
-
- 质保到期
-
-
-
-
-
-
-
-
- 湖南工业大学化工学院会议室P2.5全彩LED显示屏
-
-
- 项目编号:20220108-1001
-
-
- 规格型号:DS-CK25FI/H
-
-
- 产品尺寸:3.94m*2.02m
-
-
- 安装位置:xxx综合楼2楼会议室
-
-
-
-
-
-
-
-
- 湖南省长沙市高新开发区谷园路109号像素大厦1205
-
-
-
- 2022/01/08
-
-
-
- 质保中
-
-
-
-
-
-
+
+
diff --git a/pages/tabbar/pagehome/pagehome.vue b/pages/tabbar/pagehome/pagehome.vue
index 654e22a..5d3dbbf 100644
--- a/pages/tabbar/pagehome/pagehome.vue
+++ b/pages/tabbar/pagehome/pagehome.vue
@@ -1,7 +1,7 @@
-
+
{{messageNumber}}
@@ -10,7 +10,7 @@
-
+
拨打电话
@@ -41,7 +41,7 @@
-
+
故障报修
@@ -53,10 +53,10 @@
-
+
数据查询
-
+
{{item.num}}
@@ -77,9 +77,9 @@
-
+
-
+
项目维修
@@ -91,7 +91,7 @@
-
+
待办工单
@@ -133,10 +133,10 @@
-
+
数据查询
-
+
{{item.num}}
@@ -146,7 +146,7 @@
-
+
结算情况
@@ -181,9 +181,9 @@
-
-
-
+
+
+
{{item.title}}
@@ -224,7 +224,7 @@
},
data() {
return {
- role: 0, // 0:表示客户 1:表示工程师 2:表示客服 3:业务员
+ role: 3, // 1:业务员 2:表示客户 3:表示客服 4:表示工程师
statusHeight: uni.getSystemInfoSync().statusBarHeight + 50,
messageNumber: 16 ,// 消息数量
noticeList:['2021年11月06日公司团建,维修服务暂停一天服务暂停一天服务暂停一天。','51akslfj;dkpiojasdjf;j1ij'],//公告
@@ -318,11 +318,45 @@
onLoad(options) {
// 获取当前页面url
this.$toolAll.tools.obtainUrl();
+ // 调用解决方案类型事件
+ this.getPlanType();
+ // 调用增值服务类型
+ // this.getIncrementServiceType();
},
methods: {
goNoticeDetail(e){
console.log(e);
},
+ // 查询增值服务类型
+ getIncrementServiceType(){
+ this.$requst.post('/universal/api.vas/vas_type').then(res=>{
+ if(res.code) {
+
+ }
+ })
+ },
+ // 数据查询事件
+ dataQueryEv(index){
+ uni.navigateTo({
+ url:`/pages/dataQuery/queryFunction?index=${index}`
+ })
+ },
+ // 查询解决方案类型
+ getPlanType(){
+ this.$requst.post('/universal/api.solution/solution_type').then(res=>{
+ if(res.code) {
+ res.data.forEach(item=>{
+ let obj = {
+ id:item.id,
+ title:item.name,
+ imgsrc: uni.getStorageSync('hostapi') + '/' + item.cover_img,
+ }
+ this.solutionList.push(obj);
+ })
+ console.log(this.solutionList,340);
+ }
+ })
+ },
// 故障报修分类下的点击事件
goFaultRepair(index){
if(index!=2) {
@@ -360,6 +394,18 @@
url:`/pagesB/plan-fault-product-detail/detail?index=${index}`
})
},
+ // 前往消息列表页面
+ goMessage(){
+ uni.navigateTo({
+ url:`/pagesB/message-center/message-center`
+ })
+ },
+ // 拨打电话事件
+ callEv(){
+ uni.makePhoneCall({
+ phoneNumber: '15616330510'
+ })
+ }
}
}
diff --git a/pagesB/message-center/message-center.vue b/pagesB/message-center/message-center.vue
new file mode 100644
index 0000000..7c657fd
--- /dev/null
+++ b/pagesB/message-center/message-center.vue
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+ 活动消息
+ 2020.06.17 18:30
+
+
+ 恭喜您成为第99位会员,我们将赠送您一张优惠 券,您可以享受8折优惠购买....
+
+
+
+
+
+
+
+
+
diff --git a/pagesB/personal-information/personal-information.vue b/pagesB/personal-information/personal-information.vue
index c1fe229..25b86e8 100644
--- a/pagesB/personal-information/personal-information.vue
+++ b/pagesB/personal-information/personal-information.vue
@@ -5,15 +5,19 @@
- 我的昵称
- 156****0510
+ 我的昵称
+
+
+
- 姓名
- 156****0510
+ 姓名
+
+
+
- 性别
+ 性别
@@ -26,43 +30,49 @@
- 联系电话
- 15616330510
+ 联系电话
+
+
+
- 电子邮箱
- 7607640@qq.com
+ 电子邮箱
+
+
+
- 身份证号码
- 430225199708210800
+ 身份证号码
+
+
+
身份证正反面
- 查看
-
+ 查看
+
意外险材料
- 查看
-
+ 查看
+
签署工程师合作协议
- 查看
-
+ 查看
+
技能证书
- 查看
-
+ 查看
+
@@ -74,19 +84,73 @@