bmi.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. <template>
  2. <view class="container-box">
  3. <image src="/static/image/bmi/manual_icon_arrow.png" alt="" class="back-class" @click="goBcak()"></image>
  4. <view class="info-box">
  5. <view class="student-card">
  6. <view class="student-box1">
  7. <image class="head-img" src="/static/image/bmi/test_img_head_gril.png">
  8. </image>
  9. <view class="student-info1">
  10. <view class="student-info11">
  11. <view class="student-info111">
  12. <view>张珊珊</view>
  13. <image class="sex-img" src="/static/image/bmi/test_icon_gril.png"></image>
  14. </view>
  15. <view class="student-num">编号:1212456</view>
  16. </view>
  17. <view class="student-info12">一年3班</view>
  18. </view>
  19. </view>
  20. <view class="student-info2">
  21. <view>
  22. <image src="/static/image/bmi/test_icon_id.png">
  23. </image>
  24. <text>11122221</text>
  25. </view>
  26. <view>
  27. <image src="/static/image/bmi/test_icon_school.png">
  28. </image>
  29. <text>石岐小学</text>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="">
  34. <view class="adron-box">
  35. <image src="/static/image/bmi/test_img_adron.png" alt="" class="adron" @click="goBcak()">
  36. </image>
  37. <image src="/static/image/bmi/test_img_adron.png" alt="" class="adron" @click="goBcak()">
  38. </image>
  39. </view>
  40. <view class="bmi-info">
  41. <view class="bmi-title">测量结果展示</view>
  42. </view>
  43. </view>
  44. </view>
  45. <view class="btn-box">
  46. <view class="btn1">重新检测</view>
  47. <view class="btn2">完成</view>
  48. </view>
  49. </view>
  50. </template>
  51. <script>
  52. import { navTo, showToast } from "@/utils/app";
  53. export default {
  54. name: "bmi",
  55. methods: {
  56. goBcak() {
  57. navTo('pages/classes/select', {
  58. })
  59. },
  60. }
  61. }
  62. </script>
  63. <style scoped>
  64. .container-box {
  65. height: 100vh;
  66. width: 100%;
  67. background: linear-gradient(to bottom left, rgb(218, 233, 253), #fff, rgb(218, 233, 253));
  68. position: relative;
  69. overflow: auto;
  70. }
  71. .back-class {
  72. position: absolute;
  73. top: 40upx;
  74. left: 46upx;
  75. width: 70upx;
  76. height: 70upx;
  77. }
  78. .info-box {
  79. margin: 75upx auto 0;
  80. width: 680upx;
  81. }
  82. .student-card {
  83. width: 680upx;
  84. height: 28vh;
  85. padding: 3vh 30upx ;
  86. background: #F1F7FF;
  87. box-shadow: 0upx 5upx 5upx 0upx rgba(12, 88, 183, 0.35);
  88. border-radius: 28upx;
  89. border: 4upx solid #FFFFFF;
  90. box-sizing: border-box;
  91. }
  92. .student-box1{
  93. width: 600upx;
  94. height: 14vh;
  95. display: flex;
  96. }
  97. .student-info1{
  98. flex: 1;
  99. padding: 20upx 0 20upx 20upx;
  100. }
  101. .student-info11{
  102. display: flex;
  103. justify-content: space-between;
  104. width: 100%;
  105. }
  106. .student-info111{
  107. display: flex;
  108. justify-content: space-between;
  109. }
  110. .student-info111 view{
  111. font-weight: bold;
  112. font-size: 35rpx;
  113. color: #2F3C42;
  114. }
  115. .student-num{
  116. width: 168upx;
  117. height: 45upx;
  118. line-height: 45upx;
  119. background: #E2EBFF;
  120. border-radius: 28upx;
  121. font-weight: 400;
  122. font-size: 21rpx;
  123. color: #0369E8;
  124. text-align: center;
  125. }
  126. .student-info12{
  127. font-size: 21upx;
  128. color: #0369E8;
  129. }
  130. .head-img{
  131. width: 125upx;
  132. height: 125upx;
  133. border-radius: 50%;
  134. border: #E2EBFF solid 5upx;
  135. }
  136. .sex-img{
  137. width: 37.5upx;
  138. height: 37.5upx;
  139. border-radius: 50%;
  140. }
  141. .student-info2{
  142. width: 100%;
  143. height: 108upx;
  144. display: flex;
  145. justify-content: space-between;
  146. }
  147. .student-info2 view{
  148. width: 290upx;
  149. background: #E2EBFF;
  150. border-radius: 28upx;
  151. height: 108upx;
  152. display: flex;
  153. padding:20upx 25upx;
  154. box-sizing: border-box;
  155. }
  156. .student-info2 image{
  157. width: 68upx;
  158. height: 68upx;
  159. }
  160. .student-info2 text{
  161. font-weight: bold;
  162. font-size: 21rpx;
  163. color: #0369E8;
  164. line-height: 7vh;
  165. }
  166. .bmi-info {
  167. width: 100%;
  168. height: 50vh;
  169. background: #FFFFFF;
  170. border-radius: 28upx;
  171. }
  172. .bmi-title {
  173. width: 100%;
  174. height: 106upx;
  175. line-height: 106upx;
  176. font-weight: bold;
  177. font-size: 35upx;
  178. text-align: center;
  179. color: #FFFFFF;
  180. background: #0369E8;
  181. border-radius: 28upx;
  182. }
  183. .adron-box {
  184. display: flex;
  185. justify-content: space-between;
  186. position: relative;
  187. top: -10upx;
  188. }
  189. .adron {
  190. width: 20upx;
  191. height: 60upx;
  192. margin: 0 80upx -30upx;
  193. }
  194. .btn-box{
  195. display: flex;
  196. justify-content: space-between;
  197. width: 680upx;
  198. margin: 20upx auto 0;
  199. }
  200. .btn1{
  201. width: 305upx;
  202. height: 97upx;
  203. line-height: 97upx;
  204. background: #F1F7FF;
  205. border-radius: 21upx;
  206. border: 3upx solid #0369E8;
  207. font-weight: bold;
  208. font-size: 35rpx;
  209. color: #0369E8;
  210. text-align: center;
  211. }
  212. .btn2{
  213. width: 305upx;
  214. height: 97upx;
  215. line-height: 97upx;
  216. background: #0369E8;
  217. border-radius: 21upx;
  218. font-weight: bold;
  219. font-size: 35rpx;
  220. color: #FFFFFF;
  221. text-align: center;
  222. }
  223. </style>