|
@@ -1,113 +1,126 @@
|
1
|
|
-
|
2
|
1
|
<view class="user-info">
|
3
|
|
- <!-- <image class="bg" src="/images/background/my-background.png"></image> -->
|
4
|
|
- <view class="user-info-box flex flex-align-center {{ userInfo.is_vip == 1 ? 'active' : '' }}">
|
5
|
|
- <image class="avatar" src="{{userInfo.avatar_url || '/images/header.png'}}" bindtap="onAvatar"></image>
|
6
|
|
- <view class="info-right flex-column">
|
7
|
|
- <text class="nick-name">{{userInfo.nickname || '微信用户'}}</text>
|
8
|
|
- <!-- <view class="intro flex-align-center">
|
9
|
|
- <view class="gender flex-center" style="margin-right: 14rpx;" wx:if="{{ userInfo.sex == 1 || userInfo.sex == 2 }}">
|
10
|
|
- <image src="/images/icon_gender_{{userInfo.sex}}.png"></image>
|
11
|
|
- </view>
|
12
|
|
- <view class="city flex-center" style="margin-right: 16rpx;">深圳</view>
|
13
|
|
- <view class="vip-time flex-center" wx:if="{{userInfo.vip}}">
|
14
|
|
- <image src="/images/icon_vip_04.png"></image>
|
15
|
|
- <text>{{userInfo.vip.card_name}}({{userInfo.vip.store_time_alias}})</text>
|
|
2
|
+ <!-- <image class="bg" src="/images/background/my-background.png"></image> -->
|
|
3
|
+ <view class="user-info-box flex flex-align-center {{ userInfo.is_vip == 1 ? 'active' : '' }}">
|
|
4
|
+ <image class="avatar" src="{{userInfo.avatar_url || '/images/header.png'}}" bindtap="onAvatar"></image>
|
|
5
|
+ <view class="info-right flex-column">
|
|
6
|
+ <text class="nick-name">{{userInfo.nickname || '微信用户'}}</text>
|
|
7
|
+ <!-- <view class="intro flex-align-center">
|
|
8
|
+ <view class="gender flex-center" style="margin-right: 14rpx;" wx:if="{{ userInfo.sex == 1 || userInfo.sex == 2 }}">
|
|
9
|
+ <image src="/images/icon_gender_{{userInfo.sex}}.png"></image>
|
|
10
|
+ </view>
|
|
11
|
+ <view class="city flex-center" style="margin-right: 16rpx;">深圳</view>
|
|
12
|
+ <view class="vip-time flex-center" wx:if="{{userInfo.vip}}">
|
|
13
|
+ <image src="/images/icon_vip_04.png"></image>
|
|
14
|
+ <text>{{userInfo.vip.card_name}}({{userInfo.vip.store_time_alias}})</text>
|
|
15
|
+ </view>
|
|
16
|
+ </view>
|
|
17
|
+ <text style="color: #666;font-size: 24rpx;" wx:if="{{userInfo.is_vip == 1}}">会员有效期时间:{{userInfo.vip.valid_time}}</text>
|
|
18
|
+ <text style="color: #666;font-size: 28rpx;" wx:if="{{userInfo.is_vip == 0}}">您还没有开通会员哦~</text> -->
|
16
|
19
|
</view>
|
17
|
|
- </view>
|
18
|
|
- <text style="color: #666;font-size: 24rpx;" wx:if="{{userInfo.is_vip == 1}}">会员有效期时间:{{userInfo.vip.valid_time}}</text>
|
19
|
|
- <text style="color: #666;font-size: 28rpx;" wx:if="{{userInfo.is_vip == 0}}">您还没有开通会员哦~</text> -->
|
20
|
20
|
</view>
|
21
|
|
- </view>
|
22
|
21
|
</view>
|
23
|
22
|
|
24
|
|
-<!-- <view class="order item-radius" style="margin-top: -66rpx;">
|
25
|
|
- <navigator url="/pages/order/order?current=0" hover-class="none">
|
26
|
|
- <view class="item">
|
27
|
|
- <image src="/images/dfk.png"></image>
|
28
|
|
- <text>待付款</text>
|
29
|
|
- <view class="item-num flex-center" wx:if="{{userInfo.order_num && userInfo.order_num.wait_pay_num > 0}}">{{userInfo.order_num.wait_pay_num > 99 ? '99' : userInfo.order_num.wait_pay_num }}</view>
|
30
|
|
- </view>
|
31
|
|
- </navigator>
|
32
|
|
- <navigator url="/pages/order/order?current=1" hover-class="none">
|
33
|
|
- <view class="item">
|
34
|
|
- <image src="/images/yyy.png"></image>
|
35
|
|
- <text>已预约</text>
|
36
|
|
- <view class="item-num flex-center" wx:if="{{userInfo.order_num && userInfo.order_num.wait_use_num > 0}}">{{userInfo.order_num.wait_use_num > 99 ? '99' : userInfo.order_num.wait_use_num }}</view>
|
37
|
|
- </view>
|
38
|
|
- </navigator>
|
39
|
|
- <navigator url="/pages/order/order?current=2" hover-class="none">
|
40
|
|
- <view class="item">
|
41
|
|
- <image src="/images/jxz.png"></image>
|
42
|
|
- <text>进行中</text>
|
43
|
|
- <view class="item-num flex-center" wx:if="{{userInfo.order_num && userInfo.order_num.using_num > 0}}">{{userInfo.order_num.using_num > 99 ? '99' : userInfo.order_num.using_num }}</view>
|
44
|
|
- </view>
|
45
|
|
- </navigator>
|
46
|
|
- <navigator url="/pages/order/order?current=3" hover-class="none">
|
47
|
|
- <view class="item">
|
48
|
|
- <image src="/images/yjs.png"></image>
|
49
|
|
- <text>已结算</text>
|
50
|
|
- </view>
|
51
|
|
- </navigator>
|
52
|
|
- <navigator url="/pages/order/order?current=4" hover-class="none">
|
53
|
|
- <view class="item">
|
54
|
|
- <image src="/images/yqx.png"></image>
|
55
|
|
- <text>已取消</text>
|
56
|
|
- </view>
|
57
|
|
- </navigator>
|
58
|
|
-</view> -->
|
|
23
|
+ <!-- <view class="order item-radius" style="margin-top: -66rpx;">
|
|
24
|
+ <navigator url="/pages/order/order?current=0" hover-class="none">
|
|
25
|
+ <view class="item">
|
|
26
|
+ <image src="/images/dfk.png"></image>
|
|
27
|
+ <text>待付款</text>
|
|
28
|
+ <view class="item-num flex-center" wx:if="{{userInfo.order_num && userInfo.order_num.wait_pay_num > 0}}">{{userInfo.order_num.wait_pay_num > 99 ? '99' : userInfo.order_num.wait_pay_num }}</view>
|
|
29
|
+ </view>
|
|
30
|
+ </navigator>
|
|
31
|
+ <navigator url="/pages/order/order?current=1" hover-class="none">
|
|
32
|
+ <view class="item">
|
|
33
|
+ <image src="/images/yyy.png"></image>
|
|
34
|
+ <text>已预约</text>
|
|
35
|
+ <view class="item-num flex-center" wx:if="{{userInfo.order_num && userInfo.order_num.wait_use_num > 0}}">{{userInfo.order_num.wait_use_num > 99 ? '99' : userInfo.order_num.wait_use_num }}</view>
|
|
36
|
+ </view>
|
|
37
|
+ </navigator>
|
|
38
|
+ <navigator url="/pages/order/order?current=2" hover-class="none">
|
|
39
|
+ <view class="item">
|
|
40
|
+ <image src="/images/jxz.png"></image>
|
|
41
|
+ <text>进行中</text>
|
|
42
|
+ <view class="item-num flex-center" wx:if="{{userInfo.order_num && userInfo.order_num.using_num > 0}}">{{userInfo.order_num.using_num > 99 ? '99' : userInfo.order_num.using_num }}</view>
|
|
43
|
+ </view>
|
|
44
|
+ </navigator>
|
|
45
|
+ <navigator url="/pages/order/order?current=3" hover-class="none">
|
|
46
|
+ <view class="item">
|
|
47
|
+ <image src="/images/yjs.png"></image>
|
|
48
|
+ <text>已结算</text>
|
|
49
|
+ </view>
|
|
50
|
+ </navigator>
|
|
51
|
+ <navigator url="/pages/order/order?current=4" hover-class="none">
|
|
52
|
+ <view class="item">
|
|
53
|
+ <image src="/images/yqx.png"></image>
|
|
54
|
+ <text>已取消</text>
|
|
55
|
+ </view>
|
|
56
|
+ </navigator>
|
|
57
|
+ </view> -->
|
59
|
58
|
|
60
|
59
|
<view class="tools">
|
61
|
|
-
|
62
|
|
- <view class="item-radius" style="margin-top: 20rpx;">
|
63
|
|
- <navigator url="/pages/recordList/recordList">
|
64
|
|
- <view class="item line">
|
65
|
|
- <image class="icon-left" src="/images/icon_tools_01.png"></image>
|
66
|
|
- <text class="flex1">门店检查记录</text>
|
67
|
|
- <!-- check_status -->
|
68
|
|
- <text class="active" style="color:#999999;">{{ userInfo.check_status == 1 ? '今日已检查' : '今日未检查' }}</text>
|
69
|
|
- <image class="icon-right" src="/images/right.png"></image>
|
70
|
|
- </view>
|
71
|
|
- </navigator>
|
|
60
|
+ <view class="item-radius" style="margin-top: 20rpx;">
|
|
61
|
+ <navigator url="/pages/recordList/recordList">
|
|
62
|
+ <view class="item line">
|
|
63
|
+ <image class="icon-left" src="/images/icon_tools_01.png"></image>
|
|
64
|
+ <text class="flex1">门店检查记录</text>
|
|
65
|
+ <!-- check_status -->
|
|
66
|
+ <text class="active" style="color:#999999;">{{ userInfo.check_status == 1 ? '今日已检查' : '今日未检查' }}</text>
|
|
67
|
+ <image class="icon-right" src="/images/right.png"></image>
|
|
68
|
+ </view>
|
|
69
|
+ </navigator>
|
|
70
|
+
|
|
71
|
+ <navigator url="/pages/customerList/customerList">
|
|
72
|
+ <view class="item line">
|
|
73
|
+ <image class="icon-left" src="/images/icon_tools_02.png"></image>
|
|
74
|
+ <text class="flex1">门店客户记录</text>
|
|
75
|
+ <!-- <text class="active" wx:if="{{ userInfo.card_num>0 }}">{{userInfo.card_num}}张可用</text> -->
|
|
76
|
+ <image class="icon-right" src="/images/right.png"></image>
|
|
77
|
+ </view>
|
|
78
|
+ </navigator>
|
|
79
|
+ </view>
|
72
|
80
|
|
73
|
|
- <navigator url="/pages/customerList/customerList">
|
74
|
|
- <view class="item line">
|
75
|
|
- <image class="icon-left" src="/images/icon_tools_02.png"></image>
|
76
|
|
- <text class="flex1">门店客户记录</text>
|
77
|
|
- <!-- <text class="active" wx:if="{{ userInfo.card_num>0 }}">{{userInfo.card_num}}张可用</text> -->
|
78
|
|
- <image class="icon-right" src="/images/right.png"></image>
|
79
|
|
- </view>
|
80
|
|
- </navigator>
|
81
|
|
-
|
82
|
|
- <navigator url="/pages/dossier/dossier">
|
83
|
|
- <view class="item line">
|
84
|
|
- <image class="icon-left" src="/images/icon_tools_03.png"></image>
|
85
|
|
- <text class="flex1">个人信息</text>
|
86
|
|
- <text class="active" style="color:#999999;">去修改</text>
|
87
|
|
- <image class="icon-right" src="/images/right.png"></image>
|
88
|
|
- </view>
|
89
|
|
- </navigator>
|
90
|
|
- </view>
|
91
|
|
-
|
92
|
|
- <view class="item-radius" style="margin-top: 20rpx;">
|
93
|
|
- <navigator url="/pages/role/role" hover-class="none">
|
94
|
|
- <view class="item line">
|
95
|
|
- <image class="icon-left" src="/images/icon_tools_04.png"></image>
|
96
|
|
- <text class="flex1">切换角色</text>
|
97
|
|
- <text class="active" style="color:#999999;" wx:if="{{ userInfo.role_name }}">{{ userInfo.role_name }}</text>
|
98
|
|
- <image class="icon-right" src="/images/right.png"></image>
|
99
|
|
- </view>
|
100
|
|
- </navigator>
|
101
|
|
- <navigator url="/pages/contact/contact" hover-class="none">
|
102
|
|
- <view class="item">
|
103
|
|
- <image class="icon-left" src="/images/icon_tools_05.png"></image>
|
104
|
|
- <text class="flex1">联系我们</text>
|
105
|
|
- <!-- <text class="active" style="color:#999999;">去修改</text> -->
|
106
|
|
- <image class="icon-right" src="/images/right.png"></image>
|
107
|
|
- </view>
|
108
|
|
- </navigator>
|
109
|
|
- </view>
|
|
81
|
+ <view class="item-radius" style="margin-top: 20rpx;">
|
|
82
|
+ <navigator url="">
|
|
83
|
+ <view class="item line">
|
|
84
|
+ <image class="icon-left" src="/images/icon_tools_03.png"></image>
|
|
85
|
+ <text class="flex1">扫一扫</text>
|
|
86
|
+ </view>
|
|
87
|
+ </navigator>
|
|
88
|
+ <navigator url="">
|
|
89
|
+ <view class="item line">
|
|
90
|
+ <image class="icon-left" src="/images/icon_tools_03.png"></image>
|
|
91
|
+ <text class="flex1">我的服务记录</text>
|
|
92
|
+ </view>
|
|
93
|
+ </navigator>
|
|
94
|
+ </view>
|
|
95
|
+
|
|
96
|
+ <view class="item-radius" style="margin-top: 20rpx;">
|
|
97
|
+ <navigator url="/subpackage/user/pages/dossier/dossier">
|
|
98
|
+ <view class="item line">
|
|
99
|
+ <image class="icon-left" src="/images/icon_tools_03.png"></image>
|
|
100
|
+ <text class="flex1">个人信息</text>
|
|
101
|
+ <text class="active" style="color:#999999;">去修改</text>
|
|
102
|
+ <image class="icon-right" src="/images/right.png"></image>
|
|
103
|
+ </view>
|
|
104
|
+ </navigator>
|
|
105
|
+ <navigator url="/pages/role/role" hover-class="none">
|
|
106
|
+ <view class="item line">
|
|
107
|
+ <image class="icon-left" src="/images/icon_tools_04.png"></image>
|
|
108
|
+ <text class="flex1">切换角色</text>
|
|
109
|
+ <text class="active" style="color:#999999;" wx:if="{{ userInfo.role_name }}">{{ userInfo.role_name
|
|
110
|
+ }}</text>
|
|
111
|
+ <image class="icon-right" src="/images/right.png"></image>
|
|
112
|
+ </view>
|
|
113
|
+ </navigator>
|
|
114
|
+ <navigator url="/pages/contact/contact" hover-class="none">
|
|
115
|
+ <view class="item">
|
|
116
|
+ <image class="icon-left" src="/images/icon_tools_05.png"></image>
|
|
117
|
+ <text class="flex1">联系我们</text>
|
|
118
|
+ <!-- <text class="active" style="color:#999999;">去修改</text> -->
|
|
119
|
+ <image class="icon-right" src="/images/right.png"></image>
|
|
120
|
+ </view>
|
|
121
|
+ </navigator>
|
|
122
|
+ </view>
|
110
|
123
|
|
111
|
124
|
</view>
|
112
|
125
|
|
113
|
|
-<change-env visible="{{ visible }}"></change-env>
|
|
126
|
+<change-env visible="{{ visible }}"></change-env>
|