xiebaomin hai 1 ano
pai
achega
7a7b27352a

+ 8 - 5
src/main/resources/static/css/service-settlement/index.css

@@ -56,17 +56,20 @@
         font-size: 0.8vw;
         color: #666;
     }
-    .footer-phone .phone {
+    .footer-phone .phonePC {
         cursor: pointer;
         font-size: 0.8vw;
         color: #FF5B00;
         box-sizing: border-box;
         height: 1.1vw;
     }
-    .footer-phone .phone:hover {
+    .footer-phone .phonePC:hover {
         border-bottom: 1px solid #FF5B00;
         box-sizing: border-box;
     }
+    .footer-phone .phone {
+        display: none;
+    }
     .el-dialog--center .el-dialog__body {
         text-align: center !important;
         padding: 18px;
@@ -77,9 +80,6 @@
         background-color: #FF5B00;
         color: #fff;
     }
-    .el-dialog {
-        display: none !important;
-    }
 }
 
 /**
@@ -152,6 +152,9 @@
         border-bottom: 1px solid #FF5B00;
         box-sizing: border-box;
     }
+    .footer-phone .phonePC {
+        display: none;
+    }
     .el-dialog {
         width: 80% !important;
     }

+ 8 - 4
src/main/resources/static/css/service-settlement/search.css

@@ -105,19 +105,19 @@
         font-size: 0.8vw;
         color: #666;
     }
-    .footer-phone .phone {
+    .footer-phone .phonePC {
         cursor: pointer;
         font-size: 0.8vw;
         color: #FF5B00;
         box-sizing: border-box;
         height: 1.1vw;
     }
-    .footer-phone .phone:hover {
+    .footer-phone .phonePC:hover {
         border-bottom: 1px solid #FF5B00;
         box-sizing: border-box;
     }
-    .el-dialog {
-        display: none !important;
+    .footer-phone .phone {
+        display: none;
     }
 }
 
@@ -172,6 +172,7 @@
         display: flex;
         flex-direction: column;
         justify-content: space-between;
+        height: 21.8vw;
     }
     .provider .content .provider-name {
         font-weight: bold;
@@ -222,4 +223,7 @@
         height: 4.2vw;
         border-bottom: 1px solid #FF5B00;
     }
+    .footer-phone .phonePC {
+        display: none;
+    }
 }

+ 5 - 5
src/main/resources/static/js/base.js

@@ -548,11 +548,11 @@ $(function(){
             window.location.href = '/info/search-1.html?keyword=' + encodeURIComponent(keyword);
         }
         // 搜索词统计
-        BeautyArchiveApi.setSearchKeywords({keyword}, (res) => {
-            if (res.code === 0) {
-                console.log('搜索词统计成功')
-            }
-        })
+        // BeautyArchiveApi.setSearchKeywords({keyword}, (res) => {
+        //     if (res.code === 0) {
+        //         console.log('搜索词统计成功')
+        //     }
+        // })
     }).on('keyup', '.keyword', function (event) {
         // 搜索输入框 按回车键搜索
         var keyCode = event.keyCode || event.which;

+ 5 - 5
src/main/resources/static/js/encyclopedia/search.js

@@ -22,11 +22,11 @@ const searchList = new Vue({
         this.$nextTick(() => {
             $('#searchInput').val(this.listQuery.name)
             // 搜索词统计
-            BeautyArchiveApi.setSearchKeywords({keyword: this.listQuery.name}, (res) => {
-                if (res.code === 0) {
-                    console.log('搜索词统计成功')
-                }
-            })
+            // BeautyArchiveApi.setSearchKeywords({keyword: this.listQuery.name}, (res) => {
+            //     if (res.code === 0) {
+            //         console.log('搜索词统计成功')
+            //     }
+            // })
         })
         this.getList()
     },

+ 18 - 1
src/main/resources/static/js/service-settlement/components/footerComp.js

@@ -3,7 +3,8 @@ const comFooter = {
     data() {
         return {
             phone: '0755-3365-6365',
-            centerDialogVisible: false
+            centerDialogVisible: false,
+            telPhoneDialog: false
         }
     },
     template:
@@ -14,6 +15,9 @@ const comFooter = {
                 <div class="phone" @click="centerDialogVisible = true">
                     {{ phone }}
                 </div>
+                <div class="phonePC" @click="telPhoneDialog = true">
+                    {{ phone }}
+                </div>
             </div>
             <el-dialog
               :visible.sync="centerDialogVisible"
@@ -25,12 +29,25 @@ const comFooter = {
                 <el-button class="confirm" @click="telPhone">确 定</el-button>
               </span>
             </el-dialog>
+            
+            <el-dialog
+              :visible.sync="telPhoneDialog"
+              width="18%"
+              center>
+              <span>请使用手机进行拨打</span>
+              <span slot="footer" class="dialog-footer">
+                <el-button class="confirm" @click="telPhonePC">确 定</el-button>
+              </span>
+            </el-dialog>
         </div>
     `,
     methods: {
         telPhone() {
             this.centerDialogVisible = false;
             window.location.href = `tel:${this.phone}`;
+        },
+        telPhonePC() {
+            this.telPhoneDialog = false
         }
     }
 }

+ 1 - 0
src/main/resources/templates/service-settlement/components/footer-link.html

@@ -7,6 +7,7 @@
 <script charset="utf-8" type="text/javascript" src="/lib/lazyload.js"></script>
 <script charset="utf-8" type="text/javascript" src="/lib/element-ui/element-ui.min.js"></script>
 <script charset="utf-8" type="text/javascript" src="/lib/vant-ui/vant.min.js"></script>
+<script charset="utf-8" type="text/javascript" th:src="@{/js/base.js(v=${version})}"></script>
 <script src="https://cdn.bootcss.com/js-sha1/0.6.0/sha1.js"></script>
 <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
 <script charset="utf-8" type="text/javascript" th:src="@{/js/common/ajax.service.js(v=${version})}"></script>