代码拉取完成,页面将自动刷新
<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>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。