mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-06 21:16:44 +08:00
Merge branch 'feature/【20250224】密码输入框禁止录屏'
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
<van-field
|
<van-field
|
||||||
minlength="6"
|
minlength="6"
|
||||||
class="pt5 mt10"
|
class="pt5 mt10"
|
||||||
style="border-top:1px solid #eaeaea;border-bottom:1px solid #eaeaea"
|
style="border-top: 1px solid #eaeaea; border-bottom: 1px solid #eaeaea"
|
||||||
v-model="checkModel.pwd"
|
v-model="checkModel.pwd"
|
||||||
clearable
|
clearable
|
||||||
type="password"
|
type="password"
|
||||||
@@ -207,7 +207,7 @@ export default {
|
|||||||
operateCodeType: '0'
|
operateCodeType: '0'
|
||||||
}
|
}
|
||||||
//获取验证码
|
//获取验证码
|
||||||
getAuthCode(data).then(res => {
|
getAuthCode(data).then((res) => {
|
||||||
if (res.result == 0) {
|
if (res.result == 0) {
|
||||||
this.checkModel.smsId = res.sessionId
|
this.checkModel.smsId = res.sessionId
|
||||||
this.checkModel.smsCode = null
|
this.checkModel.smsCode = null
|
||||||
@@ -225,6 +225,18 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
/**
|
||||||
|
* 监听弹窗显示隐藏
|
||||||
|
*/
|
||||||
|
'checkModel.show'(val) {
|
||||||
|
console.log('checkModel.show', val)
|
||||||
|
// 显示时禁止截屏,不显示时恢复截屏
|
||||||
|
EWebBridge.webCallAppInJs('enable_screen_capture', {
|
||||||
|
enable: !val
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -2,17 +2,16 @@
|
|||||||
<div class="login-container ph10">
|
<div class="login-container ph10">
|
||||||
<h3 class="text-center pv30">欢迎登录</h3>
|
<h3 class="text-center pv30">欢迎登录</h3>
|
||||||
<van-cell-group cl>
|
<van-cell-group cl>
|
||||||
<van-field v-model="username" clearable label="用户名" placeholder="请输入用户名" left-icon="contact"/>
|
<van-field v-model="username" clearable label="用户名" placeholder="请输入用户名" left-icon="contact" />
|
||||||
<van-field v-model="password" type="password" label="密码" placeholder="请输入密码" left-icon="bag-o"/>
|
<van-field v-model="password" type="password" label="密码" placeholder="请输入密码" left-icon="bag-o" />
|
||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
<van-button type="info" size="large" class="mt30" @click="login" :loading="loading" loading-text="登录中...">登录
|
<van-button type="info" size="large" class="mt30" @click="login" :loading="loading" loading-text="登录中...">登录 </van-button>
|
||||||
</van-button>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {CellGroup, Field} from 'vant'
|
import { CellGroup, Field } from 'vant'
|
||||||
import {loginTest} from '@/api/ebiz/my/my.js'
|
import { loginTest } from '@/api/ebiz/my/my.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'login',
|
name: 'login',
|
||||||
@@ -28,6 +27,14 @@ export default {
|
|||||||
redirect: this.$route.query.redirect
|
redirect: this.$route.query.redirect
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
setTimeout(() => {
|
||||||
|
EWebBridge.webCallAppInJs('enable_screen_capture', {
|
||||||
|
enable: false
|
||||||
|
})
|
||||||
|
}, 500)
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
login() {
|
login() {
|
||||||
if (this.username == '' || this.password == '') {
|
if (this.username == '' || this.password == '') {
|
||||||
@@ -35,30 +42,31 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
let that = this;
|
let that = this
|
||||||
let reqData = {
|
let reqData = {
|
||||||
password: this.$MD5(that.password),
|
password: this.$MD5(that.password),
|
||||||
system: "agentApp",
|
system: 'agentApp',
|
||||||
graphCode: "",
|
graphCode: '',
|
||||||
graphId: "",
|
graphId: '',
|
||||||
name: this.username,
|
name: this.username,
|
||||||
loginflag: "agentPassword",
|
loginflag: 'agentPassword'
|
||||||
}
|
}
|
||||||
|
|
||||||
loginTest(reqData).then(res => {
|
loginTest(reqData)
|
||||||
this.loading = false
|
.then((res) => {
|
||||||
if (res.result == 0) {
|
this.loading = false
|
||||||
console.log(res)
|
if (res.result == 0) {
|
||||||
this.$CacheUtils.setLocItem("token",res.token)
|
console.log(res)
|
||||||
this.$router.push({ path: this.redirect || '/' })
|
this.$CacheUtils.setLocItem('token', res.token)
|
||||||
}else {
|
this.$router.push({ path: this.redirect || '/' })
|
||||||
this.$toast(res.resultMessage)
|
} else {
|
||||||
}
|
this.$toast(res.resultMessage)
|
||||||
}) .catch(err => {
|
}
|
||||||
console.log(err)
|
})
|
||||||
this.loading = false
|
.catch((err) => {
|
||||||
})
|
console.log(err)
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
<div class="insured-info-container">
|
<div class="insured-info-container">
|
||||||
<van-field v-model="pwd" clearable required type="password" label="登陆密码" name="密码" placeholder="请输入登陆密码" />
|
<van-field v-model="pwd" clearable required type="password" label="登陆密码" name="密码" placeholder="请输入登陆密码" />
|
||||||
|
|
||||||
<p style="color: #ff0000; font-size: 14px;" class="bg-white p10 pb0 mb0">温馨提示:</p>
|
<p style="color: #ff0000; font-size: 14px" class="bg-white p10 pb0 mb0">温馨提示:</p>
|
||||||
<p style="color: #ff0000; font-size: 14px;" class="bg-white pl10">停用账号将无法再次登陆使用,请您谨慎操作。</p>
|
<p style="color: #ff0000; font-size: 14px" class="bg-white pl10">停用账号将无法再次登陆使用,请您谨慎操作。</p>
|
||||||
|
|
||||||
<van-button type="danger" size="large" class="logout_button mt10" :disabled="!Boolean(pwd)" @click="logoutAgent">停用账户 </van-button>
|
<van-button type="danger" size="large" class="logout_button mt10" :disabled="!Boolean(pwd)" @click="logoutAgent">停用账户 </van-button>
|
||||||
|
|
||||||
@@ -41,6 +41,14 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
mounted() {
|
||||||
|
setTimeout(() => {
|
||||||
|
EWebBridge.webCallAppInJs('enable_screen_capture', {
|
||||||
|
enable: false
|
||||||
|
})
|
||||||
|
}, 500)
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
// 注销
|
// 注销
|
||||||
logoutAgent() {
|
logoutAgent() {
|
||||||
@@ -55,7 +63,7 @@ export default {
|
|||||||
password: this.$MD5(this.pwd)
|
password: this.$MD5(this.pwd)
|
||||||
}
|
}
|
||||||
// 调用注销接口
|
// 调用注销接口
|
||||||
logoutAgent(req).then(res => {
|
logoutAgent(req).then((res) => {
|
||||||
this.show = false
|
this.show = false
|
||||||
if (res.result == 0) {
|
if (res.result == 0) {
|
||||||
this.$toast('用户注销成功')
|
this.$toast('用户注销成功')
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
import { Field, CellGroup, Popup, Picker, Checkbox, Area } from 'vant'
|
import { Field, CellGroup, Popup, Picker, Checkbox, Area } from 'vant'
|
||||||
import { getAgentInfo } from '@/api/ebiz/my/my.js'
|
import { getAgentInfo } from '@/api/ebiz/my/my.js'
|
||||||
import { getAuthCode } from '@/api/ebiz/sale/sale'
|
import { getAuthCode } from '@/api/ebiz/sale/sale'
|
||||||
import {AESEncrypt,AESDecrypt} from '@/assets/js/utils/cryptoJsUtil'
|
import { AESEncrypt, AESDecrypt } from '@/assets/js/utils/cryptoJsUtil'
|
||||||
export default {
|
export default {
|
||||||
name: 'logoutAgent',
|
name: 'logoutAgent',
|
||||||
components: {
|
components: {
|
||||||
@@ -53,19 +53,24 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
|
setTimeout(() => {
|
||||||
|
EWebBridge.webCallAppInJs('enable_screen_capture', {
|
||||||
|
enable: false
|
||||||
|
})
|
||||||
|
}, 500)
|
||||||
|
|
||||||
// 获取代理人信息
|
// 获取代理人信息
|
||||||
this.$CacheUtils.setLocItem('cacheTest', JSON.stringify(this.logoutDTO))
|
this.$CacheUtils.setLocItem('cacheTest', JSON.stringify(this.logoutDTO))
|
||||||
console.log(this.$CacheUtils.getLocItem('cacheTest'))
|
console.log(this.$CacheUtils.getLocItem('cacheTest'))
|
||||||
this.$CacheUtils.setSessionItem('cacheTest1', 'nsjdfi')
|
this.$CacheUtils.setSessionItem('cacheTest1', 'nsjdfi')
|
||||||
console.log(this.$CacheUtils.getSessionItem('cacheTest1'))
|
console.log(this.$CacheUtils.getSessionItem('cacheTest1'))
|
||||||
const res = await getAgentInfo({ '89': '890' })
|
const res = await getAgentInfo({ 89: '890' })
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.result == 0) {
|
if (res.result == 0) {
|
||||||
this.branchType = /^N{1}/.test(res.branchType) ? '1' : '0' //res.branchType 以N打头的是内勤 其他是外勤
|
this.branchType = /^N{1}/.test(res.branchType) ? '1' : '0' //res.branchType 以N打头的是内勤 其他是外勤
|
||||||
if (this.branchType == '0') {
|
if (this.branchType == '0') {
|
||||||
this.logoutDTO.mobile = res.phoneNo
|
this.logoutDTO.mobile = res.phoneNo
|
||||||
this.codeDisabled = false
|
this.codeDisabled = false
|
||||||
} else {
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return this.$toast(res.resultMessage)
|
return this.$toast(res.resultMessage)
|
||||||
@@ -96,7 +101,7 @@ export default {
|
|||||||
operateCodeType: '0'
|
operateCodeType: '0'
|
||||||
}
|
}
|
||||||
//获取验证码
|
//获取验证码
|
||||||
getAuthCode(data).then(res => {
|
getAuthCode(data).then((res) => {
|
||||||
//倒计时
|
//倒计时
|
||||||
this.timeId = setInterval(() => {
|
this.timeId = setInterval(() => {
|
||||||
this.countDown--
|
this.countDown--
|
||||||
|
|||||||
Reference in New Issue
Block a user