Browse Source

修改个人中心

master
‘daijinzheng@xingtongworld.com’ 2 years ago
parent
commit
67e0e51547
  1. BIN
      assets/img/home/Havelogged.png
  2. BIN
      assets/img/home/Make.png
  3. BIN
      assets/img/home/check.png
  4. BIN
      assets/img/home/currency.png
  5. BIN
      assets/img/home/eye.png
  6. BIN
      assets/img/home/login.png
  7. BIN
      assets/img/home/transfer.png
  8. 3
      i18n/lang/de.json
  9. 3
      i18n/lang/en.json
  10. 3
      i18n/lang/fin.json
  11. 3
      i18n/lang/fra.json
  12. 3
      i18n/lang/it.json
  13. 3
      i18n/lang/jp.json
  14. 3
      i18n/lang/kor.json
  15. 3
      i18n/lang/pl.json
  16. 3
      i18n/lang/pt.json
  17. 3
      i18n/lang/spa.json
  18. 3
      i18n/lang/swe.json
  19. 3
      i18n/lang/tr.json
  20. 3
      i18n/lang/ukr.json
  21. 3
      i18n/lang/zh-CN.json
  22. 3
      i18n/lang/zh-TW.json
  23. 285
      pages/base/home.vue
  24. 98
      pages/base/mine.vue
  25. BIN
      static/img/pages1.png
  26. BIN
      static/img/pages2.png
  27. BIN
      static/img/pages3.png
  28. BIN
      static/img/pages4.png
  29. BIN
      static/img/pages5.png
  30. BIN
      static/img/pages6.png

BIN
assets/img/home/Havelogged.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 694 B

BIN
assets/img/home/Make.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 380 B

BIN
assets/img/home/check.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 381 B

BIN
assets/img/home/currency.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 B

BIN
assets/img/home/eye.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 476 B

BIN
assets/img/home/login.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
assets/img/home/transfer.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 764 B

3
i18n/lang/de.json

