Browse Source

备注不对齐, 巡查详情新隐患添加后,input不清空

data-page-V4.3.1
是小王呀\24601 1 year ago
parent
commit
b090a02988
  1. 2
      subpages/InspectionReport/pages/InspectionReport/InspectionReport.js
  2. 1
      subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxss
  3. 2
      subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxml
  4. 1
      subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxss

2
subpages/InspectionReport/pages/InspectionReport/InspectionReport.js

@ -300,7 +300,7 @@ Page({
});
},
addAnother() {
let newValue = this.data.arr1.length + 1; // 根据数组长度确定新值
let newValue = this.data.arr1.length + 1; // 根据addAnother数组长度确定新值
let newArr = this.data.arr1.concat({
value: newValue.toString(),
name: this.data.hazardDesc

1
subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxss

@ -110,7 +110,6 @@ page {
display: flex;
flex-direction: column;
margin: 20rpx;
padding-left: 40rpx;
}
.image1{
margin-top: 20rpx;

2
subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxml

@ -32,7 +32,7 @@
</view>
</view>
<view class="input1">
<input bindinput="changenewContent" value="{{newContentWithIndex}}" type="text" placeholder=" 请输入新的隐患信息" />
<input bindinput="changenewContent" value="{{newContent}}" type="text" placeholder=" 请输入新的隐患信息" />
</view>
<view class="add" bind:tap="addAnother">
<image src="../../../../images/add.png" class="add_img"></image>

1
subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxss

@ -134,6 +134,7 @@ page {
display: flex;
flex-direction: column;
margin: 20rpx;
padding-left: 40rpx;
}
.image1{
margin-top: 20rpx;

Loading…
Cancel
Save