Commit 509670c5 authored by 李腾's avatar 李腾

fix: 我的订单增加商品id字段展示

parent 98c01432
...@@ -2,17 +2,17 @@ const isProduction = process.env.NODE_ENV === 'production'; ...@@ -2,17 +2,17 @@ const isProduction = process.env.NODE_ENV === 'production';
const isPre = process.env.PRE_ENV === 'pre'; const isPre = process.env.PRE_ENV === 'pre';
const envAPi = { const envAPi = {
api: 'https://backstms-ds.liangkebang.net', api: 'https://backstms-xyqb.liangkebang.net',
kdspOpApi: 'https://sc-merchant-api-ds.liangkebang.net', kdspOpApi: 'https://sc-merchant-api-xyqb.liangkebang.net',
kdspApi: 'https://sc-merchant-api-ds.liangkebang.net', kdspApi: 'https://sc-merchant-api-xyqb.liangkebang.net',
goodsApi: 'https://sc-merchant-api-ds.liangkebang.net', goodsApi: 'https://sc-merchant-api-xyqb.liangkebang.net',
// kdspOpApi: 'https://kdsp-operation-xyqb.liangkebang.net', // kdspOpApi: 'https://kdsp-operation-xyqb.liangkebang.net',
// kdspApi: 'https://sc-op-api-xyqb.liangkebang.net', // kdspApi: 'https://sc-op-api-xyqb.liangkebang.net',
// goodsApi: 'https://sc-op-api-xyqb.liangkebang.net', // goodsApi: 'https://sc-op-api-xyqb.liangkebang.net',
querysApi: 'https://sc-settlement-api-ds.liangkebang.net', querysApi: 'https://sc-settlement-api-xyqb.liangkebang.net',
prologueDomain: 'https://mall-ds.liangkebang.net', prologueDomain: 'https://mall-xyqb.liangkebang.net',
qiniuHost: 'https://kdspstatic.q-gp.com/', qiniuHost: 'https://kdspstatic.q-gp.com/',
opapiHost: 'https://opapi-ds.liangkebang.net', opapiHost: 'https://opapi-xyqb.liangkebang.net',
}; };
const prodApi = { const prodApi = {
......
...@@ -24,6 +24,10 @@ export const ORDER_SEARCH_TYPE = [ ...@@ -24,6 +24,10 @@ export const ORDER_SEARCH_TYPE = [
value: 'userMobile4', value: 'userMobile4',
name: '买家手机号后四位', name: '买家手机号后四位',
}, },
{
value: 'receiverMobile',
name: '收货人手机号',
},
{ {
value: 'receiverMobile4', value: 'receiverMobile4',
name: '收货人手机号后四位', name: '收货人手机号后四位',
......
...@@ -61,10 +61,8 @@ const OrderList = ref => { ...@@ -61,10 +61,8 @@ const OrderList = ref => {
skuName, skuName,
productType, productType,
orderStatus, orderStatus,
// 测试字段
...pagination, ...pagination,
}; };
console.log(searchParams);
setLoading(true); setLoading(true);
queryOrderList(searchParams).then(res => { queryOrderList(searchParams).then(res => {
setLoading(false); setLoading(false);
...@@ -223,13 +221,14 @@ const OrderList = ref => { ...@@ -223,13 +221,14 @@ const OrderList = ref => {
align: 'left', align: 'left',
width: 350, width: 350,
render: ({ value, subRecord }) => { render: ({ value, subRecord }) => {
const { primaryImage, skuSpec } = subRecord; const { primaryImage, skuSpec, spuId } = subRecord;
return ( return (
<div className={style['sku-info']}> <div className={style['sku-info']}>
<img src={primaryImage} width="50px" height="50px" alt="" /> <img src={primaryImage} width="50px" height="50px" alt="" />
<div className={style['sku-info__box']}> <div className={style['sku-info__box']}>
<p className={style['sku-info__box--name']}>{value}</p> <p className={style['sku-info__box--name']}>{value}</p>
<p className={style['sku-info__box--spec']}>{skuSpec}</p> <p className={style['sku-info__box--spec']}>规格:{skuSpec}</p>
<p className={style['sku-info__box--id']}>商品id: {spuId}</p>
</div> </div>
</div> </div>
); );
......
...@@ -42,6 +42,9 @@ ...@@ -42,6 +42,9 @@
&--spec { &--spec {
color: #999; color: #999;
} }
&--id {
color: #999;
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment