template的内容块代码
<template>
<view class="wrap">
<view class="trademark">社区图片</view>
<view class="box">
<scroll-view class="scrool-more" style="height: 100%" scroll-y="true" scroll-with-animation="true">
<view class="box_left">
<scroll-view scroll-y="true">
<view class="box_left_item" v-for="(item,index) in title" :key="index" @click="tab(index)"
:class="{'active':actives==index}">
{
{item}}
</view>
</scroll-view>
</view>
<view class="box_right">
<view class="tu" v-for="(item,index) in imgUrl" :key="index" :class="actives == index?'tu1':'tu2'">
<view class="actiid">
<text>{
{item.title}}</text>
</view>
<view v-for="(imgItem,indexs) in item.imgs" :key="indexs" class="top_img">
<image :src="imgItem" mode="aspectFit" @tap="SKUpreviewImage(imgItem,indexs)"></image>
</view>
</view>
</view>
</scroll-view>
</view>
</view>
</template>
js
<script>
export default {
data() {
return {
title: [
"摄影设计", "明星美女", "空间设计",
"户型装饰", "广告摄影", "摄影学习",
"摄影器材", "明星写真", "清纯甜美",
"古典美女", "动物写真", "精美壁纸",
"古风中国"