✨ 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,37 +95,37 @@ 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}>
|
||||||
<View className={styles.search_input} onClick={() => goLink('/pages/searchList/search')}>
|
<View className={styles.search_input} onClick={() => goLink('/pages/searchList/search')}>
|
||||||
<Search disabled style={{ width: '263rpx' }} borderRadius="16rpx" placeholder="请输入搜索布料" />
|
<Search disabled style={{ width: '263rpx' }} borderRadius="16rpx" placeholder="请输入搜索布料" />
|
||||||
</View>
|
|
||||||
</View>
|
</View>
|
||||||
<Banner />
|
|
||||||
</View>
|
</View>
|
||||||
<View className={styles.products}>
|
<Banner />
|
||||||
<SideBar
|
|
||||||
list={kindData.list}
|
|
||||||
height="100%"
|
|
||||||
defaultValue={kindData.defaultId}
|
|
||||||
hasMore={hasMore}
|
|
||||||
statusMore={statusMore}
|
|
||||||
selfOnScrolltolower={getScrolltolower}
|
|
||||||
sideBarOnClick={getProductKindId}
|
|
||||||
heightItem={82}
|
|
||||||
refresherTriggered={refresherTriggeredStatus}
|
|
||||||
selectClass={getSelectClassId}
|
|
||||||
selfOnRefresherRefresh={() => getRefresherRefresh()}
|
|
||||||
>
|
|
||||||
<Product productList={productData.list} />
|
|
||||||
</SideBar>
|
|
||||||
</View>
|
|
||||||
<View className="common_safe_area_y"></View>
|
|
||||||
<ShopCart show={showShopCart} onClose={() => setShowShopCart(false)} />
|
|
||||||
</View>
|
</View>
|
||||||
</MoveBtn>
|
<View className={styles.products}>
|
||||||
|
<SideBar
|
||||||
|
list={kindData.list}
|
||||||
|
height="100%"
|
||||||
|
defaultValue={kindData.defaultId}
|
||||||
|
hasMore={hasMore}
|
||||||
|
statusMore={statusMore}
|
||||||
|
selfOnScrolltolower={getScrolltolower}
|
||||||
|
sideBarOnClick={getProductKindId}
|
||||||
|
heightItem={82}
|
||||||
|
refresherTriggered={refresherTriggeredStatus}
|
||||||
|
selectClass={getSelectClassId}
|
||||||
|
selfOnRefresherRefresh={() => getRefresherRefresh()}
|
||||||
|
>
|
||||||
|
<Product productList={productData.list} />
|
||||||
|
</SideBar>
|
||||||
|
</View>
|
||||||
|
<View className="common_safe_area_y"></View>
|
||||||
|
{/* <ShopCart show={showShopCart} onClose={() => setShowShopCart(false)} /> */}
|
||||||
|
</View>
|
||||||
|
// </MoveBtn>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user