index.wxml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <view class="container">
  2. <auth bindlogin="onShow" />
  3. <lip-sync />
  4. <view class="userinfo">
  5. <image src="../../../static/images/ucenterbg.png" class="user-bg"></image>
  6. <view class="u-avatar" bindtap="tapByIdx" data-url="/pages/user/user">
  7. <!-- <button class="btn-cls" open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo"></button> -->
  8. <image class="userinfo-avatar" src="{{ userInfo.avatarUrl }}" background-size="cover"></image>
  9. <text class="userinfo-nickname" wx:if="{{userInfo.nickName==''}}">【请输入昵称】</text>
  10. <text class="userinfo-nickname" wx:else>{{userInfo.nickName}}</text>
  11. </view>
  12. <view class="userinfo-setting navigator" bindtap="tapByIdx" data-url="/pages/user/user">
  13. <image wx:if="{{imgServer}}" src="../../../static/images/c_setting.png"></image>
  14. </view>
  15. </view>
  16. <view class="order-list">
  17. <view wx:for="{{orderList}}" bindtap="tapByIdx" wx:key="{{item.id}}" data-url="{{'/pages/ucenter/order/order?id='+item.id}}" class="navigator a">
  18. <view class="icon-item">
  19. <image wx:if="{{imgServer}}" src="{{'/static/images/'+item.icon+'.png'}}"></image>
  20. <span class="count" wx:if="{{item.count}}">{{item.count}}</span>
  21. </view>
  22. <view class="txt">{{item.name}}</view>
  23. </view>
  24. <view class="i-line"></view>
  25. <view bindtap="tapByIdx" data-url="{{'/pages/ucenter/order/order?id='+all.id}}" class="navigator a or-a">
  26. <view class="icon-item">
  27. <image wx:if="{{imgServer}}" src="{{'/static/images/'+all.icon+'.png'}}"></image>
  28. </view>
  29. <view class="txt">{{all.name}}</view>
  30. </view>
  31. </view>
  32. <view class="order-list-v">
  33. <view wx:for="{{barList}}" bindtap="tapByIdx" wx:key="{{item.id}}" data-url="{{item.url}}" class="navigator a">
  34. <image wx:if="{{imgServer}}" src="{{'/static/images/'+item.icon+'.png'}}"></image>
  35. <view>{{item.name}}</view>
  36. <image src="/static/images/go.png" class="go"></image>
  37. </view>
  38. <view bindtap="toReport" class="navigator a {{ hasBrand ? '' : 'hidden'}}">
  39. <image src="{{'/static/images/report.png'}}"></image>
  40. <view>数据统计</view>
  41. <image src="/static/images/go.png" class="go"></image>
  42. </view>
  43. </view>
  44. <view class="order-list-v">
  45. <!-- <view bindtap="tapByIdx" data-url="/pages/ucenter/feedback/feedback" class="navigator a">
  46. <image wx:if="{{imgServer}}" src="/static/images/cb3.png"></image>
  47. <view>意见反馈</view>
  48. <image src="/static/images/go.png" class="go"></image>
  49. </view> -->
  50. <view class="navigator">
  51. <button open-type="contact">
  52. <image wx:if="{{imgServer}}" src="{{imgServer+'/cb4.png'}}"></image>
  53. <view>联系客服</view>
  54. <image src="/static/images/go.png" class="go"></image>
  55. </button>
  56. </view>
  57. </view>
  58. <!-- <view class="related-goods" wx:if="{{relatedGoods.length > 0}}">
  59. <view class="h">
  60. <view class="line"></view>
  61. <text class="title">大家都在看</text>
  62. </view>
  63. <view class="b">
  64. <view class="item" wx:for="{{relatedGoods}}" wx:key="*this">
  65. <navigator hover-class="none" url="/pages/goods/goods?id={{item.id}}">
  66. <image class="img" src="{{item.list_pic_url}}" background-size="cover"></image>
  67. <text class="name">{{item.name}}</text>
  68. <text class="price">¥{{item.retail_price}}</text>
  69. </navigator>
  70. </view>
  71. </view>
  72. </view> -->
  73. </view>