<script setup lang="ts">
definePage({
  name: 'refueling-tabbar',
  islogin: false,
  style: {
    navigationBarTitleText: '加油',
  },
})

function refuelingPay() {
  console.log('触发跳转')
  // router.push({ name: 'refueling-webview' })
  uni.navigateToMiniProgram({
    appId: 'wx0d252f6ed9755862', // 滴滴加油小程序appId
    path: 'packageA/pages/open-energy-pay/index?orderId=&tradeId=&appId=wx43b5b906cc30ed0b&path=/pages/index/index&envVersion=小程序回跳环境', // 滴滴加油收银台页面地址，需要拼接orderId和tradeId
    envVersion: 'release', // 固定release
  })
}
</script>

<template>
  <view class="">
    <wd-button @click="refuelingPay">
      加油充值
    </wd-button>
  </view>
</template>

<style lang="scss" scoped></style>
