| | |
| | | 'use strict' |
| | | "use strict"; |
| | | // Template version: 1.3.1 |
| | | // see http://vuejs-templates.github.io/webpack for documentation. |
| | | |
| | | const path = require('path') |
| | | const path = require("path"); |
| | | |
| | | module.exports = { |
| | | dev: { |
| | | |
| | | // Paths |
| | | assetsSubDirectory: 'static', |
| | | assetsPublicPath: '/', |
| | | assetsSubDirectory: "static", |
| | | assetsPublicPath: "/", |
| | | proxyTable: { |
| | | // '/api': { |
| | | // target:'http://43.198.126.79:8091/', |
| | |
| | | // '^/api': '/' |
| | | // } |
| | | // }, |
| | | '/': { |
| | | "/": { |
| | | // target: 'https://pc.zsycyy.com', |
| | | // target: 'http://www.shehua56.com', |
| | | target:'http://121.43.237.202:8091/', |
| | | target: "http://121.43.237.202:8091/", |
| | | // target:'https://api.guosen.org/', |
| | | secure: false, |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | | '^/': '/' |
| | | "^/": "/" |
| | | } |
| | | }, |
| | | '/dk': { |
| | | target: 'http://121.43.237.202:8091/', |
| | | "/dk": { |
| | | target: "http://121.43.237.202:8091/", |
| | | secure: false, |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | | '^/dk': '/dk' |
| | | "^/dk": "/dk" |
| | | } |
| | | } |
| | | }, |
| | | |
| | | // Various Dev Server settings |
| | | host: '127.0.0.1', // can be overwritten by process.env.HOST |
| | | host: "192.168.0.105", // can be overwritten by process.env.HOST |
| | | port: 80, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined |
| | | autoOpenBrowser: true, |
| | | errorOverlay: true, |
| | |
| | | */ |
| | | |
| | | // https://webpack.js.org/configuration/devtool/#development |
| | | devtool: 'cheap-module-eval-source-map', |
| | | devtool: "cheap-module-eval-source-map", |
| | | |
| | | // If you have problems debugging vue-files in devtools, |
| | | // set this to false - it *may* help |
| | |
| | | |
| | | build: { |
| | | // Template for index.html |
| | | index: path.resolve(__dirname, '../dist/index.html'), |
| | | index: path.resolve(__dirname, "../dist/index.html"), |
| | | |
| | | // Paths |
| | | assetsRoot: path.resolve(__dirname, '../dist'), |
| | | assetsSubDirectory: 'static', |
| | | assetsPublicPath: './', |
| | | assetsRoot: path.resolve(__dirname, "../dist"), |
| | | assetsSubDirectory: "static", |
| | | assetsPublicPath: "./", |
| | | |
| | | /** |
| | | * Source Maps |
| | |
| | | |
| | | productionSourceMap: false, |
| | | // https://webpack.js.org/configuration/devtool/#production |
| | | devtool: '#source-map', |
| | | devtool: "#source-map", |
| | | |
| | | // Gzip off by default as many popular static hosts such as |
| | | // Surge or Netlify already gzip all static assets for you. |
| | | // Before setting to `true`, make sure to: |
| | | // npm install --save-dev compression-webpack-plugin |
| | | productionGzip: false, |
| | | productionGzipExtensions: ['js', 'css'], |
| | | productionGzipExtensions: ["js", "css"], |
| | | |
| | | // Run the build command with an extra argument to |
| | | // View the bundle analyzer report after build finishes: |
| | |
| | | // Set to `true` or `false` to always turn it on or off |
| | | bundleAnalyzerReport: process.env.npm_config_report |
| | | } |
| | | } |
| | | }; |
| | |
| | | 支持得提款渠道: "Supported withdrawal channels", |
| | | 銀行卡充值: "Bank card recharge", |
| | | 韩股總資產: "Total assets of Korean stocks", |
| | | "上傳憑證:": "Upload voucher:" |
| | | "上傳憑證:": "Upload voucher:", |
| | | 从: "from", |
| | | 到: "to" |
| | | }; |
| | |
| | | 支持得提款渠道: "지원 인출 루트", |
| | | 銀行卡充值: "은행카드 충전", |
| | | 韩股總資產: "한국 주식 총자산", |
| | | "上傳憑證:": "자격 증명 업로드:" |
| | | "上傳憑證:": "자격 증명 업로드:", |
| | | 从: "부터", |
| | | 到: "에" |
| | | }; |
| | |
| | | 支持得提款渠道: " समर्थन निकासी चैनल", |
| | | 銀行卡充值: " बैंक कार्ड टॉप-अप", |
| | | 韩股總資產: " कोरियाई शेयरों की कुल संपत्ति", |
| | | "上傳憑證:": " प्रमाणपत्र अपलोड करें" |
| | | "上傳憑證:": " प्रमाणपत्र अपलोड करें", |
| | | 从: "से", |
| | | 到: "को" |
| | | }; |
| | |
| | | 馬股总资产: " マレーシア株式市場の総資産", |
| | | 买跌: "買い下げ", |
| | | 买涨: "買い占め", |
| | | 韩国股市:"韓国株式市場", |
| | | 韩股总资产:" 韓国株の総資産", |
| | | 韩股資產:" 韓国の株式資産", |
| | | 韩股可用:" 韓国株もあるし", |
| | | 韩股冻结:" 韓国株は凍結", |
| | | 支持得支付渠道:" サポートされている支払いチャネル", |
| | | 充值中心:" リチャージセンター", |
| | | 最小充值金額:" 最低チャージ金額", |
| | | 收款卡號:" 支払いカード番号", |
| | | 收款銀行:" 受取銀行", |
| | | 收款人名字:" 支払者名", |
| | | 請選擇充值賬戶:" リチャージアカウントを選択してください", |
| | | 最小充值金額:" 最低チャージ金額", |
| | | 上傳憑證:" 証明書をアップロードし", |
| | | HG:" 韓国の株式口座", |
| | | 支持得提款渠道:" 引き出しチャネルのサポート", |
| | | 銀行卡充值:" 銀行カードのチャージ", |
| | | 韩股總資產:" 韓国株の総資産", |
| | | '上傳憑證:':" 証明書をアップロードします", |
| | | 韩国股市: "韓国株式市場", |
| | | 韩股总资产: " 韓国株の総資産", |
| | | 韩股資產: " 韓国の株式資産", |
| | | 韩股可用: " 韓国株もあるし", |
| | | 韩股冻结: " 韓国株は凍結", |
| | | 支持得支付渠道: " サポートされている支払いチャネル", |
| | | 充值中心: " リチャージセンター", |
| | | 最小充值金額: " 最低チャージ金額", |
| | | 收款卡號: " 支払いカード番号", |
| | | 收款銀行: " 受取銀行", |
| | | 收款人名字: " 支払者名", |
| | | 請選擇充值賬戶: " リチャージアカウントを選択してください", |
| | | 最小充值金額: " 最低チャージ金額", |
| | | 上傳憑證: " 証明書をアップロードし", |
| | | HG: " 韓国の株式口座", |
| | | 支持得提款渠道: " 引き出しチャネルのサポート", |
| | | 銀行卡充值: " 銀行カードのチャージ", |
| | | 韩股總資產: " 韓国株の総資産", |
| | | "上傳憑證:": " 証明書をアップロードします", |
| | | 从: "から", |
| | | 到: "に" |
| | | }; |
| | |
| | | 支持得提款渠道: " รองรับช่องทางการถอนเงิน", |
| | | 銀行卡充值: " เติมเงินบัตรธนาคาร", |
| | | 韩股總資產: " สินทรัพย์รวมของหุ้นเกาหลี", |
| | | "上傳憑證:": " อัพโหลดใบรับรอง" |
| | | "上傳憑證:": " อัพโหลดใบรับรอง", |
| | | 从: "จาก", |
| | | 到: "ถึง" |
| | | }; |
| | |
| | | 支持得提款渠道: " 支持得提款渠道", |
| | | 銀行卡充值: " 銀行卡充值", |
| | | 韩股總資產: " 韩股總資產", |
| | | "上傳憑證:": " 上傳憑證:" |
| | | "上傳憑證:": " 上傳憑證:", |
| | | 从: "從", |
| | | 到: "到" |
| | | }; |
| | |
| | | 支持得提款渠道: "支持得提款渠道", |
| | | 銀行卡充值: "銀行卡充值", |
| | | 韩股總資產: "韩股總資產", |
| | | "上傳憑證:": "上傳憑證:" |
| | | "上傳憑證:": "上傳憑證:", |
| | | 从: "从", |
| | | 到: "到" |
| | | }; |
| | |
| | | } else if (isNull(this.rePassword)) { |
| | | Notify({ type: "warning", message: this.$t("hj31") }); |
| | | } else { |
| | | if (!/(^[1-9]\d*$)/.test(this.phone)) { |
| | | Notify({ type: "warning", message: this.$t("hj28") }); |
| | | } else if (this.phone.toString().length != 10) { |
| | | Notify({ type: "warning", message: this.$t("hj28") }); |
| | | } else if (this.userPassword !== this.rePassword) { |
| | | if (this.userPassword !== this.rePassword) { |
| | | this.password = 0; |
| | | this.password2 = 0; |
| | | Notify({ type: "warning", message: this.$t("hj32") }); |
| | |
| | | </van-col> |
| | | </van-row> |
| | | <van-row style="margin-top: 18px"> |
| | | <div class="van-col van-col--8" style="margin-top: 10px"> |
| | | <div class="content-title DINPro">{{ $t("美股總資產") }}(USD)</div> |
| | | <div> |
| | | <div class="DINPro" style="font-size: 18px"> |
| | | <showHide :text="userInfo.usTotalAssets" :flg="xy" /> |
| | | </div> |
| | | <div |
| | | class="van-col van-col--8" |
| | | style="margin-top: 10px" |
| | | v-for="item in listAsstes" |
| | | :key="item.accectType" |
| | | > |
| | | <div class="content-title DINPro"> |
| | | {{ |
| | | item.accectType === "US" ? $t("美股總資產") : $t("馬股總資產") |
| | | }} |
| | | ({{ item.symbolCode }}) |
| | | </div> |
| | | </div> |
| | | <div class="van-col van-col--8" style="margin-top: 10px"> |
| | | <div class="content-title">{{ $t("馬股總資產") }}(USD)</div> |
| | | <div> |
| | | <div class="DINPro" style="font-size: 18px"> |
| | | <showHide :text="userInfo.masTotalAssets" :flg="xy" /> |
| | | <showHide :text="item.availableBalance" :flg="xy" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | } |
| | | }, |
| | | goWall() { |
| | | if (this.userInfo.length === 0) { |
| | | this.$store.commit("dialogVisible", true); |
| | | return; |
| | | } |
| | | this.$router.push("/wallet"); |
| | | }, |
| | | gotoa(e) { |
| | | if (this.userInfo.length === 0) { |
| | | this.$store.commit("dialogVisible", true); |
| | | return; |
| | | } |
| | | if (e == 0) { |
| | | this.$router.push("/wallet"); |
| | | } else if (e == 1) { |
| | |
| | | handleZh() { |
| | | this.selectUserFlag = !this.selectUserFlag; |
| | | |
| | | if (this.userInfo.length === 0) { |
| | | this.$store.commit("dialogVisible", true); |
| | | return; |
| | | } |
| | | if (navigator.vibrate) { |
| | | // 支持 |
| | | navigator.vibrate([55]); |
| | |
| | | .catch(() => {}); |
| | | }, |
| | | goToSettings() { |
| | | if (this.userInfo.length === 0) { |
| | | this.$store.commit("dialogVisible", true); |
| | | return; |
| | | } |
| | | // 每次打开dialog 清空密码数据 |
| | | this.pswDialog = !this.pswDialog; |
| | | if (this.pswDialog) { |
| | |
| | | } |
| | | }, |
| | | handleGoToTransfer() { |
| | | if (this.userInfo.length === 0) { |
| | | this.$store.commit("dialogVisible", true); |
| | | return; |
| | | } |
| | | this.$router.push("/transfers"); |
| | | }, |
| | | handleGoToAuthentication() { |
| | | if (this.userInfo.length === 0) { |
| | | this.$store.commit("dialogVisible", true); |
| | | return; |
| | | } |
| | | this.$router.push("/authentications"); |
| | | }, |
| | | handleGoToAuthenticationaz() { |
| | | if (this.userInfo.length === 0) { |
| | | this.$store.commit("dialogVisible", true); |
| | | return; |
| | | } |
| | | this.$router.push("/download"); |
| | | }, |
| | | handleGoToBankCard() { |
| | | if (this.userInfo.length === 0) { |
| | | this.$store.commit("dialogVisible", true); |
| | | return; |
| | | } |
| | | this.$router.push("/bankCard"); |
| | | }, |
| | | async toRegister() { |
| | |
| | | <div> |
| | | <div class="main-header"> |
| | | <div class="main-li" @click="show = true"> |
| | | <span class="li-left">從</span |
| | | <span class="li-left">{{ $t("从") }}</span |
| | | ><span class="li-center">{{ from.name }}</span> |
| | | <div class="img-con"> |
| | | <img |
| | |
| | | /> |
| | | </div> |
| | | <div class="main-li" @click="toShow = true"> |
| | | <span class="li-left">到</span |
| | | <span class="li-left">{{ $t("到") }}</span |
| | | ><span class="li-center">{{ to.name }}</span> |
| | | <div class="img-con"> |
| | | <img |
| | |
| | | class="van-cell van-field white-input" |
| | | modelmodifiers="[object Object]" |
| | | > |
| | | <!----><!----> |
| | | <div class="van-cell__value van-field__value"> |
| | | <div class="van-field__body"> |
| | | <input |
| | |
| | | class="van-field__control" |
| | | :placeholder="$t('請選擇')" |
| | | @input="inputValue" |
| | | /><!----><!----> |
| | | /> |
| | | <div class="van-field__button" style="margin-right: 10px"> |
| | | <span style="color: rgb(79, 82, 87)">USD</span> |
| | | <span style="color: rgb(79, 82, 87)">{{ |
| | | from.symbolCode |
| | | }}</span> |
| | | </div> |
| | | </div> |
| | | <!----><!----> |
| | | </div> |
| | | <!----><!----> |
| | | </div> |
| | | </van-col> |
| | | <div class="huazhuan"> |
| | |
| | | {{ $t("轉換得到金額") }} |
| | | </div> |
| | | <div class="van-cell van-field van-field--disabled white-input"> |
| | | <!----><!----> |
| | | <div class="van-cell__value van-field__value"> |
| | | <div class="van-field__body"> |
| | | <input |
| | | type="text" |
| | | id="van-field-48-input" |
| | | class="van-field__control" |
| | | disabled="" |
| | | :placeholder="$t('請選擇')" |
| | | style="padding-left: 10px" |
| | | /><!----><!----> |
| | | <div class="van-field__control" style="padding-left: 10px"> |
| | | {{ |
| | | from.accectType !== "US" |
| | | ? (formValue / exchangeRate).toFixed(2) |
| | | : (formValue * exchangeRate).toFixed(2) |
| | | }} |
| | | </div> |
| | | <div class="van-field__button" style=""> |
| | | <span style="color: rgb(79, 82, 87)">USD</span> |
| | | <span style="color: rgb(79, 82, 87)">{{ |
| | | to.symbolCode |
| | | }}</span> |
| | | </div> |
| | | </div> |
| | | <!----><!----> |
| | | </div> |
| | | <!----><!----> |
| | | </div> |
| | | </van-col> |
| | | </van-row> |
| | | |
| | | <div |
| | | @click="formValue = from.availableBalanceUSD" |
| | | @click="formValue = from.availableBalance" |
| | | style=" |
| | | color: rgb(5, 106, 239); |
| | | text-align: right; |
| | |
| | | <div class="balance"> |
| | | <div>{{ $t("可用餘額") }}</div> |
| | | <div class="balance-text"> |
| | | {{ from.availableBalanceUSD || "0.0000" }} USD |
| | | {{ from.availableBalance || "0.0000" }} {{ from.symbolCode }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- transfer --> |
| | | <van-button type="primary" @click="transferIndex" class="but">{{ |
| | | $t("確認劃轉") |
| | | }}</van-button> |
| | |
| | | created() { |
| | | this.getMoneyData(); |
| | | }, |
| | | |
| | | components: {}, |
| | | data() { |
| | | return { |
| | | exchangeRate: 7.3, |
| | | formValue: "", |
| | | from: {}, |
| | | to: {}, |
| | |
| | | if (e.accectType === this.from.accectType) { |
| | | return Notify({ type: "warning", message: this.$t("不能选择一样的") }); |
| | | } |
| | | |
| | | this.to = e; |
| | | this.formValue = ""; |
| | | }, |
| | |
| | | padding: 0; |
| | | height: 60px; |
| | | color: var(--van-field-input-text-color); |
| | | line-height: inherit; |
| | | line-height: 60px; |
| | | text-align: left; |
| | | background-color: transparent; |
| | | border: 0; |
| | |
| | | <div v-if="rechargeSelect.key !== undefined"> |
| | | <div class="main-title">{{ $t("請選擇銀行卡") }}</div> |
| | | <van-cell is-link :title="bankCard.bankNo || $t('請選擇')" /> |
| | | <!-- @click="show = true" --> |
| | | <!-- <van-action-sheet |
| | | v-model="show" |
| | | :actions="actions" |
| | | :cancel-text="$t('hj106')" |
| | | close-on-click-action |
| | | @select="select" |
| | | /> --> |
| | | </div> |
| | | <div class="main-title">{{ $t("請選擇充值金額") }}</div> |
| | | <div class="white-input"> |
| | |
| | | <div> |
| | | <div class="dz-title" v-if="rechargeAccountData.key !== undefined"> |
| | | <div>餘額</div> |
| | | <div class="balance-text">{{ availableBalanceUSD }} USD</div> |
| | | <div class="balance-text"> |
| | | {{ availableBalanceUSD }} {{ symbolCode }} |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- <div class="dz-title"> |
| | |
| | | |
| | | // 提款聚到 |
| | | rechargeSelect: {}, |
| | | actions: [{ name: this.$t("銀行卡充值"), key: "YHK" }], |
| | | actions: [{ name: this.$t("hj215"), key: "YHK" }], |
| | | paymentShow: false, |
| | | |
| | | rechargeAccountShow: false, |
| | |
| | | key: "US", |
| | | }, |
| | | { |
| | | name: this.$t("IN"), |
| | | key: "IN", |
| | | }, |
| | | { |
| | | name: this.$t("MAS"), |
| | | key: "MAS", |
| | | }, |
| | |
| | | availableBalanceUSD: "0.0000", |
| | | getMoneyList: [], |
| | | assetsType: "", |
| | | symbolCode: "", |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | }, |
| | | methods: { |
| | | async setOutMoney() { |
| | | console.log(this.assetsType); |
| | | const res = await outMoney({ |
| | | amt: this.value, |
| | | assetsType: this.accectType, |
| | |
| | | res.data.map((item) => { |
| | | if (item.accectType === this.rechargeAccountData.key) { |
| | | console.log(item.accectType, "assetsType1"); |
| | | this.availableBalanceUSD = item.availableBalanceUSD; |
| | | this.availableBalanceUSD = item.availableBalance; |
| | | this.symbolCode = item.symbolCode; |
| | | this.accectType = item.accectType; |
| | | } |
| | | }); |
| | |
| | | this.rechargeAccountData = e; |
| | | (this.getMoneyList || []).map((item) => { |
| | | if (item.accectType === this.rechargeAccountData.key) { |
| | | console.log(item.accectType, "accectType2", item); |
| | | this.availableBalanceUSD = item.availableBalanceUSD; |
| | | this.symbolCode = item.symbolCode; |
| | | this.accectType = item.accectType; |
| | | } |
| | | }); |