Feat:管家分享
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user