人人商城

mass-display.html 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. {template 'common/header'}
  2. <div class="we7-page-title">
  3. 素材定时群发
  4. </div>
  5. <ul class="we7-page-tab">
  6. {loop $active_sub_permission $active_menu}
  7. {if permission_check_account_user($active_menu['permission_name'], false) && (empty($active_menu['is_display']) || is_array($active_menu['is_display']) && in_array($_W['account']['type'], $active_menu['is_display']))}
  8. <li {if $do == $active_menu['active']}class="active"{/if}><a href="{$active_menu['url']}">{$active_menu['title']}</a></li>
  9. {/if}
  10. {/loop}
  11. </ul>
  12. <div class="alert we7-page-alert">
  13. <p><i class="wi wi-info-sign"></i> 使用定时群发功能可设置<span class="text-danger">未来8天</span>的群发,使用该功能前请<span class="text-danger">先确保您的云服务可用</span><br></p>
  14. <p><i class="wi wi-info-sign"></i> <span class="color-dark">如果在提交定时群发提示:某天的群发同步到云服务失败,请<a href="{php echo url('platform/mass/send')}" class="text-danger">手动同步</a>到云服务</span><br></p>
  15. <p><i class="wi wi-info-sign"></i> <span class="color-dark">使用该功能前,请将微信公众平台的<a href="{php echo url('platform/material/')}" class="text-danger">素材同步到本系统</a></span><br></p>
  16. <p><i class="wi wi-info-sign"></i> <span class="color-dark">请注意:群发消息中若包含多条图文,只显示第一个</span></p>
  17. </div>
  18. {if $cloud_error == 1}
  19. <div class="alert alert-danger">
  20. <h4><i class="fa fa-info-circle"></i> {$cloud['message']}</h4>
  21. </div>
  22. {/if}
  23. <div class="mass-list" id="mass-display" ng-controller="MassDisplay" ng-cloak>
  24. <ul>
  25. <li ng-repeat="dayinfo in days">
  26. <div class="mass-item active" ng-if="dayinfo.info">
  27. <div class="mass-item-time" ng-bind="dayinfo.day"></div>
  28. <div class="mass-content">
  29. <div class="mass-header" ng-class="{'news': dayinfo.info.msgtype == 'news', 'image' : dayinfo.info.msgtype == 'image', 'voice': dayinfo.info.msgtype == 'voice', 'video': dayinfo.info.msgtype == 'video'}" ng-bind="dayinfo.info.msgtype_zh"></div>
  30. <div class="mass-matter" ng-if="dayinfo.info.msgtype == 'news'" ng-style="{'background' : 'url(\''+dayinfo.info.media.items[0].thumb_url+'\') 100% 100% / contain no-repeat', 'background-position': 'center'}">
  31. <div class="mass-matter-title" ng-bind="dayinfo.info.media.items[0].title"></div>
  32. </div>
  33. <div class="mass-matter" ng-if="dayinfo.info.msgtype == 'image'" ng-style="{'background': 'url(\''+dayinfo.info.media.attach+'\') 100% 100% / contain no-repeat', 'background-position' : 'center'}">
  34. </div>
  35. <div class="mass-matter" ng-if="dayinfo.info.msgtype == 'voice'" ng-style="{'word-break' : 'break-all'}">
  36. <div class="audio-msg">
  37. <div class="icon audio-player-play" data-attach="{{dayinfo.info.media.attach}}"><span><i class="fa fa-play"></i></span></div>
  38. <div class="audio-content">
  39. <div class="audio-title" ng-bind="dayinfo.info.media.filename"></div>
  40. <div class="audio-date text-muted" ng-bind="'创建于:' + dayinfo.info.media.createtime_cn"></div>
  41. </div>
  42. </div>
  43. </div>
  44. <div class="mass-matter" ng-if="dayinfo.info.msgtype == 'video'" ng-style="{'word-break' : 'break-all'}">
  45. <div class="video-content">
  46. <h4 class="title text-muted" ng-bind="dayinfo.info.media.attach.tag.title"></h4>
  47. <div class="date text-muted" ng-bind="'创建于:' + dayinfo.info.media.createtime_cn"></div>
  48. <div class="video">
  49. <img src="../web/resource/images/banner-bg.png" alt="" width="100%" height="100%"/>
  50. </div>
  51. <div class="abstract text-muted" ng-bind="item.media.tag.description"></div>
  52. </div>
  53. </div>
  54. <div class="mass-footer">
  55. <a href="javascript:;" ng-click="toEdit($index)" data-toggle="tooltip" data-placement="bottom" title="编辑"><i class="wi wi-text"></i></a>
  56. <a href="javascript:;" ng-click="delMass(dayinfo.info.id, $index)" data-toggle="tooltip" data-placement="bottom" title="清空"><i class="wi wi-delete2"></i></a>
  57. <a href="javascript:;" ng-click="preview($index)" data-toggle="tooltip" data-placement="bottom" title="预览"><i class="wi wi-eye"></i></a>
  58. </div>
  59. </div>
  60. </div>
  61. <div class="mass-item" ng-if="!dayinfo.info">
  62. <div class="mass-item-time" ng-bind="dayinfo.day"></div>
  63. <div class="mass-content">
  64. <a class="mass-add" ng-click="toEdit($index)"></a>
  65. </div>
  66. </div>
  67. </li>
  68. </ul>
  69. </div>
  70. <!-- 预览 -->
  71. <div class="modal fade" id="modal-view" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  72. <form action="">
  73. <div class="modal-dialog" role="document">
  74. <div class="modal-content">
  75. <div class="modal-header">
  76. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  77. <h4 class="modal-title">请输入接受人的微信号</h4>
  78. </div>
  79. <div class="modal-body">
  80. <div class="form-group">
  81. <label for="wxname">微信号</label>
  82. <input type="text" class="form-control" id="wxname" name="wxname">
  83. <span class="help-block">微信号不能为空</span>
  84. </div>
  85. </div>
  86. <div class="modal-footer">
  87. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  88. <button type="button" class="btn btn-primary btn-view">发送</button>
  89. </div>
  90. </div>
  91. </div>
  92. </form>
  93. </div>
  94. <script>
  95. angular.module('massApp').value('config', {
  96. days: {php echo json_encode($days)},
  97. });
  98. angular.bootstrap($('#mass-display'), ['massApp']);
  99. </script>
  100. {template 'common/footer'}