You've already forked guangan-mp
1.0.0
This commit is contained in:
49
components/i-list-top/i-list-top.vue
Normal file
49
components/i-list-top/i-list-top.vue
Normal file
@ -0,0 +1,49 @@
|
||||
<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>
|
Reference in New Issue
Block a user