arrive.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. {extend name="public/base_human"/}
  2. {block name="css"}
  3. <style>
  4. .icon{
  5. text-align:center;
  6. margin-top:50px;
  7. }
  8. .msg{
  9. text-align:center;
  10. margin:0;
  11. padding:0;
  12. font-size:24px;
  13. }
  14. .click {
  15. text-align:center;
  16. margin-top:10px;
  17. font-size:14px;
  18. color:var(--blue);
  19. }
  20. .tips{
  21. text-align:center;
  22. margin-top:50px;
  23. font-size:14px;
  24. color:#aaa;
  25. }
  26. .tips .num{
  27. color:#FF589B;
  28. }
  29. .wechat {
  30. width: 80%;
  31. display: block;
  32. margin: 0 auto;
  33. }
  34. </style>
  35. {/block}
  36. {block name="body"}
  37. <van-nav-bar
  38. class="nav-theme"
  39. :fixed="true"
  40. :placeholder="true"
  41. >
  42. <template #title>
  43. <span class="text-white">提示</span>
  44. </template>
  45. </van-nav-bar>
  46. <div style="width:100%;height:46px;"></div>
  47. <h3 class="msg">{$msg}</h3>
  48. <h3 class="click" @click="showBind" v-if="'{$msg}' == '请先报名'">若是其他人帮您报名,请点击验证手机号</h3>
  49. <p style="text-align: center" @click="toUrl"><van-button type="success">点我进入下一步</van-button></p>
  50. <p class="tips">请务必加下方工作人员微信,以便了解活动最新详情</p>
  51. <img src="/static/mobile/images/wechat_qrcode.jpg" class="wechat" alt="">
  52. <van-popup v-model:show="showPopup" position="bottom" :style="{ 'padding-top':'20px',height: '150px' }">
  53. <van-form @submit="onSubmit">
  54. <van-field
  55. v-model="form.mobile"
  56. required
  57. type="mobile"
  58. label="手机号"
  59. placeholder="请输入手机号"
  60. :rules="[{ required: true, message: '请输入手机号' }]"
  61. ></van-field>
  62. <div style="margin: 16px;">
  63. <van-button round block type="primary" native-type="submit">
  64. 绑定
  65. </van-button>
  66. </div>
  67. </van-form>
  68. </van-popup>
  69. {/block}
  70. {block name="script"}
  71. <script>
  72. function v_setup() {
  73. let base = {};
  74. base.showPopup = Vue.ref(false);
  75. base.form = Vue.reactive({mobile:''});
  76. base.toUrl = () => {
  77. location.href = "{:url('human/index')}";
  78. };
  79. base.showBind = () => {
  80. base.showPopup.value = true;
  81. };
  82. //表单提交
  83. base.onSubmit = () => {
  84. postJson('/human/bindMobile',base.form).then(() => {
  85. vant.showDialog({
  86. title: '提示',
  87. message: '绑定成功',
  88. }).then(() => {
  89. location.reload();
  90. });
  91. });
  92. };
  93. return base;
  94. }
  95. </script>
  96. {/block}