2 Star 0 Fork 0

/vue3_layout

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
_id.vue 2.75 KB
一键复制 编辑 原始数据 按行查看 历史
提交于 4年前 . 更新
<template>
<div class="container">
<cu-crumb :list="crumb"/>
<shop-goods :goods="goods" />
</div>
</template>
<script>
import { chunk } from 'lodash';
import { mapState } from 'vuex';
import ShopGoods from '~/components/page/goods/Goods.vue';
export default {
layout: 'shop', // 模板引用
auth: false,
components: {
ShopGoods,
},
async asyncData({ app: { $api, $auth }, store, route, query, params, redirect }) {
},
computed: {
...mapState({
})
},
data() {
return {
crumb: [
{
name: '个人防护',
href: '/goods/123',
},
{
name: '眼面防护',
href: '/goods/124',
},
{
name: '防冲眼镜',
href: '/goods/124',
},
{
name: '代尔塔101139聚碳酸酯防污眼镜',
href: '',
},
],
goods: {
goods_name: '代尔塔101139聚碳酸酯防污眼镜新科技涂层系列防护眼镜超级涂层,防雾同时对380nm以下的有害紫外线有 99.9%的吸收率',
goods_src: 'https://i.xinminghui.com/goods/201606/source_img/2955_P_1466479715244.jpg',
goods_price: '60.00',
goods_unit: '',
attr_list: [
'订货号:1316030', '制造商型号:1.01.139', '包装规格:10副/盒', '库存:有货', '镜框颜色:黑色', '镜片颜色:透明', '防雾:是', '防刮擦:是', '防冲击飞溅物:是',
],
attr_value: [
{ name: '黑色', id: 1 },
{ name: '白色', id: 2 },
],
gallery: [
{
goods_id: 1,
goods_src: 'https://i.xinminghui.com/goods/202103/goods_img/202103010952524.jpg',
},
{
goods_id: 2,
goods_src: 'https://i.xinminghui.com/goods/201606/source_img/2955_P_1466479715244.jpg',
},
{
goods_id: 3,
goods_src: 'https://i.xinminghui.com/goods/202006/source_img/202006281055516.jpg',
},
{
goods_id: 4,
goods_src: 'https://i.xinminghui.com/goods/201609/source_img/655_P_1474607200374.jpg',
},
{
goods_id: 5,
goods_src: 'https://i.xinminghui.com/goods/201606/thumb_img/1650_P_1466489571352.JPG',
},
{
goods_id: 6,
goods_src: 'https://i.xinminghui.com/goods/202103/goods_img/202103010952524.jpg',
},
],
},
}
},
}
</script>
<style lang="less" scoped>
</style>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/lzptg/vue3_layout.git
git@gitee.com:lzptg/vue3_layout.git
lzptg
vue3_layout
vue3_layout
template

搜索帮助