You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
149
hyhproject/home2/view/default/users/informs/inform_detail.html
Executable file
149
hyhproject/home2/view/default/users/informs/inform_detail.html
Executable file
@ -0,0 +1,149 @@
|
||||
{extend name="default/users/base" /}
|
||||
{block name="title"}举报详情 - 买家中心{__block__}{/block}
|
||||
{block name="css"}
|
||||
<link href="__STATIC__/plugins/validator/jquery.validator.css?v={$v}" rel="stylesheet">
|
||||
<link rel="stylesheet" type="text/css" href="__STATIC__/plugins/webuploader/webuploader.css?v={$v}" />
|
||||
{/block}
|
||||
{block name="content"}
|
||||
<div class='wst-inform-content'>
|
||||
<form id="informForm" method="post" >
|
||||
<div class="wst-inform-head"><span>举报详情</span></div>
|
||||
<div class='order-box wst-inform-box'>
|
||||
|
||||
<div class='log-box inform-log-box' style="height: auto;" >
|
||||
<div class="state">
|
||||
<div class="icon" style="margin-left: 20px;">
|
||||
<span class="icons icon13 "></span>
|
||||
</div>
|
||||
<div class="arrow arrow2">··················></div>
|
||||
<div class="icon" >
|
||||
<span class="icons icon13 "></span>
|
||||
</div>
|
||||
<div class="arrow arrow2">·················></div>
|
||||
<div class="icon" >
|
||||
|
||||
{if condition="$data['informStatus'] eq 0"}
|
||||
<span class="icons icon12 "></span>
|
||||
{else}
|
||||
<span class="icons icon13 "></span>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="state3" >
|
||||
<p>提交举报表单</p><p>等待管理员处理</p><p>完成举报</p>
|
||||
</div>
|
||||
|
||||
<div class="wst-clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wst-inform-box">
|
||||
<div class="title">被举报商家 :</div><a target='_blank' href="{:url('home/shops/home',array('shopId'=>$data['shopId']))}">{$data['shopName']}</a>
|
||||
<div class="wst-clear"></div>
|
||||
</div>
|
||||
<!-- 订单信息 -->
|
||||
<div class='wst-inform-box'>
|
||||
<div class="title">
|
||||
<span>相关商品 :</span>
|
||||
</div>
|
||||
<div class="goods-img">
|
||||
<a href="{:Url('home/goods/detail','id='.$data['goodsId'])}" target='_blank'>
|
||||
<div class="wst-img"><img src="__IMGURL__/{:WSTImg($data['goodsImg'])}"></img></div>
|
||||
</a>
|
||||
<div class="wst-text">
|
||||
<a href='{:Url("home/goods/detail","id=".$data["goodsId"])}' target='_blank'>{$data['goodsName']}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wst-clear"></div>
|
||||
</div>
|
||||
<div class='wst-inform-box'>
|
||||
<div class="title">举报类型:</div>
|
||||
<div class="goods-img">
|
||||
{php}$reason = WSTDatas('INFORMS_TYPE',$data['informType']);{/php}
|
||||
{$reason['dataName']}
|
||||
</div>
|
||||
<div class="wst-clear"></div>
|
||||
</div>
|
||||
<div class='wst-inform-box'>
|
||||
<div class="title">举报内容:</div>
|
||||
<div class="goods-img">
|
||||
{$data['informContent']}
|
||||
</div>
|
||||
<div class="wst-clear"></div>
|
||||
</div>
|
||||
<div id="photos-inform" class='wst-inform-box' style="border-bottom: 1px solid transparent;">
|
||||
<div class="title">附件:</div>
|
||||
{volist name="$data['informAnnex']" id="annex"}
|
||||
<a href="javascript:void(0)">
|
||||
<img layer-src="__IMGURL__/{$annex}" width="100" height="100" src="__IMGURL__/{$annex}" />
|
||||
</a>
|
||||
{/volist}
|
||||
</div>
|
||||
<div class='wst-inform-box'>
|
||||
<div class="title">举报时间:</div>
|
||||
<div class="goods-img">
|
||||
{$data['informTime']}
|
||||
</div>
|
||||
<div class="wst-clear"></div>
|
||||
</div>
|
||||
<div class='wst-inform-box'>
|
||||
<div class="title">举报结果:</div>
|
||||
<div class="goods-img">
|
||||
{if condition="$data['informStatus'] eq 0"}
|
||||
等待处理
|
||||
{elseif condition="$data['informStatus'] eq 1"/}
|
||||
无效举报
|
||||
{elseif condition="$data['informStatus'] eq 2 "/}
|
||||
有效举报
|
||||
{elseif condition="$data['informStatus'] eq 3 "/}
|
||||
恶意举报
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{if condition="$data['informStatus'] eq 1 OR $data['informStatus'] eq 2 OR $data['informStatus'] eq 3"}
|
||||
<div class="title">处理信息:</div>
|
||||
<div class="goods-img">
|
||||
{$data['respondContent']}
|
||||
</div>
|
||||
<div class="title">处理时间:</div>
|
||||
<div class="goods-img">
|
||||
{$data['finalHandleTime']}
|
||||
</div>
|
||||
{/if}
|
||||
<div class="wst-clear"></div>
|
||||
</div>
|
||||
<div class='wst-complain-footer'>
|
||||
<button onclick="javascript:history.go(-1)" class="wst-sec-but u-btn">返回</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="wst-remind">
|
||||
<div class="wst-inform-head" ><span>违规举报须知</span></div>
|
||||
<div class="content">
|
||||
<div class="alert">
|
||||
<ul>
|
||||
<li> 1.请提供充分的证据以确保举报成功,请珍惜您的会员权利,帮助商城更好地管理网站;</li>
|
||||
<li> 2.被举报待处理的商品不能反复进行违规提交,处理下架后的商品不能再次举报,商家如重新上架后仍存在违规现象,可再次对该商品进行违规举报;</li>
|
||||
<li> 3.举报仅针对商品或商家本身,如需处理交易中产生的纠纷,请选择投诉;</li>
|
||||
<li> 4.举报时依次选择举报类型及举报主题(必填),填写违规描述(必填,不超过200字),上传5张以内的举证图片(选填),详细的举报内容有助于平台对该条举报的准确处理。</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{block name="js"}
|
||||
<script type='text/javascript' src='__STYLE__/users/informs/informs.js?v={$v}'></script>
|
||||
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.min.js?v={$v}"></script>
|
||||
<script type='text/javascript' src='__STATIC__/plugins/webuploader/webuploader.js?v={$v}'></script>
|
||||
<script>
|
||||
$(function(){
|
||||
userComplainInit();
|
||||
// 调用图像层
|
||||
layer.photos({
|
||||
photos: '#photos-inform'
|
||||
});
|
||||
})
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
|
||||
|
113
hyhproject/home2/view/default/users/informs/informs.html
Executable file
113
hyhproject/home2/view/default/users/informs/informs.html
Executable file
@ -0,0 +1,113 @@
|
||||
{extend name="default/users/base" /}
|
||||
{block name="title"}举报商品 - 买家中心{__block__}{/block}
|
||||
{block name="css"}
|
||||
<link href="__STATIC__/plugins/validator/jquery.validator.css?v={$v}" rel="stylesheet">
|
||||
<link rel="stylesheet" type="text/css" href="__STATIC__/plugins/webuploader/webuploader.css?v={$v}" />
|
||||
{/block}
|
||||
{block name="content"}
|
||||
<div class='wst-inform-content'>
|
||||
<form id="informForm" method="post" >
|
||||
<input type='hidden' id='goodsId' class='ipt' value="{$data['data']['goodsId']}"/>
|
||||
<input type='hidden' id='shopsId' class='ipt' value="{$data['data']['shopId']}"/>
|
||||
<div class="wst-inform-head"><span>举报商品</span></div>
|
||||
<div class='order-box wst-inform-box'>
|
||||
|
||||
<div class='log-box inform-log-box' style="height: auto;" >
|
||||
<div class="state">
|
||||
<div class="icon">
|
||||
<span class="icons icon13 "></span>
|
||||
</div>
|
||||
<div class="arrow arrow2">··················></div>
|
||||
<div class="icon">
|
||||
<span class="icons icon12 "></span>
|
||||
</div>
|
||||
<div class="arrow arrow2">··················></div>
|
||||
<div class="icon">
|
||||
<span class="icons icon12 "></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="state3" >
|
||||
<p>提交举报表单</p><p>等待管理员处理</p><p>完成举报</p>
|
||||
</div>
|
||||
|
||||
<div class="wst-clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wst-inform-box">
|
||||
<div class="title">被举报商家 :</div><a target='_blank' href="{:url('home/shops/home',array('shopId'=>$data['data']['shopId']))}">{$data['data']['shopName']}</a>
|
||||
<div class="wst-clear"></div>
|
||||
</div>
|
||||
<!-- 订单信息 -->
|
||||
<div class='wst-inform-box'>
|
||||
<div class="title">
|
||||
<span>相关商品 :</span>
|
||||
</div>
|
||||
<div class="goods-img">
|
||||
<a href="{:Url('home/goods/detail','id='.$data['data']['goodsId'])}" target='_blank'>
|
||||
<div class="wst-img"><img src="__IMGURL__/{:WSTImg($data['data']['goodsImg'])}"></img></div>
|
||||
</a>
|
||||
<div class="wst-text">
|
||||
<a href='{:Url("home/goods/detail","id=".$data["data"]["goodsId"])}' target='_blank'>{$data['data']['goodsName']}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wst-clear"></div>
|
||||
</div>
|
||||
<div class='wst-inform-box'>
|
||||
<div class="title"><font color='red'>*</font>举报类型:</div>
|
||||
<div class="goods-img">
|
||||
{php}$reason = WSTDatas('INFORMS_TYPE');{/php}
|
||||
{volist name='reason' id='vo'}
|
||||
<label><input type='radio' name='informType' class='ipt' autocomplete="off" value='{$vo['dataVal']}' {if $key==1}checked{/if}>{$vo['dataName']}</label>
|
||||
{/volist}
|
||||
</div>
|
||||
<div class="wst-clear"></div>
|
||||
</div>
|
||||
<div class='wst-inform-box'>
|
||||
<div class="title"><font color='red'>*</font>举报内容:</div>
|
||||
<div class="goods-img">
|
||||
<textarea id='informContent' maxlength="200" onchange="this.value=this.value.substring(0, 200)" onkeydown="this.value=this.value.substring(0, 200)" onkeyup="this.value=this.value.substring(0, 200)" name="informContent" class='ipt' autocomplete="off" style='width:100%;height:155px;' placeholder='请输入举报内容'></textarea>
|
||||
</div>
|
||||
<div class="wst-clear"></div>
|
||||
</div>
|
||||
<div class='wst-inform-box' style="border-bottom: 1px solid transparent;">
|
||||
<div id="filePicker" style='margin-left:0px;width:250px;overflow:hidden;height:25px;'>上传附件(最多5张)</div>
|
||||
</div>
|
||||
<div class='wst-inform-box'>
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
<div id='picBox' style='height:120px;width:612px;padding:5px;'></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class='wst-complain-footer'>
|
||||
<button onclick="javascript:saveInforms()" class="wst-sec-but u-btn">提交</button>
|
||||
<button onclick="javascript:history.go(-1)" class="wst-sec-but u-btn">返回</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="wst-remind">
|
||||
<div class="wst-inform-head" ><span>违规举报须知</span></div>
|
||||
<div class="content">
|
||||
<div class="alert">
|
||||
<ul>
|
||||
<li> 1.请提供充分的证据以确保举报成功,请珍惜您的会员权利,帮助商城更好地管理网站;</li>
|
||||
<li> 2.被举报待处理的商品不能反复进行违规提交,处理下架后的商品不能再次举报,商家如重新上架后仍存在违规现象,可再次对该商品进行违规举报;</li>
|
||||
<li> 3.举报仅针对商品或商家本身,如需处理交易中产生的纠纷,请选择投诉;</li>
|
||||
<li> 4.举报时依次选择举报类型及举报主题(必填),填写违规描述(必填,不超过200字),上传5张以内的举证图片(选填),详细的举报内容有助于平台对该条举报的准确处理。</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{block name="js"}
|
||||
<script type='text/javascript' src='__STYLE__/users/informs/informs.js?v={$v}'></script>
|
||||
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.min.js?v={$v}"></script>
|
||||
<script type='text/javascript' src='__STATIC__/plugins/webuploader/webuploader.js?v={$v}'></script>
|
||||
<script>
|
||||
$(function(){
|
||||
userComplainInit();
|
||||
})
|
||||
</script>
|
||||
{/block}
|
105
hyhproject/home2/view/default/users/informs/informs.js
Executable file
105
hyhproject/home2/view/default/users/informs/informs.js
Executable file
@ -0,0 +1,105 @@
|
||||
//图片文件上传
|
||||
function userComplainInit(){
|
||||
var uploader =WST.upload({
|
||||
pick:'#filePicker',
|
||||
formData: {dir:'informsImg',isThumb:0},
|
||||
fileNumLimit:5,
|
||||
accept: {extensions: 'gif,jpg,jpeg,png',mimeTypes: 'image/jpg,image/jpeg,image/png,image/gif'},
|
||||
callback:function(f,file){
|
||||
var json = WST.toJson(f);
|
||||
if(json.status==1){
|
||||
var tdiv = $("<div style='width:75px;float:lefst;margin-right:5px;'>"+
|
||||
"<img class='inform_pic"+"' width='75' height='75' src='"+WST.conf.IMGURL+"/"+json.savePath+json.thumb+"' v='"+json.savePath+json.name+"'></div>");
|
||||
var btn = $('<div style="position:relative;top:-80px;left:60px;cursor:pointer;" ><img src="'+WST.conf.ROOT+'/hyhproject/home/view/default/img/seller_icon_error.png"></div>');
|
||||
tdiv.append(btn);
|
||||
$('#picBox').append(tdiv);
|
||||
btn.on('click','img',function(){
|
||||
uploader.removeFile(file);
|
||||
$(this).parent().parent().remove();
|
||||
uploader.refresh();
|
||||
});
|
||||
}else{
|
||||
WST.msg(json.msg,{icon:2});
|
||||
}
|
||||
},
|
||||
progress:function(rate){
|
||||
$('#uploadMsg').show().html('已上传'+rate+"%");
|
||||
}
|
||||
});
|
||||
}
|
||||
function saveInforms(historyURL){
|
||||
/* 表单验证 */
|
||||
$('#informForm').validator({
|
||||
fields: {
|
||||
informContent: {
|
||||
rule:"required",
|
||||
msg:{required:"清输入举报内容"},
|
||||
tip:"请输入举报内容",
|
||||
},
|
||||
informType: {
|
||||
rule:"checked;",
|
||||
msg:{checked:"举报类型不能为空"},
|
||||
tip:"请选择举报类型",
|
||||
}
|
||||
|
||||
},
|
||||
valid: function(form){
|
||||
var params = WST.getParams('.ipt');
|
||||
var loading = WST.msg('正在提交数据,请稍后...', {icon: 16,time:60000});
|
||||
var img = [];
|
||||
$('.inform_pic').each(function(){
|
||||
img.push($(this).attr('v'));
|
||||
});
|
||||
params.informAnnex = img.join(',');
|
||||
$.post(WST.U('home/informs/saveInform'),params,function(data,textStatus){
|
||||
layer.close(loading);
|
||||
var json = WST.toJson(data);
|
||||
if(json.status=='1'){
|
||||
WST.msg('您的举报已提交,请留意信息回复', {icon: 6},function(){
|
||||
location.href = WST.U('home/informs/index');
|
||||
});
|
||||
}else{
|
||||
WST.msg(json.msg,{icon:2});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function toView(id){
|
||||
location.href=WST.U('home/Informs/getUserInformDetail',{'id':id});
|
||||
}
|
||||
function informByPage(p){
|
||||
$('#list').html('<img src="'+WST.conf.ROOT+'/hyhproject/home/view/default/img/loading.gif">正在加载数据...');
|
||||
var params = {};
|
||||
params = WST.getParams('.s-query');
|
||||
params.key = $.trim($('#key').val());
|
||||
params.page = p;
|
||||
$.post(WST.U('home/informs/queryUserInformPage'),params,function(data,textStatus){
|
||||
var json = WST.toJson(data);
|
||||
if(json.status==1){
|
||||
var gettpl = document.getElementById('tblist').innerHTML;
|
||||
laytpl(gettpl).render(json.data.Rows, function(html){
|
||||
$('#list').html(html);
|
||||
});
|
||||
if(json.TotalPage>1){
|
||||
laypage({
|
||||
cont: 'pager',
|
||||
pages:json.TotalPage,
|
||||
curr: json.CurrentPage,
|
||||
skin: '#e23e3d',
|
||||
groups: 3,
|
||||
jump: function(e, first){
|
||||
if(!first){
|
||||
complainByPage(e.curr);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}else{
|
||||
$('#pager').empty();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
66
hyhproject/home2/view/default/users/informs/list_inform.html
Executable file
66
hyhproject/home2/view/default/users/informs/list_inform.html
Executable file
@ -0,0 +1,66 @@
|
||||
{extend name="default/users/base" /}
|
||||
{block name="title"}违规举报 - 买家中心{__block__}{/block}
|
||||
{block name="css"}
|
||||
{/block}
|
||||
{block name="content"}
|
||||
<div class="wst-user-head"><span>违规举报</span></div>
|
||||
<div class='wst-user-tbar'>
|
||||
商品名称:<select name="informStatus" id="informStatus" class="s-query">
|
||||
<option value="-1">举报处理状态</option>
|
||||
<option value="0">等待处理</option>
|
||||
<option value="1">无效举报</option>
|
||||
<option value="2">有效举报</option>
|
||||
<option value="3">恶意举报</option>
|
||||
</select>
|
||||
<button class="wst-sec-but u-btn" onclick="informByPage()">查询</button>
|
||||
</div>
|
||||
|
||||
<div class='wst-user-content'>
|
||||
<table class='wst-list'>
|
||||
<thead>
|
||||
<tr class='head' style="align-content: center;">
|
||||
<th>举报编号</th>
|
||||
<th>举报商品</th>
|
||||
<th>涉及店铺</th>
|
||||
<th>举报原因</th>
|
||||
<th>举报时间</th>
|
||||
<th>举报状态</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id='list'></tbody>
|
||||
<tfoot>
|
||||
<tr><td colspan='10' id='pager' align="center" style='padding:5px 0px 5px 0px'></td></tr>
|
||||
</tfoot>
|
||||
<script id="tblist" type="text/html">
|
||||
{{# for(var i = 0; i < d.length; i++){ }}
|
||||
<tr>
|
||||
<td style="text-align: center;">
|
||||
{{d[i]['informId']}}
|
||||
</td>
|
||||
|
||||
<td>{{WST.cutStr(d[i]['goodsName'],30)}}</td>
|
||||
|
||||
<td>{{d[i]['shopName']}}</td>
|
||||
|
||||
<td title="{{d[i]['informContent']}}">{{WST.cutStr(d[i]['informContent'],30)}}</td>
|
||||
|
||||
<td>{{d[i]['informTime']}}</td>
|
||||
|
||||
<td>{{d[i]['informStatus']}}</td>
|
||||
|
||||
<td><a style="cursor:pointer;" onclick="toView({{d[i]['informId']}})">查看</a></td>
|
||||
</tr>
|
||||
{{# } }}
|
||||
</script>
|
||||
</table>
|
||||
</div>
|
||||
{/block}
|
||||
{block name="js"}
|
||||
<script type='text/javascript' src='__STYLE__/users/informs/informs.js?v={$v}'></script>
|
||||
<script>
|
||||
$(function(){
|
||||
informByPage();
|
||||
})
|
||||
</script>
|
||||
{/block}
|
Reference in New Issue
Block a user