Merge branch 'master' into dev-1.3
| | |
| | | module.exports = { |
| | | env: { |
| | | NODE_ENV: '"production"', |
| | | BASE_URL: '"https://api.81812333.com"', |
| | | BASE_URL_H5: '"https://api.81812333.com"', |
| | | BASE_URL_JX: '"https://api.jx818.com"', |
| | | BASE_URL: '"https://jfapi.81812333.com"', |
| | | BASE_URL_H5: '"https://jfapi.81812333.com"', |
| | | BASE_URL_JX: '"https://jfapi.81812333.com"', |
| | | |
| | | WEMAP_KEY: 'DYRBZ-ZGPCF-X3OJN-N2AA3-JWUCE-HEBXJ', |
| | | WXPayAppId: '"wxf940ff1d35a98493"', |
| | |
| | | :isFocus="isFocus" |
| | | :showAliPay="!isInWeChat" |
| | | :showWeixinPay="isInWeChat" |
| | | @missName="handleMissName" |
| | | /> |
| | | </ContentScrollView> |
| | | </template> |
| | |
| | | import { isInAlipay, isInWeChat, isH5, isWeb } from '@/utils/env'; |
| | | import { useUser, useFocus, useEnsureOpenId } from '@/hooks'; |
| | | import { WXPayAppId } from '@/constants'; |
| | | import { Message } from '@/utils'; |
| | | |
| | | defineOptions({ |
| | | name: 'InnerPage', |
| | |
| | | url: `${RouterPath.rechargeResult}?orderNo=${orderNo}&lifePayOrderType=${BlLifeRecharge.constants.LifePayOrderTypeEnum.话费订单}`, |
| | | }); |
| | | } |
| | | |
| | | async function handleMissName(userAccountId: string) { |
| | | try { |
| | | await Message.confirm({ message: '请先完善手机号所属机主姓名' }); |
| | | RouteHelper.navigateTo({ |
| | | url: `${RouterPath.editPhoneUserAccount}?id=${userAccountId}`, |
| | | }); |
| | | } catch (error) {} |
| | | } |
| | | </script> |
| | |
| | | <template> |
| | | <div class="recharge-tips-view"> |
| | | <div class="recharge-tips-title">充值须知</div> |
| | | <div class="recharge-tips-content"> |
| | | <!-- <div class="recharge-tips-title">充值须知</div> --> |
| | | <!-- <div class="recharge-tips-content"> |
| | | <div class="recharge-tips-top"> |
| | | <slot name="tips-top"> |
| | | *同一号码充值期间【切勿多平台重复充值】!!!在下单前,请务必仔细阅读公告内容!!!若接到陌生来电,请勿轻信!!! |
| | | </slot> |
| | | </div> |
| | | <!-- <div class="recharge-tips-list"> |
| | | <div class="recharge-tips-list"> |
| | | <div class="recharge-tips-item" v-for="(item, index) in props.tips" :key="index"> |
| | | {{ index + 1 }}.{{ item }} |
| | | </div> |
| | | </div> --> |
| | | <RichContent :content="introInfo" size="small" /> |
| | | </div> |
| | | </div> |
| | | </div> --> |
| | | <RichContent :content="introInfo" size="small" /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | v-bind="props" |
| | | @go-pay="emit('goPay', $event)" |
| | | @paySuccess="emit('paySuccess', $event)" |
| | | @missName="emit('missName', $event)" |
| | | /> |
| | | </template> |
| | | |
| | |
| | | const emit = defineEmits<{ |
| | | (e: 'goPay', orderNo: string): void; |
| | | (e: 'paySuccess', orderNo: string): void; |
| | | (e: 'missName', userAccountId: string): void; |
| | | }>(); |
| | | |
| | | provide(PhoneBillRechargeContextKey, { |
| | |
| | | const emit = defineEmits<{ |
| | | (e: 'goPay', orderNo: string): void; |
| | | (e: 'paySuccess', orderNo: string): void; |
| | | (e: 'missName', userAccountId: string): void; |
| | | }>(); |
| | | |
| | | const { lifePayPhoneRate } = useGetRate(); |
| | |
| | | const formRef = ref<any>(null); |
| | | |
| | | function handleSubmit() { |
| | | if (!form.name) { |
| | | state.show = true; |
| | | state.msg = '请先完善手机号所属机主姓名'; |
| | | return; |
| | | } |
| | | if (!formRef.value) return; |
| | | formRef.value.validate().then(({ valid, errors }: any) => { |
| | | if (valid) { |
| | | if (!form.name) { |
| | | emit('missName', form.currentUserAccountId); |
| | | return; |
| | | } |
| | | recharge(); |
| | | } |
| | | }); |