feat: 排序下拉
This commit is contained in:
2
dist/pages/activityList/index.js
vendored
2
dist/pages/activityList/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/pages/my/index.js
vendored
2
dist/pages/my/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -8,17 +8,13 @@ const activityList = () => {
|
|||||||
const [state, setState] = react.useState({
|
const [state, setState] = react.useState({
|
||||||
option1: [
|
option1: [
|
||||||
{
|
{
|
||||||
text: "全部商品",
|
text: "全部活动",
|
||||||
value: 0,
|
value: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: "新款商品",
|
text: "附近活动",
|
||||||
value: 1,
|
value: 1,
|
||||||
},
|
}
|
||||||
{
|
|
||||||
text: "活动商品",
|
|
||||||
value: 2,
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
option2: [
|
option2: [
|
||||||
{
|
{
|
||||||
@@ -26,11 +22,11 @@ const activityList = () => {
|
|||||||
value: "a",
|
value: "a",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: "好评排序",
|
text: "最近距离",
|
||||||
value: "b",
|
value: "b",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: "销量排序",
|
text: "参与最多",
|
||||||
value: "c",
|
value: "c",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ const my = (props: any) => {
|
|||||||
price=""
|
price=""
|
||||||
desc="活动描述信息"
|
desc="活动描述信息"
|
||||||
title="活动标题"
|
title="活动标题"
|
||||||
thumb="https://img.yzcdn.cn/upload_files/2017/07/02/af5b9f44deaeb68000d7e4a711160c53.jpg"
|
thumb="cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images.jpg"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user