123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- import request from '@/sheep/request';
- import { baseUrl } from '@/sheep/config';
- export default {
- // TODO 芋艿:测试
- test: () =>
- request({
- url: '/app-api/promotion/decorate/list',
- params: {
- page: 1
- },
- custom: {
- showError: false,
- showLoading: false,
- },
- }),
- // 系统初始化
- init: (templateId) =>
- request({
- url: 'init',
- params: {
- templateId,
- },
- custom: {
- showError: false,
- showLoading: false,
- },
- }),
- // 同步客户端页面到后端
- pageSync: (pages) =>
- request({
- url: 'pageSync',
- method: 'POST',
- data: {
- pages,
- },
- custom: {
- showError: false,
- showLoading: false,
- },
- }),
- // 发送短信
- sendSms: (data) =>
- request({
- url: 'sendSms',
- method: 'POST',
- data,
- custom: {
- showSuccess: true,
- loadingMsg: '发送中',
- },
- }),
- // 自定义页面
- page: (id) =>
- request({
- url: 'page/' + id,
- method: 'GET',
- }),
- //小程序直播
- mplive: {
- getRoomList: (ids) =>
- request({
- url: 'app/mplive/getRoomList',
- method: 'GET',
- params: {
- ids: ids.join(','),
- }
- }),
- getMpLink: () =>
- request({
- url: 'app/mplive/getMpLink',
- method: 'GET'
- }),
- },
- };
|