当前位置:网站首页>小程序 奇葩BUG 更新~
小程序 奇葩BUG 更新~
2022-07-21 06:55:00 【悟空_大师兄_】
使用swiper组件的时候 模拟器 安卓机使用正常
但是苹果手机真机测试时 出现BUG 只显示前两个 swiper-item 关闭手机重新打开手机又渲染出来
1.如果swiper-item 中使用了 image 组件 需要加上webp=‘true’并添加图片的长宽
2.如果swiper-item 中使用了 text组件 需要将 text更改为view或其他
IOS 翻转动画 + 位置移动 会出现重叠 抢层级问题 暂无找到更佳方案
1.去除翻转动画 直接加载位置移动
IOS 设置 animation 动画设置opacity 会出现底部 闪烁一下 暂无找到更加方案
1.去除animation 改为 transition 直接修改 opacity
定义 button open-type="contact"
小程序打开客服 可自定义参数 (session-from)
用户在小程序“客服会话按钮”进入客服会话时 服务端可监听到 同时可获取到session-from
前端代码
<button open-type="contact"
session-from="nickName={
{userInfo.nickName}}|avatarUrl={
{userInfo.avatarUrl}}|ysf.config={
{ysf.config}}"
bindcontact="handleContact"></button>
服务端监听到的数据
{"createTime":165821118363,"event":"user_enter_tempsession","fromUser":"*****5XrqTsJowAa3cJp3N8pio**","msgType":"event","sessionFrom":"nickName=Awak1enS**|avatarUrl=https://thi**132|ysf.config={\"uid\":\"278\",\"data\":\"[{\\\"key\\\":\\\"mobile_phone\\\",\\\"value\\\":\\\"1506*******\\\"},{\\\"key\\\":\\\"user_id\\\",\\\"lable\\\":\\\"用户ID\\\",\\\"value\\\":\\\"2718\\\"}]\"}","toUser":"gh_f2b8fcd24fe2a10"}
fromUser 是用户openId
wx.openCustomerServiceChat({
extInfo: {
url: 'https://work.weixin.qq.com/kf/' + "kfc1e63468aff78d5" //客服ID
},
corpId: 'wx6c4f6654c9f', //企业微信ID
success(res) {}
})
边栏推荐
- 一种新的UI测试方法:视觉感知测试
- Appium元素定位——App自动化测试
- IP address segment classification
- 11 ways to obtain SSL certificates for free
- Detailed explanation and typical cases of multi-agent system cluster collaborative control experimental platform
- Markdown 转 PDF API 数据接口
- C managed and unmanaged resources
- uniapp 引入腾讯地图
- Oracle sets the maximum number of connections
- 【JVM】垃圾收集器的选择
猜你喜欢
随机推荐
Selenium被检测为爬虫,怎么屏蔽和绕过
Diversified system to carry out maker education activities
Diffusion Model
查看IAR工程所用版本号
uniapp 使用 u-view 框架小程序的样式问题集合
Vscode running C language file
Uniapp introduces Tencent map
连接远程服务器的vscode无法格式化代码/文档(已解决)
Markdown 转 PDF API 数据接口
Appium元素定位——App自动化测试
Word 2016 strange problem: file save error copy crash
mysql docker安装 主从部署
11 ways to obtain SSL certificates for free
【毕设教程】物联网/嵌入式/单片机毕业设计项目开发流程
list解析<stl初级> (跑路人笔记)
A 股指数历史数据 API 数据接口
Steve Aoki's Avatar will come to the sandbox metauniverse!
Cloud foundry 4: application lifecycle
Houdini building rigid body area influence breaking notes
malloc 和 空間配置器