This commit is contained in:
yanran200730
2022-06-10 09:20:53 +08:00
parent 4467178740
commit 726750a9ac

View File

@@ -24,7 +24,6 @@
</template>
<script>
import { mapActions, mapState } from 'vuex'
export default {
name: 'Photo',
@@ -39,11 +38,6 @@
createUserId: ''
}
},
computed: {
...mapState(['user'])
},
onLoad (query) {
this.id = query.id
this.$loading()
@@ -62,43 +56,12 @@
},
methods: {
...mapActions(['wxInvoke']),
back () {
uni.navigateBack({
delta: 1
})
},
share () {
uni.showActionSheet({
itemList: ['分享', '微信分享'],
success: data => {
if (data.tapIndex === 0 || data.tapIndex === 1) {
if (data.tapIndex === 0) {
this.wxInvoke(['shareAppMessage', {
title: this.info.title,
desc: this.info.tableExplain,
link: this.linkUrl,
imgUrl: this.info.headPicture
}, () => {
this.isShow = false
}])
} else {
this.wxInvoke(['shareWechatMessage', {
title: this.info.title,
desc: this.info.tableExplain,
link: this.linkUrl,
imgUrl: this.info.headPicture
}, () => {
this.isShow = false
}])
}
}
}
})
},
remove () {
this.$confirm('确定删除该图片?').then(() => {
this.$http.post(`/api/appalbumphoto/delete?ids=${this.id}`).then(res => {