✨ feat(隐藏原本购物车入口):
This commit is contained in:
parent
bd28f11336
commit
16464f482a
@ -1,4 +1,4 @@
|
|||||||
export const BASE_URL = CURRENT_BASE_URL
|
// export const BASE_URL = CURRENT_BASE_URL
|
||||||
// export const BASE_URL = `http://192.168.0.75:50001/lymarket`
|
// export const BASE_URL = `http://192.168.0.75:50001/lymarket`
|
||||||
// export const BASE_URL = `http://192.168.0.89:50001/lymarket`
|
// export const BASE_URL = `http://192.168.0.89:50001/lymarket`
|
||||||
// export const BASE_URL = `http://10.0.0.5:50001/lymarket`
|
// export const BASE_URL = `http://10.0.0.5:50001/lymarket`
|
||||||
@ -12,7 +12,7 @@ export const BASE_URL = CURRENT_BASE_URL
|
|||||||
// export const BASE_URL = 'https://dev.zzfzyc.com/lymarket' // 开发环境
|
// export const BASE_URL = 'https://dev.zzfzyc.com/lymarket' // 开发环境
|
||||||
// export const BASE_URL = 'https://www.zzfzyc.com/lymarket' // 正式环境
|
// export const BASE_URL = 'https://www.zzfzyc.com/lymarket' // 正式环境
|
||||||
// export const BASE_URL = `http://192.168.1.5:40001/lymarket` // 王霞
|
// export const BASE_URL = `http://192.168.1.5:40001/lymarket` // 王霞
|
||||||
// export const BASE_URL = 'http://192.168.1.7:50002/lymarket' // 添
|
export const BASE_URL = 'http://192.168.1.7:50002/lymarket' // 添
|
||||||
// export const BASE_URL = 'http://192.168.1.28:50002/lymarket' // 婷
|
// export const BASE_URL = 'http://192.168.1.28:50002/lymarket' // 婷
|
||||||
// export const BASE_URL = 'http://192.168.1.42:50002/lymarket' // 杰
|
// export const BASE_URL = 'http://192.168.1.42:50002/lymarket' // 杰
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@ import { AnalysisShortCodeApi, GetShortCodeApi } from '@/api/share'
|
|||||||
import { SHARE_SCENE } from '@/common/enum'
|
import { SHARE_SCENE } from '@/common/enum'
|
||||||
import useUserInfo from '@/use/useUserInfo'
|
import useUserInfo from '@/use/useUserInfo'
|
||||||
import LabAndImg from '@/components/LabAndImg'
|
import LabAndImg from '@/components/LabAndImg'
|
||||||
import { alert } from '@/common/common'
|
import { alert, goLink } from '@/common/common'
|
||||||
import AddCollection from '@/components/addCollection'
|
import AddCollection from '@/components/addCollection'
|
||||||
import { AddFavoriteApi, DelFavoriteProductApi } from '@/api/favorite'
|
import { AddFavoriteApi, DelFavoriteProductApi } from '@/api/favorite'
|
||||||
import useCommonData from '@/use/useCommonData'
|
import useCommonData from '@/use/useCommonData'
|
||||||
@ -334,7 +334,7 @@ const Details = (props: Params) => {
|
|||||||
></Button>
|
></Button>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
<View className={styles.buy_cart} onClick={() => setShowCart(true)}>
|
<View className={styles.buy_cart} onClick={() => goLink('/pages/shopCar/index', {}, 'switchTab')}>
|
||||||
<View className={classnames('iconfont icon-gouwuche', styles.miconfont)}></View>
|
<View className={classnames('iconfont icon-gouwuche', styles.miconfont)}></View>
|
||||||
<View className={styles.text}>购物车</View>
|
<View className={styles.text}>购物车</View>
|
||||||
{commonData.shopCount > 0 && <View className={styles.product_num}>{commonData.shopCount > 99 ? '99+' : commonData.shopCount}</View>}
|
{commonData.shopCount > 0 && <View className={styles.product_num}>{commonData.shopCount > 99 ? '99+' : commonData.shopCount}</View>}
|
||||||
|
|||||||
@ -95,7 +95,7 @@ const Index = () => {
|
|||||||
categoryList()
|
categoryList()
|
||||||
}, [])
|
}, [])
|
||||||
return (
|
return (
|
||||||
<MoveBtn showList={['shop']} onShopClick={() => setShowShopCart(!showShopCart)}>
|
// <MoveBtn showList={['shop']} onShopClick={() => setShowShopCart(!showShopCart)}>
|
||||||
<View className={styles.main}>
|
<View className={styles.main}>
|
||||||
<View className={styles.header}>
|
<View className={styles.header}>
|
||||||
<View className={styles.search}>
|
<View className={styles.search}>
|
||||||
@ -123,9 +123,9 @@ const Index = () => {
|
|||||||
</SideBar>
|
</SideBar>
|
||||||
</View>
|
</View>
|
||||||
<View className="common_safe_area_y"></View>
|
<View className="common_safe_area_y"></View>
|
||||||
<ShopCart show={showShopCart} onClose={() => setShowShopCart(false)} />
|
{/* <ShopCart show={showShopCart} onClose={() => setShowShopCart(false)} /> */}
|
||||||
</View>
|
</View>
|
||||||
</MoveBtn>
|
// </MoveBtn>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user