Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
web-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
web-ci-test
Commits
dd94b9e5
提交
dd94b9e5
authored
5月 30, 2023
作者:
余乾开
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into feature/chuck
上级
85d17ed1
31da41c1
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
108 行增加
和
70 行删除
+108
-70
request.ts
api/request.ts
+6
-1
index.tsx
components/NavHeader/index.tsx
+1
-1
index.ts
components/NavHeader/publishModal/api/index.ts
+0
-1
index.tsx
components/NavHeader/publishModal/index.tsx
+0
-1
index.tsx
components/loginModal/index.tsx
+7
-6
index.ts
pages/JoinPolicy/api/index.ts
+16
-3
index.page.tsx
pages/JoinPolicy/index.page.tsx
+19
-23
index.ts
pages/projectInfo/components/bids/api/index.ts
+10
-0
index.tsx
pages/projectInfo/components/bids/index.tsx
+16
-4
index.tsx
pages/projectInfo/components/cases/index.tsx
+12
-8
index.module.scss
pages/projectInfo/components/requirements/index.module.scss
+0
-6
index.tsx
pages/projectInfo/components/requirements/index.tsx
+19
-16
index.tsx
theme/index.tsx
+2
-0
没有找到文件。
api/request.ts
浏览文件 @
dd94b9e5
...
...
@@ -83,7 +83,12 @@ export default function request(url: string, method: String = 'get', data?: any,
}
if
(
data
.
code
!==
'200'
)
{
errMsg
(
data
.
message
||
'请求出错'
);
//未登录判断
if
(
data
.
code
===
'5008'
){
errMsg
(
'请先登录'
);
}
else
{
errMsg
(
data
.
message
||
'请求出错'
);
}
}
return
data
;
...
...
components/NavHeader/index.tsx
浏览文件 @
dd94b9e5
...
...
@@ -136,7 +136,7 @@ export default function NavHeader() {
)
:
(
<
Button
type=
"text"
onClick=
{
()
=>
testLogin
(
)
}
onClick=
{
()
=>
setOpenLoginModal
(
true
)
}
style=
{
{
fontWeight
:
"bold"
,
fontSize
:
16
}
}
>
登录
...
...
components/NavHeader/publishModal/api/index.ts
浏览文件 @
dd94b9e5
...
...
@@ -6,7 +6,6 @@ export interface TypeResp {
}
export
interface
PublishParams
{
userAccountId
:
number
;
//账号id
publishPhone
:
number
;
//手机号
publishName
:
string
;
//发布名称
requirementTypeId
:
number
;
//需求类型
...
...
components/NavHeader/publishModal/index.tsx
浏览文件 @
dd94b9e5
...
...
@@ -11,7 +11,6 @@ type Props = {
export
default
function
PublishModal
(
props
:
Props
)
{
const
[
types
,
setTypes
]
=
useState
<
Array
<
TypeResp
>>
([]);
//需求类型
const
[
params
,
setParams
]
=
useState
<
PublishParams
>
({
userAccountId
:
-
1
,
publishName
:
""
,
publishPhone
:
-
1
,
requireDescription
:
""
,
...
...
components/loginModal/index.tsx
浏览文件 @
dd94b9e5
...
...
@@ -62,14 +62,15 @@ export default function LoginModal(props: Props) {
})
.
then
((
res
)
=>
{
if
(
res
.
code
===
"200"
)
{
setUserInfo
({
...
res
.
result
,
id
:
res
.
result
?.
userAccountId
,
});
window
.
messageApi
.
success
(
"登录成功"
);
clearInterval
(
handle
);
setTimeHandle
(
null
);
props
.
onCancel
();
window
.
localStorage
.
setItem
(
"token"
,
res
.
result
.
token
);
api
.
userInfo
().
then
((
res
)
=>
{
setUserInfo
(
res
.
result
||
""
);
window
.
messageApi
.
success
(
"登录成功"
);
props
.
onCancel
();
});
}
});
},
1000
);
...
...
pages/JoinPolicy/api/index.ts
浏览文件 @
dd94b9e5
...
...
@@ -6,11 +6,23 @@ export interface CooperationApplyParams {
remark
?:
string
,
userAccountId
:
number
,
cooperationTagId
:
number
}
}
export
interface
GetTagIdResp
{
id
:
number
,
tagName
:
string
,
tagImg
:
string
,
tagDescription
:
string
,
createTime
:
string
}
export
default
{
//请加盟
cooperationApply
(
params
:
CooperationApplyParams
):
Promise
<
Response
<
string
>>
{
//
申
请加盟
cooperationApply
(
params
:
CooperationApplyParams
):
Promise
<
Response
<
string
>>
{
return
request
(
'/userapp/cooperation/apply'
,
'post'
,
params
)
},
//加盟标签相关内容
getTagById
(
params
:
{
id
:
number
}):
Promise
<
Response
<
GetTagIdResp
>>
{
return
request
(
'/userapp/cooperation/getTagById'
,
'get'
,
params
)
}
}
\ No newline at end of file
pages/JoinPolicy/index.page.tsx
浏览文件 @
dd94b9e5
import
{
Button
,
Col
,
Divider
,
Form
,
Input
,
Row
}
from
"antd"
;
import
{
useRouter
}
from
"next/router"
;
import
{
useEffect
,
useState
}
from
"react"
;
import
LayoutView
from
"~/components/layout"
;
import
api
from
"./api"
;
import
styles
from
"./index.module.scss"
;
export
default
function
JoinPolicy
()
{
const
router
=
useRouter
();
const
[
content
,
setContent
]
=
useState
(
""
);
//福利内容
const
tagId
=
Number
(
router
.
query
.
tagId
);
useEffect
(()
=>
{
if
(
tagId
)
{
api
.
getTagById
({
id
:
tagId
,
})
.
then
((
res
)
=>
{
setContent
(
res
.
result
?.
tagDescription
.
replace
(
"
\
n"
,
"<br/>"
)
||
""
);
});
}
},
[]);
//提交
const
onFinish
=
(
values
:
any
)
=>
{
console
.
log
(
values
);
api
.
cooperationApply
({
...
values
,
userAccountId
:
1
,
cooperationTagId
:
router
.
query
.
tagId
,
cooperationTagId
:
tagId
,
})
.
then
((
res
)
=>
{
console
.
log
(
"提交结果"
,
res
);
if
(
res
.
result
===
"已通过
"
)
{
if
(
res
.
code
===
"200
"
)
{
window
.
messageApi
.
success
(
res
.
result
);
setTimeout
(()
=>
{
router
.
push
(
"/"
);
},
1500
);
}
else
{
window
.
messageApi
.
error
(
res
.
message
);
}
});
};
...
...
@@ -50,24 +62,8 @@ export default function JoinPolicy() {
<
div
className=
{
styles
.
font2
}
style=
{
{
paddingLeft
:
50
,
paddingRight
:
50
}
}
>
1.每月自动获取一张高额度优惠券
<
br
/>
2.流量扶持和店铺曝光度
<
br
/>
3成为科比特指定官方生态合作伙伴
<
br
/>
4.享受不低于1亿制造采购补贴
<
br
/>
5.无人机产业链资源共享
<
br
/>
6.享受价值5亿产业链订单
<
br
/>
7.享受一对一代运营服务
<
br
/>
8.享受无人机生态圈资源
<
br
/>
9.成为科比特指定官方生态
<
br
/>
10.享受无人机生态圈资源合作伙伴
<
br
/>
11.受价值5亿产业链订单
<
br
/>
12.成为科比特指定官方生态合作伙伴
</
div
>
dangerouslySetInnerHTML=
{
{
__html
:
content
}
}
></
div
>
<
Divider
/>
<
div
className=
{
styles
.
font1
}
...
...
pages/projectInfo/components/bids/api/index.ts
浏览文件 @
dd94b9e5
...
...
@@ -27,6 +27,11 @@ export interface Item {
apply
:
0
|
1
;
}
export
interface
ApplyParams
{
tenderInfoId
?:
number
;
//招标详情id
tenderNewsId
?:
number
;
//招标id
}
export
default
{
/**
...
...
@@ -36,5 +41,9 @@ export default {
*/
listNewTenderInfo
(
params
:
ListNewTenderInfoParams
,
options
=
{}):
Promise
<
Response
<
ListNewTenderInfoResp
>>
{
return
request
(
'/release/tender/listNewTenderInfo'
,
'post'
,
params
,
options
);
},
//合作申请提交
apply
(
params
:
ApplyParams
){
return
request
(
'/release/tender/apply'
,
'post'
,
params
);
}
}
\ No newline at end of file
pages/projectInfo/components/bids/index.tsx
浏览文件 @
dd94b9e5
...
...
@@ -57,6 +57,18 @@ export default function Bids(props: Props) {
});
};
const
onApply
=
(
item
:
Item
)
=>
{
api
.
apply
({
tenderNewsId
:
item
.
id
,
})
.
then
((
res
)
=>
{
if
(
res
.
code
===
"200"
)
{
window
.
messageApi
.
success
(
"申请成功"
);
}
});
};
return
(
<
Spin
spinning=
{
loading
}
delay=
{
500
}
>
<
div
className=
{
styles
.
bids
}
style=
{
{
height
:
610
}
}
>
...
...
@@ -64,9 +76,7 @@ export default function Bids(props: Props) {
return
(
<
div
className=
{
styles
.
item
}
key=
{
item
.
id
}
>
<
div
className=
{
styles
.
info
}
>
<
div
className=
{
styles
.
title
}
>
{
item
.
tenderContent
}
</
div
>
<
div
className=
{
styles
.
title
}
>
{
item
.
tenderContent
}
</
div
>
</
div
>
{
item
.
apply
?
(
<
Button
...
...
@@ -80,7 +90,9 @@ export default function Bids(props: Props) {
)
:
(
<
Button
type=
"primary"
className=
{
styles
.
btn
}
>
<
div
className=
{
styles
.
text1
}
>
{
item
.
tenderPrice
}
元
</
div
>
<
div
className=
{
styles
.
text2
}
>
申请合作
</
div
>
<
div
className=
{
styles
.
text2
}
onClick=
{
()
=>
onApply
(
item
)
}
>
申请合作
</
div
>
</
Button
>
)
}
</
div
>
...
...
pages/projectInfo/components/cases/index.tsx
浏览文件 @
dd94b9e5
...
...
@@ -67,15 +67,19 @@ export default function Cases(props: Props) {
return
(
<
div
className=
{
styles
.
item
}
key=
{
item
.
id
}
>
<
div
className=
{
styles
.
info
}
>
<
div
className=
{
styles
.
title
}
>
{
item
.
caseTitle
}
</
div
>
<
div
className=
{
styles
.
title
}
>
<
Button
type=
"link"
style=
{
{
padding
:
"0 0"
}
}
onClick=
{
()
=>
Router
.
push
(
"/projectInfo/caseArticle/"
+
item
.
id
)
}
>
{
item
.
caseTitle
}
</
Button
>
</
div
>
</
div
>
<
Button
type=
"primary"
className=
{
styles
.
btn
}
onClick=
{
()
=>
Router
.
push
(
"/projectInfo/caseArticle/"
+
item
.
id
)
}
>
<
Button
type=
"primary"
className=
{
styles
.
btn
}
>
申请合作
</
Button
>
</
div
>
...
...
pages/projectInfo/components/requirements/index.module.scss
浏览文件 @
dd94b9e5
...
...
@@ -23,9 +23,6 @@
flex
:
auto
;
.title
{
white-space
:
nowrap
;
/* 防止换行 */
overflow
:
hidden
;
/* 隐藏溢出部分 */
text-overflow
:
ellipsis
;
/* 使用省略号代替溢出部分 */
font-size
:
16px
;
font-family
:
MicrosoftYaHeiUI-Bold
,
MicrosoftYaHeiUI
;
font-weight
:
bold
;
...
...
@@ -35,9 +32,6 @@
}
.desc
{
white-space
:
nowrap
;
/* 防止换行 */
overflow
:
hidden
;
/* 隐藏溢出部分 */
text-overflow
:
ellipsis
;
/* 使用省略号代替溢出部分 */
font-size
:
14px
;
font-family
:
MicrosoftYaHei
;
color
:
RGBA
(
135
,
135
,
135
,
0
.4
);
...
...
pages/projectInfo/components/requirements/index.tsx
浏览文件 @
dd94b9e5
...
...
@@ -66,20 +66,20 @@ export default function Requirements(props: Props) {
/**
* 确认解决
* @param e
* @param e
*/
const
confirmSolved
=
(
item
:
Item
)
=>
{
api
.
solveRequire
({
requirementsInfoId
:
item
.
i
d
,
userAccountId
:
userId
}).
then
(
res
=>
{
if
(
res
.
code
===
'200'
)
{
window
.
messageApi
.
success
(
'提交完成'
);
setReload
(
!
reload
);
}
})
const
confirmSolved
=
(
item
:
Item
)
=>
{
api
.
solveRequire
(
{
requirementsInfoId
:
item
.
id
,
userAccountId
:
userI
d
,
})
.
then
((
res
)
=>
{
if
(
res
.
code
===
"200"
)
{
window
.
messageApi
.
success
(
"提交完成"
);
setReload
(
!
reload
);
}
});
};
return
(
...
...
@@ -94,13 +94,14 @@ export default function Requirements(props: Props) {
<
div
className=
{
styles
.
logo
}
></
div
>
<
div
className=
{
styles
.
info
}
>
<
div
className=
{
styles
.
title
}
>
项目需求:
电力巡检需要5名飞手
项目需求:
{
item
.
requireDescription
}
</
div
>
{
/*
<div className={styles.desc}>
具体需求:{item.requireDescription}
</
div
>
</div>
*/
}
</
div
>
{
item
.
userAccountId
===
userId
&&
(
{
item
.
userAccountId
===
userId
?
(
<
Popconfirm
title=
"提示"
description=
"确认该需求已经解决了吗?"
...
...
@@ -117,6 +118,8 @@ export default function Requirements(props: Props) {
已解决
</
Button
>
</
Popconfirm
>
)
:
(
<
div
style=
{
{
width
:
120
,
flexShrink
:
0
}
}
></
div
>
)
}
</
div
>
);
...
...
theme/index.tsx
浏览文件 @
dd94b9e5
...
...
@@ -20,6 +20,8 @@ const withTheme = (node: JSX.Element) => (
theme=
{
{
token
:
{
borderRadius
:
6
,
colorLink
:
"#333"
,
colorLinkHover
:
"#ff552d"
,
},
}
}
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论