Comments (4)
我是小米的开发者 this.currentIndex = evt.data.index
您的这一段,在规范上是不成立的, 华为和联盟这个地方是evt.index
。建议真机开始调试查看devtools里面的日志
from sample.
你好,您这边可以贴一下您的代码吗?然后描述下是什么场景,什么版本的情况下不会触发。方便我们调查原因。
from sample.
手机:huawei
型号:COL-AL10
版本:9.1.0.337(C00E333R1P1)
<template>
<div class="banner-wrap flex-column ai-center">
<swiper
class="swiper"
autoplay="{{false}}"
interval="{{5000}}"
indicator="{{false}}"
loop="{{false}}"
@change="onChange"
>
<block for="{{sourceData.list || []}}">
<banner-item source-data="{{$item}}" @go-detail="goDetail"></banner-item>
</block>
</swiper>
<div class="step-wrap flex ai-center jc-center">
<block for="{{sourceData.list || []}}">
<div
class="step {{currentIndex === $idx ? 'active' : ''}} {{$idx ? 'not-last' : ''}}"
></div>
</block>
</div>
</div>
</template>
onChange(evt) {
console.log(evt.data.index) // 模拟器没问题,但是真机不会触发
this.currentIndex = evt.data.index
}
from sample.
我是小米的开发者
this.currentIndex = evt.data.index
您的这一段,在规范上是不成立的, 华为和联盟这个地方是evt.index
。建议真机开始调试查看devtools里面的日志
感谢,我去试试 🙏
from sample.
Related Issues (18)
- vivo手机操作后界面空白 HOT 1
- 华为v9 打开页面空白 HOT 2
- add ci: auto build and test when pushed to github HOT 1
- 错误提示:平台版本过低,请升级平台;尝试升级,升级后打不开....
- 在sample/src/component/media/web/index.ux中的openWeb(param)方法在设置allowthirdpartycookies时出现代码遗漏
- How to solve the problem 'received ssl error' when web component load page?
- picker组件,点击后展示的弹窗,其dom无法在浏览器显示,故无法对其进行样式修改
- 快应用名称如何作多语言支持? HOT 1
- switch文档有误
- 运行报错
- checkbox icon无法加载
- 文件名不能叫做video.ux HOT 1
- system.postMessage报错
- npm install 安装依赖报错
- 当页面存在richtext时候创建广告,require('@service.ad').createBannerAd时候的问题
- 拜托 多久没更新 组件了啊 开发起来太难受了 swiper previousmargin nextmargin 不能像小程序那样去展示 HOT 2
- 组件上能否出一个样式显示的那种呢
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sample.