company.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. <template>
  2. <view class="production-traceability-page">
  3. <!-- 顶部导航栏 -->
  4. <uni-nav-bar
  5. fixed="true"
  6. statusBar="true"
  7. left-icon="back"
  8. title="企业信息"
  9. background-color="#fff"
  10. color="#000"
  11. @clickLeft="handleBack"
  12. ></uni-nav-bar>
  13. <!-- 主内容区 -->
  14. <view class="content-wrapper">
  15. <!-- 编辑中标签 -->
  16. <!-- <view class="edit-tag">编辑中</view> -->
  17. <!-- 产品图片区域 -->
  18. <view class="product-image-section">
  19. <view class="product-title">
  20. 企业信息
  21. </view>
  22. <image class="product-image" :src="productImageSrc" mode="aspectFit"></image>
  23. </view>
  24. <!-- 生产信息列表 -->
  25. <view class="info-list">
  26. <!-- 生产详情标题 -->
  27. <view class="info-title">
  28. <text>企业简介</text>
  29. </view>
  30. <view class="info-item">
  31. <text class="info-label">企业名称:</text>
  32. <text class="info-value">湖南聚仁中药饮片有限公司</text>
  33. </view>
  34. <view class="info-item">
  35. <text class="info-label">企业类别:</text>
  36. <text class="info-value">药材供应商/生产商</text>
  37. </view>
  38. <view class="info-item">
  39. <text class="info-label">工商注册号:</text>
  40. <text class="info-value">914314558887788</text>
  41. </view>
  42. <view class="info-item">
  43. <text class="info-label">组织机构代码:</text>
  44. <text class="info-value">123456</text>
  45. </view>
  46. <view class="info-item">
  47. <text class="info-label">法人:</text>
  48. <text class="info-value">侯辉</text>
  49. </view>
  50. <!-- 查看更多信息按钮 -->
  51. <view class="more-info-btn" @click="toggleMoreInfo">
  52. <text>查看更多信息</text>
  53. <image class="dropdown-icon" :src="companyIconSrc" mode="aspectFit"></image>
  54. </view>
  55. </view>
  56. <!-- 底部装饰 -->
  57. <!-- <view class="bottom-decoration">
  58. <image :src="waveIconSrc" mode="aspectFill"></image>
  59. </view> -->
  60. <!-- 返回首页按钮 -->
  61. <!-- <view class="home-button" @click="goToHome">
  62. <image class="home-icon" :src="homeIconSrc" mode="aspectFit"></image>
  63. </view> -->
  64. </view>
  65. </view>
  66. </template>
  67. <script>
  68. export default {
  69. data() {
  70. return {
  71. // 使用项目中已有的图标路径
  72. waveIconSrc: '/static/svg-icons/wave.svg',
  73. homeIconSrc: '/static/tab/home.png',
  74. productImageSrc: '/static/product/1.svg',
  75. companyIconSrc: '/static/product/xl.svg',
  76. };
  77. },
  78. methods: {
  79. handleBack() {
  80. // 返回上一页
  81. uni.navigateBack();
  82. },
  83. goToHome() {
  84. // 返回首页
  85. uni.switchTab({
  86. url: '/pages/home/home'
  87. });
  88. }
  89. }
  90. };
  91. </script>
  92. <style lang="scss" scoped>
  93. .production-traceability-page {
  94. background-color: #fff;
  95. min-height: 100vh;
  96. background-image: url('/static/svg-icons/bg-pattern.svg');
  97. background-size: cover;
  98. background-position: center;
  99. }
  100. .content-wrapper {
  101. padding: 60rpx 40rpx 60rpx;
  102. position: relative;
  103. }
  104. .edit-tag {
  105. position: absolute;
  106. top: 80rpx;
  107. left: 0;
  108. width: 160rpx;
  109. height: 60rpx;
  110. background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  111. color: #fff;
  112. text-align: center;
  113. line-height: 60rpx;
  114. font-size: 26rpx;
  115. border-radius: 0 30rpx 30rpx 0;
  116. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
  117. z-index: 10;
  118. }
  119. .product-image-section {
  120. display: flex;
  121. justify-content: center;
  122. margin-bottom: 40rpx;
  123. background-color: #fff;
  124. padding: 40rpx;
  125. border-radius: 20rpx;
  126. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  127. border: 2rpx solid #ffe6e6;
  128. position: relative;
  129. }
  130. .product-title {
  131. position: absolute;
  132. font-size: 32rpx;
  133. font-weight: bold;
  134. color: #fff;
  135. text-align: center;
  136. margin-bottom: 20rpx;
  137. padding: 10rpx 40rpx;
  138. background: #bd0402;
  139. border-radius: 10rpx;
  140. box-shadow: 0 2rpx 8rpx rgba(255, 107, 107, 0.3);
  141. top: -20rpx;
  142. }
  143. .info-title {
  144. position: absolute;
  145. top: -20rpx;
  146. left: 35%;
  147. background-color: #bd0402;
  148. color: #fff;
  149. text-align: center;
  150. padding: 10rpx 40rpx;
  151. margin-bottom: 30rpx;
  152. border-radius: 10rpx;
  153. font-size: 32rpx;
  154. font-weight: bold;
  155. }
  156. .info-list {
  157. background-color: #fff;
  158. border-radius: 20rpx;
  159. padding: 30rpx;
  160. margin-bottom: 30rpx;
  161. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  162. border: 2rpx solid #ffe6e6;
  163. position: relative;
  164. padding-top: 56rpx;
  165. }
  166. .info-item {
  167. display: flex;
  168. align-items: flex-start;
  169. padding: 20rpx 0;
  170. border-bottom: 1rpx solid #f0f0f0;
  171. }
  172. .info-item:last-child {
  173. border-bottom: none;
  174. }
  175. .info-label {
  176. font-size: 28rpx;
  177. color: #bd0402;
  178. margin-right: 10rpx;
  179. flex: 1;
  180. font-weight: 500;
  181. }
  182. .info-value {
  183. font-size: 28rpx;
  184. color: #333;
  185. flex: 2;
  186. }
  187. .bottom-decoration {
  188. width: 100%;
  189. height: 100rpx;
  190. overflow: hidden;
  191. margin-top: 40rpx;
  192. position: absolute;
  193. bottom: 0;
  194. left: 0;
  195. z-index: -1;
  196. }
  197. .bottom-decoration image {
  198. width: 100%;
  199. height: 100%;
  200. }
  201. .more-info-btn {
  202. display: flex;
  203. justify-content: center;
  204. align-items: center;
  205. font-size: 26rpx;
  206. color: #bd0402;
  207. padding: 10rpx 0;
  208. margin-top: 20rpx;
  209. }
  210. .dropdown-icon {
  211. width: 24rpx;
  212. height: 24rpx;
  213. margin-left: 10rpx;
  214. transform: rotate(0deg);
  215. transition: transform 0.3s;
  216. color: #bd0402;
  217. }
  218. .home-button {
  219. position: fixed;
  220. bottom: 60rpx;
  221. right: 60rpx;
  222. width: 100rpx;
  223. height: 100rpx;
  224. background-color: #bd0402;
  225. border-radius: 50%;
  226. display: flex;
  227. justify-content: center;
  228. align-items: center;
  229. box-shadow: 0 4rpx 20rpx rgba(189, 4, 2, 0.4);
  230. z-index: 20;
  231. }
  232. .home-icon {
  233. width: 60rpx;
  234. height: 60rpx;
  235. }
  236. </style>