• JSD-2204-酷莎商城-ElementUI-Day07


    1.ElementUI

    续day06笔记后续的两个小案例

    1.1走马灯(轮播图)

    1. <!DOCTYPE html>
    2. <html>
    3. <head>
    4. <meta charset="UTF-8">
    5. <!-- import CSS -->
    6. <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    7. <style>
    8. .el-carousel__item h3 {
    9. color: #475669;
    10. font-size: 14px;
    11. opacity: 0.75;
    12. line-height: 150px;
    13. margin: 0;
    14. }
    15. .el-carousel__item:nth-child(2n) {
    16. background-color: #99a9bf;
    17. }
    18. .el-carousel__item:nth-child(2n+1) {
    19. background-color: #d3dce6;
    20. }
    21. </style>
    22. </head>
    23. <body>
    24. <div id="app">
    25. <template>
    26. <div class="block">
    27. <span class="demonstration">默认 Hover 指示器触发</span>
    28. <el-carousel height="150px">
    29. <el-carousel-item v-for="item in 4" :key="item">
    30. <h3 class="small">{{ item }}</h3>
    31. </el-carousel-item>
    32. </el-carousel>
    33. </div>
    34. <div class="block">
    35. <span class="demonstration">Click 指示器触发</span>
    36. <el-carousel trigger="click" height="150px">
    37. <el-carousel-item v-for="item in 4" :key="item">
    38. <h3 class="small">{{ item }}</h3>
    39. </el-carousel-item>
    40. </el-carousel>
    41. </div>
    42. </template>
    43. <h1>带图片的轮播图</h1>
    44. <div style="width: 350px">
    45. <el-carousel trigger="click" height="150px">
    46. <el-carousel-item v-for="item in arr">
    47. <img :src="item" width="100%" alt="">
    48. </el-carousel-item>
    49. </el-carousel>
    50. </div>
    51. </div>
    52. </body>
    53. <!-- import Vue before Element -->
    54. <script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
    55. <!-- import JavaScript -->
    56. <script src="https://unpkg.com/element-ui/lib/index.js"></script>
    57. <script>
    58. let v = new Vue({
    59. el: '#app',
    60. data: function() {
    61. return {//在这里面定义变量
    62. arr:["imgs/b1.jpg","imgs/b2.jpg","imgs/b3.jpg","imgs/b4.jpg"]
    63. }
    64. }
    65. })
    66. </script>
    67. </html>

    1.2设置页面布局

    1. <!DOCTYPE html>
    2. <html>
    3. <head>
    4. <meta charset="UTF-8">
    5. <!-- import CSS -->
    6. <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    7. <style>
    8. .el-header {
    9. background-color: #B3C0D1;
    10. color: #333;
    11. line-height: 60px;
    12. }
    13. .el-aside {
    14. color: #333;
    15. }
    16. </style>
    17. </head>
    18. <body>
    19. <div id="app">
    20. <el-container>
    21. <el-aside width="200px">
    22. <el-menu :default-openeds="['1', '3']">
    23. <el-submenu index="1">
    24. <template slot="title"><i class="el-icon-message"></i>导航一</template>
    25. <el-menu-item-group>
    26. <template slot="title">分组一</template>
    27. <el-menu-item index="1-1">选项1</el-menu-item>
    28. <el-menu-item index="1-2">选项2</el-menu-item>
    29. </el-menu-item-group>
    30. <el-menu-item-group title="分组2">
    31. <el-menu-item index="1-3">选项3</el-menu-item>
    32. </el-menu-item-group>
    33. <el-submenu index="1-4">
    34. <template slot="title">选项4</template>
    35. <el-menu-item index="1-4-1">选项4-1</el-menu-item>
    36. </el-submenu>
    37. </el-submenu>
    38. <el-submenu index="2">
    39. <template slot="title"><i class="el-icon-menu"></i>导航二</template>
    40. <el-menu-item-group>
    41. <template slot="title">分组一</template>
    42. <el-menu-item index="2-1">选项1</el-menu-item>
    43. <el-menu-item index="2-2">选项2</el-menu-item>
    44. </el-menu-item-group>
    45. <el-menu-item-group title="分组2">
    46. <el-menu-item index="2-3">选项3</el-menu-item>
    47. </el-menu-item-group>
    48. <el-submenu index="2-4">
    49. <template slot="title">选项4</template>
    50. <el-menu-item index="2-4-1">选项4-1</el-menu-item>
    51. </el-submenu>
    52. </el-submenu>
    53. <el-submenu index="3">
    54. <template slot="title"><i class="el-icon-setting"></i>导航三</template>
    55. <el-menu-item-group>
    56. <template slot="title">分组一</template>
    57. <el-menu-item index="3-1">选项1</el-menu-item>
    58. <el-menu-item index="3-2">选项2</el-menu-item>
    59. </el-menu-item-group>
    60. <el-menu-item-group title="分组2">
    61. <el-menu-item index="3-3">选项3</el-menu-item>
    62. </el-menu-item-group>
    63. <el-submenu index="3-4">
    64. <template slot="title">选项4</template>
    65. <el-menu-item index="3-4-1">选项4-1</el-menu-item>
    66. </el-submenu>
    67. </el-submenu>
    68. </el-menu>
    69. </el-aside>
    70. <el-container>
    71. <el-header style="text-align: right">
    72. <el-dropdown>
    73. <i class="el-icon-setting" style="margin-right: 15px"></i>
    74. <el-dropdown-menu slot="dropdown">
    75. <el-dropdown-item>查看</el-dropdown-item>
    76. <el-dropdown-item>新增</el-dropdown-item>
    77. <el-dropdown-item>删除</el-dropdown-item>
    78. </el-dropdown-menu>
    79. </el-dropdown>
    80. <span>王小虎</span>
    81. </el-header>
    82. <el-main>
    83. <el-table :data="tableData">
    84. <el-table-column prop="date" label="日期" width="140">
    85. </el-table-column>
    86. <el-table-column prop="name" label="姓名" width="120">
    87. </el-table-column>
    88. <el-table-column prop="address" label="地址">
    89. </el-table-column>
    90. </el-table>
    91. </el-main>
    92. </el-container>
    93. </el-container>
    94. </div>
    95. </body>
    96. <!-- import Vue before Element -->
    97. <script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
    98. <!-- import JavaScript -->
    99. <script src="https://unpkg.com/element-ui/lib/index.js"></script>
    100. <script>
    101. let v = new Vue({
    102. el: '#app',
    103. data: function() {
    104. const item = {
    105. date: '2016-05-02', name: '王小虎', address: '上海市普陀区金沙江路 1518 弄'
    106. };
    107. return {//在这里面定义变量
    108. tableData: Array(20).fill(item)
    109. }
    110. }
    111. })
    112. </script>
    113. </html>

    2.酷莎商城

    2.1登录页面

    1. <!DOCTYPE html>
    2. <html>
    3. <head>
    4. <meta charset="UTF-8">
    5. <!-- import CSS -->
    6. <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    7. <style>
    8. body{
    9. margin: 0;/*去掉自带的8个像素外边距*/
    10. background-image: url("imgs/bg.jpg");
    11. /*cover封面 */
    12. background-size: cover;
    13. text-align: center;
    14. }
    15. h1{
    16. font-size: 72px;
    17. color: rgb(0,150,220);
    18. margin-bottom: 0;
    19. }
    20. img{width: 100px}
    21. h2{
    22. font-size: 32px;
    23. color: rgb(0,150,220);
    24. margin: 0;
    25. }
    26. </style>
    27. </head>
    28. <body>
    29. <div id="app">
    30. <h1>欢迎来到酷鲨商城</h1>
    31. <img src="imgs/shark.png" alt="">
    32. <h2>CoolSharkMall</h2>
    33. <el-card style="width: 600px;height: 300px;margin: 0 auto;
    34. background-color: rgba(255,255,255,0.3)">
    35. <!--label-width设置左侧文本的宽度-->
    36. <el-form style="width: 400px;margin: 50px auto" label-width="60px">
    37. <el-form-item label="用户名">
    38. <el-input type="text" placeholder="请输入用户名"></el-input>
    39. </el-form-item>
    40. <el-form-item label="密码">
    41. <el-input type="password" placeholder="请输入密码"></el-input>
    42. </el-form-item>
    43. <el-form-item >
    44. <el-button style="position: relative;right: 30px" type="primary">登录</el-button>
    45. </el-form-item>
    46. </el-form>
    47. </el-card>
    48. </div>
    49. </body>
    50. <!-- import Vue before Element -->
    51. <script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
    52. <!-- import JavaScript -->
    53. <script src="https://unpkg.com/element-ui/lib/index.js"></script>
    54. <script>
    55. let v = new Vue({
    56. el: '#app',
    57. data: function() {
    58. return {//在这里面定义变量
    59. }
    60. }
    61. })
    62. </script>
    63. </html>

     页面效果展示:

    2.2首页

    1. <!DOCTYPE html>
    2. <html>
    3. <head>
    4. <meta charset="UTF-8">
    5. <!-- import CSS -->
    6. <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    7. <style>
    8. header a {
    9. text-decoration: none;
    10. color: #6c6c6c;
    11. }
    12. .el-menu.el-menu--horizontal {
    13. border-bottom: none;
    14. }
    15. .el-table .el-table__cell{
    16. padding: 0;/*去掉排行榜表格中上下的内边距*/
    17. }
    18. </style>
    19. </head>
    20. <body>
    21. <div id="app">
    22. <el-container>
    23. <el-header height="150">
    24. <div style="width: 1200px;margin: 0 auto">
    25. <img src="imgs/logo.png" style="width: 300px;vertical-align: middle" alt="">
    26. <span>
    27. <a href="">首页</a><el-divider direction="vertical"></el-divider>
    28. <a href="">热点咨询</a><el-divider direction="vertical"></el-divider>
    29. <a href="">商家入驻</a><el-divider direction="vertical"></el-divider>
    30. <a href="">社会招聘</a><el-divider direction="vertical"></el-divider>
    31. <a href="">校园招聘</a><el-divider direction="vertical"></el-divider>
    32. <a href="">帮助</a>
    33. </span>
    34. </div>
    35. <!--蓝色导航菜单开始-->
    36. <div style="background-color: #82c8ec">
    37. <el-menu style="width: 1200px;margin: 0 auto"
    38. :default-active="1"
    39. class="el-menu-demo"
    40. mode="horizontal"
    41. background-color="#82c8ec"
    42. text-color="#fff"
    43. active-text-color="#fff">
    44. <el-menu-item v-for="c in categoryArr" :index="c.id">{{c.name}}</el-menu-item>
    45. <!--搜索框开始-->
    46. <div style="float: right;margin-top: 10px">
    47. <el-input placeholder="请输入搜索内容">
    48. <!--slot="append"作用是将按钮追加在搜索框的后面-->
    49. <el-button slot="append" icon="el-icon-search"></el-button>
    50. </el-input>
    51. </div>
    52. <!--搜索框结束-->
    53. </el-menu>
    54. </div>
    55. <!--蓝色导航菜单结束-->
    56. </el-header>
    57. <el-main style="width: 1200px;margin: 0 auto">
    58. <!--轮播图和排行榜开始-->
    59. <el-row :gutter="20">
    60. <el-col :span="18">
    61. <el-carousel trigger="click" height="300px">
    62. <el-carousel-item v-for="item in bannerArr">
    63. <img :src="item" width="100%" alt="">
    64. </el-carousel-item>
    65. </el-carousel>
    66. </el-col>
    67. <el-col :span="6">
    68. <el-card style="height: 300px">
    69. <h3>
    70. <i style="font-weight: bold" class="el-icon-trophy">销量最高</i>
    71. </h3>
    72. <el-divider></el-divider>
    73. <el-table :data="topArr" style="width: 100%">
    74. <!--type="index" 让这一列显示成编号-->
    75. <el-table-column type="index" label="排名" width="50">
    76. </el-table-column>
    77. <el-table-column prop="title" label="商品名" width="80">
    78. </el-table-column>
    79. <el-table-column prop="saleCount" label="销量" width="80">
    80. </el-table-column>
    81. </el-table>
    82. </el-card>
    83. </el-col>
    84. </el-row>
    85. <!--轮播图和排行榜结束-->
    86. <!--商品列表开始-->
    87. <el-row :gutter="20">
    88. <el-col :span="6" v-for="p in productArr" style="margin-top: 20px">
    89. <el-card>
    90. <img :src="p.url" width="100%" alt="">
    91. <div>
    92. <p style="font-size: 15px;height: 40px;margin-top: 0">{{p.title}}</p>
    93. <div style="color: #666">
    94. <span>¥{{p.price}}</span>
    95. <s style="font-size: 12px">{{p.oldPrice}}</s>
    96. <span style="float: right">销量:{{p.saleCount}}</span>
    97. </div>
    98. </div>
    99. </el-card>
    100. </el-col>
    101. </el-row>
    102. <!--商品列表结束-->
    103. </el-main>
    104. <el-footer>
    105. <div style="height: 95px;background-image: url('imgs/wave.png');margin-bottom: -30px"></div>
    106. <div style="height: 100px;background-color: #3f3f3f;
    107. padding: 30px;text-align: center;color: #b1b1b1">
    108. <p>Copyright © 北京达内金桥科技有限公司版权所有 京ICP备12003709号-3 京公网安备 11010802029572号</p>
    109. <p>涵盖20余门课程体系,致力于打造权威的IT职业教育学习平台</p>
    110. <p>达内在线WWW.TMOOC.CN 专注于IT职业技能培训</p>
    111. </div>
    112. </el-footer>
    113. </el-container>
    114. </div>
    115. </body>
    116. <!-- import Vue before Element -->
    117. <script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
    118. <!-- import JavaScript -->
    119. <script src="https://unpkg.com/element-ui/lib/index.js"></script>
    120. <script>
    121. let v = new Vue({
    122. el: '#app',
    123. data: function () {
    124. return {//在这里面定义变量
    125. categoryArr: [{id: 1, name: "精彩活动"}, {id: 2, name: "当季女装"},
    126. {id: 3, name: "品牌男装"}, {id: 4, name: "环球美食"}, {id: 5, name: "医药健康"},
    127. {id: 6, name: "美妆彩妆"}, {id: 7, name: "母婴产品"}
    128. ],
    129. bannerArr:["imgs/b1.jpg","imgs/b2.jpg","imgs/b3.jpg","imgs/b4.jpg"],
    130. topArr:[{title:"小米手机",saleCount:988},
    131. {title:"李宁球鞋",saleCount:708},
    132. {title:"毛巾",saleCount:653},
    133. {title:"安踏拖鞋",saleCount:553},
    134. {title:"阿迪袜子",saleCount:438},
    135. {title:"耐克上衣",saleCount:88}],
    136. productArr:[{title:"森马牛仔裤女宽松慢跑裤运动风2022春季新款显瘦束脚长裤复古",price:233,oldPrice:598,url:"imgs/a.jpg",saleCount:2342},
    137. {title:"茵曼马甲连衣裙两件套春季新款娃娃领色织格长袖背心裙套装",price:233,oldPrice:598,url:"imgs/b.jpg",saleCount:2342},
    138. {title:"雪中飞墨绿色短袖t恤女夏2022新款纯棉半袖打底体恤夏季上衣潮ins",price:233,oldPrice:598,url:"imgs/c.jpg",saleCount:2342},
    139. {title:"【佟丽娅同款】鸭鸭明星同款羽绒服2021年冬季新款时尚连帽外套冬",price:233,oldPrice:598,url:"imgs/d.jpg",saleCount:2342},
    140. {title:"BEASTER小恶魔鬼脸明星同款夹克毛绒保暖加厚字母印花宽松外套ins",price:233,oldPrice:598,url:"imgs/e.jpg",saleCount:2342},
    141. {title:"香影毛呢外套女中长款2021年冬季新款气质韩版娃娃领紫色呢子大衣",price:233,oldPrice:598,url:"imgs/f.jpg",saleCount:2342},
    142. {title:"SEMIR森马商场同款打底针织毛衣纯色高领新品显瘦",price:233,oldPrice:598,url:"imgs/g.jpg",saleCount:2342},
    143. {title:"美特斯邦威女MTEE 贺岁系列中长款风衣736598",price:233,oldPrice:598,url:"imgs/h.jpg",saleCount:2342},
    144. {title:"imone2021秋款黑色小西装外套女韩版学生宽松学院风外套jk外套",price:233,oldPrice:598,url:"imgs/i.jpg",saleCount:2342},
    145. {title:"BEASTER 小恶魔明星同款保暖长袖街头潮流连帽卫衣情侣上衣",price:233,oldPrice:598,url:"imgs/j.jpg",saleCount:2342},
    146. {title:"憨厚皇后100%绵羊皮2021秋海宁真皮皮衣女长款修身绵羊皮风衣外",price:233,oldPrice:598,url:"imgs/k.jpg",saleCount:2342},
    147. {title:"美特斯邦威高腰牛仔裤女宽松小脚新款春秋彩色潮流女士牛仔",price:233,oldPrice:598,url:"imgs/a.jpg",saleCount:2342}]
    148. }
    149. }
    150. })
    151. </script>
    152. </html>

     页面效果展示:

    2.3后台页面

    1. <!DOCTYPE html>
    2. <html>
    3. <head>
    4. <meta charset="UTF-8">
    5. <!-- import CSS -->
    6. <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    7. </head>
    8. <body>
    9. <div id="app">
    10. <el-container>
    11. <el-header style="background-color: #0095d7">
    12. <h1 style="color: white;font-size: 22px">CoolShark商城后台管理系统
    13. <span style="float: right">欢迎xxx回来! <a href="">退出登录</a></span>
    14. </h1>
    15. </el-header>
    16. <el-container>
    17. <el-aside width="200px">
    18. <!--:default-openeds设置默认打开的子菜单-->
    19. <el-menu @select="handleSelect" :default-openeds="['1']">
    20. <el-submenu index="1">
    21. <!--下面是设置子菜单的标题-->
    22. <template slot="title">
    23. <i class="el-icon-s-flag"> 分类管理</i>
    24. </template>
    25. <!--下面是两个菜单项-->
    26. <el-menu-item index="1-1">分类列表</el-menu-item>
    27. <el-menu-item index="1-2">添加分类</el-menu-item>
    28. </el-submenu>
    29. <el-submenu index="2">
    30. <!--下面是设置子菜单的标题-->
    31. <template slot="title">
    32. <i class="el-icon-picture"> 轮播图管理</i>
    33. </template>
    34. <!--下面是两个菜单项-->
    35. <el-menu-item index="2-1">轮播图列表</el-menu-item>
    36. <el-menu-item index="2-2">添加轮播图</el-menu-item>
    37. </el-submenu>
    38. <el-submenu index="3">
    39. <!--下面是设置子菜单的标题-->
    40. <template slot="title">
    41. <i class="el-icon-shopping-cart-2"> 商品管理</i>
    42. </template>
    43. <!--下面是两个菜单项-->
    44. <el-menu-item index="3-1">商品列表</el-menu-item>
    45. <el-menu-item index="3-2">添加商品</el-menu-item>
    46. </el-submenu>
    47. </el-menu>
    48. </el-aside>
    49. <el-main>
    50. <!--分类表格开始-->
    51. <el-table v-if="selectedIndex=='1-1'" :data="categoryArr" style="width: 100%">
    52. <!--prop=property属性 , 设置这一列显示的数据-->
    53. <el-table-column type="index" label="编号" width="280">
    54. </el-table-column>
    55. <el-table-column prop="name" label="名字" width="280">
    56. </el-table-column>
    57. <el-table-column label="操作">
    58. <template slot-scope="scope">
    59. <!--scope里面装着这一行所对应的对象信息,scope.$index得到下标
    60. scope.row得到这一行对应的对象-->
    61. <el-button size="mini" type="danger"
    62. @click="friendDelete(scope.$index, scope.row)">删除</el-button>
    63. </template>
    64. </el-table-column>
    65. </el-table>
    66. <!--分类表格结束-->
    67. <!--轮播图表格开始-->
    68. <el-table v-if="selectedIndex=='2-1'" :data="bannerArr" style="width: 100%">
    69. <!--prop=property属性 , 设置这一列显示的数据-->
    70. <el-table-column type="index" label="编号" width="280">
    71. </el-table-column>
    72. <el-table-column label="轮播图" width="280">
    73. <template slot-scope="scope">
    74. <!--scope里面装着这一行所对应的对象信息,scope.$index得到下标
    75. scope.row得到这一行对应数组里面的图片路径-->
    76. <img :src="scope.row" width="100%" alt="">
    77. </template>
    78. </el-table-column>
    79. <el-table-column label="操作">
    80. <template slot-scope="scope">
    81. <!--scope里面装着这一行所对应的对象信息,scope.$index得到下标
    82. scope.row得到这一行对应的对象-->
    83. <el-button size="mini" type="danger"
    84. @click="friendDelete(scope.$index, scope.row)">删除</el-button>
    85. </template>
    86. </el-table-column>
    87. </el-table>
    88. <!--轮播图表格结束-->
    89. <!--商品表格开始-->
    90. <el-table v-if="selectedIndex=='3-1'" :data="productArr" style="width: 100%">
    91. <!--prop=property属性 , 设置这一列显示的数据-->
    92. <el-table-column type="index" label="编号" width="100">
    93. </el-table-column>
    94. <el-table-column prop="title" label="商品标题" width="200">
    95. </el-table-column>
    96. <el-table-column prop="price" label="价格" width="100">
    97. </el-table-column>
    98. <el-table-column prop="oldPrice" label="原价" width="100">
    99. </el-table-column>
    100. <el-table-column prop="saleCount" label="销量" width="100">
    101. </el-table-column>
    102. <el-table-column label="商品图片" width="100">
    103. <template slot-scope="scope">
    104. <!--scope里面装着这一行所对应的对象信息,scope.$index得到下标
    105. scope.row得到这一行对应数组里面的图片路径-->
    106. <img :src="scope.row.url" width="100%" alt="">
    107. </template>
    108. </el-table-column>
    109. <el-table-column label="操作">
    110. <template slot-scope="scope">
    111. <!--scope里面装着这一行所对应的对象信息,scope.$index得到下标
    112. scope.row得到这一行对应的对象-->
    113. <el-button size="mini" type="danger"
    114. @click="friendDelete(scope.$index, scope.row)">删除</el-button>
    115. </template>
    116. </el-table-column>
    117. </el-table>
    118. <!--商品表格结束-->
    119. </el-main>
    120. </el-container>
    121. </el-container>
    122. </div>
    123. </body>
    124. <!-- import Vue before Element -->
    125. <script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
    126. <!-- import JavaScript -->
    127. <script src="https://unpkg.com/element-ui/lib/index.js"></script>
    128. <script>
    129. let v = new Vue({
    130. el: '#app',
    131. data: function() {
    132. return {//在这里面定义变量
    133. selectedIndex:"1-1",
    134. categoryArr: [{id: 1, name: "精彩活动"}, {id: 2, name: "当季女装"},
    135. {id: 3, name: "品牌男装"}, {id: 4, name: "环球美食"}, {id: 5, name: "医药健康"},
    136. {id: 6, name: "美妆彩妆"}, {id: 7, name: "母婴产品"}
    137. ],
    138. bannerArr:["imgs/b1.jpg","imgs/b2.jpg","imgs/b3.jpg","imgs/b4.jpg"],
    139. productArr:[{title:"森马牛仔裤女宽松慢跑裤运动风2022春季新款显瘦束脚长裤复古",price:233,oldPrice:598,url:"imgs/a.jpg",saleCount:2342},
    140. {title:"茵曼马甲连衣裙两件套春季新款娃娃领色织格长袖背心裙套装",price:233,oldPrice:598,url:"imgs/b.jpg",saleCount:2342},
    141. {title:"雪中飞墨绿色短袖t恤女夏2022新款纯棉半袖打底体恤夏季上衣潮ins",price:233,oldPrice:598,url:"imgs/c.jpg",saleCount:2342},
    142. {title:"【佟丽娅同款】鸭鸭明星同款羽绒服2021年冬季新款时尚连帽外套冬",price:233,oldPrice:598,url:"imgs/d.jpg",saleCount:2342},
    143. {title:"BEASTER小恶魔鬼脸明星同款夹克毛绒保暖加厚字母印花宽松外套ins",price:233,oldPrice:598,url:"imgs/e.jpg",saleCount:2342},
    144. {title:"香影毛呢外套女中长款2021年冬季新款气质韩版娃娃领紫色呢子大衣",price:233,oldPrice:598,url:"imgs/f.jpg",saleCount:2342},
    145. {title:"SEMIR森马商场同款打底针织毛衣纯色高领新品显瘦",price:233,oldPrice:598,url:"imgs/g.jpg",saleCount:2342},
    146. {title:"美特斯邦威女MTEE 贺岁系列中长款风衣736598",price:233,oldPrice:598,url:"imgs/h.jpg",saleCount:2342},
    147. {title:"imone2021秋款黑色小西装外套女韩版学生宽松学院风外套jk外套",price:233,oldPrice:598,url:"imgs/i.jpg",saleCount:2342},
    148. {title:"BEASTER 小恶魔明星同款保暖长袖街头潮流连帽卫衣情侣上衣",price:233,oldPrice:598,url:"imgs/j.jpg",saleCount:2342},
    149. {title:"憨厚皇后100%绵羊皮2021秋海宁真皮皮衣女长款修身绵羊皮风衣外",price:233,oldPrice:598,url:"imgs/k.jpg",saleCount:2342},
    150. {title:"美特斯邦威高腰牛仔裤女宽松小脚新款春秋彩色潮流女士牛仔",price:233,oldPrice:598,url:"imgs/a.jpg",saleCount:2342}]
    151. }
    152. },
    153. methods:{
    154. handleSelect(index){
    155. console.log(index);
    156. v.selectedIndex = index;
    157. }
    158. }
    159. })
    160. </script>
    161. </html>

    页面效果展示:

     

  • 相关阅读:
    查理复用-小笔记
    delphi xe FMX里的窗口如何像处理像VCL里的消息又一示例
    SpringBoot整合Flowable
    JAVA面试题JVM篇(三)
    2022年中级经济师《经济基础知识》考试大纲
    【kotlin】Kotlin学习:run、with、apply、also、let的区别
    业务线程池阻塞分析
    Java -Stream流和常见函数式接口
    【Spring Cloud实战】Ribbon负载均衡
    【Android】使用 adb 命令行工具结合 pm列出 Android 设备上已安装应用的应用名称和包名
  • 原文地址:https://blog.csdn.net/TheNewSystrm/article/details/125626754