fix: make page

This commit is contained in:
zzc
2026-01-31 11:25:53 +08:00
parent 34a06794f9
commit ff0b6e5a10
3 changed files with 23 additions and 11 deletions

View File

@@ -28,7 +28,7 @@
>{{ targetName + "\n " + blessingText.content }}</text
>
</view>
<view class="user" :style="{ left: 160 + userOffsetX + 'rpx' }">
<view class="user" :style="{ left: 160 + userOffsetX + 'rpx', bottom: 40 - userOffsetY + 'rpx' }">
<image class="avatar" :src="userAvatar" mode="aspectFill" />
<view class="user-info">
<text class="user-name" :style="{ color: signatureColor }">{{
@@ -43,7 +43,7 @@
</view>
<view class="tip-line">
<text>点击卡片内容即可编辑</text>
<text>分享或保存即可去除水印</text>
</view>
<!-- 编辑工具区 -->
@@ -257,6 +257,17 @@
activeColor="#ff3b30"
/>
</view>
<view class="form-item">
<text class="label">署名位置 (上下)</text>
<slider
:value="userOffsetY"
min="-200"
max="200"
show-value
@change="(e) => (userOffsetY = e.detail.value)"
activeColor="#ff3b30"
/>
</view>
</view>
<!-- 头像挂饰 -->
@@ -396,6 +407,7 @@ const greetingIndex = ref(0);
const bubbleOffsetY = ref(0);
const userOffsetX = ref(0);
const userOffsetY = ref(0);
onLoad((options) => {
getTemplateList();
@@ -722,7 +734,7 @@ const saveByCanvas = async (save = true) => {
drawUserBubble(ctx, {
x: 160 + userOffsetX.value,
y: H - 120,
y: H - 136 + userOffsetY.value,
avatarImg: avatarImg, // 传入 Image 对象
username: signatureName.value,
desc: "送上祝福",

View File

@@ -27,9 +27,9 @@
"
mode="aspectFill"
/>
<view class="camera-badge">
<!-- <view class="camera-badge">
<uni-icons type="camera-filled" size="16" color="#ff3b30" />
</view>
</view> -->
</view>
<text class="change-avatar-text">更换头像</text>
</view>
@@ -43,20 +43,20 @@
<uni-icons type="right" size="14" color="#ccc" />
</view>
</view>
<view class="info-item" @click="handleEditGender">
<!-- <view class="info-item" @click="handleEditGender">
<text class="label">性别</text>
<view class="value-box">
<text class="value">{{ genderText }}</text>
<uni-icons type="right" size="14" color="#ccc" />
</view>
</view>
<view class="info-item" @click="handleEditManifesto">
</view> -->
<!-- <view class="info-item" @click="handleEditManifesto">
<text class="label">新春宣言</text>
<view class="value-box">
<text class="value red-text">{{ form.bio || "点击选择" }}</text>
<uni-icons type="compose" size="16" color="#ccc" />
</view>
</view>
</view> -->
</view>
<!-- Account Binding -->

View File

@@ -1,6 +1,6 @@
// const BASE_URL = "https://api.ai-meng.com";
const BASE_URL = "https://api.ai-meng.com";
// const BASE_URL = 'http://127.0.0.1:3999'
const BASE_URL = "http://192.168.1.3:3999";
// const BASE_URL = "http://192.168.1.3:3999";
// const BASE_URL = "http://192.168.31.253:3999";
import { useUserStore } from "@/stores/user";