| | |
| | | import { RechargeProps } from './types'; |
| | | import Chunk from '../../components/Layout/Chunk.vue'; |
| | | import IconSelect from '../../assets/recharge/icon-select.png'; |
| | | import { useCheckCanRecharge } from '../../hooks/rate'; |
| | | |
| | | defineOptions({ |
| | | name: 'PhoneBillRechargeStep2', |
| | |
| | | form.remark = currentUserAccount.remark; |
| | | changeIspCode(form.ispCode as any); |
| | | }, |
| | | getDefaultUserAccount(userAccountList) { |
| | | async getDefaultUserAccount(userAccountList) { |
| | | await ensureLifePayRateChannelAllList(); |
| | | const defaultUserAccount = userAccountList.find((x) => { |
| | | const currentUserAccountExtraProperties = JSON.parse( |
| | | x.extraProperties |
| | |
| | | |
| | | const currentOrderNo = ref(''); |
| | | |
| | | function isCanRecharge(ispCode: string) { |
| | | return ispCode !== blLifeRecharge.constants.IspCode.yidong; |
| | | } |
| | | |
| | | function checkCanRecharge(ispCode: string) { |
| | | if (!isCanRecharge(ispCode)) { |
| | | //通道正在升级,给您带来不便尽情谅解 |
| | | state.msg = |
| | | '尊敬的用户,为提供更安全、稳定的充值服务,移动充值通道正在进行升级维护,维护期间暂无法发起充值'; |
| | | state.show = true; |
| | | return false; |
| | | } |
| | | return true; |
| | | } |
| | | const { isCanRecharge, checkCanRecharge, ensureLifePayRateChannelAllList } = useCheckCanRecharge({ |
| | | msg: toRef(state, 'msg'), |
| | | show: toRef(state, 'show'), |
| | | }); |
| | | |
| | | async function goPay() { |
| | | try { |