54 lines
1.4 KiB
Vue
54 lines
1.4 KiB
Vue
<template>
|
|
<view class="row p-2 border-bottom border-light-secondary animated fadeIn faster">
|
|
<view class="span-6" @click="openDetail()">
|
|
<image :src="'https://'+item.pc_thumb"
|
|
mode="widthFix" class="w-100"></image>
|
|
</view>
|
|
<view class="span-14 pl-3 d-flex flex-column">
|
|
<view class="font-md font-weight" @click="openDetail()">{{item.goods_name}}</view>
|
|
<view class="font-sm text-dark" @click="openDetail()">
|
|
{{item.manufacturer_name}}
|
|
</view>
|
|
<view class="d-flex mb-2" @click="openDetail()">
|
|
<view class="font text-dark line-h-md mb-auto mr-4">{{item.spec_desc}}</view>
|
|
<view class="text-dark mr-4">{{item.retail_flag == 0 ? "零":"整"}}</view>
|
|
<view class="text-dark">{{'('}}{{item.entirety_num}}{{')'}}</view>
|
|
</view>
|
|
<view class="d-flex my-1">
|
|
<price>{{item.price}}</price>
|
|
<image class="ml-auto" src="../../static/font/cart_icon.png" style="width: 40upx;height: 40upx;" @tap="addCart()"></image>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import price from "@/components/common/price.vue"
|
|
export default {
|
|
components:{
|
|
price
|
|
},
|
|
props: {
|
|
item: Object,
|
|
index:Number
|
|
},
|
|
methods:{
|
|
// 点击购物车图标
|
|
addCart(){
|
|
|
|
},
|
|
// 跳转详情页
|
|
openDetail() {
|
|
uni.navigateTo({
|
|
url: '/pages/shoppingCart/goodsDetail?sku_id='+JSON.stringify(this.item.sku_id)
|
|
});
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
</style>
|