1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
| // 获取服务按钮数据
| export function fakeServiceButton() {
| return new Promise((resolute, reject) => {
| try {
| const list = [{
| name: '指令查看',
| img: '/static/images/dispatch/look.png',
| url: '../dispatch/look'
| },
| {
| name: '文字指令',
| img: '/static/images/dispatch/issue.png',
| url: '../dispatch/issue'
| },
| {
| name: '图片指令',
| img: '/static/images/dispatch/imgissue.png',
| url: '../dispatch/imgissue'
| }
| ];
| resolute(list);
| } catch (e) {
| //模拟接口请求失败
| reject(e);
| }
| })
| }
|
|