ygdetail.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. <template>
  2. <view class="content">
  3. <view class="yg-top">
  4. <image src="" mode="" class="yg-img"></image>
  5. <view class="yg-name">
  6. 李丹丹
  7. </view>
  8. <view class="star-wrap">
  9. <u-icon name="star-fill" color="#F3BE69" v-for="item in star*1" class="start" size="20rpx"></u-icon>
  10. <u-icon name="star-fill" color="#eee" v-for="itemt in (5-star*1)" class="start" size="20rpx"></u-icon>
  11. </view>
  12. </view>
  13. <view class="yg-info">
  14. <view class="info-line">
  15. <view class="left-name">
  16. <image src="" mode=""></image>
  17. <view class="">
  18. 累计服务
  19. </view>
  20. </view>
  21. <view class="info-val">
  22. 5595次
  23. </view>
  24. </view>
  25. <view class="info-line">
  26. <view class="left-name">
  27. <image src="" mode=""></image>
  28. <view class="">
  29. 从业年限
  30. </view>
  31. </view>
  32. <view class="info-val">
  33. 2年
  34. </view>
  35. </view>
  36. <view class="info-line" style="height: auto;border-bottom: none;">
  37. <view class="left-name">
  38. <image src="" mode=""></image>
  39. <view class="">
  40. 员工简介
  41. </view>
  42. </view>
  43. <view class="info-val" style="line-height: 1.5;padding-top: 20rpx;">
  44. 简介的详细内容,员工的服务介绍,优势说明简介。简
  45. 介的详细内容,员工的服务介绍,优势说明简介。简介的详细内容,员
  46. 工的服务介绍,优势说明简介。 简介的详细内容,员工的服务介绍,优势说明简介。简
  47. 介的详细内容,员工的服务介绍,优势说明简介。简介的详细内容,员
  48. 工的服务介绍,优势说明简介。
  49. </view>
  50. </view>
  51. </view>
  52. <view class="pj-tit">
  53. 服务评价
  54. </view>
  55. <scroll-view scroll-y="true" :style="{'height': height}" class="swiper-box">
  56. <view class="pj-wrap" v-for="item in pjlist">
  57. <view class="pj-user">
  58. <view class="user-logo">
  59. </view>
  60. <view class="user-info">
  61. <view class="user-name">
  62. 李丹丹
  63. </view>
  64. <view class="star-wrap">
  65. <u-icon name="star-fill" color="#E02E24" v-for="item in star*1" class="start" size="20rpx"></u-icon>
  66. <u-icon name="star-fill" color="#999999" v-for="itemt in (5-star*1)" class="start" size="20rpx"></u-icon>
  67. </view>
  68. </view>
  69. <view class="pj-time">
  70. 2022-07-06
  71. </view>
  72. </view>
  73. <view class="pj-info">
  74. 服务很好!!!服务很好!!!服务很好!!!服务很好!!!
  75. 服务很好!!!
  76. </view>
  77. </view>
  78. </scroll-view>
  79. </view>
  80. </template>
  81. <script>
  82. export default {
  83. data() {
  84. return {
  85. star: 3,
  86. height: '',
  87. pjlist: 10,
  88. }
  89. },
  90. onLoad() {
  91. },
  92. onShow() {
  93. },
  94. onReachBottom() {
  95. },
  96. onReady() {
  97. var _this = this;
  98. uni.getSystemInfo({
  99. success: resu => {
  100. const query = uni.createSelectorQuery();
  101. query.select('.swiper-box').boundingClientRect();
  102. query.exec(function(res) {
  103. _this.height = resu.windowHeight - res[0].top + 'px';
  104. console.log('打印页面的剩余高度', _this.height);
  105. });
  106. },
  107. fail: res => {}
  108. });
  109. },
  110. methods: {
  111. }
  112. }
  113. </script>
  114. <style lang="scss">
  115. page {
  116. background-color: #fff;
  117. }
  118. .yg-top {
  119. height: 326rpx;
  120. width: 100%;
  121. // color: #262261;
  122. background-color: #262261;
  123. position: relative;
  124. .yg-img {
  125. position: absolute;
  126. width: 120rpx;
  127. height: 120rpx;
  128. border-radius: 50%;
  129. top: 96rpx;
  130. left: 43rpx;
  131. background-color: #eee;
  132. }
  133. .yg-name {
  134. position: absolute;
  135. font-size: 36rpx;
  136. font-weight: 500;
  137. color: #FFFFFF;
  138. top: 115rpx;
  139. left: 185rpx;
  140. }
  141. .star-wrap {
  142. position: absolute;
  143. top: 170rpx;
  144. left: 185rpx;
  145. display: flex;
  146. justify-content: flex-start;
  147. .start {
  148. margin-right: 10rpx;
  149. }
  150. }
  151. }
  152. .yg-info {
  153. margin: -78rpx auto 20rpx;
  154. position: relative;
  155. width: 694rpx;
  156. padding-bottom: 10rpx;
  157. // height: 299rpx;
  158. background: #FFFFFF;
  159. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  160. border-radius: 10rpx;
  161. .info-line {
  162. border-bottom: 1px solid #F8F8F8;
  163. font-size: 20rpx;
  164. font-weight: 500;
  165. color: #666666;
  166. height: 72rpx;
  167. line-height: 72rpx;
  168. display: flex;
  169. .info-val {
  170. flex-grow: 1;
  171. }
  172. }
  173. }
  174. .left-name {
  175. flex-shrink: 0;
  176. height: 72rpx;
  177. width: 165rpx;
  178. display: flex;
  179. justify-content: flex-end;
  180. align-items: center;
  181. font-size: 25rpx;
  182. font-weight: bold;
  183. color: #101010;
  184. padding-right: 10rpx;
  185. image {
  186. width: 28rpx;
  187. height: 28rpx;
  188. margin-right: 15rpx;
  189. background-color: #eee;
  190. }
  191. }
  192. .pj-tit {
  193. font-size: 30rpx;
  194. font-weight: bold;
  195. color: #101010;
  196. padding: 26rpx;
  197. }
  198. .pj-wrap {
  199. width: 100%;
  200. min-height: 244rpx;
  201. border-bottom:#f5f5f5 1rpx solid;
  202. background-color: #fff;
  203. padding: 30rpx;
  204. .pj-user {
  205. display: flex;
  206. align-items: center;
  207. height: 75rpx;
  208. .user-logo {
  209. width: 75rpx;
  210. height: 75rpx;
  211. background-color: #eee;
  212. border-radius: 50%;
  213. margin-right: 10rpx;
  214. }
  215. .user-info {
  216. flex-grow: 1;
  217. .user-name {
  218. font-size: 26rpx;
  219. font-weight: 500;
  220. color: #545456;
  221. margin-bottom: 10rpx;
  222. }
  223. .star-wrap {
  224. display: flex;
  225. justify-content: flex-start;
  226. .start {
  227. margin-right: 10rpx;
  228. }
  229. }
  230. }
  231. .pj-time {
  232. font-size: 24rpx;
  233. font-weight: 400;
  234. color: #545456;
  235. }
  236. }
  237. .pj-info {
  238. padding-top: 30rpx;
  239. font-size: 24rpx;
  240. font-weight: 500;
  241. color: #545456;
  242. }
  243. }
  244. .swiper-box {
  245. background-color: red;
  246. }
  247. </style>