| | |
| | | </template> |
| | | </ConfirmDialog> |
| | | <NutToast :msg="state.msg" v-model:visible="state.show" type="warn" cover /> |
| | | <NutDialog |
| | | title="提示" |
| | | :content="dialogState.msg" |
| | | v-model:visible="dialogState.visible" |
| | | @ok="onOk" |
| | | /> |
| | | </NutForm> |
| | | </template> |
| | | |
| | |
| | | }); |
| | | |
| | | const { goTo } = usePhoneBillRechargeContext(); |
| | | |
| | | const dialogState = reactive({ |
| | | visible: false, |
| | | msg: '', |
| | | }); |
| | | |
| | | const form = reactive({ |
| | | ispCode: '', |
| | |
| | | |
| | | const formRef = ref<any>(null); |
| | | |
| | | function onOk() {} |
| | | |
| | | function handleSubmit() { |
| | | if (!form.name) { |
| | | state.show = true; |
| | | state.msg = '请先完善手机号所属机主姓名'; |
| | | dialogState.visible = true; |
| | | dialogState.msg = '请先完善手机号所属机主姓名'; |
| | | return; |
| | | } |
| | | if (!formRef.value) return; |
| | |
| | | } |
| | | |
| | | const { state, invokeAliPay, invokeWeixinPay } = useSelectPayType({ |
| | | getOpenId: props.getOpenId, |
| | | getOpenId: toRef(props, 'getOpenId'), |
| | | isInWeChat: toRef(props, 'isInWeChat'), |
| | | isH5: toRef(props, 'isH5'), |
| | | appId: toRef(props, 'appId'), |