enterpriseimg.vue 1.3 KB

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