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