some fix
This commit is contained in:
parent
33f80e0411
commit
012e2e4568
|
@ -142,6 +142,16 @@ Page({
|
||||||
*/
|
*/
|
||||||
onShareAppMessage: function () {
|
onShareAppMessage: function () {
|
||||||
|
|
||||||
|
},
|
||||||
|
showPw(){
|
||||||
|
wx.showModal({
|
||||||
|
title: '',
|
||||||
|
content: '默认密码是0000,如果您修改过或者账号错误,请联系贵公司管理员(一般是安全管理部门),请及时登陆pc端修改密码!',
|
||||||
|
showCancel:false,
|
||||||
|
confirmText:'知道了',
|
||||||
|
success (res) {
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
intro:function(){
|
intro:function(){
|
||||||
let fileurl = getApp().globalData.serverUrl + 'media/安全生产管理系统-国检集团.docx'
|
let fileurl = getApp().globalData.serverUrl + 'media/安全生产管理系统-国检集团.docx'
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<button class="weui-btn" type="primary" open-type="getUserInfo" bindgetuserinfo="onGetInfo">授权并绑定登陆</button>
|
<button class="weui-btn" type="primary" open-type="getUserInfo" bindgetuserinfo="onGetInfo">授权并绑定登陆</button>
|
||||||
|
<view style="text-align:center;color:gray" bindtap="showPw">账号错误或忘记密码?</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="weui-footer weui-footer_fixed-bottom">
|
<view class="weui-footer weui-footer_fixed-bottom">
|
||||||
<!-- <view class="weui-footer__links">
|
<!-- <view class="weui-footer__links">
|
||||||
|
@ -36,5 +37,4 @@
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="weui-footer__text" bindtap="intro">点击下载系统/小程序文档介绍</view>
|
<view class="weui-footer__text" bindtap="intro">点击下载系统/小程序文档介绍</view>
|
||||||
<view class="weui-footer__text">Copyright © 2018-2020 国检集团</view>
|
<view class="weui-footer__text">Copyright © 2018-2020 国检集团</view>
|
||||||
<view class="weui-footer__text">中存大数据提供技术支持</view>
|
|
||||||
</view>
|
</view>
|
|
@ -94,5 +94,4 @@
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="weui-footer__text" bindtap="intro">点击下载系统/小程序文档介绍</view>
|
<view class="weui-footer__text" bindtap="intro">点击下载系统/小程序文档介绍</view>
|
||||||
<view class="weui-footer__text">Copyright © 2018-2020 国检集团</view>
|
<view class="weui-footer__text">Copyright © 2018-2020 国检集团</view>
|
||||||
<view class="weui-footer__text">中存大数据提供技术支持</view>
|
|
||||||
</view>
|
</view>
|
|
@ -54,6 +54,7 @@ Page({
|
||||||
that.setData({
|
that.setData({
|
||||||
itemscheck:that.data.itemscheck
|
itemscheck:that.data.itemscheck
|
||||||
})
|
})
|
||||||
|
console.log(that.data.itemscheck)
|
||||||
},
|
},
|
||||||
bindcontentInput: function (e) {
|
bindcontentInput: function (e) {
|
||||||
this.data.content = e.detail.value
|
this.data.content = e.detail.value
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
<view class="weui-cell__ft">{{content}}</view>
|
<view class="weui-cell__ft">{{content}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="weui-cells__title">检查表</view>
|
<view class="weui-cells__title">检查记录</view>
|
||||||
<view class="weui-cells weui-cells_after-title">
|
<view class="weui-cells weui-cells_after-title">
|
||||||
<block wx:for="{{checkitems}}" wx:key="unique">
|
<block wx:for="{{checkitems}}" wx:key="unique">
|
||||||
<navigator url="detail2?id={{item.id}}" class="weui-media-box weui-media-box_appmsg" hover-class="weui-cell_active">
|
<navigator url="detail2?id={{item.id}}" class="weui-media-box weui-media-box_appmsg" hover-class="weui-cell_active">
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="weui-cell weui-cell_access">
|
<view class="weui-cell weui-cell_access">
|
||||||
<view class="weui-cell__bd weui-cell_primary">
|
<view class="weui-cell__bd weui-cell_primary">
|
||||||
<view>异常项目</view>
|
<view>检查项目</view>
|
||||||
<view class="weui-cell__ft">
|
<view class="weui-cell__ft">
|
||||||
<span style="color:darkblue;font-weight:bold">{{checkitem__name}}</span>
|
<span style="color:darkblue;font-weight:bold">{{checkitem__name}}</span>
|
||||||
{{checkitem__content}}
|
{{checkitem__content}}
|
||||||
|
@ -40,9 +40,12 @@
|
||||||
<view class="weui-cell weui-cell_access">
|
<view class="weui-cell weui-cell_access">
|
||||||
<view class="weui-cell__bd weui-cell_primary">
|
<view class="weui-cell__bd weui-cell_primary">
|
||||||
<view>异常描述</view>
|
<view>异常描述</view>
|
||||||
<view class="weui-cell__ft">
|
<view class="weui-cell__ft" wx:if="{{desc}}">
|
||||||
{{desc}}
|
{{desc}}
|
||||||
</view>
|
</view>
|
||||||
|
<view class="weui-cell__ft" wx:else>
|
||||||
|
无
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="weui-cell weui-cell_access">
|
<view class="weui-cell weui-cell_access">
|
||||||
|
@ -50,7 +53,7 @@
|
||||||
<view>异常图片</view>
|
<view>异常图片</view>
|
||||||
<view class="weui-uploader__files">
|
<view class="weui-uploader__files">
|
||||||
<view class="weui-uploader__file">
|
<view class="weui-uploader__file">
|
||||||
<image class="weui-uploader__img" src="{{img}}" data-src="{{img}}" bindtap="previewImage"></image>
|
<image class="weui-uploader__img" wx:if="{{img}}" src="{{img}}" data-src="{{img}}" bindtap="previewImage"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -76,7 +79,7 @@
|
||||||
<view>处理图片</view>
|
<view>处理图片</view>
|
||||||
<view class="weui-uploader__files">
|
<view class="weui-uploader__files">
|
||||||
<view class="weui-uploader__file">
|
<view class="weui-uploader__file">
|
||||||
<image class="weui-uploader__img" src="{{img2}}" data-src="{{img2}}" bindtap="previewImage"></image>
|
<image class="weui-uploader__img" wx:if="img2" src="{{img2}}" data-src="{{img2}}" bindtap="previewImage"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
@ -5,7 +5,8 @@ Page({
|
||||||
* 页面的初始数据
|
* 页面的初始数据
|
||||||
*/
|
*/
|
||||||
data: {
|
data: {
|
||||||
desc2:''
|
desc2:'',
|
||||||
|
img2:''
|
||||||
},
|
},
|
||||||
binddesc2Input: function (e) {
|
binddesc2Input: function (e) {
|
||||||
this.data.desc2 = e.detail.value
|
this.data.desc2 = e.detail.value
|
||||||
|
@ -141,13 +142,7 @@ Page({
|
||||||
},
|
},
|
||||||
submit: function () {
|
submit: function () {
|
||||||
var that = this
|
var that = this
|
||||||
if(that.data.desc2 == ''){
|
if(that.data.desc2 || that.data.img2){
|
||||||
wx.showToast({
|
|
||||||
title: '未填写处理描述',
|
|
||||||
icon:'none'
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
|
||||||
let data = {
|
let data = {
|
||||||
id:that.data.id,
|
id:that.data.id,
|
||||||
desc2: that.data.desc2,
|
desc2: that.data.desc2,
|
||||||
|
@ -174,5 +169,12 @@ Page({
|
||||||
wx.hideLoading();
|
wx.hideLoading();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}else{
|
||||||
|
wx.showToast({
|
||||||
|
title: '未填写处理描述或图片',
|
||||||
|
icon:'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
})
|
})
|
|
@ -7,6 +7,7 @@
|
||||||
"minified": true,
|
"minified": true,
|
||||||
"newFeature": true,
|
"newFeature": true,
|
||||||
"coverView": true,
|
"coverView": true,
|
||||||
|
"nodeModules": true,
|
||||||
"autoAudits": false,
|
"autoAudits": false,
|
||||||
"showShadowRootInWxmlPanel": true,
|
"showShadowRootInWxmlPanel": true,
|
||||||
"scopeDataCheck": false,
|
"scopeDataCheck": false,
|
||||||
|
@ -18,7 +19,9 @@
|
||||||
"disablePlugins": [],
|
"disablePlugins": [],
|
||||||
"outputPath": ""
|
"outputPath": ""
|
||||||
},
|
},
|
||||||
"nodeModules": true
|
"useIsolateContext": true,
|
||||||
|
"useCompilerModule": false,
|
||||||
|
"userConfirmedUseCompilerModuleSwitch": false
|
||||||
},
|
},
|
||||||
"compileType": "miniprogram",
|
"compileType": "miniprogram",
|
||||||
"libVersion": "2.9.4",
|
"libVersion": "2.9.4",
|
||||||
|
|
Loading…
Reference in New Issue