Browse Source

bugs

jw-featrue-zhanlibiao
mk 2 years ago
parent
commit
9bd511a027
  1. 3
      README.md
  2. 3
      app.js
  3. 10
      app.json
  4. BIN
      images/mine/sz.png
  5. BIN
      images/work/bg.png
  6. BIN
      images/work/center.png
  7. BIN
      images/work/jg.png
  8. BIN
      images/work/sqmp.png
  9. 2
      pages/login/login.wxml
  10. 16
      pages/mine/mine.wxml
  11. 11
      pages/work/work.js
  12. 21
      pages/work/work.wxml
  13. 5
      pages/work/work.wxss
  14. 2
      project.private.config.json
  15. 2
      subpages/addhouse/pages/addhouse/addhouse.js
  16. 2
      subpages/communitySelfInsp/pages/dissatisfactionDetails/dissatisfactionDetails.wxml
  17. 4
      subpages/communitySelfInsp/pages/followUpDetail/followUpDetail.wxml
  18. 67
      subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.js
  19. 3
      subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.json
  20. 244
      subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.wxml
  21. 158
      subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.wxss
  22. 22
      subpages/searchResult/pages/searchResult/searchResult.js
  23. 2
      subpages/searchResult/pages/searchResult/searchResult.wxml
  24. 4
      utils/config.js
  25. 4
      utils/request.js

3
README.md

@ -8,3 +8,6 @@
2a43afb52996723c6517edb048de6c79 小程序密钥
15554200534
12345678
18900000002
12345678

3
app.js

@ -30,6 +30,7 @@ App({
navigationHeight: 40
},
user:{},
share:false
share:false,
keyWord:""
}
})

10
app.json

@ -63,6 +63,14 @@
"pages/xqwmz/xqwmz",
"pages/yxwxfw/yxwxfw"
]
},
{
"root": "subpages/demandCheck",
"name": "demandCheck",
"pages": [
"pages/dissatisfied/demandCheck/demandCheck"
]
}
],
"window": {
@ -71,11 +79,13 @@
"navigationBarTitleText": "WeChat",
"navigationBarTextStyle": "black"
},
"tabBar": {
"color": "#333333",
"selectedColor": "#3A80E7",
"backgroundColor": "#FFFFFF",
"borderStyle": "white",
"custom": true,
"list": [
{
"pagePath": "pages/index/index",

BIN
images/mine/sz.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

BIN
images/work/bg.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 40 KiB

BIN
images/work/center.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 KiB

After

Width:  |  Height:  |  Size: 43 KiB

BIN
images/work/jg.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
images/work/sqmp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

2
pages/login/login.wxml

@ -8,7 +8,7 @@
<image src="../../images/login/user.png" mode=""/>
<input type="text" placeholder="请输入手机号" bindblur="handelBlurMobile" value="{{formData.mobile}}" confirm-type="next"/>
<image src="../../images/login/password.png" mode=""/>
<input type="text" confirm-type="go" password="true" placeholder="请输入密码" bindblur="handelBlurPassword" value="{{formData.password}}" />
<input type="text" confirm-type="go" password="true" placeholder="请输入密码" bindinput="handelBlurPassword" bindblur="handelBlurPassword" value="{{formData.password}}" />
</view>
<text wx:if="{{false}}">忘记密码</text>
<button bind:tap="handelClickSubmit">登录</button>

16
pages/mine/mine.wxml

@ -26,17 +26,18 @@
<view class="item" bind:tap="toFollowUpList">
<view class="left">
<image src="../../images/mine/hf.png" mode=""/>
<view>我的回访记录</view>
<view>我回访的居民</view>
</view>
<view class="right"> <image src="../../images/right.png" mode=""/></view>
</view>
<view class="item">
<view class="item" bind:tap="toFollowUpList">
<view class="left">
<image src="../../images/mine/password.png" mode=""/>
<view>修改密码</view>
<image src="../../images/mine/hf.png" mode=""/>
<view>我摸排的诉求</view>
</view>
<view class="right"> <image src="../../images/right.png" mode=""/></view>
</view>
<view class="item">
<view class="left">
<image src="../../images/mine/gy.png" mode=""/>
@ -44,6 +45,13 @@
</view>
<view class="right"> <image src="../../images/right.png" mode=""/></view>
</view>
<view class="item">
<view class="left">
<image src="../../images/mine/sz.png" mode=""/>
<view>设置</view>
</view>
<view class="right"> <image src="../../images/right.png" mode=""/></view>
</view>
</view>
</view>
<custom-tab-bar></custom-tab-bar>

11
pages/work/work.js

@ -124,6 +124,7 @@ Page({
this.setData({
keyWord: e.detail.value
})
app.globalData.keyWord = e.detail.value
},
handelClickSearch(e){
if(!this.data.keyWord) {
@ -133,8 +134,9 @@ Page({
})
return
}
app.globalData.keyWord = this.data.keyWord
wx.navigateTo({
url: `/subpages/searchResult/pages/searchResult/searchResult?type=${this.data.setlectVal}&keyWord=${this.data.keyWord}`,
url: `/subpages/searchResult/pages/searchResult/searchResult?type=${this.data.setlectVal}`,
})
console.log(this.data.setlectVal);
if(this.data.setlectVal == 'house'){
@ -196,5 +198,10 @@ Page({
});
}
});
}
},
toDemandCheck(){
wx.navigateTo({
url: '/subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck',
})
}
})

