H5跳转小程序点击无反应?

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:23 1286 0 全屏看文

AI助手支持GPT4.0

H5跳转小程序点击无反应?

如果把<template>标签去掉会出来按钮,但是点击无反应,不去掉就不显示按钮,怎么解决

If the < template > tag is removed, the button will appear, but there is no response when clicking. If the button is not removed, the button will not be displayed. How to solve this problem

回答:

哈罗哈皮:

不要用开发工具测试,普通HTML需要加上template,用手机测试就ok

周雷:手机测试了,加上template一样不出来按钮,不加就能出来 但是点击无反应
哈罗哈皮:你template有没有写style样式,同时不能在里面写定位样式
周雷:什么样式都没写 直接按文档来的
哈罗哈皮:发你测试地址出来看看?
哈罗哈皮:你是不是做了什么判断?手机打开就不一样?要授权?
周雷:现在出来了,什么都没做,看来有缓冲时间
哈罗哈皮:我这边还是不行,估计缓存;如果还不行,你检查下你是授权的aappid是服务号还是订阅号,这个很关键
周雷:现在已经好了 莫名其妙的 感谢
哈罗哈皮:ok

-EOF-

AI助手支持GPT4.0