12345678910111213141516171819202122232425262728293031323334353637383940 |
- import request from '@/utils/request'
- import store from '@/store';
- // #ifdef H5
- //微信配置
- export function wechatConfig(data) {
- return request({
- url: '/api/wechat/config',
- method: 'get',
- data:{
- url:window.location.href
- }
- });
- }
- // 微信分享信息
- export function share(data) {
- return request({
- url: '/api/share',
- method: 'get',
- data
- });
- }
- // 微信h5code地址
- export function wechatAuth(data) {
- return request({
- url: '/api/wechat/openid',
- method: 'get',
- data
- });
- }
- // #endif
- // #ifdef MP-WEIXIN
- // 微信小程序code地址
- export function wechatMpAuth(data) {
- return request({
- url: '/api/wechat/mp_auth',
- method: 'post',
- data
- });
- }
- // #endif
|