# 外汇牌价汇率

# 阿里云地址

https://market.aliyun.com/products/57000002/cmapi010841.html

# 中国银行的实时汇率表

# 数据准备

export default {
    data() {
        return {
            waihui_list:{
                "showapi_res_code": 0,
                "showapi_res_error": "",
                "showapi_res_body": {   //支持汇率
                    "人民币":"CNY",
                    "印尼卢比": "IDR",
                    "新西兰元": "NZD",
                    // ...
                }
            },
            zhonghang_list:{
                "showapi_res_code": 0,
                "showapi_res_error": "",
                "showapi_res_body": {
                    "ret_code": 0,
                    "list": [
                        {
                            "hui_in": "14.1",       //现汇买入价
                            "time": "11:58:01",     //发布时间
                            "chao_out": "14.65",    //现钞卖出价
                            "chao_in": "13.67",     //现钞买入价
                            "hui_out": "14.22",    //现汇卖出价
                            "name": "菲律宾比索",   //货币名称
                            "zhesuan": "14.14",    //中行折算价
                            "code": "PHP",        //货币简码
                            "day": "2016-07-01"    //发布天
                        },
                        {
                            "hui_in": "78.29",
                            "time": "11:58:01",
                            "chao_in": "75.87",
                            "hui_out": "78.91",
                            "name": "瑞典克朗",
                            "zhesuan": "78.66",
                            "code": "SEK",
                            "day": "2016-07-01"
                        },
                        // ...
                    ],
                    "listSize": 26
                }
            }
        }
    }
}

# html代码

<aps-ali-010841 :data="zhonghang_list" />

# 最终呈现

提示

可以按价格排序

# 十大银行实时汇率表

export default {
    data(){
        return{
            bank10:{
                "showapi_res_code": 0,
                "showapi_res_error": "",
                "showapi_res_body": {
                    "time": "13:17:12",
                    "ret_code": 0,//0为成功,其他失败不扣费
                    "name": "ICBC",
                    "codeList": [
                        {
                            "hui_in": "6.1374", //现汇买入价
                            "chao_out": "6.1811",//现钞卖出价
                            "chao_in": "5.9798",//现钞买入价
                            "hui_out": "6.1811",//现汇卖出价
                            "name": "日元",
                            "mid_price": "--", //中间价
                            "code": "JPY"
                        },
                        {
                            "hui_in": "491.8200",
                            "chao_out": "495.3200",
                            "chao_in": "479.1900",
                            "hui_out": "495.3200",
                            "name": "新加坡元",
                            "mid_price": "--",
                            "code": "SGD"
                        },
                        {
                            "hui_in": "88.6200",
                            "chao_out": "88.9800",
                            "chao_in": "87.9800",
                            "hui_out": "88.9800",
                            "name": "港币",
                            "mid_price": "--",
                            "code": "HKD"
                        },
                        // ...
                    ],
                    "day": "2017-03-31",
                    "listSize": 23
                }
            }
        }
    }
}

# html代码

<aps-ali-010841-bank10 :data="bank10" />

# 最终呈现

提示

可以按价格排序