提交 56b5d3c5 编写于 作者: doc_wei's avatar doc_wei

代码更新

上级 ca970692
......@@ -29,7 +29,8 @@
<select id="queryRmGroupMemberISTop" parameterType="java.util.Map" resultType="java.util.Map">
SELECT
a.id,
a.prints_pic_url printsPicUrl
a.prints_pic_url printsPicUrl,
a.sort
FROM
rm_group_member a
ORDER BY a.sort DESC LIMIT 1
......
......@@ -227,9 +227,9 @@
<property id="rmTypeId" name="rmTypeId" ref="required" var="小程序分类id"/>
<property id="rmGroupId" name="rmGroupId" ref="required" var="小程序分组id"/>
<property id="htmlContent" name="htmlContent" ref="required" var="html内容"/>
<property id="htmlJsContent" name="htmlJsContent" ref="required" var="html对应的js内容"/>
<property id="htmlJsContent" name="htmlJsContent" ref="" var="html对应的js内容"/>
<property id="wxmlContent" name="wxmlContent" ref="required" var="wxml内容"/>
<property id="wxmlJsContent" name="wxmlJsContent" ref="required" var="wxml对应的js内容"/>
<property id="wxmlJsContent" name="wxmlJsContent" ref="" var="wxml对应的js内容"/>
<property id="img" name="img" ref="required" var="小程序分组id"/>
</url>
......
......@@ -62,19 +62,27 @@ layui.config({
cols: [[
{ title: '序号', type: 'numbers'},
{ field: 'printsPicUrl', title: '效果图', width: 200, align: 'center', templet: function(d){
return '<img src="' + fileBasePath + d.printsPicUrl + '" style="width:100%;height:auto">';
return '<img src="' + fileBasePath + d.printsPicUrl + '" style="width:100%;height:auto" class="cursor" lay-event="printsPicUrl">';
}},
{ field: 'id', title: 'HTML内容', width: 150, align: 'center', templet: function(d){
return '<i class="fa fa-fw fa-html5 cursor" lay-event="htmlContent"></i>';
}},
{ field: 'id', title: 'HTML-JS内容', width: 150, align: 'center', templet: function(d){
return '<i class="fa fa-fw fa-html5 cursor" lay-event="htmlJsContent"></i>';
if(!isNull(d.htmlJsContent)){
return '<i class="fa fa-fw fa-html5 cursor" lay-event="htmlJsContent"></i>';
}else{
return '';
}
}},
{ field: 'id', title: 'WXML内容', width: 150, align: 'center', templet: function(d){
return '<i class="fa fa-fw fa-html5 cursor" lay-event="wxmlContent"></i>';
}},
{ field: 'id', title: 'WXML-JS内容', width: 150, align: 'center', templet: function(d){
return '<i class="fa fa-fw fa-html5 cursor" lay-event="wxmlJsContent"></i>';
if(!isNull(d.wxmlJsContent)){
return '<i class="fa fa-fw fa-html5 cursor" lay-event="wxmlJsContent"></i>';
}else{
return '';
}
}},
{ field: 'typeName', title: '所属分类', width: 120 },
{ field: 'groupName', title: '所属分组', width: 120 },
......@@ -131,6 +139,16 @@ layui.config({
area: ['500px', '300px'],
content: '<xmp style="white-space:normal;">' + data.wxmlJsContent + '</xmp>',
});
}else if (layEvent === 'printsPicUrl') { //图片预览
layer.open({
type:1,
title:false,
closeBtn:0,
skin:'layui-layer-nobg',
shadeClose:true,
content:'<img src="' + fileBasePath + data.printsPicUrl + '" style="max-height:600px;max-width:100%;">',
scrollbar:false
});
}
});
......
......@@ -36,9 +36,9 @@
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">HTML-JS内容<i class="red">*</i></label>
<label class="layui-form-label">HTML-JS内容</label>
<div class="layui-input-block">
<textarea id="htmlJsContent" name="htmlJsContent" win-verify="required" placeholder="请填写代码块" class="layui-textarea" style="height: 100px;"></textarea>
<textarea id="htmlJsContent" name="htmlJsContent" placeholder="请填写代码块" class="layui-textarea" style="height: 100px;"></textarea>
</div>
</div>
<div class="layui-form-item">
......@@ -70,9 +70,9 @@
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">WXML-JS内容<i class="red">*</i></label>
<label class="layui-form-label">WXML-JS内容</label>
<div class="layui-input-block">
<textarea id="wxmlJsContent" name="wxmlJsContent" win-verify="required" placeholder="请填写代码块" class="layui-textarea" style="height: 100px;"></textarea>
<textarea id="wxmlJsContent" name="wxmlJsContent" placeholder="请填写代码块" class="layui-textarea" style="height: 100px;"></textarea>
</div>
</div>
<div class="layui-form-item">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册