-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjs.html
106 lines (88 loc) · 2.77 KB
/
js.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html>
<head lang="en">
<script src="dist/js/jquery-1.8.0.min.js"></script>
<link href="dist/css/bootstrap-theme.css" rel="stylesheet">
<link href="dist/css/bootstrap.min.css" rel="stylesheet">
<script src="dist/js/bootstrap.min.js"></script>
<script src="model/fixtures.js"></script>
<script src="model/item.js"></script>
<script src="model/promotion.js"></script>
<script src="lib/underscore.js"></script>
<meta charset="UTF-8">
<title></title>
<script>
// $(function(){
// $(".thead")
// })
</script>
</head>
<body>
<script src="function/js.js"></script>
<div class="container ">
<div class="panel panel-default">
<div class=" panel-heading" style="background-color: lightgrey"><h4 >商品列表</h4></div>
<div class="panel-body">
<table class="table table-bordered text-center">
<thead class="purchase_commodity_list">
<tr class="thead">
<td >名称</td>
<td>单价(元)</td>
<td>数量</td>
<td>小计</td>
</tr>
</thead>
</table>
<div class="input-group">
<input type="text" class="form-control">
<span class="input-group-addon">.00</span>
</div>
</div>
</div>
</div>
<div style=" text-align: center" >
<input type="button" class="btn btn-default text-center" value="+" ></div>
<!--
<tr ><td> +commodity.name+
</td><td> +commodity.price+
</td><td> +commodity.unit+
</td><td> +
<div class='btn-group' >
<button type='button' class='btn btn-default reduce' data-barcode = '"+commodity.barcode+'data-category = '"+commodity.category+"'>-</button>
<span class='btn btn-default'>+commodity.count+</span>
<button type='button' class= 'btn btn-default raise' data-category='"+commodity.category+"' data-barcode='"+commodity.barcode+"'>+</button>
</div>"+
</td><td> +commodity.count*commodity.price+
</td></tr>
-->
<tr><td>饮料</td>
<td>可口可乐</td>
<td>3</td>
<td>瓶</td>
<td>2</td>
<td>6</td>
</tr><tr>
<td>水果</td>
<td>苹果</td>
<td>5.5</td>
<td>斤</td>
<td>1</td>
<td>5.5</td>
</tr><div class= 'panel-heading' style='background-color: lightgrey'>
<h3 class='text-left'>赠送商品</h3>
</div> <div class='panel-body'>
<table class'=table table-bordered text-center'>
<thead class='items_list' >
<tr ><td class='col-md-2'>分类</td>
<td class='col-md-3'>名称</td>
<td class='col-md-2'>数量</td>
</tr>
</thead>
</table>
</div>
<tr ><td>饮料</td>
<td>可口可乐</td>
<td>0</td>
</tr>
</body>
</html>