update:文本换行问题,图标尺寸调整

This commit is contained in:
2021-09-28 15:15:12 +08:00
parent 474b0b7406
commit ee94909883
5 changed files with 57 additions and 20 deletions

View File

@@ -54,8 +54,8 @@
<!-- window图标 --> <!-- window图标 -->
<div> <div>
<div class="projectIcon"> <div class="projectIcon">
<van-image <img
:src="require('@/assets/img/project.png')" src="@/assets/img/project.png"
style="width: 25px;height: 25px;" style="width: 25px;height: 25px;"
/> />
</div> </div>
@@ -293,7 +293,30 @@ export default {
}, },
prjList: [ prjList: [
{ {
name: "数据", name: "请求出错暂时没有可用数据",
currentState: "无数据",
area: "无数据",
zsbm: "无数据",
year: "无数据",
zsjdh: "无数据",
fhpgList: [
{
assessmentNo: "无数据",
houseAddress: "无数据",
countValue: "无数据"
}
],
bcxyList: [
{
xyNo: "无数据",
houseAddress: "无数据",
switchProductionWay: "无数据",
summationShouldCompensateMoney: "无数据"
}
]
},
{
name: "请求出错",
currentState: "无数据", currentState: "无数据",
area: "无数据", area: "无数据",
zsbm: "无数据", zsbm: "无数据",
@@ -403,7 +426,7 @@ export default {
pageJump(id) { pageJump(id) {
this.$router.push({ this.$router.push({
name: "policyInfo", name: "policyInfo",
params: { ticket: window.sessionStorage.getItem("ticket"), id: id } params: { id }
}); });
}, },
setZwUserAplus(Userid, userName) { setZwUserAplus(Userid, userName) {
@@ -581,6 +604,7 @@ export default {
span { span {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis;
} }
} }
@@ -588,7 +612,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 50px; padding: 0 8px;
height: 100%; height: 100%;
margin-right: 10px; margin-right: 10px;
border-radius: 5px 0 0; border-radius: 5px 0 0;
@@ -601,9 +625,6 @@ export default {
font-family: PingFangSC-Semibold, PingFang SC; font-family: PingFangSC-Semibold, PingFang SC;
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
line-height: 20px;
height: 20px;
vertical-align: middle;
color: #fff; color: #fff;
} }

View File

@@ -1,7 +1,7 @@
<template> <template>
<div class="container"> <div class="container">
<div class="title">{{ info.title }}</div> <div class="title">{{ info.title }}</div>
<div class="date">{{ info.publicTime }}</div> <div class="date">{{ modifyDate(info.publicTime) }}</div>
<hr /> <hr />
<div class="content"></div> <div class="content"></div>
<div class="bottomContent"> <div class="bottomContent">
@@ -24,18 +24,22 @@ export default {
methods: { methods: {
// 获取数据 // 获取数据
getData() { getData() {
if (this.$route.params.id) {
window.sessionStorage.setItem("zszcId", this.$route.params.id);
}
mgop({ mgop({
api: "mgop.kykj.houseexpropriat.getpoliciesinfo", api: "mgop.kykj.houseexpropriat.getpoliciesinfo",
host: "https://mapi.zjzwfw.gov.cn/", host: "https://mapi.zjzwfw.gov.cn/",
dataType: "JSON", dataType: "JSON",
type: "POST", type: "POST",
data: { data: {
ticket: this.$route.params.ticket, ticket: window.sessionStorage.getItem("ticket"),
id: this.$route.params.id id: window.sessionStorage.getItem("zszcId")
}, },
appKey: "es4b8zmz+2001833218+dehllx", appKey: "es4b8zmz+2001833218+dehllx",
onSuccess: data => { onSuccess: data => {
const { data: res } = data; const { data: res } = data;
console.log("res.data", res.data);
this.info = res.data; this.info = res.data;
let content = document.querySelector(".content"); let content = document.querySelector(".content");
content.innerHTML = res.data.contents; content.innerHTML = res.data.contents;
@@ -44,6 +48,9 @@ export default {
console.log("错误信息", err); console.log("错误信息", err);
} }
}); });
},
modifyDate(date) {
return (date + "").substr(0, 10);
} }
} }
}; };

View File

@@ -70,7 +70,7 @@ export default {
xyNo: "无数据", xyNo: "无数据",
switchProductionWay: "无数据", switchProductionWay: "无数据",
countValue: "无数据", countValue: "无数据",
signTime: "无数据" signTime: "2021-9-28 10:07:24 aaaaaaaaaaa"
} }
], ],
fhpgList: [{ countValue: "无数据", assessmentNo: "无数据" }] fhpgList: [{ countValue: "无数据", assessmentNo: "无数据" }]
@@ -165,6 +165,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
overflow: hidden;
> div { > div {
height: 100%; height: 100%;
} }
@@ -175,8 +176,10 @@ export default {
} }
.backgroundColor { .backgroundColor {
background-color: #e3ebfd; background-color: #e3ebfd;
overflow: hidden;
span { span {
padding-right: 10px; padding-right: 10px;
white-space: nowrap;
} }
} }
} }

