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.
 
 
 

72 lines
1.6 KiB

<template>
<view class="page flex-col">
<view class="section_1 flex-col">
<view class="group_2 flex-col">
<view class="list_1 flex-col" style="justify-content:unset">
<view class="list-items_1 flex-row" v-for="(item, index) in list" :key="index"
style="margin-bottom: 20rpx;" @tap="go1(item.id)">
<image class="single-avatar_1 flex-col" :src="item.image"></image>
<view class="text-group_1 flex-col justify-between">
<text class="text_4" >{{item.name}}</text>
<text class="text_5" >{{item.num}}</text>
</view>
<text class="text_6">{{item.title}}</text>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
list: [],
loopData0: [{
lanhutext0: '可口可乐-创始人',
specialSlot1: {
lanhutext0: '莎莎',
lanhutext1: '已有0人学习'
},
slot1: 1
},
],
constants: {}
};
},
onLoad(id) {
uni.setNavigationBarColor({
backgroundColor: '#802931', // 背景颜色
frontColor: '#ffffff' // 前景颜色(包括标题、返回图标等)
}),
this.getData()
},
methods: {
go1(id) {
uni.navigateTo({
url: '/pages/lanhu_renmaixiangqing/index?id=' + id
});
},
getData() {
this.$api.get({
url: '/wanlshop/data/getRemMaiList',
data:{id:this.id},
success: res => {
this.list = res
console.log(this.list)
}
});
},
}
};
</script>
<style lang='css'>
@import '../common/common.css';
@import './assets/style/index.rpx.css';
</style>