roose 4 yıl önce
ebeveyn
işleme
2bd164ab5b

+ 12 - 3
pages/collectInfo/collectInfo.js

@@ -1064,6 +1064,7 @@ Page({
                 _this.setData({
                   showBj: false,
                 })
+                isTwoOnshow = true;
               }
             })
           } else {
@@ -1182,7 +1183,7 @@ Page({
       this.setData({
         [Info2]: true
       })
-    }else{
+    } else {
       this.setData({
         [Info2]: false
       })
@@ -2106,7 +2107,10 @@ Page({
   },
   goPhoto() {
     let that = this;
-    isTwoOnshow = true;
+
+    wx.showLoading({
+      title: '加载中',
+    })
     wx.chooseImage({
       count: 1,
       sizeType: ['compressed'],
@@ -2139,6 +2143,10 @@ Page({
             })
           }
         })
+      },
+      complete: (e) => {
+        isTwoOnshow = true;
+        wx.hideLoading();
       }
     })
 
@@ -2988,7 +2996,7 @@ Page({
                 }
               })
             })
-           
+
             loveRequire.forEach(itemss => {
               item.demand.forEach(item => {
                 if (itemss.name == item) {
@@ -3932,6 +3940,7 @@ Page({
       isonShow = false;
       return;
     };
+
     this.setData({
       addOldname: '',
       currentIndex: 0

+ 1 - 1
pages/collectInfo/collectInfo.wxml

@@ -3,7 +3,7 @@
 	<!--  wx:if="{{showBj}}" -->
 	<view class="{{showBj ? 'writeOldmanName':'none'}} " hidden="{{!showBj}}">
 		<view class="   OldmanName_box">
-			<view class="oldmanname">请输入老人姓名1111111111</view>
+			<view class="oldmanname">请输入老人姓名</view>
 			<!--   -->
 			<input style="margin-left:50rpx;margin-top:30rpx;border:1px solid #279bff" placeholder-style="color: {{color}}" bindinput="addOldName" value="{{addOldname}}" placeholder="请填写老人姓名" />
 			<view class="btn_box">