lilei 8 mesi fa
parent
commit
77e6d2f559
3 ha cambiato i file con 17 aggiunte e 13 eliminazioni
  1. 3 1
      pagesB/cart/index.vue
  2. 11 10
      pagesB/cart/productitem.vue
  3. 3 2
      pagesB/shopiing/productDetail.vue

+ 3 - 1
pagesB/cart/index.vue

@@ -225,6 +225,7 @@
 								  }
 								  }
 							  }
 							  }
 						  }
 						  }
+						  key.priceStr = Number(key.price).toFixed(2).toString().split('.')
 						  delete key.shopPromoProduct
 						  delete key.shopPromoProduct
 						  return {
 						  return {
 								id: key.id,
 								id: key.id,
@@ -233,6 +234,7 @@
 								cartSn: key.cartSn,
 								cartSn: key.cartSn,
 								price: key.price,
 								price: key.price,
 								orginPrice: key.orginPrice,
 								orginPrice: key.orginPrice,
+								priceStr: key.priceStr,
 								qty: key.qty,
 								qty: key.qty,
 								productSn: key.productSn,
 								productSn: key.productSn,
 								productName: key.productEntity.productName,
 								productName: key.productEntity.productName,
@@ -649,7 +651,7 @@
 			margin: 20px 0 10px;
 			margin: 20px 0 10px;
 			.popu-content-btn-item{
 			.popu-content-btn-item{
 				width: 40%;
 				width: 40%;
-				height: 36px;
+				height: 32px;
 				font-size: 14px;
 				font-size: 14px;
 				display: flex;
 				display: flex;
 				align-items: center;
 				align-items: center;

+ 11 - 10
pagesB/cart/productitem.vue

@@ -25,7 +25,7 @@
 						</view>
 						</view>
 						<view class="choose-product-item-left-info-price">
 						<view class="choose-product-item-left-info-price">
 							<view v-if="item.status==1">
 							<view v-if="item.status==1">
-								<view class="price-txt">¥<text>{{item.price}}</text></view>
+								<view class="price-txt">¥<text>{{item.priceStr[0]}}</text>.{{item.priceStr[1]}}</view>
 								<view class="flex align_center rebate-tag" v-if="item.promoType=='BUY_PROD_GIVE_VALID'">
 								<view class="flex align_center rebate-tag" v-if="item.promoType=='BUY_PROD_GIVE_VALID'">
 									返<text>{{item.resultValue}}</text>元
 									返<text>{{item.resultValue}}</text>元
 								</view>
 								</view>
@@ -154,21 +154,23 @@
 			align-items: center;
 			align-items: center;
 			justify-content: center;
 			justify-content: center;
 			width: 22px;
 			width: 22px;
-			height: 22px;
+			height: 20px;
 			border-radius: 50px;
 			border-radius: 50px;
 			font-size: 18px;
 			font-size: 18px;
-			background-color: #066cff;
-			color: #fff;
+			color: #066cff;
 			&.qty-disabled{
 			&.qty-disabled{
-				background-color: #c0c0c0;
+				color: #999;
 			}
 			}
 		}
 		}
 		.qty-num{
 		.qty-num{
 			width: 24px;
 			width: 24px;
-			height: 22px;
-			line-height: 22px;
-			padding:0 3px;
+			height: 20px;
+			line-height: 20px;
 			text-align: center;
 			text-align: center;
+			background-color: #efefef;
+			margin: 0 3px;
+			border-radius: 3px;
+			font-size: 12px;
 			input{
 			input{
 				width: 100%;
 				width: 100%;
 				height: 100%;
 				height: 100%;
@@ -256,11 +258,10 @@
 			flex-grow: 1;
 			flex-grow: 1;
 			.choose-product-item-left-info-price{
 			.choose-product-item-left-info-price{
 				display: flex;
 				display: flex;
-				align-items:center;
 				justify-content: space-between;
 				justify-content: space-between;
 				>view{
 				>view{
 					display: flex;
 					display: flex;
-					align-items:center;
+					align-items:baseline;
 				}
 				}
 				.edit-qty{
 				.edit-qty{
 					display: flex;
 					display: flex;

+ 3 - 2
pagesB/shopiing/productDetail.vue

@@ -439,6 +439,7 @@
 				this.showPopu = false
 				this.showPopu = false
 				this.qty = 1
 				this.qty = 1
 				if(this.submitOk){
 				if(this.submitOk){
+					this.submitOk = false
 					uni.navigateTo({
 					uni.navigateTo({
 						url: "/pagesB/procureOrder"
 						url: "/pagesB/procureOrder"
 					})
 					})
@@ -752,8 +753,8 @@
 					justify-content: space-around;
 					justify-content: space-around;
 					margin: 20px 0 10px;
 					margin: 20px 0 10px;
 					.popu-content-btn-item{
 					.popu-content-btn-item{
-						width: 45%;
-						height: 36px;
+						width: 40%;
+						height: 34px;
 						font-size: 14px;
 						font-size: 14px;
 						display: flex;
 						display: flex;
 						align-items: center;
 						align-items: center;