phb.vue 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. <template>
  2. <view class="content">
  3. <view class="nav flex">
  4. <view class="nav-item" v-for="(item,index) in navList" @click="navClick(index)"
  5. :class="{'action': index == currentIndex}">
  6. {{item.title}}
  7. </view>
  8. </view>
  9. <image :src="top_bg" mode="" class="top-bg"></image>
  10. <view class="bd-wrap flex">
  11. <view class="bd">
  12. <image :src="tit_bg" mode="widthFix" class="bd-tit"></image>
  13. <view class="bd-top flex">
  14. <view class="top-item">
  15. <view class="top-logo yp">
  16. </view>
  17. <view class="top-name">
  18. 李小图
  19. </view>
  20. <view class="top-visit">
  21. 86.4W
  22. </view>
  23. </view>
  24. <view class="top-item-center">
  25. <view class="top-logo jp">
  26. </view>
  27. <view class="top-name">
  28. 李小图
  29. </view>
  30. <view class="top-visit">
  31. 86.4W
  32. </view>
  33. </view>
  34. <view class="top-item">
  35. <view class="top-logo tp">
  36. </view>
  37. <view class="top-name">
  38. 李小图
  39. </view>
  40. <view class="top-visit">
  41. 86.4W
  42. </view>
  43. </view>
  44. </view>
  45. <view class="bd-btm-item flex" v-for="item in 3">
  46. <image src="" mode="" class="item-img"></image>
  47. <view class="flex item-info">
  48. <view class="item-name">
  49. 杨阿姨 <image :src="rz" mode=""></image>
  50. </view>
  51. <view class="item-zy">
  52. 育儿嫂
  53. </view>
  54. <view class="item-where">
  55. 48岁 丨 甘肃人
  56. </view>
  57. <view class="" style="flex-grow: 1;">
  58. </view>
  59. <view class="item-vist">
  60. 浏览量:2362
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="" style="height: 60rpx;">
  67. </view>
  68. </view>
  69. </template>
  70. <script>
  71. export default {
  72. data() {
  73. return {
  74. top_bg: this.$store.state.baseURL + '/resource/icon/base/phb-bg.png',
  75. tit_bg: this.$store.state.baseURL + '/resource/icon/llph.png',
  76. rz: this.$store.state.baseURL + '/resource/icon/rz.png',
  77. navList: [{
  78. title: '周排行',
  79. state: 0
  80. }, {
  81. title: '月排行',
  82. state: 1
  83. }],
  84. currentIndex: 0,
  85. }
  86. },
  87. onLoad() {
  88. },
  89. onShow() {
  90. console.log(this.$store.state.baseURL)
  91. },
  92. onReachBottom() {
  93. },
  94. onReady() {
  95. },
  96. methods: {
  97. navClick(index) {
  98. this.currentIndex = index
  99. }
  100. }
  101. }
  102. </script>
  103. <style lang="scss" scoped>
  104. page,
  105. .content {
  106. height: auto;
  107. min-height: 100%;
  108. background-color: #900408;
  109. }
  110. .nav {
  111. width: 750rpx;
  112. height: 88rpx;
  113. .nav-item {
  114. line-height: 88rpx;
  115. width: 50%;
  116. text-align: center;
  117. font-size: 30rpx;
  118. font-weight: 500;
  119. color: #333333;
  120. height: 100%;
  121. }
  122. .action {
  123. font-weight: bold;
  124. position: relative;
  125. &::after {
  126. content: '';
  127. width: 50rpx;
  128. height: 6rpx;
  129. background: #FE5B38;
  130. border-radius: 3rpx;
  131. position: absolute;
  132. left: 0;
  133. right: 0;
  134. bottom: 6rpx;
  135. margin: auto;
  136. }
  137. }
  138. background-color: #fff;
  139. }
  140. .top-bg {
  141. width: 750rpx;
  142. height: 742rpx;
  143. }
  144. .bd-wrap {
  145. width: 699rpx;
  146. background: #F6E7E4;
  147. border-radius: 14rpx;
  148. justify-content: center;
  149. margin: -150rpx auto 0;
  150. position: relative;
  151. padding: 16rpx;
  152. .bd {
  153. width: 666rpx;
  154. background: #FFFFFF;
  155. border: 2px solid #A30F0E;
  156. border-radius: 14rpx;
  157. position: relative;
  158. padding: 35rpx;
  159. .bd-tit {
  160. width: 443rpx;
  161. height: 69rpx;
  162. position: absolute;
  163. top: -35rpx;
  164. left: 0;
  165. right: 0;
  166. margin: auto;
  167. }
  168. .bd-top {
  169. height: 376rpx;
  170. width: 100%;
  171. padding-bottom: 47rpx;
  172. .jp,.yp,.tp {
  173. &::after {
  174. content: '';
  175. width: 58rpx;
  176. height: 66rpx;
  177. position: absolute;
  178. position: absolute;
  179. bottom: 10rpx;
  180. right: -10rpx;
  181. z-index: 999;
  182. }
  183. }
  184. .jp {
  185. &::after {
  186. background: url($base-url + '/resource/icon/jp.png') no-repeat;
  187. background-size: 100% 100%;
  188. }
  189. }
  190. .yp {
  191. &::after {
  192. right: -15rpx;
  193. background: url($base-url + '/resource/icon/yp.png') no-repeat;
  194. background-size: 100% 100%;
  195. }
  196. }
  197. .tp {
  198. &::after {
  199. right: -15rpx;
  200. background: url($base-url + '/resource/icon/tp.png') no-repeat;
  201. background-size: 100% 100%;
  202. }
  203. }
  204. .top-item, .top-item-center {
  205. height: 100%;
  206. display: flex;
  207. flex-direction: column;
  208. justify-content: flex-end;
  209. align-items: center;
  210. .top-logo {
  211. border-radius: 50%;
  212. border: #900408 1px solid;
  213. position: relative;
  214. }
  215. .top-name {
  216. font-size: 26rpx;
  217. font-weight: bold;
  218. color: #A30F0E;
  219. margin: 15rpx 0;
  220. }
  221. .top-visit {
  222. font-size: 22rpx;
  223. font-weight: bold;
  224. color: #171717;
  225. }
  226. }
  227. .top-item {
  228. flex-grow: 3;
  229. .top-logo {
  230. width: 139rpx;
  231. height: 139rpx;
  232. }
  233. }
  234. .top-item-center {
  235. flex-grow: 4;
  236. .top-logo {
  237. width: 198rpx;
  238. height: 197rpx;
  239. }
  240. }
  241. }
  242. .bd-btm-item {
  243. height: 260rpx;
  244. border-top: #f2f2f2 1px solid;
  245. justify-content: flex-start;
  246. .item-info {
  247. height: 100%;
  248. flex-grow: 1;
  249. flex-direction: column;
  250. justify-content: flex-start;
  251. align-items: flex-start;
  252. padding: 34rpx 0 21rpx;
  253. .item-name {
  254. font-size: 31rpx;
  255. font-weight: bold;
  256. color: #333333;
  257. display: flex;
  258. align-items: center;
  259. justify-content: flex-start;
  260. image {
  261. width: 100rpx;
  262. height: 30rpx;
  263. margin-left: 10rpx;
  264. }
  265. }
  266. .item-zy {
  267. padding: 6rpx 20rpx;
  268. background: #fee7e4;
  269. border-radius: 5rpx;
  270. font-size: 22rpx;
  271. font-weight: 500;
  272. color: #F86859;
  273. margin: 16rpx 0 20rpx;
  274. }
  275. .item-vist,.item-where {
  276. font-weight: 500;
  277. color: #969696;
  278. }
  279. .item-vist {
  280. font-size: 22rpx;
  281. justify-items: flex-end;
  282. }
  283. .item-where {
  284. font-size: 24rpx;
  285. }
  286. }
  287. .item-img {
  288. flex-shrink: 0;
  289. width: 160rpx;
  290. height: 220rpx;
  291. margin-right: 22rpx;
  292. background-color: #eee;
  293. }
  294. }
  295. }
  296. }
  297. </style>