index.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <template>
  2. <view class="safeArea">
  3. <view class="appointment">
  4. <view class="appointmentItem appointmentHead">
  5. <view class="imgBox">
  6. <image src="/static/login_bg.jpg"></image>
  7. </view>
  8. <u-line color="#EEEEEE" />
  9. <view class="title">这是一个考试标题过长换行过长换行过长换行过长换行过长换行</view>
  10. </view>
  11. <view class="appointmentItem appointmentTime">
  12. <view class="item">
  13. <view class="labelName">报名时间:</view>
  14. <view class="valName">2021/12/1 ~ 2021/12/31</view>
  15. </view>
  16. <u-line color="#EEEEEE" />
  17. <view class="item">
  18. <view class="labelName">温馨提示:</view>
  19. <view class="valName">预约开放期登录CCMS,进入主页,显示预核准的已报科目考试,点击预约考试科目,按流程选择考试考点、具体考试时间,提交完成。</view>
  20. </view>
  21. </view>
  22. <view class="appointmentItem appointmentMajor">
  23. <view class="top">
  24. <view class="labelName">报考专业:</view>
  25. <view class="valName">XXX专业名称XXX</view>
  26. </view>
  27. </view>
  28. <view class="appointmentItem appointmentInfo">
  29. <view class="item"><text class="labelName">姓<text style="opacity: 0;">姓</text>名:</text>倪虹洁</view>
  30. <u-line color="#EEEEEE" />
  31. <view class="item"><text class="labelName">身份证:</text>44046354687236685698</view>
  32. </view>
  33. <view class="appointmentItem appointmentType">
  34. <view class="item">
  35. <view class="labelName">学员类型:</view>
  36. <u-radio-group placement="column">
  37. <u-radio
  38. :customStyle="{marginBottom: '8px'}"
  39. v-for="(item, index) in radiolist"
  40. :key="index"
  41. :label="item.name"
  42. :name="item.name"
  43. @change="radioChange"
  44. >{{item.name}}
  45. </u-radio>
  46. </u-radio-group>
  47. </view>
  48. </view>
  49. <view class="btn" @click="next">下一步</view>
  50. </view>
  51. <!-- 弹框-->
  52. <u-popup v-model="showTip" mode="center" class="tipModel">
  53. <view class="tipBox">
  54. <view class="title">温馨提示</view>
  55. <view class="main">
  56. <view class="item">您所报考的【设备安装施工员】专业,</view>
  57. <view class="item">考试次数已经用完。</view>
  58. <view class="item">需要预约考试的补考学员,</view>
  59. <view class="item">请先购买补考机会。</view>
  60. </view>
  61. <view class="btn">
  62. <view class="btn1 cancel" @click="showTip=false">知道了</view>
  63. <view class="btn1 submit" @click="submit">马上缴费</view>
  64. </view>
  65. </view>
  66. </u-popup>
  67. </view>
  68. </template>
  69. <script>
  70. import { mapGetters } from 'vuex';
  71. export default {
  72. data() {
  73. return {
  74. showTip: false,
  75. radiolist: [{name: '非补考学员'},{name: '补考学员'}]
  76. };
  77. },
  78. onLoad(option) {},
  79. methods: {
  80. radioChange(e){
  81. console.log(e)
  82. },
  83. next(){
  84. this.showTip = true
  85. },
  86. submit(){
  87. this.$navTo.togo('/pages2/appointment/order');
  88. }
  89. },
  90. };
  91. </script>
  92. <style >
  93. page{
  94. background-color: #EAEEF1;
  95. }
  96. .appointmentType .u-radio__label{
  97. margin-left:16rpx!important;
  98. margin-right: 116rpx!important;;
  99. }
  100. .tipModel .u-mode-center-box{
  101. background-color: transparent!important;
  102. }
  103. </style>
  104. <style scoped lang="scss">
  105. .appointment{
  106. padding: 16rpx;
  107. .appointmentItem{
  108. background: #FFFFFF;
  109. border-radius: 16rpx;
  110. margin-bottom: 16rpx;
  111. .item{
  112. padding: 24rpx 0;
  113. }
  114. .labelName{
  115. font-size: 28rpx;
  116. font-family: PingFang SC;
  117. font-weight: 500;
  118. color: #999999;
  119. margin-bottom: 16rpx;
  120. line-height: 1;
  121. }
  122. .valName{
  123. font-size: 30rpx;
  124. font-family: PingFang SC;
  125. font-weight: 500;
  126. color: #333333;
  127. }
  128. }
  129. .appointmentHead{
  130. padding-top: 16rpx;
  131. .imgBox{
  132. width: 590rpx;
  133. height: 232rpx;
  134. margin: 0 auto;
  135. background: #ccc;
  136. overflow: hidden;
  137. }
  138. .title{
  139. padding:24rpx 28rpx 31rpx 31rpx;
  140. font-size: 30rpx;
  141. font-weight: bold;
  142. font-family: PingFang SC;
  143. color: #333333;
  144. }
  145. }
  146. .appointmentTime{
  147. padding: 10rpx 30rpx 0;
  148. }
  149. .appointmentMajor{
  150. padding: 34rpx 30rpx 24rpx;
  151. }
  152. .appointmentInfo{
  153. padding: 8rpx 30rpx;
  154. }
  155. .appointmentType{
  156. padding: 8rpx 30rpx 4rpx;
  157. .u-radio__label{
  158. margin-left:16rpx;
  159. margin-right: 116rpx;
  160. }
  161. }
  162. .btn{
  163. width: 526rpx;
  164. height: 80rpx;
  165. line-height: 80rpx;
  166. background: #007AFF;
  167. border-radius: 40rpx;
  168. font-size: 30rpx;
  169. font-family: PingFang SC;
  170. font-weight: bold;
  171. color: #FFFFFF;
  172. margin: 40rpx auto;
  173. text-align: center;
  174. }
  175. }
  176. .tipBox{
  177. width: 640rpx;
  178. padding: 30rpx 36rpx 40rpx;
  179. background: #FFFFFF;
  180. border-radius: 24rpx;
  181. font-family: PingFang SC;
  182. .title{
  183. text-align: center;
  184. font-size: 30rpx;
  185. font-weight: bold;
  186. color: #333333;
  187. margin-bottom: 40rpx;
  188. }
  189. .main{
  190. font-size: 30rpx;
  191. font-weight: 500;
  192. color: #666666;
  193. line-height: 48rpx;
  194. margin-bottom: 40rpx;
  195. }
  196. .btn{
  197. display: flex;
  198. justify-content: center;
  199. .btn1{
  200. width: 200rpx;
  201. height: 80rpx;
  202. line-height: 80rpx;
  203. text-align: center;
  204. background: #F5F5F5;
  205. border-radius: 40px;
  206. font-size: 30rpx;
  207. font-weight: bold;
  208. color: #007AFF;
  209. margin: 0 20rpx;
  210. &.submit{
  211. background: #007AFF;
  212. color:#fff;
  213. }
  214. }
  215. }
  216. }
  217. </style>