detail.vue 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. <template>
  2. <view class="page">
  3. <view class="swiper-sec">
  4. <swiper :indicator-dots="true" :autoplay="false" :interval="3000" :duration="1000" class="swiper">
  5. <swiper-item v-for="(item, idx) in 3" :key="idx" class="swiper-item">
  6. <view class="img-wrap"><image src="/static/temp/pro.png" mode="aspectFill" class="img"></image></view>
  7. </swiper-item>
  8. </swiper>
  9. <view class="ic-wrap align-center justify-center"><image src="/static/love-full.png" mode="aspectFill" class="ic"></image></view>
  10. </view>
  11. <view class="header-sec">
  12. <view class="flex-col name-wrap">
  13. <view class="flex-col">
  14. <view class="flex-row">
  15. <text class="text_2 clamp">幸福西饼Rice盲盒</text>
  16. <view class="text-wrapper text_3 clamp">仅剩3份</view>
  17. </view>
  18. <image
  19. src="/static/mangd-rarrow.png"
  20. class="image_8 image_9"
  21. />
  22. </view>
  23. <view class="align-center group_10">
  24. <view class="stars align-center">
  25. <image
  26. src="/static/mang_star.png"
  27. class="image_10"
  28. v-for="(item,idx) in 3"
  29. :key="idx"
  30. />
  31. </view>
  32. <text class="text_4">随机搭配</text>
  33. </view>
  34. </view>
  35. <view class="border-wrap"></view>
  36. <view class="flex-row time-wrap">
  37. <text class="text_5">自提时间</text>
  38. <text class="text_6">今天15:00~22:00</text>
  39. </view>
  40. <view class="border-wrap"></view>
  41. <view class="flex-col loc-wrap">
  42. <view class="flex-row justify-between items-start">
  43. <view class="flex-row">
  44. <image
  45. src="/static/temp/pro.png"
  46. class="image_12"
  47. mode="aspectFill"
  48. />
  49. <view class="flex-col items-start group_15">
  50. <text class="text_7 clamp">幸福西饼万达店</text>
  51. <text class="text_8 clamp2">河东区万达广场1F东门入口</text>
  52. </view>
  53. </view>
  54. <view class="flex-row group_16">
  55. <view class="flex-col items-center image-wrapper">
  56. <image
  57. src="/static/mangd-loc.png"
  58. class="image_13"
  59. mode="aspectFill"
  60. />
  61. </view>
  62. <view class="section_5"><!--*--></view>
  63. <view class="flex-col items-center image-wrapper view_3">
  64. <image
  65. src="/static/mang-phone.png"
  66. class="image_14"
  67. mode="aspectFill"
  68. />
  69. </view>
  70. </view>
  71. </view>
  72. <view class="group_17">
  73. <text class="text_9">距离您</text>
  74. <text class="text_10">864m</text>
  75. </view>
  76. </view>
  77. </view>
  78. <view class="line-wrap"></view>
  79. <view class="flex-col items-start tips-wrap">
  80. <text class="title">盲盒内能得到什么</text>
  81. <text class="text_12">随机获得四拼蛋糕,奶油慕斯蛋糕二选一<br/>精致蛋挞、南瓜蛋糕二选一</text>
  82. </view>
  83. <view class="line-wrap"></view>
  84. <view class="review-sec">
  85. <view class="title-wrap align-center justify-between">
  86. <text class="text_14">商品评价</text>
  87. <view class="flex-row group_21">
  88. <text class="text_15">查看全部</text>
  89. <image
  90. src="/static/mangd-rarrow.png"
  91. class="image_8 image_15"
  92. mode="aspectFill"
  93. />
  94. </view>
  95. </view>
  96. <view class="item-wrap flex-col" v-for="(item, idx) in 3" :key="idx">
  97. <view class="flex-row justify-between">
  98. <view class="flex-row">
  99. <image
  100. src="/static/temp/pro.png"
  101. class="image_16 image_22"
  102. mode="aspectFill"
  103. />
  104. <view class="flex-col items-start group_30">
  105. <text class="text_20 clamp">甜品大师姐</text>
  106. <text class="text_21">2022.07.13 10:56</text>
  107. </view>
  108. </view>
  109. <view class="stars align-center">
  110. <image
  111. src="/static/mang_star.png"
  112. class="image_10"
  113. v-for="(item,idx) in 3"
  114. :key="idx"
  115. />
  116. </view>
  117. </view>
  118. <view class="flex-col group_31">
  119. <view class="group_32">
  120. <text class="text_22">这是我吃过的最好吃的一款,强烈推荐,口感细腻,想象不到的美味。太好吃了。</text>
  121. </view>
  122. <view class="imgs-wrap align-center">
  123. <image
  124. src="/static/temp/pro.png"
  125. class="image_19 image_24"
  126. mode="aspectFill"
  127. v-for="(item,idx) in 6" :key="idx"
  128. @tap="previewImg(idx)"
  129. />
  130. </view>
  131. </view>
  132. </view>
  133. </view>
  134. <view class="line-wrap"></view>
  135. </view>
  136. </template>
  137. <script>
  138. export default {
  139. data() {
  140. return {};
  141. },
  142. methods:{
  143. previewImg(idx){
  144. let url = [];
  145. this.$tools.previewImg(url)
  146. }
  147. }
  148. };
  149. </script>
  150. <style lang="scss">
  151. .swiper-sec{
  152. position: relative;
  153. .swiper{
  154. width: 750rpx;
  155. height: 750rpx;
  156. .img-wrap{
  157. position: relative;
  158. &::after{
  159. content: '';
  160. position: absolute;
  161. left: 0;
  162. top: 0;
  163. width: 100%;
  164. height: 100%;
  165. background-color: rgba(0,0,0,.4);
  166. }
  167. }
  168. .img{
  169. width: 750rpx;
  170. height: 750rpx;
  171. }
  172. }
  173. .ic-wrap{
  174. position: absolute;
  175. z-index: 2;
  176. right: 0;
  177. bottom: 0;
  178. width: 118rpx;
  179. height: 94rpx;
  180. .ic{
  181. width: 54rpx;
  182. height: 54rpx;
  183. }
  184. }
  185. }
  186. .name-wrap {
  187. padding: 34rpx 31rpx 37rpx;
  188. .text_2 {
  189. margin: 7rpx 0 6rpx;
  190. color: #333333;
  191. font-size: 32rpx;
  192. font-family: PingFang;
  193. letter-spacing: 1.28rpx;
  194. max-width: 500rpx;
  195. }
  196. .text-wrapper {
  197. margin-left: 10rpx;
  198. padding: 10rpx 10rpx 11rpx;
  199. background-color: #92b99c;
  200. border-radius: 10rpx;
  201. height: 44rpx;
  202. max-width: 160rpx;
  203. }
  204. .text_3 {
  205. margin-left: 10rpx;
  206. margin-right: 5rpx;
  207. color: #ffffff;
  208. font-size: 24rpx;
  209. font-family: PingFang;
  210. // max-width: 110rpx;
  211. text-align: center;
  212. }
  213. .image_8 {
  214. width: 11rpx;
  215. height: 18rpx;
  216. }
  217. .image_9 {
  218. margin-right: 9rpx;
  219. flex-shrink: 0;
  220. align-self: flex-end;
  221. }
  222. .group_10 {
  223. margin-top: 6rpx;
  224. }
  225. .image_10 {
  226. width: 28rpx;
  227. height: 28rpx;
  228. margin-right: 4rpx;
  229. }
  230. .text_4 {
  231. margin-left: 20rpx;
  232. color: #999999;
  233. font-size: 24rpx;
  234. font-family: PingFang;
  235. }
  236. }
  237. .border-wrap{
  238. margin: 0 auto;
  239. width: 710rpx;
  240. height: 2rpx;
  241. background-color: #eee;
  242. }
  243. .time-wrap {
  244. padding: 40rpx 33rpx 39rpx;
  245. .text_5 {
  246. color: #333333;
  247. font-size: 28rpx;
  248. font-family: PingFang;
  249. letter-spacing: 1.12rpx;
  250. }
  251. .text_6 {
  252. margin-left: 28rpx;
  253. margin-top: 3rpx;
  254. color: #999999;
  255. font-size: 24rpx;
  256. font-family: PingFang;
  257. }
  258. }
  259. .loc-wrap {
  260. padding: 40rpx 30rpx 41rpx;
  261. .image_12 {
  262. margin-top: 5rpx;
  263. width: 68rpx;
  264. height: 68rpx;
  265. border-radius: 68rpx;
  266. }
  267. .group_15 {
  268. margin-left: 16rpx;
  269. }
  270. .text_7 {
  271. color: #333333;
  272. font-size: 30rpx;
  273. font-family: PingFang;
  274. max-width: 420rpx;
  275. }
  276. .text_8 {
  277. margin-top: 20rpx;
  278. color: #999999;
  279. font-size: 24rpx;
  280. font-family: PingFang;
  281. max-width: 420rpx;
  282. line-height: 36rpx;
  283. }
  284. .group_16 {
  285. margin-right: 20rpx;
  286. margin-top: 37rpx;
  287. }
  288. .image-wrapper {
  289. align-self: center;
  290. width: 28rpx;
  291. }
  292. .image_13 {
  293. width: 28rpx;
  294. height: 33rpx;
  295. }
  296. .section_5 {
  297. margin-left: 41rpx;
  298. background-color: #0000001a;
  299. width: 1rpx;
  300. height: 65rpx;
  301. }
  302. .view_3 {
  303. margin-left: 40rpx;
  304. }
  305. .image_14 {
  306. width: 28rpx;
  307. height: 28rpx;
  308. }
  309. .group_17 {
  310. margin-left: 3rpx;
  311. align-self: flex-start;
  312. line-height: 23rpx;
  313. margin-top: 10rpx;
  314. }
  315. .text_9 {
  316. color: #999999;
  317. font-size: 24rpx;
  318. font-family: PingFang;
  319. line-height: 23rpx;
  320. }
  321. .text_10 {
  322. color: #92b99c;
  323. font-size: 24rpx;
  324. font-family: PingFang;
  325. line-height: 19rpx;
  326. }
  327. }
  328. .line-wrap {
  329. background-color: #0000000f;
  330. height: 17rpx;
  331. }
  332. .tips-wrap {
  333. padding: 40rpx 32rpx;
  334. .title {
  335. color: #333333;
  336. font-size: 30rpx;
  337. font-family: PingFang;
  338. }
  339. .text_12 {
  340. margin-left: 4rpx;
  341. margin-top: 20rpx;
  342. color: #999999;
  343. font-size: 24rpx;
  344. font-family: PingFang;
  345. line-height: 36rpx;
  346. }
  347. }
  348. .review-sec{
  349. padding-top: 35rpx;
  350. }
  351. .title-wrap {
  352. height: 37rpx;
  353. margin-bottom: 10rpx;
  354. padding: 0 30rpx;
  355. .text_14 {
  356. color: #333333;
  357. font-size: 28rpx;
  358. font-family: PingFang;
  359. letter-spacing: 1.12rpx;
  360. }
  361. .group_21 {
  362. margin-right: 9rpx;
  363. }
  364. .text_15 {
  365. color: #999999;
  366. font-size: 24rpx;
  367. font-family: PingFang;
  368. }
  369. .image_8 {
  370. width: 11rpx;
  371. height: 18rpx;
  372. }
  373. .image_15 {
  374. margin-left: 11rpx;
  375. margin-bottom: 3rpx;
  376. flex-shrink: 0;
  377. }
  378. }
  379. .item-wrap {
  380. padding: 37rpx 33rpx 40rpx;
  381. .image_16 {
  382. width: 54rpx;
  383. height: 54rpx;
  384. border-radius: 54rpx;
  385. }
  386. .image_22 {
  387. margin-top: 4rpx;
  388. }
  389. .group_30 {
  390. margin-left: 20rpx;
  391. }
  392. .text_20 {
  393. color: #333333;
  394. font-size: 30rpx;
  395. font-family: PingFang;
  396. letter-spacing: 1.2rpx;
  397. max-width: 300rpx;
  398. }
  399. .text_21 {
  400. margin-top: 15rpx;
  401. color: #999999;
  402. font-size: 20rpx;
  403. font-family: PingFang;
  404. }
  405. .image_10 {
  406. width: 28rpx;
  407. height: 28rpx;
  408. margin-left: 4rpx;
  409. }
  410. .group_31 {
  411. margin: 13.5rpx 24rpx 0 7rpx;
  412. }
  413. .group_32 {
  414. line-height: 37rpx;
  415. }
  416. .text_22 {
  417. color: #333333;
  418. font-size: 26rpx;
  419. font-family: PingFang;
  420. line-height: 40rpx;
  421. letter-spacing: 1.04rpx;
  422. }
  423. .imgs-wrap{
  424. flex-wrap: wrap;
  425. .image_19 {
  426. width: 180rpx;
  427. height: 180rpx;
  428. margin-right: 20rpx;
  429. border-radius: 10rpx;
  430. margin-bottom: 20rpx;
  431. // &:nth-child(4n){
  432. // margin-right: 0;
  433. // }
  434. }
  435. .image_24 {
  436. margin-top: 16.5rpx;
  437. align-self: flex-start;
  438. }
  439. }
  440. }
  441. </style>