feat: 增加图片的预览
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
这是景区最完整的打法,全程顺着响水河往下游走,不用爬坡回头,把最精华的水景一次看个够。从古朴的石桥热身,一路走到碧蓝的卧龙潭收尾,节奏刚刚好。
|
||||
</view>
|
||||
|
||||
<image class="overview-image-card" :src="overviewImage" mode="widthFix" />
|
||||
<image class="overview-image-card" :src="overviewImage" mode="widthFix" @click="previewPhoto(overviewImage)" />
|
||||
|
||||
<view class="detail-section-title">这几个地方不能错过</view>
|
||||
<view class="detail-paragraph">
|
||||
@@ -33,7 +33,7 @@
|
||||
<text class="detail-highlight">{{ spot.index }} {{ spot.name }}</text>
|
||||
{{ spot.desc }}
|
||||
</view>
|
||||
<image class="overview-image-card" :src="spot.image" mode="aspectFill" />
|
||||
<image class="overview-image-card" :src="spot.image" mode="aspectFill" @click="previewPhoto(spot.image)" />
|
||||
</template>
|
||||
|
||||
<view class="detail-section-title">一天大概这样分</view>
|
||||
@@ -166,6 +166,12 @@ const showToast = (title) => {
|
||||
});
|
||||
};
|
||||
|
||||
const previewPhoto = (url) => {
|
||||
uni.previewImage({
|
||||
current: url,
|
||||
urls: [url],
|
||||
});
|
||||
};
|
||||
|
||||
const goodsDetail = (item) => {
|
||||
uni.navigateTo({
|
||||
|
||||
Reference in New Issue
Block a user