Files
ctms-client/apis/ctms/ads.js
fm453 c62d15b288 首次完整推送,
V:1.20240808.006
2024-08-13 18:32:37 +08:00

29 lines
740 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import request from './_utils/request.js'
import apis from './apis.json'
export default {
// 开屏广告
splash: function() {
const data = {}
let url = apis.AdsSplash;
return request({
'url': url,
// 'force_url': '', //强制指定URL忽略上面的url设定
'method': 'GET',
'data': data,
'params': {}
}).then((res) => {
if (res.code == 200) return res.data;
})
},
// BANNER
banner: function() {
let url = apis.AdsBanner;
return request({
'url': url,
'method': 'GET'
}).then((res) => {
if (res.code == 200) return res.data;
})
}
}