product.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. {% extends "../theme.html" %}
  2. {% block content %}
  3. {%include 'inc/menu.html'%}
  4. <div class="pannel">
  5. <div class="ul6 mt10">
  6. {% for v in data['list'] %}
  7. <dl>
  8. <dt>
  9. <img src="{{v['pic']}}" width="100%">
  10. </dt>
  11. <dd class="tit">
  12. <b>{{v['name']}}</b>
  13. <p>
  14. <a href="javascript:;" onclick="Farm.Page('修改产品', '/main/product_update?id={{v['id']}}')">修改</a>
  15. {% if v['status'] == False %}
  16. <a href="javascript:;" onclick="Farm.Cancel(this, '{{v['id']}}', '/main/product_update?id={{v['id']}}&state=1')">显示</a>
  17. {% else %}
  18. <a href="javascript:;" onclick="Farm.Cancel(this, '{{v['id']}}', '/main/product_update?id={{v['id']}}&state=2')">隐藏</a>
  19. {% end %}
  20. </p>
  21. </dd>
  22. <dd><label>产品特点:</label>{{v['charact']}}</dd>
  23. <dd><label>食用须知:</label>{{v['notice']}}</dd>
  24. <dd><label>种植:</label>{{v['area']}},产量:{{v['yields']}}</dd>
  25. </dl>
  26. {% end %}
  27. </div>
  28. </div>
  29. {%set url = data['url']['product'] %}
  30. {%include '../inc/page.html'%}
  31. {% end %}
  32. {% block script %}
  33. <script type="text/javascript" src="{{static_url('pc/lib/layui/layui.js')}}"></script>
  34. {% end %}