Files
orico-official-website-old/app/us/view/group/report.phtml
2024-10-29 14:04:59 +08:00

145 lines
5.9 KiB
PHTML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Report Counterfeit/Orico</title>
<meta name="Keywords" content="Report Counterfeit;" />
<meta name="Description" content="Report Counterfeit;" />
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/report.css"></head>
<body style="background-color:#f5f5f5">
<!--top-->
<header class="header-PC header-Product">
<div id="header" class="theme-black">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
{include file="include/top-header-mobile" /}
<!--top End-->
<div class="swt-Container padding-t-80">
<div class="product_address">
<a href="/index" class="href_01">Home</a>
<span class="icon-arrow arrow_address"></span>
<a href="" class="href_01">Support</a>
<span class="icon-arrow arrow_address"></span>
<a href="" class="href_01">Report Counterfeit</a>
</div>
<div class="img-responsive"><img src="__PUBLIC__/web/images/report/report_banner_en.jpg"></div>
<div class="report_w">
<p class="font-16 f-black f_weight_600 margin-t-30">Beware of counterfeit !</p>
<p class="font-16 f-gray">In order to protect our users from counterfeits and improve ORICOs brand reputation, we are now providing you with a channel to report counterfeits. If you find or suspect the product you bought is counterfeit, please report immediately and provide the following information. Our staff will immediately check it for you.</p>
<p class="font-16 f-black margin-t-30"><span class="f_weight_600">Please provide the following information: ( * is required)</p>
<div class="report_input font-16 margin-t-30">
<ul>
<li class="margin-t-30">
<label>Product Name:<span>*</span></label>
<input class="" type="text" name="product_name" id="product_name">
<span style="display: none; font-size: 0.875em">Please input product name</span>
</li>
<li class="margin-t-30">
<label>Contact Name:</label>
<input class="" type="text" name="customer_name" id="customer_name">
</li>
<li class="margin-t-30">
<label>Product Model:<span>*</span></label>
<input class="" type="text" id="product_model" name="product_model">
<span style="display: none; font-size: 0.875em">Please input product model</span>
</li>
<li class="margin-t-30">
<label>Email Address:</label>
<input class="" type="text" id="customer_email" name="customer_email">
</li>
<li class="margin-t-30">
<label>Manufacturer:<span>*</span></label>
<input class="" type="text" id="product_manufacturer" name="product_manufacturer">
<span style="display: none; font-size: 0.875em">Please input manufacturer</span>
</li>
<li class="margin-t-30">
<label>Phone Number:</label>
<input class="" type="text" id="customer_telephone" name="customer_telephone">
</li>
<li class="margin-t-30">
<label>Purchase Price:</label>
<input class="" type="text" id="product_price" name="product_price">
</li>
<li class="margin-t-30">
<label>Purchase Channel:</label>
<input class="" type="text" id="buy_source" name="buy_source">
</li>
<li class="margin-t-30">
<label>What makes your consider the goods is counterfeit? (e.g. price, quality, package, etc.)</label>
<textarea class="" id="description"></textarea>
</li>
</ul>
<button class="font-16" onclick="submit()">Submit</button>
</div>
</div>
</div>
{include file="include/bottom" /}
</body>
</html>
<script>
$(document).ready(function() {
$("input").focus(function(){
$(".report_input span").hide();
})
});
function submit() {
var product_name = $("#product_name").val(); // 产品名称
var customer_name = $("#customer_name").val(); // 名字
var product_model = $("#product_model").val(); // 产品型号
var customer_email = $("#customer_email").val(); // email
var product_manufacturer = $("#product_manufacturer").val(); // 生产厂商
var customer_telephone = $("#customer_telephone").val(); // 手机号码
var product_price = $("#product_price").val(); // 价格
var buy_source = $("#buy_source").val(); // 购买渠道
var description = $("#description").val(); //仿冒产品原因*/
var data = {
"product_name": product_name,
"customer_name": customer_name,
"product_model": product_model,
"customer_email": customer_email,
"product_manufacturer": product_manufacturer,
"customer_telephone": customer_telephone,
"product_price": product_price,
"buy_source": buy_source,
"description": description
};
if (product_name.length == 0) {
$("#product_name").next("span").show();
}
if (product_model.length == 0) {
$("#product_model").next("span").show();
}
if (product_manufacturer.length == 0) {
$("#product_manufacturer").next("span").show();
}
// Ajax提交数据
$.ajax({
url: "/us/group/create_report", // 提交到controller的url路径
type: "post", // 提交方式
data: data, // data为String类型必须为 Key/Value 格式。
dataType: "json", // 服务器端返回的数据类型
success: function (data) { // 请求成功后的回调函数其中的参数data为controller返回的map,也就是说,@ResponseBody将返回的map转化为JSON格式的数据然后通过data这个参数取JSON数据中的值
if (data.code == 200)
{
alert("Submitted successfully");
location.reload();
}
else if (data.code == -100)
{
alert(data.msg);
location.href = '/us/login.html';
}
else
alert(data.msg);
},
});
}
</script>