introduction.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <template>
  2. <view class="intro-page common">
  3. <view class="top-class"></view>
  4. <view class="title">
  5. 公司简介
  6. </view>
  7. <view class="head">
  8. <u-row class="row-class">
  9. <u-col span="4">
  10. <image class="logo-img" src="/static/images/common/logo.png" mode="aspectFit" />
  11. </u-col>
  12. <u-col span="4">
  13. <!-- <image class="commodity-img" src="/static/images/common/commodity.png" mode="aspectFit" /> -->
  14. </u-col>
  15. <u-col span="4">
  16. </u-col>
  17. </u-row>
  18. </view>
  19. <view class="theme-text">
  20. <image src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/text.png"
  21. class="textImage"></image>
  22. </view>
  23. <!-- 公司简介内容卡片 -->
  24. <view class="intro-card">
  25. <view class="intro-view">
  26. <view class="intro-label">
  27. <view class="label-title">
  28. 公司简介
  29. </view>
  30. </view>
  31. <view class="intro-content">
  32. 湖南王爷山食品股份有限公司初始成立于2007年,是一家集豆制品、肉制品、水产品研发、生产、销售为一体的食品企业。公司注册资金为1120万元,固定资产投入超6000万元。目前公司自有工厂位于湖南省娄底市新化县,占地面积16000余平米,生产区域约为12000平米,品牌运营中心位于湖南省长沙市高桥大市场。
  33. </view>
  34. <image class="company-img" src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/companyImg.png" mode="aspectFill" />
  35. </view>
  36. </view>
  37. <!-- 返回按钮 -->
  38. <view class="footer-btn">
  39. <view @click="goBack" class="return-button">返回</view>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. export default {
  45. methods: {
  46. goBack() {
  47. uni.navigateBack();
  48. }
  49. }
  50. }
  51. </script>
  52. <style lang="scss" scoped>
  53. @import url('../../../static/scss/common.css');
  54. .row-class {
  55. height: 80rpx;
  56. }
  57. .logo-img {
  58. background-size: cover;
  59. /* 确保背景图片自适应填充整个容器 */
  60. background-position: center;
  61. /* 背景图片居中显示 */
  62. background-repeat: no-repeat;
  63. /* 防止背景图重复 */
  64. height: 42rpx;
  65. width: 62%;
  66. }
  67. .commodity-img {
  68. background-size: cover;
  69. /* 确保背景图片自适应填充整个容器 */
  70. background-position: center;
  71. /* 背景图片居中显示 */
  72. background-repeat: no-repeat;
  73. /* 防止背景图重复 */
  74. height: 35rpx;
  75. width: 100%;
  76. }
  77. .theme-text {
  78. height: 10vh;
  79. text-align: center;
  80. line-height: 11vh;
  81. .textImage {
  82. height: 80rpx;
  83. width: 400rpx;
  84. }
  85. }
  86. .intro-card {
  87. margin: 0 32rpx;
  88. padding: 32rpx 24rpx 24rpx 24rpx;
  89. background: rgba(131, 100, 71, 0.5);
  90. border-radius: 10rpx;
  91. .intro-view {
  92. border: 1px solid #341B10;
  93. padding: 10px;
  94. margin: 10px;
  95. position: relative;
  96. .intro-label {
  97. background-image:
  98. url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/label.png");
  99. /* 使用绝对路径 */
  100. background-size: contain;
  101. background-repeat: no-repeat;
  102. width: 220rpx;
  103. height: 120rpx;
  104. position: absolute;
  105. margin-top: -70rpx;
  106. align-content: center;
  107. .label-title {
  108. font-weight: bold;
  109. font-size: 30rpx;
  110. color: #341B10;
  111. text-align: center;
  112. margin-left: 10px;
  113. height: 120rpx;
  114. line-height: 110rpx;
  115. }
  116. }
  117. .intro-content {
  118. font-size: 28rpx;
  119. color: #5c4322;
  120. line-height: 1.8;
  121. margin: 20rpx 0px;
  122. text-align: justify;
  123. }
  124. .company-img {
  125. width: 100%;
  126. height: 260rpx;
  127. border-radius: 12rpx;
  128. object-fit: cover;
  129. margin-top: 10rpx;
  130. background: #eee;
  131. }
  132. }
  133. }
  134. </style>