index.wxml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <navigationBar bind:reload='setUserInfo'></navigationBar>
  2. <view class="container">
  3. <!-- 用户信息 -->
  4. <view class="userBox">
  5. <view class="above" bindtap="jump" data-url="/pages/editUser/index">
  6. <view class="identity">
  7. <image class='avatar' src='{{ userInfo.user.avatar}}'></image>
  8. <view class="identityText">{{ userInfo.user.profession}}</view>
  9. </view>
  10. <view class="userRight">
  11. <view class="uRtop">
  12. <view class="uRtopleft">
  13. <view class="nickName textOver">{{userInfo.user.nickName||'请输入昵称' }}</view>
  14. <view class="gradeText textOver" catchtap="clipboar">学号:{{userInfo.user.eid}}</view>
  15. </view>
  16. <view class="uRtopRight">
  17. <image class="edit" src="/static/edit_new.png" mode="" />
  18. <text>编辑</text>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="scrollViewBox" wx:if="{{!vipTime}}">
  25. <view class="title">开通会员</view>
  26. <scroll-view class="goodsList" scroll-x="true" enhanced show-scrollbar="{{false}}">
  27. <view wx:for="{{products}}" wx:key="id" class="payBox {{item.payType=='YEAR'?'year':'month'}}"
  28. bindtap="openDonutBuy" data-product="{{item}}">
  29. <view class="name">{{item.title}}</view>
  30. <view class="price">{{item.price/100}}元</view>
  31. <view class="originPrice">原价:{{item.originPrice/100}}元</view>
  32. </view>
  33. </scroll-view>
  34. </view>
  35. <donutBuy id="donutBuy" bind:paySuccess='paySuccess'></donutBuy>
  36. <vipModal id="vipModal"></vipModal>
  37. </view>