123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- import request from './request';
-
- // 校验手机号是否注册
- export const validateUser = params => {
- return request({
- url: `org/apply/validateUser/${params.phone}`,
- method: 'get'
- }, true)
- }
- // 获取图片验证码
- export const getCaptcha = randomCode => {
- return request({
- url: `org/apply/getCaptcha/${randomCode}`,
- method: 'get',
- responseType: 'blob',
- }, true)
- }
- // 发送短信验证码
- export const sendVerifyCode = params => {
- return request({
- url: 'org/apply/sendVerifyCode',
- method: 'post',
- data: params
- }, true)
- }
- // 申请试用
- export const apply = params => {
- return request({
- url: 'org/apply/apply',
- method: 'post',
- data: params
- }, true)
- }
- // 获取门店名称
- export const getStore = (token) => {
- return request({
- url: 'getStore',
- method: 'get'
- })
- }
- // 促销活动优惠券-分页
- export const ticketQueryList = params => {
- return request({
- url: `ticket/queryList/${params.pageNo}/${params.pageSize}`,
- method: 'post',
- data: params
- })
- }
- // 促销活动优惠券-总数
- export const ticketQueryCount = params => {
- return request({
- url: `ticket/getAllTicketInfo`,
- method: 'post',
- data: params
- })
- }
- // 门店抵扣余额
- export const storeAccount = (params) => {
- return request({
- url: `xprhStoreAccount/findByStoreSn/${params.storeSn}`,
- method: 'get'
- })
- }
|