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