View File

@@ -76,7 +76,7 @@ export default {
return { return {
loading: true, loading: true,
info: { info: {
houseAddress: "地址", houseAddress: "宁波市档案管理和数据中心百丈东路口",
valuationMethodText: "价值录入", valuationMethodText: "价值录入",
assessmentNo: "无数据", assessmentNo: "无数据",
number: "0001", number: "0001",
@@ -133,7 +133,11 @@ export default {
const { data: res } = data.data; const { data: res } = data.data;
this.info = res; this.info = res;
} else { } else {
return; this.loading = false;
this.$notify({
message: "请求出错",
duration: 3000
});
} }
}, },
onFail: err => { onFail: err => {
@@ -164,7 +168,6 @@ export default {
.top { .top {
background-color: #eff2fa; background-color: #eff2fa;
padding: 10px 26px 10px 16px; padding: 10px 26px 10px 16px;
// height: 500px;
.evaluateNumber { .evaluateNumber {
> span { > span {
color: #3da4fc; color: #3da4fc;
@@ -176,11 +179,15 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
> span {
max-width: 50%;
}
> div { > div {
display: flex; display: flex;
align-items: center; align-items: center;
height: 100%; height: 100%;
width: 50%; width: 50%;
img { img {
height: 100%; height: 100%;
margin-right: 10px; margin-right: 10px;

View File

@@ -66,7 +66,7 @@
@click="pageJump()" @click="pageJump()"
> >
<div v-if="item.type == '2'"> <div v-if="item.type == '2'">
<el-card body-style="padding:10px"> <el-card body-style="padding:4px">
<div class="absolute" style="background-color:#268FF2"> <div class="absolute" style="background-color:#268FF2">
<span>商业</span> <span>商业</span>
</div> </div>
@@ -115,7 +115,6 @@
<script> <script>
import { SetProjectId } from "@/common/util/tools"; import { SetProjectId } from "@/common/util/tools";
import $ from "jquery"; import $ from "jquery";
import { mgop } from "@aligov/jssdk-mgop";
export default { export default {
data() { data() {
return { return {
@@ -125,9 +124,9 @@ export default {
fhpgList: [ fhpgList: [
{ {
assessmentNo: "无数据", assessmentNo: "无数据",
houseAddress: "无数据", houseAddress: "宁波市档案管理和数据中心百丈东路口",
countValue: "无数据", countValue: "无数据",
type: "2", type: "1",
createUserName: "无数据", createUserName: "无数据",
createTime: "无数据" createTime: "无数据"
} }
@@ -215,7 +214,6 @@ export default {
.el-card__body { .el-card__body {
> div { > div {
margin: 14px 0; margin: 14px 0;
// line-height: 20px;
display: flex; display: flex;
align-items: center; align-items: center;
img { img {
@@ -224,6 +222,7 @@ export default {
} }
b { b {
font-size: 14px; font-size: 14px;
max-width: 50%;
} }
} }
.absolute { .absolute {