loginType.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <view class="pages">
  3. <view class="page-bg-wrap">
  4. <image src="../../static/img/loginType-bg.png" class="page-bg" mode="widthFix"></image>
  5. </view>
  6. <view class="login-out">
  7. <view class="login-wrap">
  8. <view class="login-item" @click="personLogin">
  9. <view class="login-item-icon">
  10. <text class="iconfont icon-gerenyonghu"></text>
  11. </view>
  12. <view class="login-item-text">个人用户</view>
  13. </view>
  14. <view class="login-item" @click="companyLogin">
  15. <view class="login-item-icon">
  16. <text class="iconfont icon-qiyeyonghu"></text>
  17. </view>
  18. <view class="login-item-text">企业用户</view>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. params:{
  29. token:'',
  30. }
  31. }
  32. },
  33. onShow() {
  34. },
  35. onLoad() {
  36. },
  37. methods: {
  38. personLogin(){
  39. },
  40. companyLogin(){
  41. uni.navigateTo({
  42. url:'/pages/login/companyLogin'
  43. })
  44. }
  45. }
  46. }
  47. </script>
  48. <style scoped>
  49. /* @import url("./index.css"); */
  50. .login-out{position: fixed;left: 0;right: 0;bottom: 144rpx;}
  51. .login-wrap{display: flex;align-items: center;text-align: center;}
  52. .login-item{flex: 1;}
  53. .login-item-icon{display: flex;margin: 0 auto 14rpx;align-items: center;justify-content: center;width: 151rpx;height: 151rpx;border-radius: 50%;background: linear-gradient(139deg, #43D394 0%, #18C197 100%);}
  54. .login-item-icon .iconfont{color: #fff;font-size: 64rpx;}
  55. .login-item-text{font-size: 28rpx;color: #666;line-height: 40rpx;}
  56. </style>