diff --git a/pages/avatar/index.vue b/pages/avatar/index.vue index e456875..ffb1b79 100644 --- a/pages/avatar/index.vue +++ b/pages/avatar/index.vue @@ -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); diff --git a/pages/detail/index.vue b/pages/detail/index.vue index 4993ee1..b3b189b 100644 --- a/pages/detail/index.vue +++ b/pages/detail/index.vue @@ -8,6 +8,9 @@ paddingTop: statusBarHeight + 'px', }" > + + + 新春祝福详情 @@ -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 { diff --git a/pages/make/index.vue b/pages/make/index.vue index 68d7834..f6c68ff 100644 --- a/pages/make/index.vue +++ b/pages/make/index.vue @@ -238,7 +238,7 @@ - + 祝福语位置 (上下)