From 59da004f2ec6c8dc2b59b524ea4c20883e317ca5 Mon Sep 17 00:00:00 2001
From: li-guang <153605324@qq.com>
Date: Tue, 15 Dec 2020 17:27:28 +0800
Subject: [PATCH] 个人中心设置,会员详情修改
---
hive-app/pages/mine/setting.vue | 8 ++++----
hive-app/App.vue | 2 +-
hive-app/pages/member/detail.vue | 24 +++++++++++++++++++++++-
3 files changed, 28 insertions(+), 6 deletions(-)
diff --git a/hive-app/App.vue b/hive-app/App.vue
index db00c50..426b262 100644
--- a/hive-app/App.vue
+++ b/hive-app/App.vue
@@ -16,5 +16,5 @@
/*每个页面公共css */
@import url("./common/styles/index");
@import url("./static/iconfont/iconfont.css");
-@import url("//at.alicdn.com/t/font_2263696_85i6dla763h.css");
+@import url("//at.alicdn.com/t/font_2263696_9yynz69zizb.css");
</style>
diff --git a/hive-app/pages/member/detail.vue b/hive-app/pages/member/detail.vue
index f7d6610..9c4d634 100644
--- a/hive-app/pages/member/detail.vue
+++ b/hive-app/pages/member/detail.vue
@@ -8,7 +8,10 @@
<image class="header-img" src="../../static/images/head-img.jpg"></image>
<text class="font-18 white mt-5">333</text>
<text class="font-14 white mt-5">会员编号: 101010</text>
- <text class="font-12 white mt-5">湖南 长沙 22</text>
+ <view class="flex align-center mt-5">
+ <text class="font-12 white mr-10">{{this.eye==false?encryptAccount(15569216885):'15569216885'}}</text>
+ <text class="icon iconfont white" :class="this.eye==false?'iconyanjing':'iconyanjing1'" @click="eyeSwitch"></text>
+ </view>
<view class="flex align-center mt-10">
<view class="icon-box flex justify-center align-center mr-20">
<text class="icon iconfont icondianhua blue"></text>
@@ -76,6 +79,25 @@
</template>
<script>
+ export default{
+ data(){
+ return{
+ eye:false
+ }
+ },
+ methods:{
+ encryptAccount(val) {
+ if (/^1[3456789]\d{9}$/.test(val)) {
+ return String(val).substr(0, 3) + '****' + String(val).substr(7);
+ } else {
+ return val;
+ }
+ },
+ eyeSwitch(){
+ this.eye=!this.eye
+ }
+ }
+ }
</script>
<style>
diff --git a/hive-app/pages/mine/setting.vue b/hive-app/pages/mine/setting.vue
index f5aff33..6e6a6ae 100644
--- a/hive-app/pages/mine/setting.vue
+++ b/hive-app/pages/mine/setting.vue
@@ -16,11 +16,11 @@
</script>
<style>
- .container:first-child{
- border-top: 1px solid #ABB1CC;
+ .container{
+ padding: 0 15px;
}
.content-row{
- padding: 10px 15px;
- border-bottom: 1px solid #ABB1CC;
+ padding: 10px 0px;
+ border-bottom: 1px solid #EDEAF4;
}
</style>
--
Gitblit v1.9.1