Commit 1f4074d5 by 王志慧

commit

1 parent 829af35a
Showing 33 changed files with 667 additions and 110 deletions
......@@ -13,7 +13,6 @@
"pages/measure/measure/measure",
"pages/measure/measureResult/measureResult",
"packagesList/activityDetail/activityDetail",
"packageOutput/pages/boutique/poutique",
"packagesList/outDetail/index",
"packageOutput/pages/monthReport/monthReport",
"pages/tab/logout/logout",
......@@ -119,8 +118,7 @@
"crowdfund-poster": "/components/CrowdfundPoster/CrowdfundPoster",
"glsx-image": "/components/image/index",
"van-datetime-picker": "@vant/weapp/datetime-picker/index",
"f2": "@antv/wx-f2",
"ff-canvas": "@antv/f2-canvas"
"van-calendar": "@vant/weapp/calendar/index"
},
"resolveAlias": {
"~/*": "/*"
......
<canvas
class="f2-canvas"
canvas-id="{{ canvasId }}"
bindinit="init"
bindtouchstart="touchStart"
bindtouchmove="touchMove"
bindtouchend="touchEnd"
bindlongtap="press"
>
</canvas>
\ No newline at end of file
/* f2-canvas.wxss */
.f2-canvas {
width: 100%;
height: 100%;
}
\ No newline at end of file
This diff could not be displayed because it is too large.
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _EventEmitterMin = require('./EventEmitter.min.js');
var _EventEmitterMin2 = _interopRequireDefault(_EventEmitterMin);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var CAPITALIZED_ATTRS_MAP = {
fontSize: 'FontSize',
opacity: 'GlobalAlpha',
lineDash: 'LineDash',
textAlign: 'TextAlign'
};
/**
* wxapp textAlign align 可选值为 left|center|right
* 标准canvas textAlign align 可选值为 left|center|right|start|end
*/
var TEXT_ALIGN_MAP = {
'start': 'left',
'end': 'right'
};
var Renderer = function (_EventEmitter) {
_inherits(Renderer, _EventEmitter);
function Renderer(wxCtx) {
_classCallCheck(this, Renderer);
var _this = _possibleConstructorReturn(this, (Renderer.__proto__ || Object.getPrototypeOf(Renderer)).call(this));
var self = _this;
self.ctx = wxCtx;
self.style = {}; // just mock
self._initContext(wxCtx);
return _this;
}
_createClass(Renderer, [{
key: 'getContext',
value: function getContext(type) {
if (type === '2d') {
return this.ctx;
}
}
}, {
key: '_initContext',
value: function _initContext(wxCtx) {
Object.keys(CAPITALIZED_ATTRS_MAP).map(function (style) {
Object.defineProperty(wxCtx, style, {
set: function set(value) {
if (style == "textAlign") {
value = TEXT_ALIGN_MAP[value] ? TEXT_ALIGN_MAP[value] : value;
}
var name = 'set' + CAPITALIZED_ATTRS_MAP[style];
wxCtx[name](value);
}
});
});
}
}]);
return Renderer;
}(_EventEmitterMin2.default);
exports.default = Renderer;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlbmRlcmVyLmpzIl0sIm5hbWVzIjpbIkNBUElUQUxJWkVEX0FUVFJTX01BUCIsImZvbnRTaXplIiwib3BhY2l0eSIsImxpbmVEYXNoIiwidGV4dEFsaWduIiwiVEVYVF9BTElHTl9NQVAiL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3eEN0eCk7XG4gIH1cblxuICBnZXRDb250ZXh0KHR5cGUpIHtcbiAgICBpZiAodHlwZSA9PT0gJzJkJykge1xuICAgICAgcmV0dXJuIHRoaXMuY3R4O1xuICAgIH1cbiAgfVxuXG4gIF9pbml0Q29udGV4dCh3eEN0eCkge1xuICAgIE9iamVjdC5rZXlzKENBUElUQUxJWkVEX0FUVFJTX01BUCkubWFwKHN0eWxlID0+IHtcbiAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eSh3eEN0eCwgc3R5bGUsIHtcbiAgICAgICAgc2V0OiB2YWx1ZSA9PiB7XG4gICAgICAgICAgaWYgKHN0eWxlID09IFwidGV4dEFsaWduXCIpIHtcbiAgICAgICAgICAgIHZhbHVlID0gVEVYVF9BTElHTl9NQVBbdmFsdWVdID8gVEVYVF9BTElHTl9NQVBbdmFsdWVdIDogdmFsdWU7XG4gICAgICAgICAgfVxuICAgICAgICAgIGNvbnN0IG5hbWUgPSAnc2V0JyArIENBUElUQUxJWkVEX0FUVFJTX01BUFtzdHlsZV07XG4gICAgICAgICAgd3hDdHhbbmFtZV0odmFsdWUpO1xuICAgICAgICB9XG4gICAgICB9KTtcbiAgICB9KTtcbiAgfVxufVxuIl19
\ No newline at end of file
<!--packageOutput/components/echart/echart.wxml-->
<view class="container" style="height: 300px;">
<f2 class="f2-chart" onInit="{{onInitChart}}" />
</view>
import F2 from '@antv/wx-f2'
Page({
data: {
onInitChart() {
const chart = new F2.Chart({
id:'chart',
width: 400,
height: 250
});
const data = [
{ year: '1951 年', sales: 38 },
{ year: '1952 年', sales: 52 },
{ year: '1956 年', sales: 61 },
{ year: '1957 年', sales: 145 },
{ year: '1958 年', sales: 48 },
{ year: '1959 年', sales: 38 },
{ year: '1960 年', sales: 38 },
{ year: '1962 年', sales: 38 },
];
chart.source(data, {
sales: {
tickCount: 5,
},
style: {
stroke: 'linear-gradient(0deg, blue, green 40%, red)'
}
});
chart.tooltip({
showItemMarker: false,
onShow(ev) {
const { items } = ev;
items[0].name = null;
items[0].name = items[0].title;
items[0].value = '¥ ' + items[0].value;
}
});
chart.interval().position('year*sales');
chart.render().node();
// return chart;
}
},
onLoad() {
const chart = new G2.Chart({
id: 'c1',
width: 1000,
height: 500
});
chart.source(data, {
sales: {
tickCount: 5,
},
style: {
stroke: 'linear-gradient(0deg, blue, green 40%, red)'
}
});
chart.tooltip({
showItemMarker: false,
onShow(ev) {
const { items } = ev;
items[0].name = null;
items[0].name = items[0].title;
items[0].value = '¥ ' + items[0].value;
}
});
chart.interval().position('year*sales');
chart.render();
}
});
page {
background-color: #fff;
}
.f2-chart {
width: 100%;
height: 500rpx;
}
#column-dom {
width: 100%;
height: 500rpx;
}
\ No newline at end of file
<view class="container" style="height: 300px;">
<canvas class="f2-chart" id="c1" />
</view>
<!-- <view class="container" style="height: 300px;">
<ff-canvas id="column-dom" canvas-id="column" opts="{{ opts }}"></ff-canvas>
</view> -->
// packageOutput/components/echart/echart.js
// packageOutput/pages/boutique/components/OutputBar/OutputBar.js
Component({
/**
* 组件的属性列表
*/
properties: {
chartData: {
type: Object,
observer(onInitChart) {
if (onInitChart) {
this.setData({onInitChart})
}
}
}
opts: {
type: Object,
value: {}
}
},
/**
* 组件的初始数据
*/
data: {
tabIndex: 0
},
/**
......@@ -27,4 +23,4 @@ Component({
methods: {
}
})
})
\ No newline at end of file
{
"component": true,
"usingComponents": {
"bar-echart": "../../../echart/echart"
}
}
\ No newline at end of file
.bar-wrap {
width: 710rpx;
height: 516rpx;
background: #FFFFFF;
box-shadow: 0 2rpx 20rpx 0 #b4bacc52;
border-radius: 20rpx;
margin: 0 auto;
padding: 34rpx 30rpx 30rpx 40rpx;
box-sizing: border-box;
.searchList {
height: 104rpx;
display: flex;
align-items: center;
.search-text {
font-weight: 400;
font-size: 28rpx;
color: #A6A6A6;
line-height: 48rpx;
}
.search-text + .search-text {
margin-left: 40rpx;
}
.active {
font-weight: 600;
font-size: 32rpx;
color: #1B233D;
}
}
}
\ No newline at end of file
<view class="bar-wrap">
<view class="searchList">
<block wx:for="{{opts.tabList}}">
<view class="search-text {{tabIndex==index?'active':''}}">{{item}}</view></block>
</view>
<view class="container" style="height: 200px;">
<bar-echart class="f2-chart" chartData="{{opts.chartData}}" color="{{opts.color}}" tickCount="{{opts.tickCount}}" />
</view>
</view>
\ No newline at end of file
// packageOutput/pages/boutique/components/OutputLine/OutputLine.js
Component({
/**
* 组件的属性列表
*/
properties: {
opts: {
type: Object,
value: {}
}
},
/**
* 组件的初始数据
*/
data: {
dataType: 1,
isShow: false,
startTime: '',
endTime: '',
dimension: [{
text: '周',
type: 1
}, {
text: '月',
type: 2
}, {
text: '年',
type: 3
}, ],
timePeriod: 2
},
/**
* 组件的方法列表
*/
methods: {
selectCondition(e) {
let {
condition,
type
} = e.currentTarget.dataset
this.setData({
[condition]: type
})
this.triggerEvent('selectEvent')
},
selectTime() {
this.setData({
isShow: true
})
},
onConfirm(event) {
const [start, end] = event.detail;
this.setData({
isShow: false,
startTime: this.formatDate(start),
endTime: this.formatDate(end)
});
},
formatDate(date) {
date = new Date(date);
return `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()}`;
},
}
})
\ No newline at end of file
{
"component": true,
"usingComponents": {
"line-echart": "../../../line/line"
}
}
\ No newline at end of file
.bar-wrap {
padding: 34rpx 30rpx 30rpx 40rpx;
box-sizing: border-box;
.searchList {
display: flex;
align-items: center;
.search-text {
font-weight: 400;
font-size: 28rpx;
color: #A6A6A6;
line-height: 48rpx;
}
.search-text+.search-text {
margin-left: 40rpx;
}
.active {
font-weight: 600;
font-size: 32rpx;
color: #1B233D;
}
}
.searchTime {
margin-top: 24rpx;
display: flex;
align-items: center;
.time {
padding: 6rpx 30rpx;
border: 2rpx solid #EBEBEB;
border-radius: 32rpx;
font-weight: 400;
font-size: 20rpx;
color: #A6A6A6;
}
.active {
background: #4466f01a;
border-color: #fff;
color: #4466F0;
}
.time+.time {
margin-left: 12rpx;
}
.flex {
display: flex;
align-items: center;
position: absolute;
right:30rpx;
.time-icon {
width: 25.6rpx;
height: 24.6rpx;
}
.temporal {
font-size: 24rpx;
color: #A6A6A6;
margin: 0 8rpx;
}
.arrows {
font-size: 26rpx;
color: #A6A6A6;
transform: rotate(90deg);
}
}
}
}
\ No newline at end of file
<view class="bar-wrap">
<view class="searchList">
<block wx:for="{{opts.tabList}}" wx:for-item="item">
<view class="search-text {{dataType==item.type?'active':''}}" data-condition="dataType" data-type="{{item.type}}" bindtap="selectCondition">{{item.title}}</view></block>
</view>
<view class="searchTime">
<block wx:for="{{dimension}}" wx:for-item="item">
<view class="time {{timePeriod==item.type?'active':''}}" data-condition="timePeriod" data-type="{{item.type}}" bindtap="selectCondition">{{item.text}}</view>
</block>
<view class="flex" bindtap="selectTime">
<glsx-image class="time-icon" src="store-assistant-assemble/output/output-time.png"></glsx-image>
<view class="temporal" >{{startTime?startTime+'-'+endTime:'自定义'}}</view>
<view class="arrows">></view>
</view>
</view>
<view class="container" style="height: 180px;">
<line-echart class="f2-chart" chartData="{{opts.lineData}}" color="{{opts.lineColr}}" tickCount="{{opts.tickCount}}" keys="{{opts.keys}}"/>
</view>
<van-calendar show="{{ isShow }}" type="range" color="#4466F0" bind:confirm="onConfirm"/>
</view>
\ No newline at end of file
......@@ -3,6 +3,8 @@
"usingComponents": {
"nothing-data":"../nothingData/nothingData",
"activity-ing":"../activitying/index",
"activity-end":"../activityend/index"
"activity-end":"../activityend/index",
"output-bar": "./components/OutputBar/OutputBar",
"output-line": "./components/OutputLine/OutputLine"
}
}
\ No newline at end of file
......@@ -16,8 +16,10 @@
</view>
</view>
<view class="line-box">
<output-line id="line" opts="{{opts}}" bind:selectEvent="selectEvent"></output-line>
</view>
<view class="bar-box">
<output-bar opts="{{opts}}"></output-bar>
</view>
<view class="staf-box">
555
......
// packageOutput/components/echart/echart.js
import F2 from '../../../../common/lib/f2'
Component({
/**
* 组件的属性列表
*/
properties: {
chartData: {
type: Array,
value: () => []
},
keys: {
type: Array,
value: ['year', 'sales']
},
tickCount: {
type: Number,
value: 4
},
color: {
type: String,
value: '#3975C6'
}
},
observers: {
'chartData': function (data) {
this.setData({
optsBar: {
onInit: this.onInitChart() //这里就是在js中用到的方法名
}
})
},
},
/**
* 组件的初始数据
*/
data: {
optsBar: {},
},
/**
* 组件的方法列表
*/
methods: {
onInitChart() {
return (canvas, width, height) => {
const chart = new F2.Chart({
el: canvas,
width,
height,
padding: ['auto', 'auto', 'auto', '40'],
animate: true,
});
const data = this.data.chartData;
const [a, b] = this.data.keys
chart.source(data, {
[b]: {
tickCount: this.data.tickCount
}
});
chart.tooltip({
showItemMarker: false,
background: {
radius: 10,
fill: '#fff',
stroke: "#69C9FF",
lineWidth: 2,
padding: [5, 10]
},
valueStyle: {
fill: '#69C9FF',
size: 12
},
tooltipMarkerStyle: {
fill: '#1890FF',
fillOpacity: 0.1
},
onShow: function onShow(ev) {
const items = ev.items;
items[0].name = null
items[0].value = items[0].value + '张';
}
});
chart.axis(a, {
label: {
fill: '#A6A6A6'
}
});
chart.axis(b, {
label: {
fill: '#A6A6A6'
}
});
chart.interval().position(`${a}*${b}`).color(this.data.color).size(12).style({
radius: [6, 6, 0, 0]
});
chart.render();
return chart
}
},
//初始化数据
initData() {
let {
chartData,
keys,
viewData
} = this
chartData.forEach(item => {
viewData.push({
name: item[keys[0]],
value: item[keys[1]]
})
})
},
}
})
\ No newline at end of file
{
"component": true,
"usingComponents": {
"ff-canvas": "../../../../common/f2-canvas"
}
}
\ No newline at end of file
<!--packageOutput/components/echart/echart.wxml-->
<ff-canvas opts="{{ optsBar }}" data="{{chartData}}" />
import F2 from '../../../../common/lib/f2'
Component({
/**
* 组件的属性列表
*/
properties: {
chartData: {
type: Array,
value: () => []
},
keys: {
type: Array,
value: ['year', 'sales']
},
tickCount: {
type: Number,
value: 5
},
color: {
type: String,
value: '#3975C6'
}
},
observers: {
'chartData': function (data) {
if (data.length == 0) {
this.setData({
chartShow: true,
opts: {
onInit: this.onInitChart() //这里就是在js中用到的方法名
}
})
} else {
this.data.chart.changeData(data)
}
},
},
/**
* 组件的初始数据
*/
data: {
initEchart: null,
chart: null,
opts: {}, // 资金占比饼状图
},
/**
* 组件的方法列表
*/
methods: {
onInitChart() {
return (canvas, width, height) => {
this.data.chart = new F2.Chart({
el: canvas,
width,
height,
padding: ['auto', 'auto', 'auto', '40'],
animate: true,
});
const data = this.data.chartData;
const [a, b] = this.data.keys
console.log(a, b)
let tickIntervalNum = 0
// 判断lineData是否有值,根据barList中最大值计算tickInterval
if (data.length) {
let s = data[0].value
for (var i = 1; i < data.length; i++) {
if (s < data[i].value) {
s = data[i].value
}
}
tickIntervalNum = s
}
this.data.chart.source(data, {
[a]: {
// type: 'timeCat',
// mask: 'MM/DD',
// range: [0, 1]
// 滚动条包含几个
min: 3,
max: 1000,
// tickCount: 4,
// 传入不同的sort转换对应的名字
// formatter: function(val) {
// return name_list[val]
// }
},
[b]: {
type: 'linear',
nice: true,
// tickCount: 4,
// tickInterval: Math.ceil(tickIntervalNum / 3)
}
})
this.data.chart.tooltip({
showItemMarker: false,
background: {
radius: 10,
fill: '#fff',
stroke: "#69C9FF",
lineWidth: 2,
padding: [5, 10]
},
valueStyle: {
fill: '#69C9FF',
size: 12
},
onShow: function onShow(ev) {
const items = ev.items;
items[0].name = null
items[0].value = items[0].value + '人';
}
});
this.data.chart.axis(a, {
label: {
fill: '#A6A6A6'
}
});
this.data.chart.axis(b, {
label: {
fill: '#A6A6A6'
}
});
this.data.chart.line().position(`${a}*${b}`).shape('smooth').color(this.data.color).style({
lineWidth: 2
});
this.data.chart.legend(false)
this.data.chart.interaction('pan');
// // 定义进度条
this.data.chart.scrollBar({
mode: 'x',
xStyle: {
offsetY: 0
}
});
this.data.chart.render();
return this.data.chart
}
},
//初始化数据
initData() {
let {
chartData,
keys,
viewData
} = this
chartData.forEach(item => {
viewData.push({
name: item[keys[0]],
value: item[keys[1]]
})
})
},
}
})
\ No newline at end of file
{
"component": true,
"usingComponents": {
"ff-canvas": "../../../../common/f2-canvas"
}
}
\ No newline at end of file
.line-container {
position: relative;
}
.f2-chart {
width: 100%;
height: 500rpx;
}
#pieSelect {
width: 600rpx;
height: 500rpx;
}
.line-tooltip {
opacity: 0;
position: absolute;
width: 140rpx;
height: 70rpx;
border-radius: 6rpx;
box-shadow: 0rpx 2rpx 5rpx 0rpx rgba(0, 0, 0, 0.05);
background: #ffffff;
z-index: 99;
flex-direction: column;
font-size: 16rpx;
box-sizing: border-box;
padding: 10rpx;
left: 0;
top: 0;
.time {
color: #a9a9a9;
}
.item,
.time {
width: 100%;
text-align: left;
font-size: 16rpx;
}
.arc {
border-radius: 100%;
font-size: 5rpx;
margin-right: 4rpx;
}
}
\ No newline at end of file
<!--packageOutput/components/line/line.wxml-->
<ff-canvas opts="{{ opts }}" data="{{chartData}}" />
......@@ -86,7 +86,8 @@
},
"useCompilerPlugins": [
"sass"
]
],
"condition": false
},
"editorSetting": {
"tabIndent": "insertSpaces",
......
......@@ -90,7 +90,7 @@
},
{
"name": "",
"pathName": "packageOutput/pages/boutique/poutique",
"pathName": "packageOutput/pages/boutique/boutique",
"query": "",
"launchMode": "default",
"scene": null
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!