choose.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <template>
  2. <view class="alertBox">
  3. <image class="titleImg" src="@/static/img/alertbg.png" mode="widthFix"></image>
  4. <view class="title">参赛类型</view>
  5. <view class="titleTip">请选择您的参赛身份类型</view>
  6. <view class="lxTtem flex" @click="type = 1">
  7. <view class="leftTitle flex">
  8. <image class="leftImgTip" src="@/static/img/user.png" mode="heightFix"></image>
  9. <text>个人参赛</text>
  10. </view>
  11. <view class="rightTip flex"><view v-if="type == 1" class="xzTip"></view></view>
  12. </view>
  13. <view class="lxTtem flex" @click="type = 2">
  14. <view class="leftTitle flex">
  15. <image class="leftImgTip" src="@/static/img/userAll.png" mode="heightFix"></image>
  16. <text>企业参赛(我有所属企业)</text>
  17. </view>
  18. <view class="rightTip flex"><view v-if="type == 2" class="xzTip"></view></view>
  19. </view>
  20. <view class="pushtyle" @click="submit">确认</view>
  21. </view>
  22. <!-- <div class="content">
  23. <div class="">
  24. <div class="title">申请类型</div>
  25. <div class="explain">
  26. 请选择您的申请身份类型
  27. </div>
  28. <div class="list">
  29. <label>个人会员</label>
  30. <input type="radio" name="radio" id="" value="1" v-model="type"/>
  31. </div>
  32. <div class="list">
  33. <label>企业会员</label>
  34. <input type="radio" name="radio" id="" value="2" v-model="type"/>
  35. </div>
  36. </div>
  37. <div class="button" @click="submit">
  38. 确认
  39. </div>
  40. </div> -->
  41. </template>
  42. <script>
  43. export default {
  44. data() {
  45. return {
  46. type: 1
  47. }
  48. },
  49. methods: {
  50. submit() {
  51. uni.navigateTo({
  52. url: '/pages/apply/query?type=' + this.type
  53. })
  54. // window.location.href = 'query.html?type='+this.type;
  55. }
  56. }
  57. }
  58. </script>
  59. <style lang="scss" scoped>
  60. /* body {
  61. background-color: #888888;
  62. height: 100%;
  63. }
  64. .content {
  65. width: 70%;
  66. font-size: 15px;
  67. margin: 300px auto;
  68. background-color: #fff;
  69. padding: 20px;
  70. text-align: center;
  71. border-radius: 10px;
  72. }
  73. .title {
  74. font-weight: bold;
  75. margin-bottom: 15px;
  76. }
  77. .explain {
  78. font-size: 12px;
  79. color: #4c4c4c;
  80. }
  81. .list {
  82. margin-top: 30px;
  83. width: 100%;
  84. display: flex;
  85. justify-content: space-between;
  86. }
  87. .button {
  88. background-color: #006eeb;
  89. width: 90%;
  90. margin: 5px auto;
  91. margin-top: 20px;
  92. color: #fff;
  93. border-radius: 5px;
  94. padding: 5px;
  95. } */
  96. .alertBox {
  97. background-color: #fff;
  98. width: 80%;
  99. margin: 280rpx auto;
  100. border-radius: 30rpx;
  101. padding-bottom: 40rpx;
  102. .titleImg {
  103. width: 100%;
  104. z-index: -1;
  105. }
  106. .title {
  107. text-align: center;
  108. font-size: 36rpx;
  109. font-weight: bold;
  110. color: #333333;
  111. margin-top: -80rpx;
  112. }
  113. .titleTip {
  114. text-align: center;
  115. font-size: 24rpx;
  116. font-weight: bold;
  117. color: #808080;
  118. }
  119. .lxTtem {
  120. margin: 0 40rpx;
  121. padding: 30rpx 0;
  122. border-bottom: 1px solid #ebebeb;
  123. .leftTitle {
  124. justify-content: start;
  125. width: 43rpx;
  126. flex-grow: 1;
  127. color: #333333;
  128. font-size: 28rpx;
  129. .leftImgTip {
  130. flex-shrink: 0;
  131. // width: 30rpx;
  132. height: 30rpx;
  133. margin-right: 20rpx;
  134. }
  135. }
  136. .rightTip {
  137. border: 1px solid #006eeb;
  138. opacity: 0.5;
  139. border-radius: 50%;
  140. width: 32rpx;
  141. height: 32rpx;
  142. justify-content: center;
  143. .xzTip {
  144. width: 20rpx;
  145. height: 20rpx;
  146. border-radius: 99rpx;
  147. background-color: #006eeb;
  148. }
  149. }
  150. }
  151. .pushtyle {
  152. background: #006eeb;
  153. // box-shadow: 0px 16rpx 16rpx 0px rgba(215, 39, 43, 0.5);
  154. border-radius: 10rpx;
  155. color: #ffffff;
  156. font-size: 28rpx;
  157. font-weight: bold;
  158. text-align: center;
  159. padding: 20rpx 0;
  160. margin: 0 40rpx;
  161. margin-top: 40rpx;
  162. }
  163. }
  164. </style>