my.wxml
5.0 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
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
<!--pages/my/my.wxml-->
<view class="head-box">
<view wx:if="{{isLogin}}" >
<view class="head" bindtap='uploadImg' style="">
<image class='banner_img' wx:if="{{images !== ''}}" src='{{images}}' mode="aspectFill"></image>
<image class='banner_img' wx:else="" src="{{user.bg_pic}}" mode="aspectFill"></image>
</view>
<!--<view class="margin">-->
<image src="{{user.pic}}" class="user-img"></image>
<view class="left">
<view class="class-box">
<image src="../../images/jin@2x.png" wx:if="{{user.level === 1}}"></image>
<image src="../../images/yin@2x.png" wx:if="{{user.level === 2}}"></image>
<image src="../../images/tong@2x.png" wx:if="{{user.level === 3}}"></image>
<text wx:if="{{user.level === 1}}">金火柴</text>
<text wx:if="{{user.level === 2}}">银火柴</text>
<text wx:if="{{user.level === 3}}">铜火柴</text>
</view>
</view>
<view class="right">
<view class="name">{{user.name}}</view>
<view class="area">
<view class="iconfont icon-dingweiweizhizuobiaoxianxing"></view>
<text>{{user.city || '定位'}}</text>
</view>
<view class="qian">{{user.introduce || '个人简介'}}</view>
</view>
<!--</view>-->
<view class="iconfont icon-shezhi" bindtap="EditUserInfo"></view>
<!--<image src="../../images/user-img@2x.png" class="user-img"></image>-->
</view>
<view wx:if="{{!isLogin}}" class="login-box">
<button class="btn" open-type="getUserInfo" bindgetuserinfo="login">登录</button>
</view>
</view>
<view class="menu-box">
<view class="btn-box" bindtap="goMyCollect">
<image src="../../images/collect@2x.png" class="icon-money"></image>
<view class="right">
<view class="text">我的收藏</view>
<image src="../../images/arrow@2x.png" class="arrow"></image>
</view>
</view>
<view class="btn-box" bindtap="goMyWallet">
<image src="../../images/mywallet@2x.png" class="icon-safety"></image>
<view class="right">
<view class="text">我的钱包</view>
<image src="../../images/arrow@2x.png" class="arrow"></image>
</view>
</view>
<view class="btn-box" bindtap="goSuggest">
<image src="../../images/sugest@2x.png" class="icon-authentication"></image>
<view class="right">
<view class="text">意见反馈</view>
<image src="../../images/arrow@2x.png" class="arrow"></image>
</view>
</view>
<view class="btn-box" bindtap="goAbout">
<image src="../../images/about@2x.png" class="icon-address"></image>
<view class="right">
<view class="text">关于火柴一盒</view>
<image src="../../images/arrow@2x.png" class="arrow"></image>
</view>
</view>
<button class="btn-box button" open-type="contact" bindcontact="handleContact">
<image src="../../images/concat@2x.png" class="icon-customer"></image>
<view class="right">
<view class="text">联系客服</view>
<image src="../../images/arrow@2x.png" class="arrow"></image>
</view>
</button>
</view>
<!--底部tab-->
<import src="/templates/templates.wxml" />
<template is="tabBar" data='{{...tabcurrent}}' />
<!--去答题弹框-->
<view class="input-box" wx:if="{{is_showAnswer}}" catchtouchmove="disableScroll">
<image class="sorry-img" src="../../images/sorry@2x.png"></image>
<view class="title">目前只对</view>
<view class="title">首批会员开放发布功能</view>
<view class="tips">答题后可能获得第一批次入场卷</view>
<view class="answer-btn" catchtap="goAnswer">答题</view>
</view>
<view class="modal_box" wx:if="{{is_showAnswer}}" bindtap="handleBackground" catchtouchmove="disableScroll"></view>
<!--去完善个人信息弹框-->
<view class="input-box" wx:if="{{is_showUserInfo}}" catchtouchmove="disableScroll">
<image class="sorry-img" src="../../images/user_info@2x.png"></image>
<view class="title">为了更好的体验</view>
<view class="title">请先完善个人信息</view>
<view class="answer-btn" bindtap="goUserInfo">完成</view>
</view>
<view class="modal_box" wx:if="{{is_showUserInfo}}" bindtap="handleBackground" catchtouchmove="disableScroll"></view>
<!--发布-->
<view class="release-btn-box" wx:if="{{is_showRelease}}">
<view class="left-btn" bindtap="releaseMeal">
<image src="../../images/pincan@2x.png"></image>
<view class="text">发布拼餐</view>
</view>
<view class="right-btn" bindtap="releaseActivity">
<image src="../../images/pinhuodong@2x.png"></image>
<view class="text">发布拼活动</view>
</view>
</view>
<view class="modal_box" wx:if="{{is_showRelease}}" bindtap="handleBackground" catchtouchmove="disableScroll"></view>