evaluateDetail.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. <template>
  2. <!--<view class="container">
  3. <view class="tui-evaluate__box">
  4. <view class="tui-flex__center">
  5. <image src="/static/images/news/avatar_1.jpg" class="tui-avatar"></image>
  6. <view class="tui-nickname">不许人间见白头</view>
  7. </view>
  8. <view class="tui-content__box">
  9. <view class="tui-rate__box">
  10. <tui-rate :current="5" :size="14"></tui-rate>
  11. <text>2020-06-21</text>
  12. </view>
  13. <view class="tui-desc">
  14. 收到大大惊喜了下,真的好可爱,很温顺,给兽医检查了下,猫很正常,店家打好了防疫针,这点很赞,很满意!
  15. </view>
  16. <view class="tui-img__box">
  17. <image src="https://thorui.cn/images/mall/cat_1.jpg" mode="aspectFill"></image>
  18. <image src="https://thorui.cn/images/mall/cat_2.jpg" mode="aspectFill"></image>
  19. <image src="https://thorui.cn/images/mall/cat_2.jpg" mode="aspectFill"></image>
  20. </view>
  21. <view class="tui-op__box tui-flex__center">
  22. <view class="tui-specs">双血统;公母随机</view>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="tui-reply__box tui-scroll__box">
  27. <tui-list-cell padding="25rpx" :hover="false" :lineLeft="false">
  28. <view class="tui-reply__title tui-flex__center">
  29. 全部评论<text>(18)</text>
  30. </view>
  31. </tui-list-cell>
  32. <tui-list-cell padding="25rpx" :hover="false">
  33. <view class="tui-flex__center tui-pr__30">
  34. <image src="/static/images/news/avatar_1.jpg" class="tui-avatar"></image>
  35. <view class="tui-nickname">卖家店小二</view>
  36. <view class="tui-op-item">
  37. <text>666</text>
  38. <tui-icon name="agree" :size="34" unit="rpx" color="#333"></tui-icon>
  39. </view>
  40. </view>
  41. <view class="tui-content__box tui-reply__box">
  42. <view class="tui-desc" @tap="reply">
  43. 感谢您的评价,祝您购猫愉快!如果觉得好可以推荐给身边的朋友哦!
  44. </view>
  45. </view>
  46. </tui-list-cell>
  47. <block v-for="(item,index) in 4" :key="index">
  48. <tui-list-cell padding="25rpx" :hover="false">
  49. <view class="tui-flex__center tui-pr__30">
  50. <image src="/static/images/news/avatar_1.jpg" class="tui-avatar"></image>
  51. <view class="tui-nickname">{{index%2==0?'Mocha':'AS***2'}}</view>
  52. <view class="tui-op-item">
  53. <text>12</text>
  54. <tui-icon name="agree" :size="34" unit="rpx" color="#333"></tui-icon>
  55. </view>
  56. </view>
  57. <view class="tui-content__box tui-reply__box">
  58. <view class="tui-quote__box" v-if="index%2===0">
  59. <text class="tui-color__link">AS***2:</text>
  60. <text>猫咪很活泼可爱,刚开始回来有点怕人,不知道是否健康!</text>
  61. </view>
  62. <view class="tui-desc" @tap="reply">
  63. {{index%2===0?'发货非常快,猫咪很可爱,健康,服务非常好。':'猫咪很活泼可爱,刚开始回来有点怕人,不知道是否健康!'}}
  64. </view>
  65. </view>
  66. </tui-list-cell>
  67. </block>
  68. </view>
  69. <view class="tui-pullup__box">
  70. <tui-divider gradual width="50%">没有更多了</tui-divider>
  71. </view>
  72. <view class="tui-tabbar">
  73. <view class="tui-tabbar__box">
  74. <view class="tui-input tui-flex__center" @tap="reply">说点什么呗~</view>
  75. <view class="tui-tabbar__right">
  76. <view class="tui-op-item">
  77. <text>12</text>
  78. <tui-icon name="agree" :size="34" unit="rpx" color="#333"></tui-icon>
  79. </view>
  80. <view class="tui-op-item" @tap="scrollToReply">
  81. <text>42</text>
  82. <tui-icon name="message" :size="40" unit="rpx" color="#333"></tui-icon>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>-->
  88. </template>
  89. <script>
  90. export default {
  91. data() {
  92. return {
  93. top: 100
  94. }
  95. },
  96. onLoad() {
  97. //请求数据成功之后执行
  98. setTimeout(() => {
  99. const query = uni.createSelectorQuery().in(this);
  100. query.select('.tui-scroll__box').boundingClientRect((res) => {
  101. if (res) {
  102. this.top = res.top;
  103. }
  104. }).exec()
  105. }, 1000)
  106. },
  107. methods: {
  108. reply() {
  109. this.tui.href('/pages/evaluateReply/evaluateReply')
  110. },
  111. scrollToReply() {
  112. uni.pageScrollTo({
  113. scrollTop: this.top,
  114. duration: 100
  115. })
  116. }
  117. },
  118. /**
  119. * 页面相关事件处理函数--监听用户下拉动作
  120. */
  121. onPullDownRefresh: function() {
  122. setTimeout(() => {
  123. uni.stopPullDownRefresh()
  124. }, 200);
  125. },
  126. }
  127. </script>
  128. <style>
  129. .container {
  130. padding-bottom: 100rpx;
  131. }
  132. .tui-evaluate__box {
  133. width: 100%;
  134. padding: 25rpx;
  135. box-sizing: border-box;
  136. background-color: #ffffff;
  137. box-shadow: 0 3rpx 20rpx rgba(183, 183, 183, 0.1);
  138. overflow: hidden;
  139. margin-top: 20rpx;
  140. }
  141. .tui-flex__center {
  142. display: flex;
  143. align-items: center;
  144. }
  145. .tui-avatar {
  146. width: 64rpx;
  147. height: 64rpx;
  148. border-radius: 50%;
  149. }
  150. .tui-nickname {
  151. font-size: 28rpx;
  152. padding-left: 12rpx;
  153. }
  154. .tui-content__box {
  155. width: 100%;
  156. padding: 0 30rpx 0 76rpx;
  157. box-sizing: border-box;
  158. }
  159. .tui-rate__box {
  160. width: 100%;
  161. display: flex;
  162. justify-content: space-between;
  163. align-items: center;
  164. font-size: 24rpx;
  165. color: #999;
  166. padding: 12rpx 0 20rpx;
  167. }
  168. .tui-desc {
  169. font-size: 28rpx;
  170. word-break: break-all;
  171. text-align: justify;
  172. }
  173. .tui-img__box {
  174. width: 100%;
  175. font-size: 0;
  176. padding-top: 4rpx;
  177. }
  178. .tui-img__box image {
  179. width: 180rpx;
  180. height: 180rpx;
  181. margin-right: 12rpx;
  182. margin-top: 12rpx;
  183. }
  184. .tui-image {
  185. width: 360rpx !important;
  186. height: auto;
  187. }
  188. .tui-op__box {
  189. width: 100%;
  190. padding-top: 24rpx;
  191. }
  192. .tui-op-item {
  193. display: flex;
  194. align-items: center;
  195. margin-left: auto;
  196. flex-shrink: 0;
  197. font-size: 24rpx;
  198. }
  199. .tui-op-item text {
  200. padding-right: 6rpx;
  201. }
  202. .tui-specs {
  203. font-size: 24rpx;
  204. color: #999;
  205. font-weight: 400;
  206. word-break: break-all;
  207. }
  208. .tui-color-red {
  209. color: #EB0909;
  210. }
  211. .tui-reply__box {
  212. padding-top: 20rpx;
  213. }
  214. .tui-reply__title {
  215. font-size: 30rpx;
  216. font-weight: bold;
  217. }
  218. .tui-reply__title text {
  219. font-size: 26rpx;
  220. font-weight: 400;
  221. color: #999;
  222. }
  223. .tui-color__link {
  224. color: #586c94;
  225. }
  226. .tui-quote__box {
  227. background-color: #F8F8F8;
  228. color: #999;
  229. font-size: 24rpx;
  230. padding: 16rpx;
  231. box-sizing: border-box;
  232. border-radius: 4rpx;
  233. margin-bottom: 20rpx;
  234. }
  235. .tui-pr__30 {
  236. padding-right: 30rpx;
  237. }
  238. .tui-tabbar {
  239. width: 100%;
  240. height: 100rpx;
  241. position: fixed;
  242. z-index: 996;
  243. left: 0;
  244. bottom: 0;
  245. background-color: #fff;
  246. padding-bottom: constant(safe-area-inset-bottom);
  247. padding-bottom: env(safe-area-inset-bottom);
  248. box-sizing: content-box;
  249. }
  250. .tui-tabbar::before {
  251. content: ' ';
  252. width: 100%;
  253. border-top: 1px solid #b2b2b2;
  254. position: absolute;
  255. top: 0;
  256. left: 0;
  257. transform: scaleY(0.5) translateZ(0);
  258. transform-origin: 0 0;
  259. z-index: 3;
  260. }
  261. .tui-tabbar__box {
  262. width: 100%;
  263. height: 100rpx;
  264. padding: 0 30rpx;
  265. box-sizing: border-box;
  266. display: flex;
  267. align-items: center;
  268. justify-content: space-between;
  269. }
  270. .tui-input {
  271. width: 60%;
  272. height: 70rpx;
  273. background-color: #F8F8F8;
  274. color: #999;
  275. font-size: 24rpx;
  276. border-radius: 70px;
  277. padding: 0 20rpx;
  278. box-sizing: border-box;
  279. }
  280. .tui-tabbar__right {
  281. width: 40%;
  282. flex-shrink: 0;
  283. display: flex;
  284. align-items: center;
  285. justify-content: space-between;
  286. }
  287. .tui-tabbar__right .tui-op-item {
  288. width: 50%;
  289. justify-content: flex-end;
  290. }
  291. .tui-pullup__box {
  292. padding-bottom: constant(safe-area-inset-bottom);
  293. padding-bottom: env(safe-area-inset-bottom);
  294. }
  295. </style>