businessHome.wxml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <view class="wrapper">
  2. <view class="width-690">
  3. <view class="user-info">
  4. <view class="portrait">
  5. <image src="{{shopDetail.shop_img_url || shopInfo.user_head_img_url}}"></image>
  6. </view>
  7. <view class="user-name-wrap">
  8. <view class="name">{{ shopDetail.shop_name || shopInfo.user_nickname}}</view>
  9. <view class="account">店铺ID:{{shopDetail.id}}</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. <image src="{{item.product_img_url}}"></image>
  68. </view>
  69. <view class="box">
  70. <view class="goods-name">{{item.product_title}}</view>
  71. <view class="add-time">{{item.created_at}}</view>
  72. </view>
  73. <view class="price">产品价格:¥{{tools.fen2Yuan(item.product_price)}}</view>
  74. </view>
  75. <!-- 无数据 -->
  76. <view class="list-bitmap" wx:if="{{finished && products.length < 1}}">
  77. <image src="../../image/common/bitmap.png"></image>
  78. <text>暂无数据</text>
  79. </view>
  80. </view>
  81. </view>
  82. </view>
  83. <wxs src="../../components/wxs/index.wxs" module="tools"></wxs>