|
@@ -75,7 +75,7 @@
|
|
|
<span class="money">
|
|
|
<span v-if="fragment.currency == 'RMB'">¥</span>
|
|
|
<span v-if="fragment.currency == 'USD'">$</span>
|
|
|
- <span v-text="calculate || 0"></span>
|
|
|
+ <span>{{(calculate || 0) | currency('', 2)}}</span>
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="button" ng-controller="GoodsPickUpCtrl">
|
|
@@ -98,7 +98,7 @@
|
|
|
<span v-text="price.start"></span>+
|
|
|
</div>
|
|
|
<div class="price">
|
|
|
- <span v-if="price.rMBPrice" v-text="price.rMBPrice ||0"></span>
|
|
|
+ <span v-if="price.rMBPrice" v-text="price.rMBPrice || 0"></span>
|
|
|
</div>
|
|
|
<div class="price">
|
|
|
<span v-if="price.uSDPrice" v-text="price.uSDPrice || 0"></span>
|
|
@@ -174,7 +174,7 @@ export default {
|
|
|
},
|
|
|
calculate () {
|
|
|
this.fragment.total = this.fragment.price * this.fragment.num
|
|
|
- return this.fragment.total
|
|
|
+ return Math.ceil(this.fragment.total * Math.pow(10, 2)) / Math.pow(10, 2)
|
|
|
}
|
|
|
},
|
|
|
methods: {
|