applicationInfo.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <template>
  2. <div class="applicationInfo">
  3. <div class="applicationBox">
  4. <div class="applicationInfoTitle">请填写报名信息</div>
  5. <ul class="appInfoBox">
  6. <li class="appInfoLi">
  7. <span class="appInfoLiTitle">
  8. <span class="redDoll">*</span>
  9. <span class="liName">公司名称</span>
  10. </span>
  11. <input type="text" name="" id="" v-model="form.companyName" class="appInfoIpt" placeholder="请输入">
  12. </li>
  13. <li class="appInfoLi">
  14. <span class="appInfoLiTitle">
  15. <span class="redDoll">*</span>
  16. <span class="liName">参与人姓名</span>
  17. </span>
  18. <input type="text" name="" id="" v-model="form.name" class="appInfoIpt" placeholder="请输入">
  19. </li>
  20. <li class="appInfoLi">
  21. <span class="appInfoLiTitle">
  22. <span class="redDoll">*</span>
  23. <span class="liName">参与人职位</span>
  24. </span>
  25. <input type="text" name="" id="" v-model="form.position" class="appInfoIpt" placeholder="请输入">
  26. </li>
  27. <li class="appInfoLi">
  28. <span class="appInfoLiTitle">
  29. <span class="redDoll">*</span>
  30. <span class="liName">联系手机</span>
  31. </span>
  32. <input type="text" name="" id="" v-model="form.phone" class="appInfoIpt" placeholder="请输入">
  33. </li>
  34. <li class="appInfoLi" style="border: none;flex-direction: column;align-items: start">
  35. <span class="appInfoLiTitle">
  36. <span class="liName">说明</span>
  37. </span>
  38. <van-field
  39. :value="form.remark"
  40. autosize
  41. type="textarea"
  42. placeholder="请输入说明"
  43. class="appInfoIpt"
  44. maxlength="800"
  45. />
  46. </li>
  47. </ul>
  48. </div>
  49. <button class="bmBtn" @tap="submit">提交报名</button>
  50. </div>
  51. </template>
  52. <script>
  53. import { updateRegistration,getUserLocalStorageInfo } from "@/js_sdk/http";
  54. export default {
  55. name: "applicationInfo",
  56. data(){
  57. return{
  58. getUserLocalStorageInfo: getUserLocalStorageInfo(),
  59. value:'',
  60. activityId: '',
  61. form:{
  62. companyId: getUserLocalStorageInfo().userId,
  63. companyName: getUserLocalStorageInfo().username,
  64. }
  65. }
  66. },
  67. onLoad(options){
  68. this.activityId = options.activityId
  69. },
  70. methods:{
  71. submit(e){
  72. this.form.communityActivityId = this.activityId
  73. console.log(111111)
  74. uni.navigateBack({
  75. // url:'pages/subPackages/parkActivity/activeApplication?activityId=' + this.activityId
  76. })
  77. // updateRegistration(this.form).then((res) => {
  78. // if (res.errno === 0){
  79. // uni.showToast({
  80. // title: '报名成功',
  81. // icon: 'success',
  82. // mask: true,
  83. // duration: 1000
  84. // });
  85. // uni.redirectTo({
  86. // url:'pages/subPackages/parkActivity/activeApplication?activityId=' + this.activityId
  87. // })
  88. // }else {
  89. // uni.showToast({
  90. // title: res.msg,
  91. // icon: 'success',
  92. // mask: true,
  93. // duration: 1000
  94. // });
  95. // }
  96. // })
  97. },
  98. }
  99. }
  100. </script>
  101. <style lang="scss">
  102. .applicationInfo{
  103. padding-bottom: 120rpx;
  104. .applicationBox{
  105. background: white;
  106. margin-top: 24rpx;
  107. padding: 32rpx;
  108. }
  109. .applicationInfoTitle{
  110. color:#222222;
  111. font-size: 36rpx;
  112. font-weight: 600;
  113. }
  114. .appInfoBox{
  115. margin: 16rpx 0;
  116. .appInfoLi{
  117. padding: 32rpx 0;
  118. display: flex;
  119. justify-content: space-between;
  120. align-items: center;
  121. border-bottom: 1px solid #E6E6E6;
  122. .appInfoLiTitle{
  123. display: flex;
  124. align-items: center;
  125. .redDoll{
  126. color: red;
  127. margin-right: 5rpx;
  128. }
  129. .liName{
  130. color: #333333;
  131. font-size: 32rpx;
  132. }
  133. }
  134. .appInfoIpt{
  135. width: 400rpx;
  136. font-size: 32rpx;
  137. color: #666666;
  138. text-align: right;
  139. }
  140. .van-cell {
  141. background: #F5F7FA !important;
  142. border-radius: 8rpx;
  143. font-size: 28rpx;
  144. width: 686rpx;
  145. margin: 24rpx 0;
  146. }
  147. }
  148. }
  149. .bmBtn{
  150. width: 654rpx;
  151. height: 96rpx;
  152. display: flex;
  153. align-items: center;
  154. justify-content: center;
  155. color: white;
  156. background: #0365F9;
  157. border-radius: 8rpx;
  158. margin: 48rpx 48rpx 0rpx 48rpx;
  159. }
  160. }
  161. </style>