| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- import request from '@/utils/request'
- import wechath5 from '@/utils/wechath5'
- import {
- client
- } from '@/utils/tools'
- //获取app版本号
- 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);
- }
- // app登录
- 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)
- }
- // 向微信请求code的链接
- export function getCodeUrl(params) {
- return request.get('account/codeurl', {
- params: {
- url: encodeURIComponent(location.href)
- }
- });
- }
- //微信sdk配置
- 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
- })
- }
- // Html5 注册账号
- 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
- })
- }
|