|  |  | 
 |  |  | 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(); | 
 |  |  |     } | 
 |  |  |   }); | 
 |  |  | 
 |  |  | } | 
 |  |  |  | 
 |  |  | const { state, invokeAliPay, invokeWeixinPay } = useSelectPayType({ | 
 |  |  |   getOpenId: props.getOpenId, | 
 |  |  |   getOpenId: toRef(props, 'getOpenId'), | 
 |  |  |   isInWeChat: toRef(props, 'isInWeChat'), | 
 |  |  |   isH5: toRef(props, 'isH5'), | 
 |  |  |   appId: toRef(props, 'appId'), |