Browse Source

商品专题

xuqiaoying 3 years ago
parent
commit
4d1c342cbd
2 changed files with 12 additions and 10 deletions
  1. 6 6
      pages/course/index.vue
  2. 6 4
      pages4/courseTopic/goodsTopic.vue

+ 6 - 6
pages/course/index.vue

@@ -288,12 +288,12 @@ export default {
 		},
 		active2(item){
 			// console.log('item', item)
-			// if (item.topicId) {
-			// 	uni.navigateTo({
-			// 		url: '/pages4/courseTopic/goodsTopic?topicId=' + item.topicId
-			// 	})
-			// 	return
-			// }
+			if (item.topicId) {
+				uni.navigateTo({
+					url: '/pages4/courseTopic/goodsTopic?topicId=' + item.topicId
+				})
+				return
+			}
 			
 			this.selObj.bId = item.id
 			this.show = false

+ 6 - 4
pages4/courseTopic/goodsTopic.vue

@@ -96,8 +96,8 @@
                     </view>
                 </view>
                 <view class="pop_prices">
-                    <text class="price">¥ {{ skuItem.standPrice || 0 }}</text>
-                    <text v-if="skuItem.linePrice" class="lin_price"> ¥{{ skuItem.linePrice }}</text>
+                    <text v-if="skuItem.standPrice || skuItem.standPrice == 0" class="price">¥ {{ skuItem.standPrice || 0 }}</text>
+                    <text v-if="skuItem.linePrice" class="lin_price">¥ {{ skuItem.linePrice }}</text>
                 </view>
                 <view class="check_con">
                     <scroll-view scroll-y="true" style="height: 550rpx;">
@@ -146,10 +146,11 @@ export default {
         if (option.scene) {
             let tid = decodeURIComponent(option.scene)
             this.topicId = tid.split('=')[1]
-            console.log('topicId: ', this.topicId)
+            
         } else {
             this.topicId = option.topicId
         }
+        console.log('topicId: ', this.topicId)
         this.getgoodsInfo()
     },
     methods: {
@@ -211,6 +212,7 @@ export default {
             })
         },
         selectSku(item, index) {
+            console.log('defhd', item, index)
             this.skuItem = item
             this.skuIndex = index
         },
@@ -452,7 +454,7 @@ export default {
             color: #999999;
             font-size: 30rpx;
             text-decoration:line-through;
-            margin-left: 8rpx;
+            margin-left: 10rpx;
         }
     }
     .headers {