Commit 9d11e379 authored by GuanHua's avatar GuanHua

fix: 修改店铺信息显示的字段

parent d214d2fa
......@@ -26,13 +26,12 @@ const ShopInfo: React.FC<ShopInfoPropsType> = (props) => {
const applyFroVip = () => {
if (shopInfo) {
let param = {
const param = {
memberId: shopInfo.memberId,
roleId: shopInfo.roleId
}
setApplyLoading(true)
PublicApi.postMemberAbilityMallSubApply(param).then((res) => {
if (res.code === 1000) { }
setApplyLoading(false)
}).catch(() => {
setApplyLoading(false)
......@@ -41,8 +40,8 @@ const ShopInfo: React.FC<ShopInfoPropsType> = (props) => {
}
const handleCollect = () => {
let status = !collectState
let param = {
const status = !collectState
const param = {
shopId: shopInfo.id,
status
}
......@@ -77,13 +76,13 @@ const ShopInfo: React.FC<ShopInfoPropsType> = (props) => {
</div>
<div className={styles.shop_about_item}>
<i className={styles.icon}><img src={credit_icon} /></i>
<span>200</span>
<span>{shopInfo?.creditPoint}</span>
</div>
</div>
<div className={styles.shop_info_list}>
<div className={styles.shop_info_list_item}>
<div className={styles.label}>满意度:</div>
<div className={styles.breif}><Rate className={styles.star} count={4} disabled defaultValue={4} /></div>
<div className={styles.breif}><Rate className={styles.star} count={4} disabled defaultValue={shopInfo?.avgTradeCommentStar || 0} /></div>
</div>
<div className={styles.shop_info_list_item}>
<div className={styles.label}>注册资本:</div>
......
......@@ -12,10 +12,10 @@ interface FloorSkeletonPropsType {
const FloorSkeleton: React.FC<FloorSkeletonPropsType> = (props) => {
const { type } = props
let dataList = Array.apply({}, new Array(9))
let goodsList = Array.apply({}, new Array(10))
let brandList = Array.apply({}, new Array(6))
let shopList = Array.apply({}, new Array(5))
const dataList = Array.apply({}, new Array(9))
const goodsList = Array.apply({}, new Array(10))
const brandList = Array.apply({}, new Array(6))
const shopList = Array.apply({}, new Array(5))
const renderSkeleton = () => {
switch (type) {
......
......@@ -125,7 +125,7 @@ const LXShopLayout: React.FC<LXMallLayoutPropsType> = (props) => {
updateShopInfo: () => handleUpdate()
},
);
}) : <SearchShopResult search={shopInfo.company} /> : <SearchShopResult />
}) : <SearchShopResult search={shopInfo.memberName} /> : null
}
</div>
<Footer />
......
......@@ -19,7 +19,7 @@ const CommodityList: React.FC<CommodityListPropsType> = (props) => {
const renderCommodityPrice = (unitPrice) => {
let price = 0
if (unitPrice) {
let priceArr = []
const priceArr = []
Object.keys(unitPrice).forEach(key => {
priceArr.push(unitPrice[key])
})
......@@ -57,7 +57,7 @@ const CommodityList: React.FC<CommodityListPropsType> = (props) => {
<div className={styles.shop_list_info_about}>
<div className={styles.shop_list_info_about_item}>
<i className={styles.icon}><img src={credit_icon} /></i>
<span>{item.integral}</span>
<span>{item.creditPoint || 0}</span>
</div>
<div className={styles.shop_list_info_about_item}>
<i className={styles.icon}><img src={shop_icon} /></i>
......@@ -69,7 +69,7 @@ const CommodityList: React.FC<CommodityListPropsType> = (props) => {
</div>
<div className={styles.shop_satisfaction}>
<label>满意度:</label>
<Rate className={styles.shop_satisfaction_rate} disabled defaultValue={item.satisfied || 0} />
<Rate className={styles.shop_satisfaction_rate} disabled defaultValue={item.avgTradeCommentStar || 0} />
</div>
<div className={styles.shop_list_line}>
<label>主营</label>
......
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