[更新]
This commit is contained in:
@@ -11,7 +11,7 @@ const mobiles = (wechatUser_id) => req({url: "user/mobiles", data:{wechatUser_id
|
||||
const coupon = (status) => req({url: "coupons?status=" + status})
|
||||
|
||||
//卡券分组
|
||||
const couponArr = (activityId, status, page) => req({url: "coupons/list", data:{activityId : activityId, status : status, page : page}})
|
||||
const couponArr = (activityId, status, page) => req({url: "coupons/list", data:{activityId : activityId, status : status, page : page || ''}})
|
||||
|
||||
//卡券详情
|
||||
const couponinfo = (coupon_id, user_lng, user_lat) => req({url: "coupons/show", data:{coupon_id : coupon_id, user_lng : user_lng, user_lat : user_lat}})
|
||||
@@ -23,7 +23,7 @@ const qrcode = (coupon_id) => req({url: "coupons/qrcode", data:{coupon_id : coup
|
||||
const barcode = (coupon_id) => req({url: "coupons/" + coupon_id + '/barcode'})
|
||||
|
||||
//门店列表
|
||||
const stores = (coupon_id, province_id, city_id, district_id, title, user_lng, user_lat, page) => req({url: "coupons/new_stores", method: "POST", data:{coupon_id : coupon_id, province_id : province_id || '', city_id : city_id || '', district_id : district_id || '', title : title || '', user_lng : user_lng, user_lat : user_lat, page : page}})
|
||||
const stores = (coupon_id, province_id, city_id, district_id, title, user_lng, user_lat, page) => req({url: "coupons/new_stores", method: "POST", data:{coupon_id : coupon_id, province_id : province_id || '', city_id : city_id || '', district_id : district_id || '', title : title || '', user_lng : user_lng, user_lat : user_lat, page : page || ''}})
|
||||
|
||||
//门店详情
|
||||
const storesShow = (store_id, user_lng, user_lat) => req({url: "coupons/store/show", data:{store_id : store_id, user_lng : user_lng, user_lat : user_lat}})
|
||||
@@ -38,7 +38,7 @@ const jssdk = (coupon_id) => req({url: "coupons/jssdk?coupon_id=" + coupon_id})
|
||||
const cards = (code, pass) => req({url: "user/cards/activate", method: "POST", data:{code : code, pass : pass}})
|
||||
|
||||
// 积分账变记录
|
||||
const logs = (type, channel, page) => req({url: "account/logs", data:{type : type, channel: channel, page : page}})
|
||||
const logs = (type, channel, page) => req({url: "account/logs", data:{type : type, channel: channel, page : page || ''}})
|
||||
|
||||
// 冻结列表
|
||||
const ungrants = (type,) => req({url: "account/newungrants", data:{type : type}})
|
||||
@@ -62,7 +62,7 @@ const washcarCreate = (welfare_id, right_id, qty, address_id, is_deliver) => req
|
||||
const myshare = (parent_id) => req({url: "user/share",data:{parent_id : parent_id || ''}})
|
||||
|
||||
// 我的推荐
|
||||
const childs = (page) => req({url: "user/childs",data:{page : page}})
|
||||
const childs = (page) => req({url: "user/childs",data:{page : page || ''}})
|
||||
|
||||
// 校验转账的手机号码
|
||||
const ajaxTel = (mobile) => req({url: "ajax/user", data:{mobile : mobile}})
|
||||
@@ -86,11 +86,38 @@ const resetPassword = (code, password, password_confirmation, mobile, channel) =
|
||||
const withdraws = () => req({url: "withdraws/create"})
|
||||
|
||||
// 提现记录列表
|
||||
const withdrawsList = (page) => req({url: "user/withdraws", data:{page : page}})
|
||||
const withdrawsList = (status, page) => req({url: "user/withdraws", data:{status: status, page : page || ''}})
|
||||
|
||||
// 提现表单填写
|
||||
const withdrawsForm = (amount, channel) => req({url: "withdraws", method: "POST", data:{amount : amount, channel: channel}})
|
||||
|
||||
// 2021-07-28新增
|
||||
// 我的收益
|
||||
const myProfit = () => req({url: "data/index"})
|
||||
|
||||
// 我的收益-收益报表
|
||||
const myIncome = (month) => req({url: "data/income", data:{month: month}})
|
||||
|
||||
// 我的收益-收益报表
|
||||
const profitOrders = (type, page) => req({url: "data/orders", data:{type: type, page : page || ''}})
|
||||
|
||||
// 我的收益-我的团队
|
||||
const profitTeam = (identity_id, sort, page) => req({url: "data/teams", data:{identity_id: identity_id, sort: sort, page : page || ''}})
|
||||
|
||||
// 权益详细列表
|
||||
const profitLogs = (name, page) => req({url: "data/logs", data:{name: name, page : page || ''}})
|
||||
|
||||
// 产品分享
|
||||
const productList = (page) => req({url: "shares/goods", data:{page : page || ''}})
|
||||
const productInfo = (right) => req({url: "shares/goods/" + right})
|
||||
const productPoster = (right) => req({url: "shares/goods/" + right + "/poster"})
|
||||
|
||||
// 储值分享
|
||||
const storedList = () => req({url: "shares/recharges"})
|
||||
|
||||
// 产品分享二维码+储值分享二维码
|
||||
const publicCode = (channel, type, url) => req({url: "user/share/goods", data:{channel: channel, type : type, url: url}})
|
||||
|
||||
export default({
|
||||
index,
|
||||
mobiles,
|
||||
@@ -121,5 +148,15 @@ export default({
|
||||
resetPassword,
|
||||
withdraws,
|
||||
withdrawsList,
|
||||
withdrawsForm
|
||||
withdrawsForm,
|
||||
myProfit,
|
||||
myIncome,
|
||||
profitOrders,
|
||||
profitTeam,
|
||||
profitLogs,
|
||||
productList,
|
||||
productInfo,
|
||||
productPoster,
|
||||
storedList,
|
||||
publicCode
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user