Browse Source

拉取收到的代码

lisu_V4.3.1
李素 2 years ago
parent
commit
412abc7b49
  1. 21
      app.json
  2. BIN
      images/add.png
  3. BIN
      images/location.png
  4. 2
      pages/work2/work2.js
  5. 18
      project.private.config.json
  6. 192
      subpages/InspectionReport/pages/InspectionReport/InspectionReport.js
  7. 8
      subpages/InspectionReport/pages/InspectionReport/InspectionReport.json
  8. 94
      subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxml
  9. 248
      subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxss
  10. 7
      subpages/addhouse/pages/addhouse/addhouse.wxss
  11. 2
      subpages/house/pages/housePortrait/housePortrait.wxml
  12. 144
      subpages/safetyinspection/pages/safetyinspection/safetyinspection.js
  13. 10
      subpages/safetyinspection/pages/safetyinspection/safetyinspection.json
  14. 143
      subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxml
  15. 277
      subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxss
  16. 23
      subpages/securityCheck/pages/securityCheck.js
  17. 0
      subpages/securityCheck/pages/securityCheck.json
  18. 10
      subpages/securityCheck/pages/securityCheck.wxml
  19. 0
      subpages/securityCheck/pages/securityCheck.wxss
  20. 13
      utils/api.js

21
app.json

