Commit 54780e64 authored by 李俊赕's avatar 李俊赕

updata-clicked

parent 8f33bc70
...@@ -7,15 +7,20 @@ ...@@ -7,15 +7,20 @@
</view> </view>
</view> </view>
<view class="rightView"> <view class="rightView">
<view :class=" item.isClicked == true ? 'rightItemView FAbackColor' : 'rightItemView' " @click="rightItemClick(item,ikey)" v-for="(item,ikey) in rightList":key="ikey"> <template
<view :class=" item.images ? 'rightContentView width_50' : 'rightContentView width_100' "> v-for="(item,ikey) in rightList"
<text class="rightTitle u-m-t-30 u-m-l-30">{{item.name}} ({{item.image_count}}张)</text> >
<text class="rightContent u-m-t-14 u-m-l-30 u-p-b-30">{{item.describe}}</text> <view :class="['rightItemView',item.clickable ? 'FAbackColor' : '']" @click="rightItemClick(item,ikey)" :key="ikey">
<view :class=" item.images ? 'rightContentView width_50' : 'rightContentView width_100' ">
<text class="rightTitle u-m-t-30 u-m-l-30">{{item.name}} ({{item.image_count}}张)</text>
<text class="rightContent u-m-t-14 u-m-l-30 u-p-b-30">{{item.describe}}</text>
</view>
<view class="rightImageView" v-if="item.images">
<image class="rightImage" :src="item.images[0]" mode=""></image>
</view>
</view> </view>
<view class="rightImageView" v-if="item.images"> </template>
<image class="rightImage" :src="item.images[0]" mode=""></image>
</view>
</view>
</view> </view>
</view> </view>
</template> </template>
...@@ -124,11 +129,8 @@ ...@@ -124,11 +129,8 @@
// subItem.isClicked = true // subItem.isClicked = true
// } // }
// } // }
item.isClicked = true item.clickable = true
// this.$set(this.rightList[ikey],'clickable',true)
console.log('点击事件 里的rightList:')
console.log(this.rightList)
var current_image = item.images[0] var current_image = item.images[0]
var current_count = 1 var current_count = 1
uni.navigateTo({ uni.navigateTo({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment