yuwenjun 4 éve
szülő
commit
7c7fff8a60

+ 1 - 1
components/cm-module/productDetails/cm-price.vue

@@ -166,7 +166,7 @@ export default {
 					this.showIndexOfMoney=this.$api.FormatMoney(this.ableUserMoney)
 					this.smallMoney=".00"
 				}else{
-					this.smallMoney = this.ableUserMoney.toString().substring(i);
+					this.smallMoney = this.ableUserMoney.toString().substring(i,i+3);
 					this.showIndexOfMoney= this.$api.FormatMoney(this.ableUserMoney.toString().substring(0,i))
 					if(this.smallMoney.length == 2) { //补0,实际上用不着
 						this.smallMoney = this.smallMoney + '0';

+ 1 - 0
pages/goods/product.vue

@@ -306,6 +306,7 @@
 		},
 		filters:{
 			NumFormat(value) {//处理金额
+				// console.log('===' + Number(value).toFixed(2))
 				return Number(value).toFixed(2);
 			}
 		},