Browse Source

no message

jw-featrue-zhanlibiao
mk 2 years ago
parent
commit
af1521c0c8
  1. 4
      pages/index/index.js
  2. 4
      pages/login/login.json
  3. 4
      pages/login/login.wxss
  4. 20
      subpages/communitySelfInsp/pages/historyQuery/historyQuery.js
  5. 4
      utils/config.js

4
pages/index/index.js

@ -15,7 +15,6 @@ Page({
nodata:false nodata:false
}, },
// 事件处理函数 // 事件处理函数
onLoad: async function () { onLoad: async function () {
this.setData({ this.setData({
statusHeight: app.globalData.deviceInfo.statusHeight, statusHeight: app.globalData.deviceInfo.statusHeight,
@ -27,7 +26,6 @@ Page({
await this.getStaffbasicinfo() await this.getStaffbasicinfo()
}, },
onShow(){ onShow(){
this.getStaffbasicinfo()
}, },
onScrollToLower(e){ onScrollToLower(e){
if (this.data.loadMoreType === 'more') { if (this.data.loadMoreType === 'more') {
@ -103,7 +101,7 @@ onScrollToLower(e){
app.globalData.user = res.data app.globalData.user = res.data
}).catch(err=>{ }).catch(err=>{
console.log(err); console.log(err);
wx.navigateTo({ wx.redirectTo({
url: '/pages/login/login', url: '/pages/login/login',
}) })
}) })

4
pages/login/login.json

@ -1,5 +1,7 @@
{ {
"navigationBarTitleText": "", "navigationBarTitleText": "",
"usingComponents": {}, "usingComponents": {},
"navigationBarBackgroundColor": "#1673ee" "navigationStyle": "custom",
"navigationBarBackgroundColor": "#1673ee",
"disableSwipeBack": true
} }

4
pages/login/login.wxss

@ -5,11 +5,11 @@ page {
overflow-y: auto; overflow-y: auto;
} }
.header { .header {
height: 400rpx; height: 500rpx;
width: 100%; width: 100%;
background: linear-gradient(180deg, #1673ee 0%, #66A6FD 63%, #F7F7F7 100%); background: linear-gradient(180deg, #1673ee 0%, #66A6FD 63%, #F7F7F7 100%);
box-sizing: border-box; box-sizing: border-box;
padding: 100rpx 0rpx 100rpx 50rpx; padding: 224rpx 0rpx 100rpx 50rpx;
font-size: 40rpx; font-size: 40rpx;
color: #FFFFFF; color: #FFFFFF;
display: flex; display: flex;

20
subpages/communitySelfInsp/pages/historyQuery/historyQuery.js

@ -128,16 +128,16 @@ Page({
} }
}, },
handelClickedit(e){ handelClickedit(e){
console.log(e); // console.log(e);
if(this.data.type == 'resi'){ // if(this.data.type == 'resi'){
wx.navigateTo({ // wx.navigateTo({
url: `/subpages/addResi/pages/addResi/addResi?type=edit&resiId=${e.currentTarget.dataset.item.resiId}`, // url: `/subpages/addResi/pages/addResi/addResi?type=edit&resiId=${e.currentTarget.dataset.item.resiId}`,
}) // })
}else{ // }else{
wx.navigateTo({ // wx.navigateTo({
url: `/subpages/addhouse/pages/addhouse/addhouse?type=edit&houseId=${e.currentTarget.dataset.item.id}`, // url: `/subpages/addhouse/pages/addhouse/addhouse?type=edit&houseId=${e.currentTarget.dataset.item.id}`,
}) // })
} // }
}, },
back() { back() {

4
utils/config.js

@ -7,8 +7,8 @@ module.exports = {
function BASEURL() { function BASEURL() {
// return 'https://epdc-shibei.elinkservice.cn/epdc-api/api/' // 正式环境 // return 'https://epdc-shibei.elinkservice.cn/epdc-api/api/' // 正式环境
// return 'https://epmet-preview.elinkservice.cn/api/' // 演示环境 return 'https://epmet-preview.elinkservice.cn/api/' // 演示环境
return 'http://192.168.1.144/api/' //测试环境 // return 'http://192.168.1.144/api/' //测试环境
} }
function WEBROOT() { function WEBROOT() {

Loading…
Cancel
Save