userCenter.wxml
3.6 KB
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
<view class="container">
<!-- 未登录 -->
<view wx:if="{{!isLogin}}" class="not-login-view">
<image class="login-icon" src="../../static/images/userCenter_login@3x.png">
<login-button
class="login-btn"
open-type="{{hasUnionID?'getPhoneNumber':'getUserInfo'}}"
bindgetphonenumber="getPhoneNumber"
bindgetuserinfo='getUserInfo'
bindupdateuserinfo="updateUserInfo">
</login-button>
</image>
</view>
<!-- 已登录 -->
<block wx:else>
<!-- 头部用户信息 -->
<view class="header-bg">
<image class="user-info" src="{{isLogin ? userInfo.avatarUrl : ''}}" mode="aspectFill">
<view class="black-cover">
<view class="user-info">
<image class="portrait" src="{{userInfo.avatarUrl}}" mode="aspectFill"></image>
<view class="nick-name">{{userInfo.nickName}}</view>
<view class="qrcode-view" bindtap="tapMyQRCode" wx:if="{{isLogin}}">
<image class="qrcode-icon" src="../../static/images/myQRcode@3x.png"></image>
<view class="qrcode-tips">我的二维码</view>
</view>
</view>
</view>
</image>
</view>
<!-- 我的门票 -->
<section-header title="我的门票" more-title="全部订单" has-more="true" bind:tapMore="jumpAllOrders"></section-header>
<block wx:if="{{ticketData.length==0}}">
<undone-view undone-data="{{cur_undoneTicket}}" bind:jumpAllOrders="jumpAllOrders" bind:tapButton="tapButton"></undone-view>
</block>
<block wx:else>
<ticket-slide data="{{ticketData}}"></ticket-slide>
</block>
<!-- 我的活动 -->
<block wx:if="{{onActivityList.length || offActivityList.length}}">
<view class="space-view"></view>
<section-header title="我的活动" more-title="更多活动" has-more="{{onActivityList.length || offActivityList.length}}" bind:tapMore="jumpMoreActivity"></section-header>
<block wx:if="{{myActivityList.length == 0}}">
<undone-view undone-data="{{notJionActivity}}" bind:tapButton="tapButton"></undone-view>
</block>
<block wx:else>
<scroll-view scroll-y class="activity-list">
<!-- 正在进行的活动 -->
<block wx:for="{{onActivityList}}" wx:key="index">
<activity-item data="{{item}}" bind:jumpActivityetail="jumpActivityetail"></activity-item>
<view wx:if="{{index!=onActivityList.length-1}}" class="space-view40"></view>
</block>
<view class="end-space-view" wx:if="{{offActivityList.length}}">
<view class="left-line"></view>
<view class="end">已结束</view>
<view class="right-line"></view>
</view>
<!-- 已结束的活动 -->
<block wx:for="{{offActivityList}}" wx:key="index">
<activity-item data="{{item}}" bind:jumpActivityetail="jumpActivityetail"></activity-item>
<view wx:if="{{index!=offActivityList.length-1}}" class="space-view40"></view>
</block>
</scroll-view>
</block>
</block>
</block>
</view>
<quickNavigation id="quickNavigation" isShowIndicator="{{isShowIndicator}}" isShowShopCart="{{true}}" isShowMenu="{{false}}" marginBottom="{{50}}" bind:backToTop="backToTop"></quickNavigation>
<import src="../../vendors/toast/wetoast.wxml" />
<template is="wetoast" data="{{...__wetoast__}}" />
<import src="../../vendors/zanui/toast/index.wxml"/>
<template is="zan-toast" data="{{zanToast}}"/>