You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
yanzong_qianduan/pages/news/rules/rulesList.vue

58 lines
1.0 KiB

<template>
<view class="pages">
<view class="header">
<u-navbar is-back="false" :title="title"></u-navbar>
</view>
<view class="content">
<view v-for="(item,index) in list" :key="index" class="item">
<view class="title" @click="goRules(item)">
{{item.title}}
</view>
<u-line v-if="item.title" />
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
title: '',
list: [],
itemInfo: {}
}
},
onLoad(options) {
this.itemInfo = JSON.parse(decodeURIComponent(options.itemInfo))
console.log(this.itemInfo )
this.title = this.itemInfo.name
this.list = this.itemInfo.child
},
methods: {
goRules(item) {
uni.navigateTo({
url: '/pages/news/rules/index?itemInfo=' + encodeURIComponent(JSON.stringify(item))
})
}
}
}
</script>
<style scoped lang="scss">
.pages {
width: 100%;
height: 100%;
padding: 30rpx;
box-sizing: border-box;
}
.item {
margin-bottom: 28rpx;
}
.title {
margin-bottom: 28rpx;
}
</style>