Files
pupil/components/certifiedCj/certifiedCj.vue
2022-12-18 18:29:20 +08:00

73 lines
1.3 KiB
Vue

<template>
<view>
<view class="xw_content" v-for="(item,index) in cjsList" :key="index" @click="clickCj(index)">
<u--image :src="item.src" width="112rpx" height="112rpx" :lazy-load="true">
</u--image>
<view class="xw_right">
<view class="xw_title">
{{item.title}}
</view>
<view style="display: flex;">
<text class="cj_tags" v-for="(tagsItem,tagsIndex) in item.tags" :key="tagsIndex">
{{tagsItem.tag}}
</text>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
cjsList: [{
src: '/static/report/zhanwei_xf(1).png',
title: '西安兴沃丰餐饮管理有限责任公司',
tags: [{
tag: '咖啡'
},
{
tag: '饮品'
}
]
},
{
src: '/static/report/zhanwei_xf(1).png',
title: '福建省海纳川食品有限公司',
tags: [{
tag: '活冻鲍鱼'
},
{
tag: '鲍鱼罐头'
},
{
tag: '佛跳墙'
},
{
tag: '海螺片'
}
]
},
]
}
},
methods: {
// 跳转到认证厂家详情页
clickCj(index) {
if (index == 0) {
uni.navigateTo({
url: '/pages/detail/certifiedCjDetail/certifiedCjDetail'
})
}
}
}
}
</script>
<style>
</style>