铝交易,微信公众号
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.

156 lines
2.9 KiB

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