Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
R
revised-version-h5
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
孟庆瑞
revised-version-h5
Commits
6a5bc4ab
Commit
6a5bc4ab
authored
Sep 12, 2024
by
jiaoyahui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
record文件更改
parent
ae6505ad
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
17 deletions
+51
-17
index.vue
src/views/record/index.vue
+38
-16
index.vue
src/views/strategy/index.vue
+12
-1
index.vue
src/views/strategyversion/index.vue
+1
-0
No files found.
src/views/record/index.vue
View file @
6a5bc4ab
...
@@ -106,18 +106,19 @@
...
@@ -106,18 +106,19 @@
</div>
</div>
<div>
股票代码
</div>
<div>
股票代码
</div>
<div>
股票名称
</div>
<div>
股票名称
</div>
<div>
盈亏金额
</div>
<div>
盈亏比例
</div>
<div>
盈亏比例
</div>
<div>
持仓天数
</div>
<div>
持仓天数
</div>
</div>
</div>
<div>
<div>
<ul
class=
"user_ul"
>
<ul
class=
"user_ul"
>
<li
class=
"name"
v-for=
"(item, index) in pageStockPro"
:key=
"index"
>
<li
class=
"name"
v-for=
"(item, index) in pageStockPro"
:key=
"index"
>
<div
class=
"se_data"
>
{{
item
.
buyingTime
}}
</div>
<div
class=
"se_data"
>
{{
handleDateTime
(
item
.
buyingTime
)
}}
</div>
<div
class=
"se_data"
>
{{
item
.
sellingTime
}}
</div>
<div
class=
"se_data"
>
{{
handleDateTime
(
item
.
sellingTime
)
}}
</div>
<div
class=
"se_data"
>
{{
item
.
code
}}
</div>
<div
class=
"se_data"
>
{{
item
.
code
}}
</div>
<div
class=
"se_data"
>
{{
item
.
name
}}
</div>
<div
class=
"se_data"
>
{{
item
.
name
}}
</div>
<div
class=
"se_data_p"
>
{{
item
.
profitPrice
/
100
}}
%
</div>
<div
class=
"se_data_p"
>
{{
item
.
profitRatio
}}
</div>
<div
class=
"se_data_p"
>
{{
item
.
profitRatio
}}
</div>
<div
class=
"se_data_p"
>
{{
item
.
profitPrice
/
100
}}
%
</div>
<div
class=
"se_data_t"
>
{{
item
.
holdingDays
}}
</div>
<div
class=
"se_data_t"
>
{{
item
.
holdingDays
}}
</div>
</li>
</li>
</ul>
</ul>
...
@@ -169,8 +170,26 @@ export default {
...
@@ -169,8 +170,26 @@ export default {
}
else
{
}
else
{
this
.
get_Pro
();
//已购买
this
.
get_Pro
();
//已购买
}
}
},
},
methods
:
{
methods
:
{
handleDateTime
(
timestamp
)
{
// const timestamp = Date.now();
const
date
=
new
Date
(
timestamp
);
const
year
=
date
.
getFullYear
();
const
month
=
(
date
.
getMonth
()
+
1
).
toString
().
padStart
(
2
,
'0'
);
const
day
=
date
.
getDate
().
toString
().
padStart
(
2
,
'0'
);
const
hours
=
date
.
getHours
().
toString
().
padStart
(
2
,
'0'
);
const
minutes
=
date
.
getMinutes
().
toString
().
padStart
(
2
,
'0'
);
const
seconds
=
date
.
getSeconds
().
toString
().
padStart
(
2
,
'0'
);
return
`
${
year
}
-
${
month
}
-
${
day
}${
hours
}
:
${
minutes
}
:
${
seconds
}
`
;
},
//未购买---------------开始
//未购买---------------开始
get_elected
()
{
get_elected
()
{
let
params
=
{
let
params
=
{
...
@@ -260,6 +279,7 @@ export default {
...
@@ -260,6 +279,7 @@ export default {
this
.
yimai_orderBy
=
orderBy
;
this
.
yimai_orderBy
=
orderBy
;
this
.
get_Pro
();
this
.
get_Pro
();
},
},
//已购买---------------结束
//已购买---------------结束
onClickLeft
()
{
onClickLeft
()
{
...
@@ -285,22 +305,15 @@ export default {
...
@@ -285,22 +305,15 @@ export default {
/* padding-left: 10px; */
/* padding-left: 10px; */
padding-left
:
6px
;
padding-left
:
6px
;
margin-right
:
6px
;
margin-right
:
6px
;
border
:
1px
solid
red
;
/* width: 436px; */
/* width: 436px; */
background
:
rgb
(
241
,
238
,
238
);
background
:
rgb
(
241
,
238
,
238
);
position
:
fixed
;
position
:
fixed
;
top
:
46px
;
top
:
46px
;
left
:
0%
;
left
:
0%
;
/* line-height: 28px; */
/* height: 40px;
}
.scrop{
/* width: 435px; */
overflow-x
:
scroll
;
white-space
:
nowrap
;
border
:
1px
solid
red
;
/* height: 200px; */
}
}
.contain
{
.contain
{
position
:
relative
;
position
:
relative
;
width
:
100%
;
width
:
100%
;
...
@@ -354,7 +367,7 @@ export default {
...
@@ -354,7 +367,7 @@ export default {
border-bottom
:
1px
solid
#d5d8db
;
border-bottom
:
1px
solid
#d5d8db
;
display
:
flex
;
display
:
flex
;
line-height
:
27px
;
line-height
:
27px
;
width
:
165%
;
margin-top
:
7px
;
margin-top
:
7px
;
}
}
.user_ul
{
.user_ul
{
...
@@ -374,7 +387,7 @@ export default {
...
@@ -374,7 +387,7 @@ export default {
margin-left
:
1px
;
margin-left
:
1px
;
}
}
.se_data
{
.se_data
{
width
:
18
%
;
width
:
26
%
;
line-height
:
41px
;
line-height
:
41px
;
text-align
:
center
;
text-align
:
center
;
}
}
...
@@ -401,6 +414,15 @@ export default {
...
@@ -401,6 +414,15 @@ export default {
color
:
white
!important
;
color
:
white
!important
;
}
}
.sent
{
.sent
{
margin-top
:
10px
;
margin-top
:
10px
;
}
::v-deep
.van-nav-bar
[
data-v-341046a4
]
{
position
:
relative
;
z-index
:
1
;
background-color
:
#e03939
;
-webkit-user-select
:
none
;
color
:
white
;
user-select
:
none
;
width
:
165%
;
}
}
</
style
>
</
style
>
src/views/strategy/index.vue
View file @
6a5bc4ab
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
<div>
{{
item
.
name
}}
</div>
<div>
{{
item
.
name
}}
</div>
<div>
{{
item
.
code
}}
</div>
<div>
{{
item
.
code
}}
</div>
</div>
</div>
<div
class=
"odiv"
>
{{
item
.
createdTime
}}
</div>
<div
class=
"odiv"
>
{{
handleDateTime
(
item
.
createdTime
)
}}
</div>
<div
class=
"odiv_p"
>
{{
item
.
cost
}}
</div>
<div
class=
"odiv_p"
>
{{
item
.
cost
}}
</div>
<div
class=
"odiv"
>
{{
item
.
profitLossRatio
}}
</div>
<div
class=
"odiv"
>
{{
item
.
profitLossRatio
}}
</div>
</div>
</div>
...
@@ -239,6 +239,17 @@ export default {
...
@@ -239,6 +239,17 @@ export default {
this
.
getselected
();
this
.
getselected
();
},
},
methods
:
{
methods
:
{
handleDateTime
(
timestamp
)
{
// const timestamp = Date.now();
const
date
=
new
Date
(
timestamp
);
const
year
=
date
.
getFullYear
();
const
month
=
(
date
.
getMonth
()
+
1
).
toString
().
padStart
(
2
,
'0'
);
const
day
=
date
.
getDate
().
toString
().
padStart
(
2
,
'0'
);
const
hours
=
date
.
getHours
().
toString
().
padStart
(
2
,
'0'
);
const
minutes
=
date
.
getMinutes
().
toString
().
padStart
(
2
,
'0'
);
const
seconds
=
date
.
getSeconds
().
toString
().
padStart
(
2
,
'0'
);
return
`
${
year
}
-
${
month
}
-
${
day
}${
hours
}
:
${
minutes
}
:
${
seconds
}
`
;
},
getselected
()
{
getselected
()
{
let
params
=
{
let
params
=
{
productId
:
this
.
detInfo
.
id
,
productId
:
this
.
detInfo
.
id
,
...
...
src/views/strategyversion/index.vue
View file @
6a5bc4ab
...
@@ -354,6 +354,7 @@ export default {
...
@@ -354,6 +354,7 @@ export default {
this
.
server
.
newcrmqueryproduct
(
params
).
then
((
res
)
=>
{
this
.
server
.
newcrmqueryproduct
(
params
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
alert
(
"兑换成功"
);
alert
(
"兑换成功"
);
window
.
location
.
reload
()
}
else
if
(
res
.
data
.
code
==
500
)
{
}
else
if
(
res
.
data
.
code
==
500
)
{
alert
(
"网络错误,请稍后重试"
);
alert
(
"网络错误,请稍后重试"
);
...
...
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