mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]微信多图文模块
This commit is contained in:
parent
8f943a9ae5
commit
4a8fc6e7af
@ -58,16 +58,14 @@
|
|||||||
<div class="form-control" style="height:auto">
|
<div class="form-control" style="height:auto">
|
||||||
<label style="color:#ccc">图文封面大图片设置</label>
|
<label style="color:#ccc">图文封面大图片设置</label>
|
||||||
<div class="row nowrap">
|
<div class="row nowrap">
|
||||||
<div class="col-xs-3" style="min-width:145px">
|
<div class="col-xs-3" style="width:160px">
|
||||||
<div class="upload-image-box">
|
<div class="upload-image-box">
|
||||||
<input value="__PUBLIC__/static/plugs/uploader/theme/image.png" type="hidden"
|
<input value="__PUBLIC__/static/plugs/uploader/theme/image.png" type="hidden" name="local_url">
|
||||||
name="local_url">
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-8" style="width: 400px">
|
<div class="col-xs-6">
|
||||||
<br>
|
<br>
|
||||||
<a data-file="one" data-type="jpg,png,jpeg" data-field="local_url" class="btn btn-sm">上传图片</a>
|
<a data-file="one" data-type="jpg,png,jpeg" data-field="local_url" class="btn btn-sm">上传图片</a>
|
||||||
<a data-iframe="{:url('@wechat/news/media')}?field=local_url" class="btn btn-sm">从图库中选择图片</a>
|
|
||||||
<br><br>
|
<br><br>
|
||||||
<label style="margin-left:0;padding-left:10px">
|
<label style="margin-left:0;padding-left:10px">
|
||||||
<input data-auto-none type="checkbox" value="1" name="show_cover_pic">
|
<input data-auto-none type="checkbox" value="1" name="show_cover_pic">
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
#news-list li {
|
#news-list li {
|
||||||
width: 30%;
|
width: 33.33%;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -20,7 +20,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
layui.use('flow', function () {
|
layui.use('flow', function () {
|
||||||
|
|
||||||
layui.flow.load({
|
layui.flow.load({
|
||||||
elem: '#news-list',
|
elem: '#news-list',
|
||||||
scrollElem: '#news-list',
|
scrollElem: '#news-list',
|
||||||
@ -28,11 +27,11 @@
|
|||||||
isLazyimg: true,
|
isLazyimg: true,
|
||||||
done: function (page, next) {
|
done: function (page, next) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
var lis = [];
|
var list = [];
|
||||||
for (var i = 0; i < 6; i++) {
|
for (var i = 0; i < 6; i++) {
|
||||||
lis.push('<li><img lay-src="http://s17.mogucdn.com/p2/161011/upload_279h87jbc9l0hkl54djjjh42dc7i1_800x480.jpg?v=' + ( (page - 1) * 6 + i + 1 ) + '"></li>')
|
list.push('<li><img lay-src="http://s17.mogucdn.com/p2/161011/upload_279h87jbc9l0hkl54djjjh42dc7i1_800x480.jpg?v=' + ( (page - 1) * 6 + i + 1 ) + '"></li>')
|
||||||
}
|
}
|
||||||
next(lis.join(''), page < 6); //假设总页数为 6
|
next(list.join(''), page < 6); //假设总页数为 6
|
||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user