Browse Source

商品SKU

zhengjinyi 2 years ago
parent
commit
fa41616689
2 changed files with 15 additions and 9 deletions
  1. 5 5
      pages/goods/components/cm-unit-popup.vue
  2. 10 4
      pages/goods/goods-supporting.vue

+ 5 - 5
pages/goods/components/cm-unit-popup.vue

@@ -135,10 +135,6 @@ export default {
 		}
 	},
 	created() {
-		this.skuList = this.skuProduct.skus
-		this.productCount = this.skuList[0].minBuyNumber
-		this.handleMinNumber = this.skuList[0].minBuyNumber
-		this.handleStock = this.skuList[0].stock
 		this.initData()
 	},
 	computed: {
@@ -152,7 +148,11 @@ export default {
 			} else {
 				this.isShowButton = false
 			}
-			if(this.skuProduct.skuList[0].ladderPriceList){ this.isShowLadder = true }
+			this.skuList = this.skuProduct.skus
+			this.productCount = this.skuList[0].minBuyNumber
+			this.handleMinNumber = this.skuList[0].minBuyNumber
+			this.handleStock = this.skuList[0].stock
+			if(this.skuList[0].ladderPriceList){ this.isShowLadder = true }
 		},
 		//popup弹窗数量增加按钮
 		changeCountAdd() {

+ 10 - 4
pages/goods/goods-supporting.vue

@@ -32,7 +32,8 @@
 									pros.name
 								}}</view>
 								<view class="list-details-specs" @click.stop="handlerUnit(pros)"
-									>规格:
+									>
+									<view class="list-unit-tt">规格:</view>
 									<view class="list-unit">
 										<text class="list-unit-text">{{ pros.unit }}</text>
 										<text class="iconfont icon-xiangxiajiantou"></text>
@@ -482,7 +483,7 @@ export default {
 			//跳转确认订单页面
 			let list = []
 			if (!this.isProductChecked) {
-				this.$util.msg('请选择商品', 2000)
+				this.$util.msg('请选择商品', 2000)
 				return
 			}
 			this.productList.map((el, index) => {
@@ -823,8 +824,12 @@ page {
 		width: 100%;
 		display: inline-block;
 		margin-top: 8rpx;
-		color: #999999;
-		font-size: 24rpx;
+		.list-unit-tt{
+			color: #999999;
+			font-size: 24rpx;
+			line-height: 40rpx;
+			float: left;
+		}
 		.list-unit{
 			width: 136rpx;
 			line-height: 40rpx;
@@ -836,6 +841,7 @@ page {
 			color: #999999;
 			position: relative;
 			border-radius: 6rpx;
+			float: left;
 			.list-unit-text{
 				width: 80rpx;
 				line-height: 40rpx;