zhaojs
2023-06-30 ea3df4a7c5e60fff7935eed4b07feebde8c4e723
uniapp/pages/search/search.vue
@@ -27,7 +27,7 @@
            <view class="onlineStore-container rowCen" v-if="searchText==''">
               <view class="onlineStoreList rowSta">
                  <block v-for="(items,index) in onlineStoreList" :key="index">
                     <view class="store-items colCen" :class="storeCurrent==index?'store-items-active':''" @click="checkstore(index)">
                     <view class="store-items colCen" :class="storeCurrent==items.inde?'store-items-active':''" @click="checkstore(items.inde)">
                        <view class="store-name">
                           {{items.name}}
                        </view>
@@ -166,24 +166,30 @@
         return {
            onlineStoreList: [{
                  name: '淘宝',
                  type: 'tb'
                  type: 'tb',
                  inde:0
               },
               {
                  name: '京东',
                  type: 'jd'
                  type: 'jd',
                  inde:1
               },
               {
                  name: '拼多多',
                  type: 'pdd'
               },
               {
                  name: '唯品会',
                  type: 'vph'
                  type: 'pdd',
                  inde:2
               },
               {
                  name: '抖音',
                  type: 'dy'
                  type: 'dy',
                  inde:4
               },
               {
                  name: '唯品会',
                  type: 'vph',
                  inde:3
               }
            ],
            searchText: '',
            storeCurrent: 0,