li-guang
2020-12-21 88a2df42a4d286137c25dc839ff93d617a41dda8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<template>
    <!-- 会员详情 -->
    <view>
        <!-- #ifndef H5 -->
        <view class="status_bar"></view>
        <!-- #endif -->
        <view class="header flex flex-v align-center">
            <image class="header-img" src="../../static/images/head-img.jpg"></image>
            <text class="font-18 mt-5">333</text>
            <text class="font-14 mt-5">会员编号: 101010</text>
            <view class="flex align-center mt-5">
                <text class="font-12 mr-10">{{this.eye==false?encryptAccount(15569216885):'15569216885'}}</text>
                <text class="icon iconfont" :class="this.eye==false?'iconyanjing':'iconyanjing1'" @click="eyeSwitch"></text>
            </view>    
            <view class="flex mt-10">
                <view class="icon-box mr-20">
                    <text class="icon iconfont icondianhua blue"></text>
                </view>
                <view class="icon-box">
                    <text class="icon iconfont iconxinxiduanxinsixinduihua blue"></text>
                </view>
            </view>
        </view>
        <view class="content">
            <view class="content-row flex justify-around">
                <view class="center">
                    <text class="font-18 red">600.00</text>
                    <text class="font-14 mt-10 block">余额</text>
                </view>
                <view class="center">
                    <text class="font-18 green">600.00</text>
                    <text class="font-14 mt-10 block">赠送余额</text>
                </view>
                <view class="center">
                    <text class="font-18 blue">600.00</text>
                    <text class="font-14 mt-10 block">累计消费</text>
                </view>
            </view>
            <view class="content-row flex flex-wrap">
                <view class="detail-item">
                    <navigator url="./editMember" hover-class="none" >
                        <image class="detail-icon" mode="aspectFit" src="../../static/images/member-detail1.png"></image>
                        <text class="font-14 mt-5">会员信息</text>
                    </navigator>
                </view>
                <view class="detail-item">
                    <navigator url="./projectPlan" hover-class="none" >
                        <image class="detail-icon"  mode="aspectFit" src="../../static/images/member-detail2.png"></image>
                        <text class="font-14 mt-5">项目/套餐</text>
                    </navigator>
                </view>
                <view class="detail-item">
                    <navigator url="./membershipCard" hover-class="none" >
                        <image class="detail-icon"  mode="aspectFit" src="../../static/images/member-detail3.png"></image>                        
                        <text class="font-14 mt-5">卡项</text>
                    </navigator>
                </view>
                <view class="detail-item">
                    <navigator url="./skinDetection" hover-class="none" >
                        <image class="detail-icon"  mode="aspectFit" src="../../static/images/member-detail4.png"></image>
                        <text class="font-14 mt-5">皮肤检测</text>
                    </navigator>
                </view>
                <view class="detail-item">
                    <image class="detail-icon" mode="aspectFit" src="../../static/images/member-detail5.png"></image>
                    <text class="font-14 mt-5">消费记录</text>
                </view>
                <view class="detail-item">
                    <image class="detail-icon"  mode="aspectFit" src="../../static/images/member-detail6.png"></image>
                    <text class="font-14 mt-5">服务记录</text>
                </view>
                <view class="detail-item">
                    <image class="detail-icon"  mode="aspectFit" src="../../static/images/member-detail7.png"></image>                        
                    <text class="font-14 mt-5">跟进记录</text>
                </view>
                <view class="detail-item">
                    <navigator url="./membershipCard" hover-class="none" >
                        <image class="detail-icon"  mode="aspectFit" src="../../static/images/member-detail3.png"></image>                        
                        <text class="font-14 mt-5">会员档案</text>
                    </navigator>
                </view>
            </view>
        </view>
        <view class="sticky-footer flex justify-between">
            <button class="white-btn btn">开单</button>
            <button class="blue-btn btn">预约</button>
        </view>
    </view>
</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>
    .status_bar{
        background: #518EFF;
        color: #FFFFFF;
    }
    .header{
        background: #518EFF;
        color: #FFFFFF;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        padding: 15px;
    }
    .header-img{
        width: 80px;
        height: 80px;
        border-radius: 50%;
    }
    .icon-box{
        width: 28px;
        height: 28px;
        line-height: 28px;
        text-align: center;
        background: #FFFFFF;
        border-radius: 50%;
    }
    .icon{
        font-size: 18px;
    }
    .content{
        padding: 0 10px;
    }
    .content-row{
        border: 1px solid #EDEAF4;
        background: #FFFFFF;
        margin-top: 10px;
        padding: 15px 0;
        border-radius: 4px;
        box-shadow:0 6px 6px rgba(237,234,244,0.5);
    }
    .detail-item{
        width: 25%;
        margin: 10px 0;
        text-align: center;
    }
    .detail-icon{
        display: block;
        width: 26px;
        height: 26px;
        margin: 0 auto;
    }
    .sticky-footer{
        margin: 0 -8px;
    }
    .btn{
        width: 100%;
        margin: 0 8px;
    }
</style>