Browse Source

Merge remote-tracking branch 'origin/master'

azw 2 years ago
parent
commit
83b9663bec

+ 59 - 29
src/main/resources/static/main/basicinfo.html

@@ -165,28 +165,31 @@
             margin-left: 20px;
             background-color: #076DCF;
         }
-        .capital-tel{
-           height: 90px;
-           background: #0060C3;
-           display: flex;
-           font-size: 25px;
-           color: #fff;
-           justify-content: center;
-           align-items: center;
+
+        .capital-tel {
+            height: 90px;
+            background: #0060C3;
+            display: flex;
+            font-size: 25px;
+            color: #fff;
+            justify-content: center;
+            align-items: center;
         }
-        .capital-tel>p{
+
+        .capital-tel>p {
             padding-left: 10px;
         }
+
         .el-message-box,
         .el-message-box__btns,
         .el-message-box__header,
-        .el-message-box__content{
+        .el-message-box__content {
             padding: 0;
             width: 420px;
-			background-color: transparent;
-			border: 0px;
-			-webkit-box-shadow: none;
-			box-shadow: none;
+            background-color: transparent;
+            border: 0px;
+            -webkit-box-shadow: none;
+            box-shadow: none;
         }
     </style>
 </head>
@@ -327,7 +330,7 @@
                 <li class="but-item" style="position: relative;"><a href="#md"
                         style="position: absolute;top: 0;left: 0;width: 100%;height: 100%;"></a>查看门店</li>
                 <li class="but-item" onclick="broker()">查看经纪人员</li>
-                <li class="but-item" @click="jumpover(companyInfo.TEL)">我要投诉</li>
+                <li class="but-item" @click="jumpover(companyInfo.REGORG_CN)">我要投诉</li>
             </ul>
         </div>
         <div class="cyda-info_m jypjmx">
@@ -436,6 +439,7 @@
     <script src="js/paging.js"></script>
     <script src="js/vue.js"></script>
     <script src="element-ui/lib/index.js" type="text/javascript" charset="utf-8"></script>
+    <script src="js/Convert_Pinyin.js"></script>
     <script>
         // 跳转经纪人员公示
         var id = location.search
@@ -568,6 +572,7 @@
                         },
                         success: function (json) {
                             if (json.result) {
+                                console.log(json.data)
                                 _this.companyInfo = json.data;
                             }
                         },
@@ -576,6 +581,7 @@
                         }
                     })
                 },
+
                 // 查看门店
                 handleSizeChange(newSize) {
                     this.companyStoreParam.limit = newSize;
@@ -604,14 +610,38 @@
                     location.href = 'personifo.html?id=' + brokerId;
                 },
                 jumpover(value) {
-                    this.$alert('<div class="capital-tel">投诉电话:<img src="image/phone-s.png"><p>' + value + '<p></div>', {
-						dangerouslyUseHTMLString: true,
-						closeOnClickModal: true,
-						showConfirmButton: false,
-						showClose: false
-					}).then(() => {
-					}).catch(() => {
-					});
+                    var str = '';
+                    var _this=this;
+                    if (value.indexOf('庆') != -1) {
+                        var params = value.split('区', 2)[0];
+                        if (params.indexOf('市') != -1) {
+                            str = params.slice(3, params.length);
+                        } else {
+                            str = params.slice(2, params.length);
+                        }
+                    }
+                    easyName = pinyin.getCamelChars(str);
+                    $.ajax({
+                        type: 'GET',
+                        url: PATH + '/creditFileInformation/getComplaintPhone',
+                        data: {
+                            param: easyName.toLocaleLowerCase() + 'q'
+                        },
+                        success: function (json) {
+                            _this.$alert('<div class="capital-tel">投诉电话:<img src="image/phone-s.png"><p>' + json.data[0].dataValue + '<p></div>', {
+                                dangerouslyUseHTMLString: true,
+                                closeOnClickModal: true,
+                                showConfirmButton: false,
+                                showClose: false
+                            }).then(() => {
+                            }).catch(() => {
+                            });
+                        },
+                        error: function (err) {
+                            layer.msg('网络错误!');
+                        }
+                    })
+
                     // var that = this;
                     // if (sessionStorage.getItem("infoList")) {
                     //     var gettab = $(".crumbs_e>span:nth-child(3)").text();
@@ -648,7 +678,7 @@
                         type: 'GET',
                         url: PATH + '/front/getSearchCondition',
                         success: function (json) {
-                            console.log(json)
+                            // console.log(json)
                             if (json.result) {
                                 var area = json.data.area;
                                 // this.quOp = [];
@@ -760,11 +790,11 @@
             $('body').css('display', 'block')
         })
         $(".btn").click(function () {
-            var qy=''
-            if($(".all").text()=='全重庆'){
-                qy='';
-            }else {
-                qy=$(".all").text();
+            var qy = ''
+            if ($(".all").text() == '全重庆') {
+                qy = '';
+            } else {
+                qy = $(".all").text();
             }
             $.ajax({
                 type: 'GET',

File diff suppressed because it is too large
+ 26 - 0
src/main/resources/static/main/js/Convert_Pinyin.js


+ 28 - 2
src/main/resources/static/main/mobilepage/institutions.html

@@ -295,7 +295,8 @@
             </el-tab-pane>
         </el-tabs>
         <div class="examine">
-            <div><a :href="'tel:'+companyInfo.TEL">我要投诉</a></div>
+            
+            <div><a @click="complaint(companyInfo.REGORG_CN)" >我要投诉</a></div>
             <div><a @click="personnel">查看经纪人员</a></div>
             <div>
                 <a :href="'tel:'+companyInfo.TEL">
@@ -326,6 +327,7 @@
     <script src="/zfjyjgfwpt/main/js/sm2/sm2.js" type="text/javascript" charset="utf-8"></script>
     <script src="/zfjyjgfwpt/main/js/constants.js" type="text/javascript" charset="utf-8"></script>
     <script src="js/popup.js"></script>
+    <script src="js/Convert_Pinyin.js"></script>
     <script>
         $(window).on('load', function() {
             $('body').css('display', 'block')
@@ -494,7 +496,31 @@
                         }
                     }
                 },
-                jumpover() { //我要投诉
+                complaint(value) { //我要投诉
+                    var str = '';
+                    var _this=this;
+                    if (value.indexOf('庆') != -1) {
+                        var params = value.split('区', 2)[0];
+                        if (params.indexOf('市') != -1) {
+                            str = params.slice(3, params.length);
+                        } else {
+                            str = params.slice(2, params.length);
+                        }
+                    }
+                    easyName = pinyin.getCamelChars(str);
+                    $.ajax({
+                        type: 'GET',
+                        url: PATH + '/creditFileInformation/getComplaintPhone',
+                        data: {
+                            param: easyName.toLocaleLowerCase() + 'q'
+                        },
+                        success: function (json) {
+                            location.href='tel:'+json.data[0].dataValue
+                        },
+                        error: function (err) {
+                            layer.msg('网络错误!');
+                        }
+                    })
                     // var that = this;
                     // if (sessionStorage.getItem("infoList")) {
                     //     sessionStorage.setItem('complaintInfo', JSON.stringify({

File diff suppressed because it is too large
+ 26 - 0
src/main/resources/static/main/mobilepage/js/Convert_Pinyin.js


Some files were not shown because too many files changed in this diff