import http from '../utils/http' /** * 获取省市区 * @author Seven * @data 2025-2-29 * @returns { list [] } * @see https://mall.gpxscs.cn/mobile/shop/shop-base-district/getAppDistrict */ export function GetAppDistrict (params = {}){ return new Promise((resolve, reject) => { http({ url:'/shop/shop-base-district/getAppDistrict', method:'get', params, baseURL:process.env.VUE_APP_BACK_BASE_API }).then(res=>{ resolve(res) }).catch(e => reject(console.warn(e))) }) } /** * 店铺主营分类(类目) * @author Seven * @data 2025-3-5 * @returns { list [] } * @see https://mall.gpxscs.cn/mobile/shop/shop-base-product-category/listCategory */ export function GetMeritoCategory (params = {}){ return new Promise((resolve, reject) => { http({ url:'/shop/shop-base-product-category/listCategory', method:'get', params, baseURL:process.env.VUE_APP_BACK_BASE_API }).then(res=>{ resolve(res) }).catch(e => reject(console.warn(e))) }) } /** * 店铺主营分类(类目)二级分类 * @author Seven * @data 2025-3-5 * @param { category_parent_id } * @returns { list [] } * @see https://mall.gpxscs.cn/mobile/shop/shop-base-product-category/treeCategory */ export function GetTreeCategory (params = {}){ return new Promise((resolve, reject) => { http({ url:'/shop/shop-base-product-category/treeCategory', method:'get', params, }).then(res=>{ resolve(res) }).catch(e => reject(console.warn(e))) }) } /** * 获取百度地图输入点提示词 * @author Seven * @data 2025-3-5 * @param { category_parent_id } * @returns { query,region } * @see https://mall.gpxscs.cn/mobile/shop/merch/baidu/place/v2/suggestion */ export function GetBaiduSuggestion (params = {}){ params.isFilter = true return new Promise((resolve, reject) => { http({ url:'/shop/merch/baidu/place/v2/suggestion', method:'get', params, }).then(res=>{ resolve(res) }).catch(e => reject(console.warn(e))) }) } /** * 获取入驻审核状态 * @author Seven * @data 2025- * @returns { approval_invalid_col:[] ,approval_status":4, approval_remark:'', id:'' } * approval_invalid_col 重新审核 映射需要用到 由B段admin 传过来 * approval_status 1-已通过;2-未通过;3-待审核;4 -未申请 * approval_remark 驳回备注 * @see https://mall.gpxscs.cn/mobile/shop/merch/fresh/approval/status */ export function GetAuditStatus (params = {}){ return new Promise((resolve, reject) => { http({ url:'/shop/merch/fresh/approval/status', method:'post', data:params, }).then(res=>{ if(res && res.status == 200){ uni.setStorageSync("approvalStatus",res.data.approval_status); uni.setStorageSync("approvalStatusInfo",res.data); } resolve(res) }).catch(e => reject(console.warn(e))) }) } /** * 获取申请信息详情 * @author Seven * @data 2025-3-4 * @returns { } * @see https://mall.gpxscs.cn/mobile/shop/merch/detail */ export function GetAuditInfo(params){ return new Promise((resolve, reject) => { http({ url:'/shop/merch/detail', method:'post', data:params, }).then(res=>{ if(res && res.status == 200){ uni.setStorageSync("approvalStatus",res.data.approval_status); uni.setStorageSync("approvalStatusInfo",res.data); } resolve(res) }).catch(e => reject(console.warn(e))) }) } /** * 获取银行列表 * @author Seven * @data 2025-3-4 * @returns { } * @see https://mall.gpxscs.cn/mobile/shop/global/banks/list */ export function GetBankList(params){ return new Promise((resolve, reject) => { http({ url:'/shop/global/banks/list', method:'post', data:params, }).then(res=>{ resolve(res) }).catch(e => reject(console.warn(e))) }) } /** * 提交审核 * @author Seven * @data 2025-3-4 * @returns { } * @see https://mall.gpxscs.cn/mobile/shop/merch/apply */ export function GetMerchApply(params){ return new Promise((resolve, reject) => { http({ url:'/shop/merch/apply', method:'post', data:params, }).then(res=>{ resolve(res) }).catch(e => reject(console.warn(e))) }) } /** * 重新提交审核 * @author Seven * @data 2025-3-4 * @returns { } * @see https://mall.gpxscs.cn/mobile/shop/merch/re-apply */ export function GetRestartMerchApply(params){ return new Promise((resolve, reject) => { http({ url:'/shop/merch/re-apply', method:'post', data:params, }).then(res=>{ resolve(res) }).catch(e => reject(console.warn(e))) }) } /** * 获取店铺分类(类目) * @author Seven * @data 2025-3-4 * @returns { } * @see https://mall.gpxscs.cn/mobile/shop/store/biz-category/list */ export function GetBizCategoryList(params){ return new Promise((resolve, reject) => { http({ url:'/shop/store/biz-category/list', method:'post', data:params, }).then(res=>{ resolve(res) }).catch(e => reject(console.warn(e))) }) }