人人商城

qr-post.html 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {template 'common/header'}
  2. <div class="">
  3. <ol class="breadcrumb we7-breadcrumb">
  4. <a href="{php echo url('platform/qr/list');}"><i class="wi wi-back-circle"></i> </a>
  5. <li><a href="{php echo url('platform/qr/list');}">二维码列表</a></li>
  6. <li><a href="{php echo url('platform/qr/post');}">{if empty($id)}新建{else}编辑{/if}二维码</a></li>
  7. </ol>
  8. <div class="we7-form" id="js-qr-post" ng-controller="QrPost" ng-cloak>
  9. <form action="{php echo url('platform/qr/post')}" method="post" id="form1">
  10. <input type="hidden" name="id" value="{$row['id']}" />
  11. <input type="hidden" name="acid" value="{$row['acid']}" />
  12. <div class="form-group">
  13. <label for="" class="control-label col-sm-2">二维码名称</label>
  14. <div class="form-controls col-sm-8">
  15. <input type="text" id="scene-name" class="form-control" name="scene-name" value="{$row['name']}" />
  16. </div>
  17. </div>
  18. {if empty($id)}
  19. <div class="form-group">
  20. <label for="" class="control-label col-sm-2">二维码类型</label>
  21. <div class="form-controls col-sm-8">
  22. <div class="form-inline clearfix">
  23. <select name="qrc-model" class="we7-select col-sm-2">
  24. <option value="1">临时</option>
  25. <option value="2">永久</option>
  26. </select>
  27. <div class="col-sm-10" ng-show="type == 1">
  28. <label for="" class="control-label col-sm-2">过期时间</label>
  29. <div class="input-group col-sm-4">
  30. <input type="text" id="expire-seconds" class="form-control" name="expire-seconds" value="2592000" />
  31. <span class="input-group-addon">秒</span>
  32. </div>
  33. <span class="help-block color-gray">临时二维码过期时间, 最大为30天(2592000秒).</span>
  34. </div>
  35. <div class="col-sm-10" ng-show="type == 2">
  36. <label for="" class="control-label col-sm-2">场景值</label>
  37. <input type="text" class="form-control col-sm-4" placeholder="场景值" id="scene_str" name="scene_str"/>
  38. <span class="help-block color-gray">场景值不能为空,并且只能为字符串.</span>
  39. </div>
  40. </div>
  41. <span class="help-block clearfix">
  42. 目前有2种类型的二维码, 分别是临时二维码和永久二维码, 前者有过期时间, 最大为30天(2592000秒), 但能够生成较多数
  43. 量, 后者无过期时间, 数量较少(目前参数只支持1--100000).
  44. </span>
  45. </div>
  46. </div>
  47. {/if}
  48. {php echo module_build_form('core', $rid, array('keyword' => false))}
  49. <input type="hidden" name="token" value="{$_W['token']}" />
  50. <input type="hidden" name="submit" value="submit">
  51. <button class="btn btn-primary col-lg-1 submit">提交</button>
  52. </form>
  53. </div>
  54. </div>
  55. <script type="text/javascript">
  56. require(['underscore'], function(){
  57. angular.module('qrApp').value('config', {
  58. id: {php echo json_encode($id)},
  59. });
  60. angular.bootstrap($('#js-qr-post'), ['qrApp']);
  61. });
  62. </script>
  63. {template 'common/footer'}