feat: 文本绘制测试页面

This commit is contained in:
zhangyi
2025-03-19 17:51:43 +08:00
parent d6fbf1a6d3
commit adb2652272
12 changed files with 169 additions and 75 deletions
+8 -2
View File
@@ -8,8 +8,8 @@ Page({
},
{
key: 1,
title: '文本绘制',
url: '/demoPages/textPaint/textPaint',
title: '文本绘制2',
url: '/demoPages/textPaint2/textPaint',
},
{
key: 2,
@@ -23,4 +23,10 @@ Page({
},
],
},
tapCard(e: WechatMiniprogram.TouchEvent) {
const { url } = e.currentTarget.dataset;
console.log('navigateTo url:', url);
wx.navigateTo({ url });
},
});
+3 -2
View File
@@ -2,9 +2,10 @@
<scroll-view class="scroll-view" scroll-y type="list">
<view
class="card"
x:for="{{cards}}"
wx:for="{{cards}}"
wx:for-item="card"
bindtap="tabCard"
wx:key="*this"
bindtap="tapCard"
data-url="{{card.url}}">
<view class="card-title">{{card.title}}</view>
</view>