This commit is contained in:
zzc
2026-02-01 09:40:56 +08:00
parent 2e2a616512
commit 6112cb546e
3 changed files with 23 additions and 39 deletions

View File

@@ -115,7 +115,7 @@
:key="i"
class="tpl-card title-card"
:class="{ selected: title?.id === currentTitle?.id }"
@tap="currentTitle = title"
@tap="selectTitle(title)"
>
<image :src="title.imageUrl" class="title-cover" mode="aspectFit" />
<view v-if="title?.id === currentTitle?.id" class="tpl-check"></view>
@@ -160,11 +160,6 @@
/>
</view>
<!-- 下一步引导 -->
<view class="next-step-tip" @tap="openTool('title')">
<text>选好标题了去选模板</text>
<uni-icons type="arrow-right" size="14" color="#ff3b30"></uni-icons>
</view>
</view>
<!-- 模板区 -->
@@ -195,11 +190,7 @@
>没有更多了</view
>
</view>
<!-- 下一步引导 -->
<view class="next-step-tip" @tap="openTool('title')">
<text>选好模板了去选标题</text>
<uni-icons type="arrow-right" size="14" color="#ff3b30"></uni-icons>
</view>
</view>
<!-- 文字编辑 -->
@@ -307,12 +298,6 @@
</view>
</view>
</view>
<!-- 下一步引导 -->
<view class="next-step-tip" @tap="openTool('position')">
<text>文字改好了去调位置</text>
<uni-icons type="arrow-right" size="14" color="#ff3b30"></uni-icons>
</view>
</view>
<!-- 位置调整 -->
@@ -757,6 +742,16 @@ const currentTemplate = ref(templates.value[0]);
const applyTemplate = (tpl) => {
currentTemplate.value = tpl;
closePanel();
};
const selectTitle = (title) => {
if (currentTitle.value?.id === title?.id) {
currentTitle.value = null;
} else {
currentTitle.value = title;
closePanel();
}
};
const pickImage = () => {
@@ -1381,23 +1376,6 @@ function drawRoundRect(ctx, x, y, w, h, r, color) {
font-weight: bold;
}
/* 下一步引导 */
.next-step-tip {
display: flex;
align-items: center;
justify-content: center;
padding: 20rpx 0;
margin: 10rpx 24rpx 20rpx;
background: #fff6f5;
border-radius: 12rpx;
color: #ff3b30;
font-size: 24rpx;
font-weight: 500;
}
.next-step-tip text {
margin-right: 8rpx;
}
/* 模板区 */
.section {
padding: 12rpx 24rpx 0;