hookehuyr

fix(PosterCheckin): 根据小程序环境版本获取海报信息

移除过时的TODO注释并根据小程序环境版本(正式版或体验版)获取对应的海报信息
......@@ -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
......