提交 39f0734f 作者: ZhangLingKun

功能:ssr测试

上级 bcc4f186
流水线 #7400 已通过 于阶段
in 4 分 33 秒
......@@ -7,10 +7,7 @@ import request from '../request';
export class MallAPI {
// 小程序分类信息--含一二级分类
static getAppCategoryInfo: GetAppCategoryInfo = (params) =>
request.get('/pms/category/appCategoryInfo', {
params,
baseURL: 'https://test.iuav.com',
});
request.get('/pms/category/appCategoryInfo', { params });
// 根据子分类查询商品信息
static queryGoodsInfoByCategorySub: QueryGoodsInfoByCategorySub = (params) =>
......
......@@ -15,7 +15,7 @@ const service = axios.create({
service.interceptors.request.use(
(config: any) => {
const token = Cookies.get('SHAREFLY-TOKEN');
console.log('config --->', config);
console.log('config --->', NEXT_PUBLIC_BASE_URL, config);
if (token) {
// eslint-disable-next-line no-param-reassign
config.headers.token = token;
......
......@@ -8,7 +8,7 @@ const ProductItemWrap = styled.div`
position: relative;
box-sizing: border-box;
width: calc((100% - (0.83rem * 5)) / 6);
height: 15rem;
height: 16rem;
border: 0.02rem solid #e3e3e3;
margin: 0 0.83rem 0.83rem 0;
padding: 0.67rem;
......@@ -26,6 +26,7 @@ const ProductItemWrap = styled.div`
width: 100%;
height: 8rem;
box-sizing: border-box;
margin-bottom: 0.5rem;
.image {
width: 100%;
height: 100%;
......@@ -42,6 +43,7 @@ const ProductItemWrap = styled.div`
-webkit-line-clamp: 2;
overflow: hidden;
margin-bottom: 0.33rem;
min-height: 2rem;
}
.product-desc {
position: relative;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论