Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
swx_weapp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2022-11-16 14:47:46 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6d2772ebc909b58e72557030e41b2233c0fe928f
6d2772eb
1 parent
c32b1ff2
fix 未授权用户通过分享进入详情页问题优化
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
src/pages/activityDetail/index.vue
src/pages/activityDetail/index.vue
View file @
6d2772e
<!--
* @Date: 2022-09-26 14:36:57
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-11-1
5 18:28:02
* @LastEditTime: 2022-11-1
6 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;
...
...
Please
register
or
login
to post a comment