zhaoxiaohai 4 роки тому
батько
коміт
149d1cd85d
3 змінених файлів з 14 додано та 6 видалено
  1. 10 0
      pages/login/index.js
  2. 3 3
      pages/login/index.wxml
  3. 1 3
      pages/tabbar-pages/message/index.wxml

+ 10 - 0
pages/login/index.js

@@ -46,6 +46,7 @@ Page({
             fcontact: false, //联系人
             logoTips: false, //未上传图片提示
             coverTips: false,
+            faddress: false,
         },
         countDownTime: 60, //倒计时
         dataList: ["暂无分类"], //分类列表
@@ -252,6 +253,15 @@ Page({
             errTips.fphonenumber = true;
             verify = false;
         }
+        // 地址验证
+        if (!_Verify.required(this.data.faddress)) {
+            errTips.faddress = true;
+            verify = false;
+        };
+        // 公司介绍验证
+        if (!_Verify.required(this.data.fintroduction)) {
+            verify = false;
+        };
         this.setData({
             errTips
         })

+ 3 - 3
pages/login/index.wxml

@@ -100,16 +100,16 @@
                 </view>
             </view>
             <!-- 公司介绍 -->
-            <view class="input_text_title">公司介绍</view>
+            <view class="input_text_title">公司介绍<text>*</text></view>
             <view class="input_text_box box_mar_bot textarea">
                 <!-- 未做数据绑定 -->
                 <textarea value="{{fintroduction}}" placeholder="请填写公司介绍" placeholder-style="color:#DAD9DB; font-size:30rpx;" bindinput="fintroductionInput"></textarea>
             </view>
             <!-- 地址 -->
-            <view class="input_text_title">地址</view>
+            <view class="input_text_title">地址<text>*</text></view>
             <view class="input_text_box box_mar_bot">
                 <view class="input_text_input marLeft">
-                    <van-field autosize model:value="{{ faddress }}" input-class="input-class" placeholder="请输入地址" border="{{ false }}" />
+                    <van-field autosize model:value="{{ faddress }}" data-name="faddress" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.faddress}}" input-class="input-class" placeholder="请输入地址" border="{{ false }}" />
                 </view>
             </view>
             <!-- 统一社会代码 -->

+ 1 - 3
pages/tabbar-pages/message/index.wxml

@@ -31,6 +31,4 @@
     <My_pageReachBottom dummyStatus="{{msgList.length>0}}" loadMore='{{pageNumber>=pageTotal}}'></My_pageReachBottom>
 </scroll-view>
 
-<block hidden="true">
-    <CusTabBar id="gxshuju"></CusTabBar>
-</block>
+<CusTabBar id="gxshuju"></CusTabBar>