Browse Source

搜索页:接口对接

panyong 2 years ago
parent
commit
3001623029

+ 1 - 1
htmldev/cps/README.md

@@ -26,7 +26,7 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
 ### todo list
 - [ ] 商家logo默认/选中2中状态
 - [ ] 测试省钱页跳转微信小程序
-- [ ] 搜索页
+- [x] 搜索页
 - [ ] 分享测试:默认、带有分享人信息、分享赚钱、商品列表及详情
 - [x] 商品详情页:淘宝复制口令
 - [ ] 底部导航:新增购物

+ 1 - 1
htmldev/cps/src/views/category/index/child/main.vue

@@ -21,7 +21,7 @@
       <li
         v-for="(item, index) in list"
         :key="index"
-        class="list-item border-bottom-1px"
+        class="list-item"
         @click="getOrderDetail(item.goods_id)">
         <div class="photo">
           <img

+ 1 - 1
htmldev/cps/src/views/search/child/main.vue

@@ -21,7 +21,7 @@
       <li
         v-for="(item, index) in list"
         :key="index"
-        class="list-item border-bottom-1px"
+        class="list-item"
         @click="getOrderDetail(item.goods_id)">
         <div class="photo">
           <img

+ 2 - 8
htmldev/cps/src/views/search/index.vue

@@ -32,7 +32,7 @@
           :name="item.value"
           v-for="item in sourceList"
           :key="item.value">
-          <template #title>选项</template>
+          <template #title>{{ item.name }}</template>
         </van-tab>
       </van-tabs>
     </div>
@@ -43,12 +43,7 @@
         :class="{'active': sort === item.value}"
         v-for="item in filterList"
         :key="item.value"
-        @click="selectSortType(item)">选项
-      </li>
-      <li
-        @click="showType = showType === 1 ? 2 : 1">
-        <span
-          :class="['shopfont', showType === 1 ? 'shopfont-liebiao' : 'shopfont-shuangliebiao']"></span>
+        @click="selectSortType(item)">{{ item.name }}
       </li>
     </ul>
     <!--商品列表-->
@@ -115,7 +110,6 @@ export default {
       ],
       source: 'jd',
       sort: 1,
-      showType: 1, // 列表展示方式
       booGoodsWrap: false
     }
   },