wylyl22 3 years ago
commit bde7fb29cf

@ -1,6 +1,8 @@
//app.js
import {url} from "./utils/config"
App({
globalData: {
url,
}
})

@ -3,16 +3,16 @@
<time-component></time-component>
<view class="brand">
<view class="text">热门词云</view>
<word-cloud class="wordtext" list="{{words}}" height="130"></word-cloud>
<word-cloud class="wordtext" list="{{words}}" width="680rpx" height="130"></word-cloud>
</view>
<view class="brand">
<view class="text">正面词云</view>
<word-cloud class="wordtext" list="{{words}}" height="130" ></word-cloud>
<word-cloud class="wordtext" list="{{words}}" width="680rpx" height="130" ></word-cloud>
</view>
<view class="brand">
<view class="text">负面词云</view>
<word-cloud class="wordtext" list="{{words}}" height="130" ></word-cloud>
<word-cloud class="wordtext" list="{{words}}" width="680rpx" height="130" ></word-cloud>
</view>
</view>

@ -1,6 +1,6 @@
/* 品牌传播声量 */
.brand{
width: 686rpx;
width: 680rpx;
height: 484rpx;
background-color: #fff;
margin: 32rpx;

@ -1,6 +1,6 @@
/* 正负调性 */
.brand{
width: 100%;
width:680rpx;
height: 484rpx;
background-color: #fff;
margin: 32rpx;

@ -1,45 +1,47 @@
import {url} from '../../../utils/config'
Component({
data: {
url: getApp().globalData.url,
active:0,
timelist: ['二十四小时', '最近七天', '最近三十天', '自定义'],
totallist:[
{
url:'/images/ruku.png',
url:'/ruku.png',
text:'入库数据',
num:'198,897,987'
},
{
url:'/images/weibo.png',
url:'/weibo.png',
text:'微博数据',
num:'198,897,987'
},
{
url:'/images/shipin.png',
url:'/shipin.png',
text:'短视频数据',
num:'198,897,987'
},
{
url:'/images/weixin.png',
url:'/weixin.png',
text:'微信数据',
num:'198,897,987'
},
{
url:'/images/app.png',
url:'/app.png',
text:'APP数据',
num:'198,897,987'
},
{
url:'/images/luntan.png',
url:'/luntan.png',
text:'论坛数据',
num:'198,897,987'
},
{
url:'/images/xinwen.png',
url:'/xinwen.png',
text:'新闻数据',
num:'198,897,987'
},
{
url:'/images/qita.png',
url:'/qita.png',
text:'其他数据',
num:'198,897,987'
},

@ -29,7 +29,7 @@
<view class="total">
<view class="total_content" wx:for="{{totallist}}" wx:key="url" bindtap="dynamic">
<view class="content_img">
<image src="{{item.url}}" style="width: 100%;height: 100%;"></image>
<image src="{{url+item.url}}" style="width: 100%;height: 100%;"></image>
</view>
<view class="content_text">
<view class="total_text">{{item.text}}</view>

@ -1,4 +1,4 @@
<view style="height: 100vh;">
<view>
<!-- 时间组件 -->
<time-component></time-component>
<view class="list_event">

@ -12,12 +12,12 @@
padding: 32rpx;
}
.ranking{
width: 686rpx;
width: 654rpx;
display: flex;
padding: 0 32rpx;
}
.rank{
width: 686rpx;
width: 654rpx;
height: 104rpx;
line-height: 104rpx;
display: flex;

@ -4,13 +4,13 @@
<view class="brand">
<view class="text">品牌传播声量</view>
<view class="brand_tu">
<c-echars showChart="{{showChart}}" canvasId="brandbar-canvas" chartId="brandbar" chartOption="{{brandOption}}" height="100%"></c-echars>
<c-echars showChart="{{showChart}}" canvasId="brandbar-canvas" chartId="brandbar" chartOption="{{brandOption}}" width="680rpx" height="100%"></c-echars>
</view>
</view>
<view class="brand">
<view class="text">车型传播声量</view>
<view class="brand_tu">
<c-echars showChart="{{showChart}}" canvasId="modelbar-canvas" chartId="modelbar" chartOption="{{modelOption}}" height="100%"></c-echars>
<c-echars showChart="{{showChart}}" canvasId="modelbar-canvas" chartId="modelbar" chartOption="{{modelOption}}" width="680rpx" height="100%"></c-echars>
</view>
</view>

@ -1,8 +1,8 @@
/* 品牌传播声量 */
.brand{
width: 100%;
width: 680rpx;
height: 484rpx;
background-color: #fff;
background-color: rgb(255, 255, 255);
margin: 32rpx;
border-radius: 4rpx;
}

@ -204,12 +204,13 @@ Page({
},
//图表位置
grid: {
left: 200,
left: 400,
right: 200,
bottom: 150,
top: 100,
bottom: 10,
top: 200,
containLabel: true,
height:'auto'
},
yAxis: [

@ -105,6 +105,7 @@
</van-tabs>
<!-- <van-dropdown-menu active-color="#027AFF">
<van-dropdown-menu active-color="#027AFF">
<van-dropdown-item id="priceOpt" value="{{ value }}" title="2022年05月">
<view class="condition">
<view wx:for="{{priceOpt}}" wx:key="index" class="{{index === priceSelected?'active':''}}" data-index="{{index}}" bindtap="priceSel">{{item}}</view>
@ -112,7 +113,7 @@
</van-dropdown-item>
<van-dropdown-item value="{{ value1 }}" options="{{ sortOpt }}" title="列表展示" bind:change="dropdownSel" />
<van-dropdown-item value="{{ value2 }}" options="{{ typeOpt }}" title="品牌">
<scroll-view >
<scroll-view style="height: clac(100vh-{{navHight}}px); " scroll-y bindscroll="onPageScroll" enhanced="true" scroll-into-view="contain">
<van-index-bar>
<view>
<van-index-anchor index="A" />
@ -136,9 +137,9 @@
<van-dropdown-item value="{{ value4 }}" options="{{ level }}" title="按级别" bind:change="dropdownSel" />
<van-dropdown-item value="{{ value5 }}" options="{{ Price }}" title="按价格" />
<van-dropdown-item value="{{ value6 }}" options="{{ energy }}" title="按能源" />
</van-dropdown-menu> -->
</van-dropdown-menu>
</view>
<!-- <view class="list_event" wx:if="{{item.value1===1}}">
<view class="list_event" wx:if="{{item.value1===1}}">
<view class="text">销量排行榜</view>
<chart-display></chart-display>
</view>
@ -173,32 +174,22 @@
<view style="width: 30%;">
<view class="volume">{{item.volume}}</view>
<view class="trend" bindtap="onclick">
<!-- <view class="trend"> -->
<van-icon size="16px" name="arrow" />
<view>销量趋势</view>
</view>
<van-popup show="{{ show }}" position="bottom" custom-style="height: 638rpx;" bind:close="onClose" close-icon="close" close-icon-position="top-left">
<view>
<view> 销量趋势</view>
</view>
</van-popup>
</view>
</view>
</view>
</view>
<<<<<<< HEAD
<!-- </view> -->
<!-- </view> -->
<!-- </view>
</view> -->
<!-- </view> -->
<!-- </view> -->
<van-popup show="{{ show }}" bind:close="onClose" position="bottom" closeable round close-icon-position="top-right" close-icon="cross" custom-style="height: 638rpx">
<view class="popContent">
<view class="popContent-text">销量趋势 </view>
<view class="popContent-title">宏光MINIEV销量趋势</view>
<view class="popContent-echars">
<c-echars showChart="{{showChart}}" canvasId="rankbar-canvas" chartId="rankbar" chartOption="{{positiveOption}}" width="100%" height="100%"></c-echars>
</view>
<van-popup show="{{ show }}" bind:close="onClose" position="bottom" closeable round close-icon-position="top-right" close-icon="cross" custom-style="height: 638rpx">
<view class="popContent">
<view class="popContent-text">销量趋势 </view>
<view class="popContent-title">宏光MINIEV销量趋势</view>
<view class="popContent-echars">
<c-echars showChart="{{showChart}}" canvasId="rankbar-canvas" chartId="rankbar" chartOption="{{positiveOption}}" width="686rpx" height="100%"></c-echars>
</view>
</van-popup>
</view>
</van-popup>

@ -1,9 +1,11 @@
// index.js
// 获取应用实例
const app = getApp()
import {url} from '../../utils/config'
Page({
data: {
url: getApp().globalData.url,
active: 0,
navData: [{
text: '数据',

@ -0,0 +1,4 @@
const url ='https://cdn.sws010.com/wxapp/images'
module.exports={
url
}
Loading…
Cancel
Save