|
@@ -6,7 +6,7 @@
|
|
|
<div class='my-swipe'>
|
|
|
<van-swipe :autoplay='0' indicator-color='white'>
|
|
|
<van-swipe-item v-for='(image, index) in imgList' :key='index'>
|
|
|
- <span class='type-name'>{{ image.typename }}</span>
|
|
|
+ <span class='type-name' v-show='image.typename'>{{ image.typename }}</span>
|
|
|
<van-image fit='contain' :src='image.url' />
|
|
|
</van-swipe-item>
|
|
|
</van-swipe>
|
|
@@ -181,6 +181,7 @@ Vue.use(Button).use(Icon).use(Swipe).use(SwipeItem).use(Lazyload).use(VanImage)
|
|
|
Vue.use(Tab).use(Tabs)
|
|
|
Vue.use(NoticeBar)
|
|
|
Vue.use(Empty)
|
|
|
+import { mapGetters } from 'vuex'
|
|
|
// lodash
|
|
|
import { isEmpty } from 'lodash'
|
|
|
// moment
|
|
@@ -197,7 +198,6 @@ export default {
|
|
|
showImgPreview: true,
|
|
|
imgList: ['https://img.yzcdn.cn/vant/apple-1.jpg', 'https://img.yzcdn.cn/vant/apple-2.jpg'],
|
|
|
active: 0, // 激活的tab页 0:建筑综合信息 1:施工单位信息
|
|
|
- plazaId: '1000423', //广场ID
|
|
|
plazaName: '', //广场名称
|
|
|
build: [], //建筑综合信息
|
|
|
totalContractInfo: {}, //总包信息
|
|
@@ -213,6 +213,9 @@ export default {
|
|
|
},
|
|
|
}
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ ...mapGetters(['plazaId']),
|
|
|
+ },
|
|
|
watch: {
|
|
|
showImgPreview(val) {
|
|
|
console.log('========')
|
|
@@ -368,8 +371,8 @@ export default {
|
|
|
position: relative;
|
|
|
.type-name {
|
|
|
display: inline-block;
|
|
|
- width: 100px;
|
|
|
- padding: 10px 0 10px 20px;
|
|
|
+ width: 70px;
|
|
|
+ padding: 5px 0 5px 10px;
|
|
|
position: absolute;
|
|
|
z-index: 10;
|
|
|
left: 0;
|