| | |
| | | <template> |
| | | <ContentScrollView hasPaddingTop style="background-color: transparent"> |
| | | <EditPhoneUserAccount :id="id" @success="handleSuccess" /> |
| | | <EditPhoneUserAccount :id="id" @success="handleSuccess" ref="editPhoneUserAccountRef" /> |
| | | </ContentScrollView> |
| | | <PageFooter> |
| | | <PageFooterBtn type="primary" @click="handleSave">保存</PageFooterBtn> |
| | | </PageFooter> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import Taro from '@tarojs/taro'; |
| | | import { EditPhoneUserAccount } from '@life-payment/components'; |
| | | import { goBack } from '@/utils'; |
| | | import type { ComponentExposed } from 'vue-component-type-helpers'; |
| | | |
| | | defineOptions({ |
| | | name: 'InnerPage', |
| | |
| | | const router = Taro.useRouter(); |
| | | const id = router.params?.id ?? ''; |
| | | |
| | | const editPhoneUserAccountRef = |
| | | useTemplateRef<ComponentExposed<typeof EditPhoneUserAccount>>('editPhoneUserAccountRef'); |
| | | |
| | | function handleSave() { |
| | | editPhoneUserAccountRef.value?.handleSave?.(); |
| | | } |
| | | |
| | | function handleSuccess() { |
| | | goBack(); |
| | | } |