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