fix: make page
This commit is contained in:
@@ -28,7 +28,7 @@
|
|||||||
>{{ targetName + "\n " + blessingText.content }}</text
|
>{{ targetName + "\n " + blessingText.content }}</text
|
||||||
>
|
>
|
||||||
</view>
|
</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" />
|
<image class="avatar" :src="userAvatar" mode="aspectFill" />
|
||||||
<view class="user-info">
|
<view class="user-info">
|
||||||
<text class="user-name" :style="{ color: signatureColor }">{{
|
<text class="user-name" :style="{ color: signatureColor }">{{
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="tip-line">
|
<view class="tip-line">
|
||||||
<text>点击卡片内容即可编辑</text>
|
<text>分享或保存即可去除水印</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 编辑工具区 -->
|
<!-- 编辑工具区 -->
|
||||||
@@ -257,6 +257,17 @@
|
|||||||
activeColor="#ff3b30"
|
activeColor="#ff3b30"
|
||||||
/>
|
/>
|
||||||
</view>
|
</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>
|
</view>
|
||||||
|
|
||||||
<!-- 头像挂饰 -->
|
<!-- 头像挂饰 -->
|
||||||
@@ -396,6 +407,7 @@ const greetingIndex = ref(0);
|
|||||||
|
|
||||||
const bubbleOffsetY = ref(0);
|
const bubbleOffsetY = ref(0);
|
||||||
const userOffsetX = ref(0);
|
const userOffsetX = ref(0);
|
||||||
|
const userOffsetY = ref(0);
|
||||||
|
|
||||||
onLoad((options) => {
|
onLoad((options) => {
|
||||||
getTemplateList();
|
getTemplateList();
|
||||||
@@ -722,7 +734,7 @@ const saveByCanvas = async (save = true) => {
|
|||||||
|
|
||||||
drawUserBubble(ctx, {
|
drawUserBubble(ctx, {
|
||||||
x: 160 + userOffsetX.value,
|
x: 160 + userOffsetX.value,
|
||||||
y: H - 120,
|
y: H - 136 + userOffsetY.value,
|
||||||
avatarImg: avatarImg, // 传入 Image 对象
|
avatarImg: avatarImg, // 传入 Image 对象
|
||||||
username: signatureName.value,
|
username: signatureName.value,
|
||||||
desc: "送上祝福",
|
desc: "送上祝福",
|
||||||
|
|||||||
@@ -27,9 +27,9 @@
|
|||||||
"
|
"
|
||||||
mode="aspectFill"
|
mode="aspectFill"
|
||||||
/>
|
/>
|
||||||
<view class="camera-badge">
|
<!-- <view class="camera-badge">
|
||||||
<uni-icons type="camera-filled" size="16" color="#ff3b30" />
|
<uni-icons type="camera-filled" size="16" color="#ff3b30" />
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
<text class="change-avatar-text">更换头像</text>
|
<text class="change-avatar-text">更换头像</text>
|
||||||
</view>
|
</view>
|
||||||
@@ -43,20 +43,20 @@
|
|||||||
<uni-icons type="right" size="14" color="#ccc" />
|
<uni-icons type="right" size="14" color="#ccc" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-item" @click="handleEditGender">
|
<!-- <view class="info-item" @click="handleEditGender">
|
||||||
<text class="label">性别</text>
|
<text class="label">性别</text>
|
||||||
<view class="value-box">
|
<view class="value-box">
|
||||||
<text class="value">{{ genderText }}</text>
|
<text class="value">{{ genderText }}</text>
|
||||||
<uni-icons type="right" size="14" color="#ccc" />
|
<uni-icons type="right" size="14" color="#ccc" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view> -->
|
||||||
<view class="info-item" @click="handleEditManifesto">
|
<!-- <view class="info-item" @click="handleEditManifesto">
|
||||||
<text class="label">新春宣言</text>
|
<text class="label">新春宣言</text>
|
||||||
<view class="value-box">
|
<view class="value-box">
|
||||||
<text class="value red-text">{{ form.bio || "点击选择" }}</text>
|
<text class="value red-text">{{ form.bio || "点击选择" }}</text>
|
||||||
<uni-icons type="compose" size="16" color="#ccc" />
|
<uni-icons type="compose" size="16" color="#ccc" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- Account Binding -->
|
<!-- Account Binding -->
|
||||||
|
|||||||
@@ -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://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";
|
// const BASE_URL = "http://192.168.31.253:3999";
|
||||||
import { useUserStore } from "@/stores/user";
|
import { useUserStore } from "@/stores/user";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user