| }, | }, | ||||
| // 获取列表数据 | // 获取列表数据 | ||||
| getListData() { | getListData() { | ||||
| console.log(this.$cloneDeep(this.queryParams), "this.queryParams"); | |||||
| if (this.cutTab == "parkServices") { | if (this.cutTab == "parkServices") { | ||||
| this.getListApi( | this.getListApi( | ||||
| getParkServiceProduct, | getParkServiceProduct, | ||||
| // console.log(this.$cloneDeep(data),key) | // console.log(this.$cloneDeep(data),key) | ||||
| this[key] = data.list; | this[key] = data.list; | ||||
| this.queryParams.total = data.total; | this.queryParams.total = data.total; | ||||
| console.log(data.total, "res.total"); | |||||
| } else if (res.data.status === 102) { | } else if (res.data.status === 102) { | ||||
| this.$router.push("/login"); | this.$router.push("/login"); | ||||
| } else { | } else { |
| <div class="main-des"> | <div class="main-des"> | ||||
| <span class="first">最短起租:{{ item.shortestRent }}</span>| | <span class="first">最短起租:{{ item.shortestRent }}</span>| | ||||
| <span>总面积:{{ item.housingInformationList[0].housingArea }}m²</span>| | <span>总面积:{{ item.housingInformationList[0].housingArea }}m²</span>| | ||||
| <span>支付方式:{{ item.payment.housingArea }}</span>| | |||||
| <span>支付方式:{{ item.payment }}</span>| | |||||
| <span>{{ item.type }}</span> | <span>{{ item.type }}</span> | ||||
| </div> | </div> | ||||
| <div class="main-advantageList" :title="item.advantageList.join('、')"> | <div class="main-advantageList" :title="item.advantageList.join('、')"> |
| }, | }, | ||||
| { | { | ||||
| prop: "housingArea", | prop: "housingArea", | ||||
| label: "房源面积", | |||||
| label: "房源面积㎡", | |||||
| }, | }, | ||||
| { | { | ||||
| prop: "maxCapacity", | prop: "maxCapacity", |
| this.loginMethodChange(1); | this.loginMethodChange(1); | ||||
| } else { | } else { | ||||
| sendMsg(0, data.msg); | sendMsg(0, data.msg); | ||||
| this.getVerificationCode(); | |||||
| } | } | ||||
| this.loginLoading = false; | this.loginLoading = false; | ||||
| }) | }) | ||||
| .catch((err) => { | .catch((err) => { | ||||
| sendMsg(0, "修改失败"); | sendMsg(0, "修改失败"); | ||||
| this.getVerificationCode(); | |||||
| console.log(err); | console.log(err); | ||||
| this.loginLoading = false; | this.loginLoading = false; | ||||
| }); | }); | ||||
| this.loginSuccessFn(); | this.loginSuccessFn(); | ||||
| } else { | } else { | ||||
| sendMsg(0, data.msg); | sendMsg(0, data.msg); | ||||
| this.getVerificationCode(); | |||||
| } | } | ||||
| this.loginLoading = false; | this.loginLoading = false; | ||||
| }) | }) | ||||
| .catch((err) => { | .catch((err) => { | ||||
| sendMsg(0, "登录失败"); | sendMsg(0, "登录失败"); | ||||
| this.getVerificationCode(); | |||||
| console.log(err); | console.log(err); | ||||
| this.loginLoading = false; | this.loginLoading = false; | ||||
| }); | }); | ||||
| this.loginSuccessFn(); | this.loginSuccessFn(); | ||||
| } else { | } else { | ||||
| sendMsg(0, data.msg); | sendMsg(0, data.msg); | ||||
| this.getVerificationCode(); | |||||
| } | } | ||||
| this.loginLoading = false; | this.loginLoading = false; | ||||
| }) | }) | ||||
| .catch((err) => { | .catch((err) => { | ||||
| sendMsg(0, "注册失败"); | sendMsg(0, "注册失败"); | ||||
| console.log(err); | console.log(err); | ||||
| this.getVerificationCode(); | |||||
| this.loginLoading = false; | this.loginLoading = false; | ||||
| }); | }); | ||||
| }, | }, |
| let { resultData } = data; | let { resultData } = data; | ||||
| this.myMsgList = resultData.list; | this.myMsgList = resultData.list; | ||||
| this.notRead = resultData.total - data.readCount; | this.notRead = resultData.total - data.readCount; | ||||
| this.notRead = this.notRead < 0 ? 0 : this.notRead; | |||||
| }else if(res.data.status == 102){ | }else if(res.data.status == 102){ | ||||
| this.$router.push('/login') | this.$router.push('/login') | ||||
| }else { | }else { |
| ); | ); | ||||
| this.queryParams.total = resultData.total; | this.queryParams.total = resultData.total; | ||||
| this.notRead = resultData.total - data.readCount; | this.notRead = resultData.total - data.readCount; | ||||
| this.notRead = this.notRead < 0 ? 0 : this.notRead; | |||||
| } else if (res.data.status == 102) { | } else if (res.data.status == 102) { | ||||
| this.$router.push("/login"); | this.$router.push("/login"); | ||||
| } else { | } else { |