Feat:管家分享

This commit is contained in:
linxi
2025-11-12 17:08:18 +08:00
parent 349b3a3baa
commit a2805ca58e
3 changed files with 155 additions and 2 deletions
+19 -2
View File
@@ -29,7 +29,7 @@
<view class="gg-item-title v12-font-28">旅居管家</view>
<view>{{record.name}}</view>
</view>
<view class="share-btn">
<view class="share-btn" @click="shareHousekeeper">
<view class="share-icon v12-primary">
<image :src="webUrl + '/home/share.png'" class="share-icon-image v12-primary" mode="aspectFill" />
</view>
@@ -70,12 +70,18 @@
</view>
</view>
</view>
<sharePopup ref="sharePopup" />
</view>
</template>
<script>
import { getShareHousekeeper } from '@/api/qianxian.js'
import sharePopup from '@/components/sharePopup.vue'
export default {
name: 'HousekeeperDetail',
components: {
sharePopup
},
data() {
return {
webUrl: this.$VUE_APP_RESOURCES_URL,
@@ -90,7 +96,18 @@ export default {
},
methods: {
shareHousekeeper() {
uni.showLoading()
getShareHousekeeper(this.record.id).then(res => {
uni.hideLoading()
if(res.status === 200) {
// uni.previewImage({
// urls: [res.data],
// })
this.$refs.sharePopup.showView(res.data)
}
})
}
}
}
</script>