businessHome.wxml 2.6 KB

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