wylyl22 3 years ago
commit 7f2cf926db

@ -1,6 +1,6 @@
<canvas type="2d" id="myCanvas" class="wc-canvas"></canvas>
<view class="wc-main" style="width: {{ width ? width + 'px' : '100%' }};height: {{ height }}px; background-color: {{bgColor || '#fff'}};">
<block wx:for="{{wordData}}" wx:key="index">
<text class="wc-item" style="top:{{item.top}}rpx;left:{{ item.left }}rpx; transform:{{item.transform}};lineHeight:{{item.fontSize}}rpx;font:{{item.font}};color:{{item.color}};" catchtap="bindWord" data-detail="{{item}}" >{{ item.word }} </text>
<text class="wc-item" style="top:{{item.top}}rpx;left:{{ item.left }}rpx; transform:{{item.transform}}; line-height:{{item.fontSize}}rpx;font:{{item.font}};color:{{item.color}};" catchtap="bindWord" data-detail="{{item}}" >{{ item.word }} </text>
</block>
</view>

@ -1,13 +1,9 @@
// pages/index/Rankdetail/Rankdetail.js
Page({
/**
* 页面的初始数据
*/
data: {
sortOpt: [
{
text: '列表展示',

Loading…
Cancel
Save