index.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <template>
  2. <view class="ni">
  3. <div class="ni-top adfacjb">
  4. <div class="ni-top-left adfac">
  5. <image class="avatar" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/12/4bd05666-201c-4016-acb6-09cd1f554524.png"></image>
  6. <div class="name">{{'张琳琳'}}</div>
  7. <image class="sex" v-if="sex==2" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/12/b6d1fcb3-55ba-4104-b8cd-756b963a4da8.png"></image>
  8. <image class="sex" v-else-if="sex==1" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/12/a1899fd0-c468-48d9-b554-2f17b75a4157.png"></image>
  9. <div class="age" :class="{'women':sex==2,'man':sex==1}">{{46}}岁</div>
  10. </div>
  11. <div class="ni-top-right">
  12. <!-- <image v-if="agree" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/12/87b5b244-d14f-43cd-991b-4ac9f48d909e.png" @tap="changeAgree"></image> -->
  13. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/12/b8a5cabd-57f8-4ad7-9677-f6372423c50a.png"></image>
  14. </div>
  15. </div>
  16. <div class="ni-info adf">
  17. <div class="ni-info-left">
  18. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/11/d3c53597-a848-4a33-8deb-ab256f028baa.png"></image>
  19. </div>
  20. <div class="ni-info-right">
  21. <div class="title">{{'中国少年先锋队诞辰日'}}</div>
  22. <div class="tip adf">
  23. <div class="tip-left adfac">
  24. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/11/201a4250-24a4-412d-9ec9-fc58071d10ea.png"></image>
  25. <text>活动时间:</text>
  26. </div>
  27. <div class="tip-right">{{"2025-06-01 ~ 2025-06-02"}}</div>
  28. </div>
  29. <div class="tip adf">
  30. <div class="tip-left adfac">
  31. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/11/e9025f86-a59e-4f82-92f0-9d22e846193c.png"></image>
  32. <text>活动地点:</text>
  33. </div>
  34. <div class="tip-right">{{"广东省深圳市南山区"}}</div>
  35. </div>
  36. </div>
  37. </div>
  38. </view>
  39. </template>
  40. <script setup name="PracticeBox">
  41. import { ref } from 'vue'
  42. const props = defineProps({
  43. sex:{
  44. typeof:Number,
  45. default:1
  46. }
  47. })
  48. </script>
  49. <style scoped lang="scss">
  50. .ni{
  51. background: linear-gradient(45deg, #FFFFFF 60%, #F2FFE8 100%);
  52. border-radius: 24rpx;
  53. padding: 40rpx 24rpx 32rpx;
  54. margin-top: 20rpx;
  55. &-top{
  56. &-left{
  57. .avatar{
  58. width: 48rpx;
  59. height: 48rpx;
  60. }
  61. .name{
  62. font-family: PingFang-SC, PingFang-SC;
  63. font-weight: bold;
  64. font-size: 32rpx;
  65. color: #151B29;
  66. line-height: 32rpx;
  67. margin-left: 16rpx;
  68. }
  69. .sex{
  70. width: 44rpx;
  71. height: 32rpx;
  72. margin-left: 10rpx;
  73. }
  74. .age{
  75. border-radius: 13rpx;
  76. font-family: PingFangSC, PingFang SC;
  77. font-weight: 400;
  78. font-size: 20rpx;
  79. line-height: 24rpx;
  80. padding: 4rpx 10rpx;
  81. margin-left: 13rpx;
  82. &.women{
  83. background: rgba(244,101,122,0.14);
  84. color: #F4657A;
  85. }
  86. &.man{
  87. background: rgba(5,169,254,0.12);
  88. color: #05A9FE;
  89. }
  90. }
  91. }
  92. &-right{
  93. width: 37rpx;
  94. height: 37rpx;
  95. image{
  96. width: 100%;
  97. height: 100%;
  98. }
  99. }
  100. }
  101. &-info{
  102. margin-top: 40rpx;
  103. &-left{
  104. width: 158rpx;
  105. height: 214rpx;
  106. image{
  107. width: 100%;
  108. height: 100%;
  109. }
  110. }
  111. &-right{
  112. width: calc(100% - 158rpx);
  113. padding-left: 20rpx;
  114. box-sizing: border-box;
  115. .title{
  116. font-family: PingFang-SC, PingFang-SC;
  117. font-weight: bold;
  118. font-size: 32rpx;
  119. color: #151B29;
  120. line-height: 40rpx;
  121. margin-bottom: 5rpx;
  122. }
  123. .tip{
  124. margin-top: 25rpx;
  125. &-left{
  126. width: 160rpx;
  127. image{
  128. width: 24rpx;
  129. height: 24rpx;
  130. }
  131. text{
  132. font-family: PingFangSC, PingFang SC;
  133. font-weight: 400;
  134. font-size: 24rpx;
  135. color: #676775;
  136. line-height: 24rpx;
  137. margin-left: 10rpx;
  138. }
  139. }
  140. &-right{
  141. width: calc(100% - 160rpx);
  142. font-family: PingFangSC, PingFang SC;
  143. font-weight: 400;
  144. font-size: 24rpx;
  145. color: #676775;
  146. line-height: 24rpx;
  147. margin-left: 10rpx;
  148. }
  149. }
  150. .bottom{
  151. margin-top: 30rpx;
  152. display: flex;
  153. justify-content: flex-end;
  154. }
  155. .btn{
  156. background: #B7F358;
  157. border-radius: 27rpx;
  158. padding: 12rpx 26rpx;
  159. font-family: PingFang-SC, PingFang-SC;
  160. font-weight: bold;
  161. font-size: 24rpx;
  162. color: #252525;
  163. line-height: 30rpx;
  164. }
  165. }
  166. }
  167. }
  168. </style>