Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
shuchengMiniPro
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cfld-frontend
shuchengMiniPro
Commits
ac5ba8cb
Commit
ac5ba8cb
authored
Dec 19, 2023
by
王玉鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 咨询列表
parent
53a5a5ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
41 deletions
+43
-41
index.vue
src/pages/investment/index.vue
+10
-3
investment-list.vue
src/pages/investment/investment-list.vue
+33
-38
No files found.
src/pages/investment/index.vue
View file @
ac5ba8cb
...
@@ -98,7 +98,12 @@
...
@@ -98,7 +98,12 @@
></image>
></image>
</div>
</div>
<div>
咨询列表
</div>
<div>
咨询列表
</div>
<u-badge
max=
"99"
:value=
"listCount"
absolute
:offset=
"[0, 0]"
></u-badge>
<u-badge
max=
"99"
:value=
"listCount"
absolute
:offset=
"[0, 0]"
></u-badge>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -124,6 +129,7 @@
...
@@ -124,6 +129,7 @@
:show=
"showPicker"
:show=
"showPicker"
:columns=
"formatedTypeList"
:columns=
"formatedTypeList"
closeOnClickOverlay
closeOnClickOverlay
immediateChange
@
close=
"changeShowPicker(false)"
@
close=
"changeShowPicker(false)"
@
cancel=
"changeShowPicker(false)"
@
cancel=
"changeShowPicker(false)"
@
confirm=
"handlePickerConfirm"
@
confirm=
"handlePickerConfirm"
...
@@ -235,9 +241,9 @@ export default {
...
@@ -235,9 +241,9 @@ export default {
this
.
$fetch
({
this
.
$fetch
({
url
:
API
.
haveAuth
,
url
:
API
.
haveAuth
,
data
:
{},
data
:
{},
methods
:
'get'
,
methods
:
"get"
,
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
this
.
listCount
=
res
.
numb
this
.
listCount
=
res
.
numb
;
this
.
changeShowList
(
res
.
haveInvest
);
this
.
changeShowList
(
res
.
haveInvest
);
});
});
},
},
...
@@ -318,6 +324,7 @@ export default {
...
@@ -318,6 +324,7 @@ export default {
});
});
this
.
initField
();
this
.
initField
();
form
.
clearValidate
();
form
.
clearValidate
();
this
.
initShowList
();
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
this
.
changeLoading
(
false
);
this
.
changeLoading
(
false
);
...
...
src/pages/investment/investment-list.vue
View file @
ac5ba8cb
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"body"
>
<div
class=
"body"
>
<div
class=
"list-item"
v-for=
"item of dataList"
:key=
"item.id"
>
<div
class=
"list-item"
v-for=
"item of dataList"
:key=
"item.id"
>
<div
class=
"title"
>
<div
class=
"title"
>
<div>
{{
getTypeName
(
item
.
consultType
)
}}
</div>
<div
class=
"title-type"
>
{{
getTypeName
(
item
.
consultType
)
}}
</div>
<div
class=
"company"
>
{{
item
.
company
}}
</div>
<div
class=
"company"
>
{{
item
.
company
}}
</div>
</div>
</div>
<div
class=
"info-cell"
>
<div
class=
"info-cell"
>
...
@@ -23,7 +23,9 @@
...
@@ -23,7 +23,9 @@
<div
class=
"desc-cell"
>
<div
class=
"desc-cell"
>
<div
class=
"desc-name"
>
需求描述:
</div>
<div
class=
"desc-name"
>
需求描述:
</div>
<div
class=
"desc-value"
>
<div
class=
"desc-value"
>
{{
item
.
details
||
"--"
}}
<div
class=
"desc"
>
{{
item
.
details
||
"--"
}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -38,36 +40,7 @@ export default {
...
@@ -38,36 +40,7 @@ export default {
name
:
"InvestmentList"
,
name
:
"InvestmentList"
,
data
()
{
data
()
{
return
{
return
{
dataList
:
[
dataList
:
[],
{
company
:
"12312312"
,
consultType
:
"1"
,
createBy
:
""
,
createTime
:
""
,
details
:
"afoijwoifejwofiew"
,
email
:
"18500055742@qq.com"
,
id
:
0
,
name
:
"王一二"
,
phone
:
"199040222--3"
,
updateBy
:
""
,
updateTime
:
"2022-01-04 18:32"
,
version
:
0
,
},
{
company
:
""
,
consultType
:
0
,
createBy
:
""
,
createTime
:
""
,
details
:
""
,
email
:
""
,
id
:
0
,
name
:
""
,
phone
:
""
,
updateBy
:
""
,
updateTime
:
""
,
version
:
0
,
},
],
pageNum
:
1
,
pageNum
:
1
,
haveMore
:
true
,
haveMore
:
true
,
isLoading
:
true
,
isLoading
:
true
,
...
@@ -100,7 +73,7 @@ export default {
...
@@ -100,7 +73,7 @@ export default {
},
},
data
:
{
data
:
{
current
:
this
.
pageNum
,
current
:
this
.
pageNum
,
size
:
20
,
size
:
5
,
condition
:
{},
condition
:
{},
},
},
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
...
@@ -112,8 +85,8 @@ export default {
...
@@ -112,8 +85,8 @@ export default {
},
},
getTypeName
(
type
)
{
getTypeName
(
type
)
{
return
(
return
(
this
.
typeList
.
find
(({
dictValue
})
=>
dictValue
===
type
)?.
dictLabel
||
this
.
typeList
.
find
(({
dictValue
})
=>
Number
(
dictValue
)
===
type
)
""
?.
dictLabel
||
""
);
);
},
},
},
},
...
@@ -148,6 +121,9 @@ export default {
...
@@ -148,6 +121,9 @@ export default {
font-family
:
HiraginoSansGB
,
HiraginoSansGB
;
font-family
:
HiraginoSansGB
,
HiraginoSansGB
;
color
:
#333333
;
color
:
#333333
;
}
}
.title-type
{
font-weight
:
bold
;
}
.company
{
.company
{
margin-left
:
20rpx
;
margin-left
:
20rpx
;
border-radius
:
16rpx
;
border-radius
:
16rpx
;
...
@@ -181,6 +157,7 @@ export default {
...
@@ -181,6 +157,7 @@ export default {
font-size
:
24rpx
;
font-size
:
24rpx
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#606266
;
color
:
#606266
;
word-break
:
break-all
;
}
}
}
}
.desc-cell
{
.desc-cell
{
...
@@ -192,10 +169,28 @@ export default {
...
@@ -192,10 +169,28 @@ export default {
color
:
#333333
;
color
:
#333333
;
}
}
.desc-value
{
.desc-value
{
position
:
relative
;
margin-top
:
30rpx
;
margin-top
:
30rpx
;
font-size
:
24rpx
;
.desc
{
font-weight
:
500
;
font-size
:
24rpx
;
color
:
#606266
;
font-weight
:
500
;
line-height
:
30rpx
;
color
:
#606266
;
word-break
:
break-all
;
text-align
:
justify
;
}
.expand
{
position
:
absolute
;
right
:
0
;
bottom
:
0
;
display
:
flex
;
align-items
:
center
;
z-index
:
10
;
font-size
:
24rpx
;
font-weight
:
500
;
line-height
:
30rpx
;
color
:
#4374ef
;
}
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment