hookehuyr

fix 未授权用户通过分享进入详情页问题优化

<!--
* @Date: 2022-09-26 14:36:57
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-11-15 18:28:02
* @LastEditTime: 2022-11-16 14:44:03
* @FilePath: /swx/src/pages/activityDetail/index.vue
* @Description: 活动详情页
-->
......@@ -528,8 +528,11 @@ export default {
name: "activityInfoPage",
mixins: [mixin.init],
async onShow () {
// 缓存ID参数
pageQuery().id && Taro.setStorageSync('activity_id', pageQuery().id);
const activity_id = Taro.getStorageSync('activity_id') ? Taro.getStorageSync('activity_id') : pageQuery().id;
// 获取活动详情
const id = this.qr_id ? this.qr_id : pageQuery().id;
const id = this.qr_id ? this.qr_id : activity_id;
const { code, data } = await activityInfoAPI({ i: id });
if (code) {
this.activity = data.activity;
......