fix
Helius
2021-02-20 45fb4b11ad51bb38306765b11a6747402e382cee
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
<template>
    <!-- 客户信息 -->
    <view class="container">
        <view class="header">
            <image class="avatar" :src="memberInfo.photo?memberInfo.photo:'../../static/images/default-avatar.png'"></image>
            <text>{{memberInfo.vipName}}</text>
        </view>
        <view>
            <view class="list-row">
                <text class="font-14">手机号码</text>
                <text class="font-14 gray">{{memberInfo.phone}}</text>
            </view>
            <view class="list-row">
                <text class="font-14">会员级别</text>
                <text class="font-14 gray">{{memberInfo.vipLevel || '-'}}</text>
            </view>
            <view class="list-row">
                <text class="font-14">会员编号</text>
                <text class="font-14 gray">{{memberInfo.vipNo}}</text>
            </view>
            <view class="list-row">
                <text class="font-14">总余额</text>
                <text class="font-14 gray">¥{{memberInfo.totalBalance | formatNum}}</text>
            </view>
            <view class="list-row">
                <text class="font-14">赠送余额</text>
                <text class="font-14 gray">¥{{memberInfo.giftBalance | formatNum}}</text>
            </view>
            <view class="list-row">
                <text class="font-14">剩余积分</text>
                <text class="font-14 gray">{{memberInfo.integral | formatNum}}</text>
            </view>
            <view class="list-row">
                <text class="font-14">所属门店</text>
                <text class="font-14 gray">{{memberInfo.shopName}}</text>
            </view>
        </view>
        <navigator :url="url">
            <button class="blue-btn sticky-footer">下一步</button>
        </navigator>
    </view>
</template>
 
<script>
    export default{
        data(){
            return{
                type: 1,
                memberInfo: {},
                url: './selectProduct/index'
            }
        },
        onLoad(options) {
            this.type = options.type;
            this.loadMemberInfo(options.id);
        },
        methods:{
            loadMemberInfo(id){
                this.$httpUtils.request('/api/vip/findVipInfoById/'+id).then((res) => {
                    if(res.status == 200){
                        this.memberInfo = res.mapInfo.vipInfo;
                        const {vipName} = this.memberInfo;
                        if(this.type==1){
                            this.url = './selectProduct/index?id='+id+'&vipName='+vipName;
                        } else {
                            this.url = './selectService/index?id='+id+'&vipName='+vipName;
                        }
                    }
                })
            }
        }
    }
</script>
 
<style>
    .container{
        padding: 0 10px;
    }
    .header{
        text-align: center;
        padding: 20px 0;
        font-size: 16px;
        color: #333333;
    }
    .avatar{
        width: 60px;
        height: 60px;
        display: block;
        margin: 0 auto 10px;
        border-radius: 50%;
    }
    .list-row{
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #EDEAF4;
        padding: 14px 0;
    }
</style>