|
@@ -77,6 +77,32 @@
|
|
width: 122px;
|
|
width: 122px;
|
|
display: inline-block;
|
|
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>
|
|
</style>
|
|
</head>
|
|
</head>
|
|
|
|
|
|
@@ -205,7 +231,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="pass-buts ">
|
|
<div class="pass-buts ">
|
|
<ul class="buts-list ">
|
|
<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>
|
|
<li class="but-item "><a id="assess">我要评价</a></li>
|
|
</ul>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
@@ -358,63 +384,63 @@
|
|
console.log(json)
|
|
console.log(json)
|
|
_this.companyInfo = json.data
|
|
_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 () {
|
|
$("#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)
|
|
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(() => {
|
|
|
|
+ });
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|