Commit 39595dd3 authored by Bill's avatar Bill

Merge branch 'dev' of 10.0.0.22:lingxi/lingxi-business-paltform into dev

parents 9478fe25 b68c1dd9
......@@ -192,6 +192,14 @@ export enum FILTER_TYPE {
*/
creditSortLowToHigh = 'creditSortLowToHigh',
/**
* 店铺信用从高到低
*/
shopCreditSortHighToLow = 'shopCreditSortHighToLow',
/**
* 店铺信用从低到高
*/
shopCreditSortLowToHigh = 'shopCreditSortLowToHigh',
/**
* 时间排序
*/
dateSort = 'dateSort',
......
......@@ -40,7 +40,7 @@ const ActiveStores: React.FC<ActiveStoresPropsType> = (props) => {
<div className={styles.active_stores_list}>
{
shopList && shopList.map((item, index) => (
<div className={styles.active_stores_list_item}>
<div className={styles.active_stores_list_item} key={item.memberShopId}>
<div className={styles.active_stores_rank}>0{index+1}</div>
<div className={styles.active_stores_logo}>
<ImageBox width={36} height={36} imgUrl={item.memberLogo} />
......
......@@ -417,7 +417,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
for (const item of orderList) {
for (const orderItem of item.orderList) {
if (item.checkedList.includes(orderItem.id)) {
count += orderItem.count
count += Number(orderItem.count)
}
}
......
......@@ -28,7 +28,6 @@ const ShopList: React.FC<ShopListPropsType> = (props) => {
const [loading, setLoading] = useState<boolean>(true)
const [shopList, setShopList] = useState<GetTemplateWebMemberShopWebMemberShopListResponseDetail[]>([])
const [totalCount, setTotalCount] = useState<number>(0)
//FILTER_TYPE.activeStores,
const filterConfig = [FILTER_TYPE.category, FILTER_TYPE.useArea, FILTER_TYPE.activeStores, FILTER_TYPE.newJoin]
useEffect(() => {
......@@ -37,6 +36,7 @@ const ShopList: React.FC<ShopListPropsType> = (props) => {
}, [filterParam, search])
useEffect(() => {
console.log(JSON.stringify(filterList), "filterList")
if (!isEmpty(filterList) || filterUpdate) {
handleFilterChange(filterList)
}
......@@ -96,33 +96,33 @@ const ShopList: React.FC<ShopListPropsType> = (props) => {
/**
* 判断当前筛选项是否含有信用排序的筛选
*/
if (filterList.some(item => item.type === FILTER_TYPE.creditSortHighToLow)) {
if (filterList.some(item => item.type === FILTER_TYPE.shopCreditSortHighToLow)) {
onFilter({
key: null,
title: '信用从高到低',
type: FILTER_TYPE.creditSortHighToLow,
type: FILTER_TYPE.shopCreditSortHighToLow,
})
onFilter({
key: 'creditSortLowToHigh',
key: 'shopCreditSortLowToHigh',
title: '信用从低到高',
type: FILTER_TYPE.creditSortLowToHigh,
type: FILTER_TYPE.shopCreditSortLowToHigh,
})
} else if (filterList.some(item => item.type === FILTER_TYPE.creditSortLowToHigh)) {
} else if (filterList.some(item => item.type === FILTER_TYPE.shopCreditSortLowToHigh)) {
onFilter({
key: null,
title: '信用从低到高',
type: FILTER_TYPE.creditSortLowToHigh,
type: FILTER_TYPE.shopCreditSortLowToHigh,
})
onFilter({
key: 'creditSortHighToLow',
key: 'shopCreditSortHighToLow',
title: '信用从高到低',
type: FILTER_TYPE.creditSortHighToLow,
type: FILTER_TYPE.shopCreditSortHighToLow,
})
} else {
onFilter({
key: 'creditSortHighToLow',
key: 'shopCreditSortHighToLow',
title: '信用从高到低',
type: FILTER_TYPE.creditSortHighToLow,
type: FILTER_TYPE.shopCreditSortHighToLow,
})
}
break
......@@ -155,8 +155,8 @@ const ShopList: React.FC<ShopListPropsType> = (props) => {
<div className={styles.tool_bar_filter_item} onClick={() => handleSort(FILTER_TYPE.creditSort)}>
<span>信用</span>
<div className={styles.price_filter_box}>
<CaretUpOutlined className={cx(styles.icon, filterList.some(item => item.type === FILTER_TYPE.creditSortLowToHigh) ? styles.active : '')} />
<CaretDownOutlined className={cx(styles.icon, filterList.some(item => item.type === FILTER_TYPE.creditSortHighToLow) ? styles.active : '')} />
<CaretUpOutlined className={cx(styles.icon, filterList.some(item => item.type === FILTER_TYPE.shopCreditSortLowToHigh) ? styles.active : '')} />
<CaretDownOutlined className={cx(styles.icon, filterList.some(item => item.type === FILTER_TYPE.shopCreditSortHighToLow) ? styles.active : '')} />
</div>
</div>
</div>
......
/*
* @Author: XieZhiXiong
* @Date: 2020-12-30 14:49:11
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-12-30 14:56:41
* @Description:
*/
import { ISchema } from '@formily/antd';
import { UPLOAD_TYPE } from '@/constants';
......@@ -62,21 +69,7 @@ export const repaymentModalSchema: ISchema = {
tradeChannel: {
type: 'string',
title: '选择支付渠道',
enum: [
{
label: '微信',
value: 1,
},
{
label: '支付宝',
value: 2,
},
{
label: '银联',
value: 3,
},
],
default: 1,
enum: [],
'x-component-props': {
placeholder: '请选择',
},
......
......@@ -205,6 +205,12 @@ class FilterStore {
case FILTER_TYPE.creditSortHighToLow:
tempFilterParam.sortCredit = 2
break
case FILTER_TYPE.shopCreditSortLowToHigh:
tempFilterParam.sortCreditPoint = 'ASC'
break
case FILTER_TYPE.shopCreditSortHighToLow:
tempFilterParam.sortCreditPoint = 'DESC'
break
case FILTER_TYPE.dateSortLowToHigh:
tempFilterParam.sortTime = 1
break
......
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