作者 v_bairong06

pc及手机端功能修改

正在显示 74 个修改的文件 包含 923 行增加325 行删除
... ... @@ -76,9 +76,13 @@
</td>
</tr>
<tr>
<th>简介(首页显示)</th>
<td><textarea name="post[description]" placeholder="请输入简介"></textarea></td>
</tr>
<tr>
<th>详情</th>
<td>
<script type="text/plain" id="content" name="post[content]">{$description}</script>
<script type="text/plain" id="content" name="post[content]"></script>
</td>
</tr>
</table>
... ...
... ... @@ -78,6 +78,10 @@
</td>
</tr>
<tr>
<th>简介(首页显示)</th>
<td><textarea name="post[description]" placeholder="请输入活动简介">{$description}</textarea></td>
</tr>
<tr>
<th>详情</th>
<td>
<script type="text/plain" id="content" name="post[content]">{$content}</script>
... ...
... ... @@ -17,6 +17,8 @@
</form>
<form class="js-ajax-form" action="" method="post">
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('LocalRemains/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('LocalRemains/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('LocalRemains/delete')}" data-subcheck="true" data-msg="您确定删除吗?">{:L('DELETE')}</button>
</div>
<table class="table table-hover table-bordered table-list">
... ... @@ -33,6 +35,7 @@
<th>城市</th>
<th>传承人名称</th>
<th width="100">提交时间</th>
<th width="100">是否推荐</th>
<th width="70">操作</th>
</tr>
</thead>
... ... @@ -50,6 +53,13 @@
<td>{$vo.sname}</td>
<td>{:date('Y-m-d H:i',$vo['ctime'])}</td>
<td>
<notempty name="vo.recommended">
<a data-toggle="tooltip" title="已推荐"><i class="fa fa-thumbs-up"></i></a>
<else />
<a data-toggle="tooltip" title="未推荐"><i class="fa fa-thumbs-down"></i></a>
</notempty>
</td>
<td>
<a href="{:U('LocalRemains/edit',array('id'=>$vo['id']))}">编辑</a> |
<a href="{:U('LocalRemainsProduct/index',array('lid'=>$vo['id']))}">查看产品</a> |
<a href="{:U('LocalRemains/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">删除</a>
... ... @@ -69,11 +79,14 @@
<th>城市</th>
<th>传承人名称</th>
<th width="100">提交时间</th>
<th width="100">是否推荐</th>
<th width="70">操作</th>
</tr>
</tfoot>
</table>
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('LocalRemains/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('LocalRemains/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('LocalRemains/delete')}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<div class="pagination">{$page}</div>
... ...
... ... @@ -24,6 +24,8 @@
<notempty name="term">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Successor/listorders')}">排序</button>
</notempty>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Successor/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Successor/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('Successor/delete')}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<table class="table table-hover table-bordered table-list">
... ... @@ -42,6 +44,7 @@
<th width="100">区域</th>
<th width="100">民族</th>
<th width="100">添加时间</th>
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</thead>
... ... @@ -61,6 +64,13 @@
<td>{$vo.nation}</td>
<td>{:date('Y-m-d H:i',$vo['ctime'])}</td>
<td>
<notempty name="vo.recommended">
<a data-toggle="tooltip" title="已推荐"><i class="fa fa-thumbs-up"></i></a>
<else />
<a data-toggle="tooltip" title="未推荐"><i class="fa fa-thumbs-down"></i></a>
</notempty>
</td>
<td>
<a href="{:U('Successor/edit',array('id'=>$vo['id']))}">{:L('EDIT')}</a> |
<a href="{:U('SuccessorProduct/index',array('sid'=>$vo['id']))}">作品列表</a> |
<a href="{:U('Successor/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
... ... @@ -82,6 +92,7 @@
<th width="100">区域</th>
<th width="100">民族</th>
<th width="100">添加时间</th>
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</tfoot>
... ... @@ -90,6 +101,8 @@
<notempty name="term">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Successor/listorders')}">{:L('SORT')}</button>
</notempty>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Successor/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Successor/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('Successor/delete')}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<div class="pagination">{$page}</div>
... ...
... ... @@ -22,8 +22,8 @@
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/check',array('uncheck'=>1))}" data-subcheck="true">取消审核</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/top',array('top'=>1))}" data-subcheck="true">置顶</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/top',array('untop'=>1))}" data-subcheck="true">取消置顶</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>-->
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminAcademe/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminAcademe/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<notempty name="term">
<!--<button class="btn btn-primary btn-small js-articles-move" type="button">批量移动</button>-->
</notempty>
... ... @@ -41,6 +41,7 @@
<th width="50">点击量</th>
<th width="200">关键字/来源/摘要/缩略图</th>
<th width="100">发布时间</th>
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</thead>
... ... @@ -86,6 +87,13 @@
</td>
<td>{:date('Y-m-d H:i',strtotime($vo['post_date']))}</td>
<td>
<notempty name="vo.recommended">
<a data-toggle="tooltip" title="已推荐"><i class="fa fa-thumbs-up"></i></a>
<else />
<a data-toggle="tooltip" title="未推荐"><i class="fa fa-thumbs-down"></i></a>
</notempty>
</td>
<td>
<a href="{:U('AdminAcademe/editbrand',array('id'=>$vo['id']))}">{:L('EDIT')}</a> |
<a href="{:U('AdminAcademe/deletebrand',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
</td>
... ... @@ -101,6 +109,7 @@
<th width="50">点击量</th>
<th width="200">关键字/来源/摘要/缩略图</th>
<th width="100">发布时间</th>
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</tfoot>
... ... @@ -111,8 +120,8 @@
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/check',array('uncheck'=>1))}" data-subcheck="true">取消审核</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/top',array('top'=>1))}" data-subcheck="true">置顶</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/top',array('untop'=>1))}" data-subcheck="true">取消置顶</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>-->
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminAcademe/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminAcademe/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<notempty name="term">
<!--<button class="btn btn-primary btn-small js-articles-move" type="button">批量移动</button>-->
</notempty>
... ...
... ... @@ -22,8 +22,8 @@
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/check',array('uncheck'=>1))}" data-subcheck="true">取消审核</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/top',array('top'=>1))}" data-subcheck="true">置顶</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/top',array('untop'=>1))}" data-subcheck="true">取消置顶</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>-->
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminAcademe/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminAcademe/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<notempty name="term">
<!--<button class="btn btn-primary btn-small js-articles-move" type="button">批量移动</button>-->
</notempty>
... ... @@ -41,6 +41,7 @@
<th width="50">点击量</th>
<th width="200">关键字/来源/摘要/缩略图</th>
<th width="100">发布时间</th>
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</thead>
... ... @@ -86,6 +87,13 @@
</td>
<td>{:date('Y-m-d H:i',strtotime($vo['post_date']))}</td>
<td>
<notempty name="vo.recommended">
<a data-toggle="tooltip" title="已推荐"><i class="fa fa-thumbs-up"></i></a>
<else />
<a data-toggle="tooltip" title="未推荐"><i class="fa fa-thumbs-down"></i></a>
</notempty>
</td>
<td>
<a href="{:U('AdminAcademe/editdesign',array('id'=>$vo['id']))}">{:L('EDIT')}</a> |
<a href="{:U('AdminAcademe/deletedesign',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
</td>
... ... @@ -101,6 +109,7 @@
<th width="50">点击量</th>
<th width="200">关键字/来源/摘要/缩略图</th>
<th width="100">发布时间</th>
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</tfoot>
... ... @@ -111,8 +120,8 @@
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/check',array('uncheck'=>1))}" data-subcheck="true">取消审核</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/top',array('top'=>1))}" data-subcheck="true">置顶</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/top',array('untop'=>1))}" data-subcheck="true">取消置顶</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>-->
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminAcademe/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminAcademe/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<notempty name="term">
<!--<button class="btn btn-primary btn-small js-articles-move" type="button">批量移动</button>-->
</notempty>
... ...
... ... @@ -102,24 +102,6 @@
</td>
</tr>
<tr>
<td><b>文件</b></td>
</tr>
<tr>
<td>
<div style="text-align: center;">
<input type="hidden" name="smeta[file]" id="file" value="{$smeta.file|default=''}">
<a href="javascript:upload_one('文件上传','#file','file');">
<if condition="empty($smeta['thumb'])">
<img src="__TMPL__Public/assets/images/default-thumbnail.png" id="file-preview" width="135" style="cursor: hand"/>
<else />
<img src="{:sp_get_image_preview_url($smeta['file'])}" id="file-preview" width="135" style="cursor: hand"/>
</if>
</a>
<input type="button" class="btn btn-small" onclick="$('#file-preview').attr('src','__TMPL__Public/assets/images/default-thumbnail.png');$('#file').val('');return false;" value="取消文件">
</div>
</td>
</tr>
<tr>
<th>发布时间</th>
</tr>
<tr>
... ...
... ... @@ -22,8 +22,8 @@
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/check',array('uncheck'=>1))}" data-subcheck="true">取消审核</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/top',array('top'=>1))}" data-subcheck="true">置顶</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/top',array('untop'=>1))}" data-subcheck="true">取消置顶</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>-->
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminAcademe/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminAcademe/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<notempty name="term">
<!--<button class="btn btn-primary btn-small js-articles-move" type="button">批量移动</button>-->
</notempty>
... ... @@ -41,6 +41,7 @@
<th width="50">点击量</th>
<th width="200">关键字/来源/摘要/缩略图</th>
<th width="100">发布时间</th>
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</thead>
... ... @@ -86,6 +87,13 @@
</td>
<td>{:date('Y-m-d H:i',strtotime($vo['post_date']))}</td>
<td>
<notempty name="vo.recommended">
<a data-toggle="tooltip" title="已推荐"><i class="fa fa-thumbs-up"></i></a>
<else />
<a data-toggle="tooltip" title="未推荐"><i class="fa fa-thumbs-down"></i></a>
</notempty>
</td>
<td>
<a href="{:U('AdminAcademe/edititem',array('id'=>$vo['id']))}">{:L('EDIT')}</a> |
<a href="{:U('AdminAcademe/deleteitem',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
</td>
... ... @@ -101,6 +109,7 @@
<th width="50">点击量</th>
<th width="200">关键字/来源/摘要/缩略图</th>
<th width="100">发布时间</th>
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</tfoot>
... ... @@ -111,8 +120,8 @@
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/check',array('uncheck'=>1))}" data-subcheck="true">取消审核</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/top',array('top'=>1))}" data-subcheck="true">置顶</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/top',array('untop'=>1))}" data-subcheck="true">取消置顶</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPost/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>-->
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminAcademe/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminAcademe/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<notempty name="term">
<!--<button class="btn btn-primary btn-small js-articles-move" type="button">批量移动</button>-->
</notempty>
... ...
... ... @@ -31,6 +31,10 @@
</td>
</tr>
<tr>
<th>简介(首页显示)</th>
<td><textarea name="post[description]" placeholder="请输入简介"></textarea></td>
</tr>
<tr>
<th>详情</th>
<td>
<script type="text/plain" id="content" name="post[content]">{$post.content}</script>
... ...
... ... @@ -30,6 +30,10 @@
<span class="form-required">*</span>
</td>
</tr>
<tr>
<th>简介(首页显示)</th>
<td><textarea name="post[description]" placeholder="请输入简介"></textarea></td>
</tr>
<tr>
<th>详情</th>
<td>
... ...
... ... @@ -31,6 +31,10 @@
</td>
</tr>
<tr>
<th>简介(首页显示)</th>
<td><textarea name="post[description]" placeholder="请输入简介"></textarea></td>
</tr>
<tr>
<th>详情</th>
<td>
<script type="text/plain" id="content" name="post[content]">{$post.content}</script>
... ...
... ... @@ -17,6 +17,8 @@
</form>
<form class="js-ajax-form" action="" method="post">
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceArticle/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceArticle/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceArticle/deletecorporate', array('sort'=>2))}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<table class="table table-hover table-bordered table-list">
... ... @@ -27,7 +29,7 @@
<th>标题</th>
<th>缩略图</th>
<th width="150">添加时间</th>
<!--<th width="50">{:L('STATUS')}</th>-->
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</thead>
... ... @@ -45,6 +47,13 @@
</td>
<td>{:date('Y-m-d H:i',$vo['ctime'])}</td>
<td>
<notempty name="vo.recommended">
<a data-toggle="tooltip" title="已推荐"><i class="fa fa-thumbs-up"></i></a>
<else />
<a data-toggle="tooltip" title="未推荐"><i class="fa fa-thumbs-down"></i></a>
</notempty>
</td>
<td>
<a href="{:U('AdminChanceArticle/editcorporate',array('sort'=>2,'id'=>$vo['id']))}">{:L('EDIT')}</a> |
<a href="{:U('AdminChanceArticle/deletecorporate',array('sort'=>2,'id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
</td>
... ... @@ -57,12 +66,14 @@
<th>标题</th>
<th>缩略图</th>
<th width="150">添加时间</th>
<!--<th width="50">{:L('STATUS')}</th>-->
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</tfoot>
</table>
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceArticle/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceArticle/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceArticle/deletecorporate', array('sort'=>2))}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<div class="pagination">{$page}</div>
... ...
... ... @@ -32,6 +32,10 @@
</td>
</tr>
<tr>
<th>简介(首页显示)</th>
<td><textarea name="post[description]" placeholder="请输入简介">{$description}</textarea></td>
</tr>
<tr>
<th>详情</th>
<td>
<script type="text/plain" id="content" name="post[content]">{$post.content}</script>
... ...
... ... @@ -31,6 +31,10 @@
<span class="form-required">*</span>
</td>
</tr>
<tr>
<th>简介(首页显示)</th>
<td><textarea name="post[description]" placeholder="请输入简介">{$description}</textarea></td>
</tr>
<tr>
<th>详情</th>
<td>
... ...
... ... @@ -32,6 +32,10 @@
</td>
</tr>
<tr>
<th>简介(首页显示)</th>
<td><textarea name="post[description]" placeholder="请输入简介">{$description}</textarea></td>
</tr>
<tr>
<th>详情</th>
<td>
<script type="text/plain" id="content" name="post[content]">{$post.content}</script>
... ...
... ... @@ -17,6 +17,8 @@
</form>
<form class="js-ajax-form" action="" method="post">
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceArticle/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceArticle/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceArticle/deleteinherit', array('sort'=>1))}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<table class="table table-hover table-bordered table-list">
... ... @@ -27,7 +29,7 @@
<th>标题</th>
<th>缩略图</th>
<th width="150">添加时间</th>
<!--<th width="50">{:L('STATUS')}</th>-->
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</thead>
... ... @@ -45,6 +47,13 @@
</td>
<td>{:date('Y-m-d H:i',$vo['ctime'])}</td>
<td>
<notempty name="vo.recommended">
<a data-toggle="tooltip" title="已推荐"><i class="fa fa-thumbs-up"></i></a>
<else />
<a data-toggle="tooltip" title="未推荐"><i class="fa fa-thumbs-down"></i></a>
</notempty>
</td>
<td>
<a href="{:U('AdminChanceArticle/editinherit',array('sort'=>1,'id'=>$vo['id']))}">{:L('EDIT')}</a> |
<a href="{:U('AdminChanceArticle/deleteinherit',array('sort'=>1,'id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
</td>
... ... @@ -57,12 +66,14 @@
<th>标题</th>
<th>缩略图</th>
<th width="150">添加时间</th>
<!--<th width="50">{:L('STATUS')}</th>-->
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</tfoot>
</table>
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceArticle/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceArticle/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceArticle/deleteinherit', array('sort'=>1))}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<div class="pagination">{$page}</div>
... ...
... ... @@ -17,6 +17,8 @@
</form>
<form class="js-ajax-form" action="" method="post">
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceArticle/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceArticle/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceArticle/deleteins', array('sort'=>1))}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<table class="table table-hover table-bordered table-list">
... ... @@ -27,7 +29,7 @@
<th>标题</th>
<th>缩略图</th>
<th width="150">添加时间</th>
<!--<th width="50">{:L('STATUS')}</th>-->
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</thead>
... ... @@ -45,6 +47,13 @@
</td>
<td>{:date('Y-m-d H:i',$vo['ctime'])}</td>
<td>
<notempty name="vo.recommended">
<a data-toggle="tooltip" title="已推荐"><i class="fa fa-thumbs-up"></i></a>
<else />
<a data-toggle="tooltip" title="未推荐"><i class="fa fa-thumbs-down"></i></a>
</notempty>
</td>
<td>
<a href="{:U('AdminChanceArticle/editins',array('sort'=>3,'id'=>$vo['id']))}">{:L('EDIT')}</a> |
<a href="{:U('AdminChanceArticle/deleteins',array('sort'=>3,'id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
</td>
... ... @@ -57,12 +66,14 @@
<th>标题</th>
<th>缩略图</th>
<th width="150">添加时间</th>
<!--<th width="50">{:L('STATUS')}</th>-->
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</tfoot>
</table>
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceArticle/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceArticle/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceArticle/deleteins', array('sort'=>3))}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<div class="pagination">{$page}</div>
... ...
... ... @@ -17,6 +17,8 @@
</form>
<form class="js-ajax-form" action="" method="post">
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceEvents/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceEvents/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceEvents/delete')}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<table class="table table-hover table-bordered table-list">
... ... @@ -30,7 +32,7 @@
<th>开始时间-结束时间</th>
<th width="100">是否支付</th>
<th width="150">添加时间</th>
<!--<th width="50">{:L('STATUS')}</th>-->
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</thead>
... ... @@ -48,6 +50,13 @@
<td><eq name="vo.is_pay" value="0"></eq><eq name="vo.is_pay" value="1">是(¥{$vo.price})</eq></td>
<td>{:date('Y-m-d H:i',$vo['ctime'])}</td>
<td>
<notempty name="vo.recommended">
<a data-toggle="tooltip" title="已推荐"><i class="fa fa-thumbs-up"></i></a>
<else />
<a data-toggle="tooltip" title="未推荐"><i class="fa fa-thumbs-down"></i></a>
</notempty>
</td>
<td>
<a href="{:U('AdminChanceEvents/edit',array('id'=>$vo['id']))}">{:L('EDIT')}</a> |
<a href="{:U('AdminChanceEvents/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
</td>
... ... @@ -63,12 +72,14 @@
<th>开始时间-结束时间</th>
<th width="100">是否支付</th>
<th width="150">添加时间</th>
<!--<th width="50">{:L('STATUS')}</th>-->
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</tfoot>
</table>
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceEvents/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceEvents/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('AdminChanceEvents/delete')}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<div class="pagination">{$page}</div>
... ...
... ... @@ -17,6 +17,8 @@
</form>
<form class="js-ajax-form" action="" method="post">
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminProject/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminProject/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('AdminProject/delete')}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<table class="table table-hover table-bordered table-list">
... ... @@ -30,7 +32,7 @@
<th>传承人名称</th>
<th>缩略图</th>
<th width="150">添加时间</th>
<!--<th width="50">{:L('STATUS')}</th>-->
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</thead>
... ... @@ -51,6 +53,13 @@
</td>
<td>{:date('Y-m-d H:i',$vo['ctime'])}</td>
<td>
<notempty name="vo.recommended">
<a data-toggle="tooltip" title="已推荐"><i class="fa fa-thumbs-up"></i></a>
<else />
<a data-toggle="tooltip" title="未推荐"><i class="fa fa-thumbs-down"></i></a>
</notempty>
</td>
<td>
<a href="{:U('AdminProject/edit',array('id'=>$vo['id']))}">{:L('EDIT')}</a> |
<a href="{:U('AdminProject/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
</td>
... ... @@ -66,12 +75,14 @@
<th>传承人名称</th>
<th>缩略图</th>
<th width="150">添加时间</th>
<!--<th width="50">{:L('STATUS')}</th>-->
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</tfoot>
</table>
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminProject/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminProject/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('AdminProject/delete')}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<div class="pagination">{$page}</div>
... ...
... ... @@ -23,6 +23,13 @@
</td>
</tr>
<tr>
<th width="150">作者</th>
<td>
<input type="text" style="width:400px;" name="post[author]" id="author" required placeholder="请输入作者"/>
<span class="form-required">*</span>
</td>
</tr>
<tr>
<th width="150">描述内容</th>
<td>
<textarea type="text" style="width:400px;" name="post[description]" id="description" required placeholder="请输入描述内容"></textarea>
... ...
... ... @@ -24,6 +24,13 @@
</td>
</tr>
<tr>
<th width="150">作者</th>
<td>
<input type="text" style="width:400px;" name="post[author]" id="author" value="{$post.author}" required placeholder="请输入作者"/>
<span class="form-required">*</span>
</td>
</tr>
<tr>
<th width="150">描述内容</th>
<td>
<textarea type="text" style="width:400px;" name="post[description]" id="description" required placeholder="请输入描述内容">{$post.description}</textarea>
... ...
... ... @@ -25,6 +25,7 @@
<th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
<th width="50">ID</th>
<th>标题</th>
<th>作者</th>
<th>描述</th>
<th>缩略图</th>
<th width="150">添加时间</th>
... ... @@ -37,6 +38,7 @@
<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}" title="ID:{$vo.id}"></td>
<td><b>{$vo.id}</b></td>
<td>{$vo.name}</td>
<td>{$vo.author}</td>
<td>{$vo.description}</td>
<td>
<notempty name="vo.thumb">
... ... @@ -57,6 +59,7 @@
<th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
<th width="50">ID</th>
<th>标题</th>
<th>作者</th>
<th>描述</th>
<th>缩略图</th>
<th width="150">添加时间</th>
... ...
... ... @@ -44,10 +44,10 @@
<span class="form-required">*</span>
</td>
</tr>
<!--<tr>-->
<!--<th>简介</th>-->
<!--<td><textarea name="post[description]" placeholder="请输入活动简介"></textarea></td>-->
<!--</tr>-->
<tr>
<th>简介(首页使用)</th>
<td><textarea name="post[description]" placeholder="请输入活动简介"></textarea></td>
</tr>
<tr>
<th>活动内容</th>
<td>
... ...
... ... @@ -44,10 +44,10 @@
<span class="form-required">*</span>
</td>
</tr>
<!--<tr>-->
<!--<th>简介</th>-->
<!--<td><textarea name="post[description]" placeholder="请输入活动简介"></textarea></td>-->
<!--</tr>-->
<tr>
<th>简介(首页使用)</th>
<td><textarea name="post[description]" placeholder="请输入活动简介"></textarea></td>
</tr>
<tr>
<th>活动内容</th>
<td>
... ...
... ... @@ -44,10 +44,10 @@
<span class="form-required">*</span>
</td>
</tr>
<!--<tr>-->
<!--<th>简介</th>-->
<!--<td><textarea name="post[description]" placeholder="请输入活动简介"></textarea></td>-->
<!--</tr>-->
<tr>
<th>简介(首页使用)</th>
<td><textarea name="post[description]" placeholder="请输入活动简介"></textarea></td>
</tr>
<tr>
<th>活动内容</th>
<td>
... ...
... ... @@ -17,6 +17,8 @@
</form>
<form class="js-ajax-form" action="" method="post">
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminTrain/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminTrain/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('AdminTrain/deletecultural')}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<table class="table table-hover table-bordered table-list">
... ... @@ -29,7 +31,7 @@
<th>报名开始时间-结束时间</th>
<th width="100">金额</th>
<th width="150">添加时间</th>
<!--<th width="50">{:L('STATUS')}</th>-->
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</thead>
... ... @@ -46,6 +48,13 @@
<td>¥{$vo.price}</td>
<td>{:date('Y-m-d H:i',$vo['ctime'])}</td>
<td>
<notempty name="vo.recommended">
<a data-toggle="tooltip" title="已推荐"><i class="fa fa-thumbs-up"></i></a>
<else />
<a data-toggle="tooltip" title="未推荐"><i class="fa fa-thumbs-down"></i></a>
</notempty>
</td>
<td>
<a href="{:U('AdminTrain/editcultural',array('id'=>$vo['id']))}">{:L('EDIT')}</a> |
<a href="{:U('AdminTrain/deletecultural',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
</td>
... ... @@ -60,12 +69,14 @@
<th>报名开始时间-结束时间</th>
<th width="100">金额</th>
<th width="150">添加时间</th>
<!--<th width="50">{:L('STATUS')}</th>-->
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</tfoot>
</table>
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminTrain/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminTrain/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('AdminTrain/deletecultural')}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<div class="pagination">{$page}</div>
... ...
... ... @@ -45,10 +45,10 @@
<span class="form-required">*</span>
</td>
</tr>
<!--<tr>-->
<!--<th>简介</th>-->
<!--<td><textarea name="post[description]" placeholder="请输入活动简介">{$post.description}</textarea></td>-->
<!--</tr>-->
<tr>
<th>简介(首页使用)</th>
<td><textarea name="post[description]" placeholder="请输入活动简介">{$post.description}</textarea></td>
</tr>
<tr>
<th>活动内容</th>
<td>
... ...
... ... @@ -45,10 +45,10 @@
<span class="form-required">*</span>
</td>
</tr>
<!--<tr>-->
<!--<th>简介</th>-->
<!--<td><textarea name="post[description]" placeholder="请输入活动简介">{$post.description}</textarea></td>-->
<!--</tr>-->
<tr>
<th>简介(首页使用)</th>
<td><textarea name="post[description]" placeholder="请输入活动简介">{$post.description}</textarea></td>
</tr>
<tr>
<th>活动内容</th>
<td>
... ...
... ... @@ -45,10 +45,10 @@
<span class="form-required">*</span>
</td>
</tr>
<!--<tr>-->
<!--<th>简介</th>-->
<!--<td><textarea name="post[description]" placeholder="请输入活动简介">{$post.description}</textarea></td>-->
<!--</tr>-->
<tr>
<th>简介(首页使用)</th>
<td><textarea name="post[description]" placeholder="请输入活动简介">{$post.description}</textarea></td>
</tr>
<tr>
<th>活动内容</th>
<td>
... ...
... ... @@ -17,6 +17,8 @@
</form>
<form class="js-ajax-form" action="" method="post">
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminTrain/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminTrain/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('AdminTrain/deletelesson')}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<table class="table table-hover table-bordered table-list">
... ... @@ -29,7 +31,7 @@
<th>报名开始时间-结束时间</th>
<th width="100">金额</th>
<th width="150">添加时间</th>
<!--<th width="50">{:L('STATUS')}</th>-->
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</thead>
... ... @@ -46,6 +48,13 @@
<td>¥{$vo.price}</td>
<td>{:date('Y-m-d H:i',$vo['ctime'])}</td>
<td>
<notempty name="vo.recommended">
<a data-toggle="tooltip" title="已推荐"><i class="fa fa-thumbs-up"></i></a>
<else />
<a data-toggle="tooltip" title="未推荐"><i class="fa fa-thumbs-down"></i></a>
</notempty>
</td>
<td>
<a href="{:U('AdminTrain/editlesson',array('id'=>$vo['id']))}">{:L('EDIT')}</a> |
<a href="{:U('AdminTrain/deletelesson',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
</td>
... ... @@ -60,12 +69,14 @@
<th>报名开始时间-结束时间</th>
<th width="100">金额</th>
<th width="150">添加时间</th>
<!--<th width="50">{:L('STATUS')}</th>-->
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</tfoot>
</table>
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminTrain/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminTrain/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('AdminTrain/deletelesson')}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<div class="pagination">{$page}</div>
... ...
... ... @@ -17,6 +17,8 @@
</form>
<form class="js-ajax-form" action="" method="post">
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminTrain/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminTrain/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('AdminTrain/deletework')}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<table class="table table-hover table-bordered table-list">
... ... @@ -29,7 +31,7 @@
<th>报名开始时间-结束时间</th>
<th width="100">金额</th>
<th width="150">添加时间</th>
<!--<th width="50">{:L('STATUS')}</th>-->
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</thead>
... ... @@ -46,6 +48,13 @@
<td>¥{$vo.price}</td>
<td>{:date('Y-m-d H:i',$vo['ctime'])}</td>
<td>
<notempty name="vo.recommended">
<a data-toggle="tooltip" title="已推荐"><i class="fa fa-thumbs-up"></i></a>
<else />
<a data-toggle="tooltip" title="未推荐"><i class="fa fa-thumbs-down"></i></a>
</notempty>
</td>
<td>
<a href="{:U('AdminTrain/editwork',array('id'=>$vo['id']))}">{:L('EDIT')}</a> |
<a href="{:U('AdminTrain/deletework',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
</td>
... ... @@ -60,12 +69,14 @@
<th>报名开始时间-结束时间</th>
<th width="100">金额</th>
<th width="150">添加时间</th>
<!--<th width="50">{:L('STATUS')}</th>-->
<th width="100">是否推荐</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</tfoot>
</table>
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminTrain/recommend',array('recommend'=>1))}" data-subcheck="true">推荐</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminTrain/recommend',array('unrecommend'=>1))}" data-subcheck="true">取消推荐</button>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('AdminTrain/deletework')}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<div class="pagination">{$page}</div>
... ...
... ... @@ -9,7 +9,7 @@
用户ID:
<input type="text" name="uid" style="width: 100px;" value="{:I('request.uid')}" placeholder="请输入用户ID">
关键字:
<input type="text" name="keyword" style="width: 200px;" value="{:I('request.keyword')}" placeholder="用户名/昵称/邮箱">
<input type="text" name="keyword" style="width: 200px;" value="{:I('request.keyword')}" placeholder="手机号/昵称/邮箱">
<input type="submit" class="btn btn-primary" value="搜索" />
<a class="btn btn-danger" href="{:U('Indexadmin/index')}">清空</a>
</form>
... ... @@ -25,8 +25,6 @@
<th>{:L('REGISTRATION_TIME')}</th>
<th>{:L('LAST_LOGIN_TIME')}</th>
<th>{:L('LAST_LOGIN_IP')}</th>
<th>{:L('STATUS')}</th>
<th align="center">{:L('ACTIONS')}</th>
</tr>
</thead>
<tbody>
... ... @@ -34,23 +32,13 @@
<foreach name="list" item="vo">
<tr>
<td align="center">{$vo.id}</td>
<td>{$vo['user_login']?$vo['user_login']:($vo['mobile']?$vo['mobile']:L('THIRD_PARTY_USER'))}</td>
<td>{$vo['user_nicename']?$vo['user_nicename']:L('NOT_FILLED')}</td>
<td>{$vo['mobile']?$vo['mobile']:L('THIRD_PARTY_USER')}</td>
<td>{$vo['nickname']?$vo['nickname']:L('NOT_FILLED')}</td>
<td><img width="25" height="25" src="{:U('user/public/avatar',array('id'=>$vo['id']))}" /></td>
<td>{$vo.user_email}</td>
<td>{$vo.email}</td>
<td>{$vo.create_time}</td>
<td>{$vo.last_login_time}</td>
<td>{$vo.last_login_ip}</td>
<td>{$user_statuses[$vo['user_status']]}</td>
<td align="center">
<neq name="vo.id" value="1">
<a href="{:U('indexadmin/ban',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="{:L('BLOCK_USER_CONFIRM_MESSAGE')}">{:L('BLOCK_USER')}</a>|
<a href="{:U('indexadmin/cancelban',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="{:L('ACTIVATE_USER_CONFIRM_MESSAGE')}">{:L('ACTIVATE_USER')}</a>
<else/>
<a style="color: #ccc;">{:L('BLOCK_USER')}</a>|
<a style="color: #ccc;">{:L('ACTIVATE_USER')}</a>
</neq>
</td>
</tr>
</foreach>
</tbody>
... ...
... ... @@ -82,6 +82,28 @@ class LocalRemainsController extends AdminbaseController {
}
}
// 推荐
public function recommend(){
if(isset($_POST['ids']) && $_GET["recommend"]){
$ids = I('post.ids/a');
if ( $this->local_remains_model->where(array('id'=>array('in',$ids)))->save(array('recommended'=>1))!==false) {
$this->success("推荐成功!");
} else {
$this->error("推荐失败!");
}
}
if(isset($_POST['ids']) && $_GET["unrecommend"]){
$ids = I('post.ids/a');
if ( $this->local_remains_model->where(array('id'=>array('in',$ids)))->save(array('recommended'=>0))!==false) {
$this->success("取消推荐成功!");
} else {
$this->error("取消推荐失败!");
}
}
}
// 删除
public function delete(){
if(I('get.id')){
... ...
... ... @@ -184,6 +184,29 @@ class SuccessorController extends AdminbaseController {
$this->error("排序更新失败!");
}
}
// 推荐
public function recommend(){
if(isset($_POST['ids']) && $_GET["recommend"]){
$ids = I('post.ids/a');
if ( $this->successor_model->where(array('id'=>array('in',$ids)))->save(array('recommended'=>1))!==false) {
$this->success("推荐成功!");
} else {
$this->error("推荐失败!");
}
}
if(isset($_POST['ids']) && $_GET["unrecommend"]){
$ids = I('post.ids/a');
if ( $this->successor_model->where(array('id'=>array('in',$ids)))->save(array('recommended'=>0))!==false) {
$this->success("取消推荐成功!");
} else {
$this->error("取消推荐失败!");
}
}
}
// 删除
public function delete(){
if(isset($_POST['ids'])){
... ...
... ... @@ -26,11 +26,15 @@ class MemberbaseController extends HomebaseController{
$this->userid=sp_get_current_userid();
$this->user_model=D("Common/User");
$this->user=$this->user_model->where(array("id"=>$this->userid))->find();
// 获取未读站内信
$read = M('MessageUserLog')->where(array('user_id'=>$this->userid))->getField('message_id',true);
if($read) {
$unread = M('Message')->where(array('userids'=>array('like','%'.$this->userid.'%'),'id'=>array('not in',$read)))->count();
} else {
$unread = 0;
}
$this->assign('unread',$unread);
}
// 获取未读站内信
$read = M('MessageUserLog')->where(array('user_id'=>$this->userid))->getField('message_id',true);
$unread = M('Message')->where(array('userids'=>array('like','%'.$this->userid.'%'),'id'=>array('not in',$read)))->count();
$this->assign('unread',$unread);
$this->user['mobile'] = substr_replace($this->user['mobile'],'****',3,4);
$this->assign($this->user);
}
... ...
... ... @@ -17,6 +17,7 @@ class StoryModel extends CommonModel {
//array(验证字段,验证规则,错误提示,验证条件,附加规则,验证时间)
// array('user_id', 'number', '用户ID不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
array('name', 'require', '名称不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
array('author', 'require', '作者不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
array('description', 'require', '描述内容不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
array('thumb', 'require', '缩略图不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
array('content', 'require', '详细内容不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
... ...
... ... @@ -242,6 +242,28 @@ class AdminChanceArticleController extends AdminbaseController {
$this->assign("posts",$posts);
}
// 推荐
public function recommend(){
if(isset($_POST['ids']) && $_GET["recommend"]){
$ids = I('post.ids/a');
if ( $this->chance_article_model->where(array('id'=>array('in',$ids)))->save(array('recommended'=>1))!==false) {
$this->success("推荐成功!");
} else {
$this->error("推荐失败!");
}
}
if(isset($_POST['ids']) && $_GET["unrecommend"]){
$ids = I('post.ids/a');
if ( $this->chance_article_model->where(array('id'=>array('in',$ids)))->save(array('recommended'=>0))!==false) {
$this->success("取消推荐成功!");
} else {
$this->error("取消推荐失败!");
}
}
}
// 删除
public function deleteinherit(){
if(isset($_POST['ids'])){
... ...
... ... @@ -128,6 +128,28 @@ class AdminChanceEventsController extends AdminbaseController {
$this->assign("posts",$posts);
}
// 推荐
public function recommend(){
if(isset($_POST['ids']) && $_GET["recommend"]){
$ids = I('post.ids/a');
if ( $this->chance_events_model->where(array('id'=>array('in',$ids)))->save(array('recommended'=>1))!==false) {
$this->success("推荐成功!");
} else {
$this->error("推荐失败!");
}
}
if(isset($_POST['ids']) && $_GET["unrecommend"]){
$ids = I('post.ids/a');
if ( $this->chance_events_model->where(array('id'=>array('in',$ids)))->save(array('recommended'=>0))!==false) {
$this->success("取消推荐成功!");
} else {
$this->error("取消推荐失败!");
}
}
}
// 删除
public function delete(){
if(isset($_POST['ids'])){
... ...
... ... @@ -127,6 +127,28 @@ class AdminProjectController extends AdminbaseController {
$this->assign('consult', $consult);
}
// 推荐
public function recommend(){
if(isset($_POST['ids']) && $_GET["recommend"]){
$ids = I('post.ids/a');
if ( $this->project_model->where(array('id'=>array('in',$ids)))->save(array('recommended'=>1))!==false) {
$this->success("推荐成功!");
} else {
$this->error("推荐失败!");
}
}
if(isset($_POST['ids']) && $_GET["unrecommend"]){
$ids = I('post.ids/a');
if ( $this->project_model->where(array('id'=>array('in',$ids)))->save(array('recommended'=>0))!==false) {
$this->success("取消推荐成功!");
} else {
$this->error("取消推荐失败!");
}
}
}
// 删除
public function delete(){
if(isset($_POST['ids'])){
... ...
... ... @@ -254,6 +254,28 @@ class AdminTrainController extends AdminbaseController {
$this->assign("posts",$posts);
}
// 推荐
public function recommend(){
if(isset($_POST['ids']) && $_GET["recommend"]){
$ids = I('post.ids/a');
if ( $this->train_model->where(array('id'=>array('in',$ids)))->save(array('recommended'=>1))!==false) {
$this->success("推荐成功!");
} else {
$this->error("推荐失败!");
}
}
if(isset($_POST['ids']) && $_GET["unrecommend"]){
$ids = I('post.ids/a');
if ( $this->train_model->where(array('id'=>array('in',$ids)))->save(array('recommended'=>0))!==false) {
$this->success("取消推荐成功!");
} else {
$this->error("取消推荐失败!");
}
}
}
// 删除
public function deletework(){
if(isset($_POST['ids'])){
... ...
... ... @@ -105,16 +105,16 @@ class GoodsController extends HomebaseController {
public function goods_search($search) {
unset($search['sort']);
if($search['region']) {
$where['region_id'] = $search['region'];
$where['g.region_id'] = $search['region'];
}
if($search['price']) {
$where['goods_price'] = array('between', explode('-', $search['price']));
$where['g.goods_price'] = array('between', explode('-', $search['price']));
if ($search['price'] == 20000) {
$where['goods_price'] = array('lt', $search['price']);
$where['g.goods_price'] = array('gt', $search['price']);
}
}
if($search['brand']) {
$where['brand_id'] = $search['brand'];
$where['g.brand_id'] = $search['brand'];
}
// 地区
$url['region_all'] = $search;
... ... @@ -136,7 +136,7 @@ class GoodsController extends HomebaseController {
}
/**
* 商品列表处理方法,根据不同条件显示不同的列表
* 商品列表处理方法,根据不同条件显示不同的列表(pc端)
* @param array $where 查询条件
*/
private function _lists($where=array(),$order = null){
... ... @@ -178,7 +178,7 @@ class GoodsController extends HomebaseController {
return $posts;
}
// 商品列表页(手机端)
// 商品列表页(微信端)
public function goods_list_mobile() {
if(IS_POST) {
// 处理筛选内容
... ... @@ -186,21 +186,22 @@ class GoodsController extends HomebaseController {
$search['price'] = I('post.price');
$search['brand'] = I('post.brand');
$where = $this->goods_search($search);
$_GET['p'] = I('post.page',0,'intval');
// $_GET['p'] = I('post.page',0,'intval');
if(I('post.id',0,'intval')) {
$ids = $this->product_model->getChildId(I('post.id'));
$where['g.is_del'] = 0;
$where['g.sort_id'] = array('in',$ids);
$goodsList = $this->_lists($where,$search['sort']);
$goodsList = $this->_lists_mobile($where,$search['sort']);
} elseif(I('post.cid',0,'intval')) {
$where['g.is_del'] = 0;
$where['g.sort_id'] = array('in',I('post.cid'));
$goodsList = $this->_lists($where,$search['sort']);
$goodsList = $this->_lists_mobile($where,$search['sort']);
} else {
$this->ajaxReturn(array('status'=>false,'msg'=>'参数错误'));
}
foreach ($goodsList as $k=>$v) {
$goodsList[$k]['url'] = U('Portal/Goods/detail',array('id'=>$v['id']));
$goodsList[$k]['thumb'] = sp_get_image_preview_url($v['thumb']);
}
$this->ajaxReturn(array('status'=>true,'msg'=>'成功','data'=>$goodsList));
... ... @@ -208,15 +209,61 @@ class GoodsController extends HomebaseController {
$this->assign('id',I('get.id',0,'intval'));
$this->assign('cid',I('get.cid',0,'intval'));
// 筛选功能数组
$price_search = array('0-300','300-2000','2000-5000','5000-10000','10000-20000','20000');
$price = array('0-300'=>'0-300元','300-2000'=>'300-2000元','2000-5000'=>'2000-5000元','5000-10000'=>'5000-10000元','10000-20000'=>'10000-20000元','20000'=>'20000元以上');
$i = 0;
foreach($price as $k=>$v) {
$price_search[$i]['value'] = $k;
$price_search[$i]['label'] = $v;
$i++;
}
$this->assign('price_search',json_encode($price_search));
$this->region();
$this->assign('brandList',json_encode($this->goods_brand_model->getListName()));
$brandList = $this->goods_brand_model->getList();
foreach($brandList as $k=>$v) {
$brand_search[$k]['value'] = $v['id'];
$brand_search[$k]['label'] = $v['brand_name'];
}
$this->assign('brandList',json_encode($brand_search));
$this->assign('search_page',U('Portal/Goods/search_page'));
$this->display('goods_list');
}
}
/**
* 商品列表处理方法,根据不同条件显示不同的列表(微信端)
* @param array $where 查询条件
*/
private function _lists_mobile($where=array(),$order = null){
$this->goods_model
->where($where);
// 排序处理
if($order) {
if($order == 'news') {
$order = array('g.ctime'=>'DESC');
}
if($order == 'price_up') {
$order = array('g.goods_price'=>'ASC');
}
if($order == 'price_down') {
$order = array('g.goods_price'=>'DESC');
}
if($order == 'buy') {
$order = array('g.istop'=>'DESC');
}
} else {
$order = array('g.ctime'=>'DESC');
}
$posts = $this->goods_model->field(array('g.id,g.sort_id,g.brand_id,g.region_id,g.goods_name,g.short_name,g.goods_price,g.price,g.num,g.thumb,gb.brand_name,p.name'))->alias('g')
->join('__GOODS_BRAND__ as gb on g.brand_id = gb.id')
->join('__PRODUCT__ as p on g.sort_id = p.id')
->where($where)
// ->limit(12*(I('post.page',0,'intval')-1) , 12)
->order($order)
->select();
return $posts;
}
// 商品搜索页面
public function search() {
$keyword = $where['g.goods_name|g.short_name|gb.brand_name|p.name'] = I('get.keyword');
... ... @@ -310,6 +357,8 @@ class GoodsController extends HomebaseController {
'<a href='.U('goods_list',array('cid'=>$product['id'])).'>'.$product['name'].'</a>';
$this->assign('goods_nav',$nav);
$info['images'] = json_decode($info['image'], true);
$cart_count = M('Cart')->where(array('user_id'=>$user_id))->sum('num');
$this->assign('cart_count',$cart_count);
$this->assign('news',$news);
$this->assign($info);
$this->display();
... ...
... ... @@ -30,6 +30,7 @@ use Common\Controller\HomebaseController;
*/
class IndexController extends HomebaseController {
protected $chance_article_model;
protected $successor_model;
protected $chance_events_model;
protected $train_model;
... ... @@ -40,6 +41,7 @@ class IndexController extends HomebaseController {
function _initialize() {
parent::_initialize();
$this->chance_article_model = D("Common/ChanceArticle");
$this->successor_model = D("Common/Successor");
$this->chance_events_model = D("Common/ChanceEvents");
$this->train_model = D("Common/Train");
... ... @@ -52,30 +54,44 @@ class IndexController extends HomebaseController {
//首页
public function index() {
// 传承人
$successorList = $this->successor_model->where(array('is_del'=>0))->order(array('ctime'=>'DESC'))->limit(6)->select();
$successorList = $this->successor_model->where(array('is_del'=>0))->order(array('recommended'=>'DESC','ctime'=>'DESC'))->limit(6)->select();
$this->assign('successorList',$successorList);
// 活动赛事
$chanceEventsList = $this->chance_events_model->where(array('is_del'=>0))->order(array('ctime'=>'DESC'))->limit(3)->select();
$chanceEventsTop = $this->chance_events_model->where(array('is_del'=>0))->order(array('recommended'=>'DESC','ctime'=>'DESC'))->find();
$this->assign('chanceEventsTop',$chanceEventsTop);
$chanceEventsList = $this->chance_events_model->where(array('is_del'=>0))->order(array('recommended'=>'DESC','ctime'=>'DESC'))->limit(1,3)->select();
$this->assign('chanceEventsList',$chanceEventsList);
// 体验培训
$trainList = $this->train_model->where(array('is_del'=>0))->order(array('ctime'=>'DESC'))->limit(5)->select();
$trainList = $this->train_model->where(array('is_del'=>0))->order(array('recommended'=>'DESC','ctime'=>'DESC'))->limit(5)->select();
$this->assign('trainList',$trainList);
// 非遗社团
$chanceArticleList = $posts = $this->chance_article_model->where(array('recommended'=>'DESC','sort'=>2,'is_del'=>0))->limit(0,3)->order("ctime DESC")->select();;
$this->assign('chanceArticleList',$chanceArticleList);
// 地方非遗
$localRemainsList = $this->local_remains_model->where(array('is_del'=>0))->order(array('ctime'=>'DESC'))->limit(0,3)->select();
$localRemainsTop = $this->local_remains_model->where(array('is_del'=>0))->order(array('recommended'=>'DESC','ctime'=>'DESC'))->find();
$this->assign('localRemainsTop',$localRemainsTop);
$localRemainsList = $this->local_remains_model->where(array('is_del'=>0))->order(array('recommended'=>'DESC','ctime'=>'DESC'))->limit(1,3)->select();
$this->assign('localRemainsList',$localRemainsList);
// 地方特色文创
$localRemainsLists = $this->local_remains_model->where(array('is_del'=>0))->order(array('ctime'=>'DESC'))->limit(3,3)->select();
$localRemainsLists = $this->local_remains_model->where(array('is_del'=>0))->order(array('recommended'=>'DESC','ctime'=>'DESC'))->limit(3,3)->select();
$this->assign('localRemainsLists',$localRemainsLists);
// 非遗项目
$projectList = $this->project_model->where(array('is_del'=>0))->order(array('ctime'=>'DESC'))->limit(5)->select();
$projectList = $this->project_model->where(array('is_del'=>0))->order(array('recommended'=>'DESC','ctime'=>'DESC'))->limit(5)->select();
$this->assign('projectList',$projectList);
// 研究院
$academeTop = $this->posts_model->field('a.*')
->alias("a")
->join("__TERM_RELATIONSHIPS__ b ON a.id = b.object_id")
->where(array('b.term_id'=>array('in','4,5,6')))
->order("a.recommended DESC,a.post_date DESC")
->find();
$this->assign('academeTop',$academeTop);
$academeList = $this->posts_model->field('a.*')
->alias("a")
->join("__TERM_RELATIONSHIPS__ b ON a.id = b.object_id")
->where(array('b.term_id'=>array('in','4,5,6')))
->limit(3)
->order("a.post_date DESC")
->limit(1,3)
->order("a.recommended DESC,a.post_date DESC")
->select();
$this->assign('academeList',$academeList);
$this->display(":index1");
... ...
... ... @@ -33,7 +33,7 @@ class NotifyController extends HomebaseController {
$order_model = D('Common/Order');
$orderInfo = $order_model->where($where)->find();
if($orderInfo['status'] == 1) {
$where['price_count'] = $data['total_fee'];
// $where['price_count'] = $data['total_fee'];
$info['pay_sort'] = 1;
$info['ptime'] = time();
$info['status'] = 2;
... ...
... ... @@ -66,6 +66,12 @@ class StoryController extends HomebaseController {
// 判断用户是否点赞
$user_id = sp_get_current_userid();
foreach ($posts as $k=>$v) {
$posts[$k]['ctime'] = $this->formateData($v['ctime']);
if($v['user_id']) {
$posts[$k]['avatar'] = sp_get_image_preview_url(M('User')->where(array('id'=>$v['user_id']))->getField('avatar'));
}
}
if($user_id) {
foreach($posts as $k=>$v) {
$goodLog = $this->story_good_log_model->where(array('user_id'=>$user_id,'sid'=>$v['id']))->count();
... ... @@ -125,11 +131,10 @@ class StoryController extends HomebaseController {
public function submit() {
if(IS_AJAX) {
$post =I('post.');
$user_id = $post['user_id'] = 1;
// $user_id = $post['user_id'] = sp_get_current_userid();
// if(!$user_id) {
// $this->ajaxReturn(array('status'=>false,'msg'=>'用户未登录'));
// }
$user_id = $post['user_id'] = sp_get_current_userid();
if(!$user_id) {
$this->ajaxReturn(array('status'=>false,'msg'=>'用户未登录'));
}
$post['images'] = implode(',',I('post.images'));
$post['ctime'] = $post['utime'] = time();
if(!$this->story_apply_model->create($post)) {
... ...
... ... @@ -17,19 +17,19 @@ class IndexadminController extends AdminbaseController {
if(!empty($request['keyword'])){
$keyword=$request['keyword'];
$keyword_complex=array();
$keyword_complex['user_login'] = array('like', "%$keyword%");
$keyword_complex['user_nicename'] = array('like',"%$keyword%");
$keyword_complex['user_email'] = array('like',"%$keyword%");
$keyword_complex['nickname'] = array('like',"%$keyword%");
$keyword_complex['email'] = array('like',"%$keyword%");
$keyword_complex['mobile'] = array('like',"%$keyword%");
$keyword_complex['_logic'] = 'or';
$where['_complex'] = $keyword_complex;
}
$users_model=M("Users");
$user_model=M("User");
$count=$users_model->where($where)->count();
$count=$user_model->where($where)->count();
$page = $this->page($count, 20);
$list = $users_model
$list = $user_model
->where($where)
->order("create_time DESC")
->limit($page->firstRow . ',' . $page->listRows)
... ...
... ... @@ -7,10 +7,10 @@ class PublicController extends HomebaseController {
// 用户头像api
public function avatar(){
$users_model=M("Users");
$user_model=M("User");
$id=I("get.id",0,"intval");
$find_user=$users_model->field('avatar')->where(array("id"=>$id))->find();
$find_user=$user_model->field('avatar')->where(array("id"=>$id))->find();
$avatar=$find_user['avatar'];
$avatar=preg_replace("/^avatar\//", '', $avatar);//2.2以后头像路径统一以avatar/开头
... ...
... ... @@ -18,7 +18,7 @@ if (ini_get('magic_quotes_gpc')) {
$_POST = stripslashesRecursive($_POST);
}
//开启调试模式
define("APP_DEBUG", true);
define("APP_DEBUG", false);
//网站当前路径
define('SITE_PATH', dirname(__FILE__)."/");
//项目路径,不可更改
... ...
... ... @@ -197,6 +197,7 @@ class Page {
public function GetCurrentPage() {
$p=isset($_GET [$this->PageParam])?intval($_GET [$this->PageParam]):1;
session('thispage',$_GET [$this->PageParam]);
$p=$p < 1 ? 1 : $p;
$total_pages=intval($this->Total_Pages);
$this->Current_page = ($p <=$total_pages? $p : $total_pages);
... ...
... ... @@ -54,7 +54,12 @@
<div class="lw-box-lt">
<div class="lw-header">
<div class="lw-avatar">
<img src="__TMPL__Public/assets/images/demo/avatar.jpg" alt="" /> <span>陈云心发表了文章·6天前</span>
<empty name="vo.avatar">
<img src="__TMPL__Public/assets/images/demo/avatar.jpg" alt="" />
<else/>
<img src="{$vo.avatar}" alt="" />
</empty>
<span>{$vo.author}发表了文章·{$vo.ctime}</span>
</div>
<div class="lw-action">
<a href="{:U('detail',array('id'=>$vo['id']))}" class="lw-link">[ 阅读全文 ]</a>
... ...
... ... @@ -8,6 +8,19 @@
<link href="__TMPL__Public/assets/css/common.css" rel="stylesheet" type="text/css" />
<link href="__TMPL__Public/assets/css/flexslider.css" rel="stylesheet" type="text/css" />
<link href="__TMPL__Public/assets/css/style.css" rel="stylesheet" type="text/css" />
<style>
.inheritor .hd li{
position: relative;
}
.inheritor .hd li span{
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-50%,-50%);
-webkit-transform: translate(-50%,-50%);
width: 15px;
}
</style>
</head>
<body>
<tc_include file="Public:header" />
... ... @@ -69,9 +82,7 @@
<span>{$vo.name}</span><img src="__TMPL__Public/assets/images/yin.png" alt="" />
</div>
<div class="inher-desc">
<div class="inher-content">
{$vo.description}
</div>
<div class="inher-content">{$vo.description}</div>
</div>
</div>
</div>
... ... @@ -95,12 +106,12 @@
<div class="main">
<div class="media-box">
<div class="media-pic">
<a href="" class="scale"><img src="__TMPL__Public/assets/images/index/pic.jpg"/></a>
<a href="{:U('Portal/ChanceEvents/detail',array('id'=>$chanceEventsTop['id']))}" class="scale"><img src="{:sp_get_image_preview_url($chanceEventsTop['thumb'])}"/></a>
</div>
<div class="media-text">
<div class="media-title"><a href="">长江流域非遗文化保护联盟成立,为非遗保护保驾护航</a></div>
<div class="meida-desc">期间展出产品1200多件,吸引约4万名观众到场。不仅唤醒人们对手工艺品的记忆、对长江文明的认识,还成立了长江流域主要城市非物质文化遗产保护战略联盟,从根本上探索构建长江流域城市群非物质文化遗产保护合作交流机制。</div>
<a href="##" class="media-more">详情</a>
<div class="media-title"><a href="{:U('Portal/ChanceEvents/detail',array('id'=>$chanceEventsTop['id']))}">{$chanceEventsTop.name}</a></div>
<div class="meida-desc">{$chanceEventsTop.description}</div>
<a href="{:U('Portal/ChanceEvents/detail',array('id'=>$chanceEventsTop['id']))}" class="media-more">详情</a>
</div>
</div>
<ul class="media-list">
... ... @@ -138,7 +149,7 @@
</div>
<div class="train-text">
<div class="train-tit">{$vo.name}</div>
<div class="train-intro">陶艺,广泛讲是中国传统古老文化与现代艺术结合的艺术形式</div>
<div class="train-intro">{$vo.description}</div>
</div>
</a>
</li>
... ... @@ -153,33 +164,17 @@
</div>
<div class="main">
<ul class="association-list">
<li>
<a href="###" class="assoc-box scale">
<img src="__TMPL__Public/assets/images/index/shetuan1.jpg"/>
<div class="assoc-popover">
<div class="assoc-title">北京大学非遗社团</div>
<div class="assoc-desc">期间展出产品1200多件,吸引约4万名观众到场不仅唤醒人们对手工艺品的记忆、对长江文明的认识不仅唤醒人们对手工艺品的记忆...</div>
</div>
</a>
</li>
<li>
<a href="###" class="assoc-box scale">
<img src="__TMPL__Public/assets/images/index/shetuan2.jpg"/>
<div class="assoc-popover">
<div class="assoc-title">北京大学非遗社团</div>
<div class="assoc-desc">期间展出产品1200多件,吸引约4万名观众到场不仅唤醒人们对手工艺品的记忆、对长江文明的认识不仅唤醒人们对手工艺品的记忆...</div>
</div>
</a>
</li>
<li>
<a href="###" class="assoc-box ">
<img src="__TMPL__Public/assets/images/index/shetuan3.jpg"/>
<div class="assoc-popover">
<div class="assoc-title">北京大学非遗社团</div>
<div class="assoc-desc">期间展出产品1200多件,吸引约4万名观众到场不仅唤醒人们对手工艺品的记忆、对长江文明的认识不仅唤醒人们对手工艺品的记忆...</div>
</div>
</a>
</li>
<volist name="chanceArticleList" id="vo">
<li>
<a href="{:U('Portal/ChanceArticle/corporate/sort/2')}" class="assoc-box scale">
<img src="{:sp_get_image_preview_url($vo['thumb'])}"/>
<div class="assoc-popover">
<div class="assoc-title">{$vo.name}</div>
<div class="assoc-desc">{$vo.description}</div>
</div>
</a>
</li>
</volist>
</ul>
</div>
</div>
... ... @@ -191,12 +186,12 @@
<div class="main">
<div class="media-box">
<div class="media-pic">
<a href="" class="scale"><img src="__TMPL__Public/assets/images/index/pic.jpg"/></a>
<a href="{:U('Portal/LocalRemains/detail',array('id'=>$localRemainsTop['id']))}" class="scale"><img src="{:sp_get_image_preview_url($localRemainsTop['thumb'])}"/></a>
</div>
<div class="media-text">
<div class="media-title"><a href="">长江流域非遗文化保护联盟成立,为非遗保护保驾护航</a></div>
<div class="meida-desc">期间展出产品1200多件,吸引约4万名观众到场。不仅唤醒人们对手工艺品的记忆、对长江文明的认识,还成立了长江流域主要城市非物质文化遗产保护战略联盟,从根本上探索构建长江流域城市群非物质文化遗产保护合作交流机制。</div>
<a href="##" class="media-more">详情</a>
<div class="media-title"><a href="{:U('Portal/LocalRemains/detail',array('id'=>$localRemainsTop['id']))}">{$localRemainsTop.name}</a></div>
<div class="meida-desc">{$localRemainsTop.description}</div>
<a href="{:U('Portal/LocalRemains/detail',array('id'=>$localRemainsTop['id']))}" class="media-more">详情</a>
</div>
</div>
<ul class="media-list">
... ... @@ -208,7 +203,7 @@
</div>
<div class="media-list-intro">
<div class="list-title"><a href="{:U('Portal/LocalRemains/index')}">{$vo.name}</a></div>
<div class="list-desc">中国武汉国际杂技艺术节是我国重要的对外文化交流项目之一。</div>
<div class="list-desc">{$vo.description|mb_substr=0,35,'utf-8'}</div>
</div>
</li>
</volist>
... ... @@ -250,19 +245,11 @@
<div class="project-main">
<div class="bd">
<volist name="projectList" id="vo">
<a href="#" class="project-box">
<a href="{:U('Portal/Project/detail',array('id'=>$vo['id']))}" class="project-box">
<div class="project-intro">
<div class="ject-tit">{$vo.name}</div>
<div class="ject-desc">
<div class="ject-content">
昆曲是明朝中叶至清代中叶戏曲中的声腔剧种,很多剧种都是在昆剧基础上
发展起来的,被称为“百戏之祖,百戏之师有 “中国戏曲之母”的雅称。即时
无锡昆曲社对昆曲起到了繁荣推广的作用昆剧是中国戏曲史上具有最完整表演体系
的剧种,它的基础深厚,遗产丰富是中国传统文化艺术高度发展的成果
在中国文学史、戏曲史、音乐史、舞蹈史上占有重要的地位。昆曲的表演,也有它独特
的体系、风格,它最大的特点是抒情性强动作细腻,歌唱与舞蹈的身段结合得巧妙
而和谐。在语言上,该剧种原先分南曲和北曲:南昆以苏州白话为主,北昆以大都韵白和京白为主
</div>
<div class="ject-content">{$vo.description}</div>
</div>
</div>
<div class="ject-pic"><img src="{:sp_get_image_preview_url($vo['thumb'])}"/></div>
... ... @@ -291,24 +278,25 @@
<div class="main">
<div class="media-box">
<div class="media-pic">
<a href="" class="scale"><img src="__TMPL__Public/assets/images/index/pic.jpg"/></a>
<php>$smeta = json_decode($academeTop['smeta'],true);</php>
<a href="{:U('Portal/Academe/detail',array('id'=>$academeTop['id']))}" class="scale"><img src="{:sp_get_image_preview_url($smeta['thumb'])}"/></a>
</div>
<div class="media-text">
<div class="media-title"><a href="">长江流域非遗文化保护联盟成立,为非遗保护保驾护航</a></div>
<div class="meida-desc">期间展出产品1200多件,吸引约4万名观众到场。不仅唤醒人们对手工艺品的记忆、对长江文明的认识,还成立了长江流域主要城市非物质文化遗产保护战略联盟,从根本上探索构建长江流域城市群非物质文化遗产保护合作交流机制。</div>
<a href="##" class="media-more">详情</a>
<div class="media-title"><a href="{:U('Portal/Academe/detail',array('id'=>$academeTop['id']))}">{$academeTop.post_title}</a></div>
<div class="meida-desc">{$academeTop.post_excerpt}</div>
<a href="{:U('Portal/Academe/detail',array('id'=>$academeTop['id']))}" class="media-more">详情</a>
</div>
</div>
<ul class="media-list">
<volist name="academeList" id="vo">
<li>
<div class="media-time">
<div class="day">{:date('d',$vo['ctime'])}</div>
<div class="year-month">{:date('Y.m',$vo['ctime'])}</div>
<div class="day">{:date('d',strtotime($vo['post_date']))}</div>
<div class="year-month">{:date('Y.m',strtotime($vo['post_date']))}</div>
</div>
<div class="media-list-intro">
<div class="list-title"><a href="{:U('Portal/Academe/detail',array('id'=>$vo['id']))}">{$vo.post_title}</a></div>
<div class="list-desc">中国武汉国际杂技艺术节是我国重要的对外文化交流项目之一。</div>
<div class="list-desc">{$vo.post_excerpt|mb_substr=0,35,'utf-8'}</div>
</div>
</li>
</volist>
... ...
... ... @@ -66,7 +66,7 @@ img{
color: #a38f5b;
line-height: 20px;
margin-right: 10px;
}
.zh-filter-item{
overflow: hidden;
... ... @@ -605,12 +605,12 @@ img{
text-align: center;
border-left: 1px solid #CCCCCC;
border-right: 1px solid #CCCCCC;
}
}
.total-number .btn-less,
.total-number .btn-plus{
width: 32px;
cursor: pointer;
}
}
.total-number .btn-less{
background: url(../images/less.png) no-repeat center;
}
... ... @@ -741,7 +741,7 @@ img{
}
.sku-aside-box{
border: 1px solid #e4e4e4;
}
}
.sku-aside-box .hd{
background: #f7f7f7;
height: 44px;
... ... @@ -818,7 +818,7 @@ img{
color: #c8b073;
}
.comments-list{
padding:0 35px;
padding:0 35px;
}
.comments-list li{
padding: 25px 0;
... ... @@ -994,7 +994,7 @@ img{
width: 75px;height: 75px;float: left;overflow: hidden;border: 1px solid #fff;cursor: pointer;margin-bottom: 11px;
}
.spec-items li.on{border:1px solid #c8b073;}
.spec-items li img{width: 100%;width: 75px;height: 75px; }
.spec-items li img{width: 100%;width: 75px;height: 75px; }
.MagnifierMain:after{
content: ' ';
... ...
<!--footer-->
<div class="footer">
<div class="footer-main w1200 clearfix">
<div class="end-logo"><img src="__TMPL__Public/assets/images/flogo.jpg"/></div>
<div class="end-logo"><img src="__TMPL__Public/assets/images/logo.png" width="74"/></div>
<div class="foot-info">
<div class="tel">{$configure.phone}</div>
<div class="wxhao wx-menu">微信公众号<img src="{:sp_get_image_preview_url($configure['wechat'])}" alt="" /></div>
... ...
... ... @@ -29,8 +29,8 @@
</div>
</div>
<div class="header-main clearfix">
<div class="logo"><img src="__TMPL__Public/assets/images/logo.jpg"/></div>
<div class="h-search">
<div class="logo"><img src="__TMPL__Public/assets/images/logo.png" width="100"/></div>
<div class="h-search" style="margin-top: 30px;margin-left: 60px;">
<div class="h-search-box">
<input type="text" name="keyword" class="h-input" placeholder="非遗文创"/>
<input type="button" class="h-button" autocomplete="off" value="" />
... ... @@ -41,7 +41,7 @@
</volist>
</div>
</div>
<div class="h-cart">
<div class="h-cart" style="margin-top: 30px;">
<a href="{:U('User/Cart/index')}" class="h-cart-box">我的购物车 <span class="badge"></span></a>
</div>
</div>
... ...
... ... @@ -87,6 +87,7 @@
<script src="__TMPL__Public/assets/js/mm.js"></script>
<script src="__TMPL__Public/assets/js/Validform_v5.3.2_min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/ajaxfileupload.js"></script>
<tc_include file="Public:footer"/>
<!--头像上传-->
<script type="text/javascript">
// 图片上传
... ...
... ... @@ -8,6 +8,20 @@
<link href="__TMPL__Public/assets/css/common.css" rel="stylesheet" type="text/css" />
<link href="__TMPL__Public/assets/css/member.css" rel="stylesheet" type="text/css" />
<link href="__TMPL__Public/assets/css/modal.css" rel="stylesheet" type="text/css" />
<style>
.t-table tbody tr td:nth-child(1){
width: 168px;
}
.t-table tbody tr td:nth-child(2){
width: 166px;
}
.t-table tbody tr td:nth-child(3){
width: 92px;
}
.t-table tbody tr td:nth-child(4){
width: 138px;
}
</style>
</head>
<body>
<tc_include file="Public:header"/>
... ...
... ... @@ -7,6 +7,23 @@
<link href="__TMPL__Public/assets/css/reset.css" rel="stylesheet" type="text/css" />
<link href="__TMPL__Public/assets/css/common.css" rel="stylesheet" type="text/css" />
<link href="__TMPL__Public/assets/css/member.css" rel="stylesheet" type="text/css" />
<style>
.t-table tbody tr td:nth-child(1){
width: 168px;
}
.t-table tbody tr td:nth-child(2){
width: 166px;
}
.t-table tbody tr td:nth-child(3){
width: 92px;
}
.t-table tbody tr td:nth-child(4){
width: 138px;
}
.t-table tbody tr td:nth-child(5){
width: 106px;
}
</style>
</head>
<body>
<tc_include file="Public:header"/>
... ...
... ... @@ -7,6 +7,23 @@
<link href="__TMPL__Public/assets/css/reset.css" rel="stylesheet" type="text/css" />
<link href="__TMPL__Public/assets/css/common.css" rel="stylesheet" type="text/css" />
<link href="__TMPL__Public/assets/css/member.css" rel="stylesheet" type="text/css" />
<style>
.t-table tbody tr td:nth-child(1){
width: 168px;
}
.t-table tbody tr td:nth-child(2){
width: 166px;
}
.t-table tbody tr td:nth-child(3){
width: 92px;
}
.t-table tbody tr td:nth-child(4){
width: 138px;
}
.t-table tbody tr td:nth-child(5){
width: 106px;
}
</style>
</head>
<body>
<tc_include file="Public:header"/>
... ...
... ... @@ -45,10 +45,10 @@
<img src="http://feiyi.test.bronet.cn/themes/simplebootx_mobile/Public/assets/img/index_icon10.png" class="logo" />
<p class="author">作者:{$author}</p>
<p class="data">创作时间:{$createtime}</p>
<div class="main_list_res_right">
<i class="iconfont icon-dianzan" onclick="getZan($(this))"></i>
<span class="zan_num">25</span>
</div>
<!--<div class="main_list_res_right">-->
<!--<i class="iconfont icon-dianzan" onclick="getZan($(this))"></i>-->
<!--<span class="zan_num">25</span>-->
<!--</div>-->
</div>
</div>
</div>
... ...
... ... @@ -33,10 +33,10 @@
创作时间:{$vo.createtime}
</p>
</div>
<div class="main_list_res_right">
<i class="iconfont icon-dianzan" onclick="getZan($(this))"></i>
<span class="zan_num">25</span>
</div>
<!--<div class="main_list_res_right">-->
<!--<i class="iconfont icon-dianzan" onclick="getZan($(this))"></i>-->
<!--<span class="zan_num">25</span>-->
<!--</div>-->
</div>
</div>
</volist>
... ...
... ... @@ -25,8 +25,8 @@
<p class="main_card_res_title">{$name}</p>
<p class="main_card_res_mintitle">发布时间:{:date('Y.m.d',$ctime)}</p>
</div>
<div class="vertical_line"></div>
<i class="iconfont icon-share"></i>
<!--<div class="vertical_line"></div>-->
<!--<i class="iconfont icon-share"></i>-->
</div>
</div>
<div class="main_res">{$content}</div>
... ...
... ... @@ -44,6 +44,20 @@
.plstart img:first-child {
margin: 0;
}
.cart_num {
position: absolute;
width: 0.3rem;
height: 0.3rem;
border-radius:50%;
background-color: red;
text-align: center;
line-height: 0.3rem;
font-size: 0.25rem;
top: 0;
right: 0.1rem;
display: none;
color: white
}
</style>
</head>
<body>
... ... @@ -126,7 +140,8 @@
<!--<i class="iconfont icon-collect1"></i>-->
<span class="footer_title"><eq name='is_favorite' value='1'>已收藏<else/>收藏</eq></span>
</div>
<div class="sc toCart">
<div class="sc toCart" style="position: relative;">
<span class="cart_num" style="<notempty name='cart_count'>display:block;</notempty>" >{$cart_count}</span>
<i class="iconfont icon-gouwuche_normal"> </i>
<span class="footer_title">购物车</span>
</div>
... ...
... ... @@ -9,11 +9,19 @@
<tc_include file="Public:common" />
<link rel="stylesheet" type="text/css" href="__TMPL__Public/assets/css/swiper-3.4.2.min.css" />
<link rel="stylesheet" type="text/css" href="__TMPL__Public/assets/css/myshop.css" />
<link rel="stylesheet" type="text/css" href="__TMPL__Public/assets/css/dropload.css" />
<script src="__TMPL__Public/assets/js/swiper-3.4.2.jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__Public/assets/js/dropload.js" type="text/javascript" charset="utf-8"></script>
<style type="text/css">
body{
position: relative;
width: 100%;
height: 100%;
}
.container {
padding-top: 0.88rem;
}
</style>
</head>
... ... @@ -22,84 +30,92 @@
<input type="text" name="keyword" placeholder="请输入商品名称" id="search_ipt" value="" onclick="search_page()" />
<p class="seach_title">搜索</p>
</div>
<div class="container">
<div class="shoplist_select">
<div class="select_quyu" onclick="qy($(this),region)">
<p class="shoplist_select_title">区域</p>
<i class="iconfont icon-fylb_icon_arrow_norm"></i>
</div>
<div class="select_line">
<div class="shoplist_select">
<div class="select_quyu" onclick="qy($(this),region,redata)">
<p class="shoplist_select_title">区域</p>
<i class="iconfont icon-fylb_icon_arrow_norm"></i>
</div>
<div class="select_line">
</div>
<div class="select_price" onclick="qy($(this),price)">
<p class="shoplist_select_title">价格</p>
<i class="iconfont icon-fylb_icon_arrow_norm"></i>
</div>
<div class="select_line">
</div>
<div class="select_price" onclick="qy($(this),price,prdata)">
<p class="shoplist_select_title">价格</p>
<i class="iconfont icon-fylb_icon_arrow_norm"></i>
</div>
<div class="select_line">
</div>
<div class="select_pai" onclick="qy($(this),brand)">
<p class="shoplist_select_title">品牌</p>
<i class="iconfont icon-fylb_icon_arrow_norm"></i>
</div>
</div>
<div class="list_content">
<volist name="list" id="vo">
<div class="list_view">
<a href="{:U('detail',array('id'=>$vo['id']))}">
<img src="{:sp_get_asset_upload_path($vo['thumb'])}" class="list_logo" />
</a>
<div class="list_res">
<p class="res_title">{$vo.goods_name}</p>
<p class="res_mintitle">{$vo.short_name}</p>
<p class="res_price">¥ {$vo.goods_price}
<s>¥ {$vo.price}</s>
</p>
<div class="select_pai" onclick="qy($(this),brand,brdata)">
<p class="shoplist_select_title">品牌</p>
<i class="iconfont icon-fylb_icon_arrow_norm"></i>
</div>
</div>
<div class="container">
<div id="wrapper">
<div class="list_content">
<volist name="list" id="vo">
<div class="list_view">
<a href="{:U('detail',array('id'=>$vo['id']))}">
<img src="{:sp_get_asset_upload_path($vo['thumb'])}" class="list_logo" />
</a>
<div class="list_res">
<p class="res_title">{$vo.goods_name}</p>
<p class="res_mintitle">{$vo.short_name}</p>
<p class="res_price">¥ {$vo.goods_price}
<s>¥ {$vo.price}</s>
</p>
</div>
</div>
</div>
</volist>
</volist>
</div>
</div>
</div>
</body>
<script src="__TMPL__Public/assets/js/weui.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__Public/assets/js/myweui.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
window.onload = function () {
var mySwiper = new Swiper('.swiper-container', {
// 如果需要分页器
pagination: '.swiper-pagination',
// 如果需要前进后退按钮
// nextButton: '.swiper-button-next',
// prevButton: '.swiper-button-prev',
// 如果需要滚动条
// scrollbar: '.swiper-scrollbar',
})
}
// window.onload = function () {
// var mySwiper = new Swiper('.swiper-container', {
//
// // 如果需要分页器
// pagination: '.swiper-pagination',
//
// // 如果需要前进后退按钮
// // nextButton: '.swiper-button-next',
// // prevButton: '.swiper-button-prev',
//
// // 如果需要滚动条
// // scrollbar: '.swiper-scrollbar',
// })
// }
var page=0;
var region = change(`"{$region_mobile}"`);
console.log(region)
var price = change(`"{$price_search}"`);
console.log(price)
var brand = change(`"{$brandList}"`);
console.log(brand)
var redata="",prdata="",brdata=''
function change(arr) {
qyarr = arr.substring(1, arr.length - 1);
var st=JSON.parse(qyarr)
st.unshift({
label: '全部',
value: ''
});
return st
}
function change(arr) {
qyarr = arr.substring(1, arr.length - 1);
return JSON.parse(qyarr).unshit({
label: '全部',
value: ''
});
}
function qy(that, qarr) {
function qy(that, qarr,datatype) {
weui.picker(qarr, {
className: 'custom-classname',
container: 'body',
defaultValue: [3],
defaultValue: [0],
onConfirm: function (result) {
that.find(".shoplist_select_title").html(result[0].label)
console.log(result[0].value)
datatype=result[0].value
ajax()
},
id: 'singleLinePicker'
});
... ... @@ -108,6 +124,46 @@
function search_page() {
location.href = "{$search_page}";
}
</script>
var id = "{$id}";
var cid = "{$cid}";
ajax()
function ajax() {
var result = '';
$.ajax({
type: 'POST',
url: "http://ccimc.com/index.php/Portal/Goods/goods_list_mobile",
data: {
id:id,
cid:cid ,
region:redata,
price:prdata,
brand:brdata
},
dataType: 'json',
success: function(data) {
var arrLen = data.data;
if(arrLen.length > 0) {
for(var i = 0; i < arrLen.length; i++) {
result += "<div class='list_view'><a href='1111'><img src="+arrLen[i].thumb+" class='list_logo'/></a><div class='list_res'><p class='res_title'>"+arrLen[i].name+"</p><p class='res_mintitle'>"+arrLen[i].goods_name+"</p><p class='res_price'>¥"+arrLen[i].goods_price+"<s>¥"+arrLen[i].price+"</s></p></div></div>"
}
$('.list_content').html(result);
// 如果没有数据
} else {
// 无数据
}
},
error: function(xhr, type) {
}
});
}
/**
* 加载更多
* @type {iScroll}
*/
</script>
</html>
\ No newline at end of file
... ...
... ... @@ -12,7 +12,8 @@
dateType:"json",
success:function (data) {
if(data.status) {
// $('.badge').text(data.count);
$('.cart_num').show();
$('.cart_num').text(data.count);
alert(data.msg);
} else {
alert(data.msg);
... ...
... ... @@ -19,7 +19,7 @@
<body>
<div class="search_group">
<input type="text" name="keyword" id="search_ipt" value="" />
<input type="text" name="keyword" placeholder="请输入商品名称" onclick="search_page()" id="search_ipt" value="" />
<p class="seach_title">搜索</p>
</div>
<div class="container">
... ... @@ -55,5 +55,8 @@
// scrollbar: '.swiper-scrollbar',
})
}
function search_page() {
location.href = "{$search_url}";
}
</script>
</html>
\ No newline at end of file
... ...
... ... @@ -22,10 +22,14 @@
<div class="main_list">
<volist name="posts" id="vo">
<div class="main_list_personl">
<img src="http://feiyi.test.bronet.cn/themes/simplebootx_mobile/Public/assets/img/index_pic.jpg" class="personl_logo">
<empty name="vo.avatar">
<img src="__TMPL__Public/assets/images/demo/avatar.jpg" alt="" class="personl_logo" />
<else/>
<img src="{$vo.avatar}" alt="" class="personl_logo" />
</empty>
<div class="personl_res">
<p class="personl_res_title">陈云心发表了文章</p>
<p class="personl_res_mintitle">6天前</p>
<p class="personl_res_title">{$vo.author}发表了文章</p>
<p class="personl_res_mintitle">{$vo.ctime}</p>
</div>
<div class="main_list_res_right" data-id="{$vo.id}">
<i class="iconfont icon-dianzan"></i>
... ... @@ -60,20 +64,11 @@
</div>
</div>
</body>
<script src="__TMPL__Public/assets/js/public.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
window.onload = function () {
mysear_group.mysearch("#search_value", ".icon-search");
}
// $(document).keydown(function (event) {
// if (event.keyCode == 13) {
// alert('回车键');
// }
// });
// 点赞处理
$('.icon-dianzan').click(function(){
var obj = $(this).parent();
var id = $(this).parent().data('id');
$('.main_list_res_right').click(function(){
var obj = $(this);
var id = $(this).data('id');
var data = {
id:id
};
... ... @@ -81,7 +76,7 @@
url:"{:U('Portal/Story/like')}",
type:"POST",
data:data,
dateType:"json",
dateType:"application/x-www-form-urlencoded",
success:function (data) {
console.log(data);
if(data.status) {
... ... @@ -90,6 +85,9 @@
alert(data.msg);
}
},
error: function (data, status, e) { //提交失败自动执行的处理函数
console.log(e);
}
});
});
</script>
... ...
... ... @@ -10,7 +10,7 @@
</head>
<body>
<div class="container">
<div class="head">
<div class="head will">
<p class="head_title">申请双创项目</p>
<i class="iconfont icon-arrows"></i>
</div>
... ... @@ -44,18 +44,38 @@
<p class="weui-toast__content">已完成</p>
</div>
</div>
<div id="dialogs">
<div class="js_dialog" id="iosDialog" style="display: none;">
<div class="weui-mask"></div>
<div class="weui-dialog">
<div class="weui-dialog__hd">
<strong class="weui-dialog__title">弹窗标题</strong>
</div>
<div class="weui-dialog__bd">弹窗内容,告知当前状态、信息和解决方法,描述文字尽量控制在三行内</div>
<div class="weui-dialog__ft">
<a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary">确定</a>
</div>
</div>
</div>
</div>
</body>
<script src="__TMPL__Public/assets/js/public.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__Public/assets/js/myweui.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
window.onload = function () {
mysear_group.mysearch("#search_value", ".icon-search");
mysear_group.Search
function dialog_wrap(bt,content) {
$('#dialogs').fadeIn();
$('.weui-dialog__title').html(bt);
$('.weui-dialog__bd').html(content)
}
$(document).keydown(function (event) {
if (event.keyCode == 13) {
alert('回车键');
}
$('.will').on('click', function(){
$('#iosDialog').fadeIn(200);
dialog_wrap('温馨提示','此栏目内容请登录pc端操作')
});
// $(function(){
$('.will').click(
$('#iosDialog').hide(),
dialog_wrap('温馨提示','此栏目内容请登录pc端操作')
)
// });
</script>
</html>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html lang="en">
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>Title</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>国族非遗网</title>
<link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_575637_nd4obl18ovq5b3xr.css" />
<link rel="stylesheet" type="text/css" href="__TMPL__Public/assets/css/init.css" />
<script src="__TMPL__Public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__Public/assets/js/jquery-3.2.1.min.js" type="text/javascript" charset="utf-8"></script>
<style>
.content {
position: relative;
width: 100%;
height: 100%;
background-image: url('__TMPL__Public/assets/images/background.jpg');
background-position: top;
background-size: 100%;
}
.logo {
width: 1.54rem;
height: 1.48rem;
display: block;
margin: 0 auto;
margin-top: 1.95rem;
}
.cont {
width: 100%;
height: auto;
overflow: hidden;
margin-top: 1.64rem;
}
.cont p {
color: RGBA(102, 102, 102, 1);
font-size: 0.28rem;
text-align: center;
}
.erew {
width: 3.5rem;
height: 3.5rem;
display: block;
margin: 0 auto;
margin-top: .66rem;
}
</style>
</head>
<body>
<body>
<div class="content">
<img src="__TMPL__Public/assets/images/logo.png" alt="" class="logo">
<div class="cont">
<p>尊敬的用户,手机端登录</p>
<p>请用微信扫描下方二维码通过公众号进入系统</p>
</div>
<img src="{:sp_get_image_preview_url($configure['wechat'])}" alt="" class="erew">
</div>
</body>
<script type="text/javascript">
</script>
</html>
\ No newline at end of file
... ...
... ... @@ -96,7 +96,6 @@
width: 0.64rem;
height: 0.64rem;
border-radius: 50%;
background-color: yellow;
display: block;
}
... ...
... ... @@ -219,6 +219,7 @@
}
.type_cel {
margin-left: 0.2rem;
height: 0.64rem;
font-size: 0.26rem;
text-align: center;
... ...
... ... @@ -195,6 +195,11 @@
alert('支付成功');
location.href = "{:U('User/Center/index/')}";
},
cancel: function () {
// 用户取消拉出地址
alert('取消支付');
location.href = "{:U('User/Center/index/')}";
},
error: function (data, status, e) { //提交失败自动执行的处理函数
alert(e);
}
... ...
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
... ... @@ -10,33 +9,62 @@
<link rel="stylesheet" type="text/css" href="__TMPL__Public/assets/css/swiper-3.4.2.min.css" />
<link rel="stylesheet" type="text/css" href="__TMPL__Public/assets/css/cart.css" />
<script src="__TMPL__Public/assets/js/swiper-3.4.2.jquery.min.js" type="text/javascript" charset="utf-8"></script>
<style>
.noneshop {
width: 3rem;
height: auto;
background-color: red;
display: block;
margin: 0 auto;
margin-top: 2rem;
}
.goshop {
width: 1.6rem;
height: 0.6rem;
background-color: RGBA(200, 176, 115, 1);
margin: 0 auto;
margin-top: 0.3rem;
border-radius: 0.05rem;
text-align: center;
line-height: 0.6rem;
font-size: 0.24rem;
color: azure
}
</style>
</head>
<body>
<div class="container">
<volist name="cartList" id="vo">
<div class="cart_list">
<div class="cart_list_select" data-id="{$vo.goods_id}"></div>
<a href="{:U('Portal/Goods/detail',array('id'=>$vo['goods_id']))}"><img src="{:sp_get_image_preview_url($vo['thumb'])}" class="cart_list_logo" /></a>
<div class="cart_list_res">
<p class="cart_list_title">{$vo.goods_name}</p>
<p class="cart_list_mintitle">{$vo.short_name}
</p>
<div class="cart_list_group">
<span class="price">{$vo.goods_price}</span>
<div class="numberGroup" data-Stock="{$vo.gnum}" data-id="{$vo.goods_id}">
<div class="jian" onclick="Cal($(this),'reduce')">
<i class="iconfont icon-jian"></i>
</div>
<div class="num">{$vo.num}</div>
<div class="jia" onclick="Cal($(this),'plus')">
<i class="iconfont icon-jia"></i>
<empty name="cartList">
<img src="__TMPL__Public/assets/img/empty.png" alt="" class="noneshop">
<div class="goshop">
去购物
</div>
<else/>
<volist name="cartList" id="vo">
<div class="cart_list">
<div class="cart_list_select" data-id="{$vo.goods_id}"></div>
<a href="{:U('Portal/Goods/detail',array('id'=>$vo['goods_id']))}"><img src="{:sp_get_image_preview_url($vo['thumb'])}" class="cart_list_logo" /></a>
<div class="cart_list_res">
<p class="cart_list_title">{$vo.goods_name}</p>
<p class="cart_list_mintitle">{$vo.short_name}</p>
<div class="cart_list_group">
<span class="price">{$vo.goods_price}</span>
<div class="numberGroup" data-Stock="{$vo.gnum}" data-id="{$vo.goods_id}">
<div class="jian" onclick="Cal($(this),'reduce')">
<i class="iconfont icon-jian"></i>
</div>
<div class="num">{$vo.num}</div>
<div class="jia" onclick="Cal($(this),'plus')">
<i class="iconfont icon-jia"></i>
</div>
</div>
<div class="del" data-id="{$vo.goods_id}">删除</div>
</div>
<div class="del" data-id="{$vo.goods_id}">删除</div>
</div>
</div>
</div>
</volist>
</volist>
</empty>
<div class="kong"></div>
<notempty name="cartList">
<div class="heji">
... ... @@ -91,6 +119,9 @@
function index() {
window.location = "{:U('Portal/Goods/index')}"
}
$('.goshop').click(function () {
window.location.href = "{:U('Portal/Goods/index')}";
})
//购物车逻辑
var CalArr = [];
$(".cart_list_select").click(function() {
... ...
... ... @@ -8,7 +8,6 @@
<tc_include file="Public:common"/>
<link rel="stylesheet" type="text/css" href="__TMPL__Public/assets/css/swiper-3.4.2.min.css" />
<link rel="stylesheet" type="text/css" href="__TMPL__Public/assets/css/orderlist.css" />
<script src="__TMPL__Public/assets/js/swiper-3.4.2.jquery.min.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div class="head_select" data-id='1'>
... ... @@ -186,7 +185,7 @@
});
// 取消订单
$('.list_hodelPay').on('click','cancel',function(){
$('.list_hodelPay').on('click','.cancel',function(){
var id = $(this).parents('.list_hodelPay').data('id');
var data = {
id:id
... ...
... ... @@ -32,9 +32,10 @@
</a>
<div class="select_line"></div>
<a href="{:U('User/Message/index')}">
<div class="select_list">
<div class="select_list" style="display: flex;justify-content: center;align-items: center;">
站内信
<span class="list_res">{$count.message}</span>
<span class="bzst" style="display:block;width: 0.3rem;height: 0.3rem;line-height: 0.3rem;text-align: center;background-color: red;color:white;margin-left:0.16rem;border-radius: 50%;font-size: 0.2rem">{$count.message}1</span>
<!--<span class="list_res">{$count.message}</span>-->
</div>
</a>
</div>
... ... @@ -172,12 +173,12 @@
}
$('.will').on('click', function(){
$('#iosDialog').fadeIn(200);
dialog_wrap('温馨提示','此栏目内容请登录pc端查看')
dialog_wrap('温馨提示','此栏目内容请登录pc端操作')
});
// $(function(){
$('.will').click(
$('#iosDialog').hide(),
dialog_wrap('温馨提示','此栏目内容请登录pc端查看')
dialog_wrap('温馨提示','此栏目内容请登录pc端操作')
)
// });
</script>
... ...
... ... @@ -44,7 +44,7 @@
<p class="res_title">{$vo.goods_name}</p>
<p class="res_mintitle">{$vo.short_name}</p>
<p class="res_price">¥ {$vo.goods_price} <s>¥ {$vo.price}</s></p>
<img class="shopcar"></img>
<img src="__TMPL__Public/assets/img/cart.png" class="shopcar"/>
</div>
</div>
</a>
... ...