Code Monkey home page Code Monkey logo

Comments (4)

izhangshaolin avatar izhangshaolin commented on August 31, 2024 1

我是小米的开发者 this.currentIndex = evt.data.index 您的这一段,在规范上是不成立的, 华为和联盟这个地方是evt.index。建议真机开始调试查看devtools里面的日志

from sample.

izhangshaolin avatar izhangshaolin commented on August 31, 2024

你好,您这边可以贴一下您的代码吗?然后描述下是什么场景,什么版本的情况下不会触发。方便我们调查原因。

from sample.

CruxCv avatar CruxCv commented on August 31, 2024

手机: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.

CruxCv avatar CruxCv commented on August 31, 2024

我是小米的开发者 this.currentIndex = evt.data.index 您的这一段,在规范上是不成立的, 华为和联盟这个地方是evt.index。建议真机开始调试查看devtools里面的日志

感谢,我去试试 🙏

from sample.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.