my-invite.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <view>
  3. <!-- 蒙层 -->
  4. <view class="maskWrapper" v-if="isShowInvite">
  5. <view>
  6. <text>请您从下方列表中,选中一条课程或需求信息,作为邀请的具体内容,发给对方!</text>
  7. </view>
  8. <scroll-view class="scrollVertical" scroll-y>
  9. <radio-group class="chooseList">
  10. <view v-for="(item, index) in item11" :key="index">
  11. <radio class="chooseDetail">
  12. <view class="courseTitle">
  13. <text>课程号</text>
  14. <text class="courseDetail">{{item.courseId}}</text>
  15. </view>
  16. <view class="courseTitle">
  17. <text>辅导科目</text>
  18. <text class="courseDetail">{{item.subject}}</text>
  19. </view>
  20. </radio>
  21. </view>
  22. </radio-group>
  23. </scroll-view>
  24. <view class="commitAndCancel">
  25. <view class="cancel" @click="cancelChosed">取消</view>
  26. <view class="commit">发送</view>
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. name:"my-invite",
  34. data() {
  35. return {
  36. };
  37. },
  38. props: {
  39. isShowInvite: {
  40. type: Boolean,
  41. default: false
  42. },
  43. item11: {
  44. type: Array
  45. }
  46. },
  47. methods: {
  48. cancelChosed() {
  49. this.$emit("cancelChosed")
  50. }
  51. }
  52. }
  53. </script>
  54. <style lang="scss">
  55. /* 以下是蒙层样式 */
  56. .maskWrapper{
  57. z-index: 999;
  58. // margin-left: -20rpx;
  59. padding-left: 20rpx;
  60. position: fixed;
  61. height: 55%;
  62. bottom: 0;
  63. background-color: #D1D1D1;
  64. border-top-left-radius: 30rpx;
  65. border-top-right-radius: 30rpx;
  66. }
  67. /* 可滚动区域 */
  68. .scrollVertical{
  69. height: 76%;
  70. }
  71. /* 选项区 */
  72. .chooseList{
  73. display: flex;
  74. flex-direction: column;
  75. }
  76. /* 单个选项样式 */
  77. .chooseDetail{
  78. width: 94%;
  79. padding: 10rpx;
  80. margin: 10rpx 0;
  81. border: 1rpx solid gray;
  82. border-radius: 20rpx;
  83. background-color: #DEEBF7;
  84. }
  85. /* 设置选项与圆圈的距离 */
  86. .courseTitle{
  87. margin-left: 30rpx;
  88. }
  89. /* 课程号、辅导科目详情 */
  90. .courseDetail{
  91. margin-left: 20rpx;
  92. font-weight: bold;
  93. }
  94. /* 底部按钮 */
  95. .commitAndCancel{
  96. display: flex;
  97. width: 100%;
  98. justify-content: space-around;
  99. position: fixed;
  100. bottom: 40rpx;
  101. }
  102. .cancel,
  103. .commit{
  104. font-size: 40rpx;
  105. border: 1rpx solid gray;
  106. padding: 10rpx 60rpx;
  107. border-radius: 40rpx;
  108. background-color: #8FAADC;
  109. color: white;
  110. }
  111. </style>