| | |
| | | <input |
| | | :placeholder=" |
| | | selectIndex == 1 |
| | | ? $t('张数') |
| | | ? $t('手数') |
| | | : $t('最少') + initFutrue && initFutrue.para |
| | | ? $t('最小金额') + initFutrue.para[paraIndex].buy_min |
| | | : '' |
| | |
| | | </div> |
| | | <template v-if="selectIndex == 1"> |
| | | <div class="mt-40 mb-30 w-full flex justify-between items-center"> |
| | | <span class="font-22 font-400 text-grey">{{ |
| | | $t("可开张数") |
| | | }}</span |
| | | >{{ form.lever_rate }} |
| | | <span class="font-22 font-400 text-grey"> |
| | | {{ $t("可开") }}{{ $t("手数") }} |
| | | <!-- {{initFutrue.amount / (initData.amount + 0.0375) * form.lever_rate }} // --> |
| | | <!-- {{ initFutrue.amount }} // 余额 --> |
| | | </span> |
| | | {{ form.lever_rate }} |
| | | <span |
| | | class="font-22 font-400 textColor" |
| | | v-if="form.lever_rate == 25" |
| | | > |
| | | {{ |
| | | Math.floor( |
| | | (initFutrue.amount - initFutrue.amount * 0.0375) / |
| | | initData.amount |
| | | (initFutrue.amount / (initData.amount + 0.0375)) * |
| | | form.lever_rate |
| | | ) |
| | | }} |
| | | {{ $t("张") }} |
| | | {{ $t("手数") }} |
| | | </span> |
| | | <span |
| | | class="font-22 font-400 textColor" |
| | |
| | | > |
| | | {{ |
| | | Math.floor( |
| | | (initFutrue.amount - initFutrue.amount * 0.075) / |
| | | initData.amount |
| | | (initFutrue.amount / (initData.amount + 0.075)) * |
| | | form.lever_rate |
| | | ) |
| | | }} |
| | | {{ $t("张") }} |
| | | {{ $t("手数") }} |
| | | </span> |
| | | <span |
| | | class="font-22 font-400 textColor" |
| | |
| | | > |
| | | {{ |
| | | Math.floor( |
| | | (initFutrue.amount - initFutrue.amount * 0.15) / |
| | | initData.amount |
| | | (initFutrue.amount / (initData.amount + 0.15)) * |
| | | form.lever_rate |
| | | ) |
| | | }} |
| | | {{ $t("张") }} |
| | | {{ $t("手数") }} |
| | | </span> |
| | | <span |
| | | class="font-22 font-400 textColor" |
| | |
| | | > |
| | | {{ |
| | | Math.floor( |
| | | (initFutrue.amount - initFutrue.amount * 0.3) / |
| | | initData.amount |
| | | (initFutrue.amount / (initData.amount + 0.3)) * |
| | | form.lever_rate |
| | | ) |
| | | }} |
| | | {{ $t("张") }} |
| | | {{ $t("手数") }} |
| | | </span> |
| | | </div> |
| | | <!-- <vue-slider v-bind="options" v-model="form.amount"></vue-slider> --> |
| | |
| | | <div class="flex justify-between mt-30"> |
| | | <div class="text-grey">{{ $t("合约金额") }}</div> |
| | | <div class="textColor"> |
| | | {{ |
| | | ( |
| | | initData.amount * |
| | | (form.amount / 1) * |
| | | form.lever_rate |
| | | ).toFixed(4) |
| | | }} |
| | | {{ (form.amount * initData.amount).toFixed(4) }} |
| | | USDT |
| | | </div> |
| | | </div> |
| | | <div class="flex justify-between mt-30"> |
| | | <div class="text-grey">{{ $t("保证金") }}</div> |
| | | <div class="textColor"> |
| | | {{ ((initData.amount * (form.amount / 1)) | nan).toFixed(4) }} |
| | | {{ |
| | | ((form.amount * initData.amount) / form.lever_rate).toFixed(4) |
| | | }} |
| | | USDT |
| | | </div> |
| | | </div> |
| | |
| | | USDT |
| | | </div> |
| | | <div class="textColor" v-if="form.lever_rate == 200"> |
| | | {{ (initData.amount * (form.amount / 1) * 0.3).toFixed(4) }} |
| | | {{ ((form.amount * 0.3) / form.lever_rate).toFixed(4) }} |
| | | USDT |
| | | </div> |
| | | </div> |
| | |
| | | stop_price_profit: "", |
| | | stop_price_loss: "", |
| | | price: "", |
| | | amount: "", // 数量 |
| | | amount: 0, // 数量 |
| | | para_id: "", // 交割周琦id |
| | | }, |
| | | focus: false, |
| | |
| | | methods: { |
| | | //获取张数 |
| | | getAmount(val) { |
| | | this.form.amount = val; |
| | | this.form.amount = val || 0; |
| | | // if(this.form.lever_rate==25){ |
| | | // this.form.amount = Math.floor((this.initFutrue.amount-(this.initFutrue.amount * 0.0375))/this.initData.amount) |
| | | // }else if(this.form.lever_rate==50){ |
| | |
| | | // vol = this.initOpen.volume / 1; |
| | | if (this.form.lever_rate == 25) { |
| | | vol = Math.floor( |
| | | (this.initFutrue.amount - this.initFutrue.amount * 0.0375) / |
| | | this.initData.amount |
| | | // (this.initFutrue.amount - this.initFutrue.amount * 0.0375) / |
| | | // this.initData.amount |
| | | (this.initFutrue.amount / (this.initData.amount + 0.0375)) * |
| | | this.form.lever_rate |
| | | ); |
| | | } else if (this.form.lever_rate == 50) { |
| | | vol = Math.floor( |
| | | (this.initFutrue.amount - this.initFutrue.amount * 0.0375) / |
| | | this.initData.amount |
| | | // (this.initFutrue.amount - this.initFutrue.amount * 0.0375) / |
| | | // this.initData.amount |
| | | (this.initFutrue.amount / (this.initData.amount + 0.075)) * |
| | | this.form.lever_rate |
| | | ); |
| | | } else if (this.form.lever_rate == 100) { |
| | | vol = Math.floor( |
| | | (this.initFutrue.amount - this.initFutrue.amount * 0.15) / |
| | | this.initData.amount |
| | | // (this.initFutrue.amount - this.initFutrue.amount * 0.15) / |
| | | // this.initData.amount |
| | | (this.initFutrue.amount / (this.initData.amount + 0.15)) * |
| | | this.form.lever_rate |
| | | ); |
| | | } else { |
| | | vol = Math.floor( |
| | | (this.initFutrue.amount - this.initFutrue.amount * 0.3) / |
| | | this.initData.amount |
| | | // (this.initFutrue.amount - this.initFutrue.amount * 0.3) / |
| | | // this.initData.amount |
| | | (this.initFutrue.amount / (this.initData.amount + 0.3)) * |
| | | this.form.lever_rate |
| | | ); |
| | | } |
| | | return Math.floor(vol); |
| | |
| | | '可用USDT': '可用USDT', |
| | | '张': '張', |
| | | '可开张数': '可開張數', |
| | | '可开': '可開', |
| | | '手数': '手數', |
| | | '证件照片': '證件照片', |
| | | "可平张数": "可平張數", |
| | | "交易量": "交易量", |
| | |
| | | export default { |
| | | "ICO": "ICO", |
| | | "ICO记录": "Catatan ICO", |
| | | "申请时间": "Waktu aplikasi", |
| | | "认缴": "berlangganan", |
| | | "已认购": "Sudah berlangganan", |
| | | "已中签": "Menang", |
| | | "已认缴": "Sudah berlangganan", |
| | | "未中签": "Tidak Menang", |
| | | "单价:": "Harga satuan:", |
| | | "认购": "berlangganan", |
| | | "新币预览": "Pratinjau Koin Baru", |
| | | "配售": "Menempatkan", |
| | | "中签结果": "Hasil Kemenangan", |
| | | "认购成功": "Langganan berhasil", |
| | | "认缴成功": "Langganan berhasil", |
| | | "配售成功": "Penempatan berhasil", |
| | | "认购时间": "Waktu berlangganan", |
| | | "配售时间": "Waktu penempatan", |
| | | "中签": "Menang", |
| | | "上市时间": "Waktunya memasarkan", |
| | | "开始时间": "waktu mulai", |
| | | "结束时间": "waktu berakhir", |
| | | "钱包余额": "Saldo Dompet", |
| | | "总价": "Total Harga", |
| | | '请输入止盈金额': 'Ambil jumlah keuntungan', |
| | | '请输入止损金额': 'Hentikan jumlah kerugian', |
| | | "当前有待处理提现订单,请稍后提现!":"Saat ini ada pesanan penarikan yang tertunda, harap tarik nanti!", |
| | | '未绑定谷歌验证器,暂时无法提现,点击前往绑定':`Unbound Google Authenticator, untuk sementara tidak dapat menarik uang tunai, klik untuk mengikat`, |
| | | '请输入谷歌验证码':'Silakan masukkan kode verifikasi Google', |
| | | '需要绑定谷歌验证器才可以提现':'Anda harus mengikat Google Authenticator untuk menarik uang tunai', |
| | | "ICO": "ICO", |
| | | "ICO记录": "Catatan ICO", |
| | | "申请时间": "Waktu aplikasi", |
| | | "认缴": "berlangganan", |
| | | "已认购": "Sudah berlangganan", |
| | | "已中签": "Menang", |
| | | "已认缴": "Sudah berlangganan", |
| | | "未中签": "Tidak Menang", |
| | | "单价:": "Harga satuan:", |
| | | "认购": "berlangganan", |
| | | "新币预览": "Pratinjau Koin Baru", |
| | | "配售": "Menempatkan", |
| | | "中签结果": "Hasil Kemenangan", |
| | | "认购成功": "Langganan berhasil", |
| | | "认缴成功": "Langganan berhasil", |
| | | "配售成功": "Penempatan berhasil", |
| | | "认购时间": "Waktu berlangganan", |
| | | "配售时间": "Waktu penempatan", |
| | | "中签": "Menang", |
| | | "上市时间": "Waktunya memasarkan", |
| | | "开始时间": "waktu mulai", |
| | | "结束时间": "waktu berakhir", |
| | | "钱包余额": "Saldo Dompet", |
| | | "总价": "Total Harga", |
| | | '请输入止盈金额': 'Ambil jumlah keuntungan', |
| | | '请输入止损金额': 'Hentikan jumlah kerugian', |
| | | "当前有待处理提现订单,请稍后提现!": "Saat ini ada pesanan penarikan yang tertunda, harap tarik nanti!", |
| | | '未绑定谷歌验证器,暂时无法提现,点击前往绑定': `Unbound Google Authenticator, untuk sementara tidak dapat menarik uang tunai, klik untuk mengikat`, |
| | | '请输入谷歌验证码': 'Silakan masukkan kode verifikasi Google', |
| | | '需要绑定谷歌验证器才可以提现': 'Anda harus mengikat Google Authenticator untuk menarik uang tunai', |
| | | '请输入试用码': 'Silakan masukkan kode uji coba', |
| | | '试用账号申请': 'Aplikasi akun percobaan', |
| | | '试用码': 'Kode percobaan', |
| | | '点此联系客服': 'Klik di sini untuk menghubungi layanan pelanggan', |
| | | '取得试用码': 'Dapatkan kode percobaan', |
| | | '试用账户': 'Akun demo', |
| | | '已开通账户':'Akun telah dibuka', |
| | | '已开通账户': 'Akun telah dibuka', |
| | | '主题模式': 'Modus tema', |
| | | '白天模式': 'Modus siang', |
| | | '黑夜模式': 'Mode gelap', |
| | |
| | | '可用USDT': 'USDT yang bisa digunakan', |
| | | '张': 'Lembar', |
| | | '可开张数': 'Lembar yang dapat dibuka', |
| | | '手数': 'Jumlah', |
| | | '证件照片': 'Foto identitas', |
| | | "可平张数": "Lembar yang dapat diperlihatkan", |
| | | "交易量": "Jumlah transaksi", |
| | |
| | | "可用USDT": 'Available USDT', |
| | | "张": 'volumes', |
| | | "可开张数": 'Volumes available', |
| | | '手数': 'Hands', |
| | | '可开': 'Open', |
| | | "证件照片": 'ID Photos', |
| | | '结算价格': 'Settlement price', |
| | | '。您可以在钱包账户中查看详情。': '. You can check the details in your wallet account.', |
| | |
| | | "可用USDT": "Disponible en USDT", |
| | | "张": "sábana", |
| | | "可开张数": "Número de aperturas", |
| | | '手数': 'Número de pedidos', |
| | | "证件照片": "Foto de carné", |
| | | "可平张数": "Número de hojas planas", |
| | | "交易量": "Volumen de operaciones", |
| | |
| | | // 创建 |
| | | const request = axios.create({ |
| | | baseURL: baseUrl, |
| | | timeout: 8000, // 超时时间 |
| | | timeout: 8000000, // 超时时间 |
| | | // withCredentials: true, |
| | | headers: { |
| | | "Content-Type": "application/json;charset=UTF-8", |
| | |
| | | }, |
| | | (error) => { |
| | | if (error.code == "ERR_NETWORK") { |
| | | Toast({ message: "ERR_NETWORK", type: "fail", duration: 1000 }); |
| | | // Toast({ message: "ERR_NETWORK", type: "fail", duration: 1000 }); |
| | | } else if (error.code == "ECONNABORTED") { |
| | | //Toast({ message: 'Network Timeout', type: 'fail', duration: 2000 }) |
| | | return Promise.reject(error); |
| | |
| | | // 创建 |
| | | const request = axios.create({ |
| | | baseURL: baseUrl, |
| | | timeout: 8000, // 超时时间 |
| | | timeout: 8000000, // 超时时间 |
| | | // withCredentials: true, |
| | | headers: { |
| | | 'Content-Type': 'application/json;charset=UTF-8', |
| | |
| | | // 拦截请求 |
| | | request.interceptors.request.use(config => { |
| | | if (config.loading) { |
| | | Toast.loading({ duration: 0, forbidClick: true }) |
| | | // Toast.loading({ duration: 0, forbidClick: true }) |
| | | } |
| | | //if (store?.state?.user?.userInfo?.token) { |
| | | if (store.state.user.userInfo.token != undefined && store.state.user.userInfo.token !== '') { |
| | |
| | | // 拦截响应 |
| | | request.interceptors.response.use(res => { // 200开头的 |
| | | if (res.config.loading) { |
| | | Toast.clear() |
| | | // Toast.clear() |
| | | } |
| | | |
| | | // console.log(res); |
| | |
| | | // break; |
| | | default: |
| | | if (msg != undefined) { |
| | | Toast.fail({ |
| | | // icon: 'none', |
| | | message: i18n.t(msg) |
| | | }); |
| | | // Toast.fail({ |
| | | // // icon: 'none', |
| | | // message: i18n.t(msg) |
| | | // }); |
| | | } |
| | | //console.log('错误') |
| | | return Promise.reject(res.data) |
| | | } |
| | | }, error => { |
| | | if (error.code == 'ERR_NETWORK') { |
| | | Toast({ message: 'ERR_NETWORK', type: 'fail', duration: 1000 }) |
| | | // Toast({ message: 'ERR_NETWORK', type: 'fail', duration: 1000 }) |
| | | } else if (error.code == 'ECONNABORTED') { |
| | | //Toast({ message: 'Network Timeout', type: 'fail', duration: 2000 }) |
| | | return Promise.reject(error); |