wupengfei
17 小时以前 9e5a47d90455c4770815d32899f660b53fc27110
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<template>
  <ContentScrollView hasPaddingTop style="background-color: transparent">
    <OrderApplyRefundView
      :id="id"
      @submitApplyRefund="submitApplyRefund"
      ref="orderApplyRefundViewRef"
    />
  </ContentScrollView>
  <PageFooter>
    <PageFooterBtn type="primary" @click="handleSubmit">提交</PageFooterBtn>
  </PageFooter>
</template>
 
<script setup lang="ts">
import Taro from '@tarojs/taro';
import { OrderApplyRefundView } 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 orderApplyRefundViewRef =
  useTemplateRef<ComponentExposed<typeof OrderApplyRefundView>>('orderApplyRefundViewRef');
 
function handleSubmit() {
  orderApplyRefundViewRef.value?.handleSubmit?.();
}
 
function submitApplyRefund() {
  goBack();
}
</script>