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 @@ 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 @@ 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 @@