2.4 组件结构调整,调整会员权限判断

This commit is contained in:
尚政杰
2026-02-04 17:43:41 +08:00
parent eeca65538c
commit 995ee7f220
274 changed files with 7191 additions and 2186 deletions

View File

@@ -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>

View File

@@ -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: {