소스 검색

价格调整

yuwenjun 4 년 전
부모
커밋
7c7fff8a60
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      components/cm-module/productDetails/cm-price.vue
  2. 1 0
      pages/goods/product.vue

+ 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);
 			}
 		},