|
|
@@ -42,7 +42,7 @@
|
|
|
<th class="text-center" width="100">香港交货<span style="font-size: 12px;">($)</span></th>
|
|
|
<th class="text-center" width="130">大陆交货<span style="font-size: 12px;">(¥)</span></th>
|
|
|
<th class="text-center" width="120">交期</span></th>
|
|
|
- <th class="text-center" width="150">操作</th>
|
|
|
+ <th class="text-center" width="140">操作</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody class="text-center">
|
|
|
@@ -79,7 +79,7 @@
|
|
|
<span>—</span>
|
|
|
</div>
|
|
|
<div v-for="price in list.prices">
|
|
|
- <span>{{price.uSDPrice}}</span>
|
|
|
+ <span>{{price.uSDPrice | currency}}</span>
|
|
|
</div>
|
|
|
</a>
|
|
|
</td>
|
|
|
@@ -89,7 +89,7 @@
|
|
|
<span>—</span>
|
|
|
</div>
|
|
|
<div v-for="price in list.prices">
|
|
|
- <span>{{price.rMBPrice}}</span>
|
|
|
+ <span>{{price.rMBPrice | currency}}</span>
|
|
|
</div>
|
|
|
</a>
|
|
|
</td>
|
|
|
@@ -117,6 +117,16 @@
|
|
|
<script>
|
|
|
export default {
|
|
|
name: 'StoreInfo',
|
|
|
+ filters: {
|
|
|
+ currency: function (num) {
|
|
|
+ if (typeof num === 'number') {
|
|
|
+ if (num.toString().indexOf('.') === -1) {
|
|
|
+ num += '.00'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return num
|
|
|
+ }
|
|
|
+ },
|
|
|
computed: {
|
|
|
stores () {
|
|
|
return this.$store.state.componentStore.store
|