diff --git a/power_leasing/src/api/machine.js b/power_leasing/src/api/machine.js index 0ca43f8..1222745 100644 --- a/power_leasing/src/api/machine.js +++ b/power_leasing/src/api/machine.js @@ -81,4 +81,26 @@ export function addAsicMachine(data) { }) } +///添加出售机器的币种获取ASIC +export function getSupportCoin() { + return request({ + url: `/lease/v2/product/machine/getSupportCoin`, + method: 'get', + }) +} + +///添加出售机器的对应币种的算法获取ASIC +/** + * 根据币种获取支持的算法列表 + * @param {string} coin - 币种名称,例如 'BTC', 'ETH' 等 + * @returns {Promise} 返回算法列表 + */ +export function getSupportAlgo(coin) { + return request({ + url: `/lease/v2/product/machine/getSupportAlgo`, + method: 'get', + params: { coin } // 使用 params,request 拦截器会自动将参数拼接到 URL 查询字符串中 + }) +} + diff --git a/power_leasing/src/api/order.js b/power_leasing/src/api/order.js index 8c64a99..771dae4 100644 --- a/power_leasing/src/api/order.js +++ b/power_leasing/src/api/order.js @@ -98,3 +98,15 @@ export function addOrdersV2(data) { + +//已购矿机配置 +export function getPurchasedItems(data) { + return request({ + url: `/lease/v2/order/info/getPurchasedItems`, + method: 'post', + data + }) +} + + + diff --git a/power_leasing/src/components/header.vue b/power_leasing/src/components/header.vue index a37ec67..d38ee10 100644 --- a/power_leasing/src/components/header.vue +++ b/power_leasing/src/components/header.vue @@ -34,7 +34,7 @@ diff --git a/power_leasing/src/views/account/purchasedMachineConfig.vue b/power_leasing/src/views/account/purchasedMachineConfig.vue new file mode 100644 index 0000000..5ced14c --- /dev/null +++ b/power_leasing/src/views/account/purchasedMachineConfig.vue @@ -0,0 +1,421 @@ + + + + + + diff --git a/power_leasing/src/views/cart/index.vue b/power_leasing/src/views/cart/index.vue index 9550888..c59d5d0 100644 --- a/power_leasing/src/views/cart/index.vue +++ b/power_leasing/src/views/cart/index.vue @@ -51,7 +51,7 @@ - + - +

尊敬的客户,感谢您选择我们的服务。在您下单前,请务必仔细阅读并完全理解以下须知条款。一旦您点击" 同意并下单"或完成支付流程,即视为您已充分阅读、理解并同意接受本须知的全部内容约束。

    @@ -445,7 +446,7 @@ :close-on-click-modal="false" :close-on-press-escape="false">
    -
    +
    选择币种/算法
    - - - - - - + +