Feat:千县城市分享

This commit is contained in:
modendeveloper
2024-11-30 12:20:20 +08:00
parent 088f3ea370
commit fc47a981f9
2 changed files with 20 additions and 5 deletions
+15 -5
View File
@@ -93,9 +93,9 @@
<view class="inn-signature">
{{ inn.shopIntro }}
</view>
<!-- <view class="share-btn" @click="changeShare">
<view class="share-btn" @click="changeShare">
<image :src="webUrl + '/page/hotel/share.png'" class="img" />
</view> -->
</view>
</view>
<view v-if="inn.name" class="map-wrapper">
<view class="map-cont">
@@ -600,7 +600,7 @@
<image
:src="webUrl + '/20230608112219219303.png'"
class="icon"
@click="changeShare"
@click="closeShare"
/>
<image :src="posterUrl" class="main-img" />
</view>
@@ -628,7 +628,8 @@ import {
getCountyFamousIndustryProject,
getCountyFamousInvestmentFile,
getCountyFamousVillage,
getCountyFamousCityDetail
getCountyFamousCityDetail,
getShareImg
} from '@/api/qianxian'
import {formatDateTime} from '@/utils'
import {getUrlParam} from '@/utils/common.js'
@@ -953,7 +954,16 @@ export default {
}
},
changeShare() {
this.showShare = !this.showShare
uni.showLoading()
getShareImg(this.id).then(res => {
this.posterUrl = res.data
this.showShare = !this.showShare
}).finally(() => {
uni.hideLoading()
})
},
closeShare() {
this.showShare = false
},
saveImg() {
const _this = this