businessHome.wxml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <view class="wrapper">
  2. <view class="width-690">
  3. <view class="user-info">
  4. <view class="portrait">
  5. <image src="{{shopInfo.user_head_img_url}}"></image>
  6. </view>
  7. <view class="user-name-wrap">
  8. <view class="name">{{shopInfo.user_nickname}}</view>
  9. <view class="account">账号:{{shopInfo.user_phone}}</view>
  10. </view>
  11. </view>
  12. <view
  13. class="dashboard"
  14. data-path="businessGoodsManage"
  15. data-tabvalue="1"
  16. bind:tap="jump">
  17. <image
  18. class="bg"
  19. src="../../image/businessHome/bg.png"></image>
  20. <view class="data">
  21. <view class="label">已发布产品</view>
  22. <view class="value">{{shopInfo.product_total}}</view>
  23. </view>
  24. <view class="btn">
  25. <image class="eyes" src="../../image/businessHome/eyes.png"></image>
  26. <text class="check">查看详情</text>
  27. </view>
  28. </view>
  29. <view
  30. class="excellent-goods-title"
  31. data-path="businessGoodsManage"
  32. bind:tap="jump">
  33. <text>管理</text>
  34. <image src="../../image/businessHome/arrow.png"></image>
  35. </view>
  36. <view class="nav-wrap">
  37. <view
  38. wx:for="{{nav}}"
  39. wx:key="index"
  40. data-item="{{item}}"
  41. bind:tap="handleNav">
  42. <image src="../../image/businessHome/{{item.icon}}"></image>
  43. <text>{{item.name}}</text>
  44. </view>
  45. </view>
  46. <view
  47. class="excellent-goods-title"
  48. data-path="businessGoodsManage"
  49. data-tabvalue="1"
  50. bind:tap="jump">
  51. <text>我的发布</text>
  52. <image src="../../image/businessHome/arrow.png"></image>
  53. </view>
  54. <view class="main">
  55. <view
  56. class="list"
  57. wx:for="{{products}}"
  58. wx:key="index">
  59. <view class="photo-wrap">
  60. <!-- TODO 缺商品主图字段 -->
  61. <image src="{{item.product_img_url}}"></image>
  62. </view>
  63. <view class="box">
  64. <view class="goods-name">{{item.product_title}}</view>
  65. <view class="add-time">{{item.created_at}}</view>
  66. </view>
  67. <view class="price">产品价格:¥{{tools.fen2Yuan(item.product_price)}}</view>
  68. </view>
  69. <!-- 无数据 -->
  70. <view class="list-bitmap" wx:if="{{finished && products.length < 1}}">
  71. <image src="../../image/common/bitmap.png"></image>
  72. <text>暂无数据</text>
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. <wxs src="../../components/wxs/index.wxs" module="tools"></wxs>