baoming.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <template>
  2. <view>
  3. <!-- <view class="pagebg">
  4. <image src="../static/baoming.png"></image>
  5. <view class="content">
  6. <view class="box">
  7. <view>
  8. <view class="text-bold" style="color: #333333;">您的姓名</view>
  9. <view class="inutline">
  10. <u-input v-model="form.applyName" type="text" placeholder="请输入真实姓名"
  11. inputAlign="text-align:left" />
  12. </view>
  13. </view>
  14. <view class="margin-top">
  15. <view class="text-bold" style="color: #333333;">您的年龄</view>
  16. <view class="inutline">
  17. <u-input v-model="form.applyAge" type="text" placeholder="请输入年龄"
  18. inputAlign="text-align:left" />
  19. </view>
  20. </view>
  21. <view class="margin-top">
  22. <view class="text-bold" style="color: #333333;">联系电话</view>
  23. <view class="inutline">
  24. <u-input v-model="form.applyPhone" type="text" placeholder="请输入联系电话"
  25. inputAlign="text-align:left" />
  26. </view>
  27. </view>
  28. <view class="margin-top">
  29. <view class="text-bold" style="color: #333333;">报考类型</view>
  30. <view class="">
  31. <u-input v-model="form.applyContent" type="text" placeholder="请输入报考证书"
  32. inputAlign="text-align:left" />
  33. </view>
  34. </view>
  35. </view>
  36. <view v-if="form.status==3&&form.auditContent">拒绝理由:{{form.auditContent}}</view>
  37. <view class="btn" v-if="form.status==1||form.status==3" @click="submit()">修改报名</view>
  38. <view class="btn" v-else @click="submit()">提交报名</view>
  39. </view>
  40. </view> -->
  41. <view class="bgs">
  42. <image style="width: 60%;"
  43. src="https://zhaopin.xianmaxiong.com/file/uploadPath/2022/09/06/4757ddfde840c4a6a9ce9e937b571d83.png"
  44. mode="widthFix"></image>
  45. <view class="" style="width: 100%;text-align: center;margin-top: 20rpx;font-weight: bold;">
  46. 功能开发中 敬请期待
  47. </view>
  48. </view>
  49. </view>
  50. </template>
  51. <script>
  52. export default {
  53. data() {
  54. return {
  55. form: {
  56. applyName: '',
  57. applyPhone: '',
  58. applyAge: '',
  59. applyContent: '',
  60. classify: 4
  61. },
  62. userId: '',
  63. }
  64. },
  65. onLoad() {
  66. // this.userId = uni.getStorageSync('userId')
  67. // if(this.userId){
  68. // this.getDetails()
  69. // }
  70. },
  71. onShow() {
  72. },
  73. methods: {
  74. getDetails() {
  75. let data = {
  76. classify: 4
  77. }
  78. this.$Request.get('/app/apply/selectApplyByUserIdAndClassify', data).then(res => {
  79. if (res.code == 0 && res.data) {
  80. this.form = res.data
  81. }
  82. })
  83. },
  84. submit() {
  85. if (this.userId == '') {
  86. uni.showModal({
  87. title: '提示',
  88. content: '您还未登录,请先登录',
  89. confirmColor:'#00B88F',
  90. success: function(res) {
  91. if (res.confirm) {
  92. console.log('用户点击确定');
  93. uni.navigateTo({
  94. url: '/pages/public/login'
  95. })
  96. } else if (res.cancel) {
  97. console.log('用户点击取消');
  98. }
  99. }
  100. })
  101. return
  102. }
  103. if (!this.form.applyName) {
  104. uni.showToast({
  105. title: '请输入真实姓名',
  106. icon: 'none',
  107. duration: 1000
  108. })
  109. return;
  110. }
  111. if (!this.form.applyAge) {
  112. uni.showToast({
  113. title: '请输入年龄',
  114. icon: 'none',
  115. duration: 1000
  116. })
  117. return;
  118. }
  119. if (!this.form.applyPhone) {
  120. uni.showToast({
  121. title: '请输入联系电话',
  122. icon: 'none',
  123. duration: 1000
  124. })
  125. return;
  126. }
  127. if (!this.form.applyContent) {
  128. uni.showToast({
  129. title: '请输入报考证书',
  130. icon: 'none',
  131. duration: 1000
  132. })
  133. return;
  134. }
  135. if (this.form.status == 1 || this.form.status == 3) {
  136. this.$Request.postJson('/app/apply/updateApply', this.form).then(res => {
  137. if (res.code == 0) {
  138. uni.showToast({
  139. title: '报名修改成功!',
  140. icon: 'none'
  141. })
  142. setTimeout(function() {
  143. uni.navigateBack()
  144. }, 1000)
  145. }
  146. })
  147. } else {
  148. this.$Request.postJson('/app/apply/insertApply', this.form).then(res => {
  149. if (res.code == 0) {
  150. uni.showToast({
  151. title: '报名提交成功!',
  152. icon: 'none'
  153. })
  154. setTimeout(function() {
  155. uni.navigateBack()
  156. }, 1000)
  157. }
  158. })
  159. }
  160. }
  161. }
  162. }
  163. </script>
  164. <style lang="less">
  165. page {
  166. background-color: #F7F7F7;
  167. }
  168. .bgs {
  169. width: 100%;
  170. display: flex;
  171. justify-content: center;
  172. align-items: center;
  173. // margin-top: 20vh;
  174. flex-wrap: wrap;
  175. position: fixed;
  176. top: 50%;
  177. left: 50%;
  178. transform: translate(-50%,-70%);
  179. }
  180. .pagebg {
  181. width: 100%;
  182. height: 95vh;
  183. }
  184. .pagebg image {
  185. width: 100%;
  186. height: 100%;
  187. }
  188. .content {
  189. position: absolute;
  190. /* #ifndef H5 */
  191. top: 245px;
  192. /* #endif */
  193. /* #ifdef H5 */
  194. top: 250px;
  195. /* #endif */
  196. left: 0;
  197. right: 0;
  198. z-index: 99;
  199. margin: 0upx 30upx;
  200. }
  201. .box {
  202. background: #FFFFFF;
  203. border: 4upx solid #000000;
  204. border-radius: 20upx;
  205. padding: 30upx;
  206. }
  207. .inutline {
  208. border-bottom: 1rpx solid #E9E9E9;
  209. }
  210. .btn {
  211. background: #FFFFFF;
  212. border-radius: 10upx;
  213. text-align: center;
  214. margin-top: 30upx;
  215. padding: 30upx;
  216. color: #000000;
  217. font-weight: bold;
  218. letter-spacing: 2rpx;
  219. }
  220. </style>