update:bug更新

This commit is contained in:
2021-10-15 16:12:01 +08:00
parent e74505e322
commit 31acca95b5
13 changed files with 71 additions and 45 deletions

View File

@@ -19,17 +19,18 @@ export default {
endValue: ""
};
},
created() {},
mounted() {
document.body.ontouchstart = function(e) {
document.body.ontouchstart = e => {
this.startValue = e.changedTouches[0].pageY;
};
document.body.ontouchend = function(e) {
document.body.ontouchend = e => {
this.endValue = e.changedTouches[0].pageY;
if (
this.endValue - this.startValue > 50 &&
e.changedTouches[0].pageY === e.changedTouches[0].clientY
) {
window.location.reload();
this.$children[0].onInit();
}
};
},

View File

@@ -53,6 +53,8 @@ Vue.use(Divider);
Vue.config.productionTip = false;
import md5 from "js-md5";
Vue.prototype.$md5 = md5;
Vue.prototype.$bus = new Vue();
/* eslint-disable no-new */
const vm = new Vue({
el: "#app",

View File

@@ -3,6 +3,7 @@ import $ from "jquery";
export const changeStyle = function() {
$(".bottomContent").addClass("old_bottomContent");
$("#app").addClass("old_app");
$("#app").removeClass("old_app2");
};
export const changeBottomStyle = function() {

View File

@@ -14,9 +14,7 @@ const router = new Router({
},
{
path: "/",
name: "index",
component: () =>
import ("../views")
redirect: "/index"
},
// 选择项目页面
{

View File

@@ -11,7 +11,8 @@ const store = new Vuex.Store({
// 评估详情页面类型
type: "",
//分户评估id
id: ""
id: "",
isConfirmReload: false
},
mutations: {
getData: (state, data) => {
@@ -27,6 +28,9 @@ const store = new Vuex.Store({
// 设置分户评估id
setFhpgId: (state, id) => {
state.id = id;
},
aa: (state, data) => {
state.isConfirmReload = data;
}
},
actions: {
@@ -45,6 +49,9 @@ const store = new Vuex.Store({
// 设置分户评估id
SET_FHPGID: ({ commit }, id) => {
commit("setFhpgId", id);
},
AA: ({ commit }, val) => {
commit("aa", val);
}
}
});

View File

@@ -5,7 +5,10 @@
<div class="titleBox">
被征收人信息查询
</div>
<div @click="toOlderMode()" class="mode">进入老年模式</div>
<div v-if="mode == false" @click="toOlderMode()" class="mode">
进入老年模式
</div>
<div v-else @click="toOlderMode()" class="mode">退出老年模式</div>
</div>
<div class="baseInfo">
<img src="@/assets/img/renyuanliebiao.png" />
@@ -164,7 +167,7 @@
</div>
<div class=" protocolBox">
<div
:key="item.id"
:key="i"
@click="pageJump(item.id)"
class="protocolList"
v-for="(item, i) in data.policiesRegulationsLists.list"
@@ -203,13 +206,18 @@ export default {
name: "home",
data() {
return {
mode: false,
data: {
idCard: "加载中...",
userName: "加载中...",
policiesRegulationsLists: {
totalCount: 0,
list: [
{ title: "无数据", publicTime: "无数据", area: "无数据" },
{
title: "宁波市房屋建设和建筑管理局办公室",
publicTime: "无数据",
area: "无数据"
},
{ title: "无数据", publicTime: "无数据", area: "无数据" },
{ title: "无数据", publicTime: "无数据", area: "无数据" }
]
@@ -278,12 +286,12 @@ export default {
},
created() {
this.onInit();
console.log("this", this);
this.setLocationAplus();
SetTicket(this.$route.query.ticket);
$(".logout").css("display", "none");
if (sessionStorage.getItem("mode") == "older") {
changeStyle();
this.mode = true;
}
},
mounted() {
@@ -305,7 +313,6 @@ export default {
appKey: "es4b8zmz+2001833218+dehllx",
onSuccess: data => {
console.log("首页数据", data);
window.sessionStorage.setItem("homeData", JSON.stringify(data));
if (data.data.success) {
this.data = data.data.data;
@@ -349,14 +356,14 @@ export default {
toOlderMode() {
if (sessionStorage.getItem("mode") == "older") {
sessionStorage.setItem("mode", "normal");
$(".mode").text("进入老年模式");
this.mode = false;
$(".container").removeClass("old_container");
$(".bottomContent").removeClass("old_bottomContent");
$("#app").removeClass("old_app");
} else {
sessionStorage.setItem("mode", "older");
this.mode = true;
changeStyle();
$(".mode").text("退出老年模式");
$(".container").addClass("old_container");
}
},
@@ -606,9 +613,6 @@ export default {
display: flex;
align-items: center;
height: 27px;
opacity: 0.82;
// background: #24bca3;
> div {
background: #24bca3;
height: 27px;
@@ -653,21 +657,18 @@ export default {
align-items: center;
img {
height: 22px;
padding: 0 10px;
padding: 0 7px;
}
:nth-child(2) {
font-weight: 400;
color: #b3b5b9;
width: 106px;
}
}
> :last-child {
color: #363a44;
width: 55%;
}
.blue {
color: #3883f1;
}
@@ -692,7 +693,7 @@ export default {
}
}
.assessCenter1 {
margin: 25px 22px 22px;
margin: 25px 16px 22px;
border-left: 2px solid #24bca3;
font-weight: 400;
> div {
@@ -705,8 +706,6 @@ export default {
color: #b3b5b9;
}
:nth-child(2) {
overflow: hidden;
text-overflow: ellipsis;
color: #363a44;
}
}
@@ -732,7 +731,7 @@ export default {
}
}
.assessCenter2 {
margin: 25px 22px 22px;
margin: 25px 16px 22px;
border-left: 2px solid #ff5959;
font-weight: 400;
> div {
@@ -745,8 +744,6 @@ export default {
color: #b3b5b9;
}
:nth-child(2) {
overflow: hidden;
text-overflow: ellipsis;
color: #363a44;
}
}
@@ -784,7 +781,7 @@ export default {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
width: 294px;
// width: 294px;
font-family: PingFangSC-Regular, PingFang SC;
color: #202020;
padding-top: 20px;
@@ -907,16 +904,21 @@ export default {
> div {
> :nth-child(1) {
font-size: 20px !important;
padding-top: 15px !important;
white-space: unset !important;
}
> :nth-child(2) {
display: block !important;
padding-top: 10px !important;
padding: 15px 0 5px !important;
span {
font-size: 18px !important;
display: block;
height: unset !important;
line-height: 25px !important;
}
> span:nth-child(2) {
padding-top: 5px;
}
}
}
}

View File

@@ -35,6 +35,8 @@ export default {
created() {
if (sessionStorage.getItem("mode") == "older") {
projectSelectChangeStyle();
} else {
$(".logout").css("display", "none");
}
this.onInit();
},
@@ -66,16 +68,9 @@ export default {
"https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs"
);
}, 3000);
} else if (result.data.message == "未上传附件") {
this.$message({
message: "无附件",
duration: 3000,
type: "info",
center: true
});
} else {
this.$message({
message: "请求出错",
message: result.data.message,
duration: 3000,
type: "error",
center: true

View File

@@ -36,6 +36,8 @@ export default {
created() {
if (sessionStorage.getItem("mode") == "older") {
projectSelectChangeStyle();
} else {
$(".logout").css("display", "none");
}
this.onInit();
},

View File

@@ -20,11 +20,17 @@ export default {
};
},
created() {
projectSelectChangeStyle();
if (sessionStorage.getItem("mode") == "older") {
projectSelectChangeStyle();
} else {
$(".logout").css("display", "none");
}
this.onInit();
},
mounted() {
$(".container").addClass("old_container");
if (sessionStorage.getItem("mode") == "older") {
$(".container").addClass("old_container");
}
},
methods: {
// 获取数据

View File

@@ -93,6 +93,8 @@ export default {
created() {
if (sessionStorage.getItem("mode") == "older") {
projectSelectChangeStyle();
} else {
$(".logout").css("display", "none");
}
this.onInit();
},
@@ -104,6 +106,7 @@ export default {
methods: {
// 获取数据
onInit() {
console.log("项目");
this.type =
this.$route.params.type || window.sessionStorage.getItem("type");
if (this.$route.params.type) {
@@ -258,7 +261,6 @@ export default {
}
.proListBox {
height: 127px;
margin: 15px 20px;
border-radius: 3px;
background-color: #fff;
@@ -323,6 +325,10 @@ export default {
.proTitleBox {
font-size: 22px !important;
}
.proTitleBox {
height: unset !important;
line-height: unset;
}
.proAreaBox {
> :nth-child(2) {
font-size: 18px !important;

View File

@@ -81,6 +81,8 @@ export default {
created() {
if (sessionStorage.getItem("mode") == "older") {
projectSelectChangeStyle();
} else {
$(".logout").css("display", "none");
}
this.onInit();
},
@@ -104,7 +106,7 @@ export default {
this.prjListLength = prjList.bcxyList.length;
} else {
let code = [6001, 6501];
if (code.indexOf(result.data.bizCode) != "-1") {
if (code.indexOf(data.data.bizCode) != "-1") {
this.$message({
message: "登录超时,请重新登录",
duration: 3000,

View File

@@ -88,6 +88,8 @@ export default {
created() {
if (sessionStorage.getItem("mode") == "older") {
projectSelectChangeStyle();
} else {
$(".logout").css("display", "none");
}
this.onInit();
},
@@ -117,14 +119,13 @@ export default {
onSuccess: data => {
console.log("分户评估", data);
this.isLoading = false;
window.sessionStorage.setItem("evaluateData", JSON.stringify(data));
if (data.data.success) {
const { data: res } = data.data;
this.info = res;
} else {
let code = [6001, 6501];
if (code.indexOf(result.data.bizCode) != "-1") {
if (code.indexOf(data.data.bizCode) != "-1") {
this.$message({
message: "登录超时,请重新登录",
duration: 3000,

View File

@@ -62,7 +62,7 @@
<span><b>非住宅</b></span>
</div>
<div
:key="item.assessmentNo"
:key="item.id"
v-for="item in info.prjList.fhpgList"
@click="pageJump(item.id, item.type)"
>
@@ -146,6 +146,8 @@ export default {
created() {
if (sessionStorage.getItem("mode") == "older") {
projectSelectChangeStyle();
} else {
$(".logout").css("display", "none");
}
this.onInit();
},
@@ -170,7 +172,7 @@ export default {
this.prjListLength = prjList.fhpgList.length;
} else {
let code = [6001, 6501];
if (code.indexOf(result.data.bizCode) != "-1") {
if (code.indexOf(data.data.bizCode) != "-1") {
this.$message({
message: "登录超时,请重新登录",
duration: 3000,
@@ -303,6 +305,7 @@ export default {
}
}
.old_container {
font-size: 18px;
.el-card__body {
> div {
font-size: 18px !important;