my.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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="touxiang">
  26. <image class="company-img"
  27. src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/companyImg.png"
  28. mode="aspectFill" />
  29. </view>
  30. <view class="intro-view">
  31. <view class="intro-label">
  32. <view class="label-title">
  33. 其他服务
  34. </view>
  35. </view>
  36. <view class="intro-content">
  37. <u-row style="height: 200rpx;">
  38. <u-col span="4" textAlign="center" @click="jumpScanLog">
  39. <image class="tubiao" src="/static/images/tabbar/scan.png" mode="aspectFit" />
  40. <view class="">
  41. 扫码记录
  42. </view>
  43. </u-col>
  44. <u-col span="4" textAlign="center" @click="jumpScanAddress">
  45. <image class="tubiao" src="/static/images/tabbar/address.png" mode="aspectFit"/>
  46. <view class="">
  47. 收货地址
  48. </view>
  49. </u-col>
  50. <u-col span="4">
  51. </u-col>
  52. </u-row>
  53. </view>
  54. </view>
  55. </view>
  56. <!-- 返回按钮 -->
  57. <view class="footer-btn">
  58. <view @click="goBack" class="return-button">返回</view>
  59. </view>
  60. </view>
  61. </template>
  62. <script>
  63. export default {
  64. methods: {
  65. goBack() {
  66. uni.navigateBack();
  67. },
  68. jumpScanLog(){
  69. uni.navigateTo({
  70. url: '/pages/lgz/record/record'
  71. });
  72. },
  73. jumpScanAddress(){
  74. uni.navigateTo({
  75. url: '/pages/lgz/address/address'
  76. });
  77. },
  78. }
  79. }
  80. </script>
  81. <style lang="scss" scoped>
  82. @import url('../../../static/scss/common.css');
  83. .row-class {
  84. height: 80rpx;
  85. }
  86. .logo-img {
  87. background-size: cover;
  88. /* 确保背景图片自适应填充整个容器 */
  89. background-position: center;
  90. /* 背景图片居中显示 */
  91. background-repeat: no-repeat;
  92. /* 防止背景图重复 */
  93. height: 42rpx;
  94. width: 62%;
  95. }
  96. .commodity-img {
  97. background-size: cover;
  98. /* 确保背景图片自适应填充整个容器 */
  99. background-position: center;
  100. /* 背景图片居中显示 */
  101. background-repeat: no-repeat;
  102. /* 防止背景图重复 */
  103. height: 35rpx;
  104. width: 100%;
  105. }
  106. .theme-text {
  107. height: 10vh;
  108. text-align: center;
  109. line-height: 11vh;
  110. .textImage {
  111. height: 80rpx;
  112. width: 400rpx;
  113. }
  114. }
  115. .intro-card {
  116. margin: 0 32rpx;
  117. padding: 32rpx 24rpx 24rpx 24rpx;
  118. background: rgba(131, 100, 71, 0.5);
  119. border-radius: 10rpx;
  120. .intro-view {
  121. border: 1px solid #341B10;
  122. padding: 10px;
  123. margin: 10px;
  124. position: relative;
  125. .intro-label {
  126. background-image:
  127. url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/guzhenganzi/label.png");
  128. /* 使用绝对路径 */
  129. background-size: contain;
  130. background-repeat: no-repeat;
  131. width: 220rpx;
  132. height: 120rpx;
  133. position: absolute;
  134. margin-top: -70rpx;
  135. align-content: center;
  136. .label-title {
  137. font-weight: bold;
  138. font-size: 30rpx;
  139. color: #341B10;
  140. text-align: center;
  141. margin-left: 10px;
  142. height: 120rpx;
  143. line-height: 110rpx;
  144. }
  145. }
  146. .intro-content {
  147. font-size: 28rpx;
  148. color: #5c4322;
  149. line-height: 1.8;
  150. margin: 20rpx 0px;
  151. text-align: justify;
  152. height: 38vh;
  153. }
  154. }
  155. }
  156. .company-img {
  157. width: 160rpx;
  158. height: 160rpx;
  159. border-radius: 12rpx;
  160. object-fit: cover;
  161. margin-top: 10rpx;
  162. background: #eee;
  163. border-radius: 80rpx;
  164. }
  165. .touxiang {
  166. height: 120px;
  167. align-content: center;
  168. justify-content: center;
  169. text-align: center;
  170. }
  171. .tubiao{
  172. background-size: cover;
  173. /* 确保背景图片自适应填充整个容器 */
  174. background-position: center;
  175. /* 背景图片居中显示 */
  176. background-repeat: no-repeat;
  177. /* 防止背景图重复 */
  178. height: 100rpx;
  179. width: 100%;
  180. }
  181. </style>