123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- import request from '@/utils/request'
- import wechath5 from '@/utils/wechath5'
- import {
- client
- } from '@/utils/tools'
- export function version(data) {
- return request.post('index/version');
- }
- export function authLogin(data) {
- return request.post('account/authLogin', data);
- }
- export function silentLogin(data) {
- return request.post('account/silentLogin', data);
- }
- export function opLogin(data) {
- return request.post('account/uinAppLogin', {
- ...data,
- client
- });
- }
- export function prepay(data) {
- return request.post('pay/unifiedpay', {
- ...data,
- });
- }
- export function getMnpNotice(data) {
- return request.get("subscribe/lists", {
- params: data
- });
- }
- export function accountLogin(data) {
- return request.post("account/login", {
- ...data,
- client
- })
- }
- export function wechatLogin(data) {
- return request.post('account/oalogin', data)
- }
- export function getCodeUrl(params) {
- return request.get('account/codeurl', {
- params: {
- url: encodeURIComponent(location.href)
- }
- });
- }
- export function getJsconfig() {
- return request.get('wechat/jsconfig', {
- params: {
- url: encodeURIComponent(wechath5.signLink())
- }
- });
- }
- export function forgetPwd(data) {
- return request.post('login_password/forget', {
- ...data,
- client
- })
- }
- export function sendSms(data) {
- return request.post('sms/send', {
- ...data,
- client
- })
- }
- export function register(data) {
- return request.post('account/register', {
- ...data,
- client
- })
- }
- export function getServerProto() {
- return request.get("policy/service")
- }
- export function getPrivatePolicy() {
- return request.get("policy/privacy")
- }
- export function getAfterSaleGuar() {
- return request.get("policy/afterSale")
- }
- export function getService() {
- return request.get("setting/getPlatformCustomerService")
- }
- export function getChatConfig(params) {
- return request.get("index/chatConfig", {
- params
- })
- }
- export function getBubbleLists() {
- return request.get("footprint/lists")
- }
- export function smsCodeLogin(data) {
- return request.post('account/smsLogin', {
- ...data,
- client
- })
- }
- export function getConfig() {
- return request.get("index/config")
- }
- export function getRegisterCoupon() {
- return request.get('coupon/registerSendCoupon')
- }
- export function getPayway(params) {
- return request.get('order/getPayWay', {
- params
- })
- }
- export function apiMnpQrCode(params) {
- return request.get('share/getMnQrcode', {
- params
- })
- }
|