account-login.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <template>
  2. <view style="position: relative;">
  3. <view class="bg"></view>
  4. <view class="bg1"></view>
  5. <view class="content">
  6. <view class="top">
  7. <view class="logo">
  8. <image src="@/static/icon/logo.png" mode=""></image>
  9. </view>
  10. </view>
  11. <view style="width: 76%;margin-top: 30rpx;">
  12. <u-form :model="form">
  13. <u-form-item :rightIconStyle="{color: '#888', fontSize: '32rpx'}" label-position="top" label="账号" prop="phone" label-width="150">
  14. <view style="border-bottom: 1rpx solid #DDDDDD;">
  15. <u-input :border="false" placeholder="请输入账号" v-model="form.account" type="number"></u-input>
  16. </view>
  17. </u-form-item>
  18. <u-form-item label-position="top" label="密码" prop="code" label-width="150">
  19. <view style="border-bottom: 1rpx solid #DDDDDD;">
  20. <u-input :border="false" placeholder="请输入登录密码" type="password" v-model="form.password"></u-input>
  21. </view>
  22. </u-form-item>
  23. </u-form>
  24. <view @click="$jump('/pages/login/login')" class="text-right margin-top-10 text-sm">
  25. <text>手机号快捷登录</text>
  26. </view>
  27. </view>
  28. <view style="width: 86%;margin-top: 80rpx;">
  29. <view @click="login" class="btn cu-btn round" style="width:100%;height: 90rpx;font-size: 36rpx;">
  30. 立即登录
  31. </view>
  32. <view class="flex justify-between margin-top-30 padding-20 text-sm">
  33. <text @click="$jump('/pages/login/forget')">忘记密码</text>
  34. <text @click="$jump('/pages/login/register')">注册账号</text>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. data() {
  43. return {
  44. customStyle:{
  45. 'backgroundColor':'#d18c42',
  46. 'color':'#ffffff'
  47. },
  48. form:{
  49. account:'',
  50. password:''
  51. }
  52. }
  53. },
  54. methods: {
  55. login(){
  56. uni.reLaunch({
  57. url:"/pages/index/index"
  58. })
  59. }
  60. }
  61. }
  62. </script>
  63. <style lang="scss" scoped>
  64. $color:#d18c42;
  65. page{
  66. background-color: #FFFFFF;
  67. }
  68. .btn{
  69. background-color: $color;
  70. color:#FFFFFF;
  71. }
  72. .bg{
  73. z-index: 99;
  74. height: 440rpx;
  75. width: 440rpx;
  76. position: absolute;
  77. right: -240rpx;
  78. top: -240rpx;
  79. background-color: #d18c42;
  80. border-radius: 50%;
  81. box-shadow: 0rpx 0rpx 50rpx #c5803b;
  82. }
  83. .bg1{
  84. height: 500rpx;
  85. width: 500rpx;
  86. position: absolute;
  87. right: -240rpx;
  88. top: -240rpx;
  89. background-color: #d18c42;
  90. border-radius: 50%;
  91. box-shadow: #c6813b;
  92. }
  93. .content{
  94. height: 84vh;
  95. display: flex;
  96. flex-direction: column;
  97. justify-content: center;
  98. align-items: center;
  99. .top{
  100. display: flex;
  101. .logo{
  102. background-color: $color;
  103. width: 160rpx;
  104. height: 160rpx;
  105. border-radius: 40rpx;
  106. display: flex;
  107. justify-content: center;
  108. align-items: center;
  109. image{
  110. width: 100rpx;
  111. height: 100rpx;
  112. }
  113. }
  114. .title{
  115. margin-right: 20rpx;
  116. display: flex;
  117. flex-direction: column;
  118. text-align: left;
  119. text:first-child{
  120. font-size: 46rpx;
  121. color: #000;
  122. margin-bottom: 20rpx;
  123. }
  124. text:last-child{
  125. font-size: 28rpx;
  126. color: #7f7f7f;
  127. }
  128. }
  129. }
  130. }
  131. </style>