loginContent.nvue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <template>
  2. <view class="login-content" @touchmove.stop.prevent>
  3. <view class="content-data">
  4. <view class="data">
  5. <view class="data-img">
  6. <image class="img" src="@/static/img/common/logo.png" mode="aspectFill"></image>
  7. </view>
  8. <view class="data-text">
  9. ICOCO是为了人们摆脱自己单身的生活 而去结交 认识他人的过程一个网络交友平台
  10. </view>
  11. <view class="data-but">
  12. <!-- 开始ICOCO-->
  13. <image class="but-img" src="@/static/img/login/login-but.png" mode="aspectFill"></image>
  14. </view>
  15. <view class="data-agreement">
  16. <image class="agreement-img" @click="setIsCheck" :src="'/static/img/login/check-'+(isCheck?'ok':'no')+'.png'" mode="aspectFill"></image>
  17. <view class="agreement-text sys-size-24 sys-color-white">我已阅读并同意</view>
  18. <view class="agreement-text sys-size-24 sys-color-green">《用户协议》</view>
  19. <view class="agreement-text sys-size-24 sys-color-white">和</view>
  20. <view class="agreement-text sys-size-24 sys-color-green">《隐私政策》</view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. name: "loginContent",
  29. components: {},
  30. props: {},
  31. data() {
  32. return {
  33. isCheck:false
  34. }
  35. },
  36. watch: {},
  37. mounted() {
  38. },
  39. methods: {
  40. setIsCheck(){
  41. this.isCheck=!this.isCheck
  42. }
  43. }
  44. }
  45. </script>
  46. <style scoped>
  47. .login-content{
  48. z-index: 100;
  49. position: fixed;
  50. left: 0;
  51. top: 0;
  52. right: 0;
  53. bottom: 0;
  54. background-color: rgba(0, 0, 0, 0);
  55. }
  56. .content-data{
  57. width: 100vw;
  58. height: 100vh;
  59. position: relative;
  60. }
  61. .content-data .data{
  62. position: absolute;
  63. width: 100vw;
  64. height: calc(528rpx + env(safe-area-inset-bottom)) ;
  65. bottom: 0;
  66. left: 0;
  67. }
  68. .content-data .data .data-img{
  69. width: 100vw;
  70. height: 124rpx;
  71. }
  72. .content-data .data-img .img{
  73. margin-left: calc((100vw - 124rpx) / 2);
  74. height: 124rpx;
  75. width: 124rpx;
  76. border-radius: 24rpx;
  77. }
  78. .content-data .data .data-text{
  79. margin-top: 24rpx;
  80. padding: 0 78rpx;
  81. font-size: 28rpx;
  82. line-height: 44rpx;
  83. color: #FFFFFF;
  84. }
  85. .content-data .data .data-but{
  86. margin:64rpx 78rpx 0 78rpx ;
  87. border-radius: 200rpx;
  88. /*background:#FFFFFF ;*/
  89. /*height: 88rpx;*/
  90. /*line-height: 88rpx;*/
  91. /*color: #000000;*/
  92. /*font-size: 28rpx;*/
  93. /*font-weight: 600;*/
  94. /*text-align: center;*/
  95. /*mix-blend-mode: darken;*/
  96. /*-webkit-background-clip: text;*/
  97. /*-webkit-text-fill-color: transparent;*/
  98. }
  99. .data-but .but-img{
  100. height: 88rpx;
  101. border-radius: 200rpx;
  102. width: calc(100vw - 156rpx);
  103. }
  104. .data-agreement{
  105. margin-top: 40rpx;
  106. display: flex;
  107. justify-content: center;
  108. }
  109. .data-agreement .agreement-img{
  110. width: 24rpx;
  111. height: 24rpx;
  112. border-radius: 4rpx;
  113. margin-right: 6rpx;
  114. /*border: 2rpx solid #FFFFFF;*/
  115. }
  116. .data-agreement .agreement-text{
  117. line-height: 24rpx;
  118. margin-left: 6rpx;
  119. }
  120. </style>