| | |
| | | |
| | | Axios.contractOrderList(data).then((res) => { |
| | | let result = res.data |
| | | result.forEach((item) => { |
| | | item.create_time = item.create_time.split(' ')[0] + ' ' + initDate(item.create_time.split(' ')[1]) |
| | | item.close_time = item.close_time.split(' ')[0] + ' ' + initDate(item.close_time.split(' ')[1]) |
| | | }) |
| | | // result.forEach((item) => { |
| | | // item.create_time = item.create_time.split(' ')[0] + ' ' + initDate(item.create_time.split(' ')[1]) |
| | | // item.close_time = item.close_time.split(' ')[0] + ' ' + initDate(item.close_time.split(' ')[1]) |
| | | // }) |
| | | this.tableData = res.data; |
| | | console.log(this.tableData,'this.tableData'); |
| | | const noNext = res.data.length == 0 || res.data.length < 10; |
| | |
| | | // 获取行情数据,用于币种数据展示和币种的弹窗 |
| | | getRealTimeData(val, search) { |
| | | // console.log('获取行情数据,用于币种数据展示和币种的弹窗',val) |
| | | Axios.getRealtime({ symbol: 'btc,plcl,eth,bnb,ada,omg,xtz,sol,' + |
| | | 'xrp,doge,avax,link,ltc,algo,bch,luna,uni,icp,etc,fil,xlm' + |
| | | ',atom,matic,theta,trx,ftt,bsv,eos,dai,comp,saga,prcl,tnsl' }).then((res) => { |
| | | const symbol = 'wld,wdc,btc,eth,xtz,ada,yfii,mln,yfi,dai,etc,xrp,ltc,usdc,knc,doge,vet,shib,qtum,icp' |
| | | Axios.getRealtime({ symbol,order: 'desc' }).then((res) => { |
| | | if (res.code == "0") { |
| | | var data = res.data; |
| | | console.log(data); |
| | | // console.log(this.$route.params.id,'this.$route.params.id') |
| | | var filtersVal = data.filter( |
| | | (val) => val.symbol == this.$route.params.id |
| | |
| | | this.orderListAsc("amount", "ask") |
| | | ); |
| | | } |
| | | |
| | | console.log(this.allListData,'this.allListData'); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | <el-table-column |
| | | prop="close_time" |
| | | :label="$t('message.user.shijian')" |
| | | :formatter="formatterDate" |
| | | ></el-table-column> |
| | | <!-- <el-table-column prop="order_no" label="订单号"></el-table-column> --> |
| | | <el-table-column |
| | |
| | | </template> |
| | | <script> |
| | | import { getContractOrder } from "@/api/order.js"; |
| | | import {initDate} from "@/utils/utils" |
| | | import dayjs from "dayjs"; |
| | | export default { |
| | | name: "contractHistoryOrder", |
| | |
| | | }; |
| | | const res = await getContractOrder(data); |
| | | this.tableData = res.data; |
| | | this.tableData.forEach( item => { |
| | | item.close_time = item.close_time.split(' ')[0] + ' ' + initDate(item.close_time.split(' ')[1]) |
| | | }) |
| | | this.tableLength = res.data.length; |
| | | if (this.tableLength == 0 || this.tableLength < 10) { |
| | | this.isNext = true; |
| | |
| | | <el-table-column |
| | | prop="close_time" |
| | | :label="$t('message.home.kaicangshijian')" |
| | | :formatter="getFormatTime" |
| | | ></el-table-column> |
| | | <el-table-column prop="direction" :label="$t('message.home.fangxiang')"> |
| | | <template #default="scope"> |
| | |
| | | <el-table-column |
| | | prop="settlement_time" |
| | | :label="$t('message.home.daoqishijian')" |
| | | :formatter="getFormatTime" |
| | | ></el-table-column> |
| | | </el-table> |
| | | <!-- 分页 --> |
| | |
| | | </template> |
| | | <script> |
| | | import { getDeliveryOrder } from "@/api/order.js"; |
| | | import {initDate} from "@/utils/utils" |
| | | import dayjs from "dayjs"; |
| | | export default { |
| | | name: "deliveryHistoryOrder", |
| | |
| | | const res = await getDeliveryOrder(data); |
| | | console.log(111, "交割合约订单接口", res.data); |
| | | this.tableData = res.data; |
| | | this.tableData.forEach( item => { |
| | | item.settlement_time = item.settlement_time.split(' ')[0] + ' ' + initDate(item.settlement_time.split(' ')[1]) |
| | | item.close_time = item.close_time.split(' ')[0] + ' ' + initDate(item.close_time.split(' ')[1]) |
| | | }) |
| | | this.tableLength = res.data.length; |
| | | }, |
| | | |
| | |
| | | <script> |
| | | // TODO 接口出参变了,兑换列表, |
| | | import { getExchangeOrder } from "@/api/order.js"; |
| | | import { initDate } from "@/utils/utils"; |
| | | export default { |
| | | name: "exchangeHistory", |
| | | data() { |
| | |
| | | page_no: this.pageNum, |
| | | }); |
| | | this.tableData = res.data; |
| | | this.tableData.forEach((item) => { |
| | | item.create_time = |
| | | item.create_time.split(" ")[0] + |
| | | " " + |
| | | initDate(item.create_time.split(" ")[1]); |
| | | }); |
| | | this.tableLength = res.data.length; |
| | | }, |
| | | |
| | |
| | | </template> |
| | | <script> |
| | | import { getSpotOrder } from "@/api/order.js"; |
| | | import {initDate} from "@/utils/utils" |
| | | export default { |
| | | name: "spotOrder", |
| | | props: { |
| | |
| | | }; |
| | | const res = await getSpotOrder(data); |
| | | this.tableData = res.data; |
| | | this.tableData.forEach((item,index) => { |
| | | item.create_time = item.create_time.split(' ')[0] + ' ' + initDate(item.create_time.split(' ')[1]) |
| | | }) |
| | | this.tableLength = res.data.length; |
| | | }, |
| | | handleCurrentChange(val) { |
| | |
| | | :empty-text="$t('message.home.noData')" |
| | | > |
| | | <el-table-column |
| | | prop="createtimestr" |
| | | prop="createTimeStr" |
| | | :label="$t('message.user.shijian3')" |
| | | ></el-table-column> |
| | | <el-table-column |
| | |
| | | <span class="label" |
| | | >{{ $t("message.user.dingdanshijian3") }}: |
| | | </span> |
| | | <span>{{ detailData.create_time }}</span> |
| | | <span>{{ detailData.create_time.split(' ')[0] + ' ' + initDate(detailData.create_time.split(' ')[1]) }}</span> |
| | | </div> |
| | | <div> |
| | | <span class="label"> {{ $t("message.user.dingdanhao3") }}: </span> |
| | |
| | | </template> |
| | | <script> |
| | | import Axios2 from "@/api/wallet.js"; |
| | | import { initDate } from "@/utils/utils"; |
| | | export default { |
| | | name: "exchangeHistory", |
| | | data() { |
| | | return { |
| | | initDate, |
| | | formInline: { |
| | | category: "", |
| | | start_time: "", |
| | |
| | | page_no: this.pageNum, |
| | | }).then((res) => { |
| | | this.tableData = res.data; |
| | | console.log(this.tableData); |
| | | this.tableData.forEach((item) => { |
| | | item.createTimeStr = |
| | | item.createTimeStr.split(" ")[0] + |
| | | " " + |
| | | initDate(item.createTimeStr.split(" ")[1]); |
| | | }); |
| | | this.tableLength = res.data.length; |
| | | }); |
| | | }, |
| | |
| | | {{ $t("message.user.chongzhi") }} |
| | | </div> |
| | | <div v-else>{{ $t("message.user.tixian") }}</div> |
| | | <div class="linght-grey-color">{{ item.createTimeStr }}</div> |
| | | <div class="linght-grey-color">{{ item.createTimeStr.split(' ')[0] + ' ' + initDate(item.createTimeStr.split(' ')[1]) }}</div> |
| | | </div> |
| | | </div> |
| | | <div class="flex-column" style="text-align: right"> |
| | |
| | | </template> |
| | | <script> |
| | | import Axios2 from "@/api/wallet.js"; |
| | | import {initDate} from "@/utils/utils" |
| | | |
| | | export default { |
| | | name: "SpotAccounts", |
| | | data() { |
| | | return { |
| | | initDate, |
| | | MenuChooseIndex: 0, |
| | | total: 0, |
| | | eyetel: false, |
| | |
| | | <div class="css-kzcb6r"> |
| | | <div class="css-cp92rp"> |
| | | <div class="css-ig082u"> |
| | | {{ item.createTime }} |
| | | {{ item.createTime.split(' ')[0] + ' ' + initDate(item.createTime.split(' ')[1])}} |
| | | </div> |
| | | </div> |
| | | <div class="css-cp92rp"> |
| | |
| | | import { handleSymbolImg } from "@/utils"; |
| | | import ListCoins from "@/components/my/listCoins.vue"; |
| | | import { Plus, CaretBottom, ArrowLeftBold } from "@element-plus/icons-vue"; |
| | | import {initDate} from "@/utils/utils" |
| | | |
| | | export default { |
| | | components: { Plus, CaretBottom, ListCoins }, |
| | | data() { |
| | | return { |
| | | initDate, |
| | | showListcoin: false, |
| | | listTitle: this.$t("message.user.ti24"), |
| | | listOpData: [ |