This commit is contained in:
2024-10-29 14:04:59 +08:00
commit 48bf3e6f33
2839 changed files with 762707 additions and 0 deletions

575
app/index/common.php Executable file
View File

@@ -0,0 +1,575 @@
<?php
use think\Loader;
use think\Config;
use think\Request;
use \app\common\model\ProductBkImage;
/**
* 把两个日期格式的字符串转化成unix时间戳,然后相减获得时间戳差,最后判断剩余时间,生成类似(2小时30分钟20秒前发布)这样的时间格式。
* $time_s int 起始日期的Unix时间
* $time_n int 当前日期的Unix时间
*/
define('COUNTRY_CODE', 'ZH');
function getHMStime($time_s, $time_n) {
//$time_s = strtotime($time_s);
//$time_n = strtotime($time_n);
//$time_n = time();
$strtime = '';
$time = $time_n - $time_s;
if ($time >= 86400) {
return $strtime = date('Y-m-d H:i', $time_s);
}
if ($time >= 3600) {
$strtime .= intval($time / 3600) . '小时';
$time = $time % 3600;
} else {
$strtime .= '';
}
if ($time >= 60) {
$strtime .= intval($time / 60) . '分钟';
$time = $time % 60;
} else {
$strtime .= '';
}
if ($time > 0) {
$strtime .= intval($time) . '秒前';
} else {
$strtime = '时间错误';
}
return $strtime;
}
/**
* 计算剩余天时分。
* $unixEndTime string 终止日期的Unix时间
*/
function getDHMtime($unixEndTime = 0) {
if ($unixEndTime <= time()) { // 如果过了活动终止日期
return '0天0时0分';
}
// 使用当前日期时间到活动截至日期时间的毫秒数来计算剩余天时分
$time = $unixEndTime - time();
$days = 0;
if ($time >= 86400) { // 如果大于1天
$days = (int) ($time / 86400);
$time = $time % 86400; // 计算天后剩余的毫秒数
}
$xiaoshi = 0;
if ($time >= 3600) { // 如果大于1小时
$xiaoshi = (int) ($time / 3600);
$time = $time % 3600; // 计算小时后剩余的毫秒数
}
$fen = (int) ($time / 60); // 剩下的毫秒数都算作分
return $days . '天' . $xiaoshi . '时' . $fen . '分';
}
function getDifferentProduct($type, $limit = 12, $where = array(), $order = array()) {
if (empty($limit)) {
$limit = Config::get('list_rows') > 0 ? Config::get('list_rows') : 12;
}
$arg_where = array_merge(['stat' => 0,'is_show' => 0, 'country_code' => COUNTRY_CODE], $where);//print_r($where);die;
$arg_field = ['id', 'cid', 'name', 'shortname', 'sort', 'ishot', 'isnew', 'recommend', 'viewcount', 'tags', 'description', 'picture', 'picture_back', 'bk_img', 'bk_img_back','list_bk_img', 'createtime'];
$bkinfo = ['id','product_id','image_url','image_bk_color','image_color','original_url'];
switch ($type) {
case 'recommend':
// $arg_order['sort'] = 'asc';
$arg_order['id'] = 'desc';
$arg_where['recommend'] = 1;
$result = Loader::model('Product')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
//print_r($result);die;
break;
case 'headline':
$arg_order['sort'] = 'asc';
$arg_order['id'] = 'desc';
$arg_where['headline'] = 1;
$result = Loader::model('Product')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
break;
case 'ishot':
$arg_order['sort'] = 'asc';
$arg_order['id'] = 'desc';
$arg_where['ishot'] = 1;
$result = Loader::model('Product')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
break;
case 'isnew':
$arg_order['sort'] = 'asc';
$arg_order ['id'] = 'desc';
$arg_where['isnew'] = 1;
$result = Loader::model('Product')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
break;
default:
if (!empty($order)) {
$arg_order = $order;
}
$arg_order['sort'] = 'asc';
$arg_order['id'] = 'desc';
$result = Loader::model('Product')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
break;
}
return $result;
}
function getArticleList($limit = 3, $where = array(), $order = array()) {
if (empty($limit)) {
$limit = Config::get('list_rows') > 0 ? Config::get('list_rows') : 3;
}
$arg_where = array_merge( ['cid' => 1,'stat' => 0, 'country_code' => COUNTRY_CODE], $where);
$arg_field = ['*'];
$arg_order = ['createtime' => 'desc'];
$result = Loader::model('Article')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
$arg_wheres = array_merge( ['cid' => 33,'stat' => 0, 'country_code' => COUNTRY_CODE], $where);
$rest = Loader::model('Article')->getList($arg_wheres, array_merge($arg_order, $order), $arg_field, $limit);
$array = array_merge($result, $rest);
//echo Loader::model('Article')->getLastSQL();die;
return $array;
}
function getBlogList($limit = 6, $where = array(), $order = array()) {
if (empty($limit)) {
$limit = Config::get('list_rows') > 0 ? Config::get('list_rows') : 6;
}
$arg_where = array_merge(['stat' => 1, 'country_code' => COUNTRY_CODE], $where);
$arg_field = ['*'];
$arg_order = ['id' => 'desc'];
$result = Loader::model('Blog')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
return $result;
}
function getFaqList($limit = 6, $where = array(), $order = array()) {
if (empty($limit)) {
$limit = Config::get('list_rows') > 0 ? Config::get('list_rows') : 6;
}
$arg_where = array_merge(['stat' => 0,'is_home' => 1, 'country_code' => COUNTRY_CODE], $where);
$arg_field = ['*'];
$arg_order = ['sort' =>
'asc', 'id' => 'desc'];
$result = Loader::model('fq')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
return $result;
}
function getDifferentArticle($type, $limit = 12, $where = array(), $order = array()) {
if (empty($limit)) {
$limit = Config::get('list_rows') > 0 ? Config::get('list_rows') : 12;
}
$arg_where = array_merge(['stat' => 0, 'country_code' => COUNTRY_CODE], $where);
//$arg_where['is_onsale'] = 1;
$arg_field = ['id', 'cid', 'name', 'sort', 'headline','jump_link', 'ishot', 'recommend', 'zancount', 'viewcount', 'description', 'picture', 'createtime'];
switch ($type) {
case 'recommend':
$arg_order['createtime'] = 'desc';
$arg_where['recommend'] = 1;
$result = Loader::model('Article')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
break;
case 'headline':
$arg_order['createtime'] = 'desc';
$arg_order['sort'] = 'asc';
$arg_order['createtime'] = 'desc';
$arg_where['headline'] = 1;
$result = Loader::model('Article')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
break;
case 'ishot':
$arg_order['createtime'] = 'desc';
$arg_order['sort'] = 'asc';
$arg_order['id'] = 'desc';
$arg_where['ishot'] = 1;
$result = Loader::model('Article')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
break;
default:
$arg_order['createtime'] = 'desc';
$arg_order['id'] = 'desc';
$result = Loader::model('Article')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
break;
}
return $result;
}
function getDifferentVideo($type, $limit = 12, $where = array(), $order = array()) {
if (empty($limit)) {
$limit = Config::get('list_rows') > 0 ? Config::get('list_rows') : 12;
}
$arg_where = array_merge(['stat' => 0, 'country_code' => COUNTRY_CODE], $where);
//$arg_where['is_onsale'] = 1;
$arg_field = ['id', 'cid', 'name', 'sort', 'headline', 'ishot', 'recommend', 'viewcount', 'videopath', 'videourl', 'description', 'picture', 'createtime'];
switch ($type) {
case 'recommend':
$arg_order['sort'] = 'asc';
$arg_order['id'] = 'desc';
$arg_where['recommend'] = 1;
$result = Loader::model('Video')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
break;
$arg_where['headline'] = 1;
if (Config ::get('news_headline')) {
$arg_order['sort'] = 'asc';
$arg_order['id'] = 'desc';
} else {
$arg_order['id'] = 'desc';
}
case 'headline':
$arg_order['sort'] = 'asc';
$arg_order['id'] = 'desc';
$arg_where['headline'] = 1;
$result = Loader::model('Video')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
break;
case 'ishot':
$arg_order['sort'] = 'asc';
$arg_order['id'] = 'desc';
$arg_where['ishot'] = 1;
$result = Loader::model('Video')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
break;
default:
$arg_order['sort'] = 'asc';
$arg_order['id'] = 'desc';
$result = Loader::model('Video')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
break;
}
return $result;
}
function getDifferentDownload($type, $limit = 12, $where = array(), $order = array()) {
if (empty($limit)) {
$limit = Config::get('list_rows') > 0 ? Config::get('list_rows') : 12;
}
$arg_where = array_merge(['stat' => 0, 'country_code' => COUNTRY_CODE], $where);
//$arg_where['is_onsale'] = 1;
$arg_field = ['id', 'cid', 'name', 'sort', 'headline', 'ishot', 'recommend', 'app_model', 'support_os', 'format', 'viewcount', 'downloadcount', 'description', 'picture', 'tags', 'downloadpath', 'downloadpath64', 'createtime'];
switch ($type) {
case 'recommend':
$arg_order['sort'] = 'asc';
$arg_order['id'] = 'desc';
$arg_where['recommend'] = 1;
$result = Loader::model('Download')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
break;
$arg_where['headline'] = 1;
if (Config ::get('news_headline')) {
$arg_order['sort'] = 'asc';
$arg_order['id'] = 'desc';
} else {
$arg_order['id'] = 'desc';
}
case 'headline':
$arg_order['sort'] = 'asc';
$arg_order['id'] = 'desc';
$arg_where['headline'] = 1;
$result = Loader::model('Download')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
break;
case 'ishot':
$arg_order['sort'] = 'asc';
$arg_order['id'] = 'desc';
$arg_where['ishot'] = 1;
$result = Loader::model('Download')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
break;
default:
$arg_order['sort'] = 'asc';
$arg_order['id'] = 'desc';
$result = Loader::model('Download')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
break;
}
return $result;
}
function getProductChildCate($pid, $limit = 12, $where = array(), $order = array()) {
$argc_where = array_merge(['stat' => 0, 'country_code' => COUNTRY_CODE], $where);
$argc_field = ['id', 'pid', 'haschild', 'name', 'shortname', 'description', 'sort', 'isshow', 'recommend', 'picture', 'createtime'];
$argc_order['sort'] = 'asc';
$argc_order['id'] = 'desc';
$argc_where['pid'] = $pid;
$result = Loader::model('ProductCategory')->getList($argc_where, array_merge($argc_order, $order), $argc_field, $limit);
return $result;
}
function getArticleChildCate($pid, $limit = 12, $where = array(), $order = array()) {
$argc_where = array_merge(['stat' => 0, 'country_code' => COUNTRY_CODE], $where);
$argc_field = ['id', 'pid', 'haschild', 'name', 'shortname', 'description', 'sort', 'isshow', 'recommend', 'picture', 'createtime'];
$argc_order['sort'] = 'asc';
$argc_order['id'] = 'desc';
$argc_where['pid'] = $pid;
$result = Loader::model('ArticleCategory')->getList($argc_where, array_merge($argc_order, $order), $argc_field, $limit);
return $result;
}
function getCateProduct($cid, $limit = 12, $where = array(), $haschild = false, $order = array()) {
$arg_where = array_merge(['p.stat' => 0, 'c.stat' => 0, 'p.country_code' => COUNTRY_CODE], $where);
$arg_field = ['p.id', 'p.cid', 'p.name', 'p.shortname', 'p.sort', 'p.ishot', 'p.isnew', 'p.recommend', 'p.viewcount', 'p.tags', 'p.description', 'p.picture','p.list_bk_img', 'p.picture_back', 'p.createtime', 'p.createtime', 'c.name' => 'categoryname', 'c.id' => 'categoryid'];
$arg_order['p.sort'] = 'asc';
$arg_order['p.id'] = 'desc';
if ($haschild && $cid) {
$cidarray = Loader::model('ProductCategory')->getChildIDArray($cid);
$arg_where['p.cid'] = ['in', $cidarray];
} else {
$arg_where['p.cid'] = $cid;
}
$result = Loader::model('Product')->getCateProductList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
return
$result;
}
function getCateoneProduct($cid, $limit = 12, $where = array(), $haschild = false, $order = array()) {
$arg_where = array_merge(['p.stat' => 0, 'c.stat' => 0, 'p.is_show' => 0, 'p.country_code' => COUNTRY_CODE], $where);
$arg_field = ['p.bk_img_back_color','p.bk_img_color','p.picture_back_color','p.picture_color','p.id', 'p.cid', 'p.name', 'p.shortname', 'p.sort', 'p.ishot', 'p.isnew','p.brand_id', 'p.recommend', 'p.viewcount', 'p.tags','p.list_bk_img', 'p.description', 'p.picture', 'p.picture_back', 'p.createtime', 'p.createtime', 'c.name' => 'categoryname', 'c.id' => 'categoryid'];
$arg_order['p.id'] = 'desc';
$arg_order['p.sort'] = 'asc';
if ($haschild && $cid) {
$cidarray = Loader::model('ProductCategory')->getChildIDArray($cid);
$arg_where['p.cid'] = ['in', $cidarray];
// tiaoshi($arg_where);die;
} else {
$arg_where['p.cid'] = $cid;
}
$result = Loader::model('Product')->getCateProductList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
// echo \think\Db::table('Product')->getLastSql();die;
// 获取二级图片
foreach ($result as $key => $value) {
$res = model('ProductTwoImg')->field('image_url,image_bk_color,image_color,original_url,product_id,id,image_color')->where(['product_id' => $value['id'], 'stat' => 0])->select();
// echo model('ProductTwoImg')->getLastSql();die;
$result[$key]['product_two_img'] = $res;
}
// tiaoshi($result);die;
return $result;
}
function getCateArticle($cid, $limit = 12, $where = array(), $haschild = false, $order = array()) {
$arg_where = array_merge(['stat' => 0, 'country_code' => COUNTRY_CODE], $where);
$arg_field = ['id', 'cid', 'name', 'sort', 'headline', 'ishot', 'recommend', 'viewcount', 'description', 'picture', 'createtime'];
$arg_order['sort'] = 'asc';
$arg_order['id'] = 'desc';
if ($haschild && $cid) {
$cidarray = Loader::model('ArticleCategory')->getChildIDArray($cid);
$arg_where['cid'] = ['in', $cidarray];
} else {
$arg_where['cid'] = $cid;
}
$result = Loader::model('Article')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
return $result;
}
function getCateVideo($cid, $limit = 12, $where = array(), $haschild = false, $order = array()) {
$arg_where = array_merge(['stat' => 0, 'country_code' => COUNTRY_CODE], $where);
$arg_field = ['id', 'cid', 'name', 'product', 'sort', 'headline', 'ishot', 'recommend', 'tags', 'playcount', 'description', 'picture', 'videopath', 'createtime'];
$arg_order['sort'] = 'asc';
$arg_order['id'] = 'desc';
if ($haschild && $cid) {
$cidarray = Loader::model('VideoCategory')->getChildIDArray($cid);
$arg_where['cid'] = ['in', $cidarray];
} else {
$arg_where['cid'] = $cid;
} $result = Loader::model('Video')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
return $result;
}
function getBannerList($tid = 0, $limit = 12, $where = array(), $field = array('*'), $order = array()) {
$arg_where = array_merge(['stat' => 0, 'country_code' => COUNTRY_CODE], $where);
$arg_order = ['sort' => 'asc', 'id' => 'desc'];
$arg_field = $field;
if ($tid) {
$arg_where['typeid'] = $tid;
}
$result = Loader::model('Banner')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
return $result;
}
function getBanner($id = 0) {
$result = Loader::model('Banner')->getRow($id);
return $result;
}
function getFlink($tid = 0, $limit = 12, $where = array(), $field = array('*'), $order = array()) {
$arg_where = array_merge(['stat' => 0], $where);
$arg_order = ['sort' => 'asc', 'id' => 'desc'];
$arg_field = $field;
if ($tid) {
$arg_where['typeid'] = $tid;
}
$result = Loader::model('Flink')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
return $result;
}
function getQuestion($limit = 12, $where = array(), $order = array()) {
if (empty($limit)) {
$limit = Config::get('list_rows') > 0 ? Config::get('list_rows') : 12;
}
$arg_where = array_merge(['stat' => 0], $where);
$arg_field = ['*'];
$arg_order = ['sort' =>
'asc', 'id' => 'desc'];
$result = Loader::model('Question')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
return $result;
}
// function getProduct($id = 0) {
// $result = Loader::model('Product')->getRow(['id'=> $id], ['id', 'name']);
// return $result;
// }
function getProductCount($cid, $where = array(), $haschild = false) {
$arg_where = array_merge(['stat' =>0, 'country_code' => COUNTRY_CODE], $where);
if ($haschild && $cid) {
$cidarray = Loader::model('ProductCategory')->getChildIDArray($cid);
$arg_where['cid'] = ['in', $cidarray];
} else {
$arg_where['cid'] = $cid;
}
$result = Loader::model('Product')->where($arg_where)->count();
return $result;
}
// function getArticleCategory($id = 0) {
// $result = Loader::model('ArticleCategory')->getRow(['id' => $id], ['id', 'name']);
// return $result;
// }
function getSinglepageChild($pid, $limit = 12, $where = array(), $order = array()) {
$argc_where = array_merge(['stat' => 0], $where);
$argc_field = ['id', 'pid', 'name', 'description', 'sort', 'isshow', 'recommend', 'picture', 'content', 'createtime'];
$argc_order['sort'] = 'asc';
$argc_order['id'] = 'desc';
$argc_where['pid'] = $pid;
$result = Loader:: model('Singlepage')->getList($argc_where, array_merge($argc_order, $order), $argc_field, $limit);
return $result;
}
function getSinglepage($id = 0) {
$result = Loader::model('Singlepag e')->getRow($id, ['id', 'pid', 'name', 'description', 'sort', 'isshow', 'recommend', 'picture', 'content', 'createtime']);
return $result;
}
function getDifferentPinglun($type, $limit = 12, $where = array(), $order = array()) {
if (empty($limit)) {
$limit = Config::get('list_rows') > 0 ? Config::get('list_rows') : 12;
}
$arg_where = array_merge(['stat' => 0, 'display' => 1], $where);
$arg_field = ['id', 'pid', 'customer_id', 'cname', 'content_id', 'typeid', 'ishot', 'content', 'tx', 'createtime', 'ip', 'display'];
switch ($type) {
case 'ishot':
$arg_order['id'] = 'desc';
$arg_where['ishot'] = 1;
$result = Loader::model('Pinglun')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
break;
default:
if (!empty($order)) {
$arg_order = $order;
}
$arg_order['sort'] = 'asc';
$arg_order['id'] = 'desc';
$result = Loader::model('Pinglun')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
break;
}
return $result;
}
function getBkImag($type, $limit = 12, $where = array(), $order = array()){
/*$result = \app\common\model\Product::where("recommend",1)->field('id,cid')->with("ProductImg")->limit($limit)->select();*/
//print_r($type);die;
$where = ['recommend'=>1,'stat'=>0, 'country_code' => COUNTRY_CODE];
$result = \app\common\model\Product::where($where)
->field('id,cid,name,shortname')
->with(["ProductImg"=>function($query){
/** @var $query \think\db\Query */
$query->field('image_url,image_bk_color,image_color,original_url,product_id,id');
}])
// ->where('id', 130)
->order('id desc')
->select();
/** @var $result array */
$result = collection($result)->toArray();
return $result;
}
function getSonCategoryProduct($parent_id)
{
if (empty($parent_id)) {
return "无父ID";
}
$where = ['recommend'=>1,'stat'=>0, 'is_show' => 0];
$result = \app\common\model\Product::where('cid', 'in', function ($query) use ($parent_id) {
/** @var $query \think\db\Query */
$query->table('cod_product_category')->where('pid', $parent_id)->field('id');
})->with(["ProductImg"=>function($query){
/** @var $query \think\db\Query */
$query->field('image_url,image_bk_color,image_color,original_url,product_id,id');
}])->where($where)
->field('id,cid,name,shortname')
->select();
if (!empty($result)) {
$result = collection($result)->toArray();
}
return $result;
}
function getCateColor($cid, $limit, $where = array(), $haschild = false, $order = array()) {
$where = ['stat'=>0,'cid'=>$cid, 'country_code' => COUNTRY_CODE, 'is_show' => 0];
$result = \app\common\model\Product::where($where)
->field('id,cid,name,brand_id')
->with(["ProductTwoImg"=>function($query){
/** @var $query \think\db\Query */
$query->where('stat',0)->field('image_url,image_bk_color,image_color,original_url,product_id,id,image_color');
}])
->limit($limit)
->order($order)
->select();
/** @var $result array */
$result = collection($result)->toArray();
return $result;
}
function getProductReated($id,$limit = 12, $where = array(), $haschild = false, $order = array()){
$where = ['product_id'=>$id,'stat'=>0, 'country_code' => COUNTRY_CODE];//print_r($where);die;
$result = Loader::model('ProductTwoImg')->where($where)->field('image_url')->select();
$result = collection($result)->toArray();//var_dump($result);die;
return $result;
}
/*没有上级分类的爆款查询*/
function getCategoryProduct($parent_id)
{//print_r($parent_id);die;
if (empty($parent_id)) {
return "无父ID";
}
$where = ['recommend'=>1,'stat'=>0,'cid'=>$parent_id, 'is_show' => 0];
$result = \app\common\model\Product::where($where)
->field('id,cid,name,shortname')
->with(["ProductImg"=>function($query){
/** @var $query \think\db\Query */
$query->field('image_url,image_bk_color,image_color,original_url,product_id,id');
}])
// ->limit('sort')
->order('id desc')
->select();
/** @var $result array */
$result = collection($result)->toArray();
return $result;
}
/*没有上级的产品查询*/
function getProductColor($pid,$limit){
if(empty($pid)){
return "无父级ID";
}
$where = ['stat'=>0,'cid'=>$pid, 'country_code' => COUNTRY_CODE];
$result = \app\common\model\Product::where($where)
->field('id,cid,name,shortname')
->with(["ProductTwoImg"=>function($query){
/** @var $query \think\db\Query */
$query->where('stat',0)->field('image_url,image_bk_color,image_color,original_url,product_id,id,image_color');
}])
->limit($limit)
->order('id desc')
->select();
/** @var $result array */
$result = collection($result)->toArray();//print_r($result);die;
return $result;
}

30
app/index/config.php Executable file
View File

@@ -0,0 +1,30 @@
<?php
return [
//管理员用户ID
'user_administrator' => 0,
//是否启用布局
'template' => [
'layout_on' => false,
'layout_name' => 'public/layout',
// 模板路径
//'view_path' => __DIR__ . '/view/',
// 模板后缀
'view_suffix' => 'phtml',
// 模板文件名分隔符
//'view_depr' => DS,
],
'view_replace_str' => [
'__PUBLIC__' => '/frontend',
//'__TEMPLATE__' => '/public/static',wqeqwe
'__PREFIX__' => '',
// '__ORICOROOT__' => 'http://test.orico.com',
'__ORICOROOT__' => 'https://www.orico.com.cn'
],
//分页配置
'paginate' => [
'type' => '\pagination\FrontPagination',
'var_page' => 'page',
'list_rows' => 12,
],
];

186
app/index/controller/Ad.php Executable file
View File

@@ -0,0 +1,186 @@
<?php
namespace app\index\controller;
use think\Lang;
use think\Loader;
use think\Config;
use app\common\controller\BaseController;
class Ad extends BaseController {
private $country_code = 'ZH';
public function tags($tags = '', $num = 1) {
if ($tags) {
$nocache = $this->request->param('nocache', 0);
$cacheTag = 'adzh-' . md5($tags);
$htmlbody = $nocache ? '' : $this->cacheGet($cacheTag);
if (empty($htmlbody)) {
$list = Loader::model('Ad')->getList(['stat' => 0, 'tags' => $tags, 'country_code' => $this->country_code], ['sort' => 'asc', 'id' => 'desc'], ['id', 'typeid', 'name', 'sort', 'tags', 'timeset', 'starttime', 'endtime', 'normbody', 'expbody'], $num);
if (empty($list)) {
$this->cacheTag('adTagZh')->set($cacheTag, "<!--\r\ndocument.write(\"<!--403-->\");\r\n-->\r\n");
exit;
}
$htmlbody = '';
$expire = 3600;
foreach ($list as $row) {
$adbody = '';
if ($row['timeset'] == 0) {
$adbody = $row['normbody'];
$exp = 0;
} else {
$ntime = time();
if ($ntime > $row['endtime'] || $ntime < $row['starttime']) {
$adbody = $row['expbody'];
$exp = $ntime < $row['starttime'] ? $row['starttime'] - $ntime : 0;
} else {
$adbody = $row['normbody'];
$exp = $row['endtime'] - $ntime;
}
}
$expire = $exp > 0 && $exp < $expire ? $exp : $expire;
$adbody = str_replace('"', '\"', $adbody);
$adbody = str_replace("\r", "\\r", $adbody);
$adbody = str_replace("\n", "\\n", $adbody);
$htmlbody .= "<!--\r\ndocument.write(\"{$adbody}\");\r\n-->\r\n";
//print_r($htmlbody);exit;
}
$this->cacheTag('adTagZh')->set($cacheTag, $htmlbody, $expire);
}
echo $htmlbody;
exit;
}
exit(' Error! ');
}
public function tagsli($tags = '', $num = 1) {
if ($tags) {
$nocache = $this->request->param('nocache', 0);
$cacheTag = 'adzh-' . md5($tags);
$htmlbody = $nocache == false ? '' : $this->cacheGet($cacheTag);
if (empty($htmlbody)) {
$list = Loader::model('Ad')->getList(['stat' => 0, 'tags' => $tags, 'typeid' => 5, 'country_code' => $this->country_code], ['sort' => 'asc', 'id' => 'desc'], ['id', 'typeid', 'name', 'sort', 'tags', 'timeset', 'starttime', 'endtime', 'normbody', 'expbody'], $num);
if (empty($list)) {
$this->cacheTag('adTagZh')->set($cacheTag, "<!--\r\ndocument.write(\"<!--405-->\");\r\n-->\r\n");
exit;
}
$htmlbody = '';
$expire = 3600;
foreach ($list as $k => $row) {
$adbody = '';
if ($row['timeset'] == 0) {
$adbody = $row['normbody'];
$exp = 0;
} else {
$ntime = time();
if ($ntime > $row['endtime'] || $ntime < $row['starttime']) {
$adbody = $row['expbody'];
$exp = $ntime < $row['starttime'] ? $row['starttime'] - $ntime : 0;
} else {
$adbody = $row['normbody'];
$exp = $row['endtime'] - $ntime;
}
}
$expire = $exp > 0 && $exp < $expire ? $exp : $expire;
$adbody = str_replace('"', '\"', $adbody);
$adbody = str_replace("\r", "\\r", $adbody);
$adbody = str_replace("\n", "\\n", $adbody);
$htmlbody .= "<!--\r\ndocument.write(\"<li class=\\\"li" . ($k + 2) . "\\\">{$adbody}</li>\");\r\n-->\r\n";
}
$this->cacheTag('adTagZh')->set($cacheTag, $htmlbody, $expire);
}
echo $htmlbody;
exit;
}
exit(' Error! ');
}
public function index($id = 0) {
if ($id > 0) {
$nocache = $this->request->param('nocache', 0);
$cacheTag = 'adzh-' . $id;
$adbody = $nocache ? '' : $this->cacheGet($cacheTag);
if (empty($adbody)) {
$row = Loader::model('Ad')->where(['stat' => ['eq', 0], 'id' => $id, 'country_code' => $this->country_code])->find();
if (empty($row)) {
$this->cacheTag('adTagZh')->set($cacheTag, "<!--\r\ndocument.write(\"<!--406-->\");\r\n-->\r\n");
exit;
}
$adbody = '';
if ($row['timeset'] == 0) {
$adbody = $row['normbody'];
$expire = 0;
} else {
$ntime = time();
if ($ntime > $row['endtime'] || $ntime < $row['starttime']) {
$adbody = $row['expbody'];
$expire = $ntime < $row['starttime'] ? $row['starttime'] - $ntime : 0;
} else {
$adbody = $row['normbody'];
$expire = $row['endtime'] - $ntime;
}
}
$adbody = str_replace('"', '\"', $adbody);
$adbody = str_replace("\r", "\\r", $adbody);
$adbody = str_replace("\n", "\\n", $adbody);
$adbody = "<!--\r\ndocument.write(\"{$adbody}\");\r\n-->\r\n";
$this->cacheTag('adTagZh')->set($cacheTag, $adbody, $expire);
}
echo $adbody;
exit;
}
exit(' Error! ');
}
public function cat($id = '', $num = 1) {
if ($id) {
$nocache = $this->request->param('nocache', 0);
$cacheTag = 'adzh-' . $id;
$htmlbody = $nocache ? '' : $this->cacheGet($cacheTag);
if (empty($htmlbody)) {
$list = Loader::model('Ad')->getList(['stat' => ['eq', 0], 'typeid' => $id, 'country_code'], ['sort' => 'asc', 'id' => 'desc'], ['id', 'typeid', 'name', 'sort', 'tags', 'timeset', 'starttime', 'endtime', 'normbody', 'expbody'], $num);
if (empty($list)) {
$this->cacheTag('adTagZh')->set($cacheTag, "<!--\r\ndocument.write(\"<!--407-->\");\r\n-->\r\n");
exit;
}
$htmlbody = '';
$expire = 3600;
foreach ($list as $row) {
$adbody = '';
if ($row['timeset'] == 0) {
$adbody = $row['normbody'];
$exp = 0;
} else {
$ntime = time();
if ($ntime > $row['endtime'] || $ntime < $row['starttime']) {
$adbody = $row['expbody'];
$exp = $ntime < $row['starttime'] ? $row['starttime'] - $ntime : 0;
} else {
$adbody = $row['normbody'];
$exp = $row['endtime'] - $ntime;
}
}
$expire = $exp > 0 && $exp < $expire ? $exp : $expire;
$adbody = str_replace('"', '\"', $adbody);
$adbody = str_replace("\r", "\\r", $adbody);
$adbody = str_replace("\n", "\\n", $adbody);
$htmlbody .= "<!--\r\ndocument.write(\"{$adbody}\");\r\n-->\r\n";
}
$this->cacheTag('adTagZh')->set($cacheTag, $htmlbody, $expire);
}
echo $htmlbody;
exit;
}
exit(' Error! ');
}
public function previewjs($id) {
$id = intval($id);
if ($id > 0) {
echo '<script src="' . url('index/ad/index', ['id' => $id]) . '?nocache=1" language="javascript"></script>';
}
exit();
}
}

137
app/index/controller/Antifake.php Executable file
View File

@@ -0,0 +1,137 @@
<?php
/**
* Created by PhpStorm.
* User: ORICO
* Date: 2019-07-23
* Time: 15:40
*/
namespace app\index\controller;
use think\Loader;
class Antifake extends BaseController
{
public function index()
{
$this->redirect("https://anti-fake-checking.com/index");
return $this->view->fetch();
}
public function sn_result()
{
if ($_POST) {
$post = $this->request->post();
//$this->verify_check($post['captcha'], 'authcode') || $this->error('验证码有误', url('antifake/index'));
$snnum = $post['sn'];
$snnum = str_replace('-','',$snnum);
$ssd = Loader::model('Ssd');
$where = ['sn' => $post['sn']];
$arr = $ssd->where($where)->find();
if ($arr) {
$data = $arr;//dump($data['sn']);die;
$data['result'] = 1;
$this->assign('data', $data);
} else {
$postdata = ['sn'=>$snnum];
$postdata = http_build_query($postdata);
$sn = CurlRequest('http://mes.orico.com.cn:8081/content/mes/web/api/fwm.aspx', $postdata);
$sn = json_decode($sn, true);
if ($sn['result'] == 1) {
$data['sn'] = $post['sn'];
$data['fake'] = '';
$data['specifications_and_models'] = $sn['specifications_and_models'];
$data['69_code'] = $sn['69_code'];
$data['production_date'] = $sn['production_date'];
$data['Customer_name'] = $sn['Customer_name'];
if($sn['delivery_time']){
$data['delivery_time'] = $sn['delivery_time'];
}
//$data['department'] = $sn['B2B_B2C'];
$data['made_up_articles_name'] = $sn['made_up_articles_name'];
$data['chicktime'] = date("Y-m-d H:i:s");
//$time = strtotime($data['delivery_time']);
// $data['mendtime'] = date('Y-m-d H:i:s', strtotime("+5year", $time));
//if($data['department']=='B2B'){
//$data['mendtime'] = date('Y-m-d H:i:s', strtotime("+1 month",strtotime($data['mendtime'])));
//}
$data['material_ID'] = $sn['material_ID'];
$where = ['sku'=>$data['specifications_and_models']];
$productid = Loader::model('ProductSku')->where($where)->find();
$img = Loader::model('product_two_img')->where(['product_id'=>$productid['product_id']])->find();
$img = $img['image_url'];
$data['img']=$img;
$add = $ssd->save($data);
$data['result'] = $sn['result'];
$this->assign('data',$data);
} else {
$data['sn']=$snnum;
$data['result'] = $sn['result'];
$this->assign('data',$data);
}
}
}
return $this->fetch();
}
public function anti_fake_result()
{
if ($_POST) {
$post = $this->request->post();
//$verify = $this->verify_check($post['captcha'], 'authcode'); || $this->error('验证码有误', url('antifake/index'));
$fake = $post['fake'];
$ssd = Loader::model('Ssd');
$where = ['fake' => $fake];
$arr = $ssd->where($where)->find();
//echo "<pre>=="; print_r($post); die;
if ($arr) {
$data = $arr;//dump($data['sn']);die;
$data['result'] = 1;
$this->assign('data', $data);
} else {
$postdata = ['fwm'=>$fake];
$postdata = http_build_query($postdata);
$sn = CurlRequest('http://mes.orico.com.cn:8081/content/mes/web/api/fwm.aspx', $postdata);
$sn = json_decode($sn, true);
if ($sn['result'] == 1) {
$data['sn'] = $sn['serial_number'];
$data['fake'] = $fake;
$data['specifications_and_models'] = $sn['specifications_and_models'];
$data['69_code'] = $sn['69_code'];
$data['production_date'] = $sn['production_date'];
$data['Customer_name'] = $sn['Customer_name'];
$data['delivery_time'] = $sn['delivery_time'];
//$data['department'] = $sn['B2B_B2C'];
$data['made_up_articles_name'] = $sn['made_up_articles_name'];
$data['chicktime'] = date("Y-m-d H:i:s");
$time = strtotime($data['delivery_time']);
$data['mendtime'] = date('Y-m-d H:i:s', strtotime("+5year", $time));
//if($data['department']=='B2B'){
$data['mendtime'] = date('Y-m-d H:i:s', strtotime("+1 month",strtotime($data['mendtime'])));
// }
$data['material_ID'] = $sn['material_ID'];
$where = ['sku'=>$data['specifications_and_models']];
$productid = Loader::model('product_sku')->where($where)->find();
$img = Loader::model('product_two_img')->where(['product_id'=>$productid['product_id']])->find();
$img = $img['image_url'];
$data['img']=$img;
$add = $ssd->save($data);
$data['result'] = $sn['result'];
$this->assign('data',$data);
} else {
$data['fake']=$fake;
$data['result'] = $sn['result'];
$this->assign('data',$data);
}
}
}
return $this->fetch();
}
}

222
app/index/controller/Article.php Executable file
View File

@@ -0,0 +1,222 @@
<?php
namespace app\index\controller;
use think\Loader;
use think\Cookie;
use think\Config;
class Article extends BaseController {
public function lists() {
$arg_where = ['a.siteid' => $this->siteid, 'country_code' => $this->country_code];
$arg_order = ['a.id' => 'desc'];
$search = array();
$skeyword = $this->request->get('skeyword', '', 'urldecode,strval');
if ($skeyword != '') {
$search['skeyword'] = $skeyword;
$arg_where['a.name'] =['like', '%' . $search['skeyword'] . '%'];
$search['name'] = $search['skeyword'];
}
$arg_field = ['a.id', 'a.cid', 'a.name', 'a.jump_link', 'a.sort', 'a.headline', 'a.ishot', 'a.recommend', 'a.writer', 'a.source', 'a.viewcount', 'a.zancount', 'a.commentcount', 'a.description', 'a.picture', 'a.tags', 'a.createtime', 'c.id' => 'categoryid', 'c.name' => 'categoryname'];
$dataObject = Loader::model('Article')->getCateArticleLists($arg_where, $arg_order, $arg_field, 12);
$value = [
'list' => $dataObject->isEmpty() ? null : $dataObject->items(), //$dataObject->getCollection()->toArray()
'page' => $dataObject->render(),
'category' => ['id' => 0, 'name' => '新闻资讯'],
];
$cate_list = model('article_category')->where(['country_code' => $this->country_code, 'pid' => 0, 'isshow' => 1, 'stat' => 0])->order(['sort' => 'asc'])->select();
$value['cate_list'] = $cate_list;
$value['seo_title'] = config('article_seo_title')? : config('website_seo_title');
$value['seo_keyword'] = config('article_seo_keyword')? : config('website_seo_keyword');
$value['seo_description'] = config('article_seo_description')? : config('website_seo_description');
$this->assign($value);
$this->assign('search',$search);
return $this->fetch();
}
public function catelists($id = 0) {
if ($id > 0) {
$category = Loader::model('ArticleCategory')->getRow($id);
}
if (empty($category)) {
return exception('数据有误,请检查后再操作');
}
$arg_where = ['cid' => $id, 'a.country_code' => $this->country_code];
$skeyword = $this->request->get('skeyword', '', 'urldecode,strval');
if ($skeyword != '') {
$skeyword = trim($skeyword);
$search['skeyword'] = $skeyword;
$arg_where['a.name'] = ['like', '%' . $search['skeyword'] . '%'];
Config::set('paginate.query', ['skeyword' => $skeyword]); //分页参数
$value['search'] = $search;
}
switch ($category['classtype']) {
case 2:
$template = $category['templist'];
$arg_order = ['a.createtime' => 'desc'];
$arg_field = ['a.id', 'a.cid', 'a.name', 'a.jump_link', 'a.sort', 'a.headline', 'a.ishot', 'a.recommend', 'a.writer', 'a.source', 'a.viewcount', 'a.zancount', 'a.commentcount', 'a.description', 'a.picture', 'a.tags', 'a.createtime', 'c.id' => 'categoryid', 'c.name' => 'categoryname'];
$dataObject = Loader::model('Article')->getCateArticleLists($arg_where, $arg_order, $arg_field, 12);
$value = [
'list' => $dataObject->isEmpty() ? null : $dataObject->items(), //$dataObject->getCollection()->toArray()
'page' => $dataObject->render(),
];
break;
case 3:
header('location:' . $category['url']);
exit;
break;
default:
$template = $category['tempindex'];
break;
}
$cate_list = model('article_category')->where(['country_code' => $this->country_code, 'pid' => 0, 'isshow' => 1, 'stat' => 0])->order(['sort' => 'asc'])->select();
$value['cate_list'] = $cate_list;
$value['category'] = $category;
$value['seo_title'] = $category['seo_title']? : config('website_seo_title');
$value['seo_keyword'] = $category['seo_keyword']? : config('website_seo_keyword');
$value['seo_description'] = $category['seo_description']? : config('website_seo_description');
$this->assign($value);
return $this->fetch($template);
}
public function detail($id = 0) {
if ($id > 0) {
//$jssdk=new \JsSdk\JsSdk('wx0d4ac6d59abca442','8103022bb6ed902eb5c685800a78fd51');
//$signPackage = $jssdk->getSignPackage();
//$this->assign('singpackage',$signPackage);
$article = Loader::model('Article')->getRow($id);
if (empty($article)) {
return exception('数据有误,请检查后再操作');
}
//$addarticle = Loader::model('ArticleAddition')->getRow(['aid' => $article['id']]);
$category = Loader::model('ArticleCategory')->getRow($article['cid']);
if (empty($category)) {
return exception('数据有误,请检查后再操作');
}
$template = $category['tempdetail'];
//$prev_detail = Loader::model('Article')->getRow(['id' => ['gt', $id], 'cid' => $category['id'], 'stat' => 0], ['id', 'name'], ['id' => 'asc']);
//$next_detail = Loader::model('Article')->getRow(['id' => ['lt', $id], 'cid' => $category['id'], 'stat' => 0], ['id', 'name'], ['id' => 'desc']);
$value = [
'detail' => $article,
//'addarticle' => $addarticle,
'category' => $category,
//'prev_detail' => $prev_detail,
//'next_detail' => $next_detail,
];
//$topid = Loader::model('ArticleCategory')->getTopParentID($article['cid']);
//$value['topid'] = $topid;
$arg_where = ['content_id' => $id, 'stat' => 0, 'display' => 1];
$arg_order = ['createtime' => 'desc'];
$arg_field = ['*'];
$dataObject = Loader::model('Pinglun')->getPageList($arg_where, $arg_order, $arg_field, 5);
//header('content-type:text/html;charset=utf-8;');
$value['list'] = $dataObject->isEmpty() ? null : $dataObject->items();
$value['total'] = $dataObject->total();
$value['seo_title'] = $article['seo_title']? : $article['name'] . '-' . config('website_seo_title');
$value['seo_keyword'] = $article['seo_keyword']? : config('website_seo_keyword');
$value['seo_description'] = $article['seo_description']? : config('website_seo_description');
$this->assign($value);
$this->viewcount($id);
return $this->fetch($template);
} else {
return exception('数据有误,请检查后再操作');
}
}
public function zan($id = 0) {
$id = intval($id);
if ($id > 0) {
$article = Loader::model('Article')->getRow(['id' => $id], ['id', 'zancount']);
if (empty($article)) {
return $this->error('Error');
}
$article['zancount'] = $article['zancount'] + 1;
$result = $article->save();
if ($result) {
return $this->success('Zan', null, $article['zancount']);
} else {
return $this->error('Zan Error');
}
}
return $this->error('Error');
}
protected function viewcount($id) {
$view = Cookie::get('articleview', 'history'); //print_r($history);exit;
if (empty($view) || $view != $id) {
Loader::model('Article')->where(['id' => $id])->setInc('viewcount');
Cookie::set('articleview', $id, ['prefix' => 'history', 'expire' => 3600]);
}
}
protected function historyarticle($id) {
$article = Cookie::get('article', 'history'); //print_r($history);exit;
if (isset($article) && !empty($article)) {
$article_ids = explode(',', $article);
if ($article_ids[0] != $id) {
array_unshift($article_ids, $id);
$article_ids = array_unique($article_ids);
$num = Config::get('history_number') > 0 ? Config::get('history_number') : 10;
//$article_ids = array_slice($article_ids, 0, $num);
while (count($article_ids) > $num) {
array_pop($article_ids);
}
Cookie::set('article', implode(',', $article_ids), ['prefix' => 'history', 'setcookie' => true, 'expire' => 3600 * 24 * 30]);
}
} else {
Cookie::set('article', $id, ['prefix' => 'history', 'setcookie' => true, 'expire' => 3600 * 24 * 30]);
}
}
//添加留言 2024-03-01 Martin
public function addcomment()
{
$data = $this->request->post();
if (empty($data) || !is_array($data))
return $this->json(403, 'Data error ');
if (trim($data['name']) == '')
return $this->json(403-2, 'Name cannot be empty');
if (trim($data['email']) == '')
return $this->json(403-4, 'Email cannot be empty');
if (trim($data['comment']) == '')
return $this->json(403-5, 'Comment cannot be empty');
// if ($data['buy_source'] == '')
// return $this->json(-5, '购买渠道不能为空');
/*if ($data['customer_telephone'] != '' && !preg_match("/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/", $data['customer_telephone']))
return $this->json(-6, 'Phone format error ');*/
if ($data['email'] != '' && !preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/", $data['email']))
return $this->json(403-6, 'Email Address format error');
$insert_data = [
'article_id' => trim($data['article_id']),
'name' => trim($data['name']),
'email' => trim($data['email']),
'content' => trim($data['comment']),
'add_time' => date("Y-m-d H:i:s",time()),
'siteid' => $this->siteid,
'country_code' => $this->country_code,
];
$result = model('article_comment')->insert($insert_data);
if (!$result)
return $this->json(201, 'Failure to submit');
return $this->json(200, 'ok');
}
}

View File

@@ -0,0 +1,31 @@
<?php
namespace app\index\controller;
use think\Lang;
use think\Loader;
use think\Config;
use app\common\controller\BaseController;
class Authcode extends BaseController {
public function index($id = "") {
$verify = new \verify\Verify((array) Config::get('captcha'));
return $verify->entry($id);
}
/**
* 验证码
*/
public function check($code, $id = '') {
return $this->verify_check($code, $id);
}
/**
* 验证码
*/
public function verify($id = '') {
return $this->verify_build($id);
}
}

View File

@@ -0,0 +1,332 @@
<?php
namespace app\index\controller;
use think\Lang;
use think\Loader;
use think\Config;
use think\Session;
use think\Cookie;
use app\common\controller\BaseController as Controller;
//<!--#include file="([0-9a-zA-Z/._-]+?)\.html" -->
class BaseController extends Controller {
//当前用户
protected $customer_id = 0;
# 当前国家编码
protected $country_code = 'ZH';
public function __construct() {
parent::__construct();
}
// 初始化
protected function _initialize() {
parent::_initialize();
if ($this->check_true_login())
{
$customer_info = json_decode(Cookie::get('c'), true);
$this->view->assign('customer_info', $customer_info);
$this->customer_id = $customer_info['id'];
$this->customer_info = $customer_info;
}
else
{
$this->_logout();
}
$this->view->assign('seo_title', (string) Config::get('website_seo_title'));
$this->view->assign('seo_keyword', (string) Config::get('website_seo_keyword'));
$this->view->assign('seo_description', (string) Config::get('website_seo_description'));
// $this->categoryList = $this->cacheGet('productCategoryList');
if (empty($this->productCategory)) {
$this->categoryList = Loader::model('ProductCategory')->getList(['stat' => 0, 'siteid' => $this->siteid,'isshow'=>1, 'country_code' => $this->country_code], ['sort' => 'asc', 'id' => 'asc'], ['id', 'pid', 'haschild', 'name', 'shortname', 'sort', 'description', 'isshow', 'recommend', 'picture', 'icon', 'image', 'm_icon', 'unique_id']);
$this->cacheTag('ProductCategoryTag')->set('productCategoryList', $this->categoryList);
}
$this->productCategory = $this->list_to_tree($this->categoryList);
// tiaoshi($this->productCategory[0]['child'][0]['child']);die;
if ($this->cacheHas('country_list')) {
$this->country_list = $this->cacheGet('country_list');
} else {
$this->country_list = model('country')->where(['stat' => 0])->order(['sort' => 'asc'])->select();
$this->cacheSet('country_list', $this->country_list, 3600);
}
//搜索推荐产品
$search_views = Loader::model('Product')->where(['stat' => 0, 'siteid' => $this->siteid,'is_show'=>0, 'country_code' => $this->country_code])->limit(3)->order(['sort' => 'asc'])->select();
$this->view->assign('popular_list', $search_views);
//$historyList = getBannerList(79, 5);
$historyList = Loader::model('banner')->getList(['typeid'=>100,'stat' => 0, 'country_code' => COUNTRY_CODE], ['sort' => 'asc', 'id' => 'desc'], array('*'), 3);
$this->view->assign('historyList', $historyList);
$website_email = (string) Config::get('website_email');
$this->view->assign('website_email', $website_email);
$website_phone = (string) Config::get('website_phone');
$this->view->assign('website_phone', $website_phone);
//导航
$navigation =self::navInit();
$this->nav_header = $navigation['header'];
$this->nav_footer = $navigation['footer'];
$this->assign('nav_header', $this->nav_header);
$this->assign('nav_footer', $this->nav_footer);
$product_country_code = "products_".strtolower($this->country_code)."_color";
$productColor = config($product_country_code);
$this->view->assign('productColor', $productColor);
//echo $product_country_code."<pre>=="; print_r($productColor);die;
$this->view->assign('country_list', $this->country_list);
$this->view->assign('productCategory', $this->productCategory);
$this->view->assign('allCategoryList', $this->categoryList);
}
protected function buildTree($data, $pid = 0)
{
$tree = [];
foreach ($data as $val) {
if ($val['pid'] == $pid) {
$children = $this->buildTree($data, $val['id']);
if (!empty($children)) {
$val['items'] = $children;
}
$tree[] = $val;
}
}
return $tree;
}
/**
* nasNavigation 获取并组装nas专题页的top导航和footer
*/
protected function nasNavigation()
{
$navs = Loader::model('Navigation')->field([
'id',
'pid',
'name',
'url',
'value',
'data_type',
'is_new_window_open',
])
->where('stat', '=', 0)
->where('nav_type', '=', 'tops_nas_header')
->where('country_code', '=', $this->country_code)
->order('sort')
->select();
$navs_array = collection($navs)->toArray();
$header = $this->NavDataDealWith($navs_array);
$this->assign('nav_header', $this->buildTree($header));
}
//导航初始化
private function navInit(){
// 读取缓存数据
//$header = $this->cacheGet('cache_common_nav_header_key');
//$footer = $this->cacheGet('cache_common_nav_footer_key');
// 导航模型
$field = array('id', 'pid', 'name', 'url', 'value', 'data_type', 'is_new_window_open');
// 缓存没数据则从数据库重新读取,顶部菜单
//if(empty($header))
//{
$headerData = Loader::model('Navigation')->field($field)->where(array('nav_type'=>'header', 'stat'=>0, 'pid'=>0, 'country_code' => $this->country_code))->order('sort')->select();
$header = self::navDataDealWith($headerData);
if(!empty($header))
{
foreach($header as &$v)
{
$childData = Loader::model('Navigation')->field($field)->where(array('nav_type'=>'header', 'stat'=>0, 'pid'=>$v['id'], 'country_code' => $this->country_code))->order('sort')->select();
$v['items'] = self::navDataDealWith($childData);
}
}
//$this->cacheSet('cache_common_nav_header_key', $header, 3600);
//}
// 底部导航
//if(empty($footer))
//{
$footerdata = Loader::model('Navigation')->field($field)->where(array('nav_type'=>'footer', 'stat'=>0, 'pid'=>0, 'country_code' => $this->country_code))->order('sort')->select();
$footer = self::navDataDealWith($footerdata);
if(!empty($footer))
{
foreach($footer as &$v)
{
$childData = Loader::model('Navigation')->field($field)->where(array('nav_type'=>'footer', 'stat'=>0, 'pid'=>$v['id'], 'country_code' => $this->country_code))->order('sort')->select();
$v['items'] = self::navDataDealWith($childData);
}
}
//$this->cacheSet('cache_common_nav_footer_key', $footer, 3600);
//}
return [
'header' => $header,
'footer' => $footer,
];
}
/**
* [NavDataDealWith 导航数据处理]
* @author martin
* @version 0.0.1
* @datetime 2023-11-23T21:36:46+0800
* @param [array] $data [需要处理的数据]
* @return [array] [处理好的数据]
*/
public function NavDataDealWith($data)
{
if(!empty($data) && is_array($data))
{
foreach($data as $k=>&$v)
{
// url处理
switch($v['data_type'])
{
// 文章分类
case 'article':
$v['url'] = 'article/detail/'.$v['value'].'.html';
break;
// 博客
case 'blog':
$v['url'] = 'index/blog/detail/id/'.$v['value'].'.html';
break;
// 商品分类
case 'goods_category':
$category = Loader::model('ProductCategory')->getRow(['stat' => 0, 'id' => $v['value'], 'country_code' => $this->country_code], null, ['id' => 'asc']);
//echo $category['pid']."<pre>=="; print_r($category);
if($category['pid'] == 0) {
$v['url'] = 'product/catelists/'.$v['value'].'.html';
}
else{
$v['url'] = 'product/subcategory/'.$v['value'].'.html';
}
break;
}
$data[$k] = $v;
}
}
return $data;
}
/**
* 节点遍历
* @param $list
* @param string $pk
* @param string $pid
* @param string $child
* @param int $root
* return array
*/
protected function list_to_tree($list, $pk = 'id', $pid = 'pid', $child = 'child', $root = 0) {
//header('content-type:text/html;charset=utf-8;');
// 创建Tree
$tree = [];
if (is_array($list)) {
// 创建基于主键的数组引用
$refer = [];
foreach ($list as $key => $data) {
$list[$key] = $data->toArray();
$refer[$data[$pk]] = & $list[$key];
}
foreach ($list as $key => $data) {
// 判断是否存在parent
$parentId = $data[$pid];
if ($root == $parentId) {
$tree[] = & $list[$key];
} else {
if (isset($refer[$parentId])) {
$parent = & $refer[$parentId];
$parent[$child][] = & $list[$key];
}
}
}
}
return $tree;
}
private function check_login_token($customer_id, $curr_time, $p)
{
$expire = 86400 * 30;
if (time() - $curr_time > $expire)
return false;
$temp_p = $this->make_pwd($customer_id, $curr_time);
if ($temp_p !== $p)
{
return false;
}
return true;
}
protected function set_login_token($customer_info)
{
$curr_time = time();
$p = $this->make_pwd($customer_info['id'], $curr_time);
$customer_info['telephone'] = $customer_info['telephone'] != '' ? substr_replace($customer_info['telephone'], '****', 3, 4) : '';
$customer_info['email'] = $customer_info['email'] != '' ? substr_replace($customer_info['email'], '****', 2, 6) : '';
$customer_info['have_pwd'] = $customer_info['password'] != '' ? 1 : 0;
unset($customer_info['password']);
$customer_info['ct'] = $curr_time;
$customer_info['p'] = $p;
$expire = 86400 * 30;
Cookie::init(['expire' => $expire]);
Cookie::set('c', $customer_info);
}
private function make_pwd($customer_id, $curr_time)
{
$salt = 'Orico2019.';
$p = md5(md5($customer_id . $curr_time . $salt));
return $p;
}
private function check_login()
{
return Cookie::has('c');
}
protected function check_true_login()
{
// 校验用户是否登录,且校验cookie合法性
if (!$this->check_login())
{
return false;
}
$customer_info = json_decode(Cookie::get('c'), true);
$ct = isset($customer_info['ct']) ? $customer_info['ct'] : '';
$p = isset($customer_info['p']) ? $customer_info['p'] : '';
return $this->check_login_token($customer_info['id'], $ct, $p);
}
protected function _logout()
{
if (Cookie::has('c'))
Cookie::delete('c');
$this->customer_id = 0;
}
}

View File

@@ -0,0 +1,168 @@
<?php
namespace app\index\controller;
use think\Lang;
use think\Loader;
use think\Config;
use think\Session;
use think\Cookie;
use app\common\controller\BaseController as Controller;
//<!--#include file="([0-9a-zA-Z/._-]+?)\.html" -->
class BaseController extends Controller {
//当前用户
protected $customer_id = 0;
# 当前国家编码
protected $country_code = 'ZH';
public function __construct() {
parent::__construct();
}
// 初始化
protected function _initialize() {
parent::_initialize();
if ($this->check_true_login())
{
$customer_info = json_decode(Cookie::get('c'), true);
$this->view->assign('customer_info', $customer_info);
$this->customer_id = $customer_info['id'];
$this->customer_info = $customer_info;
}
else
{
$this->_logout();
}
$this->view->assign('seo_title', (string) Config::get('website_seo_title'));
$this->view->assign('seo_keyword', (string) Config::get('website_seo_keyword'));
$this->view->assign('seo_description', (string) Config::get('website_seo_description'));
// $this->categoryList = $this->cacheGet('productCategoryList');
if (empty($this->productCategory)) {
$this->categoryList = Loader::model('ProductCategory')->getList(['stat' => 0, 'siteid' => $this->siteid,'isshow'=>1, 'country_code' => $this->country_code], ['sort' => 'asc', 'id' => 'asc'], ['id', 'pid', 'haschild', 'name', 'shortname', 'sort', 'description', 'isshow', 'recommend', 'picture', 'icon', 'image', 'unique_id']);
$this->cacheTag('ProductCategoryTag')->set('productCategoryList', $this->categoryList);
}
$this->productCategory = $this->list_to_tree($this->categoryList);
if ($this->cacheHas('country_list')) {
$this->country_list = $this->cacheGet('country_list');
} else {
$this->country_list = model('country')->where(['stat' => 0])->order(['sort' => 'asc'])->select();
$this->cacheSet('country_list', $this->country_list, 3600);
}
$this->view->assign('country_list', $this->country_list);
$this->view->assign('productCategory', $this->productCategory);
$this->view->assign('allCategoryList', $this->categoryList);
}
/**
* 节点遍历
* @param $list
* @param string $pk
* @param string $pid
* @param string $child
* @param int $root
* return array
*/
protected function list_to_tree($list, $pk = 'id', $pid = 'pid', $child = 'child', $root = 0) {
//header('content-type:text/html;charset=utf-8;');
// 创建Tree
$tree = [];
if (is_array($list)) {
// 创建基于主键的数组引用
$refer = [];
foreach ($list as $key => $data) {
$list[$key] = $data->toArray();
$refer[$data[$pk]] = & $list[$key];
}
foreach ($list as $key => $data) {
// 判断是否存在parent
$parentId = $data[$pid];
if ($root == $parentId) {
$tree[] = & $list[$key];
} else {
if (isset($refer[$parentId])) {
$parent = & $refer[$parentId];
$parent[$child][] = & $list[$key];
}
}
}
}
return $tree;
}
private function check_login_token($customer_id, $curr_time, $p)
{
// 校验登录的合法性
$tmp_p = $this->make_pwd($customer_id, $curr_time);
if ($tmp_p !== $p)
{
return false;
}
return true;
}
protected function set_login_token($customer_info)
{
$curr_time = time();
$p = $this->make_pwd($customer_info['id'], $curr_time);
$expire = 86400 * 30;
Cookie::init(['expire' => $expire]);
Cookie::set('p', $p);
Cookie::set('c', $customer_info);
Cookie::set('ct', $curr_time);
return;
}
private function make_pwd($customer_id, $curr_time)
{
$salt = 'Orico2019.';
$p = md5(md5($customer_id . $curr_time . $salt));
return $p;
}
private function check_login()
{
// 有cookie默认为已登录, 不校验cookie的合法性
return Cookie::has('p') && Cookie::has('c') && Cookie::has('ct');
}
protected function check_true_login()
{
// 校验用户是否登录,且校验cookie合法性
if (!$this->check_login())
{
$this->_logout();
return false;
}
$customer_info = json_decode(Cookie::get('c'), true);
$curr_time = Cookie::get('ct');
$p = Cookie::get('p');
return $this->check_login_token($customer_info['id'], $curr_time, $p);
}
protected function _logout()
{
if (Cookie::has('p'))
Cookie::delete('p');
if (Cookie::has('c'))
Cookie::delete('c');
if (Cookie::has('ct'))
Cookie::delete('ct');
$this->customer_id = 0;
return;
}
}

221
app/index/controller/Blog.php Executable file
View File

@@ -0,0 +1,221 @@
<?php
namespace app\index\controller;
use think\Loader;
use think\Cookie;
use think\Config;
use think\Db;
class Blog extends BaseController {
public function index() {
$data = $this->request->param();
$arg_where = ['siteid' => $this->siteid,'stat' => 1, 'country_code' => $this->country_code,'public_time'=>['<=',date("Y-m-d")]];
$search = array();
if (isset($data['name']) && $data['name'] != ''){
$arg_where['title'] = ['like', "%$data[name]%"];
$search['name'] = $data['name'];
}
$arg_order = ['is_top'=>'desc','id' => 'desc'];
$arg_field = ['*'];
$dataObject = Loader::model('blog')->getBlogLists($arg_where, $arg_order, $arg_field, 12);
//echo Loader::model('blog')->getLastsql();
//echo "<pre>====22222222======"; print_r($dataObject);die;
$value = [
'list' => $dataObject->isEmpty() ? null : $dataObject->items(), //$dataObject->getCollection()->toArray()
'page' => $dataObject->render(),
];
$value['seo_title'] = config('article_seo_title')? : config('website_seo_title_us');
$value['seo_keyword'] = config('article_seo_keyword')? : config('website_seo_keyword');
$value['seo_description'] = config('article_seo_description')? : config('website_seo_description');
$this->assign($value);
$this->assign('search',$search);
return $this->fetch();
}
public function blog() {
$data = $this->request->param();
$arg_where = ['siteid' => $this->siteid,'stat' => 1, 'country_code' => $this->country_code,'public_time'=>['<=',date("Y-m-d")]];
$search = array();
if (isset($data['name']) && $data['name'] != ''){
$arg_where['title'] = ['like', "%$data[name]%"];
$search['name'] = $data['name'];
}
$arg_order = ['is_top'=>'desc','id' => 'desc'];
$arg_field = ['*'];
$dataObject = Loader::model('blog')->getBlogLists($arg_where, $arg_order, $arg_field, 12);
//echo Loader::model('blog')->getLastsql();
//echo "<pre>====22222222======"; print_r($dataObject);die;
$value = [
'list' => $dataObject->isEmpty() ? null : $dataObject->items(), //$dataObject->getCollection()->toArray()
'page' => $dataObject->render(),
];
$value['seo_title'] = config('article_seo_title')? : config('website_seo_title_us');
$value['seo_keyword'] = config('article_seo_keyword')? : config('website_seo_keyword');
$value['seo_description'] = config('article_seo_description')? : config('website_seo_description');
$this->assign($value);
$this->assign('search',$search);
return $this->fetch();
}
public function detail($id = 0) {
if ($id > 0) {
$blog = Loader::model('Blog')->getRow($id);
if (empty($blog)) {
return exception('数据有误,请检查后再操作');
}
//echo "<pre>====6666======".$id; print_r($blog); die;
$arg_where = ['blog_remark.b_id' => $id, 'blog_remark.stat' => 1];
$arg_order = ['blog_remark.id' => 'desc'];
$arg_field = ['blog_remark.*'];
$dataObject = Loader::model('blog')->getRemarkList($arg_where, $arg_order, $arg_field, 10);
$value['list'] = $dataObject->isEmpty() ? null : $dataObject->items();
$value['total'] = $dataObject->total();
$value['page'] = $dataObject->render();
$value['seo_title'] = $blog['seo_title']? : $blog['title'] . '-' . config('website_seo_title');
$value['seo_keyword'] = $blog['seo_keyword']? : config('website_seo_keyword');
$value['seo_description'] = $blog['seo_description']? : config('website_seo_description');
$this->assign($value);
$this->assign('blog', $blog);
$this->viewcount($id);
//return $this->fetch($template);
$disCount = $dataObject->isEmpty() ? null : count($dataObject->items());
if($disCount) {
$counts = get_rand_number(1,10,$disCount);
$this->assign('counts', $counts);
}
$curUrl = 'https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$this->assign('curUrl', $curUrl);
return $this->fetch();
} else {
return exception('数据有误,请检查后再操作');
}
}
public function details($id = 0) {
if ($id > 0) {
$blog = Loader::model('Blog')->getRow($id);
if (empty($blog)) {
return exception('数据有误,请检查后再操作');
}
$jssdk=new \JsSdk\JsSdk('wx0d4ac6d59abca442','c482b3f5d1354533e9e14ad294016551');
//$jssdk=new \JsSdk\JsSdk('wxe44444f1f65fe4a6','a8c6a5a40572829da61a9c945ae6a0cd'); //测试账户
$signPackage = $jssdk->getSignPackage();
$this->assign('singpackage',$signPackage);
$arg_where = ['blog_remark.b_id' => $id, 'blog_remark.stat' => 1];
$arg_order = ['blog_remark.id' => 'desc'];
$arg_field = ['blog_remark.*'];
$dataObject = Loader::model('blog')->getRemarkList($arg_where, $arg_order, $arg_field, 10);
$value['list'] = $dataObject->isEmpty() ? null : $dataObject->items();
$value['total'] = $dataObject->total();
$value['page'] = $dataObject->render();
$value['seo_title'] = $blog['seo_title']? : $blog['title'] . '-' . config('website_seo_title');
$value['seo_keyword'] = $blog['seo_keyword']? : config('website_seo_keyword');
$value['seo_description'] = $blog['seo_description']? : config('website_seo_description');
$this->assign($value);
$this->assign('blog', $blog);
$this->viewcount($id);
//return $this->fetch($template);
$disCount = $dataObject->isEmpty() ? null : count($dataObject->items());
if($disCount) {
$counts = get_rand_number(1,10,$disCount);
$this->assign('counts', $counts);
}
$curUrl = 'https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$this->assign('curUrl', $curUrl);
return $this->fetch();
} else {
return exception('数据有误,请检查后再操作');
}
}
protected function viewcount($id) {
$view = Cookie::get('blogview', 'history'); //print_r($history);exit;
if (empty($view) || $view != $id) {
Loader::model('blog')->where(['id' => $id])->setInc('visit_count');
Cookie::set('blogview', $id, ['prefix' => 'history', 'expire' => 3600]);
}
}
//添加评论 2021-06-01 Martin
public function addcomment()
{
$data = $this->request->post();
if (empty($data) || !is_array($data))
return $this->json(403, 'Data error ');
if (trim($data['name']) == '')
return $this->json(403-2, 'Name cannot be empty');
if (trim($data['email']) == '')
return $this->json(403-4, 'Email cannot be empty');
if (trim($data['comment']) == '')
return $this->json(403-5, 'Comment cannot be empty');
// if ($data['buy_source'] == '')
// return $this->json(-5, '购买渠道不能为空');
/*if ($data['customer_telephone'] != '' && !preg_match("/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/", $data['customer_telephone']))
return $this->json(-6, 'Phone format error ');*/
if ($data['email'] != '' && !preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/", $data['email']))
return $this->json(403-6, 'Email Address format error');
$insert_data = [
'b_id' => trim($data['b_id']),
'name' => trim($data['name']),
'email' => trim($data['email']),
'content' => trim($data['comment']),
'add_time' => date("Y-m-d H:i:s",time()),
'siteid' => $this->siteid,
'country_code' => $this->country_code,
];
$result = model('blog_remark')->insert($insert_data);
if (!$result)
return $this->json(201, 'Failure to submit');
return $this->json(200, 'ok');
}
}

259
app/index/controller/Bulk.php Executable file
View File

@@ -0,0 +1,259 @@
<?php
namespace app\index\controller;
use think\Loader;
use think\Cookie;
use think\Config;
use think\Session;
class Bulk extends BaseController {
public function Bulk() {
return $this->view->fetch();
}
public function detail($id = 0) {
if ($id > 0) {
return $this->fetch();
} else {
return exception('数据有误,请检查后再操作');
}
}
/**
* 联系我们留言
* @author: Martin
* @email 1541350712@qq.com
* @version 1.0.0
* @date 2024-02-01
* @desc description
* @param [array] $params [输入参数]
*/
public function create()
{
$data = $this->request->post();
if (empty($data) || !is_array($data))
return $this->json(403, 'Data error ');
if ($data['username'] == '')
return $this->json(403-3, 'Your name cannot be empty');
if ($data['email'] == '')
return $this->json(403-4, 'Email cannot be empty');
$referer = isset($data['refer']) ? $data['refer'] : '';
$url = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
$searchFeed = getKeywords($referer);
$channel = isset($searchFeed['channel']) ? $searchFeed['channel'] : '';
$keyword = isset($searchFeed['search']) ? $searchFeed['search'] : '';
$fed = visitLog();
$insert_data = [
'first_name' => $data['username'],
'email' => $data['email'],
'message' => $data['message'],
'ip' => get_ip(),
'refer_url' => $_SERVER["HTTP_REFERER"],
'createtime' => date("Y-m-d H:i:s"),
'siteid' => $this->siteid,
'country_code' => $this->country_code,
'refer' => $referer,
'url' => $url,
'channels' => $channel,
'keyword' => $keyword,
'state' => $fed['country'],
'province' => $fed['province'],
'city' => $fed['city'],
'drvice' => $fed['drive'],
'user_agent' => $fed['system']." ".$fed['brower'],
];
$result = model('Bulk')->insert($insert_data);
if (!$result)
return $this->json(201, 'Failure to submit');
return $this->json(200, 'ok');
}
/**
* 商务订单 - 批量采购
* @author: Martin
* @email 1541350712@qq.com
* @version 1.0.0
* @date 2024-02-01
* @desc description
* @param [array] $params [输入参数]
*/
public function inquiry()
{
$data = $this->request->post();
if (empty($data) || !is_array($data))
return $this->json(403, 'Data error ');
if ($data['company'] == '')
return $this->json(403-2, 'Company name cannot be empty');
if ($data['name'] == '' && $data['last_name'])
return $this->json(403-3, 'Your name cannot be empty');
if ($data['email'] == '')
return $this->json(403-4, 'Email cannot be empty');
// if ($data['buy_source'] == '')
// return $this->json(-5, '购买渠道不能为空');
/*if ($data['customer_telephone'] != '' && !preg_match("/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/", $data['customer_telephone']))
return $this->json(-6, 'Phone format error ');*/
if ($data['email'] != '' && !preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/", $data['email']))
return $this->json(403-6, 'Email Address format error');
$referer = isset($data['refer']) ? $data['refer'] : '';
$url = isset($data['url']) ? $data['url'] : '';
$searchFeed = getKeywords($referer);
$channel = isset($searchFeed['channel']) ? $searchFeed['channel'] : '';
$keyword = isset($searchFeed['search']) ? $searchFeed['search'] : '';
$fed = visitLog();
$insert_data = [
'company' => $data['company'],
'first_name' => $data['name'],
'last_name' => $data['last_name'],
'email' => $data['email'],
'phone' => trim($data['phone']),
'interest' => $data['interested'],
'message' => $data['message'],
'url' => $data['url'],
'ip' => get_ip(),
'refer_url' => $_SERVER["HTTP_REFERER"],
'createtime' => date("Y-m-d H:i:s"),
'siteid' => $this->siteid,
'country_code' => $this->country_code,
'refer' => $referer,
'uri' => $url,
'channel' => $channel,
'keyword' => $keyword,
'ip' => $fed['ip'],
'state' => isset($fed['country']) ? $fed['country'] : '',
'province' => isset($fed['province']) ? $fed['province'] : '',
'city' => isset($fed['city']) ? $fed['city'] : '',
'drvice' => isset($fed['drive']) ? $fed['drive'] : '',
'user_agent' => $fed['system']." ".$fed['brower'],
];
$result = model('bulk_inquiry')->insert($insert_data);
if (!$result)
return $this->json(201, 'Failure to submit');
return $this->json(200, 'ok');
}
/**
* 代理商申请 Distributor
* @author: Martin
* @email 1541350712@qq.com
* @version 1.0.0
* @date 2024-02-01
* @desc description
* @param [array] $params [输入参数]
*/
public function agents()
{
$data = $this->request->post();
if (empty($data) || !is_array($data))
return $this->json(403, 'Data error ');
if ($data['company'] == '')
return $this->json(403-2, 'Company name cannot be empty');
/*if ($data['name'] == '' && $data['last_name'])
return $this->json(403-3, 'Your name cannot be empty');*/
if ($data['email'] == '')
return $this->json(403-4, 'Email cannot be empty');
/*if ($data['country'] == '')
return $this->json(403-5, 'Distribution region cannot be empty');*/
if ($data['business_type'] == '')
return $this->json(403-6, 'Business type cannot be empty');
if ($data['enterprise_size'] == '')
return $this->json(403-7, 'Enterprise size cannot be empty');
if ($data['phone'] == '')
return $this->json(403-8, 'Phone cannot be empty');
// if ($data['buy_source'] == '')
// return $this->json(-5, '购买渠道不能为空');
/*if ($data['customer_telephone'] != '' && !preg_match("/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/", $data['customer_telephone']))
return $this->json(-6, 'Phone format error ');*/
if ($data['email'] != '' && !preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/", $data['email']))
return $this->json(403-6, 'Email Address format error');
$referer = isset($data['refer']) ? $data['refer'] : '';
$url = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
$searchFeed = getKeywords($referer);
$channel = isset($searchFeed['channel']) ? $searchFeed['channel'] : '';
$keyword = isset($searchFeed['search']) ? $searchFeed['search'] : '';
$fed = visitLog();
$insert_data = [
'company' => $data['company'],
'uri' => $data['uri'],
'email' => $data['email'],
'phone' => trim($data['phone']),
'address' => isset($data['address']) ? $data['address'] : '',
'message' => isset($data['message']) ? $data['message'] : '',
'enterprise_size' => isset($data['interested']) ? $data['interested'] : $data['message'],
'business_type' => isset($data['business_type']) ? $data['business_type'] : '',
'createtime' => date("Y-m-d H:i:s"),
'siteid' => $this->siteid,
'country_code' => $this->country_code,
'message' => isset($data['message']) ? $data['message'] : '',
'refer' => $referer,
'url' => $url,
'channel' => $channel,
'keyword' => $keyword,
'ip' => $fed['ip'],
'state' => $fed['country'],
'province' => $fed['province'],
'city' => $fed['city'],
'drvice' => $fed['drive'],
'user_agent' => $fed['system']." ".$fed['brower'],
'refer' => $referer,
'url' => $url,
'channel' => $channel,
'keyword' => $keyword,
'ip' => $fed['ip'],
'state' => $fed['country'],
'province' => $fed['province'],
'city' => $fed['city'],
'drvice' => $fed['drive'],
'user_agent' => $fed['system']." ".$fed['brower'],
];
$result = model('agents')->insert($insert_data);
if (!$result)
return $this->json(201, 'Failure to submit');
return $this->json(200, 'ok');
}
}

View File

@@ -0,0 +1,37 @@
<?php
/**
* Created by PhpStorm.
* User: ORICO
* Date: 2018-12-10
* Time: 13:48
*/
namespace app\index\controller;
use think\Controller;
use think\Session;
class ClickSum extends Controller {
public function add_click() {
$data = $this->request->post();
// tiaoshi($data);die;
if (empty($data) || !is_array($data)) {
return $this->json(-1, '数据错误');
}
$insert_data = [
'content_id' => $data['content_id'],
'type' => $data['type'],
'customer_id' => $data['customer_id'],
'country_code' => $data['country_code'],
'url' => $data['url'],
'click_ip' => get_ip(),
'create_time' => date('Y-m-d H:i:s')
];
model('click_sum')->insert($insert_data);
}
}

View File

@@ -0,0 +1,96 @@
<?php
namespace app\index\controller;
class Collection extends BaseController {
public function add_collection()
{
$data = $this->request->post();
if ($this->customer_id <= 0)
{
$param = [];
if (isset($data['curr_url']))
{
$param['url'] = $data['curr_url'];
}
return $this->json(-1000, '请先登录', $param);
}
if (empty($data) || !is_array($data))
{
return $this->json(-1, '数据格式错误');
}
$where = [
'customer_id' => $this->customer_id,
'type' => $data['type'],
'coll_id' => $data['coll_id'],
'stat' => 0
];
$is_collection = model('collection')->where($where)->find();
if (!empty($is_collection))
{
return $this->json(200, '已经收藏过啦');
}
$insert_data = [
'customer_id' => $this->customer_id,
'type' => $data['type'],
'coll_id' => $data['coll_id'],
'create_time' => time(),
'stat' => 0
];
$result = model('collection')->insert($insert_data);
if (!$result)
{
return $this->json(-2, '收藏失败,请稍后再试');
}
return $this->json(200, '收藏成功');
}
public function cancel_collection()
{
$data = $this->request->post();
if ($this->customer_id <= 0)
{
$param = [];
if (isset($data['curr_url']))
{
$param['url'] = $data['curr_url'];
}
return $this->json(-1000, '请先登录', $param);
}
if (empty($data) || !is_array($data))
{
return $this->json(-1, '数据格式错误');
}
$where = [
'customer_id' => $this->customer_id,
'type' => $data['type'],
];
if (!is_array($data['coll_id']))
{
$where['coll_id'] = $data['coll_id'];
}
else
{
$where['coll_id'] = ['in', $data['coll_id']];
}
$result = model('collection')->where($where)->update(['stat' => 1]);
if (!$result)
{
return $this->json(-2, '取消失败,请稍后再试');
}
return $this->json(200, '取消成功');
}
}

1021
app/index/controller/Customer.php Executable file

File diff suppressed because it is too large Load Diff

352
app/index/controller/Download.php Executable file
View File

@@ -0,0 +1,352 @@
<?php
namespace app\index\controller;
use think\Config;
use think\Cookie;
use think\Loader;
class Download extends BaseController
{
public function get_filter() {
$dl_name = model('download')->field('name')->where(['stat' => 0, 'country_code' => $this->country_code])->select();
$data = [
'dl_name' => $dl_name,
];
return $this->json(200, 'ok', $data);
}
public function catelists()
{
$arg_where = [
'a.siteid' => $this->siteid,
'c.id' => 1,
];
$skeyword = $this->request->get('skeyword', '', 'urldecode,strval');
if ($skeyword != '') {
$skeyword = trim($skeyword);
$search['skeyword'] = $skeyword;
$arg_where['a.name|a.app_model'] = ['like', '%' . $search['skeyword'] . '%'];
Config::set('paginate.query', ['skeyword' => $skeyword]); //分页参数
$value['search'] = $search;
}
$arg_order = ['a.id' => 'desc'];
$arg_field = ['a.id', 'a.cid', 'a.name', 'a.sort', 'a.headline', 'a.ishot', 'a.recommend', 'a.app_model', 'a.support_os', 'a.format', 'a.viewcount', 'a.downloadcount', 'a.description', 'a.picture', 'a.tags', 'a.downloadpath', 'a.downloadpath64', 'a.createtime', 'c.id' => 'categoryid', 'c.name' => 'categoryname'];
$dataObject = Loader::model('Download')->getCateDownloadLists($arg_where, $arg_order, $arg_field, 12);
// echo \think\Db::table('download')->getLastSql(), '<hr>';
// tiaoshi($dataObject->items());die;
$value = [
'list' => $dataObject->isEmpty() ? null : $dataObject->items(),
'page' => $dataObject->render(),
];
if ($this->request->isAjax()) {
return $this->result($value, true, '下载列表');
}
$downloadCategory = Loader::model('DownloadCategory')->getList(['siteid' => $this->siteid, 'stat' => 0, 'pid' => 2], ['sort', 'id']);
// tiaoshi($downloadCategory);die;
$value['downloadCategory'] = $downloadCategory;
$value['skeyword'] = '';
$this->assign($value);
return $this->fetch();
}
public function detail($id = 0)
{
if ($id > 0) {
$detail = Loader::model('Download')->getRow($id);
if (empty($detail)) {
return exception('数据有误,请检查后再操作');
}
//$adddownload = Loader::model('DownloadAddition')->getRowAddition(['aid' => $detail['id']]);
$category = Loader::model('DownloadCategory')->getRow($detail['cid']);
if (empty($category)) {
return exception('数据有误,请检查后再操作');
}
$prev_detail = Loader::model('Download')->getRow(['id' => ['gt', $id], 'cid' => $category['id'], 'stat' => 0], ['id', 'name'], ['id' => 'asc']);
$next_detail = Loader::model('Download')->getRow(['id' => ['lt', $id], 'cid' => $category['id'], 'stat' => 0], ['id', 'name'], ['id' => 'desc']);
$value = [
'detail' => $detail,
//'adddownload' => $adddownload,
'category' => $category,
'prev_detail' => $prev_detail,
'next_detail' => $next_detail,
];
$value['seo_title'] = $detail['seo_title'] ?: $detail['name'] . '-' . config('website_seo_title');
$value['seo_keyword'] = $detail['seo_keyword'] ?: config('website_seo_keyword');
$value['seo_description'] = $detail['seo_description'] ?: config('website_seo_description');
$this->assign($value);
$this->viewcount($id);
return $this->fetch();
} else {
return exception('数据有误,请检查后再操作');
}
}
public function download($id = 0, $bit = 0)
{
$id = intval($id);
$bit = intval($bit);
if ($id > 0) {
$detail = Loader::model('Download')->getRow($id);
if (empty($detail)) {
return exception('数据有误,请检查后再操作');
}
$docDir = request()->server('DOCUMENT_ROOT');
$rootDir = request()->root();
$directory = $docDir . $rootDir;
$downloadpath = explode(',', $detail['downloadpath']);
//$downloadpath64 = explode(',', $detail['downloadpath64']);
if (empty($downloadpath[$bit])) {
return exception('数据有误,请检查后再操作');
}
$fileinfo = pathinfo($downloadpath[$bit]);
$download = $directory . $downloadpath[$bit]; // 文件要下载的地址
Loader::model('Download')->updateRow(['downloadcount' => \think\Db::raw('`downloadcount`+1')], ['id' => $id]);
header('Content-type: application/octet-stream');
header('Content-Disposition: attachment; filename=' . $fileinfo['basename']);
header('Content-Length: ' . filesize($download));
ob_clean();
flush();
readfile($download);
exit();
} else {
return exception('数据有误,请检查后再操作');
}
}
public function dlcount($id = 0)
{
$id = intval($id);
if ($id > 0) {
$download = Loader::model('Download')->getRow(['id' => $id], ['id', 'downloadcount']);
if (empty($download)) {
return $this->error('Error');
}
$download['downloadcount'] = $download['downloadcount'] + 1;
$result = $download->save();
if ($result) {
return $this->success('Download', null, $download['downloadcount']);
} else {
return $this->error('Download Error');
}
}
return $this->error('Error');
}
public function prodownload($id = 0)
{
if ($id > 0) {
$detail = Loader::model('ProductDl')->getRow($id);
if (empty($detail)) {
return exception('数据有误,请检查后再操作');
}
$docDir = request()->server('DOCUMENT_ROOT');
$rootDir = request()->root();
$directory = $docDir . $rootDir;
$fileinfo = pathinfo($detail['dl_url']);
$file = $directory . $detail['dl_url']; // 文件要下载的地址
//在session里面存ip和id 查这个上次访问时间
$ip = $this->get_real_ip();
$name = 'ip_' . $ip . '_' . $id;
$time = time();
$dl = session($name);
//如果没有则创建session
if ($dl == '') {
$dl = session($name, $time);
}
$a = 180 - (time() - $dl);
if ($dl && time() - $dl < 180) {
return $this->error('操作过于频繁,请' . $a . '秒后再试');
}
// echo $file, '<hr>';
// var_dump(file_exists($file));echo '<hr>';
// echo filesize($file), '<hr>';
// echo 'Content-type: application/octet-stream', '<hr>';
// echo 'Content-Disposition: attachment; filename=' . $fileinfo['basename'], '<hr>';
// echo 'Content-Length: ' . filesize($file), '<hr>';
// die;
ini_set('memory_limit', '500M');
set_time_limit(0);
$dl = session($name, $time);
Loader::model('ProductDl')->updateRow(['dl_count' => \think\Db::raw('`dl_count`+1')], ['id' => $id]);
header('Content-type: application/octet-stream');
header('Content-Disposition: attachment; filename=' . $fileinfo['basename']);
header('Content-Length: ' . filesize($file));
readfile($file);
exit();
} else {
return exception('数据有误,请检查后再操作');
}
}
protected function viewcount($id)
{
$view = Cookie::get('downloadview', 'history'); //print_r($history);exit;
if (empty($view) || $view != $id) {
Loader::model('Download')->where(['id' => $id])->setInc('viewcount');
Cookie::set('downloadview', $id, ['prefix' => 'history', 'expire' => 3600]);
}
}
protected function historydownload($id)
{
$download = Cookie::get('download', 'history'); //print_r($history);exit;
if (isset($download) && !empty($download)) {
$download_ids = explode(',', $download);
if ($download_ids[0] != $id) {
array_unshift($download_ids, $id);
$download_ids = array_unique($download_ids);
$num = Config::get('history_number') > 0 ? Config::get('history_number') : 10;
//$download_ids = array_slice($download_ids, 0, $num);
while (count($download_ids) > $num) {
array_pop($download_ids);
}
Cookie::set('download', implode(',', $download_ids), ['prefix' => 'history', 'setcookie' => true, 'expire' => 3600 * 24 * 30]);
}
} else {
Cookie::set('download', $id, ['prefix' => 'history', 'setcookie' => true, 'expire' => 3600 * 24 * 30]);
}
}
public function catelists_down($id = 0)
{
//dump($id);die;
$arg_where = ['a.siteid' => $this->siteid];
if ($id > 0) {
$arg_where['cid'] = $id;
$category = Loader::model('DownloadCategory')->getRow($id);
}
if (empty($category)) {
return exception('数据有误,请检查后再操作');
}
$skeyword = $this->request->get('skeyword', '', 'urldecode,strval');
if ($skeyword != '') {
$skeyword = trim($skeyword);
$search['skeyword'] = $skeyword;
$arg_where['a.name|a.app_model'] = ['like', '%' . $search['skeyword'] . '%'];
Config::set('paginate.query', ['skeyword' => $skeyword]); //分页参数
$value['search'] = $search;
}
switch ($category['classtype']) {
case 2:
$template = $category['templist'];
$arg_order = ['a.id' => 'desc'];
$arg_field = ['a.id', 'a.cid', 'a.name', 'a.sort', 'a.headline', 'a.ishot', 'a.recommend', 'a.app_model', 'a.support_os', 'a.format', 'a.viewcount', 'a.downloadcount', 'a.description', 'a.picture', 'a.tags', 'a.downloadpath', 'a.downloadpath64', 'a.createtime', 'c.id' => 'categoryid', 'c.name' => 'categoryname'];
$dataObject = Loader::model('Download')->getCateDownloadLists($arg_where, $arg_order, $arg_field, 12);
$value = [
'list' => $dataObject->isEmpty() ? null : $dataObject->items(), //$dataObject->getCollection()->toArray()
'page' => $dataObject->render(),
];
if ($this->request->isAjax()) {
return $this->result($value, true, '下载列表');
}
$downloadCategory = Loader::model('DownloadCategory')->getList(['siteid' => $this->siteid, 'stat' => 0, 'pid' => 2], ['sort', 'id']);
$value['downloadCategory'] = $downloadCategory;
break;
case 3:
header('location:' . $category['url']);
exit;
break;
default:
$template = $category['tempindex'];
break;
}
$value['skeyword'] = '';
$value['category'] = $category;
$value['seo_title'] = $category['seo_title'] ?: config('website_seo_title');
$value['seo_keyword'] = $category['seo_keyword'] ?: config('website_seo_keyword');
$value['seo_description'] = $category['seo_description'] ?: config('website_seo_description');
$this->assign($value);
return $this->fetch($template);
}
public function index($id = 0)
{
$arg_where = ['a.siteid' => $this->siteid];
if ($id > 0) {
$arg_where['cid'] = $id;
$category = Loader::model('DownloadCategory')->getRow($id);
}
if (empty($category)) {
return exception('数据有误,请检查后再操作');
}
switch ($category['classtype']) {
case 2:
$template = $category['templist'];
$arg_order = ['a.id' => 'desc'];
$arg_field = ['a.id', 'a.cid', 'a.name', 'a.sort', 'a.headline', 'a.ishot', 'a.recommend', 'a.app_model', 'a.support_os', 'a.format', 'a.viewcount', 'a.downloadcount', 'a.description', 'a.picture', 'a.tags', 'a.downloadpath', 'a.downloadpath64', 'a.createtime', 'c.id' => 'categoryid', 'c.name' => 'categoryname'];
$dataObject = Loader::model('Download')->getCateDownloadLists($arg_where, $arg_order, $arg_field, 12);
$value = [
'list' => $dataObject->isEmpty() ? null : $dataObject->items(), //$dataObject->getCollection()->toArray()
'page' => $dataObject->render(),
];
if ($this->request->isAjax()) {
return $this->result($value, true, '下载列表');
}
$downloadCategory = Loader::model('DownloadCategory')->getList(['siteid' => $this->siteid, 'stat' => 0, 'pid' => 2], ['sort', 'id']);
$value['downloadCategory'] = $downloadCategory;
break;
case 3:
header('location:' . $category['url']);
exit;
break;
default:
$template = $category['tempindex'];
break;
}
$value['skeyword'] = '';
$value['category'] = $category;
$value['seo_title'] = $category['seo_title'] ?: config('website_seo_title');
$value['seo_keyword'] = $category['seo_keyword'] ?: config('website_seo_keyword');
$value['seo_description'] = $category['seo_description'] ?: config('website_seo_description');
$this->assign($value);
return $this->fetch($template);
}
function get_real_ip()
{
$ip = false;
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
$ip = $_SERVER['HTTP_CLIENT_IP'];
}
if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ips = explode(', ', $_SERVER['HTTP_X_FORWARDED_FOR']);
if ($ip) {
array_unshift($ips, $ip);
$ip = FALSE;
}
for ($i = 0; $i < count($ips); $i++) {
if (!eregi('^(10│172.16│192.168).', $ips[$i])) {
$ip = $ips[$i];
break;
}
}
}
return ($ip ? $ip : $_SERVER['REMOTE_ADDR']);
}
public function dlsearch($id)
{
$where = ['id' => $id];
$view = Loader::model('Download')->where($where)->find();
$category = Loader::model('DownloadCategory')->getRow();
$this->assign('view',$view);
$this->assign('category',$category);
return $this->fetch();
}
}

536
app/index/controller/Group.php Executable file
View File

@@ -0,0 +1,536 @@
<?php
/**
* Created by PhpStorm.
* User: ORICO
* Date: 2018-09-21
* Time: 17:36
*/
namespace app\index\controller;
use think\Loader;
class Group extends BaseController
{
public function index()
{
return $this->view->fetch();
}
public function odm()
{
return $this->view->fetch();
}
public function special()
{
return $this->view->fetch();
}
public function policy()
{
return $this->view->fetch();
}
public function culture()
{
return $this->view->fetch();
}
public function backup_treasure()
{
return $this->view->fetch();
}
public function pssd()
{
return $this->view->fetch();
}
public function question()
{
$data = $this->request->param();
$where = [
'a.stat' => 0,
'a.country_code' => $this->country_code,
];
$cid = isset($data['cid']) ? $data['cid'] : 0;
if ($cid)
$where['a.cid'] = $cid;
$search['keyword'] = '';
if (isset($data['keyword']) && $data['keyword'] != '')
{
$where['a.title'] = ['like', '%' . $data['keyword'] . '%'];
$search['keyword'] = $data['keyword'];
}
$order = [
'a.sort' => 'asc',
'a.id' => 'desc'
];
$field = ['a.*', 'b.name' => 'cate_name'];
$question_list = model('question')->alias('a')->join('question_category b', 'a.cid = b.id', 'LEFT')->where($where)->order($order)->field($field)->paginate(4);
// echo model('question')->getLastSql();die;
// tiaoshi($question_list->items());die;
$question_catelist = model('question_category')->where(['stat' => 0])->select();
$value = [
'question_list' => $question_list->isEmpty() ? null : $question_list->items(),
'page' => $question_list->render(),
'cid' => $cid,
'search' => $search,
'question_catelist' => $question_catelist
];
$this->assign($value);
return view();
}
public function honor()
{
return $this->view->fetch();
}
public function industry()
{
return $this->view->fetch();
}
public function weare()
{
return $this->view->fetch();
}
public function responsibility()
{
return $this->view->fetch();
}
public function wewill()
{
return $this->view->fetch();
}
public function oricoindex()
{
return $this->view->fetch();
}
public function vision()
{
return $this->view->fetch();
}
public function rdcenter()
{
return $this->view->fetch();
}
public function search()
{
return $this->view->fetch();
}
public function transparent()
{
return $this->view->fetch();
}
public function headset()
{
return $this->view->fetch();
}
public function socket()
{
return $this->view->fetch();
}
public function charger()
{
return $this->view->fetch();
}
public function fan()
{
return $this->view->fetch();
}
public function sitemap()
{
return $this->view->fetch();
}
public function ufo()
{
return $this->view->fetch();
}
public function h_speed()
{
return $this->view->fetch();
}
public function decennial()
{
return $this->view->fetch();
}
public function ssd()
{
return $this->view->fetch();
}
public function series_95()
{
return $this->view->fetch();
}
public function series_35()
{
return $this->view->fetch();
}
public function stripe()
{
return $this->view->fetch();
}
public function thunderbolt_3 ()
{
return $this->view->fetch();
}
public function customized ()
{
return $this->view->fetch();
}
/********20230720 顶部导航栏目************/
public function blog2023(){
return $this->view->fetch();
}
public function brand2023(){
return $this->view->fetch();
}
public function brand(){
return $this->view->fetch();
}
public function Contact2023(){
return $this->view->fetch();
}
public function product2023(){
return $this->view->fetch();
}
public function catelists2023(){
return $this->view->fetch();
}
public function download(){
return $this->view->fetch();
}
public function achievement(){
return $this->view->fetch();
}
public function business2023(){
return $this->view->fetch();
}
public function distributor2023(){
return $this->view->fetch();
}
public function introduction2023(){
return $this->view->fetch();
}
public function faq(){
$where = ['stat' => 0];
$order = [
'sort' => 'asc',
'id' => 'desc'
];
$fq_list = model('fq')->where($where)->order($order)->paginate(6);
// echo model('question')->getLastSql();die;
// tiaoshi($question_list->items());die;
$value = [
'fq_list' => $fq_list->isEmpty() ? null : $fq_list->items(),
'page' => $fq_list->render(),
];
$this->assign($value);
return $this->view->fetch();
}
public function mileage(){
$arg_where = ['a.siteid' => $this->siteid, 'a.country_code' => $this->country_code];
$arg_order = ['a.id' => 'desc'];
$arg_field = ['a.id', 'a.cid', 'a.name', 'a.sort', 'a.headline', 'a.ishot', 'a.recommend', 'a.writer', 'a.source', 'a.viewcount', 'a.zancount', 'a.commentcount', 'a.description', 'a.picture', 'a.tags', 'a.createtime', 'c.id' => 'categoryid', 'c.name' => 'categoryname'];
$dataObject = model('Article')->getCateArticleLists($arg_where, $arg_order, $arg_field, 12);
$category = model('ArticleCategory')->getRow(1);
$value = [
'list' => $dataObject->isEmpty() ? null : $dataObject->items(), //$dataObject->getCollection()->toArray()
'page' => $dataObject->render(),
'category' => $category,
];
//echo "<pre>=="; print_r($category);
$this->assign($value);
return $this->view->fetch();
}
public function guide(){
return $this->view->fetch();
}
public function query(){
return $this->view->fetch();
}
public function contact(){
$banners = Loader::model("Banner")->alias('b')->field([
'b.id',
'b.typeid',
'bt.name' => 'typename',
'bt.description' => 'typedesc',
'b.name',
'b.categoryid',
'b.url',
'b.picture',
'b.alt',
'b.style',
'b.description' => 'desc',
'b.descolor',
'b.btncolor',
'b.videourl',
])
->join('banner_type bt', 'bt.stat= 0 and bt.id=b.typeid')
->where('b.stat', '=', 0)
->where('b.typeid', '=', 122)
->order(['sort' => 'asc', 'id' => 'asc'])
->select();
$data = [];
foreach ($banners as $val) {
$link = $val['url'];
if (empty($val['url']) && !empty($val['categoryid'])) {
$link = url_rewrite('productsub', ['id' => $val['categoryid']]);
}
$data[] = [
'id' => $val['id'],
'name' => $val['name'],
'link' => $link,
'picture' => $val['picture'],
'alt' => $val['alt'],
'style' => $val['style'],
'desc' => $val['desc'],
'desc_color' => $val['descolor'],
'btn_color' => $val['btncolor'],
'video_url' => $val['videourl'],
];
}
$this->assign('data', $data);
return $this->view->fetch();
}
public function tutorial(){
return $this->view->fetch();
}
public function distributor(){
return $this->view->fetch();
}
public function business(){
return $this->view->fetch();
}
public function introduction(){
return $this->view->fetch();
}
public function test ()
{
$field = ['a.*', 'b.name', 'b.shortname', 'b.brand_id', 'b.url_tm', 'b.url_jd'];
$special_product_list = db('special_product_relation')->alias('a')->join('product b', 'a.product_id=b.id', 'LEFT')->where(['a.special_id' => 3, 'a.stat' => 0, 'b.stat' => 0])->field($field)->limit(8)->select();
$normal_product = [];
$special_product = [];
foreach ($special_product_list as $key => $value) {
$product_two_img = model('product_two_img')->where(['stat' => 0, 'product_id' => $value['product_id']])->find();
$value['img'] = $product_two_img['image_url'];
if ($value['type'] == 0)
array_push($normal_product, $value);
else if ($value['type'] == 1)
array_push($special_product, $value);
}
// tiaoshi($normal_product);
// tiaoshi($special_product);die;
$this->assign('normal_product', $normal_product);
$this->assign('special_product', $special_product);
return $this->view->fetch();
}
public function report()
{
if ($this->customer_id <= 0)
$this->redirect('/login.html');
return $this->view->fetch();
}
public function create_report()
{
if ($this->customer_id <= 0)
return $this->json(-100, '请先登录');
$data = $this->request->post();
if (empty($data) || !is_array($data))
return $this->json(-1, '数据错误');
if ($data['product_name'] == '')
return $this->json(-2, '产品名称不能为空');
if ($data['product_model'] == '')
return $this->json(-3, '产品型号不能为空');
if ($data['product_manufacturer'] == '')
return $this->json(-4, '厂商不能为空');
// if ($data['buy_source'] == '')
// return $this->json(-5, '购买渠道不能为空');
if ($data['customer_telephone'] != '' && !preg_match("/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/", $data['customer_telephone']))
return $this->json(-6, '手机格式错误');
if ($data['customer_email'] != '' && !preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/", $data['customer_email']))
return $this->json(-7, '邮箱格式错误');
$insert_data = [
'customer_id' => $this->customer_id,
'product_name' => $data['product_name'],
'product_model' => $data['product_model'],
'product_manufacturer' => $data['product_manufacturer'],
'buy_source' => $data['buy_source'],
'product_price' => floatval($data['product_price']),
'customer_name' => $data['customer_name'],
'customer_email' => $data['customer_email'],
'customer_telephone' => $data['customer_telephone'],
'description' => $data['description'],
'create_time' => time(),
];
$result = model('report')->insert($insert_data);
if (!$result)
return $this->json(-8, '提交失败');
return $this->json(200, 'ok');
}
public function job()
{
$sql = "SELECT * FROM cod_job
WHERE stat=0
AND NOW() >= publish_time
AND NOW() <= end_time
";
$job_list = \think\Db::query($sql);
// tiaoshi($job_list);die;
$this->assign('job_list', $job_list);
return $this->view->fetch();
}
public function Fake()
{
$data = $this->request->post();
//$this->verify_check($data['captcha'], 'authcode') || $this->error('验证码有误', url('group/test'));
$sn = $data['sn'];//dump($sn);die;
$sn = $this->https_request('http://mes.orico.com.cn:8084/api/values/',$sn);dump($sn);die;
}
//CURL POST请求
function https_request($url, $data = null) {
$apiUrl = "$url$data";//print_r($apiUrl);die;
$oCurl = curl_init();
if(stripos($apiUrl,"https://")!==FALSE){
curl_setopt($oCurl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($oCurl, CURLOPT_SSL_VERIFYHOST, false);
}
curl_setopt($oCurl,CURLOPT_TIMEOUT,5);
curl_setopt ($oCurl, CURLOPT_HEADER, 0);
curl_setopt($oCurl, CURLOPT_HTTPHEADER, []);
curl_setopt($oCurl, CURLOPT_URL, $apiUrl);
curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt($oCurl, CURLOPT_FOLLOWLOCATION, 3);
$sContent = curl_exec($oCurl);
$aStatus = curl_getinfo($oCurl);
curl_close($oCurl);
if(intval($aStatus["http_code"])==200){
return $sContent;
}else{
return false;
}
}
//可以发送get和post的请求方式
function curl_request($url,$method='get',$data=null,$https=true){
//1.初识化curl
$ch = curl_init($url);
//2.根据实际请求需求进行参数封装
//返回数据不直接输出
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
//如果是https请求
if($https === true){
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,false);
}
//如果是post请求
if($method === 'post'){
//开启发送post请求选项
curl_setopt($ch,CURLOPT_POST,true);
//发送post的数据
curl_setopt($ch,CURLOPT_POSTFIELDS,$data);
}
//3.发送请求
$result = curl_exec($ch);dump($result);die;
//4.返回返回值,关闭连接
curl_close($ch);
return $result;
}
/**
* post
* post方式请求资源
* @param string $url 基于的baseUrl
* @param array $keysArr 请求的参数列表
* @param int $flag 标志位
* @return string 返回的资源内容
*/
public function post($url, $keysArr, $flag = 0){
$ch = curl_init();
if(! $flag) curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $keysArr);
curl_setopt($ch, CURLOPT_URL, $url);
$ret = curl_exec($ch);
curl_close($ch);
return $ret;
}
}

342
app/index/controller/Group1.php Executable file
View File

@@ -0,0 +1,342 @@
<?php
/**
* Created by PhpStorm.
* User: ORICO
* Date: 2018-09-21
* Time: 17:36
*/
namespace app\index\controller;
class Group extends BaseController
{
public function index()
{
return $this->view->fetch();
}
public function odm()
{
return $this->view->fetch();
}
public function special()
{
return $this->view->fetch();
}
public function policy()
{
return $this->view->fetch();
}
public function culture()
{
return $this->view->fetch();
}
public function Contact()
{
return $this->view->fetch();
}
public function fq()
{
$where = ['stat' => 0];
$order = [
'sort' => 'asc',
'id' => 'desc'
];
$fq_list = model('fq')->getList($where, $order, null, 6);
$data['fq_list'] = $fq_list;
$this->assign($data);
return $this->view->fetch();
}
public function question()
{
$data = $this->request->param();
$where = [
'a.stat' => 0,
'a.country_code' => $this->country_code,
];
$cid = isset($data['cid']) ? $data['cid'] : 0;
if ($cid)
$where['a.cid'] = $cid;
$search['keyword'] = '';
if (isset($data['keyword']) && $data['keyword'] != '')
{
$where['a.title'] = ['like', '%' . $data['keyword'] . '%'];
$search['keyword'] = $data['keyword'];
}
$order = [
'a.sort' => 'asc',
'a.id' => 'desc'
];
$field = ['a.*', 'b.name' => 'cate_name'];
$question_list = model('question')->alias('a')->join('question_category b', 'a.cid = b.id', 'LEFT')->where($where)->order($order)->field($field)->paginate(4);
// echo model('question')->getLastSql();die;
// tiaoshi($question_list->items());die;
$question_catelist = model('question_category')->where(['stat' => 0])->select();
$value = [
'question_list' => $question_list->isEmpty() ? null : $question_list->items(),
'page' => $question_list->render(),
'cid' => $cid,
'search' => $search,
'question_catelist' => $question_catelist
];
$this->assign($value);
return view();
}
public function honor()
{
return $this->view->fetch();
}
public function industry()
{
return $this->view->fetch();
}
public function weare()
{
return $this->view->fetch();
}
public function wewill()
{
return $this->view->fetch();
}
public function vision()
{
return $this->view->fetch();
}
public function rdcenter()
{
return $this->view->fetch();
}
public function brand()
{
return $this->view->fetch();
}
public function search()
{
return $this->view->fetch();
}
public function transparent()
{
return $this->view->fetch();
}
public function distributor()
{
return $this->view->fetch();
}
public function headset()
{
return $this->view->fetch();
}
public function socket()
{
return $this->view->fetch();
}
public function charger()
{
return $this->view->fetch();
}
public function fan()
{
return $this->view->fetch();
}
public function sitemap()
{
return $this->view->fetch();
}
public function ufo()
{
return $this->view->fetch();
}
public function h_speed()
{
return $this->view->fetch();
}
public function decennial()
{
return $this->view->fetch();
}
public function ssd()
{
return $this->view->fetch();
}
public function thunderbolt_3 ()
{
return $this->view->fetch();
}
public function report()
{
if ($this->customer_id <= 0)
$this->redirect('/login.html');
return $this->view->fetch();
}
public function create_report()
{
if ($this->customer_id <= 0)
return $this->json(-100, '请先登录');
$data = $this->request->post();
if (empty($data) || !is_array($data))
return $this->json(-1, '数据错误');
if ($data['product_name'] == '')
return $this->json(-2, '产品名称不能为空');
if ($data['product_model'] == '')
return $this->json(-3, '产品型号不能为空');
if ($data['product_manufacturer'] == '')
return $this->json(-4, '厂商不能为空');
// if ($data['buy_source'] == '')
// return $this->json(-5, '购买渠道不能为空');
if ($data['customer_telephone'] != '' && !preg_match("/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/", $data['customer_telephone']))
return $this->json(-6, '手机格式错误');
if ($data['customer_email'] != '' && !preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/", $data['customer_email']))
return $this->json(-7, '邮箱格式错误');
$insert_data = [
'customer_id' => $this->customer_id,
'product_name' => $data['product_name'],
'product_model' => $data['product_model'],
'product_manufacturer' => $data['product_manufacturer'],
'buy_source' => $data['buy_source'],
'product_price' => floatval($data['product_price']),
'customer_name' => $data['customer_name'],
'customer_email' => $data['customer_email'],
'customer_telephone' => $data['customer_telephone'],
'description' => $data['description'],
'create_time' => time(),
];
$result = model('report')->insert($insert_data);
if (!$result)
return $this->json(-8, '提交失败');
return $this->json(200, 'ok');
}
public function job()
{
$sql = "SELECT * FROM cod_job
WHERE stat=0
AND NOW() >= publish_time
AND NOW() <= end_time
";
$job_list = \think\Db::query($sql);
// tiaoshi($job_list);die;
$this->assign('job_list', $job_list);
return $this->view->fetch();
}
public function Fake()
{
$data = $this->request->post();
//$this->verify_check($data['captcha'], 'authcode') || $this->error('验证码有误', url('group/test'));
$sn = $data['sn'];//dump($sn);die;
$sn = $this->https_request('http://mes.orico.com.cn:8084/api/values/',$sn);dump($sn);die;
}
//CURL POST请求
function https_request($url, $data = null) {
$apiUrl = "$url$data";//print_r($apiUrl);die;
$oCurl = curl_init();
if(stripos($apiUrl,"https://")!==FALSE){
curl_setopt($oCurl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($oCurl, CURLOPT_SSL_VERIFYHOST, false);
}
curl_setopt($oCurl,CURLOPT_TIMEOUT,5);
curl_setopt ($oCurl, CURLOPT_HEADER, 0);
curl_setopt($oCurl, CURLOPT_HTTPHEADER, []);
curl_setopt($oCurl, CURLOPT_URL, $apiUrl);
curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt($oCurl, CURLOPT_FOLLOWLOCATION, 3);
$sContent = curl_exec($oCurl);
$aStatus = curl_getinfo($oCurl);
curl_close($oCurl);
if(intval($aStatus["http_code"])==200){
return $sContent;
}else{
return false;
}
}
//可以发送get和post的请求方式
function curl_request($url,$method='get',$data=null,$https=true){
//1.初识化curl
$ch = curl_init($url);
//2.根据实际请求需求进行参数封装
//返回数据不直接输出
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
//如果是https请求
if($https === true){
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,false);
}
//如果是post请求
if($method === 'post'){
//开启发送post请求选项
curl_setopt($ch,CURLOPT_POST,true);
//发送post的数据
curl_setopt($ch,CURLOPT_POSTFIELDS,$data);
}
//3.发送请求
$result = curl_exec($ch);dump($result);die;
//4.返回返回值,关闭连接
curl_close($ch);
return $result;
}
/**
* post
* post方式请求资源
* @param string $url 基于的baseUrl
* @param array $keysArr 请求的参数列表
* @param int $flag 标志位
* @return string 返回的资源内容
*/
public function post($url, $keysArr, $flag = 0){
$ch = curl_init();
if(! $flag) curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $keysArr);
curl_setopt($ch, CURLOPT_URL, $url);
$ret = curl_exec($ch);
curl_close($ch);
return $ret;
}
}

View File

@@ -0,0 +1,372 @@
<?php
/**
* Created by PhpStorm.
* User: ORICO
* Date: 2018-09-21
* Time: 17:36
*/
namespace app\index\controller;
class Group extends BaseController
{
public function index()
{
return $this->view->fetch();
}
public function odm()
{
return $this->view->fetch();
}
public function special()
{
return $this->view->fetch();
}
public function policy()
{
return $this->view->fetch();
}
public function culture()
{
return $this->view->fetch();
}
public function Contact()
{
return $this->view->fetch();
}
public function fq()
{
$where = ['stat' => 0];
$order = [
'sort' => 'asc',
'id' => 'desc'
];
$fq_list = model('fq')->getList($where, $order, null, 6);
$data['fq_list'] = $fq_list;
$this->assign($data);
return $this->view->fetch();
}
public function question()
{
$data = $this->request->param();
$where = [
'a.stat' => 0,
'a.country_code' => $this->country_code,
];
$cid = isset($data['cid']) ? $data['cid'] : 0;
if ($cid)
$where['a.cid'] = $cid;
$search['keyword'] = '';
if (isset($data['keyword']) && $data['keyword'] != '')
{
$where['a.title'] = ['like', '%' . $data['keyword'] . '%'];
$search['keyword'] = $data['keyword'];
}
$order = [
'a.sort' => 'asc',
'a.id' => 'desc'
];
$field = ['a.*', 'b.name' => 'cate_name'];
$question_list = model('question')->alias('a')->join('question_category b', 'a.cid = b.id', 'LEFT')->where($where)->order($order)->field($field)->paginate(4);
// echo model('question')->getLastSql();die;
// tiaoshi($question_list->items());die;
$question_catelist = model('question_category')->where(['stat' => 0])->select();
$value = [
'question_list' => $question_list->isEmpty() ? null : $question_list->items(),
'page' => $question_list->render(),
'cid' => $cid,
'search' => $search,
'question_catelist' => $question_catelist
];
$this->assign($value);
return view();
}
public function honor()
{
return $this->view->fetch();
}
public function industry()
{
return $this->view->fetch();
}
public function weare()
{
return $this->view->fetch();
}
public function wewill()
{
return $this->view->fetch();
}
public function vision()
{
return $this->view->fetch();
}
public function rdcenter()
{
return $this->view->fetch();
}
public function brand()
{
return $this->view->fetch();
}
public function search()
{
return $this->view->fetch();
}
public function transparent()
{
return $this->view->fetch();
}
public function distributor()
{
return $this->view->fetch();
}
public function headset()
{
return $this->view->fetch();
}
public function socket()
{
return $this->view->fetch();
}
public function charger()
{
return $this->view->fetch();
}
public function fan()
{
return $this->view->fetch();
}
public function sitemap()
{
return $this->view->fetch();
}
public function ufo()
{
return $this->view->fetch();
}
public function h_speed()
{
return $this->view->fetch();
}
public function decennial()
{
return $this->view->fetch();
}
public function ssd()
{
return $this->view->fetch();
}
public function series_95()
{
return $this->view->fetch();
}
public function stripe()
{
return $this->view->fetch();
}
public function thunderbolt_3 ()
{
return $this->view->fetch();
}
public function test ()
{
$field = ['a.*', 'b.name', 'b.shortname', 'b.brand_id', 'b.url_tm', 'b.url_jd'];
$special_product_list = db('special_product_relation')->alias('a')->join('product b', 'a.product_id=b.id', 'LEFT')->where(['a.special_id' => 3, 'a.stat' => 0, 'b.stat' => 0])->field($field)->limit(8)->select();
$normal_product = [];
$special_product = [];
foreach ($special_product_list as $key => $value) {
$product_two_img = model('product_two_img')->where(['stat' => 0, 'product_id' => $value['product_id']])->find();
$value['img'] = $product_two_img['image_url'];
if ($value['type'] == 0)
array_push($normal_product, $value);
else if ($value['type'] == 1)
array_push($special_product, $value);
}
// tiaoshi($normal_product);
// tiaoshi($special_product);die;
$this->assign('normal_product', $normal_product);
$this->assign('special_product', $special_product);
return $this->view->fetch();
}
public function report()
{
if ($this->customer_id <= 0)
$this->redirect('/login.html');
return $this->view->fetch();
}
public function create_report()
{
if ($this->customer_id <= 0)
return $this->json(-100, '请先登录');
$data = $this->request->post();
if (empty($data) || !is_array($data))
return $this->json(-1, '数据错误');
if ($data['product_name'] == '')
return $this->json(-2, '产品名称不能为空');
if ($data['product_model'] == '')
return $this->json(-3, '产品型号不能为空');
if ($data['product_manufacturer'] == '')
return $this->json(-4, '厂商不能为空');
// if ($data['buy_source'] == '')
// return $this->json(-5, '购买渠道不能为空');
if ($data['customer_telephone'] != '' && !preg_match("/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/", $data['customer_telephone']))
return $this->json(-6, '手机格式错误');
if ($data['customer_email'] != '' && !preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/", $data['customer_email']))
return $this->json(-7, '邮箱格式错误');
$insert_data = [
'customer_id' => $this->customer_id,
'product_name' => $data['product_name'],
'product_model' => $data['product_model'],
'product_manufacturer' => $data['product_manufacturer'],
'buy_source' => $data['buy_source'],
'product_price' => floatval($data['product_price']),
'customer_name' => $data['customer_name'],
'customer_email' => $data['customer_email'],
'customer_telephone' => $data['customer_telephone'],
'description' => $data['description'],
'create_time' => time(),
];
$result = model('report')->insert($insert_data);
if (!$result)
return $this->json(-8, '提交失败');
return $this->json(200, 'ok');
}
public function job()
{
$sql = "SELECT * FROM cod_job
WHERE stat=0
AND NOW() >= publish_time
AND NOW() <= end_time
";
$job_list = \think\Db::query($sql);
// tiaoshi($job_list);die;
$this->assign('job_list', $job_list);
return $this->view->fetch();
}
public function Fake()
{
$data = $this->request->post();
//$this->verify_check($data['captcha'], 'authcode') || $this->error('验证码有误', url('group/test'));
$sn = $data['sn'];//dump($sn);die;
$sn = $this->https_request('http://mes.orico.com.cn:8084/api/values/',$sn);dump($sn);die;
}
//CURL POST请求
function https_request($url, $data = null) {
$apiUrl = "$url$data";//print_r($apiUrl);die;
$oCurl = curl_init();
if(stripos($apiUrl,"https://")!==FALSE){
curl_setopt($oCurl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($oCurl, CURLOPT_SSL_VERIFYHOST, false);
}
curl_setopt($oCurl,CURLOPT_TIMEOUT,5);
curl_setopt ($oCurl, CURLOPT_HEADER, 0);
curl_setopt($oCurl, CURLOPT_HTTPHEADER, []);
curl_setopt($oCurl, CURLOPT_URL, $apiUrl);
curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt($oCurl, CURLOPT_FOLLOWLOCATION, 3);
$sContent = curl_exec($oCurl);
$aStatus = curl_getinfo($oCurl);
curl_close($oCurl);
if(intval($aStatus["http_code"])==200){
return $sContent;
}else{
return false;
}
}
//可以发送get和post的请求方式
function curl_request($url,$method='get',$data=null,$https=true){
//1.初识化curl
$ch = curl_init($url);
//2.根据实际请求需求进行参数封装
//返回数据不直接输出
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
//如果是https请求
if($https === true){
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,false);
}
//如果是post请求
if($method === 'post'){
//开启发送post请求选项
curl_setopt($ch,CURLOPT_POST,true);
//发送post的数据
curl_setopt($ch,CURLOPT_POSTFIELDS,$data);
}
//3.发送请求
$result = curl_exec($ch);dump($result);die;
//4.返回返回值,关闭连接
curl_close($ch);
return $result;
}
/**
* post
* post方式请求资源
* @param string $url 基于的baseUrl
* @param array $keysArr 请求的参数列表
* @param int $flag 标志位
* @return string 返回的资源内容
*/
public function post($url, $keysArr, $flag = 0){
$ch = curl_init();
if(! $flag) curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $keysArr);
curl_setopt($ch, CURLOPT_URL, $url);
$ret = curl_exec($ch);
curl_close($ch);
return $ret;
}
}

132
app/index/controller/Index.php Executable file
View File

@@ -0,0 +1,132 @@
<?php
namespace app\index\controller;
use think\Lang;
use think\Loader;
use think\Config;
use think\TransDb;
class Index extends BaseController {
public function index() {
// 如果是手机端进官网
if (isMobile()) {
if ($_SERVER['HTTP_HOST']=="www.orico.cc" || $_SERVER['HTTP_HOST']=="orico.cc") {
return $this->redirect("http://www.orico.cc/usmobile");
} else {
return $this->redirect('http://www.orico.com.cn/mobile');
}
}
else{
if ($_SERVER['HTTP_HOST']=="www.orico.cc" || $_SERVER['HTTP_HOST']=="orico.cc") {
//验证上级来源页
$domainUrl = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
/*if (!isset($_SERVER['HTTP_REFERER'])) {
if ($domainUrl== 'www.orico.cc/' || $domainUrl == 'orico.cc/') {
return $this->redirect("http://www.orico.cc/us/Group/oricoindex");
}
}*/
return $this->redirect("http://www.orico.cc/us");
}
//验证上级来源页
/* if (!isset($_SERVER['HTTP_REFERER'])) {
$domainUrl = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
//echo $domainUrl; die;
if ($domainUrl== 'www.orico.com.cn/' || $domainUrl == 'orico.com.cn/') {
return $this->redirect("http://orico.com.cn/index/Group/oricoindex");
}
} */
}
$lebel_list = getDifferentProduct("recommend",12);
$this->assign('recomment_items',$lebel_list);
$blog_list = getArticleList();
$this->assign('blog_list',$blog_list);
$faqData = getFaqList();
$this->assign('faqData',$faqData);
//echo "<pre>=="; print_r($blog_list); die;
return $this->fetch('/index');
}
public function info(){
echo "\nstart: ".date("Y-m-d H:i:s")."\n";
$TransDb = new TransDb();
$TransDb->selectAllStruct("ProductCategory");
//$getDb = $TransDb->getkv();
echo "\nend :".date("Y-m-d H:i:s")."\n";
dump($TransDb);
// phpinfo();
}
public function feedback() {
if ($this->request->isPost()) {
$data = $this->request->post();
if (empty($data) || !is_array($data)) {
return $this->error('未知错误');
}
$this->verify_check($data['authcode'], 'authcode') || $this->error('验证码不正确');
$validaterule = [
'name' => 'require',
'subject' => 'require',
'contact' => 'require',
'content' => 'require',
];
$validatemsg = [
'name.require' => '名称不能为空',
'subject.require' => '主题不能为空',
'contact.require' => '联系方式不能为空',
'content.require' => '内容不能为空',
];
if (empty($data['way'])) {
return $this->error('请选择正确的联系方式');
} else {
if ($data['way'] == 'E-mail') {
$validaterule['contact'] = 'email';
$validatemsg['contact.email'] = '联系方式格式不正确';
}
if ($data['way'] == 'tel') {
$validaterule['contact'] = ['regex' => '^1[345789]\d{9}$|^([0-9]{3,4}-?)?[0-9]{7,8}$'];
$validatemsg['contact.regex'] = '联系方式格式不正确';
}
}
$valid_result = $this->validate($data, $validaterule, $validatemsg);
if (true !== $valid_result) {
// 验证失败 输出错误信息
return $this->error($valid_result);
}
$set = [
'feedback_type' => isset($data['feedback_type']) ? $data['feedback_type'] : '',
'name' => isset($data['name']) ? $data['name'] : 'Name',
'subject' => isset($data['subject']) ? $data['subject'] : '',
'content' => isset($data['content']) ? $data['content'] : '',
'way' => isset($data['way']) ? $data['way'] : '',
'contact' => isset($data['contact']) ? $data['contact'] : '',
'addtime' => date('Y-m-d H:i:s'),
];
$model = Loader::model('Msgform')->insertRow($set);
if ($model && $model->getData('id')) {
return $this->success('成功!成功!等待管理员查看', url('/'));
} else {
return $this->error('操作失败');
}
}
return $this->result(['code' => false, 'msg' => '未知错误'], false, '未知错误');
}
}

View File

@@ -0,0 +1,96 @@
<?php
namespace app\index\controller;
use think\Loader;
use think\Cookie;
use think\Config;
class Pinglun extends BaseController {
public function lists($type = '', $cid = 0) {
$arg_where = ['stat' => 0, 'display' => 1];
if ($type) {
$arg_where['typeid'] = $type;
}
if ($cid) {
$arg_where['content_id'] = $cid;
}
$arg_order = ['id' => 'desc'];
$arg_field = ['*'];
$dataObject = Loader::model('Pinglun')->getPageList($arg_where, $arg_order, $arg_field, 12);
//header('content-type:text/html;charset=utf-8;');
$value['list'] = $dataObject->isEmpty() ? null : $dataObject->items();
$value['page'] = $dataObject->render();
$value['total'] = $dataObject->total();
if ($this->request->isAjax()) {
return $this->result($value, 'pinglun', true);
}
$value['cid'] = $cid;
$value['type'] = ucfirst($type);
$value['seo_title'] = config('article_seo_title')? : config('website_seo_title');
$value['seo_keyword'] = config('article_seo_keyword')? : config('website_seo_keyword');
$value['seo_description'] = config('article_seo_description')? : config('website_seo_description');
$this->assign($value);
return $this->fetch('pinglun');
}
public function add() {
if (!$this->customer_id) {
return $this->result(['code' => false, 'msg' => '请登录后再进行评论'], false, '请登录后再进行评论');
}
if ($this->request->isPost()) {
$row = Loader::model('Pinglun')->getRow(['customer_id' => $this->customer_id, 'stat' => 0], null, ['createtime' => 'desc']);
if ($row && $row['id']) {
$createtime = strtotime($row['createtime']);
if (time() - $createtime < 60) {
return $this->result(['code' => false, 'msg' => '您已评论过了请不要重复评论'], false, '您已评论过了请不要重复评论');
}
}
$data = $this->request->post();
if (empty($data) || !is_array($data)) {
return $this->error('未知错误');
}
$validaterule = [
'pid' => 'require',
'cid' => 'require',
'typeid' => 'require',
'content' => 'require',
];
$validatemsg = [
'pid.require' => 'p不能为空',
'cid.require' => 'c内容为空',
'typeid.require' => 'type不能为空',
'content.require' => '内容不能为空',
];
$valid_result = $this->validate($data, $validaterule, $validatemsg);
if (true !== $valid_result) {
// 验证失败 输出错误信息
return $this->error($valid_result);
}
$addtime = date('Y-m-d H:i:s');
$txarr = [1, 2, 3, 4, 5];
shuffle($txarr);
$set = [
'customer_id' => $this->customer_id,
'cname' => session('customer_auth.firstname'),
'typeid' => isset($data['typeid']) ? $data['typeid'] : 'Article',
'pid' => isset($data['pid']) ? $data['pid'] : 0,
'content_id' => isset($data['cid']) ? $data['cid'] : 0,
'content' => $data['content'],
'tx' => $txarr[0],
'createtime' => $addtime,
'lasttime' => $addtime,
];
$model = Loader::model('Pinglun')->insertRow($set);
if ($model && $model->getData('id')) {
isset($data['cid']) ? Loader::model('Article')->where(['id' => $data['cid']])->setInc('commentcount') : '';
return $this->success('成功!成功!等待管理员的审核后,方可显示', url('/'));
} else {
return $this->error('操作失败');
}
}
return $this->result(['code' => false, 'msg' => '未知错误'], false, '未知错误');
}
}

500
app/index/controller/Product.php Executable file
View File

@@ -0,0 +1,500 @@
<?php
namespace app\index\controller;
use think\Collection;
use think\Db;
use think\Loader;
use think\Cookie;
use think\Config;
class Product extends BaseController {
public function get_filter() {
if ($this->cacheHas('product_filter_index'))
{
$product_filter_index = $this->cacheGet('product_filter_index');
}
else
{
$product_filter_index = model('product')->field('name, brand_id, keyword')->where(['stat' => 0, 'is_show' => 0, 'country_code' => $this->country_code])->select();
$this->cacheSet('product_filter_index', $product_filter_index, 86400);
}
$data = [
'product_name' => $product_filter_index,
];
return $this->json(200, 'ok', $data);
}
public function lists($id = 0) {
$category = Loader::model('ProductCategory')->getRow(['stat' => 0, 'pid' => 0, 'country_code' => $this->country_code], null, ['id' => 'asc']);
if (empty($category)) {
return exception('数据有误,请检查后再操作');
}
$value = [
'category' => $category,
];
$value['seo_title'] = config('product_seo_title')? : config('website_seo_title');
$value['seo_keyword'] = config('product_seo_keyword')? : config('website_seo_keyword');
$value['seo_description'] = config('product_seo_description')? : config('website_seo_description');
$this->assign($value);
return $this->fetch('catelists');
}
public function catelists($id = 0) {
$arg_where = ['a.siteid' => $this->siteid, 'country_code' => $this->country_code];
if ($id > 0) {
$arg_where['cid'] = $id;
$category = Loader::model('ProductCategory')->getRow($id);
}
if (empty($category)) {
return exception('数据有误,请检查后再操作');
}
switch ($category['classtype']) {
case 2:
$template = $category['templist'];
break;
case 3:
header('location:' . $category['url']);
exit;
break;
default:
$template = $category['tempindex'];
break;
}
$value['category'] = $category;
$value['seo_title'] = $category['seo_title']? : config('website_seo_title');
$value['seo_keyword'] = $category['seo_keyword']? : config('website_seo_keyword');
$value['seo_description'] = $category['seo_description']? : config('website_seo_description');
$this->assign($value);
return $this->fetch($template);
}
public function subcatelists($id = 0) {
$arg_where = ['a.siteid' => $this->siteid, 'country_code' => $this->country_code];
if ($id > 0) {
$arg_where['cid'] = $id;
$category = Loader::model('ProductCategory')->getRow($id);
}
if (empty($category)) {
return exception('数据有误,请检查后再操作');
}
switch ($category['classtype']) {
case 2:
$template = $category['templist'];
$subproductCategory = $this->list_to_tree($this->categoryList, 'id', 'pid', 'child', $id);
$value = ['subproductCategory' => $subproductCategory];
break;
case 3:
header('location:' . $category['url']);
exit;
break;
default:
$template = $category['tempindex'];
break;
}
$result = model('ProductCategory')->where(['pid' => $category['id']])->find();
$last_cate = empty($result) ? 1 : 0;
$value['last_cate'] = $last_cate;
$value['pid'] = $id;
$value['category'] = $category;
$value['seo_title'] = $category['seo_title']? : config('website_seo_title');
$value['seo_keyword'] = $category['seo_keyword']? : config('website_seo_keyword');
$value['seo_description'] = $category['seo_description']? : config('website_seo_description');
$this->assign($value);
return $this->fetch($template);
}
public function ajaxcatelists($id = 0) {
$arg_where = ['p.stat' => 0, 'c.stat' => 0, 'p.siteid' => $this->siteid, 'p.country_code' => $this->country_code];
$id = intval($id);
if ($id > 0) {
if (0) {
$ids = Loader::model('ProductCategory')->getChildIDArray(4);
$arg_where['cid'] = ['in', $ids];
} else {
$arg_where['cid'] = $id;
}
$category = Loader::model('ProductCategory')->getRow($id);
}
if (empty($category)) {
return exception('数据有误,请检查后再操作');
}
$arg_field = ['p.id', 'p.cid', 'p.name', 'p.shortname', 'p.sort', 'p.ishot', 'p.isnew', 'p.recommend', 'p.viewcount', 'p.tags', 'p.description', 'p.picture', 'p.picture_back', 'p.createtime', 'p.createtime', 'c.name' => 'categoryname', 'c.id' => 'categoryid'];
$arg_order['p.sort'] = 'asc';
$arg_order['p.id'] = 'desc';
$dataObject = Loader::model('Product')->getCateProductLists($arg_where, $arg_order, $arg_field, 8);
if ($dataObject->isEmpty()) {
$value = ['list' => null];
} else {
$this->assign(['list' => $dataObject->items(), 'category' => $category,]);
$value = ['list' => $this->fetch()];
}
return $this->result($value, true, '分类列表');
}
public function detail($id = 0, $color = '') {
if ($id > 0) {
$detail = Loader::model('Product')->where(['stat' => 0, 'is_show' => 0, 'country_code' => $this->country_code, 'id' => $id])->find();
/*if ($this->customer_id > 0)
{
// 如果登录成功判断用户是否收藏该产品
$customer_info = json_decode(Cookie::get('c'), true);
if (empty($customer_info))
{
$detail['is_collection'] = 0;
}
else
{
$where = [
'customer_id' => $customer_info['id'],
'type' => 1,
'coll_id' => $detail['id'],
'stat' => 0
];
$result = model('collection')->where($where)->find();
if ($result)
{
$detail['is_collection'] = 1;
}
else
{
$detail['is_collection'] = 0;
}
}
}
else
{
$detail['is_collection'] = 0;
}*/
if(empty($detail)){
//return exception('该产品已下架,请检查后再操作');
return $this->error('该产品已下架,请检查后再操作');
}
$detail['is_collection'] = 0;
$category = Loader::model('ProductCategory')->getRow($detail['cid']);
$cid = Loader::model('ProductCategory')->getRow($category['pid']);
$pid = Loader::model('ProductCategory')->getRow($cid['pid']);
if (empty($category)) {
return exception('数据有误,请检查后再操作');
}
$template = $category['tempdetail'];
//$prev_detail = Loader::model('Product')->getRow(['id' => ['gt', $id], 'cid' => $category['id'], 'stat' => 0], ['id', 'name'], ['id' => 'asc']);
//$next_detail = Loader::model('Product')->getRow(['id' => ['lt', $id], 'cid' => $category['id'], 'stat' => 0], ['id', 'name'], ['id' => 'desc']);
$value = [
'detail' => $detail,
'category' => $category,
'pid' =>$pid,
'cid'=>$cid
//'prev_detail' => $prev_detail,
//'next_detail' => $next_detail,
];
$value['product_attr'] = is_null(json_decode($detail['product_attr'])) ? $detail['product_attr'] : json_decode($detail['product_attr']);
$tmp_product_images = Loader::model('ProductImage')->getList(array('product_id' => $detail['id']), ['image_sort' => 'asc', 'id' => 'asc'], ['id', 'product_id', 'image_url', 'image_sort', 'image_desc', 'image_color']);
$value['product_dls'] = Loader::model('ProductDl')->getList(array('product_id' => $detail['id']), ['dl_sort' => 'asc', 'id' => 'desc'], ['id', 'product_id', 'dl_url', 'dl_sort', 'dl_name', 'dl_type']);
// $value['product_questions'] = Loader::model('Question')->getList(array('product' => $detail['id']), ['sort' => 'asc', 'id' => 'asc'], []);
$value['product_relateds'] = Loader::model('Product')->getRelatedProductList(array('pr.product_id' => $detail['id']), ['pr.related_sort' => 'asc', 'pr.id' => 'asc',], ['p.id', 'p.name', 'p.shortname', 'p.picture', 'p.sort', 'p.ishot', 'p.list_bk_img','p.isnew', 'p.recommend', 'p.description', 'p.createtime', 'p.brand_id','pr.id' => 'related_id', 'pr.related_product_id', 'pr.related_sort', 'pr.related_desc']);
$product_images = [];
$attributes = [];
foreach ($tmp_product_images as $k => $v) {
//兼容新旧两种版附加图、相册属性及图片
if (is_array($v['image_url']) && sizeof($v['image_url'])) {
$v['image_url'] = json_decode($v['image_url'], true); //多图Json格式
$v['image_color'] = json_decode($v['image_color'], true); //多属性规则: 颜色,尺码,排序等
foreach($detail['product_attr'] as $ka => $attr){
$attributes[$attr][] = $v['image_color'][$ka][$attr];
}
$product_images[] = $v;
}
//原版, 仅支持颜色属性
else{
$image_color = $v['image_color'];
$pos = strrpos($image_color, '/');
$key = substr($image_color, $pos + 1, strpos($image_color, '.') - $pos - 1);
$product_images[$key][] = $v;
}
}
foreach($attributes as $attrbute => $attrValue) {
$attributes[$attrbute] = array_unique($attrValue);
}
//echo "<pre>++"; print_r($attributes);
$value['attributes'] = $attributes;
$product_images = [];
$attributes = [];
foreach ($tmp_product_images as $k => $v) {
//兼容新旧两种版附加图、相册属性及图片
if (is_string($v['image_url']) && json_decode($v['image_url'])) {
$v['image_url'] = json_decode($v['image_url'], true); //多图Json格式
$v['image_color'] = json_decode($v['image_color'], true); //多属性规则: 颜色,尺码,排序等
if(isset($value['product_attr']) && is_array($value['product_attr'])){
foreach($value['product_attr'] as $ka => $attr){
if(isset($v['image_color']) && sizeof($v['image_color'])){
$attributes[$attr][] = $v['image_color'][$ka][$attr];
}
}
}
$product_images[] = $v;
}
//原版, 仅支持颜色属性
else{
$image_color = $v['image_color'];
$pos = strrpos($image_color, '/');
$key = substr($image_color, $pos + 1, strpos($image_color, '.') - $pos - 1);
$product_images[$key][] = $v;
}
}
foreach($attributes as $attrbute => $attrValue) {
$attributes[$attrbute] = array_unique($attrValue);
}
//echo "<pre>++"; print_r($attributes);
$value['attributes'] = $attributes;
$value['product_images'] = $product_images;
$value['seo_title'] = $detail['seo_title']? : $detail['name'] . '-' . config('website_seo_title');
$value['seo_keyword'] = $detail['seo_keyword']? : config('website_seo_keyword');
$value['seo_description'] = $detail['seo_description']? : config('website_seo_description');
$value['color'] = $color;
//评论数据获取
$where = [
'product_id' => $detail['id']
];
$count = db('shopselle')->where($where)->count();
$list = db('shopselle')->where($where)->paginate(10,$count);
foreach ($list as $k => $v){
$v['pics'] = json_decode($v['pics']);
$list[$k] = $v;
}
$page = $list->render();
$this->assign('page',$page);
$this->assign('list',$list);
$this->assign('count',$count);
$this->assign($value);
$this->viewcount($id);
$purchase_links = Db::name('product_purchase_links')->alias('links')
->field(['links.id', 'platforms.platform', 'links.link'])
->join('product_purchase_link_platforms platforms', 'platforms.id=links.platform_id')
->where('links.product_id', '=', $id)
->where('links.country_code', '=', $this->country_code)
->select();
$this->assign('purchase_links', $purchase_links);
//dump($value['product_relateds']);die;
return $this->fetch($template);
} else {
return exception('数据有误,请检查后再操作');
}
}
public function detailed($id = 0, $color = '') {
if ($id > 0) {
$detail = Loader::model('Product')->where(['stat' => 0, 'is_show' => 0, 'country_code' => $this->country_code, 'id' => $id])->find();
/*if ($this->customer_id > 0)
{
// 如果登录成功判断用户是否收藏该产品
$customer_info = json_decode(Cookie::get('c'), true);
if (empty($customer_info))
{
$detail['is_collection'] = 0;
}
else
{
$where = [
'customer_id' => $customer_info['id'],
'type' => 1,
'coll_id' => $detail['id'],
'stat' => 0
];
$result = model('collection')->where($where)->find();
if ($result)
{
$detail['is_collection'] = 1;
}
else
{
$detail['is_collection'] = 0;
}
}
}
else
{
$detail['is_collection'] = 0;
}*/
$detail['is_collection'] = 0;
$category = Loader::model('ProductCategory')->getRow($detail['cid']);
$cid = Loader::model('ProductCategory')->getRow($category['pid']);
$pid = Loader::model('ProductCategory')->getRow($cid['pid']);
if (empty($category)) {
return exception('数据有误,请检查后再操作');
}
$template = $category['tempdetail'];
//$prev_detail = Loader::model('Product')->getRow(['id' => ['gt', $id], 'cid' => $category['id'], 'stat' => 0], ['id', 'name'], ['id' => 'asc']);
//$next_detail = Loader::model('Product')->getRow(['id' => ['lt', $id], 'cid' => $category['id'], 'stat' => 0], ['id', 'name'], ['id' => 'desc']);
$value = [
'detail' => $detail,
'category' => $category,
'pid' =>$pid,
'cid'=>$cid
//'prev_detail' => $prev_detail,
//'next_detail' => $next_detail,
];
$value['product_attr'] = is_null(json_decode($detail['product_attr'])) ? $detail['product_attr'] : json_decode($detail['product_attr']);
$tmp_product_images = Loader::model('ProductImage')->getList(array('product_id' => $detail['id']), ['image_sort' => 'asc', 'id' => 'asc'], ['id', 'product_id', 'image_url', 'image_sort', 'image_desc', 'image_color']);
$value['product_dls'] = Loader::model('ProductDl')->getList(array('product_id' => $detail['id']), ['dl_sort' => 'asc', 'id' => 'desc'], ['id', 'product_id', 'dl_url', 'dl_sort', 'dl_name', 'dl_type']);
// $value['product_questions'] = Loader::model('Question')->getList(array('product' => $detail['id']), ['sort' => 'asc', 'id' => 'asc'], []);
$value['product_relateds'] = Loader::model('Product')->getRelatedProductList(array('pr.product_id' => $detail['id']), ['pr.related_sort' => 'asc', 'pr.id' => 'asc',], ['p.id', 'p.name', 'p.shortname', 'p.picture', 'p.sort', 'p.ishot', 'p.list_bk_img','p.isnew', 'p.recommend', 'p.description', 'p.createtime', 'p.brand_id','pr.id' => 'related_id', 'pr.related_product_id', 'pr.related_sort', 'pr.related_desc']);
$product_images = [];
$attributes = [];
foreach ($tmp_product_images as $k => $v) {
//兼容新旧两种版附加图、相册属性及图片
if (is_string($v['image_url']) && json_decode($v['image_url'])) {
$v['image_url'] = json_decode($v['image_url'], true); //多图Json格式
$v['image_color'] = json_decode($v['image_color'], true); //多属性规则: 颜色,尺码,排序等
if(isset($value['product_attr']) && is_array($value['product_attr'])){
foreach($value['product_attr'] as $ka => $attr){
$attributes[$attr][] = $v['image_color'][$ka][$attr];
}
}
$product_images[] = $v;
}
//原版, 仅支持颜色属性
else{
$image_color = $v['image_color'];
$pos = strrpos($image_color, '/');
$key = substr($image_color, $pos + 1, strpos($image_color, '.') - $pos - 1);
$product_images[$key][] = $v;
}
}
foreach($attributes as $attrbute => $attrValue) {
$attributes[$attrbute] = array_unique($attrValue);
}
//echo "<pre>++"; print_r($attributes);
$value['attributes'] = $attributes;
$value['product_images'] = $product_images;
$value['seo_title'] = $detail['seo_title']? : $detail['name'] . '-' . config('website_seo_title');
$value['seo_keyword'] = $detail['seo_keyword']? : config('website_seo_keyword');
$value['seo_description'] = $detail['seo_description']? : config('website_seo_description');
$value['color'] = $color;
//评论数据获取
$where = [
'product_id' => $detail['id']
];
$count = db('shopselle')->where($where)->count();
$list = db('shopselle')->where($where)->paginate(10,$count);
foreach ($list as $k => $v){
$v['pics'] = json_decode($v['pics']);
$list[$k] = $v;
}
$page = $list->render();
$this->assign('page',$page);
$this->assign('list',$list);
$this->assign('count',$count);
$this->assign($value);
$this->viewcount($id);
//dump($value['product_relateds']);die;
return $this->fetch('detail_202312');
} else {
return exception('数据有误,请检查后再操作');
}
}
protected function viewcount($id) {
$view = Cookie::get('productview', 'history');
if (empty($view) || $view != $id) {
Loader::model('Product')->where(['id' => $id])->setInc('viewcount');
Cookie::set('productview', $id, ['prefix' => 'history', 'expire' => 3600]);
}
}
protected function historyproduct($id) {
$product = Cookie::get('product', 'history');
if (isset($product) && !empty($product)) {
$product_ids = explode(',', $product);
if ($product_ids[0] != $id) {
array_unshift($product_ids, $id);
$product_ids = array_unique($product_ids);
$num = Config::get('history_number') > 0 ? Config::get('history_number') : 10;
while (count($product_ids) > $num) {
array_pop($product_ids);
}
Cookie::set('product', implode(',', $product_ids), ['prefix' => 'history', 'setcookie' => true, 'expire' => 3600 * 24 * 30]);
}
} else {
Cookie::set('product', $id, ['prefix' => 'history', 'setcookie' => true, 'expire' => 3600 * 24 * 30]);
}
}
/********新品展示 *********/
public function newarrival() {
$value = Loader::model('Product')->getNewItemLists(array(),['t.sort' => 'asc', 't.id' => 'asc',], ['p.id', 'p.name', 'p.shortname', 'p.picture', 'p.sort', 'p.ishot', 'p.list_bk_img','p.isnew', 'p.recommend', 'p.description','p.brand_id', 'p.createtime', 't.id' => 'category_id', 't.name'=>'category_name', 't.sort']);
//分类分组
$newProduct = array();
foreach($value as $key => $item) {
$newProduct[$item['category_id']]['category_id'] = $item['category_id'];
$newProduct[$item['category_id']]['category_name'] = $item['category_name'];
$newProduct[$item['category_id']]['list'][] = $item;
}
//echo "<pre>---"; print_r($productCategory);die; //echo "<pre>=="; print_r($productCategory);die;
$this->assign('newProduct',$newProduct);
$value['category'] = "New Product";
$value['seo_title'] = $value['category']? : config('website_seo_title_us');
$value['seo_keyword'] = $value['category']? : config('website_seo_keyword');
$value['seo_description'] = $value['category']? : config('website_seo_description');
$this->assign($value);
return $this->fetch('newarrival');
}
}

View File

@@ -0,0 +1,24 @@
<?php
/**
* Created by PhpStorm.
* User: ORICO
* Date: 2019-01-23
* Time: 15:17
*/
namespace app\index\controller;
use think\Lang;
use think\Loader;
use think\Config;
use think\Session;
class Qqlogin extends BaseController
{
public function index(){
include_once ("../extend/API/qqConnectAPI.php");
$qc = new \QC();
$qc->qq_login();
}
}

87
app/index/controller/Search.php Executable file
View File

@@ -0,0 +1,87 @@
<?php
namespace app\index\controller;
use think\Loader;
use think\Config;
use think\Db;
class Search extends BaseController {
public function index() {
$skeyword = $this->request->get('skeyword');
$search = [];
$name_word = '';
$brand_word = '';
if ($skeyword != '') {
$skeyword = trim($skeyword);
$search['skeyword'] = $skeyword;
$pos = strpos($skeyword, '(');
if ($pos === false) {
$name_word = $brand_word = $skeyword;
} else {
$name_word = substr($skeyword, 0, $pos);
$brand_word = substr($skeyword, $pos+1, -1);
}
$arg_where = [
'a.name|a.brand_id|a.keyword|b.sku' => ['like', '%' . $name_word . '%']
];
Config::set('paginate.query', ['skeyword' => $skeyword]);
}
$arg_where['a.stat'] = 0;
// $arg_where['b.stat'] = 0;
$arg_where['a.country_code'] = $this->country_code;
$arg_where['a.is_show'] = 0;
$field = ['a.id', 'a.name', 'a.description', 'a.list_bk_img' => 'picture', 'a.createtime','a.brand_id', 'b.sku', "'productdetail'" => 'link'];
$dataObject = model('product')->alias('a')->join('product_sku b', 'a.brand_id=b.brand_id', 'LEFT')->field($field)->where($arg_where)->group('a.id')->paginate(12);
// echo model('product')->getLastSql();die;
$list = $dataObject->items();
// tiaoshi($list);die;
$arr_name = mb_str_split(strtolower($name_word));
$arr_brand = mb_str_split(strtolower($brand_word));
if (!empty($skeyword))
{
foreach ($list as $key => $value)
{
$weight = 0;
$curr_arr_name = mb_str_split(strtolower($value['name']));
$curr_arr_brand = mb_str_split(strtolower($value['brand_id']));
$weight += count(array_intersect($arr_name, $curr_arr_name));
$weight += count(array_intersect($arr_brand, $curr_arr_brand));
$list[$key] = $value;
$list[$key]['weight'] = $weight;
}
$len = count($list);
for ($i=0; $i<$len-1; $i++)
{
for ($j=0; $j<$len-1-$i; $j++)
{
if ($list[$j]['weight'] < $list[$j+1]['weight'])
{
$tmp = $list[$j];
$list[$j] = $list[$j+1];
$list[$j+1] = $tmp;
}
}
}
}
// tiaoshi($list);die;
$value = [
'list' => $list,
'page' => $dataObject->render(),
];
$value['search'] = $search;
$value['name_word'] = $name_word;
$value['brand_word'] = $brand_word;
$this->assign($value);
return $this->fetch();
}
}

View File

@@ -0,0 +1,30 @@
<?php
namespace app\index\controller;
use think\Loader;
use think\Config;
class Singlepage extends BaseController {
public function detail($id = 0, $view = '') {
if ($id > 0) {
$singlepage = Loader::model('Singlepage')->getRow($id);
if (empty($singlepage)) {
return exception('数据有误,请检查后再操作');
}
$value['singlepage'] = $singlepage;
$value['seo_title'] = $singlepage['seo_title']? : config('website_seo_title');
$value['seo_keyword'] = $singlepage['seo_keyword']? : config('website_seo_keyword');
$value['seo_description'] = $singlepage['seo_description']? : config('website_seo_description');
$this->assign($value);
if ($view) {
return $this->fetch($view);
} else {
return $this->fetch();
}
}
return exception('数据有误,请检查后再操作');
}
}

303
app/index/controller/TopsNas.php Executable file
View File

@@ -0,0 +1,303 @@
<?php
namespace app\index\controller;
use think\Loader;
class TopsNas extends BaseController
{
public function _initialize()
{
parent::_initialize();
parent::nasNavigation();
}
private function getBanners($typeids)
{
$banners = Loader::model("Banner")->alias('b')->field([
'b.id',
'b.typeid',
'bt.name' => 'typename',
'bt.description' => 'typedesc',
'b.name',
'b.categoryid',
'b.url',
'b.picture',
'b.alt',
'b.style',
'b.description' => 'desc',
'b.descolor',
'b.btncolor',
'b.videourl',
])
->join('banner_type bt', 'bt.stat= 0 and bt.id=b.typeid')
->where('b.stat', '=', 0)
->where('b.typeid', 'in', $typeids)
->order(['sort' => 'asc', 'id' => 'asc'])
->select();
$chucks = [];
foreach ($banners as $val) {
if (empty($chucks['typeid_' . $val['typeid']])) {
$chucks['typeid_' . $val['typeid']]['id'] = $val['typeid'];
$chucks['typeid_' . $val['typeid']]['name'] = $val['typename'];
$chucks['typeid_' . $val['typeid']]['desc'] = $val['typedesc'];
$chucks['typeid_' . $val['typeid']]['banners'] = [];
}
$link = $val['url'];
if (empty($val['url']) && !empty($val['categoryid'])) {
$link = url_rewrite('productsub', ['id' => $val['categoryid']]);
}
$chucks['typeid_' . $val['typeid']]['banners'][] = [
'id' => $val['id'],
'name' => $val['name'],
'link' => $link,
'picture' => $val['picture'],
'alt' => $val['alt'],
'style' => $val['style'],
'desc' => $val['desc'],
'desc_color' => $val['descolor'],
'btn_color' => $val['btncolor'],
'video_url' => $val['videourl'],
];
}
return $chucks;
}
/**
* nas专题首页
*/
public function index()
{
$chucks = $this->getBanners([107, 108, 109, 110, 111, 112]);
$data = [
'swiper' => $chucks['typeid_107'],
'product' => $chucks['typeid_108'],
'video' => $chucks['typeid_109'],
'plan' => $chucks['typeid_110'],
'weline' => $chucks['typeid_111'],
'download' => $chucks['typeid_112'],
];
$this->assign("data", $data);
return $this->fetch();
}
/**
* nas新品公测
*/
public function beta()
{
return $this->fetch();
}
/**
* nas 客户合作
*/
public function cooperation()
{
$chucks = $this->getBanners([119, 120, 121]);
$data = [
'image_text' => $chucks['typeid_119'],
'advantage' => $chucks['typeid_120'],
'expectation' => $chucks['typeid_121'],
];
$data['expectation']['banners'] = array_chunk($data['expectation']['banners'], 3);
$this->assign("data", $data);
return $this->fetch();
}
/**
* getCategoryChildren 获取子孙分类id
*/
private function getCategoryChildren($category)
{
return \think\Db::query("
SELECT t2.id
FROM (
SELECT
@r AS _id, (SELECT @r := GROUP_CONCAT(id) FROM cod_article_category WHERE FIND_IN_SET(pid, _id)) AS parent_id
FROM
(SELECT @r := $category) vars, cod_article_category h
WHERE @r <> 0) t1
JOIN cod_article_category t2
ON FIND_IN_SET(t2.pid, t1._id)
ORDER BY t2.id;
");
}
/**
* getProductSeriesIdMaps 获取文章系列型号
*/
private function getProductSeriesIdMaps($article)
{
$series = [];
$array_items = array_column($article, 'product_series');
array_walk($array_items, function ($val) use (&$series) {
$series = array_merge($series, explode(',', $val));
});
if (!empty($series)) {
$product_series = Loader::model('ProductSeries')
->where('id', 'in', array_unique($series))
->column('name', 'id');
foreach ($article as $key => $val) {
$p_series = explode(',', $val['product_series']);
$p_item = [];
foreach ($p_series as $k => $v) {
if (!empty($product_series[$v])) {
$p_item[] = $product_series[$v];
}
}
$article[$key]['product_series'] = $p_item;
}
}
return $article;
}
/**
* getProductSeries 获取产品系列
*/
private function getProductSeries()
{
return Loader::model('ProductSeries')
->field([
'id',
'name',
])
->where('stat', '=', 0)
->where('isshow', '=', 1)
->order(['id' => 'asc', 'sort' => 'asc'])
->select();
}
/**
* getCategoryTree 获取特定文章分类树
*/
private function getCategoryTree($cid = 36)
{
// 设备
$category = Loader::model('ArticleCategory')
->field([
'id',
'pid',
'name',
])
->where('isshow', '=', 1)
->where('country_code', '=', $this->country_code)
->order(['sort' => 'asc'])
->select();
$category_array = collection($category)->toArray();
$category_tree = $this->buildTree($category_array, $cid);
return $category_tree;
}
/**
* guide 使用教程
*/
public function guide()
{
if ($this->request->isAjax()) {
try {
$param = [
'series' => input("get.series/d"),
'device' => input('get.device/d'),
'category' => input('get.category'),
'keywords' => input('get.keywords'),
'page' => input('get.page/d', 1),
'size' => input('get.size/d', 4),
];
$data = Loader::model('Article')
->field([
'id',
'name',
'description',
'product_series',
'content',
])
->where('stat', '=', 0)
->where('country_code', '=', $this->country_code)
->where(function ($query) use ($param) {
if (!empty($param['series'])) {
$query->where(sprintf('find_in_set(%s, `product_series`)', $param['series']));
}
if (!empty($param['keywords'])) {
$query->where(function ($q) use ($param) {
$q->where('name', 'like', '%' . $param['keywords'] . '%')
->whereOr(sprintf('MATCH(content) AGAINST("%s" IN BOOLEAN MODE)', $param['keywords']));
});
}
$category = [];
if (!empty($param['device']) && empty($param['category'])) {
$category = array_merge([$param['device']], array_column($this->getCategoryChildren($param['device']), 'id'));
}
if (!empty($param['category'])) {
$category[] = $param['category'];
}
if (!empty($category)) {
$query->where('cid', 'in', $category);
}
})
->order(['id' => 'desc', 'sort' => 'desc'])
->paginate($param['size']);
// 组装系列型号
$article = $this->getProductSeriesIdMaps($data->items());
return json([
'code' => 0,
'data' => [
'article' => $article,
'page' => [
'current_page' => $data->currentPage(),
'total_page' => $data->lastPage(),
'list_size' => $data->listRows(),
'total_size' => $data->total(),
],
],
'message' => 'success',
]);
} catch (\Throwable $th) {
return json([
'code' => 1,
'data' => [],
'message' => $th->getMessage(),
]);
}
}
// 型号
$this->assign('product_series', $this->getProductSeries());
// 设备
$this->assign('category', $this->getCategoryTree(36));
// 文章列表
$article = Loader::model('Article')
->field([
'id',
'name',
'description',
'product_series',
'content',
])
->where('stat', '=', 0)
->where('country_code', '=', $this->country_code)
->where('cid', 'in', array_merge([38], array_column($this->getCategoryChildren(38), 'id')))
->order(['id' => 'desc', 'sort' => 'desc'])
->paginate(4);
$this->assign('article', $this->getProductSeriesIdMaps($article->items()));
$this->assign('page', [
'current_page' => $article->currentPage(),
'total_page' => $article->lastPage(),
'list_size' => $article->listRows(),
'total_size' => $article->total(),
]);
return $this->fetch();
}
}

142
app/index/controller/User.php Executable file
View File

@@ -0,0 +1,142 @@
<?php
namespace app\index\controller;
use think\Lang;
use think\Loader;
use think\Config;
use think\Session;
class User extends BaseController {
// 初始化
protected function _initialize() {
parent::_initialize();
if ($this->customer_id <= 0) {
abort(redirect(url('/login')));
}
}
public function index() {
$row = Loader::model('Customer')->getRow(['id' => $this->customer_id]);
if (empty($row)) {
return exception('数据有误,请检查后再操作');
}
$value['hangye'] = (array) Config::get('website_hangye');
$value['zhiye'] = (array) Config::get('website_zhiye');
$value['customer'] = $row;
$this->assign($value);
return $this->fetch();
}
public function update() {
if ($this->request->isPost()) {
$data = $this->request->post();
if (empty($data) || !is_array($data)) {
return $this->error(Lang::get('incorrect operation'));
}
// //验证规则
// $validaterule = ['birthday' => 'require|date',];
// //验证提示信息
// $validatemsg = ['birthday.date' => '生日不是日期格式',];
// $valid_result = $this->validate($data, $validaterule, $validatemsg);
// if (true !== $valid_result) {
// // 验证失败 输出错误信息
// return $this->error($valid_result);
// }
$data['id'] = $this->customer_id;
$model = Loader::model('Customer')->updateRow($data);
if ($model && $model->getData('id')) {
return $this->success(Lang::get('operation successed'));
} else {
return $this->error(Lang::get('operation failed'));
}
}
return $this->error(Lang::get('incorrect operation'));
}
public function resetpwd() {
if ($this->request->isPost()) {
$data = $this->request->post();
if (empty($data) || !is_array($data)) {
return $this->error(Lang::get('incorrect operation'));
}
//验证规则
$validaterule = [
'password' => 'require|min:6|max:32',
'repassword' => 'require|confirm:password',
];
//验证提示信息
$validatemsg = [
'password.require' => '密码不能为空',
'password.min' => '密码不少于6个字符',
'password.max' => '密码不多于32个字符',
'repassword.require' => '确认密码不能为空',
'repassword.confirm' => '两次密码不相符',
];
$valid_result = $this->validate($data, $validaterule, $validatemsg);
if (true !== $valid_result) {
// 验证失败 输出错误信息
return $this->error($valid_result);
}
$row = Loader::model('Customer')->getRow(['id' => $this->customer_id]);
if (empty($row)) {
return $this->error('数据有误,请检查后再操作');
}
$data['id'] = $this->customer_id;
$model = Loader::model('Customer')->updatePassword($data);
if ($model && $model->getData('id')) {
return $this->success('修改密码成功');
}
}
return $this->error(Lang::get('incorrect operation'));
}
public function resetemail() {
if ($this->request->isPost()) {
$data = $this->request->post();
if (empty($data) || !is_array($data)) {
return $this->error(Lang::get('incorrect operation'));
}
//验证规则
$validaterule = ['email' => 'email|unique:customer,email',];
//验证提示信息
$validatemsg = [
'email.email' => '邮箱格式错误',
'email.unique' => '邮箱已经被使用',
];
$valid_result = $this->validate($data, $validaterule, $validatemsg);
if (true !== $valid_result) {
// 验证失败 输出错误信息
return $this->error($valid_result);
}
$row = Loader::model('Customer')->getRow(['id' => $this->customer_id]);
if (empty($row)) {
return $this->error('数据有误,请检查后再操作');
}
$model = Loader::model('Customer')->update(['email' => $data['email'], 'id' => $this->customer_id]);
if ($model && $model->getData('id')) {
return $this->success('修改邮箱成功');
}
}
return $this->error(Lang::get('incorrect operation'));
}
public function resettx() {
if ($this->request->isPost()) {
$data = $this->request->post();
$txarr = range(0, 5);
shuffle($txarr);
$data['picture'] = '/uploads/user/ns' . $txarr[0] . '.jpg';
$data['id'] = $this->customer_id;
$model = Loader::model('Customer')->updateRow($data);
if ($model && $model->getData('id')) {
return $this->success(Lang::get('operation successed'), null, ['picture' => $data['picture']]);
} else {
return $this->error(Lang::get('operation failed'));
}
}
return $this->error(Lang::get('incorrect operation'));
}
}

186
app/index/controller/Video.php Executable file
View File

@@ -0,0 +1,186 @@
<?php
namespace app\index\controller;
use think\Loader;
use think\Cookie;
use think\Config;
class Video extends BaseController {
public function lists() {
$skeyword = $this->request->get('skeyword', '', 'urldecode');
$arg_where = ['a.siteid' => $this->siteid, 'country_code' => $this->country_code, 'isshow' => 1, 'stat' => 0];
if (!empty($skeyword)) {
$skeyword = trim($skeyword);
$arg_where['a.name'] = ['like', '%' . $skeyword . '%'];
Config::set('paginate.query', ['skeyword' => $skeyword]); //分页参数
}
$videoCategory = Loader::model('VideoCategory')->getList(['siteid' => $this->siteid, 'stat' => 0, 'isshow' => 1, 'country_code' => $this->country_code], ['sort', 'id'], ['id', 'pid', 'haschild', 'name', 'shortname', 'description', 'sort', 'isshow', 'recommend', 'picture', 'image1', 'image2', 'classtype', 'url']);
$value = [
'videoCategory' => $videoCategory,
];
$value['seo_title'] = config('video_seo_title')? : config('website_seo_title');
$value['seo_keyword'] = config('video_seo_keyword')? : config('website_seo_keyword');
$value['seo_description'] = config('video_seo_description')? : config('website_seo_description');
$this->assign($value);
return $this->fetch();
}
public function catelists($id = 0) {
$arg_where = ['a.siteid' => $this->siteid, 'a.country_code' => $this->country_code];
$id = intval($id);
if ($id > 0) {
$category = Loader::model('VideoCategory')->getRow($id);
if ($category['haschild']) {
$ids = Loader::model('VideoCategory')->getChildIDArray($id);
$arg_where['cid'] = ['in', $ids];
} else {
$arg_where['cid'] = $id;
}
}
if (empty($category)) {
return exception('数据有误,请检查后再操作');
}
unset($category['siteid']);
$value['category'] = $category;
$skeyword = $this->request->get('skeyword', '', 'urldecode,strval');
if ($skeyword != '') {
$skeyword = trim($skeyword);
$search['skeyword'] = $skeyword;
$arg_where['a.name'] = ['like', '%' . $search['skeyword'] . '%'];
Config::set('paginate.query', ['skeyword' => $skeyword]); //分页参数
$value['search'] = $search;
}
switch ($category['classtype']) {
case 2:
$template = $category['templist'];
$arg_order = ['a.id' => 'desc'];
$arg_field = ['a.id', 'a.cid', 'a.name', 'a.sort', 'a.headline', 'a.ishot', 'a.recommend', 'a.viewcount', 'a.videopath', 'a.videourl', 'a.description', 'a.picture', 'a.createtime', 'c.id' => 'categoryid', 'c.name' => 'categoryname'];
$dataObject = Loader::model('Video')->getCateVideoLists($arg_where, $arg_order, $arg_field, 10);
$value['list'] = $dataObject->isEmpty() ? null : $dataObject->items();
$value['page'] = $dataObject->render();
if ($this->request->isAjax()) {
return $this->result($value, true, '视频列表');
}
$videoCategory = Loader::model('VideoCategory')->getList(['siteid' => $this->siteid, 'stat' => 0, 'isshow' => 1, 'country_code' => $this->country_code], ['sort', 'id'], ['id', 'pid', 'haschild', 'name', 'shortname', 'description', 'sort', 'isshow', 'recommend', 'picture', 'image1', 'image2', 'classtype', 'url']);
$value['videoCategory'] = $videoCategory;
break;
case 3:
header('location:' . $category['url']);
exit;
break;
default:
$template = $category['tempindex'];
break;
}
$value['seo_title'] = $category['seo_title']? : config('website_seo_title');
$value['seo_keyword'] = $category['seo_keyword']? : config('website_seo_keyword');
$value['seo_description'] = $category['seo_description']? : config('website_seo_description');
$this->assign($value);
return $this->fetch($template);
}
public function detail($id = 0) {
if ($id > 0) {
$detail = Loader::model('Video')->getRow($id);
if (empty($detail)) {
return exception('数据有误,请检查后再操作');
}
//$addvideo = Loader::model('VideoAddition')->getRowAddition(['aid' => $detail['id']]);
$category = Loader::model('VideoCategory')->getRow($detail['cid']);
if (empty($category)) {
return exception('数据有误,请检查后再操作');
}
//$prev_detail = Loader::model('Video')->getRow(['id' => ['gt', $id], 'cid' => $category['id'], 'stat' => 0], ['id', 'name'], ['id' => 'asc']);
//$next_detail = Loader::model('Video')->getRow(['id' => ['lt', $id], 'cid' => $category['id'], 'stat' => 0], ['id', 'name'], ['id' => 'desc']);
$value = [
'detail' => $detail,
//'addvideo' => $addvideo,
'category' => $category,
//'prev_detail' => $prev_detail,
//'next_detail' => $next_detail,
];
$value['seo_title'] = $detail['seo_title']? : $detail['name'] . '-' . config('website_seo_title');
$value['seo_keyword'] = $detail['seo_keyword']? : config('website_seo_keyword');
$value['seo_description'] = $detail['seo_description']? : config('website_seo_description');
$this->assign($value);
$this->viewcount($id);
return $this->fetch();
} else {
return exception('数据有误,请检查后再操作');
}
}
protected function viewcount($id) {
$view = Cookie::get('videoview', 'history'); //print_r($history);exit;
if (empty($view) || $view != $id) {
Loader::model('Video')->where(['id' => $id])->setInc('viewcount');
Cookie::set('videoview', $id, ['prefix' => 'history', 'expire' => 3600]);
}
}
protected function historyvideo($id) {
$video = Cookie::get('video', 'history'); //print_r($history);exit;
if (isset($video) && !empty($video)) {
$video_ids = explode(',', $video);
if ($video_ids[0] != $id) {
array_unshift($video_ids, $id);
$video_ids = array_unique($video_ids);
$num = Config::get('history_number') > 0 ? Config::get('history_number') : 10;
//$video_ids = array_slice($video_ids, 0, $num);
while (count($video_ids) > $num) {
array_pop($video_ids);
}
Cookie::set('video', implode(',', $video_ids), ['prefix' => 'history', 'setcookie' => true, 'expire' => 3600 * 24 * 30]);
}
} else {
Cookie::set('video', $id, ['prefix' => 'history', 'setcookie' => true, 'expire' => 3600 * 24 * 30]);
}
}
public function items($id = 0) {
$arg_where = ['a.siteid' => $this->siteid, 'a.country_code' => $this->country_code];
$id = intval($id);
$category = array();
if ($id > 0) {
$category = Loader::model('VideoCategory')->getRow($id);
if ($category['haschild']) {
$ids = Loader::model('VideoCategory')->getChildIDArray($id);
//$arg_where['cid'] = ['in', $ids];
}
}
unset($category['siteid']);
$value['category'] = $category;
$arg_order = ['a.id' => 'desc'];
$arg_field = ['a.id', 'a.cid', 'a.name', 'a.sort', 'a.headline', 'a.ishot', 'a.recommend', 'a.viewcount', 'a.videopath', 'a.videourl', 'a.description', 'a.picture', 'a.createtime', 'c.id' => 'categoryid', 'c.name' => 'categoryname'];
$dataObject = Loader::model('Video')->getCateVideoLists($arg_where, $arg_order, $arg_field, 10);
$value['list'] = $dataObject->isEmpty() ? null : $dataObject->items();
$value['page'] = $dataObject->render();
if ($this->request->isAjax()) {
return $this->result($value, true, '视频列表');
}
$videoCategory = Loader::model('VideoCategory')->getList(['siteid' => $this->siteid, 'stat' => 0, 'isshow' => 1, 'country_code' => $this->country_code], ['sort', 'id'], ['id', 'pid', 'haschild', 'name', 'shortname', 'description', 'sort', 'isshow', 'recommend', 'picture', 'image1', 'image2', 'classtype', 'url']);
$value['videoCategory'] = $videoCategory;
//echo "<pre>=="; print_r($dataObject->items());
$value['seo_title'] = isset($category['seo_title']) ? : config('website_seo_title');
$value['seo_keyword'] = isset($category['seo_keyword'])? : config('website_seo_keyword');
$value['seo_description'] = isset($category['seo_description'])? : config('website_seo_description');
$this->assign($value);
return $this->fetch();
}
}

257
app/index/index.phtml Executable file
View File

@@ -0,0 +1,257 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ORICO/奥睿科集团官网|数据线|硬盘盒|电脑配件|插线板</title>
<meta name="Keywords" content="ORICO,奥睿科,插线板,HUB,充电器,移动硬盘盒,USB3.0,车充,排插,数据线" />
<meta name="Description" content="ORICO/奥睿科集团官网拥有成熟的电脑/数码周边外设配件产品提供USB插线板硬盘盒USB3.0 HUBUSB充电器数据线车充等数码3C产品的在线选购让您轻松享受科技数码时代的乐趣客服电话400-6696-298" />
<!-- <script name="baidu-koubei-verification" src="//ikoubei.baidu.com/embed/1ba921d43f25f664afbdc9bd646d2ce2"></script>-->
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/scripts/bxslider/jquery.bxslider.css">
<script type="text/javascript" src="__PUBLIC__/web/scripts/bxslider/jquery.bxslider.min.js"></script>
<!-- <style>
/*首页弹出*/
.popup {
position: fixed;
background-color: rgba(0,0,0,0.5);
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 9999;
}
.popup_img {
position: relative;
left: 50%;
top: 50%;
margin-top: -10.68vw;
margin-left: -17.71vw;
}
.close {
position: absolute;
right: 27.6vw;
top: 50%;
margin-top: -11.68vw;
z-index: 10000;
width: 1.875vw;
height: 1.875vw;
}
</style> -->
</head>
<body οnlοad="openwin()">
<!--top-->
<header class="header-PC header-Index">
<div id="header">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
{include file="include/top-header-mobile" /}
<!--top End-->
{include file="include/banner" /}
<?php $bigbanners = getBannerList(8, 6); if ($bigbanners): ?>
<!-- phone s-->
<div class="swiper-container deimg">
<div class="swiper-wrapper">
<?php foreach ($bigbanners as $k => $banner): ?>
<div class="swiper-slide"><a href="<?php echo $banner['url']; ?>"><img src="<?php echo getImage($banner['picture']); ?>"></a></div>
<?php endforeach; ?>
</div>
<!-- Add Pagination -->
<div class="swiper-pagination bandot"></div>
</div>
<script>
var swiper = new Swiper('.deimg', {
loop: true,
autoplay: true,
pagination: {
el: '.bandot',
},
});
</script>
<!-- phone e -->
<?php endif; ?>
<!-- 品类探索 s -->
<?php if ($productCategory): ?>
<div class="lj_index_img_01">
<div class="lj_its_img">
<ul>
<?php foreach ($productCategory as $k => $pc): if ($k > 8) break; ?>
<li>
<div class="lj-port-1 effect-1">
<div class="position-r"> <a href="<?php echo url_rewrite('product', ['id' => $pc['id']]); ?>"><img src="<?php echo $pc['image']; ?>" >
<div class="groups_a"><?php echo $pc['name']; ?></div>
</a></div>
<div class="text-desc"> <a href="<?php echo url_rewrite('product', ['id' => $pc['id']]); ?>"> <img src="<?php echo getImage($pc['picture']); ?>" alt=""/> </a></div>
</div>
</li>
<?php endforeach; ?>
</ul>
</div>
<div style="clear:both"></div>
</div>
<script type="text/javascript">
var pl_length = $(".lj_its_img li").length
var pl_slier_width = $(".lj_its_img").width();
//var pl_li_width = pl_slier_width * 0.1429;
if(pl_slier_width>960){
var pl_li_width = pl_slier_width * 0.1111;
}else if(pl_slier_width<640){
var pl_li_width = pl_slier_width * 0.25;
}else{
var pl_li_width = pl_slier_width * 0.2;
}
if((pl_li_width * pl_length)>pl_slier_width){
$(document).ready(function(){
$('.lj_index_img_01 ul').bxSlider({
slideWidth: pl_li_width,
minSlides: 1,
maxSlides: 8,
moveSlides: 1,
slideMargin: 0,
auto:true,
controls:true,
pager:false,
infiniteLoop:false
});
});
}
</script>
<?php endif; ?>
<!--特色专题及公司实力-->
<div class="swt-Container">
<div class="home_new">
<ul>
<li class="img-responsive">
<a href="__ORICOROOT__/index/Group/special">
<img src="__PUBLIC__/web/images/home/special_index.jpg">
<div class="position-a position-a-w"><img src="__PUBLIC__/web/images/home/special_index_button.png"></div>
</a>
</li>
<li class="img-responsive workshop">
<div class="workshop_all f-black">
<a href="__ORICOROOT__/index/Group/odm">
<img src="__PUBLIC__/web/images/home/workshop-01.jpg">
<div class="content">
<div class="content_text">
<div class="title">品牌ODM服务</div>
<div class="subtitle">两周研发一周生产的211服务速度</div>
</div>
</div>
</a>
<a href="__ORICOROOT__/index/Group/rdcenter">
<img src="__PUBLIC__/web/images/home/workshop-02.jpg">
<div class="content">
<div class="content_text">
<div class="title">集团技术研发中心</div>
<div class="subtitle">新技术追踪钻研的力量</div>
</div>
</div>
</a>
<a href="__ORICOROOT__/index/Group/industry">
<img src="__PUBLIC__/web/images/home/workshop-03.jpg">
<div class="content">
<div class="content_text">
<div class="title">集团产业链</div>
<div class="subtitle">研发、设计、生产的全产业链实力</div>
</div>
</div>
</a>
</div>
</li>
</ul>
</div>
</div>
<!-- 聆听 s -->
<div class="swt-Container">
<div class="f_blue font-48 text-c video-index-title f_weight_600">小改变 大不同</div>
<div class="f-black font-24 text-c video-index-subtitle margin-t-10vw">Little changebig difference</div>
<div class="index-video margin-t-20vw">
<div class="video-index-image">
<img src="__PUBLIC__/web/images/home/index-video.jpg" style="position: relative; z-index: -1;">
<div class="index-video-content" >
<video controls poster="__PUBLIC__/web/images/home/index-video.jpg" width="100%" src="__PUBLIC__/web/images/home/brand-video.mp4" loop x-webkit-airplay="true" webkit-playsinline="true">
您的浏览器不支持 video 标签。
Your browser does not support HTML5 video.
</video>
</div>
</div>
</div>
<!-- 聆听 e -->
<!-- 新闻资讯 s -->
<?php
$articles = getDifferentArticle('headline', 6, ['cid' => 1]);
if ($articles):
?>
<div class="swt-Container video-index-title index_news">
<div class="f_blue font-48 text-c video-index-title">最新动态</div>
<div class="newBox">
<ul class="img-responsives">
<?php foreach ($articles as $article): ?>
<li>
<div class="left"><img src="<?php echo getImage($article['picture']); ?>"></div>
<div class="right">
<a href="<?php echo url_rewrite('articledetail', ['id' => $article['id']]); ?>"><p class="font-24 f_blue text-l" style="line-height: 1.25em;"><?php echo msubstr($article['name'], 0, 36); ?></p></a>
<p class="font-24 f-black text-l margin-t-15vw"><?php echo date('Y.m.d', $article['createtime']); ?></p>
<p class="font-9 f-black text-l padding-t-8vw" style="line-height: 2em;"><?php echo msubstr($article['description'], 0, 200); ?></p>
</div>
</li>
<?php endforeach; ?>
</ul>
</div>
</div>
<!-- 新闻资讯 e -->
<?php endif; ?>
</div>
<!-- 弹出框 S-->
<div class="popup" id="popup">
<div class="popup_img">
<a href="https://ws-orico.jd.com/"><img src="__PUBLIC__/web/images/backuper/popup.jpg"></a>
</div>
<div class="close" id="close">
<img src="__PUBLIC__/web/images/backuper/close.png">
</div>
</div>
<!-- 弹出框 E-->
<!-- bottom s -->
{include file="include/bottom" /}
{include file="include/kefu" /}
<script type="text/javascript" src="__PUBLIC__/web/scripts/bxslider/jquery.bxslider.min.js"></script>
<!-- bottom e -->
<script type="text/javascript">
//首页弹窗
function openwin()
{
$("#popup").show();
};
// //首页弹窗关闭
$("#close").click(function(){
$("#popup").hide();
});
/*新闻轮播*/
$(function(){
$('.newBox ul').bxSlider({
controls:true,
pager:false,
infiniteLoop:false,
auto:true,
pause:2000
});
});
</script>
</body>
</html>

15
app/index/tags.php Executable file
View File

@@ -0,0 +1,15 @@
<?php
/**
* 行为扩展
*/
return [
'module_init' => [
'app\\common\\behavior\\SystemConfig',
],
'action_begin' => [
],
'user_behavior' => [
]
];

121
app/index/validate/Customer.php Executable file
View File

@@ -0,0 +1,121 @@
<?php
namespace app\index\validate;
use think\Validate;
class Customer extends Validate
{
protected $rule = [
['telephone', 'require|number|check_value:telephone', '手机号不能为空|手机号必须为数字'],
// ['firstname', 'require|min:2|max:20', '用户名不能为空|用户名至少2个字符|用户名最多20个字符'],
['password', 'require|check_value:password', '密码不能为空'],
];
protected $scene = [
'register_by_telephone' => ['telephone'],
'register_by_email' => ['email'],
'login' => ['telephone', 'password'],
'update_tel' => ['new_telephone']
];
protected function check_value($value, $rule) {
$telephone = input('telephone');
switch ($rule) {
case 'telephone':
if (!preg_match("/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/", $value))
{
return '手机号格式错误';
}
if ($this->currentScene == 'register_by_telephone')
{
$customer = model('customer')->where(['stat' => 0, 'telephone' => $value])->find();
if ($customer)
{
return '该手机号已存在';
}
else
{
return true;
}
}
else if ($this->currentScene == 'login')
{
return true;
}
else
{
return '验证场景不存在';
}
return true;
break;
case 'email':
if (!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/", $value))
{
return '邮箱格式错误';
}
$customer = model('customer')->getBasicInfoByEmail($value);
if ($this->currentScene == 'register_by_email')
{
if ($customer)
{
// 如果场景为注册,且该手机用户存在
return '该邮箱已存在';
}
else
{
return true;
}
}
else
{
return '验证场景不存在';
}
case 'password':
if ($this->currentScene == 'login')
{
$customer = model('customer')->where(['stat' => 0, 'telephone' => $telephone])->find();
if (empty($customer))
{
return '手机号未注册';
}
if ($customer['password'] != md5($value))
{
return '手机号或密码错误';
}
return true;
}
if (!preg_match("/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,20}$/", $value))
{
return '密码必须包含8-20个字符,且包含数字和字母';
}
return true;
break;
case 'new_telephone':
if (!preg_match("/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/", $value))
{
return '手机号格式错误';
}
$customer = model('customer')->where(['stat' => 0, 'telephone' => $value])->find();
if (!empty($customer))
{
return '改手机号已被注册';
}
return true;
break;
default:
break;
}
}
}

View File

@@ -0,0 +1,79 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>防伪码查询结果</title>
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/Anti-Fake.css">
</head>
<body class="bg-gray">
<!--top-->
<header class="header-PC header-Product">
<div id="header" class="theme-black">
{include file="include/top-head2023" /}
</div>
</header>
{include file="include/top-header-mobile" /}
<div class="indexbox-product">
<div class="swt-Container overflow-f">
<div class="product_address "><a href="__ORICOROOT__" class="f-black">首页</a><span class="icon-arrow arrow_address"></span><a href="__ORICOROOT__/index/antifake">SSD防伪查询</a><span class="icon-arrow arrow_address"></span>真伪信息查询</div>
<div class="bg-white overflow-f text-c font-11 f_blue f_weight_600 fw_result_title ">防伪码{$data.fake}查询结果</div>
<?php if($data['result']==1){?>
<?php if($data['chicktime']!=date("Y-m-d H:i:s")){?>
<div class="bg-white overflow-f text-l font-11 f-black fw_result_title"><div class="fw_l">尊敬的用户您好:<br>
您所查询的防伪码已:{$data.chicktime}被查询过。如有疑问可联系客服,谢谢。
</div>
</div>
<?php }else{?>
<div class="bg-white overflow-f text-l font-11 f-black fw_result_title"><div class="fw_l">尊敬的用户您好:您查询的产品为ORICO正品感谢您的使用谢谢 </div></div>
<?php }?>
<div class="bg-white overflow-f" style="margin-bottom: 4vw;">
<!--<div class="fw_result">
<div class="f-black font-11 f-black">产品信息</div>
<ul>
<li>
<div class="left img-responsive"></div>
<div class="right">
<p class="padding-t-5vw">产品名称:<?php echo $data['made_up_articles_name']; ?></p>
<p class="padding-t-5vw">产品型号:<?php echo $data['specifications_and_models']; ?></p>
<!--<p class="padding-t-5vw">出厂日期:<?php echo $data['production_date']; ?></p>
<p class="padding-t-5vw">保修日期至:<?php echo $data['mendtime']; ?></p>-->
<!--<p class="padding-t-5vw">ORICO为本产品提供五年质保和免费技术支持服务如产品出现故障您可联系购买平台或ORICO客服服务中心享受质保服务。</p>
<div class="padding-t-5vw"><a href="__PUBLIC__/web/images/Anti-Fake/SSD-Warranty.pdf" target="_blank"><span class="fw_button font-16 bg_blue pop_check cursor_p">质保详情</span></a></div>
</div>
</li>
<li class="img-responsive margin-t-50 padding-t-8vw">
<img src="__PUBLIC__/web/images/Anti-Fake/fake_02.jpg">
<p class="padding-t-8vw">*注:铭牌贴贴纸不要撕毁或者损坏,否则将无法进行保修。</p>
</li>
</ul>
</div>-->
</div>
<?PHP }elseif($data['result']==9){?>
<div class="bg-white overflow-f text-l font-11 f-black fw_result_title" style="margin-bottom: 2vw;"><div class="fw_l">尊敬的用户您好:您查询的产品为官方正品! </div></div>
<?PHP }else{?>
<div class="bg-white overflow-f text-l font-11 f-black fw_result_title" style="margin-bottom: 2vw;"><div class="fw_l">非常抱歉我没认出您所输入的信息,请重试或联系在线客服,谢谢。 </div></div>
<?php }?>
</div>
<div></div>
<script src="__PUBLIC__/adminlte/plugins/iCheck/icheck.min.js"></script>
<script type="text/javascript">
$(function() {
$("#verifyimg, #averifyimg").click(function(event) {
event.preventDefault();
$img = $("#verifyimg");
$img.attr("src", "<?php echo url('/captcha/authcode');?>?t=" + Math.random());
//$img.attr("src", $img.attr("src").substring(0, 21) + "?" + Math.random());
//jQuery(this).attr("src", "<?php echo url('/admin/authcode/verify');?>?" + Math.random());
});
});
</script>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,75 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>防伪码查询结果</title>
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/Anti-Fake.css">
</head>
<body class="bg-gray">
<!--top-->
<header class="header-PC header-Product">
<div id="header" class="theme-black">
{include file="include/top-head2023" /}
</div>
</header>
{include file="include/top-header-mobile" /}
<div class="indexbox-product">
<div class="swt-Container overflow-f">
<div class="product_address "><a href="__ORICOROOT__" class="f-black">首页</a><span class="icon-arrow arrow_address"></span><a href="__ORICOROOT__/index/antifake">SSD防伪查询</a><span class="icon-arrow arrow_address"></span>真伪信息查询</div>
<div class="bg-white overflow-f text-c font-11 f_blue f_weight_600 fw_result_title ">防伪码{$data.fake}查询结果</div>
<?php if($data['result']==1){?>
<?php if($data['chicktime']!=date("Y-m-d H:i:s")){?>
<div class="bg-white overflow-f text-l font-11 f-black fw_result_title"><div class="fw_l">尊敬的用户您好:<br>{$data
您所查询的防伪码已{$data.chicktime}被查询过。如有疑问可联系客服,谢谢。
</div></div>
<?php }else{?>
<div class="bg-white overflow-f text-l font-11 f-black fw_result_title"><div class="fw_l">尊敬的用户您好:您所查询的产品是正品,请您放心使用。</div></div>
<?php }?>
<div class="bg-white overflow-f" style="margin-bottom: 4vw;">
<!-- <div class="fw_result">
<div class="f-black font-11 f-black">产品信息</div>
<ul>
<li>
<div class="left img-responsive"></div>
<div class="right">
<p class="padding-t-5vw">产品名称:<?php echo $data['made_up_articles_name']; ?></p>
<p class="padding-t-5vw">产品型号:<?php echo $data['specifications_and_models']; ?></p>
<!--<p class="padding-t-5vw">出厂日期:<?php echo $data['production_date']; ?></p>
<p class="padding-t-5vw">保修日期至:<?php echo $data['mendtime']; ?></p>-->
<!--<p class="padding-t-5vw">ORICO为本产品提供五年质保和免费技术支持服务如产品出现故障您可联系购买平台或ORICO客服服务中心享受质保服务。</p>
<div class="padding-t-5vw"><a href="__PUBLIC__/web/images/Anti-Fake/SSD-Warranty.pdf" target="_blank"><span class="fw_button font-16 bg_blue pop_check cursor_p">质保详情</span></a></div>
</div>
</li>
<li class="img-responsive margin-t-50 padding-t-8vw">
<img src="__PUBLIC__/web/images/Anti-Fake/fake_02.jpg">
<p class="padding-t-8vw">*注:铭牌贴贴纸不要撕毁或者损坏,否则将无法进行保修。</p>
</li>
</ul>
</div>-->
</div>
<?PHP }else{?>
<div class="bg-white overflow-f text-l font-11 f-black fw_result_title" style="margin-bottom: 2vw;"><div class="fw_l">非常抱歉我没认出您所输入的信息,请重试或联系在线客服,谢谢。 </div></div>
<?php }?>
</div>
<div></div>
<script src="__PUBLIC__/adminlte/plugins/iCheck/icheck.min.js"></script>
<script type="text/javascript">
$(function() {
$("#verifyimg, #averifyimg").click(function(event) {
event.preventDefault();
$img = $("#verifyimg");
$img.attr("src", "<?php echo url('/captcha/authcode');?>?t=" + Math.random());
//$img.attr("src", $img.attr("src").substring(0, 21) + "?" + Math.random());
//jQuery(this).attr("src", "<?php echo url('/admin/authcode/verify');?>?" + Math.random());
});
});
</script>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,175 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SSD防伪查询</title>
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/Anti-Fake.css">
</head>
<body class="bg-gray">
<!--top-->
<header class="header-PC header-Product">
<div id="header" class="theme-black">
{include file="include/top-head2023" /}
</div>
</header>
{include file="include/top-header-mobile" /}
<div class="indexbox-product">
<div class="swt-Container overflow-f padding-b-80">
<div class="product_address"><a href="__ORICOROOT__" class="f-black">首页</a><span class="icon-arrow arrow_address"></span>SSD防伪查询</div>
<div class="overflow-f text-c f-black font-11">
<div class="fw_fw_title fw_on"><span class="cursor_p">请输入防伪码</span></div><div class="fw_sn_title"><span class="cursor_p">请输入S/N码</span></div>
</div>
<div class="bg-white overflow-f">
<div class="fw_01 fw_one">
<ul>
<li>
<p class="fw_search img-responsive"><img src="__PUBLIC__/web/images/Anti-Fake/fw_01.jpg"></p>
<p class="font-11 f-black">请输入防伪码</p>
<p class="font-9 f-l-gray padding-t-5vw">输入产品铭牌贴上二维码下方防伪码查询真伪以及质保信息</p>
<form action="<?php echo url('antifake/anti_fake_result');?>" method="post" class="fw_form">
<p class="padding-t-8vw"><input placeholder="请输入防伪码" name="fake" id="sn" class="w-65" maxlength="8"></p>
<!--p class="padding-t-8vw"><input placeholder="请输入验证码" name="captcha" class="w-25"> <img id="verifyimg" src="<?php echo url('/captcha/authcode');?>" class=" ycode img-responsive margin-l-1" style="height: 2.5em;"><button type="button" class="f-gray font-16 btn-primary margin-l-1" id="averifyimg">换一个</button></p-->
<p class="padding-t-8vw"><span class="fw_button font-16 bg_blue pop_check cursor_p">立即查询</span></p>
<!--弹出框-->
<div class="Popup_all" style="display: none;">
<div class="Popup">
<div class="close"><span class="cursor_p"><img src="__PUBLIC__/web/images/Anti-Fake/close.jpg"></span></div>
<div class="Popup_content">
<div class="font-11 f-black text-c">温馨提示</div>
<div class="font-9 f-l-gray margin-t-10vw">产品防伪码只可查询一次,如产品被二次查询,谨防假冒!如有疑问请拨打服务热线 400-6696-298查问咨询。</div>
<p class="text-c margin-t-20vw"><button class="fw_button font-16 bg_blue" type="submit">立即查询</button></p>
</div>
</div>
</div>
</form>
</li>
<li>
<p class="font-11 f-black">如何获取防伪码</p>
<p class="font-9 f-l-gray padding-t-5vw">可在固态硬盘上找到铭牌贴:</p>
<p class="padding-t-5vw img-responsive"><img src="__PUBLIC__/web/images/Anti-Fake/fake.jpg"></p>
<p class="font-9 f-l-gray padding-t-5vw">注:铭牌贴贴纸不要撕毁或者损坏,否则将无法进行保修。</p>
</li>
</ul>
</div>
<div class="fw_01 fw_two" style="display: none">
<ul>
<li>
<p class="fw_search img-responsive"><img src="__PUBLIC__/web/images/Anti-Fake/fw_01.jpg"></p>
<p class="font-11 f-black">请输入S/N码</p>
<p class="font-9 f-l-gray padding-t-5vw">输入产品铭牌贴上S/N码查询真伪以及质保信息</p>
<form action="<?php echo url('antifake/sn_result');?>" method="post" class="fw_form" onsubmit="return check();">
<p class="padding-t-8vw"><input placeholder="请输入S/N码" name="sn" id="sn" class="w-65"></p>
<!--p class="padding-t-8vw"><input placeholder="请输入验证码" name="captcha" class="w-25"> <img id="verifyimg1" src="<?php echo url('/captcha/authcode');?>" class="ycode img-responsive margin-l-1" style="height: 2.5em;"><button type="button" class="f-gray font-16 btn-primary margin-l-1" id="averifyimg1">换一个</button></p-->
<p class="padding-t-8vw"><button class="fw_button font-16 bg_blue pop_sn" type="submit">立即查询</button></p>
</form>
</li>
<li>
<p class="font-11 f-black" >如何获取S/N码</p>
<p class="font-9 f-l-gray padding-t-5vw">可在固态硬盘上找到铭牌贴:</p>
<p class="padding-t-5vw img-responsive"><img src="__PUBLIC__/web/images/Anti-Fake/sn_01.jpg" ></p>
<p class="font-9 f-l-gray padding-t-5vw">注:铭牌贴贴纸不要撕毁或者损坏,否则将无法进行保修。</p>
</li>
</ul>
</div>
</div>
</div>
<div>
</div>
<script src="__PUBLIC__/adminlte/plugins/iCheck/icheck.min.js"></script>
<script type="text/javascript">
/*验证码*/
$(function() {
$("#verifyimg, #averifyimg").click(function(event) {
event.preventDefault();
$img = $("#verifyimg");
$img.attr("src", "<?php echo url('/captcha/authcode');?>?t=" + Math.random());
//$img.attr("src", $img.attr("src").substring(0, 21) + "?" + Math.random());
//jQuery(this).attr("src", "<?php echo url('/admin/authcode/verify');?>?" + Math.random());
});
});
/*验证码1*/
$(function() {
$("#verifyimg1, #averifyimg1").click(function(event) {
event.preventDefault();
$img = $("#verifyimg1");
$img = $("#verifyimg1");
$img.attr("src", "<?php echo url('/captcha/authcode');?>?t=" + Math.random());
//$img.attr("src", $img.attr("src").substring(0, 21) + "?" + Math.random());
//jQuery(this).attr("src", "<?php echo url('/admin/authcode/verify');?>?" + Math.random());
});
});
/*切换效果*/
$(document).ready(function(){
$(".fw_fw_title").click(function(){
event.preventDefault();
$img = $("#verifyimg");
$img.attr("src", "<?php echo url('/captcha/authcode');?>?t=" + Math.random());
$(this).addClass("fw_on");
$(this).siblings().removeClass("fw_on");
$(".fw_one").show();
$(".fw_two").hide();
});
$(".fw_sn_title").click(function(){
event.preventDefault();
$img = $("#verifyimg1");
$img.attr("src", "<?php echo url('/captcha/authcode');?>?t=" + Math.random());
$(this).addClass("fw_on");
$(this).siblings().removeClass("fw_on")
$(".fw_one").hide();
$(".fw_two").show();
});
/*点击弹出效果*/
$(".Popup_all").hide();
$(".pop_check").click(function(){
var fw = $("input[name='fake'").val().length;
//var fw_lenght = fw.length;
if (fw == 8){
$(".Popup_all").show();
}else{
alert("请输入8位数防伪码");
};
});
$(".close").click(function(){
$(".Popup_all").hide();
});
});
/*判断是否提交表单*/
function check() {
var sn = $("input[name='sn'").val().length;
if(sn < 12 || sn >16){
alert('请输入12~16位数SN码');
return false; //return false; 时,表单不提交
}else {
return true; //return true; 时,表单提交
}
}
</script>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
<style>
.indexbox-product {
margin-top: 32px !important;
padding: 0px 0 0 0 !important;
}
</style>
</body>
</html>

View File

@@ -0,0 +1,138 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>防伪码查询页</title>
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/Anti-Fake.css">
</head>
<body class="bg-gray">
<!--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" /}
<div class="indexbox-product">
<div class="swt-Container overflow-f padding-b-80">
<div class="product_address "><a href="__ORICOROOT__" class="f-black">首页</a><span class="icon-arrow arrow_address"></span>验证服务</div>
<div class="overflow-f text-c f-black font-11">
<div class="fw_fw_title fw_on"><span class="cursor_p">请输入防伪码</span></div><div class="fw_sn_title"><span class="cursor_p">请输入S/N码</span></div>
</div>
<div class="bg-white overflow-f">
<div class="fw_01 fw_one">
<ul>
<li>
<p class="fw_search img-responsive"><img src="__PUBLIC__/web/images/Anti-Fake/fw_01.jpg"></p>
<p class="font-11 f-black">请输入防伪码</p>
<p class="font-9 f-l-gray padding-t-5vw">输入产品铭牌贴上二维码下方防伪码查询真伪以及质保信息</p>
<form action="<?php echo url('antifake/anti_fake_result');?>" method="post" class="fw_form">
<p class="padding-t-8vw"><input placeholder="请输入防伪码" name="fake" id="sn" class="w-65"></p>
<p class="padding-t-8vw"><input placeholder="请输入验证码" name="captcha" class="w-25"> <img id="verifyimg" src="<?php echo url('/captcha/authcode');?>" class="img-responsive margin-l-1" style="height: 2.5em;"><button type="button" class="f-gray font-16 btn-primary margin-l-1" id="averifyimg">换一个</button></p>
<p class="padding-t-8vw"><span class="fw_button font-16 bg_blue pop_check cursor_p">立即查询</span></p>
<!--弹出框-->
<div class="Popup_all" style="display: none;">
<div class="Popup">
<div class="close"><span class="cursor_p"><img src="__PUBLIC__/web/images/Anti-Fake/close.jpg"></span></div>
<div class="Popup_content">
<div class="font-11 f-black text-c">温馨提示</div>
<div class="font-9 f-l-gray margin-t-10vw">产品防伪码只可查询一次,如产品被二次查询,谨防假冒!如有疑问请拨打服务热线 400-6696-298查问咨询。</div>
<p class="text-c margin-t-20vw"><button class="fw_button font-16 bg_blue" type="submit">立即查询</button></p>
</div>
</div>
</div>
</form>
</li>
<li>
<p class="font-11 f-black">如何获取防伪码</p>
<p class="font-9 f-l-gray padding-t-5vw">可在固态硬盘上找到铭牌贴:</p>
<p class="padding-t-5vw img-responsive"><img src="__PUBLIC__/web/images/Anti-Fake/fake.jpg"></p>
<p class="font-9 f-l-gray padding-t-5vw">注:铭牌贴贴纸不要撕毁或者损坏,否则将无法进行保修。</p>
</li>
</ul>
</div>
<div class="fw_01 fw_two" style="display: none">
<ul>
<li>
<p class="fw_search img-responsive"><img src="__PUBLIC__/web/images/Anti-Fake/fw_01.jpg"></p>
<p class="font-11 f-black">请输入S/N码</p>
<p class="font-9 f-l-gray padding-t-5vw">输入产品铭牌贴上S/N码查询真伪以及质保信息</p>
<form action="<?php echo url('antifake/sn_result');?>" method="post" class="fw_form">
<p class="padding-t-8vw"><input placeholder="请输入S/N码" name="sn" id="sn" class="w-65"></p>
<p class="padding-t-8vw"><input placeholder="请输入验证码" name="captcha" class="w-25"> <img id="verifyimg1" src="<?php echo url('/captcha/authcode');?>" class="img-responsive margin-l-1" style="height: 2.5em;"><button type="button" class="f-gray font-16 btn-primary margin-l-1" id="averifyimg1">换一个</button></p>
<p class="padding-t-8vw"><button class="fw_button font-16 bg_blue" type="submit">立即查询</button></p>
</form>
</li>
<li>
<p class="font-11 f-black">如何获取S/N码</p>
<p class="font-9 f-l-gray padding-t-5vw">可在固态硬盘上找到铭牌贴:</p>
<p class="padding-t-5vw img-responsive"><img src="__PUBLIC__/web/images/Anti-Fake/sn_01.jpg"></p>
<p class="font-9 f-l-gray padding-t-5vw">注:铭牌贴贴纸不要撕毁或者损坏,否则将无法进行保修。</p>
</li>
</ul>
</div>
</div>
</div>
<div>
</div>
<script src="__PUBLIC__/adminlte/plugins/iCheck/icheck.min.js"></script>
<script type="text/javascript">
/*验证码*/
$(function() {
$("#verifyimg, #averifyimg").click(function(event) {
event.preventDefault();
$img = $("#verifyimg");
$img.attr("src", "<?php echo url('/captcha/authcode');?>?t=" + Math.random());
//$img.attr("src", $img.attr("src").substring(0, 21) + "?" + Math.random());
//jQuery(this).attr("src", "<?php echo url('/admin/authcode/verify');?>?" + Math.random());
});
});
/*验证码1*/
$(function() {
$("#verifyimg1, #averifyimg1").click(function(event) {
event.preventDefault();
$img = $("#verifyimg1");
$img = $("#verifyimg1");
$img.attr("src", "<?php echo url('/captcha/authcode');?>?t=" + Math.random());
//$img.attr("src", $img.attr("src").substring(0, 21) + "?" + Math.random());
//jQuery(this).attr("src", "<?php echo url('/admin/authcode/verify');?>?" + Math.random());
});
}); /*切换效果*/
$(document).ready(function(){
$(".fw_fw_title").click(function(){
$(this).addClass("fw_on");
$(this).siblings().removeClass("fw_on");
$(".fw_one").show();
$(".fw_two").hide();
});
$(".fw_sn_title").click(function(){
$(this).addClass("fw_on");
$(this).siblings().removeClass("fw_on")
$(".fw_one").hide();
$(".fw_two").show();
});
/*点击弹出效果*/
$(".Popup_all").hide();
$(".pop_check").click(function(){
$(".Popup_all").show();
});
$(".close").click(function(){
$(".Popup_all").hide();
});
});
</script>
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,67 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SN码查询结果</title>
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/Anti-Fake.css">
</head>
<body class="bg-gray">
<!--top-->
<header class="header-PC header-Product">
<div id="header" class="theme-black">
{include file="include/top-head2023" /}
</div>
</header>
{include file="include/top-header-mobile" /}
<div class="indexbox-product" style="padding-top:10px">
<div class="swt-Container overflow-f padding-b-80">
<div class="product_address "><a href="__ORICOROOT__" class="f-black">首页</a><span class="icon-arrow arrow_address"></span><a href="__ORICOROOT__/index/antifake">技本支持</a><span class="icon-arrow arrow_address"></span>保修信息查询</div>
<div class="bg-white overflow-f text-c font-11 f_blue f_weight_600 fw_result_title">S/N码<?php echo $data['sn']; ?>查询结果</div>
<?php if($data['result']==1){?>
<div class="bg-white overflow-f">
<div class="fw_result">
<div class="f-black font-11 f-black">产品信息</div>
<ul>
<li>
<div class="left img-responsive"></div>
<div class="right">
<p class="padding-t-5vw">产品名称:<?php echo $data['made_up_articles_name']; ?></p>
<p class="padding-t-5vw">产品型号:<?php echo $data['specifications_and_models']; ?></p>
<p class="padding-t-5vw">生产日期:<?php echo $data['production_date']; ?></p>
<p class="padding-t-5vw">感谢您购买ORICO产品如有任何疑问可联系购买方或ORICO客户服务中心</p>
</div>
</li>
<li class="img-responsive ">
<img src="__PUBLIC__/web/images/Anti-Fake/sn_02.jpg">
<p class="padding-t-8vw">*注S/N码只能查询到产品信息并不能查询到产品真伪如需查询产品真伪输入二维码下方序列码进行查询。</p>
</li>
</ul>
</div>
</div>
<?PHP }else{?>
<div class="bg-white overflow-f text-l font-11 f-black fw_result_title"><div class="fw_l">非常抱歉我没认出您所输入的信息,请重试或联系在线客服,谢谢。 </div></div>
<?php }?>
</div>
<div></div>
<script src="__PUBLIC__/adminlte/plugins/iCheck/icheck.min.js"></script>
<script type="text/javascript">
$(function() {
$("#verifyimg, #averifyimg").click(function(event) {
event.preventDefault();
$img = $("#verifyimg");
$img.attr("src", "<?php echo url('/captcha/authcode');?>?t=" + Math.random());
//$img.attr("src", $img.attr("src").substring(0, 21) + "?" + Math.random());
//jQuery(this).attr("src", "<?php echo url('/admin/authcode/verify');?>?" + Math.random());
});
});
</script>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,191 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head-seo" /}
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";</script>
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top-head2023" /}
</div>
</header>
{include file="include/top-header-mobile" /}
<!--top End-->
<?php if ($category['picture']): ?>
<!-- 轮播 s -->
<div class="homeban">
<div class="bd">
<ul>
<li><img src="/frontend/web/images/ch-blog.jpg"/></li>
</ul>
</div>
</div>
<!-- 轮播 e -->
<?php endif; ?>
<div class="swt-Container">
<div class="news-vertu">
<div class="tab">
<?php if(!empty($cate_list)): ?>
<?php foreach ($cate_list as $key => $value): ?>
<a href="__ORICOROOT__/article/category/<?php echo $value['id'] ?>.html" class="<?php if ($category['id'] == $value['id']): ?> on <?php endif; ?>"><?php echo $value['name']; ?></a>
<?php endforeach; ?>
<?php endif; ?>
</div>
<div class="search_box">
<i class="search_icon"></i>
<input type="text" placeholder="" class="search" id="article-search-in" value="">
</div>
<div class="content">
<?php if ($list):?>
<ul>
<li>
<div class="blog_list ">
<?php foreach ($list as $detail):?>
<?php
if($detail['jump_link'] == ''){
$alink = url_rewrite('articledetail', array('id' => $detail['id']));
}
else{
$alink = $detail['jump_link'];
}
?>
<div class="clearfix">
<a href="<?php echo $alink;?>">
<img src="<?php echo getImage($detail['picture'], 1500, 1000, 6); ?>">
<h3><?php echo $detail['name']; ?></h3>
<p><?php echo msubstr($detail['description'], 0, 200); ?></p>
</a>
<span class="blue"><?php echo date("Y-m-d H:i:s",$detail['createtime']); ?></span>
</div>
<?php endforeach;?>
</div>
</li>
</ul>
<!-- 新闻列表 s -->
<?php else:?>
<div class="clearfix"> 查询无此结果!</div>
<?php endif;?>
<!-- 分页 s -->
<?php
if ($page) {
echo $page;
}
?>
<!-- 分页 e -->
<script>
$(function() {
$(".newfl .addzan").click(function(event) {
event.preventDefault();
var love = $(this);
var id = love.data("id"); //对应id
if (!love.data("zan")) {
$.ajax({
type: "POST",
dataType: "json",
url: "<?php echo url('/index/article/zan'); ?>",
data: {id: id},
cache: false, //不缓存此页面
success: function(data) {
//console.log(data);
if (data.code) {
love.data("zan", true);
love.html('<i class="f2"></i>点赞(' + data.data + ')');
}
}
});
} else {
alert('您已点过赞了!');
}
return false;
});
});
</script>
<?php
$pingluns = getDifferentPinglun('ishot', 8);
if ($pingluns):
?>
<div class="newrh">
<div class="plun">精彩评论</div>
<ul class="pllist">
<?php foreach ($pingluns as $pinglun): ?>
<li>
<a href="<?php echo url('index/pinglun/lists', ['type' => strtolower($pinglun['typeid']), 'cid' => $pinglun['content_id']]); ?>">
<div class="plfl">
<div class="plimg"><img src="__PUBLIC__/web/uploadfiles/image/ns<?php echo $pinglun['tx']; ?>.jpg"></div>
<div class="peo1"><?php echo $pinglun['cname']; ?></div>
<div class="peo2"><?php echo $pinglun['createtime']; ?></div>
</div>
<div class="plrh">
<div class="plrh1"><?php echo msubstr($pinglun['content'], 0, 200); ?></div>
</div>
<div class="clear"></div>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<div class="clear"></div>
</div>
<!-- 新闻列表 e -->
</div>
</div>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
<script>
$(function(){
$(".news-vertu .tab a").click(function(){
$(this).addClass('on').siblings().removeClass('on');
var index = $(this).index();
number = index;
$('.news-vertu .content li').hide();
$('.news-vertu .content li:eq('+index+')').show();
});
var auto = 1; //等于1则自动切换其他任意数字则不自动切换
if(auto ==1){
var number = 0;
var maxNumber = $('.news-vertu .tab a').length;
function autotab(){
number++;
number == maxNumber? number = 0 : number;
$('.news-vertu .tab a:eq('+number+')').addClass('on').siblings().removeClass('on');
$('.news-vertu .content ul li:eq('+number+')').show().siblings().hide();
}
}
//新闻搜索
var article_search_input = $("#article-search-in");
$(article_search_input).on("keyup", function(e){
$("#article-search-in").keyup(function(event) {
if (event && event.keyCode === 13) {
var keywords = $("#article-search-in").val();
var href = "?skeyword=" + encodeURIComponent(keywords);
location.href = href;
}
});
});
});
</script>
</body>
</html>

View File

@@ -0,0 +1,305 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>News-ORICO Global Site</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/subject/catelists.css">
{include file="include/head-seo" /}
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";</script>
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
</div>
</header>
{include file="include/top-head2023" /}
<?php if ($category['picture']): ?>
<!-- 轮播 s -->
<div class="homeban">
<div class="bd">
<ul>
<!--<li><img src="<?php echo getImage($category['picture']); ?>"/></li>-->
<li><img src="__PUBLIC__/weben/images/Introductionimg/Achievement.png"/></li>
</ul>
</div>
</div>
<!-- 轮播 e -->
<?php endif; ?>
<!-- 新闻列表 e -->
<div class="Container1">
<div class="achive swt-Container">
<div class="title">Our Achievement</div>
<div class="number">
<div class="achive_shuju">
<div class="title1">400+</div>
<div class="subtitle1">Daily Order</div>
</div>
<div class="achive_shuju">
<div class="title1">800+</div>
<div class="subtitle1">Product R & D patent</div>
</div>
<div class="achive_shuju">
<div class="title1">100+</div>
<div class="subtitle1">Countries and Regions</div>
</div>
<div class="achive_shuju">
<div class="title1">20+</div>
<div class="subtitle1">International Design Award</div>
</div>
</div>
</div>
</div>
<div class="timeline Container">
<div class="swt-Container">
<div class="title">Brand Events</div>
<div class="timeline1 swt-Container">
<div class="box">
<div class="timeline-time">
<ul class="event_year">
<li class="current"><label for="2021">2021</label></li>
<li><label for="2020">2020</label></li>
<li><label for="2019">2019</label></li>
<li><label for="2018">2018</label></li>
<li><label for="2017">2017</label></li>
<li><label for="2016">2016</label></li>
<li><label for="2015">2015</label></li>
<li><label for="2014">2014</label></li>
<li><label for="2013">2013</label></li>
<li><label for="2012">2012</label></li>
<li><label for="2011">2011</label></li>
<li><label for="2010">2010</label></li>
<li><label for="2009">2009</label></li>
</ul>
</div>
<div class="timeline-con">
<div class="con_event_list" >
<ul class="event_list">
<div>
<h3 id="2021" class="backgroundimg">2021</h3>
<li>
<p><span>Joined Xinchuang Alliance Industry Association and incubated subsidiary brand IAMAKER.</span></p>
</li>
</div>
<div>
<h3 id="2020">2020</h3>
<li>
<p><span>Selected as the 18th Shenzhen Famous Brands and the 7th Credible Global Brand; incubated subsidiary brand IDSONIX and achieved strategic cooperation with Lenovo on personal cloud storage and drive enclosures.</span></p>
</li>
</div>
<div>
<h3 id="2019">2019</h3>
<li>
<p><span>Celebrated ORICOs 10th anniversary and incubated subsidiary brand Yottamaster.</span></p>
</li>
</div>
<div>
<h3 id="2018">2018</h3>
<li>
<p><span>Listed on the Chinas top 30 cross-border e-commerce overseas brands in 2018 and started overall brand upgrade.</span></p>
</li>
</div>
<div>
<h3 id="2017">2017</h3>
<li>
<p><span>New industrial chain incubation platform of ORICO Internet & Creativity Industrial Park was established officially.</span></p>
</li>
</div>
<div>
<h3 id="2016">2016</h3>
<li>
<p><span>Quality Control Center was established by PICC IWS and Dongguan Quality Inspection while built up the strategic partner relationship with Fresco.</span></p>
</li>
</div>
<div>
<h3 id="2015">2015</h3>
<li>
<p><span>ORICO branch in Hunan was established, which marked the officially operation of brands global e-commerce center. At the same time, ORICO Internet & Creativity Industrial Park was founded in Dongguan. The subsidiary brand NTONPOWER started to incubate.</span></p>
</li>
</div>
<div>
<h3 id="2014">2014</h3>
<li>
<p><span>Kept improving industrial chain and maintained high development speed with 6 factories.</span></p>
</li>
</div>
<div>
<h3 id="2013">2013</h3>
<li>
<p><span>ORICO was awarded “National High-tech Enterprise” certification.</span></p>
</li>
</div>
<div>
<h3 id="2012">2012</h3>
<li>
<p><span>Started to develop self-industrial chain and optimize packaging, injection molding technologies. Products entered into global markets covering America, Spain, Britain, French and others.</span></p>
</li>
</div>
<div>
<h3 id="2011">2011</h3>
<li>
<p><span>Developed offline channels in Thailand, Korea and Germany. Meanwhile the headquarter moved in Shenzhen Zhonghaixin Science & Technology Park.</span></p>
</li>
</div>
<div>
<h3 id="2010">2010</h3>
<li>
<p><span>ORICO officially landed on Tmall, JD, Yixun, Newegg, Amazon, Suning, Gome and more mainstream e-commerce platforms, expanding online markets.</span></p>
</li>
</div>
<div>
<h3 id="2009">2009</h3>
<li>
<p><span>ORICO was founded formally and first released the Tool Free drive enclosure.</span></p>
</li>
</div>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tech Container">
<div class="swt-Container tech1">
<div class="title">Brand Events</div>
<div class="techcon swt-Container">
<div class="text">
<img src="__PUBLIC__/weben/images/indeximg/lichengbei.png">
<div class="year">2011</div>
<div class="context">
<p>
“Tool free” design promoted innovation of HDD enclosure installation. Joined SATA-IO Association to ensure high interoperability of SATA series products.
</p>
</div>
</div>
<div class="tech-img">
<img src="__PUBLIC__/weben/images/indeximg/techimg.png">
</div>
</div>
<div class="techcon swt-Container">
<div class="text">
<img src="__PUBLIC__/weben/images/indeximg/lichengbei.png">
<div class="year">2013</div>
<div class="context">
<p>
Achieved strategic cooperation with WD and further discussed the innovation of storage tech. Became the major cooperated partner of VIA Labs in China and formally launched wireless cloud storage system.
</p>
</div>
</div>
<div class="tech-img">
<img src="__PUBLIC__/weben/images/indeximg/techimg2.png">
</div>
</div>
<div class="techcon swt-Container">
<div class="text">
<img src="__PUBLIC__/weben/images/indeximg/lichengbei.png">
<div class="year">2014</div>
<div class="context">
<p>
Successfully developed intelligent digital power strip and launched JD crowdfunding in 2015 with satisfying result.
</p>
</div>
</div>
<div class="tech-img">
<img src="__PUBLIC__/weben/images/indeximg/techimg3.png">
</div>
</div>
<div class="techcon swt-Container">
<div class="text">
<img src="__PUBLIC__/weben/images/indeximg/lichengbei.png">
<div class="year">2015</div>
<div class="context">
<p>
Started to research data transmission and power transmission technology including Type-C, USB2.0, USB3.0, etc.
</p>
</div>
</div>
<div class="tech-img">
<img src="__PUBLIC__/weben/images/indeximg/techimg4.png">
</div>
</div>
<div class="techcon swt-Container">
<div class="text">
<img src="__PUBLIC__/weben/images/indeximg/lichengbei.png">
<div class="year">2016</div>
<div class="context">
<p>
Companys representative product-the transparent enclosure series appeared in market.
</p>
</div>
</div>
<div class="tech-img">
<img src="__PUBLIC__/weben/images/indeximg/techimg5.png">
</div>
</div>
<div class="techcon swt-Container">
<div class="text">
<img src="__PUBLIC__/weben/images/indeximg/lichengbei.png">
<div class="year">2021</div>
<div class="context">
<p>
Cooperated with Toshiba to further explore personal storage solutions including personal cloud storage, mobile backuper etc.
</p>
</div>
</div>
<div class="tech-img">
<img src="__PUBLIC__/weben/images/indeximg/techimg6.png">
</div>
</div>
</div>
</div>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
<script>
$(function() {
$('label').click(function() {
$('.event_year>li').removeClass('current');
$(this).parent('li').addClass('current');
var year = $(this).attr('for');
$('#' + year).parent().prevAll('div').slideUp(800);
$('#' + year).parent().slideDown(800).nextAll('div').slideDown(800);
$('#' + year).parent().css('color',"red").nextAll('div').css('color',"black")
//
$("h3").removeClass('backgroundimg')
$('#' + year).addClass('backgroundimg')
});
});
</script>
</body>
<style>
.info h3 { width:300px;height:26px;background:url('../img/ictb.png') no-repeat;margin-bottom:8px; }
.b3 span{position:absolute;right:10px;top:0;background:url('../img/morelink.gif') no-repeat left center;padding-left:12px;}
.info li { padding:3px 0 3px 12px;background:url('../img/dian.png') 2px center no-repeat; }
.con_event_list{width:98%;height: 91%;overflow:auto;margin:30px 10px;}
.event_list { width:98%;;background:url('__PUBLIC__/weben/images/indeximg/greyline.png') 50px 0 repeat-y;}
.event_list h3 { margin:0 0 0 35px;font-size:24px;padding-left:40px;background:url('__PUBLIC__/weben/images/indeximg/greyyuandian.png')3px 3px no-repeat;height:38px;font-size: 20px;
font-family: Montserrat-Bold, Montserrat;
font-weight: bold;
color: #000000;
line-height: 30px; }
.backgroundimg { background:url('__PUBLIC__/weben/images/indeximg/yaundian.png')3px 3px no-repeat !important;}
</style>
</html>

View File

@@ -0,0 +1,219 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/cooperation.css">
<script type="text/javascript">
var navID = "1";
function shareCustomers(){
// 复制到粘贴板
const input = document.createElement('input')
input.setAttribute('readonly', 'readonly')
let url=window.location.href
input.setAttribute('value', url)
document.body.appendChild(input)
input.select()
if (document.execCommand('copy')) {
document.execCommand('copy')
alert('链接复制成功')
}
document.body.removeChild(input)
}
</script>
</head>
<body>
<!--top-->
<header class="header-PC header-Product">
<div id="header" class="theme-black">
</div>
</header>
{include file="include/top-head2023" /}
<!-- 新闻详情页 s -->
<div class="content-detail">
<input type="hidden" value="58" class="b_id">
<div class="detail_box clearfix">
<div class="blog_detail" >
<div class="blog_title">
<h2><?php echo $detail['name']; ?></h2>
<p><?php echo date("Y-m-d H:i:s",$detail['createtime']); ?></p>
</div>
<div class="blog_content">
<?php echo $detail['content']; ?>
</div>
</div>
<div class="share_box">
<div class="blog_share">
<h3>分享</h3>
<ul class="share_list clearfix">
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<li><a target="_blank" href="https://weibo.com/"><img src="/frontend/web/images/blog/share1.png"></a></li>
<li class="wechat"><img src="/frontend/web/images/blog/share2.png"> <div class="wechat_code" ><img src="/frontend/web/images/erweima-blog.png"></div></li>
<li><a target="_blank" href="https://creator.xiaohongshu.com/login?redirectReason=401"><img src="/frontend/web/images/blog/share3.png"></a></li>
<li><a href="javascript:shareCustomers();" title="submit to reddit"><img src="/frontend/web/images/blog/share4.png"></a></li>
</ul>
</div>
<div class="repply">
<h3>留言</h3>
<form>
<span>名称</span>
<input class="form-control itinp new_name" type="text" name="name" style="text-indent: 10px;">
<span>电子邮件</span>
<input class="form-control itinp new_email" type="email" name="email" style="text-indent: 10px; margin-bottom:0;">
<p style="color: #C6C7C9; font-size: 0.75rem; margin-bottom: 0.625rem;">您的电子邮件地址不会被公开</p>
<span>留言</span>
<textarea class="form-control itinp new_comment" rows="3" style="text-indent: 10px;width: 98%; margin-top: 0.625rem;margin-bottom: 0.625rem;border: 1px solid #DBDBDB;" name="comment"></textarea>
<div class="comment_btn" style="color:#ffffff;">提交留言</div>
</form>
</div>
</div>
</div>
<div class="xq">
<?php
$articles = getDifferentArticle('default', 3, ['id' => ['neq', $detail['id']]], ['createtime'=>'desc']);
if ($articles):
?>
<!-- 猜您喜欢 -->
<div class="love">
<div class="love1">
<p>你可能还喜欢</p>
<p><img src="/frontend/web/images/1line.png"></p>
</div>
<ul class="love2">
<?php foreach ($articles as $article): ?>
<?php
if($article['jump_link'] == ''){
$rlink = "__ORICOROOT__/article/detail/".$article['id'].".html";
}
else{
$rlink = $article['jump_link'];
}
?>
<li>
<a href="<?php echo $rlink; ?>">
<div class="lvimg"><img src="<?php echo getImage($article['picture']); ?>"></div>
<p class="lvtit"><?php echo msubstr($article['name'], 0, 40); ?></p>
</a>
</li>
<?php endforeach; ?>
<div class="clear"></div>
</ul>
</div>
<?php endif; ?>
</div>
</div>
<script type="text/javascript">
$(function() {
var fix = $('.share_box'); //滚动悬浮块
var end = $('.xq'); //滚动到这个元素后结束固定
var fixTop = fix.offset().top, //滚动悬浮块与顶部的距离
fixHeight = fix.height(); //滚动悬浮块高度
var endTop, miss; //结束元素与顶部的距离
$(window).scroll(function() {
//页面与顶部高度
var docTop = Math.max(document.body.scrollTop, document.documentElement.scrollTop);
//如果有结束块
if (end.length > 0) {
endTop = end.offset().top;
miss = endTop - docTop - fixHeight;
}
if (fixTop < docTop) {
fix.css({'position': 'fixed'});
if ((end.length > 0) && (endTop < (docTop + fixHeight))) {
fix.css({top: miss}); //滚动悬浮块滑到结束块上时top值为负即慢慢隐藏出浏览器
} else{
fix.css({top: 100}); //滚动悬浮块未到结束块上时top为0
}
} else {
fix.css({'position': 'fixed'});
}
})
});
</script>
<script>
// 提交表单
$('.comment_btn').click(function(){
var new_name = $('.new_name').val();
var new_email = $('.new_email').val();
var new_comment = $('.new_comment').val();
console.log('message');
if (new_name == '') {
//alert("The Name is Empty!");
$('.new_name').addClass('error');
$('.new_name').next('span').removeClass('hide');
return false;
}else{
$('.new_name').removeClass('error');
$('.new_name').next('span').addClass('hide');
}
if (new_comment == '') {
//alert("The Comment is Empty!");
$('.new_comment').addClass('error');
$('.new_comment').next('span').removeClass('hide');
return false;
}else{
$('.new_comment').removeClass('error');
$('.new_comment').next('span').addClass('hide');
}
if (new_email == '') {
$('.new_email').addClass('error');
$('.new_email').next('span').removeClass('hide');
}
else{
if (/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(new_email) == false) {
$('.new_email').addClass('error');
$('.new_email').next('span').removeClass('hide');
return false;
}
else{
$('.new_email').removeClass('error');
$('.new_email').next('span').addClass('hide');
}
}
var bid = "<?php echo $detail['id'];?>";
//点击创建申请块
if(new_name && new_email && new_comment && bid) {
$.ajax({
type: "POST",
url: "/index/article/addcomment",
data: {'name':new_name, 'email':new_email,'comment':new_comment,'article_id':bid},
dataType: "json",
success: function(data){
if(data.code == 200) {
alert("留言提交成功!");
$(".new_name").val("");
$(".new_email").val("");
$(".new_comment").val("");
}
else{
alert(data.msg);
}
}
});
}
})
</script>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,148 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head-seo" /}
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top-head2023" /}
</div>
</header>
{include file="include/top-header-mobile" /}
<!--top End-->
<!-- 轮播 s -->
<div class="homeban banner-other">
<div class="bd">
<ul>
<li><a href="#"><img src="__PUBLIC__/web/uploadfiles/image/ban2.jpg"/></a></li>
</ul>
</div>
</div>
<!-- 轮播 e -->
<!-- 新闻列表 s -->
<div class="new">
<div class="swt-Container">
<div class="vtext">
<p class="tl1">新闻资讯</p>
<p class="tl2"></p>
</div>
<?php if ($list): ?>
<ul class="newfl">
<?php foreach ($list as $detail): ?>
<li>
<div class="xwtit"><a href="<?php echo url_rewrite('articledetail', array('id' => $detail['id'])); ?>"><?php echo $detail['name']; ?></a></div>
<div class="xname"><?php echo $detail['writer']; ?> 发布于<?php echo getHMStime($detail['createtime'], time()); ?>/关键字:<?php echo $detail['tags']; ?></div>
<div class="xwcon"><?php echo msubstr($detail['description'], 0, 200); ?></div>
<div class="xwimg"><img src="<?php echo getImage($detail['picture'], 951, 459, 6); ?>"></div>
<div class="detail"><a href="<?php echo url_rewrite('articledetail', array('id' => $detail['id'])); ?>"><i></i>详细阅读</a></div>
<div class="fx">
<!-- <a href="#"><i class="f1"></i>分享</a> -->
<a href="#"><i class="f2"></i>收藏</a>
<a href="#"><i class="f3"></i>评论(15)</a>
</div>
<div class="clear"></div>
</li>
<?php endforeach; ?>
<!-- 分页 s -->
<?php
if ($page) {
echo $page;
}
?>
<!-- 分页 e -->
</ul>
<?php endif; ?>
<div class="newrh">
<div class="plun">精彩评论</div>
<ul class="pllist">
<li>
<a href="#">
<div class="plfl">
<div class="plimg"><img src="__PUBLIC__/web/uploadfiles/image/ns1.jpg"></div>
<div class="peo1">游客</div>
<div class="peo2">2018-09-05</div>
</div>
<div class="plrh">
<div class="plrh1">追风者家前代的Elite916狗东7K支持双路板ATX&ITX双系统而且没记错的话916双系统需要两套电源。</div>
<div class="plrh2">RevoltX电源跟EvolvX机箱对于需要两套系统的用户还是很友好...</div>
</div>
<div class="clear"></div>
</a>
</li>
<li>
<a href="#">
<div class="plfl">
<div class="plimg"><img src="__PUBLIC__/web/uploadfiles/image/ns2.jpg"></div>
<div class="peo1">游客</div>
<div class="peo2">2018-09-05</div>
</div>
<div class="plrh">
<div class="plrh1">追风者家前代的Elite916狗东7K支持双路板ATX&ITX双系统而且没记错的话916双系统需要两套电源。</div>
<div class="plrh2">RevoltX电源跟EvolvX机箱对于需要两套系统的用户还是很友好...</div>
</div>
<div class="clear"></div>
</a>
</li>
<li>
<a href="#">
<div class="plfl">
<div class="plimg"><img src="__PUBLIC__/web/uploadfiles/image/ns3.jpg"></div>
<div class="peo1">游客</div>
<div class="peo2">2018-09-05</div>
</div>
<div class="plrh">
<div class="plrh1">追风者家前代的Elite916狗东7K支持双路板ATX&ITX双系统而且没记错的话916双系统需要两套电源。</div>
<div class="plrh2">RevoltX电源跟EvolvX机箱对于需要两套系统的用户还是很友好...</div>
</div>
<div class="clear"></div>
</a>
</li>
<li>
<a href="#">
<div class="plfl">
<div class="plimg"><img src="__PUBLIC__/web/uploadfiles/image/ns4.jpg"></div>
<div class="peo1">游客</div>
<div class="peo2">2018-09-05</div>
</div>
<div class="plrh">
<div class="plrh1">追风者家前代的Elite916狗东7K支持双路板ATX&ITX双系统而且没记错的话916双系统需要两套电源。</div>
<div class="plrh2">RevoltX电源跟EvolvX机箱对于需要两套系统的用户还是很友好...</div>
</div>
<div class="clear"></div>
</a>
</li>
<li>
<a href="#">
<div class="plfl">
<div class="plimg"><img src="__PUBLIC__/web/uploadfiles/image/ns5.jpg"></div>
<div class="peo1">游客</div>
<div class="peo2">2018-09-05</div>
</div>
<div class="plrh">
<div class="plrh1">追风者家前代的Elite916狗东7K支持双路板ATX&ITX双系统而且没记错的话916双系统需要两套电源。</div>
<div class="plrh2">RevoltX电源跟EvolvX机箱对于需要两套系统的用户还是很友好...</div>
</div>
<div class="clear"></div>
</a>
</li>
</ul>
</div>
<div class="clear"></div>
</div>
</div>
<!-- 新闻列表 e -->
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

662
app/index/view/blog/blog.phtml Executable file
View File

@@ -0,0 +1,662 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Blog-ORICO Global Site</title>
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/style2.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/theme.css">
<script type="text/javascript" src="__PUBLIC__/web/scripts/jquery-1.8.3.min.js"></script>
<style>
.Footer_icon_orico {
position: absolute;
left: 0% !important;
top: 12%;
height: 50px;
margin-top: -25px;
}
/*blog_detail*/
.content {
width: 75%;
margin: 2.5rem auto 8.75rem;
}
.blog_detail {
width: calc(100% - 1.5rem - 25rem);
height: auto;
background: #ffffff;
border: 1px solid #e8e8e8;
float: left;
margin-right: 1.25rem;
}
.blog_title {
margin: 2.5rem;
border-bottom: 1px solid #e8e8e8;
padding-bottom: 2.5rem;
}
.blog_title h2 {
font-size: 1.5rem;
font-weight: bold;
line-height: 2.125rem;
color: #252525;
margin-bottom: 1.0625rem;
}
.blog_title p {
color: #929292;
font-size: 0.875rem;
line-height: 1.5rem;
font-weight: 400;
}
.blog_content {
margin: 2.5rem;
}
.blog_content p {
font-size: 0.875rem;
font-weight: 400;
line-height: 1.75rem;
color: #252525;
margin-bottom: 0.625rem;
}
.blog_content img {
max-width: 100%;
height: auto;
margin-bottom: 0.625rem;
}
.share_box {
width: 25rem;
position: fixed;
top: 130px;
right: calc((100% - 75%) / 2);
z-index: 10;
}
.blog_share {
width: 100%;
height: auto;
background: #ffffff;
border: 1px solid #e8e8e8;
float: left;
}
.blog_share h3 {
font-size: 1rem;
line-height: 2.125rem;
color: #959595;
font-weight: bold;
padding: 1.25rem 1.875rem;
border-bottom: 1px solid #e8e8e8;
}
.share_list {
padding: 1.875rem;
}
.share_list li {
float: left;
width: 2.75rem;
height: 2.75rem;
margin-right: 3.125rem;
}
.share_list li:last-child {
float: left;
width: 2.75rem;
height: 2.75rem;
margin-right: 0;
}
.share_list li img {
width: 2.75rem;
height: 2.75rem;
margin: 0 auto;
display: block;
}
.repply {
width: 100%;
height: auto;
background: #ffffff;
border: 1px solid #e8e8e8;
float: left;
margin-top: 1.25rem;
}
.repply h3 {
font-size: 1rem;
line-height: 2.125rem;
color: #959595;
font-weight: bold;
padding: 1.25rem 1.875rem;
border-bottom: 1px solid #e8e8e8;
}
.repply form {
width: auto;
height: auto;
padding: 1.25rem;
}
.repply span {
font-size: 0.875rem;
font-weight: bold;
}
.repply input {
width: 98%;
height: 2rem !important;
border: 1px solid #dbdbdb !important;
margin-top: 0.625rem;
margin-bottom: 0.625rem;
}
.comment_btn {
margin: 1.25rem 1.25rem;
width: auto;
height: 2.75rem;
line-height: 2.75rem;
background: #009fdf;
color: #ffffff;
text-align: center;
cursor: pointer;
}
.comment {
background: #ffffff;
width: 100%;
margin-top: 2.5rem;
padding-bottom: 1.875rem;
border: 1px solid #e8e8e8;
}
.comment h3 {
font-size: 1rem;
line-height: 2.125rem;
color: #959595;
font-weight: bold;
padding: 1.25rem 2.5rem;
border-bottom: 1px solid #e8e8e8;
}
.comment_form {
padding: 1.875rem 2.5rem;
}
.comment_form div {
font-size: 0.875rem;
font-weight: bold;
color: #252525;
float: left;
width: calc((100% - 2.5rem) / 2);
}
.comment_form > div input {
width: 100%;
height: 2rem;
border: 1px solid #dbdbdb !important;
margin-top: 0.625rem;
}
.comment_area {
width: 100% !important;
}
.comment_area textarea {
width: 100%;
margin-top: 0.625rem;
}
.comment_list {
background: #ffffff;
width: 100%;
margin-top: 2.5rem;
padding-bottom: 1.875rem;
border: 1px solid #e8e8e8;
}
.comment_list h3 {
font-size: 1rem;
line-height: 2.125rem;
color: #959595;
font-weight: bold;
padding: 1.25rem 2.5rem;
border-bottom: 1px solid #e8e8e8;
}
.comment_list ul {
padding: 1.875rem 2.5rem;
}
.comment_list ul li {
margin-bottom: 3.125rem;
}
.comment_list ul li:last-child {
margin-bottom: 0 !important;
}
.comment_list ul li > div {
float: left;
display: block;
font-size: 1rem;
}
.comment_list ul li > div:first-child {
width: 3.125rem;
height: auto;
margin-right: 1.25rem;
}
.comment_list ul li > div:last-child {
width: calc(100% - 3.125rem - 1.25rem);
height: auto;
}
@media screen and (min-width: 1440px) {
.blog_list ul li:nth-of-type(3n) {
margin-right: 0;
}
}
@media screen and (min-width: 1200px) and (max-width: 1440px) {
.blog_detail {
width: 60%;
}
.blog_list ul li:nth-of-type(3n) {
margin-right: 0;
}
.share_list li {
width: calc((100% - 1.875rem) / 4);
height: auto;
margin-right: 0.5rem;
}
.share_list li img {
width: 2.5rem;
height: 2.5rem;
}
.share_box {
width: 28%;
position: fixed;
top: 130px;
right: calc((100% - 75%) / 2);
}
}
@media screen and (min-width: 768px) and (max-width: 1200px) {
.content {
width: 91%;
}
.blog_detail {
width: 60%;
}
.blog_list ul {
width: 75%;
margin: 0 auto;
}
.blog_list ul li {
float: left;
width: calc((100% - 2.8125rem) / 2);
height: auto;
margin-right: 2.8125rem;
}
.blog_list ul li:nth-of-type(even) {
margin-right: 0;
}
.blog_list ul li img {
width: 100%;
height: auto;
}
.detail_box {
margin-top: 80px;
}
.share_box {
width: 34%;
position: fixed;
top: 130px;
right: calc((100% - 60% - 28% - 1.25rem) / 2);
}
.blog_share {
width: 100%;
}
.share_list li {
width: calc((100% - 1.875rem) / 4);
height: auto;
margin-right: 0.5rem;
}
.share_list li img {
width: 2.5rem;
height: 2.5rem;
}
.repply {
width: 100%;
}
}
/*点击弹框*/
.popup-quick {
width: 48rem;
position: fixed;
top: 35%;
margin-top: -235px;
left: 45%;
margin-left: -235px;
background-color: #fff;
z-index: 9999;
box-shadow: 0px 2px 5px rgba(255, 255, 255, 0.2);
color: #333;
border-radius: 0.05rem;
}
.popup-quick .popup-app {
font-size: 0.14rem;
color: #333;
line-height: 22px;
padding: 30px 40px;
text-align: center;
}
.popup-quick .business-close {
width: 24px;
height: 24px;
position: absolute;
top: 20px;
right: 20px;
cursor: pointer;
}
.popup-quick .popup-business-logo img {
width: 1.5rem;
height: 1.5rem;
margin-left: 0.9rem;
}
.title-text {
font-size: 26px;
color: #101010;
font-weight: 600;
text-align: center;
padding: 34px 0;
}
.marsk-container {
background: rgba(0, 0, 0, 0.8);
display: none;
position: absolute;
position: fixed;
top: 0;
right: 0;
left: 0;
bottom: 0px;
z-index: 999;
}
.detail_form input {
height: 2.75rem;
line-height: 2.75rem;
padding: 0 0.625rem;
margin-top: 0.625rem;
border: 1px solid #dbdbdb;
display: inline-block;
}
.detail_form select {
height: 2.75rem;
line-height: 2.75rem;
padding: 0 0.625rem;
margin-top: 0.625rem;
border: 1px solid #dbdbdb;
display: inline-block;
}
.detail_form textarea {
padding: 0.225rem 0.5rem;
margin-top: 0.625rem;
border: 1px solid #dbdbdb;
display: inline-block;
}
.apply_form textarea {
padding: 0.225rem;
margin-top: 0.625rem;
border: 1px solid #dbdbdb;
display: inline-block;
}
.detail-w {
width: 40%;
}
.detail-w02 {
width: 45%;
}
.detail-w01 {
width: 90%;
}
.detail-w02 {
width: 100%;
}
.detail_form .name > div {
float: left;
width: calc((100% - 1.25rem) / 2);
}
/*odm*/
.email-odm-w {
background: #fff;
width: 62.5%;
margin: auto;
clear: both;
padding: 0.05rem 0;
}
.news-odm {
background: #3bafe3;
margin: 50px 0;
padding: 6rem 0;
}
/*submission!*/
.submission {
width: 100%;
margin: auto;
text-align: center;
}
.submiss-content h3 {
font-size: 24px;
color: #333;
line-height: 30px;
padding: 24px 0 18px;
}
.submiss-p {
font-size: 20px;
color: #333;
}
.submiss-u-p {
padding: 46px 0 140px;
font-size: 18px;
}
.submiss-blue {
color: #009fdf;
border-bottom: 1px solid #009fdf;
}
/*question*/
.ques-r {
position: relative;
}
.ques-a {
position: absolute;
top: 40%;
left: 20%;
color: #fff;
}
.ques-a h3 {
font-size: 48px;
padding-bottom: 24px;
}
.ques-a p {
font-size: 18px;
width: 65%;
line-height: 24px;
font-weight: 100;
}
.ques_title {
width: 43.75rem;
line-height: 2rem;
text-align: center;
padding: 3.125rem 0;
font-size: 1.5rem;
font-weight: bold;
color: #000000;
}
.ques_title p {
font-size: 16px;
line-height: 18px;
font-weight: 100;
padding: 20px 0;
color: #707070;
}
.ques-select {
height: 45px;
margin-top: 10px;
border: 1px solid #dbdbdb;
}
select {
appearance: none;
-webkit-appearance: none; /*去除chrome浏览器的默认下拉图片*/
-moz-appearance: none; /*去除Firefox浏览器的默认下拉图片*/
background: url('../images/select-down.png') no-repeat right center;
width: 24px;
height: 24px;
padding: 0 5px;
text-overflow: '';
}
.ques-select::after {
/* arrow icon for select element */
content: '';
position: absolute;
z-index: 1;
right: 16px;
top: 50%;
margin-top: -8px;
display: block;
width: 16px;
height: 16px;
background: url('../images/blog/cd-icon-arrow.svg') no-repeat center center;
pointer-events: none;
}
/*upload*/
.img_box ul {
overflow: hidden;
}
.img_box ul li {
float: left;
width: 20%;
margin-right: 2.5%;
margin-top: 1em;
padding: 20% 0 0;
position: relative;
cursor: pointer;
}
.img_box ul li img {
width: 100%;
height: 100%;
display: block;
position: absolute;
top: 0;
}
.img_box ul .add_btn {
border: 1px solid #e5e5e5;
background: url(../images/add.png) no-repeat 50% 50%;
cursor: pointer;
border-radius: 3px;
}
.img_box ul .del {
position: absolute;
width: 20px;
height: 20px;
line-height: 15px;
text-align: center;
font-size: 1.5em;
background: rgba(0, 0, 0, 0.5);
color: #fff;
right: 0;
top: 0;
font-style: inherit;
cursor: pointer;
}
/*upload- E*/
.question_btn {
margin: 3rem auto 5.625rem;
width: 15rem;
height: 2.5rem;
line-height: 2.5rem;
background: #009fdf;
color: #ffffff;
text-align: center;
cursor: pointer;
}
</style>
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
</div>
</header>
{include file="include/top-head2023" /}
<!--top End-->
<!-- 轮播 s -->
<div class="homeban">
<div class="bd">
<ul>
<li><img src="__PUBLIC__/weben/images/blog/blog.png"/></li>
</ul>
</div>
</div>
<!-- 轮播 e -->
<div class="swt-Container">
<div class="news-vertu">
<div class="tab">
</div>
</div>
</div>
<!-- 轮播 e -->
<!-- 轮播 s >
<div class="homeban banner-other">
<div class="bd">
<ul>
<li><a href="#"><img src="__PUBLIC__/weben/images/blog/blog.png"/></a></li>
</ul>
</div>
</div>
<!-- 轮播 e ---->
<!-- Blog列表 s -->
<div class="search_box">
<i class="search_icon"></i>
<input type="text" placeholder="Search blog articles" class="search" id="bg-search-in" value="<?php if(isset($search['name'])){ echo $search['name'];}?>"/>
</div>
<div class="blog_list">
<?php if ($list): ?>
<ul class="clearfix">
<?php foreach ($list as $detail): ?>
<li>
<a href="<?php echo '/us/blog/detail/id/'.$detail['id'];?>.html">
<img src="<?php echo getImage($detail['icon'], 951, 459, 6); ?>" />
<h3><?php echo $detail['title']; ?></h3>
<p><?php echo $detail['seo_description']; ?></p>
</a>
<span class="blue"><?php echo date("M d, Y", strtotime($detail['add_time'])); ?></span>
</li>
<?php endforeach; ?>
<!-- 分页 s -->
<?php
if ($page) {
echo $page;
}
?>
<!-- 分页 e -->
</ul>
<?php else: ?>
<div class="content">查询无结果!</div>
<?php endif; ?>
</div>
<!-- Blog列表 e -->
<script>
var type = 'Blog';
//点击创建申请块
$(function(){
$('#bg-search-in').click(function(){
var skeyword = $("#bg-search-in").val();
if (skeyword) {
var href = "?name=" + encodeURIComponent(skeyword);
location.href = href;
}
});
});
</script>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

213
app/index/view/blog/detail.phtml Executable file
View File

@@ -0,0 +1,213 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/style2.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/theme.css">
<script type="text/javascript" src="__PUBLIC__/web/scripts/jquery-1.8.3.min.js"></script>
<!-- twitter分享 -->
<meta property="twitter:url" content="<?php echo $curUrl;?>"/>
<meta name="twitter:title" content="This is title"/>
<meta name="twitter:description" content="This is desc"/>
<meta name="twitter:site" content="<?php echo $curUrl;?>">
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:image" content="http://gg.chendahai.cn/static/image/apple.jpg"/>
<!-- facebook分享 -->
<meta property="og:url" content="<?php echo $curUrl;?>"/>
<meta property="og:title" content="This is my plan,let's play together"/>
<meta property="og:description" content="This is my plan,let's play together"/>
<meta property="og:image" content="http://gg.chendahai.cn/static/image/apple.jpg"/>
<meta property="og:type" content="website"/>
</head>
<style>
.Footer_icon_orico {
position: absolute;
left: 0% !important;
top: 12%;
height: 50px;
margin-top: -25px;
}
</style>
<body>
{include file="include/top-head2023" /}
<!--top-->
<header class="header-PC header-Product">
<div id="header" class="theme-black">
</div>
</header>
<!--top End-->
<!-- 详情页 s -->
<div class="content">
<input type="hidden" value="<?php echo $blog['id'];?>" class="b_id">
<div class="detail_box clearfix">
<div class="blog_detail" style="margin-top:.625rem">
<div class="blog_title">
<h2><?php if($blog['title']) {echo $blog['title'];} else{echo "Best USB-C Docking Station for PC/Laptop/IOS/Windows in 2021";}?></h2>
<p>刊登于<?php if($blog['add_time']) {echo date("M d, Y",strtotime($blog['add_time']));} else{echo "May 17, 2021";}?></p>
</div>
<div class="blog_content">
<?php echo $blog['content'];?>
</div>
</div>
<div class="share_box">
<div class="blog_share">
<h3>分享</h3>
<ul class="share_list clearfix">
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<li><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $curUrl;?>&t=<?php echo time();?>"><img src="/frontend/weben/images/blog/share1.png"/></a></li>
<li><a target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&ro=true&title=<?php echo $seo_title;?>&url=<?php echo $curUrl;?>&source=&summary=&armin=armin"><img src="/frontend/weben/images/blog/share2.png"/></a></li>
<li><a target="_blank" href="http://www.facebook.com/sharer/sharer.php?u=<?php echo $curUrl;?>"><img src="/frontend/weben/images/blog/share3.png"/></a></li>
<li><a href="http://www.reddit.com/submit?url=<?php echo $curUrl;?>&title=<?php echo $seo_title;?>" rel="nofollow" title="submit to reddit" target="_blank"><img src="/frontend/weben/images/blog/share4.png"/></a></li>
</ul>
</div>
<div class="repply">
<h3>留言</h3>
<form>
<span>名字</span>
<input class="new_name" type="text" name="name" style="text-indent: 10px;"/>
<span>电邮地址</span>
<input class="new_email" type="email" name="email" style="text-indent: 10px; margin-bottom:0;"/>
<p style="color: #C6C7C9; font-size: 0.75rem; margin-bottom: 0.625rem;">你的电邮地址不会被分享</p>
<span>评论</span>
<textarea class="new_comment" rows="3" style="text-indent: 10px;width: 98%; margin-top: 0.625rem;margin-bottom: 0.625rem;border: 1px solid #DBDBDB !important;" name="comment"></textarea>
<div class="comment_btn" style="color:#ffffff;">发布评论</div>
</form>
</div>
</div>
</div>
<div class="comment">
<h3>请留下评论</h3>
<form class="comment_form clearfix">
<div style="margin-right: 2.5rem;">名字:<br/>
<input class="new_name" type="text" name="name" style="text-indent: 10px;"/>
</div>
<div>电邮地址:<br/>
<input class="new_email" type="email" name="email" style="text-indent: 10px;"/>
<p style="color: #C6C7C9; font-size: 0.75rem; margin-bottom: 0.625rem; font-weight: 400;">你的电邮地址不会被分享</p>
</div>
<div class="comment_area">评论:<br/>
<textarea class="new_comment" style="text-indent: 10px;height: 8.125rem;border: 1px solid #DBDBDB !important;" name="comment"></textarea>
</div>
<div class="comment_btn" style="width: 21.25rem; margin-left: 2.5rem;color:#ffffff;">发布评论</div>
</form>
</div>
<?php if ($list): ?>
<div class="comment_list">
<h3>Showing <?php echo $total;?> Comments</h3>
<ul>
<?php foreach ($list as $ks=> $detail): ?>
<li class="clearfix">
<div><img src="/frontend/weben/images/avatar/<?php echo $counts[$ks];?>.png" /></div>
<div>
<p style=" font-weight: bold;"><?php echo $detail['name'];?><span style="font-size: 0.75rem; color: #A9A9A9; margin-left: 0.625rem;">· <?php echo date("M d, Y", strtotime($detail['add_time'])); ?></span></p>
<p style=" font-weight: 400; margin-top: 0.625rem;"><?php echo $detail['content'];?></p>
</div>
</li>
<?php endforeach; ?>
</ul>
<!-- 分页 s -->
<?php
if ($page) {
echo $page;
}
?>
<!-- 分页 e -->
</div>
<?php endif; ?>
</div>
<script>
$(function(){
//悬浮表单
$(window).scroll(function(){
var s_top = Number($(this).scrollTop()); // 获取滚动条,滚动刻度
var showTop = Number($(".share_box").height());
var pTop = Number($(".comment").offset().top);
if((pTop-s_top-80) >= showTop ){
$(".share_box").removeAttr("style"); // 删除属性,让他释放
}else{
//nsole.log(s_top,showTop,pTop,$(window).scrollTop());
$('.share_box').css("position","absolute"); // 添加属性,让他固定
$('.share_box').css('top',pTop-showTop-20);
}
});
// 提交表单
$('.comment_btn').click(function(){
var new_name = $(this).parents('form').find('.new_name').val();
var new_email = $(this).parents('form').find('.new_email').val();
var new_comment = $(this).parents('form').find('.new_comment').val();
if(new_name=='') {
alert("The Name is Empty!");
return false;
}
if(new_comment=='') {
alert("The Comment is Empty!");
return false;
}
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
if(reg.test(new_email) == false) {
alert("The Email format is not correct!");
return false;
}
var bid = "<?php echo $blog['id'];?>";
//点击创建申请块
if(new_name && new_email && new_comment && bid) {
var type = 'Agent';
$.ajax({
type: "POST",
url: "/us/blog/addcomment",
data: {'name':new_name, 'email':new_email,'comment':new_comment,'b_id':bid},
dataType: "json",
success: function(data){
if(data.code == 200) {
alert(data.msg);
$(".content input").val("");
$(".new_comment").val("");
}
else{
alert(data.msg);
}
}
});
}
})
})
</script>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

284
app/index/view/blog/details.phtml Executable file
View File

@@ -0,0 +1,284 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/style2.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/theme.css">
<script type="text/javascript" src="__PUBLIC__/web/scripts/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/m_web/js/mshare.js"></script>
<!-- twitter分享 -->
<meta property="twitter:url" content="<?php echo $curUrl;?>"/>
<meta name="twitter:title" content="This is title"/>
<meta name="twitter:description" content="This is desc"/>
<meta name="twitter:site" content="<?php echo $curUrl;?>">
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:image" content="http://gg.chendahai.cn/static/image/apple.jpg"/>
<!-- facebook分享 -->
<meta property="og:url" content="<?php echo $curUrl;?>"/>
<meta property="og:title" content="This is my plan,let's play together"/>
<meta property="og:description" content="This is my plan,let's play together"/>
<meta property="og:image" content="http://gg.chendahai.cn/static/image/apple.jpg"/>
<meta property="og:type" content="website"/>
</head>
<style>
.Footer_icon_orico {
position: absolute;
left: 0% !important;
top: 12%;
height: 50px;
margin-top: -25px;
}
</style>
<body>
{include file="include/top-head2023" /}
<!--top-->
<header class="header-PC header-Product">
<div id="header" class="theme-black">
</div>
</header>
<!--top End-->
<!-- 详情页 s -->
<div class="content">
<input type="hidden" value="<?php echo $blog['id'];?>" class="b_id">
<div class="detail_box clearfix">
<div class="blog_detail" style="margin-top:.625rem">
<div class="blog_title">
<h2><?php if($blog['title']) {echo $blog['title'];} else{echo "Best USB-C Docking Station for PC/Laptop/IOS/Windows in 2021";}?></h2>
<p>刊登于<?php if($blog['add_time']) {echo date("M d, Y",strtotime($blog['add_time']));} else{echo "May 17, 2021";}?></p>
</div>
<div class="blog_content">
<?php echo $blog['content'];?>
</div>
</div>
<div class="share_box">
<div class="blog_share">
<h3>分享</h3>
<ul class="share_list clearfix">
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<li><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $curUrl;?>&t=<?php echo time();?>"><img src="/frontend/weben/images/blog/share1.png"/></a></li>
<li><a target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&ro=true&title=<?php echo $seo_title;?>&url=<?php echo $curUrl;?>&source=&summary=&armin=armin"><img src="/frontend/weben/images/blog/share2.png"/></a></li>
<li><a target="_blank" href="http://www.facebook.com/sharer/sharer.php?u=<?php echo $curUrl;?>"><img src="/frontend/weben/images/blog/share3.png"/></a></li>
<li><img class="wxchart" click="jumpWx()" src="/frontend/weben/images/blog/share4.png"/></li>
</ul>
</div>
<div class="repply">
<h3>留言</h3>
<form>
<span>名字</span>
<input class="new_name" type="text" name="name" style="text-indent: 10px;"/>
<span>电邮地址</span>
<input class="new_email" type="email" name="email" style="text-indent: 10px; margin-bottom:0;"/>
<p style="color: #C6C7C9; font-size: 0.75rem; margin-bottom: 0.625rem;">你的电邮地址不会被分享</p>
<span>评论</span>
<textarea class="new_comment" rows="3" style="text-indent: 10px;width: 98%; margin-top: 0.625rem;margin-bottom: 0.625rem;border: 1px solid #DBDBDB !important;" name="comment"></textarea>
<div class="comment_btn" style="color:#ffffff;">发布评论</div>
</form>
</div>
</div>
</div>
<div class="comment">
<h3>请留下评论</h3>
<form class="comment_form clearfix">
<div style="margin-right: 2.5rem;">名字:<br/>
<input class="new_name" type="text" name="name" style="text-indent: 10px;"/>
</div>
<div>电邮地址:<br/>
<input class="new_email" type="email" name="email" style="text-indent: 10px;"/>
<p style="color: #C6C7C9; font-size: 0.75rem; margin-bottom: 0.625rem; font-weight: 400;">你的电邮地址不会被分享</p>
</div>
<div class="comment_area">评论:<br/>
<textarea class="new_comment" style="text-indent: 10px;height: 8.125rem;border: 1px solid #DBDBDB !important;" name="comment"></textarea>
</div>
<div class="comment_btn" style="width: 21.25rem; margin-left: 2.5rem;color:#ffffff;">发布评论</div>
</form>
</div>
<?php if ($list): ?>
<div class="comment_list">
<h3>Showing <?php echo $total;?> Comments</h3>
<ul>
<?php foreach ($list as $ks=> $detail): ?>
<li class="clearfix">
<div><img src="/frontend/weben/images/avatar/<?php echo $counts[$ks];?>.png" /></div>
<div>
<p style=" font-weight: bold;"><?php echo $detail['name'];?><span style="font-size: 0.75rem; color: #A9A9A9; margin-left: 0.625rem;">· <?php echo date("M d, Y", strtotime($detail['add_time'])); ?></span></p>
<p style=" font-weight: 400; margin-top: 0.625rem;"><?php echo $detail['content'];?></p>
</div>
</li>
<?php endforeach; ?>
</ul>
<!-- 分页 s -->
<?php
if ($page) {
echo $page;
}
?>
<!-- 分页 e -->
</div>
<?php endif; ?>
</div>
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
<script>
var mshare = new mShare({
title: '<?php echo $blog["title"]; ?>', // 分享标题
desc: '<?php echo $blog["title"]; ?>',
url: window.location.href, // 分享链接该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
img: '__ORICOROOT__<?php echo $blog["icon"]; ?>', // 分享图标
});
wx.config({
debug: true,
appId: '<?php echo $singpackage["appId"];?>',
timestamp: <?php echo $singpackage["timestamp"];?>,
nonceStr: '<?php echo $singpackage["nonceStr"];?>',
signature: '<?php echo $singpackage["signature"];?>',
jsApiList: [
// 所有要调用的 API 都要加到这个列表中
"checkJsApi",
'updateAppMessageShareData',
"onMenuShareTimeline",
"onMenuShareAppMessage"
]
});
var shareConfig = {
"share": {
title: '<?php echo $blog["title"]; ?>', // 分享标题
desc: '<?php echo $blog["title"]; ?>',
link: location.href.split('#')[0], // 分享链接该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl: '__ORICOROOT__<?php echo $blog["icon"]; ?>', // 分享图标
success: function () {
// 设置成功
console.log('分享成功');
},
canel: function(){
console.log('取消分享');
}
}
}
function jumpWx(){
mshare.init(0);
wx.checkJsApi({
jsApiList: ['onMenuShareTimeline'], // 需要检测的JS接口列表所有JS接口列表见附录2,
success: function(res) {
alert(res);
debugger;
}
});
wx.updateAppMessageShareData(shareConfig.share);
wx.onMenuShareAppMessage(shareConfig.share);
wx.onMenuShareTimeline(shareConfig.share);
wx.error(function (res) {
alert(res.errMsg); //打印错误消息。及把 debug:false,设置为debug:ture就可以直接在网页上看到弹出的错误提示
});
}
</script>
<script>
$(function(){
//悬浮表单
$(window).scroll(function(){
var s_top = Number($(this).scrollTop()); // 获取滚动条,滚动刻度
var showTop = Number($(".share_box").height());
var pTop = Number($(".comment").offset().top);
if((pTop-s_top-80) >= showTop ){
$(".share_box").removeAttr("style"); // 删除属性,让他释放
}else{
//nsole.log(s_top,showTop,pTop,$(window).scrollTop());
$('.share_box').css("position","absolute"); // 添加属性,让他固定
$('.share_box').css('top',pTop-showTop-20);
}
});
// 提交表单
$('.comment_btn').click(function(){
var new_name = $(this).parents('form').find('.new_name').val();
var new_email = $(this).parents('form').find('.new_email').val();
var new_comment = $(this).parents('form').find('.new_comment').val();
if(new_name=='') {
alert("The Name is Empty!");
return false;
}
if(new_comment=='') {
alert("The Comment is Empty!");
return false;
}
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
if(reg.test(new_email) == false) {
alert("The Email format is not correct!");
return false;
}
var bid = "<?php echo $blog['id'];?>";
//点击创建申请块
if(new_name && new_email && new_comment && bid) {
var type = 'Agent';
$.ajax({
type: "POST",
url: "/us/blog/addcomment",
data: {'name':new_name, 'email':new_email,'comment':new_comment,'b_id':bid},
dataType: "json",
success: function(data){
if(data.code == 200) {
alert(data.msg);
$(".content input").val("");
$(".new_comment").val("");
}
else{
alert(data.msg);
}
}
});
}
})
})
</script>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

658
app/index/view/blog/index.phtml Executable file
View File

@@ -0,0 +1,658 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Blog-ORICO Global Site</title>
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/style2.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/theme.css">
<script type="text/javascript" src="__PUBLIC__/web/scripts/jquery-1.8.3.min.js"></script>
<style>
.Footer_icon_orico {
position: absolute;
left: 0% !important;
top: 12%;
height: 50px;
margin-top: -25px;
}
/*blog_detail*/
.content {
width: 75%;
margin: 2.5rem auto 8.75rem;
}
.blog_detail {
width: calc(100% - 1.5rem - 25rem);
height: auto;
background: #ffffff;
border: 1px solid #e8e8e8;
float: left;
margin-right: 1.25rem;
}
.blog_title {
margin: 2.5rem;
border-bottom: 1px solid #e8e8e8;
padding-bottom: 2.5rem;
}
.blog_title h2 {
font-size: 1.5rem;
font-weight: bold;
line-height: 2.125rem;
color: #252525;
margin-bottom: 1.0625rem;
}
.blog_title p {
color: #929292;
font-size: 0.875rem;
line-height: 1.5rem;
font-weight: 400;
}
.blog_content {
margin: 2.5rem;
}
.blog_content p {
font-size: 0.875rem;
font-weight: 400;
line-height: 1.75rem;
color: #252525;
margin-bottom: 0.625rem;
}
.blog_content img {
max-width: 100%;
height: auto;
margin-bottom: 0.625rem;
}
.share_box {
width: 25rem;
position: fixed;
top: 130px;
right: calc((100% - 75%) / 2);
z-index: 10;
}
.blog_share {
width: 100%;
height: auto;
background: #ffffff;
border: 1px solid #e8e8e8;
float: left;
}
.blog_share h3 {
font-size: 1rem;
line-height: 2.125rem;
color: #959595;
font-weight: bold;
padding: 1.25rem 1.875rem;
border-bottom: 1px solid #e8e8e8;
}
.share_list {
padding: 1.875rem;
}
.share_list li {
float: left;
width: 2.75rem;
height: 2.75rem;
margin-right: 3.125rem;
}
.share_list li:last-child {
float: left;
width: 2.75rem;
height: 2.75rem;
margin-right: 0;
}
.share_list li img {
width: 2.75rem;
height: 2.75rem;
margin: 0 auto;
display: block;
}
.repply {
width: 100%;
height: auto;
background: #ffffff;
border: 1px solid #e8e8e8;
float: left;
margin-top: 1.25rem;
}
.repply h3 {
font-size: 1rem;
line-height: 2.125rem;
color: #959595;
font-weight: bold;
padding: 1.25rem 1.875rem;
border-bottom: 1px solid #e8e8e8;
}
.repply form {
width: auto;
height: auto;
padding: 1.25rem;
}
.repply span {
font-size: 0.875rem;
font-weight: bold;
}
.repply input {
width: 98%;
height: 2rem !important;
border: 1px solid #dbdbdb !important;
margin-top: 0.625rem;
margin-bottom: 0.625rem;
}
.comment_btn {
margin: 1.25rem 1.25rem;
width: auto;
height: 2.75rem;
line-height: 2.75rem;
background: #009fdf;
color: #ffffff;
text-align: center;
cursor: pointer;
}
.comment {
background: #ffffff;
width: 100%;
margin-top: 2.5rem;
padding-bottom: 1.875rem;
border: 1px solid #e8e8e8;
}
.comment h3 {
font-size: 1rem;
line-height: 2.125rem;
color: #959595;
font-weight: bold;
padding: 1.25rem 2.5rem;
border-bottom: 1px solid #e8e8e8;
}
.comment_form {
padding: 1.875rem 2.5rem;
}
.comment_form div {
font-size: 0.875rem;
font-weight: bold;
color: #252525;
float: left;
width: calc((100% - 2.5rem) / 2);
}
.comment_form > div input {
width: 100%;
height: 2rem;
border: 1px solid #dbdbdb !important;
margin-top: 0.625rem;
}
.comment_area {
width: 100% !important;
}
.comment_area textarea {
width: 100%;
margin-top: 0.625rem;
}
.comment_list {
background: #ffffff;
width: 100%;
margin-top: 2.5rem;
padding-bottom: 1.875rem;
border: 1px solid #e8e8e8;
}
.comment_list h3 {
font-size: 1rem;
line-height: 2.125rem;
color: #959595;
font-weight: bold;
padding: 1.25rem 2.5rem;
border-bottom: 1px solid #e8e8e8;
}
.comment_list ul {
padding: 1.875rem 2.5rem;
}
.comment_list ul li {
margin-bottom: 3.125rem;
}
.comment_list ul li:last-child {
margin-bottom: 0 !important;
}
.comment_list ul li > div {
float: left;
display: block;
font-size: 1rem;
}
.comment_list ul li > div:first-child {
width: 3.125rem;
height: auto;
margin-right: 1.25rem;
}
.comment_list ul li > div:last-child {
width: calc(100% - 3.125rem - 1.25rem);
height: auto;
}
@media screen and (min-width: 1440px) {
.blog_list ul li:nth-of-type(3n) {
margin-right: 0;
}
}
@media screen and (min-width: 1200px) and (max-width: 1440px) {
.blog_detail {
width: 60%;
}
.blog_list ul li:nth-of-type(3n) {
margin-right: 0;
}
.share_list li {
width: calc((100% - 1.875rem) / 4);
height: auto;
margin-right: 0.5rem;
}
.share_list li img {
width: 2.5rem;
height: 2.5rem;
}
.share_box {
width: 28%;
position: fixed;
top: 130px;
right: calc((100% - 75%) / 2);
}
}
@media screen and (min-width: 768px) and (max-width: 1200px) {
.content {
width: 91%;
}
.blog_detail {
width: 60%;
}
.blog_list ul {
width: 75%;
margin: 0 auto;
}
.blog_list ul li {
float: left;
width: calc((100% - 2.8125rem) / 2);
height: auto;
margin-right: 2.8125rem;
}
.blog_list ul li:nth-of-type(even) {
margin-right: 0;
}
.blog_list ul li img {
width: 100%;
height: auto;
}
.detail_box {
margin-top: 80px;
}
.share_box {
width: 34%;
position: fixed;
top: 130px;
right: calc((100% - 60% - 28% - 1.25rem) / 2);
}
.blog_share {
width: 100%;
}
.share_list li {
width: calc((100% - 1.875rem) / 4);
height: auto;
margin-right: 0.5rem;
}
.share_list li img {
width: 2.5rem;
height: 2.5rem;
}
.repply {
width: 100%;
}
}
/*点击弹框*/
.popup-quick {
width: 48rem;
position: fixed;
top: 35%;
margin-top: -235px;
left: 45%;
margin-left: -235px;
background-color: #fff;
z-index: 9999;
box-shadow: 0px 2px 5px rgba(255, 255, 255, 0.2);
color: #333;
border-radius: 0.05rem;
}
.popup-quick .popup-app {
font-size: 0.14rem;
color: #333;
line-height: 22px;
padding: 30px 40px;
text-align: center;
}
.popup-quick .business-close {
width: 24px;
height: 24px;
position: absolute;
top: 20px;
right: 20px;
cursor: pointer;
}
.popup-quick .popup-business-logo img {
width: 1.5rem;
height: 1.5rem;
margin-left: 0.9rem;
}
.title-text {
font-size: 26px;
color: #101010;
font-weight: 600;
text-align: center;
padding: 34px 0;
}
.marsk-container {
background: rgba(0, 0, 0, 0.8);
display: none;
position: absolute;
position: fixed;
top: 0;
right: 0;
left: 0;
bottom: 0px;
z-index: 999;
}
.detail_form input {
height: 2.75rem;
line-height: 2.75rem;
padding: 0 0.625rem;
margin-top: 0.625rem;
border: 1px solid #dbdbdb;
display: inline-block;
}
.detail_form select {
height: 2.75rem;
line-height: 2.75rem;
padding: 0 0.625rem;
margin-top: 0.625rem;
border: 1px solid #dbdbdb;
display: inline-block;
}
.detail_form textarea {
padding: 0.225rem 0.5rem;
margin-top: 0.625rem;
border: 1px solid #dbdbdb;
display: inline-block;
}
.apply_form textarea {
padding: 0.225rem;
margin-top: 0.625rem;
border: 1px solid #dbdbdb;
display: inline-block;
}
.detail-w {
width: 40%;
}
.detail-w02 {
width: 45%;
}
.detail-w01 {
width: 90%;
}
.detail-w02 {
width: 100%;
}
.detail_form .name > div {
float: left;
width: calc((100% - 1.25rem) / 2);
}
/*odm*/
.email-odm-w {
background: #fff;
width: 62.5%;
margin: auto;
clear: both;
padding: 0.05rem 0;
}
.news-odm {
background: #3bafe3;
margin: 50px 0;
padding: 6rem 0;
}
/*submission!*/
.submission {
width: 100%;
margin: auto;
text-align: center;
}
.submiss-content h3 {
font-size: 24px;
color: #333;
line-height: 30px;
padding: 24px 0 18px;
}
.submiss-p {
font-size: 20px;
color: #333;
}
.submiss-u-p {
padding: 46px 0 140px;
font-size: 18px;
}
.submiss-blue {
color: #009fdf;
border-bottom: 1px solid #009fdf;
}
/*question*/
.ques-r {
position: relative;
}
.ques-a {
position: absolute;
top: 40%;
left: 20%;
color: #fff;
}
.ques-a h3 {
font-size: 48px;
padding-bottom: 24px;
}
.ques-a p {
font-size: 18px;
width: 65%;
line-height: 24px;
font-weight: 100;
}
.ques_title {
width: 43.75rem;
line-height: 2rem;
text-align: center;
padding: 3.125rem 0;
font-size: 1.5rem;
font-weight: bold;
color: #000000;
}
.ques_title p {
font-size: 16px;
line-height: 18px;
font-weight: 100;
padding: 20px 0;
color: #707070;
}
.ques-select {
height: 45px;
margin-top: 10px;
border: 1px solid #dbdbdb;
}
select {
appearance: none;
-webkit-appearance: none; /*去除chrome浏览器的默认下拉图片*/
-moz-appearance: none; /*去除Firefox浏览器的默认下拉图片*/
background: url('../images/select-down.png') no-repeat right center;
width: 24px;
height: 24px;
padding: 0 5px;
text-overflow: '';
}
.ques-select::after {
/* arrow icon for select element */
content: '';
position: absolute;
z-index: 1;
right: 16px;
top: 50%;
margin-top: -8px;
display: block;
width: 16px;
height: 16px;
background: url('../images/blog/cd-icon-arrow.svg') no-repeat center center;
pointer-events: none;
}
/*upload*/
.img_box ul {
overflow: hidden;
}
.img_box ul li {
float: left;
width: 20%;
margin-right: 2.5%;
margin-top: 1em;
padding: 20% 0 0;
position: relative;
cursor: pointer;
}
.img_box ul li img {
width: 100%;
height: 100%;
display: block;
position: absolute;
top: 0;
}
.img_box ul .add_btn {
border: 1px solid #e5e5e5;
background: url(../images/add.png) no-repeat 50% 50%;
cursor: pointer;
border-radius: 3px;
}
.img_box ul .del {
position: absolute;
width: 20px;
height: 20px;
line-height: 15px;
text-align: center;
font-size: 1.5em;
background: rgba(0, 0, 0, 0.5);
color: #fff;
right: 0;
top: 0;
font-style: inherit;
cursor: pointer;
}
/*upload- E*/
.question_btn {
margin: 3rem auto 5.625rem;
width: 15rem;
height: 2.5rem;
line-height: 2.5rem;
background: #009fdf;
color: #ffffff;
text-align: center;
cursor: pointer;
}
</style>
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top-head2023" /}
</div>
</header>
<!--top End-->
<!-- 轮播 s -->
<div class="homeban">
<div class="bd">
<ul>
<li><img src="__PUBLIC__/weben/images/blog/blog.png"/></li>
</ul>
</div>
</div>
<!-- 轮播 e -->
<div class="swt-Container">
<div class="news-vertu">
<div class="tab">
</div>
</div>
</div>
<!-- 轮播 e -->
<!-- 轮播 s >
<div class="homeban banner-other">
<div class="bd">
<ul>
<li><a href="#"><img src="__PUBLIC__/weben/images/blog/blog.png"/></a></li>
</ul>
</div>
</div>
<!-- 轮播 e ---->
<!-- Blog列表 s -->
<div class="search_box">
<i class="search_icon"></i>
<input type="text" placeholder="Search blog articles" class="search" id="bg-search-in" value="<?php if(isset($search['name'])){ echo $search['name'];}?>"/>
</div>
<div class="blog_list">
<?php if ($list): ?>
<ul class="clearfix">
<?php foreach ($list as $detail): ?>
<li>
<a href="<?php echo 'index/blog/detail/id/'.$detail['id'];?>.html">
<img src="<?php echo getImage($detail['icon'], 951, 459, 6); ?>" />
<h3><?php echo $detail['title']; ?></h3>
<p><?php echo $detail['seo_description']; ?></p>
</a>
<span class="blue"><?php echo date("M d, Y", strtotime($detail['add_time'])); ?></span>
</li>
<?php endforeach; ?>
<!-- 分页 s -->
<?php
if ($page) {
echo $page;
}
?>
<!-- 分页 e -->
</ul>
<?php else: ?>
<div class="content">查询无结果!</div>
<?php endif; ?>
</div>
<!-- Blog列表 e -->
<script>
var type = 'Blog';
//点击创建申请块
$(function(){
$('#bg-search-in').click(function(){
var skeyword = $("#bg-search-in").val();
if (skeyword) {
var href = "?name=" + encodeURIComponent(skeyword);
location.href = href;
}
});
});
</script>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,232 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head-product" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<!--top End-->
<!-- 新闻详情页 s -->
<body class="bg-gray">
<!-- 注册 -->
<div class="login" style="margin-top:186px;">
<div class="swt-Container">
<div class="login_content_register">
<div class="text-c" style="margin-bottom: 2vw"><img src="/uploads/default/logo-black.png"></div>
<div class="title text-c">
<span class="accounts f_black">绑定手机</span>
</div>
<div class="content content_01">
<li class="margin-b-7">
<input type="text" onfocus="hide_err('telephone')" onblur="check_format('telephone')" id="telephone" placeholder="请输入手机号码">
<div id="err_tel"></div>
</li>
<li class="margin-b-7">
<input type="text" onfocus="hide_err('captcha1')" id="captcha1" placeholder="请输入验证码">
<button class="Obtain" onclick="get_captcha('captcha1')">获取验证码</button>
<div id="err_captcha1"></div>
</li>
</div>
<div class="tjdl">
<button class="tjbtn" onclick="third_register()">提交</button>
</div>
</div>
</div>
</div>
<div class="text-c login_bottom">2015 ORICO Technologies Co.,Ltd 版权所有(<a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=44030702002297" >粤ICP备15025109号-3</a>
<p> <a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=44030702002297" ><img src=""/>粤公网安备 44030702002297号 <img src="__PUBLIC__/web/images/orico_co_icon.png" style="vertical-align: middle;"></a></p>
</div>
<!-- 新闻详情页 e -->
</body>
</html>
<!-- 新闻详情页 e -->
<script type="text/javascript">
$(document).ready(function(){
$(".accounts").click(function(){
$(this).siblings().removeClass("blue");
$(this).addClass("blue");
$(".content_02").hide();
$(".content_01").show();
})
$(".short_letter").click(function(){
$(this).siblings().removeClass("blue");
$(this).addClass("blue");
$(".content_01").hide();
$(".content_02").show();
})
})
</script>
</body>
</html>
<script type="text/javascript">
var sendsms_flag = 1;
function get_captcha(type)
{
if (type == 'captcha1')
{
var url = '/index/customer/sendsms';
var telephone = $("#telephone").val();
var data = {
telephone: telephone
};
if (sendsms_flag == 0)
{
return;
}
if (!check_format('telephone'))
{
return;
}
}
else if (type == 'captcha2')
{
alert('邮箱找回暂不可用');
return;
}
$.ajax({
url: url,
type: 'post',
dataType: 'json',
data: data,
success: function(data) {
if (data.code) {
//设置button效果开始计时
curCount = 60;
$(".Obtain").attr("disabled", "true");
$(".Obtain").html("重新获取" + curCount + "秒");
InterValObj = window.setInterval(SetRemainTime, 1000);
sendsms_flag = 0;
setTimeout(function() {
sendsms_flag = 1;
}, 60000);
} else {
alert(data.msg);
}
}
});
}
function third_register() {
var telephone = $("#telephone").val();
var captcha = $("#captcha1").val();
var openid = '<?php echo isset($openid) ? $openid : ''; ?>';
var access_token = '<?php echo isset($access_token) ? $access_token : ''; ?>';
var userinfo = '<?php echo isset($userinfo) ? json_encode($userinfo) : ''; ?>';
var data = {
telephone: telephone,
captcha: captcha,
openid: openid,
access_token: access_token,
userinfo: userinfo
};
$.ajax({
url: '/index/customer/qq_register',
type: 'post',
dataType: 'json',
data: data,
success: function (res) {
if (res.code == 200)
{
location.href = '/index/customer/personal.html';
}
else if (res.code == -3)
{
var html = '<span style="color: red">' + res.msg + '</span>';
show_err('captcha1', html);
}
}
})
};
function check_format(id)
{
if (id == 'telephone')
{
var telephone = $("#telephone").val();
var arg = /^1[3456789]\d{9}$/;
if (!arg.test(telephone))
{
var html = '<span style="color: red">请检查手机格式</span>';
show_err('telephone', html);
return false;
}
else
{
hide_err('telephone');
return true;
}
}
}
$(document).keyup(function(e) {
var code = e.keyCode;
if (code == 13)
{
third_register();
}
});
</script>
<script type="text/javascript">
function hide_err(id)
{
if (id == 'telephone')
{
var err_id = 'err_tel';
var input_id = 'telephone';
}
else if (id == 'captcha1')
{
var err_id = 'err_captcha1';
var input_id = 'captcha1';
}
$('#' + err_id).html('');
$('#' + input_id).css('border', '1px solid #dedfe0');
}
function show_err(id, html)
{
if (id == 'telephone')
{
var err_id = 'err_tel';
var input_id = 'telephone';
}
else if (id == 'captcha1')
{
var err_id = 'err_captcha1';
var input_id = 'captcha1';
}
$('#' + err_id).html(html);
$('#' + input_id).css('border', '1px solid red');
}
/*验证码倒计时*/
function SetRemainTime() {
if (curCount < 1) {
window.clearInterval(InterValObj); //停止计时器
InterValObj = null;
$(".Obtain").removeAttr("disabled"); //启用按钮
$(".Obtain").html("获取短信验证码");
} else {
curCount--;
$(".Obtain").html("重新获取" + curCount + "秒");
}
}
</script>

View File

@@ -0,0 +1,473 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head-product" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<!--top End-->
<!-- 新闻详情页 s -->
<body class="bg-gray">
<!-- 注册 -->
<div class="login" style="margin-top:56px;">
<div class="swt-Container">
<div class="login_content_register">
<div class="text-c" style="margin-bottom: 2vw"><img src="/uploads/default/logo-black.png"></div>
<div class="title">
<ul>
<li class="accounts blue cursor_p">手机找回</li>
<li class="short_letter cursor_p">邮箱找回</li>
</ul>
</div>
<div class="content content_01">
<li class="margin-b-7">
<input type="text" tabindex="1" onfocus="hide_err('telephone')" onblur="check_format('telephone')" id="telephone" placeholder="请输入手机号码">
<div id="err_tel"></div>
</li>
<li class="margin-b-7">
<input type="text" tabindex="2" id="captcha1" onfocus="hide_err('captcha1')" placeholder="请输入验证码">
<button class="Obtain" onclick="get_captcha('captcha1')">获取验证码</button>
<div id="err_captcha1"></div>
</li>
<li class="margin-b-5">
<input type="password" tabindex="3" id="password" onfocus="hide_err('password')" onblur="check_format('password')" placeholder="新密码必须包含8-20个字符,且包含数字和字母">
<div id="err_pwd"></div></li>
</li>
<li class="margin-b-5">
<input type="password" tabindex="4" id="re_password" onfocus="hide_err('re_password')" onblur="check_format('re_password')" placeholder="请确认新密码">
<div id="err_repwd"></div>
</li>
<div class="tjdl">
<button class="tjbtn" onclick="update_forget_pwd('update_by_tel')">提交</button>
</div>
</div>
<div class="content content_02" style="display: none;">
<li class="margin-b-7">
<input type="text" onfocus="hide_err('email')" onblur="check_format('email')" id="email" placeholder="请输入邮箱">
<div id="err_email"></div>
</li>
<li class="margin-b-7">
<input onfocus="hide_err('captcha2')" type="text" id="captcha2" placeholder="请输入验证码" >
<button class="Obtain cursor_p" onclick="get_captcha('captcha2')">获取验证码</button>
<div id="err_captcha2"></div>
</li>
<li class="margin-b-5">
<input type="password" id="password2" onfocus="hide_err('password2')" onblur="check_format('password2')" placeholder="新密码必须包含8-20个字符,且包含数字和字母">
<div id="err_pwd2"></div>
</li>
<li class="margin-b-5">
<input type="password" id="re_password2" onfocus="hide_err('re_password2')" onblur="check_format('re_password2')" placeholder="请确认新密码">
<div id="err_repwd2"></div>
</li>
<div class="tjdl">
<button class="tjbtn" onclick="update_forget_pwd('update_by_email')">提交</button>
</div>
</div>
<div class="Register">
<a href="__ORICOROOT__<?php echo url('/register'); ?>" class="left">立即注册</a>
<a href="__ORICOROOT__<?php echo url('/login'); ?>" class="right">登录</a>
</div>
</div>
</div>
</div>
<div class="text-c login_bottom">2015 ORICO Technologies Co.,Ltd 版权所有(<a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=44030702002297" >粤ICP备15025109号-3</a>
<p> <a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=44030702002297" ><img src=""/>粤公网安备 44030702002297号 <img src="__PUBLIC__/web/images/orico_co_icon.png" style="vertical-align: middle;"></a></p>
</div>
<!-- 新闻详情页 e -->
<script type="text/javascript">
$(document).ready(function(){
$(".accounts").click(function(){
hide_err_batch(2);
update_flag = 1;
$(this).siblings().removeClass("blue");
$(this).addClass("blue");
$(".content_02").hide();
$(".content_01").show();
})
$(".short_letter").click(function(){
alert('邮箱暂不可用');
return;
hide_err_batch(1);
update_flag = 2;
$(this).siblings().removeClass("blue");
$(this).addClass("blue");
$(".content_01").hide();
$(".content_02").show();
})
})
</script>
</body>
</html>
<script type="text/javascript">
var update_flag = 1;
var sendsms_flag = 1;
function get_captcha(type)
{
if (type == 'captcha1')
{
var url = '/index/customer/sendsms';
var telephone = $("#telephone").val();
var data = {
telephone: telephone
};
if (sendsms_flag == 0)
{
return;
}
if (!check_format('telephone'))
{
return;
}
}
else if (type == 'captcha2')
{
var url = '/index/customer/sendresetemail';
var email = $("#email").val();
var data = {
email: email
};
if (sendsms_flag == 0)
{
return;
}
if (!check_format('email'))
{
return;
}
}
$.ajax({
url: url,
type: 'post',
dataType: 'json',
data: data,
success: function(data) {
if (data.code == 200) {
//设置button效果开始计时
curCount = 60;
$(".Obtain").attr("disabled", "true");
$(".Obtain").html("重新获取" + curCount + "秒");
InterValObj = window.setInterval(SetRemainTime, 1000);
sendsms_flag = 0;
setTimeout(function() {
sendsms_flag = 1;
}, 60000);
} else {
alert(data.msg);
}
}
});
}
function update_forget_pwd(type) {
if (type == 'update_by_tel')
{
var telephone = $("#telephone").val();
var captcha = $("#captcha1").val();
var password = $("#password").val();
var re_password = $("#re_password").val();
var data = {
telephone: telephone,
captcha: captcha,
password: password
};
if (!check_format('telephone') || !check_format('password') || !check_format('re_password'))
{
return;
}
}
else if (type == 'update_by_email')
{
var email = $("#email").val();
var captcha = $("#captcha2").val();
var password = $("#password2").val();
var re_password = $("#re_password2").val();
var data = {
email: email,
captcha: captcha,
password: password
};
if (!check_format('email') || !check_format('password2') || !check_format('re_password2'))
{
return;
}
}
$.ajax({
url: 'index/customer/update_forget_pwd',
type: 'post',
dataType: 'json',
data: data,
success: function (res) {
if (res.code == 200)
{
alert(res.msg);
location.href = '/login.html';
}
else if (res.code == -3)
{
var html = '<span style="color: red">' + res.msg + '</span>';
show_err('captcha1', html);
}
else if (res.code == -5)
{
var html = '<span style="color: red">' + res.msg + '</span>';
show_err('captcha2', html);
}
else
{
alert(res.msg);
}
}
})
};
function check_format(id)
{
if (id == 'password' || id == 'password2')
{
var flag = id == 'password' ? 1 : 0;
var _id = flag == 1 ? 're_password' : 're_password2';
var err_id = flag == 1 ? 'pwd' : 'pwd2';
var re_password = $("#" + _id).val();
if (re_password != '')
{
check_format(_id);
}
var password = $("#" + id).val();
var arg = /^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&*-.]+$)[a-zA-Z\d!@#$%^&*-.]{8,20}$/;
if (!arg.test(password))
{
var html = '<span style="color: red">密码必须包含8-20个字符,且至少包含两种类型字符</span>';
show_err(err_id, html);
return false;
}
else
{
hide_err(err_id);
return true;
}
}
else if (id == 're_password' || id == 're_password2')
{
var flag = id == 're_password' ? 1 : 0;
var pwd_id = flag == 1 ? 'password' : 'password2';
var err_id = flag == 1 ? 're_pwd' : 're_pwd2';
var password = $("#" + pwd_id).val();
var re_password = $("#" + id).val();
if (password != re_password)
{
var html = '<span style="color: red">两次密码不一致</span>';
show_err(err_id, html);
return false;
}
else
{
hide_err(err_id);
return true;
}
}
else if (id == 'telephone')
{
var telephone = $("#telephone").val();
var arg = /^1[3456789]\d{9}$/;
if (!arg.test(telephone))
{
var html = '<span style="color: red">请检查手机格式</span>';
show_err('telephone', html);
return false;
}
else
{
hide_err('telephone');
return true;
}
}
else if (id == 'email')
{
var email = $("#email").val();
var arg = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/;
if (!arg.test(email))
{
var html = '<span style="color: red">邮箱格式错误</span>';
show_err('email', html);
return false;
}
else
{
hide_err('email');
return true;
}
}
}
/*倒数计时*/
function SetRemainTime() {
if (curCount < 1) {
window.clearInterval(InterValObj); //停止计时器
InterValObj = null;
$(".Obtain").removeAttr("disabled"); //启用按钮
$(".Obtain").html("获取短信验证码");
} else {
curCount--;
$(".Obtain").html("重新获取" + curCount + "秒");
}
}
$(document).keyup(function(e) {
var code = e.keyCode;
var type = update_flag == 1 ? 'update_by_tel' : 'update_by_email';
if (code == 13)
{
update_forget_pwd(type);
}
});
</script>
<script type="text/javascript">
function hide_err_batch(id)
{
if (id == 1)
{
hide_err('telephone');
hide_err('captcha1');
hide_err('password');
hide_err('re_password');
}
else
{
}
}
function hide_err(id)
{
if (id == 'password')
{
var err_id = 'err_pwd';
var input_id = 'password';
}
else if (id == 're_password')
{
var err_id = 'err_repwd';
var input_id = 're_password';
}
if (id == 'password2')
{
var err_id = 'err_pwd2';
var input_id = 'password2';
}
else if (id == 're_password2')
{
var err_id = 'err_repwd2';
var input_id = 're_password2';
}
else if (id == 'email')
{
var err_id = 'err_email';
var input_id = 'email';
}
else if (id == 'telephone')
{
var err_id = 'err_tel';
var input_id = 'telephone';
}
else if (id == 'captcha1')
{
var err_id = 'err_captcha1';
var input_id = 'captcha1';
}
else if (id == 'captcha2')
{
var err_id = 'err_captcha2';
var input_id = 'captcha2';
}
$('#' + err_id).html('');
$('#' + input_id).css('border', '1px solid #dedfe0');
}
function show_err(id, html)
{
if (id == 'pwd')
{
var err_id = 'err_pwd';
var input_id = 'password';
}
else if (id == 're_pwd')
{
var err_id = 'err_repwd';
var input_id = 're_password';
}
else if (id == 'pwd2')
{
var err_id = 'err_pwd2';
var input_id = 'password2';
}
else if (id == 're_pwd2')
{
var err_id = 'err_repwd2';
var input_id = 're_password2';
}
else if (id == 'email')
{
var err_id = 'err_email';
var input_id = 'email';
}
else if (id == 'telephone')
{
var err_id = 'err_tel';
var input_id = 'telephone';
}
else if (id == 'captcha1')
{
var err_id = 'err_captcha1';
var input_id = 'captcha1';
}
else if (id == 'captcha2')
{
var err_id = 'err_captcha2';
var input_id = 'captcha2';
}
$('#' + err_id).html(html);
$('#' + input_id).css('border', '1px solid red');
}
/*验证码倒计时*/
function SetRemainTime() {
if (curCount < 1) {
window.clearInterval(InterValObj); //停止计时器
InterValObj = null;
$(".Obtain").removeAttr("disabled"); //启用按钮
$(".Obtain").html("获取短信验证码");
} else {
curCount--;
$(".Obtain").html("重新获取" + curCount + "秒");
}
}
</script>

View File

@@ -0,0 +1,324 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<!--top-->
<header class="header-PC header-Product">
<div id="header" class="theme-black">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
<!--top End-->
<!-- 登录 -->
<div class="login login_bg login_height">
<div class="swt-Container">
<div class="login_content">
<div class="title">
<ul>
<li class="accounts blue"><span class="cursor_p">密码登录</span></li>
<li class="short_letter"><span class="cursor_p">短信登录</span></li>
</ul>
</div>
<div class="content content_01">
<li class="margin-b-5"><input type="text" id="username" onfocus="handle_focus('username')" onblur="check_format('username')" placeholder="请输入手机号/邮箱"></li>
<li class="margin-b-5"><input type="password" onblur="check_format('username')" onfocus="handle_focus('username')" id="password" placeholder="请输入密码"></li>
<div id="err_t1" class="err"></div>
<div class="tjdl">
<a class="tjbtn" id="submit-btn" onclick="login('login_by_username')">登录</a>
</div>
</div>
<div class="content content_02" style="display: none;">
<li class="margin-b-5"><input type="text" onfocus="handle_focus('telephone')" onblur="check_format('telephone')" id="telephone" placeholder="请输入手机号"></li>
<li class="margin-b-5"><input type="password" value="" id="captcha1" placeholder="请输入验证码">
<div class="Obtain cursor_p" onclick="get_captcha('captcha1')">获取验证码</div>
</li>
<div id="err_t2" class="err"></div>
<div class="tjdl">
<a class="tjbtn" id="submit-btn" onclick="login('login_by_captcha')">登录</a>
</div>
</div>
<div class="Register">
<a href="__ORICOROOT__<?php echo url('/register'); ?>" class="left">立即注册</a>
<a href="__ORICOROOT__<?php echo url('/forgetpwd'); ?>" class="right">忘记密码?</a>
</div>
<div class="short">
<div class="Quick"><span>其它登录方式</span></div>
<a onclick='toLogin()'><img src="__PUBLIC__/web/images/customer/QQ.png" height="33"></a>
<a onclick='toLoginwx()'><img src="__PUBLIC__/web/images/customer/weixin.png" height="33"></a>
</div>
</div>
</div>
</div>
<!-- 登录 -->
<!-- QQ快捷登录-->
<script
type="text/javascript" charset="utf-8"
src="http://connect.qq.com/qc_jssdk.js"
data-appid="101544135"
data-redirecturi="http://www.oricogroup.com/index/customer/save">
</script>
<script>
$(document).ready(function(){
$(".accounts").click(function(){
$(this).siblings().removeClass("blue");
$(this).addClass("blue");
$(".content_02").hide();
$(".content_01").show();
flag = 1;
})
$(".short_letter").click(function(){
$(this).siblings().removeClass("blue");
$(this).addClass("blue");
$(".content_01").hide();
$(".content_02").show();
flag = 2;
})
})
function toLogin()
{
//以下为按钮点击事件的逻辑。注意这里要重新打开窗口
//否则后面跳转到QQ登录授权页面时会直接缩小当前浏览器的窗口而不是打开新窗口
var A=window.open("https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id=101544135&redirect_uri=http://www.orico.com.cn/index/customer/save&scope=get_user_info",'_blank');
// var A=window.open("/index/qqlogin/index.html", "location=1");
}
function toLoginwx()
{
//以下为按钮点击事件的逻辑。注意这里要重新打开窗口
//否则后面跳转到QQ登录授权页面时会直接缩小当前浏览器的窗口而不是打开新窗口
var A=window.open("https://open.weixin.qq.com/connect/qrconnect?appid=wx979d391fdfb583d1&redirect_uri=http%3a%2f%2fwww.orico.com.cn%2findex%2fcustomer%2fwx_save&response_type=code&scope=snsapi_login&state=wx#wechat_redirect");
// var A=window.open("/index/qqlogin/index.html", "location=1");
}
</script>
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>
<script type="text/javascript">
function handle_focus(id)
{
if (id == 'username')
{
$('#err_t1').html('');
$('#username').css('border', '1px solid #dedfe0');
}
else if (id == 'telephone')
{
$('#err_t2').html('');
$('#telephone').css('border', '1px solid #dedfe0');
}
}
function check_format(id)
{
if (id == 'username')
{
var username = $("#username").val();
var arg1 = /^1[3456789]\d{9}$/;
var arg2 = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/;
if (username == '')
{
return false;
}
if (!arg1.test(username) && !arg2.test(username))
{
var html = '<span style="color: red">请检查账号格式</span>';
$('#err_t1').html(html);
$('#username').css('border', '1px solid red');
return false;
}
else
{
$('#err_t1').html('');
$('#username').css('border', '1px solid #dedfe0');
return true;
}
}
else if (id == 'telephone')
{
var telephone = $("#telephone").val();
var arg = /^1[3456789]\d{9}$/;
if (telephone == '')
{
return false;
}
if (!arg.test(telephone))
{
var html = '<span style="color: red">请检查手机号格式</span>';
$('#err_t2').html(html);
$('#telephone').css('border', '1px solid red');
return false;
}
else
{
$('#err_t2').html('');
$('#telephone').css('border', '1px solid #dedfe0');
return true;
}
}
}
var flag = 1;
function login(id)
{
if (id == 'login_by_username')
{
var username = $("#username").val();
var password = $("#password").val();
var data = {
username: username,
password: password
};
if (!check_format('username'))
{
return;
}
}
else if (id == 'login_by_captcha')
{
var telephone = $("#telephone").val();
var captcha = $("#captcha1").val();
var data = {
telephone: telephone,
captcha: captcha
};
if (!check_format('telephone'))
{
return;
}
}
$.ajax({
url: '/index/customer/new_login',
type: 'post',
dataType: 'json',
data: data,
success: function (res) {
if (res.code == 200)
{
var redirect_uri = '<?php echo $url; ?>';
if (redirect_uri != '')
{
location.href = redirect_uri;
}
else
{
location.href = '/index/customer/personal';
}
}
else if (res.code < 0)
{
if (flag == 1)
{
var html = '<span style="color: red">' + res.msg + '</span>';
$('#err_t1').html(html);
}
else if (flag == 2)
{
var html = '<span style="color: red">' + res.msg + '</span>';
$('#err_t2').html(html);
}
}
}
});
}
var sendsms_flag = 1;
function get_captcha(type)
{
if (type == 'captcha1')
{
var url = '/index/customer/sendsms';
var telephone = $("#telephone").val();
var data = {
login:1,
telephone: telephone
};
if (sendsms_flag == 0)
{
return;
}
if (!check_format('telephone'))
{
return;
}
}
else if (type == 'captcha2')
{
}
$.ajax({
url: url,
type: 'post',
dataType: 'json',
data: data,
success: function(data) {
if (data.code > 0) {
//设置button效果开始计时
curCount = 60;
$(".Obtain").attr("disabled", "true");
$(".Obtain").html("重新获取" + curCount + "秒");
InterValObj = window.setInterval(SetRemainTime, 1000); //启动计时器1秒执行一次
sendsms_flag = 0;
setTimeout(function() {
sendsms_flag = 1;
}, 60000);
} else {
alert(data.msg);
}
}
});
}
function SetRemainTime() {
if (curCount < 1) {
window.clearInterval(InterValObj); //停止计时器
InterValObj = null;
$(".Obtain").removeAttr("disabled"); //启用按钮
$(".Obtain").html("获取短信验证码");
} else {
curCount--;
$(".Obtain").html("重新获取" + curCount + "秒");
}
}
$(document).keyup(function(e) {
var code = e.keyCode;
if (code == 13)
{
if (flag == 1)
{
id = 'login_by_username';
}
else if (flag == 2)
{
id = 'login_by_captcha';
}
login(id);
}
});
</script>

View File

@@ -0,0 +1,114 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head-product" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<!--top-->
{include file="include/top-product" /}
<!--top End-->
<!-- 新闻详情页 s -->
<div class="zhuce1">
<div class="w1200">
<form action="<?php echo url('/index/customer/login'); ?>" method="post" id="login-form">
<div class="zctit">
<a href="<?php echo url('/login'); ?>" class="zca1">登录</a>
<a href="<?php echo url('/register'); ?>" class="zca2">没有账号/快速注册</a>
<div class="clear"></div>
</div>
<ul class="w1000 zclist">
<li>
<span class="zctext1 zctext1s">用户名:</span>
<input type="text" name="firstname" value="" id="firstname">
<a href="<?php echo url('/register'); ?>" class="shorzc">快速注册</a>
</li>
<li>
<span class="zctext1 zctext1s">密码:</span>
<input type="password" name="password" value="" id="password">
<a href="<?php echo url('/forgetpwd'); ?>" class="shorzc">找回密码</a>
</li>
<li>
<span class="zctext1 zctext1s">验证码:</span>
<input type="text" name="authcode" value="" class="yzm" id="authcode">
<span class="zctext2">输入下图中的字符</span>
<p class="yznum yznums">
<a href="javascript:void(0);" class="yanzhengma"><img id="yanzhengma" src="<?php echo url('index/authcode/verify', ['id' => 'yanzhengma'], 'png|jpg|gif'); ?>"></a>
<a href="javascript:void(0);" class="other yanzhengma">换一个</a>
</p>
</li>
</ul>
<div class="tjdl">
<input type="checkbox" name="autologin" value="0"><label>自动登录</label>
<a href="#" class="tjbtn" id="submit-btn">登录</a>
</div>
</form>
<div class="short">
<span>快捷登录:</span>
<span onclick='toQzoneLogin()'>QQ登录</span>
<script type="text/javascript">
var childWindow;
function toQzoneLogin()
{
childWindow = window.open("index/Qqlogin/index","TencentLogin","width=450,height=320,menubar=0,scrollbars=1, resizable=1,status=1,titlebar=0,toolbar=0,location=1");
}
function closeChildWindow()
{
childWindow.close();
}
</script>
</div>
</div>
</div>
<!-- 新闻详情页 e -->
<script type="text/javascript">
$(function() {
$("a.yanzhengma").click(function(event) {
event.preventDefault();
//$img = $("#authcode");
$("#yanzhengma").attr("src", "<?php echo url('index/authcode/verify', ['id' => 'yanzhengma'], 'png|jpg|gif'); ?>" + "?" + Math.random());
});
$('#login-form').bind('submit', function() {
var options = {
url: "<?php echo url('/index/customer/login'); ?>",
type: "post",
cache: false,
dataType: "json",
data: $(this).serialize(),
success: function(data) {
if (data.code) {
location.href = data.url;
} else {
alert(data.msg);
}
},
complete: function() {
//HideLoading();
$("a.yanzhengma").click();
}
};
$.ajax(options);
return false;
});
$("a#submit-btn").click(function(event) {
event.preventDefault();
$('#login-form').submit();
});
});
</script>
<!-- QQ快捷登录-->
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,42 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head-product" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<!--top-->
<header class="header-PC header-Product">
<div id="header" class="theme-black">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
<!--top End-->
<!-- 新闻详情页 s -->
<div class="zhuce1">
<div class="w1200">
<ul class="w1000 zclist zclist1">
<li>
<p class="ts3"><?php echo $msg; ?></p>
<p class="ts4">如果您不能正常登录请联系在线客服QQXXXX 工作时间09:00--18:00</p>
</li>
</ul>
</div>
</div>
<!-- 新闻详情页 e -->
<script type="text/javascript">
$(function() {
});
</script>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,231 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>我的收藏</title>
{include file="include/head-product" /}
</head>
<body>
<!--top-->
<header class="header-PC header-Product">
<div id="header" class="theme-black">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
<div class="swt-Container">
<div class="people">
<div class="people_title">
<ul>
<a href="__ORICOROOT__/index/customer/personal"><li>账号管理</li></a>
<a href="__ORICOROOT__/index/customer/my_collection"><li class="people_blue">我的收藏</li></a>
</ul>
</div>
<div class="content02">
<?php if (!empty($customer_info)): ?>
<?php
$head_img = $head_img = $customer_info['picture'] != '' ? $customer_info['picture'] : '__PUBLIC__/web/images/customer/logo_small_03.png';
?>
<div class="people_logo">
<div class="left"><img style="border-radius: 50%;" src="<?php echo $head_img; ?>"></div>
<div class="right">
<div>用户:<?php echo $customer_info['firstname']; ?></div>
<!-- <div class="">修改个人信息</div>-->
</div>
</div>
<div class="people_AC">
<div class="title link_a">
<div class="text-r">
<div class="u_admin01 cursor_p"><i class='Batch'>批量管理</i></div>
<div class="u_admin02" style="display: none">
<i class="cursor_p"><input type="checkbox" class="check" name="check" value="">全选</i>
<i class='delete cursor_p'>删除</i>
<i class='cancel cursor_p'>取消管理</i>
</div>
<div class="u_cate">
分类:<a class="<?php if ($cid == 0): ?> f_blue <?php endif; ?>" href="/index/customer/my_collection">全部</a>
<?php if (!empty($productCategory)): ?>
<?php foreach($productCategory as $key => $value): ?>
<a class="<?php if ($cid == $value['id']): ?> f_blue <?php endif; ?>" href="/index/customer/my_collection/cid/<?php echo $value['id']; ?>"><?php echo $value['name']; ?> </a>
<?php endforeach; ?>
<?php endif; ?>
</div>
</div>
</div>
<div class="u_product">
<?php if (!empty($list)): ?>
<?php foreach($list as $key => $value): ?>
<ul>
<li class="d_product">
<div class="position-r" >
<div class="check_B position-a" style="display: none;"><input id="" name="check_box" type="checkbox" class="check_box" value="<?php echo $value['id']; ?>"><label></label></div>
<a href="/product/detail/<?php echo $value['id']; ?>.html">
<img src="<?php echo $value['product_two_img']; ?>">
</a>
<div product_id="<?php echo $value['id']; ?>" class="delete_product u_del s_del" style="display: none"><img src="__PUBLIC__/web/images/customer/del.jpg" class="cursor_p"></div>
<div class="del_alert" style="display: none;">
<p>确定删除?</p>
<span class="bg_red cursor_p">确定</span>
<span class="bg_gray cursor_p">取消</span>
</div>
</div>
<a href="/product/detail/<?php echo $value['id']; ?>.html">
<p><?php echo $value['name']?></p>
<p><?php echo $value['brand_id']; ?></p>
</a>
</li>
</ul>
<?php endforeach; ?>
<?php else: ?>
<div class="u_product text-c" style="line-height: 300px;" >您还未收藏任何产品</div>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
<?php
if ($page)
{
echo $page;
}
?>
</div>
</div>
</div>
<div class="all_del" style="display: none">
<div class="all_delect">
<p>确定删除?</p>
<span class="bg_red cursor_p">确定</span>
<span class="bg_gray cursor_p">取消</span>
</div>
</div>
<script type="application/javascript">
/*修改*/
$(document).ready(function(){
$(".u_before .right").click(function(){
$(this).parents(".u_before").hide();
$(this).parents(".u_before").next().show();
})
$(".u_after .u_button_gray").click(function(){
$(this).parents(".u_after").hide();
$(this).parents(".u_after").prev().show();
})
})
/*批量管理*/
$(document).ready(function(){
$(".u_admin01 .Batch").click(function(){
$(".u_admin01").hide();
$(".u_admin02").show();
$(".u_product .check_B").show();
$(".u_product .s_del").removeClass('u_del');
});
$(".u_admin02 .cancel").click(function(){
$(".u_admin02").hide();
$(".u_admin01").show();
$(".u_product .check_B").hide();
$(".u_product .s_del").addClass('u_del');
});
})
/*全选*/
$(document).ready(function(){
$(".u_admin02 input[name='check']").click(function(){
if($(this).is(":checked")){
$(".u_product input[type='checkbox']").prop("checked",true);
}else{
$(".u_product input[type='checkbox']").prop("checked",false);
}
})
});
/*删除*/
$(document).ready(function(){
$(".d_product").mouseover(function(){
$(this).find(".u_del").show();
})
$(".d_product").mouseleave(function(){
$(this).find(".u_del").hide();
})
});
/*删除*/
$(document).ready(function(){
$(".u_del").click(function(){
$(this).next(".del_alert").show();
})
$(".del_alert .bg_gray").click(function(){
$(this).parent(".del_alert").hide();
})
$(".del_alert .bg_red").click(function(){
var product_id = $(this).parents('.del_alert').prev('.delete_product').attr('product_id');
cancel_collection(product_id);
$(this).parents(".d_product").remove();
})
});
/*批量管量*/
var checked = [];
$(document).ready(function(){
$(".delete").click(function(){
$('input[name="check_box"]:checked').each(function() {
checked.push($(this).val());
});
$(".all_del").show();
});
$(".all_delect .bg_gray").click(function(){
$(".all_del").hide();
checked = [];
});
$(".all_delect .bg_red").click(function(){
var product_ids = checked;
cancel_collection(product_ids, 1);
})
});
</script>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>
<script type="text/javascript">
function cancel_collection(product_id, type=0)
{
if (product_id == '')
{
alert('请先选择产品');
$(".all_del").hide();
return;
}
var data = {
type: 1,
coll_id: product_id
};
$.ajax({
url: '/index/collection/cancel_collection',
type: 'post',
dataType: 'json',
data: data,
success: function (res) {
if (type == 1)
{
location.reload();
}
}
})
}
</script>

View File

@@ -0,0 +1,486 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>个人中心</title>
{include file="include/head-product" /}
</head>
<body>
<!--top-->
<header class="header-PC header-Product">
<div id="header" class="theme-black">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
<div class="swt-Container">
<div class="people">
<div class="people_title">
<ul>
<a href="__ORICOROOT__/index/customer/personal.html"><li class="people_blue">账号管理</li></a>
<a href="__ORICOROOT__/index/customer/my_collection.html"><li>我的收藏</li></a>
</ul>
</div>
<div class="content01">
<?php if (!empty($customer_info)): ?>
<?php
$head_img = $customer_info['picture'] != '' ? $customer_info['picture'] : '__PUBLIC__/web/images/customer/logo_small_03.png';
?>
<div class="people_logo">
<div class="left"><img style="border-radius: 50%;" src="<?php echo $head_img; ?>"></div>
<div class="right">
<div>用户:<?php echo $customer_info['firstname']; ?></div>
<!--<div class="">修改个人信息</div>-->
</div>
</div>
<?php endif; ?>
<div class="people_AC">
<div class="title"><span class="text-l">帐号安全</span></div>
<?php if (!empty($customer_info)): ?>
<ul>
<li>
<div class="u_before">
<div class="left">密码</div>
<div class="right text-r cursor_p">修改密码</div>
</div>
<div class="u_after b_bottom" style="display: none;">
<?php if ($customer_info['have_pwd']): ?>
<div class="m-bottom"><label>旧密码</label><input id="old_pwd" onfocus="hide_err('old_pwd')" class="form-control input_class" type="password"><div id="err_oldpwd" class="Obtain font-red"></div></div>
<?php endif; ?>
<div class="m-bottom"><label>新密码</label><input onfocus="hide_err('new_pwd')" onblur="check_format('password')" id="password" class="form-control input_class" type="password"><div id="err_pwd" class="Obtain font-red"></div></div>
<div class="m-bottom"><label>确认密码</label><input onfocus="hide_err('re_pwd')" onblur="check_format('re_password')" id="re_password" class="form-control input_class" type="password"><div id="err_repwd" class="Obtain font-red"></div></div>
<div class="u_button"><a class="u_button_blue" onclick="update_pwd()">确认</a><a class="u_button_gray">取消</a><a href="__ORICOROOT__/forgetpwd"><span class="forget_button f_blue">忘记密码</span></a></div>
</div>
</li>
<li>
<div class="u_before">
<div class="left">邮箱</div>
<?php if ($customer_info['email'] == ''): ?>
<div class="center"><strong>未绑定邮箱</strong><br>绑定后可通过邮箱登录</div>
<div class="right text-r cursor_p">绑定邮箱</div>
<?php else: ?>
<div class="center"><strong><?php echo $customer_info['email']; ?></strong><br>可通过邮箱登录</div>
<div class="right text-r cursor_p">修改邮箱</div>
<?php endif; ?>
</div>
<div class="u_after b_bottom b_top p-top" style="display: none;">
<div class="m-bottom"><label>邮箱</label><input onfocus="hide_err('email')" id="email" class="form-control input_class" type="text"><div id="err_email" class="Obtain font-red"></div></div>
<div class="u_button"><a onclick="bind_email()" class="u_button_blue">确认</a><a class="u_button_gray">取消</a></div>
</div>
</li>
<li>
<div class="u_before">
<div class="left">手机号码</div>
<div class="center"><strong><?php echo $customer_info['telephone']; ?></strong><br>已验证,可通过手机找回密码</div>
<div id="update_tel" class="right text-r cursor_p">修改手机号</div>
</div>
<div class="u_after b_top p-top" style="display: none;">
<div class="m-bottom"><label>旧手机号</label><input onfocus="hide_err('old_tel')" onblur="check_format('old_tel')" id="old_tel" class="form-control input_class" type="text"><div id="err_oldtel" class="Obtain font-red"></div></div>
<div class="m-bottom"><label>新手机号</label><input onfocus="hide_err('new_tel')" onblur="check_format('new_tel')" id="new_tel" class="form-control input_class" type="text"><div id="err_newtel" class="Obtain font-red"></div></div>
<div class="m-bottom"><label>验证码</label><input class="form-control input_class" type="text" id="captcha3"><div class="Obtain f_blue get_new_captcha cursor_p" onclick="get_captcha('captcha3')">获取验证码</div></div>
<div class="u_button"><a onclick="update_tel()" class="u_button_blue">确认</a><a class="u_button_gray">取消</a></div>
</div>
</li>
</ul>
</div>
<?php endif; ?>
</div>
</div>
</div>
<script type="application/javascript">
/*修改*/
$(document).ready(function(){
$(".u_before .right").click(function(){
$(this).parents(".u_before").hide();
$(this).parents(".u_before").next().show();
})
$(".u_after .u_button_gray").click(function(){
$(this).parents(".u_after").hide();
$(this).parents(".u_after").prev().show();
// hide_err('old_pwd');
// hide_err('new_pwd');
// hide_err('re_pwd');
// hide_err('email');
// hide_err('old_tel');
// hide_err('new_tel');
})
})
/*批量管理*/
$(document).ready(function(){
$(".u_admin01 .Batch").click(function(){
$(".u_admin01").hide();
$(".u_admin02").show();
$(".u_product .check_B").html('<div class="check_B position-a"><input id="" type="checkbox" class="check_box"><label></label></div>');
});
$(".u_admin02 .cancel").click(function(){
$(".u_admin02").hide();
$(".u_admin01").show();
$(".u_product .check_B").html('');
});
})
/*全选*/
$(document).ready(function(){
$(".u_admin02 input[name='check']").click(function(){
if($(this).is(":checked")){
$(".u_product input[type='checkbox']").prop("checked",true);
}else{
$(".u_product input[type='checkbox']").prop("checked",false);
}
})
});
</script>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>
<script type="text/javascript">
function check_format(id)
{
if (id == 'password')
{
var re_password = $("#re_password").val();
if (re_password != '')
{
check_format('re_password');
}
var password = $("#password").val();
var arg = /^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&*-.]+$)[a-zA-Z\d!@#$%^&*-.]{8,20}$/;
if (!arg.test(password))
{
var html = '密码必须包含8-20个字符,且至少包含两种类型字符';
show_err('new_pwd', html);
return false;
}
else
{
hide_err('new_pwd');
return true;
}
}
else if (id == 're_password')
{
var password = $("#password").val();
var re_password = $("#re_password").val();
if (password != re_password)
{
var html = '两次密码不一致';
show_err('re_pwd', html);
return false;
}
else
{
hide_err('re_pwd');
return true;
}
}
else if (id == 'new_tel')
{
var new_tel = $("#new_tel").val();
var arg = /^1[3456789]\d{9}$/;
if (!arg.test(new_tel))
{
var html = '请检查手机号格式';
show_err('new_tel', html);
return false;
}
else
{
hide_err('new_tel');
return true;
}
}
else if (id == 'old_tel')
{
var old_tel = $("#old_tel").val();
var arg = /^1[3456789]\d{9}$/;
if (!arg.test(old_tel))
{
var html = '请检查手机号格式';
show_err('old_tel', html);
return false;
}
else
{
hide_err('old_tel');
return true;
}
}
else if (id == 'email')
{
var email = $("#email").val();
var arg = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/;
if (!arg.test(email))
{
var html = '请检查邮箱格式';
show_err('email', html);
return false;
}
else
{
hide_err('email');
return true;
}
}
}
function update_pwd()
{
var old_pwd = $("#old_pwd").val();
var password = $("#password").val();
var data = {
old_password: old_pwd,
password: password,
};
if (!check_format('password') || !check_format('re_password'))
{
return;
}
$.ajax({
url: '/index/customer/update_pwd',
type: 'post',
dataType: 'json',
data: data,
success: function (res) {
if (res.code == 200)
{
alert(res.msg);
location.reload();
}
else if (res.code == -2)
{
var html = res.msg;
show_err('old_pwd');
}
else
{
alert(res.msg);
}
}
});
}
function bind_email()
{
var email = $("#email").val();
var data = {
email: email
};
if (!check_format('email'))
{
return;
}
$.ajax({
url: '/index/customer/bind_email',
type: 'post',
dataType: 'json',
data: data,
success: function (res) {
if (res.code == 200)
{
alert(res.msg);
location.reload();
}
else if (res.code < 0)
{
var html = res.msg;
show_err('email', html);
}
}
});
}
function update_tel()
{
var old_tel = $("#old_tel").val();
var new_tel = $("#new_tel").val();
var captcha = $("#captcha3").val();
var data = {
old_telephone: old_tel,
new_telephone: new_tel,
captcha: captcha
};
if (!check_format('new_tel') || !check_format('old_tel'))
{
return;
}
$.ajax({
url: '/index/customer/update_tel',
type: 'post',
dataType: 'json',
data: data,
success: function (res) {
if (res.code == 200)
{
alert(res.msg);
location.reload();
}
else if (res.code == -2)
{
var html = res.msg;
show_err('old_tel', html);
}
else
{
alert(res.msg);
}
}
});
}
var sendsms_flag = 1;
function get_captcha(id)
{
if (id == 'captcha1')
{
var telephone = '<?php echo $customer_info['telephone']; ?>';
}
else if (id == 'captcha3')
{
var telephone = $("#new_tel").val();
if (!check_format('new_tel'))
{
return;
}
}
if (sendsms_flag == 0)
{
return;
}
var data = {
telephone: telephone
};
$.ajax({
url: '/index/customer/sendsms',
type: 'post',
dataType: 'json',
data: data,
success: function(data) {
if (data.code) {
//设置button效果开始计时
curCount = 60;
$(".get_new_captcha").attr("disabled", "true");
$(".get_new_captcha").html("重新获取" + curCount + "秒");
InterValObj = window.setInterval(SetRemainTime, 1000); //启动计时器1秒执行一次
sendsms_flag = 0;
setTimeout(function() {
sendsms_flag = 1;
}, 60000);
} else {
alert(data.msg);
}
}
});
}
function SetRemainTime() {
if (curCount < 1) {
window.clearInterval(InterValObj); //停止计时器
InterValObj = null;
$(".get_new_captcha").removeAttr("disabled"); //启用按钮
$(".get_new_captcha").html("获取短信验证码");
} else {
curCount--;
$(".get_new_captcha").html("重新获取" + curCount + "秒");
}
}
</script>
<script type="text/javascript">
function hide_err(id)
{
if (id == 'old_pwd')
{
$('#err_oldpwd').html('');
$('#old_pwd').css('border', '1px solid #dedfe0');
}
else if (id == 'new_pwd')
{
$('#err_pwd').html('');
$('#password').css('border', '1px solid #dedfe0');
}
else if (id == 're_pwd')
{
$('#err_repwd').html('');
$('#re_password').css('border', '1px solid #dedfe0');
}
else if (id == 'email')
{
$('#err_email').html('');
$('#email').css('border', '1px solid #dedfe0');
}
else if (id == 'old_tel')
{
$('#err_oldtel').html('');
$('#old_tel').css('border', '1px solid #dedfe0');
}
else if (id == 'new_tel')
{
$('#err_newtel').html('');
$('#new_tel').css('border', '1px solid #dedfe0');
}
}
function show_err(id, html)
{
if (id == 'old_pwd')
{
$('#err_oldpwd').html(html);
$('#old_pwd').css('border', '1px solid red');
}
else if (id == 'new_pwd')
{
$('#err_pwd').html(html);
$('#password').css('border', '1px solid red');
}
else if (id == 're_pwd')
{
$('#err_repwd').html(html);
$('#re_password').css('border', '1px solid red');
}
else if (id == 'email')
{
$('#err_email').html(html);
$('#email').css('border', '1px solid red');
}
else if (id == 'old_tel')
{
$('#err_oldtel').html(html);
$('#old_tel').css('border', '1px solid red');
}
else if (id == 'new_tel')
{
$('#err_newtel').html(html);
$('#new_tel').css('border', '1px solid red');
}
}
</script>

View File

@@ -0,0 +1,254 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head-product" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body class="bg-gray">
<!-- 注册 -->
<div class="login" style="margin-top:186px;">
<div class="swt-Container">
<div class="login_content_register">
<div class="text-c" style="margin-bottom: 2vw"><a href="__ORICOROOT__"><img src="/uploads/default/logo-black.png"></a></div>
<div class="title text-c">
<!-- <span class="accounts blue cursor_p">手机注册</span> -->
<!--<ul>
<li class="accounts blue cursor_p">手机注册</li>
<li class="short_letter cursor_p">邮箱注册</li>
</ul>-->
</div>
<div class="content content_01">
<li class="margin-b-7"><input type="text" value="" onclick="handle_focus('telephone')" onblur="check_format('telephone')" id="telephone" placeholder="请输入手机号码"></li>
<li class="margin-b-7"><input type="text" value="" id="captcha1" placeholder="请输入验证码">
<button class="Obtain cursor_pcursor_p" onclick="get_captcha('captcha1')">获取验证码</button>
</li>
<div id="err_tel"></div>
</div>
<div class="content content_02" style="display: none;">
<li class="margin-b-7"><input type="text" value="" id="email" placeholder="请输入邮箱"></li>
<li class="margin-b-7"><input type="text" value="" id="captcha2" placeholder="请输入验证码">
<div class="Obtain cursor_p" onclick="get_captcha('captcha2')">获取验证码</div>
</li>
</div>
<div class="tjdl">
<button class="tjbtn" onclick="register()">注册</button>
</div>
<div class="Register text-r">
<a href="login.html" class="f_blue">立即登录</a>
</div>
</div>
</div>
</div>
<div class="text-c login_bottom">2015 ORICO Technologies Co.,Ltd 版权所有(<a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=44030702002297" >粤ICP备15025109号-3</a>
<p> <a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=44030702002297" ><img src=""/>粤公网安备 44030702002297号 <img src="__PUBLIC__/web/images/orico_co_icon.png" style="vertical-align: middle;"></a></p>
</div>
<!-- 注册 e -->
<!-- bottom s -->
<!-- bottom e -->
</body>
</html>
<script type="text/javascript">
$(document).ready(function(){
$(".accounts").click(function(){
$(this).siblings().removeClass("blue");
$(this).addClass("blue");
$(".content_02").hide();
$(".content_01").show();
})
$(".short_letter").click(function(){
$(this).siblings().removeClass("blue");
$(this).addClass("blue");
$(".content_01").hide();
$(".content_02").show();
})
})
function isNull(data) {
return (data == "" || data == undefined || data == null) ? true : false;
}
function trim(str) {
return str.replace(/(^\s*)|(\s*$)/g, '');
}
function validEmail(email) {
//对电子邮件的验证
var reg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
return reg.test(email);
}
</script>
<script type="text/javascript">
function handle_focus(id)
{
if (id == 'telephone')
{
$('#telephone').css('border', '1px solid #dedfe0');
$('#err_tel').html('');
}
}
function check_format(id)
{
if (id == 'telephone')
{
var telephone = $("#telephone").val();
var arg = /^1[3456789]\d{9}$/;
if (!arg.test(telephone))
{
var html = '<span style="color: red">请检查手机号格式</span>';
$('#err_tel').html(html);
$('#telephone').css('border', '1px solid red');
return false;
}
else
{
$('#telephone').css('border', '1px solid #dedfe0');
$('#err_tel').html('');
return true;
}
}
}
function register()
{
var telephone = $("#telephone").val();
var email = $("#email").val();
var flag = 0; // 标记手机还是邮箱注册
if (telephone)
{
var captcha = $("#captcha1").val();
data = {
telephone: telephone,
captcha: captcha
};
flag = 1;
}
else if (email)
{
var captcha = $("#captcha2").val();
data = {
email: email,
captcha: captcha
};
flag = 2;
alert('邮箱注册暂不可用');
return;
}
if (!check_format('telephone'))
{
return;
}
$.ajax({
url: '/index/customer/new_register',
type: 'post',
dataType: 'json',
data: data,
success: function(res) {
if (res.code == 200)
{
location.href = '/index/customer/personal';
}
if (res.code < 0)
{
if (flag == 1)
{
var html = '<span style="color: red">' + res.msg + '</span>';
$('#err_tel').html(html);
}
else if (flag == 2)
{
var html = '<span style="color: red">' + res.msg + '</span>';
$('#err_tel').html(html);
}
}
}
});
};
var sendsms_flag = 1;
function get_captcha(type)
{
if (type == 'captcha1')
{
var url = '/index/customer/sendsms';
var telephone = $("#telephone").val();
var data = {
register: 1,
telephone: telephone
};
if (sendsms_flag == 0)
{
return;
}
if (!check_format('telephone'))
{
return;
}
}
else if (type == 'captcha2')
{
alert('邮箱注册暂不可用');
return;
}
$.ajax({
url: url,
type: 'post',
dataType: 'json',
data: data,
success: function(data) {
if (data.code > 0) {
//设置button效果开始计时
curCount = 60;
$(".Obtain").attr("disabled", "true");
$(".Obtain").html("重新获取" + curCount + "秒");
InterValObj = window.setInterval(SetRemainTime, 1000); //启动计时器1秒执行一次
sendsms_flag = 0;
setTimeout(function() {
sendsms_flag = 1;
}, 60000);
} else {
alert(data.msg);
}
}
});
}
function SetRemainTime() {
if (curCount < 1) {
window.clearInterval(InterValObj); //停止计时器
InterValObj = null;
$(".Obtain").removeAttr("disabled"); //启用按钮
$(".Obtain").html("获取短信验证码");
} else {
curCount--;
$(".Obtain").html("重新获取" + curCount + "秒");
}
}
$(document).keyup(function(e) {
var code = e.keyCode;
if (code == 13)
{
register();
}
});
</script>

View File

@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head-product" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<!--top-->
<header class="header-PC header-Product">
<div id="header" class="theme-black">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
<!--top End-->
<!-- 新闻详情页 s -->
<div class="zhuce1">
<div class="w1200">
<ul class="w1000 zclist zclist1">
<li>
<p class="ts3">注册成功!请检查邮箱激活邮件...,如果没有收到邮件请注意查看拦截的邮件</p>
<p class="ts4">如果您查看拦截邮件还是没收到激活邮件请联系在线客服QQXXXX 工作时间09:00--18:00</p>
</li>
</ul>
</div>
</div>
<!-- 新闻详情页 e -->
<script type="text/javascript">
$(function() {
});
</script>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,341 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>软件驱动下载</title>
<meta name="Keywords" content="软件驱动、技术支持与故障排除、操作视频,驱动程序" />
<meta name="Description" content="软件驱动、技术支持与故障排除、操作视频,驱动程序" />
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/search.css">
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top-head2023" /}
</div>
</header>
<!--top End-->
<div class="Container">
<img src="/uploads/download/drive_ banner.jpg" class="drive_banner">
</div>
<?php if (isset($category['picture'])): ?>
<!-- 轮播 s -->
<div class="homeban">
<a href="<?php //echo url_rewrite('download', ['id' => $category['id']]); ?>"><img src="<?php echo getImage($category['picture']); ?>"/></a>
</div>
</div>
<!-- 轮播 e -->
<?php endif; ?>
<!-- 视频列表 s -->
<div class="down">
<div class="load">
<!-- <div class="hd">
<ul class="hdone">
<li><a href="<?php echo url('Download/index?id=1')?>">驱动下载</a></li>
<li><a href="<?php echo url('Download/catelists_down?id=3')?>" style="color:#009fe0;">说明书下载</a></li>
<li>Orico期刊</li>
<li>其他</li>
</ul>
<a class="prev"><img src="__PUBLIC__/web/images/bfl.png"></a>
<a class="next"><img src="__PUBLIC__/web/images/brh.png"></a>
</div>-->
<div class="S-search-bg nsea">
<div class="swt-Container S-search-content secon1">
<div class="S-Searchbox">
<div class="Search">
<input type="text" name="textfield" class="ipt" placeholder="输入关键字查找" id="search-input">
<div type="submit" name="button" value="" class="searchbtn icon-search" id="search-btnput"></div>
<!--<div id="search-btn" class="search_content search_default"
</div>>-->
</div>
</div>
</div>
</div>
<!-- title s
<div class="Download-title">软件驱动下载</div>-->
<div class="hd">
<ul class="hdone">
<li><a href="__ORICOROOT__/download.html" style="color:#009fe0;">驱动下载</a></li>
<li><a href="<?php echo url('Download/catelists_down?id=3')?>">说明书下载</a></li>
</ul>
<a class="prev"><img src="__PUBLIC__/web/images/bfl.png"></a>
<a class="next"><img src="__PUBLIC__/web/images/brh.png"></a>
</div>
<!-- title-->
<div class="Download-title">软件驱动下载</div>
<!-- title e -->
<div class="swt-Container bd">
<?php if ($list): ?>
<ul class="bdone">
<?php foreach ($list as $detail): ?>
<li>
<div class="loadfl">
<img src="<?php echo getImage($detail['picture']); ?>">
</div>
<div class="loadrh">
<div class="loada"><?php echo $detail['name']; ?></a></div>
<?php if ($detail['description']): ?>
<div class="load_destri"><?php echo msubstr($detail['description'], 0, 200); ?></div>
<?php endif; ?>
<div class="loadms1">适合型号:<?php echo $detail['app_model']; ?></div>
<div class="loadms2">支持系统:<?php echo $detail['support_os']; ?></div>
<div class="loadms3">
<?php
$downloadpath = explode(',', $detail['downloadpath']);
$downloadpath64 = explode(',', $detail['downloadpath64']);
foreach ($downloadpath as $k => $dl):
$dlname = empty($downloadpath64[$k]) ? '下载' : $downloadpath64[$k];
//$url=url('index/download/download', ['id' => $detail['id'], 'bit' => $k]);
?>
<a href="<?php echo trim($dl, '/'); ?>" data-cod="dl" data-id="<?php echo $detail['id']; ?>" target="_blank"><?php echo $dlname; ?></a>
<?php endforeach; ?>
</div>
</div>
<div class="clear"></div>
</li>
<?php endforeach; ?>
<!-- 分页 s -->
<div style="margin-top:60px"></div>
<?php
if ($page) {
echo $page;
}
?>
<!-- 分页 e -->
</ul>
<?php endif; ?>
<?php if ($downloadCategory): ?>
<ul class="bdtwo">
<?php foreach ($downloadCategory as $k => $dc): ?>
<li>
<p class="datatitle"><?php echo $dc['name']; ?></p>
<?php
$downloads = getDifferentDownload('ishot', 8, ['cid' => $dc['id']]);
if ($downloads):
?>
<dl>
<?php foreach ($downloads as $download): ?>
<dd>
<div class="datafl">
<img src="<?php echo getImage($download['picture']); ?>">
</div>
<div class="datarh">
<div class="datams1"><?php echo $download['name']; ?></div>
<div class="datams2"><?php echo msubstr($download['description'], 0, 200); ?></div>
<div class="datams3">格式:<?php echo $download['format']; ?></div>
<div class="datams4">
<?php
$downloadpath = explode(',', $download['downloadpath']);
$downloadpath64 = explode(',', $download['downloadpath64']);
foreach ($downloadpath as $k => $dl):
$dlname = empty($downloadpath64[$k]) ? '下载' : $downloadpath64[$k];
?>
<a href="<?php echo url('/') . trim($dl, '/'); ?>" data-cod="dl" data-id="<?php echo $dc['id']; ?>" target="_blank"><?php echo $dlname; ?></a>
<?php endforeach; ?>
</div>
</div>
</dd>
<?php endforeach; ?>
<div class="clear"></div>
</dl>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
<!-- Add Arrows -->
<script>
jQuery(".load .hd").slide({mainCell: "ul", autoPlay: false, effect: "left", vis: 8, scroll: 1, autoPage: false, prevCell: ".prev", nextCell: ".next"});
$(".load").slide({trigger: "click", defaultIndex: 0, });
$(function() {
$("#dl-search-btn").bind("click", function(event) {
var skeyword = $("#dl-search-in").val();
if (skeyword) {
var href = "<?php echo url('/dlsearch'); ?>?skeyword=" + encodeURIComponent(skeyword);
location.href = href;
}
});
$("#dl-search-in").keyup(function(event) {
if (event && event.keyCode == 13) {
$("#dl-search-btn").trigger("click");
}
});
$("[data-cod='dl']").click(function(event) {
var love = $(this), id = love.data("id"), dl = love.data("dl");
dl = typeof (dl) == 'undefined' ? 0 : dl;
if (dl < 10) {
$.ajax({
type: "POST",
dataType: "json",
url: "<?php echo url('/th/download/dlcount'); ?>",
data: {id: id},
cache: false, //不缓存此页面
success: function(data) {
//console.log(data);
love.data("dl", dl + 1);
}
});
} else {
event.preventDefault();
alert('您已下载过了!');
return false;
}
});
});
</script>
</div>
</div>
<!-- 视频列表 e -->
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>
<script type="text/javascript">
$(function() {
$.ajax({
url: '/index/download/get_filter',
type: 'post',
dataType: 'json',
success: function(res) {
var data = res.data.dl_name;
var html = '<ul>';
// data.forEach((item, index) => {
// html += '<li>';
// html += item.name;
// html += '</li>';
// });
var data_length = data.length;
for(var i=0;i<data_length;i++) {
if (i > 4)
break;
html += '<li>';
html += data[i].name;
html += '</li>';
}
html += '</ul>';
$('#search').html(html);
}
})
});
// NEW selector
jQuery.expr[':'].Contains = function(a, i, m) {
return jQuery(a).text().toUpperCase()
.indexOf(m[3].toUpperCase()) >= 0;
};
// OVERWRITES old selecor
jQuery.expr[':'].contains = function(a, i, m) {
return jQuery(a).text().toUpperCase()
.indexOf(m[3].toUpperCase()) >= 0;
};
//Update to work for jQuery 1.8
/*$.expr[":"].contains = $.expr.createPseudo(function(arg) {
return function( elem ) {
return $(elem).text().toUpperCase().indexOf(arg.toUpperCase()) >= 0;
};
});*/
$(function() {
var search_input = $(".Search input");
var search_content = $(".search_content");
$(search_input).on("keyup", function() {
if (search_input.val().length > 0) {
$(search_content).show().addClass("ul_add");
}
else if (search_input.val().length == 0) {
$(search_content).show().removeClass("ul_add");
}
//$(".search_content li:contains(" + search_input.val().trim() + ")").show();
//$(".search_content li:not(:contains(" + search_input.val().trim() + "))").hide();
$(".search_content li").hide().filter(":contains("+ search_input.val().toLowerCase().trim() +")").show();
});
});
$("#search ul li").live('click',function(){
//console.log(11111);
//获取点击的值
var keywords = $(this).text();
if(keywords) {
$('#search-input').val(keywords);
var href = "<?php echo url('/download'); ?>?skeyword=" + encodeURIComponent(keywords);
location.href = href;
$(".search_content").hide();
}
});
//点击search以外部分隐藏
/*$("body").click(function (e) {
if (!$(e.target).closest(".Search").length) {
$(".search_content").hide()
}
//console.log(111);
});*/
</script>
<script type="text/javascript">
/*定位光标*/
document.querySelector('#search-input').focus();
$(function() {
//
$("#search-btnput").bind("click", function(event) {
var skeyword = $("#search-input").val();
if (skeyword) {
var href = "<?php echo url('/download'); ?>?skeyword=" + encodeURIComponent(skeyword);
location.href = href;
}
});
$("#search-input").keyup(function(event) {
if (event && event.keyCode === 13) {
$("#search-btnput").trigger("click");
}
});
var $category = $(".navlist");
$category.hide();
$(".navul li").mouseleave(function() {
$(this).children("a").addClass("aons");
$(this).children("dl").stop(true, true).slideUp(500);
});
$(".navul li").mouseenter(function() {
$category.hide();
$(this).children("dl").stop(true, true).slideDown(500);
});
//搜索框
$(".Searchbox .icon").click(function() {
$(".Search").slideToggle();
});
});
</script>
<style>
.drive_banner{
width: 100%;
}
#search-btnput{
right: 8% !important;
}
</style>

View File

@@ -0,0 +1,144 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>驱动下载</title>
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/subject/software.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/montserrat.css">
</head>
<body class="bg-gray">
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top-head2023" /}
</div>
</header>
{include file="include/top-header-mobile" /}
<!--内容-->
<!--banner-->
<div class="Swt-Banner position-r">
<img src="__PUBLIC__/weben/images/software/banner_01.png" alt="" />
<div class="banner_title">软件和驱动程序</div>
</div>
<!--banner-->
<div class="contact_c">
<!--搜索-->
<div class="search_all">
<input type="text" name="textfield" placeholder="搜索型号" id="search_software">
<div class="searchbtn" id="search-btn"><img src="__PUBLIC__/weben/images/software/search.png"></div>
</div>
<!--搜索-->
<!--tab切换-->
<div class="tab">
<a href="__ORICOROOT__/download.html" class="list on">软件驱动</a>
<a href="<?php echo url('download/catelists_down?id=3')?>" class="list">手册</a>
<a href="__ORICOROOT__/video/category/1.html" class="list">视频</a>
</div>
<!--tab切换-->
<div class="boxs">
<!--Software Drives-->
<div class="software">
<?php if($list):?>
<?php foreach ($list as $detail): ?>
<div class="list">
<div class="left_img"><img src="<?php echo getImage($detail['picture']); ?>" alt="" /></div>
<div>
<p class="title"><?php echo $detail['name']; ?></p>
<p class="sub_title">支持型号: </p>
<p class="des"><?php echo $detail['app_model']; ?></p>
<p class="sub_title">支持的系统: </p>
<p class="des"><?php echo $detail['support_os']; ?></p>
<p>
<?php
$downloadpath = explode(',', $detail['downloadpath']);
$downloadpath64 = explode(',', $detail['downloadpath64']);
foreach ($downloadpath as $k => $dl):
$dlname = empty($downloadpath64[$k]) ? '下载' : $downloadpath64[$k];
//$url=url('index/download/download', ['id' => $detail['id'], 'bit' => $k]);
?>
<a href="<?php echo trim($dl, '/'); ?>" class="l_button" data-cod="dl" data-id="<?php echo $detail['id']; ?>" target="_blank"><?php echo $dlname; ?></a>
<?php endforeach; ?>
</p>
</div>
</div>
<?php endforeach; ?>
<?php else:?>
<div class="list clearfix">查询无此驱动!</div>
<?php endif;?>
</div>
<!--Software Drives-->
<!-- 分页 s -->
<?php
if ($page) {
echo $page;
}
?>
<!-- 分页 e -->
<!--Manual-->
<!--video-->
<!--video-->
</div>
</div>
<!--内容 -->
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>
<script type="text/javascript">
/*定位光标*/
document.querySelector('#search_software').focus();
$(function() {
//
$("#search-btn").bind("click", function(event) {
console.log(111111)
var skeyword = $("#search_software").val();
console.log(skeyword)
if (skeyword) {
var href = "<?php echo url('/download'); ?>?skeyword=" + encodeURIComponent(skeyword);
location.href = href;
}
else{
var href = "__ORICOROOT__/download.html";
location.href = href;
}
});
$("#search_software").keyup(function(event) {
if (event && event.keyCode === 13) {
$("#search-btn").trigger("click");
}
});
var $category = $(".navlist");
$category.hide();
$(".navul li").mouseleave(function() {
$(this).children("a").addClass("aons");
$(this).children("dl").stop(true, true).slideUp(500);
});
$(".navul li").mouseenter(function() {
$category.hide();
$(this).children("dl").stop(true, true).slideDown(500);
});
//搜索框
$(".Searchbox .icon").click(function() {
$(".Search").slideToggle();
});
});
</script>
<style>
.list .des {
word-break: break-all;
}
</style>

View File

@@ -0,0 +1,238 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>软件驱动下载</title>
<meta name="Keywords" content="软件驱动、技术支持与故障排除、操作视频,驱动程序" />
<meta name="Description" content="软件驱动、技术支持与故障排除、操作视频,驱动程序" />
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/search.css">
<script type="text/javascript">
var navID = "1";
</script>
</head>
<style>
.loadms3{margin-top:1vw;}
/*说明书下载*/
.bdone{width:60%; margin:auto;}
.down_2{width:5%; float: right; margin-right: 5%; padding-top:2%;}
.load .bd .bdone li .loadrh{width:80%;}
</style>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top-head2023" /}
</div>
</header> <!--top End-->
<div class="Container">
<img src="/uploads/download/drive_ banner.jpg" class="drive_banner">
</div>
<!-- 视频列表 s -->
<div class="down">
<div class="load">
<div class="S-search-bg nsea">
<div class="swt-Container S-search-content secon1">
<div class="S-Searchbox">
<div class="Search">
<input type="text" name="textfield" class="ipt" placeholder="输入关键字查找" id="search-input">
<button type="submit" name="button" value="" class="searchbtn icon-search" id="search-btnput"></button>
<div id="search" class="search_content search_default">
</div>
</div>
<!--<div class="sput">
<input value="dfdff" placeholder="站内搜索" id="search-input" type="text">
<a href="javascript:void(0);" id="search-button"><img src="/frontend/web/images/images/sea1.png"></a>
</div>-->
</div>
</div>
</div>
<div class="hd">
<ul class="hdone">
<li><a href="__ORICOROOT__/download.html">驱动下载</a></li>
<li><a href="<?php echo url('Download/catelists_down?id=3')?>" style="color:#009fe0;">说明书下载</a></li>
</ul>
<a class="prev"><img src="__PUBLIC__/web/images/bfl.png"></a>
<a class="next"><img src="__PUBLIC__/web/images/brh.png"></a>
</div>
<!-- title s -->
<div class="Download-title">说明书下载</div>
<!-- title e -->
<div class="swt-Container bd">
<?php if (sizeof($list)): ?>
<ul class="bdone">
<?php foreach ($list as $detail): ?>
<li>
<div class="loadrh">
<div class="loada"><a href="<?php //echo url_rewrite('downloaddetail', array('id' => $detail['id'])); ?>"><?php echo $detail['name']; ?></a></div>
<div class="load_destri"></div>
<div><?php echo msubstr($detail['description'], 0, 200); ?></div>
<div class="loadms1">适合型号:<?php echo $detail['app_model']; ?></div>
<!-- <div class="loadms2">支持系统:<?php echo $detail['support_os']; ?></div>-->
<div class="loadms3">
<?php
$downloadpath = explode(',', $detail['downloadpath']);
$downloadpath64 = explode(',', $detail['downloadpath64']);
foreach ($downloadpath as $k => $dl):
$dlname = empty($downloadpath64[$k]) ? '下载' : $downloadpath64[$k];
//$url=url('index/download/download', ['id' => $detail['id'], 'bit' => $k]);
?>
<a href="<?php echo url('/') . trim($dl, '/'); ?>" data-cod="dl" data-id="<?php echo $detail['id']; ?>" target="_blank"><?php echo $dlname; ?></a>
<?php endforeach; ?>
</div>
</div>
<div class="img-responsive down_2">
<!--<img src="<?php echo getImage($detail['picture']); ?>">-->
<img src="__PUBLIC__/web/images/home/down.png">
</div>
<div class="clear"></div>
</li>
<?php endforeach; ?>
<!-- 分页 s -->
<div style="margin-top:60px"></div>
<?php
if ($page) {
echo $page;
}
?>
<!-- 分页 e -->
</ul>
<?php endif; ?>
<?php if ($downloadCategory): ?>
<ul class="bdtwo">
<?php foreach ($downloadCategory as $k => $dc): ?>
<li>
<p class="datatitle"><?php echo $dc['name']; ?></p>
<?php
$downloads = getDifferentDownload('ishot', 8, ['cid' => $dc['id']]);
if ($downloads):
?>
<dl>
<?php foreach ($downloads as $download): ?>
<dd>
<div class="datafl">
<img src="<?php echo getImage($download['picture']); ?>">
</div>
<div class="datarh">
<div class="datams1"><?php echo $download['name']; ?></div>
<!--<div class="datams2"><?php echo msubstr($download['description'], 0, 200); ?></div>-->
<div class="datams3">格式:<?php echo $download['format']; ?></div>
<div class="datams4">
<?php
$downloadpath = explode(',', $download['downloadpath']);
$downloadpath64 = explode(',', $download['downloadpath64']);
foreach ($downloadpath as $k => $dl):
$dlname = empty($downloadpath64[$k]) ? '下载' : $downloadpath64[$k];
?>
<a href="<?php echo url('/') . trim($dl, '/'); ?>" data-cod="dl" data-id="<?php echo $dc['id']; ?>" target="_blank"><?php echo $dlname; ?></a>
<?php endforeach; ?>
</div>
</div>
</dd>
<?php endforeach; ?>
<div class="clear"></div>
</dl>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
<!-- Add Arrows -->
<script>
jQuery(".load .hd").slide({mainCell: "ul", autoPlay: false, effect: "left", vis: 8, scroll: 1, autoPage: false, prevCell: ".prev", nextCell: ".next"});
$(".load").slide({trigger: "click", defaultIndex: 0, });
$(function() {
$("#dl-search-btn").bind("click", function(event) {
var skeyword = $("#dl-search-in").val();
if (skeyword) {
var href = "<?php echo url('/dlsearch'); ?>?skeyword=" + encodeURIComponent(skeyword);
location.href = href;
}
});
$("#dl-search-in").keyup(function(event) {
if (event && event.keyCode == 13) {
$("#dl-search-btn").trigger("click");
}
});
$("[data-cod='dl']").click(function(event) {
var love = $(this), id = love.data("id"), dl = love.data("dl");
dl = typeof (dl) == 'undefined' ? 0 : dl;
if (dl < 10) {
$.ajax({
type: "POST",
dataType: "json",
url: "<?php echo url('/index/download/dlcount'); ?>",
data: {id: id},
cache: false, //不缓存此页面
success: function(data) {
//console.log(data);
love.data("dl", dl + 1);
}
});
} else {
event.preventDefault();
alert('您已下载过了!');
return false;
}
});
});
</script>
</div>
</div>
<!-- 视频列表 e -->
<script type="text/javascript">
/*定位光标*/
document.querySelector('#search-in').focus();
$(function() {
//
$("#search-btnput").bind("click", function(event) {
var skeyword = $("#search-input").val();
if (skeyword) {
var href = "<?php echo url('Download/catelists_down?id=3')?>?skeyword=" + encodeURIComponent(skeyword);
location.href = href;
}
});
$("#search-input").keyup(function(event) {
if (event && event.keyCode === 13) {
$("#search-btnput").trigger("click");
}
});
var $category = $(".navlist");
$category.hide();
$(".navul li").mouseleave(function() {
$(this).children("a").addClass("aons");
$(this).children("dl").stop(true, true).slideUp(500);
});
$(".navul li").mouseenter(function() {
$category.hide();
$(this).children("dl").stop(true, true).slideDown(500);
});
//搜索框
$(".Searchbox .icon").click(function() {
$(".Search").slideToggle();
});
});
</script>
<style>
#search-btnput{
right: 8% !important;
}
</style>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,136 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>手册</title>
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/subject/software.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/montserrat.css">
</head>
<body class="bg-gray">
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top-head2023" /}
</div>
</header>
{include file="include/top-header-mobile" /}
<!--内容-->
<!--banner-->
<div class="Swt-Banner position-r">
<img src="__PUBLIC__/weben/images/software/banner_01.png" alt="" />
<div class="banner_title">软件和驱动程序</div>
</div>
<!--banner-->
<div class="contact_c">
<!--搜索-->
<div class="search_all">
<input type="text" name="textfield" placeholder="搜索型号" id="search_software">
<div class="searchbtn" id="search-btn"><img src="__PUBLIC__/weben/images/software/search.png"></div>
</div>
<!--搜索-->
<!--tab切换-->
<div class="tab">
<a href="__ORICOROOT__/download.html" class="list">软件驱动</a>
<a href="<?php echo url('__ORICOROOT__/download/catelists_down?id=3')?>" class="list on">手册</a>
<a href="__ORICOROOT__/video/category/1.html" class="list">视频</a>
</div>
<!--tab切换-->
<!--Manual-->
<div class="manual">
<?php if ($list): ?>
<?php foreach ($list as $detail): ?>
<div class="list">
<div class="left_img">
<?php if($detail['picture']):?>
<img src="<?php echo $detail['picture']; ?>" alt="" />
<?php else:?>
<img src="__PUBLIC__/weben/images/software/manual.png" alt="" />
<?php endif;?>
</div>
<div>
<p class="title"><?php echo $detail['name']; ?></p>
<p class="m-t-24">
<span class="sub_title">支持的型号: </span>
<span class="des"><?php echo $detail['app_model']; ?></span>
</p>
<p>
<?php
$downloadpath = explode(',', $detail['downloadpath']);
$downloadpath64 = explode(',', $detail['downloadpath64']);
foreach ($downloadpath as $k => $dl):
$dlname = empty($downloadpath64[$k]) ? '下载' : $downloadpath64[$k];
//$url=url('index/download/download', ['id' => $detail['id'], 'bit' => $k]);
?>
<a class="l_button" href="<?php echo url('/') . trim($dl, '/'); ?>" data-cod="dl" data-id="<?php echo $detail['id']; ?>" target="_blank"><?php echo $dlname; ?></a>
<?php endforeach; ?>
</p>
</div>
</div>
<?php endforeach; ?>
<?php else: ?>
<div class="list">查询无结果</div>
<?php endif; ?>
<!--Manual-->
</div>
<!-- 分页 s -->
<?php
if ($page) {
echo $page;
}
?>
<!-- 分页 e -->
</div>
<!--内容 -->
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>
<script type="text/javascript">
$(function() {
//
$("#search-btn").bind("click", function(event) {
var skeyword = $("#search_software").val();
if (skeyword) {
var href = "<?php echo url('Download/catelists_down?id=3')?>?skeyword=" + encodeURIComponent(skeyword);
location.href = href;
}
else{
var href = "<?php echo url('Download/catelists_down?id=3')?>";
location.href = href;
}
});
$("#search_software").keyup(function(event) {
if (event && event.keyCode === 13) {
$("#search-btn").trigger("click");
}
});
var $category = $(".navlist");
$category.hide();
$(".navul li").mouseleave(function() {
$(this).children("a").addClass("aons");
$(this).children("dl").stop(true, true).slideUp(500);
});
$(".navul li").mouseenter(function() {
$category.hide();
$(this).children("dl").stop(true, true).slideDown(500);
});
});
</script>

View File

@@ -0,0 +1,49 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<!--top-->
<header class="header-PC header-Product">
<div id="header" class="theme-white">
{include file="include/top-header2023" /}
</div>
</header>
<!--top End-->
<!-- 视频播放页 s -->
<div class="play">
<div class="playv">
<div class="plvimg">
<video width="100%" height="auto" controls poster="<?php echo $detail['picture']; ?>">
<source src="<?php echo $detail['videopath']; ?>">
您的浏览器不支持 video 标签。
Your browser does not support HTML5 video.
</video>
</div>
</div>
<div class="playt">
<div class="plcon">
<div class="vtext">
<p class="tl1"><?php echo $detail['name']; ?><i><img src="__PUBLIC__/web/images/dot1.png"></i></p>
<p class="date">发布日期:<?php echo date('Y-m-d', $detail['createtime']); ?></p>
<p class="tl2"></p>
</div>
<div class="pltext">
<?php echo $detail['content']; ?>
</div>
</div>
</div>
</div>
<!-- 视频播放页 e -->
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<!--top-->
{include file="include/top-head2023" /}
<!--top End-->
<!-- 视频播放页 s -->
<div class="play">
<div class="playv">
<div class="plvimg">
<video width="100%" height="auto" controls poster="<?php echo $detail['picture']; ?>">
<source src="<?php echo $detail['videopath']; ?>">
您的浏览器不支持 video 标签。
Your browser does not support HTML5 video.
</video>
</div>
</div>
<div class="playt">
<div class="plcon">
<div class="vtext">
<p class="tl1"><?php echo $detail['name']; ?><i><img src="__PUBLIC__/web/images/dot1.png"></i></p>
<p class="date">发布日期:<?php echo date('Y-m-d', $detail['createtime']); ?></p>
<p class="tl2"></p>
</div>
<div class="pltext">
<?php echo $detail['content']; ?>
</div>
</div>
</div>
</div>
<!-- 视频播放页 e -->
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,131 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>软件驱动下载</title>
<meta name="Keywords" content="软件驱动、技术支持与故障排除、操作视频,驱动程序" />
<meta name="Description" content="软件驱动、技术支持与故障排除、操作视频,驱动程序" />
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-black">
{include file="include/top-header2023" /}
</div>
</header>
<!--top End-->
<!-- 视频列表 s -->
<div class="down">
<div class="load">
<div class="hd">
<a class="prev"><img src="__PUBLIC__/web/images/bfl.png"></a>
<a class="next"><img src="__PUBLIC__/web/images/brh.png"></a>
</div>
<!-- title s -->
<div class="Download-title" style="padding-top: 50px;">软件驱动下载</div>
<!-- title e -->
<div class="swt-Container bd">
<ul class="bdone">
<li>
<div class="loadfl">
<img src="<?php echo getImage($view['picture']); ?>">
</div>
<div class="loadrh">
<div class="loada"><a
href="<?php //echo url_rewrite('downloaddetail', array('id' => $detail['id'])); ?>"><?php echo $view['name']; ?></a>
</div>
<div class="load_destri"><?php echo msubstr($view['description'], 0, 200); ?></div>
<div class="loadms1">适合型号:<?php echo $view['app_model']; ?></div>
<div class="loadms2">支持系统:<?php echo $view['support_os']; ?></div>
<div class="loadms3">
<?php
$downloadpath = explode(',', $view['downloadpath']);
$downloadpath64 = explode(',', $view['downloadpath64']);
// tiaoshi($downloadpath);die;
foreach ($downloadpath as $k => $dl):
$dlname = empty($downloadpath64[$k]) ? '下载' : $downloadpath64[$k];
// echo trim($dl, '/');die;
//$url=url('index/download/download', ['id' => $detail['id'], 'bit' => $k]);
?>
<a id="dl-search-btn" href="<?php echo trim($dl, '/'); ?>"
data-cod="dl" data-id="<?php echo $view['id']; ?>"
target="_blank"><?php echo $dlname; ?></a>
<?php endforeach; ?>
</div>
</div>
<div class="clear"></div>
</li>
<!-- 分页 s -->
<div style="margin-top:60px"></div>
</ul>
</div>
<!-- Add Arrows -->
<script>
jQuery(".load .hd").slide({
mainCell: "ul",
autoPlay: false,
effect: "left",
vis: 8,
scroll: 1,
autoPage: false,
prevCell: ".prev",
nextCell: ".next"
});
$(".load").slide({trigger: "click", defaultIndex: 0,});
$(function () {
$("#dl-search-btn").bind("click", function (event) {
var skeyword = $("#dl-search-in").val();
if (skeyword) {
var href = "<?php echo url('/dlsearch'); ?>?skeyword=" + encodeURIComponent(skeyword);
location.href = href;
}
});
$("#dl-search-in").keyup(function (event) {
if (event && event.keyCode == 13) {
$("#dl-search-btn").trigger("click");
}
});
$("[data-cod='dl']").click(function (event) {
var love = $(this), id = love.data("id"), dl = love.data("dl");
dl = typeof (dl) == 'undefined' ? 0 : dl;
if (dl < 10) {
$.ajax({
type: "POST",
dataType: "json",
url: "<?php echo url('/index/download/dlcount'); ?>",
data: {id: id},
cache: false, //不缓存此页面
success: function (data) {
//console.log(data);
love.data("dl", dl + 1);
}
});
} else {
event.preventDefault();
alert('您已下载过了!');
return false;
}
});
});
</script>
</div>
</div>
<!-- 视频列表 e -->
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,131 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>软件驱动下载</title>
<meta name="Keywords" content="软件驱动、技术支持与故障排除、操作视频,驱动程序" />
<meta name="Description" content="软件驱动、技术支持与故障排除、操作视频,驱动程序" />
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-black">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
<!--top End-->
<!-- 视频列表 s -->
<div class="down">
<div class="load">
<div class="hd">
<a class="prev"><img src="__PUBLIC__/web/images/bfl.png"></a>
<a class="next"><img src="__PUBLIC__/web/images/brh.png"></a>
</div>
<!-- title s -->
<div class="Download-title" style="padding-top: 50px;">软件驱动下载</div>
<!-- title e -->
<div class="swt-Container bd">
<ul class="bdone">
<li>
<div class="loadfl">
<img src="<?php echo getImage($view['picture']); ?>">
</div>
<div class="loadrh">
<div class="loada"><a
href="<?php //echo url_rewrite('downloaddetail', array('id' => $detail['id'])); ?>"><?php echo $view['name']; ?></a>
</div>
<div class="load_destri"><?php echo msubstr($view['description'], 0, 200); ?></div>
<div class="loadms1">适合型号:<?php echo $view['app_model']; ?></div>
<div class="loadms2">支持系统:<?php echo $view['support_os']; ?></div>
<div class="loadms3">
<?php
$downloadpath = explode(',', $view['downloadpath']);
$downloadpath64 = explode(',', $view['downloadpath64']);
// tiaoshi($downloadpath);die;
foreach ($downloadpath as $k => $dl):
$dlname = empty($downloadpath64[$k]) ? '下载' : $downloadpath64[$k];
// echo trim($dl, '/');die;
//$url=url('index/download/download', ['id' => $detail['id'], 'bit' => $k]);
?>
<a id="dl-search-btn" href="<?php echo trim($dl, '/'); ?>"
data-cod="dl" data-id="<?php echo $view['id']; ?>"
target="_blank"><?php echo $dlname; ?></a>
<?php endforeach; ?>
</div>
</div>
<div class="clear"></div>
</li>
<!-- 分页 s -->
<div style="margin-top:60px"></div>
</ul>
</div>
<!-- Add Arrows -->
<script>
jQuery(".load .hd").slide({
mainCell: "ul",
autoPlay: false,
effect: "left",
vis: 8,
scroll: 1,
autoPage: false,
prevCell: ".prev",
nextCell: ".next"
});
$(".load").slide({trigger: "click", defaultIndex: 0,});
$(function () {
$("#dl-search-btn").bind("click", function (event) {
var skeyword = $("#dl-search-in").val();
if (skeyword) {
var href = "<?php echo url('/dlsearch'); ?>?skeyword=" + encodeURIComponent(skeyword);
location.href = href;
}
});
$("#dl-search-in").keyup(function (event) {
if (event && event.keyCode == 13) {
$("#dl-search-btn").trigger("click");
}
});
$("[data-cod='dl']").click(function (event) {
var love = $(this), id = love.data("id"), dl = love.data("dl");
dl = typeof (dl) == 'undefined' ? 0 : dl;
if (dl < 10) {
$.ajax({
type: "POST",
dataType: "json",
url: "<?php echo url('/index/download/dlcount'); ?>",
data: {id: id},
cache: false, //不缓存此页面
success: function (data) {
//console.log(data);
love.data("dl", dl + 1);
}
});
} else {
event.preventDefault();
alert('您已下载过了!');
return false;
}
});
});
</script>
</div>
</div>
<!-- 视频列表 e -->
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,183 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>软件驱动下载</title>
<meta name="Keywords" content="软件驱动、技术支持与故障排除、操作视频,驱动程序" />
<meta name="Description" content="软件驱动、技术支持与故障排除、操作视频,驱动程序" />
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-black">
{include file="include/top-header2023" /}
</div>
</header>
<!--top End-->
<!--<?php if ($category['picture']): ?>-->
<!-- 轮播 s -->
<div class="homeban">
<a href="<?php //echo url_rewrite('download', ['id' => $category['id']]); ?>"><img src="<?php echo getImage($category['picture']); ?>"/></a>
<!-- 搜索框 s
<div class="lsea">
<input id="dl-search-in" type="text" value="<?php echo $skeyword; ?>" name="skeyword" placeholder="输入关键字查找">
<a id="dl-search-btn" href="#"></a>
</div>-->
<!-- 搜索框 e -->
</div>
</div>
<!-- 轮播 e -->
<!--<?php endif; ?>-->
<!-- 视频列表 s -->
<div class="down">
<div class="load">
<div class="hd">
<ul class="hdone">
<li>驱动下载</li>
<li><a href="<?php echo url('Download/catelists_down?id=3')?>">说明书下载</a></li>
<li>Orico期刊</li>
<li>其他</li>
</ul>
<a class="prev"><img src="__PUBLIC__/web/images/bfl.png"></a>
<a class="next"><img src="__PUBLIC__/web/images/brh.png"></a>
</div>
<!-- title s -->
<div class="Download-title">软件驱动下载</div>
<!-- title e -->
<div class="swt-Container bd">
<?php if ($list): ?>
<ul class="bdone">
<?php foreach ($list as $detail): ?>
<li>
<div class="loadfl">
<img src="<?php echo getImage($detail['picture']); ?>">
</div>
<div class="loadrh">
<div class="loada"><a href="<?php //echo url_rewrite('downloaddetail', array('id' => $detail['id'])); ?>"><?php echo $detail['name']; ?></a></div>
<div class="load_destri"><?php echo msubstr($detail['description'], 0, 200); ?></div>
<div class="loadms1">适合型号:<?php echo $detail['app_model']; ?></div>
<div class="loadms2">支持系统:<?php echo $detail['support_os']; ?></div>
<div class="loadms3">
<?php
$downloadpath = explode(',', $detail['downloadpath']);
$downloadpath64 = explode(',', $detail['downloadpath64']);
foreach ($downloadpath as $k => $dl):
$dlname = empty($downloadpath64[$k]) ? '下载' : $downloadpath64[$k];
//$url=url('index/download/download', ['id' => $detail['id'], 'bit' => $k]);
?>
<a id="dl-search-btn" href="<?php echo url('/') . trim($dl, '/'); ?>" data-cod="dl" data-id="<?php echo $detail['id']; ?>"><?php echo $dlname; ?></a>
<?php endforeach; ?>
</div>
</div>
<div class="clear"></div>
</li>
<?php endforeach; ?>
<!-- 分页 s -->
<div style="margin-top:60px"></div>
<?php
if ($page) {
echo $page;
}
?>
<!-- 分页 e -->
</ul>
<?php endif; ?>
<?php if ($downloadCategory): ?>
<ul class="bdtwo">
<?php foreach ($downloadCategory as $k => $dc): ?>
<li>
<p class="datatitle"><?php echo $dc['name']; ?></p>
<?php
$downloads = getDifferentDownload('ishot', 8, ['cid' => $dc['id']]);
if ($downloads):
?>
<dl>
<?php foreach ($downloads as $download): ?>
<dd>
<div class="datafl">
<img src="<?php echo getImage($download['picture']); ?>">
</div>
<div class="datarh">
<div class="datams1"><?php echo $download['name']; ?></div>
<div class="datams2"><?php echo msubstr($download['description'], 0, 200); ?></div>
<div class="datams3">格式:<?php echo $download['format']; ?></div>
<div class="datams4">
<?php
$downloadpath = explode(',', $download['downloadpath']);
$downloadpath64 = explode(',', $download['downloadpath64']);
foreach ($downloadpath as $k => $dl):
$dlname = empty($downloadpath64[$k]) ? '下载' : $downloadpath64[$k];
?>
<a id="dl-search-btn" href="<?php echo url('/') . trim($dl, '/'); ?>" data-cod="dl" data-id="<?php echo $detail['id']; ?>"><?php echo $dlname; ?></a>
<?php endforeach; ?>
</div>
</div>
</dd>
<?php endforeach; ?>
<div class="clear"></div>
</dl>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
<!-- Add Arrows -->
<script>
jQuery(".load .hd").slide({mainCell: "ul", autoPlay: false, effect: "left", vis: 8, scroll: 1, autoPage: false, prevCell: ".prev", nextCell: ".next"});
$(".load").slide({trigger: "click", defaultIndex: 0, });
$(function() {
$("#dl-search-btn").bind("click", function(event) {
var skeyword = $("#dl-search-in").val();
if (skeyword) {
var href = "<?php echo url('/dlsearch'); ?>?skeyword=" + encodeURIComponent(skeyword);
window.location.href = href;
}
});
$("#dl-search-in").keyup(function(event) {
if (event && event.keyCode == 13) {
$("#dl-search-btn").trigger("click");
}
});
$("[data-cod='dl']").click(function(event) {
var love = $(this), id = love.data("id"), dl = love.data("dl");
dl = typeof (dl) == 'undefined' ? 0 : dl;
if (dl < 10) {
$.ajax({
type: "POST",
dataType: "json",
url: "<?php echo url('/index/download/dlcount'); ?>",
data: {id: id},
cache: false, //不缓存此页面
success: function(data) {
//console.log(data);
love.data("dl", dl + 1);
}
});
} else {
event.preventDefault();
alert('您已下载过了!');
return false;
}
});
});
</script>
</div>
</div>
<!-- 视频列表 e -->
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,190 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<!--top-->
{include file="include/top-head2023" /}
<!--top End-->
<?php if ($category['picture']): ?>
<!-- 轮播 s -->
<div class="homeban">
<a href="<?php //echo url_rewrite('download', ['id' => $category['id']]); ?>"><img src="<?php echo getImage($category['picture']); ?>"/></a>
<!-- 搜索框 s
<div class="lsea">
<input id="dl-search-in" type="text" value="<?php echo $skeyword; ?>" name="skeyword" placeholder="输入关键字查找">
<a id="dl-search-btn" href="#"></a>
</div>-->
<!-- 搜索框 e -->
</div>
</div>
<!-- 轮播 e -->
<?php endif; ?>
<!-- 视频列表 s -->
<div class="down">
<div class="load">
<div class="hd">
<ul class="hdone">
<li>驱动下载</li>
<li><a href="<?php echo url('/Download/catelists_down?id=3')?>">说明书下载</a></li>
<li>Orico期刊</li>
<li>其他</li>
</ul>
<a class="prev"><img src="__PUBLIC__/web/images/bfl.png"></a>
<a class="next"><img src="__PUBLIC__/web/images/brh.png"></a>
</div>
<!-- title s -->
<div class="Download-title">软件驱动下载</div>
<!-- title e -->
<div class="w1440 bd">
<?php if ($list): ?>
<ul class="bdone">
<?php foreach ($list as $detail): ?>
<li>
<div class="loadfl">
<img src="<?php echo getImage($detail['picture']); ?>">
</div>
<div class="loadrh">
<div class="loada"><a href="<?php //echo url_rewrite('downloaddetail', array('id' => $detail['id'])); ?>"><?php echo $detail['name']; ?></a></div>
<div class="load_destri"><?php echo msubstr($detail['description'], 0, 200); ?></div>
<div class="loadms1">适合型号:<?php echo $detail['app_model']; ?></div>
<div class="loadms2">支持系统:<?php echo $detail['support_os']; ?></div>
<div class="loadms3">
<?php
$downloadpath = explode(',', $detail['downloadpath']);
$downloadpath64 = explode(',', $detail['downloadpath64']);
foreach ($downloadpath as $k => $dl):
$dlname = empty($downloadpath64[$k]) ? '下载' : $downloadpath64[$k];
//$url=url('index/download/download', ['id' => $detail['id'], 'bit' => $k]);
?>
<a href="<?php echo url('/') . trim($dl, '/'); ?>" data-cod="dl" data-id="<?php echo $detail['id']; ?>" target="_blank"><?php echo $dlname; ?></a>
<?php endforeach; ?>
</div>
</div>
<div class="clear"></div>
</li>
<?php endforeach; ?>
<!-- 分页 s -->
<div style="margin-top:60px"></div>
<?php
if ($page) {
echo $page;
}
?>
<!-- 分页 e -->
</ul>
<?php endif; ?>
<?php if ($downloadCategory): ?>
<ul class="bdtwo">
<?php foreach ($downloadCategory as $k => $dc): ?>
<li>
<p class="datatitle"><?php echo $dc['name']; ?></p>
<?php
$downloads = getDifferentDownload('ishot', 8, ['cid' => $dc['id']]);
if ($downloads):
?>
<dl>
<?php foreach ($downloads as $download): ?>
<dd>
<div class="datafl">
<img src="<?php echo getImage($download['picture']); ?>">
</div>
<div class="datarh">
<div class="datams1"><?php echo $download['name']; ?></div>
<div class="datams2"><?php echo msubstr($download['description'], 0, 200); ?></div>
<div class="datams3">格式:<?php echo $download['format']; ?></div>
<div class="datams4">
<?php
$downloadpath = explode(',', $download['downloadpath']);
$downloadpath64 = explode(',', $download['downloadpath64']);
foreach ($downloadpath as $k => $dl):
$dlname = empty($downloadpath64[$k]) ? '下载' : $downloadpath64[$k];
?>
<a href="<?php echo url('/') . trim($dl, '/'); ?>" data-cod="dl" data-id="<?php echo $detail['id']; ?>" target="_blank"><?php echo $dlname; ?></a>
<?php endforeach; ?>
</div>
</div>
</dd>
<?php endforeach; ?>
<div class="clear"></div>
</dl>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
<!-- Add Arrows -->
<script>
jQuery(".load .hd").slide({mainCell: "ul", autoPlay: false, effect: "left", vis: 8, scroll: 1, autoPage: false, prevCell: ".prev", nextCell: ".next"});
$(".load").slide({trigger: "click", defaultIndex: 0, });
$(function() {
$("#dl-search-btn").bind("click", function(event) {
var skeyword = $("#dl-search-in").val();
if (skeyword) {
var href = "<?php echo url('/dlsearch'); ?>?skeyword=" + encodeURIComponent(skeyword);
location.href = href;
}
});
$("#dl-search-in").keyup(function(event) {
if (event && event.keyCode == 13) {
$("#dl-search-btn").trigger("click");
}
});
$("[data-cod='dl']").click(function(event) {
var love = $(this), id = love.data("id"), dl = love.data("dl");
dl = typeof (dl) == 'undefined' ? 0 : dl;
if (dl < 10) {
$.ajax({
type: "POST",
dataType: "json",
url: "<?php echo url('/download/dlcount'); ?>",
data: {id: id},
cache: false, //不缓存此页面
success: function(data) {
//console.log(data);
love.data("dl", dl + 1);
}
});
} else {
event.preventDefault();
alert('您已下载过了!');
return false;
}
});
});
</script>
</div>
</div>
<!-- 视频列表 e -->
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
<style>
.software .list .des, .manual .list .des {
line-height: 20px;
margin-top: 8px;
font-size: 16px;
max-width: 400px;
overflow: hidden;
}
.list .des {
word-break: break-all;
}
</style>
</html>

View File

@@ -0,0 +1,75 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>防伪码查询结果</title>
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/Anti-Fake.css">
</head>
<body class="bg-gray">
<!--top-->
<header class="header-PC header-Product">
<div id="header" class="theme-black">
{include file="include/top-header2023" /}
</div>
</header>
{include file="include/top-header-mobile" /}
<div class="indexbox-product">
<div class="swt-Container overflow-f">
<div class="product_address "><a href="__ORICOROOT__" class="f-black">首页</a><span class="icon-arrow arrow_address"></span><a href="__ORICOROOT__/index/fake">验证服务</a><span class="icon-arrow arrow_address"></span>真伪信息查询</div>
<div class="bg-white overflow-f text-c font-11 f_blue f_weight_600 fw_result_title ">防伪码{$data.fake}查询结果</div>
<?php if($data['result']==1){?>
<?php if($data['chicktime']!=date("Y-m-d H:i:s")){?>
<div class="bg-white overflow-f text-l font-11 f-black fw_result_title"><div class="fw_l">尊敬的用户您好:<br>{$data.made_up_articles_name}产品防伪码已查询过,查询时间:{$data.chicktime}。谨防假冒!如有疑问请拨打服务热线 400-6696-298查问咨询。
</div></div>
<?php }else{?>
<div class="bg-white overflow-f text-l font-11 f-black fw_result_title"><div class="fw_l">尊敬的用户您好:您查询的产品:{$data.made_up_articles_name}为ORICO正品感谢您的使用谢谢 </div></div>
<?php }?>
<div class="bg-white overflow-f" style="margin-bottom: 4vw;">
<div class="fw_result">
<div class="f-black font-11 f-black">产品信息</div>
<ul>
<li>
<div class="left img-responsive"><img src="https://www.orico.com.cn/uploads/product/3169U3/3169U3-L2.jpg"></div>
<div class="right">
<p class="padding-t-5vw">产品名称:<?php echo $data['made_up_articles_name']; ?></p>
<p class="padding-t-5vw">产品型号:<?php echo $data['specifications_and_models']; ?></p>
<p class="padding-t-5vw">出厂日期:<?php echo $data['production_date']; ?></p>
<p class="padding-t-5vw">保修日期至:<?php echo $data['mendtime']; ?></p>
<p class="padding-t-5vw">ORICO为本产品提供五年质保和免费技术支持服务如产品出现故障您可联系购买平台或ORICO客服服务中心享受质保服务。</p>
<div class="padding-t-5vw"><a href="__PUBLIC__/web/images/Anti-Fake/SSD-Warranty.pdf" target="_blank"><span class="fw_button font-16 bg_blue pop_check cursor_p">质保详情</span></a></div>
</div>
</li>
<li class="img-responsive margin-t-50 padding-t-8vw">
<img src="__PUBLIC__/web/images/Anti-Fake/fake_02.jpg">
<p class="padding-t-8vw">*注:铭牌贴贴纸不要撕毁或者损坏,否则将无法进行保修。</p>
</li>
</ul>
</div>
</div>
<?PHP }else{?>
<div class="bg-white overflow-f text-l font-11 f-black fw_result_title" style="margin-bottom: 2vw;"><div class="fw_l">尊敬的用户您好您查询的产品不是ORICO正品请联系销售方 </div></div>
<?php }?>
</div>
<div></div>
<script src="__PUBLIC__/adminlte/plugins/iCheck/icheck.min.js"></script>
<script type="text/javascript">
$(function() {
$("#verifyimg, #averifyimg").click(function(event) {
event.preventDefault();
$img = $("#verifyimg");
$img.attr("src", "<?php echo url('/captcha/authcode');?>?t=" + Math.random());
//$img.attr("src", $img.attr("src").substring(0, 21) + "?" + Math.random());
//jQuery(this).attr("src", "<?php echo url('/admin/authcode/verify');?>?" + Math.random());
});
});
</script>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

138
app/index/view/fake/index.phtml Executable file
View File

@@ -0,0 +1,138 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>防伪码查询页</title>
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/Anti-Fake.css">
</head>
<body class="bg-gray">
<!--top-->
<header class="header-PC header-Product">
<div id="header" class="theme-black">
{include file="include/top-header2023" /}
</div>
</header>
{include file="include/top-header-mobile" /}
<div class="indexbox-product">
<div class="swt-Container overflow-f padding-b-80">
<div class="product_address "><a href="__ORICOROOT__" class="f-black">首页</a><span class="icon-arrow arrow_address"></span>验证服务</div>
<div class="overflow-f text-c f-black font-11">
<div class="fw_fw_title fw_on"><span class="cursor_p">请输入防伪码</span></div><div class="fw_sn_title"><span class="cursor_p">请输入S/N码</span></div>
</div>
<div class="bg-white overflow-f">
<div class="fw_01 fw_one">
<ul>
<li>
<p class="fw_search img-responsive"><img src="__PUBLIC__/web/images/Anti-Fake/fw_01.jpg"></p>
<p class="font-11 f-black">请输入防伪码</p>
<p class="font-9 f-l-gray padding-t-5vw">输入产品铭牌贴上二维码下方防伪码查询真伪以及质保信息</p>
<form action="<?php echo url('fake/fake_result');?>" method="post" class="fw_form">
<p class="padding-t-8vw"><input placeholder="请输入防伪码" name="fake" id="sn" class="w-65"></p>
<p class="padding-t-8vw"><input placeholder="请输入验证码" name="captcha" class="w-25"> <img id="verifyimg" src="<?php echo url('/captcha/authcode');?>" class="img-responsive margin-l-1" style="height: 2.5em;"><button type="button" class="f-gray font-16 btn-primary margin-l-1" id="averifyimg">换一个</button></p>
<p class="padding-t-8vw"><span class="fw_button font-16 bg_blue pop_check cursor_p">立即查询</span></p>
<!--弹出框-->
<div class="Popup_all" style="display: none;">
<div class="Popup">
<div class="close"><span class="cursor_p"><img src="__PUBLIC__/web/images/Anti-Fake/close.jpg"></span></div>
<div class="Popup_content">
<div class="font-11 f-black text-c">温馨提示</div>
<div class="font-9 f-l-gray margin-t-10vw">产品防伪码只可查询一次,如产品被二次查询,谨防假冒!如有疑问请拨打服务热线 400-6696-298查问咨询。</div>
<p class="text-c margin-t-20vw"><button class="fw_button font-16 bg_blue" type="submit">立即查询</button></p>
</div>
</div>
</div>
</form>
</li>
<li>
<p class="font-11 f-black">如何获取防伪码</p>
<p class="font-9 f-l-gray padding-t-5vw">可在固态硬盘上找到铭牌贴:</p>
<p class="padding-t-5vw img-responsive"><img src="__PUBLIC__/web/images/Anti-Fake/fake.jpg"></p>
<p class="font-9 f-l-gray padding-t-5vw">注:铭牌贴贴纸不要撕毁或者损坏,否则将无法进行保修。</p>
</li>
</ul>
</div>
<div class="fw_01 fw_two" style="display: none">
<ul>
<li>
<p class="fw_search img-responsive"><img src="__PUBLIC__/web/images/Anti-Fake/fw_01.jpg"></p>
<p class="font-11 f-black">请输入S/N码</p>
<p class="font-9 f-l-gray padding-t-5vw">输入产品铭牌贴上S/N码查询真伪以及质保信息</p>
<form action="<?php echo url('fake/sn_result');?>" method="post" class="fw_form">
<p class="padding-t-8vw"><input placeholder="请输入S/N码" name="sn" id="sn" class="w-65"></p>
<p class="padding-t-8vw"><input placeholder="请输入验证码" name="captcha" class="w-25"> <img id="verifyimg1" src="<?php echo url('/captcha/authcode');?>" class="img-responsive margin-l-1" style="height: 2.5em;"><button type="button" class="f-gray font-16 btn-primary margin-l-1" id="averifyimg1">换一个</button></p>
<p class="padding-t-8vw"><button class="fw_button font-16 bg_blue" type="submit">立即查询</button></p>
</form>
</li>
<li>
<p class="font-11 f-black">如何获取S/N码</p>
<p class="font-9 f-l-gray padding-t-5vw">可在固态硬盘上找到铭牌贴:</p>
<p class="padding-t-5vw img-responsive"><img src="__PUBLIC__/web/images/Anti-Fake/sn_01.jpg"></p>
<p class="font-9 f-l-gray padding-t-5vw">注:铭牌贴贴纸不要撕毁或者损坏,否则将无法进行保修。</p>
</li>
</ul>
</div>
</div>
</div>
<div>
</div>
<script src="__PUBLIC__/adminlte/plugins/iCheck/icheck.min.js"></script>
<script type="text/javascript">
/*验证码*/
$(function() {
$("#verifyimg, #averifyimg").click(function(event) {
event.preventDefault();
$img = $("#verifyimg");
$img.attr("src", "<?php echo url('/captcha/authcode');?>?t=" + Math.random());
//$img.attr("src", $img.attr("src").substring(0, 21) + "?" + Math.random());
//jQuery(this).attr("src", "<?php echo url('/admin/authcode/verify');?>?" + Math.random());
});
});
/*验证码1*/
$(function() {
$("#verifyimg1, #averifyimg1").click(function(event) {
event.preventDefault();
$img = $("#verifyimg1");
$img = $("#verifyimg1");
$img.attr("src", "<?php echo url('/captcha/authcode');?>?t=" + Math.random());
//$img.attr("src", $img.attr("src").substring(0, 21) + "?" + Math.random());
//jQuery(this).attr("src", "<?php echo url('/admin/authcode/verify');?>?" + Math.random());
});
}); /*切换效果*/
$(document).ready(function(){
$(".fw_fw_title").click(function(){
$(this).addClass("fw_on");
$(this).siblings().removeClass("fw_on");
$(".fw_one").show();
$(".fw_two").hide();
});
$(".fw_sn_title").click(function(){
$(this).addClass("fw_on");
$(this).siblings().removeClass("fw_on")
$(".fw_one").hide();
$(".fw_two").show();
});
/*点击弹出效果*/
$(".Popup_all").hide();
$(".pop_check").click(function(){
$(".Popup_all").show();
});
$(".close").click(function(){
$(".Popup_all").hide();
});
});
</script>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,68 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SN码查询结果</title>
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/Anti-Fake.css">
</head>
<body class="bg-gray">
<!--top-->
<header class="header-PC header-Product">
<div id="header" class="theme-black">
{include file="include/top-header2023" /}
</div>
</header>
{include file="include/top-header-mobile" /}
<div class="indexbox-product">
<div class="swt-Container overflow-f padding-b-80">
<div class="product_address "><a href="__ORICOROOT__" class="f-black">首页</a><span class="icon-arrow arrow_address"></span><a href="__ORICOROOT__/index/fake">技本支持</a><span class="icon-arrow arrow_address"></span>保修信息查询</div>
<div class="bg-white overflow-f text-c font-11 f_blue f_weight_600 fw_result_title">S/N码<?php echo $data['sn']; ?>查询结果</div>
<?php if($data['result']==1){?>
<div class="bg-white overflow-f">
<div class="fw_result">
<div class="f-black font-11 f-black">产品信息</div>
<ul>
<li>
<div class="left img-responsive"><img src="https://www.orico.com.cn/uploads/product/3169U3/3169U3-L2.jpg"></div>
<div class="right">
<p class="padding-t-5vw">产品名称:<?php echo $data['made_up_articles_name']; ?></p>
<p class="padding-t-5vw">产品型号:<?php echo $data['specifications_and_models']; ?></p>
<p class="padding-t-5vw">出厂日期:<?php echo $data['production_date']; ?></p>
<p class="padding-t-5vw">保修日期至:<?php echo $data['mendtime']; ?></p>
<p class="padding-t-5vw">ORICO为本产品提供五年质保和免费技术支持服务如产品出现故障您可联系购买平台或ORICO客服服务中心享受质保服务。</p>
<div class="padding-t-5vw"><a href="__PUBLIC__/web/images/Anti-Fake/SSD-Warranty.pdf" target="_blank"><span class="fw_button font-16 bg_blue pop_check cursor_p">质保详情</span></a></div> </div>
</li>
<li class="img-responsive margin-t-50 padding-t-8vw">
<img src="__PUBLIC__/web/images/Anti-Fake/sn_02.jpg">
<p class="padding-t-8vw">*注S/N码只能查询到产品信息并不能查询到产品真伪如需查询产品真伪输入二维码下方序列码进行查询。</p>
</li>
</ul>
</div>
</div>
<?PHP }else{?>
<div class="bg-white overflow-f text-l font-11 f-black fw_result_title"><div class="fw_l">尊敬的用户您好:您查询的产品不是ORICO正品请联系销售方 </div></div>
<?php }?>
</div>
<div></div>
<script src="__PUBLIC__/adminlte/plugins/iCheck/icheck.min.js"></script>
<script type="text/javascript">
$(function() {
$("#verifyimg, #averifyimg").click(function(event) {
event.preventDefault();
$img = $("#verifyimg");
$img.attr("src", "<?php echo url('/captcha/authcode');?>?t=" + Math.random());
//$img.attr("src", $img.attr("src").substring(0, 21) + "?" + Math.random());
//jQuery(this).attr("src", "<?php echo url('/admin/authcode/verify');?>?" + Math.random());
});
});
</script>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,249 @@
<!DOCTYPE html>
<html lang="en">
<head>
{include file="include/head" /}
<meta charset="UTF-8">
<title>Brand Story|Orico</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/backuper.css">
</head>
<body style="background-color:#ecf6ff">
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
<!--top End-->
<div class="img-responsive position-r">
<img src="__PUBLIC__/web/images/backuper/banner.jpg" alt=""/>
<div class="banner">
<div class="title">手机备份 如此简单</div>
<div class="sub_title">备份你的美好时光 </div>
<a href="http://z.jd.com/project/details/1856168798.html?from=jr_search&type=0" target="_blank">
<!-- <div class="button">
<span >—京东众筹正式开启—</span>
</div> -->
</a>
</div>
</div>
<!--视频-->
<div class="swt-Container video">
<div class="left img-responsive">
<!-- <img src="__PUBLIC__/web/images/charger/charger_02_video.jpg"> -->
<video controls poster="" width="100%">
<source src="https://www.orico.com.cn/frontend/m_weben/images/backup/backup-vedio.mp4">
您的浏览器不支持 video 标签。
Your browser does not support HTML5 video.
</video>
</div>
<div class="right">
<div class="title backuper-80">轻松备份</div>
<div class="font-18 text">
随着人们使用手机的频率越来越高,所产生的的
数据量也日益剧增,手机备份功能在日常生活中
越来越重要,解决手机内存不足的同时也满足了
备份数据的需求。
<div class="backuper-b">手机备份宝是一款针对手机用户的存储产品,可
以轻松从手机端备份照片、视频、音乐和文档,
不论在哪都能轻松地使用。</div></div>
</div>
</div>
<!--第三屏-->
<div class="img-responsive position-r">
<img src="__PUBLIC__/web/images/backuper/backuper_03.jpg">
<div class="backuper_03 backuper">
<div class="title">手机备份<br>如此简单</div>
<div class="backuper-btn ">手机备份宝</div>
<div class="icon-text img-responsive">
<ul>
<li><img src="__PUBLIC__/web/images/backuper/backup-03-01.png"><p>操作简单</br>自动备份</p></li>
<li><img src="__PUBLIC__/web/images/backuper/backup-03-02.png"><p>支持iOS</br>Android设备</p></li>
<li><img src="__PUBLIC__/web/images/backuper/backup-03-03.png"><p>海量空间</br>Max 2TB</p></li>
<li><img src="__PUBLIC__/web/images/backuper/backup-03-04.png"><p>随身携带</br>及时备份</p></li>
</ul>
</div>
</div>
</div>
<!--第四屏-->
<div class="backuper_04 img-responsive">
<ul>
<li><img src="__PUBLIC__/web/images/backuper/backuper_04-01.jpg">
<div class="back-abso">
<p class="font-big">瞬时备份</p>
<p class="font-small">只需轻轻一点</br>手机内容轻松备份</p>
</div>
</li>
<li><img src="__PUBLIC__/web/images/backuper/backuper_04-02.jpg">
<div class="back-abso">
<p class="font-big">全面兼容</p>
<p class="font-small">支持iOS、Android设备</br>焕新手机备份体验 </p>
</div>
</li>
<li><img src="__PUBLIC__/web/images/backuper/backuper_04-03.jpg">
<div class="back-abso">
<p class="font-big">乐活分享</p>
<p class="font-small">手掌大小,方便携带</br>随时随地浏览、分享快乐</p>
</div>
</li>
<li><img src="__PUBLIC__/web/images/backuper/backuper_04-04.jpg">
<div class="back-abso">
<p class="font-big">更多空间</p>
<p class="font-small">2TB海量扩容</br>随便存</p>
</div>
</li>
</ul>
</div>
<br clear="all">
<!--第五屏-->
<div class="htmleaf-container">
<div class="container">
<div class="slider-container">
<div class="slider">
<div class="slider__item">
<img src="__PUBLIC__/web/images/backuper/backuper-img01.jpg" alt="">
</div>
<div class="slider__item">
<img src="__PUBLIC__/web/images/backuper/backuper-img02.jpg" alt="">
</div>
<div class="slider__item">
<img src="__PUBLIC__/web/images/backuper/backuper-img03.jpg" alt="">
</div>
<div class="slider__item">
<img src="__PUBLIC__/web/images/backuper/backuper-img04.jpg" alt="">
</div>
</div>
<div class="slider__switch slider__switch--prev" data-ikslider-dir="prev">
<span><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M13.89 17.418c.27.272.27.71 0 .98s-.7.27-.968 0l-7.83-7.91c-.268-.27-.268-.706 0-.978l7.83-7.908c.268-.27.7-.27.97 0s.267.71 0 .98L6.75 10l7.14 7.418z"/></svg></span>
</div>
<div class="slider__switch slider__switch--next" data-ikslider-dir="next">
<span><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M13.25 10L6.11 2.58c-.27-.27-.27-.707 0-.98.267-.27.7-.27.968 0l7.83 7.91c.268.27.268.708 0 .978l-7.83 7.908c-.268.27-.7.27-.97 0s-.267-.707 0-.98L13.25 10z"/></svg></span>
</div>
</div>
<div class="preview-backer">
<a href="#1"><img src="__PUBLIC__/web/images/backuper/backuper-img01.jpg" alt="" /><div class="pre-backer-text">旅行途中,备份心情</div></a>
<a href="#2"><img src="__PUBLIC__/web/images/backuper/backuper-img02.jpg" alt="" /><div class="pre-backer-text">商务办公,备份文件 </div></a>
<a href="#3"><img src="__PUBLIC__/web/images/backuper/backuper-img03.jpg" alt="" /><div class="pre-backer-text">家庭聚会,备份美好 </div></a>
<a href="#4"><img src="__PUBLIC__/web/images/backuper/backuper-img04.jpg" alt="" /><div class="pre-backer-text">音乐live备份快乐</div></a>
</div>
</div>
</div>
<!--第六屏-->
<div class="img-responsive position-r">
<img src="__PUBLIC__/web/images/backuper/backuper_05.jpg">
<div class="backuper_05">
<div class="title">插上就能</br>自动备份</div>
<div class="text">打开“iStore Pro”一键自动备份</br>
只需轻轻一点,</br>
瞬间将手机内容安全备份。</div>
<div class="backuper-100">*ios系统不支持文档与音频备份</div>
</div>
</div>
<!--第七屏-->
<div class="img-responsive position-r">
<img src="__PUBLIC__/weben/images/backuper/backuper_06.jpg">
<div class="backuper_06">
<div class="title">随身携带的资料库</div>
<div class="sub_title">最大支持2TB容量的2.5英寸厚度7-9.5mm</br>
SATA接口硬盘</div>
<div class="text">
<ul>
<li>
<span class="number">50万</span><sub class="font-12"></sub>
<p class="number_text">高清照片4M</p>
</li>
<li>
<span class="number">1312</span><sub class="font-12"></sub>
<p class="number_text">高清电影1.5G</p>
</li>
<li>
<span class="number">6.65万</span><sub class="font-12"></sub>
<p class="number_text">无损音乐4M</p>
</li>
<li>
<span class="number">200万</span><sub class="font-12"></sub>
<p class="number_text">文档1M</p>
</li>
</ul>
</div>
</div>
</div>
<!--第八屏-->
<div class="img-responsive position-r">
<img src="__PUBLIC__/web/images/backuper/backuper_08.jpg">
<div class="backuper_05">
<div class="title">轻松管理</br>存储内容</div>
<div class="text">通过软件可轻松查看</br>
管理硬盘存储内容,</br>
并一键备份至手机端。</br>
</div>
</div>
</div>
<!--第九屏-->
<div class="img-responsive position-r">
<img src="__PUBLIC__/web/images/backuper/backuper_09.jpg">
<div class="backuper_07 backuper">
<div class="title">
一键删除<br>多余文件
</div>
<div class="text">
支持一键删除手机端的</br>
已备份的文件,</br>
瞬间释放容量空间</br>
整理更方便。</br>
</div>
</div>
</div>
<!--第十屏-->
<div class="img-responsive position-r">
<img src="__PUBLIC__/web/images/backuper/backuper_10.jpg">
<div class="backuper_05">
<div class="title">边备份</br>边充电</div>
<div class="text">Type-C支持数据传输</br>
和辅助供电使用,</br>
备份的同时还能给</br>
手机充电。 </br>
</div>
</div>
</div>
<!--第十一屏-->
<div class="img-responsive position-r">
<img src="__PUBLIC__/web/images/backuper/backuper_11.jpg">
<div class="backuper_08 backuper">
<div class="title">
告别</br>重复备份
</div>
<div class="text">自动检索备份记录,</br>
采用“增量识别” </br>
彻底告别重复备份。</br> </div>
</div>
</div>
<!--第十二屏-->
<div class="img-responsive position-r">
<img src="__PUBLIC__/web/images/backuper/backuper_12.jpg"></br>
<img src="__PUBLIC__/web/images/backuper/backuper_13.jpg"></br>
<img src="__PUBLIC__/web/images/backuper/backuper_14.jpg"></br>
</div>
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
<script src="http://cdn.bootcss.com/jquery/1.11.0/jquery.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/web/scripts/slider.js"></script>
<script type="text/javascript">
$(".slider-container").ikSlider({
speed: 500
});
$(".slider-container").on('changeSlide.ikSlider', function (evt) { console.log(evt.currentSlide); });
</script>
<script type="text/javascript">
var $preview = $('.preview-backer a');

View File

@@ -0,0 +1,61 @@
<!-- bottom s -->
<div class="foot">
<div class="w1440">
<div class="footf">
<div class="foot1">
<div class="ftit">媒体资讯</div>
<ul class="foota">
<li><a href="<?php echo url_rewrite('article'); ?>">新闻</a> | <a href="<?php echo url_rewrite('video'); ?>">视频</a></li>
<li><a href="#">ORICO粉丝群</a></li>
<li><a href="<?php echo url_rewrite('singlepage', ['id' => 3]); ?>" target="_blank">站点地图</a></li>
<li><a href="#">ORICO社区</a></li>
<li><a href="#">新浪微博</a></li>
<li><a href="#">ORICO博客</a></li>
</ul>
<div class="clear"></div>
</div>
<div class="foot1">
<div class="ftit">技术支持 </div>
<ul class="foota foota1">
<li><a href="<?php echo url_rewrite('download'); ?>">软件下载</a></li>
<li><a href="/index/Group/policy/">售后政策</a></li>
<li><a href="<?php echo url_rewrite('video'); ?>">视频专区</a></li>
<li><a href="#">产品知识库</a></li>
<li><a href="<?php echo url_rewrite('question'); ?>">常见F&Q</a></li>
</ul>
<div class="clear"></div>
</div>
<div class="foot1">
<div class="ftit">加入我们</div>
<ul class="foota foota2">
<li><a href="/index/Group/job">工作机会</a></li>
<li><a href="/index/Group/odm">代理合作</a></li>
</ul>
<div class="clear"></div>
</div>
<div class="ftext"><?php echo config('website_powerby'); ?><?php echo config('website_icp'); ?></div>
</div>
<div class="footr">
<div class="rha">
<a href="#"><img src="__PUBLIC__/web/images/f1.png"></a>
<a href="#"><img src="__PUBLIC__/web/images/f2.png"></a>
<a href="#"><img src="__PUBLIC__/web/images/f3.png"></a>
<a href="#"><img src="__PUBLIC__/web/images/f4.png" style="margin:-3px 0 0 2px;"></a>
<a href="#"><img src="__PUBLIC__/web/images/f5.png"></a>
</div>
<?php
$erweima = getBannerList(4, 1);
if (!empty($erweima[0])):
?>
<div class="wx">
<img src="<?php echo getImage($erweima[0]['picture']); ?>" alt="<?php echo $erweima[0]['alt']; ?>">
<p><?php echo $erweima[0]['name']; ?></p>
</div>
<?php endif; ?>
</div>
<div class="clear"></div>
<div class="ftext1"><?php echo config('website_powerby'); ?><?php echo config('website_icp'); ?></div>
</div>
</div>
<!-- bottom e -->
<div style="display: none;"><?php echo config('website_tongji'); ?></div>

112
app/index/view/group/brand.phtml Executable file
View File

@@ -0,0 +1,112 @@
<!DOCTYPE html>
<html lang="en">
<head>
{include file="include/head" /}
<meta charset="UTF-8">
<title>品牌故事</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/subject/brand0804.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/animate.min.css">
</head>
<body>
<!--top-->
{include file="include/top-head2023" /}
<!--top End-->
<div class="img-responsive" style="margin:0 auto; max-width:1920px;"><img src="__PUBLIC__/weben/images/Introductionimg/OurBrand.png" alt=""/></div>
<div class="our_brand_con">
<div class="our_brand_bg" id="our_brand_bg1">
<div class="vtext swt-Container">
<div class="Table-Cell left ">
<p class="title">我们的故事</p>
<hr>
<p class="des">ORICO成立于2009年是一家专注于智能数码外设研发的创新型高科技企业。 </p>
<p class="des">凭借雄厚的研发实力、严谨的生产态度、丰富的研发经验和长期的营销策划ORICO坚持为个人、家庭或企业提供更便捷、高性能的产品。</p>
<p class="des">ORICO以其可靠和创新的形象而闻名。以其快速的速度、严谨的态度、优质的品质为合作伙伴所铭记。</p>
</div>
<div class="Table-Cell right "><img src="__PUBLIC__/weben/images/Introductionimg/our1.png"></div>
</div>
</div>
<div class="our_brand_bg" id="our_brand_bg2">
<div class="vtext swt-Container">
<div class="Table-Cell left ">
<p class="title">我们的使命</p>
<hr>
<p class="des">Orico专注于数据和电力的存储和传输领域。公司以其多样化的产品组合在满足消费者需求的同时让他们体验科技带来的变化和便利。</p>
<p class="des">Orico不断创造新产品引领新市场品类重塑全球数据接入产品消费格局。在将来。Orico将依赖NAS。装饰。UFSD闪存盘、电缆等产品组合满足全球市场对个性化数据存储和传输的需求。我们还将承担社会责任促进资源互惠。为中国企业和中国制造业代言。</p>
</div>
<div class="Table-Cell right "><img src="__PUBLIC__/weben/images/Introductionimg/our2.png"></div>
</div>
</div>
</div>
<!--品牌大记事-->
<div class="dis_bril_bg">
<div class="dis_bril_con swt-Container">
<div class="dis_bril_div">
<div class="iconimg"><img src="__PUBLIC__/weben/images/indeximg/eas.png"></div>
<div class="title">
<p>全球畅销<?php echo (date("Y")-2009);?></p>
</div>
<div class="subtitle">
<p>自ORICO成立以来已在全球许多国家开设了线下渠道拥有众多国家的独立代理和经销商。ORICO在外接硬盘盒和USB3.0外设领域连续四年被行业认可,我们的快充防雷插座在快速增长中保持前五名。</p>
</div>
</div>
<div class="dis_bril_div">
<div class="iconimg"><img src="__PUBLIC__/weben/images/indeximg/team.png"></div>
<div class="title">
<p>卓越的研发团队</p>
</div>
<div class="subtitle">
<p>我们致力于为客户的需求提供创新和实用的解决方案。成立了一个由近百名资深工程师、结构工程师、电子工程师等组成的专业研发团队。开发了数千种产品如USB存储、USB扩展、USB插排、USB充电、数码配件以及优质外设。我们每周都保持新产品的研发。</p>
</div>
</div>
<div class="dis_bril_div">
<div class="iconimg"><img src="__PUBLIC__/weben/images/indeximg/channeng.png"></div>
<div class="title">
<p>年产能超过40亿</p>
</div>
<div class="subtitle">
<p>采用5S管理是创造优质产品的前提。ORICO投资近8000万元建设了互联网与创意产业园这是一个综合服务中心集创新与技术培训、项目孵化、产业加速、投融资服务等多种功能于一体。年产能稳定超过了40亿元人民币合6亿美元</p>
</div>
</div>
</div>
</div>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
<script>
$(document).ready(function() {
function isScrolledIntoView(elem) {
var docViewTop = $(window).scrollTop();
var docViewBottom = docViewTop + $(window).height();
var elemTop = $(elem).offset().top;
var elemBottom = elemTop + $(elem).height();
return (elemTop <= docViewBottom);
}
var myelement = $('#our_brand_bg1'); // the element to act on if viewable
goScroll(myelement);
var myelement2 = $('#our_brand_bg2'); // the element to act on if viewable
goScroll(myelement2);
function goScroll(obj){
$(window).scroll(function() {
if(isScrolledIntoView(obj)) {
$(obj).find('.left').addClass('animated fadeInLeft');
$(obj).find('.right').addClass('animated fadeInRight');
}
});
}
});
</script>
</body>
</html>

202
app/index/view/group/brand1.phtml Executable file
View File

@@ -0,0 +1,202 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>品牌发展_ORICO品牌_品牌故事_品牌研发_ORICO/奥睿科官网</title>
<meta name="Keywords" content="品牌发展" />
<meta name="Description" content="品牌发展" />
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/brand.css">
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
<!--top End-->
<div class="img-responsive"><img src="__PUBLIC__/web/images/brand/group_brand_b.jpg" alt=""/></div>
<div class="lj_brand_bg">
<div class="vtext swt-Container">
<p class="tl1">品牌故事</p>
<p class="lj_brand_text">元创动力始于2009年作为一家扎根于数码智能周边配件研发的创新型高新技术企业坚持以雄厚的研发实力、严谨的生产态度、丰富的研发经验、长远的市场导向与规划不断为个人、家庭及企业开发出实用的生活化产品、技术凸显的高性能产品以可靠、便捷、创新的形象为大众用户所熟知以快速、严谨、高质量的印象为合作伙伴所记忆。</p>
</div>
<div class="swt-Container">
<div class="lj_brand_t clearfix">
<div class="lj_brand_l">
<div class="lj_b_big">抓住冬日的艳阳</div>
<div class="lj_b_small"><p class="subject_span_margin">从创始人徐业友先生创立品牌以来,一直致力于让品牌从生活的不合理启发创造,尊重大众对更美好生活向往而不断提高和改变要求的意愿。从品牌创立之初,正值台式电脑向移动笔记本迭代的迅猛发展的时间段,各类台式机“以旧换新”的政策推动,使电脑的新旧换代就像冬日的艳阳,一片生机。</p>
<p>
作为技术出身的徐业友先生抓住了这个机遇从IT外围存储入手为迭代下来的海量数据信息的存储提供可靠方案同时也为轻量化的笔记本功能的完善让笔记本也能像之前的台式机一样好用提出USB扩展产品开发方案同期提出了品牌第一代的产品理念“Easy your PC”一时间在电脑周边消费产品行业激起千层浪。</p></div>
</div>
<div class="lj_brand_img rd_img"><img src="__PUBLIC__/web/images/brand/group_brand02.jpg" alt=""/></div>
</div>
<div class="lj_brand_t clearfix lj_cur_01">
<div class="lj_brand_img_02 rd_img"><img src="__PUBLIC__/web/images/brand/group_brand03.jpg" alt=""/></div>
<div class="lj_brand_l_02">
<div class="lj_b_big pad_l">小改变引发的蝴蝶效应</div>
<div class="lj_b_small pad_l">随着一定的技术累积,元创开始寻求突破,从最熟悉的<a href="http://www.orico.com.cn/product/subcategory/76.html" class="sa_blue">硬盘盒</a>开始入手改良了内部硬盘的嵌入设计从此硬盘盒摆脱了多年来锁螺丝的麻烦硬盘盒的“Tool free”概念很快便被大众市场所喜爱。
在数码手机/平板疯狂崛起的时期对传统排插全面改良将数码充电器与之融为一体领先推出USB智能排插拥有巨大的市场需求。
致敬苹果的透明机箱,元创将透明直接一贯到底,强势推出直击匠人内心的全透明系列,从芯片到电容,良心自信彰显。</div>
</div>
</div>
<div class="lj_brand_t clearfix lj_cur_02" >
<div class="lj_brand_l_02">
<div class="lj_b_big pad_l">小改变引发的蝴蝶效应</div>
<div class="lj_b_small pad_l">随着一定的技术累积元创开始寻求突破从最熟悉的硬盘盒开始入手改良了内部硬盘的嵌入设计从此硬盘盒摆脱了多年来锁螺丝的麻烦硬盘盒的“Tool free”概念很快便被大众市场所喜爱。
在数码手机/平板疯狂崛起的时期对传统排插全面改良将数码充电器与之融为一体领先推出USB智能排插拥有巨大的市场需求。
致敬苹果的透明机箱,元创将透明直接一贯到底,强势推出直击匠人内心的全透明系列,从芯片到电容,良心自信彰显。</div>
</div>
<div class="lj_brand_img_02 rd_img"><img src="__PUBLIC__/web/images/brand/group_brand03.jpg" alt=""/></div>
</div>
<div class="lj_brand_t clearfix">
<div class="lj_brand_l_03">
<div class="lj_b_big">持续探索科技于生活的意义</div>
<div class="lj_b_small">就像品牌的新元素“阿基米德螺旋”一样,不断一点一点的修正与改变方向, 就能不断地向更远的地方辐射延展。元创也始终坚持着不断的探索与累积每一点的改变,慢慢累积形成质变,探索更多的可能,不断的探索科技能够给人们生活带来的意义,由此作为品牌孜孜不倦不断追求与发展的动力源泉。</div>
</div>
<div class="lj_brand_img_03 rd_img"><img src="__PUBLIC__/web/images/brand/group_brand04.jpg" alt=""/></div>
</div>
</div>
</div>
<!--品牌大记事-->
<div class="dis_bril_bg">
<div class="vtext">
<p class="vtext_01">品牌大记事</p>
<p class="tl2 "></p>
</div>
<div class="dis_box position-r ">
<div class="culture-l position-r">2021年<span></span></div>
<div class="culture-r">入选第七届“国际信誉品牌”暨第十八届“深圳知名品牌”。</div>
<div class="culture-l position-r">2020年<span></span></div>
<div class="culture-r">与什么值得买平台达成合作伙伴关系,超多性价比产品上线。</div>
<div class="culture-l position-r">2019年<span></span></div>
<div class="culture-r">获2019中国出海品牌20强。</div>
<div class="culture-l position-r">2018年<span></span></div>
<div class="culture-r">参加迪拜GITEX展会“蜂巢系列”升级版磁盘阵列柜产品首次亮相。</div>
<div class="culture-l position-r">2017年<span></span></div>
<div class="culture-r">发布新潮透明系列外观产品透明硬盘盒至今卖出约300余万件。</div>
<div class="culture-l position-r">2016年<span></span></div>
<div class="culture-r"> 参加香港环球资源电子产品展发布国内首款可换式存储扩展产品9558U3系列。</div>
<div class="culture-l position-r">2015年<span></span></div>
<div class="culture-r">ORICO奥睿科品牌全球运营中心在湖南长沙成立全力运营海内外线上平台</div>
<div class="culture-l position-r">2014年<span></span></div>
<div class="culture-r">母公司元创时代完成自有产业链的打造为ORICO奥睿科品牌的高速发展奠定了基础。</div>
<div class="culture-l position-r">2013年<span></span></div>
<div class="culture-r">母公司元创时代荣获【国家高新技术企业】认定ORICO与多家方案原厂及WD成为战略合作伙伴。</div>
<div class="culture-l position-r">2012年<span></span></div>
<div class="culture-r ">ORICO奥睿科产品开始销往美国、西班牙、英国、法国等地。</div>
<div class="culture-l position-r">2011年<span></span></div>
<div class="culture-r">ORICO奥睿科开拓泰国、韩国、德国海外分销渠道同年元创时代入驻深圳龙岗区中海信工业园。</div>
<div class="culture-l position-r">2010年<span></span></div>
<div class="culture-r">ORICO奥睿科开始布局天猫、京东、易迅、苏宁易购、国美、亚马逊、新蛋等国内外主流线上电商平台。</div>
<div class="culture-l position-r">2009年<span></span></div>
<div class="culture-r padding-b-3">ORICO奥睿科品牌正式成立同年第一款免工具硬盘盒面市。</div>
</div>
</div>
<!--技术发展-->
<div class="lj_brand_bg">
<div class="swt-Container">
<div class="vtext pad_b">
<p class="tl1 rd_img">技术发展</p>
<p class="tl2"></p>
</div>
</div>
<div class="swt-Container clearfix">
<div class="Brand-swt-Table">
<div class="Table-Row">
<div class="rd_img Table-Cell"><img src="__PUBLIC__/web/images/brand/group_b_t01.jpg" alt=""/></div>
<div class="Table-Cell">
<div class="lj_l">
<h3>2011年</h3>
<div class="lj_small_t">“Tool free”免工具拆装推动硬盘盒安装大革新<br>同年成功加入SATA国际组织(SATA-IO)协会以确保品牌全系列SATA产品具有高度互通性</div>
</div>
</div>
</div>
<div class="Table-Row">
<div class="Table-Cell ">
<div class="lj_r B-D-Block">
<h3>2013年</h3>
<div class="lj_small_t">与硬盘制造商巨头之一的西部数据WD达成战略合作共同深度探讨存储技术的突破 <br>同年, 成为威锋电子中国地区重要合作伙伴,为品牌产品的核心主控方案,注入一剂强心针<br> 正式推出无线云存储系统。</div>
</div>
</div>
<div class="rd_img Table-Cell"><img src="__PUBLIC__/web/images/brand/group_b_t02.jpg" alt=""/></div>
<div class="B-D-None">
<div class="lj_r">
<h3>2013年</h3>
<div class="lj_small_t">与硬盘制造商巨头之一的西部数据WD达成战略合作共同深度探讨存储技术的突破 同年, 成为威锋电子中国地区重要合作伙伴,为品牌产品的核心主控方案,注入一剂强心针, 正式推出无线云存储系统。</div>
</div>
</div>
</div>
<div class="Table-Row">
<div class="rd_img Table-Cell"><img src="__PUBLIC__/web/images/brand/group_b_t03.jpg" alt=""/></div>
<div class="Table-Cell">
<div class="lj_l">
<h3>2014年</h3>
<div class="lj_small_t">自主研发<a href="http://www.orico.com.cn/product/subcategory/148.html" class="sa_blue">智能数码排插</a>新上市引领数码智能市场并于2015年上线京东众筹取得不错成绩。</div>
</div>
</div>
</div>
<div class="Table-Row">
<div class="Table-Cell">
<div class="lj_r B-D-Block">
<h3>2015年</h3>
<div class="lj_small_t">开始着力研究包括Type-C、USB2.0、USB3.0在内的数据传输与电力传输技术。</div>
</div>
</div>
<div class="rd_img Table-Cell"><img src="__PUBLIC__/web/images/brand/group_b_t04.jpg" alt=""/></div>
<div class="B-D-None">
<div class="lj_r">
<h3>2015年</h3>
<div class="lj_small_t">开始着力研究包括<a href="http://www.orico.com.cn/product/detail/978.html">Type-C</a>、USB2.0、USB3.0在内的数据传输与电力传输技术。</div>
</div>
</div>
</div>
<div class="Table-Row">
<div class="rd_img Table-Cell"><img src="__PUBLIC__/web/images/brand/group_b_t05.jpg" alt=""/></div>
<div class="Table-Cell">
<div class="lj_l">
<h3>2016年</h3>
<div class="lj_small_t">ORICO与Fresco达成中国区终端战略合作伙伴。<br>品牌代表性力作,透明系列正式面世。</div>
</div>
</div>
</div>
<div class="Table-Row">
<div class="Table-Cell">
<div class="lj_r B-D-Block">
<h3>2020年</h3>
<div class="lj_small_t">品牌开始布局NAS产品线同年与东芝在DAS和NAS产品开展合作。</div>
</div>
</div>
<div class="rd_img Table-Cell"><img src="__PUBLIC__/web/images/brand/group_b_t06.jpg" alt=""/></div>
<div class="B-D-None">
<div class="lj_r">
<h3>2020年</h3>
<div class="lj_small_t">品牌开始布局NAS产品线同年与东芝在DAS和NAS产品开展合作。</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,112 @@
<!DOCTYPE html>
<html lang="en">
<head>
{include file="include/head" /}
<meta charset="UTF-8">
<title>品牌故事</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/subject/brand0804.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/animate.min.css">
</head>
<body>
<!--top-->
{include file="include/top-head2023" /}
<!--top End-->
<div class="img-responsive"><img src="__PUBLIC__/weben/images/Introductionimg/OurBrand.png" alt=""/></div>
<div class="our_brand_con">
<div class="our_brand_bg" id="our_brand_bg1">
<div class="vtext swt-Container">
<div class="Table-Cell left ">
<p class="title">我们的故事</p>
<hr>
<p class="des">ORICO成立于2009年是一家专注于智能数码外设研发的创新型高科技企业。 </p>
<p class="des">凭借雄厚的研发实力、严谨的生产态度、丰富的研发经验和长期的营销策划ORICO坚持为个人、家庭或企业提供更便捷、高性能的产品。</p>
<p class="des">ORICO以其可靠和创新的形象而闻名。以其快速的速度、严谨的态度、优质的品质为合作伙伴所铭记。</p>
</div>
<div class="Table-Cell right "><img src="__PUBLIC__/weben/images/Introductionimg/our1.png"></div>
</div>
</div>
<div class="our_brand_bg" id="our_brand_bg2">
<div class="vtext swt-Container">
<div class="Table-Cell left ">
<p class="title">我们的使命</p>
<hr>
<p class="des">Orico专注于数据和电力的存储和传输领域。公司以其多样化的产品组合在满足消费者需求的同时让他们体验科技带来的变化和便利。</p>
<p class="des">Orico不断创造新产品引领新市场品类重塑全球数据接入产品消费格局。在将来。Orico将依赖NAS。装饰。UFSD闪存盘、电缆等产品组合满足全球市场对个性化数据存储和传输的需求。我们还将承担社会责任促进资源互惠。为中国企业和中国制造业代言。</p>
</div>
<div class="Table-Cell right "><img src="__PUBLIC__/weben/images/Introductionimg/our2.png"></div>
</div>
</div>
</div>
<!--品牌大记事-->
<div class="dis_bril_bg">
<div class="dis_bril_con swt-Container">
<div class="dis_bril_div">
<div class="iconimg"><img src="__PUBLIC__/weben/images/indeximg/eas.png"></div>
<div class="title">
<p>全球畅销11年</p>
</div>
<div class="subtitle">
<p>自ORICO成立以来已在全球许多国家开设了线下渠道拥有众多国家的独立代理和经销商。ORICO在外接硬盘盒和USB3.0外设领域连续四年被行业认可,我们的快充防雷插座在快速增长中保持前五名。</p>
</div>
</div>
<div class="dis_bril_div">
<div class="iconimg"><img src="__PUBLIC__/weben/images/indeximg/team.png"></div>
<div class="title">
<p>卓越的研发团队</p>
</div>
<div class="subtitle">
<p>我们致力于为客户的需求提供创新和实用的解决方案。成立了一个由近百名资深工程师、结构工程师、电子工程师等组成的专业研发团队。开发了数千种产品如USB存储、USB扩展、USB插排、USB充电、数码配件以及优质外设。我们每周都保持新产品的研发。</p>
</div>
</div>
<div class="dis_bril_div">
<div class="iconimg"><img src="__PUBLIC__/weben/images/indeximg/channeng.png"></div>
<div class="title">
<p>年产能超过40亿</p>
</div>
<div class="subtitle">
<p>采用5S管理是创造优质产品的前提。ORICO投资近8000万元建设了互联网与创意产业园这是一个综合服务中心集创新与技术培训、项目孵化、产业加速、投融资服务等多种功能于一体。年产能稳定超过了40亿元人民币合6亿美元</p>
</div>
</div>
</div>
</div>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
<script>
$(document).ready(function() {
function isScrolledIntoView(elem) {
var docViewTop = $(window).scrollTop();
var docViewBottom = docViewTop + $(window).height();
var elemTop = $(elem).offset().top;
var elemBottom = elemTop + $(elem).height();
return (elemTop <= docViewBottom);
}
var myelement = $('#our_brand_bg1'); // the element to act on if viewable
goScroll(myelement);
var myelement2 = $('#our_brand_bg2'); // the element to act on if viewable
goScroll(myelement2);
function goScroll(obj){
$(window).scroll(function() {
if(isScrolledIntoView(obj)) {
$(obj).find('.left').addClass('animated fadeInLeft');
$(obj).find('.right').addClass('animated fadeInRight');
}
});
}
});
</script>
</body>
</html>

View File

@@ -0,0 +1,291 @@
<!DOCTYPE html>
<html lang="en">
<head>
{include file="include/head" /}
<meta charset="UTF-8">
<title>商务订单</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/cooperation.css">
</head>
<body style="background:#F2F2F2;">
{include file="include/top-head2023" /}
<!--Bult Buy-->
<div class="bdpage" >
<div class="bd_main bd_main1">
<h1 class="t1 sfbt1">批量购买</h1>
<!--内容-->
<div class="bd_ct ">
<div class="bd_from" style="padding: 0 300px;">
<div class="theit">
<div class="bditem">
<label class="itlable">公司名称<span class="redtag">*</span></label>
<input type="text" class="form-control itinp companyName" placeholder="法定营业名称" name="company" id="company">
</div>
</div>
<div class="theit">
<div class="bditem">
<label class="itlable">官方网站</label>
<input type="text" class="form-control itinp url" placeholder="请粘贴网址" name="url" id="url">
</div>
</div>
<div class="theit">
<div class="bditem">
<label class="itlable">姓名<span class="redtag">*</span></label>
<input type="text" class="form-control itinp first" placeholder="名" name="firstname" id="firstname">
</div>
<div class="bditem">
<label class="itlable">&nbsp;</label>
<input type="text" class="form-control itinp last" placeholder="姓" name="lastname" id="lastname">
</div>
</div>
<div class="theit">
<div class="bditem">
<label class="itlable">邮箱<span class="redtag">*</span></label>
<input type="email" class="form-control itinp email" name="email" id="email">
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">电话号码</label>
<input type="text" class="form-control itinp phone" name="phone" id="phone">
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">您对哪个产品品类感兴趣?</label>
<div class="sfbchecks">
<form class="sfbcheckboxlist" action="" method="get">
<label class="cit">
<input name="interested" type="checkbox" value="电脑配件" class="sfbcheckboxit">电脑配件
</label>
<label class="cit">
<input type="checkbox" value="手机配件" name="interested" class="sfbcheckboxit">手机配件</label>
<label class="cit">
<input type="checkbox" value="电子电工" name="interested" class="sfbcheckboxit">电子电工
</label>
<label class="cit">
<input type="checkbox" value="固态硬盘" name="interested" class="sfbcheckboxit">固态硬盘
</label>
<label class="cit">
<input type="checkbox" value="娱乐系列" name="interested" class="sfbcheckboxit">娱乐系列
</label>
<label class="cit">
<input type="checkbox" value="智能生活" name="interested" class="sfbcheckboxit">智能生活
</label>
<label class="cit">
<input type="checkbox" value="户外电源" name="interested" class="sfbcheckboxit">户外电源
</label>
</form>
</div>
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">留言<span class="redtag">*</span></label>
<textarea class="ittextarea ittextarea2 message" id="message" placeholder="留言"></textarea>
</div>
</div>
</div>
</div>
<!-- 提交-->
<div class="bttj">提交</div>
</div>
</div>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
<script>
try {
k_win_ref = window.parent.document.referrer;
} catch(e) {
k_win_ref = '';
};
/*弹出框关闭*/
$(function() {
// 输入框失去焦点
$('.companyName').blur(function(){
if($('.companyName').val() != ''){
$('.companyName').removeClass('error');
$('.companyName').next('span').addClass('hide');
}else{
$('.companyName').addClass('error');
$('.companyName').next('span').removeClass('hide');
}
})
$('.first').blur(function(){
if($('.first').val() != ''){
$('.first').removeClass('error');
$('.first').next('span').addClass('hide');
}else{
$('.first').addClass('error');
$('.first').next('span').removeClass('hide');
}
})
$('.last').blur(function(){
if($('.last').val() != ''){
$('.last').removeClass('error');
$('.last').next('span').addClass('hide');
}else{
$('.last').addClass('error');
$('.last').next('span').removeClass('hide');
}
})
$('.email').blur(function(){
if($('.email').val() != ''){
$('.email').removeClass('error');
$('.email').next('span').addClass('hide');
}else{
$('.email').addClass('error');
$('.email').next('span').removeClass('hide');
}
})
$('.phone').blur(function(){
if($('.phone').val() != ''){
$('.phone').removeClass('error');
$('.phone').next('span').addClass('hide');
}else{
$('.phone').addClass('error');
$('.phone').next('span').removeClass('hide');
}
})
$('.message').blur(function(){
if($('.message').val() != ''){
$('.message').removeClass('error');
$('.message').next('span').addClass('hide');
}else{
$('.message').addClass('error');
$('.message').next('span').removeClass('hide');
}
})
// 提交表单
$('.bttj').click(function(){
var companyName = $('.companyName').val();
var firstName = $('.first').val();
var lastName = $('.last').val();
var email = $('.email').val();
var phone = $('.phone').val();
var message = $('.message').val();
var url = $('.url').val();
var checkItem = new Array();
$("input[name='interested']:checked").each(function() {
    checkItem.push($(this).val());// 在数组中追加元素
});
var interesteds = checkItem.join(",");
var inventory = $("input[name='inventory']:checked").val();
if(companyName == ''){
$('.companyName').addClass('error');
$('.companyName').next('span').removeClass('hide');
}else{
$('.companyName').removeClass('error');
$('.companyName').next('span').addClass('hide');
}
if(firstName == ''){
$('.first').addClass('error');
$('.first').next('span').removeClass('hide');
}else{
$('.first').removeClass('error');
$('.first').next('span').addClass('hide');
}
if(lastName == ''){
$('.last').addClass('error');
$('.last').next('span').removeClass('hide');
}else{
$('.last').removeClass('error');
$('.last').next('span').addClass('hide');
}
if(email == ''){
$('#email').addClass('error');
$('#email').next('span').removeClass('hide');
}
else{
if (/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(email) == false) {
$('#email').addClass('error');
$('#email').next('span').removeClass('hide');
return false;
}else{
$('#email').removeClass('error');
$('#email').next('span').addClass('hide');
}
}
if(phone == ''){
$('.phone').addClass('error');
$('.phone').next('span').removeClass('hide');
}else{
$('.phone').removeClass('error');
$('.phone').next('span').addClass('hide');
}
if(message == ''){
$('.message').addClass('error');
$('.message').next('span').removeClass('hide');
}else{
$('.message').removeClass('error');
$('.message').next('span').addClass('hide');
}
//点击创建申请块
if(companyName && firstName && lastName && email && phone && message) {
$.ajax({
type: "POST",
url: "/index/bulk/inquiry",
data: {'company':companyName, 'url':url, 'email':email,'name':firstName,'last_name':lastName,'phone':phone,'interested':interesteds,'message':message,'refer':k_win_ref},
dataType: "json",
success: function(data){
if(data.code == 200) {
alert('信息已成功提交!');
$("input[ type='text']").val('');
$("input[ type='email']").val('');
$(":input[name='interested']").attr("checked",false);
$('.first').val('');
$('.companyName').val('');
$('.last').val('');
$('.phone').val('');
$('.message').val('');
$('.url').val('');
$('#email').val('');
}
else{
if(data.code == 403 || data.code == 201) {
alert(data.msg);
}
else{
$('.email').addClass('error');
$('.email').next('span').removeClass('hide');
}
}
}
});
}
})
})
</script>
<style>
.csunbmit{height: 35px;margin-top: 10px;margin-bottom: 5px;}
.submitBtn{width: 75px;height: 30px;line-height: 26px;background-color: #339b53;text-align: center;display: block; color: #FFFFFF;font-size: 12px;border-radius: 6px;float: left;}
.cli{border-bottom: 1px dashed #ccc;text-align: left;font-size: 12px;}
.ccontent{width: 98%;padding: 10px; background: #f6f9fb;border:1px solid #ccc;margin-bottom: 10px}
</style>
</body>
</html>

View File

@@ -0,0 +1,266 @@
<!DOCTYPE html>
<html lang="en">
<head>
{include file="include/head" /}
<meta charset="UTF-8">
<title>商务订单</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/cooperation.css">
</head>
<body style="background:#F2F2F2;">
{include file="include/top-head2023" /}
<!--Bult Buy-->
<div class="bdpage" >
<div class="bd_main bd_main1">
<h1 class="t1 sfbt1">批量购买</h1>
<!--内容-->
<div class="bd_ct ">
<div class="bd_from" style="padding: 0 300px;">
<div class="theit">
<div class="bditem">
<label class="itlable">公司名称<span class="redtag">*</span></label>
<input type="text" class="form-control itinp companyName" placeholder="法定营业名称" name="company" id="company">
</div>
</div>
<div class="theit">
<div class="bditem">
<label class="itlable">官方网站</label>
<input type="text" class="form-control itinp url" placeholder="请粘贴网址" name="url" id="url">
</div>
</div>
<div class="theit">
<div class="bditem">
<label class="itlable">姓名<span class="redtag">*</span></label>
<input type="text" class="form-control itinp first" placeholder="名" name="firstname" id="firstname">
</div>
<div class="bditem">
<label class="itlable">&nbsp;</label>
<input type="text" class="form-control itinp last" placeholder="姓" name="lastname" id="lastname">
</div>
</div>
<div class="theit">
<div class="bditem">
<label class="itlable">邮箱<span class="redtag">*</span></label>
<input type="email" class="form-control itinp email" name="email" id="email">
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">电话号码</label>
<input type="text" class="form-control itinp phone" name="phone" id="phone">
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">您对哪个产品品类感兴趣?</label>
<div class="sfbchecks">
<form class="sfbcheckboxlist" action="" method="get">
<label class="cit">
<input name="interested" type="checkbox" value="电脑配件" class="sfbcheckboxit">电脑配件
</label>
<label class="cit">
<input type="checkbox" value="手机配件" name="interested" class="sfbcheckboxit">手机配件</label>
<label class="cit">
<input type="checkbox" value="电子电工" name="interested" class="sfbcheckboxit">电子电工
</label>
<label class="cit">
<input type="checkbox" value="固态硬盘" name="interested" class="sfbcheckboxit">固态硬盘
</label>
<label class="cit">
<input type="checkbox" value="娱乐系列" name="interested" class="sfbcheckboxit">娱乐系列
</label>
<label class="cit">
<input type="checkbox" value="智能生活" name="interested" class="sfbcheckboxit">智能生活
</label>
<label class="cit">
<input type="checkbox" value="户外电源" name="interested" class="sfbcheckboxit">户外电源
</label>
</form>
</div>
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">留言<span class="redtag">*</span></label>
<textarea class="ittextarea ittextarea2 message" placeholder="留言"></textarea>
</div>
</div>
</div>
</div>
<!-- 提交-->
<div class="bttj">提交</div>
</div>
</div>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
<script>
try {
k_win_ref = window.parent.document.referrer;
} catch(e) {
k_win_ref = '';
};
/*弹出框关闭*/
$(function() {
// 输入框失去焦点
$('.companyName').blur(function(){
if($('.companyName').val() != ''){
$('.companyName').removeClass('error');
$('.companyName').next('span').addClass('hide');
}else{
$('.companyName').addClass('error');
$('.companyName').next('span').removeClass('hide');
}
})
$('.first').blur(function(){
if($('.first').val() != ''){
$('.first').removeClass('error');
$('.first').next('span').addClass('hide');
}else{
$('.first').addClass('error');
$('.first').next('span').removeClass('hide');
}
})
$('.last').blur(function(){
if($('.last').val() != ''){
$('.last').removeClass('error');
$('.last').next('span').addClass('hide');
}else{
$('.last').addClass('error');
$('.last').next('span').removeClass('hide');
}
})
$('.email').blur(function(){
if($('.email').val() != ''){
$('.email').removeClass('error');
$('.email').next('span').addClass('hide');
}else{
$('.email').addClass('error');
$('.email').next('span').removeClass('hide');
}
})
$('.phone').blur(function(){
if($('.phone').val() != ''){
$('.phone').removeClass('error');
$('.phone').next('span').addClass('hide');
}else{
$('.phone').addClass('error');
$('.phone').next('span').removeClass('hide');
}
})
$('.message').blur(function(){
if($('.message').val() != ''){
$('.message').removeClass('error');
$('.message').next('span').addClass('hide');
}else{
$('.message').addClass('error');
$('.message').next('span').removeClass('hide');
}
})
// 提交表单
$('.bttj').click(function(){
var companyName = $('.companyName').val();
var firstName = $('.first').val();
var lastName = $('.last').val();
var email = $('.email').val();
var phone = $('.phone').val();
var message = $('.message').val();
var url = $('.url').val();
var checkItem = new Array();
$("input[name='interested']:checked").each(function() {
    checkItem.push($(this).val());// 在数组中追加元素
});
var interesteds = checkItem.join(",");
var inventory = $("input[name='inventory']:checked").val();
if(companyName == ''){
$('.companyName').addClass('error');
$('.companyName').next('span').removeClass('hide');
}
if(firstName == ''){
$('.first').addClass('error');
$('.first').next('span').removeClass('hide');
}
if(lastName == ''){
$('.last').addClass('error');
$('.last').next('span').removeClass('hide');
}
if(email == ''){
$('#email').addClass('error');
$('#email').next('span').removeClass('hide');
}
else{
if (/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(email) == false) {
$('#email').addClass('error');
$('#email').next('span').removeClass('hide');
}
}
if(phone == ''){
$('.phone').addClass('error');
$('.phone').next('span').removeClass('hide');
}
if(message == ''){
$('.message').addClass('error');
$('.message').next('span').removeClass('hide');
}
//点击创建申请块
if(companyName && firstName && lastName && email && phone && message) {
$.ajax({
type: "POST",
url: "/us/bulk_inquiry/create",
data: {'company':companyName, 'url':url, 'email':email,'name':firstName,'last_name':lastName,'phone':phone,'interested':interesteds,'message':message,'refer':k_win_ref},
dataType: "json",
success: function(data){
if(data.code == 200) {
//alert(data.msg);
$("input[ type='text']").val('');
$(":input[name='interested']").attr("checked",false);
$('.region').val('');
location.href = '/us/Group/submission.html';
}
else{
if(data.code == 403 || data.code == 201) {
alert(data.msg);
}
else{
$('.email').addClass('error');
$('.email').next('span').removeClass('hide');
}
}
}
});
}
})
})
</script>
<style>
.csunbmit{height: 35px;margin-top: 10px;margin-bottom: 5px;}
.submitBtn{width: 75px;height: 30px;line-height: 26px;background-color: #339b53;text-align: center;display: block; color: #FFFFFF;font-size: 12px;border-radius: 6px;float: left;}
.cli{border-bottom: 1px dashed #ccc;text-align: left;font-size: 12px;}
.ccontent{width: 98%;padding: 10px; background: #f6f9fb;border:1px solid #ccc;margin-bottom: 10px}
</style>
</body>
</html>

View File

@@ -0,0 +1,271 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>萤火虫系列_特色专题产品_ORICO/奥睿科官网</title>
<meta name="Keywords" content="萤火虫系列" />
<meta name="Description" content="萤火虫系列" />
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/charger.css">
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
<!--top End-->
<div class="img-responsive position-r">
<img src="__PUBLIC__/web/images/charger/charger-banner.jpg">
<div class="charger_01">
<div class="swt-Container">
<p class="title">差旅搭档</p>
<p class="text">美好旅途,从满满的电量开始</p>
</div>
</div>
</div>
<!--视频-->
<div class="position-r charger_02_bg">
<div class="charger_02 charger_alltext">
<div class="swt-Container">
<div class="charger_black left ">
<p class="charger_title">薄轻颜美<br>电快量足</p>
<p class="charger_subtitle">你旅途中的小确幸</p>
<p class="charger_text"><span class="subject_span_margin">手机功能越来越丰富,体积越来越轻薄,作为强力的续航后盾——移动电源在生活中充当的角色也越来越重要。</span><br>
轻薄无负的出行快感,单手可握的舒适手感,畅玩一周的饱满电量,以及即刻充满速度,让你对每一次出行,都充满了活力与期待。</p>
</div>
<div class="right img-responsive">
<img src="__PUBLIC__/web/images/charger/charger_02_video.jpg">
<video height="100%" controls poster="__PUBLIC__/web/images/charger/charger_02_video.jpg">
<source src="__PUBLIC__/web/images/charger/ORICO-K10P20P.mp4">
您的浏览器不支持 video 标签。
Your browser does not support HTML5 video.
</video>
</div>
</div>
</div>
</div>
<!--产品-->
<div class="charger_03">
<div class="swt-Container">
<ul class="img-responsive">
<li>
<img src="__PUBLIC__/web/images/charger/charger-YC10.jpg">
<div class="title">YC10</div>
<div class="charger_buy">
<div class="charger_buy_button">
<a href="https://detail.tmall.com/item.htm?id=581989383065" target="_blank">天猫购买</a>
<a href="https://item.jd.com/36818723893.html" target="_blank">京东购买</a>
</div>
</div>
</li>
<li>
<img src="__PUBLIC__/web/images/charger/charger-M10.jpg">
<div class="title">M10</div>
<div class="charger_buy">
<div class="charger_buy_button">
<a href="https://detail.tmall.com/item.htm?id=581626046679" target="_blank">天猫购买</a>
<a href="https://item.jd.com/36419513320.html" target="_blank">京东购买</a>
</div>
</div>
</li>
<li>
<img src="__PUBLIC__/web/images/charger/charger-W10000.jpg">
<div class="title">W10000</div>
<div class="charger_buy">
<div class="charger_buy_button">
<a href="https://detail.tmall.com/item.htm?id=579053338659" target="_blank">天猫购买</a>
<a href="https://item.jd.com/34136415732.html" target="_blank">京东购买</a>
</div>
</div>
</li>
<li>
<img src="__PUBLIC__/web/images/charger/charger-S5.jpg">
<div class="title">S5</div>
<div class="charger_buy">
<div class="charger_buy_button">
<a href="https://detail.tmall.com/item.htm?id=578664375404" target="_blank">天猫购买</a>
<a href="https://item.jd.com/33748667556.html" target="_blank">京东购买</a>
</div>
</div>
</li>
</ul>
</div>
</div>
<!--第四屏-->
<div class="charger_04 img-responsive">
<div class="charger_04_PC">
<img src="__PUBLIC__/web/images/charger/charger-04.jpg">
</div>
<div class="charger_04_M">
<img src="__PUBLIC__/web/images/charger/charger-04-product.jpg">
</div>
<div class="text">
<div class="swt-Container">
<div class="charger_04_word">
<p class="charger_title">萤之光系列</p>
<p class="charger_subtitle">流萤之光,点亮黑暗</p>
<p class="charger_text">ORICO在移动电源电量显示灯上别出心裁加入了可爱的萤火虫设计元素让美感与光感相互融合尤其在光线较弱的黑夜中手中的移动电源宛若一只闪烁微光的萤火虫为你点亮黑夜指引方向。</p>
</div>
</div>
</div>
<div class="all_text">
<div class="swt-Container">
<ul class="img-responsive">
<li>
<img src="__PUBLIC__/web/images/charger/charger-K10000.jpg">
<div class="title">K10000</div>
<div class="charger_buy">
<div class="charger_buy_button">
<a href="https://detail.tmall.com/item.htm?id=564324743677" target="_blank">天猫购买</a>
<a href="https://item.jd.com/27427030780.html" target="_blank">京东购买</a>
</div>
</div>
</li>
<li>
<img src="__PUBLIC__/web/images/charger/charger-C20.jpg">
<div class="title">C20</div>
<div class="charger_buy">
<div class="charger_buy_button">
<a href="https://detail.tmall.com/item.htm?id=582121176718" target="_blank">天猫购买</a>
<a href="https://item.jd.com/37256217725.html" target="_blank">京东购买</a>
</div>
</div>
</li>
<li>
<img src="__PUBLIC__/web/images/charger/charger-M6.jpg">
<div class="title">M6</div>
<div class="charger_buy">
<div class="charger_buy_button">
<a href="https://detail.tmall.com/item.htm?id=581626046679" target="_blank">天猫购买</a>
<a href="https://item.jd.com/36404611548.html" target="_blank">京东购买</a>
</div>
</div>
</li>
<li>
<img src="__PUBLIC__/web/images/charger/charger-C10.jpg">
<div class="title">C10</div>
<div class="charger_buy">
<div class="charger_buy_button">
<a href="https://detail.tmall.com/item.htm?id=582121176718" target="_blank">天猫购买</a>
<a href="https://item.jd.com/37256217724.html" target="_blank">京东购买</a>
</div>
</div>
</li>
<li>
<img src="__PUBLIC__/web/images/charger/charger-K10S.jpg">
<div class="title">K10S</div>
<div class="charger_buy">
<div class="charger_buy_button">
<a href="https://detail.tmall.com/item.htm?id=584178569065" target="_blank">天猫购买</a>
<a href="https://item.jd.com/39884105206.html" target="_blank">京东购买</a>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
<!--第五屏-->
<div class="charger_05 img-responsive">
<img src="__PUBLIC__/web/images/charger/charger-05.jpg">
<div class="all_text">
<div class="swt-Container">
<div class="title">移动电源+无线充<br>合二为一</div>
<div class="sub_title">冲破传统与技术的桎梏</div>
<div class="des"><span class="subject_span_margin">在未来充电的方式应该多元化不断推陈出新探索未来的各种可能性才能预见未来。而ORICO在创新的道路上已经成功的迈出了一小步。</span><br>
<p>我们整合了市面上两种主流的充电方案,将移动充电和无线充电合二为一,同时具备外出移动充电的续航,也拥有无线充电的便捷。</div>
</div>
</div>
</div>
<!--第六屏-->
<div class="charger_06">
<div class="swt-Container">
<div class="center_M">
<p class="main_title">多重快充模式合体<br>智能切换</p>
<p class="sub_title">18W电力传输不想等就要快</p>
<p class="des">支持PD3.0/QC3.0等七大主流快充协议能够为三星、华为、小米、苹果等智能手机自动适配合适的快充模式并支持5V3A、9V2A、12V1.5A(18W Max)三种快充功率边玩边充,轻松满电,开启全家人的数码快充新体验。</p>
</div>
</div>
<div class="charger_06_bg">
<div class="all">
<div class="swt-Container">
<div class="all_text">
<div class="center">
<p class="main_title">多重快充模式合体<br>智能切换</p>
<p class="sub_title">18W电力传输不想等就要快</p>
<p class="des">支持PD3.0/QC3.0等七大主流快充协议能够为三星、华为、小米、苹果等智能手机自动适配合适的快充模式并支持5V3A、9V2A、12V1.5A(18W Max)三种快充功率边玩边充,轻松满电,开启全家人的数码快充新体验。</p>
</div>
<p class="img-responsive all_img"><img src="__PUBLIC__/web/images/charger/charger_06_logo.jpg"></p>
<ul>
<li class="img-responsive">
<img src="__PUBLIC__/web/images/charger/charger-06-K10000.jpg">
<div class="title">K10000</div>
<div class="charger_buy">
<div class="charger_buy_button">
<a href="https://detail.tmall.com/item.htm?id=564324743677" target="_blank">天猫购买</a>
<a href="https://item.jd.com/27427030780.html" target="_blank">京东购买</a>
</div>
</div>
</li>
<li class="img-responsive">
<img src="__PUBLIC__/web/images/charger/charger-06-K20P.jpg">
<div class="title">K20P</div>
<div class="charger_buy">
<div class="charger_buy_button">
<a href="https://detail.tmall.com/item.htm?id=581820256991" target="_blank">天猫购买</a>
<a href="https://item.jd.com/36998885380.html" target="_blank">京东购买</a>
</div>
</div>
</li>
</ul>
</div>
</div>
<!--<div class="all">
<div class="swt-Container">
<div class="all_text">
<p class="main_title">多重快充模式合体<br>智能切换</p>
<p class="sub_title">18W电力传输不想等就要快</p>
<p class="des">支持PD3.0/QC3.0等七大主流快充协议能够为三星、华为、小米、苹果等智能手机自动适配合适的快充模式并支持5V3A、9V2A、12V1.5A(18W Max)三种快充功率边玩边充,轻松满电,开启全家人的数码快充新体验。</p>
<p class="img-responsive all_img"><img src="__PUBLIC__/web/images/charger/charger_06_logo.jpg"></p>
<ul>
<li class="img-responsive">
<img src="__PUBLIC__/web/images/charger/charger-06-K10000.jpg">
<div class="title">YC10</div>
<div class="charger_buy">
<div class="charger_buy_button">
<a href="">天猫购买</a>
<a href="">京东购买</a>
</div>
</div>
</li>
<li class="img-responsive">
<img src="__PUBLIC__/web/images/charger/charger-06-C20.jpg">
<div class="title">YC10</div>
<div class="charger_buy">
<div class="charger_buy_button">
<a href="">天猫购买</a>
<a href="">京东购买</a>
</div>
</div>
</li>
</ul>
</div>
</div>-->
</div>
<div class="charger_06_img_M img-responsive"><img src="__PUBLIC__/web/images/charger/charger-06-M.jpg"></div>
</div>
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,238 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>客户服务</title>
{include file="include/head" /}
<style type="text/css">
*{
margin: 0;
padding: 0;
}
.narskfPage {
width: 100%;
height: 100%;
background: #F5F5F5;
display: flex;
flex-direction: column;
align-items: center;
overflow-y: auto;
}
.narskfPage .narskf-content {
display: flex;
flex-direction: column;
margin: 0 auto;
padding-top: 3.5rem;
padding-bottom: 9.25rem;
}
.narskfPage .narskf-content .narskf-ct-row {
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-between;
}
.narskfPage .narskf-content .narskf-ct-row .narskfit {
width: 18rem;
height: 17.25rem;
border-radius: 0.125rem;
margin-right: 1rem;
margin-bottom: 1rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: #fff;
cursor: pointer;
position: relative;
}
.narskfPage .narskf-content .narskf-ct-row .narskfit .narskf-title {
color: #262626;
font-size: 1.125rem;
padding-top: 1.6875rem;
padding-bottom: 0.375rem;
}
.narskfPage .narskf-content .narskf-ct-row .narskfit .narskf-sm {
color: #9a9a9a;
font-size: 1rem;
}
.narskfPage .narskf-content .narskf-ct-row .narskfit .narskf-font-26 {
color: #262626 !important;
}
.narskfPage .narskf-content .narskf-ct-row .narskfit .narskico-img {
width: 3.75rem;
height: 3.75rem;
}
.narskfPage .narskf-content .narskf-ct-row .narskfit .narskfactive-ewm {
width: 100%;
height: 100%;
position: absolute;
top: 0;
z-index: 1;
display: none;
align-items: center;
justify-content: center;
}
.narskfPage .narskf-content .narskf-ct-row .narskfit .narskfactive-ewm .narskfactiveimg {
width: 11rem;
width: 11rem;
position: absolute;
}
.narskfPage .narskf-content .narskf-ct-row .narskfit2 {
width: 37rem;
height: 11.25rem;
flex-direction: row;
}
.narskfPage .narskf-content .narskf-ct-row .narskfit2 .narskico-img {
margin-right: 1.5rem;
}
.narskfPage .narskf-content .narskf-ct-row .narskfit2 .narskfit2-ct {
display: flex;
flex-direction: column;
text-align: left;
}
.narskfPage .narskf-content .narskf-ct-row .narskfit2 .narskfit2-ct .narskf-title {
padding-top: 0;
font-size: 1.5rem;
padding-bottom: 0.375rem;
}
.narskfPage .narskf-content .narskf-ct-row .narskfit2 .narskfit2-ct .narskf-sm {
font-size: 1.25rem;
color: #9A9A9A;
}
.narskfPage .narskf-content .narskf-ct-row .narskfit:last-child {
margin-right: 0rem;
}
.narskfPage .narskf-content .narskf-ct-row .narskfit:hover .narskfactive-ewm {
display: flex;
}
</style>
</head>
<body class="bg-gray">
{include file="include/top-head2023" /}
<!--banner-->
<div class="Swt-Banner position-r" >
<img src="/uploads/nas/contact.jpg" alt="" style="margin-top: 60px;;"/>
<!--<div class="banner_title">CONTACT US</div>-->
</div>
<!--banner-->
<!--内容-->
<div class="narskfPage">
<div class="narskf-content">
<div class="narskf-ct-row">
<div class="narskfit">
<img src="__PUBLIC__/web/images/contact_new/wx-ico.png" class="narskico-img" />
<span class="narskf-title">{$data[0]['name']}</span>
<span class="narskf-sm">{$data[0]['desc']}</span>
<div class="narskfactive-ewm">
<img src="{$data[0]['picture']|getImage}" class="narskfactiveimg" />
</div>
</div>
<div class="narskfit">
<img src="__PUBLIC__/web/images/contact_new/wx-ico.png" class="narskico-img" />
<span class="narskf-title">{$data[1]['name']}</span>
<span class="narskf-sm">{$data[1]['desc']}</span>
<div class="narskfactive-ewm">
<img src="{$data[1]['picture']|getImage}" class="narskfactiveimg" />
</div>
</div>
<div class="narskfit">
<img src="__PUBLIC__/web/images/contact_new/phone-ico.png" class="narskico-img" />
<span class="narskf-title">{$data[3]['name']}</span>
<span class="narskf-sm narskf-font-26">{$data[3]['desc']}</span>
</div>
<div class="narskfit">
<img src="__PUBLIC__/web/images/contact_new/narsewmsc.png" class="narskico-img" />
<span class="narskf-title">{$data[2]['name']}</span>
<span class="narskf-sm">{$data[2]['desc']}</span>
<div class="narskfactive-ewm">
<img src="{$data[2]['picture']|getImage}" class="narskfactiveimg" />
</div>
</div>
</div>
<div class="narskf-ct-row">
<div class="narskfit">
<img src="__PUBLIC__/web/images/contact_new/wx-ico.png" class="narskico-img" />
<span class="narskf-title">{$data[4]['name']}</span>
<div class="narskfactive-ewm">
<img src="{$data[4]['picture']|getImage}" class="narskfactiveimg" />
</div>
</div>
<div class="narskfit">
<img src="__PUBLIC__/web/images/contact_new/sph-ico.png" class="narskico-img" />
<span class="narskf-title">{$data[5]['name']}</span>
<div class="narskfactive-ewm">
<img src="{$data[5]['picture']|getImage}" class="narskfactiveimg" />
</div>
</div>
<div class="narskfit">
<img src="__PUBLIC__/web/images/contact_new/wx-ico.png" class="narskico-img" />
<span class="narskf-title">{$data[6]['name']}</span>
<div class="narskfactive-ewm">
<img src="{$data[6]['picture']|getImage}" class="narskfactiveimg" />
</div>
</div>
<div class="narskfit">
<img src="__PUBLIC__/web/images/contact_new/sph-ico.png" class="narskico-img" />
<span class="narskf-title">{$data[7]['name']}</span>
<div class="narskfactive-ewm">
<img src="{$data[7]['picture']|getImage}" class="narskfactiveimg" />
</div>
</div>
</div>
<div class="narskf-ct-row">
<div class="narskfit" onclick="location.href='{$data[8]['link']}'">
<img src="__PUBLIC__/web/images/contact_new/wb-ico.png" class="narskico-img" />
<span class="narskf-title">{$data[8]['name']}</span>
</div>
<div class="narskfit" onclick="location.href='{$data[9]['link']}'">
<img src="__PUBLIC__/web/images/contact_new/dy-ico.png" class="narskico-img" />
<span class="narskf-title">{$data[9]['name']}</span>
</div>
<div class="narskfit" onclick="location.href='{$data[10]['link']}'">
<img src="__PUBLIC__/web/images/contact_new/xhs-ico.png" class="narskico-img" />
<span class="narskf-title">{$data[10]['name']}</span>
</div>
<div class="narskfit" onclick="location.href='{$data[11]['link']}'">
<img src="__PUBLIC__/web/images/contact_new/tt-ico.png" class="narskico-img" />
<span class="narskf-title">{$data[11]['name']}</span>
</div>
</div>
<div class="narskf-ct-row">
<div class="narskfit narskfit2">
<img src="__PUBLIC__/web/images/contact_new/sh-ico.png" class="narskico-img" />
<div class="narskfit2-ct">
<span class="narskf-title">{$data[12]['name']}</span>
<span class="narskf-sm">{$data[12]['desc']}</span>
</div>
</div>
<div class="narskfit narskfit2">
<img src="__PUBLIC__/web/images/contact_new/yj-ico.png" class="narskico-img" />
<div class="narskfit2-ct">
<span class="narskf-title">{$data[13]['name']}</span>
<span class="narskf-sm">{$data[13]['desc']}</span>
</div>
</div>
</div>
</div>
</div>
<!--内容-->
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
<script type="text/javascript">
// $(document).ready(function() {
// $('.narskfit').on('click', function() {
// var $ewm = $(this).find('.narskfactive-ewm');
// if ($ewm.css('display') === 'none') {
// $ewm.css('display', 'flex');
// } else {
// $ewm.css('display', 'none');
// }
// });
// });
</script>
</body>
</html>

View File

@@ -0,0 +1,210 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>联系我们</title>
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/subject/contact.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/montserrat.css">
<style>
.text_blue {
color: #004BFA
}
.become_dis {
padding-bottom: 26px;
margin-bottom: 40px;
}
</style>
</head>
<body class="bg-gray">
{include file="include/top-head2023" /}
<!--banner-->
<div class="Swt-Banner position-r">
<img src="__PUBLIC__/web/images/indeximage/1550-500-1.jpg" alt="" />
<!--<div class="banner_title">CONTACT US</div>-->
</div>
<!--banner-->
<!--内容-->
<div class="contact_c">
<div class="all_contact">
<!--信息-->
<div class="info">
<div class="title">
我们的信息
</div>
<div class="info_all">
<div class="list">
<div class="list_img"><img src="__PUBLIC__/weben/images/contact/contact_icon01.png" alt="" />
</div>
<div class="list_right">
<div class="des" style="">中国广东省深圳市龙岗区中海信创业园14A栋19层</div>
</div>
</div>
<div class="list">
<div class="list_img"><img src="__PUBLIC__/weben/images/contact/contact_icon02.png" alt="" />
</div>
<div class="sub_list">
<div class="title">售后信箱:</div>
<div class="des">supports@oricotechs.com</div>
</div>
<!--<div class="sub_list">-->
<!-- <div class="title">订单咨询:</div>-->
<!-- <div class="des">wholesale@oricotechs.com</div>-->
<!--</div>-->
</div>
<div class="list">
<div class="list_img"><img src="__PUBLIC__/weben/images/contact/contact_icon03.png" alt="" />
</div>
<div class="">
<div class="title">周一 至 周五:</div>
<div class="des">东部时间 9:00 - 18:00</div>
</div>
</div>
</div>
</div>
<!--问题-->
<div class="question">
<div class="title">
提交您的问题
</div>
<div class="question_form">
<div class="list">
<div class="title">名字</div>
<div class="form_input"><input name="sn" id="sn" placeholder="请输入你的名字"></div>
</div>
<div class="list">
<div class="title">邮箱 <span class="f_red">*</span></div>
<div class="form_input"><input name="sn" id="sn" placeholder="请输入你的邮箱"></div>
</div>
<div class="list">
<div class="title">你的问题 <span class="f_red">*</span></div>
<div class="form_input">
<textarea rows="6" name="message" id="message" placeholder="请输入你的问题"></textarea>
</div>
</div>
<div class="list">
<div class="contact_button">发送</div>
</div>
</div>
</div>
</div>
<!--Become a Distributor-->
<div class="become_dis">
<a href="__ORICOROOT__/index/Group/distributor2023" class="text_blue ">成为经销商</a>
</div>
<!--Become a Distributor-->
</div>
<!--内容-->
<script type="text/javascript">
$(function() {
// 提交表单
$('.submit_btn').click(function() {
var companyName = $('#companyName').val();
var firstName = $('#firstname').val();
var lastName = $('#lastname').val();
var email = $('#emails').val();
var phone = $('#phone').val();
var country = $('#country').val();
var interested = $('#interested').val();
var message = $('#message').val();
if (companyName == '') {
$('#companyName').addClass('error');
$('#companyName').next('span').removeClass('hide');
}
if (firstName == '') {
$('#firstname').addClass('error');
$('#firstname').next('span').removeClass('hide');
}
if (lastName == '') {
$('#lastname').addClass('error');
$('#lastname').next('span').removeClass('hide');
}
if (phone == '') {
$('#phone').addClass('error');
$('#phone').next('span').removeClass('hide');
}
if (email == '') {
$('#emails').addClass('error');
$('#emails').next('span').removeClass('hide');
}
if (interested == '') {
$('#interested').addClass('error');
$('#interested').next('span').removeClass('hide');
}
if (message == '') {
$('#message').addClass('error');
$('#message').next('span').removeClass('hide');
}
if (country == '') {
$('#country').addClass('error');
$('#country').next('span').removeClass('hide');
}
if (message == '') {
$('#message').addClass('error');
$('#message').next('span').removeClass('hide');
}
//点击创建申请块
if (companyName && firstName && lastName && email && phone && country && interested && message) {
var type = 'Agent';
$.ajax({
type: "POST",
url: "/us/bulk/create",
data: {
'company': companyName,
'email': email,
'country': country,
'name': firstName,
'last_name': lastName,
'phone': phone,
'interested': interested,
'message': message
},
dataType: "json",
success: function(data) {
if (data.code == 200) {
alert(data.msg);
$(".marsk-container").hide();
$("input[ type='text']").val('');
$('#country').val('');
$('#interested').val('');
$('#message').val('');
} else {
if (data.code == 403 || data.code == 201) {
alert(data.msg);
} else {
$('.email').addClass('error');
$('.email').next('span').removeClass('hide');
}
}
}
});
}
})
});
</script>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,193 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>联系我们</title>
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/cooperation.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/subject/contact.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/montserrat.css">
<style>
.text_blue {
color: #004BFA
}
.become_dis {
padding-bottom: 26px;
margin-bottom: 40px;
}
</style>
</head>
<body class="bg-gray">
{include file="include/top-head2023" /}
<!--banner-->
<div class="Swt-Banner position-r">
<img src="__PUBLIC__/web/images/indeximage/1550-500-1.jpg" alt="" />
<!--<div class="banner_title">CONTACT US</div>-->
</div>
<!--banner-->
<!--内容-->
<div class="contact_c">
<div class="all_contact">
<!--信息-->
<div class="info">
<div class="title">
我们的信息
</div>
<div class="info_all">
<div class="list">
<div class="list_img"><img src="__PUBLIC__/weben/images/contact/contact_icon01.png" alt="" />
</div>
<div class="list_right">
<div class="des" style="">中国广东省深圳市龙岗区中海信创业园14A栋19层</div>
</div>
</div>
<div class="list">
<div class="list_img"><img src="__PUBLIC__/weben/images/contact/contact_icon02.png" alt="" />
</div>
<div class="sub_list">
<div class="title">售后信箱:</div>
<div class="des">supports@oricotechs.com</div>
</div>
<!--<div class="sub_list">-->
<!-- <div class="title">订单咨询:</div>-->
<!-- <div class="des">wholesale@oricotechs.com</div>-->
<!--</div>-->
</div>
<div class="list">
<div class="list_img"><img src="__PUBLIC__/weben/images/contact/contact_icon03.png" alt="" />
</div>
<div class="">
<div class="title">周一 至 周五:</div>
<div class="des">东部时间 9:00 - 18:00</div>
</div>
</div>
</div>
</div>
<!--问题-->
<div class="question">
<div class="title">
提交您的问题
</div>
<div class="question_form">
<div class="list">
<div class="title">名字<span class="f_red">*</span></div>
<div class="form_input"><input name="username" id="username" placeholder="请输入你的名字" class="form-control itinp"></div>
</div>
<div class="list">
<div class="title">邮箱 <span class="f_red">*</span></div>
<div class="form_input"><input name="email" id="email" placeholder="请输入你的邮箱" class="form-control itinp"></div>
</div>
<div class="list">
<div class="title">你的问题 <span class="f_red">*</span></div>
<div class="form_input">
<textarea rows="6" name="message" id="message" class="ittextarea message" placeholder="请输入你的问题"></textarea>
</div>
</div>
<div class="list">
<div class="contact_button">发送</div>
</div>
</div>
</div>
</div>
<!--Become a Distributor-->
<div class="become_dis">
<a href="__ORICOROOT__/index/Group/distributor" class="text_blue ">成为经销商</a>
</div>
<!--Become a Distributor-->
</div>
<!--内容-->
<script type="text/javascript">
$(function() {
// 提交表单
$('.contact_button').click(function() {
var username = $('#username').val();
var email = $('#email').val();
var message = $('#message').val();
if (username == '') {
$('#username').addClass('error');
$('#username').next('span').removeClass('hide');
}else{
$('#username').removeClass('error');
$('#username').next('span').addClass('hide');
}
if (email == '') {
$('#email').addClass('error');
$('#email').next('span').removeClass('hide');
}
else{
if (/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(email) == false) {
$('#email').addClass('error');
$('#email').next('span').removeClass('hide');
return false;
}
else{
$('#email').removeClass('error');
$('#email').next('span').addClass('hide');
}
}
if (message == '') {
$('#message').addClass('error');
$('#message').next('span').removeClass('hide');
}else{
$('#message').removeClass('error');
$('#message').next('span').addClass('hide');
}
//点击创建申请块
if (username && email && message) {
var type = 'Agent';
$.ajax({
type: "POST",
url: "/index/bulk/create",
data: {
'username': username,
'email': email,
'message': message
},
dataType: "json",
success: function(data) {
if (data.code == 200) {
alert('信息已成功提交!');
$(".marsk-container").hide();
$("input[ type='text']").val('');
$('#username').val('');
$('#email').val('');
$('#message').val('');
} else {
if (data.code == 403 || data.code == 201) {
alert(data.msg);
} else {
$('.email').addClass('error');
$('.email').next('span').removeClass('hide');
}
}
}
});
}
})
});
</script>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,88 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>文化与价值观_ORICO/奥睿科</title>
<meta name="Keywords" content="文化与价值观企业创新公司实力ORICO" />
<meta name="Description" content="元创坚持“四位一体”的企业价值观,传播正能量" />
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/culture.css">
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
<!--top End-->
<div class="img-responsive position-r">
<img src="__PUBLIC__/web/images/culture/culture-banner.jpg">
<div class="culture_new_banner">
<div class="swt-Container">
<div class="title">“创新 极致 尊严 大爱 健康 快乐”</div>
<div class="des">每一个词都是元创的每一名员工所推崇的精神,也是集团<br>
希望为员工所营造的环境,也能让用户和伙伴感知。</div>
</div>
</div>
</div>
<!--文化与价值观-->
<div class="culture_new">
<div class="swt-Container">
<div class="text-c title">文化与价值观</div>
<div class="des text-c">元创坚持“四位一体”的企业价值观,体现在四个方面:满足客户的需求,帮助员工成就价值,不负投资人的期望与信赖,尽能力承担起社会责任,传播正能量。具体如下:</div>
<div class="swt-Table">
<ul class="Table-Row">
<li class="img-responsive Table-Cell">
<img src="__PUBLIC__/web/images/culture/culture-01.jpg">
<p class="list-title">成就客户</p>
<p class="list-des">以客户本质需求为导向,为客户创造价值,洞察和深入挖掘消费者的需求本质,改变不合理的生活现状,提供更合适的解决方案,更好的选择持续创新,提供高品质产品持续优化降低成本</p>
</li>
<li class="R-margin Table-Cell"></li>
<li class="img-responsive Table-Cell">
<img src="__PUBLIC__/web/images/culture/culture-02.jpg">
<p class="list-title">成就员工</p>
<p class="list-des">对员工的成长与人生价值与梦想的实现负责,建立公平合理及奖惩分明的平台与机制,人尽其才;激发员工在岗的主人翁意识,主动追求与打造自己,不断突破自我,自信自强健康的追求更好生活。</p>
</li>
<li class="R-margin Table-Cell"></li>
<li class="img-responsive Table-Cell">
<img src="__PUBLIC__/web/images/culture/culture-03.jpg">
<p class="list-title">社会责任</p>
<p class="list-des">为社会健康发展出力,无论是从事的产品,还是做事的精神,都要起到正面积极的作用 遵纪守法,保护环境,敬党爱国,抵制不正之风尊重合作伙伴的利益。</p>
</li>
</ul>
</div>
</div>
</div>
<div class="culture_new_gray">
<div class="swt-Container center_bg">
<div class="right">
<img src="__PUBLIC__/web/images/culture/culture-04.jpg">
</div>
<div class="left">
<div class="content">
<p class="title"><span>成就投资人</span>心愿</p>
<p class="subtitle">共同创造社会价值和获取相应的合理回报必须为企业创新做投资储备必须为企业发展做风险(内、外)储备。同时,在元创的企业文化中的六个词“创新,极致,尊严,大爱,健康,快乐”。
<p class="des">“创新”:是厚积薄发,不畏挑战的企业核心竞争力;<br>
“极致”:是坚持不懈,探索与突破的力量源泉;<br>
“尊严”:是竭诚相待,敬贤礼士的人才储备;<br>
“大爱”:是厚德载物,以成长与未来为目标的无私;<br>
“健康”:是生生不息,蓬勃发展的坚实基础;<br>
“快乐”:是平安喜乐,其乐融融的文化氛围。<br>
每一个词都是元创的每一名员工所推崇的精神,也是集团希望为员工所营造的环境,也能让用户和伙伴感知。</p>
</div>
</div>
</div>
</div>
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>海量产品成本价任选,支持定制|orico</title>
<meta name="Keywords" content="定制,低价" />
<meta name="Description" content="orico海量产品成本价任选支持100个起定制,欢迎咨询客服电话400-6696-298" />
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/honor.css">
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
<!--top End-->
<div class="img-responsive">
<img src="__PUBLIC__/web/images/customized/customized-banner.jpg"></br>
<img src="__PUBLIC__/web/images/customized/customized-01.jpg"></br>
<img src="__PUBLIC__/web/images/customized/customized-02.jpg"></br>
<img src="__PUBLIC__/web/images/customized/customized-03.jpg"></br>
<img src="__PUBLIC__/web/images/customized/customized-04.jpg"></br>
<img src="__PUBLIC__/web/images/customized/customized-05.jpg"></br>
<a href="/"><img src="__PUBLIC__/web/images/customized/customized-06.jpg"></a></br>
</div>
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,156 @@
<!DOCTYPE html>
<html lang="en">
<head>
{include file="include/head" /}
<meta charset="UTF-8">
<title>ORICO十周年</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/decennial.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/scripts/bxslider/jquery.bxslider.css">
<script type="text/javascript" src="__PUBLIC__/web/scripts/bxslider/jquery.bxslider.min.js"></script>
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
{include file="include/top-header-mobile" /}
<!--top End-->
<!--Banner-->
<div class="Swt-Banner"><img src="__PUBLIC__/web/images/decennial/ten_banner.jpg"></div>
<!--第二屏-->
<div class="ten_02_bg img-responsive">
<div class="ten_02">
<div class="swt-Container">
<div class="ten_title text-c f-black f_weight_600">十年创研,点滴在心</div>
<div class="img-responsives"><img src="__PUBLIC__/web/images/decennial/ten_02.png"></div>
</div>
</div>
</div>
<!--第三屏-->
<div class="img-responsive ten_three">
<div class="ten_subtitle text-c f-black f_weight_600">十载风雨同舟,莫失莫忘</div>
<div class="ten_des text-c f-gray padding-t-5vw">元创的十年发展征途,也可谓荆棘重重、处处充满挑战,但是我们身后,始终有这么一群人,我们要淌水,他们帮我们造船、我们要爬山,他们为我们结绳。十年风雨同舟,感恩一路相随。</div>
<div class="ten_video img-responsives">
<div class="video-index-image">
<img src="__PUBLIC__/web/images/decennial/ten_03.jpg">
<div class="index-video-content">
<video controls poster="__PUBLIC__/web/images/decennial/ten_03.jpg" width="100%">
<source src="__PUBLIC__/web/images/decennial/ten_video.mp4" type="video/mp4">
您的浏览器不支持 video 标签。
Your browser does not support HTML5 video.
</video>
</div>
</div>
</div>
</div>
<!--10年新起航-->
<div class="swt-Container">
<div class="ten_subtitle text-c f-black f_weight_600 padding-t-48vw">10年新起航</div>
<div class="ten_des text-c f-gray">品牌专注于USB技术周边产品研发与生产主要包括USB数据传输技术、Type-C技术运用、USB电力传输技术等的实际应用目前品牌已经布局全新品类线包括备份宝、雷电3、固态存储等未来这几大板块也将是品牌的着力点。</div>
<div class="img-responsive margin-t-15vw"><img src="__PUBLIC__/web/images/decennial/ten04.jpg"></div>
</div>
<!--小改变 大不同-->
<div class="swt-Container">
<div class="ten_subtitle text-c f-black f_weight_600 padding-t-48vw">小改变 大不同</div>
<div class="ten_des text-c f-black" style="margin-top:-0.5vw;">Little changebig difference</div>
<div class="ten_des text-c f-gray padding-t-5vw">全新品牌理念以不断累积小改变的方式去探索与创造体验的大不同。以全新升级的VI视觉全面呈现品牌未来的产品布局。
</div>
<div class="img-responsive margin-t-15vw position-r">
<img src="__PUBLIC__/web/images/decennial/ten05.jpg">
<div class="position-r ten_four text-c f-black margin-b-30vw">
<ul>
<li>电脑周边</li>
<li>手机周边</li>
<li>电子电工</li>
<li>影音娱乐</li>
<li>生活周边</li>
<li>个人护理</li>
<li>高端游戏</li>
</ul>
</div>
</div>
</div>
<div class="ten_four_line"></div>
<!--第五屏-->
<!--第五屏-->
<div class="swt-Container">
<div class="ten_title text-c f-black f_weight_600">“十年耀变,十年新章”庆典现场</div>
<!--拉开庆典序幕-->
<div class="ten_subtitle text-c f-black f_weight_600">拉开庆典序幕</div>
<div class="ten_des text-c f-gray">整场庆典开始,由品牌创始人及东莞常平镇领导致辞并拉开庆典序幕,和与会的海内外代理商、供应商、公司员工、员工家属等千余人一同回顾了品牌的十年发展路及未来的规划与发展方向。</div>
<div class="ten_six overflow-f img-responsive margin-b-30vw">
<ul>
<li><img src="__PUBLIC__/web/images/decennial/ten06_one.jpg"></li>
<li><img src="__PUBLIC__/web/images/decennial/ten06_two.jpg"></li>
<li><img src="__PUBLIC__/web/images/decennial/ten06_three.jpg"></li>
</ul>
</div>
<!--员工自编自导自演欢乐文艺汇演-->
<div class="ten_subtitle text-c f-black f_weight_600">员工自编自导自演欢乐文艺汇演</div>
<div class="ten_des text-c f-gray">轻松愉悦的歌舞、小品、舞台剧逗趣全场,尽显公司蓬勃、年轻、勇敢的企业精神面貌。</div>
<div class="ten_six overflow-f img-responsive margin-b-30vw">
<ul>
<li><img src="__PUBLIC__/web/images/decennial/ten07_one.jpg"></li>
<li><img src="__PUBLIC__/web/images/decennial/ten07_two.jpg"></li>
<li><img src="__PUBLIC__/web/images/decennial/ten07_three.jpg"></li>
</ul>
</div>
<!--获奖代理商、供应商-->
<div class="ten_subtitle text-c f-black f_weight_600">获奖代理商、供应商</div>
<div class="ten_des text-c f-gray">十年发展征途,离不开各方伙伴的鼎力支持,在元创十周年之际,也邀请了诸多海内外伙伴参与其中,感谢多年来的支持与引导。</div>
<div class="ten_six overflow-f img-responsive margin-b-30vw">
<ul>
<li><img src="__PUBLIC__/web/images/decennial/ten08_one.jpg"></li>
<li><img src="__PUBLIC__/web/images/decennial/ten08_two.jpg"></li>
<li><img src="__PUBLIC__/web/images/decennial/ten08_three.jpg"></li>
</ul>
</div>
<!--新、老、少元创人齐聚一堂-->
<div class="ten_subtitle text-c f-black f_weight_600">新、老、少元创人齐聚一堂</div>
<div class="ten_des text-c f-gray">如果将一个十年发展企业的比作一艘海上远航的船,我们所有元创人就如同航船上的水手,一起劈波斩浪、一同沐浴彩虹。许许多多元创人将自己最好的年华与元创写在了一起,许许多多元创人在元创也迎来了人生新阶段。</div>
<div class="ten_six overflow-f img-responsives">
<ul>
<li><img src="__PUBLIC__/web/images/decennial/ten09_one.jpg"></li>
<li><img src="__PUBLIC__/web/images/decennial/ten09_two.jpg"></li>
<li><img src="__PUBLIC__/web/images/decennial/ten09_three.jpg"></li>
</ul>
</div>
</div>
<!--第十屏-->
<div class="swt-Container">
<div class="ten_title text-c f-black f_weight_600">庆典精彩瞬间</div>
<ul class="ten_slider">
<li><img src="__PUBLIC__/web/images/decennial/ten10_one.jpg"></li>
<li><img src="__PUBLIC__/web/images/decennial/ten10_two.jpg"></li>
<li><img src="__PUBLIC__/web/images/decennial/ten10_three.jpg"></li>
</ul>
</div>
</div>
<!--第十一屏-->
<div class="swt-Container padding-b-3">
<div class="ten_title text-c f-black f_weight_600">10年见证感谢一路同行</div>
<div class="img-responsives"><img src="__PUBLIC__/web/images/decennial/ten_11.jpg"></div>
</div>
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
<script type="text/javascript">
/*轮播*/
$(document).ready(function(){
$('.ten_slider').bxSlider({
});
});
</script>
</body>
</html>

View File

@@ -0,0 +1,270 @@
<!DOCTYPE html>
<html lang="en">
<head>
{include file="include/head" /}
<meta charset="UTF-8">
<title>成为经销商</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/cooperation.css">
</head>
<body>
<header class="header-PC header-Index">
<div id="header" class="theme-black">
{include file="include/top-head2023" /}
</div>
</header>
<div class="bdpage">
<div class="bd_main">
<h1 class="t1">成为经销商</h1>
<p class="s1" style="padding-bottom:5px">准备好加入我们了吗?</p>
<p class="s1"> 在下面输入您的详细信息我们的销售团队将在2个工作日内回复您。</p>
<!--内容-->
<div class="bd_ct">
<div class="thimg">
<img src="__PUBLIC__/weben/images/Introductionimg/Cooperation/brand02.png" alt="" srcset="" class="bdimg">
</div>
<div class="bd_from">
<div class="theit">
<div class="bditem">
<label class="itlable">公司名称<span class="redtag">*</span></label>
<input type="text" class="form-control itinp companyName" placeholder="请输入公司名称" name="company" id="company" >
</div>
<div class="bditem">
<label class="itlable">电子邮件<span class="redtag">*</span></label>
<input type="email" class="form-control itinp email" placeholder="请输入邮箱" name="email" id="email">
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">电话号码<span class="redtag">*</span></label>
<input type="text" class="form-control itinp mphone" placeholder="请输入电话号码" name="phone" id="phone">
</div>
</div>
<div class="theit">
<div class="bditem">
<label class="itlable">业务类型<span class="redtag">*</span></label>
<select name="business_type" data-pf-type="FormInput" class="form-control itinp business_type">
<option value="Online Store">在线商店</option>
<option value="Local Shop">本地商店</option>
<option value="Both">都有</option></select>
</div>
<div class="bditem">
<label class="itlable">在线商店网址</label>
<input type="text" class="form-control itinp url" placeholder="请输入网址" name="url" id="url">
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">企业规模<span class="redtag">*</span></label>
<select name="enterprise_size" data-pf-type="FormInput" class="form-control itinp enterprise_size">
<option value="10 Or Less">10 或更少</option>
<option value="10-50">10-50</option>
<option value="50-199">50-199</option>
<option value="200 Or More">200 或更多</option>
</select>
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">公司地址<span class="redtag">*</span></label>
<input class="form-control itinp address" placeholder="请输入地址">
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">留言<span class="redtag">*</span></label>
<textarea class="ittextarea message" placeholder="留言"></textarea>
</div>
</div>
</div>
</div>
<!-- 提交-->
<div class="bttj">提交</div>
</div>
</div>
<script>
// 输入框失去焦点
$('.companyName').blur(function(){
if($('.companyName').val() != ''){
$('.companyName').removeClass('error');
$('.companyName').next('span').addClass('hide');
}else{
$('.companyName').addClass('error');
$('.companyName').next('span').removeClass('hide');
}
})
$('.email').blur(function(){
if($('.email').val() != ''){
$('.email').removeClass('error');
$('.email').next('span').addClass('hide');
}else{
$('.email').addClass('error');
$('.email').next('span').removeClass('hide');
}
})
$('.business_type').blur(function(){
if($('.business_type').val() != ''){
$('.business_type').removeClass('error');
$('.business_type').next('span').addClass('hide');
}else{
$('.business_type').addClass('error');
$('.business_type').next('span').removeClass('hide');
}
})
$('.enterprise_size').blur(function(){
if($('.enterprise_size').val() != ''){
$('.enterprise_size').removeClass('error');
$('.enterprise_size').next('span').addClass('hide');
}else{
$('.enterprise_size').addClass('error');
$('.enterprise_size').next('span').removeClass('hide');
}
})
$('.address').blur(function(){
if($('.address').val() != ''){
$('.address').removeClass('error');
$('.address').next('span').addClass('hide');
}else{
$('.address').addClass('error');
$('.address').next('span').removeClass('hide');
}
})
$('.message').blur(function(){
if($('.message').val() != ''){
$('.message').removeClass('error');
$('.message').next('span').addClass('hide');
}else{
$('.message').addClass('error');
$('.message').next('span').removeClass('hide');
}
})
$('.mphone').blur(function(){
if($('.mphone').val() != ''){
$('.mphone').removeClass('error');
$('.mphone').next('span').addClass('hide');
}else{
$('.mphone').addClass('error');
$('.mphone').next('span').removeClass('hide');
}
})
// 提交表单
$('.bttj').click(function(){
var companyName = $('.companyName').val();
var business_type = $('.business_type').val();
var enterprise_size = $('.enterprise_size').val();
var email = $('.email').val();
var phone = $('.mphone').val();
var address = $('.address').val();
var message = $('.message').val();
if(companyName == ''){
$('.companyName').addClass('error');
$('.companyName').next('span').removeClass('hide');
}else{
$('.companyName').removeClass('error');
$('.companyName').next('span').addClass('hide');
}
if(business_type == ''){
$('.business_type').addClass('error');
$('.business_type').next('span').removeClass('hide');
}
if(enterprise_size == ''){
$('.enterprise_size').addClass('error');
$('.enterprise_size').next('span').removeClass('hide');
}
if(email == ''){
$('.email').addClass('error');
$('.email').next('span').removeClass('hide');
}
else{
if (/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(email) == false) {
$('.email').addClass('error');
$('.email').next('span').removeClass('hide');
return false;
}
else{
$('.email').removeClass('error');
$('.email').next('span').addClass('hide');
}
}
if (message == '') {
$('.message').addClass('error');
$('.message').next('span').removeClass('hide');
}else{
$('.message').removeClass('error');
$('.message').next('span').addClass('hide');
}
if(phone == ''){
$('.mphone').addClass('error');
$('.mphone').next('span').removeClass('hide');
}else{
$('.mphone').removeClass('error');
$('.mphone').next('span').addClass('hide');
}
if(address == ''){
$('.address').addClass('error');
$('.address').next('span').removeClass('hide');
}else{
$('.address').removeClass('error');
$('.address').next('span').addClass('hide');
}
try {
k_win_ref = window.parent.document.referrer;
} catch(e) {
k_win_ref = '';
};
//点击创建申请块
if(companyName && business_type && enterprise_size && email && address && message && phone) {
$.ajax({
type: "POST",
url: "/index/bulk/agents",
data: {'company':companyName, 'email':email, 'address':address,'business_type':business_type,'enterprise_size':enterprise_size,'phone':$('.mphone').val(),'address':address,'message':message,'uri':$('.url').val(),'refer':k_win_ref},
dataType: "json",
success: function(data){
if(data.code == 200) {
alert('信息已成功提交!');
$("input[type='text']").val('');
$("input[type='email']").val('');
$('.address').val('');
$('.message').val('');
//$(":input[name='interested']").attr("checked",false);
$("select option:selected").remove();
}
else{
if(data.code == 403 || data.code == 201) {
alert(data.msg);
}
else{
$('.email').addClass('error');
$('.email').next('span').removeClass('hide');
}
}
}
});
}
})
</script>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,227 @@
<!DOCTYPE html>
<html lang="en">
<head>
{include file="include/head" /}
<meta charset="UTF-8">
<title>成为经销商</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/cooperation.css">
</head>
<body>
{include file="include/top-head2023" /}
<div class="bdpage">
<div class="bd_main">
<h1 class="t1">成为经销商</h1>
<p class="s1" style="padding-bottom:5px">准备好加入我们了吗?</p>
<p class="s1"> 在下面输入您的详细信息我们的销售团队将在2个工作日内回复您。</p>
<!--内容-->
<div class="bd_ct">
<div class="thimg">
<img src="__PUBLIC__/weben/images/Introductionimg/Cooperation/brand02.png" alt="" srcset="" class="bdimg">
</div>
<div class="bd_from">
<div class="theit">
<div class="bditem">
<label class="itlable">公司名称<span class="redtag">*</span></label>
<input type="text" class="form-control itinp companyName" placeholder="请输入公司名称" name="company" id="company" >
</div>
<div class="bditem">
<label class="itlable">电子邮件<span class="redtag">*</span></label>
<input type="email" class="form-control itinp email" placeholder="请输入邮箱" name="email" id="email">
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">电话号码<span class="redtag">*</span></label>
<input type="text" class="form-control itinp phone" placeholder="请输入电话号码" name="phone" id="phone">
</div>
</div>
<div class="theit">
<div class="bditem">
<label class="itlable">业务类型<span class="redtag">*</span></label>
<select name="business_type" data-pf-type="FormInput" class="form-control itinp business_type">
<option value="Online Store">在线商店</option>
<option value="Local Shop">本地商店</option>
<option value="Both">都有</option></select>
</div>
<div class="bditem">
<label class="itlable">在线商店网址</label>
<input type="text" class="form-control itinp url" placeholder="请输入网址" name="url" id="url">
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">企业规模<span class="redtag">*</span></label>
<select name="enterprise_size" data-pf-type="FormInput" class="form-control itinp enterprise_size">
<option value="10 Or Less">10 或更少</option>
<option value="10-50">10-50</option>
<option value="50-199">50-199</option>
<option value="200 Or More">200 或更多</option>
</select>
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">公司地址<span class="redtag">*</span></label>
<input class="form-control itinp address" placeholder="请输入地址">
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">留言<span class="redtag">*</span></label>
<textarea class="ittextarea message" placeholder="留言"></textarea>
</div>
</div>
</div>
</div>
<!-- 提交-->
<div class="bttj">提交</div>
</div>
</div>
<script>
// 输入框失去焦点
$('.companyName').blur(function(){
if($('.companyName').val() != ''){
$('.companyName').removeClass('error');
$('.companyName').next('span').addClass('hide');
}else{
$('.companyName').addClass('error');
$('.companyName').next('span').removeClass('hide');
}
})
$('.email').blur(function(){
if($('.email').val() != ''){
$('.email').removeClass('error');
$('.email').next('span').addClass('hide');
}else{
$('.email').addClass('error');
$('.email').next('span').removeClass('hide');
}
})
$('.business_type').blur(function(){
if($('.business_type').val() != ''){
$('.business_type').removeClass('error');
$('.business_type').next('span').addClass('hide');
}else{
$('.business_type').addClass('error');
$('.business_type').next('span').removeClass('hide');
}
})
$('.enterprise_size').blur(function(){
if($('.enterprise_size').val() != ''){
$('.enterprise_size').removeClass('error');
$('.enterprise_size').next('span').addClass('hide');
}else{
$('.enterprise_size').addClass('error');
$('.enterprise_size').next('span').removeClass('hide');
}
})
$('.address').blur(function(){
if($('.address').val() != ''){
$('.address').removeClass('error');
$('.address').next('span').addClass('hide');
}else{
$('.address').addClass('error');
$('.address').next('span').removeClass('hide');
}
})
$('.message').blur(function(){
if($('.message').val() != ''){
$('.message').removeClass('error');
$('.message').next('span').addClass('hide');
}else{
$('.message').addClass('error');
$('.message').next('span').removeClass('hide');
}
})
// 提交表单
$('.submit_btn').click(function(){
var companyName = $('.companyName').val();
var business_type = $('.business_type').val();
var enterprise_size = $('.enterprise_size').val();
var email = $('.email').val();
var phone = $('.phone').val();
var address = $('.address').val();
var message = $('.message').val();
if(companyName == ''){
$('.companyName').addClass('error');
$('.companyName').next('span').removeClass('hide');
}
if(business_type == ''){
$('.business_type').addClass('error');
$('.business_type').next('span').removeClass('hide');
}
if(enterprise_size == ''){
$('.enterprise_size').addClass('error');
$('.enterprise_size').next('span').removeClass('hide');
}
if(email == ''){
$('.email').addClass('error');
$('.email').next('span').removeClass('hide');
}
if(phone == ''){
$('.phone').addClass('error');
$('.phone').next('span').removeClass('hide');
}
if(address == ''){
$('.address').addClass('error');
$('.address').next('span').removeClass('hide');
}
if(message == ''){
$('.message').addClass('error');
$('.message').next('span').removeClass('hide');
}
try {
k_win_ref = window.parent.document.referrer;
} catch(e) {
k_win_ref = '';
};
//点击创建申请块
if(companyName && business_type && enterprise_size && email && address && message && phone) {
$.ajax({
type: "POST",
url: "/us/agent/create",
data: {'company':companyName, 'email':email, 'address':address,'business_type':business_type,'enterprise_size':enterprise_size,'phone':$('.phone').val(),'address':address,'message':message,'uri':$('.url').val(),'refer':k_win_ref},
dataType: "json",
success: function(data){
if(data.code == 200) {
//alert(data.msg);
//window.location.href='/us/agents/agents.html';
location.href = '/us/Group/submission.html';
}
else{
if(data.code == 403 || data.code == 201) {
alert(data.msg);
}
else{
$('.email').addClass('error');
$('.email').next('span').removeClass('hide');
}
}
}
});
}
})
</script>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,119 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Software Drives</title>
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/subject/software.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/montserrat.css">
</head>
<body class="bg-gray">
{include file="include/top-head2023" /}
<!--内容-->
<!--banner-->
<div class="Swt-Banner position-r">
<img src="__PUBLIC__/weben/images/software/banner_01.png" alt="" />
<div class="banner_title">软件和驱动程序</div>
</div>
<!--banner-->
<div class="contact_c">
<!--搜索-->
<div class="search_all">
<input type="text" name="textfield" placeholder="Search model" id="search_software">
<div class="searchbtn" id="search-btn"><img src="__PUBLIC__/weben/images/software/search.png"></div>
</div>
<!--搜索-->
<!--tab切换-->
<div class="tab">
<a href="__ORICOROOT__/download.html" class="list on">Software Drives</a>
<a href="<?php echo url('us/download/catelists_down?id=45')?>" class="list">Manual</a>
<a href="__ORICOROOT__/video/category/36.html" class="list">Videos</a>
</div>
<!--tab切换-->
<div class="boxs">
<!--Software Drives-->
<div class="software">
<?php foreach ($list as $detail): ?>
<div class="list">
<div class="left_img"><img src="<?php echo getImage($detail['picture']); ?>" alt="" /></div>
<div>
<p class="title"><?php echo $detail['name']; ?></p>
<p class="sub_title">Supported Models: </p>
<p class="des"><?php echo $detail['app_model']; ?></p>
<p class="sub_title">Supported Systems: </p>
<p class="des"><?php echo $detail['support_os']; ?></p>
<p><span class="l_button">Download</span></p>
</div>
</div>
<?php endforeach; ?>
</div>
<!--Software Drives-->
<!-- 分页 s -->
<?php
if ($page) {
echo $page;
}
?>
<!-- 分页 e -->
<!--Manual-->
<!--video-->
<!--video-->
</div>
</div>
<!--内容 -->
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>
<script type="text/javascript">
/*定位光标*/
document.querySelector('#search_software').focus();
$(function() {
//
$("#search-btn").bind("click", function(event) {
console.log(111111)
var skeyword = $("#search_software").val();
console.log(skeyword)
if (skeyword) {
var href = "<?php echo url('/us/download'); ?>?skeyword=" + encodeURIComponent(skeyword);
location.href = href;
}
});
$("#search-in").keyup(function(event) {
if (event && event.keyCode === 13) {
$("#search-btn").trigger("click");
}
});
var $category = $(".navlist");
$category.hide();
$(".navul li").mouseleave(function() {
$(this).children("a").addClass("aons");
$(this).children("dl").stop(true, true).slideUp(500);
});
$(".navul li").mouseenter(function() {
$category.hide();
$(this).children("dl").stop(true, true).slideDown(500);
});
//搜索框
$(".Searchbox .icon").click(function() {
$(".Search").slideToggle();
});
});
</script>
<style>
.Swt-Banner{
width: 100%;
}
</style>

212
app/index/view/group/fan.phtml Executable file
View File

@@ -0,0 +1,212 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>生活周边小配件_ORICO/奥睿科</title>
<meta name="Keywords" content="创意小配件创意生活小配件小家电配件生活实用配件ORICO/奥睿科" />
<meta name="Description" content="生活周边小配件_ORICO/奥睿科" />
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/fan.css">
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-black">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
<!--top End-->
<div class="img-responsive position-r">
<img src="__PUBLIC__/web/images/Fan/Fan-banner.jpg">
<div class="fan_01">
<div class="swt-Container">
<p class="title">清新桌面,艺术生活</p>
<p class="text">驱赶夏日炎热,滋润秋冬干燥</p>
</div>
</div>
</div>
<!--视频-->
<div class="position-r subject_02_bg Fan_02">
<div class="subject_02 subject_alltext">
<div class="swt-Container">
<div class="subject_black left ">
<p class="subject_title">生活与艺术,<br>密不可分</p>
<p class="subject_subtitle">专研USB技术<br>轻松打造安全便捷的科技生活</p>
<p class="subject_text">
<span class="subject_span_margin">精致生活在细节上体现。在生活周边产品的开发上ORICO将“小改变大不同”的品牌理念融入生活细节中如小风扇、加湿器系列产品。
</span><br>
同时以USB技术的加入让小风扇、加湿器这些大众熟知的产品的使用方式更多变也更多便。连接适配器、移动电源、笔记本电脑、车载充电器等都能够即时使用美好时光即刻开启。
</p>
</div>
<div class="right img-responsive">
<img src="__PUBLIC__/web/images/Fan/Fan_02_video.jpg">
<video height="100%" controls poster="__PUBLIC__/web/images/Fan/Fan_02_video.jpg" >
<source src="__PUBLIC__/web/images/Fan/ORICO-FH1.mp4">
您的浏览器不支持 video 标签。
Your browser does not support HTML5 video.
</video>
</div>
</div>
</div>
</div>
<!--产品-->
<div class="Fan_03 img-responsive">
<img src="__PUBLIC__/web/images/Fan/Fan-03.jpg">
<div class="all_content">
<div class="swt-Container">
<div class="all_text">
<p class="subject_title">静音加湿,时刻相伴</p>
<p class="subject_subtitle">桌面加湿弹</p>
<p class="subject_des"><span class="subject_span_margin">雪白的冬,金黄的秋,都有一番分外撩人的好风景,却总因干燥的天气让人们望而却步,加湿器的出现恰好弥补了这一缺憾。</span><br>桌面或床头,高分子雾化科技加上长时间续航功能,能够持续保持室内空气清新,呵护皮肤状态,使肌肤水嫩滋润,清新怡人,在家或外出,浪漫陪伴生活的每一个心动瞬间。</p>
</div>
</div>
</div>
<div class="all_product">
<div class="swt-Container">
<ul>
<li>
<img src="__PUBLIC__/web/images/Fan/Fan-03-one.jpg">
<div class="product">
<p class="title">静音桌面加湿弹</p>
<div class="Fan_buy">
<div class="Fan_buy_button">
<a href="https://detail.tmall.com/item.htm?id=581911488508">天猫购买</a>
<a href="https://item.jd.com/37196811272.html">京东购买</a>
</div>
</div>
</div>
</li>
<li>
<img src="__PUBLIC__/web/images/Fan/Fan-03-two.jpg">
<div class="product">
<p class="title">静音桌面加湿弹Max</p>
<div class="Fan_buy">
<div class="Fan_buy_button">
<a href="https://detail.tmall.com/item.htm?id=581911488508">天猫购买</a>
<a href="https://item.jd.com/37196811273.html">京东购买</a>
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
<!--第四屏-->
<div class="Fan_04 img-responsive">
<img src="__PUBLIC__/web/images/Fan/Fan-04.jpg">
<div class="all_content">
<div class="swt-Container">
<div class="all_text">
<p class="subject_title">风劲声轻,清凉一夏</p>
<p class="subject_subtitle">桌面小风扇</p>
<p class="subject_des"><span class="subject_span_margin">炎炎夏日虽有艳阳高照的风采但也受逐日高升的气温所困扰。一到夏季USB小风扇既便携又节能的性能便成为人们热衷选择的对象不论是办公室办公、图书馆学习还是室内午休、室外露营都少不了小风扇的身影。多种供电方式多档风速调节多样摆放与携带方法让ORICO小风扇为人们的美好生活带来更好、更舒适的体验。</span><br>风随心动,一触即发,随时展现桌面新“风尚”。</p>
</div>
</div>
</div>
<div class="all_product">
<div class="swt-Container">
<ul>
<li>
<img src="__PUBLIC__/web/images/Fan/Fan-04-one.jpg">
<div class="title">清新桌面小风扇</div>
<div class="Fan_buy">
<div class="Fan_buy_button">
<a href="https://detail.tmall.com/item.htm?id=569078175415" target="_blank">天猫购买</a>
<a href="https://item.jd.com/27043436749.html" target="_blank">京东购买</a>
</div>
</div>
</li>
<li>
<img src="__PUBLIC__/web/images/Fan/Fan-04-two.jpg">
<div class="title">便携式充蓄两用小风扇</div>
<div class="Fan_buy">
<div class="Fan_buy_button">
<span class="subject_span">天猫购买</span>
<span class="subject_span">京东购买</span>
</div>
</div>
</li>
<li>
<img src="__PUBLIC__/web/images/Fan/Fan-04-three.jpg">
<div class="title">壁夹/平放两用小风扇</div>
<div class="Fan_buy">
<div class="Fan_buy_button">
<a href="https://detail.tmall.com/item.htm?id=579366298608" target="_blank">天猫购买</a>
<a href="https://item.jd.com/37252417714.html" target="_blank">京东购买</a>
</div>
</div>
</li>
<li>
<img src="__PUBLIC__/web/images/Fan/Fan-04-four.jpg">
<div class="title">清新桌面小风扇</div>
<div class="Fan_buy">
<div class="Fan_buy_button">
<a href="https://detail.tmall.com/item.htm?id=592227747712" target="_blank">天猫购买</a>
<a href="https://item.jd.com/45522042939.html" target="_blank">京东购买</a>
</div>
</div>
</li>
<li>
<img src="__PUBLIC__/web/images/Fan/Fan-04-five.jpg">
<div class="title">补光灯手持小风扇</div>
<div class="Fan_buy">
<div class="Fan_buy_button">
<a href="https://detail.tmall.com/item.htm?id=592128837480" target="_blank">天猫购买</a>
<a href="https://item.jd.com/45727264679.html" target="_blank">京东购买</a>
</div>
</div>
</li>
<li>
<img src="__PUBLIC__/web/images/Fan/Fan-04-six.jpg">
<div class="title">便携式充蓄两用小风扇</div>
<div class="Fan_buy">
<div class="Fan_buy_button">
<a href="https://detail.tmall.com/item.htm?id=591410773767" target="_blank">天猫购买</a>
<a href="https://item.jd.com/45079324336.html" target="_blank">京东购买</a>
</div>
</div>
</li>
<li>
<img src="__PUBLIC__/web/images/Fan/Fan-04-seven.jpg">
<div class="title">清新桌面小风扇</div>
<div class="Fan_buy">
<div class="Fan_buy_button">
<a href="https://detail.tmall.com/item.htm?id=591701161089" target="_blank">天猫购买</a>
<a href="https://item.jd.com/45456678276.html" target="_blank">京东购买</a>
</div>
</div>
</li>
<li>
<img src="__PUBLIC__/web/images/Fan/Fan-04-eight.jpg">
<div class="title">清新桌面喷雾小风扇</div>
<div class="Fan_buy">
<div class="Fan_buy_button">
<a href="https://detail.tmall.com/item.htm?id=594277807992" target="_blank">天猫购买</a>
<a href="https://item.jd.com/47287138219.html" target="_blank">京东购买</a>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
<div class="subject_travel_text subject_title">更多USB生活周边敬请关注</div>
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>

90
app/index/view/group/faq.phtml Executable file
View File

@@ -0,0 +1,90 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>常见FQ_下载与服务_中文官网帮助信息_ORICO/奥睿科官网</title>
<meta name="Keywords" content="常见FQ;" />
<meta name="Description" content="常见FQ;" />
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/faq.css"></head>
<body>
<!--top-->
{include file="include/top-head2023" /}
<!--top End--> <div class="img-responsive"><img src="__PUBLIC__/web/images/faq/faq-banner.jpg"></div>
<div class="bg-gray overflow-f">
<div class="swt-Container">
<div class="faq">
<div class="faq-all Table">
<ul class="Table-Row">
<li class="Table-Cell">
<div class="img-responsive"><img src="__PUBLIC__/web/images/faq/faq-01.jpg"></div>
<div class="faq-all-text">
<div class="faq-title">6629US3 如何使用脱机拷贝功能?</div>
<div class="faq-des">
<p>1、接上2个SATA硬盘注意Source为源盘Target为目标盘(目标盘大于或等于源盘)。</p>
<p>2、脱机对拷时将硬盘座后面选择为Clone即为Clone克隆模式不用  Clone时直接切换为PC。</p>
<p>3、插好电源打开电源开关。</p>
<p>4、以上准备工作准备好后按START按键1下在按一下前面百分比的指示灯来回跳动 ,拷贝成功指示灯全部亮起。</p>
</div>
</div>
</li>
<li class="Table-Cell">
<div class="img-responsive"><img src="__PUBLIC__/web/images/faq/faq-02.jpg"></div>
<div class="faq-all-text">
<div class="faq-title">如何组建RAID模式?</div>
<div class="faq-des">
<p>RAID设置方法如果硬盘不是全新的硬盘请先您备份好数据资料</p>
<p>1、关闭阵列硬盘盒设备电源;</p>
<p>2、拨动机身背部的RAID模式开关设置想要的RAID模式;</p>
<p>3、按住SET按键不放打开电源开关大约5秒松开SET按键;</p>
<p>4、同时可以在电脑上安装RAID管理器软件通过软件方式管理RAID功能;</p>
</div>
</div>
</li>
<li class="Table-Cell">
<div class="img-responsive"><img src="__PUBLIC__/web/images/faq/faq-03.jpg"></div>
<div class="faq-all-text">
<div class="faq-title">全新的硬盘连接电脑后,为什么找不到硬盘,显示不了盘符?</div>
<div class="faq-des">
<p>答: 由于操作系统的限制windowsXP系统只能支持2TB容量硬盘大于2TB容量硬盘不能支持无法正常使用。
*操作方法:首先,右击“计算机”, 然后点击“管理”打开进入“磁盘管理”找到新增加的硬盘右击“初始化”选择“MBR(硬盘容量小于等于2TB)”或“GPT(大于2TB)”,然后“新建简单卷”,默认下一步格式化分区,格式化完成后,硬盘就可以正常使用,显示出来新增的盘符。</p>
</div>
</div>
</li>
<li class="Table-Cell">
<div class="img-responsive"><img src="__PUBLIC__/web/images/faq/faq-04.jpg"></div>
<div class="faq-all-text">
<div class="faq-title">无法登录进入W150路由器设置界面?</div>
<div class="faq-des">
<p>将路由器插上电源插座通上电,先不要连接网线(切记)然后手机搜索连接上“ORICO”的无线网络信号连接成功后打开浏览器输IP地址192.168.1.1 进行登录访问打开登录首页后输入用户名admin ,密码admin ,登录即可。</p>
</div>
</div>
</li>
<li class="Table-Cell">
<div class="img-responsive"><img src="__PUBLIC__/web/images/faq/faq-05.jpg"></div>
<div class="faq-all-text">
<div class="faq-title">HUB是否可以连接电视扩展?无外接电源能带动移动硬盘吗?</div>
<div class="faq-des">
<p>您好目前HUB主要针对是PC端使用的暂时还未普及到电视类目需要您的电视支持哦不能保证所有电视都能识别。一般2.5寸的硬盘是可以的呢由于USB供电有限如果您是给3.5寸的硬盘使用的话建议您购买带电源的HUB</p>
</div>
</div>
</li>
<li class="Table-Cell">
<div class="img-responsive"><img src="__PUBLIC__/web/images/faq/faq-06.jpg"></div>
<div class="faq-all-text">
<div class="faq-title">同行产品品牌对比</div>
<div class="faq-des">
<p>您好orico都是采用的进口控制芯片IC原器件自己研发的PCBA电路板以及所有模具外观均是ORICO研发生产!这种便宜的产品不是使用控制芯片而是使用一种叫邦定的技术一个PCBA如果使用邦定成本很低但是用个十来天就会出现问题!ORICO全部使用贴片元器件所以从用料上完全不一样!</p>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
{include file="include/bottom2023" /}
</body>
</html>

95
app/index/view/group/fq.phtml Executable file
View File

@@ -0,0 +1,95 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>常见FQ_下载与服务_中文官网帮助信息_ORICO/奥睿科官网</title>
<meta name="Keywords" content="常见FQ;" />
<meta name="Description" content="常见FQ;" />
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/faq.css"></head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
</div>
</header>
{include file="include/top-header2023" /}
<!--top End--> <div class="img-responsive"><img src="__PUBLIC__/web/images/faq/faq-banner.jpg"></div>
<div class="bg-gray overflow-f">
<div class="swt-Container">
<div class="faq">
<div class="faq-all Table">
<ul class="Table-Row">
<li class="Table-Cell">
<div class="img-responsive"><img src="__PUBLIC__/web/images/faq/faq-01.jpg"></div>
<div class="faq-all-text">
<div class="faq-title">6629US3 如何使用脱机拷贝功能?</div>
<div class="faq-des">
<p>1、接上2个SATA硬盘注意Source为源盘Target为目标盘(目标盘大于或等于源盘)。</p>
<p>2、脱机对拷时将硬盘座后面选择为Clone即为Clone克隆模式不用  Clone时直接切换为PC。</p>
<p>3、插好电源打开电源开关。</p>
<p>4、以上准备工作准备好后按START按键1下在按一下前面百分比的指示灯来回跳动 ,拷贝成功指示灯全部亮起。</p>
</div>
</div>
</li>
<li class="Table-Cell">
<div class="img-responsive"><img src="__PUBLIC__/web/images/faq/faq-02.jpg"></div>
<div class="faq-all-text">
<div class="faq-title">如何组建RAID模式?</div>
<div class="faq-des">
<p>RAID设置方法如果硬盘不是全新的硬盘请先您备份好数据资料</p>
<p>1、关闭阵列硬盘盒设备电源;</p>
<p>2、拨动机身背部的RAID模式开关设置想要的RAID模式;</p>
<p>3、按住SET按键不放打开电源开关大约5秒松开SET按键;</p>
<p>4、同时可以在电脑上安装RAID管理器软件通过软件方式管理RAID功能;</p>
</div>
</div>
</li>
<li class="Table-Cell">
<div class="img-responsive"><img src="__PUBLIC__/web/images/faq/faq-03.jpg"></div>
<div class="faq-all-text">
<div class="faq-title">全新的硬盘连接电脑后,为什么找不到硬盘,显示不了盘符?</div>
<div class="faq-des">
<p>答: 由于操作系统的限制windowsXP系统只能支持2TB容量硬盘大于2TB容量硬盘不能支持无法正常使用。
*操作方法:首先,右击“计算机”, 然后点击“管理”打开进入“磁盘管理”找到新增加的硬盘右击“初始化”选择“MBR(硬盘容量小于等于2TB)”或“GPT(大于2TB)”,然后“新建简单卷”,默认下一步格式化分区,格式化完成后,硬盘就可以正常使用,显示出来新增的盘符。</p>
</div>
</div>
</li>
<li class="Table-Cell">
<div class="img-responsive"><img src="__PUBLIC__/web/images/faq/faq-04.jpg"></div>
<div class="faq-all-text">
<div class="faq-title">无法登录进入W150路由器设置界面?</div>
<div class="faq-des">
<p>将路由器插上电源插座通上电,先不要连接网线(切记)然后手机搜索连接上“ORICO”的无线网络信号连接成功后打开浏览器输IP地址192.168.1.1 进行登录访问打开登录首页后输入用户名admin ,密码admin ,登录即可。</p>
</div>
</div>
</li>
<li class="Table-Cell">
<div class="img-responsive"><img src="__PUBLIC__/web/images/faq/faq-05.jpg"></div>
<div class="faq-all-text">
<div class="faq-title">HUB是否可以连接电视扩展?无外接电源能带动移动硬盘吗?</div>
<div class="faq-des">
<p>您好目前HUB主要针对是PC端使用的暂时还未普及到电视类目需要您的电视支持哦不能保证所有电视都能识别。一般2.5寸的硬盘是可以的呢由于USB供电有限如果您是给3.5寸的硬盘使用的话建议您购买带电源的HUB</p>
</div>
</div>
</li>
<li class="Table-Cell">
<div class="img-responsive"><img src="__PUBLIC__/web/images/faq/faq-06.jpg"></div>
<div class="faq-all-text">
<div class="faq-title">同行产品品牌对比</div>
<div class="faq-des">
<p>您好orico都是采用的进口控制芯片IC原器件自己研发的PCBA电路板以及所有模具外观均是ORICO研发生产!这种便宜的产品不是使用控制芯片而是使用一种叫邦定的技术一个PCBA如果使用邦定成本很低但是用个十来天就会出现问题!ORICO全部使用贴片元器件所以从用料上完全不一样!</p>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
{include file="include/bottom2023" /}
</body>
</html>

View File

@@ -0,0 +1,96 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>常见FQ_下载与服务_中文官网帮助信息_ORICO/奥睿科官网</title>
<meta name="Keywords" content="常见FQ;" />
<meta name="Description" content="常见FQ;" />
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/faq.css"></head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
{include file="include/top-header-mobile" /}
<!--top End--> <div class="img-responsive"><img src="__PUBLIC__/web/images/faq/faq-banner.jpg"></div>
<div class="bg-gray overflow-f">
<div class="swt-Container">
<div class="faq">
<div class="faq-all Table">
<ul class="Table-Row">
<li class="Table-Cell">
<div class="img-responsive"><img src="__PUBLIC__/web/images/faq/faq-01.jpg"></div>
<div class="faq-all-text">
<div class="faq-title">6629US3 如何使用脱机拷贝功能?</div>
<div class="faq-des">
<p>1、接上2个SATA硬盘注意Source为源盘Target为目标盘(目标盘大于或等于源盘)。</p>
<p>2、脱机对拷时将硬盘座后面选择为Clone即为Clone克隆模式不用  Clone时直接切换为PC。</p>
<p>3、插好电源打开电源开关。</p>
<p>4、以上准备工作准备好后按START按键1下在按一下前面百分比的指示灯来回跳动 ,拷贝成功指示灯全部亮起。</p>
</div>
</div>
</li>
<li class="Table-Cell">
<div class="img-responsive"><img src="__PUBLIC__/web/images/faq/faq-02.jpg"></div>
<div class="faq-all-text">
<div class="faq-title">如何组建RAID模式?</div>
<div class="faq-des">
<p>RAID设置方法如果硬盘不是全新的硬盘请先您备份好数据资料</p>
<p>1、关闭阵列硬盘盒设备电源;</p>
<p>2、拨动机身背部的RAID模式开关设置想要的RAID模式;</p>
<p>3、按住SET按键不放打开电源开关大约5秒松开SET按键;</p>
<p>4、同时可以在电脑上安装RAID管理器软件通过软件方式管理RAID功能;</p>
</div>
</div>
</li>
<li class="Table-Cell">
<div class="img-responsive"><img src="__PUBLIC__/web/images/faq/faq-03.jpg"></div>
<div class="faq-all-text">
<div class="faq-title">全新的硬盘连接电脑后,为什么找不到硬盘,显示不了盘符?</div>
<div class="faq-des">
<p>答: 由于操作系统的限制windowsXP系统只能支持2TB容量硬盘大于2TB容量硬盘不能支持无法正常使用。
*操作方法:首先,右击“计算机”, 然后点击“管理”打开进入“磁盘管理”找到新增加的硬盘右击“初始化”选择“MBR(硬盘容量小于等于2TB)”或“GPT(大于2TB)”,然后“新建简单卷”,默认下一步格式化分区,格式化完成后,硬盘就可以正常使用,显示出来新增的盘符。</p>
</div>
</div>
</li>
<li class="Table-Cell">
<div class="img-responsive"><img src="__PUBLIC__/web/images/faq/faq-04.jpg"></div>
<div class="faq-all-text">
<div class="faq-title">无法登录进入W150路由器设置界面?</div>
<div class="faq-des">
<p>将路由器插上电源插座通上电,先不要连接网线(切记)然后手机搜索连接上“ORICO”的无线网络信号连接成功后打开浏览器输IP地址192.168.1.1 进行登录访问打开登录首页后输入用户名admin ,密码admin ,登录即可。</p>
</div>
</div>
</li>
<li class="Table-Cell">
<div class="img-responsive"><img src="__PUBLIC__/web/images/faq/faq-05.jpg"></div>
<div class="faq-all-text">
<div class="faq-title">HUB是否可以连接电视扩展?无外接电源能带动移动硬盘吗?</div>
<div class="faq-des">
<p>您好目前HUB主要针对是PC端使用的暂时还未普及到电视类目需要您的电视支持哦不能保证所有电视都能识别。一般2.5寸的硬盘是可以的呢由于USB供电有限如果您是给3.5寸的硬盘使用的话建议您购买带电源的HUB</p>
</div>
</div>
</li>
<li class="Table-Cell">
<div class="img-responsive"><img src="__PUBLIC__/web/images/faq/faq-06.jpg"></div>
<div class="faq-all-text">
<div class="faq-title">同行产品品牌对比</div>
<div class="faq-des">
<p>您好orico都是采用的进口控制芯片IC原器件自己研发的PCBA电路板以及所有模具外观均是ORICO研发生产!这种便宜的产品不是使用控制芯片而是使用一种叫邦定的技术一个PCBA如果使用邦定成本很低但是用个十来天就会出现问题!ORICO全部使用贴片元器件所以从用料上完全不一样!</p>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
{include file="include/bottom" /}
</body>
</html>

117
app/index/view/group/guide.phtml Executable file
View File

@@ -0,0 +1,117 @@
<!DOCTYPE html>
<html lang="en">
<head>
{include file="include/head" /}
<meta charset="UTF-8">
<title>Brand Story|Orico</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/subject/brand0804.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/animate.min.css">
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
</div>
</header>
{include file="include/top-head2023" /}
<!--top End-->
<div class="img-responsive"><img src="__PUBLIC__/weben/images/Introductionimg/OurBrand.png" alt=""/></div>
<div class="our_brand_con">
<div class="our_brand_bg" id="our_brand_bg1">
<div class="vtext swt-Container">
<div class="Table-Cell left ">
<p class="title">Our Story</p>
<hr>
<p class="des">ORICO was founded in 2009, which is innovative high-tech enterprise rooted in R & D of intelligent digital peripherals. </p>
<p class="des">Based on strength of R & D, strict attitude of production, rich experience of R & D and long-term marketing planning, ORICO insists on providing more convenient products with high performance for individuals, families or enterprises. </p>
<p class="des">ORICO is well known for its reliable and innovative image. And it is remembered by cooperated partners deeply because of its fast speed, strict attitude, high quality. </p>
</div>
<div class="Table-Cell right "><img src="__PUBLIC__/weben/images/Introductionimg/our1.png"></div>
</div>
</div>
<div class="our_brand_bg" id="our_brand_bg2">
<div class="vtext swt-Container">
<div class="Table-Cell left ">
<p class="title">Our Mission</p>
<hr>
<p class="des">Orico focuses on the field of storage and transmission of data and power. With its diversifled product portfollo, the company meets the needs of consumers while allowing them to experience the changes and convenience brouaht by technoloay. </p>
<p class="des">Orico continues to create new praducts lead new market categories, and reshape the alobal consumption patterns of data access products.In the futute.Orico will rely on NAS.Decking Stations.UFSD flash drives.Cables.and other product portfolios to meet the global market's personalized data storage and transmission needs. We will also take social responsibility, promote resource reciprocity. and speak for Chinese companies and Chinese manufacturing.</p>
</div>
<div class="Table-Cell right "><img src="__PUBLIC__/weben/images/Introductionimg/our2.png"></div>
</div>
</div>
</div>
<!--品牌大记事-->
<div class="dis_bril_bg">
<div class="dis_bril_con swt-Container">
<div class="dis_bril_div">
<div class="iconimg"><img src="__PUBLIC__/weben/images/indeximg/eas.png"></div>
<div class="title">
<p>Sell well for 11 years worldwide</p>
</div>
<div class="subtitle">
<p>Since the establishment of ORICO, it has opened up domestic and overseas offline channels in many countries around the world for 11 years, and has independent agents and distributors in many countries. ORICO has been accepted by the industry in the external HDD enclosure and USB3.0 peripherals for four consecutive years, our fast charging surge protector keeps the top 5 in the rapid growth.</p>
</div>
</div>
<div class="dis_bril_div">
<div class="iconimg"><img src="__PUBLIC__/weben/images/indeximg/team.png"></div>
<div class="title">
<p>Superior R&D Team</p>
</div>
<div class="subtitle">
<p>We are committed to providing innovative and practical solutions for customers' needs. Established a professional R & D team of nearly 100 senior engineers, structural engineers, electronic engineers, etc. Develop thousands of products such as USB storage, USB expansion, USB power strip, USB charging, digital accessories, and quality peripherals. We maintain the R&D of new products every week.</p>
</div>
</div>
<div class="dis_bril_div">
<div class="iconimg"><img src="__PUBLIC__/weben/images/indeximg/channeng.png"></div>
<div class="title">
<p>Annual production capacity over 4B.</p>
</div>
<div class="subtitle">
<p>Adopting 5S management is the premise of creating excellent products. ORICO invested nearly 80 million to build Internet & Creativity Industrial Park, a comprehensive service center integrating innovation and technology training, project incubation, industry acceleration, investment and financing services, and more. The annual production capacity has steadily exceeded RMB 4 billion.(600 million USD</p>
</div>
</div>
</div>
</div>
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
<script>
$(document).ready(function() {
function isScrolledIntoView(elem) {
var docViewTop = $(window).scrollTop();
var docViewBottom = docViewTop + $(window).height();
var elemTop = $(elem).offset().top;
var elemBottom = elemTop + $(elem).height();
return (elemTop <= docViewBottom);
}
var myelement = $('#our_brand_bg1'); // the element to act on if viewable
goScroll(myelement);
var myelement2 = $('#our_brand_bg2'); // the element to act on if viewable
goScroll(myelement2);
function goScroll(obj){
$(window).scroll(function() {
if(isScrolledIntoView(obj)) {
$(obj).find('.left').addClass('animated fadeInLeft');
$(obj).find('.right').addClass('animated fadeInRight');
}
});
}
});
</script>
</body>
</html>

View File

@@ -0,0 +1,219 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>10Gbps高速存储_Orico官网</title>
<meta name="Keywords" content="" />
<meta name="Description" content="" />
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/h_speed.css">
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
<!--top End-->
<div class="img-responsives position-r h_speed_text_white">
<img src="__PUBLIC__/web/images/h_speed/h_speed_banner.jpg">
<div class="banner_button"><span>闪速家族</span></div>
<div class="banner_button_title">以快之名 速度革新</div>
<div class="banner_button_subtitle">真Type-C 10Gbps高速专区</div>
</div>
<!--第二屏-->
<div class="img-responsives position-r h_speed h_speed_02">
<div class="swt-Container h_speed_text_white">
<div class="h_speed_text">
<p class="title h_speed_title">探时代之路<br>引科技之风</p>
<p class="h_speed_subtitle">Type-C接口正反无障碍插拔</p>
<p class="h_speed_des">ORICO作为存储传输领域的开拓者一直都是前沿科技的响应人。在数据交互频繁的时代接口耐插性受到了严峻考验为了数据交互顺畅ORICO引入Type-C正反盲插接口相比以往的Micro B接口插拔寿命更长传输更稳定更具备强大的数据传输能力以及供电能力俨然已成为硬盘盒传输的性能之选。</p>
<p><a href="/product/detail/397.html"><span>立即了解 &nbsp;&nbsp;></span></a></p>
</div>
</div>
</div>
<!--第三屏-->
<div class="img-responsives position-r h_speed h_speed_03">
<div class="swt-Container h_speed_text_white">
<div class="h_speed_text float-r">
<p class="title h_speed_title">速由芯生<br>快如闪电</p>
<p class="h_speed_subtitle">10Gb传输方案VL716强劲主控</p>
<p class="h_speed_des">别让珍贵的时间浪费在等待上。ORICO 硬盘盒采用VL716强劲主控传输性能爆表支持USB3.1 GEN2方案10Gbps传输速率比USB3.0理论速度快近一倍1G文件≈5秒面对大文件轻松传输游刃有余。</p>
<p><a href="/product/detail/423.html"><span>立即了解 &nbsp;&nbsp;></span></a></p>
</div>
</div>
</div>
<!--第四屏-->
<div class="img-responsives position-r h_speed h_speed_04">
<div class="swt-Container h_speed_text_white">
<div class="h_speed_text">
<p class="title h_speed_title">冲破桎梏<br>比快更快</p>
<p class="h_speed_subtitle">UASP加速协议传输提升</p>
<p class="h_speed_des">硬件加速软件优化让快更近一步。ORICO采用行业高标准的UASP加速协议支持SATARevision3.0转USB3.1 GEN2桥接方案在传输时优化CPU性能缩短程序响应时间为传输瞬间提速30%,更一步接近SATARevision3.0 6Gbps传输峰值。</p>
<p><a href="/product/detail/859.html"><span>立即了解 &nbsp;&nbsp;></span></a></p>
</div>
</div>
</div>
<!--第五屏-->
<div class="img-responsives position-r h_speed h_speed_05">
<div class="swt-Container h_speed_text_white">
<div class="h_speed_text float-r">
<p class="title h_speed_title">透明新意<br>绽放科技</p>
<p class="h_speed_subtitle">PC全透明设计透出科技之美</p>
<p class="h_speed_des">真正的自信是敢于直视内芯裸妆相见。透明系列硬盘盒是ORICO 重磅设计采用高透明PC材质设计极简优雅科技与艺术融合。白天晶莹剔透内部工艺一览无余夜间蓝光点缀幽蓝闪烁尽显科技之美。</p>
<p><a href="/product/detail/812.html"><span>立即了解 &nbsp;&nbsp;></span></a></p>
</div>
</div>
</div>
<!--第六屏-->
<div class="img-responsives position-r h_speed h_speed_06">
<div class="swt-Container h_speed_text_white">
<div class="h_speed_text">
<p class="title h_speed_title">防溅水侵扰<br>无跌落之忧</p>
<p class="h_speed_subtitle">360°硅胶保护户外三防</p>
<p class="h_speed_des">户外是摄影师记录美的天然素材库。江南绿树红花烟雨朦胧巴蜀高山流水飞流直下记录美的瞬间也需要收藏美的硬盘盒。ORICO 三防硬盘盒全身柔软硅胶防护面对硬盘盒意外跌落雨水入侵依然毫发无伤更有防尘能力适应户外复杂环境一路相随360°呵护你的珍贵数据。</p>
<p><a href="/product/detail/398.html"><span>立即了解 &nbsp;&nbsp;></span></a></p>
</div>
</div>
</div>
<!--第七屏-->
<div class="img-responsives position-r h_speed h_speed_07">
<div class="swt-Container h_speed_text_white">
<div class="h_speed_text float-r">
<p class="title h_speed_title">蜂窝对流<br>酷冷散热</p>
<p class="h_speed_subtitle">全铝合金工艺打造,蜂窝散热设计</p>
<p class="h_speed_des">良好的散热系统永远是硬盘稳定传输的基础。硬盘在高温度、高强度的环境下运转,会出现掉速甚至硬盘损坏的情况,尤其在炎热的夏天。沁凉如玉的铝合金具有良好的散热属性,配合蜂窝散热孔设计,硬盘盒中的热量将通过对流方式迅速排出,即使长时间工作,依然稳定高效。</p>
<p><a href="/product/detail/403.html"><span>立即了解 &nbsp;&nbsp;></span></a></p>
</div>
</div>
</div>
<!--第八屏-->
<div class="img-responsives position-r h_speed h_speed_08">
<div class="swt-Container h_speed_text_white">
<div class="h_speed_text">
<p class="title h_speed_title">轻巧如风<br>薄如羽翼</p>
<p class="h_speed_subtitle">为7mm固态硬盘而生无负出行</p>
<p class="h_speed_des">将硬盘盒设计至12mm厚度轻薄如羽只为更好的适配7mm固态硬盘。在轻薄的外表下却内置抗震海绵给予硬盘防摔能力无惧晃动且支持4TB大容量存储小小身材大大容量出行携带轻薄无负。</p>
<p><a href="/product/detail/402.html"><span>立即了解 &nbsp;&nbsp;></span></a></p>
</div>
</div>
</div>
<!--第九屏-->
<div class="img-responsives position-r h_speed_09">
<div class="swt-Container h_speed_text_white">
<div class="h_speed_text">
<p class="title h_speed_title">九重保护,让传输更放心</p>
</div>
</div>
</div>
<!--2.5英寸硬盘盒-->
<div class="h_speed_10">
<div class="swt-Container">
<div class="text-c h_speed_title Ts-black">2.5英寸硬盘盒</div>
<div class="h_speed_10_four img-responsive">
<ul>
<li>
<img src="__PUBLIC__/web/images/h_speed/h_speed_10_01.jpg">
<div class="h_speed_10_title h_speed_text_black title">2.5英寸硬盘盒</div>
<div class="h_speed_10_subtitle h_speed_text_gray subtitle">Type-C接口10Gbps传输</div>
<div class="transparent_buy">
<div class="transparent_buy_button">
<a href="https://detail.tmall.com/item.htm?id=528341417013" target="_blank">天猫购买</a>
<a href="https://item.jd.com/100001169003.html" target="_blank">京东购买</a>
</div>
</div>
</li>
<li>
<img src="__PUBLIC__/web/images/h_speed/h_speed_10_02.jpg">
<div class="h_speed_10_title h_speed_text_black title">2.5英寸硬盘盒</div>
<div class="h_speed_10_subtitle h_speed_text_gray subtitle">三防设计10Gbps传输</div>
<div class="transparent_buy">
<div class="transparent_buy_button">
<a href="https://detail.tmall.com/item.htm?id=554414261724" target="_blank">天猫购买</a>
<a href="https://item.jd.com/100001890383.html" target="_blank">京东购买</a>
</div>
</div>
</li>
<li>
<img src="__PUBLIC__/web/images/h_speed/h_speed_10_03.jpg">
<div class="h_speed_10_title h_speed_text_black title">2.5英寸移动硬盘盒</div>
<div class="h_speed_10_subtitle h_speed_text_gray subtitle">铝合金材质10Gbps传输</div>
<div class="transparent_buy">
<div class="transparent_buy_button">
<a href="https://detail.tmall.com/item.htm?id=557215283615" target="_blank">天猫购买</a>
<a href="https://item.jd.com/100002497546.html" target="_blank">京东购买</a>
</div>
</div>
</li>
<li>
<img src="__PUBLIC__/web/images/h_speed/h_speed_10_04.jpg">
<div class="h_speed_10_title h_speed_text_black title">2.5英寸SSD硬盘盒</div>
<div class="h_speed_10_subtitle h_speed_text_gray subtitle">12mm厚度轻薄无负</div>
<div class="transparent_buy">
<div class="transparent_buy_button">
<a href="https://detail.tmall.com/item.htm?id=544385818152" target="_blank">天猫购买</a>
<a href="https://item.jd.com/100002497540.html" target="_blank">京东购买</a>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
<!--硬盘底座-->
<div class="h_speed_10">
<div class="swt-Container">
<div class="text-c h_speed_title Ts-black">硬盘底座</div>
<div class="h_speed_10_two img-responsive">
<ul>
<li>
<img src="__PUBLIC__/web/images/h_speed/h_speed_10_05.jpg">
<div class="all_text">
<p class="h_speed_10_text title h_speed_text_black">Type-C移动硬盘座 </p>
<p class="subtitle h_speed_text_black">2.5/3.5英寸通用10Gbps传输 </p>
<p class="transparent_buy">
<a href="https://detail.tmall.com/item.htm?id=591111639630" target="_blank">天猫购买</a>
<a href="https://item.jd.com/44626417415.html" target="_blank">京东购买</a>
</div>
</li>
<li>
<img src="__PUBLIC__/web/images/h_speed/h_speed_10_06.jpg">
<div class="all_text">
<p class="h_speed_10_text title h_speed_text_black">Type-C硬盘底座 </p>
<p class="subtitle h_speed_text_black">2.5/3.5英寸通用10Gbps传输</p>
<p class="transparent_buy">
<a href="https://detail.tmall.com/item.htm?id=532629773547" target="_blank">天猫购买</a>
<a href="https://item.jd.com/100003371248.html" target="_blank">京东购买</a>
</div>
</li>
</ul>
</div>
<div class="h_speed_10_one img-responsive">
<img src="__PUBLIC__/web/images/h_speed/h_speed_10_07.jpg">
<div class="all_text">
<p class="h_speed_10_text title h_speed_text_black">透明硬盘底座 </p>
<p class="subtitle h_speed_text_black">10Gbps传输UASP加速协议</p>
<p class="transparent_buy">
<a href="https://detail.tmall.com/item.htm?id=553654630082" target="_blank">天猫购买</a>
<span class="subject_span">京东购买</span></p>
</div>
</div>
</div>
</div>
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>/html>

View File

@@ -0,0 +1,218 @@
<!DOCTYPE html>
<html lang="en">
<head>
{include file="include/head" /}
<meta charset="UTF-8">
<title>Title</title>
<link href="__PUBLIC__/web/css/subject/specil_new.css" rel="stylesheet" type="text/css">
<link href="__PUBLIC__/web/css/subject/jquery.bxslider.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__PUBLIC__/web/scripts/jquery.bxslider.js"></script>
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
<!--top End-->
<!--banner-->
<div class="lj_headset_banner"> <img src="__PUBLIC__/web/images/headset/lj_voice_banner.jpg" alt=""/>
<div class="lj_all_set">
<div class="lj_set_head">音乐时代
</div>
<div class="lj_set_b">入耳倾听,世界就是音符
</div>
</div>
</div>
<!--视频-->
<div class="lj_headset_video">
<div class="lj_set_v_all clearfix">
<div class="lj_set_v_left">
<div class="set_h3">
<p>聆听音乐</p>
<p>聆听心声</p>
</div>
<div class="set_small">音乐,不但入耳,更要入心</div>
<div>
<p>好耳机不仅是听见曼妙的乐声</p>
<p>更能聆听自己的心声</p>
<p>如果音乐是一场触及灵魂的对话</p>
<p>戴上耳机的刹那,时间仿佛静止</p>
<p>从此世界不再嘈杂</p>
<p>从此内心不再喧哗</p>
</div>
</div>
<div class="lj_set_v_right">
<video height="100%" controls poster="">
<source src="__PUBLIC__/web/images/headset/set_RP1.mp4"> 您的浏览器不支持 video 标签。 Your browser does not support HTML5 video.
</video>
</div>
</div>
</div>
<!--音乐耳机-->
<div class="lj_set_img02"> <img src="__PUBLIC__/web/images/headset/lj_voice_banner01.jpg" alt=""/>
<div class="lj_set_text">
<div class="lj_set_a">动圈,动人心弦
</div>
<div class="lj_set01_b">饱满的音感,清晰的人声,沉浸式的音乐氛围,永远是动圈鲜明的特点。</div>
<div class="lj_set_c">我们采用10mm动圈单元声场自然、澎湃音乐瞬态真实、柔和声音素质均衡通透外经专业大师悉心调音三频衔接流畅无论古典乐、流行乐、还是摇滚乐等复杂乐声都能高度解析还原音乐之美。
</div>
</div>
<div class="lj_set01_product">
<div class="lj_set01_img"><a href="#"><img src="__PUBLIC__/web/images/headset/lj_voice_img01.jpg" alt=""/></a>
<div class="lj_set_title">
<div class="goden_font_big">IEM-01音乐耳机</div>
</div>
<div class="set_btn_all">
<div class="transparent_buy_button">
<a href="https://detail.tmall.com/item.htm?id=563053930133" class="set_btn_jd"> 天猫购买</a>
<a href="https://item.jd.com/18549589220.html" class="set_btn_jd"> 京东购买</a>
</div>
</div>
</div>
<div class="lj_set01_img"><img src="__PUBLIC__/web/images/headset/lj_voice_img02.jpg" alt=""/>
<div class="lj_set_title">
<div class="goden_font_big">RM1音乐耳机</div>
</div>
<div class="set_btn_all">
<div class="transparent_buy_button">
<a href="https://detail.tmall.com/item.htm?id=578945881598" class="set_btn_jd"> 天猫购买</a>
<a href="https://item.jd.com/34133417968.html" class="set_btn_jd"> 京东购买</a>
</div>
</div>
</div>
<div class="lj_set01_img"><img src="__PUBLIC__/web/images/headset/lj_voice_img03.jpg" alt=""/>
<div class="lj_set_title">
<div class="goden_font_big">RP1音乐耳机</div>
</div>
<div class="set_btn_all">
<div class="transparent_buy_button">
<a href="https://detail.tmall.com/item.htm?id=578955937436" class="set_btn_jd"> 天猫购买</a>
<a href="https://item.jd.com/34192172735.html" class="set_btn_jd"> 京东购买</a>
</div>
</div>
</div>
</div>
</div>
<br clear="all">
<script type="text/javascript">
var trans_width = $( window ).width();
//alert(trans_width);
if ( trans_width < 768 ) {
$( '.lj_set01_product' ).bxSlider( {
slideWidth: 281,
minSlides: 2,
maxSlides: 3,
moveSlides: 1,
slideMargin: 10
} );
}
</script>
<!--金属高保真耳机-->
<div class="lj_set_goden"> <img src="__PUBLIC__/web/images/headset/lj_voice_banner02.jpg" alt=""/>
<div class="lj_goden_text">
<div class="lj_goden_a goden_w">隔音,沉浸其中 </div>
<div class="lj_goden_b goden_w">听你所听,爱你所爱,戴上耳机,音乐就是整个世界</div>
<div class="lj_goden_c goden_w">
为了防止外界的杂音干扰,为了能让您更加专注于音乐的世界入耳式亲肤佩戴自是首选,不仅佩戴舒适,只要戴上耳机,播放音乐,从此世间的纷扰与你无关。
</div>
</div>
<div class="lj_set_product">
<div class="lj_set_img01"><a href="#"><img src="__PUBLIC__/web/images/headset/lj_voice_img04.jpg" alt=""/></a>
<div class="lj_set_title">
<div class="goden_font_big">RM3金属高保真耳机</div>
</div>
<div class="set_btn_all">
<div class="transparent_buy_button">
<a href="https://detail.tmall.com/item.htm?id=579652165824" class="set_btn_jd"> 天猫购买</a>
<a href="https://item.jd.com/34611283402.html" class="set_btn_jd"> 京东购买</a>
</div>
</div>
</div>
<div class="lj_set_img01"><img src="__PUBLIC__/web/images/headset/lj_voice_img05.jpg" alt=""/>
<div class="lj_set_title">
<div class="goden_font_big">RM2金属高保真耳机</div>
</div>
<div class="set_btn_all">
<div class="transparent_buy_button">
<a href="https://detail.tmall.com/item.htm?id=581525189129"> 天猫购买</a>
<a href="https://item.jd.com/34689481061.html" class="set_btn_jd"> 京东购买</a>
</div>
</div>
</div>
<div class="lj_set_img01"><img src="__PUBLIC__/web/images/headset/lj_voice_img06.jpg" alt=""/>
<div class="lj_set_title">
<div class="goden_font_big">P2音乐耳机</div>
</div>
<div class="set_btn_all">
<div class="transparent_buy_button">
<a href="https://detail.tmall.com/item.htm?id=582629312590" class="set_btn_jd"> 天猫购买</a>
<a href="https://item.jd.com/37691650997.html" class="set_btn_jd"> 京东购买</a>
</div>
</div>
</div>
<div class="lj_set_img01"><img src="__PUBLIC__/web/images/headset/lj_voice_img07.jpg" alt=""/>
<div class="lj_set_title">
<div class="goden_font_big">P1音乐耳机</div>
</div>
<div class="set_btn_all">
<div class="transparent_buy_button">
<a href="https://detail.tmall.com/item.htm?id=582629312590" class="set_btn_jd"> 天猫购买</a>
<a href="https://item.jd.com/38701196871.html" class="set_btn_jd"> 京东购买</a>
</div>
</div>
</div>
</div>
</div>
<br clear="all">
<script type="text/javascript">
var trans_width = $( window ).width();
//alert(trans_width);
if ( trans_width < 768 ) {
$( '.lj_set_product' ).bxSlider( {
slideWidth: 281,
minSlides: 2,
maxSlides: 3,
moveSlides: 1,
slideMargin: 10
} );
}
</script>
<!--金属高保真耳机-->
<div class="lj_set_goden"> <img src="__PUBLIC__/web/images/headset/lj_voice_banner03.jpg" alt=""/>
<div class="lj_last_text">
<div class="lj_last_a voice_font">清晰,沟通无界 </div>
<div class="lj_last_b voice_font">清晰无噪,沟通无界,轻轻一按,通话如临现场</div>
<div class="lj_last_c voice_gray">
降噪麦克风就是为了给您提供一个宛如面对面交谈的通话环境,高质量、高清晰的语音通话,您说的每一个字都传达无误,配合降噪设计,有效消除周围复杂的杂音,让沟通没有距离。
</div>
</div>
</div>
<div class="lj_travel_text">即刻开启你的音悦之旅</div>
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,87 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>荣誉与证书_ORICO专利_奥睿科知识产权</title>
<meta name="Keywords" content="荣誉与证书" />
<meta name="Description" content="荣誉与证书" />
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/honor.css">
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
<!--top End-->
<div class="honor">
<div class="Swt-Banner"><img src="__PUBLIC__/web/images/honor/Honor-banner.jpg"></div>
</div>
<div class="honner_01">
<div class="swt-Container">
<div class="honner_01_all">
<div class="honner_01_text">
<p>ORICO作为深耕于USB技术探索与应用的品牌多年来在USB存储、充电、传输、<a href="http://www.orico.com.cn/product/subcategory/148.html" class="Ts-White">排插</a><a href="http://www.orico.com.cn/product/category/85.html" class="Ts-White">数据线</a><a href="http://www.orico.com.cn/product/subcategory/79.html" class="Ts-White">hub</a>等领域都有着骄人成绩。</p>
<p>荣誉既是认可,也是责任;</p>
<p>我们坚持以终为始,旨在为全世界消费者,带来追求更好生活的选择。</p>
</div>
<div class="honner_01_list">
<ul>
<li>
<div class="big_text">20+</div>
<div class="small_text">核心技术及产品自主发明专利</div>
</li>
<li>
<div class="big_text">500+</div>
<div class="small_text">产品新颖外观设计专利</div>
</li>
<li>
<div class="big_text">100+</div>
<div class="small_text">产品实用新型专利</div>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="honner_02">
<div class="honner_title">专利证书</div>
<div class="honner_des">20+发明专利、500+外观设计专利、100+实用新型专利</div>
<div class="swt-Container">
<img src="__PUBLIC__/web/images/honor/honner_02.png">
</div>
</div>
<div class="honner_03">
<div class="honner_title">知识产权</div>
<div class="honner_des">我们的产品、著作、商标等在多国家地区拥有自主知识产权,标示着品牌一步步走向国际的心路历程。</div>
<div class="swt-Container">
<img src="__PUBLIC__/web/images/honor/honner_03.png">
</div>
</div>
<div class="honner_04">
<div class="honner_title">认证与品控</div>
<div class="honner_des">严格的品质把控,获取各国家地区的权威认证,只是我们的起点。</div>
<div class="swt-Container">
<img src="__PUBLIC__/web/images/honor/honner_04.png">
</div>
</div>
<div class="honner_05">
<div class="honner_title">你们的信任,我们的动力</div>
<div class="honner_des">我们与诸多硬件商、知名品牌,保持着深度合作关系</div>
<div class="swt-Container">
<img src="__PUBLIC__/web/images/honor/honner_05.png">
</div>
</div> <!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
123
</body>
</html>

View File

@@ -0,0 +1,129 @@
<!DOCTYPE html>
<html lang="en">
<head>
{include file="include/head" /}
<meta charset="UTF-8">
<title>集团产业链介绍|orico产业链布局</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/industry.css">
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
<!--top End-->
<!--Banner-->
<div class="Industry_Banner">
<div class="all">
<div class="swt-Container">
<div class="all_text">
<div class="title">解密ORICO全产业链布局</div>
<div class="des">集研发、设计、生产、销售、品牌于一体的全产业链实力是ORICO所有产品与服务的强有力后盾能够实时、有效率、迅捷的提供满足市场的解决方案。15年来搭建起从理论到产能的全方位支撑体系不仅为集团提供坚实支撑同时也为集团合作伙伴们提供有效助力成为许多企业不可或缺的合作伙伴。
</div>
</div>
</div>
</div>
</div>
<!--第二屏-->
<div class="Industry_Gray_bg Industry_02">
<div class="swt-Container Industry_white_bg">
<div class="left ">
<img src="__PUBLIC__/web/images/industry/industry_01.jpg">
</div>
<div class="right">
<div class="img-responsive"><img src="__PUBLIC__/web/images/industry/industry_01_2.jpg"></div>
<div class="Industry_title">理论与团队支撑</div>
<div class="des">清晰认识全产业链战略的竞争,着力搭建自主全产业链,以客户和消费者引领产业链的发展进程。资源合理分配,团队战略协同,使集团附加值不断高升。</div>
</div>
</div>
</div>
<!--第三屏-->
<div class="Industry_03 Industry_white_bg">
<div class="swt-Container">
<div class="Industry_title">四大工厂产能支撑</div>
<ul>
<li class="img-responsive">
<img src="__PUBLIC__/web/images/industry/industry_03_1.jpg">
<div class="text">自主拥有4大综合性设计生产制造工厂任意一家都能独立完成相应产品的生产及售后保障服务。
</div>
</li>
<li class="img-responsive">
<img src="__PUBLIC__/web/images/industry/industry_03_2.jpg">
<div class="text">汇集工业设计、模具开发、加工制造、电子研发、生产组装于一体;自备仓储物流,保证货源充足。
</div>
</li>
</ul>
</div>
</div>
<!--第四屏-->
<div class="Industry_04">
<div class="swt-Container">
<div class="Industry_bg">
<div class="left">
<p class="Industry_title">5大产品线技术与产品支撑</p>
<p><img src="__PUBLIC__/web/images/industry/industry_part_3.png"></p>
</div>
<div class="right">
<div class="Industry_des">
<p>5条产品线全面铺陈围绕USB技术研发千余种产品涵盖从数据传输到充电再到娱乐外设等诸多方面。</p>
<p>从外观到技术,通过多年的钻研与累积,拥有自主创新产品的实力,致力于打造更棒的用户体验。</p>
</div>
</div>
</div>
</div>
</div>
<!--第五屏-->
<div class="Industry_05 Industry_Gray_bg">
<div class="swt-Container">
<div class="Industry_title">品牌树立与平台模式支撑</div>
<div class="swt-Table">
<ul class="Table-Row">
<li class="Table-Cell">
<div class="all_text">
<div class="Industry_subtitle">品牌上</div>
<div class="Industry_des">从品牌VI的搭建品牌战略不断完善与明确。在全产业链上下游资源配置与平衡进程中品牌贯穿始终。</div>
</div>
<div class="img-responsive "><img src="__PUBLIC__/web/images/industry/industry_05_1.jpg"></div>
</li>
<li class="Table-Cell"></li>
<li class="Table-Cell">
<div class="all_text">
<div class="Industry_subtitle">平台上</div>
<div class="Industry_des">以USB技术研发为核心包括产品设计、技术研发、生产制造到销售 ORICO已经成为一个综合型服务平台。</div>
</div>
<div class="img-responsive "><img src="__PUBLIC__/web/images/industry/industry_05_2.jpg"></div>
</li>
<li class="Table-Cell"></li>
<li class="Table-Cell">
<div class="all_text">
<div class="Industry_subtitle">地域上</div>
<div class="Industry_des">除了在全国进行区域化划分与运营,同时在海外市场的开拓上,针对不同地域文化背景施行本土化精准运营。</div>
</div>
<div class="img-responsive "><img src="__PUBLIC__/web/images/industry/industry_05_3.jpg"></div>
</li>
<li class="Table-Cell"></li>
<li class="Table-Cell">
<div class="all_text">
<div class="Industry_subtitle">模式上</div>
<div class="Industry_des">211智能补货模式的运用为线上销售、渠道销售、ODM服务提供了迅捷灵活的解决方案。</div>
</div>
<div class="img-responsive"><img src="__PUBLIC__/web/images/industry/industry_05_4.jpg"></div>
</li>
</ul>
</div>
</div>
</div>
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,303 @@
<!DOCTYPE html>
<html lang="en">
<head>
{include file="include/head" /}
<meta charset="UTF-8">
<title>品牌介绍</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/cooperation.css">
</head>
<body>
<!--top-->
{include file="include/top-head2023" /}
<!--top End-->
<div class="iotbpage">
<img src="__PUBLIC__/weben/images/Introductionimg/Cooperation/Introduction.png" alt="" class="bdimg1">
<div class="iotb_bgw">
<h1 class="iotbt1">选择我们的理由</h1>
<div class="iotb_part1">
<div class="iotb_p1_item">
<img src="__PUBLIC__/weben/images/cooperation/iotbic1.png" alt="" class="iotbic1">
<p class="iotbtp1">全球畅销<?php echo (date("Y")-2009);?></p>
<span class="iotbts1">在过去15年里我们在国内和全球70多个国家成功开拓了线上和线下渠道</span>
</div>
<div class="iotb_p1_item">
<img src="__PUBLIC__/weben/images/cooperation/iotbic2.png" alt="" class="iotbic1">
<p class="iotbtp1">卓越的研发技术团队</p>
<span class="iotbts1">拥有由高级工程师、结构工程师、电子工程师等140多名组成专业的研发团队。</span>
</div>
<div class="iotb_p1_item">
<img src="__PUBLIC__/weben/images/cooperation/iotbic3.png" alt="" class="iotbic1">
<p class="iotbtp1">精益化生产制造</p>
<span class="iotbts1">拥有自己的生产与仓储园区成熟完善的OPS集成供应链系统。在定制化生产供应等方面拥有国内一流的水平</span>
</div>
<div class="iotb_p1_item">
<img src="__PUBLIC__/weben/images/cooperation/iotbic4.png" alt="" class="iotbic1">
<p class="iotbtp1">严格的质量管理体系</p>
<span class="iotbts1">自建ORICO实验室拥有专业品控质检团队引进国际先进检测仪器全过程严格把控质量</span>
</div>
</div>
</div>
<div class="iotb_part2 iotb_part22" style="background: #fff;">
<h1 class="iotbt1">为您提供专属定制服务</h1>
<div class="fdimgs">
<div class="fdimgs-div">
<img src="__PUBLIC__/weben/images/cooperation/dom-fw-gysj.png" alt="" class="fbit">
<div class="fdimgs-div-span"></div>
<span>工业设计</span>
</div>
<div class="fdimgs-div">
<img src="__PUBLIC__/weben/images/cooperation/dom-fw-jgsj.png" alt="" class="fbit">
<div class="fdimgs-div-span"></div>
<span>结构设计</span>
</div>
<div class="fdimgs-div">
<img src="__PUBLIC__/weben/images/cooperation/dom-fw-dzsj.png" alt="" class="fbit">
<div class="fdimgs-div-span"></div>
<span>电子设计</span>
</div>
<div class="fdimgs-div">
<img src="__PUBLIC__/weben/images/cooperation/dom-fw-mjkf.png" alt="" class="fbit">
<div class="fdimgs-div-span"></div>
<span>模具开发</span>
</div>
</div>
<div class="fdimgs">
<div class="fdimgs-div">
<img src="__PUBLIC__/weben/images/cooperation/dom-fw-cpcs.png" alt="" class="fbit">
<div class="fdimgs-div-span"></div>
<span>产品测试与认证</span>
</div>
<div class="fdimgs-div">
<img src="__PUBLIC__/weben/images/cooperation/dom-fw-bzsj.png" alt="" class="fbit">
<div class="fdimgs-div-span"></div>
<span>品牌与包装设计</span>
</div>
<div class="fdimgs-div">
<img src="__PUBLIC__/weben/images/cooperation/dom-fw-sczz.png" alt="" class="fbit">
<div class="fdimgs-div-span"></div>
<span>生产组装</span>
</div>
<div class="fdimgs-div">
<img src="__PUBLIC__/weben/images/cooperation/dom-fw-shff.png" alt="" class="fbit">
<div class="fdimgs-div-span"></div>
<span>售后服务</span>
</div>
</div>
</div>
<div class="iotb_part2">
<h1 class="iotbt1">对于不同的情况</h1>
<div class="fdimgs">
<div class="fdimgs-div">
<img src="__PUBLIC__/web/images/indeximage/600-900-business.jpg" alt="" class="fbit">
<div class="fdimgs-div-span"></div>
<span>业务</span>
</div>
<div class="fdimgs-div">
<img src="__PUBLIC__/web/images/indeximage/600-900-dealers.jpg" alt="" class="fbit">
<div class="fdimgs-div-span"></div>
<span>经销商</span>
</div>
<div class="fdimgs-div">
<img src="__PUBLIC__/web/images/indeximage/600-900-school.jpg" alt="" class="fbit">
<div class="fdimgs-div-span"></div>
<span>学校</span>
</div>
<div class="fdimgs-div">
<img src="__PUBLIC__/web/images/indeximage/600-900-gifts.jpg" alt="" class="fbit">
<div class="fdimgs-div-span"></div>
<span>节日礼品</span>
</div>
</div>
</div>
<div class="iotb_part3" style="display:none">
<div class="odmmain">
<h1 class="iotbt1">ODM进展</h1>
</div>
<div class="odmconten">
<div class="odmitem">
<img src="__PUBLIC__/weben/images/cooperation/odmic1.png" alt="" class="odmimg">
<span class="odms1">市场分析</span>
</div>
<div class="odmitem">
<img src="__PUBLIC__/weben/images/cooperation/odmic2.png" alt="" class="odmimg">
<span class="odms1">锁定目标和成本</span>
</div>
<div class="odmitem">
<img src="__PUBLIC__/weben/images/cooperation/odmic3.png" alt="" class="odmimg">
<span class="odms1">系列化产品规划</span>
</div>
<div class="odmitem">
<img src="__PUBLIC__/weben/images/cooperation/odmic4.png" alt="" class="odmimg">
<span class="odms1">识别需求和评估</span>
</div>
<div class="odmitem">
<img src="__PUBLIC__/weben/images/cooperation/odmic5.png" alt="" class="odmimg">
<span class="odms1">研发保证金</span>
</div>
<div class="odmitem">
<img src="__PUBLIC__/weben/images/cooperation/odmic6.png" alt="" class="odmimg">
<span class="odms1">安排测试、认证</span>
</div>
<div class="odmitem">
<img src="__PUBLIC__/weben/images/cooperation/odmic7.png" alt="" class="odmimg">
<span class="odms1">确认样品</span>
</div>
<div class="odmitem">
<img src="__PUBLIC__/weben/images/cooperation/odmic8.png" alt="" class="odmimg">
<span class="odms1">开模制作样品</span>
</div>
<div class="odmitem">
<img src="__PUBLIC__/weben/images/cooperation/odmic9.png" alt="" class="odmimg">
<span class="odms1">支付模具费用</span>
</div>
<div class="odmitem">
<img src="__PUBLIC__/weben/images/cooperation/odmic10.png" alt="" class="odmimg">
<span class="odms1">设计草图和原型制作</span>
</div>
</div>
</div>
<img src="__PUBLIC__/web/images/indeximage/1920-500-2.jpg" class="coofootimg" alt="" style="display:none">
</div>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
<style>
.iotbic1 {
width: 100px;
height: 100px;
margin-bottom: 20px;
}
.iotb_p1_item{
width: 285px
}
.iotb_part2{
padding-bottom: 90px;
}
.coofootimg{
margin-bottom: 40px;
}
.iotb_part22 .fdimgs{
padding-bottom: 20px;
}
.fdimgs-div{
width: 100%;
background: #fff;
border-radius: 8px;
display: flex;
flex-direction: column;
width: 311px;
height: 405px;
overflow: hidden;
position: relative;
}
.iotb_part22 .fdimgs-div{
width: 320px;
height: 255px;
}
.iotb_part22 .fdimgs-div{
text-align: center;
}
.iotb_part22{
background: rgb(0,0,0,0.4);
}
.fdimgs-div-span{
position: absolute;
bottom: 0px;
z-index: 9999;
background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(200, 200, 200, 0.1)); /* 使用linear-gradient来创建渐变设置角度和颜色 */
height: 45px;
width: 100%;
}
.iotb_part22 .fdimgs-div>span{
font-size: 18px;
font-weight: bold;
z-index: 9999;
position: absolute;
bottom: 0px;
left: 0;
right: 0;
color: #fff;
line-height: 45px;
}
.fdimgs-div>span{
font-size: 30px;
z-index: 9999;
position: absolute;
bottom: 0px;
color: white;
margin-left: 10%;
line-height: 60px;
}
@media screen and (min-width:1460px) and (max-width:1720px){
.fdimgs-div{
background: #fff;
border-radius: 8px;
display: flex;
flex-direction: column;
width: 250px;
height: 355px;
overflow: hidden;
position: relative;
}
.fdimgs-div>span{
font-size: 24px;
z-index: 9999;
position: absolute;
bottom: 0px;
color: white;
margin-left: 10%;
line-height: 60px;
}
}
@media screen and (max-width:1459px){
.fdimgs-div{
background: #fff;
border-radius: 8px;
display: flex;
flex-direction: column;
width: 220px;
height: 325px;
overflow: hidden;
position: relative;
}
.fdimgs-div>span{
font-size: 18px;
z-index: 9999;
position: absolute;
bottom: 0px;
color: white;
margin-left: 10%;
line-height: 60px;
}
}
@media screen and (max-width:1299px){
.fdimgs-div{
background: #fff;
border-radius: 8px;
display: flex;
flex-direction: column;
width: 200px;
height: 305px;
overflow: hidden;
position: relative;
}
.fdimgs-div>span{
font-size: 16px;
z-index: 9999;
position: absolute;
bottom: 0px;
color: white;
margin-left: 10%;
line-height: 60px;
}
}
</style>
</html>

View File

@@ -0,0 +1,222 @@
<!DOCTYPE html>
<html lang="en">
<head>
{include file="include/head" /}
<meta charset="UTF-8">
<title>品牌介绍</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/cooperation.css">
</head>
<body>
<!--top-->
{include file="include/top-head2023" /}
<!--top End-->
<div class="iotbpage">
<img src="__PUBLIC__/weben/images/Introductionimg/Cooperation/Introduction.png" alt="" class="bdimg1">
<div class="iotb_bgw">
<h1 class="iotbt1">选择我们的理由</h1>
<div class="iotb_part1">
<div class="iotb_p1_item">
<img src="__PUBLIC__/weben/images/cooperation/iotbic1.png" alt="" class="iotbic1">
<p class="iotbtp1">畅销11年</p>
<span class="iotbts1">在全球70多个国家开设了线上线下渠道</span>
</div>
<div class="iotb_p1_item">
<img src="__PUBLIC__/weben/images/cooperation/iotbic2.png" alt="" class="iotbic1">
<p class="iotbtp1">卓越的研发团队</p>
<span class="iotbts1">成立了一个由近百名结构工程师、电子工程师等专业研发团队。</span>
</div>
<div class="iotb_p1_item">
<img src="__PUBLIC__/weben/images/cooperation/iotbic3.png" alt="" class="iotbic1">
<p class="iotbtp1">全球支持</p>
<span class="iotbts1">全球数字仓储,产品可以销售到世界各地。</span>
</div>
<div class="iotb_p1_item">
<img src="__PUBLIC__/weben/images/cooperation/iotbic4.png" alt="" class="iotbic1">
<p class="iotbtp1">高质量保证</p>
<span class="iotbts1">提供建议、帮助和工具,以帮助提高用户的体验。</span>
</div>
</div>
</div>
<div class="iotb_part2">
<h1 class="iotbt1">对于不同的情况</h1>
<div class="fdimgs">
<div class="fdimgs-div">
<img src="__PUBLIC__/web/images/indeximage/600-900-business.jpg" alt="" class="fbit">
<div class="fdimgs-div-span"></div>
<span>业务</span>
</div>
<div class="fdimgs-div">
<img src="__PUBLIC__/web/images/indeximage/600-900-dealers.jpg" alt="" class="fbit">
<div class="fdimgs-div-span"></div>
<span>经销商</span>
</div>
<div class="fdimgs-div">
<img src="__PUBLIC__/web/images/indeximage/600-900-school.jpg" alt="" class="fbit">
<div class="fdimgs-div-span"></div>
<span>学校</span>
</div>
<div class="fdimgs-div">
<img src="__PUBLIC__/web/images/indeximage/600-900-gifts.jpg" alt="" class="fbit">
<div class="fdimgs-div-span"></div>
<span>节日礼品</span>
</div>
</div>
</div>
<div class="iotb_part3">
<div class="odmmain">
<h1 class="iotbt1">ODM进展</h1>
</div>
<div class="odmconten">
<div class="odmitem">
<img src="__PUBLIC__/weben/images/cooperation/odmic1.png" alt="" class="odmimg">
<span class="odms1">市场分析</span>
</div>
<div class="odmitem">
<img src="__PUBLIC__/weben/images/cooperation/odmic2.png" alt="" class="odmimg">
<span class="odms1">锁定目标和成本</span>
</div>
<div class="odmitem">
<img src="__PUBLIC__/weben/images/cooperation/odmic3.png" alt="" class="odmimg">
<span class="odms1">系列化产品规划</span>
</div>
<div class="odmitem">
<img src="__PUBLIC__/weben/images/cooperation/odmic4.png" alt="" class="odmimg">
<span class="odms1">识别需求和评估</span>
</div>
<div class="odmitem">
<img src="__PUBLIC__/weben/images/cooperation/odmic5.png" alt="" class="odmimg">
<span class="odms1">研发保证金</span>
</div>
<div class="odmitem">
<img src="__PUBLIC__/weben/images/cooperation/odmic6.png" alt="" class="odmimg">
<span class="odms1">安排测试、认证</span>
</div>
<div class="odmitem">
<img src="__PUBLIC__/weben/images/cooperation/odmic7.png" alt="" class="odmimg">
<span class="odms1">确认样品</span>
</div>
<div class="odmitem">
<img src="__PUBLIC__/weben/images/cooperation/odmic8.png" alt="" class="odmimg">
<span class="odms1">开模制作样品</span>
</div>
<div class="odmitem">
<img src="__PUBLIC__/weben/images/cooperation/odmic9.png" alt="" class="odmimg">
<span class="odms1">支付模具费用</span>
</div>
<div class="odmitem">
<img src="__PUBLIC__/weben/images/cooperation/odmic10.png" alt="" class="odmimg">
<span class="odms1">设计草图和原型制作</span>
</div>
</div>
</div>
<img src="__PUBLIC__/web/images/indeximage/1920-500-2.jpg" class="coofootimg" alt="">
</div>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
<style>
.coofootimg{
margin-bottom: 40px;
}
.fdimgs-div{
width: 100%;
background: #fff;
border-radius: 8px;
display: flex;
flex-direction: column;
width: 311px;
height: 405px;
overflow: hidden;
position: relative;
}
.fdimgs-div-span{
position: absolute;
bottom: 0px;
z-index: 9999;
background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(200, 200, 200, 0.1)); /* 使用linear-gradient来创建渐变设置角度和颜色 */
height: 60px;
width: 100%;
}
.fdimgs-div>span{
font-size: 30px;
z-index: 9999;
position: absolute;
bottom: 0px;
color: white;
margin-left: 10%;
line-height: 60px;
}
@media screen and (min-width:1460px) and (max-width:1720px){
.fdimgs-div{
background: #fff;
border-radius: 8px;
display: flex;
flex-direction: column;
width: 250px;
height: 355px;
overflow: hidden;
position: relative;
}
.fdimgs-div>span{
font-size: 24px;
z-index: 9999;
position: absolute;
bottom: 0px;
color: white;
margin-left: 10%;
line-height: 60px;
}
}
@media screen and (max-width:1459px){
.fdimgs-div{
background: #fff;
border-radius: 8px;
display: flex;
flex-direction: column;
width: 220px;
height: 325px;
overflow: hidden;
position: relative;
}
.fdimgs-div>span{
font-size: 18px;
z-index: 9999;
position: absolute;
bottom: 0px;
color: white;
margin-left: 10%;
line-height: 60px;
}
}
@media screen and (max-width:1299px){
.fdimgs-div{
background: #fff;
border-radius: 8px;
display: flex;
flex-direction: column;
width: 200px;
height: 305px;
overflow: hidden;
position: relative;
}
.fdimgs-div>span{
font-size: 16px;
z-index: 9999;
position: absolute;
bottom: 0px;
color: white;
margin-left: 10%;
line-height: 60px;
}
}
</style>
</html>

208
app/index/view/group/job.phtml Executable file
View File

@@ -0,0 +1,208 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>加入我们_orico/奥睿科招聘</title>
<meta name="Keywords" content="加入我们;"/>
<meta name="Description" content="加入我们"/>
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/job.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/jquery.bxslider.css">
<script type="text/javascript" src="__PUBLIC__/web/scripts/jquery.bxslider.js"></script>
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<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">
<div class="join_img_l">
<img src="__PUBLIC__/web/images/job/join_bg_l.jpg">
</div>
</div>
<div class="swt-Container">
<div class="join_staff_t">带上你的激情与智慧,我们提供市场前驱的技术与产品、遍布海内外的线上下渠道;极富创意的团队与<br>你一起,让你的成就超出预期,影响突破想象。
<br>我们的团队 <img src="__PUBLIC__/web/images/job/join_up_07.jpg" style=" vertical-align: middle;">
</div>
</div>
<!--轮播效果-->
<div class="swt-Container">
<div class="slider8">
<div class="slide"><img src="__PUBLIC__/web/images/job/join_img01.jpg">
</div>
<div class="slide"><img src="__PUBLIC__/web/images/job/join_img02.jpg">
</div>
<div class="slide"><img src="__PUBLIC__/web/images/job/join_img03.jpg">
</div>
</div>
</div>
<script type="text/javascript">
$( document ).ready( function () {
$( '.slider8' ).bxSlider( {
slideWidth: 1440,
adaptiveHeight: true,
startSlides: 0,
slideMargin: 10
} );
} );
</script>
<!--你将获得-->
<div class="join_w_icon">
<div class="job-title padding-t-3">你将获得</div>
<div class="join_icon clearfix">
<ul>
<li><img src="__PUBLIC__/web/images/job/join_icon01.jpg">
<p>与创造价值对等的酬劳</p>
</li>
<li><img src="__PUBLIC__/web/images/job/join_icon02.jpg">
<p>与自我规划对等的提升</p>
</li>
<li><img src="__PUBLIC__/web/images/job/join_icon03.jpg">
<p>与个人付出对等的认可</p>
</li>
<li><img src="__PUBLIC__/web/images/job/join_icon04.jpg">
<p>与市场趋势对等的培养</p>
</li>
<li><img src="__PUBLIC__/web/images/job/join_icon05.jpg">
<p>五险一金</p>
</li>
<li><img src="__PUBLIC__/web/images/job/join_icon06.jpg">
<p>各类补贴</p>
</li>
<li><img src="__PUBLIC__/web/images/job/join_icon07.jpg">
<p>团队活动</p>
</li>
<li><img src="__PUBLIC__/web/images/job/join_icon08.jpg">
<p>法定节假日</p>
</li>
<li><img src="__PUBLIC__/web/images/job/join_icon09.jpg">
<p>节日礼品</p>
</li>
</ul>
</div>
</div>
<div class="swt-Container padding-t-3">
<video preload="none" controls poster="__PUBLIC__/web/images/job/join_us_video.jpg">
<source src="__PUBLIC__/web/images/job/orico_job_video.mp4" type="video/mp4">
</video>
</div>
<!--I WANT YOU-->
<!-- <div class="job-title join_t_big">元创“新兵老将”计划</div>
<div class="job-des">如果你是努力与潜质并存的新人,来到元创,跟随优秀的业务与专家团队雕琢自己,璞玉终绽光芒;
</br>如果你是纵横商海的老将,加入我们,突破扼住你天赋的茧,再次振翅蝶变,提升自我价值。</div> -->
<section class="bg-gray overflow-f">
<div class="swt-Container">
<div class="job-Table">
<!-- <ul class="Table-Row job-thead">
<li class="Table-Cell">部门</li>
<li class="Table-Cell">职位名称</li>
<li class="Table-Cell">招聘人数</li>
<li class="Table-Cell">工作地点</li>
<li class="Table-Cell">发布时间</li>
<li class="Table-Cell">截止时间</li>
<li class="Table-Cell">岗位要求</li>
</ul> -->
<?php if(!empty($job_list)): ?>
<?php foreach($job_list as $key => $value): ?>
<div class="job-Margin"></div>
<ul class="Table-Row">
<li class="Table-Cell job-line job-line-L"><?php echo $value['department']; ?></li>
<li class="Table-Cell job-line"><?php echo $value['job_name']; ?></li>
<li class="Table-Cell job-line"><?php echo $value['count']; ?></li>
<li class="Table-Cell job-line"><?php echo $value['job_address']; ?></li>
<li class="Table-Cell job-line"><?php echo $value['publish_time']; ?></li>
<li class="Table-Cell job-line"><?php echo $value['end_time']; ?></li>
<li class="Table-Cell job-line job-line-R"><a href="#" data-reveal-id="myModal" data-animation="none">投递简历</a></li>
<!--查看详情弹出层-start-->
<div class="reveal-modal-bg">
<div id="myModal" class="reveal-modal">
<div class="job-title-ly">
<div class="job-title-h1"><?php echo $value['job_name']; ?></div>
<div class="job-r-text"><b class="job-blue"><?php echo $value['salary'] ?></b> <?php echo $value['workfare']; ?></div>
</div>
<div class="job-imess">
<ul>
<li><img src="__PUBLIC__/web/images/job/job-address.jpg"> <?php echo $value['job_address']; ?> </li>
<li><img src="__PUBLIC__/web/images/job/job-years.jpg"> <?php echo $value['experience_requirement']; ?> </li>
<li><img src="__PUBLIC__/web/images/job/job-diploma.jpg"> <?php echo $value['education']; ?> </li>
</ul>
</div>
<div class="job-descript">
<p>职位描述</p>
<p>岗位职责: </p>
<p>
<?php echo $value['job_responsibility']; ?>
</p>
<p>岗位要求: </p>
<p>
<?php echo $value['job_requirement']; ?>
</p>
</div>
<a href="#"><div class="job-btn-deliver">投递简历</div></a>
<i class="icon-close icon-c-p"></i>
</div>
</div>
<!--查看详情弹出层-end-->
</ul>
<?php endforeach; ?>
<?php endif; ?>
<script type="text/javascript">
$(document).ready(function(){
/*点击弹出*/
$(".job-line-R").click(function(){
$(this).next(".reveal-modal-bg").show();
});
/*点击关闭*/
$(".icon-close").click(function(){
$(this).parents(".reveal-modal-bg").hide();
});
});
</script>
</div>
</div>
</section>
<!--联系方式-->
<section class="swt-Container" style="margin-bottom: 4%;">
<div class="job-title job-Contact-title">联系方式/工作地址</div>
<div class="bg-gray overflow-f">
<ul class="job-Contact">
<li class="job_office_i"><img src="__PUBLIC__/web/images/job/job-10.jpg">
</li>
<li>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;人:李小姐</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0731-88965800</p>
<p>简历投递邮箱:<a href="mailto:hrcs@orico.com.cn">hrcs@orico.com.cn</a>
</p>
</li>
<li>
<p>&nbsp;&nbsp;&nbsp;深圳市龙岗区吉华街道甘坑社区甘李六路12号中海信创新产业城14栋A1903-1904</p>
<p>&nbsp;&nbsp;&nbsp;东莞市常平镇塘角路24号元创动力东莞电商创新产业园</p>
<p>&nbsp;&nbsp;&nbsp;长沙市高新区岳麓西大道588号芯城科技园一期8栋11/12层</p>
</li>
</ul>
</div>
</section>
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,316 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>品牌里程</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/subject/catelists.css">
{include file="include/head-seo" /}
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";</script>
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top-head2023" /}
</div>
</header>
{include file="include/top-header-mobile" /}
<!--<?php if ($category['picture']): ?>-->
<!-- 轮播 s -->
<div class="homeban">
<div class="bd">
<ul>
<!--<li><img src="<?php echo getImage($category['picture']); ?>"/></li>-->
<li><img src="__PUBLIC__/weben/images/Introductionimg/Achievement.png"/></li>
</ul>
</div>
</div>
<!-- 轮播 e -->
<!--<?php endif; ?>-->
<!-- 新闻列表 e -->
<div class="Container1">
<div class="achive swt-Container">
<div class="title">ORICO荣耀</div>
<div class="number">
<div class="achive_shuju">
<div class="title1">400+</div>
<div class="subtitle1">日订单</div>
</div>
<div class="achive_shuju">
<div class="title1">800+</div>
<div class="subtitle1">研发专利</div>
</div>
<div class="achive_shuju">
<div class="title1">100+</div>
<div class="subtitle1">畅销国家和地区</div>
</div>
<div class="achive_shuju">
<div class="title1">20+</div>
<div class="subtitle1">国际设计奖项</div>
</div>
</div>
</div>
</div>
<div class="timeline Container">
<div class="swt-Container">
<div class="title">品牌里程</div>
<div class="timeline1 swt-Container">
<div class="box">
<div class="timeline-time">
<ul class="event_year">
<li class="current"><label for="2022">2022</label></li>
<li><label for="2021">2021</label></li>
<li><label for="2020">2020</label></li>
<li><label for="2019">2019</label></li>
<li><label for="2018">2018</label></li>
<li><label for="2017">2017</label></li>
<li><label for="2016">2016</label></li>
<li><label for="2015">2015</label></li>
<li><label for="2014">2014</label></li>
<li><label for="2013">2013</label></li>
<li><label for="2012">2012</label></li>
<li><label for="2011">2011</label></li>
<li><label for="2010">2010</label></li>
<li><label for="2009">2009</label></li>
</ul>
</div>
<div class="timeline-con">
<div class="con_event_list" >
<ul class="event_list">
<div>
<h3 id="2022" class="backgroundimg">2022</h3>
<li>
<p><span>重新定位数据存储与传播以及电力存储与传输品类,开启全新研发模式。</span></p>
</li>
</div>
<div>
<h3 id="2021">2021</h3>
<li>
<p><span>在深圳成立211数字研发制造实验室发布首款NAS产品MetaBox个人家庭云存储。</span></p>
</li>
</div>
<div>
<h3 id="2020">2020</h3>
<li>
<p><span>荣获第十八届深圳市著名品牌、第七届全球诚信品牌;孵化旗下品牌IDSONIX与联想在个人云存储和硬盘框领域达成战略合作。</span></p>
</li>
</div>
<div>
<h3 id="2019">2019</h3>
<li>
<p><span>ORICO奥睿科荣获《2019中国跨境电商出海品牌30强》受邀参加上海CES展 发布国内首款雷电3多功能扩展坞</span></p>
</li>
</div>
<div>
<h3 id="2018">2018</h3>
<li>
<p><span>参加迪拜GITEX展“蜂巢系列”产品首次亮相ORICO奥睿科首次越南经销商大会在胡志明市召开</span></p>
</li>
</div>
<div>
<h3 id="2017">2017</h3>
<li>
<p><span>ORICO互联网创意产业园新型产业链孵化平台正式成立。</span></p>
</li>
</div>
<div>
<h3 id="2016">2016</h3>
<li>
<p><span>在深圳开启2016奶奶中国区渠道核心代理商大会受邀参加巴西圣保罗电子消费展</span></p>
</li>
</div>
<div>
<h3 id="2015">2015</h3>
<li>
<p><span>品牌全球电商运营中心于长沙成立并运行投资4000万搭建东莞元创动力电商产业园</span></p>
</li>
</div>
<div>
<h3 id="2014">2014</h3>
<li>
<p><span>ORICO奥睿科&WD达成中国区战略合作伙伴关系全球收款USB数码排插上市</span></p>
</li>
</div>
<div>
<h3 id="2013">2013</h3>
<li>
<p><span>荣获《国家高新技术企业》认证与WD西部数据建立合作关系</span></p>
</li>
</div>
<div>
<h3 id="2012">2012</h3>
<li>
<p><span>全资建立组装工厂ORICO奥睿科香港专卖店开业</span></p>
</li>
</div>
<div>
<h3 id="2011">2011</h3>
<li>
<p><span>开拓多国线下渠道加入SATA国际组织协会</span></p>
</li>
</div>
<div>
<h3 id="2010">2010</h3>
<li>
<p><span>开始布局线上渠道达成多项媒体合作关系</span></p>
</li>
</div>
<div>
<h3 id="2009">2009</h3>
<li>
<p><span>2009年06月17日ORICO奥睿科在中国深圳成立</span></p>
</li>
</div>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tech Container">
<div class="swt-Container tech1">
<div class="title">品牌活动</div>
<div class="techcon swt-Container">
<div class="text">
<img src="__PUBLIC__/weben/images/indeximg/lichengbei.png">
<div class="year">2011</div>
<div class="context">
<p>
“无工具”设计促进了硬盘框安装的创新。加入SATA- io协会确保SATA系列产品的高互操作性。
</p>
</div>
</div>
<div class="tech-img">
<img src="__PUBLIC__/weben/images/indeximg/techimg.png">
</div>
</div>
<div class="techcon swt-Container">
<div class="text">
<img src="__PUBLIC__/weben/images/indeximg/lichengbei.png">
<div class="year">2013</div>
<div class="context">
<p>
与WD达成战略合作进一步探讨存储技术创新。成为威盛实验室中国区主要合作伙伴正式推出无线云存储系统。
</p>
</div>
</div>
<div class="tech-img">
<img src="__PUBLIC__/weben/images/indeximg/techimg2.png">
</div>
</div>
<div class="techcon swt-Container">
<div class="text">
<img src="__PUBLIC__/weben/images/indeximg/lichengbei.png">
<div class="year">2014</div>
<div class="context">
<p>
2014年成功开发智能数字插板并启动京东众筹取得满意效果。
</p>
</div>
</div>
<div class="tech-img">
<img src="__PUBLIC__/weben/images/indeximg/techimg3.png">
</div>
</div>
<div class="techcon swt-Container">
<div class="text">
<img src="__PUBLIC__/weben/images/indeximg/lichengbei.png">
<div class="year">2015</div>
<div class="context">
<p>
开始研究数据传输和动力传输技术包括Type-C、USB2.0、USB3.0等。
</p>
</div>
</div>
<div class="tech-img">
<img src="__PUBLIC__/weben/images/indeximg/techimg4.png">
</div>
</div>
<div class="techcon swt-Container">
<div class="text">
<img src="__PUBLIC__/weben/images/indeximg/lichengbei.png">
<div class="year">2016</div>
<div class="context">
<p>
公司代表产品——透明罩系列面世。
</p>
</div>
</div>
<div class="tech-img">
<img src="__PUBLIC__/weben/images/indeximg/techimg5.png">
</div>
</div>
<div class="techcon swt-Container">
<div class="text">
<img src="__PUBLIC__/weben/images/indeximg/lichengbei.png">
<div class="year">2021</div>
<div class="context">
<p>
与东芝合作,进一步探索个人存储解决方案,包括个人云存储、移动备份等。
</p>
</div>
</div>
<div class="tech-img">
<img src="__PUBLIC__/weben/images/indeximg/techimg6.png">
</div>
</div>
</div>
</div>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
<script>
$(function() {
$('label').click(function() {
$('.event_year>li').removeClass('current');
$(this).parent('li').addClass('current');
var year = $(this).attr('for');
$('#' + year).parent().prevAll('div').slideUp(800);
$('#' + year).parent().slideDown(800).nextAll('div').slideDown(800);
$('#' + year).parent().css('color',"red").nextAll('div').css('color',"black")
//
$("h3").removeClass('backgroundimg')
$('#' + year).addClass('backgroundimg')
});
});
</script>
</body>
<style>
.info h3 { width:300px;height:26px;background:url('../img/ictb.png') no-repeat;margin-bottom:8px; }
.b3 span{position:absolute;right:10px;top:0;background:url('../img/morelink.gif') no-repeat left center;padding-left:12px;}
.info li { padding:3px 0 3px 12px;background:url('../img/dian.png') 2px center no-repeat; }
.con_event_list{width:98%;height: 91%;overflow:auto;margin:30px 10px;}
.event_list { width:98%;;background:url('__PUBLIC__/weben/images/indeximg/greyline.png') 50px 0 repeat-y;}
.event_list h3 { margin:0 0 0 35px;font-size:24px;padding-left:40px;background:url('__PUBLIC__/weben/images/indeximg/greyyuandian.png')3px 3px no-repeat;height:38px;font-size: 20px;
font-family: Montserrat-Bold, Montserrat;
font-weight: bold;
color: #000000;
line-height: 30px; }
.backgroundimg { background:url('__PUBLIC__/weben/images/indeximg/yaundian.png')3px 3px no-repeat !important;}
</style>
</html>

229
app/index/view/group/odm.phtml Executable file
View File

@@ -0,0 +1,229 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ODM服务_加盟招商服务_中文官网帮助信息_ORICO/奥睿科官网</title>
<meta name="Keywords" content="ODM服务" />
<meta name="Description" content="ODM服务" />
{include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/odm.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/scripts/bxslider/jquery.bxslider.css">
<script type="text/javascript" src="__PUBLIC__/web/scripts/bxslider/jquery.bxslider.min.js"></script>
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top" /}
{include file="include/top-header" /}
</div>
</header>
<!--top End-->
<div class="img-responsive odm_banner_p"><img src="__PUBLIC__/web/images/odm/ODM-Banner.jpg">
<div class="odm_b_title">
<h3>品牌ODM</h3>
<div class="odn_t_small">我们将始终以客户的本质需求为导向,为您提供出色的产品解决方案,并持续不断地与您一起优化创新,持续创造长期价值,力求成为您企业发展的一股强大助力。</div>
</div>
</div>
<!--品牌ODM-->
<div class="odm_usb_tex">
<div class="odm_usb_t"> 我们的团队或帮您推进创想的实现</div>
<div class="odm_usb_sm">我们专注于USB周边产品的研发与生产已持续10年时间包括但不仅限于USB存储、USB数据传输、USB充电器、USB接线板、USB小家电等围绕USB技术开发的创想产品。</div>
</div>
<!--Menu-->
<div class="odm-img clearfix">
<div class="product">
<div class="thumb">
<a href="__ORICOROOT__/product/category/1.html" class="image"><img src="__PUBLIC__/web/images/odm/odm-01.jpg" alt="Product" /></a>
</div>
<a href="__ORICOROOT__/product/category/1.html"><button title="Add To Cart" class="add-to-cart">数据存储</button></a>
</div>
<div class="product">
<div class="thumb">
<a href="__ORICOROOT__/product/category/2.html" class="image"><img src="__PUBLIC__/web/images/odm/odm-02.jpg" alt="Product" /></a>
</div>
<a href="__ORICOROOT__/product/category/2.html"><button title="Add To Cart" class="add-to-cart">数据传输</button></a>
</div>
<div class="product">
<div class="thumb">
<a href="__ORICOROOT__/product/category/3.html" class="image"><img src="__PUBLIC__/web/images/odm/odm-03.jpg" alt="Product" /></a>
</div>
<a href="__ORICOROOT__/product/category/3.html"><button title="Add To Cart" class="add-to-cart">电力存储</button></a>
</div>
<div class="product">
<div class="thumb">
<a href="__ORICOROOT__/product/category/4.html" class="image"><img src="__PUBLIC__/web/images/odm/odm-04.jpg" alt="Product" /></a>
</div>
<a href="__ORICOROOT__/product/category/4.html"><button title="Add To Cart" class="add-to-cart">电力传输</button></a>
</div>
<div class="product">
<div class="thumb">
<a href="__ORICOROOT__/product/category/5.html" class="image"><img src="__PUBLIC__/web/images/odm/odm-05.jpg" alt="Product" /></a>
</div>
<a href="__ORICOROOT__/product/category/5.html"><button title="Add To Cart" class="add-to-cart">周边配件</button></a>
</div>
</div>
<!--选择我们的理由-->
<div class="ODM-Gray ODM-Select overflow-f">
<div class="swt-Container">
<div class="odm_usb_tex">
<div class="odm_usb_t"> 我们竭诚为您服务</div>
<div class="odm_usb_sm01">公司配套自有五金模具厂塑胶模具厂贴片厂组装厂包装厂。搭配具有特色的211供应模式打造产能可突破40亿元强有力的柔性供应链敏锐反应市场需求。简化合作流程并为每一位合作伙伴耐心服务。</div>
</div>
<div class="table01">
<ul>
<li ><img src="__PUBLIC__/web/images/odm/odm1.3_20.jpg"></li>
<li><img src="__PUBLIC__/web/images/odm/odm1_22.jpg"></li>
<li><img src="__PUBLIC__/web/images/odm/odm1_32.jpg"></li>
<li><img src="__PUBLIC__/web/images/odm/odm1.3_34.jpg"></li>
</ul>
</div>
<div class="table02">
<ul>
<li class="img-responsives"><img src="__PUBLIC__/web/images/odm/odm1.3_24.jpg"></li>
<li class="img-responsives"><img src="__PUBLIC__/web/images/odm/odm1.3_26.jpg"></li>
<li class="img-responsive"><img src="__PUBLIC__/web/images/odm/odm1_35.jpg"></li>
</ul>
</div>
</div>
</div>
<!--灵活多变的模式-->
<div class="odm_re_all">
<div class="odm_research">灵活多变的服务模式与技术范畴</div>
<div class="odm_re_img clearfix">
<ul>
<li><img src="__PUBLIC__/web/images/odm/odm1_08.jpg" >
<div class="odm_re_text">全权负责产品定义与研发</div>
</li>
<li><img src="__PUBLIC__/web/images/odm/odm1_10.jpg" >
<div class="odm_re_text">多方共同定义与研发</div>
</li>
<li><img src="__PUBLIC__/web/images/odm/odm1_12.jpg" >
<div class="odm_re_text">转接模具代生产</div>
</li>
</ul>
</div>
</div>
<!--证书-->
<div class="ODM-Gray">
<div class="odm_pic_i odm_n_z">
<div class="swt-Container" style="clear: both">
<img src="__PUBLIC__/web/images/odm/odm1.3_42.jpg">
</div>
</div></div>
<!--解决方案-->
<div class="odm_f1">
<div class="odm_usb_tex">
<div class="odm_usb_t"> 很高兴为您提供解决方案</div>
<div class="odm_usb_sm">我们拥有从设计到研发再到生产制造、物流运输到最终推向市场的完整产业链布局。</div>
</div>
<div class="odm_one">
<div class="odm_ont_bg">
<div class="odm_ont_bor clearfix">
<div class="odm_two_num"><img src="__PUBLIC__/web/images/odm/odm_two_03.png" ></div><div class="odm_line_l"><img src="__PUBLIC__/web/images/odm/odm_line_03.jpg" ></div> <div class="odm_two_order"><p><span class="font_one">一个起订</span><span class="font_one">一周交付</span><span class="font_one">两周研发</span></p> <p class="font_two">特色的“211”供应模式 </p></div>
</div>
</div>
</div>
<div class="odm_research01">全新柔性供应补货模式</div>
<div class="odm_re_all">
<div class="odm_re_img01 clearfix">
<ul>
<li><img src="__PUBLIC__/web/images/odm/odm_order_01.jpg" >
<div class="odm_order_t">Forecast订单/开放销售数据<br>
供应商滚动备货模式</div>
</li>
<li><img src="__PUBLIC__/web/images/odm/odm_order_02.jpg" >
<div class="odm_order_t">依据前三个月销售数据,按照备货系数<br>
供应商自动开始第4个月备货</div>
</li>
<li><img src="__PUBLIC__/web/images/odm/odm_order_03.jpg" >
<div class="odm_order_t">季度去峰值销量预估<br>
灵活设置缓冲备货</div>
</li>
</ul>
</div>
</div>
<!--ODM项目服务流程-->
</div>
<div class="odm_re_all">
<div class="odm_service">ODM项目服务流程</div>
<div class="odm_se_img"><img src="__PUBLIC__/web/images/odm/odm1_18.jpg" ></div>
</div>
<!--合作伙伴-->
<div class="odm_f1">
<div class="w1440 wow fadeInUp" data-wow-delay="0.9s">
<!-- 公共标题 s -->
<div class="ODM-Title">合作伙伴</div>
<!-- 公共标题 e -->
<div class="hz">
<ul>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_01.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_02.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_03.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_04.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_05.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_06.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_07.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_08.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_09.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_10.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_11.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_12.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_13.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_14.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_15.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_16.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_17.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_18.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_19.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_20.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_21.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_22.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_23.jpg"></li>
<li class="slide"><img src="__PUBLIC__/web/images/odm/distributor_Cooperation_24.jpg"></li>
</ul>
<script type="text/javascript">
$(document).ready(function(){
$('.hz ul').bxSlider({
slideWidth: 340,
minSlides: 2,
maxSlides: 8,
slideMargin: 0,
auto:true,
controls:false
});
});
</script>
</div>
</div>
</div>
<script>
$(function(){
$(".ODM-Menu li").mouseover(function(){
$(this).find(".img-responsive").addClass("MH-after");
})
$(".ODM-Menu li").mouseout(function(){
$(this).find(".img-responsive").removeClass("MH-after");
})
})
</script>
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>

File diff suppressed because it is too large Load Diff

156
app/index/view/group/policy.phtml Executable file
View File

@@ -0,0 +1,156 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>售后政策_注意事项_ORICO/奥睿科官网</title>
<meta name="Keywords" content="售后服务" />
<meta name="Description" content="售后服务三包政策无理由退货15天换新" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/css/subject/policy.css">
{include file="include/head" /}
</head>
<body>
<!--top-->
<header class="header-PC header-Index">
<div id="header" class="theme-white">
{include file="include/top-head2023" /}
</div>
</header>
<!--top End-->
<div class="img-responsive"><img src="__PUBLIC__/web/images/policy/policy-01.jpg"></div>
<div class="lj_sale_policy">售后政策</div>
<div class="lj_sale_t">ORICO/奥睿科商城为您提供七天包退、15天换新、1年保修、终身维护的服务承诺</div>
<div class="swt-Container">
<div class="lj_icon_l clearfix">
<ul>
<li>
<div class="lj_icon_left"><img src="__PUBLIC__/web/images/policy/policy-icon01.jpg"></div>
<div class="lj_text_right">
<div class="lj_h3">七天无理由退货</div>
<div class="lj_des">自收到货物之日起7日内在不影响商品二次销售的情况下包装及配件完好可申请无理由退货退货运费由用户自行承担。个别产品拆开密封包装后影响到二次销售将不接受退货</div>
</div>
</li>
<li>
<div class="lj_icon_left"><img src="__PUBLIC__/web/images/policy/policy-icon02.jpg"></div>
<div class="lj_text_right">
<div class="lj_h3">终身维护</div>
<div class="lj_des">所有Orico/奥睿科产品均实施终身维修服务自收到货物之日起1年内产品出现“性能故障”您可以联系Orico/奥睿科官方享受维护服务;一年以上酌收材料费及人工费(收费按国家要求执行)。</div>
</div>
</li>
<li>
<div class="lj_icon_left"><img src="__PUBLIC__/web/images/policy/policy-icon03.jpg"></div>
<div class="lj_text_right">
<div class="lj_h3">15天换新</div>
<div class="lj_des">自收到货物之日起第8日至15日内由于产品质量问题或性能故障您可以选择更换同型号同规格同价格产品或者维修运费由卖家承担。</div>
</div>
</li>
<li>
<div class="lj_icon_left"><img src="__PUBLIC__/web/images/policy/policy-icon04.jpg"></div>
<div class="lj_text_right">
<div class="lj_h3">一年保修</div>
<div class="lj_des">ORICO定制硬盘ORICO与WD为外部存储设备量身定制硬盘。1年免费换新自签收之日起1年内硬盘产品质量问题可享受换新服务。3年有限保修自签收之日起3年内质量问题可享受有限免费维修服务。</div>
</div>
</li>
</ul>
</div>
<div class="lj_bg_i clearfix">
<div class="lj_img_l"><img src="__PUBLIC__/web/images/policy/policy-img01.jpg"></div>
<div class="lj_text_r">
<div class="lj_h3">以下状况不列入质保范围:</div>
<div class="lj_des">
<p>1、未经ORICO许可进行改造的产品序列号或质保标签磨损、涂改或丢失</p>
<p>2、正常磨损</p>
<p>3、不按正常操作使用导致的损坏</p>
<p>4、以下情形造成的损害或故障意外事故、滥用、误用、疏忽、火灾、水淹、电击或其他自然灾害</p>
<p>5、未经许可的产品改装或不按说明书操作在非ORICO官网维修点维修</p>
<p>6、以上的三包指包退、包换、包修服务将依照后面所列的“有限保修条款”实施。</p></div>
</div>
</div>
<div class="lj_three_policy">为了保障您的合法权益,敬请关注以下信息</div>
<div class="lj_t_small">为了得到深圳市元创时代科技有限公司给予您的“包修、包换、包退”的权益,请您:</div>
<div class="lj_policy_icon clearfix">
<ul>
<li>
<div class="lj_icon05"><img src="__PUBLIC__/web/images/policy/policy-icon05.png"></div>
<div class="lj_icon05_text">三包有效期内用户必须出具购买发票若用户无法出具有效的购买发票则依照出厂日期后的第90日为保修期的起始日期一年内免费保修。</div>
</li>
<li>
<div class="lj_icon05"><img src="__PUBLIC__/web/images/policy/policy-icon06.png"></div>
<div class="lj_icon05_text">维修时请携带购买发票正本(发票须经售机单位填写完整并加盖公章,且不得涂改,否则无效)。</div>
</li>
<li>
<div class="lj_icon05"><img src="__PUBLIC__/web/images/policy/policy-icon07.png"></div>
<div class="lj_icon05_text">若符合更换条件的,只更换故障部分。如主机故障,只更换主机。其它不予更换,同时收回购买凭证(发票或收据复印件)。</div>
</li>
</ul>
</div>
<div class="lj_bg_i clearfix">
<div class="lj_img_l"><img src="__PUBLIC__/web/images/policy/policy-img02.jpg"></div>
<div class="lj_text_r">
<div class="lj_h3">有限保修条款</div>
<div class="lj_des">
<p>1、 由于使用者或第三者的疏忽、过失、滥用、误用或灾祸损坏造成的产品损坏(如:食物液体粘渍、进水、 外力震裂、外围 部件的刮痕的损坏等)。</p>
<p>2、 用户自行拆机,非经深圳市元创时代科技有限公司认可之维修和改装所造成的损坏。</p>
<p>3、 连接不适当的配件、未依说明书使用、因运输及其它意外而造成产品损坏。</p>
<p>4、 不正确或不正当的操作使用所造成的产品故障或损坏。</p>
<p>5、产品外表的各种标签、零部件、自耗零件和因长期使用而造成产品外表的自然磨损。</p>
<p>6、 超过三包有效期的。</p>
<p>7、 无购买凭证及有效发票的,但能够证明该产品在三包有效期内的除外。</p></div>
</div>
</div>
<div class="lj_three_policy">特别说明</div>
<div class="lj_policy_four clearfix">
<ul>
<li>
<div class="lj_icon05"><img src="__PUBLIC__/web/images/policy/policy-icon08.png"></div>
<div class="lj_icon05_text">产品由于进水或严重人为损坏,寄返维修时,维修单位与用户必须先签订相关维修协议,否则,我公司视为用户放弃维修。</div>
</li>
<li>
<div class="lj_icon05"><img src="__PUBLIC__/web/images/policy/policy-icon09.png"></div>
<div class="lj_icon05_text">产品同时有质量问题又有人为损坏的,不再享受保修权利,但我公司提供维修服务,但需要视损坏情况收取材料费和维修费。
</div>
</li>
<li>
<div class="lj_icon05"><img src="__PUBLIC__/web/images/policy/policy-icon10.png"></div>
<div class="lj_icon05_text">产品需收费维修,须在维修记录或收费发票/收据上注明非保修原因,用户签名认可,否则用户投诉,将由承修单位负责。
</div>
</li>
<li>
<div class="lj_icon05"><img src="__PUBLIC__/web/images/policy/policy-icon11.png"></div>
<div class="lj_icon05_text">如我司在官方宣传平台另有经总部批准的广告承诺,则在广告中表明的有效区域和有效时段内,公司必须按承诺执行。</div>
</li>
</ul>
</div>
<div class="lj_bg_i lj_mar_5 clearfix">
<div class="lj_img_l"><img src="__PUBLIC__/web/images/policy/policy-img04.jpg"></div>
<div class="lj_text_r">
<div class="lj_h3">注意事项</div>
<div class="lj_des">
<p>1、 填写送修单时请用楷体填写,须填写用户姓名、联系电话、故障现象、要求检测或维修以及其它内容,我们将根据用户所填写的内容进行判断和处理。</p>
<p>2、 请在送修机器前,先将存储在产品里的重要信息记录下来并删除,以免丢失或泄露。</p>
<p>*以上若有与国家政策不符或遗漏之处,以国家政策为准</p>
</div>
</div>
</div>
</div>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

View File

View File

@@ -0,0 +1,134 @@
<!DOCTYPE html>
<html lang="en">
<head>
{include file="include/head" /}
<meta charset="UTF-8">
<title>产品介绍</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/subject/culture.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/animate.min.css">
</head>
<body>
{include file="include/top-head2023" /}
<div class="culture_top ">
<img src="__PUBLIC__/web/images/indeximage/1920-600.jpg">
<div class="culture_bril_con swt-Container">
<div class="culture_bril_div">
<div class="iconimg"><img src="__PUBLIC__/weben/images/Introductionimg/product1.png"></div>
<div class="title">
<p>全球畅销11年</p>
</div>
<div class="subtitle">
<p>自ORICO成立以来已在全球许多国家开设了线下渠道拥有众多国家的独立代理和经销商。ORICO在外接硬盘盒和USB3.0外设领域连续四年被行业认可,我们的快充防雷插座在快速增长中保持前五名。</p>
</div>
</div>
<div class="culture_bril_div">
<div class="iconimg"><img src="__PUBLIC__/weben/images/Introductionimg/product2.png"></div>
<div class="title">
<p>卓越的研发团队</p>
</div>
<div class="subtitle">
<p>我们致力于为客户的需求提供创新和实用的解决方案。成立了一个由近百名资深工程师、结构工程师、电子工程师等组成的专业研发团队。开发了数千种产品如USB存储、USB扩展、USB插排、USB充电、数码配件以及优质外设。我们每周都保持新产品的研发。</p>
</div>
</div>
<div class="culture_bril_div">
<div class="iconimg"><img src="__PUBLIC__/weben/images/Introductionimg/product3.png"></div>
<div class="title">
<p>年产能超过40亿</p>
</div>
<div class="subtitle">
<p>采用5S管理是创造优质产品的前提。ORICO投资近8000万元建设了互联网与创意产业园这是一个综合服务中心集创新与技术培训、项目孵化、产业加速、投融资服务等多种功能于一体。年产能稳定超过了40亿元人民币合6亿美元</p>
</div>
</div>
</div>
</div>
<div class="culture_vision">
<div class="swt-Container">
<div class="title">
<!--Vision and Mission-->
</div>
<div class="swt-Table img-responsive">
<div id="tab1" class="Table-Row">
<div class="Table-Cell left"><img src="__PUBLIC__/web/images/culture/vision-01.jpg"></div>
<div class="Table-Cell center"></div>
<div class="Table-Cell right">
<p class="subtitle">USB技术的深度研究</p>
<p class="des"> USB技术的发展和创新是广泛而无限的。在未来ORICO将集中精力探索和创新USB技术并将其更多地应用于传输、电源、音频和视频以更好地促进人们的便捷生活并推动传输技术的突破性转变。罗马不是一天建成的。我们知道只有通过汇聚小的改变才有可能探索更大的创新并通过积累使我们的事业无限延续。</p>
</div>
</div>
</div>
<div class="swt-Table img-responsive culture_vision_02">
<div id="tab2" class="Table-Row">
<div class="Table-Cell left"><p class="subtitle">为更美好的生活提供更好的选择 </p>
<p class="des"> 变革不仅是每一位ORICO员工的责任也是机遇。我们期望我们的变革就像我们品牌的标志性元素阿基米德螺旋一样能够在方向上进行小的改变和修正并继续辐射更远探索未知领域。我们最初的离开的梦想将如此清晰如初。ORICO希望向员工、用户和更广泛的世界传递变革的力量</p></div>
<div class="Table-Cell center"></div>
<div class="Table-Cell right"><img src="__PUBLIC__/web/images/culture/vision-02.jpg"></div>
</div>
</div>
<div class="swt-Table img-responsive">
<div id="tab3" class="Table-Row">
<div class="Table-Cell left"><img src="__PUBLIC__/web/images/culture/vision-03.jpg"></div>
<div class="Table-Cell center"></div>
<div class="Table-Cell right">
<p class="subtitle">变革的力量 </p>
<p class="des">对于公众ORICO倡导“走出舒适圈”的生活方式鼓励每个人追求更美好的生活</p>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$('.culture_bril_div').addClass('animated fadeInUp');
$(document).ready(function() {
function isScrolledIntoView(elem) {
var docViewTop = $(window).scrollTop();
var docViewBottom = docViewTop + $(window).height();
var elemTop = $(elem).offset().top;
var elemBottom = elemTop + $(elem).height();
return (elemTop <= docViewBottom);
}
var myelement = $('#tab1'); // the element to act on if viewable
goScroll(myelement);
var myelement2 = $('#tab2'); // the element to act on if viewable
goScroll(myelement2);
var myelement3 = $('#tab3'); // the element to act on if viewable
goScroll(myelement3);
function goScroll(obj){
$(window).scroll(function() {
if(isScrolledIntoView(obj)) {
$(obj).find('.left').addClass('animated fadeInLeft');
$(obj).find('.right').addClass('animated fadeInRight');
}
});
}
});
</script>
<!-- bottom s -->
{include file="include/bottom2023" /}
<!-- bottom e -->
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More