Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
web
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
web
Commits
39ee7e23
提交
39ee7e23
authored
6月 01, 2023
作者:
翁进城
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into feature/chuck
上级
6d4c90f0
507a10e2
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
29 行增加
和
18 行删除
+29
-18
index.tsx
components/NavHeader/publishModal/index.tsx
+12
-4
index.tsx
components/filter/compoents/regionItem/index.tsx
+4
-0
index.tsx
components/layout/index.tsx
+1
-5
index.page.tsx
pages/JoinPolicy/index.page.tsx
+8
-2
index.page.tsx
pages/equipmentLeasing/index.page.tsx
+1
-1
index.tsx
pages/forum/components/publishMessage/index.tsx
+3
-2
styled.tsx
pages/home/styled.tsx
+0
-2
styled.tsx
pages/home/waterfallFlowBody/styled.tsx
+0
-2
没有找到文件。
components/NavHeader/publishModal/index.tsx
浏览文件 @
39ee7e23
...
@@ -83,12 +83,20 @@ export default function PublishModal(props: Props) {
...
@@ -83,12 +83,20 @@ export default function PublishModal(props: Props) {
<
Form
.
Item
<
Form
.
Item
label=
"手机号"
label=
"手机号"
name=
"publishPhone"
name=
"publishPhone"
rules=
{
[{
required
:
true
,
message
:
"请输入手机号!"
}]
}
rules=
{
[
{
required
:
true
,
message
:
"请输入手机号!"
},
{
pattern
:
/^1
\d
{10}$/
,
message
:
"很输入11位手机号"
,
},
]
}
>
>
<
Input
<
Input
onInput=
{
phoneNumber
}
maxLength=
{
11
}
onInput=
{
phoneNumber
}
allowClear
maxLength=
{
11
}
placeholder=
"输入手机号"
></
Input
>
allowClear
placeholder=
"输入手机号"
></
Input
>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
<
Form
.
Item
label=
"需求类型"
label=
"需求类型"
...
...
components/filter/compoents/regionItem/index.tsx
浏览文件 @
39ee7e23
...
@@ -10,6 +10,7 @@ type Props = {
...
@@ -10,6 +10,7 @@ type Props = {
export
default
function
RegionItem
(
props
:
Props
)
{
export
default
function
RegionItem
(
props
:
Props
)
{
const
[
provinceList
,
setProvinceList
]
=
useState
<
RegionResp
[]
>
([]);
const
[
provinceList
,
setProvinceList
]
=
useState
<
RegionResp
[]
>
([]);
const
[
cityList
,
setCityList
]
=
useState
<
RegionResp
[]
>
([]);
const
[
cityList
,
setCityList
]
=
useState
<
RegionResp
[]
>
([]);
const
[
selectCity
,
setSelectCity
]
=
useState
<
number
>
()
useEffect
(()
=>
{
useEffect
(()
=>
{
api
.
region
().
then
((
res
)
=>
{
api
.
region
().
then
((
res
)
=>
{
setProvinceList
(
res
?.
result
||
[]);
setProvinceList
(
res
?.
result
||
[]);
...
@@ -19,11 +20,13 @@ export default function RegionItem(props: Props) {
...
@@ -19,11 +20,13 @@ export default function RegionItem(props: Props) {
const
onProvinceChange
=
(
value
:
number
,
item
:
any
)
=>
{
const
onProvinceChange
=
(
value
:
number
,
item
:
any
)
=>
{
console
.
log
(
"省"
,
value
,
item
);
console
.
log
(
"省"
,
value
,
item
);
setCityList
(
item
.
childInfo
||
[]);
setCityList
(
item
.
childInfo
||
[]);
setSelectCity
(
undefined
);
props
.
onChange
(
item
);
props
.
onChange
(
item
);
};
};
const
onCityChange
=
(
value
:
number
,
item
:
any
)
=>
{
const
onCityChange
=
(
value
:
number
,
item
:
any
)
=>
{
console
.
log
(
"市"
,
value
);
console
.
log
(
"市"
,
value
);
setSelectCity
(
value
);
props
.
onChange
(
item
);
props
.
onChange
(
item
);
};
};
return
(
return
(
...
@@ -45,6 +48,7 @@ export default function RegionItem(props: Props) {
...
@@ -45,6 +48,7 @@ export default function RegionItem(props: Props) {
})
}
})
}
/>
/>
<
Select
<
Select
value=
{
selectCity
}
bordered=
{
false
}
bordered=
{
false
}
popupMatchSelectWidth=
{
false
}
popupMatchSelectWidth=
{
false
}
placeholder=
"选择市"
placeholder=
"选择市"
...
...
components/layout/index.tsx
浏览文件 @
39ee7e23
...
@@ -10,9 +10,7 @@ const { Header, Footer, Content } = Layout;
...
@@ -10,9 +10,7 @@ const { Header, Footer, Content } = Layout;
const
includesPage
=
[
"/home"
,
"/flyingHandService/detail/[id]"
]
const
includesPage
=
[
"/home"
,
"/flyingHandService/detail/[id]"
]
const
homeStyle
:
React
.
CSSProperties
=
{
const
homeStyle
:
React
.
CSSProperties
=
{
position
:
'fixed'
,
marginTop
:
10
width
:
'100%'
,
bottom
:
'0'
}
}
const
headerStyle
:
React
.
CSSProperties
=
{
const
headerStyle
:
React
.
CSSProperties
=
{
...
@@ -34,8 +32,6 @@ const contentStyle: React.CSSProperties = {
...
@@ -34,8 +32,6 @@ const contentStyle: React.CSSProperties = {
};
};
const
footerStyle
:
React
.
CSSProperties
=
{
const
footerStyle
:
React
.
CSSProperties
=
{
color
:
""
,
backgroundColor
:
""
,
lineHeight
:
"1"
,
lineHeight
:
"1"
,
padding
:
0
,
padding
:
0
,
position
:
"relative"
,
position
:
"relative"
,
...
...
pages/JoinPolicy/index.page.tsx
浏览文件 @
39ee7e23
...
@@ -84,9 +84,15 @@ export default function JoinPolicy() {
...
@@ -84,9 +84,15 @@ export default function JoinPolicy() {
<
Form
.
Item
<
Form
.
Item
label=
"联系方式"
label=
"联系方式"
name=
"applyPhone"
name=
"applyPhone"
rules=
{
[{
required
:
true
}]
}
rules=
{
[
{
required
:
true
},
{
pattern
:
/^1
\d
{10}$/
,
message
:
"很输入11位手机号"
,
},
]
}
>
>
<
Input
placeholder=
"请输入手机号"
></
Input
>
<
Input
placeholder=
"请输入手机号"
maxLength=
{
11
}
></
Input
>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
name=
"remark"
>
<
Form
.
Item
name=
"remark"
>
<
Input
.
TextArea
placeholder=
"其它信息"
></
Input
.
TextArea
>
<
Input
.
TextArea
placeholder=
"其它信息"
></
Input
.
TextArea
>
...
...
pages/equipmentLeasing/index.page.tsx
浏览文件 @
39ee7e23
...
@@ -108,7 +108,7 @@ export default function EquipmentLeasing(props: Props) {
...
@@ -108,7 +108,7 @@ export default function EquipmentLeasing(props: Props) {
)
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
setProductList
(
setProductList
(
res
.
result
?.
list
.
map
((
item
)
=>
{
res
.
result
?.
list
?
.
map
((
item
)
=>
{
return
{
element
:
leftDom
(
item
)
};
return
{
element
:
leftDom
(
item
)
};
})
||
[]
})
||
[]
);
);
...
...
pages/forum/components/publishMessage/index.tsx
浏览文件 @
39ee7e23
...
@@ -59,8 +59,7 @@ export default function PublishMessage(props: Props) {
...
@@ -59,8 +59,7 @@ export default function PublishMessage(props: Props) {
setFileList
([...
fileList
,
info
.
file
]);
setFileList
([...
fileList
,
info
.
file
]);
}
}
return
;
return
;
}
}
else
if
(
info
.
file
.
status
===
"done"
)
{
if
(
info
.
file
.
status
===
"done"
)
{
// Get this url from response in real world.
// Get this url from response in real world.
if
(
info
.
file
.
response
.
code
===
"200"
&&
info
.
file
.
response
.
result
)
{
if
(
info
.
file
.
response
.
code
===
"200"
&&
info
.
file
.
response
.
result
)
{
let
fileList1
=
fileList
.
map
((
item
)
=>
{
let
fileList1
=
fileList
.
map
((
item
)
=>
{
...
@@ -78,6 +77,8 @@ export default function PublishMessage(props: Props) {
...
@@ -78,6 +77,8 @@ export default function PublishMessage(props: Props) {
});
});
setFileList
([...
info
.
fileList
]);
setFileList
([...
info
.
fileList
]);
}
}
}
else
{
setFileList
([...
info
.
fileList
]);
}
}
};
};
...
...
pages/home/styled.tsx
浏览文件 @
39ee7e23
...
@@ -6,5 +6,4 @@ export default function Style() {
...
@@ -6,5 +6,4 @@ export default function Style() {
export
const
Box
=
styled
.
div
`
export
const
Box
=
styled
.
div
`
box-sizing: border-box;
box-sizing: border-box;
padding-Bottom: 110px;
`
`
\ No newline at end of file
pages/home/waterfallFlowBody/styled.tsx
浏览文件 @
39ee7e23
...
@@ -195,9 +195,7 @@ export const Box = styled.div`
...
@@ -195,9 +195,7 @@ export const Box = styled.div`
}
}
.right-item-second {
.right-item-second {
border-radius: 6px;
border-radius: 6px;
background-color: #fff;
background: url(
${
xwbg
.
src
}
) no-repeat;
background: url(
${
xwbg
.
src
}
) no-repeat;
background-size: contain;
.title {
.title {
display: flex;
display: flex;
align-items: center;
align-items: center;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论