first commit

This commit is contained in:
编码猿
2024-09-27 01:32:49 +08:00
commit 28ebe05a64
7399 changed files with 1174529 additions and 0 deletions

View File

@@ -0,0 +1 @@
27b812ff-f7c2-4968-bca3-e1da12b945bf

View File

@@ -0,0 +1,53 @@
<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>