12.17 事件详情相关概念,概念中心增加下拉刷新,分页加载,增加新闻详情展示
@@ -29,12 +29,12 @@ Component({
|
||||
"iconPath": "/static/icon/tabbar/invest.png",
|
||||
"selectedIconPath": "/static/icon/tabbar/invest_s.png"
|
||||
},
|
||||
// {
|
||||
// "pagePath": "/pages/concept/concept",
|
||||
// "text": "概念中心",
|
||||
// "iconPath": "/static/icon/tabbar/concept.png",
|
||||
// "selectedIconPath": "/static/icon/tabbar/concept_s.png"
|
||||
// },
|
||||
{
|
||||
"pagePath": "/pages/concept/concept",
|
||||
"text": "概念中心",
|
||||
"iconPath": "/static/icon/tabbar/concept.png",
|
||||
"selectedIconPath": "/static/icon/tabbar/concept_s.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "/pages/mine/mine",
|
||||
"text": "个人中心",
|
||||
|
||||
18
pages.json
@@ -121,12 +121,6 @@
|
||||
"navigationBarTitleText" : ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/index/conceptNewsDetails/conceptNewsDetails",
|
||||
"style": {
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/concept/historicalTimeline/historicalTimeline",
|
||||
"style": {
|
||||
@@ -138,6 +132,12 @@
|
||||
"style": {
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/concept/conceptNewsDetails/conceptNewsDetails",
|
||||
"style": {
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
}
|
||||
],
|
||||
"subPackages": [
|
||||
@@ -180,6 +180,12 @@
|
||||
"text": "投资",
|
||||
"pagePath": "pages/invest/invest"
|
||||
},
|
||||
{
|
||||
"iconPath": "/static/icon/tabbar/invest.png",
|
||||
"selectedIconPath": "/static/icon/tabbar/invest_s.png",
|
||||
"text": "投资",
|
||||
"pagePath": "pages/concept/concept"
|
||||
},
|
||||
{
|
||||
"iconPath": "/static/icon/tabbar/mine.png",
|
||||
"selectedIconPath": "/static/icon/tabbar/mine_s.png",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view>
|
||||
<navBar leftText="概念中心" :hideNavBg="true"></navBar>
|
||||
<navBar leftText="概念中心" :hideNavBg="true" :hideBack="true"></navBar>
|
||||
<image class="topBg absolute" src="/static/image/index/conceptTopBg.png" mode="widthFix"></image>
|
||||
<view class="topC fixed" :style="'top: '+navH+'px;'">
|
||||
<view class="searchRankC flex">
|
||||
@@ -25,7 +25,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<scroll-view scroll-y direction="vertical" class="conceptList fixed" :style="'top: '+listTop+'px;'">
|
||||
<scroll-view scroll-y direction="vertical" class="conceptList fixed" :style="'top: '+listTop+'px;'" refresher-enabled :refresher-triggered="isRefreshing" @refresherrefresh="pullDownRefresh()" @scrolltolower="loadMoreData()">
|
||||
<view class="list">
|
||||
<view class="item" v-for="(item,index) in conceptList" :key="index">
|
||||
<view class="titleChgStockNumC flex">
|
||||
@@ -36,7 +36,7 @@
|
||||
<view class="content">{{item.description}}</view>
|
||||
<view class="hotStockC flex">
|
||||
<view class="title">热门个股</view>
|
||||
<view v-if="memberInfo.is_member&&memberInfo.subscription_type=='pro'" class="stockList flex">
|
||||
<view v-if="memberInfo&&memberInfo.is_member&&memberInfo.subscription_type=='pro'" class="stockList flex">
|
||||
<view class="stockItem" v-for="(sitem,sindex) in item.stocks.slice(0,3)" :key="sindex">{{sitem.stock_name}}</view>
|
||||
<view class="more" @click.stop="clickStockMore(item)">+{{item.stock_count-3}}更多</view>
|
||||
</view>
|
||||
@@ -329,6 +329,8 @@
|
||||
quickTimeList:['今天','昨天','一周前','一月前'],
|
||||
conceptList:[],
|
||||
page:1,
|
||||
isRefreshing:false, //下拉刷新
|
||||
loadAll:false, //是否加载完毕
|
||||
getRateUpOrDown:getRateUpOrDown,
|
||||
getChgRateStr:getChgRateStr,
|
||||
memberInfo:null, //会员信息
|
||||
@@ -433,6 +435,24 @@
|
||||
}
|
||||
this.monthDateList = monthDateList
|
||||
},
|
||||
/**
|
||||
* 下拉刷新
|
||||
*/
|
||||
pullDownRefresh(){
|
||||
this.isRefreshing = true
|
||||
this.clickSearch()
|
||||
},
|
||||
/**
|
||||
* 上拉加载
|
||||
*/
|
||||
loadMoreData()
|
||||
{
|
||||
if(!this.loadAll)
|
||||
{
|
||||
this.page ++
|
||||
this.getConceptCenterData()
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击搜索
|
||||
*/
|
||||
@@ -765,9 +785,17 @@
|
||||
{
|
||||
let param = {query:this.keywords,size:10,page:this.page,sort_by:this.sortType,isJson:1,trade_date:this.selectDateStr}
|
||||
eventRelatedConcept(param).then(res=>{
|
||||
this.isRefreshing = false
|
||||
if (res.page == 1) {
|
||||
this.conceptList = res.results
|
||||
}else {
|
||||
this.conceptList = this.conceptList.concat(res.results)
|
||||
}
|
||||
if (res.page==res.total_pages) {
|
||||
this.loadAll = true
|
||||
}
|
||||
}).catch(error=>{
|
||||
|
||||
this.isRefreshing = false
|
||||
})
|
||||
},
|
||||
/**
|
||||
@@ -933,7 +961,7 @@ page
|
||||
{
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom:0;
|
||||
bottom: calc(55px + env(safe-area-inset-bottom));
|
||||
.list
|
||||
{
|
||||
padding: 0 25rpx;
|
||||
@@ -951,6 +979,7 @@ page
|
||||
font-size: 30rpx;
|
||||
font-weight: bold;
|
||||
color: #3D3D3D;
|
||||
word-break: break-all;
|
||||
}
|
||||
.chg
|
||||
{
|
||||
@@ -972,6 +1001,7 @@ page
|
||||
}
|
||||
.stockNum
|
||||
{
|
||||
flex-shrink: 0;
|
||||
padding: 0 16rpx;
|
||||
line-height: 36rpx;
|
||||
border-radius: 20rpx;
|
||||
@@ -1214,6 +1244,8 @@ page
|
||||
{
|
||||
margin-top: 22rpx;
|
||||
padding: 0 25rpx;
|
||||
max-height: 500rpx;
|
||||
overflow-y: scroll;
|
||||
.item
|
||||
{
|
||||
margin-bottom: 20rpx;
|
||||
|
||||
79
pages/concept/conceptNewsDetails/conceptNewsDetails.vue
Normal file
@@ -0,0 +1,79 @@
|
||||
<template>
|
||||
<view>
|
||||
<navBar leftText="历史时间轴" :hideNavBg="true"></navBar>
|
||||
<image class="topBg absolute" src="/static/image/index/conceptTopBg.png" mode="widthFix"></image>
|
||||
<view v-if="newsInfo" class="contentC fixed" :style="'top: '+navH+'px;'">
|
||||
<view class="title">{{newsInfo.title}}</view>
|
||||
<view class="labelTimeC ">
|
||||
<text class="time">{{getLocalTime(newsInfo.published_time)}}</text>
|
||||
</view>
|
||||
<view class="content">
|
||||
<ua-markdown :source="newsInfo.detail" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { inject } from 'vue';
|
||||
import { getLocaleTime } from '@/utils/util';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
navH:inject('navHeight'),
|
||||
newsInfo:null,
|
||||
getLocalTime:getLocaleTime
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
this.newsInfo = JSON.parse(decodeURIComponent(e.info))
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
page
|
||||
{
|
||||
background-color: #070707;
|
||||
}
|
||||
.topBg
|
||||
{
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
.contentC
|
||||
{
|
||||
background-color: #FFF9F5;
|
||||
margin: 20rpx 25rpx 0;
|
||||
padding: 28rpx 30rpx;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 100rpx;
|
||||
border-radius: 10rpx;
|
||||
overflow-y: scroll;
|
||||
.title
|
||||
{
|
||||
margin: 0 10rpx;
|
||||
font-size: 30rpx;
|
||||
font-weight: bold;
|
||||
color: #2B2B2B;
|
||||
}
|
||||
.labelTimeC {
|
||||
margin: 0 10rpx;
|
||||
.time
|
||||
{
|
||||
font-size: 24rpx;
|
||||
font-weight: 500;
|
||||
color: #666;
|
||||
}
|
||||
}
|
||||
.content
|
||||
{
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -63,7 +63,7 @@
|
||||
<text class="report" decode> {{reportList.length}} 份研报</text>
|
||||
</view>
|
||||
<view class="list">
|
||||
<view class="item" v-for="(item,index) in newsList" :key="index">
|
||||
<view class="item" v-for="(item,index) in newsList" :key="index" @click="clickNewsItem(item)">
|
||||
<view class="flex">
|
||||
<view class="type news">新闻</view>
|
||||
<view class="title flex1">{{item.title}}</view>
|
||||
@@ -311,6 +311,15 @@
|
||||
this.getReportData()
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击查看新闻详情
|
||||
* @param {Object} item
|
||||
*/
|
||||
clickNewsItem(item) {
|
||||
uni.navigateTo({
|
||||
url:'/pages/concept/conceptNewsDetails/conceptNewsDetails?info='+encodeURIComponent(JSON.stringify(item))
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 获取时间序列数据
|
||||
*/
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
<template>
|
||||
<view>
|
||||
<navBar leftText="历史时间轴" :hideNavBg="true"></navBar>
|
||||
<image class="topBg absolute" src="/static/image/index/conceptTopBg.png" mode="widthFix"></image>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script >
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
page
|
||||
{
|
||||
background-color: #070707;
|
||||
}
|
||||
.topBg
|
||||
{
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
</style>
|
||||
@@ -2,7 +2,7 @@
|
||||
<view>
|
||||
<navBar leftText="事件详情" :hideNavBg="true"></navBar>
|
||||
<image class="topBg absolute" src="/static/image/index/conceptTopBg.png" mode="widthFix"></image>
|
||||
<view v-if="eventDetails" class="eventDetailsC fixed" :style="'top:'+navH+'px;'">
|
||||
<scroll-view v-if="eventDetails" scroll-y class="eventDetailsC fixed" :style="'top:'+navH+'px;'" @scrolltolower="loadMoreData()">
|
||||
<view class="eventIntroC">
|
||||
<view class="categoryTitleC">
|
||||
<view class="category">{{eventDetails.event_type}}</view>
|
||||
@@ -14,7 +14,6 @@
|
||||
【风险提示:解析内容由价值前沿人工采集整理自新闻、公告、研报等公开信息,团队辛苦编写,未经许可严禁转载。本产品内容内容均不构成投资建议,请投资者注意风险,独立审慎决策。】
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<scroll-view scroll-x class="categoryList">
|
||||
<view :class="'item relative '+(selectCategory==index?'select':'')" v-for="(item,index) in categoryList" :key="index" @click="clickCategoryItem(index)">
|
||||
{{item}}
|
||||
@@ -116,7 +115,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view v-if="eventDetails" class="bottomC fixed flex">
|
||||
<view class="inputC flex1">
|
||||
<input type="text" v-model="eventComment" placeholder="我来说两句..." placeholder-style="color:#666" confirm-type="send" @confirm="sendEventComment()"/>
|
||||
@@ -309,6 +308,8 @@
|
||||
categoryList:['相关标的','相关概念','历史事件'],
|
||||
targetList:[], //相关标的
|
||||
conceptList:[], //相关概念
|
||||
page:1,
|
||||
loadAll:false, //是否加载完毕
|
||||
historyEventList:[], //历史事件
|
||||
historyEventRelatedStockList:[], //历史事件相关股票
|
||||
selectCategory:0,
|
||||
@@ -393,6 +394,7 @@
|
||||
this.getEventCommentListData()
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
async init() {
|
||||
// chart 图表实例不能存在data里
|
||||
@@ -437,6 +439,14 @@
|
||||
})
|
||||
}, 300);
|
||||
},
|
||||
loadMoreData() {
|
||||
if (this.selectCategory==1) {
|
||||
if (!this.loadAll) {
|
||||
this.page ++
|
||||
this.getEventRelatedConceptData()
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击切换分类
|
||||
*/
|
||||
@@ -452,6 +462,8 @@
|
||||
}else if(index==1)
|
||||
{
|
||||
//相关概念
|
||||
this.page = 1
|
||||
this.loadAll = false
|
||||
this.getEventRelatedConceptData()
|
||||
}else if(index==2)
|
||||
{
|
||||
@@ -682,16 +694,16 @@
|
||||
getEventRelatedConceptData()
|
||||
{
|
||||
let eventDetails = this.eventDetails
|
||||
let param = {query:eventDetails.event_title,size:10,page:1,sort_by:"_score",isJson:1}
|
||||
let param = {query:eventDetails.event_title,size:10,page:this.page,sort_by:"_score",isJson:1}
|
||||
eventRelatedConcept(param).then(res=>{
|
||||
// if(res.code==200)
|
||||
// {
|
||||
if (res.page == 1) {
|
||||
this.conceptList = res.results
|
||||
// }else
|
||||
// uni.showToast({
|
||||
// title:res.message,
|
||||
// icon:'none'
|
||||
// })
|
||||
}else {
|
||||
this.conceptList = this.conceptList.concat(res.results)
|
||||
}
|
||||
if (res.page==res.total_pages) {
|
||||
this.loadAll = true
|
||||
}
|
||||
}).catch(error=>{
|
||||
|
||||
})
|
||||
@@ -928,6 +940,7 @@ page
|
||||
}
|
||||
.stockNum
|
||||
{
|
||||
flex-shrink: 0;
|
||||
padding: 0 16rpx;
|
||||
line-height: 36rpx;
|
||||
border-radius: 20rpx;
|
||||
@@ -1207,7 +1220,7 @@ page
|
||||
{
|
||||
font-size: 26rpx;
|
||||
font-weight: bold;
|
||||
color: #666;
|
||||
color: #bdbdbd;
|
||||
text-align: center;
|
||||
.icon
|
||||
{
|
||||
|
||||
@@ -103,25 +103,26 @@
|
||||
</block>
|
||||
</view>
|
||||
<block v-if="selectScreenCategory==0">
|
||||
<!-- <view class="quickTimeC flexWrap">
|
||||
<view :class="'item '+(selectQuickTimeIndex==index?'select':'')" v-for="(item,index) in quickTimeList" :key="index" @click="clickQuickTimeItem(index)">
|
||||
{{item}}
|
||||
<view class="quickTimeC flexWrap">
|
||||
<view :class="'item '+(selectQuickTimeIndex==index?'select':'')" v-for="(item,index) in quickTimeList" :key="index" @click="clickQuickTimeItem(index,item)">
|
||||
{{item.title}}
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="dateRangeC flex">
|
||||
<view :class="'dateC start flexCenter flex1 '+(selectDateRangeIndex==0?'select':'')" @click="clickDateRangeItem(0)">
|
||||
<view class="dateC start flexCenter flex1">
|
||||
<image class="icon" src="/static/icon/home/dateRange.png" mode="widthFix"></image>
|
||||
<view v-if="startDateStr">{{startDateStr}}</view>
|
||||
<view v-else>请选择开始时间</view>
|
||||
</view>
|
||||
<view class="line"></view>
|
||||
<view :class="'dateC end flexCenter flex1 '+(selectDateRangeIndex==1?'select':'')" @click="clickDateRangeItem(1)">
|
||||
<view class="dateC end flexCenter flex1">
|
||||
<image class="icon" src="/static/icon/home/dateRange.png" mode="widthFix"></image>
|
||||
<view v-if="endDateStr">{{endDateStr}}</view>
|
||||
<view v-else>请选择结束时间</view>
|
||||
</view>
|
||||
</view>
|
||||
<picker-view class="dateList" indicator-style="height: 43px;" :value="selectDateRangeIndex==0?startDateValue:endDateValue" @change="dateChange">
|
||||
<view class="datePickerC flex">
|
||||
<picker-view class="dateList" indicator-style="height: 43px;" :value="startDateValue" @change="startDateChange">
|
||||
<picker-view-column>
|
||||
<view class="item" v-for="(item,index) in yearList" :key="index">{{item}}年</view>
|
||||
</picker-view-column>
|
||||
@@ -131,97 +132,74 @@
|
||||
<picker-view-column>
|
||||
<view class="item" v-for="(item,index) in dayList" :key="index">{{item}}日</view>
|
||||
</picker-view-column>
|
||||
</picker-view>
|
||||
<picker-view class="dateList" indicator-style="height: 43px;" :value="endDateValue" @change="endDateChange">
|
||||
<picker-view-column>
|
||||
<view class="item" v-for="(item,index) in hourList" :key="index">{{item}}时</view>
|
||||
<view class="item" v-for="(item,index) in yearList" :key="index">{{item}}年</view>
|
||||
</picker-view-column>
|
||||
<picker-view-column>
|
||||
<view class="item" v-for="(item,index) in minuteList" :key="index">{{item}}分</view>
|
||||
<view class="item" v-for="(item,index) in monthList" :key="index">{{item}}月</view>
|
||||
</picker-view-column>
|
||||
<picker-view-column>
|
||||
<view class="item" v-for="(item,index) in dayList" :key="index">{{item}}日</view>
|
||||
</picker-view-column>
|
||||
</picker-view>
|
||||
</view>
|
||||
</block>
|
||||
<block v-if="selectScreenCategory==1">
|
||||
<view class="industryCategoryC flexWrap">
|
||||
<view :class="'item '+(selectIndustryTopCategory==index?'select':'')" v-for="(item,index) in industryCategoryList" :key="index" @click="clickIndustryTopCategoryItem(index)">
|
||||
{{item.classification_name}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="industrySearchC flex">
|
||||
<image class="icon" src="/static/icon/home/search.png" mode="widthFix"></image>
|
||||
<image class="icon" src="/static/icon/home/industrySearch.png" mode="widthFix"></image>
|
||||
<input class="flex1" type="text" v-model="industryKeywords" placeholder="搜索行业" placeholder-style="color:#94989A" @input="industrySearch"/>
|
||||
</view>
|
||||
<view v-if="industryKeywords.length>0" class="searchResultList">
|
||||
<block v-for="(item,index) in searchResultList" :key="index">
|
||||
<block v-for="(sitem,sindex) in item.hierarchy" :key="sindex">
|
||||
<block v-for="(titem,tindex) in sitem.level2_sectors" :key="tindex">
|
||||
<block v-for="(fitem,findex) in titem.level3_sectors" :key="findex">
|
||||
<view class="item" @click="clickIndustrySearchItem(fitem)">
|
||||
<text :class="industryKeywords.indexOf(citem)>-1?'key':''" v-for="(citem,cindex) in (fitem.level3_sector+'/'+titem.level2_sector+'/'+sitem.level1_sector)" :key="cindex">{{citem}}</text>
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
</block>
|
||||
</block>
|
||||
</view>
|
||||
<view v-else class="industryList">
|
||||
<view v-if="selectIndustrySecondCategory>-1" class="selectCategoryList flexWrap">
|
||||
<view v-if="selectIndustrySecondCategory>-1" class="item flex" @click="deleteIndustrySecondCategoryItem()">
|
||||
{{industryCategoryList[selectIndustryTopCategory].hierarchy[selectIndustrySecondCategory].level1_sector}}
|
||||
<view class="deleteC">
|
||||
<image class="icon" src="/static/icon/home/delete.png"></image>
|
||||
<view class="industryCategoryC">
|
||||
<block v-if="industryKeywords.length>0">
|
||||
<view class="topCategoryList">
|
||||
<view :class="'item relative '+(searchIndustryTopCategory==index?'select':'')" v-for="(item,index) in searchResultList" :key="index" @click="clickSearchIndustryTopCategoryItem(index,item)">
|
||||
{{item.level1_sector}}
|
||||
<view class="line absolute"></view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="selectIndustryThirdCategory>-1" class="item flex" @click="deleteIndustryThirdCategoryItem()">
|
||||
{{industryCategoryList[selectIndustryTopCategory].hierarchy[selectIndustrySecondCategory].level2_sectors[selectIndustryThirdCategory].level2_sector}}
|
||||
<view class="deleteC">
|
||||
<image class="icon" src="/static/icon/home/delete.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="selectIndustryForthCategory>-1" class="item flex" @click="deleteIndustryForthCategoryItem()">
|
||||
{{industryCategoryList[selectIndustryTopCategory].hierarchy[selectIndustrySecondCategory].level2_sectors[selectIndustryThirdCategory].level3_sectors[selectIndustryForthCategory].level3_sector}}
|
||||
<view class="deleteC">
|
||||
<image class="icon" src="/static/icon/home/delete.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="list">
|
||||
<view class="topCategory">{{industryCategoryList[selectIndustryTopCategory].classification_name}}</view>
|
||||
<view class="secondList">
|
||||
<view class="secondItem" v-for="(sitem,sindex) in industryCategoryList[selectIndustryTopCategory].hierarchy" :key="sindex">
|
||||
<view :class="'categoryC flex '+(selectIndustrySecondCategory==sindex?'select':'')" @click.stop="clickIndustrySecondCategoryItem(sindex)">
|
||||
<view class="spread">{{(selectIndustrySecondCategory==sindex&&sitem.isSpread)?'-':'+'}}</view>
|
||||
<view class="category">{{sitem.level1_sector}}</view>
|
||||
</view>
|
||||
<block v-if="sitem.isSpread">
|
||||
<view class="thirdList" v-for="(titem,tindex) in industryCategoryList[selectIndustryTopCategory].hierarchy[sindex].level2_sectors" :key="tindex">
|
||||
<view class="thirdItem">
|
||||
<view :class="'categoryC flex '+(selectIndustrySecondCategory==sindex&&selectIndustryThirdCategory==tindex?'select':'')" @click.stop="clickIndustryThirdCategoryItem(sindex,tindex)">
|
||||
<view class="spread">{{(selectIndustrySecondCategory==sindex&&selectIndustryThirdCategory==tindex&&titem.isSpread)?'-':'+'}}</view>
|
||||
<view class="category">{{titem.level2_sector}}</view>
|
||||
</view>
|
||||
<block v-if="titem.isSpread">
|
||||
<view class="forthList" v-for="(fitem,findex) in industryCategoryList[selectIndustryTopCategory].hierarchy[sindex].level2_sectors[tindex].level3_sectors" :key="findex">
|
||||
<view class="forthItem" @click.stop="clickIndustryForthCategoryItem(sindex,tindex,findex)">
|
||||
<view :class="'categoryC flex '+(selectIndustrySecondCategory==sindex&&selectIndustryThirdCategory==tindex&&selectIndustryForthCategory==findex?'select':'')">
|
||||
<view class="category flex1">{{fitem.level3_sector}}</view>
|
||||
<view v-if="selectIndustrySecondCategory==sindex&&selectIndustryThirdCategory==tindex&&selectIndustryForthCategory==findex" class="selectC">
|
||||
<image class="icon" src="/static/icon/home/industry_s.png" mode="widthFix"></image>
|
||||
</view>
|
||||
<view class="secondCategoryList">
|
||||
<view :class="'item relative '+(searchIndustrySecondCategory==index?'select':'')" v-for="(item,index) in searchResultList[searchIndustryTopCategory].level2_sectors" :key="index" @click="clickSearchIndustrySecondCategoryItem(index,item)">
|
||||
{{item.level2_sector}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="thirdCategoryList flex1">
|
||||
<block v-if="searchResultList[searchIndustryTopCategory].level2_sectors.length>0">
|
||||
<view :class="'item flex relative '+(searchIndustryThirdCategory==index?'select':'')" v-for="(item,index) in searchResultList[searchIndustryTopCategory].level2_sectors[searchIndustrySecondCategory].level3_sectors" :key="index" @click="clickSearchIndustryThirdCategoryItem(index,item)">
|
||||
<view class="flex1">{{item.level3_sector}}</view>
|
||||
<image v-if="searchIndustryThirdCategory==index" class="select" src="/static/icon/home/industry_s.png" mode="widthFix"></image>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</block>
|
||||
<block v-else>
|
||||
<view class="topCategoryList">
|
||||
<view :class="'item relative '+(selectIndustryTopCategory==index?'select':'')" v-for="(item,index) in industryCategoryList" :key="index" @click="clickIndustryTopCategoryItem(index)">
|
||||
{{item.level1_sector}}
|
||||
<view class="line absolute"></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="secondCategoryList flex1">
|
||||
<view :class="'item relative '+(selectIndustrySecondCategory==index?'select':'')" v-for="(item,index) in industryCategoryList[selectIndustryTopCategory].level2_sectors" :key="index" @click="clickIndustrySecondCategoryItem(index)">
|
||||
{{item.level2_sector}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="thirdCategoryList flex1">
|
||||
<block v-if="industryCategoryList[selectIndustryTopCategory].level2_sectors.length>0">
|
||||
<view :class="'item flex relative '+(selectIndustryThirdCategory==index?'select':'')" v-for="(item,index) in industryCategoryList[selectIndustryTopCategory].level2_sectors[selectIndustrySecondCategory].level3_sectors" :key="index" @click="clickIndustryThirdCategoryItem(index)">
|
||||
<view class="flex1">{{item.level3_sector}}</view>
|
||||
<image v-if="selectIndustryThirdCategory==index" class="select" src="/static/icon/home/industry_s.png" mode="widthFix"></image>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</block>
|
||||
<view v-if="selectScreenCategory==2" class="importanceList">
|
||||
<view :class="'item flex '+(selectImportanceIndex==index?'select':'')" v-for="(item,index) in importanceList" :key="index" @click="clickImportanceItem(index)">
|
||||
<view :class="'item flex '+(item.select?'select':'')" v-for="(item,index) in importanceList" :key="index" @click="clickImportanceItem(item)">
|
||||
<view class="flex1">{{item.name}}</view>
|
||||
<image v-if="selectImportanceIndex==index" class="icon" src="/static/icon/home/level_s.png" mode="widthFix"></image>
|
||||
<image v-if="item.select" class="icon" src="/static/icon/home/level_s.png" mode="widthFix"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="selectScreenCategory==3" class="sortTypeList">
|
||||
@@ -270,7 +248,6 @@
|
||||
icon:'/static/icon/home/sort.png',
|
||||
title:'最新排序',
|
||||
}],
|
||||
isRefreshing:false,
|
||||
keywords:'', //关键词
|
||||
timeCategoryList:[],
|
||||
selectTimeCategory:0,
|
||||
@@ -282,7 +259,38 @@
|
||||
selectSecondCategory:0,
|
||||
secondScrollLeft:0,
|
||||
selectScreenCategory:0, //0时间筛选1行业筛选2事件等级3最新排序
|
||||
quickTimeList:['最新','盘中','午盘','早盘','今日全天','昨日','近一周','近一月'],
|
||||
quickTimeList:[{
|
||||
title:'最新',
|
||||
key:'latest'
|
||||
},
|
||||
{
|
||||
title:'盘中',
|
||||
key:'intraday'
|
||||
},
|
||||
{
|
||||
title:'早盘',
|
||||
key:'morning'
|
||||
},
|
||||
{
|
||||
title:'午盘',
|
||||
key:'afternoon'
|
||||
},
|
||||
{
|
||||
title:'今日全天',
|
||||
key:'today'
|
||||
},
|
||||
{
|
||||
title:'昨日',
|
||||
key:'yesterday'
|
||||
},
|
||||
{
|
||||
title:'近一周',
|
||||
key:'week'
|
||||
},
|
||||
{
|
||||
title:'近一月',
|
||||
key:'month'
|
||||
}],
|
||||
selectQuickTimeIndex:-1,
|
||||
startDateStr:'', //选择开始日期
|
||||
startTimeStamp:'', //开始日期时间戳
|
||||
@@ -291,20 +299,18 @@
|
||||
yearList:[], //年份列表
|
||||
monthList:[], //月份列表
|
||||
dayList:[], //日列表
|
||||
hourList:[], //时列表
|
||||
minuteList:[], //分列表
|
||||
selectDateRangeIndex:-1, //0开始时间1结束时间
|
||||
startDateValue:[0,0,0,0,0],
|
||||
endDateValue:[0,0,0,0,0],
|
||||
startDateValue:[0,0,0],
|
||||
endDateValue:[0,0,0],
|
||||
industryCategoryList:[], //行业分类数组
|
||||
industryKeywords:'', //行业分类搜索关键词
|
||||
searchResultList:[], //行业分类搜索结果数组
|
||||
selectIndustryTopCategory:0, //选中行业一级分类
|
||||
selectIndustrySecondCategory:-1, //选中行业二级分类
|
||||
selectIndustryThirdCategory:-1, //选中行业三级分类
|
||||
selectIndustryForthCategory:-1, //选中行业四级分类
|
||||
selectIndustrySecondCategory:0, //选中行业二级分类
|
||||
selectIndustryThirdCategory:0, //选中行业三级分类
|
||||
searchIndustryTopCategory:0, //搜索结果选中行业一级分类
|
||||
searchIndustrySecondCategory:0, //搜索结果选中行业二级分类
|
||||
searchIndustryThirdCategory:0, //搜索结果选中行业三级分类
|
||||
importanceList:[], //重要性数组
|
||||
selectImportanceIndex:0, //选择事件等级下标
|
||||
sortTypeList:[],
|
||||
selectSortKey:'', //选中排序key
|
||||
option:{
|
||||
@@ -367,7 +373,8 @@
|
||||
},
|
||||
eventList:[],
|
||||
page:1,
|
||||
loadAll:false,
|
||||
isRefreshing:false, //是否正在下拉刷新
|
||||
loadAll:false, //是否加载完毕
|
||||
getRateStr:getRateStr,
|
||||
getRateUpOrDown:getRateUpOrDown,
|
||||
getLocaleTime:getLocaleTime,
|
||||
@@ -405,8 +412,6 @@
|
||||
let year = currentDate.getFullYear()
|
||||
let month = currentDate.getMonth()
|
||||
let day = currentDate.getDate()
|
||||
let hour = currentDate.getHours()
|
||||
let minute = currentDate.getMinutes()
|
||||
let date = new Date(year,month+1,0)
|
||||
let monthDays = date.getDate()
|
||||
for (var i = 2000; i < 2060; i++) {
|
||||
@@ -418,16 +423,10 @@
|
||||
for (var i = 0; i < monthDays*60; i++) {
|
||||
this.dayList.push((i%monthDays)+1)
|
||||
}
|
||||
for (var i = 0; i < 24*60; i++) {
|
||||
this.hourList.push(i%24)
|
||||
}
|
||||
for (var i = 0; i < 60*60; i++) {
|
||||
this.minuteList.push(i%60)
|
||||
}
|
||||
let that = this
|
||||
setTimeout(function() {
|
||||
that.startDateValue = [year-2000,month+12*30,(day-1)+monthDays*30,hour+24*30,minute+60*30]
|
||||
that.endDateValue = [year-2000,month+12*30,(day-1)+monthDays*30,hour+24*30,minute+60*30]
|
||||
that.startDateValue = [year-2000,month+12*30,(day-1)+monthDays*30]
|
||||
that.endDateValue = [year-2000,month+12*30,(day-1)+monthDays*30]
|
||||
}, 100);
|
||||
|
||||
},
|
||||
@@ -446,7 +445,7 @@
|
||||
if(!this.loadAll)
|
||||
{
|
||||
this.page ++
|
||||
if(this.selectScreenCategory==0)
|
||||
if(this.selectTimeCategory==0)
|
||||
{
|
||||
this.getEventListData()
|
||||
}else
|
||||
@@ -463,6 +462,7 @@
|
||||
*/
|
||||
clickSearch()
|
||||
{
|
||||
this.loadAll = false
|
||||
this.page = 1
|
||||
if(this.selectTimeCategory==0)
|
||||
{
|
||||
@@ -479,13 +479,7 @@
|
||||
if(this.selectTimeCategory!=index)
|
||||
{
|
||||
this.selectTimeCategory = index
|
||||
if(index==0)
|
||||
{
|
||||
//最新
|
||||
this.getEventListData()
|
||||
}else
|
||||
//热门
|
||||
this.getHotEventListData()
|
||||
this.clickSearch()
|
||||
}
|
||||
},
|
||||
/**
|
||||
@@ -495,12 +489,7 @@
|
||||
{
|
||||
this.selectSortKey = item.key
|
||||
this.$refs['screenPopup'].close()
|
||||
if(this.selectTimeCategory==0)
|
||||
{
|
||||
//最新
|
||||
this.getEventListData()
|
||||
}else
|
||||
this.getHotEventListData()
|
||||
this.clickSearch()
|
||||
},
|
||||
/**
|
||||
* 点击筛选
|
||||
@@ -524,6 +513,7 @@
|
||||
{
|
||||
if (this.selectScreenCategory==0) {
|
||||
//如果是时间筛选
|
||||
if (this.selectQuickTimeIndex == -1) {
|
||||
if(!this.startDateStr) {
|
||||
uni.showToast({
|
||||
title:'请选择开始时间',
|
||||
@@ -547,6 +537,7 @@
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
this.clickCancel()
|
||||
this.clickSearch()
|
||||
},
|
||||
@@ -573,17 +564,12 @@
|
||||
this.selectSecondCategory = 0
|
||||
let offsetLeft = event.currentTarget.offsetLeft
|
||||
this.topScrollLeft = offsetLeft - this.topScrollWidth/2
|
||||
if(index==0)
|
||||
{
|
||||
// if(index==0)
|
||||
// {
|
||||
this.listTop = this.contentTop + (22+80+72)/750*this.windowWidth
|
||||
}else
|
||||
this.listTop = this.contentTop + (22+80+72+42+42)/750*this.windowWidth
|
||||
if(this.selectTimeCategory==0)
|
||||
{
|
||||
//最新
|
||||
this.getEventListData()
|
||||
}else
|
||||
this.getHotEventListData()
|
||||
// }else
|
||||
// this.listTop = this.contentTop + (22+80+72+42+42)/750*this.windowWidth
|
||||
this.clickSearch()
|
||||
}
|
||||
},
|
||||
/**
|
||||
@@ -597,12 +583,7 @@
|
||||
this.selectSecondCategory = index
|
||||
let offsetLeft = event.currentTarget.offsetLeft
|
||||
this.secondScrollLeft = offsetLeft - this.secondScrollWidth/2
|
||||
if(this.selectTimeCategory==0)
|
||||
{
|
||||
//最新
|
||||
this.getEventListData()
|
||||
}else
|
||||
this.getHotEventListData()
|
||||
this.clickSearch()
|
||||
}
|
||||
},
|
||||
/**
|
||||
@@ -610,31 +591,20 @@
|
||||
*/
|
||||
clickQuickTimeItem(index)
|
||||
{
|
||||
this.selectDateRangeIndex = -1
|
||||
this.startDateStr = this.endDateStr = ''
|
||||
if(this.selectQuickTimeIndex!=index) {
|
||||
this.selectQuickTimeIndex = index
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击选择开始时间或者结束时间
|
||||
* @param {Object} index
|
||||
*/
|
||||
clickDateRangeItem(index)
|
||||
{
|
||||
this.selectQuickTimeIndex = -1
|
||||
if(this.selectDateRangeIndex!=index) {
|
||||
this.selectDateRangeIndex = index
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 监听日期选择
|
||||
* @param {Object} e
|
||||
*/
|
||||
dateChange(e)
|
||||
startDateChange(e)
|
||||
{
|
||||
this.selectQuickTimeIndex = -1
|
||||
let value = e.detail.value
|
||||
if (this.selectDateRangeIndex==0) {
|
||||
//开始时间
|
||||
if (value[1]!=this.startDateValue[1]) {
|
||||
//如果改变了月份
|
||||
let year = value[0]+2000
|
||||
@@ -652,14 +622,18 @@
|
||||
let date = new Date(year,month,0)
|
||||
let monthDays = date.getDate()
|
||||
let day = value[2]%monthDays + 1
|
||||
let hour = value[3]%24
|
||||
let minute = value[4]%60
|
||||
this.startDateStr = year+'-'+(month>9?month:('0'+month))+'-'+(day>9?day:('0'+day))+' '+(hour>9?hour:('0'+hour))+':'+(minute>9?minute:('0'+minute))
|
||||
var startDateStr = this.startDateStr.replace(/-/g,'/')+':00'
|
||||
this.startDateStr = year+'-'+(month>9?month:('0'+month))+'-'+(day>9?day:('0'+day))
|
||||
var startDateStr = this.startDateStr.replace(/-/g,'/')+' '+'00:00:00'
|
||||
this.startTimeStamp = new Date(startDateStr).getTime()
|
||||
|
||||
} else if (this.selectDateRangeIndex==1) {
|
||||
//结束时间
|
||||
},
|
||||
/**
|
||||
* 监听结束日期选择
|
||||
* @param {Object} e
|
||||
*/
|
||||
endDateChange(e)
|
||||
{
|
||||
this.selectQuickTimeIndex = -1
|
||||
let value = e.detail.value
|
||||
if (value[1]!=this.endDateValue[1]) {
|
||||
//如果改变了月份
|
||||
let year = value[0]+2000
|
||||
@@ -677,11 +651,101 @@
|
||||
let date = new Date(year,month,0)
|
||||
let monthDays = date.getDate()
|
||||
let day = value[2]%monthDays + 1
|
||||
let hour = value[3]%24
|
||||
let minute = value[4]%60
|
||||
this.endDateStr = year+'-'+(month>9?month:('0'+month))+'-'+(day>9?day:('0'+day))+' '+(hour>9?hour:('0'+hour))+':'+(minute>9?minute:('0'+minute))
|
||||
var endDateStr = this.endDateStr.replace(/-/g,'/')+':00'
|
||||
this.endDateStr = year+'-'+(month>9?month:('0'+month))+'-'+(day>9?day:('0'+day))
|
||||
var endDateStr = this.endDateStr.replace(/-/g,'/')+' '+'00:00:00'
|
||||
this.endTimeStamp = new Date(endDateStr).getTime()
|
||||
},
|
||||
/**
|
||||
* 行业分类搜索
|
||||
*/
|
||||
industrySearch(e)
|
||||
{
|
||||
let keywords = e.detail.value
|
||||
this.industryKeywords = keywords
|
||||
if (keywords) {
|
||||
let arr = []
|
||||
for (let item of this.industryCategoryList) {
|
||||
let index = this.industryCategoryList.indexOf(item)
|
||||
if(item.level1_sector.indexOf(keywords)>-1)
|
||||
{
|
||||
item.index = index
|
||||
arr.push(item)
|
||||
}else
|
||||
{
|
||||
let arr1 = []
|
||||
for (let item1 of item.level2_sectors) {
|
||||
let index1 = item.level2_sectors.indexOf(item1)
|
||||
if(item1.level2_sector.indexOf(keywords)>-1)
|
||||
{
|
||||
item1.index = index
|
||||
item1.index1 = index1
|
||||
arr1.push(item1)
|
||||
}else
|
||||
{
|
||||
let arr2 = []
|
||||
for (let item2 of item1.level3_sectors) {
|
||||
let index2 = item1.level3_sectors.indexOf(item2)
|
||||
if(item2.level3_sector.indexOf(keywords)>-1)
|
||||
{
|
||||
item2.index = index
|
||||
item2.index1 = index1
|
||||
item2.index2 = index2
|
||||
arr2.push(item2)
|
||||
}
|
||||
}
|
||||
if(arr2.length>0){
|
||||
arr2.unshift({level3_sector:'全部',index:index,index2:0})
|
||||
arr1.push({level2_sector:item1.level2_sector,level3_sectors: arr2,index:index,index1:index1})
|
||||
}
|
||||
}
|
||||
}
|
||||
if(arr1.length>0)
|
||||
{
|
||||
arr1.unshift({level2_sector:'全部',level3_sectors:[{level3_sector:'全部',level4_sectors:[]}],index:index,index1:0})
|
||||
arr.push({level1_sector:item.level1_sector,level2_sectors: arr1,index:index})
|
||||
}
|
||||
}
|
||||
}
|
||||
this.searchResultList = arr
|
||||
}else
|
||||
{
|
||||
this.searchResultList = this.industryCategoryList
|
||||
this.searchIndustryTopCategory = this.searchIndustrySecondCategory = this.searchIndustryThirdCategory = 0
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 选择行业分类搜索结果一级分类
|
||||
*/
|
||||
clickSearchIndustryTopCategoryItem(index,item)
|
||||
{
|
||||
if(this.searchIndustryTopCategory!=index)
|
||||
{
|
||||
this.searchIndustryTopCategory = index
|
||||
this.selectIndustryTopCategory = item.index
|
||||
this.searchIndustrySecondCategory = this.selectIndustrySecondCategory = 0
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 选择行业分类搜索结果二级分类
|
||||
*/
|
||||
clickSearchIndustrySecondCategoryItem(index,item)
|
||||
{
|
||||
if(this.searchIndustrySecondCategory!=index)
|
||||
{
|
||||
this.searchIndustrySecondCategory = index
|
||||
this.selectIndustrySecondCategory = item.index1
|
||||
this.searchIndustryThirdCategory = this.selectIndustryThirdCategory = 0
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 选择行业分类搜索结果三级分类
|
||||
*/
|
||||
clickSearchIndustryThirdCategoryItem(index,item)
|
||||
{
|
||||
if(this.searchIndustryThirdCategory!=index)
|
||||
{
|
||||
this.searchIndustryThirdCategory = index
|
||||
this.selectIndustryThirdCategory = item.index2
|
||||
}
|
||||
},
|
||||
/**
|
||||
@@ -692,67 +756,9 @@
|
||||
if(this.selectIndustryTopCategory!=index)
|
||||
{
|
||||
this.selectIndustryTopCategory = index
|
||||
this.selectIndustrySecondCategory = 0
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 行业分类搜索
|
||||
*/
|
||||
industrySearch(e)
|
||||
{
|
||||
let keywords = e.detail.value
|
||||
this.industryKeywords = keywords
|
||||
let arr = []
|
||||
for (let item of this.industryCategoryList) {
|
||||
let index = this.industryCategoryList.indexOf(item)
|
||||
for (let item1 of item.hierarchy) {
|
||||
let index1 = item.hierarchy.indexOf(item1)
|
||||
let arr1 = []
|
||||
if(item1.level1_sector.indexOf(keywords)>-1)
|
||||
{
|
||||
arr1.push(item1)
|
||||
arr.push({classification_name:item.classification_name,hierarchy: arr1})
|
||||
}
|
||||
for (let item2 of item1.level2_sectors) {
|
||||
let index2 = item1.level2_sectors.indexOf(item2)
|
||||
let arr2 = []
|
||||
if(item2.level2_sector.indexOf(keywords)>-1)
|
||||
{
|
||||
arr2.push(item2)
|
||||
arr1.push({level1_sector:item1.level1_sector,level2_sectors: arr2})
|
||||
arr.push({classification_name:item.classification_name,hierarchy: arr1})
|
||||
}
|
||||
for (let item3 of item2.level3_sectors) {
|
||||
let index3 = item2.level3_sectors.indexOf(item3)
|
||||
let arr3 = []
|
||||
if(item3.level3_sector.indexOf(keywords)>-1)
|
||||
{
|
||||
item3.index = index
|
||||
item3.index1 = index1
|
||||
item3.index2 = index2
|
||||
item3.index3 = index3
|
||||
arr3.push(item3)
|
||||
arr2.push({level2_sector:item2.level2_sector,level3_sectors: arr3})
|
||||
arr1.push({level1_sector:item1.level1_sector,level2_sectors: arr2})
|
||||
arr.push({classification_name:item.classification_name,hierarchy: arr1})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.searchResultList = arr
|
||||
},
|
||||
/**
|
||||
* 点击选择搜索结果
|
||||
* @param {Object} item
|
||||
*/
|
||||
clickIndustrySearchItem(item)
|
||||
{
|
||||
this.industryKeywords = ''
|
||||
this.selectIndustryTopCategory = item.index
|
||||
this.selectIndustrySecondCategory = item.index1
|
||||
this.selectIndustryThirdCategory = item.index2
|
||||
this.selectIndustryForthCategory = item.index3
|
||||
},
|
||||
/**
|
||||
* 选择行业分类二级分类
|
||||
*/
|
||||
@@ -761,74 +767,44 @@
|
||||
if(this.selectIndustrySecondCategory!=index)
|
||||
{
|
||||
this.selectIndustrySecondCategory = index
|
||||
this.selectIndustryThirdCategory = 0
|
||||
}
|
||||
this.industryCategoryList[this.selectIndustryTopCategory].hierarchy[index].isSpread = !this.industryCategoryList[this.selectIndustryTopCategory].hierarchy[index].isSpread
|
||||
},
|
||||
/**
|
||||
* 选择行业分类三级分类
|
||||
*/
|
||||
clickIndustryThirdCategoryItem(sindex,index)
|
||||
clickIndustryThirdCategoryItem(index)
|
||||
{
|
||||
if(this.selectIndustrySecondCategory!=sindex)
|
||||
{
|
||||
this.selectIndustrySecondCategory = sindex
|
||||
}
|
||||
if(this.selectIndustryThirdCategory!=index)
|
||||
{
|
||||
this.selectIndustryThirdCategory = index
|
||||
}
|
||||
this.industryCategoryList[this.selectIndustryTopCategory].hierarchy[sindex].level2_sectors[index].isSpread = !this.industryCategoryList[this.selectIndustryTopCategory].hierarchy[sindex].level2_sectors[index].isSpread
|
||||
},
|
||||
/**
|
||||
* 选择行业分类四级分类
|
||||
*/
|
||||
clickIndustryForthCategoryItem(sindex,tindex,index)
|
||||
{
|
||||
if(this.selectIndustrySecondCategory!=sindex)
|
||||
{
|
||||
this.selectIndustrySecondCategory = sindex
|
||||
}
|
||||
if(this.selectIndustryThirdCategory!=tindex)
|
||||
{
|
||||
this.selectIndustryThirdCategory = tindex
|
||||
}
|
||||
if(this.selectIndustryForthCategory!=index)
|
||||
{
|
||||
this.selectIndustryForthCategory = index
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 删除选中的行业二级分类
|
||||
*/
|
||||
deleteIndustrySecondCategoryItem()
|
||||
{
|
||||
this.selectIndustrySecondCategory = -1
|
||||
this.selectIndustryThirdCategory = -1
|
||||
this.selectIndustryForthCategory = -1
|
||||
},
|
||||
/**
|
||||
* 删除选中的行业三级分类
|
||||
*/
|
||||
deleteIndustryThirdCategoryItem()
|
||||
{
|
||||
this.selectIndustryThirdCategory = -1
|
||||
this.selectIndustryForthCategory = -1
|
||||
},
|
||||
/**
|
||||
* 删除选中的行业四级分类
|
||||
*/
|
||||
deleteIndustryForthCategoryItem()
|
||||
{
|
||||
this.selectIndustryForthCategory = -1
|
||||
},
|
||||
/**
|
||||
* 点击选择重要性
|
||||
*/
|
||||
clickImportanceItem(index)
|
||||
clickImportanceItem(item)
|
||||
{
|
||||
if(this.selectImportanceIndex!=index)
|
||||
item.select = !item.select
|
||||
if(item.key=='all')
|
||||
{
|
||||
this.selectImportanceIndex = index
|
||||
if (item.select) {
|
||||
//如果选中的是全选
|
||||
for (let item1 of this.importanceList) {
|
||||
if(item1.key!=item.key)
|
||||
{
|
||||
item1.select = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}else
|
||||
{
|
||||
for (let item1 of this.importanceList) {
|
||||
if(item1.key=='all')
|
||||
{
|
||||
item1.select = false
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
@@ -931,7 +907,23 @@
|
||||
{
|
||||
return new Promise((resolve,reject)=>{
|
||||
industryCategoryList().then(res=>{
|
||||
this.industryCategoryList = res.data
|
||||
let list = res.data[0].hierarchy
|
||||
list.unshift({level1_sector:'全部',level2_sectors:[]})
|
||||
for (let item of list) {
|
||||
let index = list.indexOf(item)
|
||||
item.index = index
|
||||
item.level2_sectors.unshift({level2_sector:'全部',level3_sectors:[]})
|
||||
for (let item1 of item.level2_sectors) {
|
||||
let index1 = item.level2_sectors.indexOf(item1)
|
||||
item1.index1 = index1
|
||||
item1.level3_sectors.unshift({level3_sector:'全部',level4_sectors:[]})
|
||||
for (let item2 of item1.level3_sectors) {
|
||||
let index2 = item1.level3_sectors.indexOf(item2)
|
||||
item2.index2 = index2
|
||||
}
|
||||
}
|
||||
}
|
||||
this.industryCategoryList = list
|
||||
resolve(1)
|
||||
}).catch(error=>{
|
||||
reject(1)
|
||||
@@ -980,6 +972,10 @@
|
||||
{
|
||||
param.secondary_sector = this.stockCategoryList[this.selectTopCategory].sub_sectors[this.selectSecondCategory]
|
||||
}
|
||||
if(this.selectQuickTimeIndex>-1)
|
||||
{
|
||||
param.time_filter = this.quickTimeList[this.selectQuickTimeIndex].key
|
||||
}
|
||||
if(this.startDateStr)
|
||||
{
|
||||
param.start_date = this.startDateStr
|
||||
@@ -988,38 +984,39 @@
|
||||
{
|
||||
param.end_date = this.endDateStr
|
||||
}
|
||||
if(this.selectImportanceIndex>0)
|
||||
if(this.selectIndustryThirdCategory>0)
|
||||
{
|
||||
param.importance = this.importanceList[this.selectImportanceIndex].key
|
||||
param.industry_level = 4
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].level2_sectors[this.selectIndustrySecondCategory].level3_sectors[this.selectIndustryThirdCategory].level3_sector
|
||||
}else
|
||||
{
|
||||
if(this.selectIndustrySecondCategory>0)
|
||||
{
|
||||
param.industry_level = 3
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].level2_sectors[this.selectIndustrySecondCategory].level2_sector
|
||||
}else
|
||||
{
|
||||
if(this.selectIndustryTopCategory>0) {
|
||||
param.industry_level = 2
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].level1_sector
|
||||
}
|
||||
}
|
||||
}
|
||||
let arr = []
|
||||
for (let item of this.importanceList) {
|
||||
if (item.select) {
|
||||
arr.push(item.key)
|
||||
}
|
||||
}
|
||||
if(arr.length>0)
|
||||
{
|
||||
param.importance = arr.join(',')
|
||||
}
|
||||
if(this.selectSortKey)
|
||||
{
|
||||
param.sort = this.selectSortKey
|
||||
}
|
||||
if(this.selectIndustryForthCategory>-1)
|
||||
{
|
||||
param.industry_level = 4
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].hierarchy[this.selectIndustrySecondCategory].level2_sectors[this.selectIndustryThirdCategory].level3_sectors[this.selectIndustryForthCategory].level3_sector
|
||||
}else
|
||||
{
|
||||
if(this.selectIndustryThirdCategory>-1)
|
||||
{
|
||||
param.industry_level = 3
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].hierarchy[this.selectIndustrySecondCategory].level2_sectors[this.selectIndustryThirdCategory].level2_sector
|
||||
}else
|
||||
{
|
||||
if(this.selectIndustrySecondCategory>-1)
|
||||
{
|
||||
param.industry_level = 2
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].hierarchy[this.selectIndustrySecondCategory].level1_sector
|
||||
|
||||
}else
|
||||
{
|
||||
param.industry_level = 1
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].classification_name
|
||||
}
|
||||
}
|
||||
}
|
||||
eventList(param).then(res=>{
|
||||
this.isRefreshing = false
|
||||
if(res.success)
|
||||
@@ -1116,6 +1113,10 @@
|
||||
{
|
||||
param.secondary_sector = this.stockCategoryList[this.selectTopCategory].sub_sectors[this.selectSecondCategory]
|
||||
}
|
||||
if(this.selectQuickTimeIndex>-1)
|
||||
{
|
||||
param.time_filter = this.quickTimeList[this.selectQuickTimeIndex].key
|
||||
}
|
||||
if(this.startDateStr)
|
||||
{
|
||||
param.start_date = this.startDateStr
|
||||
@@ -1124,9 +1125,34 @@
|
||||
{
|
||||
param.end_date = this.endDateStr
|
||||
}
|
||||
if(this.selectImportanceIndex>0)
|
||||
|
||||
if(this.selectIndustryThirdCategory>0)
|
||||
{
|
||||
param.importance = this.importanceList[this.selectImportanceIndex].key
|
||||
param.industry_level = 4
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].level2_sectors[this.selectIndustrySecondCategory].level3_sectors[this.selectIndustryThirdCategory].level3_sector
|
||||
}else
|
||||
{
|
||||
if(this.selectIndustrySecondCategory>0)
|
||||
{
|
||||
param.industry_level = 3
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].level2_sectors[this.selectIndustrySecondCategory].level2_sector
|
||||
}else
|
||||
{
|
||||
if(this.selectIndustryTopCategory>0) {
|
||||
param.industry_level = 2
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].level1_sector
|
||||
}
|
||||
}
|
||||
}
|
||||
let arr = []
|
||||
for (let item of this.importanceList) {
|
||||
if (item.select) {
|
||||
arr.push(item.key)
|
||||
}
|
||||
}
|
||||
if(arr.length>0)
|
||||
{
|
||||
param.importance = arr.join(',')
|
||||
}
|
||||
if(this.selectSortKey)
|
||||
{
|
||||
@@ -1419,7 +1445,6 @@ page
|
||||
color: #F97316;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
.timeToolBarC
|
||||
{
|
||||
@@ -1455,7 +1480,6 @@ page
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1580,6 +1604,7 @@ page
|
||||
}
|
||||
.dateList
|
||||
{
|
||||
width: 50%;
|
||||
height: 430rpx;
|
||||
.item
|
||||
{
|
||||
@@ -1591,32 +1616,10 @@ page
|
||||
}
|
||||
}
|
||||
|
||||
.industryCategoryC
|
||||
{
|
||||
margin: 14rpx 20rpx 0;
|
||||
padding-bottom: 20rpx;
|
||||
border-bottom: solid 1rpx #E4E4E4;
|
||||
.item
|
||||
{
|
||||
background-color: #F6F6F6;
|
||||
margin: 0 20rpx 20rpx 0;
|
||||
padding: 0 30rpx;
|
||||
line-height: 70rpx;
|
||||
border-radius: 10rpx;
|
||||
font-size: 26rpx;
|
||||
font-weight: 500;
|
||||
color: #666;
|
||||
}
|
||||
.item.select
|
||||
{
|
||||
background-color: #F97316;
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
.industrySearchC
|
||||
{
|
||||
background-color: #F6F6F6;
|
||||
margin: 28rpx 22rpx 0;
|
||||
margin: 30rpx 25rpx 0;
|
||||
padding: 0 22rpx;
|
||||
height: 75rpx;
|
||||
border: solid 1rpx #DBDBDB;
|
||||
@@ -1630,6 +1633,79 @@ page
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
.industryCategoryC
|
||||
{
|
||||
margin-top: 38rpx;
|
||||
display: flex;
|
||||
.topCategoryList
|
||||
{
|
||||
background-color: #F8F7FD;
|
||||
height: 736rpx;
|
||||
overflow-y: scroll;
|
||||
.item
|
||||
{
|
||||
padding: 0 26rpx;
|
||||
width: 175rpx;
|
||||
line-height: 90rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
.item.select
|
||||
{
|
||||
background-color: white;
|
||||
font-weight: bold;
|
||||
color: #E7A933;
|
||||
.line
|
||||
{
|
||||
background-color: #F3C368;
|
||||
top: calc((100% - 25rpx)/2);
|
||||
left: 0;
|
||||
width: 8rpx;
|
||||
height: 25rpx;
|
||||
border-radius: 0 5rpx 5rpx 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
.secondCategoryList
|
||||
{
|
||||
width: 278rpx;
|
||||
.item
|
||||
{
|
||||
padding: 0 26rpx;
|
||||
line-height: 90rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
.item.select
|
||||
{
|
||||
font-weight: bold;
|
||||
color: #E7A933;
|
||||
}
|
||||
}
|
||||
.thirdCategoryList
|
||||
{
|
||||
.item
|
||||
{
|
||||
padding: 0 26rpx;
|
||||
line-height: 90rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
.item.select
|
||||
{
|
||||
font-weight: bold;
|
||||
color: #E7A933;
|
||||
.select
|
||||
{
|
||||
width: 22rpx;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.searchResultList
|
||||
{
|
||||
max-height: 500rpx;
|
||||
|
||||
@@ -10,8 +10,20 @@
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="type==1&&tradeData" class="volumeAmountC flex">
|
||||
<text class="volume">成交量:{{tradeData.volume}}</text>
|
||||
<text class="amount">成交金额:{{tradeData.amount}}</text>
|
||||
<block v-if="tradeData.volume>100000000">
|
||||
<text class="volume">成交量:{{(tradeData.volume/100000000).toFixed(2)}}亿</text>
|
||||
</block>
|
||||
<block v-else>
|
||||
<text v-if="tradeData.volume>10000" class="volume">成交量:{{(tradeData.volume/10000).toFixed(2)}}万</text>
|
||||
<text v-else class="volume">成交量:{{tradeData.volume}}</text>
|
||||
</block>
|
||||
<block v-if="tradeData.amount>100000000">
|
||||
<text class="amount">成交金额:{{(tradeData.amount/100000000).toFixed(2)}}亿元</text>
|
||||
</block>
|
||||
<block v-else>
|
||||
<text v-if="tradeData.amount>10000" class="amount">成交金额:{{(tradeData.amount/10000).toFixed(2)}}万元</text>
|
||||
<text v-else class="amount">成交金额:{{tradeData.amount}}元</text>
|
||||
</block>
|
||||
</view>
|
||||
<view v-if="type==1" style="width:700rpx; height:400rpx">
|
||||
<l-echart ref="chartRef"></l-echart>
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
<uni-popup ref="popup" type="center">
|
||||
<view class="popup">
|
||||
<image class="icon" src="/static/image/mine/service.png" mode="widthFix" show-menu-by-longpress></image>
|
||||
<view class="title">企业二维码</view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
</view>
|
||||
@@ -323,10 +324,17 @@ page
|
||||
}
|
||||
.popup
|
||||
{
|
||||
background-color: white;
|
||||
.icon
|
||||
{
|
||||
width: 560rpx;
|
||||
height: auto;
|
||||
}
|
||||
.title
|
||||
{
|
||||
margin-top: 10rpx;
|
||||
border-radius: 10rpx;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -26,21 +26,21 @@
|
||||
<view :class="'privilegeList '+(memberInfo.is_member?'vip':'')">
|
||||
<view class="header flex">
|
||||
<view class="privilege item">专属特权</view>
|
||||
<view class="item free">普通免费</view>
|
||||
<view class="item vip">VIP会员</view>
|
||||
<view class="item free">pro会员</view>
|
||||
<view class="item vip">max会员</view>
|
||||
</view>
|
||||
<view class="list">
|
||||
<view class="item flex" v-for="(item,index) in privilegeList" :key="index">
|
||||
<view class="optionItem privilege flex">{{item}}</view>
|
||||
<view class="optionItem free flexCenter">
|
||||
<block v-if="index==0||index==1||index==2">
|
||||
<block v-if="index>5">
|
||||
<image class="notContain" src="/pagesMine/static/icon/vip/notContain.png" mode="widthFix"></image>
|
||||
</block>
|
||||
<block v-if="index==3||index==4">
|
||||
<!-- <block v-if="index==3||index==4">
|
||||
<block v-if="index==3">限制查看数量</block>
|
||||
<block v-if="index==4">每日查看2只</block>
|
||||
</block>
|
||||
<block v-if="index==5||index==6">
|
||||
</block> -->
|
||||
<block v-else>
|
||||
<image class="contain" src="/pagesMine/static/icon/vip/contain.png" mode="widthFix"></image>
|
||||
</block>
|
||||
</view>
|
||||
@@ -65,7 +65,8 @@
|
||||
return {
|
||||
navH:inject('navHeight'),
|
||||
memberInfo:null, //会员信息
|
||||
privilegeList:['高效选股工具','股票基金明星榜单','定期专属晨报、股票动态','独家产业研报','个股产业分析','股票、基金基础指标','7x24 财经直播']
|
||||
privilegeList:['事件关联股票深度分析','历史事件智能对比复盘','事件概念关联与挖掘','概念板块个股追踪','概念深深度研报与解读','个股异动实时预警',
|
||||
'事件传导链路智能分析','概念演变时间轴追溯','个股全方位深度研究','价小前投研助手无限使用','新功能优先体验权','专属客服一对一服务']
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
@@ -29,7 +29,7 @@ export function get(url, params){
|
||||
let baseUrl = baseURL
|
||||
if(url.indexOf('concept-api')>-1||url.indexOf('news-api')>-1||url.indexOf('report-api')>-1)
|
||||
{
|
||||
baseUrl = 'https://valuefrontier.cn'
|
||||
baseUrl = 'https://api.valuefrontier.cn'
|
||||
}
|
||||
uni.request({
|
||||
url:baseUrl+url,
|
||||
@@ -124,7 +124,7 @@ export function post(url, params) {
|
||||
let baseUrl = baseURL
|
||||
if(url.indexOf('concept-api')>-1)
|
||||
{
|
||||
baseUrl = 'https://valuefrontier.cn'
|
||||
baseUrl = 'https://api.valuefrontier.cn'
|
||||
}
|
||||
uni.request({
|
||||
url:baseUrl+url,
|
||||
@@ -163,7 +163,6 @@ export function post(url, params) {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 1001 B After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 998 B After Width: | Height: | Size: 2.5 KiB |
BIN
static/icon/home/industrySearch.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 371 B After Width: | Height: | Size: 1.3 KiB |
10
unpackage/dist/build/mp-weixin/app.json
vendored
@@ -17,9 +17,9 @@
|
||||
"pages/login/login",
|
||||
"pages/login/codeLogin/codeLogin",
|
||||
"pages/mine/web/web",
|
||||
"pages/index/conceptNewsDetails/conceptNewsDetails",
|
||||
"pages/concept/historicalTimeline/historicalTimeline",
|
||||
"pages/concept/hotStock/hotStock"
|
||||
"pages/concept/hotStock/hotStock",
|
||||
"pages/concept/conceptNewsDetails/conceptNewsDetails"
|
||||
],
|
||||
"subPackages": [
|
||||
{
|
||||
@@ -49,6 +49,12 @@
|
||||
"text": "投资",
|
||||
"pagePath": "pages/invest/invest"
|
||||
},
|
||||
{
|
||||
"iconPath": "/static/icon/tabbar/invest.png",
|
||||
"selectedIconPath": "/static/icon/tabbar/invest_s.png",
|
||||
"text": "投资",
|
||||
"pagePath": "pages/concept/concept"
|
||||
},
|
||||
{
|
||||
"iconPath": "/static/icon/tabbar/mine.png",
|
||||
"selectedIconPath": "/static/icon/tabbar/mine_s.png",
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";exports._imports_0="/static/image/index/conceptTopBg.png",exports._imports_0$1="/static/image/login/logo.png",exports._imports_1="/static/icon/home/conceptCenter/search.png",exports._imports_1$1="/static/icon/home/downArrow.png",exports._imports_1$10="/static/icon/back.png",exports._imports_1$2="/static/icon/home/conceptCenter/timeAxis.png",exports._imports_1$3="/static/icon/home/conceptCenter/lock.png",exports._imports_1$4="/static/icon/mine/infoArrow.png",exports._imports_1$5="/static/icon/mine/basicInfo/edit.png",exports._imports_1$6="/static/icon/home/like_s.png",exports._imports_1$7="/static/icon/login/mobile.png",exports._imports_1$8="/static/icon/home/conceptCenter/timeScreenArrow.png",exports._imports_1$9="/pagesMine/static/image/vip/vipTopBg.png",exports._imports_10="/static/icon/home/search.png",exports._imports_10$1="/static/icon/home/follow.png",exports._imports_10$2="/static/icon/home/conceptCenter/rank2.png",exports._imports_10$3="/pagesMine/static/icon/vip/step2.png",exports._imports_11="/static/icon/home/delete.png",exports._imports_11$1="/static/icon/home/close.png",exports._imports_11$2="/static/icon/home/conceptCenter/rank3.png",exports._imports_11$3="/pagesMine/static/icon/vip/step3_v.png",exports._imports_12="/static/icon/home/industry_s.png",exports._imports_12$1="/static/icon/home/conceptCenter/rankChg.png",exports._imports_12$2="/static/icon/home/like.png",exports._imports_12$3="/pagesMine/static/icon/vip/step3.png",exports._imports_13="/static/icon/home/level_s.png",exports._imports_13$1="/static/icon/home/sortArrow.png",exports._imports_13$2="/static/icon/home/conceptCenter/calendar.png",exports._imports_13$3="/pagesMine/static/icon/vip/step4_v.png",exports._imports_14="/static/icon/home/conceptCenter/vipPopIcon.png",exports._imports_14$1="/static/icon/home/conceptCenter/browse.png",exports._imports_14$2="/pagesMine/static/icon/vip/step4.png",exports._imports_15="/static/icon/home/conceptCenter/visitModule.png",exports._imports_15$1="/pagesMine/static/icon/vip/investQuestion.png",exports._imports_16="/static/icon/home/conceptCenter/free_s.png",exports._imports_16$1="/pagesMine/static/icon/vip/industrialResearch.png",exports._imports_17="/static/icon/home/conceptCenter/pro_s.png",exports._imports_17$1="/pagesMine/static/icon/vip/operatingDecision.png",exports._imports_2="/static/icon/backBlack.png",exports._imports_2$1="/static/icon/home/upArrow.png",exports._imports_2$2="/static/icon/invest/calendar.png",exports._imports_2$3="/static/icon/home/conceptCenter/sortType.png",exports._imports_2$4="/static/image/mine/vipBg.png",exports._imports_2$5="/static/icon/mine/basicInfo/downArrow.png",exports._imports_2$6="/static/icon/login/code.png",exports._imports_2$7="/static/icon/home/conceptCenter/reasonExpand.png",exports._imports_2$8="/pagesMine/static/image/vip/noVipTopBg.png",exports._imports_3="/static/icon/home/conceptCenter/conceptScreenArrow.png",exports._imports_3$1="/static/icon/home/browser.png",exports._imports_3$2="/static/icon/invest/upArrow.png",exports._imports_3$3="/static/icon/mine/menuArrow.png",exports._imports_3$4="/static/icon/home/expectScore.png",exports._imports_3$5="/static/icon/login/select_s.png",exports._imports_3$6="/static/icon/home/conceptCenter/chgDown.png",exports._imports_3$7="/static/icon/home/conceptCenter/reasonRetract.png",exports._imports_3$8="/pagesMine/static/icon/vip/titleLeft_v.png",exports._imports_4="/static/icon/home/comment.png",exports._imports_4$1="/static/icon/invest/downArrow.png",exports._imports_4$2="/static/icon/home/conceptCenter/pre.png",exports._imports_4$3="/static/icon/home/conceptCenter/transactionDate.png",exports._imports_4$4="/static/image/mine/service.png",exports._imports_4$5="/static/icon/home/expectScoreTips.png",exports._imports_4$6="/static/icon/login/select.png",exports._imports_4$7="/static/icon/home/conceptCenter/chgUp.png",exports._imports_4$8="/pagesMine/static/icon/vip/titleLeft.png",exports._imports_5="/static/icon/home/monthLeftArrow.png",exports._imports_5$1="/static/icon/home/conceptCenter/next.png",exports._imports_5$2="/static/icon/home/expectScoreDot.png",exports._imports_5$3="/static/icon/home/follow_s.png",exports._imports_5$4="/static/icon/home/conceptCenter/newsReport.png",exports._imports_5$5="/pagesMine/static/icon/vip/titleRight_v.png",exports._imports_6="/static/icon/home/monthRightArrow.png",exports._imports_6$1="/pagesMine/static/icon/vip/titleRight.png",exports._imports_7="/pagesMine/static/icon/vip/step1_v.png",exports._imports_7$1="/pagesMine/static/icon/vip/notContain.png",exports._imports_8="/static/icon/home/conceptCenter/statistics.png",exports._imports_8$1="/pagesMine/static/icon/vip/step1.png",exports._imports_8$2="/pagesMine/static/icon/vip/contain.png",exports._imports_9="/static/icon/home/dateRange.png",exports._imports_9$1="/static/icon/home/conceptCenter/rank1.png",exports._imports_9$2="/pagesMine/static/icon/vip/step2_v.png";
|
||||
"use strict";exports._imports_0="/static/image/index/conceptTopBg.png",exports._imports_0$1="/static/image/login/logo.png",exports._imports_1="/static/icon/home/conceptCenter/search.png",exports._imports_1$1="/static/icon/home/downArrow.png",exports._imports_1$10="/static/icon/back.png",exports._imports_1$2="/static/icon/home/conceptCenter/timeAxis.png",exports._imports_1$3="/static/icon/home/conceptCenter/lock.png",exports._imports_1$4="/static/icon/mine/infoArrow.png",exports._imports_1$5="/static/icon/mine/basicInfo/edit.png",exports._imports_1$6="/static/icon/home/like_s.png",exports._imports_1$7="/static/icon/login/mobile.png",exports._imports_1$8="/static/icon/home/conceptCenter/timeScreenArrow.png",exports._imports_1$9="/pagesMine/static/image/vip/vipTopBg.png",exports._imports_10="/static/icon/home/industrySearch.png",exports._imports_10$1="/static/icon/home/follow.png",exports._imports_10$2="/static/icon/home/conceptCenter/rank2.png",exports._imports_10$3="/pagesMine/static/icon/vip/step2.png",exports._imports_11="/static/icon/home/industry_s.png",exports._imports_11$1="/static/icon/home/close.png",exports._imports_11$2="/static/icon/home/conceptCenter/rank3.png",exports._imports_11$3="/pagesMine/static/icon/vip/step3_v.png",exports._imports_12="/static/icon/home/level_s.png",exports._imports_12$1="/static/icon/home/conceptCenter/rankChg.png",exports._imports_12$2="/static/icon/home/like.png",exports._imports_12$3="/pagesMine/static/icon/vip/step3.png",exports._imports_13="/static/icon/home/sortArrow.png",exports._imports_13$1="/static/icon/home/conceptCenter/calendar.png",exports._imports_13$2="/pagesMine/static/icon/vip/step4_v.png",exports._imports_14="/static/icon/home/conceptCenter/vipPopIcon.png",exports._imports_14$1="/static/icon/home/conceptCenter/browse.png",exports._imports_14$2="/pagesMine/static/icon/vip/step4.png",exports._imports_15="/static/icon/home/conceptCenter/visitModule.png",exports._imports_15$1="/pagesMine/static/icon/vip/investQuestion.png",exports._imports_16="/static/icon/home/conceptCenter/free_s.png",exports._imports_16$1="/pagesMine/static/icon/vip/industrialResearch.png",exports._imports_17="/static/icon/home/conceptCenter/pro_s.png",exports._imports_17$1="/pagesMine/static/icon/vip/operatingDecision.png",exports._imports_2="/static/icon/backBlack.png",exports._imports_2$1="/static/icon/home/upArrow.png",exports._imports_2$2="/static/icon/invest/calendar.png",exports._imports_2$3="/static/icon/home/conceptCenter/sortType.png",exports._imports_2$4="/static/image/mine/vipBg.png",exports._imports_2$5="/static/icon/mine/basicInfo/downArrow.png",exports._imports_2$6="/static/icon/login/code.png",exports._imports_2$7="/static/icon/home/conceptCenter/reasonExpand.png",exports._imports_2$8="/pagesMine/static/image/vip/noVipTopBg.png",exports._imports_3="/static/icon/home/conceptCenter/conceptScreenArrow.png",exports._imports_3$1="/static/icon/home/browser.png",exports._imports_3$2="/static/icon/invest/upArrow.png",exports._imports_3$3="/static/icon/mine/menuArrow.png",exports._imports_3$4="/static/icon/home/expectScore.png",exports._imports_3$5="/static/icon/login/select_s.png",exports._imports_3$6="/static/icon/home/conceptCenter/chgDown.png",exports._imports_3$7="/static/icon/home/conceptCenter/reasonRetract.png",exports._imports_3$8="/pagesMine/static/icon/vip/titleLeft_v.png",exports._imports_4="/static/icon/home/comment.png",exports._imports_4$1="/static/icon/invest/downArrow.png",exports._imports_4$2="/static/icon/home/conceptCenter/pre.png",exports._imports_4$3="/static/icon/home/conceptCenter/transactionDate.png",exports._imports_4$4="/static/image/mine/service.png",exports._imports_4$5="/static/icon/home/expectScoreTips.png",exports._imports_4$6="/static/icon/login/select.png",exports._imports_4$7="/static/icon/home/conceptCenter/chgUp.png",exports._imports_4$8="/pagesMine/static/icon/vip/titleLeft.png",exports._imports_5="/static/icon/home/monthLeftArrow.png",exports._imports_5$1="/static/icon/home/conceptCenter/next.png",exports._imports_5$2="/static/icon/home/expectScoreDot.png",exports._imports_5$3="/static/icon/home/follow_s.png",exports._imports_5$4="/static/icon/home/conceptCenter/newsReport.png",exports._imports_5$5="/pagesMine/static/icon/vip/titleRight_v.png",exports._imports_6="/static/icon/home/monthRightArrow.png",exports._imports_6$1="/pagesMine/static/icon/vip/titleRight.png",exports._imports_7="/pagesMine/static/icon/vip/step1_v.png",exports._imports_7$1="/pagesMine/static/icon/vip/notContain.png",exports._imports_8="/static/icon/home/conceptCenter/statistics.png",exports._imports_8$1="/pagesMine/static/icon/vip/step1.png",exports._imports_8$2="/pagesMine/static/icon/vip/contain.png",exports._imports_9="/static/icon/home/dateRange.png",exports._imports_9$1="/static/icon/home/conceptCenter/rank1.png",exports._imports_9$2="/pagesMine/static/icon/vip/step2_v.png";
|
||||
|
||||
@@ -29,12 +29,12 @@ Component({
|
||||
"iconPath": "/static/icon/tabbar/invest.png",
|
||||
"selectedIconPath": "/static/icon/tabbar/invest_s.png"
|
||||
},
|
||||
// {
|
||||
// "pagePath": "/pages/concept/concept",
|
||||
// "text": "概念中心",
|
||||
// "iconPath": "/static/icon/tabbar/concept.png",
|
||||
// "selectedIconPath": "/static/icon/tabbar/concept_s.png"
|
||||
// },
|
||||
{
|
||||
"pagePath": "/pages/concept/concept",
|
||||
"text": "概念中心",
|
||||
"iconPath": "/static/icon/tabbar/concept.png",
|
||||
"selectedIconPath": "/static/icon/tabbar/concept_s.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "/pages/mine/mine",
|
||||
"text": "个人中心",
|
||||
|
||||
1
unpackage/dist/build/mp-weixin/pages/concept/conceptNewsDetails/conceptNewsDetails.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../common/vendor.js"),n=require("../../../utils/util.js"),o=require("../../../common/assets.js"),t={data:()=>({navH:e.inject("navHeight"),newsInfo:null,getLocalTime:n.getLocaleTime}),onLoad(e){this.newsInfo=JSON.parse(decodeURIComponent(e.info))}};if(!Array){(e.resolveComponent("navBar")+e.resolveComponent("ua-markdown"))()}Math||((()=>"../../../components/navBar/navBar.js")+(()=>"../../../components/ua-markdown/ua-markdown.js"))();const s=e._export_sfc(t,[["render",function(n,t,s,a,r,i){return e.e({a:e.p({leftText:"历史时间轴",hideNavBg:!0}),b:o._imports_0,c:r.newsInfo},r.newsInfo?{d:e.t(r.newsInfo.title),e:e.t(r.getLocalTime(r.newsInfo.published_time)),f:e.p({source:r.newsInfo.detail}),g:e.s("top: "+r.navH+"px;")}:{})}]]);wx.createPage(s);
|
||||
7
unpackage/dist/build/mp-weixin/pages/concept/conceptNewsDetails/conceptNewsDetails.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"usingComponents": {
|
||||
"nav-bar": "../../../components/navBar/navBar",
|
||||
"ua-markdown": "../../../components/ua-markdown/ua-markdown"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/concept/conceptNewsDetails/conceptNewsDetails.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view><nav-bar wx:if="{{a}}" u-i="279e50b2-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view wx:if="{{c}}" class="contentC fixed" style="{{g}}"><view class="title">{{d}}</view><view class="labelTimeC"><text class="time">{{e}}</text></view><view class="content"><ua-markdown wx:if="{{f}}" u-i="279e50b2-1" bind:__l="__l" u-p="{{f}}"/></view></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/concept/conceptNewsDetails/conceptNewsDetails.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
page{background-color:#070707}.topBg{top:0;left:0;width:100%;height:auto}.contentC{background-color:#fff9f5;margin:20rpx 25rpx 0;padding:28rpx 30rpx;left:0;right:0;bottom:100rpx;border-radius:10rpx;overflow-y:scroll}.contentC .title{margin:0 10rpx;font-size:30rpx;font-weight:700;color:#2b2b2b}.contentC .labelTimeC{margin:0 10rpx}.contentC .labelTimeC .time{font-size:24rpx;font-weight:500;color:#666}.contentC .content{margin-top:30rpx}
|
||||
@@ -1 +1 @@
|
||||
<view><nav-bar wx:if="{{a}}" u-i="adc20db2-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="timelineTitle fixed" style="{{d}}">{{c}}- 历史时间轴</view><view class="dateStatisticsC fixed" style="{{A}}"><view class="dateC"><view class="yearMonthC flex"><view class="btn" bindtap="{{f}}"><image class="icon" src="{{e}}" mode="widthFix"></image></view><view class="yearMonth flex1"><picker mode="date" fields="month" bindchange="{{h}}">{{g}}</picker></view><view class="btn" bindtap="{{j}}"><image class="icon" src="{{i}}" mode="widthFix"></image></view></view><view class="weekList flex"><view wx:for="{{k}}" wx:for-item="item" wx:key="b" class="item flex1">{{item.a}}</view></view><view class="monthDateList flexWrap"><view wx:for="{{l}}" wx:for-item="item" wx:key="m" class="item flexColumnCenter" bindtap="{{item.n}}"><block wx:if="{{item.a}}"><view class="{{item.e}}">{{item.b}} <view wx:if="{{item.c}}" class="chg">{{item.d}}%</view></view></block><block wx:else><block wx:if="{{item.f}}"><view class="date notCurrentMonth">{{item.g}}</view></block><block wx:else><view class="{{item.l}}">{{item.h}} <view wx:if="{{item.i}}" class="{{item.k}}">{{item.j}}%</view></view></block></block></view></view></view><view class="statisticsC"><view class="date">{{m}}统计</view><view wx:if="{{n}}" class="chgStockNumC flex"><view class="chgC flex flex1"><view class="title">涨跌幅</view><image wx:if="{{o}}" class="icon" src="{{p}}" mode="widthFix"></image><image wx:else class="icon" src="{{q}}" mode="widthFix"></image><view class="{{s}}">{{r}}%</view></view><view class="stockNumC flex flex1"><view class="title">统计股票</view><view class="stockNum">{{t}} 只股票</view></view></view><view class="newsReportC flex"><image class="icon" src="{{v}}" mode="widthFix"></image><text class="news">{{w}} 条新闻 · </text><text class="report" decode> {{x}} 份研报</text></view><view class="list"><view wx:for="{{y}}" wx:for-item="item" wx:key="c" class="item"><view class="flex"><view class="type news">新闻</view><view class="title flex1">{{item.a}}</view></view><view class="content">{{item.b}}</view></view><view wx:for="{{z}}" wx:for-item="item" wx:key="b" class="item"><view class="flex"><view class="type report">研报</view><view class="title flex1">{{item.a}}</view></view><view class="content">坚定看好锂电材料,建议继续加配坚定六氟、添加剂,关注隔膜更加坚定的看好六氟:下游传导如期</view></view></view></view></view></view>
|
||||
<view><nav-bar wx:if="{{a}}" u-i="adc20db2-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="timelineTitle fixed" style="{{d}}">{{c}}- 历史时间轴</view><view class="dateStatisticsC fixed" style="{{A}}"><view class="dateC"><view class="yearMonthC flex"><view class="btn" bindtap="{{f}}"><image class="icon" src="{{e}}" mode="widthFix"></image></view><view class="yearMonth flex1"><picker mode="date" fields="month" bindchange="{{h}}">{{g}}</picker></view><view class="btn" bindtap="{{j}}"><image class="icon" src="{{i}}" mode="widthFix"></image></view></view><view class="weekList flex"><view wx:for="{{k}}" wx:for-item="item" wx:key="b" class="item flex1">{{item.a}}</view></view><view class="monthDateList flexWrap"><view wx:for="{{l}}" wx:for-item="item" wx:key="m" class="item flexColumnCenter" bindtap="{{item.n}}"><block wx:if="{{item.a}}"><view class="{{item.e}}">{{item.b}} <view wx:if="{{item.c}}" class="chg">{{item.d}}%</view></view></block><block wx:else><block wx:if="{{item.f}}"><view class="date notCurrentMonth">{{item.g}}</view></block><block wx:else><view class="{{item.l}}">{{item.h}} <view wx:if="{{item.i}}" class="{{item.k}}">{{item.j}}%</view></view></block></block></view></view></view><view class="statisticsC"><view class="date">{{m}}统计</view><view wx:if="{{n}}" class="chgStockNumC flex"><view class="chgC flex flex1"><view class="title">涨跌幅</view><image wx:if="{{o}}" class="icon" src="{{p}}" mode="widthFix"></image><image wx:else class="icon" src="{{q}}" mode="widthFix"></image><view class="{{s}}">{{r}}%</view></view><view class="stockNumC flex flex1"><view class="title">统计股票</view><view class="stockNum">{{t}} 只股票</view></view></view><view class="newsReportC flex"><image class="icon" src="{{v}}" mode="widthFix"></image><text class="news">{{w}} 条新闻 · </text><text class="report" decode> {{x}} 份研报</text></view><view class="list"><view wx:for="{{y}}" wx:for-item="item" wx:key="c" class="item" bindtap="{{item.d}}"><view class="flex"><view class="type news">新闻</view><view class="title flex1">{{item.a}}</view></view><view class="content">{{item.b}}</view></view><view wx:for="{{z}}" wx:for-item="item" wx:key="b" class="item"><view class="flex"><view class="type report">研报</view><view class="title flex1">{{item.a}}</view></view><view class="content">坚定看好锂电材料,建议继续加配坚定六氟、添加剂,关注隔膜更加坚定的看好六氟:下游传导如期</view></view></view></view></view></view>
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";const e=require("../../../common/vendor.js"),r=require("../../../common/assets.js"),t={};if(!Array){e.resolveComponent("navBar")()}Math;const o=e._export_sfc(t,[["render",function(t,o){return{a:e.p({leftText:"历史时间轴",hideNavBg:!0}),b:r._imports_0}}]]);wx.createPage(o);
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"usingComponents": {
|
||||
"nav-bar": "../../../components/navBar/navBar"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view><nav-bar wx:if="{{a}}" u-i="5b93cf51-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image></view>
|
||||
@@ -1 +0,0 @@
|
||||
page{background-color:#070707}.topBg{top:0;left:0;width:100%;height:auto}
|
||||
@@ -1 +1 @@
|
||||
<view><nav-bar wx:if="{{a}}" u-i="42054871-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="chartDesC relative" style="{{k}}"><view wx:if="{{c}}" class="tabC"><view wx:for="{{d}}" wx:for-item="item" wx:key="d" class="{{item.c}}" bindtap="{{item.e}}">{{item.a}} <view wx:if="{{item.b}}" class="line absolute"></view></view></view><view wx:if="{{e}}" class="volumeAmountC flex"><text class="volume">成交量:{{f}}</text><text class="amount">成交金额:{{g}}</text></view><view wx:if="{{h}}" style="width:700rpx;height:400rpx"><l-echart class="r" u-r="chartRef" u-i="42054871-1" bind:__l="__l"></l-echart></view><view class="section">关联描述</view><view class="des">{{j}}<text class="ai">(AI合成)</text></view><view class="riskTips"> 【风险提示:解析内容由价值前沿人工采集整理自新闻、公告、研报等公开信息,团队辛苦编写,未经许可严禁转载。本产品内容内容均不构成投资建议,请投资者注意风险,独立审慎决策。】 </view></view><view wx:if="{{l}}" class="infoSourceC"><view class="section">信息来源</view><view class="list"><view wx:for="{{m}}" wx:for-item="item" wx:key="e" class="item"><view class="content">{{item.a}}</view><view class="article">——《{{item.b}}》</view><view class="authorDateC flex"><view class="author flex1">{{item.c}}</view><view class="date">{{item.d}}</view></view></view></view></view></view>
|
||||
<view><nav-bar wx:if="{{a}}" u-i="42054871-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="chartDesC relative" style="{{s}}"><view wx:if="{{c}}" class="tabC"><view wx:for="{{d}}" wx:for-item="item" wx:key="d" class="{{item.c}}" bindtap="{{item.e}}">{{item.a}} <view wx:if="{{item.b}}" class="line absolute"></view></view></view><view wx:if="{{e}}" class="volumeAmountC flex"><block wx:if="{{f}}"><text class="volume">成交量:{{g}}亿</text></block><block wx:else><text wx:if="{{h}}" class="volume">成交量:{{i}}万</text><text wx:else class="volume">成交量:{{j}}</text></block><block wx:if="{{k}}"><text class="amount">成交金额:{{l}}亿元</text></block><block wx:else><text wx:if="{{m}}" class="amount">成交金额:{{n}}万元</text><text wx:else class="amount">成交金额:{{o}}元</text></block></view><view wx:if="{{p}}" style="width:700rpx;height:400rpx"><l-echart class="r" u-r="chartRef" u-i="42054871-1" bind:__l="__l"></l-echart></view><view class="section">关联描述</view><view class="des">{{r}}<text class="ai">(AI合成)</text></view><view class="riskTips"> 【风险提示:解析内容由价值前沿人工采集整理自新闻、公告、研报等公开信息,团队辛苦编写,未经许可严禁转载。本产品内容内容均不构成投资建议,请投资者注意风险,独立审慎决策。】 </view></view><view wx:if="{{t}}" class="infoSourceC"><view class="section">信息来源</view><view class="list"><view wx:for="{{v}}" wx:for-item="item" wx:key="e" class="item"><view class="content">{{item.a}}</view><view class="article">——《{{item.b}}》</view><view class="authorDateC flex"><view class="author flex1">{{item.c}}</view><view class="date">{{item.d}}</view></view></view></view></view></view>
|
||||
@@ -1 +1 @@
|
||||
<view><image class="topBg absolute" src="{{a}}" mode="widthFix"></image><view class="navTitle fixed" style="{{b}}">个人中心</view><view wx:if="{{c}}" class="personalInfoC relative flex" style="{{j}}" bindtap="{{k}}"><image class="avatar" src="{{d}}" mode="aspectFill"></image><view class="flex1"><view class="nickname">{{e}}</view><view class="mobile">手机号:{{f}}</view><view wx:if="{{g}}" class="mobile">{{h}}会员</view></view><image class="arrow" src="{{i}}" mode="widthFix"></image></view><view wx:if="{{l}}" class="numList relative flex"><view class="item flex1 flexColumnCenter" bindtap="{{n}}"><view class="num">{{m}}</view><view class="title">评论回复</view></view><view class="item flex1 flexColumnCenter" bindtap="{{p}}"><view class="num">{{o}}</view><view class="title">关注收藏</view></view><view class="item flex1 flexColumnCenter" bindtap="{{r}}"><view class="num">{{q}}</view><view class="title">我的点赞</view></view></view><view class="vipC relative" bindtap="{{t}}"><image class="icon" src="{{s}}" mode="widthFix"></image></view><view class="menuList relative"><view class="list"><view wx:for="{{v}}" wx:for-item="item" wx:key="c" class="item relative flex" bindtap="{{item.d}}"><image class="icon" src="{{item.a}}" mode="aspectFit"></image><view class="title flex1">{{item.b}}</view><image class="arrow" src="{{w}}" mode="widthFix"></image></view></view></view><uni-popup wx:if="{{z}}" class="r" u-s="{{['d']}}" u-r="popup" u-i="dd5840e4-0" bind:__l="__l" u-p="{{z}}"><view class="popup"><image class="icon" src="{{x}}" mode="widthFix" show-menu-by-longpress></image></view></uni-popup></view>
|
||||
<view><image class="topBg absolute" src="{{a}}" mode="widthFix"></image><view class="navTitle fixed" style="{{b}}">个人中心</view><view wx:if="{{c}}" class="personalInfoC relative flex" style="{{j}}" bindtap="{{k}}"><image class="avatar" src="{{d}}" mode="aspectFill"></image><view class="flex1"><view class="nickname">{{e}}</view><view class="mobile">手机号:{{f}}</view><view wx:if="{{g}}" class="mobile">{{h}}会员</view></view><image class="arrow" src="{{i}}" mode="widthFix"></image></view><view wx:if="{{l}}" class="numList relative flex"><view class="item flex1 flexColumnCenter" bindtap="{{n}}"><view class="num">{{m}}</view><view class="title">评论回复</view></view><view class="item flex1 flexColumnCenter" bindtap="{{p}}"><view class="num">{{o}}</view><view class="title">关注收藏</view></view><view class="item flex1 flexColumnCenter" bindtap="{{r}}"><view class="num">{{q}}</view><view class="title">我的点赞</view></view></view><view class="vipC relative" bindtap="{{t}}"><image class="icon" src="{{s}}" mode="widthFix"></image></view><view class="menuList relative"><view class="list"><view wx:for="{{v}}" wx:for-item="item" wx:key="c" class="item relative flex" bindtap="{{item.d}}"><image class="icon" src="{{item.a}}" mode="aspectFit"></image><view class="title flex1">{{item.b}}</view><image class="arrow" src="{{w}}" mode="widthFix"></image></view></view></view><uni-popup wx:if="{{z}}" class="r" u-s="{{['d']}}" u-r="popup" u-i="dd5840e4-0" bind:__l="__l" u-p="{{z}}"><view class="popup"><image class="icon" src="{{x}}" mode="widthFix" show-menu-by-longpress></image><view class="title">企业二维码</view></view></uni-popup></view>
|
||||
@@ -1 +1 @@
|
||||
page{background-color:#000}.topBg{top:0;left:0;width:100%;height:auto}.navTitle{left:0;margin:0 23rpx;font-size:36rpx;font-weight:700;color:#fff}.personalInfoC{padding:0 25rpx 0 30rpx}.personalInfoC .avatar{margin-right:11rpx;width:130rpx;height:130rpx;border-radius:50%;border:solid 3rpx white}.personalInfoC .nickname{font-size:32rpx;font-weight:700;color:#fff}.personalInfoC .mobile{margin-top:6rpx;font-size:24rpx;font-weight:500;color:#f3c368}.personalInfoC .arrow{width:15rpx;height:auto}.numList .item{padding:25rpx 0}.numList .item .num{font-size:48rpx;font-weight:800;color:#fff}.numList .item .title{font-size:24rpx;font-weight:500;color:#ffecd3}.vipC{margin:0 45rpx}.vipC .icon{display:block;width:100%;height:auto}.menuList{background-color:#fff;margin:0 25rpx;padding:0 20rpx 220rpx;border-radius:20rpx}.menuList .item{height:100rpx;padding:0 18rpx 0 20rpx;border-bottom:solid 1rpx #F7F7F7;font-size:28rpx;color:#222}.menuList .item .icon{margin-right:16rpx;width:44rpx;height:44rpx}.menuList .item .arrow{width:11rpx;height:auto}.menuList .item button{top:0;left:0;width:100%;height:100%}.popup .icon{width:560rpx;height:auto}
|
||||
page{background-color:#000}.topBg{top:0;left:0;width:100%;height:auto}.navTitle{left:0;margin:0 23rpx;font-size:36rpx;font-weight:700;color:#fff}.personalInfoC{padding:0 25rpx 0 30rpx}.personalInfoC .avatar{margin-right:11rpx;width:130rpx;height:130rpx;border-radius:50%;border:solid 3rpx white}.personalInfoC .nickname{font-size:32rpx;font-weight:700;color:#fff}.personalInfoC .mobile{margin-top:6rpx;font-size:24rpx;font-weight:500;color:#f3c368}.personalInfoC .arrow{width:15rpx;height:auto}.numList .item{padding:25rpx 0}.numList .item .num{font-size:48rpx;font-weight:800;color:#fff}.numList .item .title{font-size:24rpx;font-weight:500;color:#ffecd3}.vipC{margin:0 45rpx}.vipC .icon{display:block;width:100%;height:auto}.menuList{background-color:#fff;margin:0 25rpx;padding:0 20rpx 220rpx;border-radius:20rpx}.menuList .item{height:100rpx;padding:0 18rpx 0 20rpx;border-bottom:solid 1rpx #F7F7F7;font-size:28rpx;color:#222}.menuList .item .icon{margin-right:16rpx;width:44rpx;height:44rpx}.menuList .item .arrow{width:11rpx;height:auto}.menuList .item button{top:0;left:0;width:100%;height:100%}.popup{background-color:#fff}.popup .icon{width:560rpx;height:auto}.popup .title{margin-top:10rpx;border-radius:10rpx;text-align:center}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),i=require("../../request/api.js"),m=require("../../common/assets.js"),t={data:()=>({navH:e.inject("navHeight"),memberInfo:null,questionList:["信息纷杂难辨真伪?","信息纷杂难辨真伪?","无法把握宏观趋势与行业动向?"],privilegeList:[{icon:"/pagesMine/static/icon/vip/depthReport.png",icon_v:"/pagesMine/static/icon/vip/depthReport_v.png",title:"深度研报",tips:"行业/公司独家分析"},{icon:"/pagesMine/static/icon/vip/strategicInsight.png",icon_v:"/pagesMine/static/icon/vip/strategicInsight_v.png",title:"策略洞察",tips:"赛道趋势+拐点信号"},{icon:"/pagesMine/static/icon/vip/dataTool.png",icon_v:"/pagesMine/static/icon/vip/dataTool_v.png",title:"数据工具",tips:"行业/公司独家分析"},{icon:"/pagesMine/static/icon/vip/dataTool.png",icon_v:"/pagesMine/static/icon/vip/intelligentScreening_v.png",title:"智能筛选",tips:"按需定制标的列表"},{icon:"/pagesMine/static/icon/vip/decisionSupport.png",icon_v:"/pagesMine/static/icon/vip/decisionSupport_v.png",title:"决策辅助",tips:"关键因子评分系统"},{icon:"/pagesMine/static/icon/vip/expertMeeting.png",icon_v:"/pagesMine/static/icon/vip/expertMeeting_v.png",title:"专家闭门会",tips:"深度交流机会"},{icon:"/pagesMine/static/icon/vip/dailyReport.png",icon_v:"/pagesMine/static/icon/vip/dailyReport_v.png",title:"日报周报",tips:"研判速递、节奏掌控"},{icon:"/pagesMine/static/icon/vip/specialColumn.png",icon_v:"/pagesMine/static/icon/vip/specialColumn_v.png",title:"专题专栏",tips:"核心团队观点集结"},{icon:"/pagesMine/static/icon/vip/continuouslyUnlock.png",icon_v:"/pagesMine/static/icon/vip/continuouslyUnlock_v.png",title:"持续解锁",tips:"不定期上线新功能"}]}),onLoad(){this.getMemberStatus()},methods:{clickVipMeal(){e.index.navigateTo({url:"/pagesMine/vipMeal/vipMeal"})},getMemberStatus(){i.membershipStatus().then((i=>{200==i.code?this.memberInfo=i.data:e.index.showToast({title:i.message,icon:"none"})})).catch((e=>{}))}}};if(!Array){e.resolveComponent("navBar")()}Math;const n=e._export_sfc(t,[["render",function(i,t,n,o,s,r){return e.e({a:e.p({leftText:"会员中心"}),b:m._imports_0,c:s.memberInfo},s.memberInfo?e.e({d:s.memberInfo.is_member},s.memberInfo.is_member?{e:m._imports_1$9}:{f:m._imports_2$8},{g:s.memberInfo.is_member},s.memberInfo.is_member?{h:e.t(s.memberInfo.subscription_type),i:e.t(s.memberInfo.member_expire_date)}:{},{j:s.memberInfo.is_member},s.memberInfo.is_member?{k:m._imports_3$8}:{l:m._imports_4$8},{m:s.memberInfo.is_member},s.memberInfo.is_member?{n:m._imports_5$5}:{o:m._imports_6$1},{p:e.n("impormant "+(s.memberInfo.is_member?"vip":"")),q:s.memberInfo.is_member},s.memberInfo.is_member?{r:m._imports_7}:{s:m._imports_8$1},{t:s.memberInfo.is_member},s.memberInfo.is_member?{v:m._imports_9$2}:{w:m._imports_10$3},{x:e.n("impormant "+(s.memberInfo.is_member?"vip":"")),y:e.n("impormant "+(s.memberInfo.is_member?"vip":"")),z:s.memberInfo.is_member},s.memberInfo.is_member?{A:m._imports_11$3}:{B:m._imports_12$3},{C:s.memberInfo.is_member},s.memberInfo.is_member?{D:m._imports_13$3}:{E:m._imports_14$2},{F:m._imports_15$1,G:e.f(s.questionList,((i,m,t)=>({a:e.t(i),b:m}))),H:e.n("item "+(s.memberInfo.is_member?"vip":"")),I:s.memberInfo.is_member},s.memberInfo.is_member?{J:m._imports_3$8}:{K:m._imports_4$8},{L:s.memberInfo.is_member},s.memberInfo.is_member?{M:m._imports_5$5}:{N:m._imports_6$1},{O:m._imports_16$1,P:s.memberInfo.is_member},s.memberInfo.is_member?{Q:m._imports_3$8}:{R:m._imports_4$8},{S:s.memberInfo.is_member},s.memberInfo.is_member?{T:m._imports_5$5}:{},{U:m._imports_6$1,V:m._imports_17$1,W:s.memberInfo.is_member},s.memberInfo.is_member?{X:m._imports_3$8}:{Y:m._imports_4$8},{Z:s.memberInfo.is_member},s.memberInfo.is_member?{aa:m._imports_5$5}:{ab:m._imports_6$1},{ac:e.f(s.privilegeList,((i,m,t)=>({a:s.memberInfo.is_member?i.icon_v:i.icon,b:e.t(i.title),c:e.t(i.tips),d:m}))),ad:e.n("privilegeList flexWrap "+(s.memberInfo.is_member?"vip":"")),ae:e.s("margin-top:"+s.navH+"px;")}):{},{af:e.o((e=>r.clickVipMeal()))})}]]);wx.createPage(n);
|
||||
"use strict";const e=require("../../common/vendor.js"),i=require("../../request/api.js"),m=require("../../common/assets.js"),t={data:()=>({navH:e.inject("navHeight"),memberInfo:null,questionList:["信息纷杂难辨真伪?","信息纷杂难辨真伪?","无法把握宏观趋势与行业动向?"],privilegeList:[{icon:"/pagesMine/static/icon/vip/depthReport.png",icon_v:"/pagesMine/static/icon/vip/depthReport_v.png",title:"深度研报",tips:"行业/公司独家分析"},{icon:"/pagesMine/static/icon/vip/strategicInsight.png",icon_v:"/pagesMine/static/icon/vip/strategicInsight_v.png",title:"策略洞察",tips:"赛道趋势+拐点信号"},{icon:"/pagesMine/static/icon/vip/dataTool.png",icon_v:"/pagesMine/static/icon/vip/dataTool_v.png",title:"数据工具",tips:"行业/公司独家分析"},{icon:"/pagesMine/static/icon/vip/dataTool.png",icon_v:"/pagesMine/static/icon/vip/intelligentScreening_v.png",title:"智能筛选",tips:"按需定制标的列表"},{icon:"/pagesMine/static/icon/vip/decisionSupport.png",icon_v:"/pagesMine/static/icon/vip/decisionSupport_v.png",title:"决策辅助",tips:"关键因子评分系统"},{icon:"/pagesMine/static/icon/vip/expertMeeting.png",icon_v:"/pagesMine/static/icon/vip/expertMeeting_v.png",title:"专家闭门会",tips:"深度交流机会"},{icon:"/pagesMine/static/icon/vip/dailyReport.png",icon_v:"/pagesMine/static/icon/vip/dailyReport_v.png",title:"日报周报",tips:"研判速递、节奏掌控"},{icon:"/pagesMine/static/icon/vip/specialColumn.png",icon_v:"/pagesMine/static/icon/vip/specialColumn_v.png",title:"专题专栏",tips:"核心团队观点集结"},{icon:"/pagesMine/static/icon/vip/continuouslyUnlock.png",icon_v:"/pagesMine/static/icon/vip/continuouslyUnlock_v.png",title:"持续解锁",tips:"不定期上线新功能"}]}),onLoad(){this.getMemberStatus()},methods:{clickVipMeal(){e.index.navigateTo({url:"/pagesMine/vipMeal/vipMeal"})},getMemberStatus(){i.membershipStatus().then((i=>{200==i.code?this.memberInfo=i.data:e.index.showToast({title:i.message,icon:"none"})})).catch((e=>{}))}}};if(!Array){e.resolveComponent("navBar")()}Math;const n=e._export_sfc(t,[["render",function(i,t,n,o,s,r){return e.e({a:e.p({leftText:"会员中心"}),b:m._imports_0,c:s.memberInfo},s.memberInfo?e.e({d:s.memberInfo.is_member},s.memberInfo.is_member?{e:m._imports_1$9}:{f:m._imports_2$8},{g:s.memberInfo.is_member},s.memberInfo.is_member?{h:e.t(s.memberInfo.subscription_type),i:e.t(s.memberInfo.member_expire_date)}:{},{j:s.memberInfo.is_member},s.memberInfo.is_member?{k:m._imports_3$8}:{l:m._imports_4$8},{m:s.memberInfo.is_member},s.memberInfo.is_member?{n:m._imports_5$5}:{o:m._imports_6$1},{p:e.n("impormant "+(s.memberInfo.is_member?"vip":"")),q:s.memberInfo.is_member},s.memberInfo.is_member?{r:m._imports_7}:{s:m._imports_8$1},{t:s.memberInfo.is_member},s.memberInfo.is_member?{v:m._imports_9$2}:{w:m._imports_10$3},{x:e.n("impormant "+(s.memberInfo.is_member?"vip":"")),y:e.n("impormant "+(s.memberInfo.is_member?"vip":"")),z:s.memberInfo.is_member},s.memberInfo.is_member?{A:m._imports_11$3}:{B:m._imports_12$3},{C:s.memberInfo.is_member},s.memberInfo.is_member?{D:m._imports_13$2}:{E:m._imports_14$2},{F:m._imports_15$1,G:e.f(s.questionList,((i,m,t)=>({a:e.t(i),b:m}))),H:e.n("item "+(s.memberInfo.is_member?"vip":"")),I:s.memberInfo.is_member},s.memberInfo.is_member?{J:m._imports_3$8}:{K:m._imports_4$8},{L:s.memberInfo.is_member},s.memberInfo.is_member?{M:m._imports_5$5}:{N:m._imports_6$1},{O:m._imports_16$1,P:s.memberInfo.is_member},s.memberInfo.is_member?{Q:m._imports_3$8}:{R:m._imports_4$8},{S:s.memberInfo.is_member},s.memberInfo.is_member?{T:m._imports_5$5}:{},{U:m._imports_6$1,V:m._imports_17$1,W:s.memberInfo.is_member},s.memberInfo.is_member?{X:m._imports_3$8}:{Y:m._imports_4$8},{Z:s.memberInfo.is_member},s.memberInfo.is_member?{aa:m._imports_5$5}:{ab:m._imports_6$1},{ac:e.f(s.privilegeList,((i,m,t)=>({a:s.memberInfo.is_member?i.icon_v:i.icon,b:e.t(i.title),c:e.t(i.tips),d:m}))),ad:e.n("privilegeList flexWrap "+(s.memberInfo.is_member?"vip":"")),ae:e.s("margin-top:"+s.navH+"px;")}):{},{af:e.o((e=>r.clickVipMeal()))})}]]);wx.createPage(n);
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),m=require("../../request/api.js"),r=require("../../common/assets.js"),t={data:()=>({navH:e.inject("navHeight"),memberInfo:null,privilegeList:["高效选股工具","股票基金明星榜单","定期专属晨报、股票动态","独家产业研报","个股产业分析","股票、基金基础指标","7x24 财经直播"]}),onLoad(){this.getMemberStatus()},methods:{clickJoinVip(){this.memberInfo.is_member||e.index.showModal({content:"请点击下方按钮复制链接并在浏览器中打开以完成会员购买流程",showCancel:!1,confirmText:"复制",success(m){m.confirm&&e.index.setClipboardData({data:"https://valuefrontier.cn/home/pages/account/subscription"})}})},getMemberStatus(){m.membershipStatus().then((m=>{200==m.code?this.memberInfo=m.data:e.index.showToast({title:m.message,icon:"none"})})).catch((e=>{}))}}};if(!Array){e.resolveComponent("navBar")()}Math;const i=e._export_sfc(t,[["render",function(m,t,i,o,s,n){return e.e({a:e.p({leftText:"会员中心"}),b:r._imports_0,c:s.memberInfo},s.memberInfo?e.e({d:s.memberInfo.is_member},s.memberInfo.is_member?{e:r._imports_1$9}:{f:r._imports_2$8},{g:s.memberInfo.is_member},s.memberInfo.is_member?{h:e.t(s.memberInfo.subscription_type),i:e.t(s.memberInfo.member_expire_date)}:{},{j:s.memberInfo.is_member},s.memberInfo.is_member?{k:r._imports_3$8}:{l:r._imports_4$8},{m:s.memberInfo.is_member},s.memberInfo.is_member?{n:r._imports_5$5}:{o:r._imports_6$1},{p:e.f(s.privilegeList,((m,t,i)=>e.e({a:e.t(m),b:0==t||1==t||2==t},0==t||1==t||2==t?{c:r._imports_7$1}:{},{d:3==t||4==t},3==t||4==t?e.e({e:3==t},{},{f:4==t},{}):{},{g:5==t||6==t},5==t||6==t?{h:r._imports_8$2}:{},{i:t}))),q:r._imports_8$2,r:e.n("privilegeList "+(s.memberInfo.is_member?"vip":"")),s:e.s("margin-top:"+s.navH+"px;")}):{},{t:s.memberInfo},s.memberInfo?{v:e.t(s.memberInfo.is_member?"您已是年度VIP":"立即加入年度VIP"),w:e.o((e=>n.clickJoinVip()))}:{})}]]);wx.createPage(i);
|
||||
"use strict";const e=require("../../common/vendor.js"),m=require("../../request/api.js"),r=require("../../common/assets.js"),t={data:()=>({navH:e.inject("navHeight"),memberInfo:null,privilegeList:["事件关联股票深度分析","历史事件智能对比复盘","事件概念关联与挖掘","概念板块个股追踪","概念深深度研报与解读","个股异动实时预警","事件传导链路智能分析","概念演变时间轴追溯","个股全方位深度研究","价小前投研助手无限使用","新功能优先体验权","专属客服一对一服务"]}),onLoad(){this.getMemberStatus()},methods:{clickJoinVip(){this.memberInfo.is_member||e.index.showModal({content:"请点击下方按钮复制链接并在浏览器中打开以完成会员购买流程",showCancel:!1,confirmText:"复制",success(m){m.confirm&&e.index.setClipboardData({data:"https://valuefrontier.cn/home/pages/account/subscription"})}})},getMemberStatus(){m.membershipStatus().then((m=>{200==m.code?this.memberInfo=m.data:e.index.showToast({title:m.message,icon:"none"})})).catch((e=>{}))}}};if(!Array){e.resolveComponent("navBar")()}Math;const i=e._export_sfc(t,[["render",function(m,t,i,o,s,n){return e.e({a:e.p({leftText:"会员中心"}),b:r._imports_0,c:s.memberInfo},s.memberInfo?e.e({d:s.memberInfo.is_member},s.memberInfo.is_member?{e:r._imports_1$9}:{f:r._imports_2$8},{g:s.memberInfo.is_member},s.memberInfo.is_member?{h:e.t(s.memberInfo.subscription_type),i:e.t(s.memberInfo.member_expire_date)}:{},{j:s.memberInfo.is_member},s.memberInfo.is_member?{k:r._imports_3$8}:{l:r._imports_4$8},{m:s.memberInfo.is_member},s.memberInfo.is_member?{n:r._imports_5$5}:{o:r._imports_6$1},{p:e.f(s.privilegeList,((m,t,i)=>e.e({a:e.t(m),b:t>5},t>5?{c:r._imports_7$1}:{d:r._imports_8$2},{e:t}))),q:r._imports_8$2,r:e.n("privilegeList "+(s.memberInfo.is_member?"vip":"")),s:e.s("margin-top:"+s.navH+"px;")}):{},{t:s.memberInfo},s.memberInfo?{v:e.t(s.memberInfo.is_member?"您已是年度VIP":"立即加入年度VIP"),w:e.o((e=>n.clickJoinVip()))}:{})}]]);wx.createPage(i);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view><nav-bar wx:if="{{a}}" u-i="2f528ea3-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view wx:if="{{c}}" class="vipC" style="{{s}}"><view class="vipInfoC relative"><image wx:if="{{d}}" class="bg" src="{{e}}" mode="widthFix"></image><image wx:else class="bg" src="{{f}}" mode="widthFix"></image><view wx:if="{{g}}" class="infoC vip absolute"><view class="title">尊贵的{{h}}VIP会员</view><view class="tips">会员有效期至:{{i}}</view></view><view wx:else class="infoC absolute"><view class="title">价值前沿</view><view class="tips">您还不是会员 加入尊享N项服务</view></view></view><view class="privilegeCompareC relative"><view class="titleC flexCenter"><image wx:if="{{j}}" class="icon" src="{{k}}" mode="widthFix"></image><image wx:else class="icon" src="{{l}}" mode="widthFix"></image><view class="title">特权对比</view><image wx:if="{{m}}" class="icon" src="{{n}}" mode="widthFix"></image><image wx:else class="icon" src="{{o}}" mode="widthFix"></image></view><view class="{{r}}"><view class="header flex"><view class="privilege item">专属特权</view><view class="item free">普通免费</view><view class="item vip">VIP会员</view></view><view class="list"><view wx:for="{{p}}" wx:for-item="item" wx:key="i" class="item flex"><view class="optionItem privilege flex">{{item.a}}</view><view class="optionItem free flexCenter"><block wx:if="{{item.b}}"><image class="notContain" src="{{item.c}}" mode="widthFix"></image></block><block wx:if="{{item.d}}"><block wx:if="{{item.e}}">限制查看数量</block><block wx:if="{{item.f}}">每日查看2只</block></block><block wx:if="{{item.g}}"><image class="contain" src="{{item.h}}" mode="widthFix"></image></block></view><view class="optionItem vip flexCenter"><image class="contain" src="{{q}}" mode="widthFix"></image></view></view></view></view></view></view><view wx:if="{{t}}" class="joinVipC fixed" bindtap="{{w}}">{{v}}</view></view>
|
||||
<view><nav-bar wx:if="{{a}}" u-i="2f528ea3-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view wx:if="{{c}}" class="vipC" style="{{s}}"><view class="vipInfoC relative"><image wx:if="{{d}}" class="bg" src="{{e}}" mode="widthFix"></image><image wx:else class="bg" src="{{f}}" mode="widthFix"></image><view wx:if="{{g}}" class="infoC vip absolute"><view class="title">尊贵的{{h}}VIP会员</view><view class="tips">会员有效期至:{{i}}</view></view><view wx:else class="infoC absolute"><view class="title">价值前沿</view><view class="tips">您还不是会员 加入尊享N项服务</view></view></view><view class="privilegeCompareC relative"><view class="titleC flexCenter"><image wx:if="{{j}}" class="icon" src="{{k}}" mode="widthFix"></image><image wx:else class="icon" src="{{l}}" mode="widthFix"></image><view class="title">特权对比</view><image wx:if="{{m}}" class="icon" src="{{n}}" mode="widthFix"></image><image wx:else class="icon" src="{{o}}" mode="widthFix"></image></view><view class="{{r}}"><view class="header flex"><view class="privilege item">专属特权</view><view class="item free">pro会员</view><view class="item vip">max会员</view></view><view class="list"><view wx:for="{{p}}" wx:for-item="item" wx:key="e" class="item flex"><view class="optionItem privilege flex">{{item.a}}</view><view class="optionItem free flexCenter"><block wx:if="{{item.b}}"><image class="notContain" src="{{item.c}}" mode="widthFix"></image></block><block wx:else><image class="contain" src="{{item.d}}" mode="widthFix"></image></block></view><view class="optionItem vip flexCenter"><image class="contain" src="{{q}}" mode="widthFix"></image></view></view></view></view></view></view><view wx:if="{{t}}" class="joinVipC fixed" bindtap="{{w}}">{{v}}</view></view>
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../common/vendor.js");let o="";o="https://api.valuefrontier.cn:5002",exports.get=function(n,i){return new Promise(((t,a)=>{let r=e.index.getStorageSync("token");e.index.showLoading({title:"加载中"});let d=o;(n.indexOf("concept-api")>-1||n.indexOf("news-api")>-1||n.indexOf("report-api")>-1)&&(d="https://valuefrontier.cn"),e.index.request({url:d+n,data:i,header:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded",Authorization:r?"Bearer "+r:""},method:"GET",success:o=>{console.log(o),e.index.hideLoading(),401==o.data.code?(e.index.removeStorageSync("token"),e.index.navigateTo({url:"/pages/login/login"})):t(o.data)},fail:o=>{e.index.hideLoading(),e.index.showToast({title:"请求失败",icon:"error"}),a(o.response)}})}))},exports.post=function(n,i){return new Promise(((t,a)=>{let r=e.index.getStorageSync("token"),d=0,s=0;if(i&&(d=i.isJson),i&&(s=i.isFile),e.index.showLoading({title:"加载中"}),s){let r=e.index.getStorageSync("token");e.index.uploadFile({url:o+n,filePath:i.avatar,name:"avatar",header:{Authorization:r?"Bearer "+r:""},formData:i,success:o=>{console.log(o),e.index.hideLoading(),401==o.data.code?(e.index.removeStorageSync("token"),e.index.navigateTo({url:"/pages/login/login"}),a(o.data)):t(o.data)},fail:o=>{console.log("上传失败"+o.errMsg),e.index.hideLoading(),e.index.showToast({title:"请求失败",icon:"error"}),a()}})}else{let l=o;n.indexOf("concept-api")>-1&&(l="https://valuefrontier.cn"),e.index.request({url:l+n,data:i,header:{Accept:"application/json","Content-Type":d?"application/json":s?"multipart/form-data":"application/x-www-form-urlencoded",Authorization:r?"Bearer "+r:""},method:"POST",success:o=>{e.index.hideLoading(),i&&i.isNotNeedLogin||(console.log(o.data),401==o.data.code?(e.index.removeStorageSync("token"),e.index.navigateTo({url:"/pages/login/login"}),a(o.data)):t(o.data))},fail:o=>{e.index.hideLoading(),e.index.showToast({title:"请求失败",icon:"error"}),a(o.response)}})}}))};
|
||||
"use strict";const e=require("../common/vendor.js");let o="";o="https://api.valuefrontier.cn:5002",exports.get=function(n,i){return new Promise(((t,a)=>{let r=e.index.getStorageSync("token");e.index.showLoading({title:"加载中"});let d=o;(n.indexOf("concept-api")>-1||n.indexOf("news-api")>-1||n.indexOf("report-api")>-1)&&(d="https://api.valuefrontier.cn"),e.index.request({url:d+n,data:i,header:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded",Authorization:r?"Bearer "+r:""},method:"GET",success:o=>{console.log(o),e.index.hideLoading(),401==o.data.code?(e.index.removeStorageSync("token"),e.index.navigateTo({url:"/pages/login/login"})):t(o.data)},fail:o=>{e.index.hideLoading(),e.index.showToast({title:"请求失败",icon:"error"}),a(o.response)}})}))},exports.post=function(n,i){return new Promise(((t,a)=>{let r=e.index.getStorageSync("token"),d=0,s=0;if(i&&(d=i.isJson),i&&(s=i.isFile),e.index.showLoading({title:"加载中"}),s){let r=e.index.getStorageSync("token");e.index.uploadFile({url:o+n,filePath:i.avatar,name:"avatar",header:{Authorization:r?"Bearer "+r:""},formData:i,success:o=>{console.log(o),e.index.hideLoading(),401==o.data.code?(e.index.removeStorageSync("token"),e.index.navigateTo({url:"/pages/login/login"}),a(o.data)):t(o.data)},fail:o=>{console.log("上传失败"+o.errMsg),e.index.hideLoading(),e.index.showToast({title:"请求失败",icon:"error"}),a()}})}else{let l=o;n.indexOf("concept-api")>-1&&(l="https://api.valuefrontier.cn"),e.index.request({url:l+n,data:i,header:{Accept:"application/json","Content-Type":d?"application/json":s?"multipart/form-data":"application/x-www-form-urlencoded",Authorization:r?"Bearer "+r:""},method:"POST",success:o=>{e.index.hideLoading(),i&&i.isNotNeedLogin||(console.log(o.data),401==o.data.code?(e.index.removeStorageSync("token"),e.index.navigateTo({url:"/pages/login/login"}),a(o.data)):t(o.data))},fail:o=>{e.index.hideLoading(),e.index.showToast({title:"请求失败",icon:"error"}),a(o.response)}})}}))};
|
||||
|
||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 1001 B After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 998 B After Width: | Height: | Size: 2.5 KiB |
BIN
unpackage/dist/build/mp-weixin/static/icon/home/industrySearch.png
vendored
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 371 B After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"conceptNewsDetails.js","sources":["pages/concept/conceptNewsDetails/conceptNewsDetails.vue","pages/concept/conceptNewsDetails/conceptNewsDetails.vue?type=page"],"sourcesContent":["<template>\n\t<view>\n\t\t<navBar leftText=\"历史时间轴\" :hideNavBg=\"true\"></navBar>\n\t\t<image class=\"topBg absolute\" src=\"/static/image/index/conceptTopBg.png\" mode=\"widthFix\"></image>\n\t\t<view v-if=\"newsInfo\" class=\"contentC fixed\" :style=\"'top: '+navH+'px;'\">\n\t\t\t<view class=\"title\">{{newsInfo.title}}</view>\n\t\t\t<view class=\"labelTimeC \">\n\t\t\t\t<text class=\"time\">{{getLocalTime(newsInfo.published_time)}}</text>\n\t\t\t</view>\n\t\t\t<view class=\"content\">\n\t\t\t\t<ua-markdown :source=\"newsInfo.detail\" />\n\t\t\t</view>\n\t\t</view>\n\t</view>\n</template>\n\n<script>\n\timport { inject } from 'vue';\n\timport { getLocaleTime } from '@/utils/util';\n\t\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tnavH:inject('navHeight'),\n\t\t\t\tnewsInfo:null,\n\t\t\t\tgetLocalTime:getLocaleTime\n\t\t\t}\n\t\t},\n\t\tonLoad(e) {\n\t\t\tthis.newsInfo = JSON.parse(decodeURIComponent(e.info)) \n\t\t}\n\t}\n\t\n</script>\n\n<style lang=\"less\">\npage \n{\n\tbackground-color: #070707;\n}\n.topBg \n{\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: auto;\n}\t \n.contentC \n{\n\tbackground-color: #FFF9F5;\n\tmargin: 20rpx 25rpx 0;\n\tpadding: 28rpx 30rpx;\n\tleft: 0;\n\tright: 0;\n\tbottom: 100rpx;\n\tborder-radius: 10rpx;\n\toverflow-y: scroll;\n\t.title \n\t{\n\t\tmargin: 0 10rpx;\n\t\tfont-size: 30rpx;\n\t\tfont-weight: bold;\n\t\tcolor: #2B2B2B;\n\t}\n\t.labelTimeC {\n\t\tmargin: 0 10rpx;\n\t\t.time \n\t\t{\n\t\t\tfont-size: 24rpx;\n\t\t\tfont-weight: 500;\n\t\t\tcolor: #666;\n\t\t}\n\t}\n\t.content \n\t{\n\t\tmargin-top: 30rpx;\n\t}\n}\n</style>\n","import MiniProgramPage from '/Users/shangzhengjie/Desktop/JiaZhiQianYan/pages/concept/conceptNewsDetails/conceptNewsDetails.vue'\nwx.createPage(MiniProgramPage)"],"names":["inject","getLocaleTime"],"mappings":";;;;AAoBC,MAAK,YAAU;AAAA,EACd,OAAO;AACN,WAAO;AAAA,MACN,MAAKA,cAAM,OAAC,WAAW;AAAA,MACvB,UAAS;AAAA,MACT,cAAaC,WAAY;AAAA,IAC1B;AAAA,EACA;AAAA,EACD,OAAO,GAAG;AACT,SAAK,WAAW,KAAK,MAAM,mBAAmB,EAAE,IAAI,CAAC;AAAA,EACtD;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC9BD,GAAG,WAAW,eAAe;"}
|
||||
2
unpackage/dist/dev/mp-weixin/app.js
vendored
@@ -20,9 +20,9 @@ if (!Math) {
|
||||
"./pages/login/login.js";
|
||||
"./pages/login/codeLogin/codeLogin.js";
|
||||
"./pages/mine/web/web.js";
|
||||
"./pages/index/conceptNewsDetails/conceptNewsDetails.js";
|
||||
"./pages/concept/historicalTimeline/historicalTimeline.js";
|
||||
"./pages/concept/hotStock/hotStock.js";
|
||||
"./pages/concept/conceptNewsDetails/conceptNewsDetails.js";
|
||||
"./pagesMine/vip/vip.js";
|
||||
"./pagesMine/vipMeal/vipMeal.js";
|
||||
}
|
||||
|
||||
10
unpackage/dist/dev/mp-weixin/app.json
vendored
@@ -17,9 +17,9 @@
|
||||
"pages/login/login",
|
||||
"pages/login/codeLogin/codeLogin",
|
||||
"pages/mine/web/web",
|
||||
"pages/index/conceptNewsDetails/conceptNewsDetails",
|
||||
"pages/concept/historicalTimeline/historicalTimeline",
|
||||
"pages/concept/hotStock/hotStock"
|
||||
"pages/concept/hotStock/hotStock",
|
||||
"pages/concept/conceptNewsDetails/conceptNewsDetails"
|
||||
],
|
||||
"subPackages": [
|
||||
{
|
||||
@@ -49,6 +49,12 @@
|
||||
"text": "投资",
|
||||
"pagePath": "pages/invest/invest"
|
||||
},
|
||||
{
|
||||
"iconPath": "/static/icon/tabbar/invest.png",
|
||||
"selectedIconPath": "/static/icon/tabbar/invest_s.png",
|
||||
"text": "投资",
|
||||
"pagePath": "pages/concept/concept"
|
||||
},
|
||||
{
|
||||
"iconPath": "/static/icon/tabbar/mine.png",
|
||||
"selectedIconPath": "/static/icon/tabbar/mine_s.png",
|
||||
|
||||
14
unpackage/dist/dev/mp-weixin/common/assets.js
vendored
@@ -9,10 +9,9 @@ const _imports_4$8 = "/static/icon/home/comment.png";
|
||||
const _imports_10$3 = "/static/icon/home/follow.png";
|
||||
const _imports_2$7 = "/static/icon/backBlack.png";
|
||||
const _imports_9$2 = "/static/icon/home/dateRange.png";
|
||||
const _imports_10$2 = "/static/icon/home/search.png";
|
||||
const _imports_11$3 = "/static/icon/home/delete.png";
|
||||
const _imports_12$3 = "/static/icon/home/industry_s.png";
|
||||
const _imports_13$3 = "/static/icon/home/level_s.png";
|
||||
const _imports_10$2 = "/static/icon/home/industrySearch.png";
|
||||
const _imports_11$3 = "/static/icon/home/industry_s.png";
|
||||
const _imports_12$3 = "/static/icon/home/level_s.png";
|
||||
const _imports_2$6 = "/static/icon/invest/calendar.png";
|
||||
const _imports_3$6 = "/static/icon/invest/upArrow.png";
|
||||
const _imports_4$7 = "/static/icon/invest/downArrow.png";
|
||||
@@ -105,10 +104,9 @@ exports._imports_12 = _imports_12$3;
|
||||
exports._imports_12$1 = _imports_12$2;
|
||||
exports._imports_12$2 = _imports_12$1;
|
||||
exports._imports_12$3 = _imports_12;
|
||||
exports._imports_13 = _imports_13$3;
|
||||
exports._imports_13$1 = _imports_13$1;
|
||||
exports._imports_13$2 = _imports_13$2;
|
||||
exports._imports_13$3 = _imports_13;
|
||||
exports._imports_13 = _imports_13$1;
|
||||
exports._imports_13$1 = _imports_13$2;
|
||||
exports._imports_13$2 = _imports_13;
|
||||
exports._imports_14 = _imports_14$1;
|
||||
exports._imports_14$1 = _imports_14$2;
|
||||
exports._imports_14$2 = _imports_14;
|
||||
|
||||
@@ -7051,9 +7051,9 @@ function isConsoleWritable() {
|
||||
return isWritable;
|
||||
}
|
||||
function initRuntimeSocketService() {
|
||||
const hosts = "127.0.0.1,192.168.2.86";
|
||||
const hosts = "127.0.0.1,192.168.2.86,169.254.44.95";
|
||||
const port = "8090";
|
||||
const id = "mp-weixin_8-Qn3K";
|
||||
const id = "mp-weixin_IV83eD";
|
||||
const lazy = typeof swan !== "undefined";
|
||||
let restoreError = lazy ? () => {
|
||||
} : initOnError();
|
||||
|
||||
@@ -29,12 +29,12 @@ Component({
|
||||
"iconPath": "/static/icon/tabbar/invest.png",
|
||||
"selectedIconPath": "/static/icon/tabbar/invest_s.png"
|
||||
},
|
||||
// {
|
||||
// "pagePath": "/pages/concept/concept",
|
||||
// "text": "概念中心",
|
||||
// "iconPath": "/static/icon/tabbar/concept.png",
|
||||
// "selectedIconPath": "/static/icon/tabbar/concept_s.png"
|
||||
// },
|
||||
{
|
||||
"pagePath": "/pages/concept/concept",
|
||||
"text": "概念中心",
|
||||
"iconPath": "/static/icon/tabbar/concept.png",
|
||||
"selectedIconPath": "/static/icon/tabbar/concept_s.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "/pages/mine/mine",
|
||||
"text": "个人中心",
|
||||
|
||||
@@ -106,6 +106,10 @@ const _sfc_main = {
|
||||
quickTimeList: ["今天", "昨天", "一周前", "一月前"],
|
||||
conceptList: [],
|
||||
page: 1,
|
||||
isRefreshing: false,
|
||||
//下拉刷新
|
||||
loadAll: false,
|
||||
//是否加载完毕
|
||||
getRateUpOrDown: utils_util.getRateUpOrDown,
|
||||
getChgRateStr: utils_util.getChgRateStr,
|
||||
memberInfo: null
|
||||
@@ -200,6 +204,22 @@ const _sfc_main = {
|
||||
}
|
||||
this.monthDateList = monthDateList;
|
||||
},
|
||||
/**
|
||||
* 下拉刷新
|
||||
*/
|
||||
pullDownRefresh() {
|
||||
this.isRefreshing = true;
|
||||
this.clickSearch();
|
||||
},
|
||||
/**
|
||||
* 上拉加载
|
||||
*/
|
||||
loadMoreData() {
|
||||
if (!this.loadAll) {
|
||||
this.page++;
|
||||
this.getConceptCenterData();
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击搜索
|
||||
*/
|
||||
@@ -481,8 +501,17 @@ const _sfc_main = {
|
||||
getConceptCenterData() {
|
||||
let param = { query: this.keywords, size: 10, page: this.page, sort_by: this.sortType, isJson: 1, trade_date: this.selectDateStr };
|
||||
request_api.eventRelatedConcept(param).then((res) => {
|
||||
this.isRefreshing = false;
|
||||
if (res.page == 1) {
|
||||
this.conceptList = res.results;
|
||||
} else {
|
||||
this.conceptList = this.conceptList.concat(res.results);
|
||||
}
|
||||
if (res.page == res.total_pages) {
|
||||
this.loadAll = true;
|
||||
}
|
||||
}).catch((error) => {
|
||||
this.isRefreshing = false;
|
||||
});
|
||||
},
|
||||
/**
|
||||
@@ -556,7 +585,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
leftText: "概念中心",
|
||||
hideNavBg: true
|
||||
hideNavBg: true,
|
||||
hideBack: true
|
||||
}),
|
||||
b: common_assets._imports_0,
|
||||
c: common_assets._imports_1,
|
||||
@@ -586,7 +616,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
g: common_vendor.n("stockNum " + ($data.getRateUpOrDown(item.price_info.avg_change_pct) ? "down" : "up"))
|
||||
} : {}, {
|
||||
h: common_vendor.t(item.description)
|
||||
}, $data.memberInfo.is_member && $data.memberInfo.subscription_type == "pro" ? {
|
||||
}, $data.memberInfo && $data.memberInfo.is_member && $data.memberInfo.subscription_type == "pro" ? {
|
||||
i: common_vendor.f(item.stocks.slice(0, 3), (sitem, sindex, i1) => {
|
||||
return {
|
||||
a: common_vendor.t(sitem.stock_name),
|
||||
@@ -605,15 +635,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
q: index
|
||||
});
|
||||
}),
|
||||
q: $data.memberInfo.is_member && $data.memberInfo.subscription_type == "pro",
|
||||
q: $data.memberInfo && $data.memberInfo.is_member && $data.memberInfo.subscription_type == "pro",
|
||||
r: common_assets._imports_1$2,
|
||||
s: common_vendor.s("top: " + $data.listTop + "px;"),
|
||||
t: common_assets._imports_11$1,
|
||||
v: common_vendor.o(($event) => $options.clickRankClose()),
|
||||
w: common_assets._imports_8,
|
||||
x: common_vendor.t($data.startDateStr),
|
||||
y: common_vendor.t($data.endDateStr),
|
||||
z: common_vendor.f($data.cycleList, (item, index, i0) => {
|
||||
t: $data.isRefreshing,
|
||||
v: common_vendor.o(($event) => $options.pullDownRefresh()),
|
||||
w: common_vendor.o(($event) => $options.loadMoreData()),
|
||||
x: common_assets._imports_11$1,
|
||||
y: common_vendor.o(($event) => $options.clickRankClose()),
|
||||
z: common_assets._imports_8,
|
||||
A: common_vendor.t($data.startDateStr),
|
||||
B: common_vendor.t($data.endDateStr),
|
||||
C: common_vendor.f($data.cycleList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: common_vendor.n("item " + ($data.selectCycleIndex == index ? "select" : "")),
|
||||
@@ -621,15 +654,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
d: common_vendor.o(($event) => $options.clickRankCycleListItem(index), index)
|
||||
};
|
||||
}),
|
||||
A: $data.selectCycleIndex == 3
|
||||
D: $data.selectCycleIndex == 3
|
||||
}, $data.selectCycleIndex == 3 ? {
|
||||
B: common_vendor.t($data.selectStartDateStr),
|
||||
C: common_vendor.o(($event) => $options.clickCustomDateCycle(2)),
|
||||
D: common_vendor.t($data.selectEndDateStr),
|
||||
E: common_vendor.o(($event) => $options.clickCustomDateCycle(3)),
|
||||
F: common_vendor.o(($event) => $options.clickApply())
|
||||
E: common_vendor.t($data.selectStartDateStr),
|
||||
F: common_vendor.o(($event) => $options.clickCustomDateCycle(2)),
|
||||
G: common_vendor.t($data.selectEndDateStr),
|
||||
H: common_vendor.o(($event) => $options.clickCustomDateCycle(3)),
|
||||
I: common_vendor.o(($event) => $options.clickApply())
|
||||
} : {}, {
|
||||
G: common_vendor.f($data.rankTabList, (item, index, i0) => {
|
||||
J: common_vendor.f($data.rankTabList, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: $data.selectTab == index
|
||||
}, $data.selectTab == index ? {
|
||||
@@ -643,7 +676,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
g: common_vendor.o(($event) => $options.clickRankTabItem(index), index)
|
||||
});
|
||||
}),
|
||||
H: common_vendor.f($data.rankList, (item, index, i0) => {
|
||||
K: common_vendor.f($data.rankList, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: index == 0
|
||||
}, index == 0 ? {
|
||||
@@ -676,7 +709,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
o: common_assets._imports_12$1,
|
||||
p: common_vendor.t(item.news_count)
|
||||
} : {}, {
|
||||
q: common_assets._imports_13$2,
|
||||
q: common_assets._imports_13$1,
|
||||
r: common_vendor.t(item.news_count),
|
||||
s: $data.selectTab == 2
|
||||
}, $data.selectTab == 2 ? {
|
||||
@@ -696,21 +729,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
B: index
|
||||
});
|
||||
}),
|
||||
I: $data.selectTab == 3 || $data.selectTab == 4,
|
||||
J: common_vendor.n("icon " + ($data.selectTab == 4 ? "continuousRise" : "")),
|
||||
K: $data.rankTabList[$data.selectTab].selectIcon,
|
||||
L: $data.selectTab == 0,
|
||||
M: $data.selectTab == 1,
|
||||
N: $data.selectTab == 2,
|
||||
O: $data.selectTab == 3,
|
||||
P: $data.selectTab == 4,
|
||||
Q: common_vendor.sr("rankPopup", "634c6a80-1"),
|
||||
R: common_vendor.p({
|
||||
L: $data.selectTab == 3 || $data.selectTab == 4,
|
||||
M: common_vendor.n("icon " + ($data.selectTab == 4 ? "continuousRise" : "")),
|
||||
N: $data.rankTabList[$data.selectTab].selectIcon,
|
||||
O: $data.selectTab == 0,
|
||||
P: $data.selectTab == 1,
|
||||
Q: $data.selectTab == 2,
|
||||
R: $data.selectTab == 3,
|
||||
S: $data.selectTab == 4,
|
||||
T: common_vendor.sr("rankPopup", "634c6a80-1"),
|
||||
U: common_vendor.p({
|
||||
type: "bottom",
|
||||
safeArea: false
|
||||
}),
|
||||
S: common_assets._imports_13$1,
|
||||
T: common_vendor.f($data.sortTypeList, (item, index, i0) => {
|
||||
V: common_assets._imports_13,
|
||||
W: common_vendor.f($data.sortTypeList, (item, index, i0) => {
|
||||
return {
|
||||
a: item.icon,
|
||||
b: common_vendor.t(item.name),
|
||||
@@ -718,29 +751,29 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
d: common_vendor.o(($event) => $options.clickSortListItem(item), index)
|
||||
};
|
||||
}),
|
||||
U: common_vendor.s("margin-top:" + $data.sortListTop + "px;"),
|
||||
V: common_vendor.sr("sortTypePopup", "634c6a80-2"),
|
||||
W: common_vendor.p({
|
||||
X: common_vendor.s("margin-top:" + $data.sortListTop + "px;"),
|
||||
Y: common_vendor.sr("sortTypePopup", "634c6a80-2"),
|
||||
Z: common_vendor.p({
|
||||
type: "top",
|
||||
["mask-background-color"]: "transparent",
|
||||
animation: false
|
||||
}),
|
||||
X: common_vendor.o(($event) => $options.clickCancel()),
|
||||
Y: common_vendor.o(($event) => $options.clickConfirm()),
|
||||
Z: common_assets._imports_4$2,
|
||||
aa: common_vendor.o(($event) => $options.clickPreMonth()),
|
||||
ab: common_vendor.t($data.selectMonth),
|
||||
ac: common_vendor.o(() => {
|
||||
aa: common_vendor.o(($event) => $options.clickCancel()),
|
||||
ab: common_vendor.o(($event) => $options.clickConfirm()),
|
||||
ac: common_assets._imports_4$2,
|
||||
ad: common_vendor.o(($event) => $options.clickPreMonth()),
|
||||
ae: common_vendor.t($data.selectMonth),
|
||||
af: common_vendor.o(() => {
|
||||
}),
|
||||
ad: common_assets._imports_5$1,
|
||||
ae: common_vendor.o(($event) => $options.clickNextMonth()),
|
||||
af: common_vendor.f($data.weekList, (item, index, i0) => {
|
||||
ag: common_assets._imports_5$1,
|
||||
ah: common_vendor.o(($event) => $options.clickNextMonth()),
|
||||
ai: common_vendor.f($data.weekList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index
|
||||
};
|
||||
}),
|
||||
ag: common_vendor.f($data.monthDateList[$data.selectMonthIndex], (item, index, i0) => {
|
||||
aj: common_vendor.f($data.monthDateList[$data.selectMonthIndex], (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: item.date == $data.selectDateStr
|
||||
}, item.date == $data.selectDateStr ? {
|
||||
@@ -756,29 +789,29 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
g: common_vendor.o(($event) => $options.clickSelectDate(item), index)
|
||||
});
|
||||
}),
|
||||
ah: common_vendor.f($data.quickTimeList, (item, index, i0) => {
|
||||
ak: common_vendor.f($data.quickTimeList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index,
|
||||
c: common_vendor.o(($event) => $options.clickQuickTimeItem(index), index)
|
||||
};
|
||||
}),
|
||||
ai: common_vendor.sr("transactionDatePopup", "634c6a80-3"),
|
||||
aj: common_vendor.p({
|
||||
al: common_vendor.sr("transactionDatePopup", "634c6a80-3"),
|
||||
am: common_vendor.p({
|
||||
type: "bottom",
|
||||
safeArea: false
|
||||
}),
|
||||
ak: common_assets._imports_14,
|
||||
al: common_assets._imports_15,
|
||||
am: common_assets._imports_16,
|
||||
an: common_assets._imports_16,
|
||||
ao: common_assets._imports_17,
|
||||
ap: common_assets._imports_17,
|
||||
aq: common_assets._imports_17,
|
||||
ar: common_vendor.o(($event) => $options.clickLater()),
|
||||
as: common_vendor.o(($event) => $options.clickUpgradeAtOnce()),
|
||||
at: common_vendor.sr("vipPopup", "634c6a80-4"),
|
||||
av: common_vendor.p({
|
||||
an: common_assets._imports_14,
|
||||
ao: common_assets._imports_15,
|
||||
ap: common_assets._imports_16,
|
||||
aq: common_assets._imports_16,
|
||||
ar: common_assets._imports_17,
|
||||
as: common_assets._imports_17,
|
||||
at: common_assets._imports_17,
|
||||
av: common_vendor.o(($event) => $options.clickLater()),
|
||||
aw: common_vendor.o(($event) => $options.clickUpgradeAtOnce()),
|
||||
ax: common_vendor.sr("vipPopup", "634c6a80-4"),
|
||||
ay: common_vendor.p({
|
||||
type: "center"
|
||||
})
|
||||
});
|
||||
|
||||
@@ -72,7 +72,7 @@ page {
|
||||
.conceptList {
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
bottom: calc(55px + env(safe-area-inset-bottom));
|
||||
}
|
||||
.conceptList .list {
|
||||
padding: 0 25rpx;
|
||||
@@ -90,6 +90,7 @@ page {
|
||||
font-size: 30rpx;
|
||||
font-weight: bold;
|
||||
color: #3D3D3D;
|
||||
word-break: break-all;
|
||||
}
|
||||
.conceptList .list .item .titleChgStockNumC .chg {
|
||||
margin-right: 20rpx;
|
||||
@@ -107,6 +108,7 @@ page {
|
||||
background-color: #355422;
|
||||
}
|
||||
.conceptList .list .item .titleChgStockNumC .stockNum {
|
||||
flex-shrink: 0;
|
||||
padding: 0 16rpx;
|
||||
line-height: 36rpx;
|
||||
border-radius: 20rpx;
|
||||
@@ -300,6 +302,8 @@ page {
|
||||
.rankPopup .rankList {
|
||||
margin-top: 22rpx;
|
||||
padding: 0 25rpx;
|
||||
max-height: 500rpx;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.rankPopup .rankList .item {
|
||||
margin-bottom: 20rpx;
|
||||
|
||||
46
unpackage/dist/dev/mp-weixin/pages/concept/conceptNewsDetails/conceptNewsDetails.js
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../common/vendor.js");
|
||||
const utils_util = require("../../../utils/util.js");
|
||||
const common_assets = require("../../../common/assets.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
navH: common_vendor.inject("navHeight"),
|
||||
newsInfo: null,
|
||||
getLocalTime: utils_util.getLocaleTime
|
||||
};
|
||||
},
|
||||
onLoad(e) {
|
||||
this.newsInfo = JSON.parse(decodeURIComponent(e.info));
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_navBar2 = common_vendor.resolveComponent("navBar");
|
||||
const _easycom_ua_markdown2 = common_vendor.resolveComponent("ua-markdown");
|
||||
(_easycom_navBar2 + _easycom_ua_markdown2)();
|
||||
}
|
||||
const _easycom_navBar = () => "../../../components/navBar/navBar.js";
|
||||
const _easycom_ua_markdown = () => "../../../components/ua-markdown/ua-markdown.js";
|
||||
if (!Math) {
|
||||
(_easycom_navBar + _easycom_ua_markdown)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
leftText: "历史时间轴",
|
||||
hideNavBg: true
|
||||
}),
|
||||
b: common_assets._imports_0,
|
||||
c: $data.newsInfo
|
||||
}, $data.newsInfo ? {
|
||||
d: common_vendor.t($data.newsInfo.title),
|
||||
e: common_vendor.t($data.getLocalTime($data.newsInfo.published_time)),
|
||||
f: common_vendor.p({
|
||||
source: $data.newsInfo.detail
|
||||
}),
|
||||
g: common_vendor.s("top: " + $data.navH + "px;")
|
||||
} : {});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/concept/conceptNewsDetails/conceptNewsDetails.js.map
|
||||
7
unpackage/dist/dev/mp-weixin/pages/concept/conceptNewsDetails/conceptNewsDetails.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"usingComponents": {
|
||||
"nav-bar": "../../../components/navBar/navBar",
|
||||
"ua-markdown": "../../../components/ua-markdown/ua-markdown"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/concept/conceptNewsDetails/conceptNewsDetails.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view><nav-bar wx:if="{{a}}" u-i="279e50b2-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view wx:if="{{c}}" class="contentC fixed" style="{{g}}"><view class="title">{{d}}</view><view class="labelTimeC"><text class="time">{{e}}</text></view><view class="content"><ua-markdown wx:if="{{f}}" u-i="279e50b2-1" bind:__l="__l" u-p="{{f}}"/></view></view></view>
|
||||
36
unpackage/dist/dev/mp-weixin/pages/concept/conceptNewsDetails/conceptNewsDetails.wxss
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
page {
|
||||
background-color: #070707;
|
||||
}
|
||||
.topBg {
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
.contentC {
|
||||
background-color: #FFF9F5;
|
||||
margin: 20rpx 25rpx 0;
|
||||
padding: 28rpx 30rpx;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 100rpx;
|
||||
border-radius: 10rpx;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.contentC .title {
|
||||
margin: 0 10rpx;
|
||||
font-size: 30rpx;
|
||||
font-weight: bold;
|
||||
color: #2B2B2B;
|
||||
}
|
||||
.contentC .labelTimeC {
|
||||
margin: 0 10rpx;
|
||||
}
|
||||
.contentC .labelTimeC .time {
|
||||
font-size: 24rpx;
|
||||
font-weight: 500;
|
||||
color: #666;
|
||||
}
|
||||
.contentC .content {
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
@@ -208,6 +208,15 @@ const _sfc_main = {
|
||||
this.getReportData();
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击查看新闻详情
|
||||
* @param {Object} item
|
||||
*/
|
||||
clickNewsItem(item) {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/concept/conceptNewsDetails/conceptNewsDetails?info=" + encodeURIComponent(JSON.stringify(item))
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 获取时间序列数据
|
||||
*/
|
||||
@@ -333,7 +342,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.t(item.title),
|
||||
b: common_vendor.t(item.detail),
|
||||
c: index
|
||||
c: index,
|
||||
d: common_vendor.o(($event) => $options.clickNewsItem(item), index)
|
||||
};
|
||||
}),
|
||||
z: common_vendor.f($data.reportList, (item, index, i0) => {
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view><nav-bar wx:if="{{a}}" u-i="adc20db2-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="timelineTitle fixed" style="{{d}}">{{c}}- 历史时间轴</view><view class="dateStatisticsC fixed" style="{{A}}"><view class="dateC"><view class="yearMonthC flex"><view class="btn" bindtap="{{f}}"><image class="icon" src="{{e}}" mode="widthFix"></image></view><view class="yearMonth flex1"><picker mode="date" fields="month" bindchange="{{h}}">{{g}}</picker></view><view class="btn" bindtap="{{j}}"><image class="icon" src="{{i}}" mode="widthFix"></image></view></view><view class="weekList flex"><view wx:for="{{k}}" wx:for-item="item" wx:key="b" class="item flex1">{{item.a}}</view></view><view class="monthDateList flexWrap"><view wx:for="{{l}}" wx:for-item="item" wx:key="m" class="item flexColumnCenter" bindtap="{{item.n}}"><block wx:if="{{item.a}}"><view class="{{item.e}}">{{item.b}} <view wx:if="{{item.c}}" class="chg">{{item.d}}%</view></view></block><block wx:else><block wx:if="{{item.f}}"><view class="date notCurrentMonth">{{item.g}}</view></block><block wx:else><view class="{{item.l}}">{{item.h}} <view wx:if="{{item.i}}" class="{{item.k}}">{{item.j}}%</view></view></block></block></view></view></view><view class="statisticsC"><view class="date">{{m}}统计</view><view wx:if="{{n}}" class="chgStockNumC flex"><view class="chgC flex flex1"><view class="title">涨跌幅</view><image wx:if="{{o}}" class="icon" src="{{p}}" mode="widthFix"></image><image wx:else class="icon" src="{{q}}" mode="widthFix"></image><view class="{{s}}">{{r}}%</view></view><view class="stockNumC flex flex1"><view class="title">统计股票</view><view class="stockNum">{{t}} 只股票</view></view></view><view class="newsReportC flex"><image class="icon" src="{{v}}" mode="widthFix"></image><text class="news">{{w}} 条新闻 · </text><text class="report" decode> {{x}} 份研报</text></view><view class="list"><view wx:for="{{y}}" wx:for-item="item" wx:key="c" class="item"><view class="flex"><view class="type news">新闻</view><view class="title flex1">{{item.a}}</view></view><view class="content">{{item.b}}</view></view><view wx:for="{{z}}" wx:for-item="item" wx:key="b" class="item"><view class="flex"><view class="type report">研报</view><view class="title flex1">{{item.a}}</view></view><view class="content">坚定看好锂电材料,建议继续加配坚定六氟、添加剂,关注隔膜更加坚定的看好六氟:下游传导如期</view></view></view></view></view></view>
|
||||
<view><nav-bar wx:if="{{a}}" u-i="adc20db2-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="timelineTitle fixed" style="{{d}}">{{c}}- 历史时间轴</view><view class="dateStatisticsC fixed" style="{{A}}"><view class="dateC"><view class="yearMonthC flex"><view class="btn" bindtap="{{f}}"><image class="icon" src="{{e}}" mode="widthFix"></image></view><view class="yearMonth flex1"><picker mode="date" fields="month" bindchange="{{h}}">{{g}}</picker></view><view class="btn" bindtap="{{j}}"><image class="icon" src="{{i}}" mode="widthFix"></image></view></view><view class="weekList flex"><view wx:for="{{k}}" wx:for-item="item" wx:key="b" class="item flex1">{{item.a}}</view></view><view class="monthDateList flexWrap"><view wx:for="{{l}}" wx:for-item="item" wx:key="m" class="item flexColumnCenter" bindtap="{{item.n}}"><block wx:if="{{item.a}}"><view class="{{item.e}}">{{item.b}} <view wx:if="{{item.c}}" class="chg">{{item.d}}%</view></view></block><block wx:else><block wx:if="{{item.f}}"><view class="date notCurrentMonth">{{item.g}}</view></block><block wx:else><view class="{{item.l}}">{{item.h}} <view wx:if="{{item.i}}" class="{{item.k}}">{{item.j}}%</view></view></block></block></view></view></view><view class="statisticsC"><view class="date">{{m}}统计</view><view wx:if="{{n}}" class="chgStockNumC flex"><view class="chgC flex flex1"><view class="title">涨跌幅</view><image wx:if="{{o}}" class="icon" src="{{p}}" mode="widthFix"></image><image wx:else class="icon" src="{{q}}" mode="widthFix"></image><view class="{{s}}">{{r}}%</view></view><view class="stockNumC flex flex1"><view class="title">统计股票</view><view class="stockNum">{{t}} 只股票</view></view></view><view class="newsReportC flex"><image class="icon" src="{{v}}" mode="widthFix"></image><text class="news">{{w}} 条新闻 · </text><text class="report" decode> {{x}} 份研报</text></view><view class="list"><view wx:for="{{y}}" wx:for-item="item" wx:key="c" class="item" bindtap="{{item.d}}"><view class="flex"><view class="type news">新闻</view><view class="title flex1">{{item.a}}</view></view><view class="content">{{item.b}}</view></view><view wx:for="{{z}}" wx:for-item="item" wx:key="b" class="item"><view class="flex"><view class="type report">研报</view><view class="title flex1">{{item.a}}</view></view><view class="content">坚定看好锂电材料,建议继续加配坚定六氟、添加剂,关注隔膜更加坚定的看好六氟:下游传导如期</view></view></view></view></view></view>
|
||||
@@ -1,24 +0,0 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../common/vendor.js");
|
||||
const common_assets = require("../../../common/assets.js");
|
||||
const _sfc_main = {};
|
||||
if (!Array) {
|
||||
const _easycom_navBar2 = common_vendor.resolveComponent("navBar");
|
||||
_easycom_navBar2();
|
||||
}
|
||||
const _easycom_navBar = () => "../../../components/navBar/navBar.js";
|
||||
if (!Math) {
|
||||
_easycom_navBar();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache) {
|
||||
return {
|
||||
a: common_vendor.p({
|
||||
leftText: "历史时间轴",
|
||||
hideNavBg: true
|
||||
}),
|
||||
b: common_assets._imports_0
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/index/conceptNewsDetails/conceptNewsDetails.js.map
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"usingComponents": {
|
||||
"nav-bar": "../../../components/navBar/navBar"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view><nav-bar wx:if="{{a}}" u-i="5b93cf51-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image></view>
|
||||
@@ -1,9 +0,0 @@
|
||||
page {
|
||||
background-color: #070707;
|
||||
}
|
||||
.topBg {
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
@@ -20,6 +20,9 @@ const _sfc_main = {
|
||||
//相关标的
|
||||
conceptList: [],
|
||||
//相关概念
|
||||
page: 1,
|
||||
loadAll: false,
|
||||
//是否加载完毕
|
||||
historyEventList: [],
|
||||
//历史事件
|
||||
historyEventRelatedStockList: [],
|
||||
@@ -153,6 +156,14 @@ const _sfc_main = {
|
||||
});
|
||||
}, 300);
|
||||
},
|
||||
loadMoreData() {
|
||||
if (this.selectCategory == 1) {
|
||||
if (!this.loadAll) {
|
||||
this.page++;
|
||||
this.getEventRelatedConceptData();
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击切换分类
|
||||
*/
|
||||
@@ -162,6 +173,8 @@ const _sfc_main = {
|
||||
if (index == 0) {
|
||||
this.getEventRelatedStockData();
|
||||
} else if (index == 1) {
|
||||
this.page = 1;
|
||||
this.loadAll = false;
|
||||
this.getEventRelatedConceptData();
|
||||
} else if (index == 2) {
|
||||
this.getEventHistoryEventData();
|
||||
@@ -354,9 +367,16 @@ const _sfc_main = {
|
||||
*/
|
||||
getEventRelatedConceptData() {
|
||||
let eventDetails = this.eventDetails;
|
||||
let param = { query: eventDetails.event_title, size: 10, page: 1, sort_by: "_score", isJson: 1 };
|
||||
let param = { query: eventDetails.event_title, size: 10, page: this.page, sort_by: "_score", isJson: 1 };
|
||||
request_api.eventRelatedConcept(param).then((res) => {
|
||||
if (res.page == 1) {
|
||||
this.conceptList = res.results;
|
||||
} else {
|
||||
this.conceptList = this.conceptList.concat(res.results);
|
||||
}
|
||||
if (res.page == res.total_pages) {
|
||||
this.loadAll = true;
|
||||
}
|
||||
}).catch((error) => {
|
||||
});
|
||||
},
|
||||
@@ -528,25 +548,26 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
x: common_assets._imports_5$2,
|
||||
y: common_assets._imports_3$4
|
||||
} : {}, {
|
||||
z: common_vendor.s("top:" + $data.navH + "px;")
|
||||
z: common_vendor.s("top:" + $data.navH + "px;"),
|
||||
A: common_vendor.o(($event) => $options.loadMoreData())
|
||||
}) : {}, {
|
||||
A: $data.eventDetails
|
||||
B: $data.eventDetails
|
||||
}, $data.eventDetails ? {
|
||||
B: common_vendor.o(($event) => $options.sendEventComment()),
|
||||
C: $data.eventComment,
|
||||
D: common_vendor.o(($event) => $data.eventComment = $event.detail.value),
|
||||
E: common_assets._imports_3$1,
|
||||
F: common_vendor.t($data.eventDetails.view_count),
|
||||
G: common_assets._imports_4,
|
||||
H: common_vendor.t($data.eventDetails.post_count),
|
||||
I: common_vendor.o(($event) => $options.clickComment()),
|
||||
J: common_assets._imports_10$1,
|
||||
K: common_vendor.t($data.eventDetails.follower_count),
|
||||
L: common_vendor.o(($event) => $options.clickFollow())
|
||||
C: common_vendor.o(($event) => $options.sendEventComment()),
|
||||
D: $data.eventComment,
|
||||
E: common_vendor.o(($event) => $data.eventComment = $event.detail.value),
|
||||
F: common_assets._imports_3$1,
|
||||
G: common_vendor.t($data.eventDetails.view_count),
|
||||
H: common_assets._imports_4,
|
||||
I: common_vendor.t($data.eventDetails.post_count),
|
||||
J: common_vendor.o(($event) => $options.clickComment()),
|
||||
K: common_assets._imports_10$1,
|
||||
L: common_vendor.t($data.eventDetails.follower_count),
|
||||
M: common_vendor.o(($event) => $options.clickFollow())
|
||||
} : {}, {
|
||||
M: common_assets._imports_11$1,
|
||||
N: common_vendor.o(($event) => $options.closeCommentPopup()),
|
||||
O: common_vendor.f($data.commentList, (item, index, i0) => {
|
||||
N: common_assets._imports_11$1,
|
||||
O: common_vendor.o(($event) => $options.closeCommentPopup()),
|
||||
P: common_vendor.f($data.commentList, (item, index, i0) => {
|
||||
return {
|
||||
a: item.user.avatar_url,
|
||||
b: common_vendor.t(item.user.username),
|
||||
@@ -558,25 +579,25 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
h: index
|
||||
};
|
||||
}),
|
||||
P: common_assets._imports_12$2,
|
||||
Q: $data.isFocus,
|
||||
R: common_vendor.o(($event) => $options.sendReplyComment()),
|
||||
S: $data.replyComment,
|
||||
T: common_vendor.o(($event) => $data.replyComment = $event.detail.value),
|
||||
U: common_vendor.sr("popup", "6e1a61f1-2"),
|
||||
V: common_vendor.p({
|
||||
Q: common_assets._imports_12$2,
|
||||
R: $data.isFocus,
|
||||
S: common_vendor.o(($event) => $options.sendReplyComment()),
|
||||
T: $data.replyComment,
|
||||
U: common_vendor.o(($event) => $data.replyComment = $event.detail.value),
|
||||
V: common_vendor.sr("popup", "6e1a61f1-2"),
|
||||
W: common_vendor.p({
|
||||
type: "bottom"
|
||||
}),
|
||||
W: common_assets._imports_13$1,
|
||||
X: common_vendor.s("margin-top:" + $data.scoreTop + "px;"),
|
||||
Y: common_vendor.sr("expectScorePopup", "6e1a61f1-3"),
|
||||
Z: common_vendor.p({
|
||||
X: common_assets._imports_13,
|
||||
Y: common_vendor.s("margin-top:" + $data.scoreTop + "px;"),
|
||||
Z: common_vendor.sr("expectScorePopup", "6e1a61f1-3"),
|
||||
aa: common_vendor.p({
|
||||
type: "top",
|
||||
["mask-background-color"]: "transparent"
|
||||
}),
|
||||
aa: common_assets._imports_11$1,
|
||||
ab: common_vendor.o(($event) => $options.closeRelatedStockPopup()),
|
||||
ac: common_vendor.f($data.historyEventRelatedStockList, (item, index, i0) => {
|
||||
ab: common_assets._imports_11$1,
|
||||
ac: common_vendor.o(($event) => $options.closeRelatedStockPopup()),
|
||||
ad: common_vendor.f($data.historyEventRelatedStockList, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.stock_name + "(" + item.stock_code + ")"),
|
||||
b: common_vendor.t(item.correlation * 100),
|
||||
@@ -594,21 +615,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
k: common_vendor.o(($event) => $options.clickStockItem(item.stock_code), index)
|
||||
});
|
||||
}),
|
||||
ad: common_vendor.sr("stockPopup", "6e1a61f1-4"),
|
||||
ae: common_vendor.p({
|
||||
ae: common_vendor.sr("stockPopup", "6e1a61f1-4"),
|
||||
af: common_vendor.p({
|
||||
type: "bottom"
|
||||
}),
|
||||
af: common_assets._imports_14,
|
||||
ag: common_assets._imports_15,
|
||||
ah: common_assets._imports_16,
|
||||
ag: common_assets._imports_14,
|
||||
ah: common_assets._imports_15,
|
||||
ai: common_assets._imports_16,
|
||||
aj: common_assets._imports_17,
|
||||
aj: common_assets._imports_16,
|
||||
ak: common_assets._imports_17,
|
||||
al: common_assets._imports_17,
|
||||
am: common_vendor.o(($event) => $options.clickLater()),
|
||||
an: common_vendor.o(($event) => $options.clickUpgradeAtOnce()),
|
||||
ao: common_vendor.sr("vipPopup", "6e1a61f1-5"),
|
||||
ap: common_vendor.p({
|
||||
am: common_assets._imports_17,
|
||||
an: common_vendor.o(($event) => $options.clickLater()),
|
||||
ao: common_vendor.o(($event) => $options.clickUpgradeAtOnce()),
|
||||
ap: common_vendor.sr("vipPopup", "6e1a61f1-5"),
|
||||
aq: common_vendor.p({
|
||||
type: "center"
|
||||
})
|
||||
});
|
||||
|
||||
@@ -161,6 +161,7 @@ page {
|
||||
background-color: #355422;
|
||||
}
|
||||
.eventDetailsC .conceptList .conceptItem .titleChgStockNumC .stockNum {
|
||||
flex-shrink: 0;
|
||||
padding: 0 16rpx;
|
||||
line-height: 36rpx;
|
||||
border-radius: 20rpx;
|
||||
@@ -387,7 +388,7 @@ page {
|
||||
.bottomC .commentLikeNumC .item {
|
||||
font-size: 26rpx;
|
||||
font-weight: bold;
|
||||
color: #666;
|
||||
color: #bdbdbd;
|
||||
text-align: center;
|
||||
}
|
||||
.bottomC .commentLikeNumC .item .icon {
|
||||
|
||||
643
unpackage/dist/dev/mp-weixin/pages/index/index.js
vendored
@@ -31,7 +31,6 @@ const _sfc_main = {
|
||||
title: "最新排序"
|
||||
}
|
||||
],
|
||||
isRefreshing: false,
|
||||
keywords: "",
|
||||
//关键词
|
||||
timeCategoryList: [],
|
||||
@@ -45,7 +44,40 @@ const _sfc_main = {
|
||||
secondScrollLeft: 0,
|
||||
selectScreenCategory: 0,
|
||||
//0时间筛选1行业筛选2事件等级3最新排序
|
||||
quickTimeList: ["最新", "盘中", "午盘", "早盘", "今日全天", "昨日", "近一周", "近一月"],
|
||||
quickTimeList: [
|
||||
{
|
||||
title: "最新",
|
||||
key: "latest"
|
||||
},
|
||||
{
|
||||
title: "盘中",
|
||||
key: "intraday"
|
||||
},
|
||||
{
|
||||
title: "早盘",
|
||||
key: "morning"
|
||||
},
|
||||
{
|
||||
title: "午盘",
|
||||
key: "afternoon"
|
||||
},
|
||||
{
|
||||
title: "今日全天",
|
||||
key: "today"
|
||||
},
|
||||
{
|
||||
title: "昨日",
|
||||
key: "yesterday"
|
||||
},
|
||||
{
|
||||
title: "近一周",
|
||||
key: "week"
|
||||
},
|
||||
{
|
||||
title: "近一月",
|
||||
key: "month"
|
||||
}
|
||||
],
|
||||
selectQuickTimeIndex: -1,
|
||||
startDateStr: "",
|
||||
//选择开始日期
|
||||
@@ -61,14 +93,8 @@ const _sfc_main = {
|
||||
//月份列表
|
||||
dayList: [],
|
||||
//日列表
|
||||
hourList: [],
|
||||
//时列表
|
||||
minuteList: [],
|
||||
//分列表
|
||||
selectDateRangeIndex: -1,
|
||||
//0开始时间1结束时间
|
||||
startDateValue: [0, 0, 0, 0, 0],
|
||||
endDateValue: [0, 0, 0, 0, 0],
|
||||
startDateValue: [0, 0, 0],
|
||||
endDateValue: [0, 0, 0],
|
||||
industryCategoryList: [],
|
||||
//行业分类数组
|
||||
industryKeywords: "",
|
||||
@@ -77,16 +103,18 @@ const _sfc_main = {
|
||||
//行业分类搜索结果数组
|
||||
selectIndustryTopCategory: 0,
|
||||
//选中行业一级分类
|
||||
selectIndustrySecondCategory: -1,
|
||||
selectIndustrySecondCategory: 0,
|
||||
//选中行业二级分类
|
||||
selectIndustryThirdCategory: -1,
|
||||
selectIndustryThirdCategory: 0,
|
||||
//选中行业三级分类
|
||||
selectIndustryForthCategory: -1,
|
||||
//选中行业四级分类
|
||||
searchIndustryTopCategory: 0,
|
||||
//搜索结果选中行业一级分类
|
||||
searchIndustrySecondCategory: 0,
|
||||
//搜索结果选中行业二级分类
|
||||
searchIndustryThirdCategory: 0,
|
||||
//搜索结果选中行业三级分类
|
||||
importanceList: [],
|
||||
//重要性数组
|
||||
selectImportanceIndex: 0,
|
||||
//选择事件等级下标
|
||||
sortTypeList: [],
|
||||
selectSortKey: "",
|
||||
//选中排序key
|
||||
@@ -150,7 +178,10 @@ const _sfc_main = {
|
||||
},
|
||||
eventList: [],
|
||||
page: 1,
|
||||
isRefreshing: false,
|
||||
//是否正在下拉刷新
|
||||
loadAll: false,
|
||||
//是否加载完毕
|
||||
getRateStr: utils_util.getRateStr,
|
||||
getRateUpOrDown: utils_util.getRateUpOrDown,
|
||||
getLocaleTime: utils_util.getLocaleTime
|
||||
@@ -185,8 +216,6 @@ const _sfc_main = {
|
||||
let year = currentDate.getFullYear();
|
||||
let month = currentDate.getMonth();
|
||||
let day = currentDate.getDate();
|
||||
let hour = currentDate.getHours();
|
||||
let minute = currentDate.getMinutes();
|
||||
let date = new Date(year, month + 1, 0);
|
||||
let monthDays = date.getDate();
|
||||
for (var i = 2e3; i < 2060; i++) {
|
||||
@@ -198,16 +227,10 @@ const _sfc_main = {
|
||||
for (var i = 0; i < monthDays * 60; i++) {
|
||||
this.dayList.push(i % monthDays + 1);
|
||||
}
|
||||
for (var i = 0; i < 24 * 60; i++) {
|
||||
this.hourList.push(i % 24);
|
||||
}
|
||||
for (var i = 0; i < 60 * 60; i++) {
|
||||
this.minuteList.push(i % 60);
|
||||
}
|
||||
let that = this;
|
||||
setTimeout(function() {
|
||||
that.startDateValue = [year - 2e3, month + 12 * 30, day - 1 + monthDays * 30, hour + 24 * 30, minute + 60 * 30];
|
||||
that.endDateValue = [year - 2e3, month + 12 * 30, day - 1 + monthDays * 30, hour + 24 * 30, minute + 60 * 30];
|
||||
that.startDateValue = [year - 2e3, month + 12 * 30, day - 1 + monthDays * 30];
|
||||
that.endDateValue = [year - 2e3, month + 12 * 30, day - 1 + monthDays * 30];
|
||||
}, 100);
|
||||
},
|
||||
/**
|
||||
@@ -223,7 +246,7 @@ const _sfc_main = {
|
||||
loadMoreData() {
|
||||
if (!this.loadAll) {
|
||||
this.page++;
|
||||
if (this.selectScreenCategory == 0) {
|
||||
if (this.selectTimeCategory == 0) {
|
||||
this.getEventListData();
|
||||
} else
|
||||
this.getHotEventListData();
|
||||
@@ -237,6 +260,7 @@ const _sfc_main = {
|
||||
* 点击搜索
|
||||
*/
|
||||
clickSearch() {
|
||||
this.loadAll = false;
|
||||
this.page = 1;
|
||||
if (this.selectTimeCategory == 0) {
|
||||
this.getEventListData();
|
||||
@@ -250,10 +274,7 @@ const _sfc_main = {
|
||||
clickTimeCategoryItem(index) {
|
||||
if (this.selectTimeCategory != index) {
|
||||
this.selectTimeCategory = index;
|
||||
if (index == 0) {
|
||||
this.getEventListData();
|
||||
} else
|
||||
this.getHotEventListData();
|
||||
this.clickSearch();
|
||||
}
|
||||
},
|
||||
/**
|
||||
@@ -262,10 +283,7 @@ const _sfc_main = {
|
||||
clickSortListItem(item) {
|
||||
this.selectSortKey = item.key;
|
||||
this.$refs["screenPopup"].close();
|
||||
if (this.selectTimeCategory == 0) {
|
||||
this.getEventListData();
|
||||
} else
|
||||
this.getHotEventListData();
|
||||
this.clickSearch();
|
||||
},
|
||||
/**
|
||||
* 点击筛选
|
||||
@@ -285,6 +303,7 @@ const _sfc_main = {
|
||||
*/
|
||||
clickCertain() {
|
||||
if (this.selectScreenCategory == 0) {
|
||||
if (this.selectQuickTimeIndex == -1) {
|
||||
if (!this.startDateStr) {
|
||||
common_vendor.index.showToast({
|
||||
title: "请选择开始时间",
|
||||
@@ -307,6 +326,7 @@ const _sfc_main = {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.clickCancel();
|
||||
this.clickSearch();
|
||||
},
|
||||
@@ -329,14 +349,8 @@ const _sfc_main = {
|
||||
this.selectSecondCategory = 0;
|
||||
let offsetLeft = event.currentTarget.offsetLeft;
|
||||
this.topScrollLeft = offsetLeft - this.topScrollWidth / 2;
|
||||
if (index == 0) {
|
||||
this.listTop = this.contentTop + (22 + 80 + 72) / 750 * this.windowWidth;
|
||||
} else
|
||||
this.listTop = this.contentTop + (22 + 80 + 72 + 42 + 42) / 750 * this.windowWidth;
|
||||
if (this.selectTimeCategory == 0) {
|
||||
this.getEventListData();
|
||||
} else
|
||||
this.getHotEventListData();
|
||||
this.clickSearch();
|
||||
}
|
||||
},
|
||||
/**
|
||||
@@ -348,38 +362,25 @@ const _sfc_main = {
|
||||
this.selectSecondCategory = index;
|
||||
let offsetLeft = event.currentTarget.offsetLeft;
|
||||
this.secondScrollLeft = offsetLeft - this.secondScrollWidth / 2;
|
||||
if (this.selectTimeCategory == 0) {
|
||||
this.getEventListData();
|
||||
} else
|
||||
this.getHotEventListData();
|
||||
this.clickSearch();
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击选择快捷时间
|
||||
*/
|
||||
clickQuickTimeItem(index) {
|
||||
this.selectDateRangeIndex = -1;
|
||||
this.startDateStr = this.endDateStr = "";
|
||||
if (this.selectQuickTimeIndex != index) {
|
||||
this.selectQuickTimeIndex = index;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击选择开始时间或者结束时间
|
||||
* @param {Object} index
|
||||
*/
|
||||
clickDateRangeItem(index) {
|
||||
this.selectQuickTimeIndex = -1;
|
||||
if (this.selectDateRangeIndex != index) {
|
||||
this.selectDateRangeIndex = index;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 监听日期选择
|
||||
* @param {Object} e
|
||||
*/
|
||||
dateChange(e) {
|
||||
startDateChange(e) {
|
||||
this.selectQuickTimeIndex = -1;
|
||||
let value = e.detail.value;
|
||||
if (this.selectDateRangeIndex == 0) {
|
||||
if (value[1] != this.startDateValue[1]) {
|
||||
let year2 = value[0] + 2e3;
|
||||
let month2 = value[1] % 12;
|
||||
@@ -396,12 +397,17 @@ const _sfc_main = {
|
||||
let date = new Date(year, month, 0);
|
||||
let monthDays = date.getDate();
|
||||
let day = value[2] % monthDays + 1;
|
||||
let hour = value[3] % 24;
|
||||
let minute = value[4] % 60;
|
||||
this.startDateStr = year + "-" + (month > 9 ? month : "0" + month) + "-" + (day > 9 ? day : "0" + day) + " " + (hour > 9 ? hour : "0" + hour) + ":" + (minute > 9 ? minute : "0" + minute);
|
||||
var startDateStr = this.startDateStr.replace(/-/g, "/") + ":00";
|
||||
this.startDateStr = year + "-" + (month > 9 ? month : "0" + month) + "-" + (day > 9 ? day : "0" + day);
|
||||
var startDateStr = this.startDateStr.replace(/-/g, "/") + " 00:00:00";
|
||||
this.startTimeStamp = new Date(startDateStr).getTime();
|
||||
} else if (this.selectDateRangeIndex == 1) {
|
||||
},
|
||||
/**
|
||||
* 监听结束日期选择
|
||||
* @param {Object} e
|
||||
*/
|
||||
endDateChange(e) {
|
||||
this.selectQuickTimeIndex = -1;
|
||||
let value = e.detail.value;
|
||||
if (value[1] != this.endDateValue[1]) {
|
||||
let year2 = value[0] + 2e3;
|
||||
let month2 = value[1] % 12;
|
||||
@@ -418,11 +424,87 @@ const _sfc_main = {
|
||||
let date = new Date(year, month, 0);
|
||||
let monthDays = date.getDate();
|
||||
let day = value[2] % monthDays + 1;
|
||||
let hour = value[3] % 24;
|
||||
let minute = value[4] % 60;
|
||||
this.endDateStr = year + "-" + (month > 9 ? month : "0" + month) + "-" + (day > 9 ? day : "0" + day) + " " + (hour > 9 ? hour : "0" + hour) + ":" + (minute > 9 ? minute : "0" + minute);
|
||||
var endDateStr = this.endDateStr.replace(/-/g, "/") + ":00";
|
||||
this.endDateStr = year + "-" + (month > 9 ? month : "0" + month) + "-" + (day > 9 ? day : "0" + day);
|
||||
var endDateStr = this.endDateStr.replace(/-/g, "/") + " 00:00:00";
|
||||
this.endTimeStamp = new Date(endDateStr).getTime();
|
||||
},
|
||||
/**
|
||||
* 行业分类搜索
|
||||
*/
|
||||
industrySearch(e) {
|
||||
let keywords = e.detail.value;
|
||||
this.industryKeywords = keywords;
|
||||
if (keywords) {
|
||||
let arr = [];
|
||||
for (let item of this.industryCategoryList) {
|
||||
let index = this.industryCategoryList.indexOf(item);
|
||||
if (item.level1_sector.indexOf(keywords) > -1) {
|
||||
item.index = index;
|
||||
arr.push(item);
|
||||
} else {
|
||||
let arr1 = [];
|
||||
for (let item1 of item.level2_sectors) {
|
||||
let index1 = item.level2_sectors.indexOf(item1);
|
||||
if (item1.level2_sector.indexOf(keywords) > -1) {
|
||||
item1.index = index;
|
||||
item1.index1 = index1;
|
||||
arr1.push(item1);
|
||||
} else {
|
||||
let arr2 = [];
|
||||
for (let item2 of item1.level3_sectors) {
|
||||
let index2 = item1.level3_sectors.indexOf(item2);
|
||||
if (item2.level3_sector.indexOf(keywords) > -1) {
|
||||
item2.index = index;
|
||||
item2.index1 = index1;
|
||||
item2.index2 = index2;
|
||||
arr2.push(item2);
|
||||
}
|
||||
}
|
||||
if (arr2.length > 0) {
|
||||
arr2.unshift({ level3_sector: "全部", index, index2: 0 });
|
||||
arr1.push({ level2_sector: item1.level2_sector, level3_sectors: arr2, index, index1 });
|
||||
}
|
||||
}
|
||||
}
|
||||
if (arr1.length > 0) {
|
||||
arr1.unshift({ level2_sector: "全部", level3_sectors: [{ level3_sector: "全部", level4_sectors: [] }], index, index1: 0 });
|
||||
arr.push({ level1_sector: item.level1_sector, level2_sectors: arr1, index });
|
||||
}
|
||||
}
|
||||
}
|
||||
this.searchResultList = arr;
|
||||
} else {
|
||||
this.searchResultList = this.industryCategoryList;
|
||||
this.searchIndustryTopCategory = this.searchIndustrySecondCategory = this.searchIndustryThirdCategory = 0;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 选择行业分类搜索结果一级分类
|
||||
*/
|
||||
clickSearchIndustryTopCategoryItem(index, item) {
|
||||
if (this.searchIndustryTopCategory != index) {
|
||||
this.searchIndustryTopCategory = index;
|
||||
this.selectIndustryTopCategory = item.index;
|
||||
this.searchIndustrySecondCategory = this.selectIndustrySecondCategory = 0;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 选择行业分类搜索结果二级分类
|
||||
*/
|
||||
clickSearchIndustrySecondCategoryItem(index, item) {
|
||||
if (this.searchIndustrySecondCategory != index) {
|
||||
this.searchIndustrySecondCategory = index;
|
||||
this.selectIndustrySecondCategory = item.index1;
|
||||
this.searchIndustryThirdCategory = this.selectIndustryThirdCategory = 0;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 选择行业分类搜索结果三级分类
|
||||
*/
|
||||
clickSearchIndustryThirdCategoryItem(index, item) {
|
||||
if (this.searchIndustryThirdCategory != index) {
|
||||
this.searchIndustryThirdCategory = index;
|
||||
this.selectIndustryThirdCategory = item.index2;
|
||||
}
|
||||
},
|
||||
/**
|
||||
@@ -431,124 +513,45 @@ const _sfc_main = {
|
||||
clickIndustryTopCategoryItem(index) {
|
||||
if (this.selectIndustryTopCategory != index) {
|
||||
this.selectIndustryTopCategory = index;
|
||||
this.selectIndustrySecondCategory = 0;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 行业分类搜索
|
||||
*/
|
||||
industrySearch(e) {
|
||||
let keywords = e.detail.value;
|
||||
this.industryKeywords = keywords;
|
||||
let arr = [];
|
||||
for (let item of this.industryCategoryList) {
|
||||
let index = this.industryCategoryList.indexOf(item);
|
||||
for (let item1 of item.hierarchy) {
|
||||
let index1 = item.hierarchy.indexOf(item1);
|
||||
let arr1 = [];
|
||||
if (item1.level1_sector.indexOf(keywords) > -1) {
|
||||
arr1.push(item1);
|
||||
arr.push({ classification_name: item.classification_name, hierarchy: arr1 });
|
||||
}
|
||||
for (let item2 of item1.level2_sectors) {
|
||||
let index2 = item1.level2_sectors.indexOf(item2);
|
||||
let arr2 = [];
|
||||
if (item2.level2_sector.indexOf(keywords) > -1) {
|
||||
arr2.push(item2);
|
||||
arr1.push({ level1_sector: item1.level1_sector, level2_sectors: arr2 });
|
||||
arr.push({ classification_name: item.classification_name, hierarchy: arr1 });
|
||||
}
|
||||
for (let item3 of item2.level3_sectors) {
|
||||
let index3 = item2.level3_sectors.indexOf(item3);
|
||||
let arr3 = [];
|
||||
if (item3.level3_sector.indexOf(keywords) > -1) {
|
||||
item3.index = index;
|
||||
item3.index1 = index1;
|
||||
item3.index2 = index2;
|
||||
item3.index3 = index3;
|
||||
arr3.push(item3);
|
||||
arr2.push({ level2_sector: item2.level2_sector, level3_sectors: arr3 });
|
||||
arr1.push({ level1_sector: item1.level1_sector, level2_sectors: arr2 });
|
||||
arr.push({ classification_name: item.classification_name, hierarchy: arr1 });
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.searchResultList = arr;
|
||||
},
|
||||
/**
|
||||
* 点击选择搜索结果
|
||||
* @param {Object} item
|
||||
*/
|
||||
clickIndustrySearchItem(item) {
|
||||
this.industryKeywords = "";
|
||||
this.selectIndustryTopCategory = item.index;
|
||||
this.selectIndustrySecondCategory = item.index1;
|
||||
this.selectIndustryThirdCategory = item.index2;
|
||||
this.selectIndustryForthCategory = item.index3;
|
||||
},
|
||||
/**
|
||||
* 选择行业分类二级分类
|
||||
*/
|
||||
clickIndustrySecondCategoryItem(index) {
|
||||
if (this.selectIndustrySecondCategory != index) {
|
||||
this.selectIndustrySecondCategory = index;
|
||||
this.selectIndustryThirdCategory = 0;
|
||||
}
|
||||
this.industryCategoryList[this.selectIndustryTopCategory].hierarchy[index].isSpread = !this.industryCategoryList[this.selectIndustryTopCategory].hierarchy[index].isSpread;
|
||||
},
|
||||
/**
|
||||
* 选择行业分类三级分类
|
||||
*/
|
||||
clickIndustryThirdCategoryItem(sindex, index) {
|
||||
if (this.selectIndustrySecondCategory != sindex) {
|
||||
this.selectIndustrySecondCategory = sindex;
|
||||
}
|
||||
clickIndustryThirdCategoryItem(index) {
|
||||
if (this.selectIndustryThirdCategory != index) {
|
||||
this.selectIndustryThirdCategory = index;
|
||||
}
|
||||
this.industryCategoryList[this.selectIndustryTopCategory].hierarchy[sindex].level2_sectors[index].isSpread = !this.industryCategoryList[this.selectIndustryTopCategory].hierarchy[sindex].level2_sectors[index].isSpread;
|
||||
},
|
||||
/**
|
||||
* 选择行业分类四级分类
|
||||
*/
|
||||
clickIndustryForthCategoryItem(sindex, tindex, index) {
|
||||
if (this.selectIndustrySecondCategory != sindex) {
|
||||
this.selectIndustrySecondCategory = sindex;
|
||||
}
|
||||
if (this.selectIndustryThirdCategory != tindex) {
|
||||
this.selectIndustryThirdCategory = tindex;
|
||||
}
|
||||
if (this.selectIndustryForthCategory != index) {
|
||||
this.selectIndustryForthCategory = index;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 删除选中的行业二级分类
|
||||
*/
|
||||
deleteIndustrySecondCategoryItem() {
|
||||
this.selectIndustrySecondCategory = -1;
|
||||
this.selectIndustryThirdCategory = -1;
|
||||
this.selectIndustryForthCategory = -1;
|
||||
},
|
||||
/**
|
||||
* 删除选中的行业三级分类
|
||||
*/
|
||||
deleteIndustryThirdCategoryItem() {
|
||||
this.selectIndustryThirdCategory = -1;
|
||||
this.selectIndustryForthCategory = -1;
|
||||
},
|
||||
/**
|
||||
* 删除选中的行业四级分类
|
||||
*/
|
||||
deleteIndustryForthCategoryItem() {
|
||||
this.selectIndustryForthCategory = -1;
|
||||
},
|
||||
/**
|
||||
* 点击选择重要性
|
||||
*/
|
||||
clickImportanceItem(index) {
|
||||
if (this.selectImportanceIndex != index) {
|
||||
this.selectImportanceIndex = index;
|
||||
clickImportanceItem(item) {
|
||||
item.select = !item.select;
|
||||
if (item.key == "all") {
|
||||
if (item.select) {
|
||||
for (let item1 of this.importanceList) {
|
||||
if (item1.key != item.key) {
|
||||
item1.select = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (let item1 of this.importanceList) {
|
||||
if (item1.key == "all") {
|
||||
item1.select = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
@@ -638,7 +641,23 @@ const _sfc_main = {
|
||||
getIndustryCategoryListData() {
|
||||
return new Promise((resolve, reject) => {
|
||||
request_api.industryCategoryList().then((res) => {
|
||||
this.industryCategoryList = res.data;
|
||||
let list = res.data[0].hierarchy;
|
||||
list.unshift({ level1_sector: "全部", level2_sectors: [] });
|
||||
for (let item of list) {
|
||||
let index = list.indexOf(item);
|
||||
item.index = index;
|
||||
item.level2_sectors.unshift({ level2_sector: "全部", level3_sectors: [] });
|
||||
for (let item1 of item.level2_sectors) {
|
||||
let index1 = item.level2_sectors.indexOf(item1);
|
||||
item1.index1 = index1;
|
||||
item1.level3_sectors.unshift({ level3_sector: "全部", level4_sectors: [] });
|
||||
for (let item2 of item1.level3_sectors) {
|
||||
let index2 = item1.level3_sectors.indexOf(item2);
|
||||
item2.index2 = index2;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.industryCategoryList = list;
|
||||
resolve(1);
|
||||
}).catch((error) => {
|
||||
reject(1);
|
||||
@@ -681,35 +700,41 @@ const _sfc_main = {
|
||||
if (this.selectSecondCategory > 0) {
|
||||
param.secondary_sector = this.stockCategoryList[this.selectTopCategory].sub_sectors[this.selectSecondCategory];
|
||||
}
|
||||
if (this.selectQuickTimeIndex > -1) {
|
||||
param.time_filter = this.quickTimeList[this.selectQuickTimeIndex].key;
|
||||
}
|
||||
if (this.startDateStr) {
|
||||
param.start_date = this.startDateStr;
|
||||
}
|
||||
if (this.endDateStr) {
|
||||
param.end_date = this.endDateStr;
|
||||
}
|
||||
if (this.selectImportanceIndex > 0) {
|
||||
param.importance = this.importanceList[this.selectImportanceIndex].key;
|
||||
if (this.selectIndustryThirdCategory > 0) {
|
||||
param.industry_level = 4;
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].level2_sectors[this.selectIndustrySecondCategory].level3_sectors[this.selectIndustryThirdCategory].level3_sector;
|
||||
} else {
|
||||
if (this.selectIndustrySecondCategory > 0) {
|
||||
param.industry_level = 3;
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].level2_sectors[this.selectIndustrySecondCategory].level2_sector;
|
||||
} else {
|
||||
if (this.selectIndustryTopCategory > 0) {
|
||||
param.industry_level = 2;
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].level1_sector;
|
||||
}
|
||||
}
|
||||
}
|
||||
let arr = [];
|
||||
for (let item of this.importanceList) {
|
||||
if (item.select) {
|
||||
arr.push(item.key);
|
||||
}
|
||||
}
|
||||
if (arr.length > 0) {
|
||||
param.importance = arr.join(",");
|
||||
}
|
||||
if (this.selectSortKey) {
|
||||
param.sort = this.selectSortKey;
|
||||
}
|
||||
if (this.selectIndustryForthCategory > -1) {
|
||||
param.industry_level = 4;
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].hierarchy[this.selectIndustrySecondCategory].level2_sectors[this.selectIndustryThirdCategory].level3_sectors[this.selectIndustryForthCategory].level3_sector;
|
||||
} else {
|
||||
if (this.selectIndustryThirdCategory > -1) {
|
||||
param.industry_level = 3;
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].hierarchy[this.selectIndustrySecondCategory].level2_sectors[this.selectIndustryThirdCategory].level2_sector;
|
||||
} else {
|
||||
if (this.selectIndustrySecondCategory > -1) {
|
||||
param.industry_level = 2;
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].hierarchy[this.selectIndustrySecondCategory].level1_sector;
|
||||
} else {
|
||||
param.industry_level = 1;
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].classification_name;
|
||||
}
|
||||
}
|
||||
}
|
||||
request_api.eventList(param).then((res) => {
|
||||
this.isRefreshing = false;
|
||||
if (res.success) {
|
||||
@@ -734,14 +759,37 @@ const _sfc_main = {
|
||||
if (this.selectSecondCategory > 0) {
|
||||
param.secondary_sector = this.stockCategoryList[this.selectTopCategory].sub_sectors[this.selectSecondCategory];
|
||||
}
|
||||
if (this.selectQuickTimeIndex > -1) {
|
||||
param.time_filter = this.quickTimeList[this.selectQuickTimeIndex].key;
|
||||
}
|
||||
if (this.startDateStr) {
|
||||
param.start_date = this.startDateStr;
|
||||
}
|
||||
if (this.endDateStr) {
|
||||
param.end_date = this.endDateStr;
|
||||
}
|
||||
if (this.selectImportanceIndex > 0) {
|
||||
param.importance = this.importanceList[this.selectImportanceIndex].key;
|
||||
if (this.selectIndustryThirdCategory > 0) {
|
||||
param.industry_level = 4;
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].level2_sectors[this.selectIndustrySecondCategory].level3_sectors[this.selectIndustryThirdCategory].level3_sector;
|
||||
} else {
|
||||
if (this.selectIndustrySecondCategory > 0) {
|
||||
param.industry_level = 3;
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].level2_sectors[this.selectIndustrySecondCategory].level2_sector;
|
||||
} else {
|
||||
if (this.selectIndustryTopCategory > 0) {
|
||||
param.industry_level = 2;
|
||||
param.industry_classification = this.industryCategoryList[this.selectIndustryTopCategory].level1_sector;
|
||||
}
|
||||
}
|
||||
}
|
||||
let arr = [];
|
||||
for (let item of this.importanceList) {
|
||||
if (item.select) {
|
||||
arr.push(item.key);
|
||||
}
|
||||
}
|
||||
if (arr.length > 0) {
|
||||
param.importance = arr.join(",");
|
||||
}
|
||||
if (this.selectSortKey) {
|
||||
param.sort = this.selectSortKey;
|
||||
@@ -877,173 +925,152 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
x: common_assets._imports_3,
|
||||
y: $data.selectScreenCategory == 0
|
||||
}, $data.selectScreenCategory == 0 ? common_vendor.e({
|
||||
z: common_assets._imports_9,
|
||||
A: $data.startDateStr
|
||||
z: common_vendor.f($data.quickTimeList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.title),
|
||||
b: common_vendor.n("item " + ($data.selectQuickTimeIndex == index ? "select" : "")),
|
||||
c: index,
|
||||
d: common_vendor.o(($event) => $options.clickQuickTimeItem(index, item), index)
|
||||
};
|
||||
}),
|
||||
A: common_assets._imports_9,
|
||||
B: $data.startDateStr
|
||||
}, $data.startDateStr ? {
|
||||
B: common_vendor.t($data.startDateStr)
|
||||
C: common_vendor.t($data.startDateStr)
|
||||
} : {}, {
|
||||
C: common_vendor.n("dateC start flexCenter flex1 " + ($data.selectDateRangeIndex == 0 ? "select" : "")),
|
||||
D: common_vendor.o(($event) => $options.clickDateRangeItem(0)),
|
||||
E: common_assets._imports_9,
|
||||
F: $data.endDateStr
|
||||
D: common_assets._imports_9,
|
||||
E: $data.endDateStr
|
||||
}, $data.endDateStr ? {
|
||||
G: common_vendor.t($data.endDateStr)
|
||||
F: common_vendor.t($data.endDateStr)
|
||||
} : {}, {
|
||||
H: common_vendor.n("dateC end flexCenter flex1 " + ($data.selectDateRangeIndex == 1 ? "select" : "")),
|
||||
I: common_vendor.o(($event) => $options.clickDateRangeItem(1)),
|
||||
J: common_vendor.f($data.yearList, (item, index, i0) => {
|
||||
G: common_vendor.f($data.yearList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index
|
||||
};
|
||||
}),
|
||||
K: common_vendor.f($data.monthList, (item, index, i0) => {
|
||||
H: common_vendor.f($data.monthList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index
|
||||
};
|
||||
}),
|
||||
L: common_vendor.f($data.dayList, (item, index, i0) => {
|
||||
I: common_vendor.f($data.dayList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index
|
||||
};
|
||||
}),
|
||||
M: common_vendor.f($data.hourList, (item, index, i0) => {
|
||||
J: $data.startDateValue,
|
||||
K: common_vendor.o((...args) => $options.startDateChange && $options.startDateChange(...args)),
|
||||
L: common_vendor.f($data.yearList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index
|
||||
};
|
||||
}),
|
||||
N: common_vendor.f($data.minuteList, (item, index, i0) => {
|
||||
M: common_vendor.f($data.monthList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index
|
||||
};
|
||||
}),
|
||||
O: $data.selectDateRangeIndex == 0 ? $data.startDateValue : $data.endDateValue,
|
||||
P: common_vendor.o((...args) => $options.dateChange && $options.dateChange(...args))
|
||||
N: common_vendor.f($data.dayList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index
|
||||
};
|
||||
}),
|
||||
O: $data.endDateValue,
|
||||
P: common_vendor.o((...args) => $options.endDateChange && $options.endDateChange(...args))
|
||||
}) : {}, {
|
||||
Q: $data.selectScreenCategory == 1
|
||||
}, $data.selectScreenCategory == 1 ? common_vendor.e({
|
||||
R: common_vendor.f($data.industryCategoryList, (item, index, i0) => {
|
||||
R: common_assets._imports_10,
|
||||
S: common_vendor.o([($event) => $data.industryKeywords = $event.detail.value, (...args) => $options.industrySearch && $options.industrySearch(...args)]),
|
||||
T: $data.industryKeywords,
|
||||
U: $data.industryKeywords.length > 0
|
||||
}, $data.industryKeywords.length > 0 ? common_vendor.e({
|
||||
V: common_vendor.f($data.searchResultList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.classification_name),
|
||||
b: common_vendor.n("item " + ($data.selectIndustryTopCategory == index ? "select" : "")),
|
||||
a: common_vendor.t(item.level1_sector),
|
||||
b: common_vendor.n("item relative " + ($data.searchIndustryTopCategory == index ? "select" : "")),
|
||||
c: index,
|
||||
d: common_vendor.o(($event) => $options.clickSearchIndustryTopCategoryItem(index, item), index)
|
||||
};
|
||||
}),
|
||||
W: common_vendor.f($data.searchResultList[$data.searchIndustryTopCategory].level2_sectors, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.level2_sector),
|
||||
b: common_vendor.n("item relative " + ($data.searchIndustrySecondCategory == index ? "select" : "")),
|
||||
c: index,
|
||||
d: common_vendor.o(($event) => $options.clickSearchIndustrySecondCategoryItem(index, item), index)
|
||||
};
|
||||
}),
|
||||
X: $data.searchResultList[$data.searchIndustryTopCategory].level2_sectors.length > 0
|
||||
}, $data.searchResultList[$data.searchIndustryTopCategory].level2_sectors.length > 0 ? {
|
||||
Y: common_vendor.f($data.searchResultList[$data.searchIndustryTopCategory].level2_sectors[$data.searchIndustrySecondCategory].level3_sectors, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.level3_sector),
|
||||
b: $data.searchIndustryThirdCategory == index
|
||||
}, $data.searchIndustryThirdCategory == index ? {
|
||||
c: common_assets._imports_11
|
||||
} : {}, {
|
||||
d: common_vendor.n("item flex relative " + ($data.searchIndustryThirdCategory == index ? "select" : "")),
|
||||
e: index,
|
||||
f: common_vendor.o(($event) => $options.clickSearchIndustryThirdCategoryItem(index, item), index)
|
||||
});
|
||||
})
|
||||
} : {}) : common_vendor.e({
|
||||
Z: common_vendor.f($data.industryCategoryList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.level1_sector),
|
||||
b: common_vendor.n("item relative " + ($data.selectIndustryTopCategory == index ? "select" : "")),
|
||||
c: index,
|
||||
d: common_vendor.o(($event) => $options.clickIndustryTopCategoryItem(index), index)
|
||||
};
|
||||
}),
|
||||
S: common_assets._imports_10,
|
||||
T: common_vendor.o([($event) => $data.industryKeywords = $event.detail.value, (...args) => $options.industrySearch && $options.industrySearch(...args)]),
|
||||
U: $data.industryKeywords,
|
||||
V: $data.industryKeywords.length > 0
|
||||
}, $data.industryKeywords.length > 0 ? {
|
||||
W: common_vendor.f($data.searchResultList, (item, index, i0) => {
|
||||
aa: common_vendor.f($data.industryCategoryList[$data.selectIndustryTopCategory].level2_sectors, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.f(item.hierarchy, (sitem, sindex, i1) => {
|
||||
return {
|
||||
a: common_vendor.f(sitem.level2_sectors, (titem, tindex, i2) => {
|
||||
return {
|
||||
a: common_vendor.f(titem.level3_sectors, (fitem, findex, i3) => {
|
||||
return {
|
||||
a: common_vendor.f(fitem.level3_sector + "/" + titem.level2_sector + "/" + sitem.level1_sector, (citem, cindex, i4) => {
|
||||
return {
|
||||
a: common_vendor.t(citem),
|
||||
b: common_vendor.n($data.industryKeywords.indexOf(citem) > -1 ? "key" : ""),
|
||||
c: cindex
|
||||
a: common_vendor.t(item.level2_sector),
|
||||
b: common_vendor.n("item relative " + ($data.selectIndustrySecondCategory == index ? "select" : "")),
|
||||
c: index,
|
||||
d: common_vendor.o(($event) => $options.clickIndustrySecondCategoryItem(index), index)
|
||||
};
|
||||
}),
|
||||
b: common_vendor.o(($event) => $options.clickIndustrySearchItem(fitem), findex),
|
||||
c: findex
|
||||
};
|
||||
}),
|
||||
b: tindex
|
||||
};
|
||||
}),
|
||||
b: sindex
|
||||
};
|
||||
}),
|
||||
b: index
|
||||
};
|
||||
})
|
||||
} : common_vendor.e({
|
||||
X: $data.selectIndustrySecondCategory > -1
|
||||
}, $data.selectIndustrySecondCategory > -1 ? common_vendor.e({
|
||||
Y: $data.selectIndustrySecondCategory > -1
|
||||
}, $data.selectIndustrySecondCategory > -1 ? {
|
||||
Z: common_vendor.t($data.industryCategoryList[$data.selectIndustryTopCategory].hierarchy[$data.selectIndustrySecondCategory].level1_sector),
|
||||
aa: common_assets._imports_11,
|
||||
ab: common_vendor.o(($event) => $options.deleteIndustrySecondCategoryItem())
|
||||
} : {}, {
|
||||
ac: $data.selectIndustryThirdCategory > -1
|
||||
}, $data.selectIndustryThirdCategory > -1 ? {
|
||||
ad: common_vendor.t($data.industryCategoryList[$data.selectIndustryTopCategory].hierarchy[$data.selectIndustrySecondCategory].level2_sectors[$data.selectIndustryThirdCategory].level2_sector),
|
||||
ae: common_assets._imports_11,
|
||||
af: common_vendor.o(($event) => $options.deleteIndustryThirdCategoryItem())
|
||||
} : {}, {
|
||||
ag: $data.selectIndustryForthCategory > -1
|
||||
}, $data.selectIndustryForthCategory > -1 ? {
|
||||
ah: common_vendor.t($data.industryCategoryList[$data.selectIndustryTopCategory].hierarchy[$data.selectIndustrySecondCategory].level2_sectors[$data.selectIndustryThirdCategory].level3_sectors[$data.selectIndustryForthCategory].level3_sector),
|
||||
ai: common_assets._imports_11,
|
||||
aj: common_vendor.o(($event) => $options.deleteIndustryForthCategoryItem())
|
||||
} : {}) : {}, {
|
||||
ak: common_vendor.t($data.industryCategoryList[$data.selectIndustryTopCategory].classification_name),
|
||||
al: common_vendor.f($data.industryCategoryList[$data.selectIndustryTopCategory].hierarchy, (sitem, sindex, i0) => {
|
||||
ab: $data.industryCategoryList[$data.selectIndustryTopCategory].level2_sectors.length > 0
|
||||
}, $data.industryCategoryList[$data.selectIndustryTopCategory].level2_sectors.length > 0 ? {
|
||||
ac: common_vendor.f($data.industryCategoryList[$data.selectIndustryTopCategory].level2_sectors[$data.selectIndustrySecondCategory].level3_sectors, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t($data.selectIndustrySecondCategory == sindex && sitem.isSpread ? "-" : "+"),
|
||||
b: common_vendor.t(sitem.level1_sector),
|
||||
c: common_vendor.n("categoryC flex " + ($data.selectIndustrySecondCategory == sindex ? "select" : "")),
|
||||
d: common_vendor.o(($event) => $options.clickIndustrySecondCategoryItem(sindex), sindex),
|
||||
e: sitem.isSpread
|
||||
}, sitem.isSpread ? {
|
||||
f: common_vendor.f($data.industryCategoryList[$data.selectIndustryTopCategory].hierarchy[sindex].level2_sectors, (titem, tindex, i1) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t($data.selectIndustrySecondCategory == sindex && $data.selectIndustryThirdCategory == tindex && titem.isSpread ? "-" : "+"),
|
||||
b: common_vendor.t(titem.level2_sector),
|
||||
c: common_vendor.n("categoryC flex " + ($data.selectIndustrySecondCategory == sindex && $data.selectIndustryThirdCategory == tindex ? "select" : "")),
|
||||
d: common_vendor.o(($event) => $options.clickIndustryThirdCategoryItem(sindex, tindex), tindex),
|
||||
e: titem.isSpread
|
||||
}, titem.isSpread ? {
|
||||
f: common_vendor.f($data.industryCategoryList[$data.selectIndustryTopCategory].hierarchy[sindex].level2_sectors[tindex].level3_sectors, (fitem, findex, i2) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(fitem.level3_sector),
|
||||
b: $data.selectIndustrySecondCategory == sindex && $data.selectIndustryThirdCategory == tindex && $data.selectIndustryForthCategory == findex
|
||||
}, $data.selectIndustrySecondCategory == sindex && $data.selectIndustryThirdCategory == tindex && $data.selectIndustryForthCategory == findex ? {
|
||||
c: common_assets._imports_12
|
||||
a: common_vendor.t(item.level3_sector),
|
||||
b: $data.selectIndustryThirdCategory == index
|
||||
}, $data.selectIndustryThirdCategory == index ? {
|
||||
c: common_assets._imports_11
|
||||
} : {}, {
|
||||
d: common_vendor.n("categoryC flex " + ($data.selectIndustrySecondCategory == sindex && $data.selectIndustryThirdCategory == tindex && $data.selectIndustryForthCategory == findex ? "select" : "")),
|
||||
e: common_vendor.o(($event) => $options.clickIndustryForthCategoryItem(sindex, tindex, findex), findex),
|
||||
f: findex
|
||||
d: common_vendor.n("item flex relative " + ($data.selectIndustryThirdCategory == index ? "select" : "")),
|
||||
e: index,
|
||||
f: common_vendor.o(($event) => $options.clickIndustryThirdCategoryItem(index), index)
|
||||
});
|
||||
})
|
||||
} : {}, {
|
||||
g: tindex
|
||||
});
|
||||
})
|
||||
} : {}, {
|
||||
g: sindex
|
||||
});
|
||||
})
|
||||
})) : {}, {
|
||||
am: $data.selectScreenCategory == 2
|
||||
} : {})) : {}, {
|
||||
ad: $data.selectScreenCategory == 2
|
||||
}, $data.selectScreenCategory == 2 ? {
|
||||
an: common_vendor.f($data.importanceList, (item, index, i0) => {
|
||||
ae: common_vendor.f($data.importanceList, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.name),
|
||||
b: $data.selectImportanceIndex == index
|
||||
}, $data.selectImportanceIndex == index ? {
|
||||
c: common_assets._imports_13
|
||||
b: item.select
|
||||
}, item.select ? {
|
||||
c: common_assets._imports_12
|
||||
} : {}, {
|
||||
d: common_vendor.n("item flex " + ($data.selectImportanceIndex == index ? "select" : "")),
|
||||
d: common_vendor.n("item flex " + (item.select ? "select" : "")),
|
||||
e: index,
|
||||
f: common_vendor.o(($event) => $options.clickImportanceItem(index), index)
|
||||
f: common_vendor.o(($event) => $options.clickImportanceItem(item), index)
|
||||
});
|
||||
})
|
||||
} : {}, {
|
||||
ao: $data.selectScreenCategory == 3
|
||||
af: $data.selectScreenCategory == 3
|
||||
}, $data.selectScreenCategory == 3 ? {
|
||||
ap: common_vendor.f($data.sortTypeList, (item, index, i0) => {
|
||||
ag: common_vendor.f($data.sortTypeList, (item, index, i0) => {
|
||||
return {
|
||||
a: item.icon,
|
||||
b: common_vendor.t(item.name),
|
||||
@@ -1053,14 +1080,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
};
|
||||
})
|
||||
} : {}, {
|
||||
aq: $data.selectScreenCategory != 3
|
||||
ah: $data.selectScreenCategory != 3
|
||||
}, $data.selectScreenCategory != 3 ? {
|
||||
ar: common_vendor.o(($event) => $options.clickCancel()),
|
||||
as: common_vendor.o(($event) => $options.clickCertain())
|
||||
ai: common_vendor.o(($event) => $options.clickCancel()),
|
||||
aj: common_vendor.o(($event) => $options.clickCertain())
|
||||
} : {}, {
|
||||
at: common_vendor.s("padding-top:" + $data.menuTop + "px;"),
|
||||
av: common_vendor.sr("screenPopup", "9dfd58d8-1"),
|
||||
aw: common_vendor.p({
|
||||
ak: common_vendor.s("padding-top:" + $data.menuTop + "px;"),
|
||||
al: common_vendor.sr("screenPopup", "9dfd58d8-1"),
|
||||
am: common_vendor.p({
|
||||
type: "top"
|
||||
})
|
||||
});
|
||||
|
||||
@@ -337,6 +337,7 @@ page {
|
||||
height: 2rpx;
|
||||
}
|
||||
.screenPopup .dateList {
|
||||
width: 50%;
|
||||
height: 430rpx;
|
||||
}
|
||||
.screenPopup .dateList .item {
|
||||
@@ -346,28 +347,9 @@ page {
|
||||
color: #778595;
|
||||
text-align: center;
|
||||
}
|
||||
.screenPopup .industryCategoryC {
|
||||
margin: 14rpx 20rpx 0;
|
||||
padding-bottom: 20rpx;
|
||||
border-bottom: solid 1rpx #E4E4E4;
|
||||
}
|
||||
.screenPopup .industryCategoryC .item {
|
||||
background-color: #F6F6F6;
|
||||
margin: 0 20rpx 20rpx 0;
|
||||
padding: 0 30rpx;
|
||||
line-height: 70rpx;
|
||||
border-radius: 10rpx;
|
||||
font-size: 26rpx;
|
||||
font-weight: 500;
|
||||
color: #666;
|
||||
}
|
||||
.screenPopup .industryCategoryC .item.select {
|
||||
background-color: #F97316;
|
||||
color: white;
|
||||
}
|
||||
.screenPopup .industrySearchC {
|
||||
background-color: #F6F6F6;
|
||||
margin: 28rpx 22rpx 0;
|
||||
margin: 30rpx 25rpx 0;
|
||||
padding: 0 22rpx;
|
||||
height: 75rpx;
|
||||
border: solid 1rpx #DBDBDB;
|
||||
@@ -380,6 +362,65 @@ page {
|
||||
width: 30rpx;
|
||||
height: auto;
|
||||
}
|
||||
.screenPopup .industryCategoryC {
|
||||
margin-top: 38rpx;
|
||||
display: flex;
|
||||
}
|
||||
.screenPopup .industryCategoryC .topCategoryList {
|
||||
background-color: #F8F7FD;
|
||||
height: 736rpx;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.screenPopup .industryCategoryC .topCategoryList .item {
|
||||
padding: 0 26rpx;
|
||||
width: 175rpx;
|
||||
line-height: 90rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
.screenPopup .industryCategoryC .topCategoryList .item.select {
|
||||
background-color: white;
|
||||
font-weight: bold;
|
||||
color: #E7A933;
|
||||
}
|
||||
.screenPopup .industryCategoryC .topCategoryList .item.select .line {
|
||||
background-color: #F3C368;
|
||||
top: calc((100% - 25rpx)/2);
|
||||
left: 0;
|
||||
width: 8rpx;
|
||||
height: 25rpx;
|
||||
border-radius: 0 5rpx 5rpx 0;
|
||||
}
|
||||
.screenPopup .industryCategoryC .secondCategoryList {
|
||||
width: 278rpx;
|
||||
}
|
||||
.screenPopup .industryCategoryC .secondCategoryList .item {
|
||||
padding: 0 26rpx;
|
||||
line-height: 90rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
.screenPopup .industryCategoryC .secondCategoryList .item.select {
|
||||
font-weight: bold;
|
||||
color: #E7A933;
|
||||
}
|
||||
.screenPopup .industryCategoryC .thirdCategoryList .item {
|
||||
padding: 0 26rpx;
|
||||
line-height: 90rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
.screenPopup .industryCategoryC .thirdCategoryList .item.select {
|
||||
font-weight: bold;
|
||||
color: #E7A933;
|
||||
}
|
||||
.screenPopup .industryCategoryC .thirdCategoryList .item.select .select {
|
||||
width: 22rpx;
|
||||
height: auto;
|
||||
}
|
||||
.screenPopup .searchResultList {
|
||||
max-height: 500rpx;
|
||||
overflow-y: scroll;
|
||||
|
||||
@@ -35,7 +35,7 @@ const _sfc_main = {
|
||||
type: "cross"
|
||||
},
|
||||
formatter: function(params) {
|
||||
common_vendor.index.__f__("log", "at pages/index/stockDetails/stockDetails.vue:77", params);
|
||||
common_vendor.index.__f__("log", "at pages/index/stockDetails/stockDetails.vue:89", params);
|
||||
let res = "日期:" + params[0].name + "\n开盘价:" + params[0].data[1] + "\n收盘价:" + params[0].data[2] + "\n最低价:" + params[0].data[3] + "\n最高价:" + params[0].data[4];
|
||||
return res;
|
||||
}
|
||||
@@ -361,19 +361,36 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
})
|
||||
} : {}, {
|
||||
e: $data.type == 1 && $data.tradeData
|
||||
}, $data.type == 1 && $data.tradeData ? {
|
||||
f: common_vendor.t($data.tradeData.volume),
|
||||
g: common_vendor.t($data.tradeData.amount)
|
||||
} : {}, {
|
||||
h: $data.type == 1
|
||||
}, $data.type == 1 && $data.tradeData ? common_vendor.e({
|
||||
f: $data.tradeData.volume > 1e8
|
||||
}, $data.tradeData.volume > 1e8 ? {
|
||||
g: common_vendor.t(($data.tradeData.volume / 1e8).toFixed(2))
|
||||
} : common_vendor.e({
|
||||
h: $data.tradeData.volume > 1e4
|
||||
}, $data.tradeData.volume > 1e4 ? {
|
||||
i: common_vendor.t(($data.tradeData.volume / 1e4).toFixed(2))
|
||||
} : {
|
||||
j: common_vendor.t($data.tradeData.volume)
|
||||
}), {
|
||||
k: $data.tradeData.amount > 1e8
|
||||
}, $data.tradeData.amount > 1e8 ? {
|
||||
l: common_vendor.t(($data.tradeData.amount / 1e8).toFixed(2))
|
||||
} : common_vendor.e({
|
||||
m: $data.tradeData.amount > 1e4
|
||||
}, $data.tradeData.amount > 1e4 ? {
|
||||
n: common_vendor.t(($data.tradeData.amount / 1e4).toFixed(2))
|
||||
} : {
|
||||
o: common_vendor.t($data.tradeData.amount)
|
||||
})) : {}, {
|
||||
p: $data.type == 1
|
||||
}, $data.type == 1 ? {
|
||||
i: common_vendor.sr("chartRef", "42054871-1")
|
||||
q: common_vendor.sr("chartRef", "42054871-1")
|
||||
} : {}, {
|
||||
j: common_vendor.t($data.relatedDesc),
|
||||
k: common_vendor.s("margin-top:" + $data.contentTop + "px;"),
|
||||
l: $data.type == 1 && $data.sourceList.length > 0
|
||||
r: common_vendor.t($data.relatedDesc),
|
||||
s: common_vendor.s("margin-top:" + $data.contentTop + "px;"),
|
||||
t: $data.type == 1 && $data.sourceList.length > 0
|
||||
}, $data.type == 1 && $data.sourceList.length > 0 ? {
|
||||
m: common_vendor.f($data.sourceList, (item, index, i0) => {
|
||||
v: common_vendor.f($data.sourceList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.sentences),
|
||||
b: common_vendor.t(item.report_title),
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view><nav-bar wx:if="{{a}}" u-i="42054871-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="chartDesC relative" style="{{k}}"><view wx:if="{{c}}" class="tabC"><view wx:for="{{d}}" wx:for-item="item" wx:key="d" class="{{item.c}}" bindtap="{{item.e}}">{{item.a}} <view wx:if="{{item.b}}" class="line absolute"></view></view></view><view wx:if="{{e}}" class="volumeAmountC flex"><text class="volume">成交量:{{f}}</text><text class="amount">成交金额:{{g}}</text></view><view wx:if="{{h}}" style="width:700rpx;height:400rpx"><l-echart class="r" u-r="chartRef" u-i="42054871-1" bind:__l="__l"></l-echart></view><view class="section">关联描述</view><view class="des">{{j}}<text class="ai">(AI合成)</text></view><view class="riskTips"> 【风险提示:解析内容由价值前沿人工采集整理自新闻、公告、研报等公开信息,团队辛苦编写,未经许可严禁转载。本产品内容内容均不构成投资建议,请投资者注意风险,独立审慎决策。】 </view></view><view wx:if="{{l}}" class="infoSourceC"><view class="section">信息来源</view><view class="list"><view wx:for="{{m}}" wx:for-item="item" wx:key="e" class="item"><view class="content">{{item.a}}</view><view class="article">——《{{item.b}}》</view><view class="authorDateC flex"><view class="author flex1">{{item.c}}</view><view class="date">{{item.d}}</view></view></view></view></view></view>
|
||||
<view><nav-bar wx:if="{{a}}" u-i="42054871-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="chartDesC relative" style="{{s}}"><view wx:if="{{c}}" class="tabC"><view wx:for="{{d}}" wx:for-item="item" wx:key="d" class="{{item.c}}" bindtap="{{item.e}}">{{item.a}} <view wx:if="{{item.b}}" class="line absolute"></view></view></view><view wx:if="{{e}}" class="volumeAmountC flex"><block wx:if="{{f}}"><text class="volume">成交量:{{g}}亿</text></block><block wx:else><text wx:if="{{h}}" class="volume">成交量:{{i}}万</text><text wx:else class="volume">成交量:{{j}}</text></block><block wx:if="{{k}}"><text class="amount">成交金额:{{l}}亿元</text></block><block wx:else><text wx:if="{{m}}" class="amount">成交金额:{{n}}万元</text><text wx:else class="amount">成交金额:{{o}}元</text></block></view><view wx:if="{{p}}" style="width:700rpx;height:400rpx"><l-echart class="r" u-r="chartRef" u-i="42054871-1" bind:__l="__l"></l-echart></view><view class="section">关联描述</view><view class="des">{{r}}<text class="ai">(AI合成)</text></view><view class="riskTips"> 【风险提示:解析内容由价值前沿人工采集整理自新闻、公告、研报等公开信息,团队辛苦编写,未经许可严禁转载。本产品内容内容均不构成投资建议,请投资者注意风险,独立审慎决策。】 </view></view><view wx:if="{{t}}" class="infoSourceC"><view class="section">信息来源</view><view class="list"><view wx:for="{{v}}" wx:for-item="item" wx:key="e" class="item"><view class="content">{{item.a}}</view><view class="article">——《{{item.b}}》</view><view class="authorDateC flex"><view class="author flex1">{{item.c}}</view><view class="date">{{item.d}}</view></view></view></view></view></view>
|
||||
@@ -1 +1 @@
|
||||
<view><image class="topBg absolute" src="{{a}}" mode="widthFix"></image><view class="navTitle fixed" style="{{b}}">个人中心</view><view wx:if="{{c}}" class="personalInfoC relative flex" style="{{j}}" bindtap="{{k}}"><image class="avatar" src="{{d}}" mode="aspectFill"></image><view class="flex1"><view class="nickname">{{e}}</view><view class="mobile">手机号:{{f}}</view><view wx:if="{{g}}" class="mobile">{{h}}会员</view></view><image class="arrow" src="{{i}}" mode="widthFix"></image></view><view wx:if="{{l}}" class="numList relative flex"><view class="item flex1 flexColumnCenter" bindtap="{{n}}"><view class="num">{{m}}</view><view class="title">评论回复</view></view><view class="item flex1 flexColumnCenter" bindtap="{{p}}"><view class="num">{{o}}</view><view class="title">关注收藏</view></view><view class="item flex1 flexColumnCenter" bindtap="{{r}}"><view class="num">{{q}}</view><view class="title">我的点赞</view></view></view><view class="vipC relative" bindtap="{{t}}"><image class="icon" src="{{s}}" mode="widthFix"></image></view><view class="menuList relative"><view class="list"><view wx:for="{{v}}" wx:for-item="item" wx:key="c" class="item relative flex" bindtap="{{item.d}}"><image class="icon" src="{{item.a}}" mode="aspectFit"></image><view class="title flex1">{{item.b}}</view><image class="arrow" src="{{w}}" mode="widthFix"></image></view></view></view><uni-popup wx:if="{{z}}" class="r" u-s="{{['d']}}" u-r="popup" u-i="dd5840e4-0" bind:__l="__l" u-p="{{z}}"><view class="popup"><image class="icon" src="{{x}}" mode="widthFix" show-menu-by-longpress></image></view></uni-popup></view>
|
||||
<view><image class="topBg absolute" src="{{a}}" mode="widthFix"></image><view class="navTitle fixed" style="{{b}}">个人中心</view><view wx:if="{{c}}" class="personalInfoC relative flex" style="{{j}}" bindtap="{{k}}"><image class="avatar" src="{{d}}" mode="aspectFill"></image><view class="flex1"><view class="nickname">{{e}}</view><view class="mobile">手机号:{{f}}</view><view wx:if="{{g}}" class="mobile">{{h}}会员</view></view><image class="arrow" src="{{i}}" mode="widthFix"></image></view><view wx:if="{{l}}" class="numList relative flex"><view class="item flex1 flexColumnCenter" bindtap="{{n}}"><view class="num">{{m}}</view><view class="title">评论回复</view></view><view class="item flex1 flexColumnCenter" bindtap="{{p}}"><view class="num">{{o}}</view><view class="title">关注收藏</view></view><view class="item flex1 flexColumnCenter" bindtap="{{r}}"><view class="num">{{q}}</view><view class="title">我的点赞</view></view></view><view class="vipC relative" bindtap="{{t}}"><image class="icon" src="{{s}}" mode="widthFix"></image></view><view class="menuList relative"><view class="list"><view wx:for="{{v}}" wx:for-item="item" wx:key="c" class="item relative flex" bindtap="{{item.d}}"><image class="icon" src="{{item.a}}" mode="aspectFit"></image><view class="title flex1">{{item.b}}</view><image class="arrow" src="{{w}}" mode="widthFix"></image></view></view></view><uni-popup wx:if="{{z}}" class="r" u-s="{{['d']}}" u-r="popup" u-i="dd5840e4-0" bind:__l="__l" u-p="{{z}}"><view class="popup"><image class="icon" src="{{x}}" mode="widthFix" show-menu-by-longpress></image><view class="title">企业二维码</view></view></uni-popup></view>
|
||||
@@ -88,7 +88,15 @@ page {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.popup {
|
||||
background-color: white;
|
||||
}
|
||||
.popup .icon {
|
||||
width: 560rpx;
|
||||
height: auto;
|
||||
}
|
||||
.popup .title {
|
||||
margin-top: 10rpx;
|
||||
border-radius: 10rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}, {
|
||||
C: $data.memberInfo.is_member
|
||||
}, $data.memberInfo.is_member ? {
|
||||
D: common_assets._imports_13$3
|
||||
D: common_assets._imports_13$2
|
||||
} : {
|
||||
E: common_assets._imports_14$2
|
||||
}, {
|
||||
|
||||
@@ -8,7 +8,20 @@ const _sfc_main = {
|
||||
navH: common_vendor.inject("navHeight"),
|
||||
memberInfo: null,
|
||||
//会员信息
|
||||
privilegeList: ["高效选股工具", "股票基金明星榜单", "定期专属晨报、股票动态", "独家产业研报", "个股产业分析", "股票、基金基础指标", "7x24 财经直播"]
|
||||
privilegeList: [
|
||||
"事件关联股票深度分析",
|
||||
"历史事件智能对比复盘",
|
||||
"事件概念关联与挖掘",
|
||||
"概念板块个股追踪",
|
||||
"概念深深度研报与解读",
|
||||
"个股异动实时预警",
|
||||
"事件传导链路智能分析",
|
||||
"概念演变时间轴追溯",
|
||||
"个股全方位深度研究",
|
||||
"价小前投研助手无限使用",
|
||||
"新功能优先体验权",
|
||||
"专属客服一对一服务"
|
||||
]
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
@@ -93,21 +106,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
p: common_vendor.f($data.privilegeList, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item),
|
||||
b: index == 0 || index == 1 || index == 2
|
||||
}, index == 0 || index == 1 || index == 2 ? {
|
||||
b: index > 5
|
||||
}, index > 5 ? {
|
||||
c: common_assets._imports_7$1
|
||||
} : {}, {
|
||||
d: index == 3 || index == 4
|
||||
}, index == 3 || index == 4 ? common_vendor.e({
|
||||
e: index == 3
|
||||
}, index == 3 ? {} : {}, {
|
||||
f: index == 4
|
||||
}, index == 4 ? {} : {}) : {}, {
|
||||
g: index == 5 || index == 6
|
||||
}, index == 5 || index == 6 ? {
|
||||
h: common_assets._imports_8$2
|
||||
} : {}, {
|
||||
i: index
|
||||
} : {
|
||||
d: common_assets._imports_8$2
|
||||
}, {
|
||||
e: index
|
||||
});
|
||||
}),
|
||||
q: common_assets._imports_8$2,
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view><nav-bar wx:if="{{a}}" u-i="2f528ea3-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view wx:if="{{c}}" class="vipC" style="{{s}}"><view class="vipInfoC relative"><image wx:if="{{d}}" class="bg" src="{{e}}" mode="widthFix"></image><image wx:else class="bg" src="{{f}}" mode="widthFix"></image><view wx:if="{{g}}" class="infoC vip absolute"><view class="title">尊贵的{{h}}VIP会员</view><view class="tips">会员有效期至:{{i}}</view></view><view wx:else class="infoC absolute"><view class="title">价值前沿</view><view class="tips">您还不是会员 加入尊享N项服务</view></view></view><view class="privilegeCompareC relative"><view class="titleC flexCenter"><image wx:if="{{j}}" class="icon" src="{{k}}" mode="widthFix"></image><image wx:else class="icon" src="{{l}}" mode="widthFix"></image><view class="title">特权对比</view><image wx:if="{{m}}" class="icon" src="{{n}}" mode="widthFix"></image><image wx:else class="icon" src="{{o}}" mode="widthFix"></image></view><view class="{{r}}"><view class="header flex"><view class="privilege item">专属特权</view><view class="item free">普通免费</view><view class="item vip">VIP会员</view></view><view class="list"><view wx:for="{{p}}" wx:for-item="item" wx:key="i" class="item flex"><view class="optionItem privilege flex">{{item.a}}</view><view class="optionItem free flexCenter"><block wx:if="{{item.b}}"><image class="notContain" src="{{item.c}}" mode="widthFix"></image></block><block wx:if="{{item.d}}"><block wx:if="{{item.e}}">限制查看数量</block><block wx:if="{{item.f}}">每日查看2只</block></block><block wx:if="{{item.g}}"><image class="contain" src="{{item.h}}" mode="widthFix"></image></block></view><view class="optionItem vip flexCenter"><image class="contain" src="{{q}}" mode="widthFix"></image></view></view></view></view></view></view><view wx:if="{{t}}" class="joinVipC fixed" bindtap="{{w}}">{{v}}</view></view>
|
||||
<view><nav-bar wx:if="{{a}}" u-i="2f528ea3-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view wx:if="{{c}}" class="vipC" style="{{s}}"><view class="vipInfoC relative"><image wx:if="{{d}}" class="bg" src="{{e}}" mode="widthFix"></image><image wx:else class="bg" src="{{f}}" mode="widthFix"></image><view wx:if="{{g}}" class="infoC vip absolute"><view class="title">尊贵的{{h}}VIP会员</view><view class="tips">会员有效期至:{{i}}</view></view><view wx:else class="infoC absolute"><view class="title">价值前沿</view><view class="tips">您还不是会员 加入尊享N项服务</view></view></view><view class="privilegeCompareC relative"><view class="titleC flexCenter"><image wx:if="{{j}}" class="icon" src="{{k}}" mode="widthFix"></image><image wx:else class="icon" src="{{l}}" mode="widthFix"></image><view class="title">特权对比</view><image wx:if="{{m}}" class="icon" src="{{n}}" mode="widthFix"></image><image wx:else class="icon" src="{{o}}" mode="widthFix"></image></view><view class="{{r}}"><view class="header flex"><view class="privilege item">专属特权</view><view class="item free">pro会员</view><view class="item vip">max会员</view></view><view class="list"><view wx:for="{{p}}" wx:for-item="item" wx:key="e" class="item flex"><view class="optionItem privilege flex">{{item.a}}</view><view class="optionItem free flexCenter"><block wx:if="{{item.b}}"><image class="notContain" src="{{item.c}}" mode="widthFix"></image></block><block wx:else><image class="contain" src="{{item.d}}" mode="widthFix"></image></block></view><view class="optionItem vip flexCenter"><image class="contain" src="{{q}}" mode="widthFix"></image></view></view></view></view></view></view><view wx:if="{{t}}" class="joinVipC fixed" bindtap="{{w}}">{{v}}</view></view>
|
||||
4
unpackage/dist/dev/mp-weixin/request/http.js
vendored
@@ -12,7 +12,7 @@ function get(url, params) {
|
||||
});
|
||||
let baseUrl = baseURL;
|
||||
if (url.indexOf("concept-api") > -1 || url.indexOf("news-api") > -1 || url.indexOf("report-api") > -1) {
|
||||
baseUrl = "https://valuefrontier.cn";
|
||||
baseUrl = "https://api.valuefrontier.cn";
|
||||
}
|
||||
common_vendor.index.request({
|
||||
url: baseUrl + url,
|
||||
@@ -96,7 +96,7 @@ function post(url, params) {
|
||||
} else {
|
||||
let baseUrl = baseURL;
|
||||
if (url.indexOf("concept-api") > -1) {
|
||||
baseUrl = "https://valuefrontier.cn";
|
||||
baseUrl = "https://api.valuefrontier.cn";
|
||||
}
|
||||
common_vendor.index.request({
|
||||
url: baseUrl + url,
|
||||
|
||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 1001 B After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 998 B After Width: | Height: | Size: 2.5 KiB |