|
@@ -2,7 +2,7 @@
|
|
|
<view class="index-data">
|
|
|
<view class="index-top">
|
|
|
<top-head @setBabAddress="setBabAddress"></top-head>
|
|
|
- <view class="top-text">
|
|
|
+ <view class="top-text" @click="goToUrl(2)">
|
|
|
{{ $t('index.index.top.one') }}
|
|
|
<!-- <view class="text-item">{{$t('index.index.top.one')}}</view>-->
|
|
|
<!-- <view class="text-item">{{$t('index.index.top.two')}}</view>-->
|
|
@@ -14,11 +14,12 @@
|
|
|
</view>
|
|
|
<view class="top-bottom" @click="setClipboardData">
|
|
|
<image class="bottom-img" src="@/static/img/index/cp.png" mode="aspectFill"></image>
|
|
|
- <text class="bottom-text">{{ $t('index.index.top.cp') }}</text>
|
|
|
+ <text class="bottom-text bottom-text-two">{{ $t('index.index.top.cp') }}</text>
|
|
|
</view>
|
|
|
- <view class="top-bottom">
|
|
|
+ <view class="top-bottom" v-if="false">
|
|
|
<image class="bottom-img" src="@/static/img/index/dagou.svg" mode="aspectFill"></image>
|
|
|
- <text class="bottom-text">{{ $t('index.index.top.five') }}{{days}}{{$t('index.index.top.four')}}</text>
|
|
|
+<!-- <text class="bottom-text">{{ $t('index.index.top.five') }}{{days}}{{$t('index.index.top.four')}}</text>-->
|
|
|
+<!-- <text class="bottom-text">{{ $t('index.index.top.five') }}</text>-->
|
|
|
<text class="bottom-text" @click="goToUrl(2)">{{ $t('index.index.top.six') }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -65,6 +66,7 @@ import Division from "@/pages/index/components/division";
|
|
|
import TopHead from "@/pages/index/components/top-head";
|
|
|
import EarningList from "@/pages/index/components/earning-list";
|
|
|
import CommonList from "@/pages/index/components/common-list";
|
|
|
+import tokenpocketBnb from "@/common/wallet/tokenpocket-wallet/tokenpocket-bnb";
|
|
|
|
|
|
export default {
|
|
|
components: {CommonList, EarningList, TopHead, Division},
|
|
@@ -175,6 +177,14 @@ export default {
|
|
|
getMemberInfo().then((res) => {
|
|
|
if (res.code === 1) {
|
|
|
this.memberData = res.data
|
|
|
+ tokenpocketBnb.getAccounts().then((babAddress)=>{
|
|
|
+ if(babAddress && this.memberData.address.toLocaleLowerCase()!==babAddress.toLocaleLowerCase()){
|
|
|
+ uni.clearStorageSync()
|
|
|
+ uni.reLaunch({
|
|
|
+ 'url': 'pages/login/index'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -302,16 +312,23 @@ export default {
|
|
|
font-size: 24rpx;
|
|
|
color: #7484a4;
|
|
|
}
|
|
|
+ bottom-text-two{
|
|
|
+ font-size: 23rpx !important;
|
|
|
+ }
|
|
|
|
|
|
.bottom-text:nth-of-type(2) {
|
|
|
margin-left: 0.5em;
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- .top-bottom:first-child {
|
|
|
- padding: 40rpx 40rpx 0 40rpx;
|
|
|
- }
|
|
|
+ //.top-bottom
|
|
|
+
|
|
|
+ //.top-bottom:nth-of-type(0) {
|
|
|
+ // //padding: 40rpx 40rpx 0 40rpx;
|
|
|
+ // .bottom-text{
|
|
|
+ // font-size: 28rpx;
|
|
|
+ // }
|
|
|
+ //}
|
|
|
}
|
|
|
.list-tab {
|
|
|
width: 90%;
|