Browse Source

no message

sys 1 year ago
parent
commit
09846bd554
3 changed files with 12 additions and 5 deletions
  1. 3 3
      api/my.js
  2. 1 1
      api/utility.js
  3. 8 1
      pages/index/model/screen-item.vue

+ 3 - 3
api/my.js

@@ -10,11 +10,11 @@ export const getRechargePage = (data) => request(goodsUrl + 'myself/getRechargeP
 //获取我的道具
 export const getPayChannel = (data) => request(goodsUrl + 'myself/payChannel', 'get', data)
 //J币流水
-export const getCashFlowHistoryPage = (data) => request(goodsUrl + 'myself/getCashFlowHistoryPage', 'get', data)
+export const getCashFlowHistoryPage = (data) => request(goodsUrl + 'myself/getCashFlowHistoryPage', 'post', data)
 //每日收益
-export const getDailyEarnings = (data) => request(goodsUrl + 'myself/getDailyEarnings', 'get', data)
+export const getDailyEarnings = (data) => request(goodsUrl + 'myself/getDailyEarnings', 'post', data)
 //黑名单列表
-export const getBlackList = (data) => request(goodsUrl + 'myself/blacklist', 'get', data)
+export const getBlackList = (data) => request(goodsUrl + 'myself/blacklist', 'post', data)
 export const delBlackItem = (data) => request(goodsUrl + 'myself/blacklist/'+data, 'delete', {})
 //兑换码
 export const exchangeCode = (data) => request(goodsUrl + 'myself/exchangeCode', 'post', data)

+ 1 - 1
api/utility.js

@@ -2,6 +2,6 @@ import { request } from '@/service/ajax'
 // 商品模块路由
 const goodsUrl = '/admin/'
 // 猜你喜欢
-export const getScreenDict = (data) => request(goodsUrl + 'utility/getDict/app_user_filter_hobby,%20app_user_filter_constellation,%20app_user_filter_purpose', 'get', {  })
+export const getScreenDict = (data) => request(goodsUrl + 'utility/getDict/'+data, 'get', {  })
 export const sayHi = (data) => request(goodsUrl + 'utility/sayHi/'+data, 'post', {  })
 

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

@@ -90,6 +90,7 @@
 	import {
 		getFilter
 	} from "@/api/discovery";
+  import {getScreenDict} from "@/api/utility";
 	export default {
 		components: {
 			cjSliderTwo
@@ -113,8 +114,14 @@
 		},
 		mounted() {
 			this.getFilter()
+			this.getScreenDict()
 		},
 		methods: {
+      getScreenDict(){
+        getScreenDict('app_user_filter_hobby,app_user_filter_constellation,app_user_filter_purpose').then((res)=>{
+          console.log(res)
+        })
+      },
 			getFilter() {
 				getFilter().then((res) => {
 					console.log(res)
@@ -260,4 +267,4 @@
 			}
 		}
 	}
-</style>
+</style>