una 4 місяців тому
батько
коміт
41098e9c5d
1 змінених файлів з 6 додано та 5 видалено
  1. 6 5
      src/views/goods/create.vue

+ 6 - 5
src/views/goods/create.vue

@@ -4,23 +4,23 @@
   <div class="app-container">
     <!-- 右侧导航 -->
     <div class="tree-nav">
-      <div class="tree-nav-item">
+      <div class="tree-nav-item" @click="scrollingTo(0)">
         <div :class="['dot',treeNavIndex==0?'active-tree':'']">1</div>
         <div>商品基本信息</div>
       </div>
-      <div class="tree-nav-item">
+      <div class="tree-nav-item" @click="scrollingTo(1)">
         <div :class="['dot',treeNavIndex==1?'active-tree':'']">2</div>
         <div>规格设置</div>
       </div>
-      <div class="tree-nav-item">
+      <div class="tree-nav-item" @click="scrollingTo(2)">
         <div :class="['dot',treeNavIndex==2?'active-tree':'']">3</div>
         <div>商品售卖渠道</div>
       </div>
-      <div class="tree-nav-item">
+      <div class="tree-nav-item" @click="scrollingTo(3)">
         <div :class="['dot',treeNavIndex==3?'active-tree':'']">4</div>
         <div>商品特殊设置</div>
       </div>
-      <div class="tree-nav-item">
+      <div class="tree-nav-item" @click="scrollingTo(4)">
         <div :class="['dot',treeNavIndex==4?'active-tree':'']">5</div>
       <div>商品图片</div>
     </div>
@@ -2414,6 +2414,7 @@ export default {
   display: flex;
   height: 40px;
   align-items: center;
+  cursor: pointer;
 }
 .tree-nav-item .dot {
   width: 24px;