import { $post } from '@/lu/axios.js' let url_ = "https://bjrrtj-api.cjy.net.cn"; const dev = 1 if (dev === 1) { url_ = "http://localbeijingrenren" } export const yo = async (data) => await $post({ url: 'YO', data }) export const UploadImageAction = async (data) => await $post({ url: 'Upload/image', data }) export const QuestionSaveAction = async (data) => await $post({ url: 'Question/save', data }) export const QuestionListAction = async (data) => await $post({ url: 'Question/list', data }) export const UserInfoAction = async (data) => await $post({ url: 'User/info', data }) export const PostListAction = async (data) => await $post({ url: 'Post/list', data }) export const PostInfoAction = async (data) => await $post({ url: 'Post/info', data }) export const LabelGetLabelListAction = async (data) => await $post({ url: 'Label/GetLabelList', data }) //获取订单是评价详情 export const LabelGetOrderEvaluateAction = async (data) => await $post({ url: 'Label/GetOrderEvaluate', data }) //新增订单是评价详情 export const LabelAddOrderEvaluateAction = async (data) => await $post({ url: 'Label/AddOrderEvaluate', data }) export const $image = (path) => { return `${url_}${path}` } export const $response = (response, then, error = () => {}) => { if (response) { if (response.code != 200) { uni.$lu.toast(response.message); error() return } then() } }