shish hace 11 meses
padre
commit
ab0eba9426

+ 4 - 0
hdPad/src/api/goods/index.js

@@ -149,3 +149,7 @@ export const getRise = data => {
 export const updateRise = data => {
 	return https.post('/goods/update-rise', data)
 }
+
+export const getCategoryToGoods = data => {
+	return https.get('/category/goods-list', data)
+}

+ 2 - 2
hdPad/src/pages/home/components/rightGoods.vue

@@ -39,7 +39,7 @@
     </view>
 </template>
 <script>
-import { getGoodsInfoList } from '@/api/goods'
+import { getCategoryToGoods } from '@/api/goods'
 import { getAllClass } from '@/api/category'
 import productMins from "@/mixins/product";
 import list from "@/mixins/list";
@@ -136,7 +136,7 @@ export default {
             })
         },
         getShowData(){
-            getGoodsInfoList({page:this.list.page,pageSize:30,cId:this.selIndex,flowerNum:this.flowerNum}).then(res=>{
+            getCategoryToGoods({page:this.list.page,pageSize:30,cId:this.selIndex,flowerNum:this.flowerNum,requestType:'kd'}).then(res=>{
                 if(res.code == 1){
                     this.completes(res)
                 }