소스 검색

fix: 价格显示和隐藏

xuqiaoying 3 년 전
부모
커밋
474ad3b233
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 3
      pages4/courseTopic/goodsTopic.vue

+ 6 - 3
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;">
@@ -144,10 +144,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: {
@@ -209,6 +210,7 @@ export default {
             })
         },
         selectSku(item, index) {
+            console.log('defhd', item, index)
             this.skuItem = item
             this.skuIndex = index
         },
@@ -450,6 +452,7 @@ export default {
             color: #999999;
             font-size: 30rpx;
             text-decoration:line-through;
+            margin-left: 10rpx;
         }
     }
     .headers {