Skip to content

Commit 17707d6

Browse files
committed
donate优化
1 parent 1b5d79d commit 17707d6

File tree

1 file changed

+6
-6
lines changed
  • generator-web/src/main/resources/templates

1 file changed

+6
-6
lines changed

generator-web/src/main/resources/templates/index.ftl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,11 @@
8585
* 捐赠
8686
*/
8787
function donate(){
88-
layer.open({
89-
type: 1,
90-
area : ['712px' , '480px'],
91-
shadeClose: true, //点击遮罩关闭
92-
content: '<img src="http://upyun.bejson.com/img/zhengkai.png"></img>'
93-
});
88+
if($("#donate").attr("show")=="no"){
89+
$("#donate").html('<img src="http://upyun.bejson.com/img/zhengkai.png"></img>');
90+
$("#donate").attr("show","yes");
91+
}else{
92+
}
9493
}
9594
$('#donate1').on('click', function(){
9695
donate();
@@ -130,6 +129,7 @@
130129
√用DDL-SQL语句生成JPA/JdbcTemplate/Mybatis/MybatisPlus/BeetlSQL相关代码。<br>
131130
欢迎大家多多提交模板和交流想法,如果发现有SQL语句不能识别,请<a href="https://github.com/moshowgame/SpringBootCodeGenerator/issues">留言</a>,同时欢迎大家提<a href="https://github.com/moshowgame/SpringBootCodeGenerator/pulls">PR</a>和<a href="#" id="donate1">点击赞赏</a>,谢谢!
132131
</p>
132+
<div id="donate" class="container" show="no"></div>
133133
<hr>
134134
<div class="input-group mb-3">
135135
<div class="input-group-prepend">

0 commit comments

Comments
 (0)