vue实现移动手机电商商品分类列表添加购物车结算页面代码

代码语言:html

所属分类:电商

代码描述:vue实现移动手机电商商品分类列表添加购物车结算页面代码

代码标签: vue 移动 手机 电商 商品 分类 列表 添加 购物车 结算 页面 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  

  
  
<style>
body {
    font-size: 14px;
    color: #363636;
    background-color: #333;
}

h1,
ul,
li,
p {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

.g-panel {
    margin: 0 auto;
    width: 790px;
}

.cate,
.filter-opt,
.save {
    cursor: pointer;
}

.device {
    position: relative;
    margin: 10px;
    float: left;
    width: 375px;
    height: 667px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

header {
    padding: 0 4%;
    position: relative;
    height: 44px;
    line-height: 44px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

.header-title {
    position: absolute;
    margin-left: 21%;
    width: 50%;
    font-size: 16px;
    text-align: center;
}

.header-edit {
    float: right;
    padding: 0 10px;
    cursor: pointer;
}

.tab-wrap {
    height: 60px;
    background: red;
    overflow: hidden;
}

.cate-tab {
    white-space: nowrap;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    background-color: #5D4285;
}

.cate {
    display: inline-block;
    width: 80px;
    height: 70px;
    color: #fff;
    line-height: 60px;
    text-align: center;
}

.tab-active {
    background-color: #9A51FF;
}

.filter-bar {
    display: flex;
    height: 40px;
    background-color: #fff;
    border-bottom: 1px solid #E5E5E5;
    line-height: 40px;
}

.filter-opt {
    position: relative;
    width: 33.3%;
    color: #5F646E;
    text-align: center;
}

.filter-active {
    color: #7B57C5;
}

.filter-price:after {
    position: absolute;
    top: 13px;
    margin-left: 4px;
    content: '';
    display: inline-block;
    width: 8px;
    height: 14px;
    background: url('//repo.bfw.wiki/bfwrepo/icon/5dbed9c613b32.png') no-repeat;
    background-size: 14px 14px;
}

.filter-active.price-up:after {
    background: url('//repo.bfw.wiki/bfwrepo/image/6070ea24c5c5f.png') no-repeat;
    background-size: 8px 14px;
}

.filter-active.price-down:after {
    background: url('//repo.bfw.wiki/bfwrepo/image/6070ea4e4bd1a.png') no-repeat;
    background-size: 8px 14px;
}

.goods-list {
    padding-top: 8px;
    height: 513px;
    overflow-y: scroll;
}

.cart-list {
    height: 560px;
}

.goods-item {
    display: flex;
    margin-bottom: 8px;
    padding: 10px 6px;
    min-height: 62px;
    background: #fff;
}

.goods-img {
    position: relative;
    margin-right: 4%;
    display: block;
    width: 16%;
}

.goods-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.goods-item .flag {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    font-size: 12px;
    color: #fff;
    text-align: center;
    line-height: 20px;
    background-color: #FC5951;
    border-radius: 50%;
}

.goods-info {
    position: relative;
    width: 80%;
}

.goods-title {
    width: 80%;
    height: 38px;
    color: #363636;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.goods-price {
    margin-top: 6px;
    line-height: 1;
}

.goods-price span {
    font-size: 15px;
    color: #7a45e5;
    /*   background: linear-gradient(90deg, #03D2B3 0, #2181FB 80%, #2181FB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
}

.des {
    font-size: 12px;
    color: #888;
}

.save {
    position: absolute;
    right: 10px;
    bottom: 2px;
    width: 32px;
    height: 22px;
    background-color: #7a45e5;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
   .........完整代码请登录后点击上方下载按钮下载查看

网友评论0