loginContent.nvue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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" >
  13. <!-- 开始ICOCO-->
  14. <image class="but-img" src="/static/img/login/login-but.png" mode="aspectFill"></image>
  15. </view>
  16. <view class="data-agreement">
  17. <image class="agreement-img" @click="setIsCheck" :src="'/static/img/login/check-'+(isCheck?'ok':'no')+'.png'" mode="aspectFill"></image>
  18. <view class="agreement-text" @click="setIsCheck">
  19. <text class="text-item sys-size-24 sys-color-white">我已阅读并同意</text>
  20. </view>
  21. <view class="agreement-text ">
  22. <text class="text-item sys-size-24 sys-color-green">《用户协议》</text>
  23. </view>
  24. <view class="agreement-text ">
  25. <text class="text-item sys-size-24 sys-color-white">和</text>
  26. </view>
  27. <view class="agreement-text ">
  28. <text class="text-item sys-size-24 sys-color-green">《隐私政策》</text>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. import tools from "@/service/tools";
  36. export default {
  37. name: "loginContent",
  38. components: {},
  39. props: {},
  40. data() {
  41. return {
  42. isCheck:false,
  43. windowWidth:750
  44. }
  45. },
  46. watch: {},
  47. onLoad(query) {
  48. },
  49. mounted() {
  50. // let width = uni.getSystemInfoSync().windowWidth;
  51. // this.windowWidth=width*2
  52. // tools.success('width:'+width)
  53. // console.log('width:'+width)
  54. },
  55. methods: {
  56. setIsCheck(){
  57. this.isCheck=!this.isCheck
  58. }
  59. }
  60. }
  61. </script>
  62. <style scoped lang="scss">
  63. .login-content{
  64. z-index: 100;
  65. position: fixed;
  66. left: 0;
  67. top: 0;
  68. right: 0;
  69. bottom: 0;
  70. /*background-color: rgba(0, 0, 0, 0);*/
  71. /*background: #fff;*/
  72. }
  73. .login-content .data{
  74. position: absolute;
  75. /*width: 100vw;*/
  76. height: 528rpx;
  77. bottom: 0;
  78. left: 0;
  79. }
  80. .login-content .data .data-img{
  81. /*width: 100vw;*/
  82. height: 124rpx;
  83. }
  84. .login-content .data-img .img{
  85. /*margin-left: calc((100vw - 124rpx) / 2);*/
  86. height: 124rpx;
  87. width: 124rpx;
  88. border-radius: 24rpx;
  89. }
  90. .login-content .data .data-text{
  91. margin-top: 24rpx;
  92. padding: 0 78rpx;
  93. line-height: 44rpx;
  94. }
  95. .login-content .data .data-text .text-content{
  96. //width: calc( 100vw - 156rpx );
  97. font-size: 24rpx;
  98. color: #FFFFFF;
  99. display:inline-block;
  100. white-space: pre-wrap;
  101. word-wrap: break-word;
  102. height: auto;
  103. }
  104. .login-content .data .data-but{
  105. margin:64rpx 78rpx 0 78rpx ;
  106. border-radius: 200rpx;
  107. /*background:#FFFFFF ;*/
  108. /*height: 88rpx;*/
  109. /*line-height: 88rpx;*/
  110. /*color: #000000;*/
  111. /*font-size: 28rpx;*/
  112. /*font-weight: 600;*/
  113. /*text-align: center;*/
  114. /*mix-blend-mode: darken;*/
  115. /*-webkit-background-clip: text;*/
  116. /*-webkit-text-fill-color: transparent;*/
  117. }
  118. .data-but .but-img{
  119. height: 88rpx;
  120. border-radius: 200rpx;
  121. /*width: calc(100vw - 156rpx);*/
  122. }
  123. .data-agreement{
  124. margin-top: 40rpx;
  125. display: flex;
  126. flex-direction:row;
  127. justify-content: center;
  128. align-items: center;
  129. }
  130. .data-agreement .agreement-img{
  131. width: 24rpx;
  132. height: 24rpx;
  133. border-radius: 4rpx;
  134. margin-right: 6rpx;
  135. /*border: 2rpx solid #FFFFFF;*/
  136. }
  137. .data-agreement .agreement-text{
  138. line-height: 24rpx;
  139. margin-left: 6rpx;
  140. }
  141. </style>