|
@@ -170,7 +170,7 @@ Page({
|
|
|
await actionRecord({
|
|
|
action: 'NEW_YEAR_ACTIVITY_PLAY_TOO',
|
|
|
})
|
|
|
- wx.navigateTo({
|
|
|
+ wx.redirectTo({
|
|
|
url: '/pages/activityList/index',
|
|
|
})
|
|
|
}, // 设置时间文案
|
|
@@ -194,15 +194,20 @@ Page({
|
|
|
[label]: t,
|
|
|
})
|
|
|
},
|
|
|
- createActivityImg(imageUrl, cardReadId) {
|
|
|
+ jumpIndex() {
|
|
|
+ wx.redirectTo({
|
|
|
+ url: '/pages/index/index',
|
|
|
+ })
|
|
|
+ },
|
|
|
+ createActivityImg(shareInfo) {
|
|
|
return new Promise(async (resolve, reject) => {
|
|
|
let title = await getShareText({
|
|
|
- cardReadId
|
|
|
+ cardReadId: shareInfo.id
|
|
|
})
|
|
|
resolve({
|
|
|
title,
|
|
|
- path: `/pages/greeting/index?uid=${wx.getStorageSync('uid')}&cardId=${cardReadId}`,
|
|
|
- imageUrl
|
|
|
+ path: `/pages/greeting/index?uid=${shareInfo.uid}&cardId=${shareInfo.id}`,
|
|
|
+ imageUrl: shareInfo.cardUrl
|
|
|
})
|
|
|
})
|
|
|
},
|
|
@@ -210,10 +215,10 @@ Page({
|
|
|
target,
|
|
|
from,
|
|
|
}) {
|
|
|
- console.log(target.dataset.item);
|
|
|
+ let shareInfo = target.dataset.item
|
|
|
if (from == 'button') {
|
|
|
const promise = new Promise(resolve => {
|
|
|
- this.createActivityImg(target.dataset.item.cardUrl, target.dataset.item.id).then(res => {
|
|
|
+ this.createActivityImg(shareInfo).then(res => {
|
|
|
resolve(res)
|
|
|
})
|
|
|
})
|
|
@@ -222,7 +227,7 @@ Page({
|
|
|
})
|
|
|
return {
|
|
|
title: '',
|
|
|
- path: `/pages/greeting/index?uid=${wx.getStorageSync('uid')}&cardId=${target.dataset.item.id}`,
|
|
|
+ path: `/pages/greeting/index?uid=${shareInfo.uid}&cardId=${shareInfo.id}`,
|
|
|
imageUrl: target.dataset.img,
|
|
|
promise
|
|
|
}
|