productServic.vue 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. <script setup>
  2. defineProps(['style']);
  3. import sheep from '@/sheep';
  4. const routerClick = (type) => {
  5. sheep.$router.go('/pages/index/category?type=' + type);
  6. };
  7. </script>
  8. <template>
  9. <view class="product-service">
  10. <view class="financial-product" @tap="routerClick(0)">
  11. <view class="product-content">
  12. <image class="product-icon" :src="sheep.$url.static('/static/home/1.png')" />
  13. <text class="title">金融产品</text>
  14. <text class="desc">金融咨询,风险评估</text>
  15. </view>
  16. <text class="view-btn">点击查看</text>
  17. <image class="product-bg" :src="sheep.$url.static('/static/home/2.png')" />
  18. </view>
  19. <view class="service-wrapper">
  20. <view class="lawyer-service" @tap="routerClick(2)">
  21. <view class="service-content">
  22. <text class="title">律师服务</text>
  23. <image class="service-icon" :src="sheep.$url.static('/static/home/3.png')" />
  24. </view>
  25. <text class="desc">轻松投资,稳创财富</text>
  26. <image class="service-bg" :src="sheep.$url.static('/static/home/4.png')" />
  27. </view>
  28. <view class="partner" @tap="routerClick(4)">
  29. <view class="partner-content">
  30. <text class="title">合作企业</text>
  31. <text class="desc">期待诚信,货真价实</text>
  32. <image class="partner-icon" :src="sheep.$url.static('/static/home/5.png')" />
  33. </view>
  34. <image class="partner-bg" :src="sheep.$url.static('/static/home/6.png')" />
  35. </view>
  36. </view>
  37. </view>
  38. </template>
  39. <style lang="scss" scoped>
  40. .product-service {
  41. display: flex;
  42. flex-direction: row;
  43. justify-content: center;
  44. align-items: flex-start;
  45. gap: 11px;
  46. position: relative;
  47. width: 100%;
  48. height: auto;
  49. min-height: 100%;
  50. .financial-product {
  51. position: relative;
  52. width: 158px;
  53. height: 179px;
  54. flex-shrink: 0;
  55. overflow: hidden;
  56. border-radius: 8px;
  57. background-color: #e8f3ff;
  58. display: flex;
  59. flex-direction: column;
  60. align-items: flex-start;
  61. isolation: isolate;
  62. .product-content {
  63. position: relative;
  64. width: 177px;
  65. height: 120px;
  66. display: flex;
  67. flex-direction: column;
  68. align-items: flex-start;
  69. z-index: 2;
  70. margin-top: -38px;
  71. margin-left: auto;
  72. margin-right: -35px;
  73. .product-icon {
  74. width: 120px;
  75. height: auto;
  76. position: absolute;
  77. top: 0;
  78. right: 0;
  79. bottom: 0;
  80. }
  81. .title {
  82. position: absolute;
  83. bottom: 33px;
  84. left: 0;
  85. font-size: 18px;
  86. font-family: 'PingFang SC';
  87. line-height: 25px;
  88. color: #333333;
  89. white-space: pre;
  90. }
  91. .desc {
  92. position: absolute;
  93. bottom: 12px;
  94. left: 0;
  95. font-size: 12px;
  96. font-family: 'PingFang SC';
  97. line-height: 17px;
  98. color: #666666;
  99. white-space: pre;
  100. }
  101. }
  102. .view-btn {
  103. display: flex;
  104. flex-direction: row;
  105. justify-content: center;
  106. align-items: center;
  107. padding: 4px 8px;
  108. gap: 2px;
  109. border-radius: 58px;
  110. background-color: #3a74f2;
  111. font-size: 12px;
  112. font-family: 'PingFang SC';
  113. line-height: 17px;
  114. color: #ffffff;
  115. white-space: pre;
  116. z-index: 1;
  117. position: relative;
  118. margin-top: 4px;
  119. margin-left: 16px;
  120. }
  121. .product-bg {
  122. width: 70px;
  123. height: 68px;
  124. position: absolute;
  125. right: -7px;
  126. bottom: 0;
  127. z-index: 0;
  128. }
  129. }
  130. .service-wrapper {
  131. width: 174px;
  132. height: 178px;
  133. display: flex;
  134. flex-direction: column;
  135. justify-content: center;
  136. align-items: flex-start;
  137. gap: 12px;
  138. flex-shrink: 0;
  139. position: relative;
  140. .lawyer-service {
  141. position: relative;
  142. width: 174px;
  143. height: 83px;
  144. flex-shrink: 0;
  145. overflow: hidden;
  146. border-radius: 8px;
  147. background-color: #e0f5f8;
  148. display: flex;
  149. flex-direction: column;
  150. align-items: flex-start;
  151. isolation: isolate;
  152. .service-content {
  153. position: relative;
  154. width: 166px;
  155. height: 95px;
  156. display: flex;
  157. flex-direction: column;
  158. align-items: flex-start;
  159. z-index: 1;
  160. margin-top: -48px;
  161. margin-left: auto;
  162. margin-right: -8px;
  163. .title {
  164. position: absolute;
  165. bottom: 4px;
  166. left: 0;
  167. font-size: 18px;
  168. font-family: 'PingFang SC';
  169. line-height: 25px;
  170. color: #333333;
  171. white-space: pre;
  172. }
  173. .service-icon {
  174. width: 95px;
  175. height: auto;
  176. position: absolute;
  177. top: 0;
  178. right: 0;
  179. bottom: 0;
  180. }
  181. }
  182. .desc {
  183. position: absolute;
  184. bottom: 19px;
  185. left: 16px;
  186. font-size: 12px;
  187. font-family: 'PingFang SC';
  188. line-height: 17px;
  189. color: #666666;
  190. white-space: pre;
  191. z-index: 0;
  192. }
  193. .service-bg {
  194. width: 50px;
  195. height: 55px;
  196. position: absolute;
  197. right: -8px;
  198. bottom: -4px;
  199. z-index: 2;
  200. }
  201. }
  202. .partner {
  203. position: relative;
  204. width: 174px;
  205. height: 83px;
  206. flex-shrink: 0;
  207. overflow: hidden;
  208. border-radius: 8px;
  209. background-color: #eeeffa;
  210. display: flex;
  211. flex-direction: column;
  212. align-items: flex-start;
  213. .partner-content {
  214. position: absolute;
  215. width: 181px;
  216. height: 118px;
  217. right: -23px;
  218. bottom: 19px;
  219. display: flex;
  220. flex-direction: column;
  221. align-items: flex-start;
  222. .title {
  223. position: absolute;
  224. bottom: 21px;
  225. left: 0;
  226. font-size: 18px;
  227. font-family: 'PingFang SC';
  228. line-height: 25px;
  229. color: #333333;
  230. white-space: pre;
  231. }
  232. .desc {
  233. position: absolute;
  234. bottom: 0;
  235. left: 0;
  236. font-size: 12px;
  237. font-family: 'PingFang SC';
  238. line-height: 17px;
  239. color: #666666;
  240. white-space: pre;
  241. }
  242. .partner-icon {
  243. width: 110px;
  244. height: auto;
  245. position: absolute;
  246. top: 0;
  247. right: 0;
  248. bottom: 8px;
  249. }
  250. }
  251. .partner-bg {
  252. width: 48px;
  253. height: 53px;
  254. position: absolute;
  255. right: -6.5px;
  256. bottom: -1px;
  257. }
  258. }
  259. }
  260. }
  261. </style>