Browse Source

安全中心新增提币地址 邮箱绑定 实名认证

master
liaoxinyu 2 years ago
parent
commit
33c5c9640b
  1. BIN
      assets/img/home/commone1.png
  2. 3
      pages/accountSettings/accountSettings.vue
  3. 19
      pages/assets/draw.vue
  4. 4
      pages/base/home.vue
  5. 2
      pages/base/mine.vue
  6. 2
      pages/safe/email.vue
  7. 51
      pages/safe/index.vue

BIN
assets/img/home/commone1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 580 B

3
pages/accountSettings/accountSettings.vue

@ -58,10 +58,11 @@
</view>
</v-link> -->
<v-link
<v-link
tag="div"
to="/pages/safe/email"
class="per-bot p-x-md p-y-md d-flex align-center justify-between bg-panel-3"
v-if="0"
>
<span class="color-light">{{$t('accountSettings.a7')}}</span>
<view class="d-flex align-center">

19
pages/assets/draw.vue

@ -230,17 +230,6 @@
<v-button type="yellow" block class="w-max rounded-md" @click="draw">{{ $t('common.confirm') }}</v-button>
</view>
</van-popup>
<van-popup :show="show" @close="show=false" closeable close-on-popstate>
<view style="padding: 30rpx 60rpx 0px 60rpx;width: 550rpx;">
<view style="text-align: center;color: #fff;margin: 30rpx 0px 50rpx;font-size: 40rpx;">{{$t('common.tips')}}</view>
<view style="text-align: center;color: #fff;margin: 30rpx 0px;">{{$t('common.c8')}}</view>
<view style="display: flex;justify-content: center;margin-bottom: 60rpx;text-align: center;">
<v-button block type="white" class="rounded-md" style="width: 300rpx;margin-top: 20rpx;" ref="btn" @click="toservice">{{$t('base.f2')}}</v-button>
</view>
</view>
</van-popup>
<van-toast id="van-toast"/>
</v-page>
</template>
@ -282,7 +271,6 @@ export default {
tiemr: null,
Graph_che: '',
hideImg: false,
show: false,
status:0,
lang: uni.getStorageSync('language')
};
@ -414,10 +402,6 @@ export default {
this.$toast(this.$t('safe.a6'))
return
}
if(this.status!=2){
this.show = true;
return
}
let data = this.withdrawFee
if (data.withdraw_switch == 1) {
this.secondaryShow = true
@ -439,6 +423,9 @@ export default {
}
},
draw() {
if(this.status!=2){
this.$toast($t('profile.withdrawal2'));
}
this.form.addressType = this.rechargeType;
this.form.coin_id = this.activeCoin.coin_id;
Wallet.withdraw(this.form, {btn: this.$refs.btn})

4
pages/base/home.vue

@ -623,10 +623,10 @@
<img src="@/static/img/pages3.png">
<view class="color-light">{{ $t("base.c4") }}</view>
</v-link>
<v-link :to="isLogin?'/pages/assets/address-list':'/pages/login/index'" tag="div" class="manage_text">
<!-- <v-link :to="isLogin?'/pages/assets/address-list':'/pages/login/index'" tag="div" class="manage_text">
<img src="@/static/img/pages4.png">
<view class="color-light">{{ $t("base.c5") }}</view>
</v-link>
</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>

2
pages/base/mine.vue

@ -118,7 +118,7 @@
</view> -->
</view>
<view style="background-color: #121212;height: 100rpx;">
<view style="background-color: #121212;height: 100rpx;" v-if="0">
<v-link tag="view" :to="{path: status!=2&&status!=1?'/pages/auth/certification':''}"
style="margin: 0rpx 35rpx;display: flex;padding: 0rpx 20rpx;
justify-content: space-between;align-items: center;border-radius: 20rpx;background-color: #abbb62;height: 100%;">

2
pages/safe/email.vue

@ -37,7 +37,7 @@
</view>
</view>
</main>
<view class="p-md bg-panel-4">
<view class="p-md bg-panel-4" v-if="0">
<v-button block class="w-max" type="theme" ref="btn" @click="chnageEmail">{{user.email?$t('safe.a0'):$t('safe.a1')}}</v-button>
</view>
<van-toast id="van-toast" />

51
pages/safe/index.vue

@ -2,7 +2,7 @@
<v-page>
<v-header :title="$t('safe.c7')"></v-header>
<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">
<!-- --------google------ -->
<!-- <v-link
@ -28,7 +28,7 @@
<van-icon name="arrow" />
</v-link>
<!-- ----------交易密码---------- -->
<!-- <v-link
<!-- <v-link
tag="li"
to="/pages/safe/transaction-password"
class="item link-active d-flex p-x-md p-y-md align-center border-b"
@ -63,7 +63,43 @@
<van-icon name="arrow" />
</v-link> -->
</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>
<van-popup
:show="switchShow"
@ -81,6 +117,7 @@
<script>
import { mapState ,mapActions} from "vuex";
import switchPage from "./switch";
import Profile from "@/api/profile";
export default {
components: {
switchPage,
@ -94,6 +131,7 @@ export default {
return {
switchShow: false,
switchType: 0,
status: 0,
};
},
methods: {
@ -104,9 +142,16 @@ export default {
this.switchType = idx;
this.switchShow = true;
},
getAuthInfo() {
Profile.getAuthInfo().then(res => {
this.status = res.data.status
// this.user_auth_level = res.data.primary_status
})
},
},
onShow() {
this.setUserInfo()
this.getAuthInfo()
},
mounted(){

Loading…
Cancel
Save