Ver Fonte

no message

BF-202210271038\Administrator há 11 meses atrás
pai
commit
2a2b22c3bc

+ 2 - 2
api/discovery.js

@@ -2,8 +2,8 @@ import { request } from '@/service/ajax'
 // 商品模块路由
 const goodsUrl = '/admin/discovery/'
 // 猜你喜欢
-export const getMoments = (data) => request(goodsUrl + 'moments', 'get', { ...data })
-export const getDiscoverList = (data) => request(goodsUrl + 'list', 'get', { ...data })
+export const getMoments = (data) => request(goodsUrl + 'moments', 'post', { ...data })
+export const getDiscoverList = (data) => request(goodsUrl + 'list/'+data, 'get', { })
 export const getNearbyList = (data) => request(goodsUrl + 'nearby', 'post', { ...data })
 export const setLike = (data) => request(goodsUrl + 'right/'+data, 'get', {  })
 export const setDislike = (data) => request(goodsUrl + 'left/'+data, 'get', {  })

+ 1 - 1
pages/index/model/screen-item.vue

@@ -203,7 +203,7 @@
         this.showPicker = false;
       },
       getScreenDict(){
-        getScreenDict('app_user_filter_hobby,app_user_filter_constellation,app_user_filter_purpose').then((res)=>{
+        getFilter('app_user_filter_hobby,app_user_filter_constellation,app_user_filter_purpose').then((res)=>{
           console.log(res)
           if(res.code===0){
               if(res.data.app_user_filter_purpose){

+ 2 - 2
pages/index/model/slide-item.vue

@@ -6,7 +6,7 @@
 
 <script>
 import tantan from '@/components/dgex-tantan/dgex-tantan.vue'
-import {getDiscoverList, getMoments, setDislike, setLike} from "@/api/discovery";
+import {getDiscoverList, setDislike, setLike} from "@/api/discovery";
 import tools from "@/service/tools";
 export default {
   name: "slide-item",
@@ -55,7 +55,7 @@ export default {
         return
       }
       this.isAjax=true
-      getDiscoverList({'count':10}).then((res)=>{
+      getDiscoverList(10).then((res)=>{
         this.isAjax=false
         if(res.code===0){
           this.list=res