123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- /**
- * 这是用户业务逻辑的服务
- */
- export default class UserService {
- constructor(AjaxService) {
- Object.assign(this, {
- AjaxService
- })
- this.name = 'UserService'
- }
- /* 初始化授权登录 */
- userInfoLogin(data = {}) {
- return this.AjaxService.post({
- url: '/buyer/authorization',
- data,
- isLoading: false,
- isStatus: false
- })
- }
- /* 初始化个人中心数据 */
- userInfoPersonal(data = {}) {
- return this.AjaxService.get({
- url: '/buyer/personal',
- data,
- isLoading: false,
- isStatus: false
- })
- }
- /*维沙邀请码绑定*/
- userInvitation(data = {}) {
- return this.AjaxService.post({
- url: '/buyer/invitation/code',
- data,
- isLoading: false,
- isStatus: false
- })
- }
- /* 供应商注册 */
- appSupplierRegister(data = {}) {
- return this.AjaxService.post({
- url: '/supplier/register',
- data,
- isLoading: true
- })
- }
- /* 初始化查询用户是否为正常用户 */
- appSelectLoginUser(data = {}) {
- return this.AjaxService.post({
- url: '',
- data,
- isLoading: true
- })
- }
- /**
- * 账号登录
- * @param mobileOrEmail 邮箱或手机
- * @param password 密码
- * @param source 来源 PC与小程序传:'www'crm就传'crm'
- */
- AorganizationLogin(data = {}) {
- return this.AjaxService.post({
- url: '/user/login',
- data,
- isLoading: true,
- isStatus: 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
- })
- }
- /* 机构资料*/
- OrganizationUpdateModifyInfo(data = {}) {
- return this.AjaxService.get({
- url: '/user/club/applicationData',
- data,
- isLoading: true
- })
- }
- /* 机构升级会员机构 */
- OrganizationRegister(data = {}) {
- return this.AjaxService.post({
- url: '/club/upgrade',
- data,
- isLoading: true
- })
- }
- /* 机构提交资料修改 */
- OrganizationUpdate(data = {}) {
- return this.AjaxService.post({
- url: '/operation/modifiedData',
- data,
- isLoading: true
- })
- }
- /* 供应商资料信息-数据回显 */
- SupplierShopInfo(data = {}) {
- return this.AjaxService.get({
- url: '/supplier/shopInfo',
- data,
- isLoading: true
- })
- }
- /* 供应商资料信息-提交修改 */
- SupplierModifiedData(data = {}) {
- return this.AjaxService.post({
- url: '/supplier/modifiedData',
- data,
- isLoading: true
- })
- }
- /* 供应商修改申请信息保存 */
- SupplierUpdateCompanyInfo(data = {}) {
- return this.AjaxService.post({
- url: '/supplier/updateCompanyInfo',
- data,
- isLoading: true
- })
- }
- }
|