BUG 27621

This commit is contained in:
aixianling
2022-02-23 15:16:23 +08:00
parent 92ffbc1231
commit 8ab0d46eaf
46 changed files with 1057 additions and 1000 deletions

View File

@@ -40,6 +40,7 @@ import {mapState} from 'vuex'
export default {
name: "add",
appName:"活动报名",
computed: {
...mapState(['user'])
},

View File

@@ -26,6 +26,7 @@ import {mapState} from 'vuex'
export default {
name: "addContent",
appName: "填写活动日志",
computed: {
...mapState(['user'])
},

View File

@@ -25,6 +25,7 @@ import {mapState} from 'vuex'
export default {
name: 'logDetail',
appName:"活动日志",
computed: {
...mapState(['user']),
},

View File

@@ -17,6 +17,7 @@
export default {
name: "userList",
appName: "活动报名情况",
data() {
return {
id: '',

View File

@@ -74,6 +74,7 @@
export default {
name: "agAdd",
appName:"发布晒农产品",
data() {
return {
show: false,

View File

@@ -34,6 +34,7 @@
<script>
export default {
name: "agDetail",
appName: "农产品详情",
data() {
return {
id: null,

View File

@@ -87,7 +87,7 @@ export default {
params: {names: this.names}
}).then(res => {
if (res?.data) {
this.categorys = res.data[0]["categoryList"];
this.categorys = res.data?.[0]?.categoryList || [];
this.search.moduleId = res.data?.[0]?.id;
this.search.categoryId = res.data?.[0]?.categoryList?.[0]?.id;
this.getCategoryList();

View File

@@ -8,6 +8,7 @@
export default {
name: "contentDetail",
appName:"内容详情",
data() {
return {
detail: {title: "内容详情"},
@@ -37,7 +38,7 @@ export default {
onShareAppMessage() {
return {
title: detail.title,
title: this.detail.title,
path: '/mods/AppContent/contentDetail?id=' + this.id
};
}

View File

@@ -19,6 +19,7 @@ import {mapState} from "vuex";
export default {
name: "contentManager",
appName: "搜索结果",
computed: {
...mapState(['user']),
loadmore() {

View File

@@ -9,6 +9,7 @@
<script>
export default {
appName:"提交",
data() {
return {
type: '0'

View File

@@ -41,6 +41,7 @@
<script>
export default {
appName: "结算",
data() {
return {
total: 0,

View File

@@ -60,7 +60,7 @@ import {mapState} from 'vuex'
export default {
name: 'supermarket',
appName: "信用好超市",
data() {
return {
numList: [],

View File

@@ -35,6 +35,7 @@
<script>
export default {
name: "compJob",
appName: "企业招工详情",
data() {
return {
id: null,

View File

@@ -32,6 +32,7 @@
<script>
export default {
name: "persJob",
appName:"个人求职详情",
data() {
return {
id: null,

View File

@@ -53,6 +53,7 @@
export default {
name: "pubJob",
appName: "我要找工作",
data() {
return {
form: {

View File

@@ -65,6 +65,7 @@
export default {
name: "marAdd",
appName: "我要上报",
data() {
return {
form: {

View File

@@ -40,6 +40,8 @@
<script>
export default {
name: "orderInfo",
appName: "订单详情",
data() {
return {
info: {},

View File

@@ -50,7 +50,8 @@
import {mapState} from 'vuex'
export default {
name: "my",
name: "add",
appName:"我要提问",
computed: {
...mapState(['global'])
},

View File

@@ -49,7 +49,8 @@
import {mapState} from 'vuex'
export default {
name: "my",
name: "questionList",
appName: "提问记录",
computed: {
...mapState(['user', 'token'])
},

View File

@@ -27,7 +27,8 @@
import {mapState} from 'vuex'
export default {
name: "my",
name: "reply",
appName: "发表回复",
computed: {
...mapState(['user', 'token'])
},

View File

@@ -14,6 +14,7 @@
<script>
export default {
name:"progressAnnex",
data() {
return {
img: '',

View File

@@ -148,6 +148,8 @@
<script>
export default {
name: "progressDetail",
appName: "进度详情",
data() {
return {
title: '',

View File

@@ -132,6 +132,7 @@
<script>
export default {
appName: "进度详情",
data() {
return {
title: '',

View File

@@ -172,6 +172,7 @@ import {mapState} from 'vuex'
import Handwriting from '@/utils/signature.js'
export default {
name:"serviceForm",
data() {
return {
pageShow: false,

View File

@@ -18,6 +18,7 @@
<script>
export default {
appName:"网上办事",
data () {
return {
id: '',

View File

@@ -1,6 +1,6 @@
<template>
<div class="service-result">
<image src="/static/img/service-success.png" />
<image src="/static/img/service-success.png"/>
<h2> 申请成功等待审批</h2>
<div class="text">
<span>可在</span>
@@ -12,72 +12,70 @@
</template>
<script>
export default {
data () {
return {
export default {
appName: "个人人员参保申报",
data() {
return {}
},
onLoad(query) {
uni.setNavigationBarTitle({
title: query.title
})
},
}
},
onLoad (query) {
uni.setNavigationBarTitle({
title: query.title
methods: {
back() {
uni.reLaunch({
url: '/pages/home/home'
})
},
methods: {
back () {
uni.reLaunch({
url: '/pages/home/home'
})
}
}
}
}
</script>
<style lang="scss" scoped>
.service-result {
min-height: 100vh;
padding-top: 96px;
.service-result {
min-height: 100vh;
padding-top: 96px;
text-align: center;
background: #fff;
box-sizing: border-box;
.service-btn {
width: 558px;
height: 88px;
line-height: 88px;
margin: 120px auto 0;
text-align: center;
background: #fff;
box-sizing: border-box;
background: #197DF0;
font-size: 36px;
color: #fff;
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.02);
border-radius: 8px;
}
.service-btn {
width: 558px;
height: 88px;
line-height: 88px;
margin: 120px auto 0;
text-align: center;
background: #197DF0;
font-size: 36px;
color: #fff;
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.02);
border-radius: 8px;
}
h2 {
margin-bottom: 32px;
color: #333333;
font-size: 36px;
font-weight: 600;
}
h2 {
margin-bottom: 32px;
color: #333333;
font-size: 36px;
font-weight: 600;
}
.text {
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
color: #333;
.text {
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
color: #333;
i {
color: #467DFE;
}
}
image {
width: 192px;
height: 192px;
i {
color: #467DFE;
}
}
image {
width: 192px;
height: 192px;
}
}
</style>

View File

@@ -15,6 +15,7 @@
<script>
export default {
appName:"网上办事",
data() {
return {
id: '',

View File

@@ -13,6 +13,7 @@
<script>
export default {
appName: "个人人员参保申报",
data() {
return {}
},

View File

@@ -48,6 +48,7 @@
export default {
name: 'balance',
appName:"订单结算",
data() {
return {
selected: null,

View File

@@ -22,6 +22,7 @@
export default {
name: "search",
appName:"积分超市搜索",
data() {
return {
keyword: "",

View File

@@ -35,6 +35,7 @@
<script>
export default {
appName: "话题详情",
data() {
return {
info: {},

View File

@@ -1,7 +1,8 @@
<template>
<section class="monitorDetail">
<div class="videoBox">
<iframe ref="monitorIns" :style="style" :src="monitor.url" allow="autoplay *; microphone *; fullscreen *" allowfullscreen allowtransparency allowusermedia frameBorder="no" />
<iframe ref="monitorIns" :style="style" :src="monitor.url" allow="autoplay *; microphone *; fullscreen *"
allowfullscreen allowtransparency allowusermedia frameBorder="no"/>
</div>
</section>
</template>
@@ -9,6 +10,7 @@
<script>
export default {
name: 'monitorDetail',
appName: "监控详情",
data() {
return {
style: {},
@@ -28,15 +30,15 @@ export default {
methods: {
getDetail(deviceId) {
deviceId &&
this.$instance
.post('/app/appzyvideoequipment/getWebSdkUrl', null, {
params: { deviceId },
})
.then((res) => {
if (res?.data) {
this.monitor = JSON.parse(res.data)
}
})
this.$instance
.post('/app/appzyvideoequipment/getWebSdkUrl', null, {
params: {deviceId},
})
.then((res) => {
if (res?.data) {
this.monitor = JSON.parse(res.data)
}
})
},
detectOrient() {

View File

@@ -88,6 +88,7 @@
import { mapState } from 'vuex'
export default {
appName:"活动详情",
data () {
return {
currIndex: 0,

View File

@@ -32,6 +32,7 @@
<script>
export default {
appName: "添加活动动态",
data() {
return {
content: '',

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
<template>
<div class="user">
<div class="user-item" :key="i" v-for="(item, i) in list">
<image :src="anonymous === '1' ? '/static/img/avatar.png' : item.avatar" />
<image :src="anonymous === '1' ? '/static/img/avatar.png' : item.avatar"/>
<div class="user-item__right">
<div class="left">
<h2>{{ anonymous === '1' ? '居民' : item.userName }}</h2>
@@ -15,109 +15,110 @@
</template>
<script>
export default {
data () {
return {
pageShow: false,
id: '',
current: 1,
list: [],
isMore: false,
info: '',
anonymous: ''
}
},
onLoad (query) {
this.$loading()
this.anonymous = query.anonymous
this.getList(query.id)
},
methods: {
getList(id) {
if (this.isMore) return
this.$instance.post(`/app/appvillagediscussvote/list?discussId=${id}`, null, {
params: {
current: this.current,
size: 15
}
}).then(res => {
if (res.code == 0) {
this.total = res.data.total
if (this.current > 1) {
this.list = [...this.list, ...res.data.records]
} else {
this.list = res.data.records
}
uni.hideLoading()
this.pageShow = true
if (res.data.records.length < 15) {
this.isMore = true
return false
}
this.current = this.current + 1
} else {
uni.hideLoading()
}
}).catch(() => {
uni.hideLoading()
})
}
},
onReachBottom() {
this.getList()
export default {
appName: "投票详情",
data() {
return {
pageShow: false,
id: '',
current: 1,
list: [],
isMore: false,
info: '',
anonymous: ''
}
},
onLoad(query) {
this.$loading()
this.anonymous = query.anonymous
this.getList(query.id)
},
methods: {
getList(id) {
if (this.isMore) return
this.$instance.post(`/app/appvillagediscussvote/list?discussId=${id}`, null, {
params: {
current: this.current,
size: 15
}
}).then(res => {
if (res.code == 0) {
this.total = res.data.total
if (this.current > 1) {
this.list = [...this.list, ...res.data.records]
} else {
this.list = res.data.records
}
uni.hideLoading()
this.pageShow = true
if (res.data.records.length < 15) {
this.isMore = true
return false
}
this.current = this.current + 1
} else {
uni.hideLoading()
}
}).catch(() => {
uni.hideLoading()
})
}
},
onReachBottom() {
this.getList()
}
}
</script>
<style lang="scss" socped>
.user {
padding: 32px 32px 40px;
.user {
padding: 32px 32px 40px;
.user-item {
.user-item {
display: flex;
align-items: center;
justify-content: space-between;
height: 160px;
margin-bottom: 24px;
padding: 0 32px;
border-radius: 16px;
background-color: #fff;
image {
width: 96px;
height: 96px;
margin-right: 16px;
border-radius: 50%;
}
.user-item__right {
display: flex;
align-items: center;
justify-content: space-between;
height: 160px;
margin-bottom: 24px;
padding: 0 32px;
border-radius: 16px;
background-color: #fff;
flex: 1;
image {
width: 96px;
height: 96px;
margin-right: 16px;
border-radius: 50%;
span {
color: #999999;
font-size: 28px;
}
.user-item__right {
display: flex;
align-items: center;
justify-content: space-between;
flex: 1;
h2 {
margin-bottom: 10px;
color: #333333;
font-size: 32px;
}
span {
color: #999999;
font-size: 28px;
}
h2 {
margin-bottom: 10px;
color: #333333;
font-size: 32px;
}
p {
color: #999999;
font-size: 28px;
}
p {
color: #999999;
font-size: 28px;
}
}
}
}
</style>

View File

@@ -135,6 +135,7 @@
import {mapState} from 'vuex'
export default {
appName:"今日上报",
data() {
return {
isShowDate: false,

View File

@@ -75,6 +75,7 @@
import {mapState} from 'vuex'
export default {
appName:"添加上报人员",
data() {
return {
form: {

View File

@@ -75,6 +75,7 @@
<script>
export default {
appName:"上报详情",
data () {
return {
info: {},

View File

@@ -1,6 +1,7 @@
<template>
<div class="record" v-if="pageShow">
<div class="record-item" v-for="(item, index) in list" :key="index" @click="$linkTo('./Detail?id=' + item.id)" hover-class="bg-hover">
<div class="record-item" v-for="(item, index) in list" :key="index" @click="$linkTo('./Detail?id=' + item.id)"
hover-class="bg-hover">
<div class="left">{{ item.createTime.split(' ')[0] }}的健康上报</div>
<div class="right">
<i v-if="item.status === '0'">健康数据异常</i>
@@ -12,103 +13,104 @@
</template>
<script>
export default {
data () {
return {
list: [],
pageShow: false,
current: 1,
total: 0,
isMore: false
}
},
onLoad (query) {
this.$loading()
this.getList(query)
},
methods: {
getList(query) {
if (this.isMore) return
this.$instance.post(`/app/appepidemichealthreport/list?memberId=${query.id}`, null, {
params: {
current: this.current,
size: 15
}
}).then(res => {
if (res.code == 0) {
this.total = res.data.total
if (this.current > 1) {
this.list = [...this.list, ...res.data.records]
} else {
this.list = res.data.records
}
uni.hideLoading()
this.pageShow = true
if (res.data.records.length < 15) {
this.isMore = true
return false
}
this.current = this.current + 1
} else {
uni.hideLoading()
}
}).catch(() => {
uni.hideLoading()
})
}
},
onReachBottom() {
this.getList()
export default {
appName: "上报记录",
data() {
return {
list: [],
pageShow: false,
current: 1,
total: 0,
isMore: false
}
},
onLoad(query) {
this.$loading()
this.getList(query)
},
methods: {
getList(query) {
if (this.isMore) return
this.$instance.post(`/app/appepidemichealthreport/list?memberId=${query.id}`, null, {
params: {
current: this.current,
size: 15
}
}).then(res => {
if (res.code == 0) {
this.total = res.data.total
if (this.current > 1) {
this.list = [...this.list, ...res.data.records]
} else {
this.list = res.data.records
}
uni.hideLoading()
this.pageShow = true
if (res.data.records.length < 15) {
this.isMore = true
return false
}
this.current = this.current + 1
} else {
uni.hideLoading()
}
}).catch(() => {
uni.hideLoading()
})
}
},
onReachBottom() {
this.getList()
}
}
</script>
<style lang="scss">
.record {
padding: 32px 0;
.record {
padding: 32px 0;
.record-item {
display: flex;
align-items: center;
justify-content: space-between;
width: 686px;
height: 112px;
margin: 0 auto 24px;
padding: 0 28px 0 32px;
background: #FFFFFF;
box-sizing: border-box;
box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.02);
border-radius: 16px;
.record-item {
display: flex;
align-items: center;
justify-content: space-between;
width: 686px;
height: 112px;
margin: 0 auto 24px;
padding: 0 28px 0 32px;
background: #FFFFFF;
box-sizing: border-box;
box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.02);
border-radius: 16px;
.left {
color: #333333;
font-size: 32px;
font-weight: 600;
}
.left {
color: #333333;
font-size: 32px;
font-weight: 600;
}
.right {
i {
width: 158px;
height: 36px;
line-height: 36px;
margin-right: 8px;
text-align: center;
font-size: 26px;
color: #FF4466;
background: #FFF5F7;
}
}
& > div {
display: flex;
align-items: center;
.right {
i {
width: 158px;
height: 36px;
line-height: 36px;
margin-right: 8px;
text-align: center;
font-size: 26px;
color: #FF4466;
background: #FFF5F7;
}
}
& > div {
display: flex;
align-items: center;
}
}
}
</style>

View File

@@ -57,6 +57,7 @@
<script>
export default {
appName:"个人信息",
data () {
return {
info: {},

View File

@@ -1,7 +1,9 @@
<template>
<div class="photo-detail" v-if="pageShow">
<h2>{{ info.content }}</h2>
<div class="status-name" :class="'status-' + info.eventStatus">{{ $dict.getLabel('clapEventStatus', info.eventStatus) }}</div>
<div class="status-name" :class="'status-' + info.eventStatus">
{{ $dict.getLabel('clapEventStatus', info.eventStatus) }}
</div>
<div class="photo-detail__info">
<div class="photo-detail__item">
<i>事件类型</i>
@@ -18,7 +20,7 @@
<div class="photo-detail__img" style="border: none;">
<i>照片</i>
<div class="photo-detail__img--imgs">
<image v-for="(item, index) in info.files" @click="preview(item.url)" :key="index" :src="item.url" />
<image v-for="(item, index) in info.files" @click="preview(item.url)" :key="index" :src="item.url"/>
</div>
<span v-if="info.files && !info.files.length">暂无照片</span>
</div>
@@ -32,7 +34,7 @@
<div class="photo-detail__img" v-if="result.files.length">
<i>照片</i>
<div class="photo-detail__img--imgs">
<image @click="previewResult(item.url)" v-for="(item, index) in result.files" :key="index" :src="item.url" />
<image @click="previewResult(item.url)" v-for="(item, index) in result.files" :key="index" :src="item.url"/>
</div>
</div>
</div>
@@ -40,166 +42,167 @@
</template>
<script>
export default {
data () {
return {
pageShow: false,
info: {},
result: {}
}
},
export default {
appName: "随手拍详情",
data() {
return {
pageShow: false,
info: {},
result: {}
}
},
onLoad (query) {
this.$loading()
this.$dict.load(['clapEventStatus']).then(() => {
this.getInfo(query.id)
onLoad(query) {
this.$loading()
this.$dict.load(['clapEventStatus']).then(() => {
this.getInfo(query.id)
})
},
methods: {
getInfo(id) {
this.$instance.post(`/app/appclapeventinfo/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {
this.info = res.data
if (res.data.eventStatus > 1) {
this.result = res.data.processList[0]
}
this.$nextTick(() => {
this.pageShow = true
})
}
this.$hideLoading()
}).catch(() => {
this.$hideLoading()
})
},
methods: {
getInfo (id) {
this.$instance.post(`/app/appclapeventinfo/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {
this.info = res.data
if (res.data.eventStatus > 1) {
this.result = res.data.processList[0]
}
this.$nextTick(() => {
this.pageShow = true
})
}
previewResult(url) {
uni.previewImage({
urls: this.result.files.map(v => v.url),
current: url
})
},
this.$hideLoading()
}).catch(() => {
this.$hideLoading()
})
},
previewResult (url) {
uni.previewImage({
urls: this.result.files.map(v => v.url),
current: url
})
},
preview (url) {
uni.previewImage({
urls: this.info.files.map(v => v.url),
current: url
})
}
preview(url) {
uni.previewImage({
urls: this.info.files.map(v => v.url),
current: url
})
}
}
}
</script>
<style lang="scss">
.photo-detail {
padding: 32px;
margin-bottom: 60px;
background: #fff;
.photo-detail {
padding: 32px;
margin-bottom: 60px;
background: #fff;
& > h2 {
line-height: 1.3;
margin-bottom: 26px;
color: #333333;
text-align: justify;
font-size: 40px;
& > h2 {
line-height: 1.3;
margin-bottom: 26px;
color: #333333;
text-align: justify;
font-size: 40px;
}
.status-name {
width: 96px;
height: 44px;
line-height: 44px;
margin-bottom: 20px;
text-align: center;
background: #FF883C;
color: #fff;
font-size: 26px;
border-radius: 8px;
&.status-1 {
background: #1AAAFF;
}
.status-name {
width: 96px;
height: 44px;
line-height: 44px;
margin-bottom: 20px;
text-align: center;
background: #FF883C;
color: #fff;
font-size: 26px;
border-radius: 8px;
&.status-1 {
background: #1AAAFF;
}
&.status-2 {
background: #42D784;
}
&.status-3 {
background: #FF4466;
}
&.status-2 {
background: #42D784;
}
.photo-detail__item {
display: flex;
align-items: center;
justify-content: space-between;
height: 112px;
&.status-3 {
background: #FF4466;
}
}
.photo-detail__item {
display: flex;
align-items: center;
justify-content: space-between;
height: 112px;
font-size: 32px;
border-bottom: 1px solid #DDDDDD;
i {
color: #999999;
font-size: 32px;
border-bottom: 1px solid #DDDDDD;
i {
color: #999999;
font-size: 32px;
}
span {
color: #333333;
}
}
.result {
& > h2 {
height: 116px;
line-height: 116px;
font-size: 38px;
color: #333;
font-weight: 600;
border-top: 1px solid #DDDDDD;
}
.result-info {
h2 {
height: 112px;
line-height: 112px;
color: #999999;
font-size: 32px;
}
p {
line-height: 1.3;
padding-bottom: 32px;
color: #333333;
font-size: 32px;
}
}
span {
color: #333333;
}
}
.photo-detail__img {
.result {
& > h2 {
height: 116px;
line-height: 116px;
font-size: 38px;
color: #333;
font-weight: 600;
border-top: 1px solid #DDDDDD;
padding: 32px 0;
}
& > i {
display: block;
margin-bottom: 32px;
.result-info {
h2 {
height: 112px;
line-height: 112px;
color: #999999;
font-size: 32px;
}
.photo-detail__img--imgs {
display: flex;
flex-wrap: wrap;
p {
line-height: 1.3;
padding-bottom: 32px;
color: #333333;
font-size: 32px;
}
}
}
image {
width: 226px;
height: 226px;
margin: 0 9px 9px 0;
.photo-detail__img {
border-top: 1px solid #DDDDDD;
padding: 32px 0;
&:nth-of-type(3n) {
margin-right: 0;
}
& > i {
display: block;
margin-bottom: 32px;
color: #999999;
font-size: 32px;
}
.photo-detail__img--imgs {
display: flex;
flex-wrap: wrap;
image {
width: 226px;
height: 226px;
margin: 0 9px 9px 0;
&:nth-of-type(3n) {
margin-right: 0;
}
}
}
}
}
</style>

View File

@@ -104,6 +104,7 @@
import {mapState} from 'vuex'
export default {
appName:"上报随手拍",
data() {
return {
isShowType: false,

View File

@@ -8,6 +8,7 @@
<script>
export default {
appName:"上报随手拍",
data () {
return {
id: ''

View File

@@ -261,6 +261,7 @@
import {mapState} from 'vuex'
export default {
appName:"添加返乡记录",
data() {
return {
isShowType: false,

View File

@@ -4,15 +4,15 @@
<h2>{{ info.name }}的返乡登记信息</h2>
<div class="item-info">
<div class="item-info__item">
<image src="/static/img/from-icon.png" />
<image src="/static/img/from-icon.png"/>
<span>{{ info.startAreaName }}</span>
</div>
<div class="item-info__item">
<image src="/static/img/to-icon.png" />
<image src="/static/img/to-icon.png"/>
<span>{{ info.arriveAreaName }}</span>
</div>
<div class="item-info__item">
<image src="/static/img/to-date.png" />
<image src="/static/img/to-date.png"/>
<span>{{ info.arriveTime && info.arriveTime.substr(0, info.arriveTime.length - 3) }} 到达</span>
</div>
</div>
@@ -40,7 +40,7 @@
<label>手机号码</label>
</div>
<div class="right" @click="call(info.phone)" hover-class="text-hover">
<image src="https://cdn.cunwuyun.cn/dvcp/h5/common/phone.png" />
<image src="https://cdn.cunwuyun.cn/dvcp/h5/common/phone.png"/>
<span style="color: #4181FF">{{ info.phone }}</span>
</div>
</div>
@@ -49,7 +49,9 @@
<label>人员类别</label>
</div>
<div class="right">
<span :style="{color: info.type === '0' ? '#42D784' : '#FF4466'}">{{ $dict.getLabel('epidemicMemberType', info.type) }}</span>
<span :style="{color: info.type === '0' ? '#42D784' : '#FF4466'}">{{
$dict.getLabel('epidemicMemberType', info.type)
}}</span>
</div>
</div>
</div>
@@ -135,7 +137,9 @@
<label>核酸检测结果</label>
</div>
<div class="right">
<span :style="{color: info.checkResult === '0' ? '#42D784' : '#FF4466'}">{{ $dict.getLabel('epidemicRecentTestResult', info.checkResult) }}</span>
<span :style="{color: info.checkResult === '0' ? '#42D784' : '#FF4466'}">{{
$dict.getLabel('epidemicRecentTestResult', info.checkResult)
}}</span>
</div>
</div>
<div class="detail-info__item detail-info__item--img">
@@ -143,7 +147,7 @@
<label>本人健康码截图或核酸检测报告</label>
</div>
<div class="right">
<image :src="item.url" @click="preview(item.url)" v-for="(item, index) in info.checkPhoto" :key="index" />
<image :src="item.url" @click="preview(item.url)" v-for="(item, index) in info.checkPhoto" :key="index"/>
</div>
</div>
</div>
@@ -162,7 +166,9 @@
<label>14天内是否接触新冠确诊或疑似患者</label>
</div>
<div class="right">
<span :style="{color: info.touchInFourteen === '0' ? '#42D784' : '#FF4466'}">{{ $dict.getLabel('epidemicTouchInFourteen', info.touchInFourteen) }}</span>
<span :style="{color: info.touchInFourteen === '0' ? '#42D784' : '#FF4466'}">{{
$dict.getLabel('epidemicTouchInFourteen', info.touchInFourteen)
}}</span>
</div>
</div>
<div class="detail-info__item">
@@ -178,172 +184,173 @@
</template>
<script>
export default {
data () {
return {
info: {},
pageShow: false
}
},
export default {
appName: "返乡登记详情",
data() {
return {
info: {},
pageShow: false
}
},
onLoad (query) {
this.$loading()
this.$dict.load(['epidemicRecentHealth', 'epidemicRecentTravel', 'epidemicTouchInFourteen', 'epidemicMemberType', 'epidemicRecentTestResult']).then(() => {
this.getInfo(query.id)
onLoad(query) {
this.$loading()
this.$dict.load(['epidemicRecentHealth', 'epidemicRecentTravel', 'epidemicTouchInFourteen', 'epidemicMemberType', 'epidemicRecentTestResult']).then(() => {
this.getInfo(query.id)
})
},
methods: {
preview(url) {
uni.previewImage({
urls: this.info.checkPhoto.map(v => v.url),
current: url
})
},
methods: {
preview (url) {
uni.previewImage({
urls: this.info.checkPhoto.map(v => v.url),
current: url
})
},
getInfo(id) {
this.$instance.post(`/app/appepidemicbackhomerecord/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {
this.info = res.data
this.info.checkPhoto = JSON.parse(res.data.checkPhoto)
let healthName = ''
this.info.isHealth = false
res.data.health.split(',').forEach(v => {
if (v > 0) {
this.info.isHealth = true
}
healthName = healthName + this.$dict.getLabel('epidemicRecentHealth', v)
})
this.info.healthName = healthName
getInfo (id) {
this.$instance.post(`/app/appepidemicbackhomerecord/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {
this.info = res.data
this.info.checkPhoto = JSON.parse(res.data.checkPhoto)
let healthName = ''
this.info.isHealth = false
res.data.health.split(',').forEach(v => {
if (v > 0) {
this.info.isHealth = true
}
healthName = healthName + this.$dict.getLabel('epidemicRecentHealth', v)
})
this.info.healthName = healthName
this.$nextTick(() => {
this.pageShow = true
})
}
this.$nextTick(() => {
this.pageShow = true
})
}
this.$hideLoading()
})
},
this.$hideLoading()
})
},
call (phone) {
uni.makePhoneCall({
phoneNumber: phone
})
}
call(phone) {
uni.makePhoneCall({
phoneNumber: phone
})
}
}
}
</script>
<style lang="scss">
.detail {
padding-bottom: 40px;
.detail {
padding-bottom: 40px;
.detail-header {
padding: 32px;
background: #fff;
.detail-header {
padding: 32px;
background: #fff;
h2 {
margin-bottom: 32px;
color: #333333;
font-size: 40px;
font-weight: 600;
h2 {
margin-bottom: 32px;
color: #333333;
font-size: 40px;
font-weight: 600;
}
.item-info {
.item-info__item {
display: flex;
align-items: center;
margin-bottom: 8px;
&:last-child {
margin-bottom: 0;
}
image {
width: 32px;
height: 32px;
margin-right: 16px;
}
span {
color: #333;
font-size: 28px;
}
}
}
}
.detail-info {
margin-top: 24px;
padding: 0 32px;
background: #fff;
& > h2 {
height: 116px;
line-height: 116px;
font-size: 38px;
font-weight: 600;
color: #333;
}
.detail-info__item {
display: flex;
justify-content: space-between;
padding: 34px 0;
border-bottom: 1px solid #DDDDDD;
&:last-child {
border: none;
}
.item-info {
.item-info__item {
display: flex;
align-items: center;
margin-bottom: 8px;
.left {
display: flex;
line-height: 1.3;
max-width: 360px;
&:last-child {
margin-bottom: 0;
}
label {
position: relative;
color: #999999;
font-size: 32px;
}
}
image {
width: 32px;
height: 32px;
margin-right: 16px;
}
.right {
display: flex;
max-width: 450px;
span {
color: #333;
font-size: 28px;
}
span {
color: #333333;
font-size: 32px;
text-align: right;
}
image {
width: 40px;
height: 40px;
}
}
}
.detail-info {
margin-top: 24px;
padding: 0 32px;
background: #fff;
.detail-info__item--img {
display: block;
& > h2 {
height: 116px;
line-height: 116px;
font-size: 38px;
font-weight: 600;
color: #333;
}
.right {
flex-wrap: wrap;
max-width: 100%;
margin-top: 34px;
.detail-info__item {
display: flex;
justify-content: space-between;
padding: 34px 0;
border-bottom: 1px solid #DDDDDD;
image {
width: 226px;
height: 226px;
margin: 0 9px 9px 0;
&:last-child {
border: none;
}
.left {
display: flex;
line-height: 1.3;
max-width: 360px;
label {
position: relative;
color: #999999;
font-size: 32px;
}
}
.right {
display: flex;
max-width: 450px;
span {
color: #333333;
font-size: 32px;
text-align: right;
}
image {
width: 40px;
height: 40px;
}
}
}
.detail-info__item--img {
display: block;
.right {
flex-wrap: wrap;
max-width: 100%;
margin-top: 34px;
image {
width: 226px;
height: 226px;
margin: 0 9px 9px 0;
&:nth-of-type(3n) {
margin-right: 0;
}
&:nth-of-type(3n) {
margin-right: 0;
}
}
}
}
}
}
</style>