Browse Source

Merge branch 'master' of http://116.63.33.55/git/zfjyjgfwpt

sunjuan 2 years ago
parent
commit
11f325710d

+ 62 - 33
src/main/resources/static/main/basicinfo.html

@@ -165,6 +165,29 @@
             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>p{
+            padding-left: 10px;
+        }
+        .el-message-box,
+        .el-message-box__btns,
+        .el-message-box__header,
+        .el-message-box__content{
+            padding: 0;
+            width: 420px;
+			background-color: transparent;
+			border: 0px;
+			-webkit-box-shadow: none;
+			box-shadow: none;
+        }
     </style>
 </head>
 
@@ -304,7 +327,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">我要投诉</li>
+                <li class="but-item" @click="jumpover(companyInfo.TEL)">我要投诉</li>
             </ul>
         </div>
         <div class="cyda-info_m jypjmx">
@@ -498,9 +521,7 @@
             },
             methods: {
                 checkArea(value) {
-                    // console.log(value)
                     this.companyStoreParam.area = value[1]
-                    // console.log(this.companyStoreParam)
                     this.getCompanyStoreInfoList();
                 },
                 getCompanyStoreInfoList() {
@@ -582,36 +603,44 @@
                 goBrokerPage(brokerId) {
                     location.href = 'personifo.html?id=' + brokerId;
                 },
-                jumpover() {
-                    var that = this;
-                    if (sessionStorage.getItem("infoList")) {
-                        var gettab = $(".crumbs_e>span:nth-child(3)").text();
-                        console.log(gettab);
-                        sessionStorage.setItem('complaintInfo', JSON.stringify({
-                            id: that.companyInfo.UNISCID,
-                            name: that.companyInfo.ENTNAME,
-                            companyId: that.companyInfo.UNISCID,
-                            type: 0,
-                        }))
-                        location.href = '/zfjyjgfwpt/main/complaint.html';
-                    } else {
-                        $(".mask").fadeIn()
-                        $(".contentLogin").css({
-                            "display": "block",
-                            "z-index": "999"
-                        });
-                        $(".index_serch").css({
-                            "z-index": "1"
-                        });
-                        $('.login-active').css({
-                            "display": "none"
-                        });
-                        $("body").css({
-                            "overflow": "hidden",
-                        });
-                        $('.role').hide()
-                        $("body,html").animate({ scrollTop: 0 })
-                    }
+                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 that = this;
+                    // if (sessionStorage.getItem("infoList")) {
+                    //     var gettab = $(".crumbs_e>span:nth-child(3)").text();
+                    //     console.log(gettab);
+                    //     sessionStorage.setItem('complaintInfo', JSON.stringify({
+                    //         id: that.companyInfo.UNISCID,
+                    //         name: that.companyInfo.ENTNAME,
+                    //         companyId: that.companyInfo.UNISCID,
+                    //         type: 0,
+                    //     }))
+                    //     location.href = '/zfjyjgfwpt/main/complaint.html';
+                    // } else {
+                    //     $(".mask").fadeIn()
+                    //     $(".contentLogin").css({
+                    //         "display": "block",
+                    //         "z-index": "999"
+                    //     });
+                    //     $(".index_serch").css({
+                    //         "z-index": "1"
+                    //     });
+                    //     $('.login-active').css({
+                    //         "display": "none"
+                    //     });
+                    //     $("body").css({
+                    //         "overflow": "hidden",
+                    //     });
+                    //     $('.role').hide()
+                    //     $("body,html").animate({ scrollTop: 0 })
+                    // }
                 },
                 getCondition() {
                     var _this = this;

+ 93 - 57
src/main/resources/static/main/personifo.html

@@ -77,6 +77,32 @@
 			width: 122px;
 			display: inline-block;
 		}
+
+		.capital-tel {
+			height: 90px;
+			background: #0060C3;
+			display: flex;
+			font-size: 25px;
+			color: #fff;
+			justify-content: center;
+			align-items: center;
+		}
+
+		.capital-tel>p {
+			padding-left: 10px;
+		}
+
+		.el-message-box,
+		.el-message-box__btns,
+		.el-message-box__header,
+		.el-message-box__content {
+			padding: 0;
+			width: 420px;
+			background-color: transparent;
+			border: 0px;
+			-webkit-box-shadow: none;
+			box-shadow: none;
+		}
 	</style>
 </head>
 
@@ -205,7 +231,7 @@
 		</div>
 		<div class="pass-buts ">
 			<ul class="buts-list ">
-				<li class="but-item "><a id="complaint">我要投诉</a></li>
+				<li class="but-item "><a @click="complaint(companyInfo.LXDH)">我要投诉</a></li>
 				<li class="but-item "><a id="assess">我要评价</a></li>
 			</ul>
 		</div>
@@ -358,63 +384,63 @@
 							console.log(json)
 							_this.companyInfo = json.data
 
-							$("#complaint").click(function () {
-								if (sessionStorage.getItem("infoList")) {
-									let complainturl = window.location.href;
-									var gettab = $(".crumbs_e>span:nth-child(3)").text();
-									sessionStorage.setItem('complaintInfo', JSON.stringify({
-										id: _this.companyInfo.CYRYBH,
-										name: _this.companyInfo.GRQCH,
-										companyId: _this.companyInfo.TYSHXYDM,
-										type: 1,
-									}))
-									location.href = '/zfjyjgfwpt/main/complaint.html';
-								} else {
-									$(".mask").fadeIn()
-									$(".contentLogin").css({
-										"display": "block",
-										"z-index": "999"
-									});
-									$(".index_serch").css({
-										"z-index": "1"
-									});
-									$('.login-active').css({
-										"display": "none"
-									});
-									$("body").css({
-										"overflow": "hidden",
-									});
-									$('.role').hide()
-									$("body,html").animate({ scrollTop: 0 })
-								}
-							})
+							// $("#complaint").click(function () {
+							// 	if (sessionStorage.getItem("infoList")) {
+							// 		let complainturl = window.location.href;
+							// 		var gettab = $(".crumbs_e>span:nth-child(3)").text();
+							// 		sessionStorage.setItem('complaintInfo', JSON.stringify({
+							// 			id: _this.companyInfo.CYRYBH,
+							// 			name: _this.companyInfo.GRQCH,
+							// 			companyId: _this.companyInfo.TYSHXYDM,
+							// 			type: 1,
+							// 		}))
+							// 		location.href = '/zfjyjgfwpt/main/complaint.html';
+							// 	} else {
+							// 		$(".mask").fadeIn()
+							// 		$(".contentLogin").css({
+							// 			"display": "block",
+							// 			"z-index": "999"
+							// 		});
+							// 		$(".index_serch").css({
+							// 			"z-index": "1"
+							// 		});
+							// 		$('.login-active').css({
+							// 			"display": "none"
+							// 		});
+							// 		$("body").css({
+							// 			"overflow": "hidden",
+							// 		});
+							// 		$('.role').hide()
+							// 		$("body,html").animate({ scrollTop: 0 })
+							// 	}
+							// })
 							$("#assess").click(function () {
-								if (sessionStorage.getItem("infoList")) {
-									let assessurl = window.location.href;
-									sessionStorage.setItem('assessInfo', JSON.stringify({
-										id: _this.companyInfo.CYRYBH,
-										name: _this.companyInfo.GRQCH
-									}))
-									location.href = '/zfjyjgfwpt/main/assess.html';
-									console.log()
-								} else {
-									$(".mask").fadeIn()
-									$(".contentLogin").css({
-										"display": "block",
-										"z-index": "999"
-									});
-									$(".index_serch").css({
-										"z-index": "1"
-									});
-									$('.login-active').css({
-										"display": "none"
-									});
-									$("body").css({
-										"overflow": "hidden",
-									});
-									$('.role').hide()
-									$("body,html").animate({ scrollTop: 0 })	
-								}
+							if (sessionStorage.getItem("infoList")) {
+								let assessurl = window.location.href;
+								sessionStorage.setItem('assessInfo', JSON.stringify({
+									id: _this.companyInfo.CYRYBH,
+									name: _this.companyInfo.GRQCH
+								}))
+								location.href = '/zfjyjgfwpt/main/assess.html';
+								console.log()
+							} else {
+								$(".mask").fadeIn()
+								$(".contentLogin").css({
+									"display": "block",
+									"z-index": "999"
+								});
+								$(".index_serch").css({
+									"z-index": "1"
+								});
+								$('.login-active').css({
+									"display": "none"
+								});
+								$("body").css({
+									"overflow": "hidden",
+								});
+								$('.role').hide()
+								$("body,html").animate({ scrollTop: 0 })	
+							}
 							})
 							layer.close(_this.loading)
 						},
@@ -424,6 +450,16 @@
 
 						}
 					})
+				},
+				complaint(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(() => {
+					});
 				}
 			}
 		})