邓洁 : 首页icon页面渲染

This commit is contained in:
邓洁
2023-11-19 23:05:10 +08:00
parent 6eb6756796
commit e302fcb477
8 changed files with 262 additions and 70 deletions

View File

@@ -1,6 +1,6 @@
<template>
<view class="detail" ref="viewref">
<view class="swiper">
<view class="swiper" v-if="search">
<u-swiper :list="shopInfo.pics" height="500rpx" radius="0"></u-swiper>
</view>
<view class="sub-detail u-flex">
@@ -30,7 +30,7 @@
<view class="location-detail">
<text>行业{{shopInfo.trade1}}</text>
<text>区域{{shopInfo.area1}}</text>
<text>地址{{shopInfo.adress}}</text>
<text v-if="search">地址{{shopInfo.adress}}</text>
</view>
<view class="bgc">
@@ -68,7 +68,7 @@
</u-modal>
</view>
</view>
<view class="bug-figure">
<view v-if="search" class="bug-figure">
</view>
</view>
@@ -79,11 +79,17 @@
data() {
return {
shopInfo: {},
showM: false
showM: false,
search: true
}
},
onLoad: function(options) {
console.log('detail', options);
if (options.search == "1") {
this.search = false
} else {
this.search = true
}
//点击轮播图跳转详情, 传递的参数id, type
if (options.id !== undefined && options.type !== undefined) {
this.getDetail(options.type, options.id)