|
|
@@ -215,8 +215,8 @@
|
|
|
return this.$store.state.shop.storeInfo.component.data
|
|
|
},
|
|
|
calculate () {
|
|
|
- this.fragment.total = this.fragment.price * this.fragment.num
|
|
|
- return Math.ceil(this.fragment.total * Math.pow(10, 6)) / Math.pow(10, 6)
|
|
|
+ this.fragment.total = this.fragment.price * Math.pow(10, 6) * this.fragment.num
|
|
|
+ return Math.ceil(this.fragment.total) / Math.pow(10, 6)
|
|
|
},
|
|
|
user () {
|
|
|
return this.$store.state.option.user
|