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