Commit ad695a9b authored by jiaoyahui's avatar jiaoyahui

接口

parent 041df610
......@@ -5,19 +5,24 @@
<img
src="../../assets/left.png"
alt=""
style="width: 3%; height: 5%; "
style="width: 3%; height: 5%"
@click="tab_oimg"
/>
<div class="deta">策略详情</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>
<p></p>
<div>
<span>综合胜率:<span>{{this.detInfo.successPercent}}</span></span>
<span style="margin-left: 41px">平均涨幅:<span>{{this.detInfo.avgIncrease}}</span></span>
<span
>综合胜率:<span>{{ this.detInfo.successPercent }}</span></span
>
<span style="margin-left: 41px"
>平均涨幅:<span>{{ this.detInfo.avgIncrease }}</span></span
>
</div>
<img
:src="this.detInfo.url"
......@@ -36,14 +41,14 @@
<div>涨跌幅</div>
</div>
<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>{{item.name}}</div>
<div>{{item.code}}</div>
<div>{{ item.name }}</div>
<div>{{ item.code }}</div>
</div>
<div class="odiv">{{item.createdTime}}</div>
<div class="odiv_p">{{item.cost}}</div>
<div class="odiv">{{item.profitLossRatio}}</div>
<div class="odiv">{{ item.createdTime }}</div>
<div class="odiv_p">{{ item.cost }}</div>
<div class="odiv">{{ item.profitLossRatio }}</div>
</div>
<div class="user_con" v-if="detInfo.isBuy == 2">
......@@ -52,38 +57,36 @@
src="../../assets/sure.png"
style="width:8%; height: 36px
margin-left:38%;"
/>
</div>
<van-button type="danger" @click="tab_a">解锁订阅</van-button>
</div>
</div>
</div>
<div class="usert_n">
<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 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">
<img src="../../assets/jian.png" alt="" class="tab_img">
<div class="name_u">{{item.code}}</div>
<div class="user_t">{{item.winRate}}</div>
<img src="../../assets/jian.png" alt="" class="tab_img" />
<div class="name_u">{{ item.code }}</div>
<div class="user_t">{{ item.winRate }}</div>
<div class="user_se">⼊选最⾼涨幅</div>
</div>
</div>
</div>
<img
src=""
alt=""
style="width: 100%; height: 200px; "
/>
<img src="" alt="" style="width: 100%; height: 200px" />
<div>
<!-- 弹出层 -->
<van-popup v-model="show" position="bottom" :style="{ height: '70%' }">
......@@ -103,11 +106,7 @@
style="font-size: 0.3rem; height: 3rem; width: 90%; margin: 0 auto"
>
<van-radio-group @change="clickBox" v-model="radio2">
<div
class="checkBox"
v-for="(i, index) in checkList"
:key="index"
>
<div class="checkBox" v-for="(i, index) in checkList" :key="index">
<van-radio
:name="index"
icon-size="12px"
......@@ -201,90 +200,79 @@ export default {
const onCdivckLeft = () => history.back();
return {
onCdivckLeft,
productName:'',
productName: "",
};
},
data() {
return {
detInfo : {},//'订单详情',
pcSmartStockInfoVOList:[],
detInfo:'',
pageNo:1,
pageSize:10,
codeName:[],
detInfo:{},
show:false,
detInfo: {}, //'订单详情',
pcSmartStockInfoVOList: [],
detInfo: "",
pageNo: 1,
pageSize: 10,
codeName: [],
detInfo: {},
show: false,
tableName: "总收益",
radio2: "1",
crmIntegral:'',
checkList:[],
crmIntegral: "",
checkList: [],
ifexchange: true,
po_show: false,
is_showlive: false,
isshowButton: true,
showButton: false,
scrollThreshold: 100, // 滚动阈值
monthNum : "",
useIntegrationTotal:"",
productTypeCode:''
monthNum: "",
useIntegrationTotal: "",
productTypeCode: "",
};
},
created() {
// this.detInfo = JSON.parse(this.$route.query.detInfo) ;
// localStorage.getItem('detInfo',this.detInfo)
this.detInfo = JSON.parse(localStorage.getItem('detInfo'))
this.productType = this.detInfo.productType
console.log(this.productType,'ppp12')
this.detInfo = JSON.parse(localStorage.getItem("detInfo"));
this.productType = this.detInfo.productType;
console.log(this.productType, "ppp12");
},
mounted() {
this.getselected()
this.getselected();
},
methods: {
getselected(){
let params={
productId:this.detInfo.id,
pageNo:this.pageNo,
pageSize:this.pageSize
}
this.server.getselectedToday(params).then(res=>{
if(res.data.code == 200){
getselected() {
let params = {
productId: this.detInfo.id,
pageNo: this.pageNo,
pageSize: this.pageSize,
};
this.server.getselectedToday(params).then((res) => {
if (res.data.code == 200) {
this.codeName = res.data.data.list;
this.pageNum = res.data.data.pageNum;
this.pageSize = res.data.data.pageSize;
this.total = res.data.data.total;
this.totalPage = res.data.data.totalPage;
console.log(this.totalPage,'pppl')
console.log(this.totalPage, "pppl");
}
})
});
},
get_elected(){
localStorage.getItem('detInfo',this.detInfo)
let params={
productId:this.detInfo.id,
pageNo:2,
pageSize:this.pageSize
}
this.server.historicalRecord(params).then(res=>{
if(res.data.code == 200){
get_elected() {
localStorage.getItem("detInfo", this.detInfo);
let params = {
productId: this.detInfo.id,
pageNo: 2,
pageSize: this.pageSize,
};
this.server.historicalRecord(params).then((res) => {
if (res.data.code == 200) {
this.codeName = res.data.data.list;
this.pageNum = res.data.data.pageNum;
this.pageSize = res.data.data.pageSize;
this.total = res.data.data.total;
this.totalPage = res.data.data.totalPage;
console.log(this.totalPage,'pppl')
console.log(this.totalPage, "pppl");
}
})
});
},
tab_oimg: function () {
this.$router.push("../strategyversion");
......@@ -293,34 +281,30 @@ export default {
// const detInfo = localStorage.getItem('detInfo',this.detInfo)
// const get_info = JSON.stringify(de_Info)
localStorage.setItem('detInfo', JSON.stringify(detInfo))
console.log(detInfo,'aaaaaaaaaaaaaa2')
localStorage.setItem("detInfo", JSON.stringify(detInfo));
console.log(detInfo, "aaaaaaaaaaaaaa2");
this.$router.push({
path: '../record',
query: {detInfo :detInfo }
})
path: "../record",
query: { detInfo: detInfo },
});
},
tab_a:function(){
console.log(this.detInfo.productType,'aa')
let params={
productId:this.detInfo.id,
productTypeCode:this.detInfo.productType,
}
this.server.detail(params).then(res=>{
if(res.data.code == 200){
tab_a: function () {
console.log(this.detInfo.productType, "aa");
let params = {
productId: this.detInfo.id,
productTypeCode: this.detInfo.productType,
};
this.server.detail(params).then((res) => {
if (res.data.code == 200) {
this.show = true;
this.checkList = res.data.data.investProductCycles;
this.crmIntegral = res.data.data.crmIntegral;
}else if(res.data.code == 500){
} else if (res.data.code == 500) {
alert("网络错误,请稍后重试");
}else if(res.data.code == 600){
} else if (res.data.code == 600) {
alert(res.data.message);
}
})
});
},
checkScroll() {
const scrollTop = this.$refs.scrollContainer.scrollTop;
......@@ -334,44 +318,39 @@ export default {
this.$refs.scrollContainer.scrollTop = 0;
},
scrollToTop() {
console.log(this.productTypeCode,11111)
console.log(this.productTypeCode, 11111);
this.$refs.scrollContainer.scrollTop != 0;
this.showButton = true;
let params={
clientAppType:"H5",
investProductId:this.detInfo.id,
investProductTypeCode:this.productType, //类型
monthNum:this.monthNum,
useIntegrationTotal : this.useIntegrationTotal
let params = {
clientAppType: "H5",
investProductId: this.detInfo.id,
investProductTypeCode: this.productType, //类型
monthNum: this.monthNum,
useIntegrationTotal: this.useIntegrationTotal,
// useIntegrationTotal : this.crmIntegral
}
this.server.newcrmqueryproduct(params).then(res=>{
if(res.data.code == 200){
alert('兑换成功')
this.$router.push('../strategyversion')
alert(1)
}else if(res.data.code == 500){
};
this.server.newcrmqueryproduct(params).then((res) => {
if (res.data.code == 200) {
alert("兑换成功");
this.$router.push("../strategyversion");
} else if (res.data.code == 500) {
alert("网络错误,请稍后重试");
}else if(res.data.code == 600){
} else if (res.data.code == 600) {
alert(res.data.message);
}
})
});
},
sure() {
this.is_showlive = true;
this.show = false;
this.po_show = true;
},
//选择积分
clickBox(val) {
if (this.crmIntegral >= this.checkList[val].point) {
this.monthNum = this.checkList[val].count
this.useIntegrationTotal = this.checkList[val].point
this.monthNum = this.checkList[val].count;
this.useIntegrationTotal = this.checkList[val].point;
this.ifexchange = true;
} else {
this.ifexchange = false;
......@@ -502,9 +481,8 @@ export default {
.van-button--normal {
padding: 0 15px;
font-size: 14px;
}
.user_con{
.user_con {
text-align: center;
/* display: none; */
}
......@@ -533,12 +511,11 @@ export default {
font-size: 0.3rem;
}
.cont_p {
text-align:center;
text-align: center;
margin-top: 10px;
font-size: 0.3rem;
}
.cont_sent {
margin-top: 5px;
font-size: 0.3rem;
text-align: center;
......@@ -562,7 +539,6 @@ export default {
background-color: #ee0a24;
border: 1px solid #ee0a24;
background: #e03939;
}
.cont {
height: 135px;
......@@ -579,13 +555,13 @@ export default {
margin: 5px;
position: relative;
}
.jian{
.jian {
width: 90px;
position: absolute;
bottom: 16px;
left: 8px;
}
.tab_img{
.tab_img {
width: 90px;
position: absolute;
bottom: 16px;
......@@ -596,7 +572,6 @@ export default {
/* padding-left: 25px; */
padding-top: 14px;
text-align: center;
}
.user_t {
font-size: 0.46rem;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment