fix: third api

This commit is contained in:
zzc
2026-01-31 20:59:51 +08:00
parent 3fed213c30
commit a6ee0f8be6
4 changed files with 23 additions and 5 deletions

View File

@@ -596,7 +596,7 @@ const saveAndUse = async () => {
return;
}
const tempPath = saveByCanvas(true);
const tempPath = await saveByCanvas(true);
const id = createAvatarId();
saveRecordRequest(tempPath, id, "avatar_download");
completeCardInfo(id);

View File

@@ -8,6 +8,9 @@
paddingTop: statusBarHeight + 'px',
}"
>
<view class="nav-left" @tap="goHome">
<uni-icons type="home" size="24" color="#333"></uni-icons>
</view>
<text class="nav-title">新春祝福详情</text>
</view>
@@ -140,6 +143,12 @@ const goBack = () => {
uni.navigateBack();
};
const goHome = () => {
uni.reLaunch({
url: "/pages/index/index",
});
};
const makeGreeting = () => {
uni.switchTab({ url: "/pages/make/index" });
};
@@ -210,18 +219,23 @@ const decorList = ref([
z-index: 100;
display: flex;
align-items: center;
justify-content: center;
padding-left: 20rpx;
background: #fff6f6; /* Match page bg */
}
.nav-left {
position: absolute;
left: 20rpx;
padding: 10rpx 20rpx;
font-size: 48rpx;
line-height: 1;
display: flex;
align-items: center;
}
.nav-title {
font-size: 32rpx;
font-weight: 600;
margin-left: 10rpx;
/* margin-left: 10rpx; */
}
.content-scroll {

View File

@@ -238,7 +238,7 @@
</view>
<!-- 位置调整 -->
<view v-if="activeTool === 'position'" class="section">
<view v-if="activeTool === 'position'" class="section position-section">
<view class="form-item">
<text class="label">祝福语位置 (上下)</text>
<slider
@@ -1279,6 +1279,10 @@ function drawRoundRect(ctx, x, y, w, h, r, color) {
-webkit-line-clamp: 4;
overflow: hidden;
}
.position-section{
margin-bottom: 40rpx;
}
.greeting-card.active .greeting-text {
color: #ff3b30;
}

View File

@@ -1,5 +1,5 @@
const BASE_URL = "https://api.ai-meng.com";
// const BASE_URL = 'http://127.0.0.1:3999'
// 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.31.253:3999";
import { useUserStore } from "@/stores/user";