index.jsx 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import { View, Text } from "@tarojs/components"
  2. import Taro from "@tarojs/taro"
  3. import { useState } from "react"
  4. import CustomNav from '@/components/CustomNav'
  5. import ButtontWX from '@/components/ButtontWX'
  6. // import BottomMoadl from '@/components/BottomMoadl/index'
  7. import './style.less'
  8. export default (props) => {
  9. //底部弹窗
  10. // const [showFrame, setShowFrame] = useState(false)
  11. // const setRecommend = () => {
  12. // setShowFrame(!showFrame)
  13. // }
  14. const okgoPay = () => {
  15. Taro.navigateTo({ url: `/pages/OrderInfo/index?id${1}` })
  16. }
  17. const cancelPay = () => {
  18. Taro.navigateBack({
  19. delta: 1
  20. })
  21. }
  22. return (
  23. <View className='page-index'>
  24. <View className='index-navbar'>
  25. <CustomNav title='订单确认' />
  26. </View>
  27. {/* <BottomMoadl frameTitle='支付方式' flag={showFrame} onRecommend={setRecommend} /> */}
  28. <View>
  29. </View>
  30. <View className='BottomtBut' >
  31. <ButtontWX butText='取消' onClick={cancelPay} butWidth={123} butHeight={39} butFontSize={16} butBorderRadius={49} />
  32. <ButtontWX butText='确定' onClick={okgoPay} butWidth={123} butHeight={39} butFontSize={16} butBorderRadius={49} />
  33. </View>
  34. </View>
  35. )
  36. }