website/dist/static/js/login-BAYkpaVz.js
2025-12-27 11:09:06 +08:00

2 lines
2.1 KiB
JavaScript

import{s as n}from"./http-CsN80ifF.js";function s(r){return r.isFilter=!0,new Promise((o,t)=>{n({url:"/api/mobile/account/login/doMerchSmsRegisterAndLogin",method:"post",data:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function i(r){return r.isFilter=!0,new Promise((o,t)=>{n({url:"/api/mobile/account/login/sendVerifyCode",method:"post",data:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function c(){return new Promise((r,o)=>{n({url:"/api/mobile/shop/shop-base-store-category/list",method:"post"}).then(t=>{r(t)}).catch(t=>o(console.warn(t)))})}function l(r){return r.map(o=>({value:o.store_category_id,label:o.store_category_name,children:o.children?[{value:o.store_category_id,label:`${o.store_category_name} 到账比例(${o.split_ratio}%)`},...o.children.map(t=>({value:t.store_category_id,label:`${t.store_category_name} 到账比例(${t.split_ratio}%)`}))]:[]}))}function h(r){return r.isFilter=!0,new Promise((o,t)=>{n({url:"/api/mobile/shop/merch/baidu/place/v2/suggestion",method:"get",params:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function p(r){return new Promise((o,t)=>{n({url:"/api/mobile/shop/lakala/tk/bank/search",method:"post",data:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function u(r){return new Promise((o,t)=>{n({url:"/api/mobile/shop/merch/apply",method:"post",data:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function m(){const r={mobile:localStorage.getItem("mobilePhone")};return new Promise((o,t)=>{n({url:"/api/mobile/shop/merch/fresh/approval/status",method:"post",data:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function d(r){return new Promise((o,t)=>{n({url:"/api/mobile/shop/merch/re-apply",method:"post",data:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function g(r){return new Promise((o,t)=>{n({url:"/api/mobile/shop/merch/detail",method:"post",data:r}).then(e=>{o(e)}).catch(e=>t(console.warn(e)))})}function b(){return new Promise((r,o)=>{n({url:"/api/mobile/shop/shop-base-district/getAppDistrict",method:"get"}).then(t=>{r(t)}).catch(t=>o(console.warn(t)))})}export{c as G,b as a,p as b,h as c,g as d,s as e,i as f,m as g,u as m,d as r,l as t};