123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380 |
- <template>
- <view>
-
- <view v-show="auth">
- <resume-auth @authSubmit="loginBack"></resume-auth>
- </view>
- <view class="wrap" v-show="!auth">
- <my-common :login="false" ref="common"></my-common>
-
- <view class="wxLogin-logo">
- <u-image width="150" height="150" src="/static/img/logo.png"></u-image>
- <p>荆开就业在线</p>
- </view>
- <view class="wxLogin-btn" v-show="tab==0">
- <u-button type="success" shape="circle" @click="login">微信登录</u-button>
- </view>
-
- <view class="content" v-show="tab==1">
- <input class="u-border-bottom login-input" type="number" v-model="tel" placeholder="请输入手机号" />
- <button @click="login2" :style="[inputStyle]" class="getCaptcha">获取短信验证码</button>
- <view class="tips">未注册的手机号验证后自动创建账号</view>
- </view>
- <view class="content" v-show="tab==2">
- <view class="login-input">
- <input type="text" v-model="tel" placeholder="请输入账号\手机号" />
- </view>
- <view class="login-input">
- <input type="password" v-model="password" placeholder="请输入密码" />
- </view>
- <button @click="login3" :style="[inputStyle]" class="getCaptcha">登录</button>
- </view>
- <view class="key-input" v-show="tab==4">
- <view class="title">输入验证码</view>
- <view class="tips">验证码已发送至 +{{showphone(tel)}}</view>
- <u-message-input :focus="true" :value="value" @finish="finish" mode="bottomLine" :maxlength="maxlength"></u-message-input>
- <view class="captcha">
- <text :class="{ noCaptcha: show }" @tap="noCaptcha">收不到验证码点这里</text>
- <text :class="{ regain: !show }">{{ sendMsgSecond }}秒后重新获取验证码</text>
- <text :class="{ error: error }">验证码错误,请重新输入</text>
- <u-button shape="circle" size="medium" @click="tab=0">返回</u-button>
-
- </view>
-
- </view>
- <view class="wxLogin-foot" v-show="tab!=4">
- <view class="wxLogin-foot-btn">
- <u-button shape="circle" v-show="tab!=0" @click="tab=0">微信登录</u-button>
- <u-button shape="circle" v-show="tab!=1&&form=='job'" @click="tab=1">手机登录</u-button>
- <u-button shape="circle" v-show="tab!=2" @click="tab=2">密码登录</u-button>
- </view>
- <view class="wxLogin-foot-text">
- <u-checkbox-group>
- <u-checkbox v-model="readme"><view class="u-flex"><p>我已阅读并同意</p><span>《用户协议》《隐私政策》</span></view></u-checkbox>
- </u-checkbox-group>
- </view>
- </view>
-
- </view>
-
-
-
- </view>
- </template>
- <script>
- import api from '@/pages/login/index.js'
- export default api;
- </script>
- <style scoped lang="scss">
- .wxLogin-logo{
- margin: 200rpx auto 0;
- display: flex;
- flex-direction: column;
- align-items: center;
- p{
- font-size: 40rpx;
- margin-top: 20rpx;
- }
- }
- .wxLogin-btn{
- margin: 100rpx 40rpx;
- }
- .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>
- <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>
- <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>
- <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;
- }
- }
- .wrap {
- padding: 80rpx;
- }
- .box {
- margin: 30rpx 0;
- font-size: 30rpx;
- color: 555;
- }
- .key-input {
- padding: 30rpx 0;
- text {
- display: none;
- }
- .error {
- display: block;
- color: red;
- font-size: 30rpx;
- margin: 20rpx 0;
- }
- }
- .title {
- font-size: 50rpx;
- color: #333;
- text-align: center;
- }
- .key-input .tips {
- font-size: 30rpx;
- color: #333;
- margin-top: 20rpx;
- margin-bottom: 60rpx;
- text-align: center;
- color:#999;
- }
- .captcha {
- color: $u-type-warning;
- font-size: 30rpx;
- margin-top: 40rpx;
- text-align: center;
- .noCaptcha {
- display: block;
- }
- .regain {
- display: block;
- }
- }
- </style>
|