Kaynağa Gözat

teamWork.js

yukangzhe 3 yıl önce
ebeveyn
işleme
2ea7f80974
4 değiştirilmiş dosya ile 15 ekleme ve 10 silme
  1. 1 1
      app.json
  2. 1 3
      pages/quan/quan.wxss
  3. 7 0
      pages/teamWork/teamWork.js
  4. 6 6
      pages/teamWork/teamWork.wxml

+ 1 - 1
app.json

@@ -1,6 +1,7 @@
 {
   "plugins": {},
   "pages": [
+    "pages/teamWork/teamWork",
     "pages/login/login",
     "pages/playShow/playShow",
     "pages/demo/demo",
@@ -11,7 +12,6 @@
     "pages/pianoDetail/pianoDetail",
     "pages/pianoList/pianoList",
     "pages/classTotalList/classTotalList",
-    "pages/teamWork/teamWork",
     "pages/forBack/forBack",
     "pages/orderClassDetail/orderClassDetail",
     "pages/leaveRecord/leaveRecord",

+ 1 - 3
pages/quan/quan.wxss

@@ -8,9 +8,7 @@
   position: relative;
   background: #000;
 } 
-page{
-  background: #f1f1f1;
-}
+
 .quan-view{
   margin-top: 40rpx;
 }

+ 7 - 0
pages/teamWork/teamWork.js

@@ -18,6 +18,13 @@ Page({
     ]
   },
 
+  formSubmit:function(e){
+    let value = e.detail.value
+    let companyType = this.data.array[value.companyType]
+    value.companyType = companyType
+    console.log(value)
+  },
+
   /**
    * 生命周期函数--监听页面加载
    */

+ 6 - 6
pages/teamWork/teamWork.wxml

@@ -3,14 +3,14 @@
     <view class="input-box">
       <view class="title">企业名称</view>
       <view class="input-view">
-        <input class="weui-input"  placeholder="请填写" maxlength="50" />
+        <input class="weui-input" name="companyName"  placeholder="请填写" maxlength="50" />
       </view>
     </view>
 
     <view class="select-box">
       <view class="title">企业类型</view>
       <view class="select-view">
-        <picker bindchange="bindPickerChange" value="{{index}}" range="{{array}}">
+        <picker bindchange="bindPickerChange" name="companyType" value="{{index}}" range="{{array}}">
           <view class="picker">
             {{array[index]}}
           </view>
@@ -21,21 +21,21 @@
     <view class="input-box">
       <view class="title">联系人姓名</view>
       <view class="input-view">
-        <input class="weui-input"  placeholder="请填写" maxlength="5" />
+        <input class="weui-input" name="contactName"  placeholder="请填写" maxlength="5" />
       </view>
     </view>
 
     <view class="input-box">
       <view class="title">联系人电话</view>
       <view class="input-view">
-        <input class="weui-input"  placeholder="请填写" maxlength="11" />
+        <input class="weui-input" name="phone"  placeholder="请填写" minlength="8" maxlength="11" />
       </view>
     </view>
 
     <view class="input-box">
       <view class="title">联系人微信</view>
       <view class="input-view">
-        <input class="weui-input" placeholder="请填写" maxlength="50" />
+        <input class="weui-input" name="weChat" placeholder="请填写" maxlength="50" />
       </view>
     </view>
 
@@ -43,7 +43,7 @@
 
     <view class="textarea-box">
       <view class="title">项目简介/合作方案</view>
-      <textarea class="textarea" placeholder="请在此填写项目简介或初步合作方案说明..." maxlength="200"></textarea>
+      <textarea class="textarea" name="textarea" placeholder="请在此填写项目简介或初步合作方案说明..." maxlength="200"></textarea>
     </view>
     <view class="line"></view>