Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform-ui
Commits
71d69b01
Commit
71d69b01
authored
May 08, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入股+地图
parent
c7502836
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
9 deletions
+37
-9
companyMap.vue
src/views/baseInfo/companyInfo/companyMap.vue
+6
-2
index.vue
src/views/baseInfo/companyInfo/index.vue
+4
-0
stockCrowd.vue
src/views/baseInfo/stockCrowd/stockCrowd.vue
+26
-6
index.vue
src/views/baseInfo/stockCrowdDetail/index.vue
+1
-1
No files found.
src/views/baseInfo/companyInfo/companyMap.vue
View file @
71d69b01
...
...
@@ -46,7 +46,11 @@
provinceName
(
newValue
,
oldValue
)
{
console
.
log
(
this
.
provinceName
);
if
(
this
.
map
){
this
.
map
.
centerAndZoom
(
this
.
provinceName
,
6
);
if
(
this
.
provinceName
==
"兰州"
){
this
.
map
.
centerAndZoom
(
"兰州"
,
4
);
}
else
{
this
.
map
.
centerAndZoom
(
this
.
provinceName
,
6
);
}
}
},
},
...
...
@@ -83,7 +87,7 @@
const
bounds
=
map
.
getBounds
();
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
const
point
=
{
title
:
list
[
i
].
name
,
title
:
""
,
//list[i].name
point
:
{
lng
:
list
[
i
].
longitude
,
lat
:
list
[
i
].
latitude
...
...
src/views/baseInfo/companyInfo/index.vue
View file @
71d69b01
...
...
@@ -284,6 +284,10 @@
},
getValue
(
e
){
let
that
=
this
;
if
(
!
e
){
//全部
that
.
provinceName
=
"兰州"
;
}
this
.
listQuery
.
addrCity
=
undefined
;
this
.
provinceRegions
.
map
(
function
(
item
){
if
(
item
.
id
==
that
.
listQuery
.
addrProvince
){
...
...
src/views/baseInfo/stockCrowd/stockCrowd.vue
View file @
71d69b01
...
...
@@ -54,7 +54,7 @@
</div>
<div
class=
"ft12"
>
剩余:
{{
item
.
balance
}}
股
</div>
</div>
<div
class=
"ft20"
>
¥
{{
item
.
price
}}
w
/股
</div>
<div
class=
"ft20"
>
¥
{{
item
.
price
}}
万
/股
</div>
</div>
</div>
</div>
...
...
@@ -155,7 +155,7 @@
.
then
(
response
=>
{
let
arr
=
[];
response
.
data
.
map
(
function
(
item
){
item
=
item
/
10000
+
"
w
"
;
item
=
item
/
10000
+
"
万
"
;
arr
.
push
(
item
);
});
that
.
allStockPrice
=
arr
;
...
...
@@ -174,8 +174,14 @@
* @param target
*/
getStartValue
()
{
this
.
listQuery
.
priceEnd
=
this
.
listQuery
.
priceStart
.
substring
(
0
,
this
.
listQuery
.
priceStart
.
length
-
1
)
*
10000
;
this
.
listQuery
.
priceStart
=
this
.
listQuery
.
priceStart
.
substring
(
0
,
this
.
listQuery
.
priceStart
.
length
-
1
)
*
10000
;
this
.
listQuery
.
priceEnd
=
this
.
listQuery
.
priceStart
;
// if(this.listQuery.priceStart){
// this.listQuery.priceEnd = this.listQuery.priceStart.substring(0,this.listQuery.priceStart.length-1)*10000;
// this.listQuery.priceStart = this.listQuery.priceStart.substring(0,this.listQuery.priceStart.length-1)*10000;
// } else {
// this.listQuery.priceEnd = this.listQuery.priceStart;
// }
// if (this.listQuery.priceStart >= this.listQuery.priceEnd) {
// this.listQuery.priceEnd = undefined;
// }
...
...
@@ -195,14 +201,28 @@
this
.
nomore
=
false
;
this
.
loadMore
();
},
/**
* 深拷贝
*/
objDeepCopy
(
source
)
{
var
sourceCopy
=
source
instanceof
Array
?
[]
:
{};
for
(
var
item
in
source
)
{
sourceCopy
[
item
]
=
typeof
source
[
item
]
===
'object'
?
objDeepCopy
(
source
[
item
])
:
source
[
item
];
}
return
sourceCopy
;
},
loadMore
:
function
()
{
let
that
=
this
;
if
(
this
.
nomore
){
return
;
}
this
.
busy
=
true
;
this
.
loading
=
true
;
let
params
=
this
.
listQuery
;
// this.listQuery.priceStart = this.listQuery.priceStart/10000+"w";
let
params
=
this
.
objDeepCopy
(
this
.
listQuery
);
//深拷贝
if
(
this
.
listQuery
.
priceStart
){
params
.
priceStart
=
that
.
listQuery
.
priceStart
.
substring
(
0
,
that
.
listQuery
.
priceStart
.
length
-
1
)
*
10000
;
params
.
priceEnd
=
that
.
listQuery
.
priceStart
.
substring
(
0
,
that
.
listQuery
.
priceStart
.
length
-
1
)
*
10000
;
}
params
.
page
=
this
.
page
++
;
stockSearchPage
(
params
)
.
then
(
res
=>
{
...
...
src/views/baseInfo/stockCrowdDetail/index.vue
View file @
71d69b01
...
...
@@ -12,7 +12,7 @@
<h3>
{{
companyName
}}
</h3>
<div
class=
"pad10 tips"
>
<p>
参与须知:
</p>
<p>
本次提交为意向参与,后续会有专门的工作人员联系您,
联系您,
最终的入股申请参与成功,需要线下确认。
</p>
<p>
本次提交为意向参与,后续会有专门的工作人员联系您,最终的入股申请参与成功,需要线下确认。
</p>
</div>
<el-form
:model=
"form"
:rules=
"rules"
ref=
"form"
label-width=
"100px"
>
<el-input
v-model=
"form.companyId"
hidden
></el-input>
...
...
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