Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GaoQuYingJiMiniPro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xinzhedeai
GaoQuYingJiMiniPro
Commits
5ff8a7f3
Commit
5ff8a7f3
authored
Feb 23, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录页面修改 政府段 隐患编辑显示优化
parent
976ba0b6
Changes
15
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
1074 additions
and
657 deletions
+1074
-657
app.json
app.json
+1
-0
dangeredit.wxml
pages/dangeredit/dangeredit.wxml
+4
-4
dangereditcompany.js
pages/dangereditcompany/dangereditcompany.js
+58
-56
dangereditcompany.wxml
pages/dangereditcompany/dangereditcompany.wxml
+8
-8
dangereditcompany.wxss
pages/dangereditcompany/dangereditcompany.wxss
+344
-176
dangerlistcompany.js
pages/dangerlistcompany/dangerlistcompany.js
+179
-0
dangerlistcompany.json
pages/dangerlistcompany/dangerlistcompany.json
+3
-0
dangerlistcompany.wxml
pages/dangerlistcompany/dangerlistcompany.wxml
+19
-0
dangerlistcompany.wxss
pages/dangerlistcompany/dangerlistcompany.wxss
+167
-0
dangerlistverifydetail.wxml
pages/dangerlistverifydetail/dangerlistverifydetail.wxml
+1
-1
dangerregister.wxml
pages/dangerregister/dangerregister.wxml
+0
-24
home.js
pages/home/home.js
+18
-2
home.wxml
pages/home/home.wxml
+7
-1
loginv2.js
pages/loginv2/loginv2.js
+264
-344
loginv2.wxml
pages/loginv2/loginv2.wxml
+1
-41
No files found.
app.json
View file @
5ff8a7f3
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
"pages/dangeredit/dangeredit"
,
"pages/dangeredit/dangeredit"
,
"pages/dangereditcompany/dangereditcompany"
,
"pages/dangereditcompany/dangereditcompany"
,
"pages/dangerlist/dangerlist"
,
"pages/dangerlist/dangerlist"
,
"pages/dangerlistcompany/dangerlistcompany"
,
"pages/dangerlistverify/dangerlistverify"
,
"pages/dangerlistverify/dangerlistverify"
,
"pages/dangerlistverifydetail/dangerlistverifydetail"
,
"pages/dangerlistverifydetail/dangerlistverifydetail"
,
"pages/login/login"
,
"pages/login/login"
,
...
...
pages/dangeredit/dangeredit.wxml
View file @
5ff8a7f3
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
</picker>
</picker>
</view>
</view>
<view class="danger-rect-date">
<view class="danger-rect-date">
<text>
复查
日期:</text>
<text>
审核
日期:</text>
<picker class="danger-pick-date" disabled="true" mode="date" bindchange="inputRectDate" value="{{hdRectificationDate}}">
<picker class="danger-pick-date" disabled="true" mode="date" bindchange="inputRectDate" value="{{hdRectificationDate}}">
<view class="current-picker">
<view class="current-picker">
当前选择: {{hdRectificationDate ? hdRectificationDate : ''}}
当前选择: {{hdRectificationDate ? hdRectificationDate : ''}}
...
@@ -122,12 +122,12 @@
...
@@ -122,12 +122,12 @@
</picker>
</picker>
</view>
</view>
<view class="danger-recept-per">
<view class="danger-recept-per">
<text>
复查
人员:</text>
<text>
审核
人员:</text>
<input type="text" value="{{hdAcceptancePerson}}" disabled="true" bindinput="inputAcceptancePer" />
<input type="text" value="{{hdAcceptancePerson}}" disabled="true" bindinput="inputAcceptancePer" />
</view>
</view>
<view class="danger-rect">
<view class="danger-rect">
<text>
复查
记录:</text>
<text>
审核
记录:</text>
<textarea disabled="true" maxlength="-1" bindinput="" value="{{
recEvaluation
}}"></textarea>
<textarea disabled="true" maxlength="-1" bindinput="" value="{{
hdRectificationRecord
}}"></textarea>
</view>
</view>
<view class="danger-submit" wx:if="{{editAble}}">
<view class="danger-submit" wx:if="{{editAble}}">
<button type="primary" bindtap="submitEdit" style="background-color: #1d2089;">提交修改</button>
<button type="primary" bindtap="submitEdit" style="background-color: #1d2089;">提交修改</button>
...
...
pages/dangereditcompany/dangereditcompany.js
View file @
5ff8a7f3
...
@@ -51,7 +51,28 @@ Page({
...
@@ -51,7 +51,28 @@ Page({
topAnimation
:
{},
topAnimation
:
{},
curRole
:
''
,
curRole
:
''
,
isToEnLarge
:
false
,
isToEnLarge
:
false
,
xcx
:
'
xcx
'
xcx
:
'
xcx
'
,
// 总的安全类别
secType
:
[
{
name
:
'
安全资料类
'
},
{
name
:
'
现场检查类
'
}
],
//
curSelectSecType
:
''
,
// 安全检查类别
secCheckType
:
[],
// 安全检查类别替代
secCheckTypeReplace
:
[],
// 当前选择的安全检查类别
curSelectSecCheckTypeReplace
:
''
,
// 安全检查内容
secCheckContent
:
[],
// 当前选择的安全检查内容
curSelectCheckContent
:
''
,
},
},
/**
/**
...
@@ -62,6 +83,9 @@ Page({
...
@@ -62,6 +83,9 @@ Page({
this
.
setData
({
this
.
setData
({
curRole
:
app
.
globalData
.
curRole
curRole
:
app
.
globalData
.
curRole
})
})
const
animation
=
wx
.
createAnimation
({
const
animation
=
wx
.
createAnimation
({
delay
:
10
,
delay
:
10
,
timingFunction
:
'
linear
'
timingFunction
:
'
linear
'
...
@@ -71,6 +95,15 @@ Page({
...
@@ -71,6 +95,15 @@ Page({
this
.
setData
(
this
.
setData
(
app
.
globalData
.
currentHD
app
.
globalData
.
currentHD
)
)
console
.
log
(
'
app.globalData.currentHD
'
,
app
.
globalData
.
currentHD
)
// 设置回显数据
this
.
setData
({
curSelectSecType
:
app
.
globalData
.
currentHD
.
type
,
// 安全类别
curSelectSecCheckTypeReplace
:
app
.
globalData
.
currentHD
.
category
,
// 安全检查类别
curSelectCheckContent
:
app
.
globalData
.
currentHD
.
inspectionContent
,
// 安全检查内容
hdName
:
app
.
globalData
.
currentHD
.
hdName
,
// 安全发现问题
editAble
:
app
.
globalData
.
currentHD
.
hdStatus
===
0
||
app
.
globalData
.
currentHD
.
hdStatus
===
2
,
})
// console.log(app.globalData.currentHD, 'currentHD')
// console.log(app.globalData.currentHD, 'currentHD')
// 调用接口 获取图片
// 调用接口 获取图片
wx
.
request
({
wx
.
request
({
...
@@ -80,7 +113,7 @@ Page({
...
@@ -80,7 +113,7 @@ Page({
Authorization
:
app
.
globalData
.
Authorization
Authorization
:
app
.
globalData
.
Authorization
},
},
data
:
{
data
:
{
companyId
:
app
.
globalData
.
currentEnter
.
companyId
,
//
companyId: app.globalData.currentEnter.companyId,
hdId
:
app
.
globalData
.
currentHD
.
hdId
,
hdId
:
app
.
globalData
.
currentHD
.
hdId
,
page
:
0
,
page
:
0
,
size
:
2000
,
size
:
2000
,
...
@@ -360,30 +393,34 @@ Page({
...
@@ -360,30 +393,34 @@ Page({
/**
/**
* 拍摄整改照片
* 拍摄整改照片
*/
*/
/**
* 拍摄隐患图片
*/
takePhoto
()
{
takePhoto
()
{
// const ctx = wx.createCameraContext()
// ctx.takePhoto({
// quality: 'high',
// success: (res) => {
// this.setData({
// imgsrc: res.tempImagePath
// })
// }
// })
wx
.
chooseImage
({
wx
.
chooseImage
({
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
if
(
res
.
tempFilePaths
[
0
]){
this
.
setData
({
checkImg
:
true
})
}
else
{
this
.
setData
({
checkImg
:
false
})
}
console
.
log
(
res
.
tempFilePaths
[
0
],
'
res.tempFilePaths[0]
'
,
this
.
data
.
checkImg
)
this
.
data
.
rectFilePath
=
res
.
tempFilePaths
[
0
]
this
.
data
.
rectFilePath
=
res
.
tempFilePaths
[
0
]
wx
.
getFileSystemManager
().
readFile
({
wx
.
getFileSystemManager
().
readFile
({
filePath
:
res
.
tempFilePaths
[
0
],
// 选择图片返回的相对路径
filePath
:
res
.
tempFilePaths
[
0
],
// 选择图片返回的相对路径
encoding
:
'
base64
'
,
//
编码格式
encoding
:
'
base64
'
,
//编码格式
success
:
res1
=>
{
// 成功的回调
success
:
res1
=>
{
// 成功的回调
// console.log('data:image/png;base64, ' + res1.data)
// this.imgsrc = 'data:image/png;base64,' + res1.data
this
.
setData
({
this
.
setData
({
imgrecturl
:
'
data:image/png;base64,
'
+
res1
.
data
imgrecturl
:
'
data:image/png;base64,
'
+
res1
.
data
})
})
}
}
})
})
// wx.uploadFile()
}
}
})
})
},
},
...
@@ -428,11 +465,11 @@ Page({
...
@@ -428,11 +465,11 @@ Page({
},
},
/**
/**
* 提交修改
* 提交修改
*/
*/
submitEdit
()
{
submitEdit
()
{
if
(
(
this
.
data
.
imgrecturl
===
""
||
this
.
data
.
imgrecturl
===
null
||
this
.
data
.
imgrecturl
===
'
null
'
||
this
.
data
.
imgrecturl
===
undefined
)
&&
this
.
data
.
hdStatus
==
1
){
if
(
!
this
.
data
.
imgrecturl
){
wx
.
showToast
({
wx
.
showToast
({
title
:
'
没有整改照片
'
,
title
:
'
没有整改照片
'
,
icon
:
'
error
'
,
icon
:
'
error
'
,
...
@@ -458,26 +495,12 @@ Page({
...
@@ -458,26 +495,12 @@ Page({
if
(
!
formData
.
hdRectificationDate
)
{
if
(
!
formData
.
hdRectificationDate
)
{
delete
formData
.
hdRectificationDate
delete
formData
.
hdRectificationDate
}
}
if
(
if
(
!
formData
.
recDeadLine
)
{
formData
.
recDeadLine
===
""
||
formData
.
recDeadLine
===
null
||
formData
.
recDeadLine
===
'
null
'
)
{
delete
formData
.
recDeadLine
;
delete
formData
.
recDeadLine
;
}
}
if
(
if
(
!
formData
.
recEvaluation
)
{
formData
.
recEvaluation
===
""
||
formData
.
recEvaluation
===
null
||
formData
.
recDeadLine
===
'
null
'
)
{
delete
formData
.
recEvaluation
;
delete
formData
.
recEvaluation
;
}
}
if
(
formData
.
imgrecturl
===
""
||
formData
.
imgrecturl
===
null
||
formData
.
imgrecturl
===
'
null
'
){
console
.
log
(
111
,
formData
.
imgrecturl
)
}
// if (this.formInfo.typeId === "" || this.formInfo.typeId === null) {
// formData.delete("typeId");
// }
// console.log('整改日期:' + this.data.rectFilePath)
console
.
log
(
'
整改照片:
'
+
this
.
data
.
imgrecturl
)
wx
.
uploadFile
({
wx
.
uploadFile
({
filePath
:
this
.
data
.
rectFilePath
,
filePath
:
this
.
data
.
rectFilePath
,
name
:
'
hdRectificationPic
'
,
name
:
'
hdRectificationPic
'
,
...
@@ -491,7 +514,7 @@ Page({
...
@@ -491,7 +514,7 @@ Page({
wx
.
hideLoading
()
wx
.
hideLoading
()
if
(
res
.
status
===
200
)
{
if
(
res
.
status
===
200
)
{
wx
.
showToast
({
wx
.
showToast
({
title
:
'
编辑
成功
'
,
title
:
'
操作
成功
'
,
icon
:
'
success
'
icon
:
'
success
'
})
})
wx
.
navigateBack
()
wx
.
navigateBack
()
...
@@ -533,33 +556,13 @@ Page({
...
@@ -533,33 +556,13 @@ Page({
delete
formData
.
hdRectificationDate
delete
formData
.
hdRectificationDate
}
}
// if(this.formInfo.recDeadLine)
// if(this.formInfo.recDeadLine)
if
(
if
(
!
formData
.
recDeadLine
)
{
formData
.
recDeadLine
===
""
||
formData
.
recDeadLine
===
null
||
formData
.
recDeadLine
===
'
null
'
)
{
delete
formData
.
recDeadLine
;
delete
formData
.
recDeadLine
;
}
}
if
(
if
(
!
formData
.
recEvaluation
)
{
formData
.
recEvaluation
===
""
||
formData
.
recEvaluation
===
null
||
formData
.
recDeadLine
===
'
null
'
)
{
delete
formData
.
recEvaluation
;
delete
formData
.
recEvaluation
;
}
}
let
that
=
this
let
that
=
this
if
((
formData
.
imgrecturl
===
""
||
formData
.
imgrecturl
===
null
||
formData
.
imgrecturl
===
'
null
'
||
formData
.
imgrecturl
===
undefined
)
&&
(
that
.
data
.
imgrecturl
===
""
||
that
.
data
.
imgrecturl
===
null
||
that
.
data
.
imgrecturl
===
'
null
'
||
that
.
data
.
imgrecturl
===
undefined
)
&&
this
.
data
.
hdStatus
==
1
){
console
.
log
(
'
整改照片3:
'
+
that
.
data
.
imgrecturl
,
formData
.
imgrecturl
)
wx
.
showToast
({
title
:
'
选择整改照片
'
,
icon
:
'
error
'
,
duration
:
1000
})
return
}
else
{
console
.
log
(
'
整改照片4:
'
+
this
.
data
.
imgrecturl
)
}
// if (this.formInfo.typeId === "" || this.formInfo.typeId === null) {
// formData.delete("typeId");
// }
wx
.
request
({
wx
.
request
({
url
:
app
.
globalData
.
appBaseUrl
+
'
/api/thHiddenDanger/update
'
,
url
:
app
.
globalData
.
appBaseUrl
+
'
/api/thHiddenDanger/update
'
,
method
:
'
POST
'
,
method
:
'
POST
'
,
...
@@ -569,7 +572,6 @@ Page({
...
@@ -569,7 +572,6 @@ Page({
},
},
data
:
this
.
formatFormData
(
formData
),
data
:
this
.
formatFormData
(
formData
),
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
console
.
log
(
res
,
'
上传成功了吗afhdhsfhhdsfhadsf
'
)
if
(
res
.
status
===
200
){
if
(
res
.
status
===
200
){
wx
.
showToast
({
wx
.
showToast
({
title
:
'
编辑成功
'
,
title
:
'
编辑成功
'
,
...
...
pages/dangereditcompany/dangereditcompany.wxml
View file @
5ff8a7f3
...
@@ -83,11 +83,11 @@
...
@@ -83,11 +83,11 @@
</view>
</view>
<view class="danger-expert">
<view class="danger-expert">
<text style="width:200rpx ;">隐患描述: </text>
<text style="width:200rpx ;">隐患描述: </text>
<input type="text" disabled="{{!editAble}}"
placeholder="请输入隐患描述"
value="{{comment}}" bindinput="inputHdComment" maxlength="-1" />
<input type="text" disabled="{{!editAble}}" value="{{comment}}" bindinput="inputHdComment" maxlength="-1" />
</view>
</view>
<view class="danger-expert">
<view class="danger-expert">
<text style="width:200rpx ;">检查依据: </text>
<text style="width:200rpx ;">检查依据: </text>
<textarea type="text"
disabled="false" placeholder="请输入检查依据"
value="{{basis}}" bindinput="" maxlength="-1" />
<textarea type="text" value="{{basis}}" bindinput="" maxlength="-1" />
</view>
</view>
<view class="danger-rect">
<view class="danger-rect">
<text>整改建议:</text>
<text>整改建议:</text>
...
@@ -98,12 +98,12 @@
...
@@ -98,12 +98,12 @@
<view class="hdPic-preview">
<view class="hdPic-preview">
<text>隐患照片:</text>
<text>隐患照片:</text>
<image mode="aspectFit" src="{{imgsrcurl}}" bindtap="toEnlargePicByHiddenPic"></image>
<image mode="aspectFit" src="{{imgsrcurl}}" bindtap="toEnlargePicByHiddenPic"></image>
<button wx:if="{{editAble}}" type="primary" bindtap="takePhoto" style="background-color: #1d2089;">拍照</button>
</view>
</view>
<view class="danger-img">
<view class="danger-img">
<text>整改照片</text>
<text>整改照片</text>
<!-- <camera device-position="back" flash="off" style="width:100%;height:300px;"></camera> -->
<!-- <camera device-position="back" flash="off" style="width:100%;height:300px;"></camera> -->
<image mode="aspectFit" src="{{imgrecturl}}" bindtap="toEnlargePicByRectPic"></image>
<image mode="aspectFit" src="{{imgrecturl}}" bindtap="toEnlargePicByRectPic"></image>
<button wx:if="{{editAble}}" type="primary" bindtap="takePhoto" style="background-color: #1d2089;">拍照</button>
</view>
</view>
<view class="danger-rect-date">
<view class="danger-rect-date">
<text>整改期限:</text>
<text>整改期限:</text>
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
</picker>
</picker>
</view>
</view>
<view class="danger-rect-date">
<view class="danger-rect-date">
<text>
复查
日期:</text>
<text>
审核
日期:</text>
<picker class="danger-pick-date" disabled="true" mode="date" bindchange="inputRectDate" value="{{hdRectificationDate}}">
<picker class="danger-pick-date" disabled="true" mode="date" bindchange="inputRectDate" value="{{hdRectificationDate}}">
<view class="current-picker">
<view class="current-picker">
当前选择: {{hdRectificationDate ? hdRectificationDate : ''}}
当前选择: {{hdRectificationDate ? hdRectificationDate : ''}}
...
@@ -122,12 +122,12 @@
...
@@ -122,12 +122,12 @@
</picker>
</picker>
</view>
</view>
<view class="danger-recept-per">
<view class="danger-recept-per">
<text>
复查
人员:</text>
<text>
审核
人员:</text>
<input type="text"
placeholder="请输入验收人"
value="{{hdAcceptancePerson}}" disabled="true" bindinput="inputAcceptancePer" />
<input type="text" value="{{hdAcceptancePerson}}" disabled="true" bindinput="inputAcceptancePer" />
</view>
</view>
<view class="danger-rect">
<view class="danger-rect">
<text>
复查
记录:</text>
<text>
审核
记录:</text>
<textarea disabled="true" maxlength="-1" bindinput="" value="{{
recEvaluation
}}"></textarea>
<textarea disabled="true" maxlength="-1" bindinput="" value="{{
hdRectificationRecord
}}"></textarea>
</view>
</view>
<view class="danger-submit" wx:if="{{editAble}}">
<view class="danger-submit" wx:if="{{editAble}}">
<button type="primary" bindtap="submitEdit" style="background-color: #1d2089;">提交修改</button>
<button type="primary" bindtap="submitEdit" style="background-color: #1d2089;">提交修改</button>
...
...
pages/dangereditcompany/dangereditcompany.wxss
View file @
5ff8a7f3
This diff is collapsed.
Click to expand it.
pages/dangerlistcompany/dangerlistcompany.js
0 → 100644
View file @
5ff8a7f3
const
app
=
getApp
()
// pages/dangerlist/dangerlist.js
Page
({
/**
* 页面的初始数据
*/
data
:
{
dglist
:
[],
curRole
:
''
,
curEnterName
:
''
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
this
.
setData
({
curRole
:
app
.
globalData
.
curRole
})
this
.
setData
({
curEnterName
:
app
.
globalData
.
currentEnter
.
companyName
})
this
.
getDataList
()
},
getDataList
()
{
wx
.
showLoading
({
title
:
'
正在加载
'
,
})
wx
.
request
({
url
:
app
.
globalData
.
appBaseUrl
+
'
/api/thHiddenDanger
'
,
method
:
'
GET
'
,
header
:
{
Authorization
:
app
.
globalData
.
Authorization
},
data
:
{
county
:
app
.
globalData
.
appCounty
,
sort
:
'
hdId,asc
'
,
page
:
0
,
size
:
99999
},
header
:
{
Authorization
:
app
.
globalData
.
Authorization
},
success
:
(
res
)
=>
{
let
arr
=
[...
res
.
data
.
content
]
if
(
res
.
status
===
401
)
{
wx
.
redirectTo
({
url
:
'
/pages/login/login
'
,
})
return
}
this
.
setData
({
dglist
:
arr
})
wx
.
hideLoading
()
},
fail
:
()
=>
{
wx
.
hideLoading
()
}
})
},
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
console
.
log
(
'
dgonshow
'
)
wx
.
setNavigationBarTitle
({
title
:
'
隐患管理
'
,
})
wx
.
setNavigationBarColor
({
backgroundColor
:
'
#090D9C
'
,
frontColor
:
'
#ffffff
'
})
this
.
getDataList
()
},
/**
* 编辑隐患
*/
editHD
(
event
)
{
app
.
globalData
.
currentHD
=
{
...
this
.
data
.
dglist
[
event
.
target
.
dataset
.
index
]
}
// console.log(app.globalData.currentHD)
wx
.
navigateTo
({
url
:
'
/pages/dangereditcompany/dangereditcompany
'
,
})
// this.animation.translateX('50rpx').step()
// this.setData({
// leftMove: this.animation.export()
// })
},
/**
* 删除隐患
*/
deleteHD
(
event
)
{
let
that
=
this
let
hdId
=
this
.
data
.
dglist
[
event
.
target
.
dataset
.
index
].
hdId
wx
.
showModal
({
title
:
'
提示
'
,
content
:
'
此操作将删除所选项,确认删除?
'
,
success
(
res
)
{
if
(
res
.
confirm
)
{
that
.
confirmToDelete
(
hdId
)
}
}
})
},
confirmToDelete
(
hdId
)
{
wx
.
showLoading
({
title
:
'
正在删除
'
,
})
wx
.
request
({
url
:
app
.
globalData
.
appBaseUrl
+
'
/api/thHiddenDanger
'
,
method
:
'
DELETE
'
,
header
:
{
Authorization
:
app
.
globalData
.
Authorization
},
data
:
[
hdId
],
header
:
{
Authorization
:
app
.
globalData
.
Authorization
},
success
:
(
res
)
=>
{
// console.log(res, 'hehehheeheh')
if
(
res
.
status
===
200
)
{
wx
.
showToast
({
title
:
'
删除成功
'
,
icon
:
'
success
'
})
this
.
getDataList
()
}
else
if
(
res
.
status
===
401
)
{
wx
.
redirectTo
({
url
:
'
/pages/login/login
'
,
})
}
else
{
wx
.
showToast
({
title
:
'
删除失败
'
,
icon
:
'
success
'
})
}
},
fail
:
()
=>
{
wx
.
showToast
({
title
:
'
删除失败
'
,
})
},
complete
:
()
=>
{
wx
.
hideLoading
()
}
})
},
/**
* 新增按钮开启
*/
addBtnTouchStart
(
event
)
{
const
animation
=
wx
.
createAnimation
({
delay
:
0
,
duration
:
400
,
timingFunction
:
'
ease
'
})
this
.
animation
=
animation
animation
.
translateX
(
'
-20rpx
'
).
step
()
this
.
setData
({
leftMove
:
animation
.
export
()
})
// setTimeout(() => {
// animation.translateX('50rpx').step()
// this.setData({
// leftMove: animation
// })
// }, 400)
},
addBtnTouchEnd
()
{
this
.
animation
.
translateX
(
'
0rpx
'
).
step
()
this
.
setData
({
leftMove
:
this
.
animation
.
export
()
})
}
})
\ No newline at end of file
pages/dangerlistcompany/dangerlistcompany.json
0 → 100644
View file @
5ff8a7f3
{
"usingComponents"
:
{}
}
\ No newline at end of file
pages/dangerlistcompany/dangerlistcompany.wxml
0 → 100644
View file @
5ff8a7f3
<!--pages/dangerlist/dangerlist.wxml-->
<view class="dangerlist-wrapper">
<scroll-view scroll-y="true" class="com-danger-list-scroll">
<view wx:for="{{dglist}}" class="enterprise-dg-item" wx:key="hdId" >
<view class="hd-name-expert">
<span wx:if="{{item.comment}}">{{item.comment}}</span>
<span wx:else>{{item.hdName}}</span>
</view>
<view >
<span>{{item.hdStatus}}</span>
</view>
<view style="float: right; margin-top: 20px;">
<button wx-if="{{item.hdStatus===1||item.hdStatus===3}}" type="default" class="editBtn" size="mini" bindtap="editHD" data-index="{{index}}">查看</button>
<button wx-if="{{item.hdStatus===0||item.hdStatus===2}}" type="default" class="editBtn" size="mini" bindtap="editHD" data-index="{{index}}" >编辑</button>
</view>
</view>
<view wx:if="{{dglist.length === 0}}" class="no-hd">暂无数据</view>
</scroll-view>
</view>
pages/dangerlistcompany/dangerlistcompany.wxss
0 → 100644
View file @
5ff8a7f3
/* pages/dangerlist/dangerlist.wxss */
.dangerlist-wrapper {
width: 100vw;
height: 100vh;
position: relative;
padding-top: 120rpx;
box-sizing: border-box;
overflow: hidden;
}
.btn-to-confirm {
position: absolute;
width: 100%;
height: 100%;
bottom: -100%;
background: #eee;
display: flex;
align-items: center;
justify-content: center;
}
.btn-to-confirm-center {
font-size: 20rpx;
border-radius: 30rpx;
display: flex;
flex-direction: column;
align-items: center;
background-color: white;
padding: 20rpx 0 0 0;
}
.btn-to-confirm-title {
font-size: 45rpx;
color: red;
display: flex;
justify-content: center;
line-height: 45rpx;
padding: 5rpx;
margin: 50rpx auto;
}
.change-password-btns-wrapper {
/* position: absolute;
bottom: 0; */
height: 110rpx;
width: 100%;
background-color: #B3B3B3;
border-radius: 0 0 30rpx 30rpx;
display: flex;
}
.cancel-change-password {
flex-basis: 50%;
display: flex;
justify-content: center;
align-items: center;
font-size: 46rpx;
background-color: #C1C1C1;
border-radius: 0 0 0 30rpx;
}
.confirm-change-password {
flex-basis: 50%;
display: flex;
justify-content: center;
align-items: center;
font-size: 46rpx;
border-left: 2rpx solid #000000;
}
button.add-btn {
position: absolute;
right: 35rpx;
top: 20rpx;
width: 180rpx!important;
height: 80rpx!important;
border-radius: 16rpx;
background-color: #090D9C!important;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
padding: 0!important;
transition: all 1s linear;
}
.com-danger-list-scroll {
width: 700rpx;
height: 85vh;
padding: 3rpx;
padding-left: 30rpx;
}
.cur-enter-name {
/* margin: 5vh auto; */
padding: 5vw 5vh;
font-size: 22px;
font-weight: bold;
}
.danger-tools-wrapper {
width: 70vw;
height: 10vh;
margin: 5vh auto;
border: 1px dashed black;
display: flex;
justify-content: flex-start;
align-items: center;
border-radius: 5px;
}
.danger-tools-wrapper button {
background-color: #1d2089!important;
}
.enterprise-dg-item {
width: 600rpx;
overflow: hidden;
/* height: 300rpx; */
/* display: flex;
justify-content: space-around;
align-items: center; */
padding: 10rpx;
background-color: white;
margin: 20rpx auto;
border-radius: 5px;
box-shadow: 2rpx 2rpx 2rpx 2rpx #eee, -1rpx -1rpx 1rpx 1rpx #eee;
}
.hd-name-expert {
/* width: 350rpx; */
line-height: 80rpx;
overflow: hidden;
/* text-overflow: ellipsis;
white-space: nowrap; */
}
.hd-name-expoer-to-green {
width: 350rpx;
line-height: 80rpx;
overflow: hidden;
/* text-overflow: ellipsis;
white-space: nowrap; */
color:#67C23A;
}
.hd-name-expoer-to-yellow {
width: 350rpx;
line-height: 80rpx;
overflow: hidden;
/* text-overflow: ellipsis;
white-space: nowrap; */
color: #E6A23C;
}
.hd-tools {
width: 30vw;
display: flex;
flex-direction: column;
justify-content: space-between;
/* align-items: flex-start; */
}
.hd-tools-edit {
text-align: right;
}
.hd-tools-edit button {
color: #1d2089!important;
}
.hd-tools-delete button {
/* background-color: ; */
}
.hd-tools-delete {
text-align: right;
}
.no-hd {
text-align: center;
}
.editBtn {
color: #1d2089!important;
}
pages/dangerlistverifydetail/dangerlistverifydetail.wxml
View file @
5ff8a7f3
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
<input type="text" value="{{hdStatus}}" disabled="{{!editAble}}" />
<input type="text" value="{{hdStatus}}" disabled="{{!editAble}}" />
</view>
</view>
<view class="danger-recept-per" wx:if="{{!showButton}}">
<view class="danger-recept-per" wx:if="{{!showButton}}">
<text>
复查
人员:</text>
<text>
审核
人员:</text>
<input type="text" value="{{hdAcceptancePerson}}" disabled="{{!editAble}}" />
<input type="text" value="{{hdAcceptancePerson}}" disabled="{{!editAble}}" />
</view>
</view>
<view class="danger-rect">
<view class="danger-rect">
...
...
pages/dangerregister/dangerregister.wxml
View file @
5ff8a7f3
...
@@ -111,30 +111,6 @@
...
@@ -111,30 +111,6 @@
</view>
</view>
</picker>
</picker>
</view>
</view>
<!-- <view class="danger-rect-date">
<text>复查日期:</text>
<picker class="danger-pick-date" mode="date" bindchange="inputRectDate" value="{{hdRectificationDate}}">
<view class="current-picker">
当前选择: {{hdRectificationDate}}
</view>
</picker>
</view>
<view class="danger-recept-per">
<text>复查人员:</text>
<input type="text" placeholder="请输入验收人" value="{{}}" bindinput="inputHdAcceptancePerson" />
</view> -->
<!-- <view class="danger-rect">
<text>复查记录:</text>
<textarea maxlength="-1" bindinput="inputEvaluation" value="{{recEvaluation}}"></textarea>
</view> -->
<!-- <view class="rect-img">
<text>整改照片</text>
<button type="primary" bindtap="takePhoto2">拍照</button>
</view>
<view class="rect-preview">
<text>整改照片预览:</text>
<image mode="widthFix" src="{{imgrecturl}}"></image>
</view> -->
<view class="danger-submit">
<view class="danger-submit">
<button type="primary" bindtap="submitDanger">提交</button>
<button type="primary" bindtap="submitDanger">提交</button>
</view>
</view>
...
...
pages/home/home.js
View file @
5ff8a7f3
...
@@ -11,7 +11,8 @@ Page({
...
@@ -11,7 +11,8 @@ Page({
topPersonHeight
:
40
,
topPersonHeight
:
40
,
topStatusBar
:
40
,
topStatusBar
:
40
,
curRole
:
''
,
curRole
:
''
,
personCenterImgSrc
:
'
http://39.102.232.151:8030/cover/人像icon.png
'
personCenterImgSrc
:
'
http://39.102.232.151:8030/cover/人像icon.png
'
,
userType
:
''
// topNavWidth:
// topNavWidth:
},
},
/**
/**
...
@@ -32,7 +33,7 @@ Page({
...
@@ -32,7 +33,7 @@ Page({
let
toGetHeight
=
0
let
toGetHeight
=
0
toGetHeight
=
(
rect
.
top
-
sysInfo
.
statusBarHeight
)
*
2
+
sysInfo
.
statusBarHeight
+
rect
.
height
toGetHeight
=
(
rect
.
top
-
sysInfo
.
statusBarHeight
)
*
2
+
sysInfo
.
statusBarHeight
+
rect
.
height
this
.
setData
({
this
.
setData
({
curRole
:
app
.
globalData
.
curRole
,
curRole
:
1
,
topNavHeight
:
toGetHeight
,
topNavHeight
:
toGetHeight
,
topPersonHeight
:
rect
.
height
-
2
*
(
rect
.
top
-
sysInfo
.
statusBarHeight
)
+
10
,
topPersonHeight
:
rect
.
height
-
2
*
(
rect
.
top
-
sysInfo
.
statusBarHeight
)
+
10
,
topStatusBar
:
sysInfo
.
statusBarHeight
topStatusBar
:
sysInfo
.
statusBarHeight
...
@@ -66,6 +67,11 @@ Page({
...
@@ -66,6 +67,11 @@ Page({
console
.
log
(
99999
)
console
.
log
(
99999
)
}
}
})
})
this
.
data
.
userType
=
app
.
globalData
.
userInfo
.
tag
this
.
setData
({
userType
:
app
.
globalData
.
userInfo
.
tag
})
console
.
log
(
'
this.data.userType
'
,
this
.
data
.
userType
)
},
},
/**
/**
...
@@ -251,6 +257,16 @@ Page({
...
@@ -251,6 +257,16 @@ Page({
success
:
function
(
event
)
{}
success
:
function
(
event
)
{}
})
})
},
},
/**
* 跳转到隐患管理-公司
*/
LinkToHD4company
()
{
wx
.
navigateTo
({
url
:
'
/pages/dangerlistcompany/dangerlistcompany
'
,
success
:
function
(
event
)
{}
})
},
/**
/**
* 跳转到隐患审核
* 跳转到隐患审核
*/
*/
...
...
pages/home/home.wxml
View file @
5ff8a7f3
...
@@ -10,10 +10,14 @@
...
@@ -10,10 +10,14 @@
</view>
</view>
<view style="height:{{topNavHeight}}px;"></view>
<view style="height:{{topNavHeight}}px;"></view>
<view class="row">
<view class="row">
<view
class="info-card hd-wrapper" bindtap="LinkToHD
">
<view
wx:if="{{userType==2}}" class="info-card hd-wrapper" bindtap="LinkToHD" wx-if="false
">
<view class="info-card-title">隐患管理</view>
<view class="info-card-title">隐患管理</view>
<view class="info-card-icon hd-icon"></view>
<view class="info-card-icon hd-icon"></view>
</view>
</view>
<view wx:if="{{userType==1}}" class="info-card hd-wrapper" bindtap="LinkToHD4company">
<view class="info-card-title">隐患管理-公司</view>
<view class="info-card-icon hd-icon"></view>
</view>
<view class="info-card evaluate-wrapper" bindtap="LinkToHDVerify">
<view class="info-card evaluate-wrapper" bindtap="LinkToHDVerify">
<view class="info-card-title">隐患审核</view>
<view class="info-card-title">隐患审核</view>
<view class="info-card-icon hd-icon"></view>
<view class="info-card-icon hd-icon"></view>
...
@@ -27,6 +31,8 @@
...
@@ -27,6 +31,8 @@
<view class="info-card-icon danger-work-icon"></view>
<view class="info-card-icon danger-work-icon"></view>
</view> -->
</view> -->
</view>
</view>
<!-- <view class="row">
<!-- <view class="row">
<view class="info-card live-wrapper"
<view class="info-card live-wrapper"
...
...
pages/loginv2/loginv2.js
View file @
5ff8a7f3
This diff is collapsed.
Click to expand it.
pages/loginv2/loginv2.wxml
View file @
5ff8a7f3
...
@@ -4,14 +4,7 @@
...
@@ -4,14 +4,7 @@
</view>
</view>
<view class="outer-wrapper">
<view class="outer-wrapper">
<view class="inner-wrapper">
<view class="inner-wrapper">
<view wx:if="{{curregisterorlogin}}">
<view wx:if="{{curregisterorlogin}}">
<!-- <view class="identity-wrapper" style="padding-top:30rpx;">
<view class="{{_num == 1?'def':'other'}}" data-num='1' bindtap="choseOther">经区</view>
<view class="{{_num == 2?'def':'other'}}" data-num='2' bindtap="choseOther">荣成</view>
<view class="{{_num == 3?'def':'other'}}" data-num='3' bindtap="choseOther">文登</view>
<view class="{{_num == 4?'def':'other'}}" data-num='4' bindtap="choseOther">环翠</view>
</view> -->
<view class="choose-county">
<view class="choose-county">
<picker
<picker
header-text="选择区域"
header-text="选择区域"
...
@@ -40,9 +33,6 @@
...
@@ -40,9 +33,6 @@
<input type="text" password="{{true}}" placeholder="请重复输入密码" bindinput="inputRepeatPassword" class="pass-word-wrapper">
<input type="text" password="{{true}}" placeholder="请重复输入密码" bindinput="inputRepeatPassword" class="pass-word-wrapper">
<image class="icon-pass-wrapper" src="{{passwordImgUrl}}"></image>
<image class="icon-pass-wrapper" src="{{passwordImgUrl}}"></image>
</input>
</input>
<!-- <input type="text" placeholder="请输入微信号" class="wx-number-wrapper" bindinput="inputWeChat">
<image class="icon-wxnumber-wrapper" src="{{wxImgUrl}}"></image>
</input> -->
<input type="text" placeholder="请输入手机号" class="phone-number-wrapper" bindinput="inputPhoneNumber">
<input type="text" placeholder="请输入手机号" class="phone-number-wrapper" bindinput="inputPhoneNumber">
<image class="icon-phone-wrapper" src="{{phoneImgUrl}}"></image>
<image class="icon-phone-wrapper" src="{{phoneImgUrl}}"></image>
</input>
</input>
...
@@ -50,24 +40,10 @@
...
@@ -50,24 +40,10 @@
class="nick-name-wrapper" bindinput="inputNickName">
class="nick-name-wrapper" bindinput="inputNickName">
<image class="icon-user-wrapper" src="{{nickNameImgUrl}}"></image>
<image class="icon-user-wrapper" src="{{nickNameImgUrl}}"></image>
</input>
</input>
<!-- <view class="identity-wrapper">
<text class="identity-title-wrapper">身份:</text>
<view class="icon-enter-manager" wx:if="{{curIdentity === '企业管理'}}">企业管理</view>
<view class="icon-enter-staff" wx:if="{{curIdentity === '企业管理'}}" bindtap="gotoStaff">企业员工</view>
<view class="icon2-enter-manager" wx:if="{{curIdentity === '企业员工'}}" bindtap="gotoManager">企业管理</view>
<view class="icon2-enter-staff" wx:if="{{curIdentity === '企业员工'}}">企业员工</view>
</view> -->
<button class="register-button" bindtap="registerToEntry" loading="{{isRegisterLoading}}">注册</button>
<button class="register-button" bindtap="registerToEntry" loading="{{isRegisterLoading}}">注册</button>
</view>
</view>
<view wx:else style="display: flex;flex-direction: column;justify-content: center;height: 100%;">
<view wx:else style="display: flex;flex-direction: column;justify-content: center;height: 100%;">
<view wx:if="{{userpassorphone}}" class="login2-user-pass-wrapper">
<view class="login2-user-pass-wrapper">
<!-- <view class="identity-wrapper">
<view class="{{_num == 1?'def':'other'}}" data-num='1' bindtap="choseOther">经区</view>
<view class="{{_num == 2?'def':'other'}}" data-num='2' bindtap="choseOther">荣成</view>
<view class="{{_num == 3?'def':'other'}}" data-num='3' bindtap="choseOther">文登</view>
<view class="{{_num == 4?'def':'other'}}" data-num='4' bindtap="choseOther">环翠</view>
</view> -->
<view class="choose-county">
<view class="choose-county">
<picker
<picker
header-text="选择区域"
header-text="选择区域"
...
@@ -79,8 +55,6 @@
...
@@ -79,8 +55,6 @@
选择区域<span> {{curSelectCounty}}</span>
选择区域<span> {{curSelectCounty}}</span>
</picker>
</picker>
</view>
</view>
<input type="text" placeholder="请输入您的用户名" class="login2-user-wrapper" bindinput="inputLogin1UserName">
<input type="text" placeholder="请输入您的用户名" class="login2-user-wrapper" bindinput="inputLogin1UserName">
<image src="{{nameImgUrl}}" class="login2-user-img-wrapper"></image>
<image src="{{nameImgUrl}}" class="login2-user-img-wrapper"></image>
</input>
</input>
...
@@ -95,20 +69,6 @@
...
@@ -95,20 +69,6 @@
<view class="btn-to-login-by-phone" bindtap="jumpToPhoneCode" style="display: none;">手机验证码登录</view>
<view class="btn-to-login-by-phone" bindtap="jumpToPhoneCode" style="display: none;">手机验证码登录</view>
</view>
</view>
<button class="login2-btn-wrapper" bindtap="ClickToLogin1" loading="{{isLogin1Loading}}">登录</button>
<button class="login2-btn-wrapper" bindtap="ClickToLogin1" loading="{{isLogin1Loading}}">登录</button>
<!--忘记密码 -->
<!-- <view class="password" bindtap="changePage">忘记密码</view> -->
</view>
<view wx:else>
<input type="text" placeholder="请输入手机号" class="login3-phone-wrapper">
<image src="{{phoneImgUrl}}" class="login3-phone-icon-wrapper"></image>
</input>
<input type="text" placeholder="请输入验证码" class="login3-code-wrapper">
<image src="{{validCodeImgUrl}}" class="login3-code-icon-wrapper"></image>
</input>
<view class="jump-to-userpass-login">
<view class="userpass-login" bindtap="jumpToUserPass">用户名密码登录</view>
</view>
<button class="btn-login3" loading="{{isLogin2Loading}}">登录</button>
</view>
</view>
</view>
</view>
</view>
</view>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment