index.vue 1.3 KB

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