铝交易,微信公众号
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

153 lines
2.9 KiB

11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
  1. <template>
  2. <view class="login">
  3. <view class="logo">
  4. <!-- <image src="/static/image/login/logo.png" mode=""></image> -->
  5. </view>
  6. <view class="title">
  7. {{ $t('pageTitle.welcomeToAluminumTradingPlatform') }}
  8. </view>
  9. <view class="btn mt"
  10. @click="wxLogin">
  11. <view class="icon">
  12. <image src="../static/auth/wx.png" mode=""></image>
  13. </view>
  14. <view class="">
  15. {{ $t('pageTitle.wechatAuthorizedLogin') }}
  16. </view>
  17. </view>
  18. <!-- <view class="btn b2">
  19. 使用短信验证登录
  20. </view> -->
  21. <view class="config">
  22. <uv-checkbox-group
  23. v-model="checkboxValue"
  24. shape="circle">
  25. <view class="content">
  26. <view
  27. style="display: flex;">
  28. <uv-checkbox
  29. size="40rpx"
  30. icon-size="30rpx"
  31. activeColor="#FD5100"
  32. :name="1"
  33. ></uv-checkbox>
  34. {{ $t('components.agreeToReadAndAgree') }} <text @click="openConfigDetail('getPrivacyPolicy')"> {{ $t('components.serviceAgreementAndPrivacyTerms') }}</text>
  35. </view>
  36. <view class="">
  37. {{ $t('components.and') }} <text @click="openConfigDetail('getUserAgreement')"> {{ $t('components.personalInfoProtectionGuideline') }}</text>
  38. </view>
  39. </view>
  40. </uv-checkbox-group>
  41. </view>
  42. <configPopup ref="popup"></configPopup>
  43. </view>
  44. </template>
  45. <script>
  46. import configPopup from '@/components/config/configPopup.vue';
  47. export default {
  48. name : 'Login',
  49. data() {
  50. return {
  51. checkboxValue : []
  52. }
  53. },
  54. methods: {
  55. wxLogin(){
  56. if(!this.checkboxValue.length){
  57. return uni.showToast({
  58. title: this.$t('components.agreeToPrivacyAgreement'),
  59. icon: 'none'
  60. });
  61. }
  62. this.$store.commit('login')
  63. },
  64. //打开应用配置
  65. openConfigDetail(key){
  66. this.$refs.popup.open(key)
  67. }
  68. }
  69. }
  70. </script>
  71. <style scoped lang="scss">
  72. .login{
  73. display: flex;
  74. justify-content: center;
  75. align-items: center;
  76. height: 80vh;
  77. flex-direction: column;
  78. position: relative;
  79. .logo{
  80. height: 140rpx;
  81. width: 140rpx;
  82. background-color: #ddd;
  83. border-radius: 30rpx;
  84. image{
  85. width: 80rpx;
  86. height: 80rpx;
  87. }
  88. margin-bottom: 20rpx;
  89. }
  90. .title{
  91. position: relative;
  92. font-weight: 900;
  93. font-size: 45rpx;
  94. &::after{
  95. content: '';
  96. position: absolute;
  97. left: 0;
  98. top: 100%;
  99. display: block;
  100. height: 8rpx;
  101. width: 210rpx;
  102. background: linear-gradient(to right,$uni-color, #fff);
  103. }
  104. }
  105. .btn{
  106. width: 80%;
  107. height: 100rpx;
  108. background-color: $uni-color;
  109. color: #fff;
  110. display: flex;
  111. justify-content: center;
  112. align-items: center;
  113. margin: 20rpx 0;
  114. border-radius: 20rpx;
  115. .icon{
  116. margin-right: 10rpx;
  117. image{
  118. width: 40rpx;
  119. height: 35rpx;
  120. }
  121. }
  122. }
  123. .b2{
  124. background-color: rgba($uni-color, 0.2);
  125. color: $uni-color;
  126. }
  127. .mt{
  128. margin-top: 200rpx;
  129. }
  130. .config{
  131. position: absolute;
  132. bottom: 0;
  133. font-size: 22rpx;
  134. text-align: center;
  135. line-height: 40rpx;
  136. text{
  137. color: $uni-color;
  138. }
  139. }
  140. }
  141. </style>