Procházet zdrojové kódy

房源验真报错

ljh před 2 roky
rodič
revize
8b62407270

+ 10 - 7
src/main/resources/static/main/CheckTrue.html

@@ -357,7 +357,7 @@
                 <div class="check-time">该房屋已通过房源核验,房屋信息如下:</div>
                 <div class="deil-msg">
                     <div class="deils">
-                          <p>
+                        <p>
                             <span>核验码:{{houseInfo.FYHYM}}</span>
                             <span>不动产权证编号:{{'无'}}</span>
                         </p>
@@ -441,7 +441,7 @@
                 'CZZHT': ''
             },
             loading: '',
-            checkThenTime:''
+            checkThenTime: ''
         },
         mounted() {
             this.jumpOver();
@@ -449,8 +449,11 @@
         created: function () {
             //给房源核验码输入框
             var data = sessionStorage.getItem("CheckTrue");
-            // var houseInfo = JSON.parse(data);
-            // this.param.FYHYM = houseInfo.FYHYM;
+            if (data) {
+                var houseInfo = JSON.parse(data);
+                this.param.FYHYM = houseInfo.FYHYM;
+            }
+
         },
         methods: {
             pushCx() {
@@ -477,9 +480,9 @@
                         console.log(json)
                         if (json.result && json.data && Object.keys(json.data.data).length > 0) {
                             _this.houseInfo = json.data.data.houseInfo;
-                            var checkTime =_this.houseInfo.FYHYM.slice(0,8)
-                            _this.checkThenTime=checkTime.substr(0,4) + '-' + checkTime.substr(4,2) + '-' + checkTime.substr(6,2)
-                            
+                            var checkTime = _this.houseInfo.FYHYM.slice(0, 8)
+                            _this.checkThenTime = checkTime.substr(0, 4) + '-' + checkTime.substr(4, 2) + '-' + checkTime.substr(6, 2)
+
                             _this.showMsg = true;
                             $(".foot").removeAttr("style")
                         } else {

+ 1 - 2
src/main/resources/static/main/js/houseSearch.js

@@ -264,7 +264,6 @@ const houSear = new Vue({
             this.getHouseInfoList();
         },
         houseSourceSearch() {
-            console.log("houseSourceSearch")
             var reg = /[^\w]/gi;
             var inputVal = document.querySelector("#inputfyhym").value;
             if (reg.test(inputVal)) {
@@ -486,7 +485,7 @@ const houSear = new Vue({
         renderHouseInfoList(data) {
             this.getcurrentPages()
             var html = "";
-            console.log(data)
+            // console.log(data)
             if (data.length > 0) {
                 if (this.getParam.FYLX == 0) {
                     for (var i = 0; i < data.length; i++) {