index.vue 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. <template>
  2. <view class="topic">
  3. <view class="tit-box">
  4. <text class="tit-tit">咸蛋黄酱,这是什么神仙食物</text>
  5. <view class="author">
  6. <van-icon class='icon' name="/static/imgs/zz.png" size="26rpx" />
  7. <text class="tit-author">幸福天使&ensp;&ensp;{{new Date().toJSON().slice(0,10)}}</text>
  8. </view>
  9. <swiper class="swiper-box" :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000" circular>
  10. <swiper-item v-for="(item,index) in 3" :key='index'>
  11. <image class="swiper-image" src="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg"
  12. mode="aspectFit" :draggable="false" />
  13. </swiper-item>
  14. </swiper>
  15. <text class="tit-text">\t&ensp;&ensp;&ensp;&ensp;不管什么零食,沾上了“咸蛋黄”三个字就让人无法自拔,总是舔完手指还觉得不满足。最近集市上了款咸蛋黄酱,可以一勺一勺挖着吃,吃过的人都表示,这是什么神仙食物啊!同事告诉我,这一罐等于12颗咸蛋黄,只用正宗高邮咸鸭蛋,腌制30天以上的,所以吃起来才这么油亮粉沙、咸香浓郁。咸蛋黄酱是百搭食材,炒什么都好吃,还可以当做各种蘸料。甚至搭配米饭,不用其他多余的东西,一勺就能干掉半碗饭。自从这么吃过一回后,它的地位已经和我最爱的韩式拌饭不相上下了。好吃不贵,记得多买两罐,以免吃完还想吃。
  16. &ensp;&ensp;&ensp;&ensp;最近集市上了款咸蛋黄酱,可以一勺一勺挖着吃,吃过的人都表示,这是什么神仙食物啊!同事告诉我,这一罐等于12颗咸蛋黄,只用正宗高邮咸鸭蛋,腌制30天以上的,所以吃起来才这么油亮粉沙、咸香浓郁。咸蛋黄酱是百搭食材,炒什么都好吃,还可以当做各种蘸料。甚至搭配米饭,不用其他多余的东西,一勺就能干掉半碗饭。自从这么吃过一回后,它的地位已经和我最爱的韩式拌饭不相上下了。好吃不贵,记得多买两罐,以免吃完还想吃。`</text>
  17. </view>
  18. <view class="productList">
  19. <view v-for="(item,index) in 3" :key='index' class="productItem">
  20. <image class="productList-image" src="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg"
  21. mode="aspectFit" :draggable="false" />
  22. <view class="productList-right">
  23. <text class="tit">流水咸蛋黄酱210克</text>
  24. <text class="des">细腻流沙,香浓咸鲜</text>
  25. <text class="price">¥19.00 </text>
  26. <button class="btn">去购买</button>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="share">
  31. <button class="btn">
  32. <van-icon class='icon' name="/static/imgs/share.png" size="26px" />
  33. 分享给好友</button>
  34. </view>
  35. <view class="comment">
  36. <view class="comment-tit">
  37. <text class="tit-left">精选评论</text>
  38. <text class="tit-right">全部评论 ></text>
  39. </view>
  40. <view v-for="(item,index) in 3" :key='index' class="comment-list">
  41. <view class="comment-user">
  42. <image class="user-ava" src="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg"
  43. mode=""></image>
  44. <view class="user-right">
  45. <text class="user-name">终极吃货</text>
  46. <view class="user-des">
  47. <text class="time">{{new Date().toJSON()}}</text>
  48. <text class="up">100点赞</text>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="comment-des">
  53. <text>咸蛋黄酱是百搭食材,炒什么都好吃,还可以当做各种蘸料。自从这么吃过一回后,它的地位已经和我最爱的韩式拌饭不相上下了。</text>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. </template>
  59. <script>
  60. </script>
  61. <style lang="scss" scoped>
  62. .topic {
  63. background: #F5F5F5;
  64. }
  65. .tit-box {
  66. display: flex;
  67. flex-direction: column;
  68. background: #FFFFFF;
  69. padding: 30rpx;
  70. .tit-tit {
  71. height: 46rpx;
  72. font-size: 44rpx;
  73. font-family: PingFang SC;
  74. font-weight: bold;
  75. color: #000000;
  76. margin-bottom: 24rpx;
  77. }
  78. .author {
  79. display: flex;
  80. align-items: center;
  81. margin-bottom: 43rpx;
  82. .tit-author {
  83. font-size: 26rpx;
  84. font-family: PingFang SC;
  85. font-weight: 400;
  86. color: #666666;
  87. margin-left: 5rpx;
  88. }
  89. }
  90. .swiper-box {
  91. width: 680rpx;
  92. height: 382.5rpx;
  93. margin-bottom: 30rpx;
  94. background-color: #000000;
  95. .swiper-image {
  96. width: 100%;
  97. height: 100%;
  98. }
  99. }
  100. .tit-text {
  101. font-size: 32rpx;
  102. font-family: PingFang SC;
  103. font-weight: 400;
  104. color: #0F0404;
  105. line-height: 48rpx;
  106. }
  107. }
  108. .productList {
  109. margin-top: 20rpx;
  110. background: #FFFFFF;
  111. margin-bottom: 30rpx;
  112. padding: 0 30rpx;
  113. .productItem {
  114. display: flex;
  115. justify-content: flex-start;
  116. align-items: center;
  117. padding: 30rpx 0;
  118. border-bottom: 1rpx solid #E8E8E8;
  119. &:last-child {
  120. border-bottom: none !important;
  121. }
  122. .productList-image {
  123. flex-shrink: 0;
  124. width: 220rpx;
  125. height: 220rpx;
  126. border-radius: 10rpx;
  127. background-color: #C8C7CC;
  128. }
  129. .productList-right {
  130. box-sizing: border-box;
  131. padding: 20rpx;
  132. width: 470rpx;
  133. display: flex;
  134. flex-direction: column;
  135. .tit {
  136. height: 30rpx;
  137. font-size: 30rpx;
  138. font-family: PingFang SC;
  139. font-weight: 400;
  140. color: #0F0404;
  141. margin-bottom: 18rpx;
  142. }
  143. .des {
  144. height: 27rpx;
  145. font-size: 26rpx;
  146. font-family: PingFang SC;
  147. font-weight: 400;
  148. color: #666666;
  149. margin-bottom: 20rpx;
  150. }
  151. .price {
  152. height: 34rpx;
  153. font-size: 26rpx;
  154. font-family: Adobe Heiti Std;
  155. font-weight: normal;
  156. color: #E31818;
  157. margin-bottom: 31rpx;
  158. }
  159. .btn {
  160. width: 138rpx;
  161. height: 50rpx;
  162. background: linear-gradient(90deg, #E31818, #ED3E24, #ED4F24);
  163. border-radius: 25rpx;
  164. font-size: 26rpx;
  165. font-family: PingFang SC;
  166. font-weight: 400;
  167. color: #FFFFFF;
  168. line-height: 20rpx;
  169. margin: 0;
  170. display: flex;
  171. align-items: center;
  172. }
  173. }
  174. }
  175. }
  176. .share {
  177. margin-bottom: 30rpx;
  178. padding: 0 30rpx 10rpx;
  179. .btn {
  180. height: 100rpx;
  181. background: linear-gradient(90deg, #E31818, #ED3E24, #ED4F24);
  182. border-radius: 100rpx;
  183. font-size: 32rpx;
  184. font-family: PingFang SC;
  185. font-weight: 400;
  186. color: #FFFFFF;
  187. display: flex;
  188. align-items: center;
  189. justify-content: center;
  190. box-shadow: 0rpx 5rpx 10rpx #E31818;
  191. .icon {
  192. margin-right: 22rpx;
  193. }
  194. }
  195. }
  196. .comment {
  197. padding: 30rpx;
  198. background-color: #FFFFFF;
  199. .comment-tit {
  200. display: flex;
  201. justify-content: space-between;
  202. align-items: center;
  203. padding-bottom: 15rpx;
  204. .tit-left {
  205. border-left: 8rpx solid #E31818;
  206. font-size: 30rpx;
  207. line-height: 58rpx;
  208. padding: 0 11rpx;
  209. color: #0F0404;
  210. }
  211. .tit-right {
  212. font-size: 26rpx;
  213. color: #999999;
  214. line-height: 58rpx;
  215. padding: 11rpx;
  216. }
  217. }
  218. .comment-list {
  219. border-top: 1rpx solid #e8e8e8;
  220. padding-top: 32rpx;
  221. .comment-user {
  222. display: flex;
  223. align-items: center;
  224. .user-ava {
  225. width: 80rpx;
  226. height: 80rpx;
  227. border-radius: 50%;
  228. margin-right: 21rpx;
  229. }
  230. .user-right {
  231. flex: 1;
  232. display: flex;
  233. flex-direction: column;
  234. justify-content: space-between;
  235. height: 70rpx;
  236. .user-name {
  237. font-size: 26rpx;
  238. font-family: PingFang SC;
  239. font-weight: 400;
  240. color: #0F0404;
  241. line-height: 20rpx;
  242. }
  243. .user-des {
  244. display: flex;
  245. justify-content: space-between;
  246. font-size: 26rpx;
  247. font-family: PingFang SC;
  248. font-weight: 400;
  249. color: #999999;
  250. }
  251. }
  252. }
  253. .comment-des {
  254. font-size: 26rpx;
  255. font-family: PingFang SC;
  256. font-weight: 400;
  257. color: #666666;
  258. line-height: 39rpx;
  259. padding: 23rpx 0;
  260. }
  261. }
  262. }
  263. </style>