83 lines
1.7 KiB
Vue
83 lines
1.7 KiB
Vue
<template>
|
|
<view>
|
|
<view class="xw_content" v-for="(item,index) in cjsList" :key="index" @click="clickCj(item)">
|
|
<u--image :src="item.cover" width="112rpx" height="112rpx" :lazy-load="true">
|
|
</u--image>
|
|
<view class="xw_right">
|
|
<view class="xw_title">
|
|
{{item.name}}
|
|
</view>
|
|
<view style="display: flex;">
|
|
<!-- <text class="cj_tags" v-for="(tagsItem,tagsIndex) in item.tags" :key="tagsIndex">
|
|
{{tagsItem.tag}}
|
|
</text> -->
|
|
<text class="cj_tags">{{item.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: '海螺片'
|
|
// }
|
|
|
|
// ]
|
|
// },
|
|
]
|
|
}
|
|
},
|
|
created() {
|
|
this.getCertifiedCj()
|
|
},
|
|
methods: {
|
|
// 获取认证厂家列表
|
|
getCertifiedCj() {
|
|
this.$apiServe.getCertifiedCj().then(res => {
|
|
// console.log('认证厂家', res.data.data)
|
|
this.cjsList = res.data.data
|
|
}).finally(_ => {})
|
|
},
|
|
// 跳转到认证厂家详情页
|
|
clickCj(item) {
|
|
uni.navigateTo({
|
|
url: '../../packageReport/certifiedCjDetail/certifiedCjDetail?id=' + item.id
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
|
|
</style>
|