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

4
pages/login/login.json

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

4
pages/login/login.wxss

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

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

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

4
utils/config.js

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

Loading…
Cancel
Save