|
@@ -8,13 +8,13 @@
|
|
|
<view class="form">
|
|
<view class="form">
|
|
|
<view class="b-row">
|
|
<view class="b-row">
|
|
|
<view class="b-input">
|
|
<view class="b-input">
|
|
|
- <view class="s-icon iconfont icon-account"></view>
|
|
|
|
|
|
|
+ <view class="s-icon iconfont-yunexamine icon-account"></view>
|
|
|
<input type="text" :value="form.name" @input="onInputName" placeholder="请输入姓名" />
|
|
<input type="text" :value="form.name" @input="onInputName" placeholder="请输入姓名" />
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="b-row">
|
|
<view class="b-row">
|
|
|
<view class="b-input">
|
|
<view class="b-input">
|
|
|
- <view class="s-icon iconfont icon-password"></view>
|
|
|
|
|
|
|
+ <view class="s-icon iconfont-yunexamine icon-password"></view>
|
|
|
<input type="text" :value="form.code" @input="onInputCode" placeholder="请输入登录码" />
|
|
<input type="text" :value="form.code" @input="onInputCode" placeholder="请输入登录码" />
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -25,13 +25,13 @@
|
|
|
<view class="form">
|
|
<view class="form">
|
|
|
<view class="b-row">
|
|
<view class="b-row">
|
|
|
<view class="b-input">
|
|
<view class="b-input">
|
|
|
- <view class="s-icon iconfont icon-card"></view>
|
|
|
|
|
|
|
+ <view class="s-icon iconfont-yunexamine icon-card"></view>
|
|
|
<input type="text" :value="form.number" @input="onInputNumber" placeholder="请输入编号" />
|
|
<input type="text" :value="form.number" @input="onInputNumber" placeholder="请输入编号" />
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="b-row">
|
|
<view class="b-row">
|
|
|
<view class="b-input">
|
|
<view class="b-input">
|
|
|
- <view class="s-icon iconfont icon-password"></view>
|
|
|
|
|
|
|
+ <view class="s-icon iconfont-yunexamine icon-password"></view>
|
|
|
<input type="text" :value="form.code" @input="onInputCode" placeholder="请输入登录码" />
|
|
<input type="text" :value="form.code" @input="onInputCode" placeholder="请输入登录码" />
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -42,13 +42,13 @@
|
|
|
<view class="form">
|
|
<view class="form">
|
|
|
<view class="b-row">
|
|
<view class="b-row">
|
|
|
<view class="b-input">
|
|
<view class="b-input">
|
|
|
- <view class="s-icon iconfont icon-phone"></view>
|
|
|
|
|
|
|
+ <view class="s-icon iconfont-yunexamine icon-phone"></view>
|
|
|
<input type="text" :value="form.phone" @input="onInputPhone" placeholder="请输入手机号" />
|
|
<input type="text" :value="form.phone" @input="onInputPhone" placeholder="请输入手机号" />
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="b-row">
|
|
<view class="b-row">
|
|
|
<view class="b-input">
|
|
<view class="b-input">
|
|
|
- <view class="s-icon iconfont icon-password"></view>
|
|
|
|
|
|
|
+ <view class="s-icon iconfont-yunexamine icon-password"></view>
|
|
|
<input type="text" :value="form.captcha" @input="onInputCaptcha" placeholder="请输入验证码" />
|
|
<input type="text" :value="form.captcha" @input="onInputCaptcha" placeholder="请输入验证码" />
|
|
|
<view class="s-captcha" :class="{ disable: captcha.second > 0 }" @click="onPhoneCaptcha">
|
|
<view class="s-captcha" :class="{ disable: captcha.second > 0 }" @click="onPhoneCaptcha">
|
|
|
<text v-if="!captcha.retry && !captcha.second">获取验证码</text>
|
|
<text v-if="!captcha.retry && !captcha.second">获取验证码</text>
|
|
@@ -74,25 +74,25 @@
|
|
|
<view class="b-method f-name"
|
|
<view class="b-method f-name"
|
|
|
v-if="loginMethods.indexOf('name_code') !== -1 && loginMethod !== 'name_code'"
|
|
v-if="loginMethods.indexOf('name_code') !== -1 && loginMethod !== 'name_code'"
|
|
|
@click="onChangeMethod('name_code')">
|
|
@click="onChangeMethod('name_code')">
|
|
|
- <view class="iconfont icon-key"></view>
|
|
|
|
|
|
|
+ <view class="iconfont-yunexamine icon-key"></view>
|
|
|
<view class="s-text">姓名登录码</view>
|
|
<view class="s-text">姓名登录码</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="b-method f-number"
|
|
<view class="b-method f-number"
|
|
|
v-if="loginMethods.indexOf('number_code') !== -1 && loginMethod !== 'number_code'"
|
|
v-if="loginMethods.indexOf('number_code') !== -1 && loginMethod !== 'number_code'"
|
|
|
@click="onChangeMethod('number_code')">
|
|
@click="onChangeMethod('number_code')">
|
|
|
- <view class="iconfont icon-key"></view>
|
|
|
|
|
|
|
+ <view class="iconfont-yunexamine icon-key"></view>
|
|
|
<view class="s-text">编号登录码</view>
|
|
<view class="s-text">编号登录码</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="b-method f-phone"
|
|
<view class="b-method f-phone"
|
|
|
v-if="loginMethods.indexOf('phone_captcha') !== -1 && loginMethod !== 'phone_captcha'"
|
|
v-if="loginMethods.indexOf('phone_captcha') !== -1 && loginMethod !== 'phone_captcha'"
|
|
|
@click="onChangeMethod('phone_captcha')">
|
|
@click="onChangeMethod('phone_captcha')">
|
|
|
- <view class="iconfont icon-verify-fill"></view>
|
|
|
|
|
|
|
+ <view class="iconfont-yunexamine icon-verify-fill"></view>
|
|
|
<view class="s-text">手机验证码</view>
|
|
<view class="s-text">手机验证码</view>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
|
<button class="b-method f-wechat open-data-btn" open-type="getPhoneNumber"
|
|
<button class="b-method f-wechat open-data-btn" open-type="getPhoneNumber"
|
|
|
@getphonenumber="onGetPhoneNumber" v-if="loginMethods.indexOf('wechat_phone') !== -1">
|
|
@getphonenumber="onGetPhoneNumber" v-if="loginMethods.indexOf('wechat_phone') !== -1">
|
|
|
- <view class="iconfont icon-phone"></view>
|
|
|
|
|
|
|
+ <view class="iconfont-yunexamine icon-phone"></view>
|
|
|
<view class="s-text">手机号快捷登录</view>
|
|
<view class="s-text">手机号快捷登录</view>
|
|
|
</button>
|
|
</button>
|
|
|
<!-- #endif -->
|
|
<!-- #endif -->
|
|
@@ -104,7 +104,7 @@
|
|
|
<view class="tips">{{loginNote}}</view>
|
|
<view class="tips">{{loginNote}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="select-activity" v-if="selectActivity" @click="onJumpActivity">
|
|
<view class="select-activity" v-if="selectActivity" @click="onJumpActivity">
|
|
|
- <view class="iconfont icon-dashboard"></view>
|
|
|
|
|
|
|
+ <view class="iconfont-yunexamine icon-dashboard"></view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
@@ -122,8 +122,9 @@
|
|
|
} from '../../service/request/main.js'
|
|
} from '../../service/request/main.js'
|
|
|
import {
|
|
import {
|
|
|
decodeRedirectUrl,
|
|
decodeRedirectUrl,
|
|
|
- showToast
|
|
|
|
|
- } from './../common/util'
|
|
|
|
|
|
|
+ showToast,
|
|
|
|
|
+ wrapPromiseToJs
|
|
|
|
|
+ } from '../../common/util'
|
|
|
import mixinsCommon from '../../mixins/common.js'
|
|
import mixinsCommon from '../../mixins/common.js'
|
|
|
import { useAppStore } from '../../store/index.js'
|
|
import { useAppStore } from '../../store/index.js'
|
|
|
export default {
|
|
export default {
|
|
@@ -150,7 +151,7 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
- this.returnPage = options.from ? decodeRedirectUrl(options.from) : 'pages/home/index'
|
|
|
|
|
|
|
+ this.returnPage = options.from ? decodeRedirectUrl(options.from) : 'pages/third/yunexamine/pages/home/index'
|
|
|
console.log('login returnPage', this.returnPage)
|
|
console.log('login returnPage', this.returnPage)
|
|
|
smartLogin('', true) // 判断是否扫码或进入活动列表页,因为当前页没有接口请求和权限校验
|
|
smartLogin('', true) // 判断是否扫码或进入活动列表页,因为当前页没有接口请求和权限校验
|
|
|
},
|
|
},
|
|
@@ -216,7 +217,7 @@
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
this.disable.captcha = true
|
|
this.disable.captcha = true
|
|
|
- uni.login().then(([err, res]) => {
|
|
|
|
|
|
|
+ wrapPromiseToJs(uni.login()).then(([err, res]) => {
|
|
|
console.log('uni.login', err, res)
|
|
console.log('uni.login', err, res)
|
|
|
sendPhoneCaptcha(this.form.phone, res ? res.code : '', true).then(([err, res]) => {
|
|
sendPhoneCaptcha(this.form.phone, res ? res.code : '', true).then(([err, res]) => {
|
|
|
console.log('sendPhoneCaptcha', err, res)
|
|
console.log('sendPhoneCaptcha', err, res)
|
|
@@ -281,7 +282,7 @@
|
|
|
return showToast('登录码不能为空')
|
|
return showToast('登录码不能为空')
|
|
|
}
|
|
}
|
|
|
this.disable.submit = true;
|
|
this.disable.submit = true;
|
|
|
- uni.login().then(([err, res]) => {
|
|
|
|
|
|
|
+ wrapPromiseToJs(uni.login()).then(([err, res]) => {
|
|
|
console.log('uni.login', err, res)
|
|
console.log('uni.login', err, res)
|
|
|
loginByNumberCode(this.form.number, this.form.code, res ? res.code : '').then(([err, res]) => {
|
|
loginByNumberCode(this.form.number, this.form.code, res ? res.code : '').then(([err, res]) => {
|
|
|
console.log('loginByNumberCode', err, res)
|
|
console.log('loginByNumberCode', err, res)
|
|
@@ -309,7 +310,7 @@
|
|
|
return showToast('验证码不能为空')
|
|
return showToast('验证码不能为空')
|
|
|
}
|
|
}
|
|
|
this.disable.submit = true
|
|
this.disable.submit = true
|
|
|
- uni.login().then(([err, res]) => {
|
|
|
|
|
|
|
+ wrapPromiseToJs(uni.login()).then(([err, res]) => {
|
|
|
console.log('uni.login', err, res)
|
|
console.log('uni.login', err, res)
|
|
|
loginByPhoneCaptcha(this.form.phone, this.form.captcha, res ? res.code : '').then(([err,
|
|
loginByPhoneCaptcha(this.form.phone, this.form.captcha, res ? res.code : '').then(([err,
|
|
|
res
|
|
res
|
|
@@ -338,7 +339,7 @@
|
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
|
title: '尝试登录中'
|
|
title: '尝试登录中'
|
|
|
})
|
|
})
|
|
|
- uni.login().then(([err, res]) => {
|
|
|
|
|
|
|
+ wrapPromiseToJs(uni.login()).then(([err, res]) => {
|
|
|
console.log('uni.login', err, res)
|
|
console.log('uni.login', err, res)
|
|
|
loginByWechatPhone(e.detail.encryptedData, e.detail.iv, e.detail.code || '', res.code).then(([
|
|
loginByWechatPhone(e.detail.encryptedData, e.detail.iv, e.detail.code || '', res.code).then(([
|
|
|
err, res
|
|
err, res
|
|
@@ -509,7 +510,7 @@
|
|
|
background: #35C773;
|
|
background: #35C773;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- .iconfont {
|
|
|
|
|
|
|
+ .iconfont-yunexamine {
|
|
|
margin-right: 10upx;
|
|
margin-right: 10upx;
|
|
|
font-size: 40upx;
|
|
font-size: 40upx;
|
|
|
}
|
|
}
|
|
@@ -553,7 +554,7 @@
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
justify-content: center;
|
|
|
|
|
|
|
|
- .iconfont {
|
|
|
|
|
|
|
+ .iconfont-yunexamine {
|
|
|
font-size: 50upx;
|
|
font-size: 50upx;
|
|
|
color: #DA5650;
|
|
color: #DA5650;
|
|
|
}
|
|
}
|