fix:多平台兼容
This commit is contained in:
@@ -406,10 +406,17 @@
|
||||
const getBannerImages = async () => {
|
||||
try {
|
||||
console.log('加载首页广告')
|
||||
let appPlatform;
|
||||
// #ifdef MP-WEIXIN
|
||||
appPlatform = 'wechat'
|
||||
// #endif
|
||||
// #ifdef MP-ALIPAY
|
||||
appPlatform = 'ali'
|
||||
// #endif
|
||||
|
||||
// 调用接口获取广告内容
|
||||
const res = await getCurrentAdvertisement({
|
||||
appPlatform: 'wechat', // 微信平台
|
||||
appPlatform: appPlatform, // 微信平台
|
||||
appType: 'user' ,// 用户端
|
||||
pictureLocation:'home_banner'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user