AppService.js 13 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606
import {post, upload} from "./rpc"
export const loginCodeCreate = (data) => {
	data.method = "api.security.loginCode.create"
	return post(data)
}

/** 获取图形验证码
 */
export const loginCodeCheck=(data)=>{
	data.method="api.security.loginCode.check"
	return post (data)
}
/** 验证图形验证码
 */
export const mobileVerificationCodeCreate=(data)=>{
	data.method="api.ebusiness.mobileVerificationCode.create"
	return post (data)
}
/** 创建手机验证码
 */export const valificationCheck=(data)=>{
	data.method="api.security.valification.check"
	return post (data)
}
/** 验证验证码
 */
export const getNewId=(data)=>{
	data.method="api.foundation.newId.get"
	return post (data)
}
/** 验证验证码
 */
export const getNewIds=(data)=>{
	data.method="get.new.ids"
	return post (data)
}
/** 获取新id
 */
export const register=(data)=>{
	data.method="api.ebusiness.memberNew.register"
	return post (data)
}
/** 注册
 */
export const _login=(data)=>{
	data.method="api.system.member.login"
	return post (data)
}
/** 登录
 */
export const _allCategoryShow=(data)=>{
	data.method="api.ebusiness.allCategoryShow.get"
	return post (data)
}
/** 获取所有显示的电商类别
 */
export const _categorySearhCondition=(data)=>{
	data.method="api.ebusiness.categorySearhCondition.get"
	return post (data)
}
/** 根据电商类目获取筛选条件
 */
export const _loginPasswordByVerifyCode=(data)=>{
	data.method="api.security.loginPassword.updateByVerifyCode"
	return post (data)
}
/** 根据验证码修改密码
 */
export const _findCommodityExtend=(data)=>{
	data.method="api.ebusiness.findCommodityExtend.advanced"
	return post (data)
}
/** 获取商品
 */
export const _settingNonPassport=(data)=>{
	data.method="api.ebusiness.settingNonPassport.get"
	return post (data)
}
/** 获取passport
 */
export const _getUserInfo=(data)=>{
	data.method="api.ebusiness.memberDetailIndex.get"
	return post (data)
}
/** 获取用户信息
 */
export const _signInNew=(data)=>{
	data.method="api.ebusiness.signInNew.member"
	return post (data)
}
/** 签到
 */
export const _getCarList=(data)=>{
	data.method="api.ebusiness.cardList.get"
	return post (data)
}
/** 获取购物车列表
 */
export const _addCar=(data)=>{
	data.method="api.ebusiness.batchCart.add"
	return post (data)
}
/** 加入购物车
 */
export const _upload=(data)=>{
	// data.method="api.foundation.file.upload"
	return upload (data)
}
/** 上传图片
 */
export const _updateInfo=(data)=>{
	data.method="api.master.membership.member.update"
	return post (data)
}
/** 更新个人信息
 */
export const _locationList=(data)=>{
	data.method="api.master.membership.memberLocation.find"
	return post (data)
}
/** 获取收货地址
 */
export const _locationCreate=(data)=>{
	data.method="api.master.membership.memberLocation.create"
	return post (data)
}
/** 创建收货地址
 */
export const _locationSet=(data)=>{
	data.method="api.master.membership.defaultMemberLocation.set"
	return post (data)
}
/** 设置默认地址
 */
export const _locationUpdate=(data)=>{
	data.method="api.master.membership.memberLocation.update"
	return post (data)
}
/** 更新地址
 */
export const _locationDel=(data)=>{
	data.method="api.master.membership.memberLocation.delete"
	return post (data)
}
/** 更新地址
 */
export const _addPk=(data)=>{
	data.method="api.ebusiness.commodityDefaultItemNew.get"
	return post (data)
}
/** 加入对比
 */
export const _pk=(data)=>{
	data.method="api.ebusiness.itemNew.pk"
	return post (data)
}
/** 对比结果
 */
export const _carUpdate=(data)=>{
	data.method="api.ebusiness.cartNew.update"
	return post (data)
}
/** 更新购物车
 */
export const _carDelete=(data)=>{
	data.method="api.ebusiness.batchCart.delete"
	return post (data)
}
/** 删除购物车
 */
export const _invoice=(data)=>{
	data.method="api.ebusiness.addInvoice.find"
	return post (data)
}
/** 查询增票信息
 */
export const _invoiceAdd=(data)=>{
	data.method="api.ebusiness.addInvoice.create"
	return post (data)
}
/** 创建增票信息
 */
export const _invoiceUpdate=(data)=>{
	data.method="api.ebusiness.addInvoice.update"
	return post (data)
}
/** 更新增票信息
 */
export const _integralList=(data)=>{
	data.method="api.ebusiness.orderNew.find"
	return post (data)
}
/** 查询积分兑换记录
 */
export const _couponList=(data)=>{
	data.method="api.ebusiness.couponListNew.get"
	return post (data)
}
/** 优惠券获取
 */
