| | |
| | | // baseURL: '/', |
| | | // baseURL: 'http://www.jumptalk.net:8091', |
| | | // 0311 |
| | | baseURL: "https://api.essencefunds.com/", |
| | | // baseURL: "https://api.essencefunds.com/", |
| | | // 本地 |
| | | // baseURL: "http://192.168.0.105:8091/", |
| | | baseURL: "http://192.168.0.105:8091/", |
| | | util: { |
| | | image: "/util/image.html" // 图片上传 |
| | | } |
| | |
| | | <template> |
| | | <span> |
| | | <span v-if="flg">{{ text | _toString }}</span> |
| | | <span v-if="flg">{{ text | _toLocaleString(false) }}</span> |
| | | <span v-else>****</span> |
| | | </span> |
| | | </template> |
| | |
| | | "yeb": "基金", |
| | | "yebjl": "基金記錄", |
| | | "周期": "週期", |
| | | "天": "天" |
| | | "天": "天", |
| | | "市场": "市場" |
| | | } |
| | |
| | | "yebjl": "Fondsregister", |
| | | "subdk": "Beantragung eines Darlehens", |
| | | "周期": "Zyklus", |
| | | "天": "Tag" |
| | | "天": "Tag", |
| | | "市场": "Markt" |
| | | } |
| | |
| | | "申请杠杠成功,请联系客服!": "Successfully applied for leverage, please contact customer service!", |
| | | "订单号": "Order number", |
| | | "时间": "time", |
| | | "hj90": "1 minute", |
| | | "hj91": "5 minute", |
| | | "hj92": "30 minute", |
| | | "hj90": "1 min", |
| | | "hj91": "5 min", |
| | | "hj92": "30 min", |
| | | "yebjl": "Fund records", |
| | | "hj315": "Rise and fall rate", |
| | | "周期": "cycle", |
| | | "yeb": "fund", |
| | | "天": "day" |
| | | "天": "day", |
| | | "市场": "market" |
| | | } |
| | |
| | | "yeb": "Le Fonds", |
| | | "yebjl": "Enregistrement du Fonds", |
| | | "周期": "Le cycle", |
| | | "天": "Jours" |
| | | "天": "Jours", |
| | | "市场": "Le marché" |
| | | } |
| | |
| | | "yeb": "धन", |
| | | "yebjl": "फंड रिकॉर्ड्स", |
| | | "周期": "चक्र", |
| | | "天": "आसमान" |
| | | "天": "आसमान", |
| | | "市场": "बाज़ार" |
| | | } |
| | |
| | | "yeb": "基金", |
| | | "yebjl": "基金レコード", |
| | | "周期": "サイクル", |
| | | "天": "日" |
| | | "天": "日", |
| | | "市场": "市場" |
| | | } |
| | |
| | | "yeb": "펀드", |
| | | "yebjl": "기금 기록", |
| | | "周期": "주기", |
| | | "天": "일" |
| | | "天": "일", |
| | | "市场": "시장" |
| | | } |
| | |
| | | "yeb": "กองทุน", |
| | | "yebjl": "บันทึกกองทุน", |
| | | "周期": "ระยะเวลา", |
| | | "天": "วัน" |
| | | "天": "วัน", |
| | | "市场": "ตลาด" |
| | | } |
| | |
| | | "配售开启时间": "配售开启时间", |
| | | "申购结束时间": "申购结束时间", |
| | | "周期": "周期", |
| | | "市场": "市场", |
| | | "配售结束时间": "配售结束时间" |
| | | } |
| | |
| | | <template> |
| | | <div class="box"> |
| | | <!-- <div class="left"> |
| | | <el-menu |
| | | default-active="AAPL.usa" |
| | | class="el-menu-vertical-demo" |
| | | background-color="#191919" |
| | | text-color="#dee4eb" |
| | | active-text-color="#ff6900" |
| | | :unique-opened="true" |
| | | @select='handleSelect' |
| | | @open="handleOpen" |
| | | @close="handleClose"> |
| | | <el-submenu v-for="item in NavMenuAry" :key="item.Title" :index="item.Title"> |
| | | <template slot="title"> |
| | | <i class="el-icon-menu"></i> |
| | | <span>{{item.Title}}</span> |
| | | </template> |
| | | <el-menu-item v-for="subItem in item.Sub" :key='subItem.Code' :index="subItem.Code">{{subItem.Name}}</el-menu-item> |
| | | </el-submenu> |
| | | </el-menu> |
| | | </div> --> |
| | | |
| | | <div class="right" ref="right"> |
| | | <!-- <div class="rightTab" ref="rightTab"> |
| | | <div class="btn showMinute" :class="{ active: chartType == 'minute' }" |
| | | @click="changeRightContent('minute')">分时图</div> |
| | | <div class="btn showKline" :class="{ active: chartType == 'kline' }" @click="changeRightContent('kline')"> |
| | | K线图</div> |
| | | </div>--> |
| | | <div class="rightContent" ref="rightContent"> |
| | | <div class="contentBox"> |
| | | <div class="periodWrap kline_periodWrap" ref="kline_periodWrap"> |
| | |
| | | > |
| | | <span>{{ item.Name }}</span> |
| | | </div> |
| | | <div |
| | | class="btn2" |
| | | @click="isShow ? (isShow = false) : (isShow = true)" |
| | | > |
| | | <div class="btn2"> |
| | | <!-- :class="KLinePeriodIndex === index ? 'active' : ''" --> |
| | | <img src="../../../assets/img/options.png" alt /> |
| | | </div> |
| | | </div> |
| | | |
| | | <div |
| | | style="position: absolute; right: 0; top: 25px; z-index: 99" |
| | | v-if="isShow == true" |
| | |
| | | ref="kline2" |
| | | v-show="chartType == 'kline'" |
| | | ></div> |
| | | |
| | | <!-- <div class="statementWrap" ref="kline_statementWrap"> |
| | | 郑重声明:本页面所有数据来自互联网或自动生成的测试数据,仅用于学习HQChart图形库使用,不构成任何投资价值信息。如使用者依据本网站提供的信息、资料及图表进行金融、证券等投资所造成的盈亏与本网站无关。 |
| | | </div>--> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- <div class="right" ref="kline_right" > |
| | | |
| | | </div>--> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import "hqchart/src/jscommon/umychart.resource/font/iconfont.css"; |
| | | import EastMoney from "../../../eastmoney/HQData.js"; |
| | | import i18n from "@/locales/index.js"; |
| | | // 源码调试用 |
| | | // import Chart from '../jscommon/umychart.vue/umychart.vue.js' |
| | | // import '../jscommon/umychart.resource/css/tools.css' |
| | | // import '../jscommon/umychart.resource/font/iconfont.css' |
| | | // var HQChart={ Chart:Chart }; |
| | | |
| | | HQChart.Chart.MARKET_SUFFIX_NAME.GetMarketStatus = function (symbol) { |
| | | return 2; |
| | | }; // 一直交易 |
| | |
| | | </div> |
| | | <div class="right_title"> |
| | | <div class="t_t" style="white-space: nowrap"> |
| | | <span>{{ singDetails.name }}</span> |
| | | <span>{{ singDetails.name }}({{ singDetails.gid }})</span> |
| | | </div> |
| | | <div class="b_t"> |
| | | <span>{{ singDetails.spell }}</span> |
| | |
| | | }}</span> --> |
| | | <span |
| | | :class="singDetails.hcrate > 0 ? 'price green' : 'price red'" |
| | | >{{ singDetails.nowPrice | _toString }}</span |
| | | >{{ singDetails.nowPrice | _toLocaleString }}</span |
| | | > |
| | | </div> |
| | | <div class="bottom_now"> |
| | |
| | | }}{{ (singDetails.nowPrice - singDetails.preclose_px).toFixed(2) }}</span> --> |
| | | <span v-else> |
| | | {{ |
| | | (singDetails.nowPrice - singDetails.preclose_px) | _toString |
| | | (singDetails.nowPrice - singDetails.preclose_px) | _toLocaleString |
| | | }}</span |
| | | > |
| | | </div> |
| | |
| | | :class=" |
| | | singDetails.hcrate > 0 ? 'number green' : 'number red' |
| | | " |
| | | >{{ singDetails.open_px | _toString }}</span |
| | | >{{ singDetails.open_px | _toLocaleString }}</span |
| | | > |
| | | </div> |
| | | <div class="rights topes"> |
| | |
| | | :class=" |
| | | singDetails.hcrate > 0 ? 'number green' : 'number red' |
| | | " |
| | | >{{ singDetails.today_max | _toString }}</span |
| | | >{{ singDetails.today_max | _toLocaleString }}</span |
| | | > |
| | | </div> |
| | | </div> |
| | |
| | | :class=" |
| | | singDetails.hcrate > 0 ? 'number green' : 'number red' |
| | | " |
| | | >{{ singDetails.preclose_px | _toString }}</span |
| | | >{{ singDetails.preclose_px | _toLocaleString }}</span |
| | | > |
| | | </div> |
| | | <div class="rights bots"> |
| | |
| | | :class=" |
| | | singDetails.hcrate > 0 ? 'number green' : 'number red' |
| | | " |
| | | >{{ singDetails.today_min | _toString }}</span |
| | | >{{ singDetails.today_min | _toLocaleString }}</span |
| | | > |
| | | </div> |
| | | </div> |
| | |
| | | <span>{{ $t("hj84") }}</span> |
| | | </div> |
| | | <div class="bottom_buy"> |
| | | <span>{{ singDetails.nowPrice | _toString }}</span> |
| | | <span>{{ singDetails.nowPrice | _toLocaleString }}</span> |
| | | </div> |
| | | </div> |
| | | <div class="sell_btn" @click="goBuy(1)"> |
| | |
| | | <span>{{ $t("hj85") }}</span> |
| | | </div> |
| | | <div class="bottom_sell"> |
| | | <span>{{ singDetails.nowPrice | _toString }}</span> |
| | | <span>{{ singDetails.nowPrice | _toLocaleString }}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | spell: this.singDetails.spell, |
| | | if_us: this.kLineDetails.if_us, |
| | | bayType: this.bayType, |
| | | gid: this.singDetails.gid, |
| | | }, |
| | | }); |
| | | if (navigator.vibrate) { |
| | |
| | | <van-col span="9"> |
| | | <div style="text-align: left"> |
| | | <div class="tp"> |
| | | <span class="price_color">{{ item.price }}</span> |
| | | <span class="price_color">{{ |
| | | item.price | _toLocaleString(false) |
| | | }}</span> |
| | | </div> |
| | | <div class="bt"> |
| | | <span>Max: {{ item.orderNumber }}</span> |
| | |
| | | </div> |
| | | <div class="xgsj"> |
| | | <div class="sjtlt">{{ $t("hj120") }}:</div> |
| | | <div class="xgTime">{{ shengouObj.price }}</div> |
| | | <div class="xgTime"> |
| | | {{ shengouObj.price | _toLocaleString(false) }} |
| | | </div> |
| | | </div> |
| | | <!-- <div class="xgsj"> |
| | | <div class="sjtlt">上市時間:</div> |
| | |
| | | <div style="width: 100%"> |
| | | <div class="bottom_price_title"> |
| | | <div class="start_price"> |
| | | <span>{{ item.buyPrice }} </span> |
| | | <span>{{ item.buyPrice | _toLocaleString(false) }} </span> |
| | | </div> |
| | | <div class="new_price" v-if="item.status <= 3"> |
| | | <span> |
| | |
| | | {{ $t("hj313") }} |
| | | </div> |
| | | </van-col> |
| | | <van-col span="10"> |
| | | <van-col span="3"> |
| | | <div style="text-align: right"> |
| | | {{ $t("市场") }} |
| | | </div> |
| | | </van-col> |
| | | <van-col span="7"> |
| | | <div style="text-align: right"> |
| | | {{ $t("hj314") }} |
| | | </div> |
| | |
| | | <van-col span="8"> |
| | | <div> |
| | | <div class="tp"> |
| | | <span class="collection" @click="optionszx(item)"> |
| | | <span |
| | | <div class="collection" @click="optionszx(item)"> |
| | | <div |
| | | class="shu" |
| | | :class="item.isOption == '1' ? 'shublue' : ''" |
| | | ></span> |
| | | </span> |
| | | <span |
| | | ></div> |
| | | </div> |
| | | <div |
| | | class="title_color" |
| | | style=" |
| | | width: 100%; |
| | | overflow: hidden; |
| | | -webkit-line-clamp: 1; |
| | | text-overflow: ellipsis; |
| | | display: -webkit-box; |
| | | -webkit-box-orient: vertical; |
| | | white-space: nowrap; |
| | | " |
| | | >{{ item.name }}</span |
| | | > |
| | | {{ item.name }} |
| | | </div> |
| | | </div> |
| | | <div class="bt"> |
| | | <span>{{ item.spell }}</span> |
| | | </div> |
| | | </div></van-col |
| | | > |
| | | </div> |
| | | </van-col> |
| | | |
| | | <van-col span="10"> |
| | | <van-col span="3"> |
| | | <div style="text-align: right"> |
| | | {{ item.gid }} |
| | | </div> |
| | | </van-col> |
| | | |
| | | <van-col span="7"> |
| | | <div style="text-align: right"> |
| | | <div class="tp"> |
| | | <span class="price_color">{{ item.nowPrice | _toString }}</span> |
| | | <span class="price_color"> |
| | | {{ item.nowPrice | _toLocaleString(false) }} |
| | | </span> |
| | | </div> |
| | | <div class="bt"> |
| | | <span>{{ item.addTime }}</span> |
| | |
| | | }, |
| | | |
| | | async gook() { |
| | | if (this.phone.length !== 10) { |
| | | if (this.phone.length == 0) { |
| | | Notify({ type: "warning", message: this.$t("hj28") }); |
| | | } else if (isNull(this.userPassword)) { |
| | | Notify({ type: "warning", message: this.$t("hj30") }); |
| | |
| | | </div> |
| | | <div class="li-USDT"> |
| | | <div class="DINPro"> |
| | | {{ item.symbol }} {{ item.availableBalance | _toString }} |
| | | {{ item.symbol }} |
| | | {{ item.availableBalance | _toLocaleString }} |
| | | </div> |
| | | <!-- <div class="DINPro"> |
| | | ≈ $ {{ item.availableBalanceUSD || "0.00" }} |
| | |
| | | </div> |
| | | <div class="li-USDT"> |
| | | <div class="DINPro"> |
| | | {{ item.symbol }} {{ item.freezeMoney | _toString }} |
| | | {{ item.symbol }} |
| | | {{ item.freezeMoney | _toLocaleString }} |
| | | </div> |
| | | <!-- <div class="DINPro">≈ $ {{ item.freezeMoney || "0.00" }}</div> --> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="right_title"> |
| | | <div class="t_t" style="white-space: nowrap"> |
| | | <span>{{ name }}</span> |
| | | <span>{{ name }}({{ gid }})</span> |
| | | </div> |
| | | <div class="b_t"> |
| | | <span>{{ spell }}</span> |
| | |
| | | <div class="cot"> |
| | | <div class="lefts"> |
| | | <div class="top_new"> |
| | | <span>{{ nowPrice | _toString }}</span> |
| | | <span>{{ nowPrice | _toLocaleString }}</span> |
| | | </div> |
| | | <div class="bottom_es"> |
| | | <span>{{ $t("hj98") }}</span> |
| | |
| | | </div> |
| | | |
| | | <div class="bottom_bzz"> |
| | | <span>{{ ((nowPrice / selectCycle) * num) | _toString }}</span> |
| | | <span>{{ ((nowPrice / selectCycle) * num) | _toLocaleString }}</span> |
| | | <span style="white-space: nowarp"> |
| | | <!-- moneyData.symbol + " " + --> |
| | | |
| | | {{ moneyData.availableBalance | _toString }} |
| | | {{ moneyData.availableBalance | _toLocaleString }} |
| | | </span> |
| | | </div> |
| | | </div> |
| | |
| | | }, |
| | | ], |
| | | moneyData: {}, |
| | | gid: "", |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.bayType = this.$route.query.bayType; |
| | | this.gid = this.$route.query.gid; |
| | | if (this.bayType == "in") { |
| | | this.priceTabs = [this.$t("hj108"), this.$t("hj109")]; |
| | | } else if (this.bayType == "qh") { |
| | |
| | | }, |
| | | // 买卖 |
| | | setBuy() { |
| | | if (!this.$store.state.userInfo.idCard) { |
| | | if (this.$store.state.userInfo.isActive !== 2) { |
| | | this.$store.commit("elAlertShow", { |
| | | elAlertShow: true, |
| | | elAlertText: this.$t("hj111"), |
| | |
| | | {{ $t("盈虧") }} ({{ activeObj.symbolCode }}) |
| | | </div> |
| | | <div class="sport-content-text" style="color: #d04b64"> |
| | | {{ item.profitAndLose | _toString }} |
| | | {{ item.profitAndLose | _toLocaleString }} |
| | | </div> |
| | | </div> |
| | | </van-col> |
| | |
| | | {{ $t("hj40") }}({{ activeObj.symbolCode }}) |
| | | </div> |
| | | <div class="sport-content-text2"> |
| | | {{ item.now_price | _toString }} |
| | | {{ item.now_price | _toLocaleString }} |
| | | </div> |
| | | </div> |
| | | </van-col> |
| | |
| | | {{ $t("持倉價") }} ({{ activeObj.symbolCode }}) |
| | | </div> |
| | | <div class="sport-content-text2"> |
| | | {{ item.buyOrderPrice | _toString }} |
| | | {{ item.buyOrderPrice | _toLocaleString }} |
| | | </div> |
| | | </div> |
| | | </van-col> |
| | |
| | | {{ $t("訂單金額") }} ({{ activeObj.symbolCode }}) |
| | | </div> |
| | | <div class="sport-content-text2"> |
| | | {{ item.orderTotalPrice | _toString }} |
| | | {{ item.orderTotalPrice | _toLocaleString }} |
| | | </div> |
| | | </div> |
| | | </van-col> |
| | |
| | | {{ $t("hj44") }} ({{ activeObj.symbolCode }}) |
| | | </div> |
| | | <div class="sport-content-text2"> |
| | | {{ item.orderFee | _toString }} |
| | | {{ item.orderFee | _toLocaleString }} |
| | | </div> |
| | | </div> |
| | | </van-col> |
| | |
| | | {{ $t("止損價") }} ({{ activeObj.symbolCode }}) |
| | | </div> |
| | | <div class="sport-content-text2"> |
| | | {{ item.profitTargetPrice | _toString }} |
| | | {{ item.profitTargetPrice | _toLocaleString }} |
| | | </div> |
| | | </div> |
| | | </van-col> |
| | |
| | | {{ $t("止盈價") }} ({{ activeObj.symbolCode }}) |
| | | </div> |
| | | <div class="sport-content-text2"> |
| | | {{ item.stopTargetPrice | _toString }} |
| | | {{ item.stopTargetPrice | _toLocaleString }} |
| | | </div> |
| | | </div> |
| | | </van-col> |
| | |
| | | <div class="total-name"> |
| | | {{ activeObj.assname }} ({{ activeObj.symbolCode }}) |
| | | </div> |
| | | <div class="total-data">{{ activeObj.totalMoney | _toString }}</div> |
| | | <div class="total-data"> |
| | | {{ activeObj.totalMoney | _toLocaleString }} |
| | | <!-- {{ 10000000000000 | _toLocaleString }} --> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="item-card-itembox"> |
| | | <div class="item"> |
| | | <div class="itembox-data"> |
| | | {{ activeObj.profitAndLoss | _toString }} |
| | | {{ activeObj.profitAndLoss | _toLocaleString }} |
| | | </div> |
| | | |
| | | <div class="itembox-name"> |
| | |
| | | </div> |
| | | <div class="item"> |
| | | <div class="itembox-data"> |
| | | {{ activeObj.availableBalance | _toString }} |
| | | {{ activeObj.availableBalance | _toLocaleString }} |
| | | </div> |
| | | |
| | | <div class="itembox-name"> |
| | |
| | | </div> |
| | | <div class="item"> |
| | | <div class="itembox-data"> |
| | | {{ activeObj.cumulativeProfitAndLoss | _toString }} |
| | | {{ activeObj.cumulativeProfitAndLoss | _toLocaleString }} |
| | | </div> |
| | | |
| | | <div class="itembox-name"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="itembox-data">{{ activeObj.freezeMoney | _toString }}</div> |
| | | <div class="itembox-data"> |
| | | {{ activeObj.freezeMoney | _toLocaleString }} |
| | | </div> |
| | | |
| | | <div class="itembox-name"> |
| | | {{ $t("凍結資產") }} ({{ activeObj.symbolCode }}) |
| | |
| | | </div> |
| | | <div class="item"> |
| | | <div class="itembox-data"> |
| | | {{ activeObj.handlingCharge | _toString }} |
| | | {{ activeObj.handlingCharge | _toLocaleString }} |
| | | </div> |
| | | |
| | | <div class="itembox-name"> |
| | |
| | | <div class="order-info-box"> |
| | | <div class="order-title"> |
| | | <span class="main"> {{ $t("hjtxyhk") }} </span> |
| | | <span class="payNumber">{{ $USD }}{{ item.withAmt }}</span> |
| | | <span class="payNumber" |
| | | >{{ $USD }}{{ item.withAmt | _toLocaleString }}</span |
| | | > |
| | | <span class="red pull-right"> |
| | | {{ |
| | | item.withStatus == 1 |
| | |
| | | <p class="clearfix"> |
| | | <span class="col-xs-6"> |
| | | {{ $t("hj44") }}: |
| | | <b class="space"> {{ $USD }} {{ item.withFee }} </b> |
| | | <b class="space"> |
| | | {{ $USD }} {{ item.withFee | _toLocaleString }} |
| | | </b> |
| | | </span> |
| | | <!-- <span class="col-xs-6">实际到账金额:<b class="space" style="font-size:0.26rem">{{item.withAmt - item.withFee}}</b>元</span> --> |
| | | </p> |
| | |
| | | <span |
| | | :style="{ color: $state.theme == 'red' ? '#BB1815' : '' }" |
| | | > |
| | | {{ item.channelName }} {{ item.payAmt }} |
| | | {{ item.channelName }} {{ item.payAmt | _toLocaleString }} |
| | | </span> |
| | | </span> |
| | | <span |
| | |
| | | <i |
| | | v-if="item.orderStatus == 1" |
| | | class="iconfont icon-tongguo4 animated bounceIn" |
| | | ></i> |
| | | > |
| | | </i> |
| | | <i |
| | | v-if="item.orderStatus == 0" |
| | | class="iconfont icon-dengdai animated bounceInDown" |
| | | ></i> |
| | | > |
| | | </i> |
| | | <i |
| | | v-if="item.orderStatus == 2" |
| | | class="iconfont icon-failure animated bounceInDown" |
| | | ></i> |
| | | > |
| | | </i> |
| | | <i |
| | | v-if="item.orderStatus == 3" |
| | | class="iconfont icon-iconfontweitongguo animated bounceInDown" |
| | | ></i> |
| | | > |
| | | </i> |
| | | <!-- 1 => 成功 2 失败 3取消 4 等待 --> |
| | | {{ |
| | | item.orderStatus == 1 |
| | |
| | | > |
| | | <span class="info-item" |
| | | >{{ $t("时间") }}: |
| | | <b v-if="item.addTime">{{ |
| | | new Date(item.addTime) | timeFormat |
| | | }}</b> |
| | | <b v-else></b> |
| | | <b v-if="item.addTime" |
| | | >{{ new Date(item.addTime) | timeFormat }} |
| | | </b> |
| | | <b v-else> </b> |
| | | </span> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="item_box_left_top">{{ item.spell }}</div> |
| | | <div class="item_box_left_bottom">{{ item.name }}</div> |
| | | </div> |
| | | <div class="item_box_zj">{{ item.nowPrice }}</div> |
| | | <div class="item_box_zj"> |
| | | {{ item.nowPrice | _toLocaleString(false) }} |
| | | </div> |
| | | |
| | | <div |
| | | :class=" |
| | |
| | | <div class="dz-title" v-if="rechargeAccountData.key !== undefined"> |
| | | <div>{{ $t("可用餘額") }}</div> |
| | | <div class="balance-text"> |
| | | {{ availableBalanceUSD | _toString }} {{ symbolCode }} |
| | | {{ availableBalanceUSD | _toLocaleString }} {{ symbolCode }} |
| | | <!-- {{ symbolCode }} --> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | <script> |
| | | import * as api from "@/axios/api"; |
| | | import { Toast } from "mint-ui"; |
| | | import { Notify } from "vant"; |
| | | |
| | | export default { |
| | | components: {}, |
| | |
| | | let obj = res.data.filter((item) => item.accectType == "IN")[0]; |
| | | obj.availableBalance = Number(obj.availableBalance).toFixed(2); |
| | | // console.log(Number(obj.availableBalance).toFixed(2)); |
| | | obj.availableBalance = this.$toLocaleString( |
| | | obj.availableBalance, |
| | | false |
| | | ); |
| | | this.activeObj = obj; |
| | | // console.log(obj, "0000000", this.tabsArr); |
| | | } |
| | |
| | | }, |
| | | async tosubmit(id, money) { |
| | | if (!this.isInteger(money)) { |
| | | Toast("请输入整数"); |
| | | Notify({ type: "warning", message: this.$t("regpInt") }); |
| | | return; |
| | | } |
| | | // 融资转指数 |
| | |
| | | money: money, |
| | | }; |
| | | let data1 = await api.BuyYeb(opt); |
| | | |
| | | console.log(data1, "===="); |
| | | if (data1.status === 0) { |
| | | Toast(data1.data); |
| | | Notify({ type: "success", message: data1.data }); |
| | | this.$router.push("/yebs"); |
| | | } else { |
| | | Toast(data1.data); |
| | | Notify({ type: "warning", message: data1.data }); |
| | | } |
| | | }, |
| | | async getUserInfo() { |
| | |
| | | if (data.status === 0) { |
| | | this.$store.state.userInfo = data.data; |
| | | } else { |
| | | Toast(data.msg); |
| | | Notify({ type: "warning", message: data.data }); |
| | | } |
| | | }, |
| | | async getYebInfo() { |
| | |
| | | this.yebinfo = data.data; |
| | | this.$store.state.yebinfo = data.data; |
| | | } else { |
| | | Toast(data.msg); |
| | | Notify({ type: "warning", message: data.data }); |
| | | } |
| | | }, |
| | | }, |
| | |
| | | <div class="li-cont"> |
| | | <div class="li-info li-1"> |
| | | <span class="li-label">{{ $t("周期") + ":" }}</span> |
| | | <span class="li-value" |
| | | >{{ item.returnTime }} {{ $t("天") }}</span |
| | | > |
| | | <span class="li-value"> |
| | | {{ item.returnTime }} {{ $t("天") }} |
| | | </span> |
| | | </div> |
| | | <div class="li-info"> |
| | | <span class="li-label">{{ $t("syl") + ":" }}</span> |
| | |
| | | <span class="li-label">{{ |
| | | $t("gm") + $t("je") + ":" |
| | | }}</span> |
| | | <span class="li-value" |
| | | >{{ item.money }} {{ $t("yuan") }}</span |
| | | > |
| | | <span class="li-value">{{ |
| | | item.money | _toLocaleString(false) |
| | | }}</span> |
| | | </div> |
| | | </div> |
| | | <div class="li-cont"> |
| | |
| | | export const $USD = "₹"; |
| | | export const $USDT = "INR"; |
| | | |
| | | export function $toLocaleString( |
| | | number, |
| | | showCurrencySymbol = true, // 是否显示货币符号,默认为 true |
| | | locale = "en-IN", // 默认使用印度英语的语言环境 |
| | | options = { |
| | | // style:可选值为 decimal(小数)、currency(货币)或 percent(百分比); |
| | | // currency:设置为货币样式时使用的符号,支持列表在这里; |
| | | // useGrouping:布尔值,是否显示数字分位。 |
| | | style: "currency", |
| | | currency: "INR", |
| | | minimumFractionDigits: 2 //如果不想要显示末尾的小数「.00」,只要设置一下最小分位 minimumFractionDigits 即可(默认是 2): |
| | | } |
| | | ) { |
| | | number = number || 0; |
| | | let str = Number(number).toLocaleString(locale, options); |
| | | if (showCurrencySymbol) { |
| | | str = str.replace("₹", ""); |
| | | } |
| | | return str; |
| | | } |
| | |
| | | // export function customToLocaleString( |
| | | // number, |
| | | // showCurrencySymbol = true, // 是否显示货币符号,默认为 true |
| | | // locale = "en-IN", // 默认使用印度英语的语言环境 |
| | | // options = { |
| | | // // style:可选值为 decimal(小数)、currency(货币)或 percent(百分比); |
| | | // // currency:设置为货币样式时使用的符号,支持列表在这里; |
| | | // // useGrouping:布尔值,是否显示数字分位。 |
| | | // style: "currency", |
| | | // currency: "INR", |
| | | // minimumFractionDigits: 2 //如果不想要显示末尾的小数「.00」,只要设置一下最小分位 minimumFractionDigits 即可(默认是 2): |
| | | // } |
| | | // ) { |
| | | // // if (!showCurrencySymbol) { |
| | | // // // 如果不需要显示货币符号,将 style 设置为 "decimal",并且将 currency 设置为空字符串 |
| | | // // options.style = "decimal"; |
| | | // // options.currency = "INR"; |
| | | // // } |
| | | // return Number(number).toLocaleString(locale, options); |
| | | // } |
| | | export function _toLocaleString( |
| | | number, |
| | | showCurrencySymbol = true, // 是否显示货币符号,默认为 true |
| | | locale = "en-IN", // 默认使用印度英语的语言环境 |
| | | options = { |
| | | // style:可选值为 decimal(小数)、currency(货币)或 percent(百分比); |
| | | // currency:设置为货币样式时使用的符号,支持列表在这里; |
| | | // useGrouping:布尔值,是否显示数字分位。 |
| | | style: "currency", |
| | | currency: "INR", |
| | | minimumFractionDigits: 2 //如果不想要显示末尾的小数「.00」,只要设置一下最小分位 minimumFractionDigits 即可(默认是 2): |
| | | } |
| | | ) { |
| | | number = number || 0; |
| | | let str = Number(number).toLocaleString(locale, options); |
| | | if (showCurrencySymbol) { |
| | | str = str.replace("₹", ""); |
| | | } |
| | | return str; |
| | | } |
| | | export function _toString(u) { |
| | | u = u || 0; |
| | | u = Number(u); |