Feat:千县城市分享
This commit is contained in:
@@ -94,3 +94,8 @@ export function getCountyFamousVillageDetail(id) {
|
||||
export function getCountyFamousVillageNews(param) {
|
||||
return request.get('/countyFamous/village/news', param, { login: true })
|
||||
}
|
||||
|
||||
// 获取千县分享图
|
||||
export function getShareImg(id) {
|
||||
return request.get('/countyFamous/poster/' + id, {login: true})
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user