123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- <wxs src="../../utils/filter.wxs" module="filters" />
- <view class="container">
- <!-- 导航栏 -->
- <view class="top-tab">
- <view class="tabbar select">
- <text>我的</text>
- </view>
- <view class="tabbar" bindtap="switcher" data-index="0">
- <text>推荐</text>
- </view>
- <view class="tabbar" bindtap="switcher" data-index="1">
- <text>关注</text>
- </view>
- <view class="tabbar" bindtap="switcher" data-index="2">
- <text>资源</text>
- </view>
- </view>
- <!-- 用户信息 -->
- <view class="userBox">
- <image class='avatar' src='{{ userInfo.user.avatar}}'></image>
- <view class="userRight">
- <view class="uRtop" bindtap="jump" data-url="/pages/user/myEdit/myEdit">
- <view class="uRtopleft">
- <view class="nickName textOver">昵称:{{userInfo.user.nickName||userInfo.user.eid }}</view>
- <view class="gradeText">年级:{{filters.gradeFilter(userInfo.user.grade)}}</view>
- </view>
- <view class="uRtopRight">
- <image class="edit" src="/static/image/edit_new.png" mode="" />
- <text>编辑</text>
- </view>
- </view>
- <view class="uRBtm">
- <view class="count countFirst">
- 作品<text class="countNum textOver">{{filters.numFilter(userInfo.readAmount)|| 0}}</text>
- </view>
- <view class="count">
- 粉丝<text class="countNum textOver">{{filters.numFilter(userInfo.fansAmount)|| '0'}}</text>
- </view>
- <view class="count countEnd">
- 播放<text class="countNum textOver">{{filters.numFilter(userInfo.playAmount) || 0}}</text>
- </view>
- </view>
- </view>
- </view>
- <!-- ios会员展示到期时间 -->
- <view class="iosVip" wx:if="{{isIos&&vipTime}}">
- 会员至:{{filters.formatDate(vipTime)}}
- </view>
- <!-- 跳转菜单 -->
- <view class="sectionBoxs">
- <view class="sBox" bindtap='jump' data-url="/pages/userWorks/index">
- <image class="img" src="/static/image/work.png" mode="" />
- <text class="title">我的作品</text>
- </view>
- <view class="sBox" bindtap='jump' data-url="/pages/myconcern/myconcern?title=我的关注">
- <image class="img" src="/static/image/concern.png" mode="" />
- <text class="title">我的关注</text>
- </view>
- <view class="sBox" bindtap='jump' data-url="/pages/mycollection/mycollection?title=我的收藏">
- <image class="img" src="/static/image/collect.png" mode="" />
- <text class="title">我的收藏</text>
- </view>
- <view class="sBox" bindtap='jump' data-url="/pages/social/insideMessage/insideMessage">
- <image class="img" src="/static/image/message.png" mode="" />
- <text class="title">消息通知</text>
- </view>
- <button class="contactBtn" bindtap="goToService" open-type="contact" plain="true" hover-class="none">
- <view class="sBox">
- <image class="img" src="/static/image/contact.png" mode="" />
- <text class="title">联系客服</text>
- </view>
- </button>
- </view>
- <!-- 支付 -->
- <view class="payBox" wx:if="{{!isIos}}">
- <view class="title">
- 付费购
- </view>
- <view class="pay vipPay">
- <view class="payLeft">
- <view class="pLTitle vipTitle">
- {{productVip.title}}
- </view>
- <view class="pLcontent vipContent">
- {{vipTime?filters.formatDate(vipTime)+'过期':'购买VIP会员,即可有权使用全部资源'}}
- </view>
- </view>
- <view class="payRight vipBtn" bindtap="toBuy" data-type="{{productVip.id}}">
- {{vipTime?'立即续费':'立即开通'}}
- </view>
- </view>
- <view class="pay buyPay">
- <view class="payLeft">
- {{productNum.title}}
- </view>
- <view class="payRight buyBtn" bindtap="toBuy" data-type="{{productNum.id}}">
- 立即购买
- </view>
- </view>
- </view>
- <!-- 剩余使用次数 -->
- <view class="surplus">
- <view class="title">剩余使用次数:</view>
- <view class="num">{{userInfo.experienceAmount}}次</view>
- </view>
- <!-- 任务活动 -->
- <view class="taskBox">
- <view class="title">免费获取</view>
- <view class="task">
- <view class="taskLeft">
- <image class="img" src="/static/image/task1.png" alt="" mode="" />
- <view class="taskContent">
- <view class="tcTitle">
- {{tasks[0].title}}
- </view>
- <view class="tcNum">+{{tasks[0].award}}次</view>
- </view>
- </view>
- <view class="taskRight {{tasks[0].completed?'taskRight-close':''}}" bindtap="submitTask" data-type='{{tasks[0].id}}'>
- {{tasks[0].completed?'已签到':'签到'}}</view>
- </view>
- <view class="task">
- <view class="taskLeft">
- <image class="img" src="/static/image/task2.png" alt="" mode="" />
- <view class="taskContent">
- <view class="tcTitle">
- {{tasks[1].title}}
- </view>
- <view class="tcNum">+{{tasks[1].award}}次/每位</view>
- </view>
- </view>
- <button open-type="share" class="resetBtn taskRight">去邀请</button>
- </view>
- <view class="task advert">
- <view class="taskLeft">
- <image class="img" src="/static/image/task3.png" alt="" mode="" />
- <view class="taskContent">
- <view class="tcTitle">
- {{tasks[2].title}}
- </view>
- <view class="tcNum">+{{tasks[2].award}}次/每条</view>
- </view>
- </view>
- <view class="taskRightBox">
- <view class="taskRight {{tasks[2].completed?'taskRight-close':''}}" bindtap="rewardedVideo">去观看
- </view>
- <view class="taskSurplus">
- 今日剩余{{tasks[2].num}}次
- </view>
- </view>
- </view>
- </view>
- <!-- 学号 -->
- <view class="eid" bindtap="clipboar">
- 学号:{{userInfo.user.eid}}
- </view>
- </view>
- <!-- 广告组件 -->
- <rewardedVideo id='advert' bind:taskOver="setUserInfo" />
|