fix: third api
This commit is contained in:
@@ -596,7 +596,7 @@ const saveAndUse = async () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const tempPath = saveByCanvas(true);
|
const tempPath = await saveByCanvas(true);
|
||||||
const id = createAvatarId();
|
const id = createAvatarId();
|
||||||
saveRecordRequest(tempPath, id, "avatar_download");
|
saveRecordRequest(tempPath, id, "avatar_download");
|
||||||
completeCardInfo(id);
|
completeCardInfo(id);
|
||||||
|
|||||||
@@ -8,6 +8,9 @@
|
|||||||
paddingTop: statusBarHeight + 'px',
|
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>
|
<text class="nav-title">新春祝福详情</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -140,6 +143,12 @@ const goBack = () => {
|
|||||||
uni.navigateBack();
|
uni.navigateBack();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const goHome = () => {
|
||||||
|
uni.reLaunch({
|
||||||
|
url: "/pages/index/index",
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
const makeGreeting = () => {
|
const makeGreeting = () => {
|
||||||
uni.switchTab({ url: "/pages/make/index" });
|
uni.switchTab({ url: "/pages/make/index" });
|
||||||
};
|
};
|
||||||
@@ -210,18 +219,23 @@ const decorList = ref([
|
|||||||
z-index: 100;
|
z-index: 100;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
padding-left: 20rpx;
|
padding-left: 20rpx;
|
||||||
background: #fff6f6; /* Match page bg */
|
background: #fff6f6; /* Match page bg */
|
||||||
}
|
}
|
||||||
.nav-left {
|
.nav-left {
|
||||||
|
position: absolute;
|
||||||
|
left: 20rpx;
|
||||||
padding: 10rpx 20rpx;
|
padding: 10rpx 20rpx;
|
||||||
font-size: 48rpx;
|
font-size: 48rpx;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
.nav-title {
|
.nav-title {
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin-left: 10rpx;
|
/* margin-left: 10rpx; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-scroll {
|
.content-scroll {
|
||||||
|
|||||||
@@ -238,7 +238,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 位置调整 -->
|
<!-- 位置调整 -->
|
||||||
<view v-if="activeTool === 'position'" class="section">
|
<view v-if="activeTool === 'position'" class="section position-section">
|
||||||
<view class="form-item">
|
<view class="form-item">
|
||||||
<text class="label">祝福语位置 (上下)</text>
|
<text class="label">祝福语位置 (上下)</text>
|
||||||
<slider
|
<slider
|
||||||
@@ -1279,6 +1279,10 @@ function drawRoundRect(ctx, x, y, w, h, r, color) {
|
|||||||
-webkit-line-clamp: 4;
|
-webkit-line-clamp: 4;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.position-section{
|
||||||
|
margin-bottom: 40rpx;
|
||||||
|
}
|
||||||
.greeting-card.active .greeting-text {
|
.greeting-card.active .greeting-text {
|
||||||
color: #ff3b30;
|
color: #ff3b30;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
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