Browse Source

更新标题和提现列表

master
torsenli 3 years ago
parent
commit
6245ca0894
  1. 8
      app.js
  2. 6
      i18n/lang/en.json
  3. 2
      i18n/lang/zh-CN.json
  4. 6
      i18n/lang/zh-TW.json
  5. 8
      manifest.json
  6. 489
      pages.json
  7. 780
      pages/assets/draw.vue
  8. 123
      pages/assets/records.vue
  9. 28
      pages/exchange/contract-history.vue
  10. 10
      pages/exchange/open-position.vue
  11. 2
      pages/income/index.vue

8
app.js

@ -12,12 +12,12 @@ if (process.env.NODE_ENV == 'production'||true) { //生产环境
// pc端地址 // pc端地址
pcUrl:'https://xmg.xusexchange.com/', pcUrl:'https://xmg.xusexchange.com/',
// app名称 // app名称
appName: 'XUSexchange', appName: 'XUSCoins',
// 版本 // 版本
version: '1.0.0', version: '1.0.0',
// 移动端地址 // 移动端地址
mobile: 'https://app.xusexchange.com/', mobile: 'https://app.xuscoins.com/',
down:"https://app.xusexchange.com/download/CINSCoin.html" down:"https://app.xuscoins.com/download/CINSCoin.html"
}; };
} else { //开发环境 } else { //开发环境
config = { config = {
@ -52,4 +52,4 @@ if (process.env.NODE_ENV == 'production'||true) { //生产环境
// mobile: 'https://h5.7coin.in' // mobile: 'https://h5.7coin.in'
// }; // };
} }
export default config; export default config;

6
i18n/lang/en.json

@ -9,7 +9,7 @@
"using": "payments using", "using": "payments using",
"crypto": "crypto", "crypto": "crypto",
"Why": "Why do you choose to buy", "Why": "Why do you choose to buy",
"digital": "digital currency in XUSexchange", "digital": "digital currency in XUSCoins",
"believe": "We believe Cryptolly is here to stay — and that a future worth building is one which opens its doors and invites everyone in ", "believe": "We believe Cryptolly is here to stay — and that a future worth building is one which opens its doors and invites everyone in ",
"help": "We help you make sense of the coins, the terms, the dense charts and market changes", "help": "We help you make sense of the coins, the terms, the dense charts and market changes",
"Clarity": "Clarity", "Clarity": "Clarity",
@ -18,7 +18,7 @@
"convenient": "convenient", "convenient": "convenient",
"key": "One key transaction, more convenient operation", "key": "One key transaction, more convenient operation",
"technology": "Our technology", "technology": "Our technology",
"XUSEXCHANGE": "XUSEXCHANGE adopts advanced technologies such as GSLB, distributed server cluster ,distributed storage, high speed memory trading engine with multiple machines, cold wallet, hot wallet with private key offline,etc.,to provide our customers with secure,stable and reliable digital asset trading services through multiple terminals such as web,mobile and desktop terminals ", "XUSCoins": "XUSCoins adopts advanced technologies such as GSLB, distributed server cluster ,distributed storage, high speed memory trading engine with multiple machines, cold wallet, hot wallet with private key offline,etc.,to provide our customers with secure,stable and reliable digital asset trading services through multiple terminals such as web,mobile and desktop terminals ",
"guide": "Beginner's guide", "guide": "Beginner's guide",
"Wear": "Wear an account", "Wear": "Wear an account",
"Get": "Register a trading account", "Get": "Register a trading account",
@ -794,7 +794,7 @@
"a9": "multiple", "a9": "multiple",
"b0": "Are you sure you want to log out?", "b0": "Are you sure you want to log out?",
"b1": "Sign in or register", "b1": "Sign in or register",
"b2": "Hi, welcome to XUSexchange", "b2": "Hi, welcome to XUSCoins",
"b3": "amount", "b3": "amount",
"b4": "spot index ", "b4": "spot index ",
"b5": "Contract index", "b5": "Contract index",

2
i18n/lang/zh-CN.json

@ -750,7 +750,7 @@
"a9": "倍数", "a9": "倍数",
"b0": "确定要退出登录吗?", "b0": "确定要退出登录吗?",
"b1": "登录或注册", "b1": "登录或注册",
"b2": "Hi,欢迎使用XUSexchange", "b2": "Hi,欢迎使用XUSCoins",
"b3": "量", "b3": "量",
"b4": "现货指数", "b4": "现货指数",
"b5": "合约指数", "b5": "合约指数",

6
i18n/lang/zh-TW.json

@ -8,7 +8,7 @@
"using": "支付使用", "using": "支付使用",
"crypto": "加密", "crypto": "加密",
"Why": "你為什麼選擇購買", "Why": "你為什麼選擇購買",
"digital": "XUSEXCHANGE的數字貨幣", "digital": "XUSCoins的數字貨幣",
"believe": "我們相信加密貨幣將一直存在--是一个值得建立的未來同時是一個敞開著并邀請每個人都加入的大門", "believe": "我們相信加密貨幣將一直存在--是一个值得建立的未來同時是一個敞開著并邀請每個人都加入的大門",
"help": "我們幫助你理解貨幣、條款、密集的圖表和市場變化", "help": "我們幫助你理解貨幣、條款、密集的圖表和市場變化",
"Clarity": "清晰度", "Clarity": "清晰度",
@ -17,7 +17,7 @@
"convenient": "方便", "convenient": "方便",
"key": "一鍵交易,操作更方便", "key": "一鍵交易,操作更方便",
"technology": "我們的技術", "technology": "我們的技術",
"XUSEXCHANGE": "XUSEXCHANGE採用GSLB、分佈式存儲、多機高速內存交易引擎、冷錢包、離線私鑰熱錢包等先進技術,通過網絡、移動和台式終端等多個終端為客戶提供安全、穩定和可靠的數字資產交易服務", "XUSCoins": "XUSCoins採用GSLB、分佈式存儲、多機高速內存交易引擎、冷錢包、離線私鑰熱錢包等先進技術,通過網絡、移動和台式終端等多個終端為客戶提供安全、穩定和可靠的數字資產交易服務",
"guide": "初學者指南", "guide": "初學者指南",
"Wear": "記下來", "Wear": "記下來",
"Get": "注册交易帳戶", "Get": "注册交易帳戶",
@ -792,7 +792,7 @@
"a9": "倍數", "a9": "倍數",
"b0": "確定要登出嗎?", "b0": "確定要登出嗎?",
"b1": "登入或注册", "b1": "登入或注册",
"b2": "Hi,歡迎使用XUSexchange", "b2": "Hi,歡迎使用XUSCoins",
"b3": "量", "b3": "量",
"b4": "現貨指數", "b4": "現貨指數",
"b5": "合約指數", "b5": "合約指數",

8
manifest.json

@ -1,5 +1,5 @@
{ {
"name" : "XUSexchange", "name" : "XUSCoins",
"appid" : "__UNI__88A589F", "appid" : "__UNI__88A589F",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.0",
@ -7,7 +7,7 @@
"transformPx" : false, "transformPx" : false,
"app-plus" : { "app-plus" : {
"compatible" : { "compatible" : {
"ignoreVersion" : true //trueHBuilderX1.9.0 "ignoreVersion" : true //trueHBuilderX1.9.0
}, },
"nvueCompiler" : "uni-app", "nvueCompiler" : "uni-app",
"compilerVersion" : 3, "compilerVersion" : 3,
@ -112,7 +112,7 @@
"router" : { "router" : {
"base" : "./" "base" : "./"
}, },
"domain" : "https://app.xusexchange.com", "domain" : "https://app.xuscoins.com",
"title" : "XUSexchange" "title" : "XUSCoins"
} }
} }

489
pages.json

@ -1,243 +1,250 @@
{ {
"pages": [ "pages": [
{ {
"path": "pages/startPage/index" "path": "pages/startPage/index"
}, },
{ {
"path": "pages/base/index", "path": "pages/base/index",
"style": { "style": {
"app-plus": { "app-plus": {
"bounce": "none" "bounce": "none"
} }
} }
}, },
{ {
"path": "pages/index/index" "path": "pages/index/index"
}, },
{ {
"path": "pages/currency/index" "path": "pages/currency/index"
}, },
{ {
"path": "pages/currency/list" "path": "pages/currency/list"
}, },
{ {
"path": "pages/exchange/exchangeHis" "path": "pages/exchange/exchangeHis"
}, },
{ {
"path": "pages/exchange/contractHis" "path": "pages/exchange/contractHis"
}, },
{ {
"path": "pages/exchange/his" "path": "pages/exchange/his"
}, },
{ {
"path": "pages/login/index" "path": "pages/login/index"
}, },
{ {
"path": "pages/purchase/index" "path": "pages/purchase/index"
}, },
{ {
"path": "pages/purchase/bill" "path": "pages/purchase/bill"
}, },
{ {
"path": "pages/reg/index" "path": "pages/reg/index"
}, },
{ {
"path": "pages/safe/forget-password" "path": "pages/safe/forget-password"
}, },
{ {
"path": "pages/notice/detail" "path": "pages/notice/detail"
}, },
{ {
"path": "pages/accountSettings/accountSettings" "path": "pages/accountSettings/accountSettings"
}, },
{ {
"path": "pages/assets/recharge" "path": "pages/assets/recharge"
}, },
{ {
"path": "pages/assets/paypal" "path": "pages/assets/paypal"
}, },
{ {
"path": "pages/assets/draw" "path": "pages/assets/draw"
}, },
{ {
"path": "pages/assets/address-list" "path": "pages/assets/address-list"
}, },
{ {
"path": "pages/assets/edit-address" "path": "pages/assets/edit-address"
}, },
{ {
"path": "pages/invite/index" "path": "pages/invite/index"
}, },
{ {
"path": "pages/invite/level" "path": "pages/invite/level"
}, },
{ {
"path": "pages/commission/index" "path": "pages/commission/index"
}, },
{ {
"path": "pages/commission/revoke" "path": "pages/commission/revoke"
}, },
{ {
"path": "pages/auth/index" "path": "pages/auth/index"
}, },
{ {
"path": "pages/auth/primary" "path": "pages/auth/primary"
}, },
{ {
"path": "pages/auth/senior" "path": "pages/auth/senior"
}, },
{ {
"path": "pages/safe/index" "path": "pages/safe/index"
}, },
{ {
"path": "pages/safe/login-password" "path": "pages/safe/login-password"
}, },
{ {
"path": "pages/safe/phone" "path": "pages/safe/phone"
}, },
{ {
"path": "pages/safe/google" "path": "pages/safe/google"
}, },
{ {
"path": "pages/safe/transaction-password" "path": "pages/safe/transaction-password"
}, },
{ {
"path": "pages/safe/email" "path": "pages/safe/email"
}, },
{ {
"path": "pages/notice/index" "path": "pages/notice/index"
}, },
{ {
"path": "pages/notice/msg-detail" "path": "pages/notice/msg-detail"
}, },
{ {
"path": "pages/option/index" "path": "pages/option/index"
}, },
{ {
"path": "pages/transfer/index" "path": "pages/transfer/index"
}, },
{ {
"path": "pages/transfer/bill" "path": "pages/transfer/bill"
}, },
{ {
"path": "pages/assets/bill" "path": "pages/assets/bill"
}, },
{ {
"path": "pages/exchange/index" "path": "pages/exchange/index"
}, },
{ {
"path": "pages/assets/account-bill" "path": "pages/assets/account-bill"
}, },
{ {
"path": "pages/assets/currency-bill" "path": "pages/assets/currency-bill"
}, },
{ {
"path": "pages/help/index" "path": "pages/help/index"
}, },
{ {
"path": "pages/help/detail" "path": "pages/help/detail"
}, },
{ {
"path": "pages/help/sort" "path": "pages/help/sort"
}, },
{ {
"path": "pages/list/list" "path": "pages/list/list"
}, },
{ {
"path": "pages/option/delivery-detail" "path": "pages/option/delivery-detail"
}, },
{ {
"path": "pages/income/index" "path": "pages/income/index"
}, },
{ {
"path": "pages/otc/send-ad" "path": "pages/otc/send-ad"
}, },
{ {
"path": "pages/otc/order" "path": "pages/otc/order"
}, },
{ {
"path": "pages/otc/ad" "path": "pages/otc/ad"
}, },
{ {
"path": "pages/otc/detail" "path": "pages/otc/detail"
}, },
{ {
"path": "pages/otc/pays" "path": "pages/otc/pays"
}, },
{ {
"path": "pages/otc/bind-pay" "path": "pages/otc/bind-pay"
}, },
{ {
"path": "pages/otc/bill" "path": "pages/otc/bill"
}, },
{ {
"path": "pages/service/service" "path": "pages/service/service"
}, },
{ {
"path": "pages/service/index", "path": "pages/service/index",
"style": { "style": {
"navigationBarTitleText": "咨询客服", "navigationBarTitleText": "咨询客服",
"navigationStyle": "default", "navigationStyle": "default",
"app-plus": { "app-plus": {
"titleNView": { "titleNView": {
} }
} }
} }
}, },
{ {
"path": "pages/service/otc", "path": "pages/service/otc",
"style": { "style": {
"navigationBarTitleText": "otc", "navigationBarTitleText": "otc",
"navigationStyle": "default", "navigationStyle": "default",
"app-plus": { "app-plus": {
"titleNView": { "titleNView": {
} }
} }
} }
}, },
{ {
"path": "pages/upgrade/index", "path": "pages/upgrade/index",
"style": { "style": {
"navigationStyle": "custom", "navigationStyle": "custom",
"app-plus": { "app-plus": {
"animationType": "fade-in", "animationType": "fade-in",
"background": "transparent", "background": "transparent",
"backgroundColor": "rgba(0,0,0,0)", "backgroundColor": "rgba(0,0,0,0)",
"popGesture": "none" "popGesture": "none"
} }
} }
} },
], {
"globalStyle": { "path": "pages/assets/records",
"app-plus": { "style": {
"titleNView": false "navigationBarTitleText": "",
}, "enablePullDownRefresh": false
"navigationBarTextStyle": "black", }
"navigationBarTitleText": "XUSexchange", }
"navigationBarBackgroundColor": "#007AFF", ],
"backgroundColor": "#FFFFFF" "globalStyle": {
}, "app-plus": {
"easycom": { "titleNView": false
"autoscan": true, },
"custom": { "navigationBarTextStyle": "black",
"^van-(.*)": "@/wxcomponents/vant/$1/index.vue", "navigationBarTitleText": "XUSCoins",
"v-button": "@/layout/vButton.vue", "navigationBarBackgroundColor": "#007AFF",
"v-input": "@/layout/vInput.vue", "backgroundColor": "#FFFFFF"
"v-header": "@/layout/vHeader.vue", },
"v-code": "@/layout/vCode.vue", "easycom": {
"v-country": "@/layout/vCountry.vue", "autoscan": true,
"v-link": "@/layout/vLink.vue", "custom": {
"v-notice-bar": "@/layout/vNoticeBar.vue", "^van-(.*)": "@/wxcomponents/vant/$1/index.vue",
"v-lang": "@/layout/vLang.vue", "v-button": "@/layout/vButton.vue",
"v-qr": "@/layout/vQr.vue", "v-input": "@/layout/vInput.vue",
"v-scroll": "@/layout/vScroll.vue", "v-header": "@/layout/vHeader.vue",
"v-paging": "@/layout/vPaging.vue", "v-code": "@/layout/vCode.vue",
"v-curve": "@/layout/vCurve.vue", "v-country": "@/layout/vCountry.vue",
"v-dropdwon": "@/layout/vDropdwon.vue", "v-link": "@/layout/vLink.vue",
"v-picker": "@/layout/vPicker.vue", "v-notice-bar": "@/layout/vNoticeBar.vue",
"v-page": "@/layout/vPage.vue", "v-lang": "@/layout/vLang.vue",
"not-data": "@/layout/notData.vue", "v-qr": "@/layout/vQr.vue",
"special-Banner": "@/layout/specialBanner.vue" "v-scroll": "@/layout/vScroll.vue",
} "v-paging": "@/layout/vPaging.vue",
} "v-curve": "@/layout/vCurve.vue",
"v-dropdwon": "@/layout/vDropdwon.vue",
"v-picker": "@/layout/vPicker.vue",
"v-page": "@/layout/vPage.vue",
"not-data": "@/layout/notData.vue",
"special-Banner": "@/layout/specialBanner.vue"
}
}
} }

780
pages/assets/draw.vue

@ -1,97 +1,121 @@
<template> <template>
<v-page> <v-page>
<v-header> <v-header>
<template #title> <template #title>
<view> <view>
{{ $t("assets.b6") }} {{ $t("assets.b6") }}
<!-- <span class="color-theme-1">{{ coin }}</span> --> <!-- <span class="color-theme-1">{{ coin }}</span> -->
</view> </view>
</template> </template>
</v-header> <template #right>
<view class="layout-main"> <v-link :to="'/pages/assets/records?type='+type">
<view class="coin border-b p-x-lg p-md d-flex justify-between m-t-md" @click="coinListShow=true"> <van-icon class="fn-20 m-t-xs" name="todo-list-o" />
<view class="fn-25 color-light">{{coin}}</view> </v-link>
<view class="d-flex align-center"> </template>
{{$t('recharge.a0')}}<van-icon name="arrow" /> </v-header>
</view> <view class="layout-main">
</view> <view class="coin border-b p-x-lg p-md d-flex justify-between m-t-md" @click="coinListShow=true">
<view class="fn-25 color-light">{{ coin }}</view>
<view class="d-flex align-center">
{{ $t('recharge.a0') }}
<van-icon name="arrow"/>
</view>
</view>
<view class="bg-panel-3" style="min-height: 100%; padding-bottom: 220rpx;"> <view class="bg-panel-3" style="min-height: 100%; padding-bottom: 220rpx;">
<view class=""> <view class="">
<view <view
class="d-flex flex-wrap justify-between align-center p-x-lg p-y-ms color-light" class="d-flex flex-wrap justify-between align-center p-x-lg p-y-ms color-light"
v-if="coin=='USDT'" v-if="coin=='USDT'"
> >
<!-- <span>{{$t('assets.b7')}}</span> --> <!-- <span>{{$t('assets.b7')}}</span> -->
<view class="group d-flex fn-12 color-light"> <view class="group d-flex fn-12 color-light">
<!-- <view class="rounded-xs p-x-lg p-y-ms m-r-md" <!-- <view class="rounded-xs p-x-lg p-y-ms m-r-md"
:class="rechargeType==1?'bor-active':'bg-panel-3 border'" :class="rechargeType==1?'bor-active':'bg-panel-3 border'"
size="mini" size="mini"
@click="changeRechargeType(1)" @click="changeRechargeType(1)"
>OMNI</view> --> >OMNI</view> -->
<view class="rounded-xs p-x-lg p-y-ms m-r-md" <view class="rounded-xs p-x-lg p-y-ms m-r-md"
size="mini" size="mini"
@click="changeRechargeType(2)" @click="changeRechargeType(2)"
:class="rechargeType==2?'bor-active':'bg-panel-3 border'" :class="rechargeType==2?'bor-active':'bg-panel-3 border'"
>ERC20</view> >ERC20
<view class="rounded-xs p-x-lg p-y-ms m-r-md" </view>
size="mini" <view class="rounded-xs p-x-lg p-y-ms m-r-md"
@click="changeRechargeType(3)" size="mini"
:class="rechargeType==3?'bor-active':'bg-panel-3 border'" @click="changeRechargeType(3)"
>TRC20</view> :class="rechargeType==3?'bor-active':'bg-panel-3 border'"
>TRC20
</view>
</view> </view>
</view> </view>
<view class="p-x-lg d-flex justify-between flex-wrap align-center p-y-xs"> <view class="p-x-lg d-flex justify-between flex-wrap align-center p-y-xs">
<view class="color-light d-block w-max m-y-ms color-light fn-15">{{ $t("assets.b8") }}</view> <view class="color-light d-block w-max m-y-ms color-light fn-15">{{ $t("assets.b8") }}</view>
<v-input v-model="form.address" class="bg-form-panel-3 p-sm color-light w-max fn-13 rounded-xs" :placeholder="$t('assets.b9')"> <v-input v-model="form.address" class="bg-form-panel-3 p-sm color-light w-max fn-13 rounded-xs"
<!--<template #right>--> :placeholder="$t('assets.b9')">
<!-- &lt;!&ndash; #ifdef H5 &ndash;&gt;--> <!--<template #right>-->
<!-- <v-link tag="span" :to="{path:'/pages/assets/address-list',query:{--> <!-- &lt;!&ndash; #ifdef H5 &ndash;&gt;-->
<!-- from:'draw'--> <!-- <v-link tag="span" :to="{path:'/pages/assets/address-list',query:{-->
<!-- }}" class="color-light fn-20 h-20">--> <!-- from:'draw'-->
<!-- <van-icon class="color-theme-1" name="orders-o" />--> <!-- }}" class="color-light fn-20 h-20">-->
<!-- </v-link>--> <!-- <van-icon class="color-theme-1" name="orders-o" />-->
<!-- &lt;!&ndash; #endif &ndash;&gt;--> <!-- </v-link>-->
<!-- &lt;!&ndash; #ifndef H5 &ndash;&gt;--> <!-- &lt;!&ndash; #endif &ndash;&gt;-->
<!-- <van-icon class="color-theme-1" @click="saoma" name="scan" />--> <!-- &lt;!&ndash; #ifndef H5 &ndash;&gt;-->
<!-- &lt;!&ndash; #endif &ndash;&gt;--> <!-- <van-icon class="color-theme-1" @click="saoma" name="scan" />-->
<!--</template>--> <!-- &lt;!&ndash; #endif &ndash;&gt;-->
</v-input> <!--</template>-->
<view class="color-sell fn-12 m-t-xs"> </v-input>
{{$t('recharge.a5')}} <view class="color-sell fn-12 m-t-xs">
</view> {{ $t('recharge.a5') }}
</view> </view>
</view> </view>
<view class="form bg-panel-3 p-x-lg"> </view>
<view class="d-flex align-center p-y-md justify-between color-light fn-15"> <view class="form bg-panel-3 p-x-lg">
<span class="color-light">{{ $t("assets.c0") }}</span> <view class="d-flex align-center p-y-md justify-between color-light fn-15">
<span>{{ $t("assets.c1") }}{{ withdrawFee.usable_balance }} <span class="color-light">{{ $t("assets.c0") }}</span>
<span>{{ $t("assets.c1") }}{{ withdrawFee.usable_balance }}
{{ coin }}</span> {{ coin }}</span>
</view> </view>
<view class="d-flex align-end p-y-xs justify-between bg-form-panel-3 rounded-xs p-sm p-x-ms"> <view class="d-flex align-end p-y-xs justify-between bg-form-panel-3 rounded-xs p-sm p-x-ms">
<v-input type="number" v-model="form.amount" :min="withdrawFee.withdrawal_min" :max="withdrawFee.withdrawal_max" class=" w-8/12 color-light fn-13" :placeholder="$t('assets.c2')"></v-input> <v-input type="number" v-model="form.amount" :min="withdrawFee.withdrawal_min"
<view class="d-flex align-end"> :max="withdrawFee.withdrawal_max" class=" w-8/12 color-light fn-13"
<span class="unit fn-16 flex-shrink">{{ coin }}</span> :placeholder="$t('assets.c2')"></v-input>
<view class="all color-theme-1 m-l-md flex-shrink" @click="form.amount = withdrawFee.usable_balance">{{ $t("assets.c3") }}</view> <view class="d-flex align-end">
</view> <span class="unit fn-16 flex-shrink">{{ coin }}</span>
</view> <view class="all color-theme-1 m-l-md flex-shrink" @click="form.amount = withdrawFee.usable_balance">
<view class="d-flex align-center p-y-xs justify-between fn-13"> {{ $t("assets.c3") }}
<span>{{$t('common.c1')}}</span> </view>
<span class="color-light">{{ withdrawFee.withdrawal_min }} {{coin}}</span> </view>
</view> </view>
<view class="d-flex align-center p-y-xs m-t-ms justify-between color-light fn-15"> <view class="d-flex align-center p-y-xs justify-between fn-13">
<span>{{ $t("assets.c4") }}</span> <span>{{ $t('common.c1') }}</span>
<!-- <span class="color-light">{{ withdrawFee.withdrawal_fee }} {{coin}}</span> --> <span class="color-light">{{ withdrawFee.withdrawal_min }} {{ coin }}</span>
</view> </view>
<view class="d-flex align-end p-y-xs justify-between bg-form-panel-3 rounded-xs p-y-sm"> <view class="d-flex align-center p-y-xs m-t-ms justify-between color-light fn-15">
<span>{{ $t("assets.c4") }}</span>
<!-- <span class="color-light">{{ withdrawFee.withdrawal_fee }} {{coin}}</span> -->
</view>
<view class="d-flex align-end p-y-xs justify-between bg-form-panel-3 rounded-xs p-y-sm">
<v-input v-model="coin=='USDT'&&rechargeType==3?withdrawFee.trc20:withdrawFee.withdrawal_fee" disabled
class="p-x-ms color-light w-max fn-13 rounded-xs" :placeholder="$t('assets.b9')">
<template #right>
{{ coin }}
</template>
</v-input>
</view>
<view class="d-flex align-center p-y-xs m-t-ms justify-between color-light fn-15">
<span>{{ $t("reg.a8") }}</span>
<!-- <span class="color-light">{{ withdrawFee.withdrawal_fee }} {{coin}}</span> -->
</view>
<view class="d-flex align-end p-y-xs justify-between bg-form-panel-3 rounded-xs p-y-sm">
<v-input type="password" v-model="form.password" class="p-x-ms color-light w-max fn-13 rounded-xs" :placeholder="$t('reg.a9')">
<v-input v-model="coin=='USDT'&&rechargeType==3?withdrawFee.trc20:withdrawFee.withdrawal_fee" disabled class="p-x-ms color-light w-max fn-13 rounded-xs" :placeholder="$t('assets.b9')"> </v-input>
<template #right> </view>
{{coin}}
</template>
</v-input>
</view>
<view class="d-flex align-center p-y-xs m-t-ms justify-between color-light fn-15"> <view class="d-flex align-center p-y-xs m-t-ms justify-between color-light fn-15">
<span>{{ $t("reg.a8") }}</span> <span>{{ $t("reg.a8") }}</span>
<!-- <span class="color-light">{{ withdrawFee.withdrawal_fee }} {{coin}}</span> --> <!-- <span class="color-light">{{ withdrawFee.withdrawal_fee }} {{coin}}</span> -->
@ -102,313 +126,349 @@
</v-input> </v-input>
</view> </view>
</view>
<view class="form bg-panel-3 p-x-lg p-y-md">
<ul class="fn-md rounded-md m-y-xs line-height-2">
<li>·{{ $t("assets.c5") }}</li>
<li>·{{ $t("assets.c6") }}</li>
<li>·{{ $t("assets.c7") }}</li>
</ul>
</view>
<view class="rounded-md m-b-lg" v-if="list.length">
<view class="title d-flex justify-between p-x-md p-y-xs align-center color-light">
<span class="fn-lg">{{ $t("assets.c8") }}</span>
</view>
<view class="p-x-md">
<table class="w-max">
<thead class="p-x-md">
<tr class="fn-sm p-x-md">
<th class="p-b-md fn-left p-l-md">{{ $t("assets.c9") }}</th>
<th class="p-b-md fn-left">{{ $t("assets.d0") }}</th>
<th class="p-b-md fn-right p-r-md">{{ $t("assets.c0") }}</th>
<th class="p-b-md fn-right p-r-md">{{$t('exchange.g3')}}</th>
</tr>
</thead>
<tbody>
<tr class="color-light trChange p-x-md rounded-md" v-for="item in list" :key="item.id">
<td class="p-y-xs p-l-md rounded-tl-sm rounded-bl-sm fn-sm">
{{ item.datetime | parseTime }}
</td>
<td>
<view>{{item.status_text}}</view>
</td>
<td>
{{ item.amount }}
<span class="color-default">({{ item.coin_name }})</span>
</td>
<td class="fn-right p-r-md rounded-tr-sm rounded-br-sm">
<v-button size="mini" v-if="item.status==0" type="danger" @click="cancelWithdraw(item)">{{$t('exchange.g4')}}</v-button>
</td>
</tr>
<tr v-if="loadMore">
<td colspan="3" class="fn-center p-xs link-active" @click="more">
{{ $t("assets.d4") }}
</td>
</tr>
</tbody>
</table>
</view>
</view>
<view class="bot w-max bg-panel-3 p-lg box-size">
<v-button class="w-max m-y-md rounded-xs" block type="yellow" @click="toDraw" ref="btn">{{ $t("assets.b6") }}</v-button>
</view>
</view>
</view> </view>
<view class="form bg-panel-3 p-x-lg p-y-md">
<ul class="fn-md rounded-md m-y-xs line-height-2">
<li>·{{ $t("assets.c5") }}</li>
<li>·{{ $t("assets.c6") }}</li>
<li>·{{ $t("assets.c7") }}</li>
</ul>
</view>
<!-- <view class="rounded-md m-b-lg" v-if="list.length" style="padding-bottom: 100px !important;">
<view class="title d-flex justify-between p-x-md p-y-xs align-center color-light">
<span class="fn-lg">{{ $t("assets.c8") }}</span>
</view>
<view class="p-x-md">
<table class="w-max">
<thead class="p-x-md">
<tr class="fn-sm p-x-md">
<th class="p-b-md fn-left p-l-md">{{ $t("assets.c9") }}</th>
<th class="p-b-md fn-left">{{ $t("assets.d0") }}</th>
<th class="p-b-md fn-right p-r-md">{{ $t("assets.c0") }}</th>
<th class="p-b-md fn-right p-r-md">{{ $t('exchange.g3') }}</th>
</tr>
</thead>
<tbody>
<tr class="color-light trChange p-x-md rounded-md" v-for="item in list" :key="item.id">
<td class="p-y-xs p-l-md rounded-tl-sm rounded-bl-sm fn-sm">
{{ item.datetime | parseTime }}
</td>
<td>
<view>{{ item.status_text }}</view>
</td>
<td>
{{ item.amount }}
<span class="color-default">({{ item.coin_name }})</span>
</td>
<td class="fn-right p-r-md rounded-tr-sm rounded-br-sm">
<v-button size="mini" v-if="item.status==0" type="danger" @click="cancelWithdraw(item)">
{{ $t('exchange.g4') }}
</v-button>
</td>
</tr>
<tr v-if="loadMore">
<td colspan="3" class="fn-center p-xs link-active" @click="more">
{{ $t("assets.d4") }}
</td>
</tr>
</tbody>
</table>
</view>
</view> -->
<view class="bot w-max bg-panel-3 p-lg box-size">
<v-button class="w-max m-y-md rounded-xs" block type="yellow" @click="toDraw" ref="btn">{{
$t("assets.b6")
}}
</v-button>
</view>
</view>
</view>
<coin-list ref="coinList" v-model="coin" @close="coinListShow = false" v-show="coinListShow" /> <coin-list ref="coinList" v-model="coin" @close="coinListShow = false" v-show="coinListShow"/>
<van-popup :show="secondaryShow" @close="secondaryShow=false" closeable close-on-popstate position="bottom" custom-style="height:40%"> <van-popup :show="secondaryShow" @close="secondaryShow=false" closeable close-on-popstate position="bottom"
<van-tabs class="m-t-lg p-t-lg" v-if="secondaryShow" :sticky="false" :active="form.code_type" @change="changeTab"> custom-style="height:40%">
<van-tab title="Google" v-if="withdrawFee.google_status==1" :name="3"> <van-tabs class="m-t-lg p-t-lg" v-if="secondaryShow" :sticky="false" :active="form.code_type" @change="changeTab">
<v-input class="border h-40 m-y-md m-x-lg p-x-md" type="number" :placeholder="$t('common.code')" v-model="form.code"></v-input> <van-tab title="Google" v-if="withdrawFee.google_status==1" :name="3">
</van-tab> <v-input class="border h-40 m-y-md m-x-lg p-x-md" type="number" :placeholder="$t('common.code')"
<van-tab :title="$t('login.a8')" v-if="withdrawFee.phone_status==1" :name="1"> v-model="form.code"></v-input>
<v-input class="border h-40 m-y-md m-x-lg p-x-md" type="number" :placeholder="$t('common.code')" v-model="form.code"> </van-tab>
<template #right> <van-tab :title="$t('login.a8')" v-if="withdrawFee.phone_status==1" :name="1">
<v-code type="green-plain" url="/user/getCode" :data="{type:1}" ref="mobileCode"></v-code> <v-input class="border h-40 m-y-md m-x-lg p-x-md" type="number" :placeholder="$t('common.code')"
</template> v-model="form.code">
</v-input> <template #right>
<v-code type="green-plain" url="/user/getCode" :data="{type:1}" ref="mobileCode"></v-code>
</template>
</v-input>
</van-tab> </van-tab>
<van-tab :title="$t('login.a9')" v-if="withdrawFee.email_status==1" :name="2"> <van-tab :title="$t('login.a9')" v-if="withdrawFee.email_status==1" :name="2">
<v-input class="border h-40 m-y-md m-x-lg p-x-md" type="number" :placeholder="$t('common.code')" v-model="form.code"> <v-input class="border h-40 m-y-md m-x-lg p-x-md" type="number" :placeholder="$t('common.code')"
<template #right> v-model="form.code">
<v-code type="green-plain" url="/user/getCode" :data="{type:2}" ref="emailCode"></v-code> <template #right>
</template> <v-code type="green-plain" url="/user/getCode" :data="{type:2}" ref="emailCode"></v-code>
</v-input> </template>
<view class="m-md"></view> </v-input>
</van-tab> <view class="m-md"></view>
</van-tabs> </van-tab>
<view class="m-md"> </van-tabs>
<v-button type="yellow" block class="w-max rounded-md" @click="draw">{{$t('common.confirm')}}</v-button> <view class="m-md">
</view> <v-button type="yellow" block class="w-max rounded-md" @click="draw">{{ $t('common.confirm') }}</v-button>
</van-popup> </view>
<van-toast id="van-toast" /> </van-popup>
</v-page> <van-toast id="van-toast"/>
</v-page>
</template> </template>
<script> <script>
import coinList from "./coin-list"; import coinList from "./coin-list";
import Wallet from "@/api/wallet"; import Wallet from "@/api/wallet";
import formData from "@/utils/class/date"; import formData from "@/utils/class/date";
export default { export default {
components: { components: {
coinList, coinList,
}, },
data() { data() {
return { return {
coinListShow: false, coinListShow: false,
coin: "", coin: "",
rechargeType: 2, rechargeType: 2,
form: { form: {
coin_id: "", coin_id: "",
amount: "", amount: "",
address: "", password:"",
addressType: "", address: "",
code_type: 1, addressType: "",
code_type: 1,
code: '', code: '',
password: '' password: ''
}, },
withdrawFee: {}, withdrawFee: {},
list: [], list: [],
page: 1, page: 1,
loadMore: true, loadMore: true,
secondaryShow:false secondaryShow: false,
}; type: 'draw'
};
},
computed: {
activeCoin() {
if (!this.coin) return {};
return this.$refs.coinList.coinList.find(
(item) => item.coin_name == this.coin
);
}, },
computed: { },
activeCoin() { watch: {
if (!this.coin) return {}; coin(n) {
return this.$refs.coinList.coinList.find( if (n) {
(item) => item.coin_name == this.coin this.form.address = "";
); if (this.coin != "USDT") {
}, this.rechargeType = 1;
} else {
this.rechargeType = 2;
}
this.withdrawalBalance();
}
}, },
watch: { },
coin(n) { filters: {
if (n) { parseTime(val) {
this.form.address = ""; return formData.parseTime(val);
if (this.coin != "USDT") {
this.rechargeType = 1;
}else{
this.rechargeType = 2;
}
this.withdrawalBalance();
}
},
}, },
filters: { },
parseTime(val) { mounted() {
return formData.parseTime(val); uni.$on('selectAddress', (e) => {
}, this.form.address = e
})
},
methods: {
saoma() {
let that = this;
uni.scanCode({
success: function (res) {
that.form.address = res.result;
}
});
}, },
mounted() { changeRechargeType(idx) {
uni.$on('selectAddress', (e) => { this.rechargeType = idx;
this.form.address = e this.withdrawalBalance();
})
}, },
methods: { //
saoma(){ withdrawalBalance() {
let that = this; let address_type = 1
uni.scanCode({ let data = {
success: function(res) { coin_name: this.coin,
that.form.address = res.result; address_type: this.rechargeType
} };
}); Wallet.withdrawalBalance(data).then((res) => {
}, // console.info(res)
changeRechargeType(idx) { this.withdrawFee = res.data;
this.rechargeType = idx; });
this.withdrawalBalance(); },
}, //
// toDraw() {
withdrawalBalance() { if (!this.form.address) {
let address_type=1 this.$toast(this.$t('assets.b9'))
let data = { return
coin_name: this.coin, }
address_type:this.rechargeType if (!this.form.amount) {
}; this.$toast(this.$t('assets.c2'))
Wallet.withdrawalBalance(data).then((res) => { return
// console.info(res) }
this.withdrawFee = res.data;
});
},
//
toDraw(){
if(!this.form.address){
this.$toast(this.$t('assets.b9'))
return
}
if(!this.form.amount){
this.$toast(this.$t('assets.c2'))
return
}
if(!this.form.password){ if(!this.form.password){
this.$toast(this.$t('reg.a9')) this.$toast(this.$t('reg.a9'))
return return
} }
let data = this.withdrawFee let data = this.withdrawFee
if (data.withdraw_switch == 1) { if (data.withdraw_switch == 1) {
this.secondaryShow = true this.secondaryShow = true
if (data.google_status == 1) { if (data.google_status == 1) {
this.form.code_type = 3; this.form.code_type = 3;
} else if (data.phone_status == 1) { } else if (data.phone_status == 1) {
this.form.code_type = 1; this.form.code_type = 1;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.mobileCode.send(); this.$refs.mobileCode.send();
}); });
} else if (data.email_status == 1) { } else if (data.email_status == 1) {
this.form.code_type = 2; this.form.code_type = 2;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.emailCode.send(); this.$refs.emailCode.send();
}); });
} }
} else {
this.draw()
}
},
draw() {
this.form.addressType = this.rechargeType;
this.form.coin_id = this.activeCoin.coin_id;
Wallet.withdraw(this.form, {btn: this.$refs.btn})
.then((res) => {
this.secondaryShow = false
this.form.code = ''
if (res.code == 4001) {
this.$toast(res.message);
} else { } else {
this.draw() this.$toast.success(this.$t("assets.d5") + "!");
} this.form.amount = ''
}, setTimeout(()=>{
draw() { uni.navigateTo({
this.form.addressType = this.rechargeType; url:'/pages/assets/records?type='+this.type
this.form.coin_id = this.activeCoin.coin_id;
Wallet.withdraw(this.form, { btn: this.$refs.btn })
.then((res) => {
this.secondaryShow = false
this.form.code=''
if(res.code=4001){
this.$toast(res.message);
}else{
this.$toast.success(this.$t("assets.d5") + "!");
this.form.amount=''
}
}) })
.catch(() => { }); }, 1500)
}, // setTimeout(()=>{
reset() { // this.getWithdrawRecords();
this.loadMore = true; // }, 2000)
this.page = 1; // setTimeout(()=>{
this.getWithdrawRecords(); // this.getWithdrawRecords();
}, // }, 3000)
more() { }
this.page++; })
this.getWithdrawRecords(); .catch(() => {
}, });
// },
getWithdrawRecords() { reset() {
let data = { this.loadMore = true;
page: this.page, this.page = 1;
}; this.getWithdrawRecords();
Wallet.withdrawalRecord(data).then((res) => { },
if (res.data.current_page == 1) this.list = []; more() {
this.list = [...this.list, ...res.data.data]; this.page++;
if (res.data.data.length < res.data.per_page) this.loadMore = false; this.getWithdrawRecords();
});
},
//
cancelWithdraw(item) {
Wallet.cancelWithdraw({ withdraw_id: item.id }).then(() => {
this.$toast(this.$t('exchange.g6'))
this.reset();
})
},
changeTab(ev) {
this.form.code_type = ev.detail.name
},
}, },
created() { //
this.getWithdrawRecords(); getWithdrawRecords() {
let data = {
page: this.page,
};
Wallet.withdrawalRecord(data).then((res) => {
if (res.data.current_page == 1) this.list = [];
let list = [...this.list, ...res.data.data];//
this.list.splice(0,this.list.length,...list);
// this.list.push(...list);
console.log('length---------------',this.list.length, '页数:',res.data.current_page);
if (res.data.data.length < res.data.per_page) this.loadMore = false;
});
}, },
//
cancelWithdraw(item) {
Wallet.cancelWithdraw({withdraw_id: item.id}).then(() => {
this.$toast(this.$t('exchange.g6'))
this.reset();
})
},
changeTab(ev) {
this.form.code_type = ev.detail.name
},
},
created() {
this.getWithdrawRecords();
},
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.trChange:nth-child(2n-1) { .trChange:nth-child(2n-1) {
box-shadow: $shadow; box-shadow: $shadow;
border-radius: $border-radius-xs; border-radius: $border-radius-xs;
td {
background: $panel-3; td {
padding-top: $padding-sm; background: $panel-3;
padding-bottom: $padding-sm; padding-top: $padding-sm;
} padding-bottom: $padding-sm;
}
} }
.bor-active{
border: 1px solid $theme-1; .bor-active {
position: relative; border: 1px solid $theme-1;
overflow: hidden; position: relative;
color: $theme-1; overflow: hidden;
color: $theme-1;
} }
.bor-active::before{
content: ''; .bor-active::before {
position: absolute; content: '';
right: 0; position: absolute;
bottom:-2px; right: 0;
height: 0; bottom: -2px;
width: 0; height: 0;
border: 10px solid; width: 0;
border-color:transparent $theme-1 $theme-1 transparent; border: 10px solid;
text-align: center; border-color: transparent $theme-1 $theme-1 transparent;
text-align: center;
} }
.bor-active::after{
content: '√'; .bor-active::after {
position: absolute; content: '√';
right: -4px; position: absolute;
bottom: -1px; right: -4px;
height: 15px; bottom: -1px;
width: 15px; height: 15px;
width: 20px; width: 15px;
transform: scale(0.7); width: 20px;
text-align: center; transform: scale(0.7);
color: white; text-align: center;
color: white;
} }
.border-b{
border-bottom: 5px solid $panel-3; .border-b {
border-bottom: 5px solid $panel-3;
} }
.autowidth{
margin: 0 auto; .autowidth {
margin: 0 auto;
} }
.bg-lin{
background: linear-gradient(to right,#f6c769,#f3b644); .bg-lin {
background: linear-gradient(to right, #f6c769, #f3b644);
} }
.color-black{
color: black; .color-black {
color: black;
} }
.bot{
position: fixed; .bot {
bottom: 0; position: fixed;
bottom: 0;
} }
</style> </style>

123
pages/assets/records.vue

@ -0,0 +1,123 @@
<template>
<v-page>
<v-header>
<template #title>
<view v-if="type=='draw'">
{{ $t("assets.c8") }}
</view>
<view v-if="type=='recharge'">
{{ $t('assets.f4') }}
</view>
</template>
</v-header>
<view class="layout-main">
<view class="bg-panel-3" style="height: 100%;">
<view class="rounded-md m-b-lg" v-if="list.length" style="padding-bottom: 100px !important;">
<view class="">
<table class="w-max">
<thead class="p-x-md">
<tr class="fn-sm p-x-md">
<th class="p-b-md fn-left p-l-md">{{ $t("assets.c9") }}</th>
<th class="p-b-md fn-left">{{ $t("assets.d0") }}</th>
<th class="p-b-md fn-right p-r-md">{{ $t("assets.c0") }}</th>
</tr>
</thead>
<tbody>
<tr class="color-light trChange p-x-md rounded-md" v-for="item in list" :key="item.id">
<td class="p-y-xs p-l-md rounded-tl-sm rounded-bl-sm fn-sm">
{{ item.datetime | parseTime }}
</td>
<td v-if="type=='draw'">
<view>{{ item.status_text }}</view>
</td>
<td v-if="type=='recharge'">
<view v-if="item.status==0">{{$t('assets.d1')}}</view>
<view v-if="item.status==1" class="color-buy">{{$t('assets.d2')}}</view>
<view v-if="item.status==2" class="color-sell">{{$t('assets.d3')}}</view>
</td>
<td class="fn-right p-r-md rounded-tr-sm rounded-br-sm">
{{ item.amount }}
<span class="color-default">({{ item.coin_name }})</span>
</td>
</tr>
<!-- <tr v-if="loadMore">
<td colspan="3" class="fn-center p-xs link-active" @click="more">
{{ $t("assets.d4") }}
</td>
</tr> -->
</tbody>
</table>
</view>
</view>
</view>
</view>
</v-page>
</template>
<script>
import Wallet from "@/api/wallet";
import formData from "@/utils/class/date";
export default {
data() {
return {
type: '',
list: [],
page: 1,
loadMore: true
}
},
filters: {
parseTime(val) {
return formData.parseTime(val);
},
},
methods: {
//
getWithdrawRecords() {
let data = {
page: this.page,
};
Wallet.withdrawalRecord(data).then((res) => {
if (res.data.current_page == 1) this.list = [];
let list = [...this.list, ...res.data.data];//
this.list.splice(0,this.list.length,...list);
// this.list.push(...list);
console.log('length---------------',this.list.length, '页数:',res.data.current_page);
if (res.data.data.length < res.data.per_page) this.loadMore = false;
});
},
//
depositHistory() {
let data = {
page: this.page,
};
Wallet.depositHistory(data).then((res) => {
if (res.data.current_page == 1) this.list = [];
this.list = [...this.list, ...res.data.data];
if (res.data.data.length < res.data.per_page) this.loadMore = false;
});
},
more() {
this.page++;
if(this.type=='draw'){
this.getWithdrawRecords();
}else if(this.type=='recharge'){
this.depositHistory();
}
},
},
onLoad(e) {
console.log('---------',e);
this.type = e.type;
if(e.type=='draw'){
this.getWithdrawRecords();
}else if(e.type=='recharge'){
this.depositHistory();
}
}
}
</script>
<style>
</style>

28
pages/exchange/contract-history.vue

@ -2,13 +2,13 @@
<v-paging :ajax="getHistoryEntrust" class="h-max" ref="vPag"> <v-paging :ajax="getHistoryEntrust" class="h-max" ref="vPag">
<template #box="list"> <template #box="list">
<van-empty v-if="!$list(list).length" description="" /> <van-empty v-if="!$list(list).length" description="" />
<!-- @click="showDetail(item)" --> <!-- @click="showDetail(item)" -->
<div <div
class="item bg-panel-4 m-md rounded-sm box-shadow" class="item bg-panel-4 m-md rounded-sm box-shadow"
v-for="item in $list(list)" v-for="item in $list(list)"
:key="item.id" :key="item.id"
> >
<div <div
class="head d-flex align-center border-b p-x-md p-y-xs justify-between" class="head d-flex align-center border-b p-x-md p-y-xs justify-between"
@ -56,7 +56,7 @@
<!-- <div class="row d-flex m-y-mini justify-between" v-if="item.profit"> <!-- <div class="row d-flex m-y-mini justify-between" v-if="item.profit">
<div class="label fn-sm">{{$t('contract.b4')}}</div> <div class="label fn-sm">{{$t('contract.b4')}}</div>
<div class="color-light"> <div class="color-light">
<v-button type="green-plain" class="m-l-xs rounded-xs" size="mini" plain <v-button type="green-plain" class="m-l-xs rounded-xs" size="mini" plain
:to="{path:'/pages/income/index',query:{ :to="{path:'/pages/income/index',query:{
symbol:item.symbol, symbol:item.symbol,
@ -69,7 +69,7 @@
position_side: 2, position_side: 2,
}}" }}"
>{{$t('contract.c8')}}</v-button> >{{$t('contract.c8')}}</v-button>
<v-button type="green-plain" class="m-l-xs rounded-xs" size="mini" plain @click="canvasImage(item)">{{$t('contract.c8')}}</v-button> <v-button type="green-plain" class="m-l-xs rounded-xs" size="mini" plain @click="canvasImage(item)">{{$t('contract.c8')}}</v-button>
</div> </div>
</div> --> </div> -->
@ -109,7 +109,7 @@
</van-popup> </van-popup>
<van-popup <van-popup
class="share" class="share"
custom-style="width:100%;height:100%;background-color:transparent;padding-top:5%" custom-style="width:100%;height:100%;background-color:transparent;padding-top:5%"
:show="canvasShow" :show="canvasShow"
@close="canvasShow = false"> @close="canvasShow = false">
<view class="canvas" > <view class="canvas" >
@ -184,7 +184,7 @@ export default {
arr.push(res) arr.push(res)
} }
}) })
var share_imgs=arr[Math.round(Math.random()*arr.length)]; var share_imgs=arr[Math.round(Math.random()*arr.length)];
if(!share_imgs||!this.detail){ if(!share_imgs||!this.detail){
this.$toast(this.$t('recharge.a6')) this.$toast(this.$t('recharge.a6'))
@ -198,7 +198,7 @@ export default {
windowWidth=res.windowWidth windowWidth=res.windowWidth
} }
}); });
let myCanvas = uni.createCanvasContext('mycanvas', this); let myCanvas = uni.createCanvasContext('mycanvas', this);
// //
// //
myCanvas.drawImage(share_imgs.bg_img,0,0,windowWidth,windowHeight); myCanvas.drawImage(share_imgs.bg_img,0,0,windowWidth,windowHeight);
@ -210,7 +210,7 @@ export default {
myCanvas.font = '12px Arial';// myCanvas.font = '12px Arial';//
myCanvas.fillText('全球合约领跑者',88,windowHeight*0.653); myCanvas.fillText('全球合约领跑者',88,windowHeight*0.653);
myCanvas.font = '16px Arial'; myCanvas.font = '16px Arial';
myCanvas.fillText('XUSexchange',88,windowHeight*0.63); myCanvas.fillText('XUSCoins',88,windowHeight*0.63);
myCanvas.font = '14px Arial'; myCanvas.font = '14px Arial';
myCanvas.setFillStyle('#717171') myCanvas.setFillStyle('#717171')
myCanvas.fillText(i.symbol+'/USDT',25,windowHeight*0.53); myCanvas.fillText(i.symbol+'/USDT',25,windowHeight*0.53);
@ -220,7 +220,7 @@ export default {
myCanvas.fillText(this.cals(i.side,i.order_type),25,windowHeight*0.555); myCanvas.fillText(this.cals(i.side,i.order_type),25,windowHeight*0.555);
myCanvas.fillText(ress.data.price1>1?this.omitTo(ress.data.price1,2):this.omitTo(ress.data.price1,4),uni.getStorageSync('language')=='zh-CN'?windowWidth*0.345:windowWidth*0.33,windowHeight*0.555); myCanvas.fillText(ress.data.price1>1?this.omitTo(ress.data.price1,2):this.omitTo(ress.data.price1,4),uni.getStorageSync('language')=='zh-CN'?windowWidth*0.345:windowWidth*0.33,windowHeight*0.555);
myCanvas.fillText(ress.data.price2>1?this.omitTo(ress.data.price2,2):this.omitTo(ress.data.price2,4),uni.getStorageSync('language')=='zh-CN'?windowWidth*0.605:windowWidth*0.6,windowHeight*0.555); myCanvas.fillText(ress.data.price2>1?this.omitTo(ress.data.price2,2):this.omitTo(ress.data.price2,4),uni.getStorageSync('language')=='zh-CN'?windowWidth*0.605:windowWidth*0.6,windowHeight*0.555);
myCanvas.textAlign = 'center'; myCanvas.textAlign = 'center';
myCanvas.setFillStyle('#000000') myCanvas.setFillStyle('#000000')
myCanvas.font = '25px Arial'; myCanvas.font = '25px Arial';
@ -244,7 +244,7 @@ export default {
uni.setStorageSync('person-card',this.imgurl); uni.setStorageSync('person-card',this.imgurl);
}, },
fail: () => { fail: () => {
} }
}); });
}); });
@ -271,10 +271,10 @@ export default {
}, },
saveImage(){ saveImage(){
// uni.showActionSheet({ // uni.showActionSheet({
// itemList: [this.$t('common.save')], // itemList: [this.$t('common.save')],
// success: (res) => { // success: (res) => {
// if(res.tapIndex == 0){ // if(res.tapIndex == 0){
// } // }
// }, // },
// fail: function (res) { // fail: function (res) {
@ -295,7 +295,7 @@ export default {
fail: () => { fail: () => {
uni.showToast({ uni.showToast({
title: this.$t('common.b4'), title: this.$t('common.b4'),
duration: 2000 duration: 2000
}); });
} }
}); });
@ -360,7 +360,7 @@ export default {
myCanvas.width=0 myCanvas.width=0
myCanvas.height=0 myCanvas.height=0
}, },
}, },
mounted() { mounted() {
// this.generalizeInfo() // this.generalizeInfo()

10
pages/exchange/open-position.vue

@ -1070,7 +1070,7 @@ export default {
myCanvas.font = '12px Arial';// myCanvas.font = '12px Arial';//
myCanvas.fillText('全球合约领跑者', 88, windowHeight * 0.653); myCanvas.fillText('全球合约领跑者', 88, windowHeight * 0.653);
myCanvas.font = '16px Arial'; myCanvas.font = '16px Arial';
myCanvas.fillText('XUSexchange', 88, windowHeight * 0.63); myCanvas.fillText('XUSCoins', 88, windowHeight * 0.63);
myCanvas.font = '14px Arial'; myCanvas.font = '14px Arial';
myCanvas.setFillStyle('#717171') myCanvas.setFillStyle('#717171')
myCanvas.fillText(i.pair_name, 25, windowHeight * 0.53); myCanvas.fillText(i.pair_name, 25, windowHeight * 0.53);
@ -1331,17 +1331,17 @@ export default {
Contract.getSymbolDetail(data).then((res) => { Contract.getSymbolDetail(data).then((res) => {
console.info('res.data', res.data.default_lever, res.data.lever_rage) console.info('res.data', res.data.default_lever, res.data.lever_rage)
this.unit_amount = res.data.unit_amount; this.unit_amount = res.data.unit_amount;
this.lever_rage = res.data.lever_rage.map((item) => ({ this.lever_rage = res.data.lever_rage.map((item) => ({
label: item, label: item,
value: item, value: item,
})); }));
let e={value:res.data.default_lever, label: res.data.default_lever} let e={value:res.data.default_lever, label: res.data.default_lever}
this.openNum(e); this.openNum(e);
this.$emit("getSymbolDetail", res.data); this.$emit("getSymbolDetail", res.data);
}); });
}, },
// //

2
pages/income/index.vue

@ -98,7 +98,7 @@
<img class="img rounded-3 w-60 w-60" src="static/img/logo.png"/> <img class="img rounded-3 w-60 w-60" src="static/img/logo.png"/>
<view class="m-l-md"> <view class="m-l-md">
<view class="fn-bold color-black fn-16"> <view class="fn-bold color-black fn-16">
XUSexchange XUSCoins
</view> </view>
<view class="fn-6 color-black"> <view class="fn-6 color-black">
全球合约领跑者 全球合约领跑者

Loading…
Cancel
Save