| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import { request } from '../request.uts'
- // 基础 URL 配置
- // #ifdef APP-ANDROID
- const BASE_URL = 'http://192.168.0.9:8001'
- // #endif
- // #ifdef APP-IOS
- const BASE_URL = 'http://192.168.0.9:8001'
- // #endif
- // #ifdef H5
- const BASE_URL = ''
- // #endif
- // #ifdef MP-WEIXIN
- const BASE_URL = 'http://192.168.0.9:8001'
- // #endif
- // #ifdef MP-HARMONY
- const BASE_URL = 'http://192.168.0.9:8001'
- // #endif
- /**
- * 获取商户评论列表
- */
- export function transRecords(params : any) : Promise<any> {
- return request({
- url: `${BASE_URL}/api/coach/v3/wallet/trans-records`,
- method: "GET",
- params: params
- })
- }
- /**
- * 获取商户评论列表
- */
- export function getCommentList(params : any) : Promise<any> {
- return request({
- url: `${BASE_URL}/api/coach/v3/ordercomments`,
- method: "GET",
- params: params
- })
- }
- /**
- * 获取商户评论统计数据
- */
- export function getCommentData() : Promise<any> {
- return request({
- url: `${BASE_URL}/api/coach/v3/ordercomments/statistics`,
- method: "GET"
- })
- }
|