debug
All checks were successful
Deploy to Server / deploy (push) Successful in 25s

This commit is contained in:
jeremygan2021
2026-02-28 13:01:02 +08:00
parent b778fbb923
commit b31e8fff09
7 changed files with 53 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ import { View, Text, Image, ScrollView, Button } from '@tarojs/components'
import Taro, { useRouter, useLoad, useShareAppMessage, useShareTimeline } from '@tarojs/taro'
import { useState } from 'react'
import { getConfigDetail } from '../../api'
import { checkLogin } from '../../utils/auth'
import ParticleBackground from '../../components/ParticleBackground'
import { addToCart } from '../../utils/cart'
import './detail.scss'
@@ -50,6 +51,7 @@ export default function Detail() {
}
const buyNow = () => {
if (!checkLogin()) return
if (!product) return
Taro.navigateTo({
url: `/pages/order/checkout?id=${product.id}&quantity=1`