123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- <template>
- <view class="wrap">
- <my-common :login="false" mytitle="密码登录" ref="common"></my-common>
-
- <u-navbar title="密码登录" ></u-navbar>
- <view class="wxLogin-logo">
- <u-image width="150" height="150" src="/static/img/logo.png"></u-image>
- <p>荆开就业在线</p>
- </view>
- <view class="content">
- <view class="login-input">
- <input type="number" v-model="tel" placeholder="请输入手机号" />
- </view>
- <view class="login-input">
- <input type="number" v-model="tel" placeholder="请输入密码" />
- </view>
- <button @tap="submit" :style="[inputStyle]" class="getCaptcha">登录</button>
- </view>
- <view class="wxLogin-foot">
- <view class="wxLogin-foot-btn">
- <u-button shape="circle">微信登录</u-button>
- <u-button shape="circle">密码登录</u-button>
- </view>
- <view class="wxLogin-foot-text">
- <u-checkbox-group>
- <u-checkbox><view class="u-flex"><p>我已阅读并同意</p><span>《用户协议》《隐私政策》</span></view></u-checkbox>
- </u-checkbox-group>
- </view>
- </view>
- </view>
- </template>
- <script>
- import api from '@/pages/login/index.js'
- export default api;
- </script>
- <script>
- export default {
- data() {
- return {
- tel: ''
- }
- },
- computed: {
- inputStyle() {
- let style = {};
- if(this.tel) {
- style.color = "#fff";
- style.backgroundColor = this.$u.color['primary'];
- }
- return style;
- }
- },
- methods: {
- submit() {
- if(this.$u.test.mobile(this.tel)) {
- this.$u.route({
- url: 'pages/template/login/code'
- })
- }
- }
- }
- };
- </script>
- <style lang="scss" scoped>
- .wxLogin-logo{
- margin: 100rpx auto 100rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- p{
- font-size: 40rpx;
- margin-top: 20rpx;
- }
- }
- .login-input{
- margin: 40rpx 0;
- border-bottom: 1px solid #F7F7F7;
- }
- .wrap {
- font-size: 28rpx;
- .content {
- width: 600rpx;
- margin: 80rpx auto 0;
- .title {
- text-align: left;
- font-size: 60rpx;
- font-weight: 500;
- margin-bottom: 100rpx;
- }
- input {
- text-align: left;
- margin-bottom: 10rpx;
- padding-bottom: 6rpx;
- }
- .tips {
- color: $u-type-info;
- margin-bottom: 60rpx;
- margin-top: 8rpx;
- text-align: center;
- }
- .getCaptcha {
- background-color: rgb(231, 243, 254);
- color: $u-tips-color;
- border: none;
- font-size: 30rpx;
- padding: 12rpx 0;
- margin: 30rpx 0;
- &::after {
- border: none;
- }
- }
- .alternative {
- color: $u-tips-color;
- display: flex;
- justify-content: space-between;
- margin-top: 30rpx;
- }
- }
- .buttom {
- .loginType {
- display: flex;
- padding: 350rpx 150rpx 150rpx 150rpx;
- justify-content:space-between;
-
- .item {
- display: flex;
- flex-direction: column;
- align-items: center;
- color: $u-content-color;
- font-size: 28rpx;
- }
- }
-
- .hint {
- padding: 20rpx 40rpx;
- font-size: 20rpx;
- color: $u-tips-color;
-
- .link {
- color: $u-type-warning;
- }
- }
- }
- }
- .wxLogin-foot{
- position: fixed;
- left: 0;
- right: 0;
- bottom: 0;
- .wxLogin-foot-btn{
- display: flex;
- justify-content: space-between;
- padding: 0 40rpx;
- *{
- margin: 0;
- width:280rpx;
- }
- }
- .wxLogin-foot-text{
- margin-top: 40rpx;
- padding: 20rpx 40rpx;
- span{
- color:#2295FF;
- }
- }
- }
- </style>
|