🎈 perf(优化部分代码):

This commit is contained in:
czm 2022-12-06 11:35:39 +08:00
parent f6c971de2a
commit 3e7b70c190
4 changed files with 10 additions and 6 deletions

View File

@ -39,4 +39,7 @@
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
}

View File

@ -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`
@ -13,7 +13,7 @@
// 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.28:50002/lymarket' // 婷
// export const BASE_URL = 'http://192.168.1.28:50002/lymarket' // 婷
// export const BASE_URL = `http://192.168.1.42:50002/lymarket` // 杰
// CDN

View File

@ -135,7 +135,7 @@ export default memo(({ order, comfirm = false }: Param) => {
if (!order?.is_quality_check) {
const total_number = order?.sale_mode == 0 ? order?.total_number : order?.total_number / 100
return `${order?.total_fabrics} 种面料,${order?.total_colors} 种颜色,共 ${total_number} ${order?.unit}`
}
}
else {
const total_number = order?.sale_mode == 0 ? order?.quality_check_pass_number : order?.quality_check_pass_number / 100
return `${order?.quality_check_pass_fabrics} 种面料,${order?.quality_check_pass_colors} 种颜色,共 ${total_number} ${order?.unit}`

View File

@ -13,8 +13,8 @@ import styles from './index.module.scss'
import useLogin from '@/use/useLogin'
import SearchInput from '@/components/searchInput'
import AfterOrderBtns from '@/components/afterOrderBtns'
import { formatDateTime, formatImgUrl, formatPriceDiv } from '@/common/fotmat'
import { AFTER_ORDER_STATUS, ORDER_STATUS } from '@/common/enum'
import { formatDateTime, formatImgUrl } from '@/common/fotmat'
import { AFTER_ORDER_STATUS } from '@/common/enum'
import { SaleOrderOrderDetailApi } from '@/api/salesAfterOrder'
const OrderDes = ({ orderInfo }: { orderInfo?: any }) => {
@ -95,6 +95,7 @@ const AfterSalePricture = ({ urls = [] }: { urls: string[] }) => {
</ContentBox>
)
}
const AfterSalePrictureWithMemo = memo(AfterSalePricture)
const SalesAfter = () => {
useLogin()
@ -139,7 +140,7 @@ const SalesAfter = () => {
}, [orderDetail])
// 售后订单状态枚举
const {} = AFTER_ORDER_STATUS
const { } = AFTER_ORDER_STATUS
// 物流显示
const [logisticsShow, setLogisticsShow] = useState(false)