index.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <view class="column scrolly hb">
  3. <!-- <scroll-view :scroll-y="true" class="hb">
  4. <image :src="enterpriseimg"
  5. mode="widthFix" style="width: 100vw; " class="scrolly flex-1"></image>
  6. </scroll-view> -->
  7. <tools></tools>
  8. </view>
  9. </template>
  10. <script>
  11. import{getenterprise} from '@/api/index.js'
  12. // import tools from '@/components/tools.vue'
  13. // import tools from '@/components/tools1.vue'
  14. import tools from '@/components/toolA.vue'
  15. export default {
  16. components: {
  17. tools,
  18. },
  19. data() {
  20. return {
  21. enterpriseimg:''
  22. }
  23. },
  24. //发送给朋友
  25. onShareAppMessage(res) {
  26. return {
  27. title: this.$store.state.logoname,
  28. path: '/pages/about/index',
  29. imageUrl: this.$store.state.imgpath+'/app/image/logoshare.png' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  30. }
  31. },
  32. //分享到朋友圈
  33. onShareTimeline(res) {
  34. return {
  35. title: this.$store.state.logoname,
  36. path: '/pages/about/index',
  37. imageUrl: this.$store.state.imgpath+'/app/image/logoshare.png' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  38. }
  39. },
  40. mounted() {
  41. },
  42. onShow() {
  43. const enterpriseimg = []
  44. this.getenterprise()
  45. },
  46. methods: {
  47. getenterprise(){
  48. getenterprise().then(res=>{
  49. this.enterpriseimg=res.data.images
  50. console.log(res)
  51. })
  52. },
  53. }
  54. }
  55. </script>
  56. <style lang="scss">
  57. .cont{
  58. width: 100%;
  59. }
  60. </style>