export const _getProductInfo=(data)=>{
	data.method="api.ebusiness.commodityNew.get"
	return post (data)
}
/** 获取商品详情
 */
export const _addMark=(data)=>{
	data.method="api.ebusiness.collectionNew.create"
	return post (data)
}
/** 添加收藏
 */
export const _markList=(data)=>{
	data.method="api.ebusiness.collection.find"
	return post (data)
}
/** 收藏列表
 */
export const _orderList=(data)=>{
	data.method="api.ebusiness.orderNew.find"
	return post (data)
}
/** 订单列表
 */
export const _orderDetail=(data)=>{
	data.method="api.ebusiness.orderDetailNew.get"
	return post (data)
}
/** 订单详情
 */
export const _getInvoiceregion=(data)=>{
	data.method="api.foundation.location.get"
	return post (data)
}
/** 获取增票地址
 */
export const _createInvoiceregion=(data)=>{
	data.method="api.foundation.location.create"
	return post (data)
}
/** 创建增票地址
 */
export const _updateInvoiceregion=(data)=>{
	data.method="api.foundation.location.update"
	return post (data)
}
/** 更新增票地址
 */
export const _orderCount=(data)=>{
	data.method="api.ebusiness.orderNew.find"
	return post (data)
}
/** 查询订单数量
 */
export const _logout=(data)=>{
	data.method="api.security.passport.revoke"
	return post (data)
}
/** 注销
 */
export const _payPasswordChange=(data)=>{
	data.method="api.security.userTransactionPassword.update"
	return post (data)
}
/** 更新支付密码
 */
export const _loginPasswordChange=(data)=>{
	data.method="api.security.loginPassword.modify"
	return post (data)
}
/** 修改登录密码密码
 */
export const _phoneChange=(data)=>{
	data.method="api.ebusiness.memberMobile.update"
	return post (data)
}
/** 修改手机号
 */
export const _expenses=(data)=>{
	data.method="api.ebusiness.memberTransactionNew.find"
	return post (data)
}
/** 消费记录
 */
export const _evaluationList=(data)=>{
	data.method="api.ebusiness.evaluationNew.find"
	return post (data)
}
/** 获取商品评价
 */
export const _getDefautAddress=(data)=>{
	data.method="api.ebusiness.memberDefalutLocation.get"
	return post (data)
}
/** 获取默认地址
 */
export const _commoditySkuInfo=(data)=>{
	data.method="api.ebusiness.commoditySkuInfo.find"
	return post (data)
}
/** 获取商品促销信息
 */
export const _getStar=(data)=>{
	data.method="api.ebusiness.commodityEvaluationNumber.find"
	return post (data)
}
/** 获取商品评分
 */
export const _delectMark=(data)=>{
	data.method="api.ebusiness.collection.delete"
	return post (data)
}
/** 删除收藏
 */
export const _cancelOrder=(data)=>{
	data.method="api.ebusiness.order.cancel"
	return post (data)
}
/** 取消订单
 */
export const _sign=(data)=>{
	data.method="api.ebusiness.order.sign"
	return post (data)
}
/** 确认订单
 */
export const _partList=(data)=>{
	data.method="api.ebusiness.commodityPartsByCommodity.find"
	return post (data)
}
/** 获取商品配件列表
 */
export const _express=(data)=>{
	data.method="api.ebusiness.orderLogisticsNew.get"
	return post (data)
}
/** 获取物流信息
 */
export const _refundCreate=(data)=>{
	data.method="api.ebusiness.refund.commit"
	return post (data)
}
/** 创建退单
 */
export const _confirmOrder=(data)=>{
	data.method="api.ebusiness.orderNew.confirm"
	return post (data)
}
/** 创建订单
 */
export const _computed=(data)=>{
	data.method="api.ebusiness.freightNewPay.count"
	return post (data)
}
/** 计算运费
 */
export const _memberDefaultAddress=(data)=>{
	data.method="api.master.membership.memberLocation.find"
	return post (data)
}
/** 获取会员默认地址
 */
export const _orderCommit=(data)=>{
	data.method="api.ebusiness.orderNew.commit"
	return post (data)
}
/** 提交订单
 */
export const _updateAvatar=(data)=>{
	data.method="api.master.user.avatar.update"
	return post (data)
}
/** 更新头像
 */
export const _createCommment=(data)=>{
	data.method="api.ebusiness.createComment.batch"
	return post (data)
}
export const _getPointItemList=(data)=>{
	data.method="api.ebusiness.pointCommodity.find"
	return post (data)
}
/** 获取积分商城列表
 */
export const _getPointDetail=(data)=>{
	data.method="api.ebusiness.pointCommodityDetail.get"
	return post (data)
}
/** 获取积分商品详情
 */
export const _getMemberPoint=(data)=>{
	data.method="api.membership.memberPoint.get"
	return post (data)
}
/** 查询我的积分
 */
export const _confirmPoint=(data)=>{
	data.method="api.ebusiness.pointOrderNew.confirm"
	return post (data)
}
/** 确认兑换
 */