21
pages/work/work.wxml

@ -11,8 +11,8 @@
</view>
<view class="inout_box">
<image src="../../images/work/search.png" mode=""/>
<input type="text" placeholder="{{setlectVal == 'resi'?'姓名/手机/身份证/住址等任意组合关键词':'输入小区/楼栋/单元/门牌号/房主等任意组合关键词'}}" confirm-type="search" bindblur="handelBlurKeyWord" value="{{keyWord}}" />
<view class="btn_box" bind:tap="handelClickSearch"><text>搜索</text></view>
<input type="text" placeholder="{{setlectVal == 'resi'?'姓名/手机/身份证/住址等任意组合关键词':'输入小区/楼栋/单元/门牌号/房主等任意组合关键词'}}" confirm-type="search" bindinput="handelBlurKeyWord" bindblur="handelBlurKeyWord" value="{{keyWord}}" />
<view class="btn_box" bind:tap="handelClickSearch"><text>搜索</text></view>
</view>
<view class="jump" wx:if="{{setlectVal == 'resi'}}">
<image style="height: 50rpx;width: 50rpx; margin-right: 11rpx;" src="../../images/work/card.png" mode=""/>
@ -35,28 +35,29 @@
<text bind:tap="toGatherInformation">采集记录 ></text>
</view>
<view class="tip ">
<image src="../../images/work/tx.png" mode=""/><view >关注官方公众号,可接受重要消息提醒。</view>
<image src="../../images/work/jg.png" mode=""/><view >采集更新人房信息需先通过上方进行查询</view>
</view>
<view class="big_box">
<view class="left">
<view class="left_title"><image src="../../images/work/house.png" mode=""/><text class="blue">房屋采集情况</text></view>
<view class="left_body">
<view><text class="yellow font_size_44">{{realEstateCount}}</text><text class="font_size_26">实有房屋数</text></view>
<view><text class="font_size_44 gray">{{pendingHouseCount}}</text><text class="font_size_26">待采集</text></view>
<view><text class="green font_size_44">{{collectedHouseCount}}</text><text class="font_size_26">采集房屋数</text></view>
<view><text class="yellow font_size_44">{{realEstateCount?realEstateCount:'--'}}</text><text class="font_size_26">实有房屋数</text></view>
<view><text class="font_size_44 gray">{{pendingHouseCount?pendingHouseCount:'--'}}</text><text class="font_size_26">待采集</text></view>
<view><text class="green font_size_44">{{collectedHouseCount?collectedHouseCount:'--'}}</text><text class="font_size_26">采集房屋数</text></view>
</view>
</view>
<view class="right">
<view class="right_title"><text class="yellow_T">人口采集情况</text><image src="../../images/work/resi.png" mode=""/></view>
<view class="right_body">
<view><text class="yellow font_size_44">{{populationCount}}</text><text class="font_size_26">辖区人口数</text></view>
<view><text class="font_size_44 gray">{{pendingPopulationCount}}</text><text class="font_size_26">待采集</text></view>
<view><text class="green font_size_44">{{collectedPopulationCount}}</text><text class="font_size_26">采集人口数</text></view>
<view><text class="yellow font_size_44">{{populationCount?populationCount:'--'}}</text><text class="font_size_26">辖区人口数</text></view>
<view><text class="font_size_44 gray">{{pendingPopulationCount?pendingPopulationCount:'--'}}</text><text class="font_size_26">待采集</text></view>
<view><text class="green font_size_44">{{collectedPopulationCount?collectedPopulationCount:'--'}}</text><text class="font_size_26">采集人口数</text></view>
</view>
</view>
<image src="../../images/work/center.png" mode="" class="center_image"/>
</view>
</view>
<!-- <image src="../../images/work/sqmp.png" bind:tap="toDemandCheck" class="center_img" mode=""/> -->
<view class="bto">
<view class="title">
<view>满意度自查</view>
@ -66,7 +67,7 @@
<view class="bg_box">
<view class="bg_left">
<view class="h2" bind:tap="toWebView" >{{communitySelfInspTop.agencyName}}{{communitySelfInspTop.monthName}}月份满意度自查</view>
<view class="submit">已提交 <b>{{communitySelfInspTop.personQty}}</b> 人</view>
<view class="submit">已提交 <b>{{communitySelfInspTop.personQty?communitySelfInspTop.personQty:'--'}}</b> 人</view>
<view class="btn_Box"> <view class="btn_fx" bind:tap="handelClickCopy">一键分享</view> <view class="btn_tj" bind:tap="toSynthesis">查看统计</view>
</view>
</view>

