1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- import request from '@/utils/request'
- // #ifdef H5
- // 微信分享信息
- export function share(data) {
- return request({
- url: '/api/share',
- method: 'get',
- data
- });
- }
- //微信配置
- export function wechatConfig(data) {
- return request({
- url: '/api/wechat/config',
- method: 'get',
- data
- });
- }
- // 微信code地址
- export function wechatAuth(data) {
- return request({
- url: '/api/wechat/auth',
- method: 'get',
- data
- });
- }
- // #endif
- // #ifdef MP-WEIXIN
- // 微信code地址
- export function wechatMpAuth(data) {
- return request({
- // url: '/api/wechat/mp_auth',
- url: '/api/mini/auth',
- // method: 'post',
- method: 'post',
- data
- });
- }
- // #endif
- // 获取微信信息
- export function getInfo(data) {
- return request({
- url: '/api/index/company',
- method: 'get',
- data
- });
- }
- //
- export function getWxconfig(data) {
- return request({
- url: '/api/index/wxconfig',
- method: 'get',
- data
- });
- }
|