fix: msg
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user