optimize: avatar page share reward
This commit is contained in:
@@ -85,13 +85,23 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- Wallpaper Banner -->
|
<!-- Wallpaper Banner -->
|
||||||
<view class="wallpaper-banner" @tap="goToWallpaper">
|
<view class="wallpaper-banner" @tap="goToFortune">
|
||||||
<view class="banner-icon">
|
<view class="banner-icon">
|
||||||
<text>🖼</text>
|
<text>🏮</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="banner-content">
|
<view class="banner-content">
|
||||||
<text class="banner-title">去挑选新年壁纸</text>
|
<text class="banner-title">去抽取新年运势</text>
|
||||||
<text class="banner-desc">新年新气象,全套皮肤限时领</text>
|
<text class="banner-desc">每日一签,开启你的新年好运</text>
|
||||||
|
</view>
|
||||||
|
<text class="banner-arrow">›</text>
|
||||||
|
</view>
|
||||||
|
<view class="wallpaper-banner" @tap="goToGreeting">
|
||||||
|
<view class="banner-icon">
|
||||||
|
<text>🧧</text>
|
||||||
|
</view>
|
||||||
|
<view class="banner-content">
|
||||||
|
<text class="banner-title">去制作新年贺卡</text>
|
||||||
|
<text class="banner-desc">定制专属祝福,传递浓浓年味</text>
|
||||||
</view>
|
</view>
|
||||||
<text class="banner-arrow">›</text>
|
<text class="banner-arrow">›</text>
|
||||||
</view>
|
</view>
|
||||||
@@ -101,17 +111,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="banner-content">
|
<view class="banner-content">
|
||||||
<text class="banner-title">去挑选新年壁纸</text>
|
<text class="banner-title">去挑选新年壁纸</text>
|
||||||
<text class="banner-desc">新年新气象,全套皮肤限时领</text>
|
<text class="banner-desc">精选新年壁纸,让手机也过年</text>
|
||||||
</view>
|
|
||||||
<text class="banner-arrow">›</text>
|
|
||||||
</view>
|
|
||||||
<view class="wallpaper-banner" @tap="goToWallpaper">
|
|
||||||
<view class="banner-icon">
|
|
||||||
<text>🖼</text>
|
|
||||||
</view>
|
|
||||||
<view class="banner-content">
|
|
||||||
<text class="banner-title">去挑选新年壁纸</text>
|
|
||||||
<text class="banner-desc">新年新气象,全套皮肤限时领</text>
|
|
||||||
</view>
|
</view>
|
||||||
<text class="banner-arrow">›</text>
|
<text class="banner-arrow">›</text>
|
||||||
</view>
|
</view>
|
||||||
@@ -210,6 +210,16 @@ const goToMake = () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const goToFortune = () => {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pages/fortune/index",
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
const goToGreeting = () => {
|
||||||
|
uni.switchTab({ url: "/pages/make/index" });
|
||||||
|
};
|
||||||
|
|
||||||
const goToWallpaper = () => {
|
const goToWallpaper = () => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/wallpaper/index",
|
url: "/pages/wallpaper/index",
|
||||||
|
|||||||
@@ -653,8 +653,11 @@ onShareAppMessage(async () => {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
const id = createAvatarId();
|
const id = createAvatarId();
|
||||||
const shareTokenRes = await getShareToken("avatar_download", id);
|
const shareTokenRes = {
|
||||||
completeCardInfo(id);
|
shareToken: "iFmK8WjRm6TK",
|
||||||
|
};
|
||||||
|
// const shareTokenRes = await getShareToken("avatar_download", id);
|
||||||
|
// completeCardInfo(id);
|
||||||
return {
|
return {
|
||||||
title: "制作我的新春头像",
|
title: "制作我的新春头像",
|
||||||
path: `/pages/avatar/detail?shareToken=${shareTokenRes.shareToken}`,
|
path: `/pages/avatar/detail?shareToken=${shareTokenRes.shareToken}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user