Commit 89659c56 authored by jiaoyahui's avatar jiaoyahui

Merge branch 'master' into jyh_h5

parents 95df47af 3077860f
......@@ -18,9 +18,19 @@ const service = axios.create({
service.interceptors.request.use(config => {
//发请求前做的一些处理,数据转化,配置请求头,设置token,设置loading等,根据需求去添加
config.data = JSON.stringify(config.data); //数据转化,也可以使用qs转换
// config.headers['Authorization'] = "Bearer " + token;
// let token='eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE3MjY2NTY2NjUsInN1YiI6IjQ4MjY2NiIsImlhdCI6MTcyNjA1MTg2NX0.obv2AOw311MIF_Wx9ese0IS4BhE3CY3hEy7NFi17VovEc24hpQw-i8_ZaftK6NKd_AY0Q0bfU62I-wEGGiNx_Q'
let token= localStorage.getItem("getToken")
// Bearer eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE3MjY2NTY2NjUsInN1YiI6IjQ4MjY2NiIsImlhdCI6MTcyNjA1MTg2NX0.obv2AOw311MIF_Wx9ese0IS4BhE3CY3hEy7NFi17VovEc24hpQw-i8_ZaftK6NKd_AY0Q0bfU62I-wEGGiNx_Q
config.headers = {
'Content-Type':'application/json' ,//配置请求头
'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE3MjY2NTY2NjUsInN1YiI6IjQ4MjY2NiIsImlhdCI6MTcyNjA1MTg2NX0.obv2AOw311MIF_Wx9ese0IS4BhE3CY3hEy7NFi17VovEc24hpQw-i8_ZaftK6NKd_AY0Q0bfU62I-wEGGiNx_Q'
'Authorization': 'Bearer'+token
}
//如有需要:注意使用token的时候需要引入cookie方法或者用本地localStorage等方法,推荐js-cookie
//const token = getCookie('名称');//这里取token之前,你肯定需要先拿到token,存一下
......
......@@ -172,10 +172,10 @@
</div>
<!-- 已售罄 -->
<div class="soldOut">
<div class="soltBox" v-if="isBuy==2">
<div class="soltBox" v-if="isBuy==2" >
<!-- <span>已售罄</span> -->
<img style="height: 1rem;
margin-top: 0.2rem;" src="../../assets/sure.png" alt="">
margin-top: 0.2rem;" src="../../assets/sure.png" @click="showPopup()" alt="">
</div>
<div v-if="isBuy==1" class="soldText">
<span>{{formDataThree.count}}</span>
......@@ -240,10 +240,10 @@
<div v-if="formDataTwo.direction==2" class="mai">
<span ></span>
</div>
<div class="contectSold" v-if="isBuy==2" @click="showPopup">
<div class="contectSold" v-if="isBuy==2" >
<!-- <span>已售罄</span> -->
<img style="height: 1rem;
margin-top: 0.2rem;" src="../../assets/sure.png" alt="">
margin-top: 0.2rem;" src="../../assets/sure.png" @click="showPopup()" alt="">
</div>
<div class="contectBox" v-if="isBuy==1">
<span>{{formDataTwo.count}}</span>
......@@ -260,8 +260,8 @@
</div>
</div>
<!-- 弹出层 -->
<van-popup v-model="show" position="bottom" :style="{ height: '70%' }">
<!-- 积分弹出层 -->
<van-popup v-model="showTwo" position="bottom" :style="{ height: '70%' }" get-container="#app">
<div class="popup-title">
<span style="font-size: 0.5rem;
font-weight: bold;">热点精选</span><span style="font-size: 0.4rem;color:gray;margin-left:0.3rem">智能策略</span>
......@@ -278,7 +278,7 @@
">
<van-radio-group @change="clickBox" v-model="radio2">
<div class="checkBox" v-for="(i,index) in checkList">
<van-radio :name="i.id" icon-size="12px" checked-color="#ee0a24">{{i.name}}</van-radio><span class="usePoint">{{i.point}}</span><span class="usePointTwo">积分</span>
<van-radio :name="i.count" icon-size="12px" checked-color="#ee0a24">{{i.countName}}</van-radio><span class="usePoint">{{i.point}}</span><span class="usePointTwo">积分</span>
</div>
<!-- <van-radio name="2" icon-size="12px" checked-color="#ee0a24">单选框 2</van-radio> -->
......@@ -288,13 +288,48 @@
<span style="font-size: 0.4rem;">当前积分</span><span class="usePointThree">{{morePoint}}</span><span class="usePointFour">积分</span>
</div>
<div v-if="ifexchange" class="exchange">
<div v-if="ifexchange" class="exchange" @click="exchangeBtn()">
<span>立即兑换</span>
</div>
<div v-if="!ifexchange" class="exchangeTwo">
<span>立即兑换</span>
</div>
</van-popup>
<!-- 免责声明弹出层 -->
<van-popup v-model="disclaimerShow" position="bottom" :style="{ height: '70%'}" style="border-radius:0.5rem 0.5rem 0 0;">
<div class="popup-title" style="text-align: center; ">
<span style="font-size: 0.5rem;
font-weight: bold;">免责声明</span>
<!-- <span style="font-size: 0.3rem;color:gray;display:block">热点股票强度深度建模后优选好股票</span> -->
</div>
<div class="disclaimerBox" @scroll="handleScroll">
<span>山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外
山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外
山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外
山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外
山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外
山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外
</span>
</div>
<div v-if="!bottomBtnShow" class="disclaimerBottom">
<span>下滑至底部并同意</span>
</div>
<div v-if="bottomBtnShow" @click="agreeBtn()" class="disclaimerBottomTwo">
<span>我已知晓并同意</span>
</div>
<!-- <div class="popup-title" style="margin-bottom:0.5rem">
<span style="font-size: 0.4rem;">产品周期</span>
</div> -->
<!-- <div v-if="ifexchange" class="exchange">
<span>立即兑换</span>
</div>
<div v-if="!ifexchange" class="exchangeTwo">
<span>立即兑换</span>
</div> -->
</van-popup>
</div>
</template>
......@@ -303,7 +338,7 @@
</script>
<script>
import { mapState, mapMutations } from "vuex";
// import { mapState, mapMutations } from "vuex";
import { Dialog,Button,Popup } from 'vant';
import * as echarts from 'echarts';
......@@ -319,18 +354,21 @@ import * as echarts from 'echarts';
// import testApi from "@/api/test";
export default {
computed: {
...mapState("store_modular", ["name"]),
// ...mapState("store_modular", ["name"]),
},
components: {
[Button.name]: Button,
[Dialog.name]: Dialog,
[Popup.name]: Popup,
},
data() {
return {
num: 0,
radio:'1',
radio2:'1',
show:false,
radio2:1,
showTwo:false,
disclaimerShow:false,
bottomBtnShow:false,
isBuy:2,
morePoint:12345,
list: [],
......@@ -370,6 +408,8 @@ export default {
chart: null,
_thisForChart: null,
_thisForWindow: null,
countId:'',
pointNumber:'',
colorItem: {
// "北京": '#ff6161',
// "上海": '#e0815b',
......@@ -407,10 +447,12 @@ export default {
};
},
mounted(){
this.getFollowAccountIndustryPercent()
this.getList()
this.getFollowAccountYieldsRecords()
},
beforeDestroy () {
this.removeEventListenerToSidebarContainer()
......@@ -432,6 +474,13 @@ export default {
this.getAbnomalList()
this.getAcountList()
this.queryFollowAccountPositions()
if(this.checkList.length>0){
if(this.morePoint>=this.checkList[0].point){
this.ifexchange=true
}else{
this.ifexchange=false
}
}
// this.list.forEach((i,index)=>{
// if(i.comments.length<=48){
// i.ifMore=false
......@@ -745,7 +794,9 @@ this.formDataTwo.remark= Math.round(a * 100) / 100
clickBox(val){
console.log("这是啥啊",val)
this.checkList.forEach((i,index)=>{
if(val==i.id){
if(val==i.count){
this.countId=i.count
this.pointNumber=i.point
console.log("我的积分",this.morePoint>=i.point)
if(this.morePoint>=i.point){
this.ifexchange=true
......@@ -757,9 +808,69 @@ this.formDataTwo.remark= Math.round(a * 100) / 100
},
tab_oimg: function () {
this.$router.push("../actualCombat");
},
//免责声明弹窗
exchangeBtn(){
this.disclaimerShow=true
this.showTwo=false
},
//下滑
handleScroll(event){
const { scrollTop, clientHeight, scrollHeight } = event.target;
// console.log("这是下滑",scrollTop)
if (scrollTop + clientHeight >= scrollHeight - 1) {
console.log('已经下滑到底部');
this.bottomBtnShow=true
// 执行到达底部后的操作
}
},
agreeBtn(){
// countId:'',
// pointNumber:'',
let params = {
clientAppType: "H5",
investProductId: this.productExchangeId,
investProductTypeCode: 'FollowUp',
monthNum: this.countId,
useIntegrationTotal: this.pointNumber,
// useIntegrationTotal : this.crmIntegral
};
this.server.newcrmqueryproduct(params).then((res) => {
if (res.data.code == 200) {
alert("兑换成功");
this.disclaimerShow=false
} else if (res.data.code == 500) {
alert("网络错误,请稍后重试");
} else if (res.data.code == 600) {
alert(res.data.message);
}
});
},
showPopup(){
this.show=true
this.showTwo=true
this.radio2=1
this.productExchangeId=this.$route.query.id
let temp={
productId:this.$route.query.id,
productTypeCode:'FollowUp'
}
this.server.productDetail(temp).then((res)=>{
// console.log
this.morePoint=res.data.data.crmIntegral
this.checkList=res.data.data.investProductCycles
this.checkList.forEach((i,index)=>{
if(this.radio2==i.count){
this.countId=i.count
this.pointNumber=i.point
console.log("我的积分",this.morePoint>=i.point)
if(this.morePoint>=i.point){
this.ifexchange=true
}else{
this.ifexchange=false
}
}
})
})
},
initPieChart () {
let echartData =this.echartData
......@@ -963,6 +1074,38 @@ Dialog.alert({
background-color: rgb(226, 74, 68);
/* border-radius: 0 0 3rem 3rem; */
}
.disclaimerBox{
width: 90%;
margin: 0 auto;
height: 12rem;
font-size: 0.3rem;
padding: 0.3rem;
overflow-y:scroll ;
/* background-color: aqua; */
}
.disclaimerBottom{
width: 38%;
height: 0.8rem;
margin: 0.5rem auto;
background-color: gray;
color: white;
border-radius: 0.2rem;
text-align: center;
line-height: 0.8rem;
font-size: 0.3rem;
}
.disclaimerBottomTwo{
width: 38%;
height: 0.8rem;
margin: 0.5rem auto;
background-color: rgb(226, 74, 68);
color: white;
border-radius: 0.2rem;
text-align: center;
line-height: 0.8rem;
font-size: 0.3rem;
}
.typeList{
height: 1rem;
width: 100%;
......
......@@ -82,7 +82,7 @@
</div>
</div>
<!-- 弹出层 -->
<!-- 积分弹出层 -->
<van-popup v-model="show" position="bottom" :style="{ height: '70%' }">
<div class="popup-title">
<span style="font-size: 0.5rem;
......@@ -110,13 +110,48 @@
<span style="font-size: 0.4rem;">当前积分</span><span class="usePointThree">{{morePoint}}</span><span class="usePointFour">积分</span>
</div>
<div v-if="ifexchange" class="exchange">
<div v-if="ifexchange" class="exchange" @click="exchangeBtn()">
<span>立即兑换</span>
</div>
<div v-if="!ifexchange" class="exchangeTwo">
<span>立即兑换</span>
</div>
</van-popup>
<!-- 免责声明弹出层 -->
<van-popup v-model="disclaimerShow" position="bottom" :style="{ height: '70%'}" style="border-radius:0.5rem 0.5rem 0 0;">
<div class="popup-title" style="text-align: center; ">
<span style="font-size: 0.5rem;
font-weight: bold;">免责声明</span>
<!-- <span style="font-size: 0.3rem;color:gray;display:block">热点股票强度深度建模后优选好股票</span> -->
</div>
<div class="disclaimerBox" @scroll="handleScroll">
<span>山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外
山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外
山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外
山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外
山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外
山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外山豆根山豆根豆腐干的山豆根士大夫和法国莫塞福农速递公司公司按时到喷射发动机扫i爱上佛i三个房间哦四个爱上放大毛粉沫i额外
</span>
</div>
<div v-if="!bottomBtnShow" class="disclaimerBottom">
<span>下滑至底部并同意</span>
</div>
<div v-if="bottomBtnShow" @click="agreeBtn()" class="disclaimerBottomTwo">
<span>我已知晓并同意</span>
</div>
<!-- <div class="popup-title" style="margin-bottom:0.5rem">
<span style="font-size: 0.4rem;">产品周期</span>
</div> -->
<!-- <div v-if="ifexchange" class="exchange">
<span>立即兑换</span>
</div>
<div v-if="!ifexchange" class="exchangeTwo">
<span>立即兑换</span>
</div> -->
</van-popup>
<!-- <div style="font-size:18px">{{ name }}</div>
<div>
<van-button type="primary" @click="operation('点赞关注')"
......@@ -152,7 +187,9 @@ export default {
list: [],
tabIndex:'yields',
ifexchange:true,
bottomBtnShow:false,
show:false,
disclaimerShow:false,
isBuyFirst:2,
isBuyTwo:2,
isBuyThree:2,
......@@ -164,7 +201,8 @@ export default {
productNameThree:'',
profitIdFirst:'',
profitIdTwo:'',
countId:'',
pointNumber:'',
profitIdThree:'',
tableName:'总收益',
radio2:1,
......@@ -196,13 +234,20 @@ export default {
};
},
mounted(){
if(this.$route.query.token){
localStorage.setItem("getToken",this.$route.query.token)
}
this.clickTab('yields','总收益')
if(this.checkList.length>0){
if(this.morePoint>=this.checkList[0].point){
this.ifexchange=true
}else{
this.ifexchange=false
}
}
},
methods: {
......@@ -227,7 +272,8 @@ this.clickTab('yields','总收益')
},
showPopup(id){
this.show=true
// this.productExchangeId=id
this.radio2=1
this.productExchangeId=id
let temp={
productId:id,
productTypeCode:'FollowUp'
......@@ -236,7 +282,57 @@ this.clickTab('yields','总收益')
// console.log
this.morePoint=res.data.data.crmIntegral
this.checkList=res.data.data.investProductCycles
this.checkList.forEach((i,index)=>{
if(this.radio2==i.count){
this.countId=i.count
this.pointNumber=i.point
console.log("我的积分",this.morePoint>=i.point)
if(this.morePoint>=i.point){
this.ifexchange=true
}else{
this.ifexchange=false
}
}
})
})
},
//同意按钮
agreeBtn(){
// countId:'',
// pointNumber:'',
let params = {
clientAppType: "H5",
investProductId: this.productExchangeId,
investProductTypeCode: 'FollowUp',
monthNum: this.countId,
useIntegrationTotal: this.pointNumber,
// useIntegrationTotal : this.crmIntegral
};
this.server.newcrmqueryproduct(params).then((res) => {
if (res.data.code == 200) {
alert("兑换成功");
this.disclaimerShow=false
} else if (res.data.code == 500) {
alert("网络错误,请稍后重试");
} else if (res.data.code == 600) {
alert(res.data.message);
}
});
},
//免责声明弹窗
exchangeBtn(){
this.disclaimerShow=true
this.show=false
},
//下滑
handleScroll(event){
const { scrollTop, clientHeight, scrollHeight } = event.target;
// console.log("这是下滑",scrollTop)
if (scrollTop + clientHeight >= scrollHeight - 1) {
console.log('已经下滑到底部');
this.bottomBtnShow=true
// 执行到达底部后的操作
}
},
//跳转到详情页
jumpDetail(id){
......@@ -348,7 +444,9 @@ this.clickTab('yields','总收益')
clickBox(val){
console.log("这是啥啊",val)
this.checkList.forEach((i,index)=>{
if(val==i.id){
if(val==i.count){
this.countId=i.count
this.pointNumber=i.point
console.log("我的积分",this.morePoint>=i.point)
if(this.morePoint>=i.point){
this.ifexchange=true
......@@ -551,6 +649,38 @@ this.clickTab('yields','总收益')
width: 90%;
margin: 0 auto;
}
.disclaimerBox{
width: 90%;
margin: 0 auto;
height: 12rem;
font-size: 0.3rem;
padding: 0.3rem;
overflow-y:scroll ;
background-color: aqua;
}
.disclaimerBottom{
width: 38%;
height: 0.8rem;
margin: 0.5rem auto;
background-color: gray;
color: white;
border-radius: 0.2rem;
text-align: center;
line-height: 0.8rem;
font-size: 0.3rem;
}
.disclaimerBottomTwo{
width: 38%;
height: 0.8rem;
margin: 0.5rem auto;
background-color: rgb(226, 74, 68);
color: white;
border-radius: 0.2rem;
text-align: center;
line-height: 0.8rem;
font-size: 0.3rem;
}
.checkBox{
width: 100%;
height: 0.8rem;
......
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