zhengyiming
2 天以前 e0cb82c8dbf83fabc0cab548abc873926366fb75
apps/taro/src/subpackages/recharge/phoneBillRecharge/InnerPage.vue
@@ -1,20 +1,20 @@
<template>
  <ContentScrollView hasPaddingTop style="background-color: transparent">
    <PhoneBillRecharge
      @goPay="goPay"
      :isDev="isDev"
      @paySuccess="handePaySuccess"
      :getOpenId="ensureOpenId"
      :isInWeChat="isInWeChat"
      :isInAlipay="isInAlipay"
      :isH5="isWeb"
      :appId="WXPayAppId"
      :isFocus="isFocus"
      :showAliPay="!isInWeChat"
      :showWeixinPay="isInWeChat"
      @missName="handleMissName"
    />
  </ContentScrollView>
  <PhoneBillRecharge
    @goPay="goPay"
    :isDev="isDev"
    @paySuccess="handePaySuccess"
    :getOpenId="ensureOpenId"
    :isInWeChat="isInWeChat"
    :isInAlipay="isInAlipay"
    :isH5="isWeb"
    :appId="WXPayAppId"
    :isFocus="isFocus"
    :showAliPay="!isInWeChat"
    :showWeixinPay="isInWeChat"
    @missName="handleMissName"
    @editUserAccount="handleEditUserAccount"
    @currentChange="emit('currentChange', $event)"
  />
</template>
<script setup lang="ts">
@@ -29,6 +29,10 @@
defineOptions({
  name: 'InnerPage',
});
const emit = defineEmits<{
  (e: 'currentChange', current: 'step1' | 'step2'): void;
}>();
const isDev = process.env.NODE_ENV === 'development';
@@ -56,4 +60,10 @@
    });
  } catch (error) {}
}
function handleEditUserAccount(userAccountId: string) {
  RouteHelper.navigateTo({
    url: `${RouterPath.editPhoneUserAccount}?id=${userAccountId}`,
  });
}
</script>