share.vue 490 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <view class="head-icon" @click.stop="openShare()">
  3. <image src="../../static/images/logo.png" mode="aspectFit"></image>
  4. <sharePage ref="sharePageRef"/>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. data() {
  10. return {
  11. };
  12. },
  13. methods:{
  14. openShare(){
  15. // uni.navigateTo({
  16. // url: '/pages/content/share'
  17. // });
  18. this.$nextTick(() => {
  19. this.$refs.sharePageRef.openShare()
  20. })
  21. }
  22. }
  23. }
  24. </script>
  25. <style lang="scss" scoped>
  26. </style>