You've already forked guangan-mp
49 lines
1.0 KiB
Vue
49 lines
1.0 KiB
Vue
<template>
|
|
<view>
|
|
<uni-row :gutter="30">
|
|
<uni-col :span="12" v-for="(item,index) in resdata" :key="index" >
|
|
<view class="bg-white mt-3 rounded-lg overflow-hidden pb-3" @click="toShow(item.code)">
|
|
<image :src="item.cover" class="rounded-top-lg" style="width: 345rpx; height: 345rpx;" mode="aspectFill"></image>
|
|
|
|
<view class="font28 text-ellipsis-1 px-2 mt-2">{{item.name}}</view>
|
|
<view class="mt-1 flex align-end px-2">
|
|
<view class="text-danger">
|
|
<text class="cny_jf">{{item.price_selling}}</text>
|
|
</view>
|
|
<view class="font24 text-through cny ml-2 text-muted">{{item.price_market}}</view>
|
|
</view>
|
|
</view>
|
|
</uni-col>
|
|
</uni-row>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name:"i-list-top",
|
|
props:{
|
|
resdata:{
|
|
type:Array,
|
|
default() {
|
|
return [];
|
|
},
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
|
|
};
|
|
},
|
|
methods:{
|
|
toShow(id){
|
|
uni.navigateTo({
|
|
url:'/pages/points-mall/detail?code='+id
|
|
})
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
|
|
</style> |