商城测试版v8

This commit is contained in:
2022-07-27 20:52:03 +08:00
parent 3009b65e00
commit 84bc43fbb9
17 changed files with 106 additions and 259 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ import { goLink } from "@/common/common"
import {GetBannerList} from "@/api/banner"
import styles from './index.module.scss'
import { useEffect, useState } from "react"
import { formatImgUrl } from "@/common/fotmat"
type item = {title:string, img:string, url:string, id:number}
@@ -47,7 +48,7 @@ export default (props:params) => {
list?.map(item => {
return <SwiperItem key={item.id}>
<View className={styles.image_item} onClick={() => skipTo(item)}>
<Image mode="aspectFill" src={item.prev_view_url}></Image>
<Image mode="aspectFill" src={formatImgUrl(item.prev_view_url, '!w800')}></Image>
</View>
</SwiperItem>
})
+2 -1
View File
@@ -20,6 +20,7 @@ type Param = {
sale_mode: number, //订单类型
av_return_roll?: number, //可退数量
is_return?: true|false, //是否申请了售后
is_should_collect_audit?: true|false, //应收单是否审核
},
showStatus?: 'detail'|'list', //订单详情,订单列表
@@ -157,7 +158,7 @@ export default memo(({orderInfo, showStatus = 'detail', onClick}:Param) => {
label: '销售码单',
sort: 9,
validatarFunc: (orderInfo) => {
return orderInfo.actual_amount > 0 && orderInfo.wait_pay_amount == 0 && showStatus == 'detail'
return orderInfo.is_should_collect_audit && showStatus == 'detail'
}
},
])