Commit a2a2706e authored by 郭志伟's avatar 郭志伟

fix("pwd-modal"):密码输入框样式调整

parent b2428c49
let shenceHost = 'https://bn.xyqb.com/sa?project=default'; // 测试地址
let talosHost = 'https://talos-test1.liangkebang.net'; // 电商分期测试环境服务地址
let operatorHost = 'https://operator.liangkebang.com';
const shenceHost = 'https://bn.xyqb.com/sa?project=default'; // 测试地址
const talosHost = 'https://talos-vcc2.liangkebang.net'; // 电商分期测试环境服务地址
const operatorHost = 'https://operator.liangkebang.com';
const defaultChannelCode = '155913';
export default {
talosHost,
operatorHost,
test: true,
shenceHost
shenceHost,
defaultChannelCode
};
......@@ -2,9 +2,11 @@ const protocol = window.location.protocol;
const talosHost = protocol + '//talos.xyqb.com';
const operatorHost = protocol + '//auth.quantgroup.cn';
const shenceHost = 'https://bn.xyqb.com/sa?project=production';
const defaultChannelCode = '155913';
export default {
test: false,
shenceHost,
talosHost,
operatorHost
operatorHost,
defaultChannelCode
};
import { parseSearch } from './utils.service';
import localStorage from './localStorage.service';
// import config from '@/config/index';
export function getVccChannel(channelKey = 'vccChannel') {
if (channelKey === 'sonVccChannel') {
......
@import url('../../style/var.less');
@import url('../../style/mixins');
.pay {
padding: @padding-xs;
......@@ -99,3 +100,21 @@
width: 100%;
height: 100px;
}
@{deep} .pwd-modal {
.cr-pwd-field {
height: 56%;
}
.Cp-field-dialog {
position: relative;
left: 0;
margin-left: 0;
width: 100%;
border-radius: 16px 16px 0 0;
.Cpf-dialog-info {
display: none;
}
.Cpf-dialog-list {
padding-top: 20px;
}
}
}
\ No newline at end of file
......@@ -62,6 +62,7 @@
<cr-pwd-field
ref="pwd"
v-model="pwdModal"
class="pwd-modal"
:amount="amount"
@getData="getPwd"
@retrieveLink="retrieveLink"
......@@ -317,6 +318,9 @@ export default {
if (p.isDefault) {
this.mergePayPretreatmentInfo = p.mergePayPretreatmentInfo;
}
if (key === 'creditPayInfo' && this.checkStatus(displayInfo[key], displayInfo)) {
displayInfo[key].disabled = true;
}
this.$set(this.creditPayList.payList, key, {
...displayInfo[key],
...p,
......@@ -365,6 +369,21 @@ export default {
return false;
}
},
checkStatus({ accountStatus, canAmt }, { orderAmt }) {
// 开户成功已有额度小于订单额度和审核被拒
const faceValueNew = this.selectedCoupon.faceValueNew;
const orderCanUseAmt = this.creditQuotaInfo?.orderCanUseAmt;
// 风控金额为0的时候享花卡不可选中
if (+orderCanUseAmt === 0) {
return true;
}
if (!faceValueNew) {
// (是否是信用支付状态已开户并且 支付总金额是否大于可使用信用额度)或者 信用账户vcc审核失败
return (accountStatus === 5 && +orderAmt > +canAmt) || accountStatus === 3;
}
return (accountStatus === 5 && +orderAmt > +canAmt + +faceValueNew) || accountStatus === 3;
},
getBtnStatus(isRiskLimit) {
const { accountStatus } = this.creditPayInfo;
if (!accountStatus) return;
......@@ -661,6 +680,6 @@ export default {
};
</script>
<style lang="less">
<style lang="less" scoped>
@import './index.less';
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment