Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

238 lignes
4.6 KiB

  1. <template>
  2. <view class="content">
  3. <view class="sadsadasdasdsadasd">智能高效客户管理平台</view>
  4. <view class="sction">
  5. <view class="mama">
  6. <view class="mamaz">
  7. <input type="text" v-model="msg" maxlength="4" placeholder="请输入验证码" placeholder-class="input-class" class="input" />
  8. </view>
  9. <view class="mamay">
  10. <view class="sada" v-if="sendAuthCode" style="font-size: 35rpx;" @click="getAuthCode">获取验证码</view>
  11. <text class="sada" v-if="!sendAuthCode">
  12. 重新发送
  13. <text>({{ auth_time }})</text>
  14. </text>
  15. </view>
  16. </view>
  17. <view class="login-btn" :style="{ background: msg == '' ? '#F2F2F2' : '#2B6EFF' }" @click="denglu"><text
  18. class="">确认</text></view>
  19. <view class="code-login" @click="passwordlogin"><text>密码登录</text></view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. var util = require("../../utils/util.js");
  25. var config = require("../../config");
  26. var app = getApp();
  27. export default {
  28. data() {
  29. return {
  30. sendAuthCode: true,
  31. auth_time: 0,
  32. msg: '',
  33. phonecet: '',
  34. role:''
  35. };
  36. },
  37. onLoad: function(options) {
  38. var phonese = options.username;
  39. var phonexxz = phonese.substring(0, 3) + '****' + phonese.substring(7);
  40. this.phone = phonexxz,
  41. this.phonecet = options.username,
  42. this.role = options.role
  43. this.sendAuthCode = false;
  44. this.auth_time = 60;
  45. var auth_timetimer = setInterval(() => {
  46. this.auth_time--;
  47. if (this.auth_time <= 0) {
  48. this.sendAuthCode = true;
  49. clearInterval(auth_timetimer);
  50. }
  51. }, 1000);
  52. },
  53. methods: {
  54. //跳转密码登录页面
  55. passwordlogin() {
  56. uni.reLaunch()({
  57. url: '/pages/login/index',
  58. })
  59. },
  60. //获取验证码
  61. getAuthCode() {
  62. this.sendAuthCode = false;
  63. this.auth_time = 60;
  64. var auth_timetimer = setInterval(() => {
  65. this.auth_time--;
  66. if (this.auth_time <= 0) {
  67. this.sendAuthCode = true;
  68. clearInterval(auth_timetimer);
  69. }
  70. }, 1000);
  71. },
  72. //登录
  73. denglu() {
  74. if (this.msg=='') {
  75. uni.showToast({
  76. title: '验证码不能为空',
  77. icon: 'none'
  78. });
  79. return
  80. }
  81. if (this.msg.length == 4) {
  82. uni.navigateTo({
  83. url: '/pages/login/Setthepassword?username='+'18655732363',
  84. })
  85. } else {
  86. uni.showToast({
  87. title: '验证码位数不正确',
  88. icon: 'none'
  89. });
  90. }
  91. },
  92. }
  93. };
  94. </script>
  95. <style>
  96. .mama {
  97. width: 620rpx;
  98. display: flex;
  99. border-bottom: 1px solid #E1E1E1;
  100. margin: 60rpx auto;
  101. }
  102. .sadsadasdasdsadasd {
  103. font-size: 34rpx;
  104. font-family: PingFangSC-Medium, PingFang SC;
  105. font-weight: 500;
  106. color: #008EF2;
  107. width: 100%;
  108. text-align: center;
  109. padding-top: 340rpx;
  110. }
  111. .mamaz {
  112. width: 50%;
  113. height: 90rpx;
  114. }
  115. .mamay {
  116. width: 50%;
  117. height: 90rpx;
  118. }
  119. .input {
  120. width: 350rpx;
  121. color: #78DFB0;
  122. height: 100%;
  123. line-height: 90rpx;
  124. font-size: 17px;
  125. color: #171717;
  126. }
  127. .sada {
  128. width: 70%;
  129. line-height: 90rpx;
  130. color: #2B6EFF;
  131. text-align: right;
  132. font-size: 35rpx;
  133. margin-left: 100rpx;
  134. display: block;
  135. }
  136. .content {
  137. margin: 0;
  138. padding: 0;
  139. background-image: url(https://qufang.oss-cn-beijing.aliyuncs.com/channelHelper/background.png);
  140. background-size: 100vw auto;
  141. background-repeat: no-repeat;
  142. }
  143. .login-text {
  144. font-size: 60rpx;
  145. font-family: PingFang SC;
  146. font-weight: 500;
  147. color: rgba(23, 23, 23, 1);
  148. letter-spacing: 8rpx;
  149. margin-left: 75rpx;
  150. font-weight: bold;
  151. }
  152. .login-input {
  153. border-bottom: 1px solid #e1e1e1;
  154. color: #c9cac9;
  155. margin: 98rpx 64rpx 200rpx 75rpx;
  156. font-size: 17px;
  157. }
  158. .login-btn {
  159. margin: 0 auto;
  160. margin-top: 240rpx;
  161. width: 567rpx;
  162. height: 86rpx;
  163. border-radius: 2em;
  164. font-size: 17px;
  165. font-weight: bold;
  166. border: none;
  167. display: flex;
  168. justify-content: center;
  169. align-items: center;
  170. color: #ffffff;
  171. }
  172. .code-login {
  173. display: flex;
  174. justify-content: center;
  175. margin-top: 40rpx;
  176. color: #D6D7D6;
  177. margin-bottom: 200rpx;
  178. font-size: 30rpx;
  179. }
  180. .log-box {
  181. display: flex;
  182. flex-direction: row;
  183. justify-content: center;
  184. align-items: center;
  185. font-size: 28rpx;
  186. color: #bfc0bf;
  187. margin-bottom: 65rpx;
  188. }
  189. .hengx {
  190. margin: 0 20rpx 0 20rpx;
  191. height: 2rpx;
  192. width: 232rpx;
  193. background: #e1e1e1;
  194. }
  195. .wechat {
  196. display: flex;
  197. justify-content: center;
  198. align-items: center;
  199. width: 93rpx;
  200. height: 93rpx;
  201. background: rgba(255, 255, 255, 1);
  202. box-shadow: 0px 10rpx 30rpx rgba(120, 223, 176, 0.22);
  203. border-radius: 50%;
  204. margin: 0 auto;
  205. }
  206. .btn-get {
  207. width: 250rpx;
  208. font-size: 17px;
  209. color: #c9cac9;
  210. position: relative;
  211. top: -290rpx;
  212. right: -450rpx;
  213. }
  214. .input-class {
  215. color: #D6D7D6;
  216. font-size: 17px;
  217. letter-spacing: 1rpx;
  218. }
  219. </style>