wx.showActionSheet弹出后概率性出现背景颜色和文字颜色一致
发布于 6 年前 作者 xgong 6347 次浏览 来自 官方Issues

https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.showActionSheet.html

没有设置itemColor

这个问题是概率性出现的,所以无法提供出现的条件

产生此现象的关键代码片段:

    wx.showActionSheet({
      itemList: ['公交线路''驾车导航''使用本机的其它APP导航(推荐)'],
      success: res => {
        let tab_index = res.tapIndex
        if (tab_index == 0)
          this.get_navigate_data('transit')
        else if (tab_index == 1)
          this.get_navigate_data('driving')
        else if (tab_index == 2) 
          this.navigate_by_map_app()
      }
    })

问题出现的环境:

SDKVersion: "2.18.0"
abi: "arm64-v8a"
benchmarkLevel: 31
bluetoothEnabled: true
brand: "realme"
cameraAuthorized: true
deviceOrientation: "portrait"
devicePixelRatio: 3
enableDebug: false
fontSizeSetting: 16
host:
env: "WeChat"
version: 671090487
language: "zh_CN"
locationAuthorized: true
locationEnabled: true
microphoneAuthorized: true
model: "RMX2142"
notificationAuthorized: true
pixelRatio: 3
platform: "android"
safeArea:
bottom: 800
height: 764
left: 0
right: 360
top: 36
width: 360
screenHeight: 800
screenTop: 79
screenWidth: 360
statusBarHeight: 36
system: "Android 11"
version: "8.0.7"
wifiEnabled: true
windowHeight: 721
windowWidth: 360

运行环境:

截图:

点击选项时可以看到文字其实还是在的,只不过是和背景的颜色一模一样

回到顶部