|
|
@ -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"></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"> |
|
|
|
|
|
<van-icon name="manager" class="fn-18" /> |
|
|
<view class="d-flex align-center"> |
|
|
<text class="p-l-md fn-14">{{$t('auth.a1')}}</text> |
|
|
<van-icon name="manager" class="col-fff" /> |
|
|
|
|
|
<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"></i> |
|
|
<i class="iconfont m-l-xs fn-sm"></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; |
|
|
|