@ -21,20 +21,29 @@
"pages/addhouse/addhouse"
]
},
{
"root": "subpages/securityCheck",
"name": "securityCheck",
"root": "subpages/safetyinspection",
"name": "safetyinspection",
"pages": [
"pages/safetyinspection/safetyinspection"
]
},
{
"root": "subpages/InspectionReport",
"name": "InspectionReport",
"pages": [
"securityCheck"
"pages/InspectionReport/InspectionReport"
]
},
{
"root": "subpages/qualified",
"name": "qualified",
"root": "subpages/securityCheck",
"name": "securityCheck",
"pages": [
"qualified"
"pages/securityCheck"
]
},
{
"root": "subpages/morenews",
"name": "morenews",

BIN
images/add.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
images/location.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

2
pages/work2/work2.js

@ -117,7 +117,7 @@ Page({
onData(){
// wx.switchTab({
wx.navigateTo({
url: '../../subpages/securityCheck/securityCheck'
url: '/subpages/securityCheck/pages/securityCheck'
})
}
// onAddHouse(){

18
project.private.config.json

@ -9,6 +9,24 @@
"condition": {
"miniprogram": {
"list": [
{
"name": "巡查上报",
"pathName": "subpages/InspectionReport/pages/InspectionReport/InspectionReport",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "subpages/safetyinspection/pages/safetyinspection/safetyinspection",
"pathName": "subpages/safetyinspection/pages/safetyinspection/safetyinspection",
"query": "",
"launchMode": "default",
"scene": null,
"partialCompile": {
"enabled": true,
"pages": []
}
},
{
"name": "subpages/communitySelfInsp/pages/historyQuery/historyQuery",
"pathName": "subpages/communitySelfInsp/pages/historyQuery/historyQuery",

192
subpages/InspectionReport/pages/InspectionReport/InspectionReport.js

@ -0,0 +1,192 @@
// subpages/InspectionReport/pages/InspectionReport/InspectionReport.js
const QQMapWX = require('../../../../utils/qqmap-wx-jssdk')
import addRecord from "../../../../utils/api"
import {securityCheckk} from "../../../../utils/api"
Page({
/**
* 页面的初始数据
*/
data: {
pageNo: 1,
pageSize: 10,
id: 0,
addressContent:'',
fmData: {
gridId: '',
attachmentList:[],//图片
voiceList:[],
latitude:"",
longitude:"",
resiId:"",
happenTime:"",
content:"",//内容
address:"",//地址
namesArray:[],
checkPersons:'',
// 时间组件
visibleTime: false,
},
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.data.qqMapWX = new QQMapWX({
key: 'CMJBZ-4DECI-JXGGN-5B4WU-QLV2H-B5BEJ'
})
this.reverseLocation()
// this.ToaddRecord()
this.getList()
},
getList() {
securityCheckk({
pageNo: this.data.pageNo,
pageSize: this.data.pageSize,
}).then(({data}) => {
console.log("123131",data.list)
this.setData({
marsi: data.list,
total: data.total
})
this.setData({
'fmData.namesArray': data.list.map(item => ({ id: item.id, name: item.name })),
'fmData.checkPersons': data.list.map(item => item.checkPersons)
});
// console.log("123131", this.data.fmData.checkPersons);
});
},
showTimePickerW(e) {
this.setData({
visibleTimeWantServiceTime: true,
maxDate:this.getCurrentDateTime(),
'fmData.wantServiceTime':this.getCurrentDateTime(),
})
},
showTimePicker(e) {
this.setData({
visibleTime: true,
maxDate:this.getCurrentDateTime(),
'fmData.happenTime':this.getCurrentDateTime(),
})
},
//时间组件隐藏
onCancel(e) {
this.setData({
visibleTime: false,
visibleTimeWantServiceTime:false
})
},
onConfirmWantServiceTime(e){
this.setData({
'fmData.wantServiceTime': e.detail.label + ':00',
visibleTimeWantServiceTime: false,
showWantServiceTimeTime:e.detail.label + ':00'
})
},
onConfirmDate(e) {
this.setData({
'fmData.happenTime': e.detail.label + ':00',
visibleTime: false,
showTime:e.detail.label + ':00'
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
this.reverseLocation
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {},
//跳转地图选点
toughGetLocation() {
// this.getLocation(false);
wx.chooseLocation({
success: res => {
console.log('resadddres', res)
const {
fmData
} = this.data;
this.setData({
fmData: {
...fmData,
address: res.address,
longitude: res.longitude,
latitude: res.latitude
},
addressContent: res.address
});
console.log(this.data.fmData);
}
})
},
//
reverseLocation() {
const _this = this
this.data.qqMapWX.reverseGeocoder({
success(res) {
console.log(res);
_this.setData({
addressContent:res.result.address,
'fmData.address': res.result.address,
'fmData.longitude':res.result.location.lng,
'fmData.latitude':res.result.location.lat,
})
},
fail(err) {
console.debug(err)
}
})
},
ToaddRecord(){
addRecord().then(res=>{
console.log(res)
})
}
})

8
subpages/InspectionReport/pages/InspectionReport/InspectionReport.json

@ -0,0 +1,8 @@
{
"navigationBarTitleText": "安检巡查",
"usingComponents": {
"van-uploader": "@vant/weapp/uploader/index",
"van-checkbox": "@vant/weapp/checkbox/index",
"van-checkbox-group": "@vant/weapp/checkbox-group/index"
}
}

94
subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxml

@ -0,0 +1,94 @@
<!--subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxml-->
<view class="header">
<view class="header_left">
<image src="../../../../images/location.png" class="header_img"></image>
<view class="inside">
<text class="text1">{{addressContent}}</text>
<text class="text2">如定位不在事发地,请重新选择定位</text>
</view>
</view>
<view class="header_right" bind:tap="toughGetLocation">
<text class="text3">重新定位</text>
</view>
</view>
<view class="from">
<view class="prosecutors">
<view>
<text class="prosecutors_req">*</text>
<text class="prosecutors_pre">企业名称</text>
<text class="prosecutors_name">张玉斌</text>
</view>
<view>
<image src="../../../../images/right.png" class="prosecutors_img"></image>
</view>
</view>
<view class="prosecutors_top">
<view class="prosecutors">
<view>
<text class="prosecutors_req">*</text>
<text class="prosecutors_pre">检察人员</text>
<text class="prosecutors_name">请选择</text>
</view>
<view>
<image src="../../../../images/right.png" class="prosecutors_img"></image>
</view>
</view>
</view>
<view class="prosecutors">
<view>
<text class="prosecutors_req">*</text>
<text class="prosecutors_pre">检查结论</text>
<text class="prosecutors_name">请选择</text>
</view>
<view>
<image src="../../../../images/right.png" class="prosecutors_img"></image>
</view>
</view>
<view class="hidden">
<view class="hidden_top">
<view>
<text class="prosecutors_req">*</text>
<text class="prosecutors_pre">隐患明细</text>
</view>
<view>
<image src="../../../../images/right.png" class="prosecutors_img"></image>
</view>
</view>
<view class="hidden_button">
<view class="input">
<input type="text" placeholder="请输入内容" bindinput="inputChange" />
</view>
<view class="add">
<image src="../../../../images/add.png" class="add_img"></image>
<text class="add_text">在添加一条</text>
</view>
</view>
<view class="date">
<text class="prosecutors_pre1">整改要求</text>
<view class="input1">
<input confirm-type="next" bindblur="bindOwnerIdCardInput" bindinput="bindOwnerIdCardInput" value="{{form.ownerIdCard}}" placeholder-class="gray" placeholder="请输入" />
</view>
</view>
</view>
<view class="date">
<view class="prosecutors_data">
<text class="prosecutors_req">*</text>
<text class="prosecutors_pre">拟复查时间</text>
</view>
<view class="input1">
<input confirm-type="next" bindblur="bindOwnerIdCardInput" bindinput="bindOwnerIdCardInput" value="{{form.ownerIdCard}}" placeholder-class="gray" placeholder="请输入" />
</view>
</view>
<view class="attachment">
<text class="prosecutors_pre1">附件</text>
<view class="shangchuan"> <van-uploader file-list="{{ fileList }}" bind:after-read="afterRead" style="width: 200px; height: 200px;" /></view>
<text class="prosecutors_pre1">备注</text>
<view class="textarea1">
<textarea class="" placeholder-style="color: #C1C1C1;" value="{{form.remark}}" bindblur="bindRemarkInput" bindinput="bindRemarkInput" maxlength="100" placeholder-class="gray" placeholder="请输入" />
</view>
</view>
</view>
<view class="text-wrapper_11">
<text lines="1" class="text_29">提交</text>
</view>

248
subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxss

@ -0,0 +1,248 @@
page {
width: 100%;
height: auto;
overflow-y: auto;
background: #f7f7f7;
padding-bottom: 20rpx;
box-sizing: border-box;
}
.header{
height: 80rpx;
display: flex;
background-color: white;
flex-direction: row;
justify-content: space-between;
}
.header_left{
display:flex;
flex-direction: row;
margin-left: 20rpx;
}
.header_img{
width: 36rpx;
height: 36rpx;
margin-top: 10rpx;
}
.inside{
display: flex;
flex-direction: column;
margin-left: 10rpx;
}
.text1{
width: 374rpx;
height: 30rpx;
overflow-wrap: break-word;
color: rgba(51,51,51,1);
font-size: 32rpx;
font-family: PingFang-SC-Regular;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin-left: 1rpx;
}
.text2{
width: 382rpx;
height: 24rpx;
overflow-wrap: break-word;
color: rgba(172,172,172,1);
font-size: 24rpx;
font-family: PingFang-SC-Regular;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin-top: 10rpx;
}
.header_right{
display: flex;
justify-content: center;
align-items: center;
margin-right: 30rpx;
}
.text3{
width: 118rpx;
height: 28rpx;
overflow-wrap: break-word;
color: rgba(56,135,248,1);
font-size: 30rpx;
font-family: PingFang-SC-Regular;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
}
.from{
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
border-radius: 15rpx;
background-color: rgb(255, 255, 255);
margin: 30rpx;
}
.prosecutors{
display: flex;
flex-direction:row;
align-items: center;
margin: 20rpx;
justify-content: space-between;
height: 70rpx;
border-bottom: 1px solid #EAEAEA;
align-items: center;
}
.hidden_top{
display: flex;
flex-direction:row;
align-items: center;
margin: 20rpx;
justify-content: space-between;
height: 50rpx;
}
.prosecutors_req{
color: red;
margin: 5rpx
}
.prosecutors_pre{
width: 125rpx;
height: 30rpx;
overflow-wrap: break-word;
color: rgba(102,102,102,1);
font-size:32rpx;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin-left: 6rpx;
margin-bottom: 10rpx;
}
.prosecutors_pre1{
width: 125rpx;
height: 30rpx;
overflow-wrap: break-word;
color: rgba(102,102,102,1);
font-size:32rpx;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin-left: 30rpx;
margin-bottom: 10rpx;
}
.prosecutors_name{
width: 93rpx;
height: 30rpx;
overflow-wrap: break-word;
color: rgba(51,51,51,1);
font-size: 32rpx;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin-left: 60rpx;
}
.prosecutors_img{
width: 40rpx;
height: 30rpx;
margin-right: 30rpx;
}
.hidden{
display: flex;
flex-direction: column;
}
.hidden_button{
display: flex;
flex-direction: column;
}
.input{
background-color: rgba(247,247,247,1.000000);
border-radius: 10rpx;
height: 100rpx;
display: flex;
flex-direction: column;
width: 650rpx;
margin-left: 40rpx;
height: 90rpx;
}
.input_pre{
width: 650rpx;
overflow-wrap: break-word;
color: rgba(51,51,51,1);
font-size: 32rpx;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin-left: 60rpx;
}
.add{
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin: 20rpx;
}
.add_img{
width: 40rpx;
height: 40rpx;
}
.add_text{
overflow-wrap: break-word;
color: rgba(51,51,51,1);
font-size: 32rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
text-align: left;
white-space: nowrap;
line-height: 48rpx;
}
.input1{
margin-left: 60rpx;
}
.date{
display: flex;
flex-direction:row;
align-items: center;
margin: 20rpx;
height: 70rpx;
border-bottom: 1px solid #EAEAEA;
align-items: center;
}
.attachment{
display: flex;
flex-direction: column;
margin: 20rpx;
}
.shangchuan{
margin: 20rpx;
}
.textarea1{
margin-top: 20rpx;
background-color:#f7f7f7 ;
width: 100%;
height: 200rpx;
}
.text-wrapper_11 {
background-color: rgba(57,116,246,1.000000);
border-radius: 43rpx;
height: 86rpx;
display: flex;
flex-direction: column;
width: 630rpx;
margin: 60rpx 0 57rpx 60rpx;
}
.text_29 {
width: 62rpx;
height: 31rpx;
overflow-wrap: break-word;
color: rgba(255,255,255,1);
font-size: 32rpx;
font-family: PingFang-SC-Bold;
font-weight: 700;
text-align: left;
white-space: nowrap;
line-height: 60rpx;
margin: 25rpx 0 0 284rpx;
}

7
subpages/addhouse/pages/addhouse/addhouse.wxss

@ -15,10 +15,6 @@ page {
width: 100%;
height: 444rpx;
overflow: hidden;
/* position: fixed;
top: 0;
left: 0;
z-index: 1000; */
}
.header .header-bg {
width: 100%;
@ -192,3 +188,6 @@ page {
margin: 30rpx auto 0;
line-height: 86rpx;
}

2
subpages/house/pages/housePortrait/housePortrait.wxml

@ -44,7 +44,7 @@
<view class="title">
<text>更新记录</text>
</view>
<view style="margin-top: 32rpx; padidng:0 12rpx;">
<view style="margin-top: 32rpx; padding:0 12rpx;">
<view class="logsBox" wx:for="{{logs}}" wx:key="{{item.changeTime}}">
<view class="item-dian {{index!=0?'item-dian1':''}}">
<view class="neidian"></view>

144
subpages/safetyinspection/pages/safetyinspection/safetyinspection.js

@ -0,0 +1,144 @@
// subpages/safetyinspection/pages/safetyinspection/safetyinspection.js
import {
showRecord
} from "../../../../utils/api"
Page({
/**
* 页面的初始数据
*/
data: {
result: ['a', 'b', 'c'],
arrlist:[],
fileList: [],
companyId: '',
showPopup: false, // 控制弹出层显示/隐藏的状态
selectedOptions: [], // 选中的复选框项
Prosecutors:['小王','李四','张三'], //检查人员
arr:[
{value:1,name:'小王'},
{value:2,name:'李四'},
{value:3,name:'张三'}
],
arr:[
{value:1,name:'小王'},
{value:2,name:'李四'},
{value:3,name:'张三'}
]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
console.log(options.resiId)
this.setData({
companyId: options.resiId
})
this.showRecordData()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
},
onChange(event) {
console.log(event)
this.setData({
selectedOptions: event.detail
});
// event.detail 为当前输入的值
console.log(this.data.selectedOptions);
},
afterRead(event) {
const {
file
} = event.detail;
console.log(file)
// 当设置 mutiple 为 true 时, file 为数组格式,否则为对象格式
wx.uploadFile({
url: 'https://example.weixin.qq.com/upload', // 仅为示例,非真实的接口地址
filePath: file.url,
name: 'file',
formData: {
user: 'test'
},
success(res) {
// 上传完成需要更新 fileList
const {
fileList = []
} = this.data;
fileList.push({
...file,
url: res.data
});
this.setData({
fileList
});
},
});
},
showRecordData() {
let parm = {
companyId: this.data.companyId
}
console.log(parm)
showRecord(parm).then(res => {
console.log(res)
})
},
showPopup() {
this.setData({ showPopup: true }); // 点击按钮显示弹出层
},
onClose() {
this.setData({ showPopup: false }); // 关闭弹出层
},
onChange1(event) {
console.log(event)
const { value } = event.detail;
console.log(event.detail)
this.setData({
arr: value
});
},
confirmSelection() {
// 点击确定按钮后触发,处理选中的复选框项
console.log("选中的项:", this.data.selectedOptions);
this.setData({ showPopup: false }); // 关闭弹出层
},
})

10
subpages/safetyinspection/pages/safetyinspection/safetyinspection.json

@ -0,0 +1,10 @@
{
"navigationBarTitleText": "安全巡检",
"backgroundTextStyle":"dark",
"usingComponents": {
"van-checkbox": "@vant/weapp/checkbox/index",
"van-checkbox-group": "@vant/weapp/checkbox-group/index",
"van-uploader": "@vant/weapp/uploader/index",
"van-popup": "@vant/weapp/popup/index"
}
}

143
subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxml

@ -0,0 +1,143 @@
<!--subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxml-->
<view class="from">
<view class="prosecutors" bind:tap="showPopup">
<view >
<text class="prosecutors_req">*</text>
<text class="prosecutors_pre">检查人员</text>
<text class="prosecutors_name">{{ selectedOptions }}</text>
</view>
<view>
<image src="../../../../images/right.png" class="prosecutors_img"></image>
</view>
</view>
<view class="pitfall">
<view class="prosecutors">
<view>
<text class="prosecutors_req">*</text>
<text class="prosecutors_pre">已整改隐患</text>
</view>
<view>
<image src="../../../../images/right.png" class="prosecutors_img"></image>
</view>
</view>
<view class="checkbox1">
<van-checkbox-group value="{{ result }}" bind:change="onChange">
<van-checkbox name="a">1.车间一些软件设备出现生锈断裂情况严重</van-checkbox>
<van-checkbox name="b">2.还有部分货运车辆已过年检。</van-checkbox>
</van-checkbox-group>
</view>
<view class="input1">
<input bindinput="changeNewPassword" type="password" placeholder=" 请输入"/>
</view>
<view class="add">
<image src="../../../../images/add.png" class="add_img"></image>
<text>再添加一条</text>
</view>
</view>
<view class="prosecutors">
<view>
<text class="prosecutors_req">*</text>
<text class="prosecutors_pre">检查结论</text>
<text class="prosecutors_name">请选择</text>
</view>
<view>
<image src="../../../../images/right.png" class="prosecutors_img"></image>
</view>
</view>
<view class="prosecutors">
<view class="prosecutors_data">
<text class="prosecutors_req">*</text>
<text class="prosecutors_pre">拟复查时间</text>
<view class="input">
<input confirm-type="next" bindblur="bindOwnerIdCardInput" bindinput="bindOwnerIdCardInput" value="{{form.ownerIdCard}}" placeholder-class="gray" placeholder="请输入" />
</view>
</view>
<view>
<image src="../../../../images/right.png" class="prosecutors_img"></image>
</view>
</view>
<view class="attachment">
<text class="text1">附件</text>
<van-uploader file-list="{{ fileList }}" bind:after-read="afterRead" />
<text class="text1">备注</text>
<view class="textarea1">
<textarea class="" placeholder-style="color: #C1C1C1;" value="{{form.remark}}" bindblur="bindRemarkInput" bindinput="bindRemarkInput" maxlength="100" placeholder-class="gray" placeholder="请输入" />
</view>
</view>
</view>
<view class="from">
<view><text class="text2">巡检记录</text></view>
<view style="margin-top: 32rpx;padding: 0 35rpx;">
<view class="logsBox">
<view class="item-dian {{index!=0?'item-dian1':''}}">
<view class="neidian"></view>
</view>
<view class="logs-top">
<view class="logs-top-title">时间</view>
</view>
<view class="logs-content">
<view class="logs-content-left">
<view>
<text class="logs-content-title">检察人员:</text>
<text class="logs-content-txt">123</text>
</view>
<view>
<text class="logs-content-title">检查结论:</text>
<text class="logs-content-txt">123</text>
</view>
<view>
<text class="logs-content-title">隐患明细:</text>
<text class="logs-content-txt">123</text>
</view>
<view>
<text class="logs-content-title">整改要求:</text>
<text class="logs-content-txt">123</text>
</view>
<view>
<text class="logs-content-title">附件:</text>
<text class="logs-content-txt">123</text>
</view>
<view>
<text class="logs-content-title">备注:</text>
<text class="logs-content-txt">123</text>
</view>
<view>
<text class="logs-content-title">整改要求:</text>
<text class="logs-content-txt">123</text>
</view>
</view>
</view>
</view>
</view>
</view>
<!--<van-popup show="{{ showPopup }}" bind:close="onClose"position="top"
class="var" >
<van-checkbox-group bind:change="onChange1">
<van-checkbox name="checkbox1">选项1</van-checkbox>
<van-checkbox name="checkbox2">选项2</van-checkbox>
<van-checkbox name="checkbox3">选项3</van-checkbox>
</van-checkbox-group>
<button bindtap="confirmSelection">确定</button>
</van-popup>-->
<van-popup
show="{{ showPopup }}"
closeable
close-icon="close"
position="bottom"
custom-style="height: 50%"
bind:close="onClose"
>
<view class="popup-content">
<van-checkbox-group value="{{selectedOptions}}" bind:change="onChange">
<van-checkbox name="{{item.name}}" bind:click="onClick" wx:for="{{arr}}">{{item.name}}</van-checkbox>
</van-checkbox-group>
<button bindtap="confirmSelection">确定</button>
</view>
</van-popup>

277
subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxss

@ -0,0 +1,277 @@
page {
width: 100%;
min-height: 100vh;
height: 1450rpx;
overflow-y: auto;
background-color: #f7f7f7;
}
.from{
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
border-radius: 15rpx;
background-color: rgb(255, 255, 255);
margin: 30rpx;
}
.prosecutors{
display: flex;
flex-direction:row;
align-items: center;
margin: 20rpx;
justify-content: space-between;
height: 50rpx;
border-bottom: 1px solid #EAEAEA;
}
.prosecutors_req{
color: red;
margin: 5rpx
}
.prosecutors_pre{
width: 125rpx;
height: 30rpx;
overflow-wrap: break-word;
color: rgba(102,102,102,1);
font-size:32rpx;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin-left: 6rpx;
}
.prosecutors_name{
width: 200px;
height: 30rpx;
overflow-wrap: break-word;
color: rgba(51,51,51,1);
font-size: 32rpx;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin-left: 60rpx;
}
.prosecutors_img{
width: 40rpx;
height: 30rpx;
margin-right: 30rpx;
}
.prosecutors_top{
display: flex;
flex-direction: column;
}
.prosecutors_but{
display: flex;
flex-direction: column;
margin: 15rpx;
}
.prosecutors_chex{
margin: 20rpx;
}
.checkbox{
font-size: 32rpx;
}
.prosecutors_group{
margin: 20rpx;
}
.prosecutors_add{
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
.prosecutors_data{
display: flex;
flex-direction: row;
}
.input{
margin-left: 100rpx;
font-size: 32rpx;
}
.attachment{
display: flex;
flex-direction: column;
margin: 20rpx;
}
.image1{
margin-top: 20rpx;
margin-bottom: 20rpx;
width: 200rpx;
height: 200rpx;
}
.text1{
width: 62rpx;
height: 30rpx;
overflow-wrap: break-word;
color: rgba(102,102,102,1);
font-size: 32rpx;
font-family: PingFang-SC-Regular;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
margin-bottom: 30rpx;
}
.textarea1{
margin-top: 20rpx;
background-color:#f7f7f7 ;
width: 100%;
height: 200rpx;
}
.text2{
width: 133rpx;
height: 32rpx;
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: 52rpx;
margin: 31rpx 0 0 29rpx;
}
.logsBox {
border-left: 3rpx solid #DADEE5;
margin-left: -18rpx;
padding-left: 12rpx;
}
.logs-top {
display: flex;
justify-content: space-between;
position: relative;
top: -32rpx;
padding-left: 12rpx;
}
.logs-top-title {
height: 31rpx;
font-family: PingFang SC;
font-weight: 500;
font-size: 32rpx;
color: #333333;
line-height: 41rpx;
}
.logs-top-time {
height: 20rpx;
font-family: PingFang SC;
font-weight: 500;
font-size: 26rpx;
color: #BDBDBD;
line-height: 40rpx;
}
.logs-content {
position: relative;
top: -24rpx;
padding-top: 12rpx;
padding-bottom: 24rpx;
display: flex;
justify-content: space-between;
font-family: PingFang SC;
font-weight: 500;
font-size: 30rpx;
color: #999999;
line-height: 52rpx;
}
.logs-content-left {
width: 48%;
}
.logs-content-right {
width: 48%;
}
.logs-content-txt {
color: #333333;
}
.item-dian {
position: relative;
left: -28rpx;
width: 32rpx;
height: 32rpx;
box-sizing: border-box;
background: #FFFFFF;
border-radius: 50%;
border: 1px solid #3A80E7;
display: flex;
align-items: center;
justify-content: center;
}
.neidian {
width: 18rpx;
height: 18rpx;
background: #3A80E7;
border-radius: 50%;
}
.text3{
width: 138rpx;
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: 48rpx;
margin-bottom: 20rpx;
}
.hidden{
display: flex;
flex-direction: column;
}
.hidden_top{
display: flex;
flex-direction:column;
align-items: center;
justify-content: space-between;
height: 50rpx;
}
.text8{
display: flex;
flex-direction: row;
}
.text9{
display: flex;
}
.pitfall{
display: flex;
flex-direction: column;
box-sizing: border-box;
}
.pitfall_header{
display: flex;
flex-direction: row;
}
.checkbox1{
display: flex;
flex-direction:column;
margin-left: 50rpx;
margin-bottom: 20rpx;
}
.input1{
width: 650rpx;
height: 90rpx;
background-color: #F7F7F7;
border-radius: 10rpx;
margin-left: 50rpx;
}
.add{
display: flex;
flex-direction: row;
box-sizing: border-box;
justify-content: center;
align-items: center;
margin: 20rpx;
}
.add_img{
width: 40rpx;
height: 40rpx;
}

23
subpages/securityCheck/securityCheck.js → subpages/securityCheck/pages/securityCheck.js

@ -1,5 +1,5 @@
// subpages/securityCheck/securityCheck.js
import {securityCheckk} from "../../utils/api";
import {securityCheckk} from "../../../utils/api";
Page({
data: {
pageNo: 1,
@ -21,14 +21,16 @@ Page({
},
handleTap() {
console.log('Movable view clicked');
console.log("asdsa",this.data.marsi)
wx.navigateTo({
url: '/subpages/InspectionReport/pages/InspectionReport/InspectionReport'
})
},
getList() {
securityCheckk({
pageNo: this.data.pageNo,
pageSize: this.data.pageSize,
}).then(({data}) => {
console.log(data)
this.setData({
marsi: data.list,
total: data.total
@ -102,20 +104,29 @@ Page({
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
},
toAddEnterprise(){
wx.navigateTo({
url: '../../../subpages/InspectionReport/pages/InspectionReport/InspectionReport',
})
},
toDetails(e){
console.log(e)
wx.navigateTo({
url: `../../../subpages/safetyinspection/pages/safetyinspection/safetyinspection?resiId=${e.currentTarget.dataset.resiid}`,
})
}
})

0
subpages/securityCheck/securityCheck.json → subpages/securityCheck/pages/securityCheck.json

10
subpages/securityCheck/securityCheck.wxml → subpages/securityCheck/pages/securityCheck.wxml

@ -11,7 +11,7 @@
<view class="">
<view class="section_5">
<scroll-view scroll-y="{{true}}" scroll-into-view="scrollToHere" wx:if="{{waitingCheckStyle}}" style="width: 100%; height: 90vh;">
<view class="list_1" wx:for="{{flag0Array}}">
<view class="list_1" wx:for="{{flag0Array}}" bind:tap="toDetails" data-resiId="{{item.id}}">
<view class="section_1-0" id="scrollToHere">
<view class="title">{{item.name}}</view>
<view class="title_mall">检查时间: {{item.orderDate}}</view>
@ -22,15 +22,15 @@
</view>
</view>
<movable-area class="movable-area">
<movable-view class="movable-view" direction="all" x="250" y="300">
<image src="../../images/xuncha.png" class="image-wrapper"></image>
<movable-view class="movable-view" bind:tap="handleTap" direction="all" x="250" y="300">
<image src="../../../images/xuncha.png" class="image-wrapper" catchtouchend="handleTap"></image>
</movable-view>
</movable-area>
</scroll-view>
<scroll-view scroll-y="{{true}}" scroll-into-view="scrollToHere" wx:if="{{qualifiedStyle}}" style="width: 100%; height: 90vh;">
<view class="list_1" wx:for="{{flag1Array}}">
<view class="list_1" wx:for="{{flag1Array}}" bind:tap="toDetails">
<view class="section_1-0" id="scrollToHere" >
<view class="title">{{item.name}}</view>
<view class="title_mall">检查时间: {{item.orderDate}}</view>
@ -42,7 +42,7 @@
</view>
<movable-area class="movable-area">
<movable-view class="movable-view" bind:tap="handleTap" direction="all" x="250" y="300">
<image src="../../images/xuncha.png" class="image-wrapper" catchtouchend="handleTap"></image>
<image src="../../../images/xuncha.png" class="image-wrapper" catchtouchend="handleTap"></image>
</movable-view>
</movable-area>

0
subpages/securityCheck/securityCheck.wxss → subpages/securityCheck/pages/securityCheck.wxss

13
utils/api.js

@ -78,7 +78,9 @@ module.exports = {
nonIntResiList,
securityCheckk,
overView,
getFamilyRelationshipListByHouseId
getFamilyRelationshipListByHouseId,
addRecord,
showRecord
}
// 获取公钥
@ -409,6 +411,13 @@ function securityCheckk(parm){
function overView(parm){
return fly.get(`actual/base/communityHouse/resiAndHouseCollect/overview`,parm)
}
//巡查记录--新增
function addRecord(parm){
return fly.post(`actual/base/companyInfo/addRecord`,parm)
}
//巡查巨鹿--展示
function showRecord(parm){
return fly.post(`actual/base/companyInfo/showRecord`,parm)
}

Loading…
Cancel
Save