Browse Source

no message

work_tab_bar
username@email.com 2 years ago
parent
commit
f522eb774d
  1. 1
      pages/index/index.js
  2. 4
      pages/index/index.json
  3. 17
      pages/login/login.js
  4. 5
      pages/login/login.wxml
  5. 4
      pages/login/login.wxss
  6. 4
      pages/work/work.wxss
  7. 48
      pages/work2/work2.js
  8. 86
      pages/work2/work2.wxml
  9. 456
      pages/work2/work2.wxss
  10. 9
      project.private.config.json

1
pages/index/index.js

@ -4,6 +4,7 @@ const app = getApp()
import api, {getIntelligentMessage,getToken,getStaffbasicinfo,clearMessage} from "../../utils/api"
Page({
data: {
selectList:['全部消息','居民信息采集','房屋信息采集','社区满意度自查'],
selectValue:0,
pageSize:10,

4
pages/index/index.json

@ -1,10 +1,14 @@
{
"usingComponents": {
"load-more": "../../components/loadMore/loadMore",
"no-data": "../../components/noData/nodata",
"custom-tab-bar":"../../components/custom-tab-bar"
},
"navigationBarTitleText": "消息",
"enablePullDownRefresh": true,
"backgroundColor": "#f8f8f8",
"backgroundTextStyle": "dark"

17
pages/login/login.js

@ -1,4 +1,5 @@
// pages/register/register.js
// 到入一个
import {userLoginlog} from "../../utils/api"
Page({
@ -63,20 +64,24 @@ Page({
},
handelBlurMobile(e){
this.setData({
// 获取绑定过的值,付给fromData.mobile
'formData.mobile': e.detail.value
})
console.log(this.data.formData)
},
handelBlurPassword(e){
this.setData({
// 获取绑定过的值,付给fromData.password
'formData.password': e.detail.value
})
console.log(this.data.formData)
},
handelClickSubmit(){
if(!this.data.formData.mobile){
// 微信的轻量级api
wx.showToast({
title: '请填写手机号',
// 不显示图标
icon:'none',
duration:3000
})
@ -86,27 +91,39 @@ Page({
wx.showToast({
title: '请输入密码',
icon:'none',
// 提示时间为3s
duration:3000
})
return
}
//var和const的区别,一个可变,一个不可变,
// const 声明一个不可变的对象parm,并创建了对象
const parm = {
// wxCode对象的初始化
wxCode :'',
// ...将this.data.formData所有属性,赋值到表单中
...this.data.formData
}
// 轻量级api,在加载时进行显示
wx.showLoading({
title: '登录中',
})
//微信的api,获取登录凭证
// 在这一步骤中,用户获取凭证
wx.login({
success: (res) => {
parm.wxCode = res.code
console.log(parm.wxCode);
// 调用登录的接口
userLoginlog(parm).then((res)=>{
console.log(res);
// 不明白这里判断的是什么
if(res.code == 0){
// 用于跳转的api,跳转到某某某
wx.switchTab({
url: '/pages/index/index',
})
//加入本地内存的api
wx.setStorageSync('token', res.data.token)
}
}).catch(err=>{

5
pages/login/login.wxml

@ -11,10 +11,13 @@
<view class="login">
<view class="input_box">
<image src="../../images/login/user.png" mode=""/>
<!-- 失去焦点的时候bindblur="handelBlurMobile" -->
<input type="text" placeholder="请输入手机号" bindblur="handelBlurMobile" value="{{formData.mobile}}" confirm-type="next"/>
<image src="../../images/login/password.png" mode=""/>
<!-- 将值绑定formData.password中 -->
<input type="text" confirm-type="go" password="true" placeholder="请输入密码" bindinput="handelBlurPassword" bindblur="handelBlurPassword" value="{{formData.password}}" />
</view>
<text wx:if="{{false}}">忘记密码</text>
<text wx:if="{true}">忘记密码</text>
<!-- tap事件绑定到handelClickSubmit。tab事件,当触摸屏时 -->
<button bind:tap="handelClickSubmit" style="font-weight: 600;">登录</button>
</view>

4
pages/login/login.wxss

@ -1,12 +1,16 @@
/* pages/register/register.wxss */
page {
/*宽度为100% */
width: 100%;
/* 最小高度 */
min-height: 100vh;
/* 垂直方向.元素溢出时,显示滚动条 */
overflow-y: auto;
}
.header {
height: 500rpx;
width: 100%;
/*渐变色 */
background: linear-gradient(180deg, #1673ee 0%, #66A6FD 63%, #F7F7F7 100%);
box-sizing: border-box;
padding: 140rpx 0rpx 100rpx 50rpx;

4
pages/work/work.wxss

@ -62,8 +62,8 @@ page {
width: 100%;
display: flex;
align-items: center;
justify-content: start;
color: #fff;
/* justify-content: start; */
color: rgb(131, 80, 80);
font-size: 32rpx;
position: relative;
padding-left: 20rpx;

48
pages/work2/work2.js

@ -62,5 +62,53 @@ Page({
*/
onShareAppMessage() {
},
onAddResident(){
wx.navigateTo({
url: '../../subpages/addResi/pages/addResi/addResi',
})
},
onAddHouse(){
wx.navigateTo({
url: '../../subpages/addhouse/pages/addhouse/addhouse',
})
},
onBusinessRecord(){
wx.navigateTo({
url: '../../subpages/businessRecord/businessRecord',
})
},
onHistoryQuery(){
wx.navigateTo({
url: '../../subpages/communitySelfInsp/pages/historyQuery/historyQuery',
})
},
onFollowUpList(){
wx.navigateTo({
url: '../../subpages/communitySelfInsp/pages/followUpList/followUpList',
})
},
onMyTroubleshootDemand(){
wx.navigateTo({
url: '../../subpages/myTroubleshootDemand/pages/index/index',
})
},
onDemandCheck(){
wx.navigateTo({
url: '../../subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck',
})
},
onAddHouse(){
wx.navigateTo({
url: '../../subpages/communitySelfInsp/pages/followUpList/followUpList',
})
}
// onAddHouse(){
// wx.navigateTo({
// url: '../../subpages/addhouse/pages/addhouse/addhouse',
// })
// },
})

86
pages/work2/work2.wxml

@ -1,11 +1,9 @@
<!--pages/work2/work2.wxml-->
<view class="page">
<!--box_1在这里的作用 -->
<view class="block_1">
<view class="header">
<image src="/images/work2/Header.png "class="label_1"></image>
<!--lines指定行数 -->
<text lines="1" class="text_1">海伦路街道</text>
<view class="header">
<view>
<image src="/images/work2/Header.png "class="image_1" ></image>
<text lines="1" class="text_1">海伦路街道</text>
</view>
</view>
<view class="box_2">
@ -16,65 +14,63 @@
<view class="text-wrapper_7-0">
<text lines="1" class="text_2-0">居民信息</text>
</view>
<view class="image-wrapper_9-0">
<image src="/images/work2/add_resident.png" class="image_12-0"></image>
<image src="/images/work2/add_record.png" class="image_13-0"></image>
<view class="content_1">
<view>
<image src="/images/work2/add_resident.png" class="image_12-0" bind:tap="onAddResident"></image>
<text lines="1" class="text_3-0" bind:tap="onAddResident">新增居民信息</text>
</view>
<view class="text-wrapper_8-0">
<text lines="1" class="text_3-0">新增居民信息</text>
<view>
<image src="/images/work2/add_record.png" class="image_13-0" bind:tap="onFollowUpList"></image>
<text lines="1" class="text_4-0">新增记录</text>
</view>
</view>
</view>
<view class="section_1-0">
<view class="text-wrapper_7-0">
<text lines="1" class="text_2-0">房屋信息</text>
</view>
<view class="image-wrapper_9-0">
<image src="/images/work2/add_houses.png" class="image_12-1"></image>
<image src="/images/work2/add_record.png" class="image_13-1"></image>
<text lines="1" class="text_2-0" >房屋信息</text>
</view>
<view class="text-wrapper_8-0">
<view class="content_1">
<view>
<image src="/images/work2/add_houses.png" class="image_12-1" bind:tap="onAddHouse"></image>
<text lines="1" class="text_3-0">新增房屋信息</text>
</view>
<view> <image src="/images/work2/add_record.png" class="image_13-1" bind:tap="onFollowUpList"></image>
<text lines="1" class="text_4-0">新增记录</text>
</view>
</view>
</view>
<!-- <view class="section_1-0">
<view class="section_1-0">
<view class="text-wrapper_7-0">
<text lines="1" class="text_2-0">房屋信息</text>
<text lines="1" class="text_2-0">信息服务</text>
</view>
<view class="image-wrapper_9-0">
<image src="/images/work2/add_houses.png" class="image_12-1"></image>
<image src="/images/work2/add_record.png" class="image_13-1"></image>
<image src="/images/work2/add_record.png" class="image_13-1"></image>
<view class="house">
<view>
<image src="/images/work2/reporting.png" class="image_12-2" bind:tap="onDemandCheck"></image>
<text lines="1" class="text_3-0">诉求上报</text>
</view>
<view class="text-wrapper_8-0">
<text lines="1" class="text_3-0">新增房屋信息</text>
<text lines="1" class="text_4-0">新增记录</text>
<view>
<image src="/images/work2/rep_record.png" class="image_13-2" bind:tap="onMyTroubleshootDemand"></image>
<text lines="1" class="text_4-0">诉求上报记录</text>
</view>
</view> -->
<view class="section_1-0">
<text lines="1" class="text_8">服务信息</text>
<view class="list_2">
<view class="list-items_1-0">
<image src="/images/work2/reporting.png" class="image_14-0"></image>
<text lines="1" class="text_9-0">诉求上报</text>
</view>
<view class="list-items_1-1">
<image src="/images/work2/rep_record.png" class="image_14-1"></image>
<text lines="1" class="text_9-1">诉求上报记录</text>
<view>
<image src="/images/work2/satisfaction.png" class="image_13-2" bind:tap="onHistoryQuery"></image>
<text lines="1" class="text_5-0">满意度调查</text>
</view>
<view class="list-items_1-2">
<image src="/images/work2/satisfaction.png" class="image_14-2"></image>
<text lines="1" class="text_9-2">满意度调查</text>
</view>
</view>
</view>
<view class="section_1-0">
<text lines="1" class="text_12">数据</text>
<image src="/images/work2/data.png" class="image_15"></image>
<view class="text-wrapper_7-0">
<text lines="1" class="text_2-0">数据</text>
</view>
<view class="content_1">
<view>
<image src="/images/work2/data.png" class="image_15">
</image>
<text lines="1" class="text_13">数据</text>
</view>
</view>
</view>
</view>
</view>

456
pages/work2/work2.wxss

@ -3,26 +3,46 @@
/*定位方式为相对定位 */
position: relative;
width: 750rpx;
height: 1546rpx;
height: 1400rpx;
/* 超过页面显示滑轮 */
overflow: hidden;
display: flex;
/* 按照行排序 */
flex-direction: column;
}
.box_1 {
height: 1546rpx;
background-size: 100% 100%;
.header {
display: flex;
flex-direction: column;
width: 750rpx;
}
.block_1 {
background: #1673ee;
width: 750rpx;
height: 298rpx;
display: flex;
width: 100%;
height: 400rpx;
flex-direction: column;
/* margin: 100rpx 0 0 31rpx; */
height: 500rpx;
}
.header>view{
display:flex;
flex-direction: row;
justify-items:self-end;
margin: 130rpx 0 0 29rpx;
width: 100%;
}
.image_1 {
width: 34rpx;
height: 31rpx;
}
.text_1 {
/* width: 157rpx;
height: 30rpx; */
overflow-wrap: break-word;
color: rgba(255,255,255,1);
font-size: 32rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin-left: 15rpx;
}
.box_2 {
background-color: rgba(247,247,247,1.000000);
@ -43,31 +63,49 @@
display: flex;
flex-direction: column;
}
.header {
width: 699rpx;
height: 56rpx;
flex-direction: row;
.content_1{
display: flex;
margin: 100rpx 0 0 31rpx;
/* flex-direction: row; */
justify-self:center;
margin: 40rpx 0 0 10rpx;
}
.label_1 {
width: 34rpx;
height: 31rpx;
margin-top: 11rpx;
.content_1>view{
display: flex;
flex-direction: column;
align-items: center;
width: 250rpx;
height:210rpx;
}
.text_1 {
width: 157rpx;
height: 30rpx;
overflow-wrap: break-word;
color: rgba(255,255,255,1);
font-size: 32rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin: 13rpx 0 0 18rpx;
.data{
display: flex;
flex-direction: column;
margin: 40rpx 0 0 10rpx;
}
.data >view{
display: flex;
flex-direction: column;
align-items: center;
width: 303rpx;
height: 200rpx;
}
.house{
display: flex;
justify-content: start;
margin: 40rpx 0 0 10rpx;
}
.house >view{
display: flex;
flex-direction: column;
align-items: center;
width: 303rpx;
height: 200rpx;
}
.image_2 {
width: 158rpx;
height: 56rpx;
@ -90,6 +128,14 @@
display: flex;
flex-direction: column;
}
.image-wrapper_9-1{
width: 404rpx;
height: 100rpx;
flex-direction: row;
display: flex;
justify-content: space-between;
margin: 40rpx 0 0 59rpx;
}
.text-wrapper_7-0 {
width: 134rpx;
height: 33rpx;
@ -136,7 +182,6 @@
margin: 23rpx 0 40rpx 31rpx;
}
.text_3-0 {
width: 166rpx;
height: 27rpx;
overflow-wrap: break-word;
color: rgba(51,51,51,1);
@ -146,9 +191,10 @@
text-align: left;
white-space: nowrap;
line-height: 28rpx;
margin-top: 15rpx;
}
.text_4-0 {
width: 109rpx;
/* width: 109rpx; */
height: 27rpx;
overflow-wrap: break-word;
color: rgba(51,51,51,1);
@ -158,37 +204,33 @@
text-align: left;
white-space: nowrap;
line-height: 28rpx;
margin-top: 15rpx;
}
.section_1-1 {
background-color: rgba(255,255,255,1.000000);
border-radius: 20rpx;
height: 292rpx;
margin-bottom: 19rpx;
width: 710rpx;
display: flex;
flex-direction: column;
}
.text-wrapper_7-1 {
width: 134rpx;
height: 33rpx;
display: flex;
flex-direction: row;
margin: 29rpx 0 0 29rpx;
}
.text_2-1 {
width: 134rpx;
height: 33rpx;
.text_5-0 {
width: 109rpx;
height: 27rpx;
overflow-wrap: break-word;
color: rgba(51,51,51,1);
font-size: 34rpx;
font-family: PingFang-SC-Bold;
font-weight: 700;
text-align: left;
font-size: 28rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
text-align: right;
white-space: nowrap;
line-height: 42rpx;
}
line-height: 28rpx;
margin-top: 15rpx;
}
.text-wrapper_8-1{
width: 500rpx;
height: 27rpx;
flex-direction: row;
display: flex;
justify-content: space-between;
margin: 23rpx 0 40rpx 31rpx;
}
.image-wrapper_9-1 {
width: 303rpx;
width: 500rpx;
height: 100rpx;
flex-direction: row;
display: flex;
@ -198,159 +240,39 @@
.image_12-1 {
width: 100rpx;
height: 100rpx;
}
.image_13-1 {
width: 100rpx;
height: 100rpx;
}
.text-wrapper_8-1 {
width: 336rpx;
height: 27rpx;
flex-direction: row;
display: flex;
justify-content: space-between;
margin: 23rpx 0 40rpx 31rpx;
}
.text_3-1 {
width: 166rpx;
height: 27rpx;
overflow-wrap: break-word;
color: rgba(51,51,51,1);
font-size: 28rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
text-align: left;
white-space: nowrap;
line-height: 28rpx;
}
.text_4-1 {
width: 109rpx;
height: 27rpx;
overflow-wrap: break-word;
color: rgba(51,51,51,1);
font-size: 28rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
text-align: left;
white-space: nowrap;
line-height: 28rpx;
}
.group_5 {
background-color: rgba(255,255,255,1.000000);
border-radius: 20rpx;
width: 710rpx;
height: 292rpx;
display: flex;
flex-direction: column;
margin: 20rpx 0 0 20rpx;
}
.text_8 {
width: 134rpx;
height: 33rpx;
overflow-wrap: break-word;
color: rgba(51,51,51,1);
font-size: 34rpx;
font-family: PingFang-SC-Bold;
font-weight: 700;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin: 29rpx 0 0 29rpx;
}
.list_2 {
width: 524rpx;
height: 150rpx;
flex-direction: row;
display: flex;
margin: 40rpx 0 40rpx 58rpx;
}
.list-items_1-0 {
width: 110rpx;
height: 150rpx;
margin-right: 66rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.image_14-0 {
.image_12-2{
width: 100rpx;
height: 100rpx;
margin-left: 5rpx;
}
.text_9-0 {
width: 165rpx;
height: 26rpx;
overflow-wrap: break-word;
color: rgba(51,51,51,1);
font-size: 28rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
text-align: left;
white-space: nowrap;
line-height: 28rpx;
margin-top: 24rpx;
}
.list-items_1-1 {
width: 110rpx;
height: 150rpx;
margin-right: 66rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
.image_13-2{
width: 100rpx;
height: 100rpx;
}
.image_14-1 {
width: 100rpx;
height: 100rpx;
margin-left: 5rpx;
}
.text_9-1 {
width: 165rpx;
height: 26rpx;
overflow-wrap: break-word;
color: rgba(51,51,51,1);
font-size: 28rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
text-align: left;
white-space: nowrap;
line-height: 28rpx;
margin-top: 24rpx;
}
.list-items_1-2 {
width: 110rpx;
height: 150rpx;
margin-right: 66rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.image_14-2 {
width: 100rpx;
height: 100rpx;
margin-left: 5rpx;
}
.text_9-2 {
width: 165rpx;
height: 26rpx;
overflow-wrap: break-word;
color: rgba(51,51,51,1);
font-size: 28rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
text-align: left;
white-space: nowrap;
line-height: 28rpx;
margin-top: 24rpx;
}
.group_6 {
background-color: rgba(255,255,255,1.000000);
border-radius: 20rpx;
width: 710rpx;
height: 292rpx;
display: flex;
flex-direction: column;
margin: 20rpx 0 22rpx 20rpx;
}
.text_12 {
width: 66rpx;
height: 32rpx;
@ -367,10 +289,9 @@
.image_15 {
width: 100rpx;
height: 100rpx;
margin: 40rpx 0 0 64rpx;
}
.text_13 {
width: 54rpx;
height: 26rpx;
overflow-wrap: break-word;
color: rgba(51,51,51,1);
@ -380,138 +301,15 @@
text-align: left;
white-space: nowrap;
line-height: 28rpx;
margin: 24rpx 0 40rpx 87rpx;
}
.group_7 {
box-shadow: 0px 7px 35px 0px rgba(226,232,234,0.440000);
background-color: rgba(255,255,255,1.000000);
width: 750rpx;
height: 96rpx;
margin-top: -1rpx;
flex-direction: row;
display: flex;
}
.image-text_5 {
width: 45rpx;
height: 74rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
margin: 14rpx 0 0 60rpx;
}
.label_4 {
width: 45rpx;
height: 45rpx;
}
.text-group_1 {
width: 39rpx;
height: 19rpx;
overflow-wrap: break-word;
color: rgba(51,51,51,1);
font-size: 20rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin: 10rpx 0 0 4rpx;
}
.image-text_6 {
width: 42rpx;
height: 71rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
margin: 17rpx 0 0 141rpx;
}
.label_5 {
width: 42rpx;
height: 42rpx;
}
.text-group_2 {
width: 40rpx;
height: 19rpx;
overflow-wrap: break-word;
color: rgba(51,51,51,1);
font-size: 20rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin: 10rpx 0 0 1rpx;
}
.image-text_7 {
width: 42rpx;
height: 72rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
margin: 16rpx 0 0 144rpx;
margin-top: 15rpx;
}
.group_8 {
height: 42rpx;
background: url(https://lanhu.oss-cn-beijing.aliyuncs.com/psb107itikvx7wanfoldvxanukh8hgavt1d771ff1-de09-48b8-b053-853d6d42d3b4) 100% no-repeat;
background-size: 100% 100%;
display: flex;
flex-direction: column;
width: 42rpx;
}
.box_4 {
background-image: linear-gradient(180deg, rgba(116,170,248,1.000000) 0, rgba(116,170,248,1.000000) 0, rgba(130,181,253,1.000000) 100.000000%, rgba(130,181,253,1.000000) 100.000000%);
border-radius: 4rpx;
height: 22rpx;
display: flex;
flex-direction: column;
width: 22rpx;
margin: -1rpx 0 0 21rpx;
}
.section_4 {
background-color: rgba(205,225,255,1.000000);
border-radius: 4rpx;
width: 14rpx;
height: 14rpx;
border: 2px solid rgba(225,236,253,1);
display: flex;
flex-direction: column;
margin: 4rpx 0 0 4rpx;
}
.text-group_3 {
width: 39rpx;
height: 19rpx;
overflow-wrap: break-word;
color: rgba(58,128,231,1);
font-size: 20rpx;
font-family: PingFang-SC-Bold;
font-weight: 700;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin: 11rpx 0 0 2rpx;
}
.image-text_8 {
width: 54rpx;
height: 79rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
margin: 9rpx 54rpx 0 168rpx;
}
.image_11 {
width: 54rpx;
height: 54rpx;
}
.text-group_4 {
width: 39rpx;
height: 19rpx;
overflow-wrap: break-word;
color: rgba(51,51,51,1);
font-size: 20rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin: 6rpx 0 0 10rpx;
}

9
project.private.config.json

@ -9,7 +9,7 @@
"miniprogram": {
"list": [
{
"name": "pages/work2",
"name": "工作2",
"pathName": "pages/work2/work2",
"query": "",
"launchMode": "default",
@ -33,13 +33,6 @@
"launchMode": "default",
"scene": null
},
{
"name": "pages/test1/test1",
"pathName": "pages/test1/test1",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "subpages/statistics/pages/residentPortrait2/residentPortrait",
"pathName": "subpages/statistics/pages/residentPortrait2/residentPortrait",

Loading…
Cancel
Save