From dca8f38a31f053ad768bd7ca9e4f6b8d6e0f1876 Mon Sep 17 00:00:00 2001
From: Apcallover <1503963513@qq.com>
Date: Sun, 14 Apr 2024 21:06:15 +0800
Subject: [PATCH] flat: 123
---
pages/projectInfo/projectInfo.vue | 10 +++++++++-
pages/projectInfo/workInfo.vue | 5 ++++-
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/pages/projectInfo/projectInfo.vue b/pages/projectInfo/projectInfo.vue
index f2dfa40..77b8599 100644
--- a/pages/projectInfo/projectInfo.vue
+++ b/pages/projectInfo/projectInfo.vue
@@ -95,7 +95,7 @@
公司地址:{{info.companyAddress || '暂无'}}
-->
- 工作地址:{{`${info.cityId === -1 ? '无' : area.dic[info.cityId]}`}}
+ 工作地址:{{cityNamed}}
详细地址:{{info.address}}
@@ -412,6 +412,14 @@
if (this.info.skillNames) {
return this.info.skillNames.split(',')
}
+ },
+ cityNamed() {
+ if (this.info && this.info.cityId !== -1 && this.area.dic) {
+ return this.area.dic[this.info.cityId].label
+ } else {
+ return '无'
+ }
+ console.log('val', this.info)
}
}
}
diff --git a/pages/projectInfo/workInfo.vue b/pages/projectInfo/workInfo.vue
index 0fafd51..ee12eb7 100644
--- a/pages/projectInfo/workInfo.vue
+++ b/pages/projectInfo/workInfo.vue
@@ -270,6 +270,9 @@
onShow: function() {
this.showDetail = true
this.getData();
+ setTimeout(() => {
+ console.log(this.area.dic, this.info)
+ }, 1000)
},
onShareAppMessage(obj) {
return {
@@ -414,7 +417,7 @@
}
},
computed: {
- ...mapGetters(['auth', 'autograph']),
+ ...mapGetters(['auth', 'autograph', 'area']),
skillNames() {
if (this.info.skillNames) {
return this.info.skillNames.split(',')