Browse Source

fix:找一找客户电话增加

chenzhen2 1 year ago
parent
commit
633e1beb9b
1 changed files with 29 additions and 2 deletions
  1. 29 2
      src/packagesEnv/pages/search/index.wpy

+ 29 - 2
src/packagesEnv/pages/search/index.wpy

@@ -1,8 +1,11 @@
 <style lang="less">
 page {
   width: 100%;
+  height: 100%;
 }
 .page-search {
+  height: 100%;
+  box-sizing: border-box;
   position: relative;
   padding-top: 136rpx;
   .input-wrap {
@@ -275,7 +278,15 @@ page {
       <view v-else-if="serachData && serachData.length==0" class="no-search">
         <image src="{{ h5StaticPath+'no-data.svg'}}"/>
      </view>
-     </view>
+     <!--客户电话-->
+     <custome-service-panel
+            :show="visiblePhone"
+            :phone="phone"
+            @custome-service-close="closePhonePanel"
+        >
+        </custome-service-panel>
+     <footer v-show="hasCustomePhone" @callPhone="openPhonePanel" @custome-phone-show="customePhoneShow"></footer>
+  </view>
 </template>
 
 <script>
@@ -297,6 +308,9 @@ wepy.page({
   },
 
   data: {
+    hasCustomePhone: null,
+    visiblePhone: false,
+    phone: '',
     inputValue: '',
     autoFocus: false,
     h5StaticPath,
@@ -322,6 +336,17 @@ wepy.page({
       this.histroyData = histroyData;
       this.getMeeting();
     },
+    // 是否有客服
+    customePhoneShow(val) {
+      this.hasCustomePhone = val;
+    },
+    openPhonePanel(val) {
+      this.phone = val;
+      this.visiblePhone = true;
+    },
+    closePhonePanel(val) {
+      this.visiblePhone = val
+    },
     getHilightStrArray(str, key) {
       return str.replace(new RegExp(`${key}`, 'g'), `%%${key}%%`).split('%%');
     },
@@ -431,7 +456,9 @@ wepy.page({
   "backgroundColor": "#EBF5FA",
   navigationStyle:"custom",
   usingComponents: {
-    'page-top-bar': '~@/components/common/page-top-bar',      
+    'custome-service-panel': '~@/components/coustome/custome-service-panel', 
+    'page-top-bar': '~@/components/common/page-top-bar',
+    'footer':'~@/components/coustome/footer'      
   },
   componentPlaceholder:{
     'page-top-bar': 'view'