1、input type=“password” />在抖音端是不行的,但是在微信端是支持的。改成即可。
2、换肤主题色data-theme写外层 编译出来匹配不到,改成class就可以了
但是组件内的还是不行(在组件顶层加class 也是可以的 偶尔也不行),暂时没有解决办法
https://blog.csdn.net/weixin_43073383/article/details/132756571
3、uni.navigateBack 在特定场景下会试失效,必须换成tt.navigateBack
4、map 经纬度一定传number类型,string不显示
5、input 默认值 (比如0)如果不显示,就改成string类型
6、小程序组件和微信小程序一样,必须得solt 一一对应 :slot=“slot${item.customSId}
”
7、用uni.navigateTo跳转,多次跳转后,页面卡住,不能再点击切换按钮;改用uni.redirectTo和uni.reLaunch,页面多次切换页面不渲染,渲染数据是静态资源全是写死的。
临时解决方案是,写个一百毫秒定时器,再做redirectTo 跳转
8、自定义 image icon类似组件(以<aicon src=‘’" />为例),图片上下又有一个类似pading的占位,必须给父层设置font-size:0 ;只能有class; 不能直接aicon 标签写样式
9.getUserProfile:fail must be invoked by user tap gesture
在事件节点上添加 data-eventsync=“true”
<button type=“primary” @tap=“getUserProfile” data-eventsync=“true” >获取用户信息
10、抖音小程序不能涉及实物交易,否则必须跳转到抖店;比如租地优惠券这种可以的,但是插件类的电商必须跳转抖店。
11、 tt.openEcGood 跳转抖店商品详情,预览版报错21503;是因为运营把抖店商品删了
uniapp转抖音小程序踩坑记录
于 2023-10-09 17:25:08 首次发布