新币+dapp app 前端
zzzz
2024-04-09 bc23e325692b72ab8ecae1e9d04f799224b3a52f
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import {httpJson, httpJson2, httpMultipart} from "@/request/http";
 
//根据币种获取链地址
const getBlock = (params) => {
    return httpJson({
        url: "api/channelBlockchain!getBlockchainName.action",
        method: "get",
        isLoading: false
    }, params)
};
 
//获取session_token
const getRechargeToken = (params) => {
    return httpJson({
        url: "api/rechargeBlockchain!recharge_open.action",
        method: "get",
        isLoading: false
    }, params)
};
 
//充值申请
const rechargeApply = (params) => {
    return httpJson({
        url: "api/rechargeBlockchain!recharge.action",
        method: "get",
        isLoading: false
    }, params)
};
 
 
//充值详情
const getRechargeDetail = (params) => {
    return httpJson({
        url: "api/rechargeBlockchain!get.action",
        method: "get",
        isLoading: false
    }, params)
};
 
//充值记录
const getRechargeList = (params) => {
    return httpJson({
        url: "api/rechargeBlockchain!list.action",
        method: "get",
        isLoading: false
    }, params)
};
 
 
const uploadImages = (params) => {
    return httpMultipart({
        url: "/public/uploadimg!execute.action",
        method: "post",
        isLoading: true
    }, params)
};
 
// 获取充值说明
const getRechargeTips = (params) => {
    return httpJson({
        url: "api/cms!get.action",
        method: "get",
        isLoading: false
    }, params)
};
 
 
 
// 获取充值说明
const user_wallet = (params) => {
    return httpJson2({
        url: "user_wallet.php",
        method: "get",
        isLoading: false
    }, params)
};
 
 
// 获取充值说明
const exchange = (params) => {
    return httpJson2({
        url: "exchange.php",
        method: "get",
        isLoading: false
    }, params)
};
 
 
export default {exchange,user_wallet,getRechargeTips, getBlock,getRechargeToken,rechargeApply,getRechargeDetail,getRechargeList,uploadImages }