commonService.js
793 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
/**
* commonService.js
*@author dennis
*@createtime 2018/11/16
*@description 上传formid
*/
import BaseService from "../../../libs/services/baseService";
import { MINI_APP_TYPE} from '../../../libs/config';
import config from '../../../config'
export default class commonService extends BaseService {
constructor(props) {
super(props)
this.url = config.domains.yohoApi;
}
addWechatFormId(data, complete) {
data.method = 'wechat.formId.add'
data.miniapp_type = MINI_APP_TYPE
let openId = wx.getStorageSync( "openid")
data.openId = openId || ''
this.GET(
{
...data,
},
{
complete
}
).then(result => {
console.log(result)
})
.catch(error => {
console.log(error)
})
}
}