healthTest.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <view class="column" style="height: 100%;position: relative;">
  3. <!-- <view class="top-content ">
  4. <view class="status_bar" :style="{height: statusBarHeight+'px'}"></view>
  5. <view class="top-title">关于</view>
  6. </view> -->
  7. <view>
  8. <image :src="enterpriseimg" mode="widthFix" class="pb20" style="width: 100%;"></image>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. import{getenterprise} from '@/api/index.js'
  14. export default {
  15. // name:"enterpriseimg",
  16. data() {
  17. return {
  18. statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
  19. enterpriseimg:'',
  20. };
  21. },
  22. mounted() {
  23. console.log(this.$store.state.imgpath)
  24. const imgs = []
  25. this.getenterprise()
  26. },
  27. methods: {
  28. getenterprise(){
  29. getenterprise().then(res=>{
  30. this.enterpriseimg=res.data.images
  31. console.log(res)
  32. })
  33. },
  34. }
  35. }
  36. </script>
  37. <style lang="scss" scoped>
  38. .top-content {
  39. width: 100%;
  40. z-index: 10;
  41. position: fixed;
  42. top: 0;
  43. left: 0;
  44. background-color: #FFFFFF;
  45. .top-title {
  46. height: 88rpx;
  47. line-height: 88rpx;
  48. font-size: 42rpx;
  49. font-family: Source Han Sans CN;
  50. font-weight: bold;
  51. color: #222222;
  52. padding-left: 41rpx;
  53. background-color: #FFFFFF;
  54. }
  55. }
  56. </style>