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
43
| import axios from "axios";
| export default {
| /**
| * 根据用户名查询绑定的ukey
| * @param UName 用户名称
| * @returns {AxiosPromise}
| */
| getUKeyByUName(UName) {
| return axios({
| method: "post",
| url: 'User_infAction!searchUNameToUKey',
| data: 'json='+JSON.stringify({
| UName:UName
| })
| });
| },
| /**
| * 根据uKey的id查询已绑定的用户名
| * @param UKeyId uKey的唯一ID
| * @returns {AxiosPromise}
| */
| getUNameByUKey(UKeyId) {
| return axios({
| method: "post",
| url: 'User_infAction!searchUKeyToUName',
| data: 'json='+JSON.stringify({
| UKey_ID:UKeyId
| })
| });
| },
| bindUKey(UName, UKeyId, UPubKeyX, UPubKeyY) {
| return axios({
| method: "post",
| url: 'User_infAction!bindUKey',
| data: 'json='+JSON.stringify({
| UName: UName,
| UKey_ID:UKeyId,
| UPubKeyX,
| UPubKeyY
| })
| });
| }
| }
|
|