liuminjian преди 3 години
родител
ревизия
0dad7e681b
променени са 2 файла, в които са добавени 19 реда и са изтрити 16 реда
  1. +11
    -11
      src/utils/request.js
  2. +8
    -5
      src/views/homestead/index.vue

+ 11
- 11
src/utils/request.js Целия файл

@@ -63,17 +63,17 @@ service.interceptors.response.use(res => {
if (code === 401) {
console.log(this.$route.path)

// Dialog.confirm({
// title: '系统提示',
// message: '登录状态已过期,您可以继续留在该页面,或者重新登录',
// confirmButtonText: '重新登录',
// cancelButtonText: '取消'
// })
// .then(() => {
// store.dispatch('LogOut').then(() => {
// location.href = '/index';
// })
// })
Dialog.confirm({
title: '系统提示',
message: '登录状态已过期,您可以继续留在该页面,或者重新登录',
confirmButtonText: '重新登录',
cancelButtonText: '取消'
})
.then(() => {
store.dispatch('LogOut').then(() => {
location.href = '/index';
})
})
} else if (code === 500) {
Dialog.alert({ type: 'warning', message: msg });
return Promise.reject(new Error(msg))


+ 8
- 5
src/views/homestead/index.vue Целия файл

@@ -16,8 +16,7 @@
<div
class="selectionIcon_wrap"
:style="{
opacity:
hcBottonHouseArr.length != 0 || hcBottonLandArr.length != 0 ? 1 : 0,
opacity: ishcBotton == true ? 1 : 0,
}"
@click="selectionPush"
>
@@ -624,7 +623,8 @@ export default {
orderVillageOptions: [],
//村选择框高度
villageOptionsHeight: 0,

// 待租列表显示
ishcBotton: false,
// 待租列表 类型 0 农房 1 农地
statusList: 0,
//待租列表 房
@@ -723,13 +723,13 @@ export default {
});
this.hcBottonHouseArr = houseArr;
this.hcBottonLandArr = landArr;
console.log(houseArr);
console.log(landArr);
this.ishcBotton = true;
});
} else {
this.hcBottonHouseArr = [];
//待租列表 地
this.hcBottonLandArr = [];
this.ishcBotton = false;
}
// console.log();
},
@@ -802,6 +802,9 @@ export default {

/*右侧列表 --展开收缩*/
selectionPush() {
if (this.ishcBotton == false) {
return false;
}
$(".homesteadList_wrap").animate(
{
right: "0",


Зареждане…
Отказ
Запис