diff --git a/packages/uni-template-compiler/lib/module.uniad.js b/packages/uni-template-compiler/lib/module.uniad.js index e0c08498ecb1d187f6e2a52d99d5cb5a52409b70..897b5d3c2fb5328f7bb48795a69fc824f72c9782 100644 --- a/packages/uni-template-compiler/lib/module.uniad.js +++ b/packages/uni-template-compiler/lib/module.uniad.js @@ -5,7 +5,7 @@ module.exports = { warn }) { if (process.env.UNI_PLATFORM === 'mp-weixin') { - if (el.tag === 'ad' && el.attrsMap.adpid) { + if (el.tag === 'ad' && (el.attrsMap.adpid || el.attrsMap[':adpid'])) { el.tag = 'uniad' } if (AD_COMPONENTS.indexOf(el.tag) > -1) {