details.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <template>
  2. <view>
  3. <!--标题栏-->
  4. <bar-title bgColor="bg-white" isBack>
  5. <block slot="content">小资生活神器</block>
  6. <block slot="right">
  7. <text class="cuIcon-forward"/>
  8. </block>
  9. </bar-title>
  10. <!--文章标题-->
  11. <view class="text-black text-bold text-lg zaiui-title">提升幸福感的居家好物</view>
  12. <view class="text-gray text-sm text-right margin-lr zaiui-right-text">
  13. <text>浏览38439</text>
  14. <text>关注38439</text>
  15. </view>
  16. <!--内容区域,此处只做模板演示,不做富文本解析功能。可自行更换为富文本解析。-->
  17. <view class="content-view-box">
  18. <view class="font-view">
  19. 早买早享受,细数宅家必备的那些提升幸福感的小家电!
  20. 随着现在人们的生活水平逐渐提高,人们对自己的生活质
  21. 量也越来越重视。大部分都希望自己生活在一个幸福,健
  22. 康,卫生,高质量,高品质又充满快乐的一个环境中。
  23. </view>
  24. <view class="font-view">
  25. 不过想要提高自己的幸福指数,并不是只能靠一些奢侈而
  26. 又华贵的家具。今天小编就给大家分享-些小编自己爱不
  27. 释手同时又好用不贵,方便实惠的居家好物,希望能够帮
  28. 助大家提升居家幸福感!
  29. </view>
  30. <view class="font-view">
  31. <image src="/static/images/home/goods/13.png" mode="widthFix"/>
  32. </view>
  33. <view class="font-view">
  34. 想不想在每天早上都拥有可口的早餐呢,那就快入手这款
  35. 三明治机吧,十分的简单、方便、好操作。不仅节省了很
  36. 多时间,长期来看也节省了不少金钱成本!轻松按一下就
  37. 可以拥有可口美味的早餐啦!
  38. </view>
  39. <image src="/static/images/home/goods/10.png" mode="widthFix"/>
  40. </view>
  41. <view class="zaiui-hight-view"/>
  42. <!--评论头部-->
  43. <view class="cu-bar bg-white solid-bottom">
  44. <view class="action">
  45. <text class="text-black text-lg">全部评论 75</text>
  46. </view>
  47. <view class="action">
  48. <view class="text-red">
  49. <text class="cuIcon-hot"/>
  50. <text class="margin-left-xs">按热度</text>
  51. </view>
  52. <view class="margin-left">
  53. <text class="cuIcon-time"/>
  54. <text class="margin-left-xs">按时间</text>
  55. </view>
  56. </view>
  57. </view>
  58. <!--评论区域-->
  59. <view class="zaiui-comment-box">
  60. <view class="zaiui-view-box">
  61. <view class="flex flex-wrap">
  62. <view class="basis-1">
  63. <view class="cu-avatar round" style="background-image:url(/static/images/avatar/1.jpg)"/>
  64. </view>
  65. <view class="basis-9">
  66. <view class="text-black">仔仔</view>
  67. <view class="text-gray text-sm tag-text">
  68. <text>第4楼</text>
  69. <text>1天前</text>
  70. </view>
  71. <view class="margin-tb">X真的是我觉得性价比最高的机器了,大小合适,全面屏操作流畅,灰色也很漂亮,超喜欢</view>
  72. </view>
  73. </view>
  74. <view class="text-lg text-gray text-right tools-icon-view">
  75. <text class="cuIcon-comment"/>
  76. <text class="cuIcon-appreciate">20</text>
  77. </view>
  78. </view>
  79. <view class="zaiui-border-view"/>
  80. <view class="zaiui-view-box">
  81. <view class="flex flex-wrap">
  82. <view class="basis-1">
  83. <view class="cu-avatar round" style="background-image:url(/static/images/avatar/2.jpg)"/>
  84. </view>
  85. <view class="basis-9">
  86. <view class="text-black">仔仔</view>
  87. <view class="text-gray text-sm tag-text">
  88. <text>第3楼</text>
  89. <text>2天前</text>
  90. </view>
  91. <view class="margin-tb">X真的是我觉得性价比最高的机器了,大小合适,全面屏操作流畅,灰色也很漂亮,超喜欢</view>
  92. </view>
  93. </view>
  94. <view class="text-lg text-gray text-right tools-icon-view">
  95. <text class="cuIcon-comment"/>
  96. <text class="cuIcon-appreciate">4</text>
  97. </view>
  98. </view>
  99. <view class="zaiui-border-view"/>
  100. <view class="zaiui-view-box">
  101. <view class="flex flex-wrap">
  102. <view class="basis-1">
  103. <view class="cu-avatar round" style="background-image:url(/static/images/avatar/3.jpg)"/>
  104. </view>
  105. <view class="basis-9">
  106. <view class="text-black">仔仔</view>
  107. <view class="text-gray text-sm tag-text">
  108. <text>第2楼</text>
  109. <text>3天前</text>
  110. </view>
  111. <view class="margin-tb">X真的是我觉得性价比最高的机器了,大小合适,全面屏操作流畅,灰色也很漂亮,超喜欢</view>
  112. </view>
  113. </view>
  114. <view class="text-lg text-gray text-right tools-icon-view">
  115. <text class="cuIcon-comment"/>
  116. <text class="cuIcon-appreciate">6</text>
  117. </view>
  118. </view>
  119. </view>
  120. <view class="foot-hight-view"/>
  121. <view class="bg-white zaiui-footer-fixed zaiui-foot-padding-bottom">
  122. <view class="flex flex-direction">
  123. <button class="cu-btn bg-red">我也有话说</button>
  124. </view>
  125. </view>
  126. </view>
  127. </template>
  128. <script>
  129. import barTitle from '@/components/zaiui-common/basics/bar-title';
  130. import _tool from '@/static/zaiui/util/tools.js'; //工具函数
  131. export default {
  132. components: {
  133. barTitle
  134. },
  135. data() {
  136. return {
  137. bg_img: '/static/images/home/goods/1.png', content: {},
  138. }
  139. },
  140. onLoad() {
  141. },
  142. onReady() {
  143. _tool.setBarColor(true);
  144. uni.pageScrollTo({
  145. scrollTop: 0,
  146. duration: 0
  147. });
  148. },
  149. methods: {
  150. }
  151. }
  152. </script>
  153. <style lang="scss">
  154. /* #ifdef APP-PLUS */
  155. @import "../../static/colorui/main.css";
  156. @import "../../static/colorui/icon.css";
  157. @import "../../static/zaiui/style/app.scss";
  158. /* #endif */
  159. page {
  160. background: #FFFFFF;
  161. }
  162. .zaiui-title {
  163. margin: 36.36upx 27.27upx;
  164. }
  165. .zaiui-right-text {
  166. text {
  167. position: relative;
  168. }
  169. text + text {
  170. margin-left: 18.18upx;
  171. &:after {
  172. content: ' ';
  173. position: absolute;
  174. width: 2upx;
  175. height: 18.18upx;
  176. border-left: 2upx solid;
  177. top: 3.63upx;
  178. left: -9.09upx;
  179. }
  180. }
  181. }
  182. .content-view-box {
  183. position: relative;
  184. .font-view {
  185. padding: 27.27upx;
  186. line-height: 1.7;
  187. }
  188. image {
  189. width: 100%;
  190. }
  191. }
  192. .zaiui-hight-view {
  193. width: 100%;
  194. height: 36.36upx;
  195. background: #FAFAFA;
  196. }
  197. .solid-bottom::after {
  198. border-bottom: 2upx solid rgba(0, 0, 0, 0.1);
  199. }
  200. .zaiui-view-box {
  201. position: relative;
  202. padding: 18.18upx 27.27upx;
  203. .flex {
  204. .basis-1 {
  205. flex-basis: 10%;
  206. }
  207. .basis-9 {
  208. flex-basis: 90%;
  209. }
  210. }
  211. }
  212. .zaiui-comment-box {
  213. .zaiui-border-view {
  214. position: relative;
  215. background: #efebeb;
  216. margin: 18.18upx 27.27upx;
  217. height: 2upx;
  218. }
  219. .basis-9 {
  220. padding-left: 18.18upx;
  221. }
  222. .tag-text {
  223. position: relative;
  224. text {
  225. position: relative;
  226. }
  227. text + text {
  228. margin-left: 18.18upx;
  229. &:after {
  230. content: ' ';
  231. position: absolute;
  232. width: 2upx;
  233. height: 18.18upx;
  234. border-left: 2upx solid;
  235. top: 3.63upx;
  236. left: -9.09upx;
  237. }
  238. }
  239. }
  240. .tools-icon-view {
  241. .cuIcon-comment:before,.cuIcon-appreciate:before {
  242. position: relative;
  243. margin-right: 9.09upx;
  244. font-size: 40upx;
  245. top: 3.63upx;
  246. }
  247. text + text {
  248. margin-left: 36.36upx;
  249. }
  250. }
  251. }
  252. .zaiui-footer-fixed {
  253. box-shadow: 0 -3.63upx 10.9upx 0 #eaeaea;
  254. .flex-direction {
  255. padding: 18.18upx 27.27upx;
  256. }
  257. }
  258. .foot-hight-view {
  259. width: 100%;
  260. height: 154.54upx;
  261. background: #FAFAFA;
  262. }
  263. </style>