import { View, Text } from "@tarojs/components"
import Taro from "@tarojs/taro"
import { useState } from "react"
import CustomNav from '@/components/CustomNav'
import ButtontWX from '@/components/ButtontWX'
// import BottomMoadl from '@/components/BottomMoadl/index'






import './style.less'

export default (props) => {
  //底部弹窗
  // const [showFrame, setShowFrame] = useState(false)
  // const setRecommend = () => {
  //   setShowFrame(!showFrame)
  // }

  const okgoPay = () => {
    Taro.navigateTo({ url: `/pages/OrderInfo/index?id${1}` })
  }
  const cancelPay = () => {
    Taro.navigateBack({
      delta: 1
    })
  }



  return (
    <View className='page-index'>
      <View className='index-navbar'>
        <CustomNav title='订单确认' />
      </View>
      {/* <BottomMoadl frameTitle='支付方式' flag={showFrame} onRecommend={setRecommend} /> */}
      <View>

      </View>
      <View className='BottomtBut' >
        <ButtontWX butText='取消' onClick={cancelPay} butWidth={123} butHeight={39} butFontSize={16} butBorderRadius={49} />

        <ButtontWX butText='确定' onClick={okgoPay} butWidth={123} butHeight={39} butFontSize={16} butBorderRadius={49} />
      </View>
    </View>
  )
}
