123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- /**
- * 这是用户业务逻辑的服务
- */
- export default class UserService {
- constructor(AjaxService) {
- Object.assign(this, { AjaxService })
- this.name = 'UserService'
- }
- /* 初始化授权登录 */
- UserLoginAuthApplets (data = {}) {
- return this.AjaxService.post({
- // url: '/club/authorization',
- url: '/user/login/auth/applets',
- data,
- isLoading: false,
- isStatus: true,
- isHost:true
- })
- }
- /* 普通机构注册 */
- UserRegisterClub (data = {}) {
- return this.AjaxService.post({
- url:'/user/register/club',
- data,
- isLoading: true,
- isHost:true
- })
- }
- /* 供应商注册 */
- SupplierAppletsRegistered (data = {}) {
- return this.AjaxService.post({
- url:'/user/register/shop',
- data,
- isLoading: true,
- isHost:true
- })
- }
- /**
- * 账号登录
- * @param mobileOrEmail 邮箱或手机
- * @param password 密码
- * @param source 来源 PC与小程序传:'www'crm就传'crm'
- */
- AorganizationLogin (data = {}) {
- return this.AjaxService.post({
- url:'/user/login/password',
- data,
- isLoading: true ,
- isStatus: true,
- isHost:true
- })
- }
- /* 查询机构资料*/
- OrganizationUpdateModifyInfo (data = {}) {
- return this.AjaxService.get({
- url:'/user/club/info',
- data,
- isLoading: true,
- isHost:true
- })
- }
- /* 机构升级会员机构 */
- OrganizationRegister (data = {}) {
- return this.AjaxService.post({
- url:'/user/register/club/upgrade',
- data,
- isLoading: true,
- isHost:true
- })
- }
- /* 机构提交资料修改 */
- OrganizationUpdate (data = {}) {
- return this.AjaxService.post({
- url:'/user/club/info/update',
- data,
- isLoading: true,
- isHost:true
- })
- }
- /* 供应商资料信息-数据回显 */
- SupplierShopInfo (data = {}) {
- return this.AjaxService.get({
- url:'/user/shop/info',
- data,
- isLoading: true,
- isHost:true
- })
- }
- /* 供应商修改申请信息保存 */
- SupplierUpdateCompanyInfo (data = {}) {
- return this.AjaxService.post({
- url:'/user/register/shop/apply',
- data,
- isLoading: true,
- isHost:true
- })
- }
- /* 供应商资料信息-提交修改 */
- SupplierModifiedData (data = {}) {
- return this.AjaxService.post({
- url:'/user/shop/info/update',
- data,
- isLoading: true,
- isHost:true
- })
- }
- /**
- *运营人员绑定微信
- */
- BindingWechat (data = {}) {
- return this.AjaxService.post({
- url:'/user/login/auth/bind',
- data,
- isLoading: true,
- isHost:true
- })
- }
- /**
- * @机构-地址列表
- * @param:userId 用户ID(必传),
- * @param:pageNum 页码
- * @param:pageSize 每页条数
- */
- QueryAddressList (data = {}) {
- return this.AjaxService.get({ url:'/personalCenter/findAddress', data, isLoading: true })
- }
- /**
- * @机构-添加&&修改地址
- * @param:userId 用户ID(必传),
- * @param:地址信息,
- */
- AddNewAddress (data = {}) {
- return this.AjaxService.post({ url:'/personalCenter/saveAddress', data, isLoading: true })
- }
- /**
- * @机构-删除地址
- * @param:userId 用户ID(必传),
- * @param:地址信息,
- */
- DeleteNewAddress (data = {}) {
- return this.AjaxService.get({ url:'/personalCenter/deleteAddress', data, isLoading: true })
- }
- /**
- * @机构-个人中心
- * @param:userId 用户ID(必传),
- */
- PersonalInfo (data = {}) {
- return this.AjaxService.get({ url:'/personalCenter/myCentre', data, isLoading: false })
- }
- /* 运营人员管理-列表 */
- QueryOperatorList (data = {}) {
- return this.AjaxService.get({ url:'/operation/list', data, isLoading: true })
- }
- /* 运营人员管理-添加 */
- PostAddOperator (data = {}) {
- return this.AjaxService.post({ url:'/operation/add', data, isLoading: true })
- }
- /* 运营人员管理-删除 */
- PostDeleteOperator (data = {}) {
- return this.AjaxService.post({ url:'/operation/delete', data, isLoading: true })
- }
- /* 运营人员管理-更新邀请码 */
- PostUpdateOperatorCode (data = {}) {
- return this.AjaxService.post({ url:'/operation/updateInvitationCode', data, isLoading: true })
- }
-
- }
|