分享封装完成

This commit is contained in:
2022-05-09 10:00:32 +08:00
parent 050f90433c
commit 16ba165fec
5 changed files with 28 additions and 6 deletions
+4 -2
View File
@@ -7,8 +7,8 @@ import MoveBtn from '@/components/moveBtn'
import ShopCart from '@/components/shopCart'
import styles from './index.module.scss'
import { goLink } from '@/common/common'
import { useState } from 'react'
import Taro, { usePullDownRefresh } from '@tarojs/taro'
import { useEffect, useState } from 'react'
import Taro, { useDidShow, usePullDownRefresh, useRouter } from '@tarojs/taro'
import useManualPullDownRefresh from '@/use/useManualPullDownRefresh'
@@ -47,6 +47,8 @@ export default () => {
}, 1000)
}
return (
<MoveBtn onClick={() => setShowShopCart(!showShopCart)}>
<View className={styles.main}>