5
pages/work/work.wxss

@ -465,6 +465,11 @@ page {
color: #999999;
margin-top: 29rpx;
}
.body .center_img{
height: 130rpx;
width: 100%;
margin-top: 20rpx;
}
.list_card .right b{
font-size: 40rpx;
font-family: DIN Alternate;

2
project.private.config.json

@ -109,5 +109,5 @@
]
}
},
"libVersion": "2.28.1"
"libVersion": "3.0.2"
}

2
subpages/addhouse/pages/addhouse/addhouse.js

@ -96,7 +96,7 @@ Page({
this.setData({
statusHeight: app.globalData.deviceInfo.statusHeight,
navigationHeight: app.globalData.deviceInfo.navigationHeight,
agencyId:'7b6f9a9f9f38d5f9fa7ce94a93d6eb28',//app.globalData.user.agencyId
agencyId:app.globalData.user.agencyId,
'form.agencyId':app.globalData.user.agencyId,
'form.agencyName':app.globalData.user.agencyName,
formType:options.type,

2
subpages/communitySelfInsp/pages/dissatisfactionDetails/dissatisfactionDetails.wxml

@ -9,7 +9,7 @@
<view class="{{item.followUpStatus == 1?'blue_small':'red_small'}}"> {{ item.followUpStatus!= null?item.followUpStatus == -1 ?'不接受回访':item.followUpStatus == 1 ?'已回访':'接受回访/未回访':'--' }}
</view>
<view class="bottom">
不满意原因:{{item.reason}}
不满意原因:{{item.reason?item.reason:'--'}}
</view>
</view>
<load-more loadVisible="{{loadMoreVisible}}" loadType="{{loadMoreType}}" ></load-more>

4
subpages/communitySelfInsp/pages/followUpDetail/followUpDetail.wxml

@ -11,7 +11,7 @@
<view class="gray font28" style="margin: 20rpx 0;">{{resiInfo.addressDetail?resiInfo.addressDetail:'--'}}</view>
</view>
<view style="margin-top: 20rpx;" wx:if="{{formType == 'add'}}">
不满意原因:{{resiInfo.reason}}
不满意原因:{{resiInfo.reason?resiInfo.reason:'--'}}
</view>
</view>
<view class="content_form">
@ -39,8 +39,8 @@
<view style="margin-top: 20rpx; color: #333333">是否还为不满意风险人员</view>
<view>
<radio-group bindchange="handleChangeRisk" value="{{form.riskFlag}}" style="margin-top: 20rpx;">
<radio color="#70acfc" checked="{{form.riskFlag === 0}}" value="0"/>否
<radio color="#70acfc" checked="{{form.riskFlag === 1}}" style="margin-left: 20rpx;" value="1"/>是
<radio color="#70acfc" checked="{{form.riskFlag === 0}}" value="0"/>否
</radio-group>
</view>

67
subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.js

@ -0,0 +1,67 @@
import { $wuxActionSheet } from '../../../../../components/dist/index'
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

3
subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.json

@ -0,0 +1,3 @@
{
"usingComponents": {}
}

244
subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.wxml

@ -0,0 +1,244 @@
<view class="content">
<view class="personal-info">
<view class="basic-info">
<view class="item">
<view class="field">
<text class="must">*</text>
<view class="field-text">事件位置</view>
</view>
<view class="value-dl" bindtap="getPosition">
<view class="di-name">{{addressContent}}</view>
<image class="di-but" src="../../images/dingwei.png" mode="aspectFit" />
</view>
</view>
<view class="item">
<view class="field field-d">
<view class="field-text">详细地址</view>
</view>
<view class="value value-d">
<view class="input" style="width: 100%;">
<input type="text"
placeholder-class="placeholder-style"
value="{{ personalInfo.issueAddress }}"
placeholder="请输入准确位置,便于事件办理"
bindinput="bindIssueAddressInput"
cursor-spacing="14"
maxlength="100" />
</view>
</view>
</view>
<!-- wx:if="{{streetList.length>0}}" -->
<view class="item">
<view class="field">
<text class="must">*</text>
<view class="field-text">所属街道</view>
</view>
<view class="value">
<picker class="picker"
range="{{streetList}}"
range-key="label"
data-list-name="streetList"
data-id-key="streetId"
data-name-key="street"
bindchange="inputSyncPicker">
<view class="picker-text" wx:if="{{personalInfo.street}}">{{personalInfo.street}}</view>
<view class="picker-text z-weak" wx:else>请选择</view>
<image class="menu-arrow" src="../../images/arrow.png" mode="aspectFit" />
</picker>
</view>
</view>
<!-- wx:if="{{communityList.length>0}}" -->
<view class="item">
<view class="field">
<text class="must">*</text>
<view class="field-text">所属社区</view>
</view>
<view class="value" data-name="community" bindtap="organizationTip">
<picker class="picker"
disabled="{{ communityList.length == 0 ? true : false }}"
range="{{communityList}}"
range-key="label"
data-list-name="communityList"
data-id-key="communityId"
data-name-key="community"
bindchange="inputSyncPicker">
<view class="picker-text" wx:if="{{personalInfo.community}}">{{personalInfo.community}}</view>
<view class="picker-text z-weak" wx:else>请选择</view>
<image class="menu-arrow" src="../../images/arrow.png" mode="aspectFit" />
</picker>
</view>
</view>
<!-- wx:if="{{gridList.length>0}}" -->
<view class="item">
<view class="field">
<text class="must">*</text>
<view class="field-text">所属网格</view>
</view>
<view class="value" data-name="grid" bindtap="organizationTip">
<picker class="picker"
disabled="{{ gridList.length == 0 ? true : false }}"
range="{{gridList}}"
range-key="label"
data-list-name="gridList"
data-id-key="gridId"
data-name-key="grid"
bindchange="inputSyncPicker">
<view class="picker-text" wx:if="{{personalInfo.grid}}">{{personalInfo.grid}}</view>
<view class="picker-text z-weak" wx:else>请选择</view>
<image class="menu-arrow" src="../../images/arrow.png" mode="aspectFit" />
</picker>
</view>
</view>
<view class="item">
<view class="field">
<text class="must">*</text>
<view class="field-text">是否公开</view>
</view>
<view class="value-mobile">
<radio-group class="radio-group" bindchange="bindFlagChange">
<radio checked="{{personalInfo.showFlag === '0'}}" value="0" color="#F82525" class="radio">不公开</radio>
<radio checked="{{personalInfo.showFlag === '1'}}" value="1" color="#F82525" class="radio">公开</radio>
</radio-group>
</view>
</view>
<view class="item">
<view class="field">
<text class="must">*</text>
<view class="field-text">联系人姓名</view>
</view>
<view class="value">
<view class="input">
<input type="text"
placeholder-class="placeholder-style"
value="{{ personalInfo.contactName }}"
placeholder="请输入"
bindinput="bindContactNameInput"
cursor-spacing="14"
maxlength="100" />
</view>
</view>
</view>
<view class="item no-border-bottom" wx:if="{{getMobileType === 'wx'}}">
<view class="field mobile-field">
<text class="must">*</text>
<view class="field-text">手机号</view>
</view>
<view class="value-mobile">
<input wx:if="{{ personalInfo.mobile }}" disabled="{{true}}" type="number" bindblur="bindMobileInput" bindinput="bindMobileInput" value="{{ personalInfo.mobile }}" placeholder-class="placeholder-style" placeholder="请获取手机号" />
<button hover-class="button-hover" class="get-code" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">{{ personalInfo.mobile ? '重新获取' : '获取手机号'}}</button>
</view>
</view>
<view class="item" wx:if="{{getMobileType === 'self'}}">
<view class="field">
<view class="must">*</view>
<view class="field-text">手机号</view>
</view>
<view class="value">
<view class="input">
<input
type="number"
bindblur="bindMobileInput"
bindinput="bindMobileInput"
value="{{personalInfo.mobile}}"
placeholder-class="placeholder-style"
placeholder="请输入手机号" />
</view>
</view>
</view>
<view class="item no-border-bottom" wx:if="{{getMobileType === 'self'}}">
<view class="field">
<text class="must">*</text>
<view class="field-text">验证码</view>
</view>
<view class="value-mobile">
<input bindblur="bindSmsCodeInput" bindinput="bindSmsCodeInput" value="{{personalInfo.smsCode}}" placeholder-class="placeholder-style" placeholder="请输入验证码" />
<button disabled="{{smsCodeText !== '获取验证码'}}" bindtap="getSmsCode" hover-class="button-hover" class="get-code">{{smsCodeText}}</button>
</view>
</view>
</view>
<view class="note" bindtap="changeGetMobileType">{{getMobileType === 'wx' ? '*如若获取手机号异常,请点击切换至手机号/验证码注册方式' : '*点击可切回至从微信获取手机号注册方式'}}</view>
</view>
<view class="add-issue">
<view class="issue-content">
<view class="item">
<view class="field">
<text class="must">*</text>
<view class="field-text">问题描述</view>
</view>
</view>
<textarea maxlength="500" value="{{personalInfo.itemContent}}" bindblur="bindTextareaBlur" bindinput="bindTextareaInput" bindfocus="bindTextareaFocus">
<view class="textarea-placeholder" wx:if="{{placeholderShow}}">
<view>请输入主要问题内容(不少于10字)</view>
</view>
</textarea>
<view class="{{ uploadImageList.length < 4 ? 'image-list' : uploadImageList.length > 3 && uploadImageList.length < 7 ? 'image-list image-list-2' : uploadImageList.length > 6 && uploadImageList.length < 10 ? 'image-list image-list-3' : 'image-list image-list-4' }}">
<view
class="image-item"
wx:for="{{uploadImageList}}"
wx:for-index="index"
wx:for-item="item"
wx:key="imageId">
<image class="issue-image" src="{{item.imgUrl}}" />
<image wx:if="{{!item.uploaded}}" class="loading" src="../../images/loading.gif" />
<image bindtap="deleteImage" data-imageid="{{item.imageId}}" class="close" wx:else src="../../images/icon_close.png" />
</view>
<!-- <image wx:if="{{uploadImageList.length < 3}}" src="../../images/ig_tianjiatupian@2x.png" bindtap="chooseImage" /> -->
</view>
<view class="audio" wx:if="{{recorderData.tempFilePath && !showRecord}}">
<view class="delete-audio">
<image bindtap="deleteRecord" src="../../images/icon_close.png" />
</view>
<view class="control-button" wx:if="{{!uploadRecord.uploaded}}">
<image src="../../images/loading.gif"/>
</view>
<block wx:else>
<view class="control-button">
<image src="../../images/xiaozanting.png" wx:if="{{!isPlayAudio}}" bindtap="onPlayAudio"/>
<image src="../../images/xiaobofang.png" wx:else bindtap="onStopAudio"/>
</view>
<view class="control-line">
<slider class="control-slider" value="{{audioTimeline}}" bindchange="sliderchange" min="0" max="100" block-size="15" selected-color="#fd6161"/>
<view class="line-time">
<view class="time-text">{{recorderTimeCur}}</view>
<view class="time-text">{{recorderTimeMax}}</view>
</view>
</view>
</block>
</view>
<!-- <view class="{{ uploadImageList.length < 3 ? 'image-list' : uploadImageList.length > 2 && uploadImageList.length < 6 ? 'image-list image-list-2' : uploadImageList.length > 5 && uploadImageList.length < 9 ? 'image-list image-list-3' : 'image-list image-list-4' }}">
<view
class="image-item"
wx:for="{{uploadImageList}}"
wx:for-index="index"
wx:for-item="item"
wx:key="imageId">
<image class="issue-image" src="{{item.imgUrl}}" />
<image wx:if="{{!item.uploaded}}" class="loading" src="../../../../images/loading.gif" />
<image bindtap="deleteImage" data-imageid="{{item.imageId}}" class="close" wx:else src="../../images/icon_close.png" />
</view>
<image wx:if="{{uploadImageList.length < 10}}" src="../../images/ig_tianjiatupian@2x.png" bindtap="chooseImage" />
</view>
<view class="tip">*最多可添加10张图片</view> -->
</view>
<view class="image-box">
<!-- <view class="yg-zp">图片、录音</view> -->
<!-- <view class="yg-zp-1">图片不多于 10 张、录音不超过 1 分钟</view> -->
<view>
<image class="add-icon" src="../../images/tupian.png" bindtap="chooseImage"/>
<image class="add-icon" src="../../images/yuyin.png" bindtap="showRecordSheet"/>
</view>
</view>
</view>
<view class="submit-button">
<button disabled="{{ submitDisabled }}" bindtap="submitPersonalInfo" hover-class="hover-submit">提交</button>
</view>
</view>

158
subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.wxss

@ -0,0 +1,158 @@
/* subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.wxss */
.content {
width: 100%;
min-height: calc(100vh - 100rpx);
margin-top: 100rpx;
}
.personal-info {
width: 100%;
height: 100%;
box-sizing: border-box;
padding: 0 20rpx;
overflow: hidden;
}
.basic-info {
width: 100%;
background: #fff;
border-radius: 16rpx;
box-sizing: border-box;
padding: 0 20rpx;
margin-top: 20rpx;
}
.item {
border-bottom: 1rpx solid #e7eeee;
padding: 25rpx 0;
line-height: 60rpx;
display: flex;
justify-content: space-between;
}
.item .field {
position: relative;
box-sizing: border-box;
width: 300rpx;
padding-left: 25rpx;
}
.field-d {
width: 220rpx !important;
}
.value-d{
width: 450rpx !important;
}
.item .field.mobile-field {
width: 250rpx !important;
}
.item .field .must {
position: absolute;
top: 0;
left: 0;
margin: 0 auto;
color: #F61616;
font-size: 30rpx;
}
.item .field .field-text {
font-size: 32rpx;
font-family: Source Han Serif SC;
font-weight: 400;
color: #333;
}
.item .value {
position: relative;
width: 410rpx;
display: flex;
font-size: 32rpx;
font-family: Source Han Serif SC;
font-weight: 400;
color: #333;
line-height: 60rpx;
}
.item .value-dl {
position: relative;
width: 410rpx;
display: flex;
font-size: 32rpx;
font-family: Source Han Serif SC;
font-weight: 400;
color: #333;
line-height: 60rpx;
align-items: center;
}
.di-name{
margin-right: 14rpx;
text-align: right;
width: calc(100% - 30rpx);
}
.di-but{
width: 30rpx;
height: 34rpx;
}
.item .value input {
text-align: right;
font-size: 34rpx;
color: #333;
height: 100%;
width: 100%;
}
.item .value .picker {
position: relative;
width: 100%;
padding-right: 40rpx;
text-align: right;
}
.item .value .picker .z-weak {
color: #999;
}
.item .value .picker .menu-arrow {
position: absolute;
top: 20rpx;
right: 0;
width: 16rpx;
height: 23rpx;
}
.item .value-mobile {
position: relative;
width: 410rpx;
display: flex;
font-size: 32rpx;
font-family: Source Han Serif SC;
font-weight: 400;
color: #333;
line-height: 60rpx;
display: flex;
justify-content: flex-end;
}
.item .value-mobile .get-code {
padding: 0 15rpx;
height: 60rpx;
line-height: 60rpx;
background: linear-gradient(to right, #F40C0C, #FF4E4E);
color: #fff;
font-size: 24rpx;
border-radius: 6rpx;
margin: 0;
margin-left: 25rpx;
}
.item .value-mobile .button-hover {
background: rgb(175, 1, 1);
}
.item .value-mobile input {
text-align: right;
font-size: 34rpx;
color: #333;
height: 100%;
width: 55%;
}
.placeholder-style {
font-size: 28rpx;
color: #999;
}

22
subpages/searchResult/pages/searchResult/searchResult.js

@ -1,5 +1,5 @@
// subpages/searchResult/pages/searchResult/searchResult.js
import api, {getCommunityHouse,getResidentBaseInfo} from "../../../../utils/api"
import {getCommunityHouse,getResidentBaseInfo} from "../../../../utils/api"
const app = getApp()
Page({
@ -15,21 +15,24 @@ Page({
nodata:false,
pageNo:1,
pageSize:10,
type:''
type:'',
keyWord:""
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
console.log(options);
this.setData({
statusHeight: app.globalData.deviceInfo.statusHeight,
navigationHeight: app.globalData.deviceInfo.navigationHeight,
share:app.globalData.share,
title:options.type =='resi'?'居民查询结果':'房屋查询结果',
type:options.type,
keyWord:options.keyWord
keyWord:app.globalData.keyWord
})
console.log(this.data.keyWord,'dataK');
this.getTable()
},
@ -44,14 +47,16 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow() {
console.log(this.data.keyWord,'show');
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
this.setData({
keyWord: '' //或者其他默认值
});
},
/**
@ -163,9 +168,8 @@ Page({
},
back() {
//返回上一级,关闭当前页面
wx.navigateBack({
delta: 1
})
wx.switchTab({
url: '/pages/work/work',
})
},
})

2
subpages/searchResult/pages/searchResult/searchResult.wxml

@ -7,7 +7,7 @@
</view>
<view class="content">
<view class="content_header">
<view class="title"> 查询关键字: {{keyWord}}</view>
<view class="title" wx:if="{{keyWord}}"> 查询关键字: {{keyWord}}</view>
<view class="font"> 您可以对查询出的居民信息进行修改编辑,也可以点击底部按钮新增居民信息</view>
</view>
<scroll-view class="scroll" scroll-y="{{true}}" lower-threshold="{{ lowerThreshold }}" bindscrolltolower="onScrollToLower">

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() {

4
utils/request.js

@ -29,6 +29,10 @@ const request = function (url, options) {
})
reject(response.data)
}
}else if(response.statusCode === 10007 || response.statusCode == 1024 || response.statusCode == 2003){
wx.redirectTo({
url: '/pages/login/login',
})
} else {
wx.showToast({
title: '网络问题,请稍后再试。',

Loading…
Cancel
Save