dev
liuyongli 3 years ago
parent 8adba1dfc4
commit d384c3c9d8

@ -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'
},

@ -30,7 +30,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;
}

@ -4,7 +4,6 @@
* 页面的初始数据
*/
data: {
sortOpt: [
{
text: '列表展示',
@ -201,11 +200,12 @@
},
//图表位置
grid: {
left: 20,
right: 20,
bottom: 15,
top: 40,
containLabel: true
left: 400,
right: 200,
bottom: 10,
top: 200,
containLabel: true,
height:'auto'
},
yAxis: [
{

@ -71,42 +71,23 @@
</view>
<view style="width: 30%;">
<view class="volume">{{item.volume}}</view>
<<<<<<< HEAD
<!-- <view class="trend" bindtap="onclick"> -->
<view class="trend">
<van-icon size="16px" name="arrow" />
<view>销量趋势</view>
</view>
</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>
>>>>>>> 87a74f85d9d55ccf735ddf74357499a809621a51
</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