shish hai 11 meses
pai
achega
5141b2ea9c
Modificáronse 2 ficheiros con 6 adicións e 5 borrados
  1. 3 3
      mallApp/src/pages/home/category.vue
  2. 3 2
      mallApp/src/pages/home/mall.vue

+ 3 - 3
mallApp/src/pages/home/category.vue

@@ -267,7 +267,8 @@ export default {
         searchText: this.searchText, 
         page: this.list.page, 
         pageSize: 10,
-        hdId:hdId
+        hdId:hdId,
+        requestType:'album'
       }).then(res => {
         this.completes(res)
       }).catch(err => {
@@ -275,7 +276,6 @@ export default {
       })
     },
     reachBottom () {
-      console.log('reachBottom----------', this.list.finished)
       if (this.list.finished == false) {
         // 根据是否为搜索模式决定调用哪个方法
         if (this.isSearchMode) {
@@ -307,7 +307,7 @@ export default {
     },
     // 列表
     getGoodList () {
-      return getList({ ...this.form, page: this.list.page,pageSize:10 }) .then(res => {
+      return getList({...this.form, page: this.list.page,pageSize:10,requestType:'album'}) .then(res => {
           // 处理商品列表数据,completes方法来自list混入
           // 该方法会处理分页数据,更新list对象的data、page、finished等属性
           // res包含接口返回的商品列表数据,completes方法会将数据添加到this.list.data中

+ 3 - 2
mallApp/src/pages/home/mall.vue

@@ -267,7 +267,8 @@ export default {
         searchText: this.searchText, 
         page: this.list.page, 
         pageSize: 10,
-        hdId:hdId
+        hdId:hdId,
+        requestType:'mall'
       }).then(res => {
         this.completes(res)
       }).catch(err => {
@@ -307,7 +308,7 @@ export default {
     },
     // 列表
     getGoodList () {
-      return getList({ ...this.form, page: this.list.page,pageSize:10 }) .then(res => {
+      return getList({ ...this.form, page: this.list.page,pageSize:10,requestType:'mall' }) .then(res => {
           // 处理商品列表数据,completes方法来自list混入
           // 该方法会处理分页数据,更新list对象的data、page、finished等属性
           // res包含接口返回的商品列表数据,completes方法会将数据添加到this.list.data中