index.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <template>
  2. <view>
  3. <view class="jpLogin">
  4. <view class="jpLogin-title">
  5. <h2>会员登录</h2>
  6. <p>欢迎来到荆州工会鹊桥</p>
  7. </view>
  8. <view class="jpLogin-main">
  9. <u-form :model="form" ref="uForm">
  10. <view class="jpLogin-input">
  11. <u-icon custom-prefix="custom-icon" name="profile-fill" class="jpLogin-icon"></u-icon>
  12. <u-form-item><u-input v-model="form.name" placeholder="请填写18位身份证号" /></u-form-item>
  13. </view>
  14. <view class="jpLogin-input">
  15. <u-icon custom-prefix="custom-icon" name="cellphone-fill" class="jpLogin-icon"></u-icon>
  16. <u-form-item><u-input v-model="form.name" placeholder="请填写手机号码" /></u-form-item>
  17. </view>
  18. <view class="jpLogin-input">
  19. <u-icon custom-prefix="custom-icon" name="lock-password-fill" class="jpLogin-icon"></u-icon>
  20. <u-form-item><u-input v-model="form.name" placeholder="请输入验证码" /></u-form-item>
  21. </view>
  22. </u-form>
  23. <view class="jpLogin-link">
  24. <view class="jpLogin-link-l">
  25. <p>没有账号,</p>
  26. <span>去注册</span>
  27. </view>
  28. <span>获取验证码</span>
  29. </view>
  30. </view>
  31. <view style="margin-top: 60px;">
  32. <u-button type="error" shape="circle" :custom-style="customStyle">登录</u-button>
  33. </view>
  34. <view class="jpLogin-radio">
  35. <u-radio-group v-model="value">
  36. <u-radio activeColor="#ff5e5e"><view class="u-flex"><p>已阅读并同意</p><span>《会员服务协议》</span></view></u-radio>
  37. </u-radio-group>
  38. </view>
  39. </view>
  40. </view>
  41. </template>
  42. <script>
  43. export default {
  44. data() {
  45. return {
  46. form: {
  47. name: '',
  48. },
  49. value:'0',
  50. customStyle: {
  51. background: '#FF5E5E'
  52. }
  53. }
  54. methods: {
  55. }
  56. }
  57. }
  58. </script>
  59. <style lang="scss" scoped>
  60. .jpLogin {
  61. background: url(/static/img/loginBg.png) top center no-repeat;
  62. background-size: 100%;
  63. min-height: 100vh;
  64. padding: 50px;
  65. }
  66. .jpLogin-title {
  67. h2 {
  68. font-size: 24px;
  69. font-weight: normal;
  70. }
  71. p {
  72. color: #777;
  73. font-size: 14px;
  74. margin-top: 3px;
  75. }
  76. }
  77. .jpLogin-main {
  78. margin-top: 40px;
  79. }
  80. .jpLogin-input {
  81. height: 48px;
  82. background-color: #fff;
  83. border: 1px solid #EEDCDC;
  84. border-radius: 50px;
  85. display: flex;
  86. width: 100%;
  87. padding: 0 20px;
  88. margin-bottom: 20px;
  89. .u-form-item{
  90. flex: 1;
  91. }
  92. .jpLogin-icon{
  93. font-size: 20px;
  94. color:#FFC1C1;
  95. margin-right: 20px;
  96. position: relative;
  97. &:after{
  98. content: '';
  99. width: 1px;
  100. height: 16px;
  101. background-color:#E6D6D6;
  102. position: absolute;
  103. right: -10px;
  104. top: 15px;
  105. }
  106. }
  107. }
  108. .jpLogin-link {
  109. display: flex;
  110. justify-content: space-between;
  111. align-items: center;
  112. font-size: 14px;
  113. .jpLogin-link-l {
  114. display: flex;
  115. align-items: center;
  116. p {
  117. color: #4f4646;
  118. }
  119. }
  120. span {
  121. color: #1677FF;
  122. }
  123. }
  124. .jpLogin-radio{
  125. margin-top: 16px;
  126. text-align: center;
  127. p{
  128. font-size: 14px;
  129. color: #a0a4b8;
  130. }
  131. span{
  132. color:#ff5e5e;
  133. font-size: 14px;
  134. }
  135. }
  136. </style>