ソースを参照

手机器件详情优先展示店铺

yangc 7 年 前
コミット
36a3e977aa
1 ファイル変更2 行追加2 行削除
  1. 2 2
      components/mobile/brand/ComponentDetail.vue

+ 2 - 2
components/mobile/brand/ComponentDetail.vue

@@ -19,8 +19,8 @@
       <i class="iconfont icon-shoucang" :style="isCollect?'color:#ff7800':'color: #ddd'" @click="collectComponent"></i>
     </div>
     <div class="product-switch-item">
-      <span :class="activeType=='param'?'mobile-switch-btn active':'mobile-switch-btn'" @click="activeType='param'">参数</span>
       <span :class="activeType=='store'?'mobile-switch-btn active':'mobile-switch-btn'" @click="activeType='store'">商家</span>
+      <span :class="activeType=='param'?'mobile-switch-btn active':'mobile-switch-btn'" @click="activeType='param'">参数</span>
     </div>
     <div class="product-params" v-if="activeType == 'param'">
       <div class="param-item" v-if="prop.value && prop.value!=''" v-for="prop in component.properties">
@@ -95,7 +95,7 @@
   export default {
     data () {
       return {
-        activeType: 'param',
+        activeType: 'store',
         collectResult: '收藏成功',
         timeoutCount: 0,
         storeIds: [],