select-school.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <template>
  2. <view class="select-school-index iPhone-bottom flex-common-css box-border-box">
  3. <Nav title='选择学校'></Nav>
  4. <view class="bgc-f box-border-box p-24 mb-28">
  5. <view class="head-search mb-32">
  6. <input type="text" placeholder="搜索学校名称">
  7. <view class="fs-28 fc-f index-search-box-buttom">搜索</view>
  8. </view>
  9. <view class="head-address display-flex">
  10. <uni-icons type="location-filled" size="24"></uni-icons>
  11. <view class="ml-16">
  12. <view class="fs-36 fw-600 mb-12">四川外语大学重南岸翻译学校(綦江校区)</view>
  13. <view class="fs-28 fw-400" @click="openPop()">楼栋1</view>
  14. </view>
  15. </view>
  16. </view>
  17. <scroll-view scroll-y="true" class="scroll-view-css bgc-f box-border-box plr-32">
  18. <view class="item-box fs-32 fw-400" v-for="(item,i) in 20" :key="i">
  19. 四川外国语大学重庆南方翻译学院(渝北校区)四川外国语大学重庆南方翻译学院
  20. </view>
  21. </scroll-view>
  22. <uni-popup ref="popup" type="bottom">
  23. <view class="pop-coupon box-border-box p-24">
  24. <view class="text-align-center fs-36 fw-600 box-title mb-32">
  25. 请选择楼栋
  26. <uni-icons @click="closePop" class="box-close" type="closeempty" size="20"></uni-icons>
  27. </view>
  28. <view class="head-search mb-32">
  29. <input type="text" placeholder="搜索楼栋名称">
  30. <view class="fs-28 fc-f index-search-box-buttom">搜索</view>
  31. </view>
  32. <view class="scroll-view-css">
  33. <view class="item-box item-box-f fs-32 fw-400"
  34. v-for="(item,i) in 20" :key="i" :class="id == i?'fc-41ABF5':''">
  35. <!-- <image src="@/static/img/common/n-select.png" mode=""></image> -->
  36. <image src="@/static/img/common/y-select.png" mode=""></image>
  37. 楼栋1
  38. </view>
  39. </view>
  40. </view>
  41. </uni-popup>
  42. </view>
  43. </template>
  44. <script>
  45. export default {
  46. data(){
  47. return{
  48. id:0,
  49. }
  50. },
  51. onShow() {
  52. },
  53. methods:{
  54. openPop(){
  55. this.$refs.popup.open()
  56. },
  57. closePop(){
  58. this.$refs.popup.close()
  59. },
  60. },
  61. }
  62. </script>
  63. <style scoped lang="scss">
  64. .select-school-index{
  65. .head-search{
  66. position: relative;
  67. input{
  68. width: 100%;
  69. height: 72rpx;
  70. background: #F4F5F7;
  71. border-radius: 200rpx;
  72. font-size: 32rpx;
  73. box-sizing: border-box;
  74. padding: 0 130rpx 0 24rpx;
  75. }
  76. .index-search-box-buttom{
  77. position: absolute;
  78. right: 6rpx;
  79. top: 6rpx;
  80. width: 120rpx;
  81. height: 60rpx;
  82. background: linear-gradient( 90deg, #57CAFF 0%, #41ABF5 100%);
  83. border-radius: 200rpx;
  84. margin-left: auto;
  85. line-height: 60rpx;
  86. text-align: center;
  87. }
  88. }
  89. .item-box{
  90. box-sizing: border-box;
  91. padding: 24rpx 0;
  92. border-bottom: 1rpx solid #eee;
  93. }
  94. .item-box-f{
  95. width: 100%;
  96. position: absolute;
  97. box-sizing: border-box;
  98. padding-left: 60rpx;
  99. image{
  100. width: 40rpx;
  101. height: 40rpx;
  102. position: absolute;
  103. left: 0;
  104. top: 28rpx;
  105. }
  106. }
  107. .pop-coupon{
  108. width: 100%;
  109. height: 70vh;
  110. background-color: #fff;
  111. border-radius: 24rpx 24rpx 0rpx 0rpx;
  112. padding-top: 32rpx !important;
  113. display: flex;
  114. flex-direction: column;
  115. .box-title{
  116. position: relative;
  117. .box-close{
  118. position: absolute;
  119. right: 22rpx;
  120. }
  121. }
  122. }
  123. }
  124. </style>