From 17efddc6a667670dca682bf36b51a43e99615e6d Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 16 十月 2024 15:59:38 +0800
Subject: [PATCH] 代码初始化

---
 h5/pages/staff/visitorReport.vue |   35 +++++++++++++++++++++--------------
 1 files changed, 21 insertions(+), 14 deletions(-)

diff --git a/h5/pages/staff/visitorReport.vue b/h5/pages/staff/visitorReport.vue
index 75023e8..fcb4b2e 100644
--- a/h5/pages/staff/visitorReport.vue
+++ b/h5/pages/staff/visitorReport.vue
@@ -6,19 +6,20 @@
           <text>*</text>
           <text>琚浜哄鍚�</text>
         </view>
-        <view class="list_item_content" @click="showName = true">
+        <!-- <view class="list_item_content" @click="showName = true"> -->
+        <view class="list_item_content">
           <text :style="{ color: form1.receptMemberName ? '#000000' : '' }">{{
             form1.receptMemberName
               ? form1.receptMemberName + " " + form1.receptCompanyName
               : "璇烽�夋嫨"
           }}</text>
-          <u-icon name="arrow-right" color="#CCCCCC" size="20"></u-icon>
+          <!-- <u-icon name="arrow-right" color="#CCCCCC" size="20"></u-icon> -->
         </view>
       </view>
       <view class="list_item">
         <view class="list_item_label">
           <text>*</text>
-          <text>鍏ュ巶鏃堕棿</text>
+          <text>鍏ュ洯鏃堕棿</text>
         </view>
         <view class="list_item_content" @click="show4 = true">
           <text :style="{ color: form1.starttime ? '#000000' : '' }">{{
@@ -30,7 +31,7 @@
       <view class="list_item">
         <view class="list_item_label">
           <text>*</text>
-          <text>绂诲巶鏃堕棿</text>
+          <text>绂诲洯鏃堕棿</text>
         </view>
         <view class="list_item_content" @click="openLC">
           <text :style="{ color: form1.endtime ? '#000000' : '' }">{{
@@ -124,7 +125,7 @@
     <view class="footer"
       ><view class="footer_btn" @click="submit">鎻愪氦</view></view
     >
-    <!-- 鍏ュ満鏃堕棿 -->
+    <!-- 鍏ュ洯鏃堕棿 -->
     <u-datetime-picker
       :show="show4"
       :minDate="new Date().getTime()"
@@ -132,7 +133,7 @@
       @cancel="show4 = false"
       @confirm="setinDate"
     ></u-datetime-picker>
-    <!-- 绂诲満鏃堕棿 -->
+    <!-- 绂诲洯鏃堕棿 -->
     <u-datetime-picker
       v-if="form1.starttime"
       :show="show5"
@@ -234,7 +235,7 @@
     const userInfo = uni.getStorageSync('userInfo') || {}
     this.$set(this.form1, 'receptMemberName', userInfo.realname)
     this.$set(this.form1, 'receptMemberId', userInfo.id || '')
-    this.$set(this.form1, 'receptCompanyName', userInfo.company.companyName || '')
+    this.$set(this.form1, 'receptCompanyName', userInfo.company.name || '')
     // this.getvisit()
     // this.getVisit1()
     // this.getUserValid()
@@ -276,12 +277,12 @@
         })
       if (!this.form1.starttime)
         return uni.showToast({
-          title: '鍏ュ満鏃堕棿涓嶈兘涓虹┖',
+          title: '鍏ュ洯鏃堕棿涓嶈兘涓虹┖',
           icon: 'none'
         })
       if (!this.form1.endtime)
         return uni.showToast({
-          title: '绂诲満鏃堕棿涓嶈兘涓虹┖',
+          title: '绂诲洯鏃堕棿涓嶈兘涓虹┖',
           icon: 'none'
         })
       if (!this.form1.name) return uni.showToast({
@@ -292,6 +293,12 @@
         title: '鎵嬫満鍙蜂笉鑳戒负绌�',
         icon: 'none'
       })
+      var re = /^1[3,4,5,6,7,8,9][0-9]{9}$/;
+		  var result = re.test(this.form1.phone);
+      if (!result) return uni.showToast({
+        title: '鎵嬫満鍙锋牸寮忎笉姝g‘',
+        icon: 'none'
+      }) 
       if (!this.form1.companyName) return uni.showToast({
         title: '鏉ヨ鍗曚綅涓嶈兘涓虹┖',
         icon: 'none'
@@ -385,7 +392,7 @@
     openLC() {
       if (!this.form1.starttime)
         return uni.showToast({
-          title: '璇峰厛閫夋嫨鍏ュ巶鏃堕棿',
+          title: '璇峰厛閫夋嫨鍏ュ洯鏃堕棿',
           icon: 'none'
         })
       this.show5 = true
@@ -445,7 +452,7 @@
   }
 };
 </script>
-<style>
+<style lang="scss">
 page {
   background-color: #f7f7f7 !important;
 }
@@ -465,7 +472,7 @@
       line-height: 100rpx;
       text-align: center;
       font-size: 32rpx;
-      font-weight: 500;
+      font-weight: 600;
       color: #222222;
     }
     .list {
@@ -521,7 +528,7 @@
       text-align: center;
       font-size: 32rpx;
       font-family: PingFangSC, PingFang SC;
-      font-weight: 500;
+      font-weight: 600;
       color: #222222;
     }
     .addcar_ipt {
@@ -655,7 +662,7 @@
       height: 88rpx;
       line-height: 88rpx;
       text-align: center;
-      background: #4e99a9;
+      background: $uni-color-primary;
       border-radius: 44rpx;
       font-size: 32rpx;
       color: #ffffff;

--
Gitblit v1.9.3