41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
<view class="page-container">
|
|
<view class="wrapper">
|
|
<text class="wrapper-title">自定义涂鸦卡</text>
|
|
<view class="btn-area">
|
|
<toy-button
|
|
type="green"
|
|
bind:click="openSelectShapePopup"
|
|
width="290rpx">
|
|
选择图形
|
|
</toy-button>
|
|
<toy-button
|
|
type="primary"
|
|
bind:click="refreshShapeCard"
|
|
width="290rpx"
|
|
icon="refresh"
|
|
icon-class-prefix="toy-icon">
|
|
随机生成
|
|
</toy-button>
|
|
</view>
|
|
<van-divider />
|
|
<view class="shape-list">
|
|
<shape-card
|
|
wx:for="{{ shapeList }}"
|
|
wx:for-item="item"
|
|
wx:for-index="index"
|
|
wx:key="{{index}}"
|
|
key="{{index}}"
|
|
svg="{{ item.svg }}"
|
|
fillColor="{{ item.fillColor }}"
|
|
bind:onShapeTap="openSelectShapePopup"
|
|
bind:onDelete="onDelete"
|
|
bind:onColorTap="onColorTap" />
|
|
</view>
|
|
</view>
|
|
<shape-picker
|
|
show="{{showSelectShapePopup}}"
|
|
currentShapeKey="{{currentShapeKey}}"
|
|
bind:onClose="closeSelectShapePopup"
|
|
bind:onChange="onChangeShape" />
|
|
</view>
|