bug
This commit is contained in:
@@ -6,10 +6,10 @@
|
||||
<image src="./images/fanhui.png" />
|
||||
<span>返回</span>
|
||||
</div>
|
||||
<div class="item" @click="back">
|
||||
<!-- <div class="item" @click="share">
|
||||
<image src="./images/fenxiang.png" />
|
||||
<span>分享</span>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="item" @click="remove">
|
||||
<image src="./images/shanchu.png" />
|
||||
<span>删除</span>
|
||||
@@ -19,6 +19,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {mapActions} from 'vuex'
|
||||
export default {
|
||||
name: 'Photo',
|
||||
|
||||
@@ -37,12 +38,43 @@
|
||||
},
|
||||
|
||||
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 => {
|
||||
|
||||
Reference in New Issue
Block a user