progress-query.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <template>
  2. <view class="page-container" :class="'check-type-' + detailObj.applyStatus">
  3. <u-nav-bar title="进度查询"></u-nav-bar>
  4. <view class="u-bg" />
  5. <view class="main-content">
  6. <template v-if="detailObj.applyStatus==1">
  7. <image src="/static/shenhe-中.png" mode="" class="icon"></image>
  8. <view class="des">等待审核</view>
  9. <view class="tip">
  10. <view style="margin-bottom: 15rpx;">审核通过后录取结果将在本页面显示</view>
  11. <view>请耐心等待~</view>
  12. </view>
  13. </template>
  14. <template v-else-if="detailObj.applyStatus==2">
  15. <image src="/static/shenhe-成功.png" mode="" class="icon"></image>
  16. <view class="des">审核通过</view>
  17. <u-panel title="录取结果">
  18. <u-des-row label="班级" :value="detailObj.gradeName" border />
  19. <u-des-row label="学号" :value="detailObj.studentNO" border />
  20. <u-des-row label="姓名" :value="detailObj.studentName" border />
  21. <u-des-row v-if="queryType==1" label="是否通过" value="是" border />
  22. <u-des-row v-else-if="queryType==2" label="是否需要调剂" :value="detailObj.test" border />
  23. <u-des-row label="录取专业" :value="detailObj.majorName" />
  24. </u-panel>
  25. </template>
  26. <template v-else-if="detailObj.applyStatus==3">
  27. <image src="/static/shenhe-失败.png" mode="" class="icon"></image>
  28. <view class="des">审核不通过</view>
  29. <u-panel title="录取结果" theme="red">
  30. <u-des-row label="班级" :value="detailObj.gradeName" border />
  31. <u-des-row label="学号" :value="detailObj.studentNO" border />
  32. <u-des-row label="姓名" :value="detailObj.studentName" border />
  33. <u-des-row label="是否通过">
  34. <view style="color: #EF6960;" slot="value">否</view>
  35. </u-des-row>
  36. </u-panel>
  37. </template>
  38. <template v-else>
  39. <image src="/static/shenhe-中.png" mode="" class="icon"></image>
  40. <view class="des">未提交</view>
  41. </template>
  42. <!-- test -->
  43. <!-- <view style="text-align: left;">
  44. <view v-for="(item, index) in applyStatusList" :key="item.value" @click="detailObj.applyStatus = item.value">
  45. <radio :value="item.label" :checked="detailObj.applyStatus == item.value" />
  46. {{item.label}} {{item.value}}
  47. </view>
  48. </view> -->
  49. </view>
  50. </view>
  51. </template>
  52. <script>
  53. export default {
  54. data() {
  55. return {
  56. //
  57. detailObj: {
  58. applyStatus: 0,
  59. },
  60. queryType: 1, // 1:专业分流 2:特别申请 默认专业分流
  61. applyStatusList: [{
  62. value: 1,
  63. label: '审核中'
  64. },
  65. {
  66. value: 2,
  67. label: '特别申请-审核成功通过'
  68. },
  69. // {
  70. // value: 2,
  71. // label: '专业分流-审核成功通过'
  72. // },
  73. {
  74. value: 3,
  75. label: '审核失败驳回'
  76. },
  77. ],
  78. }
  79. },
  80. onLoad(option) { //option为object类型,会序列化上个页面传递的参数
  81. this.queryType = option.type==2?2:1
  82. console.log(444, this.queryType, option); //打印出上个页面传递的参数。
  83. },
  84. mounted() {
  85. this.init()
  86. },
  87. methods: {
  88. async init() {
  89. uni.showLoading({
  90. title: '加载中'
  91. });
  92. this.queryType===1 && this.$ajax.post('/shunt/major-apply-result').then(res => {
  93. Object.assign(this.detailObj, res.data || {})
  94. }).catch(error => {}).finally(() => {
  95. uni.hideLoading();
  96. })
  97. this.queryType===2 && this.$ajax.post('/shunt/special-apply-result').then(res => {
  98. Object.assign(this.detailObj, res.data || {})
  99. }).catch(error => {}).finally(() => {
  100. uni.hideLoading();
  101. })
  102. },
  103. }
  104. }
  105. </script>
  106. <style lang="scss" scoped>
  107. .page-container {
  108. .u-bg {
  109. height: 603rpx;
  110. background: url('/static/success_bg.png');
  111. background-size: 100% 100%;
  112. background-repeat: no-repeat;
  113. background-position: center;
  114. background-origin: content-box;
  115. }
  116. .main-content {
  117. padding: 32rpx 32rpx 32rpx 32rpx;
  118. text-align: center;
  119. }
  120. .icon {
  121. width: 229rpx;
  122. height: 214rpx;
  123. margin-bottom: 26rpx;
  124. }
  125. .des {
  126. font-size: 36rpx;
  127. font-weight: 400;
  128. color: #FFFFFF;
  129. margin-bottom: 50rpx;
  130. }
  131. .res-container {
  132. .content {
  133. background: #FFFFFF;
  134. box-shadow: 0px 4rpx 22rpx 0px rgba(232, 237, 251, 0.8);
  135. border-radius: 6rpx;
  136. padding: 32rpx;
  137. }
  138. .title {
  139. padding: 0 32rpx 0 28rpx;
  140. position: relative;
  141. text-align: left;
  142. font-size: 30rpx;
  143. font-weight: bold;
  144. color: #078EF7;
  145. margin-bottom: 24rpx;
  146. .icon {
  147. width: 7rpx;
  148. height: 30rpx;
  149. position: absolute;
  150. left: 0;
  151. top: 50%;
  152. transform: translateY(-50%);
  153. }
  154. }
  155. .list-item {
  156. height: 100rpx;
  157. display: flex;
  158. justify-content: space-between;
  159. align-items: center;
  160. font-size: 28rpx;
  161. font-weight: 400;
  162. color: #333333;
  163. border-bottom: 1px solid #F5F7FA;
  164. &:nth-last-child(1) {
  165. border-bottom: none;
  166. }
  167. .label {
  168. font-weight: bold;
  169. }
  170. }
  171. }
  172. .tip {
  173. font-size: 28rpx;
  174. font-weight: 400;
  175. color: #A3ABBF;
  176. margin-top: 160rpx;
  177. }
  178. }
  179. .check-type-1 {
  180. .u-bg {
  181. background: url('/static/bg_plan.png');
  182. background-size: 100% 100%;
  183. background-repeat: no-repeat;
  184. background-position: center;
  185. background-origin: content-box;
  186. }
  187. }
  188. .check-type-3 {
  189. .u-bg {
  190. background: url('/static/bg_fail.png');
  191. background-size: 100% 100%;
  192. background-repeat: no-repeat;
  193. background-position: center;
  194. background-origin: content-box;
  195. }
  196. }
  197. </style>