Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
lls_program
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-09-26 14:35:48 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ccbbf6005d83363f01878168c33560e77373202b
ccbbf600
1 parent
966dd0b2
fix(PosterCheckin): 根据小程序环境版本获取海报信息
移除过时的TODO注释并根据小程序环境版本(正式版或体验版)获取对应的海报信息
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
src/pages/PosterCheckin/index.vue
src/pages/PosterCheckin/index.vue
View file @
ccbbf60
...
...
@@ -169,8 +169,6 @@ const apiData = ref(null)
const isLoading = ref(false)
const apiError = ref(null)
// TODO: 有真实数据的时候, 通过ID获取具体地点的海报信息, 赋值currentPosterIndex获取特定的海报
// 图片预览相关
const previewVisible = ref(false)
const previewImages = ref([])
...
...
@@ -183,7 +181,12 @@ const fetchPosterDetail = async () => {
isLoading.value = true
apiError.value = null
const response = await getPosterDetailAPI({})
const accountInfo = wx.getAccountInfoSync();
const envVersion = accountInfo.miniProgram.envVersion;
// 小程序版本。正式版为 "release",体验版为 "trial"。默认是正式版
const env_version = envVersion === 'release' ? 'release' : 'trial';
const response = await getPosterDetailAPI({ env_version })
if (response.code === 1) {
apiData.value = response.data
...
...
Please
register
or
login
to post a comment