Vue购物车详情页

本文详述了如何使用Vue.js构建购物车详情页,包括template部分的代码实现,结合Sass语言进行CSS样式设计,以及JavaScript交互逻辑的讲解。
摘要由CSDN通过智能技术生成
本篇介绍Vue购物车详情页

在这里插入图片描述

template部分代码实现:
<template>
  <div class="content shopCart">
    <!-- <div class="breadcrumb">
      <el-breadcrumb>
        <el-breadcrumb-item>
            <router-link :to="{name:'food'}">
            菜品
            </router-link>
        </el-breadcrumb-item>
        <el-breadcrumb-item>购物车</el-breadcrumb-item>
      </el-breadcrumb>
    </div> -->

    <div class="table">
      <el-table  :data="tableData" ref="multipleTable" style="width: 100%"
        @selection-change="handleSelectionChange" :close-on-click-modal="false" :close-on-press-escape="false"
        :header-cell-style="{background:'#f8f8f8',color:'#999'}">
        <el-table-column type="selection" width="75" align="center" />
        <el-table-column prop="shopImg" align="center" width="150" label="商品">
          <template slot-scope="scope">
            <img :src="scope.row.shopImg" class="shopImg" alt="">
          </template>
        </el-table-column>
        <el-table-column prop="shop" align="center">
          <template slot-scope="scope">
            <span class="shop">{
  {scope.row.shop}}</span>
          </template>
        </el-table-column>
        <el-table-column prop="price" label="单价" align="center">
          <template slot-scope="scope">
            <span class="price">¥{
  {scope.row.price}}</span>
          </template>
        </el-table-column>
        <el-table-column prop="number&
  • 3
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值