在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/網(wǎng)絡(luò)安全  HTML/ weex click事件在PC端正常,而通過掃描二維碼在安卓手機上預(yù)覽時事件卻失

weex click事件在PC端正常,而通過掃描二維碼在安卓手機上預(yù)覽時事件卻失效,什么原因?

<template>
  <div class="index" id="page" bubble="true">
    <div class="btns" @click="change">
      <div class="button" id="btn1" :class="[Activebtn === 1? 'active' : '']">
        <text class="text">推薦</text>
      </div>
      <div class="button" id="btn2" :class="[Activebtn === 2? 'active' : '']" >
        <text class="text">熱榜</text>
      </div>
    </div>
    <router-view></router-view>
  </div>
</template>

<script>
import { mapState } from 'vuex'

export default {
  name: 'App',
  data () {
    return {
      Activebtn: 1
    }
  },
  computed: mapState(['items']),
  methods: {
    change (e) {
      if (e.target.parentNode.id === 'btn1' && this.Activebtn === 2) {
        
        this.Activebtn = 1
        this.$router.push('/recommed')
      } else if (e.target.parentNode.id === 'btn2' && this.Activebtn === 1) {
        
        this.Activebtn = 2
        this.$router.push('/hot')
      }
    }
  },
  created () {
    const obj = {url: '/api/feeds', pageNumber: 1, pageSize: 10}
    this.$store.dispatch('update', obj)
  }
}
</script>

<style scoped>
.btns{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  height: 87.5px;
}
.button{
  width: 375px;
  flex: auto;
  justify-content: center;
  background-color: white;
}
.text{
  flex: auto;
  text-align: center;
  font-size: 50px;
}
.index{
  background-color: rgb(240, 234, 234);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.active{
  border-bottom-width: 5px;
  border-bottom-color: rgb(2, 191, 224);
}
</style>
回答
編輯回答
初念

試試改用touch事件?

2017年1月20日 19:52