| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- import { request } from '../request.uts'
- // 基础 URL 配置
- // #ifdef APP-ANDROID
- const BASE_URL = 'https://dev.xiaodingyun.cn'
- // #endif
- // #ifdef APP-IOS
- const BASE_URL = 'https://dev.xiaodingyun.cn'
- // #endif
- // #ifdef H5
- const BASE_URL = ''
- // #endif
- // #ifdef MP-WEIXIN
- const BASE_URL = 'https://dev.xiaodingyun.cn'
- // #endif
- // #ifdef MP-HARMONY
- const BASE_URL = 'https://dev.xiaodingyun.cn'
- // #endif
- // 获取技师详情信息
- export function getCoachDetaile() : Promise<any> {
- return request({
- url: `${BASE_URL}/api/client/v3/user/checkCoachReview`,
- method: "GET"
- })
- }
- // 申请成为技师base-info
- export function fetchBaseInfo(data : any) : Promise<any> {
- return request({
- url: `${BASE_URL}/api/client/v3/coach/account/base-info`,
- method: "POST",
- data: data
- })
- }
- /**
- * 提交实名认证信息
- * @param {Object} data - 实名认证信息
- * @param {string} data.name - 真实姓名
- * @param {string} data.idCard - 身份证号码
- * @param {string} data.idCardFrontUrl - 身份证正面照片URL
- * @param {string} data.idCardBackUrl - 身份证背面照片URL
- * @returns {Promise<any>} 提交结果
- */
- export function submitRealName(data : any) : Promise<any> {
- return request({
- url: `${BASE_URL}/api/coach/v3/account/real-name`,
- method: "POST",
- data: data
- })
- }
- // 修改商户基本信息
- export function editRealName(data : any) : Promise<any> {
- return request({
- url: `${BASE_URL}/api/coach/v3/account/update-basic-info`,
- method: "POST",
- data: data
- })
- }
- /**
- * 提交技师资质认证信息
- * @param {Object} data - 资质认证信息
- * @param {string} data.certificateUrl - 资格证书照片URL
- * @param {string} data.certificateNo - 资格证书编号
- * @param {string} data.mobile - 手机号
- * @returns {Promise<any>} 提交结果
- */
- export function submitQualification(data : any) : Promise<any> {
- return request({
- url: `${BASE_URL}/api/coach/v3/account/qualification`,
- method: "POST",
- data: data
- })
- }
- // 获取标签列表
- export function getCoachFlagList() : Promise<any> {
- return request({
- url: `${BASE_URL}/api/coach/v3/account/coach-tag`,
- method: "GET"
- })
- }
- // 更新接单位置
- export function updateLocation(data : any) : Promise<any> {
- return request({
- url: `${BASE_URL}/api/coach/v3/account/location`,
- method: "POST",
- data: data
- })
- }
- /**
- * 获取技师二维码
- * @returns {Promise<{qrcode: string}>} 技师二维码信息
- */
- export function getCoachQrcode() : Promise<any> {
- return request({
- url: `${BASE_URL}/api/coach/v3/account/qrcode`,
- method: "GET"
- })
- }
- // 一键报警
- export function orderAlarm() : Promise<any> {
- return request({
- url: `${BASE_URL}/api/coach/v3/orders/alerts`,
- method: "GET"
- })
- }
- // 获取当前区域配置
- export function getAreaConfig(params : any) : Promise<any> {
- return request({
- url: `${BASE_URL}/api/coach/v3/wallet/withdraw-fee-rate`,
- method: "GET",
- params: params
- })
- }
- // 消息通知
- export function getNotice(params : any) : Promise<any> {
- return request({
- url: `${BASE_URL}/api/coach/v3/inform/inform`,
- method: "GET",
- params: params
- })
- }
|