1.
This commit is contained in:
@@ -862,12 +862,13 @@
|
||||
params.end_date = this.endDateStr
|
||||
}else
|
||||
{
|
||||
params.day = 3
|
||||
params.days = 3
|
||||
if(this.selectCycleIndex==1) {
|
||||
params.day = 7
|
||||
params.days = 7
|
||||
}else if(this.selectCycleIndex==2) {
|
||||
params.day = 14
|
||||
params.days = 14
|
||||
}
|
||||
params.min_stock_count = 3
|
||||
}
|
||||
conceptRankList(params).then(res=>{
|
||||
if (this.selectTab==0) {
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
<view class="type report">研报</view>
|
||||
<view class="title flex1">{{item.report_title}}</view>
|
||||
</view>
|
||||
<view class="content">{{JSON.parse(item.content).content}}</view>
|
||||
<view class="content">{{ getContent(item) }}</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
@@ -90,7 +90,7 @@
|
||||
<script>
|
||||
import { inject } from 'vue';
|
||||
import { conceptNews, conceptReport, priceTimeline } from '@/request/api';
|
||||
import { getChgRateStr, getRateUpOrDown } from '@/utils/util';
|
||||
import { getChgRateStr, getRateUpOrDown, isValidJSON } from '@/utils/util';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -135,6 +135,13 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getContent(item) {
|
||||
if (isValidJSON(item.content)) {
|
||||
return JSON.parse(item.content).content
|
||||
}else {
|
||||
return item.content
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 获取当前时间前一天的数据
|
||||
*/
|
||||
@@ -322,6 +329,7 @@
|
||||
*/
|
||||
clickNewsOrReportItem(index)
|
||||
{
|
||||
console.log(this.selectNewsOrReport, index);
|
||||
if(this.selectNewsOrReport!=index) {
|
||||
this.selectNewsOrReport = index;
|
||||
}
|
||||
@@ -340,6 +348,7 @@
|
||||
* @param {Object} item
|
||||
*/
|
||||
clickReportItem(item) {
|
||||
console.log(item);
|
||||
uni.navigateTo({
|
||||
url:'/pages/concept/reportDetails/reportDetails?info='+encodeURIComponent(JSON.stringify(item))
|
||||
})
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -9,7 +9,7 @@
|
||||
</view>
|
||||
<view class="content">
|
||||
<!-- <ua-markdown :source="content" /> -->
|
||||
<text>{{content}}</text>
|
||||
<text>{{content ? content : reportInfo.content}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -127,10 +127,10 @@
|
||||
<image class="icon" src="/static/icon/home/eventDetails/like.png" mode="widthFix"></image>
|
||||
<view>{{eventDetails.view_count}}</view>
|
||||
</view>
|
||||
<view class="item flexCenter flex1">
|
||||
<!-- <view class="item flexCenter flex1">
|
||||
<image class="icon" src="/static/icon/home/eventDetails/comment.png" mode="widthFix"></image>
|
||||
<view>{{eventDetails.post_count}}</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="item flexCenter flex1" @click="clickFollow()">
|
||||
<image class="icon" src="/static/icon/home/eventDetails/collect.png" mode="widthFix"></image>
|
||||
<view>{{eventDetails.follower_count}}</view>
|
||||
@@ -190,11 +190,11 @@
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="popBottomC">
|
||||
<!-- <view class="popBottomC">
|
||||
<view class="inputC">
|
||||
<input type="text" v-model="replyComment" :focus="isFocus" placeholder="我来说两句..." placeholder-style="color:#666" confirm-type="send" @confirm="sendReplyComment()"/>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</uni-popup>
|
||||
<uni-popup ref="expectScorePopup" type="top" mask-background-color="transparent" :animation="false">
|
||||
|
||||
@@ -77,10 +77,10 @@
|
||||
<image class="icon" src="/static/icon/home/like.png" mode="widthFix"></image>
|
||||
<text>{{item.follower_count}}</text>
|
||||
</view>
|
||||
<view class="toolItem flex">
|
||||
<!-- <view class="toolItem flex">
|
||||
<image class="icon" src="/static/icon/home/comment.png" mode="widthFix"></image>
|
||||
<text>{{item.post_count}}</text>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="toolItem flex" @click.stop="clickFollowEvent(item.id)">
|
||||
<image class="icon" src="/static/icon/home/collect.png" mode="widthFix"></image>
|
||||
<text>{{item.follower_count}}</text>
|
||||
|
||||
@@ -25,10 +25,10 @@
|
||||
<image class="arrow" src="/static/icon/mine/basicInfo/downArrow.png" mode="widthFix"></image>
|
||||
</view>
|
||||
</picker>
|
||||
<view class="section">个人简介</view>
|
||||
<!-- <view class="section">个人简介</view>
|
||||
<view class="textareaC">
|
||||
<textarea v-model="profile" placeholder="简单介绍一下自己吧" placeholder-style="color:#AAA"></textarea>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="bottomC fixed flex">
|
||||
<view class="finish btn" @click="clickFinishOrNext(0)">完成</view>
|
||||
@@ -135,14 +135,14 @@
|
||||
})
|
||||
return
|
||||
}
|
||||
if(!this.profile)
|
||||
{
|
||||
uni.showToast({
|
||||
title:'请输入个人简介',
|
||||
icon:'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
// if(!this.profile)
|
||||
// {
|
||||
// uni.showToast({
|
||||
// title:'请输入个人简介',
|
||||
// icon:'none'
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
if(this.avatar)
|
||||
{
|
||||
//如果选择了新头像
|
||||
|
||||
@@ -39,10 +39,10 @@
|
||||
<image class="icon" src="/static/icon/home/browser.png" mode="widthFix"></image>
|
||||
<text>{{item.view_count}}</text>
|
||||
</view>
|
||||
<view class="toolItem flex">
|
||||
<!-- <view class="toolItem flex">
|
||||
<image class="icon" src="/static/icon/home/comment.png" mode="widthFix"></image>
|
||||
<text>{{item.comment_count}}</text>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="toolItem flex" @click.stop="clickFollowEvent(item.event_id,index)">
|
||||
<image class="icon" src="/static/icon/home/collect_s.png" mode="widthFix"></image>
|
||||
<text>{{item.follower_count}}</text>
|
||||
|
||||
Reference in New Issue
Block a user