@ -119,7 +119,8 @@
"e5": "Umwandlung von Verträgen", "e5": "Umwandlung von Verträgen",
"e6": "Klasse der Bergleute", "e6": "Klasse der Bergleute",
"e7": "Mineral", "e7": "Mineral",
"wallet": "Brieftasche" "wallet": "Brieftasche",
"f0":"开启您的加密货币之旅"
}, },
"accountSettings": { "accountSettings": {
"a0": "Einstellungen des Kontos", "a0": "Einstellungen des Kontos",

3
i18n/lang/en.json

@ -160,7 +160,8 @@
"e5": "Contract conversion", "e5": "Contract conversion",
"e6": "Miner Level", "e6": "Miner Level",
"e7": "Miner", "e7": "Miner",
"wallet": "Wallet" "wallet": "Wallet",
"f0":"Start your crypto journey"
}, },
"accountSettings": { "accountSettings": {
"a0": "Account Settings", "a0": "Account Settings",

3
i18n/lang/fin.json

@ -115,7 +115,8 @@
"e4":"Sopimusta koskeva tili", "e4":"Sopimusta koskeva tili",
"e5":"Sopimusten muuntaminen", "e5":"Sopimusten muuntaminen",
"e6":"Mineraanien luokka", "e6":"Mineraanien luokka",
"e7":"kaivosmies" "e7":"kaivosmies",
"f0":"开启您的加密货币之旅"
}, },
"accountSettings": { "accountSettings": {
"a0":"Tilin asetukset", "a0":"Tilin asetukset",

3
i18n/lang/fra.json

@ -119,7 +119,8 @@
"e5": "Conversion contractuelle", "e5": "Conversion contractuelle",
"e6": "Classe de mineur", "e6": "Classe de mineur",
"e7": "Mineurs", "e7": "Mineurs",
"wallet": "Portefeuille" "wallet": "Portefeuille",
"f0":"Commencez votre voyage crypto-monnaie"
}, },
"accountSettings": { "accountSettings": {
"a0": "Configuration du compte", "a0": "Configuration du compte",

3
i18n/lang/it.json

@ -119,7 +119,8 @@
"e5": "Conversione contrattuale", "e5": "Conversione contrattuale",
"e6": "Classe di minerali", "e6": "Classe di minerali",
"e7": "miner", "e7": "miner",
"wallet": "Portafoglio" "wallet": "Portafoglio",
"f0":"开启您的加密货币之旅"
}, },
"accountSettings": { "accountSettings": {
"a0": "Impostazioni account", "a0": "Impostazioni account",

3
i18n/lang/jp.json

@ -119,7 +119,8 @@
"e5": "契約が折衷する", "e5": "契約が折衷する",
"e6": "鉱夫階級", "e6": "鉱夫階級",
"e7": "鉱夫", "e7": "鉱夫",
"wallet": "財布" "wallet": "財布",
"f0":"暗号通貨への旅を始めます"
}, },
"accountSettings": { "accountSettings": {
"a0": "アカウントの設定", "a0": "アカウントの設定",

3
i18n/lang/kor.json

@ -119,7 +119,8 @@
"e5":"계약 을 절충 하 다", "e5":"계약 을 절충 하 다",
"e6":"광부 등급", "e6":"광부 등급",
"e7":"광부", "e7":"광부",
"wallet": "지갑" "wallet": "지갑",
"f0":"암호화 화폐 여행을 시작하세요"
}, },
"accountSettings": { "accountSettings": {
"a0":"계 정 설정", "a0":"계 정 설정",

3
i18n/lang/pl.json

@ -115,7 +115,8 @@
"e4":"Konto kontraktowe", "e4":"Konto kontraktowe",
"e5":"Przetwarzanie umów", "e5":"Przetwarzanie umów",
"e6":"Klasa górnicza", "e6":"Klasa górnicza",
"e7":"miner" "e7":"miner",
"f0":"开启您的加密货币之旅"
}, },
"accountSettings": { "accountSettings": {
"a0":"Ustawienia konta", "a0":"Ustawienia konta",

3
i18n/lang/pt.json

@ -119,7 +119,8 @@
"e5":"Conversão contratual", "e5":"Conversão contratual",
"e6":"Classe de mineiros", "e6":"Classe de mineiros",
"e7":"Mineiro", "e7":"Mineiro",
"wallet": "Carteira" "wallet": "Carteira",
"f0":"开启您的加密货币之旅"
}, },
"accountSettings": { "accountSettings": {
"a0":"Configuração Da Conta", "a0":"Configuração Da Conta",

3
i18n/lang/spa.json

@ -119,7 +119,8 @@
"e5":"Conversión de contratos", "e5":"Conversión de contratos",
"e6":"Grado minero", "e6":"Grado minero",
"e7":"Minero", "e7":"Minero",
"wallet": "Cartera" "wallet": "Cartera",
"f0":"开启您的加密货币之旅"
}, },
"accountSettings": { "accountSettings": {
"a0":"Configuración de la cuenta", "a0":"Configuración de la cuenta",

3
i18n/lang/swe.json

@ -115,7 +115,8 @@
"e4":"Kontraktskonto", "e4":"Kontraktskonto",
"e5":"Omräkning av kontrakt", "e5":"Omräkning av kontrakt",
"e6":"Klassificering av mineraler", "e6":"Klassificering av mineraler",
"e7":"gruvarbetare" "e7":"gruvarbetare",
"f0":"开启您的加密货币之旅"
}, },
"accountSettings": { "accountSettings": {
"a0":"Inställningar av konto", "a0":"Inställningar av konto",

3
i18n/lang/tr.json

@ -119,7 +119,8 @@
"e5": "Sözleşme dönüştürme", "e5": "Sözleşme dönüştürme",
"e6": "Madenci Seviyesi", "e6": "Madenci Seviyesi",
"e7": "Madenci", "e7": "Madenci",
"wallet": "Cüzdan" "wallet": "Cüzdan",
"f0":"开启您的加密货币之旅"
}, },
"accountSettings": { "accountSettings": {
"a0": "Hesap Ayarları", "a0": "Hesap Ayarları",

3
i18n/lang/ukr.json

@ -115,7 +115,8 @@
"e4": "Контрактний рахунок", "e4": "Контрактний рахунок",
"e5": "Конвертація договору", "e5": "Конвертація договору",
"e6": "Майнерський рівень", "e6": "Майнерський рівень",
"e7": "шахтар" "e7": "шахтар",
"f0":"开启您的加密货币之旅"
}, },
"accountSettings": { "accountSettings": {
"a0": "Налаштування аккаунта", "a0": "Налаштування аккаунта",

3
i18n/lang/zh-CN.json

@ -117,7 +117,8 @@
"e4": "合约账户", "e4": "合约账户",
"e5": "合约折合", "e5": "合约折合",
"e6": "矿工等级", "e6": "矿工等级",
"e7": "矿工" "e7": "矿工",
"f0":"开启您的加密货币之旅"
}, },
"accountSettings": { "accountSettings": {
"a0": "账号设置", "a0": "账号设置",

3
i18n/lang/zh-TW.json

@ -160,7 +160,8 @@
"e5": "合約折合", "e5": "合約折合",
"e6": "礦工等級", "e6": "礦工等級",
"e7": "礦工", "e7": "礦工",
"wallet": "錢包" "wallet": "錢包",
"f0":"开启您的加密货币之旅"
}, },
"accountSettings": { "accountSettings": {
"a0": "賬號設置", "a0": "賬號設置",

285
pages/base/home.vue

@ -7,7 +7,7 @@
<image src="@/assets/img/home/top.png" mode="aspectFit" style="width: 36rpx;height: 36rpx;"></image> <image src="@/assets/img/home/top.png" mode="aspectFit" style="width: 36rpx;height: 36rpx;"></image>
</template> </template>
<template #title> <template #title>
<view style="color: #ffffff; font-size: 30rpx;">xxCoin</view> <view style="color: #ffffff; font-size: 30rpx;">主页</view>
</template> </template>
<template #right> <template #right>
<view class="per-bot p-y-md p-x-sm d-flex align-center"> <view class="per-bot p-y-md p-x-sm d-flex align-center">
@ -110,7 +110,7 @@
<view class="illustration_area" > <view class="illustration_area" >
<image src="@/assets/img/home/bgImg.png" mode="widthFix" style="width: 100%;"></image> <image src="@/assets/img/home/bgImg.png" mode="widthFix" style="width: 100%;"></image>
<view class="title">{{$t("homeNewText.aa3")}},{{$t("homeNewText.aa1")}}</view> <view class="title">{{$t("homeNewText.aa3")}},{{$t("homeNewText.aa1")}}</view>
<view class="titleButborder"></view> <!-- <view class="titleButborder"></view> -->
<view v-if="!isLogin" class="jump_btn_one" @click="goReg"> <view v-if="!isLogin" class="jump_btn_one" @click="goReg">
{{ $t("homeNewText.aa3") }} {{ $t("homeNewText.aa3") }}
</view> </view>
@ -151,26 +151,38 @@
<image src="@/assets/img/home/bottomImg.png" mode="aspectFit" style="width: 284rpx;height: 284rpx;"></image> <image src="@/assets/img/home/bottomImg.png" mode="aspectFit" style="width: 284rpx;height: 284rpx;"></image>
</view> </view>
</view> </view>
<!-- 资产 -->
<view class="top-tiel" v-else> <view class="top-tiel" v-else>
<view style="border-bottom: 1px solid #000;"> <view style="border-bottom: 1px solid #000;">
<view style="margin: 20px 10px 10px; 10px"> <view style="margin: 20px 10px 10px; 10px">
<view class="col-fff topBTC"> <view class="d-flex p-t-md w-max">
总资产估值(BTC) <text class="fn-16 color-default d-block col-fff">{{ $t("base.d6") }}(BTC)</text>
<image src="@/assets/img/home/eye.png" mode="widthFix" style="width: 30rpx;margin-left: 10rpx;"></image> <view class="fn-18 m-l-md d-flex" @click="setHide(!hideMoney)">
<van-icon v-if="!hideMoney" name="eye-o"/>
<van-icon v-else name="closed-eye"/>
</view> </view>
<view class="text_figure col-fff">0.28235120</view> </view>
<view style="color: #6FB58A;">10000.40 USDT</view> <view class="text_figure col-fff">{{filterMoney(account.total_assets_btc, true)}}</view>
<view style="color: #6FB58A;">{{ filterMoney(account.total_assets_usd, false) }} USDT</view>
<view style="display: flex;justify-content: space-around;"> <view style="display: flex;justify-content: space-around;">
<button class="button_Goldcoin"><image src="@/assets/img/home/Goldcoin.png" mode="widthFix" style="width: 40rpx;"></image>充币</button> <v-link tag="view" to="/pages/assets/recharge" >
<button class="button_Goldcoin"><image src="@/assets/img/home/Lendmoney.png" mode="widthFix" style="width: 40rpx;"></image>买币</button> <view class="button_Goldcoin">
<image src="@/assets/img/home/Goldcoin.png" mode="widthFix" style="width: 40rpx;"></image>{{$t("base.b5")}}
</view>
</v-link>
<v-link tag="view" to="" >
<view class="button_Goldcoin">
<image src="@/assets/img/home/Lendmoney.png" mode="widthFix" style="width: 40rpx;"></image>{{$t("base.c0")}}
</view>
</v-link>
</view> </view>
</view> </view>
</view> </view>
<view class="view_currency"> <view class="view_currency">
<view style="margin: 0px 10px 10px; 10px"> <view style="margin: 0px 10px 10px; 10px">
<view class="view_once"> <view class="view_once">
<view>开启您的加密货币之旅</view> <view>{{$t("base.f0")}}</view>
<view>立即前往<image src="@/assets/img/home/arrow-right.png" mode="widthFix"></image></view> <view @click="goMine">立即前往<image src="@/assets/img/home/arrow-right.png" mode="widthFix"></image></view>
</view> </view>
</view> </view>
<image src="@/assets/img/home/Copy.png" mode="aspectFit"></image> <image src="@/assets/img/home/Copy.png" mode="aspectFit"></image>
@ -264,17 +276,11 @@
</view> </view>
<view class="announcement"> <view class="announcement">
<view class="text">公告</view> <view class="text">公告</view>
<view v-for="(item,index) in articleList" :key="item.id">
<view class="notification"> <view class="notification">
<view class="notification_text">关于xxx和xxx定期简单赚币产品下线的通知</view> <view class="notification_text">{{item.title}}</view>
<view class="notification_time">2023/11/02 19:35</view> <view class="notification_time">{{item.created_at}}</view>
</view>
<view class="notification">
<view class="notification_text">关于xxx和xxx定期简单赚币产品下线的通知</view>
<view class="notification_time">2023/11/02 19:35</view>
</view> </view>
<view class="notification">
<view class="notification_text">关于xxx和xxx定期简单赚币产品下线的通知</view>
<view class="notification_time">2023/11/02 19:35</view>
</view> </view>
</view> </view>
</view> </view>
@ -434,8 +440,9 @@
</view> </view>
<!-- 个人主页弹出层 --> <!-- 个人主页弹出层 -->
<van-popup class="personalCenter-main colbg bg-panel-4" :show="show" @close="show = false" position="left" <van-popup class="personalCenter-main colbg bg-panel-4" :show="show" @close="show = false" position="left"
custom-style="width:100%;height:100%"> custom-style="width:100%;height:100%;">
<view style="height: var(--status-bar-height)"></view> <view style="background-color: #121212;height: 100vh;">
<view style="height: var(--status-bar-height);"></view>
<view class="personalCenter-top"> <view class="personalCenter-top">
<view class="theme-switch m-x-md d-flex justify-between"> <view class="theme-switch m-x-md d-flex justify-between">
<van-icon name="arrow-left" @click="show = false" class="fn-22" /> <van-icon name="arrow-left" @click="show = false" class="fn-22" />
@ -449,8 +456,21 @@
</view> </view>
</view> --> </view> -->
<img width="25px" height="25px" @click="changtTheme" <!-- 切换背景颜色 -->
:src="theme == 'light' ? 'static/img/moon.png' : 'static/img/sun.png'" /> <!-- <img width="25px" height="25px" @click="changtTheme"
:src="theme == 'light' ? 'static/img/moon.png' : 'static/img/sun.png'" /> -->
<view style="color: white;margin-left: 20px;">
个人中心
</view>
<view>
<span class="color-light">
<v-lang @change="marketList = [];
indexData();getHelpList();"></v-lang>
<i class="iconfont m-l-xs fn-sm">&#xe6e9;</i>
</span>
</view>
</view> </view>
<view class="information p-l-md m-t-xl"> <view class="information p-l-md m-t-xl">
<!-- <img :src="logoMap.login_logo" class="h-50 w-50 d-block m-r-xs rounded-max flex-shrink" /> --> <!-- <img :src="logoMap.login_logo" class="h-50 w-50 d-block m-r-xs rounded-max flex-shrink" /> -->
@ -485,16 +505,32 @@
</v-link> </v-link>
</view> </view>
</view> </view>
<v-link :to="detail.status!=2?'/pages/auth/index':''" tag="div" <v-link :to="detail.status!=2?'/pages/auth/index':''" tag="div"
class="bg-form-panel-3 p-xs m-xs color-theme-1 d-flex justify-between align-center"> class="p-xs m-xs color-theme-1 d-flex justify-between align-center" style="background-color: #212121;" v-if="!isLogin">
<view class="d-flex align-center"> <view class="d-flex align-center">
<van-icon name="manager" class="fn-18" /> <van-icon name="manager" class="col-fff" />
<text class="p-l-md fn-14">{{$t('auth.a1')}}</text> <text class="p-l-md col-fff">{{$t('auth.a1')}}</text>
</view> </view>
<text class="bg-theme-1 color-white p-x-xs p-y-xxs rounded" v-if="detail.status!=2">{{$t('first.a0')}} <text class="bg-theme color-white p-x-xs p-y-xxs rounded" v-if="detail.status!=2">{{$t('first.a0')}}</text>
</text>
<text class="bg-theme-1 color-white p-x-xs p-y-xxs rounded" v-else>{{$t('auth.a3')}}</text> <text class="bg-theme-1 color-white p-x-xs p-y-xxs rounded" v-else>{{$t('auth.a3')}}</text>
</v-link> </v-link>
<v-link class=" p-xs m-xs d-flex justify-between align-center" to="/pages/login/index" v-else >
<view style="display: flex;position: relative;">
<image src="@/assets/img/home/login.png" mode="aspectFit" class="logine"></image>
<image src="@/assets/img/home/Havelogged.png" mode="aspectFit" class="havelogg"></image>
<view style="margin-left: 26rpx;">
<view class="color-light username">{{username}}</view>
<view class="border_authentication">
已完成初级认证
</view>
</view>
</view>
<van-icon name="arrow" class="fn-18" />
</v-link>
<!-- <view class="personalCenter-center border-b border-gray-5"> <!-- <view class="personalCenter-center border-b border-gray-5">
<view class="d-flex justify-around"> <view class="d-flex justify-around">
<v-link <v-link
@ -530,13 +566,14 @@
tag="div" tag="div"
class="per-bot p-y-md p-x-sm d-flex align-center justify-between" class="per-bot p-y-md p-x-sm d-flex align-center justify-between"
> --> > -->
<view class="per-bot p-y-md p-x-sm d-flex align-center justify-between" @click="goMine()">
<!-- <view class="per-bot p-y-md p-x-sm d-flex align-center justify-between" @click="goMine()">
<view class="d-flex align-center"> <view class="d-flex align-center">
<img :src="$localImgUrl('Page1.png')" alt="" class="m-r-xs h-17"> <img :src="$localImgUrl('Page1.png')" alt="" class="m-r-xs h-17">
<span class="color-light">{{ $t("base.c1") }}</span> <span class="color-light">{{ $t("base.c1") }}</span>
</view> </view>
<van-icon name="arrow" class="fn-18" /> <van-icon name="arrow" class="fn-18" />
</view> </view> -->
<!-- </v-link> --> <!-- </v-link> -->
@ -559,22 +596,22 @@
</view> </view>
<van-icon name="arrow" class="fn-18" /> <van-icon name="arrow" class="fn-18" />
</v-link> --> </v-link> -->
<v-link to="/pages/safe/index" tag="div" <!-- <v-link to="/pages/safe/index" tag="div"
class="per-bot p-y-md p-x-sm d-flex align-center justify-between"> class="per-bot p-y-md p-x-sm d-flex align-center justify-between">
<view class="d-flex align-center"> <view class="d-flex align-center">
<img :src="$localImgUrl('Page3.png')" alt="" class="h-20 m-r-xs" /> <img :src="$localImgUrl('Page3.png')" alt="" class="h-20 m-r-xs" />
<span class="color-light">{{ $t("base.c3") }}</span> <span class="color-light">{{ $t("base.c3") }}</span>
</view> </view>
<van-icon name="arrow" class="fn-18" /> <van-icon name="arrow" class="fn-18" />
</v-link> </v-link> -->
<v-link to="/pages/notice/index" tag="div" <!-- <v-link to="/pages/notice/index" tag="div"
class="per-bot p-y-md p-x-sm d-flex align-center justify-between"> class="per-bot p-y-md p-x-sm d-flex align-center justify-between">
<view class="d-flex align-center"> <view class="d-flex align-center">
<img :src="$localImgUrl('Page4.png')" alt="" class="h-20 m-r-xs" /> <img :src="$localImgUrl('Page4.png')" alt="" class="h-20 m-r-xs" />
<span class="color-light">{{ $t("base.c4") }}</span> <span class="color-light">{{ $t("base.c4") }}</span>
</view> </view>
<van-icon name="arrow" class="fn-18" /> <van-icon name="arrow" class="fn-18" />
</v-link> </v-link> -->
<!-- <v-link <!-- <v-link
to="/pages/assets/address-list" to="/pages/assets/address-list"
tag="div" tag="div"
@ -597,22 +634,22 @@
</view> </view>
<van-icon name="arrow" class="fn-18" /> <van-icon name="arrow" class="fn-18" />
</v-link> --> </v-link> -->
<v-link :to="'/pages/service/service?id=33&type=0'" tag="div" <!-- <v-link :to="'/pages/service/service?id=33&type=0'" tag="div"
class="per-bot p-y-md p-x-sm d-flex align-center justify-between"> class="per-bot p-y-md p-x-sm d-flex align-center justify-between">
<view class="d-flex align-center"> <view class="d-flex align-center">
<img :src="$localImgUrl('Page10.png')" alt="" class="h-20 m-r-xs" /> <img :src="$localImgUrl('Page10.png')" alt="" class="h-20 m-r-xs" />
<span class="color-light">{{$t('first.a1')}}</span> <span class="color-light">{{$t('first.a1')}}</span>
</view> </view>
<van-icon name="arrow" class="fn-18" /> <van-icon name="arrow" class="fn-18" />
</v-link> </v-link> -->
<v-link to="/pages/accountSettings/accountSettings" tag="div" <!-- <v-link to="/pages/accountSettings/accountSettings" tag="div"
class="per-bot p-y-md p-x-sm d-flex align-center justify-between"> class="per-bot p-y-md p-x-sm d-flex align-center justify-between">
<view class="d-flex align-center"> <view class="d-flex align-center">
<img :src="$localImgUrl('Page7.png')" alt="" class="h-20 m-r-xs" /> <img :src="$localImgUrl('Page7.png')" alt="" class="h-20 m-r-xs" />
<span class="color-light">{{ $t("base.c6") }}</span> <span class="color-light">{{ $t("base.c6") }}</span>
</view> </view>
<van-icon name="arrow" class="fn-18" /> <van-icon name="arrow" class="fn-18" />
</v-link> </v-link> -->
<!-- <view class="per-bot p-y-md p-x-sm d-flex align-center"> <!-- <view class="per-bot p-y-md p-x-sm d-flex align-center">
<img :src="$localImgUrl('Page6.png')" alt="" class="h-20 m-r-xs" /> <img :src="$localImgUrl('Page6.png')" alt="" class="h-20 m-r-xs" />
<span class="color-light"> <span class="color-light">
@ -625,10 +662,46 @@
<i class="iconfont m-l-xs fn-sm">&#xe6e9;</i> <i class="iconfont m-l-xs fn-sm">&#xe6e9;</i>
</span> </span>
</view> --> </view> -->
<view class="h-100"></view> <!-- <view class="h-100"></view>
<view v-if="isLogin" class="logout w-max bg-form-panel-4 fn-center color-light p-y-xs rounded-xs" <view v-if="isLogin" class="logout w-max bg-form-panel-4 fn-center color-light p-y-xs rounded-xs"
@click="loginOut"> @click="loginOut">
<text class="w-max rounded-lg border-0">{{ $t("accountSettings.a9") }}</text> <text class="w-max rounded-lg border-0">{{ $t("accountSettings.a9") }}</text>
</view> -->
</view>
<view class="Feature">
常用功能
</view>
<view class="manage">
<view class="manage_text" @click="goMine()">
<img src="@/static/img/pages1.png">
<!-- $localImgUrl('pages1.png') -->
<view class="color-light">{{ $t("base.c1") }}</view>
</view>
<v-link to="/pages/safe/index" tag="div" class="manage_text">
<img src="@/static/img/pages2.png">
<view class="color-light">{{ $t("base.c3") }}</view>
</v-link>
<v-link to="/pages/notice/index" tag="div" class="manage_text">
<img src="@/static/img/pages3.png">
<view class="color-light">{{ $t("base.c4") }}</view>
</v-link>
<v-link to="/pages/assets/address-list" tag="div" class="manage_text">
<img src="@/static/img/pages4.png">
<view class="color-light">{{ $t("base.c5") }}</view>
</v-link>
<v-link :to="'/pages/service/service?id=33&type=0'" tag="div" class="manage_text">
<img src="@/static/img/pages5.png">
<view class="color-light">{{ $t("first.a1") }}</view>
</v-link>
<v-link to="/pages/accountSettings/accountSettings" tag="div" class="manage_text">
<img src="@/static/img/pages6.png">
<view class="color-light">{{ $t("base.c6") }}</view>
</v-link>
</view>
<view class="h-100"></view>
<view v-if="isLogin" class="Logout_color logout w-max fn-center color-light rounded-xs"
@click="loginOut">
<text class="w-max rounded-lg border-0">{{ $t("accountSettings.a9") }}</text>
</view> </view>
</view> </view>
</van-popup> </van-popup>
@ -710,7 +783,9 @@
num: 0, num: 0,
scrollTop: 0, scrollTop: 0,
refreshing: false, refreshing: false,
helpList: [] helpList: [],
account:{},
articleList:[]//
}; };
}, },
computed: { computed: {
@ -721,10 +796,17 @@
wsState: "wsState", wsState: "wsState",
logoMap: "logoMap", logoMap: "logoMap",
theme: "theme", theme: "theme",
hideMoney: "hideMoney",
}), }),
isLogin() { isLogin() {
return Boolean(uni.getStorageSync("token")); return Boolean(uni.getStorageSync("token"));
}, },
//
username(){
const name = uni.getStorageSync("_user_login")
const username = name.data.user.username
return username
}
}, },
watch: { watch: {
isShow(n) { isShow(n) {
@ -771,6 +853,7 @@
}, },
...mapActions({ ...mapActions({
setTheme: "setTheme", setTheme: "setTheme",
setHide: "hideMoney"
}), }),
setQuery: qs.stringify, setQuery: qs.stringify,
omitTo: math.omitTo, omitTo: math.omitTo,
@ -819,19 +902,26 @@
personalCenter() { personalCenter() {
this.show = true; this.show = true;
}, },
Goatonce(){
this._router.push({
path:"pages/base/index.vue"
})
// uni.navigateTo({
// url:"pages/base/index.vue"
// })
},
indexData() { indexData() {
let data = {}; let data = {};
let ajax = Home.indexList(data, { let ajax = Home.indexList(data, {
loading: true loading: true
}); });
ajax ajax.then((res) => {
.then((res) => {
this.home = res.data.bannerList; this.home = res.data.bannerList;
this.notice = res.data.noticeList; this.notice = res.data.noticeList;
this.indexList = res.data.brokenLine; this.indexList = res.data.brokenLine;
this.marketList = res.data.marketList; this.marketList = res.data.marketList;
console.log(this.marketList, 1111111); this.articleList = res.data.articleList
// this.infoActive = 1; // this.infoActive = 1;
this.dunshift(); this.dunshift();
this.getCollect(); this.getCollect();
@ -975,10 +1065,25 @@
} }
}); });
}, },
//
personalAssets(){
Wallet.personalAssets().then((res) => {
this.account = res.data;
}).catch(() => {});
},
filterMoney(val, type) {
if (this.hideMoney) return "******";
if (type) {
return this.omitTo(val, 8);
} else {
return this.omitTo(val, 2);
}
},
// //
createWalletAddress() { createWalletAddress() {
Wallet.createWalletAddress() Wallet.createWalletAddress()
.then(() => {}) .then((res) => {
})
.catch(() => {}); .catch(() => {});
}, },
// 退 // 退
@ -1048,6 +1153,7 @@
this.indexMarketList(); this.indexMarketList();
this.getCurrencyExCny(); this.getCurrencyExCny();
this.getHelpList(); this.getHelpList();
this.personalAssets();
if (this.isLogin) { if (this.isLogin) {
this.createWalletAddress(); this.createWalletAddress();
this.getAuthInfo() this.getAuthInfo()
@ -1084,6 +1190,17 @@
} }
} }
.bg-theme{
background-color: #26A24F;
}
.Logout_color{
background-color: #212121;
height: 80rpx;
line-height: 80rpx;
}
.stock-swipe { .stock-swipe {
.stock-index { .stock-index {
display: flex; display: flex;
@ -1419,16 +1536,75 @@
position: relative; position: relative;
} }
.titleButborder { // .titleButborder {
position: absolute; // position: absolute;
left: 425rpx; // left: 425rpx;
top: 750rpx; // top: 750rpx;
width: 140px; // width: 140px;
height: 6px; // height: 6px;
line-height: 20px; // line-height: 20px;
background-color: rgba(182, 255, 52, 1); // background-color: rgba(182, 255, 52, 1);
// text-align: center;
// }
}
.Feature{
color: rgba(255, 255, 255, 1);
font-size: 16px;
padding-top: 30px;
border-top: 1px solid #000000;
padding-left: 28rpx;
margin-bottom: 30px;
font-weight: bold;
}
.manage{
display: flex;
flex-wrap: wrap;
justify-content: space-around;
align-items: center;
width: 100%;
.manage_text{
text-align: center;
height: 170rpx;
width: 200rpx;
img{
width: 50rpx;
height: 50rpx;
}
}
}
.username{
font-size: 18px;
font-weight: bold;
margin-bottom: 3px;
}
.border_authentication{
border: 1px solid #26A24F;
text-align: center; text-align: center;
font-size: 25rpx;
width: 99px;
border-radius: 5px;
color: #26A24F;
} }
.logine{
// background: url('@/assets/img/home/Havelogged.png');
width: 96rpx;height: 96rpx;
}
.havelogg{
position: absolute;
left: 60rpx;
bottom: 0;
border:1px solid #000000;
background-color: #000000;
border-radius: 50%;
width: 28rpx;
height: 29rpx;
} }
.top-tiel{ .top-tiel{
@ -1455,7 +1631,7 @@
font-size: 25rpx; font-size: 25rpx;
height: 35px; height: 35px;
line-height: 35px; line-height: 35px;
text-align: center;
image{ image{
position: relative; position: relative;
top: 5px; top: 5px;
@ -1568,6 +1744,7 @@
font-weight: bold; font-weight: bold;
} }
} }
.announcement{ .announcement{
border-top: 5px solid #000000; border-top: 5px solid #000000;
padding-top: 50rpx; padding-top: 50rpx;

98
pages/base/mine.vue

@ -3,28 +3,65 @@
<v-header :title="$t('base.d2')" :left-arrow="false"></v-header> <v-header :title="$t('base.d2')" :left-arrow="false"></v-header>
<!-- <view style="height: var(--status-bar-height)"></view> --> <!-- <view style="height: var(--status-bar-height)"></view> -->
<view <view
class="box-size head bg-panel-3 h-aut p-x-md m-x-md d-flex justify-between flex-wrap align-center bgb3 rounded-ms color-light" class="box-size head h-aut p-x-md d-flex justify-between flex-wrap align-center color-light"
:class="theme == 'light' ? 'bgb3-white' : ''" style="position: relative"> :class="theme == 'light' ? 'bgb3-white' : ''" style="position: relative;background-color: black;">
<view class="d-flex p-t-md justify-center align-center w-max"> <view class="d-flex p-t-md align-center w-max">
<text class="fn-16 color-default d-block">{{ $t("base.d6") }}(BTC)</text> <text class="fn-16 color-default d-block col-fff">{{ $t("base.d6") }}(BTC)</text>
<view class="fn-18 m-l-md d-flex" @click="setHide(!hideMoney)"> <view class="fn-18 m-l-md d-flex" @click="setHide(!hideMoney)">
<van-icon v-if="!hideMoney" name="eye-o"/> <van-icon v-if="!hideMoney" name="eye-o"/>
<van-icon v-else name="closed-eye"/> <van-icon v-else name="closed-eye"/>
</view> </view>
</view> </view>
<view class="m-t-md d-flex flex-wrap justify-center fn-center w-max">
<!-- <view class="m-t-md d-flex justify-center fn-center w-max">
<text class="fn-28 w-max">{{ filterMoney(account.total_assets_btc, true) }}</text> <text class="fn-28 w-max">{{ filterMoney(account.total_assets_btc, true) }}</text>
<text class="fn-sm m-l-md w-max"> <text class="fn-sm m-l-md w-max">
<!-- {{ filterMoney(account.total_assets_usd) }} USD --> {{ filterMoney(account.total_assets_usd) }} USD
{{ filterMoney(account.total_assets_usd, false) }} USDT {{ filterMoney(account.total_assets_usd, false) }} USDT
</text> </text>
</view> -->
<view class="">
<view class="text_figure col-fff">{{filterMoney(account.total_assets_btc, true)}}</view>
<view style="color: #6FB58A;">{{ filterMoney(account.total_assets_usd, false) }} USDT</view>
</view> </view>
<view class="m-t-ms p-b-ms w-max " style="margin-top: 10px"> <view class="m-t-ms p-b-ms w-max" style="display: flex;justify-content: space-between;">
<v-link tag="view" to="/pages/assets/recharge" v-if="user_auth_level==1" @click="getAuthInfo">
<view class="m-r-xs d-flex align-center">
<img src="@/assets/img/home/Make.png" alt="" class="h-25"/>
</view>
<text class="color-light fn-middle fn-ms">{{$t("base.b5")}}</text>
</v-link>
<v-link tag="view" to="/pages/auth/primary" v-if="user_auth_level==0" @click="getAuthInfo">
<view class="m-r-xs d-flex align-center">
<img src="@/assets/img/home/currency.png" alt="" class="h-25"/>
</view>
<text class="color-light fn-middle fn-ms">{{$t("base.b5")}}</text>
</v-link>
<v-link tag="view" to="/pages/assets/draw">
<view class="m-r-xs d-flex align-center">
<img src="@/assets/img/home/currency.png" alt="" class="h-25"/>
</view>
<text class="color-light fn-ms">{{$t("base.b6")}}</text>
</v-link>
<v-link tag="view" to="/pages/assets/draw">
<view class="m-r-xs d-flex align-center">
<img src="@/assets/img/home/transfer.png" alt="" class="h-25"/>
</view>
<text class="color-light fn-ms">{{$t("base.d8")}}</text>
</v-link>
<v-link tag="view" to="/pages/transfer/index">
<view class="m-r-xs d-flex align-center">
<img src="@/assets/img/home/check.png" alt="" class="h-25"/>
</view>
<text class="color-light fn-ms">{{$t("base.d8")}}</text>
</v-link>
</view>
<!-- <view class="m-t-ms p-b-ms w-max " style="margin-top: 10px">
<view class="d-flex justify-between align-center rounded-lg"> <view class="d-flex justify-between align-center rounded-lg">
<v-link tag="view" to="/pages/assets/recharge" v-if="user_auth_level==1" @click="getAuthInfo" <v-link tag="view" to="/pages/assets/recharge" v-if="user_auth_level==1" @click="getAuthInfo"
class="d-flex bg-form-panel-3 align-center p-y-xxs rounded-xs w-33 justify-center shadow-panel-4"> class="d-flex bg-form-panel-3 align-center p-y-xxs rounded-xs w-33 justify-center shadow-panel-4">
<!-- :class="tabActive==0?'color-theme-1 bg-panel-3 rounded-xs shadow-panel-nei':''" --> :class="tabActive==0?'color-theme-1 bg-panel-3 rounded-xs shadow-panel-nei':''"
<view class="m-r-xs d-flex align-center"> <view class="m-r-xs d-flex align-center">
<img src="static/img/13.png" alt="" class="h-25"/> <img src="static/img/13.png" alt="" class="h-25"/>
</view> </view>
@ -35,7 +72,7 @@
</v-link> </v-link>
<v-link tag="view" to="/pages/auth/primary" v-if="user_auth_level==0" @click="getAuthInfo" <v-link tag="view" to="/pages/auth/primary" v-if="user_auth_level==0" @click="getAuthInfo"
class="d-flex bg-form-panel-3 align-center p-y-xxs rounded-xs w-33 justify-center shadow-panel-4"> class="d-flex bg-form-panel-3 align-center p-y-xxs rounded-xs w-33 justify-center shadow-panel-4">
<!-- :class="tabActive==0?'color-theme-1 bg-panel-3 rounded-xs shadow-panel-nei':''" --> :class="tabActive==0?'color-theme-1 bg-panel-3 rounded-xs shadow-panel-nei':''"
<view class="m-r-xs d-flex align-center"> <view class="m-r-xs d-flex align-center">
<img src="static/img/13.png" alt="" class="h-25"/> <img src="static/img/13.png" alt="" class="h-25"/>
</view> </view>
@ -65,14 +102,14 @@
</text> </text>
</v-link> </v-link>
</view> </view>
</view> </view> -->
</view> </view>
<view class="layout-main"> <view class="layout-main" style="background-color: black;">
<scroll-view @refresherrefresh="onRefresh" :refresher-enabled="refresherEnabled&&scrollTop<50" <scroll-view @refresherrefresh="onRefresh" :refresher-enabled="refresherEnabled&&scrollTop<50"
:refresher-triggered="refreshing" refresher-background="transparent" :refresher-threshold="50"> :refresher-triggered="refreshing" refresher-background="transparent" :refresher-threshold="50">
<!-- 头部 --> <!-- 头部 -->
<view class="tab m-x-md m-t-md rounded-ms d-flex justify-between bgb3 p-xs" <!-- <view class="tab m-x-md m-t-md rounded-ms d-flex justify-between bgb3 p-xs"
:class="theme == 'light' ? 'bgb3-white' : ''"> :class="theme == 'light' ? 'bgb3-white' : ''">
<view class="w-33 fn-center p-y-xxs" <view class="w-33 fn-center p-y-xxs"
:class="tabActive==0?'color-theme-1 bg-panel-3 rounded-xs shadow-panel-nei':''" :class="tabActive==0?'color-theme-1 bg-panel-3 rounded-xs shadow-panel-nei':''"
@ -84,11 +121,24 @@
@click="tabActive=1"> @click="tabActive=1">
{{$t('base.e4')}} {{$t('base.e4')}}
</view> </view>
<!-- <view class="w-33 fn-center p-y-xxs m-l-xs" :class="tabActive==2?'color-theme-1 bg-panel-3 rounded-xs shadow-panel-nei':''" <view class="w-33 fn-center p-y-xxs m-l-xs" :class="tabActive==2?'color-theme-1 bg-panel-3 rounded-xs shadow-panel-nei':''"
@click="tabActive=2"> @click="tabActive=2">
{{$t('otc.d5')}} {{$t('otc.d5')}}
</view>
</view> --> </view> -->
<view class="" style="display: flex;margin-top: 10px;">
<view class="w-33 fn-center p-y-xxs"
:class="tabActive==0?'col-fff rounded-xs ':''"
@click="tabActive=0">
{{$t('base.d7')}}
</view>
<view class="w-33 fn-center p-y-xxs"
:class="tabActive==1?'col-fff rounded-xs':''"
@click="tabActive=1">
{{$t('base.e4')}}
</view>
</view> </view>
<view class="top"> <view class="top">
<!-- <van-tabs <!-- <van-tabs
:active="tabActive" :active="tabActive"
@ -101,11 +151,11 @@
class="tabs-main d-flex justify-between align-center flex-col" class="tabs-main d-flex justify-between align-center flex-col"
> >
<van-tab :title="$t('base.d7')" :name="0"> --> <van-tab :title="$t('base.d7')" :name="0"> -->
<view class="box-shadow p-t-ms wallet m-y-md" v-if="tabActive==0"> <view class="box-shadow wallet m-y-md" v-if="tabActive==0">
<view class="m-x-md m-b-xs m-t-sm"> <view class="m-x-md m-b-xs m-t-sm">
<!--bgb3 :class="theme == 'light' ? 'bgb3-white' : ''" --> <!--bgb3 :class="theme == 'light' ? 'bgb3-white' : ''" -->
<view class="shadow-panel-nei p-xs p-x-md rounded-ms bg-form-panel-3" <view class="shadow-panel-nei p-xs p-x-md"
style="position: relative"> style="position: relative;background-color: #242424;border-radius: 5px;">
<text class="fn-20 d-block color-light m-t-xs"> <text class="fn-20 d-block color-light m-t-xs">
<!-- {{ filterMoney(account.funds_account_usd) }} --> <!-- {{ filterMoney(account.funds_account_usd) }} -->
{{ (account.funds_account_usd).toFixed(2) }} {{ (account.funds_account_usd).toFixed(2) }}
@ -125,7 +175,10 @@
:placeholder="$t('base.d9')" input-class="fn-12 " :placeholder="$t('base.d9')" input-class="fn-12 "
class="flex-fill color-gray-6 rounded-md pos fn-12 m-r-lg" class="flex-fill color-gray-6 rounded-md pos fn-12 m-r-lg"
style="padding-left: 0"/> style="padding-left: 0"/>
<van-checkbox :value="hide" @change="hide = !hide" icon-size="16"> <!-- <van-checkbox :value="hide" @change="hide = !hide" icon-size="16">
<text class="color-gray-6 m-r-xs">{{ $t("base.e0") }} 0 {{ $t("base.e1") }}</text>
</van-checkbox> -->
<van-checkbox :value="hide" @change="hide = !hide" checked-color="#fff">
<text class="color-gray-6 m-r-xs">{{ $t("base.e0") }} 0 {{ $t("base.e1") }}</text> <text class="color-gray-6 m-r-xs">{{ $t("base.e0") }} 0 {{ $t("base.e1") }}</text>
</van-checkbox> </van-checkbox>
</view> </view>
@ -455,6 +508,9 @@ export default {
color: $white; color: $white;
} }
} }
.col-fff{
color: white;
}
.bgb3 { .bgb3 {
background: url(../../static/img/bgb3.png) no-repeat; background: url(../../static/img/bgb3.png) no-repeat;
@ -472,6 +528,12 @@ export default {
background-position: right bottom; background-position: right bottom;
} }
.text_figure{
margin: 5px 0px;
font-size: 50rpx;
font-weight: bold;
}
.pos { .pos {
position: relative; position: relative;
} }
@ -489,7 +551,7 @@ export default {
} }
.w-33 { .w-33 {
width: 30%; width: 25%;
} }
.w-50 { .w-50 {

BIN
static/img/pages1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 765 B

BIN
static/img/pages2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 479 B

BIN
static/img/pages3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 709 B

BIN
static/img/pages4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 831 B

BIN
static/img/pages5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

BIN
static/img/pages6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 705 B

Loading…
Cancel
Save