finish - UI副本.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <template>
  2. <view>
  3. <view class="top_color"></view>
  4. <view class="content">
  5. <view class="title">图片名称</view>
  6. <view class="game_box">
  7. <image :src="sourseImg" mode="aspectFill"></image>
  8. <view class="tip">
  9. <view class="left">
  10. <view class="icon">
  11. <image src="./icon/icon.png" mode=""></image>
  12. </view>
  13. <view class="text">我的最快纪录</view>
  14. </view>
  15. <view class="right">36秒</view>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="btn_box">
  20. <view class="left">
  21. <view class="btn btn_1"></view>
  22. <view class="btn btn_2"></view>
  23. </view>
  24. <view class="right" @click="go_personal_rank()">
  25. <view class="btn"></view>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. export default {
  32. data() {
  33. return {
  34. sourseImg: "https://cdn.colorhub.me/E2qY01NiVN7soio3_WPoSPRZ2CQI3s0YoOyBhGw_F7U/rs:auto:280:0:0/g:ce/bG9jYWw6Ly8vMTYv/YzUvNTgxMDFlY2Ew/NDg4OTZiNjhkZTIz/NmVmZTliNDZlMTg3/OGFhMTZjNS5qcGVn.jpg",
  35. };
  36. },
  37. onLoad() {
  38. },
  39. methods: {
  40. go_personal_rank(){
  41. uni.navigateTo({
  42. url:"../personal_rank/personal_rank"
  43. })
  44. }
  45. }
  46. }
  47. </script>
  48. <style lang="scss">
  49. page {
  50. background-color: #F3F8F7;
  51. }
  52. .top_color {
  53. z-index: 1;
  54. width: 750rpx;
  55. height: 100rpx;
  56. background-color: #009fe8;
  57. position: fixed;
  58. top: 1;
  59. left: 0;
  60. }
  61. .content {
  62. position: relative;
  63. top: 20rpx;
  64. z-index: 2;
  65. width: 750rpx;
  66. background-color: #FFFFFF;
  67. border-radius: 50rpx;
  68. padding-bottom: 40rpx;
  69. .title {
  70. text-align: center;
  71. font-size: 36rpx;
  72. font-weight: 700;
  73. height: 100rpx;
  74. line-height: 100rpx;
  75. }
  76. .game_box {
  77. box-sizing: border-box;
  78. padding: 0 35rpx;
  79. image{
  80. width: 680rpx;
  81. height: 680rpx;
  82. }
  83. .tip{
  84. margin-top: 20rpx;
  85. display: flex;
  86. justify-content: space-between;
  87. align-items: center;
  88. .left{
  89. display: flex;
  90. align-items: center;
  91. .icon{
  92. margin-right: 10rpx;
  93. image{
  94. width: 28rpx;
  95. height: 28rpx;
  96. }
  97. }
  98. .text{
  99. color: #4F4F4F;
  100. font-size: 26rpx;
  101. }
  102. }
  103. .right{
  104. font-size: 28rpx;
  105. }
  106. }
  107. }
  108. }
  109. .btn_box{
  110. margin-top: 30rpx;
  111. box-sizing: border-box;
  112. padding: 35rpx;
  113. height: 260rpx;
  114. display: flex;
  115. justify-content: space-between;
  116. .left{
  117. .btn{
  118. width: 400rpx;
  119. height: 125rpx;
  120. background-size: cover;
  121. background-repeat: no-repeat;
  122. }
  123. .btn_1{
  124. margin-bottom: 8rpx;
  125. background-image: url(./icon/detail.png);
  126. }
  127. .btn_2{
  128. background-image: url(./icon/again.png);
  129. }
  130. }
  131. .right{
  132. width: 260rpx;
  133. height: 258rpx;
  134. background-image: url(./icon/rank.png);
  135. background-size: cover;
  136. background-repeat: no-repeat;
  137. }
  138. }
  139. </style>