2.4 组件结构调整,调整会员权限判断
This commit is contained in:
@@ -36,14 +36,14 @@
|
||||
<view class="content" @click.stop="clickConceptItem(item.concept)">{{item.description}}</view>
|
||||
<view class="hotStockC flex">
|
||||
<view class="title">热门个股</view>
|
||||
<view class="stockList flex">
|
||||
<view v-if="memberInfo&&memberInfo.is_member&&(memberInfo.subscription_type=='pro'||memberInfo.subscription_type=='max')" class="stockList flex">
|
||||
<view class="stockItem" v-for="(sitem,sindex) in item.stocks.slice(0,3)" :key="sindex">{{sitem.name}}</view>
|
||||
<view class="more" @click.stop="clickStockMore(item)">+{{item.stock_count-3}}更多</view>
|
||||
</view>
|
||||
<!-- <view v-else class="notVipC flex" @click.stop="clickNotVip()">
|
||||
<view v-else class="notVipC flex" @click.stop="clickNotVip()">
|
||||
<image class="icon" src="/static/icon/home/conceptCenter/lock.png" mode="widthFix"></image>
|
||||
<view>需升级Pro会员查看{{item.stock_count}}只个股</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="transactionDateHistoryTimeC flex">
|
||||
<view class="transactionDate flex1">交易时间:{{item.price_info?item.price_info.trade_date:''}}</view>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<view class="list">
|
||||
<view class="item" v-for="(item,index) in stockList" :key="index">
|
||||
<view class="stockInfoC flex" @click="clickExpandOrRetract(index)">
|
||||
<view class="titleCodeC">
|
||||
<view class="titleCodeC" @click.stop="clickStockName(item.code)">
|
||||
<view class="title">{{item.name}}</view>
|
||||
<view class="code">{{item.code}}</view>
|
||||
</view>
|
||||
@@ -21,7 +21,7 @@
|
||||
<view v-else class="chg flex1">-</view>
|
||||
<!-- <view class="industry flex1">食品行业</view> -->
|
||||
<view class="reasonProjectC flex">
|
||||
<view>REASON/项目</view>
|
||||
<view>REASON</view>
|
||||
<image v-if="item.isExpand" class="arrow expand"
|
||||
src="/static/icon/home/conceptCenter/reasonExpand.png" mode="widthFix"></image>
|
||||
<image v-else class="arrow" src="/static/icon/home/conceptCenter/reasonRetract.png"
|
||||
@@ -33,10 +33,10 @@
|
||||
<text class="title">REASON:</text>
|
||||
<text>{{item.reason}}</text>
|
||||
</view>
|
||||
<view class="projectC">
|
||||
<!-- <view class="projectC">
|
||||
<text class="title">项目:</text>
|
||||
<text>已进入芥末味夏威夷果仁/黑金蒜香茉莉翡翠豆两款产品</text>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -364,6 +364,16 @@
|
||||
this.selectDateStr = monthAgoYear + '-' + (monthAgoMonth > 9 ? monthAgoMonth : ('0' + monthAgoMonth)) +
|
||||
'-' + (monthAgoDay > 9 ? monthAgoDay : ('0' + monthAgoDay))
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击股票名称查看个股详情
|
||||
* @param {Object} code
|
||||
*/
|
||||
clickStockName(code)
|
||||
{
|
||||
uni.navigateTo({
|
||||
url:'/pagesStock/stockCenterDetails/stockCenterDetails?code='+code
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 获取概念相关个股数据
|
||||
@@ -380,7 +390,6 @@
|
||||
if (item.code != null) return item.code
|
||||
return ''
|
||||
});
|
||||
console.log(codes);
|
||||
|
||||
conceptOtherDetails(this.conceptId, {
|
||||
days: 1,
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<view v-if="selectCategory==0" class="targetList">
|
||||
<view class="item" v-for="(item,index) in targetList" :key="index" @click="clickStockItem(item.stock_code)">
|
||||
<view class="nameCodePriceC flex">
|
||||
<view class="flex1">
|
||||
<view class="flex1" @click.stop="clickStockName(item.stock_code)">
|
||||
<view class="name">{{item.stock_name}}</view>
|
||||
<view class="code">{{item.stock_code}}</view>
|
||||
</view>
|
||||
@@ -56,7 +56,7 @@
|
||||
<view class="content">{{item.description}}</view>
|
||||
<view class="hotStockC flex">
|
||||
<view class="title">热门个股</view>
|
||||
<view v-if="memberInfo&&memberInfo.is_member&&memberInfo.subscription_type=='pro'" class="stockList flex">
|
||||
<view v-if="memberInfo&&memberInfo.is_member&&(memberInfo.subscription_type=='pro'||memberInfo.subscription_type=='max')" class="stockList flex">
|
||||
<view class="stockItem" v-for="(sitem,sindex) in item.stocks.slice(0,3)" :key="sindex">{{sitem.name}}</view>
|
||||
<view class="more" @click.stop="clickStockMore(item)">+{{item.stock_count-3}}更多</view>
|
||||
</view>
|
||||
@@ -397,7 +397,9 @@
|
||||
this.getEventCommentListData()
|
||||
}
|
||||
},
|
||||
|
||||
onShow() {
|
||||
this.getMemberStatusData()
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 复制标题
|
||||
@@ -488,6 +490,20 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击股票名称查看个股详情
|
||||
* @param {Object} code
|
||||
*/
|
||||
clickStockName(code)
|
||||
{
|
||||
if(code.indexOf('.')>-1)
|
||||
{
|
||||
code = code.split('.')[0]
|
||||
}
|
||||
uni.navigateTo({
|
||||
url:'/pagesStock/stockCenterDetails/stockCenterDetails?code='+code
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 点击查看股票详情
|
||||
*/
|
||||
@@ -757,7 +773,28 @@
|
||||
}).catch(error=>{
|
||||
|
||||
})
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 获取会员状态
|
||||
*/
|
||||
getMemberStatusData()
|
||||
{
|
||||
let token = uni.getStorageSync('token')
|
||||
if (!token) {
|
||||
return
|
||||
}
|
||||
membershipStatus().then(res=>{
|
||||
if (res.code==200) {
|
||||
this.memberInfo = res.data
|
||||
} else
|
||||
uni.showToast({
|
||||
title:res.message,
|
||||
icon:'none'
|
||||
})
|
||||
}).catch(error=>{
|
||||
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -106,8 +106,6 @@
|
||||
boundaryGap: false,
|
||||
axisLine: { onZero: false },
|
||||
splitLine: { show: false },
|
||||
min: 'dataMin',
|
||||
max: ''
|
||||
},
|
||||
yAxis: {
|
||||
scale: true,
|
||||
@@ -115,20 +113,6 @@
|
||||
show: true
|
||||
}
|
||||
},
|
||||
dataZoom: [
|
||||
{
|
||||
type: 'inside',
|
||||
start: 50,
|
||||
end: 100
|
||||
},
|
||||
{
|
||||
show: true,
|
||||
type: 'slider',
|
||||
top: '90%',
|
||||
start: 50,
|
||||
end: 100
|
||||
}
|
||||
],
|
||||
series: [
|
||||
{
|
||||
name: '日K',
|
||||
@@ -173,7 +157,8 @@
|
||||
type:'category',
|
||||
scale:true,
|
||||
axisLabel: {
|
||||
customValues:['09:30','10:00','10:30','11:00','11:30','13:00','13:30','14:00','14:30','15:00',]
|
||||
customValues:['09:30','10:00','10:30','11:00','11:30','13:00','13:30','14:00','14:30','15:00'],
|
||||
fontSize:9
|
||||
},
|
||||
},
|
||||
yAxis: {
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
</view>
|
||||
<image class="arrow" src="/static/icon/mine/infoArrow.png" mode="widthFix"></image>
|
||||
</view>
|
||||
|
||||
<view v-if="userInfo" class="numList relative flex">
|
||||
<view class="item flex1 flexColumnCenter" @click="clickNumItem(0)">
|
||||
<view class="num">{{userInfo.statistics.total_comments}}</view>
|
||||
@@ -26,8 +25,10 @@
|
||||
<view class="title">我的点赞</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="memberInfo&&!memberInfo.is_member" class="vipC relative" @click="clickVip()">
|
||||
<view class="vipC relative" @click="clickVip()">
|
||||
<image class="icon" src="/static/image/mine/vipBg.png" mode="widthFix"></image>
|
||||
<view v-if="memberInfo&&memberInfo.is_member" class="absolute tips">{{memberInfo.subscription_type}}会员,有效期至{{memberInfo.member_expire_date}}</view>
|
||||
<view v-else class="absolute tips">成为会员,可以获取更多价值资讯</view>
|
||||
</view>
|
||||
<view class="menuList relative">
|
||||
<view class="list">
|
||||
@@ -291,6 +292,16 @@ page
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
.tips
|
||||
{
|
||||
top: 0;
|
||||
left: 80rpx;
|
||||
font-size: 24rpx;
|
||||
font-weight: 500;
|
||||
line-height: 90rpx;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
}
|
||||
.menuList
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user