刘帅
2026-09-29 8a89ba02db5c19db669a5cf9bb7d443223bdfb71
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
@layout("/common/_container.html"){
<style>
  .app-guide-section {
    margin-bottom: 25px
  }
 
  .qr {
    width: 90px;
    height: 90px
  }
 
  .table td {
    vertical-align: middle
  }
</style>
<div class="row">
  <div class="col-sm-12">
    <div class="ibox float-e-margins">
      <div class="ibox-title">
        <h5>APP 下载引导与场地订场二维码</h5>
      </div>
      <div class="ibox-content">
        <div class="app-guide-section">
          <h4>APP 下载链接</h4>
          <form id="configForm" class="form-inline">
            <input type="hidden" name="id" id="configId">
            <p>
              <input class="form-control" name="apkUrl" style="width:350px" placeholder="Android 下载链接">
              <input class="form-control" name="iosStoreUrl" style="width:350px" placeholder="iOS 下载链接">
            </p>
            <button type="button" class="btn btn-primary" onclick="saveConfig()">保存下载配置</button>
          </form>
        </div>
        <hr>
        <div class="app-guide-section">
          <h4>宣传图</h4>
          <form class="form-inline"><input id="bannerFile" type="file" accept="image/*" class="form-control">
            <input id="bannerUrl" type="hidden">
            <button type="button" class="btn btn-default" onclick="uploadBanner()">上传图片</button>
            <input id="bannerTitle" class="form-control" placeholder="标题(可选)">
            <input id="bannerSort" class="form-control" style="width:100px" placeholder="排序">
            <button type="button" class="btn btn-primary" onclick="addBanner()">添加</button>
          </form>
          <p id="uploadTip" class="text-muted"></p>
          <table class="table table-bordered">
            <thead>
              <tr>
                <th>预览</th>
                <th>标题</th>
                <th>排序</th>
                <th>状态</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody id="bannerRows"></tbody>
          </table>
        </div>
        <hr>
        <div class="app-guide-section">
          <h4>场地订场二维码</h4>
          <p class="text-muted">从现有场地管理数据中选择,每个场地仅允许一个启用二维码。</p>
          <form class="form-inline"><select id="siteSelect" class="form-control" style="min-width:360px">
              <option value="">请选择场地</option>
            </select><button type="button" class="btn btn-primary" onclick="createQr()">生成二维码</button></form>
          <table class="table table-bordered">
            <thead>
              <tr>
                <th>名称</th>
                <th>App页面</th>
                <th>门店/场地</th>
                <th>二维码</th>
                <th>引导链接</th>
                <th>状态</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody id="linkRows"></tbody>
          </table>
        </div>
      </div>
    </div>
  </div>
</div>
<script src="${ctxPath}/modular/system/appGuide/appGuide.js"></script>
@}