谢杰标 2 жил өмнө
parent
commit
77f385c3c4

+ 16 - 10
pages3/course/detail.vue

@@ -54,7 +54,7 @@
             >
               {{ detail.standPrice === 0 ? "免费" : `¥${detail.standPrice}` }}
             </view>
-			<!-- 范围价格 -->
+            <!-- 范围价格 -->
             <view v-else class="price_word">
               <view>{{ detail.minPrice }}</view>
               <template v-if="detail.minPrice != detail.maxPrice">
@@ -349,11 +349,14 @@
                       @change="checkboxChange"
                       v-model="spec.check"
                       :name="spec.specAttributeId"
-                    ></u-checkbox>
-                    <view class="price_box">
-                      <view class="check_box_item_titme">{{ spec.name }}</view>
-                      <view class="price">¥{{ spec.standPrice }}</view>
-                    </view>
+                    >
+                      <view class="price_box">
+                        <view class="check_box_item_titme">{{
+                          spec.name
+                        }}</view>
+                        <view class="price">¥{{ spec.standPrice }}</view>
+                      </view>
+                    </u-checkbox>
                   </view>
                 </u-checkbox-group>
               </view>
@@ -443,7 +446,7 @@ export default {
         }
         return a;
       }, 0);
-      return this.toFixed(allPrice) 
+      return this.toFixed(allPrice);
     },
     goodsIds() {
       if (!this.specList.length) return [];
@@ -588,6 +591,10 @@ export default {
       this.selectGoodIndex = index;
       this.changeData();
     },
+    select(val) {
+      val.check = !val.check;
+      console.log(val, 6666);
+    },
     checkboxChange(val) {
       if (!this.isSingleChoice) return;
       this.specList.slice(-1)[0].specAttrList.forEach((ele) => {
@@ -1229,11 +1236,11 @@ page {
     font-size: 44rpx;
     font-weight: 800;
     color: #fc3f3f;
-	margin-bottom: 8rpx;
+    margin-bottom: 8rpx;
     view::before {
       content: "¥";
       font-size: 26rpx;
-	  font-weight: bold;
+      font-weight: bold;
     }
   }
 
@@ -1357,7 +1364,6 @@ page {
   font-size: 24rpx;
 }
 
-
 .wk_icon {
   width: 24rpx;
   height: 24rpx;

+ 16 - 7
pages3/course/index.scss

@@ -261,7 +261,8 @@
 			font-size: 28rpx;
 
 			.price_box {
-				width: 100%;
+				margin-left: 10rpx;
+				width: 520rpx;
 				display: flex;
 				align-items: center;
 				justify-content: space-between;
@@ -283,7 +284,11 @@
 
 		.selected {
 			background: #EBF2FF;
-			color: #3F8DFD;
+
+			.check_box_item_titme {
+				color: #3F8DFD;
+			}
+
 		}
 	}
 
@@ -293,21 +298,25 @@
 		position: absolute;
 		bottom: 32rpx;
 		display: flex;
-        align-items: center;
+		align-items: center;
 		justify-content: space-between;
-		.allprice {  
+
+		.allprice {
 			view {
 				color: #222222;
 				font-size: 32rpx;
-				text{
+
+				text {
 					color: #EB445A;
 					font-size: 40rpx;
-					&:nth-of-type(1){
+
+					&:nth-of-type(1) {
 						font-size: 24rpx;
 					}
 				}
 			}
-			text{
+
+			text {
 				color: #666;
 				font-size: 28rpx;
 			}