wxml:
<view class="progress">
<canvas canvas-id="canvasProgress" style="width: {
{canvasWidth}}rpx; height: {
{canvasHeitht}}rpx;"></canvas>
</view>
<view class="progress">
<canvas canvas-id="canvasProgressReal" style="width: {
{canvasWidth}}rpx; height: {
{canvasHeitht}}rpx;"></canvas>
</view>
js:
Page({
/**
* 页面的初始数据
*/
data: {
canvasWidth: 500,
canvasHeitht: 300,
radioPos: 98,
footNum: 0,
footNumAll: 6000,
myTargetFoot: 10000,
degree: 195,
timer: '',
timerNum: '',
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(opti