version-front-download.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  1. {template 'common/header'}
  2. <!--小程序前端下载-->
  3. {if $do != 'custom'}
  4. {if $_W['account']['type_sign'] != 'wxapp'}
  5. <ul class="we7-page-tab">
  6. <li class="{if $do == 'front_download'}active{/if}">
  7. <a href="{php echo url('wxapp/front-download/', array('version_id' => $version_id));}">{$account_all_type[$_W['account']['type']]['title']}下载</a>
  8. </li>
  9. </ul>
  10. {else}
  11. <ul class="we7-page-tab">
  12. <li class="{if $do == 'front_download'}active{/if}">
  13. <a href="{php echo url('wxapp/front-download/front_download', array('version_id' => $version_id));}">小程序上传</a>
  14. </li>
  15. <li class="{if $do == 'tominiprogram'}active{/if}">
  16. <a href="{php echo url('wxapp/front-download/tominiprogram', array('version_id' => $version_id))}">可跳转小程序设置</a>
  17. </li>
  18. {if ($is_single_module_wxapp)}
  19. <li class="{if $do == 'entrychoose'}active{/if}">
  20. <a href="{php echo url('wxapp/front-download/entrychoose', array('version_id' => $version_id))}">小程序入口配置</a>
  21. </li>
  22. {/if}
  23. </ul>
  24. {/if}
  25. {else}
  26. <ol class="breadcrumb" style="background-color: transparent;">
  27. <a href="{php echo url('wxapp/front-download/front_download', array('version_id' => $version_id));}">
  28. <i class="wi wi-back-circle color-gray" style="font-size: 30px;position: relative;top: 5px;"></i>
  29. </a>
  30. <li><a href="{php echo url('wxapp/front-download/front_download', array('version_id' => $version_id));}">小程序上传</a></li>
  31. <li class="active">定制主题</li>
  32. </ol>
  33. {/if}
  34. {if $do == 'entrychoose'}
  35. <div class="panel we7-panel">
  36. <div class="panel-heading">小程序入口配置</div>
  37. <div class="panel-body ">
  38. <table class="table we7-table table-hover" >
  39. <tr>
  40. <th>标题</th>
  41. <th>url</th>
  42. <th>操作</th>
  43. </tr>
  44. {loop $entrys $entry}
  45. <tr>
  46. <td>{$entry['title']}</td>
  47. <td>{$entry['url']}</td>
  48. <td><button class="btn btn-primary js-entry-btn" data-eid="{$entry['eid']}" {if $entry['eid'] == $version_info['entry_id']} disabled {/if} >设为入口</button></td>
  49. </tr>
  50. {/loop}
  51. </table>
  52. </div>
  53. </div>
  54. <script type="text/javascript">
  55. var entry_url = "{php echo url('wxapp/front-download/set_wxapp_entry', array('version_id'=>$version_id))}";
  56. $('.js-entry-btn').click(function(){
  57. var entry_id = $(this).data('eid');
  58. $.post(entry_url, {'entry_id':entry_id}, function(data){
  59. if(data.errno == '0') {
  60. util.message('设置成功');
  61. }
  62. window.location.reload();
  63. })
  64. });
  65. </script>
  66. {/if}
  67. {if $do == 'custom'}
  68. <div ng-controller="code_appjson_ctrl" id="codeappjson" ng-controller="codeAppjsonCtrl">
  69. <div class="panel we7-panel wxapp-upload-setting">
  70. <div class="panel-heading">顶部导航栏设置</div>
  71. <div class="panel-body">
  72. <div class="we7-flex">
  73. <div class="view-img"><img src="/web/resource/images/wxapp/setting-01.png" alt=""></div>
  74. <div class="form-horizontal">
  75. <div class="form-group">
  76. <label class="col-xs-3 control-label">小程序标题</label>
  77. <div class="col-xs-9">
  78. <input type="text" required="required" ng-model="window.navigationBarTitleText"
  79. placeholder="小程序标题" class="form-control">
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label class="col-xs-3 control-label">标题颜色</label>
  84. <div class="col-xs-9">
  85. <select ng-model="window.navigationBarTextStyle">
  86. <option value="white">白</option>
  87. <option value="black">黑</option>
  88. </select>
  89. </div>
  90. </div>
  91. <div class="form-group">
  92. <label class="col-xs-3 control-label">导航背景颜色</label>
  93. <div class="col-xs-9">
  94. <input type="text" placeholder="小程序导航背景颜色" ng-model="window.navigationBarBackgroundColor" class="form-control js-color">
  95. </div>
  96. </div>
  97. <div class="form-group">
  98. <label class="col-xs-3 control-label">小程序背景色</label>
  99. <div class="col-xs-9">
  100. <input type="text" placeholder="小程序背景色" ng-model="window.backgroundColor" class="form-control js-color">
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. <div class="panel we7-panel wxapp-upload-setting">
  108. <div class="panel-heading">底部导航栏设置</div>
  109. <div class="panel-body">
  110. <div class="we7-flex">
  111. <div class="view-img"><img src="/web/resource/images/wxapp/setting-02.png" alt=""></div>
  112. <div class="form-horizontal">
  113. <div class="form-group">
  114. <label class="col-xs-3 control-label">文字默认颜色</label>
  115. <div class="col-xs-9">
  116. <input type="text" placeholder="文字默认颜色" ng-model="tabBar.color" class="form-control js-color">
  117. </div>
  118. </div>
  119. <div class="form-group">
  120. <label class="col-xs-3 control-label">文字选中颜色</label>
  121. <div class="col-xs-9">
  122. <input type="text" placeholder="文字默认颜色" ng-model="tabBar.selectedColor" class="form-control js-color">
  123. </div>
  124. </div>
  125. <div class="form-group">
  126. <label class="col-xs-3 control-label">底部导航颜色</label>
  127. <div class="col-xs-9">
  128. <input type="text" placeholder="底部导航颜色" ng-model="tabBar.backgroundColor" class="form-control js-color">
  129. </div>
  130. </div>
  131. <div class="form-group">
  132. <label class="col-xs-3 control-label">交界线颜色</label>
  133. <div class="col-xs-9">
  134. <select ng-model="tabBar.borderStyle">
  135. <option value="white">白</option>
  136. <option value="black">黑</option>
  137. </select>
  138. </div>
  139. </div>
  140. <div class="form-group hidden">
  141. <label class="col-xs-3 control-label">tab类型</label>
  142. <div class="col-xs-9">
  143. <select ng-model="tabBar.isSystemTabBar">
  144. <option value="1">系统</option>
  145. <option value="0">开发者自定义</option>
  146. </select>
  147. </div>
  148. </div>
  149. <table class="table we7-table hidden">
  150. <col width="75px">
  151. <col width="75px">
  152. <col width="90px">
  153. <col width="60px">
  154. <col width="60px">
  155. <col width="100px">
  156. <tr>
  157. <th>默认</th>
  158. <th>选中</th>
  159. <th>菜单名称</th>
  160. <th class="text-center">跳转</th>
  161. <th>操作</th>
  162. </tr>
  163. <tbody ng-repeat="tabitem in tabBar.list" ng-init="current = $index">
  164. <tr >
  165. <td>
  166. <div class="icon js-image" data-index="{{current}}" data-selected="0">
  167. <img ng-src="{{iconPath(tabitem)}}" />
  168. <span class="replace ">更换</span>
  169. </div>
  170. </td>
  171. <td>
  172. <div class="icon js-image" data-index="{{current}}" data-selected="1">
  173. <img ng-src="{{tabitem.selectedIconPath}}" />
  174. <span class="replace " >更换</span>
  175. </div>
  176. </td>
  177. <td>
  178. <input type="text" class="form-control" value="首页" ng-model="tabitem.text">
  179. </td>
  180. <td>
  181. <div>
  182. <select ng-model="tabitem.pagePath" ng-options="x for x in pages" style="width:100px;"></select>
  183. </div>
  184. </td>
  185. <td>
  186. <button class="btn btn-primary" ng-click="del($index)">删除</button>
  187. </td>
  188. </tr>
  189. </tbody>
  190. <tfoot>
  191. <button class="btn btn-primary hidden" ng-click="add()">添加</button>
  192. </tfoot>
  193. </table>
  194. </div>
  195. </div>
  196. </div>
  197. </div>
  198. <button class="btn btn-primary" ng-click="default()">恢复默认</button>
  199. <button class="btn btn-primary" ng-click="save()">保存</button>
  200. </div>
  201. <script type="text/javascript">
  202. angular.module('we7codeAppjsonApp').value('config',{
  203. 'version_id' : {$version_id},
  204. 'default_appjson' : '{$default_appjson}',
  205. 'save_url' : "{php echo url('wxapp/front-download/custom_save')}",
  206. 'default_url' : "{php echo url('wxapp/front-download/custom_default')}",
  207. 'convert_img_url' : "{php echo url('wxapp/front-download/custom_convert_img')}"
  208. });
  209. angular.bootstrap($('#codeappjson'), ['we7codeAppjsonApp']);
  210. </script>
  211. {/if}
  212. {if $do == 'front_download'}
  213. {if $_W['account']['type_sign'] != 'wxapp'}
  214. <div class="front-download">
  215. <div class="alert we7-page-alert">
  216. <p>
  217. <i class="wi wi-info-sign"></i>
  218. 下载{$account_all_type[$_W['account']['type']]['title']}模块zip包, 然后用{$account_all_type[$_W['account']['type']]['title']}开发者工具上传开发版本
  219. </p>
  220. <p>
  221. <i class="wi wi-info-sign"></i>
  222. {$account_all_type[$_W['account']['type']]['title']}开发者工具下载链接:
  223. {if $_W['account']['type_sign'] == ALIAPP_TYPE_SIGN}
  224. <a href="https://docs.alipay.com/mini/ide/download" target="_blank">https://docs.alipay.com/mini/ide/download/</a>
  225. {elseif $_W['account']['type_sign'] == BAIDUAPP_TYPE_SIGN}
  226. <a href="https://smartprogram.baidu.com/docs/develop/devtools/show_sur/" target="_blank">https://smartprogram.baidu.com/docs/develop/devtools/show_sur/</a>
  227. {elseif $_W['account']['type_sign'] == TOUTIAOAPP_TYPE_SIGN}
  228. <a href="https://developer.toutiao.com/docs/devtool/versionUpdate.html" target="_blank">https://developer.toutiao.com/docs/devtool/versionUpdate.html</a>
  229. {/if}
  230. </p>
  231. </div>
  232. <div class="app-down-box">
  233. <img src="{$module['logo']}" alt="{$module['title']}" class="logo">
  234. <div class="title">{$module['title']}{$account_all_type[$_W['account']['type']]['title']}zip包</div>
  235. <a class="btn btn-primary" href="{php echo url('wxapp/front-download/getpackage', array('version_id' => $version_id))}">
  236. 立即下载
  237. </a>
  238. </div>
  239. </div>
  240. {else}
  241. <!--在微信小程序后台提交审核-->
  242. {if $uptype == 'normal'}
  243. <div class="media media-wechat-setting">
  244. <div class="media-left color-default">
  245. <span class="wi wi-wxapp-webpack" style="font-size: 55px;"></span>
  246. </div>
  247. <div class="media-body media-middle ">
  248. <h4 class="media-heading color-dark">{$wxapp_versions_info['modules'][0]['title']}</h4>
  249. <div class="color-gray">版本: v{$wxapp_versions_info['version']}</div>
  250. </div>
  251. <div class="media-right media-middle">
  252. <a href="./index.php?c=wxapp&a=front-download&do=getpackage&uniacid={$_W['uniacid']}&version_id={$wxapp_versions_info['id']}"
  253. class="btn btn-primary">立即下载</a>
  254. </div>
  255. </div>
  256. <div class="wxapp-download-procedure">
  257. <div class="title color-gray">小程序前端下载后操作流程说明:</div>
  258. <div class="step">1.进入微信小程序后台(mp.weixin.qq.com),添加小程序开发者(如已经是管理员或开发者则不需要添加)</div>
  259. <div class="img">
  260. <img src="./resource/images/wxapp/01.png" alt=""/>
  261. <img src="./resource/images/wxapp/02.png" alt=""/>
  262. </div>
  263. <div class="step">2.进入小程序后台,点击设置,开发设置,修改服务器域名(设置自己的微擎域名,<span class="color-default">必须是https://</span>)</div>
  264. <div class="img">
  265. <img src="./resource/images/wxapp/03.png" alt=""/>
  266. <img src="./resource/images/wxapp/04.png" alt=""/>
  267. </div>
  268. <div class="step">3.下载 微信web开发者工具(本帖会附上工具下载地址),更新到最新版后(切记),点击,填写小程序appid。将之前<span class="color-default">下载解压后的小程序插件上传</span>
  269. </div>
  270. <div class="img">
  271. <img src="./resource/images/wxapp/05.png" alt=""/>
  272. <img src="./resource/images/wxapp/06.png" alt=""/>
  273. <img src="./resource/images/wxapp/07.png" alt=""/>
  274. </div>
  275. <div class="step">4.点击项目,上传,并设置版本号和项目名称(项目名称自定义)</div>
  276. <div class="img">
  277. <img src="./resource/images/wxapp/08.png" alt=""/>
  278. <img src="./resource/images/wxapp/09.png" alt=""/>
  279. </div>
  280. <div class="step">5.进入小程序后台(mp.weixin.qq.com),点击开发管理,提交审核,小程序<span class="color-default">管理员</span>(必须需要管理员扫描,小程序开发者不可)扫描即可
  281. </div>
  282. <div class="img">
  283. <img src="./resource/images/wxapp/10.png" alt=""/>
  284. <img src="./resource/images/wxapp/11.png" alt=""/>
  285. </div>
  286. <div class="step">6.微信官方审核通过即可使用</div>
  287. </div>
  288. {/if}
  289. <!--end 在微信小程序后台提交审核-->
  290. <!--小程序可自行提交审核-->
  291. {if $uptype=='auto'}
  292. {if $need_upload}
  293. <div class="alert-info">
  294. <div class="alert alert-warning alert-dismissible" role="alert">
  295. <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  296. <strong><i class="wi wi-info-sign color-red"></i></strong>
  297. 该小程序应用已更新至最新版本:{$module['version']}。此小程序当前版本为:{$wxapp_versions_info['version']},需要重新上传微信审核最新版本应用。
  298. </div>
  299. </div>
  300. {/if}
  301. <div class="panel we7-panel wxapp-examine-self panel-table we7-margin-top" id="codeupload" ng-controller="code_upload_ctrl">
  302. <div class="panel-heading">上传小程序</div>
  303. <div class="panel-body">
  304. <div class="step we7-flex">
  305. <div class="one active">
  306. <span class="wi wi-one"></span>填写信息
  307. </div>
  308. <div class="arrow">
  309. <span class="wi wi-step-arrows"></span>
  310. </div>
  311. <div class="two" ng-class="{true:'active',false:''}[step>=2]">
  312. <span class="wi wi-two"></span>扫码并上传代码
  313. </div>
  314. <div class="arrow">
  315. <span class="wi wi-step-arrows"></span>
  316. </div>
  317. <div class="three" ng-class="{true:'active',false:''}[step>=3]">
  318. <span class="wi wi-three"></span>上传成功
  319. </div>
  320. </div>
  321. </div>
  322. <div class="panel-heading" ng-show="show_step1">之前小程序版本:{$wxapp_versions_info['version']}</div>
  323. <div class="panel-body" ng-show="show_step1">
  324. <div class="we7-flex">
  325. <div>应用:<img src="{$module['logo']}" style="width: 56px;margin: 0 10px;">{$module['title']}</div>
  326. <div style="position: relative;top: 16px;">之前版本:{$last_modules['version']}</div>
  327. <div style="position: relative;top: 16px;">
  328. 最新版本:{$module['version']}
  329. {if $last_modules['version'] != $module['version']}
  330. <br/>
  331. <span class="color-red" style="font-size: 10px"><i class="wi wi-info-sign"></i>可上传微信审核为最新版本</span>
  332. {/if}
  333. </div>
  334. </div>
  335. </div>
  336. <div class="waiting text-center" id="wait_code_token" ng-show="show_wait" style="border-top: 1px solid #e7e7eb; padding: 150px!important;">
  337. <div><span class="wi wi-waiting"></span></div>
  338. <div>正在获取二维码,请耐心等待,等待时间大约</div>
  339. <div class="second" id="wait_sec">{{wait_sec}}秒</div>
  340. </div>
  341. <div class="panel-footer bg-light-gray" id="readycommit" ng-show="!show_wait">
  342. <form action="" class="we7-form" id="codeform" ng-show="show_step1" ng-init="user_version = '{$user_version}'; user_desc = '{$version_info['description']}'">
  343. <div class="form-group">
  344. <label class="control-label col-sm-2">版本号</label>
  345. <div class="col-sm-10">
  346. <input type="text" class="form-control" id="user_version" ng-model="user_version" value="">
  347. <span class="help-block">
  348. 版本号仅限数字
  349. </span>
  350. </div>
  351. </div>
  352. <div class="form-group">
  353. <label class="control-label col-sm-2">版本描述</label>
  354. <div class="col-sm-10">
  355. <textarea rows="3" class="form-control" id="user_desc" ng-model="user_desc"></textarea>
  356. </div>
  357. </div>
  358. <div class="form-group">
  359. <label class="control-label col-sm-2">主题样式</label>
  360. <div class="col-sm-10">
  361. <div class="form-control" id="theme" style="background-color: #eee">
  362. <i class="wi wi-warning-sign color-red"></i>
  363. <span class="color-gray">如果您的应用支持定制主题,您可以在这步设置主题</span>
  364. <a class="text-right pull-right link-item" href="{php echo url('wxapp/front-download/custom', array('version_id' => $version_id));}" style="color: #45a2f3;">前往设置</a>
  365. </div>
  366. </div>
  367. </div>
  368. <div class="form-group">
  369. <label class="control-label col-sm-2">可跳转小程序数量</label>
  370. <div class="col-sm-10">
  371. <div class="form-control" id="theme">
  372. <span class="color-gray">{php echo count($version_info['tominiprogram'])}个</span>
  373. <a class="text-right pull-right link-item" href="{php echo url('wxapp/front-download/tominiprogram', array('version_id' => $version_id));}" style="color: #45a2f3;">去添加</a>
  374. </div>
  375. </div>
  376. </div>
  377. <div class="form-group">
  378. <label class="control-label col-sm-2"></label>
  379. <div class="col-sm-10">
  380. <input type="hidden" name="ticket" id="ticket">
  381. <input type="hidden" id="version_id" value="{$version_id}">
  382. <!--<button class="btn btn-primary" type="button" id="commitcode" ng-click="commit()">上传代码</button>-->
  383. <button class="btn btn-primary" type="button" id="begin-upload" ng-click="beginUpload()">确 认</button>
  384. </div>
  385. </div>
  386. </form>
  387. <div class="text-center step1" ng-show="show_step2">
  388. <img alt="" src="{{qrcode_src}}" class="qr-img" id="qrcode" >
  389. <div>请扫描二维码,确认后将直接上传代码</div>
  390. </div>
  391. <div class="success text-center step3" ng-show="show_step3">
  392. <div><span class="wi wi-right-sign"></span></div>
  393. <div class="status-state">上传代码成功,请到微信开发平台小程序后台预览,提交审核应用。</div>
  394. <div>微信开发平台小程序后台<a href="https://mp.weixin.qq.com/" class="color-default">https://mp.weixin.qq.com/</a></div>
  395. <div class="btns">
  396. <button class="btn btn-primary" type="button" ng-click="preview()">预览</button>
  397. <a href="https://mp.weixin.qq.com/" target="_blank" class="btn btn-default">去提交审核</a>
  398. </div>
  399. </div>
  400. <div class="modal fade" id="qrCodeModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  401. <div class="modal-dialog" role="document">
  402. <div class="modal-content">
  403. <div class="modal-header">
  404. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  405. <h4 class="modal-title" id="myModalLabel">微信扫码预览小程序</h4>
  406. </div>
  407. <div class="modal-body text-center">
  408. <img class="qr-img" ng-src="{{preview_qrcode}}" src="{{preview_qrcode}}">
  409. </div>
  410. </div>
  411. </div>
  412. </div>
  413. </div>
  414. </div>
  415. {/if}
  416. <!--end 小程序可自行提交审核-->
  417. <!--end 小程序域名设置-->
  418. {if $uptype == 'auto'}
  419. <script type="text/javascript">
  420. angular.module('we7codeuploadApp').value('config',{
  421. 'version_id' : "{$version_id}",
  422. 'upgrade_url' : "{php echo url('wxapp/front-download/upgrade_module')}",
  423. UUIDURL : "{php echo url('wxapp/front-download/code_uuid')}",
  424. CODE_GEN_CHECK_URL : "{php echo url('wxapp/front-download/code_gen')}",
  425. CODE_TOKEN_URL : "{php echo url('wxapp/front-download/code_token')}",
  426. QRCODEURL : "{php echo url('wxapp/front-download/qrcode')}",
  427. CHECKSANURL : "{php echo url('wxapp/front-download/checkscan')}",
  428. PREVIEWURL : "{php echo url('wxapp/front-download/preview')}",
  429. COMMITURL : "{php echo url('wxapp/front-download/commitcode')}"
  430. });
  431. angular.bootstrap($('#codeupload'), ['we7codeuploadApp']);
  432. </script>
  433. {/if}
  434. {/if}
  435. {/if}
  436. {if $do == 'tominiprogram'}
  437. <div class="alert alert-info we7-page-alert">
  438. <p><i class="wi wi-info-sign"></i>最多可添加10个跳转小程序</p>
  439. </div>
  440. <div class="pull-right clearfix we7-margin-bottom search-box">
  441. <a href="javascript:;" data-toggle="modal" data-target="#addminiprogram" class="btn btn-primary">添加</a>
  442. </div>
  443. <table class="table we7-table table-hover table-manage vertical-middle" id="js-users-display">
  444. <col width="150px">
  445. <col width="">
  446. <col width="170px">
  447. <tr>
  448. <th>序号</th>
  449. <th class="text-center">APPID</th>
  450. <th class="text-center">小程序名称</th>
  451. <th class="text-right">操作</th>
  452. </tr>
  453. {if $tomini_lists}
  454. {php $num = 0}
  455. {loop $tomini_lists $list}
  456. <tr>
  457. <td>{php echo $num+1}</td>
  458. <td class="color-default text-center">{$list['appid']}</td>
  459. <td class="color-default text-center">{$list['app_name']}</td>
  460. <td class="">
  461. <div class="link-group">
  462. <a href="javascript:;" onclick="delAppid('{$list["appid"]}', '{$version_id}')" class="del">删除</a>
  463. </div>
  464. </td>
  465. </tr>
  466. {php $num++}
  467. {/loop}
  468. {else}
  469. <tr>
  470. <td colspan="4" class="text-center">暂无数据</td>
  471. </tr>
  472. {/if}
  473. </table>
  474. <div class="modal fade" id="addminiprogram" tabindex="-1" role="dialog" aria-hidden="true">
  475. <div class="we7-modal-dialog modal-dialog we7-form">
  476. <div class="modal-content">
  477. <div class="modal-header">
  478. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  479. <div class="modal-title">添加要跳转的小程序APPID</div>
  480. </div>
  481. <form action="" method="post">
  482. <input type="hidden" name="c" value="wxapp">
  483. <input type="hidden" name="a" value="front-download">
  484. <input type="hidden" name="do" value="tominiprogram">
  485. <input type="hidden" name="version_id" value="{$version_id}">
  486. <input type="hidden" name="token" value="{$_W['token']}">
  487. <div class="modal-body">
  488. <div class="form-group">
  489. <input type="text" name="appid" class="form-control" placeholder="要跳转的小程序APPID" required="required">
  490. <span class="help-block"></span>
  491. <input type="text" name="app_name" class="form-control" placeholder="要跳转的小程序名称" required="required">
  492. <span class="help-block"></span>
  493. </div>
  494. </div>
  495. <div class="modal-footer">
  496. <button type="submit" class="btn btn-primary" name="submit" value="submit">确定</button>
  497. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  498. </div>
  499. </form>
  500. </div>
  501. </div>
  502. </div>
  503. <script>
  504. function delAppid(appid, version_id) {
  505. var url = "{php echo url('wxapp/front-download/del_tominiprogram')}" + "&appid=" + appid + "&version_id=" + version_id;
  506. util.confirm(function () {
  507. window.location.href = url;
  508. }, function () {
  509. }, '确认删除吗?');
  510. }
  511. </script>
  512. {/if}
  513. {template 'common/footer'}