loginContent.nvue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <template>
  2. <view class="login-content" @touchmove.stop.prevent>
  3. <view class="data" >
  4. <view class="data-img">
  5. <image :style="{'margin-left':((windowWidth-124)/2)+'rpx'}" class="img" src="/static/img/common/logo.png" mode="aspectFill"></image>
  6. </view>
  7. <view class="data-text">
  8. <text class="text-content" :style="{'width':(windowWidth-156)+'rpx'}">
  9. ICOCO是为了人们摆脱自己单身的生活 而去结交 认识他人的过程一个网络交友平台
  10. </text>
  11. </view>
  12. <view class="data-but" @click.stop="goToLogin" >
  13. <!-- 开始ICOCO-->
  14. <image class="but-img" src="/static/img/login/login-but.png" mode="aspectFill"></image>
  15. </view>
  16. <view class="agreement-item">
  17. <login-agreement ></login-agreement>
  18. </view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. import LoginAgreement from "@/pages/login/model/loginAgreement";
  24. export default {
  25. name: "loginContent",
  26. components: {LoginAgreement},
  27. props: {},
  28. data() {
  29. return {
  30. windowWidth:750
  31. }
  32. },
  33. watch: {},
  34. onLoad(query) {
  35. },
  36. mounted() {
  37. // let width = uni.getSystemInfoSync().windowWidth;
  38. // this.windowWidth=width*2
  39. // tools.success('width:'+width)
  40. // console.log('width:'+width)
  41. },
  42. methods: {
  43. goToLogin(){
  44. uni.navigateTo({
  45. 'url':'/pages/login/localPhoneLogin'
  46. })
  47. }
  48. }
  49. }
  50. </script>
  51. <style scoped lang="scss">
  52. .login-content{
  53. z-index: 100;
  54. position: fixed;
  55. left: 0;
  56. top: 0;
  57. right: 0;
  58. bottom: 0;
  59. /*background-color: rgba(0, 0, 0, 0);*/
  60. /*background: #fff;*/
  61. }
  62. .login-content .data{
  63. position: absolute;
  64. /*width: 100vw;*/
  65. height: 528rpx;
  66. bottom: 0;
  67. left: 0;
  68. }
  69. .login-content .data .data-img{
  70. /*width: 100vw;*/
  71. height: 124rpx;
  72. }
  73. .login-content .data-img .img{
  74. /*margin-left: calc((100vw - 124rpx) / 2);*/
  75. height: 124rpx;
  76. width: 124rpx;
  77. border-radius: 24rpx;
  78. }
  79. .login-content .data .data-text{
  80. margin-top: 24rpx;
  81. padding: 0 78rpx;
  82. line-height: 44rpx;
  83. }
  84. .login-content .data .data-text .text-content{
  85. //width: calc( 100vw - 156rpx );
  86. font-size: 24rpx;
  87. color: #FFFFFF;
  88. display:flex;
  89. white-space: pre-wrap;
  90. word-wrap: break-word;
  91. }
  92. .login-content .data .data-but{
  93. width: 590rpx;
  94. box-sizing: border-box;
  95. margin:64rpx 78rpx 0 78rpx ;
  96. border-radius: 200rpx;
  97. /*background:#FFFFFF ;*/
  98. /*height: 88rpx;*/
  99. /*line-height: 88rpx;*/
  100. /*color: #000000;*/
  101. /*font-size: 28rpx;*/
  102. /*font-weight: 600;*/
  103. /*text-align: center;*/
  104. /*mix-blend-mode: darken;*/
  105. /*-webkit-background-clip: text;*/
  106. /*-webkit-text-fill-color: transparent;*/
  107. }
  108. .data-but .but-img{
  109. width: 590rpx;
  110. height: 88rpx;
  111. border-radius: 200rpx;
  112. /*width: calc(100vw - 156rpx);*/
  113. margin-bottom: 40rpx;
  114. }
  115. .agreement-item{
  116. margin-left:122rpx;
  117. }
  118. </style>