|
|
@ -2,7 +2,7 @@ |
|
|
<v-page> |
|
|
<v-page> |
|
|
<v-header :title="$t('safe.c7')"></v-header> |
|
|
<v-header :title="$t('safe.c7')"></v-header> |
|
|
<view style="background-color: #121212;height: 100%;"> |
|
|
<view style="background-color: #121212;height: 100%;"> |
|
|
<main class=" m-x-lg m-y-lg p-x-md bg-panel-3 rounded-md box-shadow"> |
|
|
<view class=" m-x-lg m-y-lg p-x-md bg-panel-3 rounded-md box-shadow"> |
|
|
<view class="list"> |
|
|
<view class="list"> |
|
|
<!-- --------google------ --> |
|
|
<!-- --------google------ --> |
|
|
<!-- <v-link |
|
|
<!-- <v-link |
|
|
@ -28,7 +28,7 @@ |
|
|
<van-icon name="arrow" /> |
|
|
<van-icon name="arrow" /> |
|
|
</v-link> |
|
|
</v-link> |
|
|
<!-- ----------交易密码---------- --> |
|
|
<!-- ----------交易密码---------- --> |
|
|
<!-- <v-link |
|
|
<!-- <v-link |
|
|
tag="li" |
|
|
tag="li" |
|
|
to="/pages/safe/transaction-password" |
|
|
to="/pages/safe/transaction-password" |
|
|
class="item link-active d-flex p-x-md p-y-md align-center border-b" |
|
|
class="item link-active d-flex p-x-md p-y-md align-center border-b" |
|
|
@ -63,7 +63,43 @@ |
|
|
<van-icon name="arrow" /> |
|
|
<van-icon name="arrow" /> |
|
|
</v-link> --> |
|
|
</v-link> --> |
|
|
</view> |
|
|
</view> |
|
|
</main> |
|
|
</view> |
|
|
|
|
|
<view class=" m-x-lg m-y-lg p-x-md bg-panel-3 rounded-md box-shadow"> |
|
|
|
|
|
<view class="list"> |
|
|
|
|
|
<v-link tag="view" :to="{path: status!=2&&status!=1?'/pages/auth/certification':''}" |
|
|
|
|
|
style="display: flex;justify-content: space-between;align-items: center;" |
|
|
|
|
|
class="item link-active d-flex p-x-md p-y-md align-center border-b"> |
|
|
|
|
|
<view style="display: flex;align-items: center;"> |
|
|
|
|
|
<view class="color-light" v-if="status==0">{{$t('common.c9')}}</view> |
|
|
|
|
|
<view class="color-yellows" v-else-if="status==1">{{$t('auth.a5')}}</view> |
|
|
|
|
|
<view class="color-buy" v-else-if="status==2">{{$t('common.c10')}}</view> |
|
|
|
|
|
<view class="color-sell" v-else-if="status==3">{{$t('common.c11')}}</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<van-icon name="arrow" /> |
|
|
|
|
|
</v-link> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class=" m-x-lg m-y-lg p-x-md bg-panel-3 rounded-md box-shadow"> |
|
|
|
|
|
<view class="list"> |
|
|
|
|
|
<v-link tag="li" to="/pages/safe/email" class="item link-active d-flex p-x-md p-y-md align-center border-b"> |
|
|
|
|
|
<span class="color-light" style="width: 200rpx;">{{$t('accountSettings.a7')}}</span> |
|
|
|
|
|
<view class="d-flex align-center"> |
|
|
|
|
|
<view style="word-wrap: break-word;">{{user.email}}</view> |
|
|
|
|
|
<van-icon class="p-l-xs" name="arrow" size="16" color="#9FA6B5" @click.stop /> |
|
|
|
|
|
</view> |
|
|
|
|
|
</v-link> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class=" m-x-lg m-y-lg p-x-md bg-panel-3 rounded-md box-shadow"> |
|
|
|
|
|
<view class="list"> |
|
|
|
|
|
<v-link tag="li" to="/pages/assets/address-list" class="item link-active d-flex p-x-md p-y-md align-center border-b"> |
|
|
|
|
|
<view class="flex-fill d-flex justify-between m-r-xs"> |
|
|
|
|
|
<view class="color-light">{{$t('base.c5')}}</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<van-icon name="arrow" /> |
|
|
|
|
|
</v-link> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<van-popup |
|
|
<van-popup |
|
|
:show="switchShow" |
|
|
:show="switchShow" |
|
|
@ -81,6 +117,7 @@ |
|
|
<script> |
|
|
<script> |
|
|
import { mapState ,mapActions} from "vuex"; |
|
|
import { mapState ,mapActions} from "vuex"; |
|
|
import switchPage from "./switch"; |
|
|
import switchPage from "./switch"; |
|
|
|
|
|
import Profile from "@/api/profile"; |
|
|
export default { |
|
|
export default { |
|
|
components: { |
|
|
components: { |
|
|
switchPage, |
|
|
switchPage, |
|
|
@ -94,6 +131,7 @@ export default { |
|
|
return { |
|
|
return { |
|
|
switchShow: false, |
|
|
switchShow: false, |
|
|
switchType: 0, |
|
|
switchType: 0, |
|
|
|
|
|
status: 0, |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
@ -104,9 +142,16 @@ export default { |
|
|
this.switchType = idx; |
|
|
this.switchType = idx; |
|
|
this.switchShow = true; |
|
|
this.switchShow = true; |
|
|
}, |
|
|
}, |
|
|
|
|
|
getAuthInfo() { |
|
|
|
|
|
Profile.getAuthInfo().then(res => { |
|
|
|
|
|
this.status = res.data.status |
|
|
|
|
|
// this.user_auth_level = res.data.primary_status |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
onShow() { |
|
|
onShow() { |
|
|
this.setUserInfo() |
|
|
this.setUserInfo() |
|
|
|
|
|
this.getAuthInfo() |
|
|
}, |
|
|
}, |
|
|
mounted(){ |
|
|
mounted(){ |
|
|
|
|
|
|
|
|
|