circle.vue 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. <template>
  2. <view class="circle-box">
  3. <view class="circle-title" :style="[{ 'margin-top': statusBarH + 'px'}]">
  4. <view class="title-left">
  5. <image class="title-left-back" @click.stop="back" src="/static/img/common/back.png"></image>
  6. <view class="title-user">
  7. <image class="user-head" src="/static/img/temporary/1.png" mode="aspectFill"></image>
  8. <view class="user-data">
  9. <view class="user-name sys-color-black sys-weight-600 sys-height-44">WWWWW</view>
  10. <view class="user-add sys-color-gray-9 sys-height-34">2021-04-18 15:53</view>
  11. </view>
  12. </view>
  13. </view>
  14. <view class="title-right">
  15. <call></call>
  16. <image class="title-right-img" @click.stop="back" src="/static/img/circle/Frame-100070@2x.png"
  17. mode="heightFix"></image>
  18. </view>
  19. </view>
  20. <scroll-view :scroll-y="true"
  21. :style="{'height':'calc(100vh - '+navHeight+'rpx - env(safe-area-inset-bottom))'}">
  22. <view class="circle-data">
  23. <view class="circle-img-list">
  24. <swiper class="swiper" circular :indicator-dots="true" indicator-color="rgba(255,255,255,0.4)"
  25. indicator-active-color="#FFFFFF">
  26. <swiper-item>
  27. <image class="circle-img" @click.stop="back" src="/static/img/temporary/1.png"
  28. mode="aspectFill"></image>
  29. </swiper-item>
  30. <swiper-item>
  31. <image class="circle-img" @click.stop="back" src="/static/img/temporary/2.png"
  32. mode="aspectFill"></image>
  33. </swiper-item>
  34. <swiper-item>
  35. <image class="circle-img" @click.stop="back" src="/static/img/temporary/3.png"
  36. mode="aspectFill"></image>
  37. </swiper-item>
  38. </swiper>
  39. </view>
  40. <view class="circle-text sys-color-black">
  41. 我是阳光大男孩
  42. </view>
  43. <view class="tag-list">
  44. <dynamic-tag :list="tagList" tag-bg="#F2F2F2" tag-color="#999999"></dynamic-tag>
  45. </view>
  46. </view>
  47. <view class="evaluate-data">
  48. <view class="tag-box">
  49. <view class="tag-item" @click="setTitleTag(0)">
  50. <text class="tag-text sys-weight-600 sys-height-44 sys-color-gray-9"
  51. :class="{'tag-text-default':tagNum===0}">评论</text>
  52. <text class="tag-num sys-color-gray-9">(3)</text>
  53. </view>
  54. <view class="tag-item" @click="setTitleTag(1)">
  55. <text class="tag-text sys-weight-600 sys-height-44 sys-color-gray-9"
  56. :class="{'tag-text-default':tagNum===1}">相关推荐</text>
  57. </view>
  58. </view>
  59. <view class="evaluate-list" v-if="tagNum == 0">
  60. <view class="evaluate-item-box" v-for="(item,index) in reviewList" :key="index">
  61. <view class="evaluate-item">
  62. <view class="evaluate-item-left">
  63. <image :src="item.img" class="evaluate-item-img sys-radius-round" mode="">
  64. </image>
  65. <view class="evaluate-item-text">
  66. <view class="item-text-name sys-size-32 sys-color-gray-9">
  67. {{item.name}}
  68. </view>
  69. <view class="item-text sys-color-black sys-size-28">
  70. {{item.text}}
  71. </view>
  72. <view class="item-text-time sys-size-24 sys-color-gray-9">
  73. {{item.time}}
  74. </view>
  75. </view>
  76. </view>
  77. <view class="evaluate-item-right">
  78. <uni-icons type="hand-up" size="20" @click="praise"></uni-icons>
  79. <!-- <uni-icons type="hand-up-filled" size="20"></uni-icons> -->
  80. <view class="sys-size-24 sys-color-gray-9">
  81. {{item.num}}
  82. </view>
  83. </view>
  84. </view>
  85. <view class="evaluate-item evaluate-item-two" v-for="(itemTwo,indexTwo) in item.data"
  86. :key="indexTwo">
  87. <view class="evaluate-item-left">
  88. <image :src="itemTwo.img" class="evaluate-item-img sys-radius-round" mode="">
  89. </image>
  90. <view class="evaluate-item-text">
  91. <view class="item-text-name sys-size-32 sys-color-gray-9">
  92. {{itemTwo.name}}
  93. </view>
  94. <view class="item-text sys-color-black sys-size-28">
  95. {{itemTwo.text}}
  96. </view>
  97. <view class="item-text-time sys-size-24 sys-color-gray-9">
  98. {{itemTwo.time}}
  99. </view>
  100. <view class="unfold-review">
  101. <view class="unfold-review-text sys-size-26 sys-color-gray-6">
  102. 展开65条评论
  103. </view>
  104. <uni-icons type="bottom" size="15" color="#797979" @click="unfold"></uni-icons>
  105. </view>
  106. </view>
  107. </view>
  108. <view class="evaluate-item-right">
  109. <uni-icons type="hand-up" size="20" @click="praise"></uni-icons>
  110. <!-- <uni-icons type="hand-up-filled" size="20"></uni-icons> -->
  111. <view class="sys-size-24 sys-color-gray-9">
  112. {{itemTwo.num}}
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. </view>
  118. <view class="" v-else>
  119. <my-praise class="my-praise" :tagNum="1"></my-praise>
  120. </view>
  121. </view>
  122. </scroll-view>
  123. <view class="chat-box">
  124. <uni-icons type="redo" size="20"></uni-icons>
  125. <input type="text" class="chat-input sys-background-F2F2F2 sys-radius-200">
  126. <uni-icons type="hand-up" size="20"></uni-icons>
  127. <view class="give-like sys-color-gray-9 sys-size-24">
  128. 点赞
  129. </view>
  130. <uni-icons type="chat" size="20"></uni-icons>
  131. <view class="give-like sys-color-gray-9 sys-size-24">
  132. 评论
  133. </view>
  134. </view>
  135. </view>
  136. </template>
  137. <script>
  138. import tools from "@/service/tools";
  139. import Call from "@/pages/common/call/call";
  140. import DynamicTag from "@/pages/common/tag/dynamic-tag";
  141. import MyPraise from "@/pages/my/model/my-praise";
  142. export default {
  143. components: {
  144. DynamicTag,
  145. Call,
  146. MyPraise
  147. },
  148. data() {
  149. return {
  150. statusBarH: 0,
  151. navHeight: 44,
  152. tagList: [{
  153. 'text': '南亭新都会商场',
  154. 'icon': '1'
  155. }, {
  156. 'text': '你好认识一哈',
  157. 'icon': '2'
  158. }],
  159. reviewList: [{
  160. 'img': '/static/img/temporary/1.png',
  161. 'name': 'wwwww',
  162. 'text': '你好认识一哈',
  163. 'time': '2021-01-07 15:53',
  164. 'num': '5',
  165. 'data': [{
  166. 'img': '/static/img/temporary/1.png',
  167. 'name': 'wwwww',
  168. 'text': '你好认识一哈',
  169. 'time': '2021-01-07 15:53',
  170. 'num': '9999',
  171. }]
  172. }],
  173. tagNum: 0
  174. }
  175. },
  176. methods: {
  177. back() {
  178. tools.leftClick()
  179. },
  180. setTitleTag(num) {
  181. if (num !== this.tagNum) {
  182. this.tagNum = num
  183. }
  184. },
  185. praise() {},
  186. unfold() {},
  187. },
  188. created() {
  189. uni.getSystemInfo({
  190. success: (e) => {
  191. this.statusBarH = e.statusBarHeight
  192. this.navHeight = (50 + this.statusBarH) * 2 + 98
  193. }
  194. })
  195. }
  196. }
  197. </script>
  198. <style scoped lang="scss">
  199. .circle-box {
  200. .circle-title {
  201. display: flex;
  202. justify-content: space-between;
  203. align-items: center;
  204. padding: 12rpx 24rpx;
  205. .title-left {
  206. display: flex;
  207. justify-content: flex-start;
  208. align-items: center;
  209. .title-left-back {
  210. width: 40rpx;
  211. height: 40rpx;
  212. }
  213. .title-user {
  214. margin-left: 30rpx;
  215. display: flex;
  216. justify-content: flex-start;
  217. .user-head {
  218. width: 64rpx;
  219. height: 64rpx;
  220. border-radius: 50%;
  221. margin-right: 20rpx;
  222. }
  223. .user-data {
  224. .user-name {
  225. font-size: 32rpx;
  226. }
  227. .user-add {
  228. font-size: 24rpx;
  229. }
  230. }
  231. }
  232. }
  233. .title-right {
  234. display: flex;
  235. justify-content: flex-end;
  236. align-items: center;
  237. .title-right-img {
  238. margin-left: 40rpx;
  239. height: 36rpx;
  240. }
  241. }
  242. }
  243. .circle-data {
  244. margin-top: 4rpx;
  245. border-bottom: 1rpx solid #F2F2F2;
  246. .circle-img-list {
  247. width: 100vw;
  248. height: 920rpx;
  249. .swiper {
  250. height: 920rpx;
  251. .circle-img {
  252. width: 100vw;
  253. height: 920rpx;
  254. }
  255. }
  256. }
  257. .circle-text {
  258. padding: 36rpx 32rpx 0 32rpx;
  259. flex: 32rpx;
  260. line-height: 40rpx;
  261. }
  262. .tag-list {
  263. padding: 0 32rpx 42rpx 32rpx;
  264. }
  265. }
  266. .evaluate-data {
  267. padding: 40rpx 0;
  268. .tag-box {
  269. display: flex;
  270. justify-content: flex-start;
  271. margin: 0 0 42rpx 0;
  272. padding: 0 32rpx 2rpx;
  273. .tag-item {
  274. margin-right: 60rpx;
  275. line-height: 44rpx;
  276. .tag-text {
  277. font-size: 32rpx;
  278. margin-right: 4rpx;
  279. }
  280. .tag-num {
  281. font-size: 24rpx;
  282. }
  283. .tag-text-default {
  284. color: #141414;
  285. }
  286. }
  287. }
  288. .evaluate-list {
  289. width: 100%;
  290. height: auto;
  291. display: flex;
  292. flex-direction: column;
  293. padding: 0 32rpx;
  294. box-sizing: border-box;
  295. // justify-content: flex-end;
  296. .evaluate-item-box {
  297. width: 100%;
  298. height: auto;
  299. display: flex;
  300. flex-direction: column;
  301. .evaluate-item {
  302. width: 100%;
  303. height: auto;
  304. display: flex;
  305. justify-content: space-between;
  306. padding: 0 32rpx 32rpx;
  307. box-sizing: border-box;
  308. .evaluate-item-left {
  309. display: flex;
  310. .evaluate-item-img {
  311. width: 80rpx;
  312. height: 80rpx;
  313. display: block;
  314. margin: 0 20rpx 0 0;
  315. flex-shrink: 0;
  316. }
  317. .evaluate-item-text {
  318. display: flex;
  319. flex-direction: column;
  320. .item-text {
  321. padding: 8rpx 0;
  322. word-break: break-all
  323. }
  324. .unfold-review {
  325. display: flex;
  326. align-items: center;
  327. padding: 24rpx 0 0 0;
  328. }
  329. }
  330. }
  331. .evaluate-item-right {
  332. display: flex;
  333. flex-shrink: 0;
  334. // align-items: center;
  335. }
  336. }
  337. .evaluate-item-two {
  338. width: calc(100% - 132rpx);
  339. align-self: flex-end;
  340. }
  341. }
  342. }
  343. }
  344. .chat-box {
  345. width: 100%;
  346. height: auto;
  347. display: flex;
  348. align-items: center;
  349. border-top: 1rpx solid #F2F2F2;
  350. padding: 12rpx 0 0 34rpx;
  351. .chat-input {
  352. width: 336rpx;
  353. height: 72rpx;
  354. margin: 0 28rpx 0 42rpx;
  355. }
  356. .give-like {
  357. margin: 0 36rpx 0 8rpx;
  358. }
  359. }
  360. }
  361. </style>