admin-vue/08-综合练习/商品列表/index/index.html

30 lines
857 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="../css/css.css">
</head>
<body>
<div id="app">
<div class="item" v-cloak>
<ul>
<h2>商品列表</h2>
<li v-for="items,index in list" @click="isChange(index)"
:class="isChangeColor(index)">
<div class="left">{{items.item}}</div>
<div class="right">{{items.price}}</div>
</li>
<div class="bottom">
<div class="left">合计:</div>
<div class="right">{{Total_Price}}</div>
</div>
</ul>
</div>
</div>
</body>
<script src="../js/vue.min.js"></script>
<script src="../js/index.js"></script>
</html>