HarmonyOS POP颜色设置了没有效果

.bindPopup(this.isShowPopu, {
  builder: this.customPop(),
  radius: 2,
  placement: Placement.Bottom,
  arrowOffset: 60,
  popupColor: $r('app.color.color_232934'),
  autoCancel: true,
  onStateChange: (e) => {
    if (!e.isVisible) {
      this.isShowPopu = false
    }
  },
})

/**充电订单 充电帮助的pop*/
@Builder customPop() {
  Column() {
    Text('充电订单').fontSize(16).fontColor(Color.White).padding(16).border({width: {bottom: '1px'}, color: Color.White})
      .onClick(()=>{
        JumpUtil.execJump({url: JumpUtil.getH5Url(H5HostType.APPHOST, Order.CHARGEORDER_LIST)})
        this.isShowPopu = false
      })
    Text('充电帮助').fontSize(16).fontColor(Color.White).padding(16)
      .onClick(()=>{
        JumpUtil.execJump({url: VehicleService.CHARGE_HELP.path.replace('%s', 'take')})
        this.isShowPopu = false
      })
  }.backgroundColor(Color.Transparent)
}
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
HarmonyOS
2024-12-20 16:16:43
1043浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
fox280

想去除模糊背景填充效果,需将backgroundBlurStyle设置为BlurStyle.NONE。模拟器和真机均可正常显示。

.bindPopup(this.customPopup, {
  builder: this.customPop(), // 气泡的内容
  popupColor: Color.Red, // 气泡的背景色
  backgroundBlurStyle: BlurStyle.NONE,
  radius: 2,
  placement: Placement.Bottom,
  arrowOffset: 60,
  onStateChange: (e) => {
    if (!e.isVisible) {
      this.isShowPopu = false
    }
  }
})
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
分享
微博
QQ
微信
回复
2024-12-20 20:18:08
相关问题
HarmonyOS 设置全局字体没有效果
618浏览 • 1回复 待解决
HarmonyOS Canvas设置渐变色没有效果
813浏览 • 1回复 待解决
HarmonyOS 相机设置对焦点,没有效果
624浏览 • 1回复 待解决
subscribeInfo.setDeviceId()没有效果
4716浏览 • 1回复 已解决
HarmonyOS 音频面板拉起来没有效果
571浏览 • 1回复 待解决
HarmonyOS没有设置颜色透明度的方法
1542浏览 • 1回复 待解决
HarmonyOS svg图片运行后颜色变色
924浏览 • 1回复 待解决