建材商城系统20241014
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

320 lines
6.8 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. <template>
  2. <view class="page">
  3. <view class="red-top">
  4. <view class="building-title">
  5. <view class="title-right">
  6. 建材
  7. </view>
  8. <view class="title-left">
  9. 寻找你想要的建材材料
  10. </view>
  11. </view>
  12. <view class="building-search">
  13. <view class="address">
  14. <image src="../../static/image/home/1.png" mode=""></image>
  15. <view class="eare">
  16. <text>深圳</text>
  17. </view>
  18. <view class="down-arrow"></view>
  19. </view>
  20. <view class="search">
  21. <!-- DC2828 -->
  22. <uv-search bgColor="#ffffff" placeholder="搜索材料" inputAlign="left" height="70" showAction="false"></uv-search>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="image-home">
  27. <image src="../../static/image/home/2.png" mode=""></image>
  28. </view>
  29. <view class="building-class">
  30. <image src="../../static/image/home/3.png" mode=""></image>
  31. <image src="../../static/image/home/4.png" mode=""></image>
  32. <image src="../../static/image/home/5.png" mode=""></image>
  33. <image src="../../static/image/home/6.png" mode=""></image>
  34. </view>
  35. <view class="text-building">
  36. <text>XX建材</text>
  37. <text>XX建材</text>
  38. <text>XX建材</text>
  39. <text>XX建材</text>
  40. </view>
  41. <view class="hot-building">
  42. <text>热卖建材</text>
  43. <view class="new-message">
  44. 你有一条新的快捷下单信息
  45. </view>
  46. <view class="quick-order">
  47. <view class="number-order">
  48. 1
  49. </view>
  50. <image src="../../static/image/home/7.png" mode=""></image>
  51. </view>
  52. </view>
  53. <view class="shop-list">
  54. <view class="picture-shop">
  55. <image src="../../static/image/home/8.png" mode=""></image>
  56. </view>
  57. <view class="price-shop">
  58. <view class="top-shop">
  59. <text>泰山工装石膏板</text>
  60. <view class="tag-shop">
  61. <uv-tags text="建材材料" type="warning" plain size="mini"></uv-tags>
  62. <uv-tags text="快速下单" type="warning" plain size="mini"></uv-tags>
  63. </view>
  64. </view>
  65. <view class="bottom-price">
  66. <text style="font-size: 45rpx; ">38</text>.00/
  67. </view>
  68. </view>
  69. <view class="buy-shop">
  70. <uv-button :custom-style="customStyle" type="primary" shape="circle" text="立即购买" ></uv-button>
  71. </view>
  72. </view>
  73. <PrivacyAgreementPoup/>
  74. <tabber select="0"/>
  75. </view>
  76. </template>
  77. <script>
  78. import PrivacyAgreementPoup from '@/components/config/PrivacyAgreementPoup.vue'
  79. import tabber from '@/components/base/tabbar.vue'
  80. export default {
  81. components : {
  82. tabber,
  83. PrivacyAgreementPoup,
  84. },
  85. data() {
  86. return {
  87. keyword:''
  88. }
  89. },
  90. computed : {
  91. customStyle(){
  92. return{
  93. height: '60rpx',
  94. background: '#EB553B',
  95. color: '#fff',
  96. borderRadius: '40rpx' ,//圆角
  97. // nvue中必须是下方的写法
  98. 'border-top-right-radius': '40rpx',
  99. 'border-bottom-left-radius': '40rpx',
  100. 'border-bottom-right-radius': '40rpx'
  101. }
  102. }
  103. },
  104. methods: {
  105. }
  106. }
  107. </script>
  108. <style scoped lang="scss">
  109. .red-top{
  110. position: relative;
  111. height: 420rpx;
  112. background: $uni-color;
  113. border-bottom-left-radius: 100rpx;
  114. border-bottom-right-radius: 100rpx;
  115. z-index: -1;
  116. .building-title{
  117. position: absolute;
  118. height: 100rpx;
  119. width: 100%;
  120. margin-top: 100rpx;
  121. .title-right{
  122. color: $uni-bg-color;
  123. height: 100rpx;
  124. line-height: 100rpx;
  125. font-size: 45rpx;
  126. font-weight: 900;
  127. margin-left: 30rpx;
  128. display: inline-block;
  129. }
  130. .title-left{
  131. display: inline-block;
  132. margin-left: 30rpx;
  133. font-size: 22rpx;
  134. color: $uni-bg-color;
  135. }
  136. }
  137. .building-search{
  138. position: absolute;
  139. height: 100rpx;
  140. width: 100%;
  141. margin-top: 200rpx;
  142. // background-color: black;
  143. .address{
  144. height: 100rpx;
  145. width: 150rpx;
  146. position: relative;
  147. image{
  148. position: absolute;
  149. height: 20rpx;
  150. width: 15rpx;
  151. line-height: 20rpx;
  152. left: 20px;
  153. top: 42rpx;
  154. }
  155. .eare{
  156. width: 100rpx;
  157. height: 100rpx;
  158. line-height: 100rpx;
  159. margin-left:60rpx;
  160. color: $uni-bg-color;
  161. }
  162. .down-arrow:after {
  163. content: "";
  164. display: inline-block;
  165. width: 0;
  166. height: 0;
  167. border-left: 10rpx solid transparent;
  168. border-right: 10rpx solid transparent;
  169. border-top:15rpx solid $uni-bg-color;
  170. margin-top: 5rpx;
  171. position: absolute;
  172. top: 42rpx;
  173. left: 65px;
  174. }
  175. }
  176. .search{
  177. display: inline-block;
  178. position: absolute;
  179. top: 8px;
  180. left: 26%;
  181. width: 70%;
  182. }
  183. }
  184. }
  185. .image-home{
  186. z-index: 1;
  187. height: 350rpx;
  188. width: 100%;
  189. image{
  190. width: 95%;
  191. height: 100%;
  192. margin:auto;
  193. display: block;
  194. margin-top: -100rpx;
  195. }
  196. }
  197. .building-class{
  198. height: 150rpx;
  199. display: flex;
  200. justify-content: space-around;
  201. align-items: center; /* 垂直居中 */
  202. background-color: $uni-bg-color;
  203. image{
  204. margin-left: 20rpx;
  205. margin-right: 20rpx;
  206. margin-bottom: -30rpx;
  207. width: 100rpx;
  208. height: 100rpx;
  209. display: inline-block;
  210. }
  211. }
  212. .text-building{
  213. display: flex;
  214. justify-content: space-around;
  215. align-items: center; /* 垂直居中 */
  216. background-color: $uni-bg-color;
  217. text-align: center;
  218. font-weight: 500;
  219. margin-bottom: -30rpx;
  220. padding-bottom: 40rpx;
  221. // overflow: hidden;
  222. }
  223. .hot-building{
  224. margin-top: 50rpx;
  225. height: 100rpx;
  226. background-color: $uni-bg-color;
  227. display: flex;
  228. align-items: center;
  229. padding-left: 40rpx;
  230. font-size: 35rpx;
  231. font-weight: 400;
  232. .new-message{
  233. background-color: #DC2828;
  234. border-radius: 20rpx;
  235. font-size: 25rpx;
  236. color: $uni-bg-color;
  237. padding: 0 10rpx 0 10rpx;
  238. margin-left: 20rpx;
  239. }
  240. .quick-order{
  241. position: relative;
  242. width: 230rpx;
  243. height: 160rpx;
  244. margin-right: 0rpx;
  245. margin-top: 15rpx;
  246. image{
  247. width: 100%;
  248. height: 100%;
  249. }
  250. .number-order{
  251. background-color: #DC2828;
  252. position: absolute;
  253. font-size: 30rpx;
  254. height: 40rpx;
  255. width: 40rpx;
  256. text-align: center;
  257. border-radius: 20rpx;
  258. color: #ffffff;
  259. top: 10rpx;
  260. left: 25rpx;
  261. }
  262. }
  263. }
  264. .shop-list{
  265. width: 95%;
  266. height: 222rpx;
  267. display: flex;
  268. margin: 30rpx auto;
  269. background-color: #ffffff;
  270. border-radius: 20rpx;
  271. .picture-shop{
  272. width: 240rpx;
  273. height: 100%;
  274. display: flex;
  275. align-items: center;
  276. justify-content: center;
  277. image{
  278. width: 200rpx;
  279. height: 150rpx;
  280. }
  281. }
  282. .price-shop{
  283. width: 250rpx;
  284. height: 100%;
  285. .top-shop{
  286. height: 100rpx;
  287. width: 100%;
  288. font-size: 33rpx;
  289. margin-top: 30rpx;
  290. text-align: center;
  291. .tag-shop{
  292. display: flex;
  293. justify-content: space-around;
  294. }
  295. }
  296. .bottom-price{
  297. display: inline-block;
  298. color: #DC2828;
  299. height: 80rpx;
  300. width: 250rpx;
  301. line-height: 100rpx;
  302. }
  303. }
  304. .buy-shop{
  305. height: 100%;
  306. width: 250rpx;
  307. display: flex;
  308. justify-content: center;
  309. align-items: center;
  310. }
  311. }
  312. </style>