-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
111 lines (101 loc) · 2.59 KB
/
index.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
107
108
109
110
111
<!--<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.3.1/css/foundation.min.css">
<meta charset="utf-8">
<title>Cryptocurrency Pricing Application</title>
</head>
<body>
<div class="container" id="app">
<h3 class="text-center">Cryptocurrency Pricing</h3>
<div class="columns medium-4" v-for="(result, index) in results">
<div class="card">
<div class="card-section">
<p> {{ index }} </p>
</div>
<div class="card-divider">
<p>$ {{ result.USD }}</p>
</div>
<div class="card-section">
<p> € {{ result.EUR }}</p>
</div>
</div>
</div>
<script src="https://unpkg.com/vue"></script>
<script src="vueApp.js"></script>
</body>
</html>
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="styles/demo.css" />
</head>
<body>
<div id="app">
<table>
<thead>
<tr>
<th>ID</th>
<th>Portfolio_Id</th>
<th>Symbol</th>
<th>Price</th>
<th>Quantity</th>
<th>Begin</th>
<th>End</th>
<th>Interest_Rate</th>
<th>Expected_End</th>
<th>Create_Time</th>
<th>Comment</th>
</tr>
</thead>
<tbody>
<tr v-for="info in info">
id, portfolio_id, symbol, price, quantity, begin, end, interest_rate, expected_end, create_time, comment
<td>{{ info.id }}</td>
<td>{{ info.portfolio_id }}</td>
<td>{{ info.symbol }}</td>
<td>{{ info.price }}</td>
<td>{{ info.quantity }}</td>
<td>{{ info.begin }}</td>
<td>{{ info.end }}</td>
<td>{{ info.interest_rate }}</td>
<td>{{ info.expected_end }}</td>
<td>{{ info.create_time }}</td>
<td>{{ info.comment }}</td>
</tr>
</tbody>
</table>
</div>
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script>
var vm = new Vue({
el: '#app',
data: {
/*
people: [{
name: 'Jack',
age: 30,
sex: 'Male'
}, {
name: 'Bill',
age: 26,
sex: 'Male'
}, {
name: 'Tracy',
age: 22,
sex: 'Female'
}, {
name: 'Chris',
age: 36,
sex: 'Male'
}]
*/
}
})
</script>
</body>
</html>