Browse Source

处理首页app步数不显示

接口签名整理
master
vee 3 years ago
parent
commit
f73e4cf650
  1. 10
      pages/home/index.vue

10
pages/home/index.vue

@ -50,7 +50,9 @@ Blame
<view class="steps">
<view class="content">
<view class="title">{{ i18n.TodaySteps }}</view>
<view id="chart" style="width: 280rpx;height:280rpx; font-size: 40rpx;"></view>
<view id="chart" :stepsNum="stepsNum" :stepTarget="stepTarget"
:change:stepTarget="echarts.receive" :change:stepsNum="echarts.receive"
style="width: 280rpx;height:280rpx; font-size: 40rpx;"></view>
<!-- <canvas id="chart" ref="chart" style="width: 280rpx;height:280rpx; font-size: 40rpx;"></canvas> -->
<u-button class="button" color="#00E8A2">{{ i18n.ReceiveEarnings }}</u-button>
</view>
@ -348,7 +350,7 @@ export default {
const script = document.createElement('script');
console.log(2);
// view www www
script.src = '/static/echarts.js';
script.src = './static/echarts.js';
console.log(3);
script.onload = this.initEcharts.bind(this);
console.log(4);
@ -358,6 +360,10 @@ export default {
},
methods: {
receive(newValue, oldValue, ownerVm, vm) {
console.log('newValue', newValue)
},
initEcharts() {
console.log(31);
// let t1=null;

Loading…
Cancel
Save