about.vue 798 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <view class="container">
  3. <view class="container-img">
  4. <image src="https://mall.zhaijieshi.cc/file/wx-huawang/ppgs.png"></image>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. //获取应用实例
  10. const app = getApp();
  11. export default {
  12. data() {
  13. return {};
  14. }
  15. /**
  16. * 生命周期函数--监听页面加载
  17. */
  18. ,
  19. onLoad: function() {
  20. },
  21. methods: {
  22. }
  23. };
  24. </script>
  25. <style>
  26. /* about.wxss */
  27. .container{
  28. width: 100vw;
  29. height: 100vh;
  30. background-color: #fff;
  31. padding-top: 18rpx;
  32. }
  33. .container-img {
  34. display: flex;
  35. justify-content: center;
  36. align-items: center;
  37. width: 90vw;
  38. margin: auto;
  39. height: 100%;
  40. }
  41. .container-img image {
  42. width: 100%;
  43. height: 100%;
  44. object-fit: contain; /* 保持图片比例 */
  45. }
  46. </style>