Helper.js
772 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* Created by jone on 2017/4/21.
*/
function getUrl(id) {
let url = 'https://m.yohobuy.com/passport/';
switch (id) {
case 1:
url = url+'yohobuy';
break;
case 2:
url = url+'newpower';
break;
case 3:
url = url+'privacy';
break;
case 4:
break;
case 5:
break;
}
return url;
}
function getTitle(id) {
let title = '';
switch (id) {
case 1:
title='关于YOHO!BUY有货';
break;
case 2:
title='关于新力传媒';
break;
case 3:
title='隐私条款';
}
return title;
}
module.exports = {
getUrl,
getTitle,
};