金诚优选前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
1.7 KiB

  1. <template>
  2. <view>
  3. <lf-nav title="确认报名" :showIcon="true"></lf-nav>
  4. <view class="content">
  5. <view class="title">联系人信息</view>
  6. <view class="list">
  7. <view class="label">姓名</view>
  8. <input v-model="name" class="input" placeholder="请输入您的姓名" />
  9. </view>
  10. <view class="list">
  11. <view class="label">手机号</view>
  12. <input v-model="phone" class="input" placeholder="请输入您的手机号" maxlength="11" />
  13. </view>
  14. </view>
  15. <view class="fixed-btn" hover-class="lf-opacity" @click="confirm">确认报名免费</view>
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. data(){
  21. return {
  22. name: '',
  23. phone: ''
  24. }
  25. },
  26. onLoad(){
  27. },
  28. methods: {
  29. confirm(){
  30. if(!this.name || !this.phone) return this.$msg('请将信息补充完整');
  31. this.$msg('报名成功').then(() => {
  32. this.$toBack();
  33. })
  34. }
  35. }
  36. }
  37. </script>
  38. <style lang="scss" scoped="scoped">
  39. .content{
  40. width: 750rpx;
  41. height: max-content;
  42. padding: 40rpx 32rpx;
  43. box-sizing: border-box;
  44. .title{
  45. font-size: 32rpx;
  46. color: #222222;
  47. font-weight: bold;
  48. margin-bottom: 20rpx;
  49. }
  50. .list{
  51. width: 100%;
  52. height: 100rpx;
  53. border-bottom: 1rpx solid #e5e5e5;
  54. display: flex;
  55. align-items: center;
  56. margin-top: 10rpx;
  57. .label{
  58. width: 130rpx;
  59. font-size: 28rpx;
  60. color: #777777;
  61. }
  62. .input{
  63. width: 554rpx;
  64. font-size: 28rpx;
  65. }
  66. }
  67. }
  68. .fixed-btn{
  69. position: fixed;
  70. bottom: 10vh;
  71. left: calc(50% - 275rpx);
  72. width: 550rpx;
  73. height: 100rpx;
  74. background-color: #15716E;
  75. color: #FFFFFF;
  76. text-align: center;
  77. line-height: 100rpx;
  78. font-size: 32rpx;
  79. border-radius: 50rpx;
  80. }
  81. </style>