1
|
<view class="container">
|
1
|
<view class="container">
|
2
|
- <!-- 头部用户信息 -->
|
|
|
3
|
- <view class="user-info">
|
|
|
4
|
- <login-button
|
|
|
5
|
- wx:if="{{!isLogin}}"
|
|
|
6
|
- class="login-bg"
|
|
|
7
|
- login-class="login-btn"
|
|
|
8
|
- open-type="{{hasUnionID?'getPhoneNumber':'getUserInfo'}}"
|
|
|
9
|
- bindgetphonenumber="getPhoneNumber"
|
|
|
10
|
- bindgetuserinfo='getUserInfo'
|
|
|
11
|
- bindupdateuserinfo="updateUserInfo">登录/注册
|
|
|
12
|
- </login-button>
|
|
|
13
|
- <block wx:else>
|
|
|
14
|
- <image class="header-bg" src="https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2700915385,2771074487&fm=26&gp=0.jpg" mode="aspectFill">
|
|
|
15
|
- <view class="user-info">
|
|
|
16
|
- <image class="portrait" src="{{userInfo.avatarUrl}}" mode="aspectFill"></image>
|
|
|
17
|
- <view class="nick-name">{{userInfo.nickName}}</view>
|
|
|
18
|
- <view class="qrcode-view" bindtap="tapMyQRCode">
|
|
|
19
|
- <image class="qrcode-icon" src="../../static/images/myQRcode@3x.png"></image>
|
|
|
20
|
- <view class="qrcode-tips">我的二维码</view>
|
|
|
21
|
- </view>
|
|
|
22
|
- </view>
|
|
|
23
|
- </image>
|
|
|
24
|
- </block>
|
2
|
+ <!-- 未登录 -->
|
|
|
3
|
+ <view wx:if="{{!isLogin}}" class="not-login-view">
|
|
|
4
|
+ <image class="login-icon" src="../../static/images/userCenter_login@3x.png">
|
|
|
5
|
+ <login-button
|
|
|
6
|
+ class="login-btn"
|
|
|
7
|
+ open-type="{{hasUnionID?'getPhoneNumber':'getUserInfo'}}"
|
|
|
8
|
+ bindgetphonenumber="getPhoneNumber"
|
|
|
9
|
+ bindgetuserinfo='getUserInfo'
|
|
|
10
|
+ bindupdateuserinfo="updateUserInfo">
|
|
|
11
|
+ </login-button>
|
|
|
12
|
+ </image>
|
25
|
</view>
|
13
|
</view>
|
26
|
-
|
|
|
27
|
- <!-- 我的门票 -->
|
|
|
28
|
- <section-header title="我的门票" more-title="全部订单" has-more="true" bind:tapMore="jumpAllOrders"></section-header>
|
|
|
29
|
- <block wx:if="{{noTicket}}">
|
|
|
30
|
- <undone-view undone-data="{{cur_undoneTicket}}" bind:jumpAllOrders="jumpAllOrders" bind:tapButton="tapButton"></undone-view>
|
|
|
31
|
- </block>
|
|
|
32
|
- <block wx:else>
|
|
|
33
|
- <ticket-slide></ticket-slide>
|
|
|
34
|
- </block>
|
|
|
35
|
-
|
|
|
36
|
- <view class="space-view"></view>
|
|
|
37
|
-
|
|
|
38
|
- <!-- 我的活动 -->
|
|
|
39
|
- <section-header title="我的活动" more-title="更多活动" has-more="{{!noActivity}}" bind:tapMore="jumpMoreActivity"></section-header>
|
|
|
40
|
- <block wx:if="{{noActivity}}">
|
|
|
41
|
- <undone-view undone-data="{{notJionActivity}}" bind:tapButton="tapButton"></undone-view>
|
|
|
42
|
- </block>
|
14
|
+ <!-- 已登录 -->
|
43
|
<block wx:else>
|
15
|
<block wx:else>
|
44
|
- <scroll-view scroll-y>
|
|
|
45
|
- <block wx:for="{{array}}" wx:key="index">
|
|
|
46
|
- <schedule-item data="{{item}}"></schedule-item>
|
|
|
47
|
- <view wx:if="{{index!=array.length-1}}" class="space-view40"></view>
|
|
|
48
|
- </block>
|
|
|
49
|
-
|
|
|
50
|
- <view class="end-space-view">
|
|
|
51
|
- <view class="left-line"></view>
|
|
|
52
|
- <view class="end">已结束</view>
|
|
|
53
|
- <view class="right-line"></view>
|
16
|
+ <!-- 头部用户信息 -->
|
|
|
17
|
+ <view class="header-bg">
|
|
|
18
|
+ <image class="user-info" src="{{isLogin ? userInfo.avatarUrl : ''}}" mode="aspectFill">
|
|
|
19
|
+ <view class="black-cover">
|
|
|
20
|
+ <view class="user-info">
|
|
|
21
|
+ <image class="portrait" src="{{userInfo.avatarUrl}}" mode="aspectFill"></image>
|
|
|
22
|
+ <view class="nick-name">{{userInfo.nickName}}</view>
|
|
|
23
|
+ <view class="qrcode-view" bindtap="tapMyQRCode" wx:if="{{isLogin}}">
|
|
|
24
|
+ <image class="qrcode-icon" src="../../static/images/myQRcode@3x.png"></image>
|
|
|
25
|
+ <view class="qrcode-tips">我的二维码</view>
|
|
|
26
|
+ </view>
|
|
|
27
|
+ </view>
|
54
|
</view>
|
28
|
</view>
|
|
|
29
|
+ </image>
|
|
|
30
|
+ </view>
|
|
|
31
|
+
|
|
|
32
|
+ <!-- 我的门票 -->
|
|
|
33
|
+ <section-header title="我的门票" more-title="全部订单" has-more="true" bind:tapMore="jumpAllOrders"></section-header>
|
|
|
34
|
+ <block wx:if="{{noTicket}}">
|
|
|
35
|
+ <undone-view undone-data="{{cur_undoneTicket}}" bind:jumpAllOrders="jumpAllOrders" bind:tapButton="tapButton"></undone-view>
|
|
|
36
|
+ </block>
|
|
|
37
|
+ <block wx:else>
|
|
|
38
|
+ <ticket-slide></ticket-slide>
|
|
|
39
|
+ </block>
|
55
|
|
40
|
|
56
|
- <block wx:for="{{array}}" wx:key="index">
|
|
|
57
|
- <schedule-item data="{{item}}"></schedule-item>
|
|
|
58
|
- <view wx:if="{{index!=array.length-1}}" class="space-view40"></view>
|
|
|
59
|
- </block>
|
|
|
60
|
- </scroll-view>
|
41
|
+ <view class="space-view"></view>
|
|
|
42
|
+
|
|
|
43
|
+ <!-- 我的活动 -->
|
|
|
44
|
+ <section-header title="我的活动" more-title="更多活动" has-more="{{!noActivity}}" bind:tapMore="jumpMoreActivity"></section-header>
|
|
|
45
|
+ <block wx:if="{{noActivity}}">
|
|
|
46
|
+ <undone-view undone-data="{{notJionActivity}}" bind:tapButton="tapButton"></undone-view>
|
|
|
47
|
+ </block>
|
|
|
48
|
+ <block wx:else>
|
|
|
49
|
+ <scroll-view scroll-y>
|
|
|
50
|
+ <block wx:for="{{array}}" wx:key="index">
|
|
|
51
|
+ <schedule-item data="{{item}}"></schedule-item>
|
|
|
52
|
+ <view wx:if="{{index!=array.length-1}}" class="space-view40"></view>
|
|
|
53
|
+ </block>
|
|
|
54
|
+
|
|
|
55
|
+ <view class="end-space-view">
|
|
|
56
|
+ <view class="left-line"></view>
|
|
|
57
|
+ <view class="end">已结束</view>
|
|
|
58
|
+ <view class="right-line"></view>
|
|
|
59
|
+ </view>
|
|
|
60
|
+
|
|
|
61
|
+ <block wx:for="{{array}}" wx:key="index">
|
|
|
62
|
+ <schedule-item data="{{item}}"></schedule-item>
|
|
|
63
|
+ <view wx:if="{{index!=array.length-1}}" class="space-view40"></view>
|
|
|
64
|
+ </block>
|
|
|
65
|
+ </scroll-view>
|
|
|
66
|
+ </block>
|
61
|
</block>
|
67
|
</block>
|
62
|
|
68
|
|
63
|
</view>
|
69
|
</view>
|