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

146 lines
5.3 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=""/>
<meta name="Description" content=""/>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/report.css">
{include file="include/head" /}
<style>
</style>
<body style="background-color:#FFF;">
<div id="content">
<!--top-->
{include file="include/top" /}
<!--top End-->
<!--banner-->
<div class="img-responsive margin-top-90">
<img src="__PUBLIC__/m_web/images/report/banner.jpg">
</div>
<div class="m_Container margin-top-14 f-black">
<p class="text_24">Beware of counterfeit !</p>
<p class="text_24 f_weight_100 line_height_38">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="text_24 margin-top-14 f_weight_100 line_height_38"><span class="f_weight_400">Please provide the following information: <br>( * is required)</p>
<div class="report_input text_24 margin-top-30 f_weight_100 ">
<ul>
<li>
<label>Product Name:<span>*</span></label>
<input type="text" name="product_name" id="product_name">
<span style="display: none; font-size: 0.875em">Please input product name</span>
</li>
<li>
<label>Contact Name:</label>
<input class="" type="text" name="customer_name" id="customer_name">
</li>
<li>
<label>Product Model:<span>*</span></label>
<input type="text" id="product_model" name="product_model">
<span style="display: none; font-size: 0.875em">Please input product model</span>
</li>
<li>
<label>Email Address:</label>
<input type="text" id="customer_email" name="customer_email">
</li>
<li>
<label>Manufacturer:<span>*</span></label>
<input type="text" id="product_manufacturer" name="product_manufacturer">
<span style="display: none; font-size: 0.875em">Please input manufacturer</span>
</li>
<li>
<label>Phone Number:</label>
<input type="text" id="customer_telephone" name="customer_telephone">
</li>
<li>
<label>Purchase Price:</label>
<input class="" type="text" id="product_price" name="product_price">
</li>
<li>
<label>Purchase Channel:</label>
<input type="text" id="buy_source" name="buy_source">
</li>
<li>
<label>What makes your consider the goods is counterfeit? (e.g. price, quality, package, etc.)</label>
<textarea id="description" rows="6" class="f_weight_100"></textarea>
</li>
</ul>
<button class="text_24 margin-top-30 margin-bottom-60" onclick="submit()">Submit</button>
</div>
</div>
<!-- bottom -->
{include file="include/bottom" /}
<!-- bottom e -->
</div>
<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: "/index/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 = 'login.html';
}
else
alert(data.msg);
},
});
}
</script>
</body>
</html>