1、结构
<scroll-view scroll-y="true" style="height: calc(100vh - 240rpx);">
<view class="scene_box">
<view class="box_item" v-for="(item,index) in sceneData" v-if="chearArr.includes(item.type)">
<image :src="item.type!='2'?'../../static/scene/scene1.png':'../../static/scene/scene2.png'" mode=""
@touchstart.prevent="touchstart(item)" @touchend.prevent="touchend(item)"
@touchmove.prevent='touchmove(item)'></image>
<image v-if="item.type!='2'" src="../../static/scene/off_on.png" mode=""></image>
<view class="box_item_text">
<text>{
{ item.name }}</text>
<text>描述</text>
</view>
</view>