diff --git a/src/common/constant.ts b/src/common/constant.ts index 8fd7573..28fc231 100644 --- a/src/common/constant.ts +++ b/src/common/constant.ts @@ -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.89: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://www.zzfzyc.com/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.42:50002/lymarket' // 杰 diff --git a/src/pages/details/index.tsx b/src/pages/details/index.tsx index 2f1d659..6cbe413 100644 --- a/src/pages/details/index.tsx +++ b/src/pages/details/index.tsx @@ -15,7 +15,7 @@ import { AnalysisShortCodeApi, GetShortCodeApi } from '@/api/share' import { SHARE_SCENE } from '@/common/enum' import useUserInfo from '@/use/useUserInfo' import LabAndImg from '@/components/LabAndImg' -import { alert } from '@/common/common' +import { alert, goLink } from '@/common/common' import AddCollection from '@/components/addCollection' import { AddFavoriteApi, DelFavoriteProductApi } from '@/api/favorite' import useCommonData from '@/use/useCommonData' @@ -334,7 +334,7 @@ const Details = (props: Params) => { > - setShowCart(true)}> + goLink('/pages/shopCar/index', {}, 'switchTab')}> 购物车 {commonData.shopCount > 0 && {commonData.shopCount > 99 ? '99+' : commonData.shopCount}} diff --git a/src/pages/index/index.tsx b/src/pages/index/index.tsx index 6171cfe..cdd3d8f 100644 --- a/src/pages/index/index.tsx +++ b/src/pages/index/index.tsx @@ -95,37 +95,37 @@ const Index = () => { categoryList() }, []) return ( - setShowShopCart(!showShopCart)}> - - - - goLink('/pages/searchList/search')}> - - + // setShowShopCart(!showShopCart)}> + + + + goLink('/pages/searchList/search')}> + - - - getRefresherRefresh()} - > - - - - - setShowShopCart(false)} /> + - + + getRefresherRefresh()} + > + + + + + {/* setShowShopCart(false)} /> */} + + // ) }