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
ad695a9b
Commit
ad695a9b
authored
Sep 12, 2024
by
jiaoyahui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口
parent
041df610
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
300 additions
and
325 deletions
+300
-325
index.vue
src/views/strategy/index.vue
+300
-325
No files found.
src/views/strategy/index.vue
View file @
ad695a9b
...
@@ -5,19 +5,24 @@
...
@@ -5,19 +5,24 @@
<img
<img
src=
"../../assets/left.png"
src=
"../../assets/left.png"
alt=
""
alt=
""
style=
"width: 3%; height: 5%
;
"
style=
"width: 3%; height: 5%"
@
click=
"tab_oimg"
@
click=
"tab_oimg"
/>
/>
<div
class=
"deta"
>
策略详情
</div>
<div
class=
"deta"
>
策略详情
</div>
</div>
</div>
<span>
{{
this
.
detInfo
.
productName
}}
</span>
<span>
{{
this
.
detInfo
.
numberSubscriptions
}}
⼈订阅
</span>
<span>
{{
this
.
detInfo
.
productName
}}
</span>
<span>
{{
this
.
detInfo
.
numberSubscriptions
}}
⼈订阅
</span>
<p
class=
"tab_user"
>
<p
class=
"tab_user"
>
对热点股票强度深度建模,优选热点持续且潜⼒,持久的成⻓性股票
对热点股票强度深度建模,优选热点持续且潜⼒,持久的成⻓性股票
</p>
</p>
<p></p>
<p></p>
<div>
<div>
<span>
综合胜率:
<span>
{{
this
.
detInfo
.
successPercent
}}
</span></span>
<span
<span
style=
"margin-left: 41px"
>
平均涨幅:
<span>
{{
this
.
detInfo
.
avgIncrease
}}
</span></span>
>
综合胜率:
<span>
{{
this
.
detInfo
.
successPercent
}}
</span></span
>
<span
style=
"margin-left: 41px"
>
平均涨幅:
<span>
{{
this
.
detInfo
.
avgIncrease
}}
</span></span
>
</div>
</div>
<img
<img
:src=
"this.detInfo.url"
:src=
"this.detInfo.url"
...
@@ -36,14 +41,14 @@
...
@@ -36,14 +41,14 @@
<div>
涨跌幅
</div>
<div>
涨跌幅
</div>
</div>
</div>
<div
class=
"p_alog"
>
<div
class=
"p_alog"
>
<div
class=
"oul"
v-for=
"(item,index) in codeName"
:key=
"index"
>
<div
class=
"oul"
v-for=
"(item,
index) in codeName"
:key=
"index"
>
<div
class=
"odiv"
>
<div
class=
"odiv"
>
<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"
>
{{
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>
<div
class=
"user_con"
v-if=
"detInfo.isBuy == 2"
>
<div
class=
"user_con"
v-if=
"detInfo.isBuy == 2"
>
...
@@ -52,38 +57,36 @@
...
@@ -52,38 +57,36 @@
src=
"../../assets/sure.png"
src=
"../../assets/sure.png"
style=
"width:8%; height: 36px
style=
"width:8%; height: 36px
margin-left:38%;"
margin-left:38%;"
/>
/>
</div>
</div>
<van-button
type=
"danger"
@
click=
"tab_a"
>
解锁订阅
</van-button>
<van-button
type=
"danger"
@
click=
"tab_a"
>
解锁订阅
</van-button>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"usert_n"
>
<div
class=
"usert_n"
>
<span
@
click=
"whole(detInfo)"
>
全部战绩
</span>
<span
@
click=
"whole(detInfo)"
>
全部战绩
</span>
<img
src=
"../../assets/back.png"
alt=
""
style=
"width: 6px;margin-left: 12px;"
/>
<img
src=
"../../assets/back.png"
alt=
""
style=
"width: 6px; margin-left: 12px"
/>
</div>
</div>
<div
class=
"alogn"
>
<div
class=
"alogn"
>
<div
class=
"cont"
v-for=
"(item,index) in this.detInfo.pcSmartStockInfoVOList"
:key=
"index"
>
<div
class=
"cont"
v-for=
"(item, index) in this.detInfo.pcSmartStockInfoVOList"
:key=
"index"
>
<div
class=
"tab_p"
>
<div
class=
"tab_p"
>
<img
src=
"../../assets/jian.png"
alt=
""
class=
"tab_img"
>
<img
src=
"../../assets/jian.png"
alt=
""
class=
"tab_img"
/
>
<div
class=
"name_u"
>
{{
item
.
code
}}
</div>
<div
class=
"name_u"
>
{{
item
.
code
}}
</div>
<div
class=
"user_t"
>
{{
item
.
winRate
}}
</div>
<div
class=
"user_t"
>
{{
item
.
winRate
}}
</div>
<div
class=
"user_se"
>
⼊选最⾼涨幅
</div>
<div
class=
"user_se"
>
⼊选最⾼涨幅
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<img
<img
src=
""
alt=
""
style=
"width: 100%; height: 200px"
/>
src=
""
alt=
""
style=
"width: 100%; height: 200px; "
/>
<div>
<div>
<!-- 弹出层 -->
<!-- 弹出层 -->
<van-popup
v-model=
"show"
position=
"bottom"
:style=
"
{ height: '70%' }">
<van-popup
v-model=
"show"
position=
"bottom"
:style=
"
{ height: '70%' }">
...
@@ -103,11 +106,7 @@
...
@@ -103,11 +106,7 @@
style=
"font-size: 0.3rem; height: 3rem; width: 90%; margin: 0 auto"
style=
"font-size: 0.3rem; height: 3rem; width: 90%; margin: 0 auto"
>
>
<van-radio-group
@
change=
"clickBox"
v-model=
"radio2"
>
<van-radio-group
@
change=
"clickBox"
v-model=
"radio2"
>
<div
<div
class=
"checkBox"
v-for=
"(i, index) in checkList"
:key=
"index"
>
class=
"checkBox"
v-for=
"(i, index) in checkList"
:key=
"index"
>
<van-radio
<van-radio
:name=
"index"
:name=
"index"
icon-size=
"12px"
icon-size=
"12px"
...
@@ -201,90 +200,79 @@ export default {
...
@@ -201,90 +200,79 @@ export default {
const
onCdivckLeft
=
()
=>
history
.
back
();
const
onCdivckLeft
=
()
=>
history
.
back
();
return
{
return
{
onCdivckLeft
,
onCdivckLeft
,
productName
:
''
,
productName
:
""
,
};
};
},
},
data
()
{
data
()
{
return
{
return
{
detInfo
:
{},
//'订单详情',
detInfo
:
{},
//'订单详情',
pcSmartStockInfoVOList
:
[],
pcSmartStockInfoVOList
:
[],
detInfo
:
''
,
detInfo
:
""
,
pageNo
:
1
,
pageNo
:
1
,
pageSize
:
10
,
pageSize
:
10
,
codeName
:
[],
codeName
:
[],
detInfo
:
{},
detInfo
:
{},
show
:
false
,
show
:
false
,
tableName
:
"总收益"
,
tableName
:
"总收益"
,
radio2
:
"1"
,
radio2
:
"1"
,
crmIntegral
:
''
,
crmIntegral
:
""
,
checkList
:[],
checkList
:
[],
ifexchange
:
true
,
ifexchange
:
true
,
po_show
:
false
,
po_show
:
false
,
is_showlive
:
false
,
is_showlive
:
false
,
isshowButton
:
true
,
isshowButton
:
true
,
showButton
:
false
,
showButton
:
false
,
scrollThreshold
:
100
,
// 滚动阈值
scrollThreshold
:
100
,
// 滚动阈值
monthNum
:
""
,
monthNum
:
""
,
useIntegrationTotal
:
""
,
useIntegrationTotal
:
""
,
productTypeCode
:
''
productTypeCode
:
""
,
};
};
},
},
created
()
{
created
()
{
// this.detInfo = JSON.parse(this.$route.query.detInfo) ;
// this.detInfo = JSON.parse(this.$route.query.detInfo) ;
// localStorage.getItem('detInfo',this.detInfo)
// localStorage.getItem('detInfo',this.detInfo)
this
.
detInfo
=
JSON
.
parse
(
localStorage
.
getItem
(
'detInfo'
))
this
.
detInfo
=
JSON
.
parse
(
localStorage
.
getItem
(
"detInfo"
));
this
.
productType
=
this
.
detInfo
.
productType
this
.
productType
=
this
.
detInfo
.
productType
;
console
.
log
(
this
.
productType
,
'ppp12'
)
console
.
log
(
this
.
productType
,
"ppp12"
);
},
},
mounted
()
{
mounted
()
{
this
.
getselected
()
this
.
getselected
()
;
},
},
methods
:
{
methods
:
{
getselected
(){
getselected
()
{
let
params
=
{
let
params
=
{
productId
:
this
.
detInfo
.
id
,
productId
:
this
.
detInfo
.
id
,
pageNo
:
this
.
pageNo
,
pageNo
:
this
.
pageNo
,
pageSize
:
this
.
pageSize
pageSize
:
this
.
pageSize
,
};
}
this
.
server
.
getselectedToday
(
params
).
then
((
res
)
=>
{
this
.
server
.
getselectedToday
(
params
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
){
this
.
codeName
=
res
.
data
.
data
.
list
;
this
.
codeName
=
res
.
data
.
data
.
list
;
this
.
pageNum
=
res
.
data
.
data
.
pageNum
;
this
.
pageNum
=
res
.
data
.
data
.
pageNum
;
this
.
pageSize
=
res
.
data
.
data
.
pageSize
;
this
.
pageSize
=
res
.
data
.
data
.
pageSize
;
this
.
total
=
res
.
data
.
data
.
total
;
this
.
total
=
res
.
data
.
data
.
total
;
this
.
totalPage
=
res
.
data
.
data
.
totalPage
;
this
.
totalPage
=
res
.
data
.
data
.
totalPage
;
console
.
log
(
this
.
totalPage
,
'pppl'
)
console
.
log
(
this
.
totalPage
,
"pppl"
);
}
}
});
})
},
},
get_elected
(){
get_elected
()
{
localStorage
.
getItem
(
'detInfo'
,
this
.
detInfo
)
localStorage
.
getItem
(
"detInfo"
,
this
.
detInfo
);
let
params
=
{
let
params
=
{
productId
:
this
.
detInfo
.
id
,
productId
:
this
.
detInfo
.
id
,
pageNo
:
2
,
pageNo
:
2
,
pageSize
:
this
.
pageSize
pageSize
:
this
.
pageSize
,
};
}
this
.
server
.
historicalRecord
(
params
).
then
((
res
)
=>
{
this
.
server
.
historicalRecord
(
params
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
){
this
.
codeName
=
res
.
data
.
data
.
list
;
this
.
codeName
=
res
.
data
.
data
.
list
;
this
.
pageNum
=
res
.
data
.
data
.
pageNum
;
this
.
pageNum
=
res
.
data
.
data
.
pageNum
;
this
.
pageSize
=
res
.
data
.
data
.
pageSize
;
this
.
pageSize
=
res
.
data
.
data
.
pageSize
;
this
.
total
=
res
.
data
.
data
.
total
;
this
.
total
=
res
.
data
.
data
.
total
;
this
.
totalPage
=
res
.
data
.
data
.
totalPage
;
this
.
totalPage
=
res
.
data
.
data
.
totalPage
;
console
.
log
(
this
.
totalPage
,
'pppl'
)
console
.
log
(
this
.
totalPage
,
"pppl"
);
}
}
});
})
},
},
tab_oimg
:
function
()
{
tab_oimg
:
function
()
{
this
.
$router
.
push
(
"../strategyversion"
);
this
.
$router
.
push
(
"../strategyversion"
);
...
@@ -293,34 +281,30 @@ export default {
...
@@ -293,34 +281,30 @@ export default {
// const detInfo = localStorage.getItem('detInfo',this.detInfo)
// const detInfo = localStorage.getItem('detInfo',this.detInfo)
// const get_info = JSON.stringify(de_Info)
// const get_info = JSON.stringify(de_Info)
localStorage
.
setItem
(
'detInfo'
,
JSON
.
stringify
(
detInfo
))
localStorage
.
setItem
(
"detInfo"
,
JSON
.
stringify
(
detInfo
));
console
.
log
(
detInfo
,
'aaaaaaaaaaaaaa2'
)
console
.
log
(
detInfo
,
"aaaaaaaaaaaaaa2"
);
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'../record'
,
path
:
"../record"
,
query
:
{
detInfo
:
detInfo
}
query
:
{
detInfo
:
detInfo
},
})
});
},
},
tab_a
:
function
(){
tab_a
:
function
()
{
console
.
log
(
this
.
detInfo
.
productType
,
'aa'
)
console
.
log
(
this
.
detInfo
.
productType
,
"aa"
);
let
params
=
{
let
params
=
{
productId
:
this
.
detInfo
.
id
,
productId
:
this
.
detInfo
.
id
,
productTypeCode
:
this
.
detInfo
.
productType
,
productTypeCode
:
this
.
detInfo
.
productType
,
};
}
this
.
server
.
detail
(
params
).
then
((
res
)
=>
{
this
.
server
.
detail
(
params
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
){
this
.
show
=
true
;
this
.
show
=
true
;
this
.
checkList
=
res
.
data
.
data
.
investProductCycles
;
this
.
checkList
=
res
.
data
.
data
.
investProductCycles
;
this
.
crmIntegral
=
res
.
data
.
data
.
crmIntegral
;
this
.
crmIntegral
=
res
.
data
.
data
.
crmIntegral
;
}
else
if
(
res
.
data
.
code
==
500
)
{
}
else
if
(
res
.
data
.
code
==
500
)
{
alert
(
"网络错误,请稍后重试"
);
alert
(
"网络错误,请稍后重试"
);
}
else
if
(
res
.
data
.
code
==
600
)
{
}
else
if
(
res
.
data
.
code
==
600
)
{
alert
(
res
.
data
.
message
);
alert
(
res
.
data
.
message
);
}
}
});
})
},
},
checkScroll
()
{
checkScroll
()
{
const
scrollTop
=
this
.
$refs
.
scrollContainer
.
scrollTop
;
const
scrollTop
=
this
.
$refs
.
scrollContainer
.
scrollTop
;
...
@@ -334,44 +318,39 @@ export default {
...
@@ -334,44 +318,39 @@ export default {
this
.
$refs
.
scrollContainer
.
scrollTop
=
0
;
this
.
$refs
.
scrollContainer
.
scrollTop
=
0
;
},
},
scrollToTop
()
{
scrollToTop
()
{
console
.
log
(
this
.
productTypeCode
,
11111
)
console
.
log
(
this
.
productTypeCode
,
11111
);
this
.
$refs
.
scrollContainer
.
scrollTop
!=
0
;
this
.
$refs
.
scrollContainer
.
scrollTop
!=
0
;
this
.
showButton
=
true
;
this
.
showButton
=
true
;
let
params
=
{
let
params
=
{
clientAppType
:
"H5"
,
clientAppType
:
"H5"
,
investProductId
:
this
.
detInfo
.
id
,
investProductId
:
this
.
detInfo
.
id
,
investProductTypeCode
:
this
.
productType
,
//类型
investProductTypeCode
:
this
.
productType
,
//类型
monthNum
:
this
.
monthNum
,
monthNum
:
this
.
monthNum
,
useIntegrationTotal
:
this
.
useIntegrationTotal
useIntegrationTotal
:
this
.
useIntegrationTotal
,
// useIntegrationTotal : this.crmIntegral
// useIntegrationTotal : this.crmIntegral
};
}
this
.
server
.
newcrmqueryproduct
(
params
).
then
((
res
)
=>
{
this
.
server
.
newcrmqueryproduct
(
params
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
){
alert
(
"兑换成功"
);
alert
(
'兑换成功'
)
this
.
$router
.
push
(
"../strategyversion"
);
this
.
$router
.
push
(
'../strategyversion'
)
}
else
if
(
res
.
data
.
code
==
500
)
{
alert
(
1
)
}
else
if
(
res
.
data
.
code
==
500
){
alert
(
"网络错误,请稍后重试"
);
alert
(
"网络错误,请稍后重试"
);
}
else
if
(
res
.
data
.
code
==
600
)
{
}
else
if
(
res
.
data
.
code
==
600
)
{
alert
(
res
.
data
.
message
);
alert
(
res
.
data
.
message
);
}
}
});
})
},
},
sure
()
{
sure
()
{
this
.
is_showlive
=
true
;
this
.
is_showlive
=
true
;
this
.
show
=
false
;
this
.
show
=
false
;
this
.
po_show
=
true
;
this
.
po_show
=
true
;
},
},
//选择积分
//选择积分
clickBox
(
val
)
{
clickBox
(
val
)
{
if
(
this
.
crmIntegral
>=
this
.
checkList
[
val
].
point
)
{
if
(
this
.
crmIntegral
>=
this
.
checkList
[
val
].
point
)
{
this
.
monthNum
=
this
.
checkList
[
val
].
count
this
.
monthNum
=
this
.
checkList
[
val
].
count
;
this
.
useIntegrationTotal
=
this
.
checkList
[
val
].
point
this
.
useIntegrationTotal
=
this
.
checkList
[
val
].
point
;
this
.
ifexchange
=
true
;
this
.
ifexchange
=
true
;
}
else
{
}
else
{
this
.
ifexchange
=
false
;
this
.
ifexchange
=
false
;
...
@@ -502,9 +481,8 @@ export default {
...
@@ -502,9 +481,8 @@ export default {
.van-button--normal
{
.van-button--normal
{
padding
:
0
15px
;
padding
:
0
15px
;
font-size
:
14px
;
font-size
:
14px
;
}
}
.user_con
{
.user_con
{
text-align
:
center
;
text-align
:
center
;
/* display: none; */
/* display: none; */
}
}
...
@@ -533,12 +511,11 @@ export default {
...
@@ -533,12 +511,11 @@ export default {
font-size
:
0.3rem
;
font-size
:
0.3rem
;
}
}
.cont_p
{
.cont_p
{
text-align
:
center
;
text-align
:
center
;
margin-top
:
10px
;
margin-top
:
10px
;
font-size
:
0.3rem
;
font-size
:
0.3rem
;
}
}
.cont_sent
{
.cont_sent
{
margin-top
:
5px
;
margin-top
:
5px
;
font-size
:
0.3rem
;
font-size
:
0.3rem
;
text-align
:
center
;
text-align
:
center
;
...
@@ -562,7 +539,6 @@ export default {
...
@@ -562,7 +539,6 @@ export default {
background-color
:
#ee0a24
;
background-color
:
#ee0a24
;
border
:
1px
solid
#ee0a24
;
border
:
1px
solid
#ee0a24
;
background
:
#e03939
;
background
:
#e03939
;
}
}
.cont
{
.cont
{
height
:
135px
;
height
:
135px
;
...
@@ -579,13 +555,13 @@ export default {
...
@@ -579,13 +555,13 @@ export default {
margin
:
5px
;
margin
:
5px
;
position
:
relative
;
position
:
relative
;
}
}
.jian
{
.jian
{
width
:
90px
;
width
:
90px
;
position
:
absolute
;
position
:
absolute
;
bottom
:
16px
;
bottom
:
16px
;
left
:
8px
;
left
:
8px
;
}
}
.tab_img
{
.tab_img
{
width
:
90px
;
width
:
90px
;
position
:
absolute
;
position
:
absolute
;
bottom
:
16px
;
bottom
:
16px
;
...
@@ -596,7 +572,6 @@ export default {
...
@@ -596,7 +572,6 @@ export default {
/* padding-left: 25px; */
/* padding-left: 25px; */
padding-top
:
14px
;
padding-top
:
14px
;
text-align
:
center
;
text-align
:
center
;
}
}
.user_t
{
.user_t
{
font-size
:
0.46rem
;
font-size
:
0.46rem
;
...
...
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