BUG
This commit is contained in:
		| @@ -24,6 +24,7 @@ | |||||||
| </template> | </template> | ||||||
|  |  | ||||||
| <script> | <script> | ||||||
|  |   import { mapActions, mapState } from 'vuex' | ||||||
|   export default { |   export default { | ||||||
|     name: 'Photo', |     name: 'Photo', | ||||||
|  |  | ||||||
| @@ -38,6 +39,11 @@ | |||||||
|         createUserId: '' |         createUserId: '' | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
|  |     computed: { | ||||||
|  |       ...mapState(['user']) | ||||||
|  |     }, | ||||||
|  |  | ||||||
|     onLoad (query) { |     onLoad (query) { | ||||||
|       this.id = query.id |       this.id = query.id | ||||||
|       this.$loading() |       this.$loading() | ||||||
| @@ -56,12 +62,43 @@ | |||||||
|     }, |     }, | ||||||
|  |  | ||||||
|     methods: { |     methods: { | ||||||
|  |       ...mapActions(['wxInvoke']), | ||||||
|  |  | ||||||
|       back () { |       back () { | ||||||
|         uni.navigateBack({ |         uni.navigateBack({ | ||||||
|           delta: 1 |           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 () { |       remove () { | ||||||
|         this.$confirm('确定删除该图片?').then(() => { |         this.$confirm('确定删除该图片?').then(() => { | ||||||
|           this.$http.post(`/api/appalbumphoto/delete?ids=${this.id}`).then(res => { |           this.$http.post(`/api/appalbumphoto/delete?ids=${this.id}`).then(res => { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user