index.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. export default {
  15. components: {
  16. tools,
  17. },
  18. data() {
  19. return {
  20. enterpriseimg:''
  21. }
  22. },
  23. //发送给朋友
  24. onShareAppMessage(res) {
  25. return {
  26. title: this.$store.state.logoname,
  27. path: '/pages/about/index',
  28. imageUrl: this.$store.state.imgpath+'/app/image/logoshare.png' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  29. }
  30. },
  31. //分享到朋友圈
  32. onShareTimeline(res) {
  33. return {
  34. title: this.$store.state.logoname,
  35. path: '/pages/about/index',
  36. imageUrl: this.$store.state.imgpath+'/app/image/logoshare.png' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  37. }
  38. },
  39. mounted() {
  40. },
  41. onShow() {
  42. const enterpriseimg = []
  43. this.getenterprise()
  44. },
  45. methods: {
  46. getenterprise(){
  47. getenterprise().then(res=>{
  48. this.enterpriseimg=res.data.images
  49. console.log(res)
  50. })
  51. },
  52. }
  53. }
  54. </script>
  55. <style lang="scss">
  56. .cont{
  57. width: 100%;
  58. }
  59. </style>