my.wxml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <wxs src="../../wxs/tool.wxs" module="tool"></wxs>
  2. <view>
  3. <!-- 头像信息 -->
  4. <view class="user-info">
  5. <view>
  6. <image mode="aspectFill" wx:if="{{info}}" class="head-img" src="{{tool.cdn(info.shopInfo.logo_image)}}"></image>
  7. <image bind:tap="tologin" mode="aspectFill" wx:else class="head-img" src="{{tool.cdn(config.shop_image)}}"></image>
  8. </view>
  9. <view class="z-margin-l-32">
  10. <view class="name" wx:if="{{info}}">{{info.shopInfo.name}}</view>
  11. <view class="name" wx:else bindtap="tologin">请先登录</view>
  12. <view class="job-text" wx:if="{{info}}" catchtap="copy" data-content="{{info.shopInfo.code}}">工号:{{info.shopInfo.code}}</view>
  13. </view>
  14. </view>
  15. <view class="money-box z-margin-t-32 theme-colors">
  16. <view class="z-flex-c-s-b ">
  17. <view bind:tap="toEarnestMoney" class="z-flex-1 z-padding-t-64 z-padding-l-56">
  18. <view class="money-text">保证金(元)</view>
  19. <view class="money">{{info.shopInfo.ensure_price || 0}}</view>
  20. </view>
  21. <view bind:tap="toBalance" class="z-flex-1 z-padding-t-64 z-padding-l-56">
  22. <view class="money-text">账户余额(元)</view>
  23. <view class="money">{{info.userInfo.shop_user_money || 0}}</view>
  24. </view>
  25. </view>
  26. <view class="detail z-flex-c">
  27. <view bind:tap="toserviceStaff" class="num-box z-padding-l-48">
  28. <view class="detail-text">服务者</view>
  29. <view class="detail-num">{{info.skillCount || 0}}</view>
  30. </view>
  31. <view bind:tap="toserveList" class="num-box z-padding-l-48">
  32. <view class="detail-text">平台项目</view>
  33. <view class="detail-num">{{info.goodsCount || 0}}</view>
  34. </view>
  35. <view bind:tap="tostoreItem" class="num-box z-padding-l-48">
  36. <view class="detail-text">店铺项目</view>
  37. <view class="detail-num">{{info.shopGoodsCount || 0}}</view>
  38. </view>
  39. </view>
  40. </view>
  41. <!-- 更多功能 -->
  42. <view class="more-box z-margin-t-32 z-padding-b-24">
  43. <view class="more-title z-font-32">更多功能</view>
  44. <view class="more-each-box z-flex-y-c">
  45. <view class="more-each z-margin-t-48" wx:for="{{moreList}}" bind:tap="toServel" data-url="{{item.url}}">
  46. <image class="more-img" src="{{item.img}}"></image>
  47. <view class="z-font-24 z-text-c more-text">{{item.title}}</view>
  48. <button type="primary" open-type="contact" class="contact" wx:if="{{!item.url}}"></button>
  49. </view>
  50. </view>
  51. </view>
  52. </view>