|
@@ -231,7 +231,7 @@
|
|
|
</div>
|
|
|
<div class="pass-buts ">
|
|
|
<ul class="buts-list ">
|
|
|
- <li class="but-item "><a @click="complaint(companyInfo.LXDH)">我要投诉</a></li>
|
|
|
+ <li class="but-item "><a id="complaint">我要投诉</a></li>
|
|
|
<li class="but-item "><a id="assess">我要评价</a></li>
|
|
|
</ul>
|
|
|
</div>
|
|
@@ -381,66 +381,65 @@
|
|
|
url: PATH + '/front/getBrokerInfo',
|
|
|
data: { brokerId: brokerId },
|
|
|
success: function (json) {
|
|
|
- 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)
|
|
|
},
|
|
@@ -451,16 +450,6 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- 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(() => {
|
|
|
- });
|
|
|
- }
|
|
|
}
|
|
|
})
|
|
|
var data = ["万州", "黔江", "涪陵", "渝中", "大渡口", "江北", "沙坪坝", "九龙坡", "南岸", "北碚", "渝北", "巴南", "长寿", "江津", "合川", "永川", "南川",
|