export const _refundList=(data)=>{
	data.method="api.ebusiness.refund.find"
	return post (data)
}
/** 退单列表
 */
export const _refundDetail=(data)=>{
	data.method="api.ebusiness.refundDetailNew.get"
	return post (data)
}
/** 退单详情
 */
export const _refundCancel=(data)=>{
	data.method="api.ebusiness.refund.cancel"
	return post (data)
}
/** 取消退单
 */
export const _cartCount=(data)=>{
	data.method="api.ebusiness.userCart.count"
	return post (data)
}
/** 购物车数量
 */
export const _checkMarked=(data)=>{
	data.method="api.ebusiness.exitCollection.is"
	return post (data)
}
/** 检查收藏状态
 */
export const _choosePayMethod=(data)=>{
	data.method="api.ebusiness.orderMergePayNew.create"
	return post (data)
}
/** 选择付款方式
 */
export const _accountPaid=(data)=>{
	data.method="api.ebusiness.mergeAccountPaid.order"
	return post (data)
}
/** 余额支付
 */
export const _checkPayPassword=(data)=>{
	data.method="api.security.transaction_password.has_set"
	return post (data)
}
/** 余额支付
 */
export const _balance=(data)=>{
	data.method="api.membership.memberBalance.get"
	return post (data)
}
/** 用户余额
 */
export const _addToCarByCenter=(data)=>{
	data.method="api.ebusiness.cartBySingleCommodity.add"
	return post (data)
}
/** 用户余额
 */
export const _getCoupon=(data)=>{
	data.method="api.ebusiness.coupon.receive"
	return post (data)
}
/** 领取优惠券
 */
export const _getRefoudPre=(data)=>{
	data.method="api.ebusiness.refundOrder.pre"
	return post (data)
}
/** 获取预退款信息
 */
export const _uploadExpressInfo=(data)=>{
	data.method="api.ebusiness.refundMemberReturn.upload"
	return post (data)
}
/** 退货上传物流信息
 */
export const _pointOrderDetail=(data)=>{
	data.method="api.ebusiness.pointOrder.get"
	return post (data)
}
/** 获取积分兑换订单详情
 */
export const _getProtocol=(data)=>{
	data.method="api.ebusiness.registrationAgreementNew.find"
	return post (data)
}
/** 查找注册协议
 */
export const _getCard=(data)=>{
	data.method="api.epos.prepaidcard.entity.find"
	return post (data)
}
/** 获取卡
 */
export const _getQuan=(data)=>{
	data.method="api.membership.coupon.definition.find.all"
	return post (data)
}
/** 获取券列表
 */
export const _reQuan=(data)=>{
	data.method="api.membership.coupon.entity.create.app"
	return post (data)
}

 /**APP-根据Id获取礼品卡定义
 */
export const _getCardById=(data)=>{
	data.method="membership.app.card.definition"
	return post (data)
}


 /**APP-高级查询礼品卡定义
 */
export const _findCard=(data)=>{
	data.method="membership.app.card.definition.find"
	return post (data)
}

 /**APP-根据Id获取礼品卡实体卡
 */
export const _getCardItemById=(data)=>{
	data.method="membership.app.card.entity.get"
	return post (data)
}

 /**APP-根据Id获取礼品卡实体卡
 */
export const _findCardItemById=(data)=>{
	data.method="membership.app.card.entity.find"
	return post (data)
}

 /**APP-绑定礼品卡实体卡
 */
export const _bindCard=(data)=>{
	data.method="membership.app.card.entity.bind"
	return post (data)
}
 /**APP-高级查询礼品卡交易表
 */
export const _findCardLogs=(data)=>{
	data.method="membership.app.card.transaction.find"
	return post (data)
}
/** 获取二维码
 */
export const _getQrCode=(data)=>{
	data.method="ebiz.system.qrcode.get "
	return post (data)
}

/** 查询供应商
 */
export const _findSupplierList=(data)=>{
	data.method="api.master.supplier.list.find"
	return post (data)
}

/** 查询承租人信息
 */
export const _findLogoInfo=(data)=>{
	data.method="api.master.supplier.logoFileUrl.find"
	return post (data)
}
/** 获取优惠券
 */
export const _findCouponEntity=(data)=>{
	data.method="api.promotion.couponEntity.find"
	return post (data)
}
/** 拼团列表页
 */
export const _findGroupBuyList=(data)=>{
	data.method="api.ebusiness.GroupBuyget"
	return post (data)
}

/** 拼团商品详情
 */
export const _getGroupCommodityDetail=(data)=>{
	data.method="api.ebusiness.commoditypintuan.get"
	return post (data)
}

/** 拼团团员头像
 */
export const _findGroupAvatarList=(data)=>{
	data.method="api.group.avatar.list.find"
	return post (data)
}

/** 获取拼团信息
 */
export const _findGroupShareInfo=(data)=>{
	data.method="api.group.share"
	return post (data)
}