index.vue 5.4 KB

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