123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- import request from "@/utils/request.js";
- import wechat from "@/libs/wechat.js";
- export function getWechatConfig() {
- return request.get(
- "wechat/config", {
- url: wechat.signLink()
- }, {
- noAuth: true
- }
- );
- }
- export function wechatAuth(code, spread, login_type) {
- return request.get(
- "auth/wechat", {
- code,
- spread,
- login_type
- }, {
- noAuth: true
- }
- );
- }
- export function commonAuth(data) {
- return request.post(
- "auth", data, {
- noAuth: true
- }
- );
- }
- export function getLogo() {
- return request.get('wechat/get_logo', {}, {
- noAuth: true
- });
- }
- export function login(data) {
- return request.post("auth/mp", data, {
- noAuth: true
- });
- }
- export function getShare() {
- return request.get("share", {}, {
- noAuth: true
- });
- }
- export function follow() {
- return request.get("wechat/follow", {}, {
- noAuth: true
- });
- }
- export function imageBase64(image, code) {
- return request.post(
- "common/base64", {
- image: image,
- code: code
- }, {
- noAuth: true
- }
- );
- }
- export function getconfig(data) {
- return request.get("config",data,{noAuth: true});
- }
- export function history(data) {
- return request.post("common/visit",data);
- }
- export function getSubscribe(){
- return request.get("subscribe", {}, {
- noAuth: true
- });
- }
- export function getVersion() {
- return request.get("version",{},{noAuth: true});
- }
- export function getNavigation(data) {
- return request.get("navigation", data, {
- noAuth: true
- });
- }
|