fix: 二次分享
This commit is contained in:
@@ -146,7 +146,7 @@ onLoad((options) => {
|
||||
});
|
||||
|
||||
onShareAppMessage(async () => {
|
||||
const token = await getShareToken("avatar_detail", detailData.value?.id);
|
||||
const token = await getShareToken("avatar_download", detailData.value?.id);
|
||||
return {
|
||||
title: "快来看看我刚领到的新年专属头像 🎊",
|
||||
path: `/pages/avatar/detail?shareToken=${token}`,
|
||||
|
||||
@@ -74,8 +74,22 @@
|
||||
<!-- 新增:醒目的上传头像按钮 -->
|
||||
<view class="upload-area" @tap="onChooseAlbum">
|
||||
<view class="upload-btn-large">
|
||||
<uni-icons type="camera-filled" size="24" color="#fff"></uni-icons>
|
||||
<text class="btn-text">上传我的照片/头像</text>
|
||||
<view class="btn-content">
|
||||
<uni-icons
|
||||
type="camera-filled"
|
||||
size="28"
|
||||
color="#fff"
|
||||
></uni-icons>
|
||||
<view class="btn-texts">
|
||||
<text class="btn-title">上传我的照片</text>
|
||||
<text class="btn-sub">制作专属新年头像</text>
|
||||
</view>
|
||||
</view>
|
||||
<uni-icons
|
||||
type="forward"
|
||||
size="20"
|
||||
color="rgba(255,255,255,0.8)"
|
||||
></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -150,7 +164,7 @@
|
||||
/>
|
||||
|
||||
<!-- More Avatar Popup -->
|
||||
<uni-popup ref="morePopup" type="bottom" background-color="#fff">
|
||||
<!-- <uni-popup ref="morePopup" type="bottom" background-color="#fff">
|
||||
<view class="popup-content">
|
||||
<view class="popup-header">
|
||||
<text class="popup-title">选择头像</text>
|
||||
@@ -177,7 +191,7 @@
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
</uni-popup> -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -247,8 +261,8 @@ const selectedFrame = ref(null);
|
||||
const selectedDecor = ref(null);
|
||||
|
||||
// More Popup logic
|
||||
const morePopup = ref(null);
|
||||
const moreAvatars = ref([]);
|
||||
// const morePopup = ref(null);
|
||||
// const moreAvatars = ref([]);
|
||||
|
||||
const loadAvatars = async () => {
|
||||
if (avatarLoading.value || !avatarHasNext.value) return;
|
||||
@@ -764,25 +778,45 @@ onShareTimeline(async () => {
|
||||
|
||||
.upload-btn-large {
|
||||
width: 100%;
|
||||
height: 96rpx;
|
||||
height: 120rpx;
|
||||
background: linear-gradient(135deg, #ff6b66 0%, #ff3b30 100%);
|
||||
border-radius: 16rpx;
|
||||
border-radius: 24rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0 8rpx 24rpx rgba(255, 59, 48, 0.25);
|
||||
justify-content: space-between;
|
||||
padding: 0 32rpx;
|
||||
box-sizing: border-box;
|
||||
box-shadow: 0 8rpx 24rpx rgba(255, 59, 48, 0.3);
|
||||
transition: all 0.2s;
|
||||
border: 2rpx solid rgba(255, 255, 255, 0.2);
|
||||
|
||||
&:active {
|
||||
transform: scale(0.98);
|
||||
opacity: 0.9;
|
||||
box-shadow: 0 4rpx 12rpx rgba(255, 59, 48, 0.2);
|
||||
}
|
||||
|
||||
.btn-text {
|
||||
.btn-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.btn-texts {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-left: 20rpx;
|
||||
|
||||
.btn-title {
|
||||
color: #fff;
|
||||
font-size: 30rpx;
|
||||
font-size: 32rpx;
|
||||
font-weight: 600;
|
||||
margin-left: 12rpx;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.btn-sub {
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
font-size: 22rpx;
|
||||
margin-top: 4rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ onLoad(async (options) => {
|
||||
});
|
||||
|
||||
onShareAppMessage(async () => {
|
||||
const token = await getShareToken("card_detail", cardDetail.value?.id);
|
||||
const token = await getShareToken("card_generate", cardDetail.value?.id);
|
||||
return {
|
||||
title: "送你一张精美的新春祝福卡片 🎊",
|
||||
path: `/pages/detail/index?shareToken=${token || ""}`,
|
||||
|
||||
@@ -149,7 +149,7 @@ onLoad(async (options) => {
|
||||
});
|
||||
|
||||
onShareAppMessage(async () => {
|
||||
const token = await getShareToken("wallpaper_detail", detailData.value?.id);
|
||||
const token = await getShareToken("wallpaper_download", detailData.value?.id);
|
||||
return {
|
||||
title: "快来看看我刚领到的新年精美壁纸 🖼",
|
||||
path: `/pages/wallpaper/detail?shareToken=${token || ""}`,
|
||||
|
||||
Reference in New Issue
Block a user