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

790
app/usmobile/common.php Executable file
View File

@@ -0,0 +1,790 @@
<?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', 'US');
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;
}
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' => 16,'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' => 32,'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;
}
/**
* 计算剩余天时分。
* $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 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 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', 'isfeatured','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);
/*$bkid = Loader::model('Product')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);//print_r($bkid);die;
$id = '';
$result = '';
foreach ($bkid as $v){
$where= $id['product_id'] = $v['id'];//print_r($where);die;
$arr = Loader::model('ProductBkImg')->getList($where, array_merge($order), $bkinfo, $limit);
$result[]= $arr;
}
$result['info'] = $bkid;*/
//print_r($result);die;
break;
case 'isfeatured':
$arg_order['sort'] = 'asc';
$arg_order ['id'] = 'desc';
$arg_where['isfeatured'] = 1;
$result = Loader::model('Product')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
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 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', 'jump_link', 'headline', 'ishot', 'recommend', 'zancount', 'viewcount', 'description', 'picture', 'createtime'];
switch ($type) {
case 'recommend':
$arg_order['createtime'] = 'desc';
$arg_order['sort'] = 'asc';
$arg_order['id'] = '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['id'] = '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['sort'] = 'asc';
$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,'p.is_show' => 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.brand_id', '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,'p.is_show' => 0, 'c.stat' => 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.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);
// 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();
$result[$key]['product_two_img'] = $res;
}
return
$result;
}
function getCateArticle($cid, $limit = 12, $where = array(), $haschild = false, $order = array()) {
$arg_where = array_merge(['stat' => 0, 'p.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 getVideoBannerList($tid = 0, $limit = 12, $where = array(), $field = array('*'), $order = array()) {
$arg_where = array_merge(['stat' => 0, 'country_code' => COUNTRY_CODE], $where);
$arg_order = array_merge(['sort' => 'asc', 'id' => 'desc'], $order);
$arg_field = $field;
}
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, 'country_code' => COUNTRY_CODE], $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 getBlogList($limit = 5, $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 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, 'country_code' => COUNTRY_CODE], $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, 'country_code' => COUNTRY_CODE];
$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];
$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();//print_r($result);die;
return $result;
}
function getProductReated($id,$limit = 12, $where = array(), $haschild = false, $order = array()){
$where = ['product_id'=>$id,'stat'=>0, 'country_code' => COUNTRY_CODE];
$result = Loader::model('ProductTwoImg')->where($where)->field('image_url')->select();
$result = collection($result)->toArray();
return $result;
}
/*没有上级分类的爆款查询*/
function getCategoryProduct($parent_id)
{
if (empty($parent_id)) {
return "无父ID";
}
$where = ['recommend'=>1,'stat'=>0,'cid'=>$parent_id, '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');
}])
// ->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;
}
// 计算中文字符串长度
function utf8_strlen($string = null) {
// 将字符串分解为单元
preg_match_all("/./us", $string, $match);
// 返回单元个数
return count($match[0]);
}
//获取当前IP地址
function getip() {
static $ip = '';
$ip = $_SERVER['REMOTE_ADDR'];
if(isset($_SERVER['HTTP_CDN_SRC_IP'])) {
$ip = $_SERVER['HTTP_CDN_SRC_IP'];
} elseif (isset($_SERVER['HTTP_CLIENT_IP']) && preg_match('/^([0-9]{1,3}\.){3}[0-9]{1,3}$/', $_SERVER['HTTP_CLIENT_IP'])) {
$ip = $_SERVER['HTTP_CLIENT_IP'];
} elseif(isset($_SERVER['HTTP_X_FORWARDED_FOR']) AND preg_match_all('#\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}#s', $_SERVER['HTTP_X_FORWARDED_FOR'], $matches)) {
foreach ($matches[0] AS $xip) {
if (!preg_match('#^(10|172\.16|192\.168)\.#', $xip)) {
$ip = $xip;
break;
}
}
}
return $ip;
}
function get_os($agent) {
$os = false;
if (preg_match ( '/win/i', $agent ) && strpos ( $agent, '95' )) {
$os = 'Windows 95';
} else if (preg_match ( '/win 9x/i', $agent ) && strpos ( $agent, '4.90' )) {
$os = 'Windows ME';
} else if (preg_match ( '/win/i', $agent ) && preg_match ( '/98/i', $agent )) {
$os = 'Windows 98';
} else if (preg_match ( '/win/i', $agent ) && preg_match ( '/nt 6.0/i', $agent )) {
$os = 'Windows Vista';
} else if (preg_match ( '/win/i', $agent ) && preg_match ( '/nt 6.1/i', $agent )) {
$os = 'Windows 7';
} else if (preg_match ( '/win/i', $agent ) && preg_match ( '/nt 6.2/i', $agent )) {
$os = 'Windows 8';
} else if (preg_match ( '/win/i', $agent ) && preg_match ( '/nt 10.0/i', $agent )) {
$os = 'Windows 10'; // 添加win10判断
} else if (preg_match ( '/win/i', $agent ) && preg_match ( '/nt 5.1/i', $agent )) {
$os = 'Windows XP';
} else if (preg_match ( '/win/i', $agent ) && preg_match ( '/nt 5/i', $agent )) {
$os = 'Windows 2000';
} else if (preg_match ( '/win/i', $agent ) && preg_match ( '/nt/i', $agent )) {
$os = 'Windows NT';
} else if (preg_match ( '/win/i', $agent ) && preg_match ( '/32/i', $agent )) {
$os = 'Windows 32';
} else if (preg_match ( '/linux/i', $agent )) {
if(preg_match("/Mobile/", $agent)){
if(preg_match("/QQ/i", $agent)){
$os = "Android QQ Browser";
}else{
$os = "Android Browser";
}
}else{
$os = 'PC-Linux';
}
} else if (preg_match ( '/Mac/i', $agent )) {
if(preg_match("/Mobile/", $agent)){
if(preg_match("/QQ/i", $agent)){
$os = "IPhone QQ Browser";
}else{
$os = "IPhone Browser";
}
}else{
$os = 'Mac OS X';
}
} else if (preg_match ( '/unix/i', $agent )) {
$os = 'Unix';
} else if (preg_match ( '/sun/i', $agent ) && preg_match ( '/os/i', $agent )) {
$os = 'SunOS';
} else if (preg_match ( '/ibm/i', $agent ) && preg_match ( '/os/i', $agent )) {
$os = 'IBM OS/2';
} else if (preg_match ( '/Mac/i', $agent ) && preg_match ( '/PC/i', $agent )) {
$os = 'Macintosh';
} else if (preg_match ( '/PowerPC/i', $agent )) {
$os = 'PowerPC';
} else if (preg_match ( '/AIX/i', $agent )) {
$os = 'AIX';
} else if (preg_match ( '/HPUX/i', $agent )) {
$os = 'HPUX';
} else if (preg_match ( '/NetBSD/i', $agent )) {
$os = 'NetBSD';
} else if (preg_match ( '/BSD/i', $agent )) {
$os = 'BSD';
} else if (preg_match ( '/OSF1/i', $agent )) {
$os = 'OSF1';
} else if (preg_match ( '/IRIX/i', $agent )) {
$os = 'IRIX';
} else if (preg_match ( '/FreeBSD/i', $agent )) {
$os = 'FreeBSD';
} else if (preg_match ( '/teleport/i', $agent )) {
$os = 'teleport';
} else if (preg_match ( '/flashget/i', $agent )) {
$os = 'flashget';
} else if (preg_match ( '/webzip/i', $agent )) {
$os = 'webzip';
} else if (preg_match ( '/offline/i', $agent )) {
$os = 'offline';
} else {
$os = '未知操作系统';
}
return $os;
}
/**
* 获取 客户端的浏览器类型
* @return string
*/
function get_broswer($sys){
if (stripos($sys, "Firefox/") > 0) {
preg_match("/Firefox\/([^;)]+)+/i", $sys, $b);
$exp[0] = "Firefox";
$exp[1] = $b[1]; //获取火狐浏览器的版本号
} elseif (stripos($sys, "Maxthon") > 0) {
preg_match("/Maxthon\/([\d\.]+)/", $sys, $aoyou);
$exp[0] = "傲游";
$exp[1] = $aoyou[1];
} elseif (stripos($sys, "MSIE") > 0) {
preg_match("/MSIE\s+([^;)]+)+/i", $sys, $ie);
$exp[0] = "IE";
$exp[1] = $ie[1]; //获取IE的版本号
} elseif (stripos($sys, "OPR") > 0) {
preg_match("/OPR\/([\d\.]+)/", $sys, $opera);
$exp[0] = "Opera";
$exp[1] = $opera[1];
} elseif(stripos($sys, "Edge") > 0) {
//win10 Edge浏览器 添加了chrome内核标记 在判断Chrome之前匹配
preg_match("/Edge\/([\d\.]+)/", $sys, $Edge);
$exp[0] = "Edge";
$exp[1] = $Edge[1];
} elseif (stripos($sys, "Chrome") > 0) {
preg_match("/Chrome\/([\d\.]+)/", $sys, $google);
$exp[0] = "Chrome";
$exp[1] = $google[1]; //获取google chrome的版本号
} elseif(stripos($sys,'rv:')>0 && stripos($sys,'Gecko')>0){
preg_match("/rv:([\d\.]+)/", $sys, $IE);
$exp[0] = "IE";
$exp[1] = $IE[1];
}else {
$exp[0] = "未知浏览器";
$exp[1] = "";
}
return $exp[0].'('.$exp[1].')';
}
/**
* 根据 客户端IP 获取到其具体的位置信息
* @param unknown $ip
* @return string
*/
function get_address_by_ip($ip) {
$url = "http://ip.taobao.com/service/getIpInfo.php?ip=".$ip;
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$info = curl_exec($curl);
curl_close($curl);
return $info;
}
function clientlog() {
$useragent = $_SERVER ['HTTP_USER_AGENT'];
$clientip = $_SERVER ['REMOTE_ADDR'];
$client_info = get_os ( $useragent ) . "---" . get_broswer ( $useragent );
$rawdata_position = get_address_by_ip ( $clientip );
$rawdata_position = json_decode($rawdata_position, true);
$country = $rawdata_position['data']['country'];
$province = $rawdata_position['data']['region'];
$city = $rawdata_position['data']['city'];
$nettype = $rawdata_position['data']['isp'];
$time = date ( 'y-m-d h:m:s' );
$data = "来自{$country} {$province} {$city }{$nettype} 的客户端: {$client_info},IP为:{$clientip},在{$time}时刻访问";
return $data;
}

30
app/usmobile/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',
'__PREFIX__' => '',
// '__ORICOROOT__' => 'http://dev.com/usmobile'
'__ORICOROOT__' => 'http://www.orico.cc/usmobile'
],
//分页配置
'paginate' => [
'type' => '\pagination\FrontPagination',
'var_page' => 'page',
'list_rows' => 12,
],
];

185
app/usmobile/controller/Ad.php Executable file
View File

@@ -0,0 +1,185 @@
<?php
namespace app\usmobile\controller;
use think\Lang;
use think\Loader;
use think\Config;
use app\common\controller\BaseController;
class Ad extends BaseController {
public function tags($tags = '', $num = 1) {
if ($tags) {
$nocache = $this->request->param('nocache', 0);
$cacheTag = 'ad-' . md5($tags);
$htmlbody = $nocache ? '' : $this->cacheGet($cacheTag);
if (empty($htmlbody)) {
$list = Loader::model('Ad')->getList(['stat' => ['eq', 0], 'tags' => $tags], ['sort' => 'asc', 'id' => 'desc'], ['id', 'typeid', 'name', 'sort', 'tags', 'timeset', 'starttime', 'endtime', 'normbody', 'expbody'], $num);
if (empty($list)) {
$this->cacheTag('adTag')->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('adTag')->set($cacheTag, $htmlbody, $expire);
}
echo $htmlbody;
exit;
}
exit(' Error! ');
}
public function tagsli($tags = '', $num = 1) {
if ($tags) {
$nocache = $this->request->param('nocache', 0);
$cacheTag = 'ad-' . md5($tags);
$htmlbody = $nocache ? '' : $this->cacheGet($cacheTag);
if (empty($htmlbody)) {
$list = Loader::model('Ad')->getList(['stat' => ['eq', 0], 'tags' => $tags], ['sort' => 'asc', 'id' => 'desc'], ['id', 'typeid', 'name', 'sort', 'tags', 'timeset', 'starttime', 'endtime', 'normbody', 'expbody'], $num);
if (empty($list)) {
$this->cacheTag('adTag')->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";
//print_r($htmlbody);exit;
}
$this->cacheTag('adTag')->set($cacheTag, $htmlbody, $expire);
}
echo $htmlbody;
exit;
}
exit(' Error! ');
}
public function index($id = 0) {
if ($id > 0) {
$nocache = $this->request->param('nocache', 0);
$cacheTag = 'ad-' . $id;
$adbody = $nocache ? '' : $this->cacheGet($cacheTag);
if (empty($adbody)) {
$row = Loader::model('Ad')->where(['stat' => ['eq', 0], 'id' => $id])->find();
if (empty($row)) {
$this->cacheTag('adTag')->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('adTag')->set($cacheTag, $adbody, $expire);
}
echo $adbody;
exit;
}
exit(' Error! ');
}
public function cat($id = '', $num = 1) {
if ($id) {
$nocache = $this->request->param('nocache', 0);
$cacheTag = 'ad-' . $id;
$htmlbody = $nocache ? '' : $this->cacheGet($cacheTag);
if (empty($htmlbody)) {
$list = Loader::model('Ad')->getList(['stat' => ['eq', 0], 'typeid' => $id], ['sort' => 'asc', 'id' => 'desc'], ['id', 'typeid', 'name', 'sort', 'tags', 'timeset', 'starttime', 'endtime', 'normbody', 'expbody'], $num);
if (empty($list)) {
$this->cacheTag('adTag')->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('adTag')->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();
}
}

View File

@@ -0,0 +1,119 @@
<?php
namespace app\usmobile\controller;
use think\Loader;
use think\Cookie;
use think\Config;
use think\Session;
class Agents extends BaseController {
public function agents() {
return $this->view->fetch();
}
public function detail($id = 0) {
if ($id > 0) {
return $this->fetch();
} else {
return exception('数据有误,请检查后再操作');
}
}
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]);
}*/
}
public function create()
{
$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['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'] : '';
$insert_data = [
'company' => $data['company'],
'uri' => $data['uri'],
'name' => $data['name'],
'last_name' => $data['last_name'],
'email' => $data['email'],
'phone' => trim($data['phone']),
'country' => $data['country'],
'interest' => $data['interested'],
'is_inventory' => $data['is_inventory'],
'createtime' => date("Y-m-d H:i:s"),
'siteid' => $this->siteid,
'country_code' => $this->country_code,
'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,366 @@
<?php
/**
* Created by PhpStorm.
* User: ORICO
* Date: 2019-07-25
* Time: 11:43
*/
namespace app\usmobile\controller;
use think\Loader;
use think\Cookie;
use think\Config;
use think\validate;
class Antifake extends BaseController
{
public function anti_fake_inlet()
{
$this->redirect("https://anti-fake-checking.com/index");
return $this->view->fetch();
}
public function anti_fake()
{
$this->redirect("https://anti-fake-checking.com/index");
return $this->view->fetch();
}
public function index()
{
$this->redirect("https://anti-fake-checking.com/index");
return $this->view->fetch();
}
public function anti_fake_sninput()
{
$this->redirect("https://anti-fake-checking.com/index");
return $this->view->fetch();
}
public function anti_fake_input()
{
$this->redirect("https://anti-fake-checking.com/index");
return $this->view->fetch();
}
public function anti_fake_scan_snresult()
{
if ($_GET) {
$post = $this->request->get();
$fake = $post['qrresult'];
$fake = substr($fake,'7');
$ssd = Loader::model('Ssd');
$where = ['sn' => $fake];
$arr = $ssd->where($where)->find();
if ($arr) {
$data = $arr;//dump($data['sn']);die;
$data['result'] = 1;
$this->assign('data', $data);
} else {
$sn = https_request('http://mes.orico.com.cn:8084/api/SN/', $fake);
$sn = json_decode($sn, true);
$sn = json_decode($sn, true);//dump($sn);die;
if ($sn['result'] == 1) {
$data['sn'] = $sn['serial_number'];
$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'];
$data['delivery_time'] = $sn['delivery_time'];
$data['department'] = $sn['department'];
$data['made_up_articles_name'] = $sn['made_up_articles_name'];
$data['chicktime'] = date("Y-m-d H:i:s");
if (strpos($data['made_up_articles_name'], 'NGFF') !== false) {
$data['aditmend'] = 5;
if($sn['delivery_time']){
$data['delivery_time'] = $sn['delivery_time'];
$time = strtotime($data['delivery_time']);
$data['mendtime'] = date('Y-m-d H:i:s', strtotime("+5year", $time));
}
else{
$data['delivery_time'] = '';
}
}
elseif(strpos($data['made_up_articles_name'], 'NVME') !== false){
$data['aditmend'] = 3;
if($sn['delivery_time']){
$data['delivery_time'] = $sn['delivery_time'];
$time = strtotime($data['delivery_time']);
$data['mendtime'] = date('Y-m-d H:i:s', strtotime("+3year", $time));
}
else{
$data['delivery_time'] = '';
}
}
//$time = strtotime($data['delivery_time']);
/*$data['mendtime'] = date('Y-m-d H:i:s', strtotime("+5year", $time));
$bm = ['速卖通运营部','速卖通运营部','美国新蛋','海外亚马逊','ODM项目部','子品牌事业部','B2B营销中心','海外渠道部'];
if(in_array($data['department'],$bm)){
$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['sn']=$fake;
$data['result'] = $sn['result'];
$this->assign('data',$data);
}
}
}
return $this->fetch();
}
public function anti_fake_scan_result()
{
if ($_GET) {
$post = $this->request->get();
$fake = $post['qrresult'];
$ssd = Loader::model('Ssd');
$where = ['fake' => $fake];
$arr = $ssd->where($where)->find();
if ($arr) {
$data = $arr;//dump($data['sn']);die;
$data['result'] = 1;
$this->assign('data', $data);
} else {
$sn = https_request('http://mes.orico.com.cn:8084/api/values/', $fake);
$sn = json_decode($sn, true);
$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['department'];
$data['made_up_articles_name'] = $sn['made_up_articles_name'];
$data['chicktime'] = date("Y-m-d H:i:s");
if (strpos($data['made_up_articles_name'], 'NGFF') !== false) {
$data['aditmend'] = 5;
if($sn['delivery_time']){
$data['delivery_time'] = $sn['delivery_time'];
$time = strtotime($data['delivery_time']);
$data['mendtime'] = date('Y-m-d H:i:s', strtotime("+5year", $time));
}
else{
$data['delivery_time'] = '';
}
}
elseif(strpos($data['made_up_articles_name'], 'NVME') !== false){
$data['aditmend'] = 3;
if($sn['delivery_time']){
$data['delivery_time'] = $sn['delivery_time'];
$time = strtotime($data['delivery_time']);
$data['mendtime'] = date('Y-m-d H:i:s', strtotime("+3year", $time));
}
else{
$data['delivery_time'] = '';
}
}
/* $time = strtotime($data['delivery_time']);
$data['mendtime'] = date('Y-m-d H:i:s', strtotime("+5year", $time));
$bm = ['速卖通运营部','速卖通运营部','美国新蛋','海外亚马逊','ODM项目部','子品牌事业部','B2B营销中心','海外渠道部'];
if(in_array($data['department'],$bm)){
$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();
}
public function anti_fake_snresult()
{
if ($_POST) {
$post = $this->request->post();
if($post['sn']==''){
$this->error('请输入SN码');
}
//$this->verify_check($post['captcha'], 'authcode') || $this->error('验证码有误', url('fake/index'));
$snnum = $post['sn'];
$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 {
$sn = https_request('http://mes.orico.com.cn:8084/api/SN/', $snnum);
$sn = json_decode($sn, true);
$sn = json_decode($sn, true);
if ($sn['result'] == 1) {
$data['sn'] = $sn['serial_number'];
$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'];
$data['delivery_time'] = $sn['delivery_time'];
$data['department'] = $sn['department'];
$data['made_up_articles_name'] = $sn['made_up_articles_name'];
$data['chicktime'] = date("Y-m-d H:i:s");
if (strpos($data['made_up_articles_name'], 'NGFF') !== false) {
$data['aditmend'] = 5;
if($sn['delivery_time']){
$data['delivery_time'] = $sn['delivery_time'];
$time = strtotime($data['delivery_time']);
$data['mendtime'] = date('Y-m-d H:i:s', strtotime("+5year", $time));
}
else{
$data['delivery_time'] = '';
}
}
elseif(strpos($data['made_up_articles_name'], 'NVME') !== false){
$data['aditmend'] = 3;
if($sn['delivery_time']){
$data['delivery_time'] = $sn['delivery_time'];
$time = strtotime($data['delivery_time']);
$data['mendtime'] = date('Y-m-d H:i:s', strtotime("+3year", $time));
}
else{
$data['delivery_time'] = '';
}
}
/*$time = strtotime($data['delivery_time']);
$data['mendtime'] = date('Y-m-d H:i:s', strtotime("+5year", $time));
$bm = ['速卖通运营部','速卖通运营部','美国新蛋','海外亚马逊','ODM项目部','子品牌事业部','B2B营销中心','海外渠道部'];
if(in_array($data['department'],$bm)){
$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['sn']=$snnum;
$data['result'] = $sn['result'];
$this->assign('data',$data);
}
}
}
return $this->fetch();
}
public function anti_fake_result()
{
if ($_POST) {
$post = $this->request->post();
if($post['fake']==''){
$this->error('请输入防伪码');
}
//$this->verify_check($post['captcha'], 'authcode') || $this->error('验证码有误', url('fake/index'));
$fake = $post['fake'];
$ssd = Loader::model('Ssd');
$where = ['fake' => $fake];
$arr = $ssd->where($where)->find();
if ($arr) {
$data = $arr;//dump($data['sn']);die;
$data['result'] = 1;
$this->assign('data', $data);
} else {
$sn = https_request('http://mes.orico.com.cn:8084/api/values/', $fake);
$sn = json_decode($sn, true);
$sn = json_decode($sn, true);//dump($sn);die;
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['department'];
$data['made_up_articles_name'] = $sn['made_up_articles_name'];
$data['chicktime'] = date("Y-m-d H:i:s");
if (strpos($data['made_up_articles_name'], 'NGFF') !== false) {
$data['aditmend'] = 5;
if($sn['delivery_time']){
$data['delivery_time'] = $sn['delivery_time'];
$time = strtotime($data['delivery_time']);
$data['mendtime'] = date('Y-m-d H:i:s', strtotime("+5year", $time));
}
else{
$data['delivery_time'] = '';
}
}
elseif(strpos($data['made_up_articles_name'], 'NVME') !== false){
$data['aditmend'] = 3;
if($sn['delivery_time']){
$data['delivery_time'] = $sn['delivery_time'];
$time = strtotime($data['delivery_time']);
$data['mendtime'] = date('Y-m-d H:i:s', strtotime("+3year", $time));
}
else{
$data['delivery_time'] = '';
}
}
/*$time = strtotime($data['delivery_time']);
$data['mendtime'] = date('Y-m-d H:i:s', strtotime("+5year", $time));
$bm = ['速卖通运营部','速卖通运营部','美国新蛋','海外亚马逊','ODM项目部','子品牌事业部','B2B营销中心','海外渠道部'];
if(in_array($data['department'],$bm)){
$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();
}
}

View File

@@ -0,0 +1,191 @@
<?php
namespace app\usmobile\controller;
use think\Loader;
use think\Cookie;
use think\Config;
class Article extends BaseController {
public function lists() {
$arg_where = ['a.country_code' => $this->country_code];
$arg_order = ['a.id' => 'desc'];
$search = array();
$skeyword = $this->request->get('name', '', 'urldecode,strval');
if ($skeyword != '') {
$search['skeyword'] = $skeyword;
$arg_where['a.name'] =['like', '%' . $search['skeyword'] . '%'];
$search['name'] = $skeyword;
Config::set('paginate.query', ['skeyword' => $skeyword]); //分页参数
}
$arg_order = ['a.id' => 'desc'];
$cate_list = model('article_category')->where(['country_code' => $this->country_code, 'pid' => 0, 'isshow' => 1, 'stat' => 0])->order(['sort' => 'asc'])->select();
$arg_where['a.cid'] = reset($cate_list)['id'];
$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' => reset($cate_list)['id'], 'name' => '新闻资讯'],
];
// echo "<pre>--"; print_r($dataObject);die;
$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 = ['a.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;
}
$cate_list = model('article_category')->where(['country_code' => $this->country_code, 'pid' => 0, 'isshow' => 1, 'stat' => 0])->order(['sort' => 'asc'])->select();
switch ($category['classtype']) {
case 2:
$template = $category['templist'];
$arg_order = ['a.id' => '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, 8);
$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;
}
$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("catelists");
}
public function detail($id = 0) {
if ($id > 0) {
$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 = ['id' => 'desc'];
$arg_field = ['*'];
$dataObject = Loader::model('Pinglun')->getPageList($arg_where, $arg_order, $arg_field, 4);
$list = $dataObject->items();
foreach ($list as $key => $v) {
$list[$key]['headimg'] = '';
$result = Loader::model('customer')->where(['stat' => 0, 'id' => 23])->field('picture')->find();
if (!empty($result) && isset($result['picture'])) {
$list[$key]['headimg'] = $result['picture'];
}
}
$value['list'] = $dataObject->isEmpty() ? null : $list;
$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->json(-1, '该新闻不存在');
}
$article['zancount'] = $article['zancount'] + 1;
$result = $article->save();
if ($result) {
return $this->json(1, '点赞成功');
} else {
return $this->json(-1, '点赞失败');
}
}
return $this->json(-1, 'id错误');
}
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]);
}
}
}

View File

@@ -0,0 +1,31 @@
<?php
namespace app\usmobile\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,273 @@
<?php
namespace app\usmobile\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;
public function __construct() {
parent::__construct();
}
// 初始化
protected function _initialize() {
parent::_initialize();
$this->country_code = 'US';
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();
}
$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);
$business_email = (string) Config::get('business_email');
$this->view->assign('business_email', $business_email);
$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', 'm_icon', 'image']);
$this->cacheTag('ProductCategoryTag')->set('productCategoryList', $this->categoryList);
}
$this->productCategory = $this->list_to_tree($this->categoryList);
// tiaoshi($this->productCategory[0]['child']);die;
//导航
$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);
$this->view->assign('productCategory', $this->productCategory);
$this->view->assign('allCategoryList', $this->categoryList);
}
//导航初始化
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' => 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' => 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' => 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' => 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'] = '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']);
if(!empty($category) && $category['pid'] == 0) {
$v['url'] = 'product/catelists/id/'.$v['value'];
}
else{
$v['url'] = 'product/subcatelists/id/'.$v['value'];
}
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;
}
}

186
app/usmobile/controller/Blog.php Executable file
View File

@@ -0,0 +1,186 @@
<?php
namespace app\usmobile\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('数据有误,请检查后再操作');
}
$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);
//echo "<pre>====6666======".$id; print_r($dataObject); die;
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]);
}
}
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]);
}*/
}
//添加评论 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');
}
}

119
app/usmobile/controller/Bulk.php Executable file
View File

@@ -0,0 +1,119 @@
<?php
namespace app\usmobile\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('数据有误,请检查后再操作');
}
}
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]);
}*/
}
public function create()
{
$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, 'Country region 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'] : '';
$insert_data = [
'company' => $data['company'],
'first_name' => $data['name'],
'last_name' => $data['last_name'],
'email' => $data['email'],
'phone' => trim($data['phone']),
'country' => $data['country'],
'interested' => $data['interested'],
'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');
}
}

View File

@@ -0,0 +1,116 @@
<?php
namespace app\usmobile\controller;
use think\Loader;
use think\Cookie;
use think\Config;
use think\Session;
class BulkInquiry extends BaseController {
public function BulkInquiry() {
return $this->view->fetch();
}
public function detail($id = 0) {
if ($id > 0) {
return $this->fetch();
} else {
return exception('数据有误,请检查后再操作');
}
}
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]);
}*/
}
public function create()
{
$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($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
$searchFeed = getKeywords($referer);
$channel = isset($searchFeed['channel']) ? $searchFeed['channel'] : '';
$keyword = isset($searchFeed['search']) ? $searchFeed['search'] : '';
$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'],
'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,
'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('bulk_inquiry')->insert($insert_data);
if (!$result)
return $this->json(201, 'Failure to submit');
return $this->json(200, 'ok');
}
}

View File

@@ -0,0 +1,96 @@
<?php
namespace app\usmobile\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, '取消成功');
}
}

View File

@@ -0,0 +1,27 @@
<?php
/**
* Created by PhpStorm.
* User: ORICO
* Date: 2018-12-10
* Time: 13:48
*/
namespace app\usmobile\controller;
use think\Controller;
use think\Session;
class Country extends Controller
{
public function index(){
// session_start();
$ct= session('cit',$_GET['cit']);
$ct = session('cit');
if($ct){
$this->success('修改成功');
}else{
$this->error('修改国家失败');
}
}
}

View File

@@ -0,0 +1,496 @@
<?php
namespace app\usmobile\controller;
use think\Cookie;
use think\Lang;
use think\Loader;
use think\Config;
use think\Session;
use think\Cache;
class Customer extends BaseController {
public function index() {
/*if ($this->customer_id > 0)
{
$this->redirect(url('usmobile/customer/personal'));
}
*/ $this->redirect(url('usmobile/customer/personal'));
$url = $this->request->get('url');
$url = $url != '' ? $url : '';
$this->assign('url', $url);
return $this->fetch();
}
# 用旧密码改新密码
public function update_pwd()
{
$data = $this->request->post();
// tiaoshi($data);die;
if (empty($data) || $this->customer_id <= 0)
{
return $this->json(-1, 'Data error');
}
if ($this->customer_info['have_pwd'])
{
$customer_info = model('customer')->where(['id' => $this->customer_id])->find();
if (md5($data['old_password']) != $customer_info['password'])
{
return $this->json(-2, 'Old password incorrect');
}
}
$update_data = [
'password' => md5($data['password']),
'salt' => $data['password']
];
$result = model('customer')->where(['id' => $this->customer_id])->update($update_data);
if (!$result)
{
return $this->json(-4, 'New passwords do not match.');
}
$customer_info = model('customer')->getBasicInfo($this->customer_id);
$this->set_login_token($customer_info);
return $this->json(200, 'Your password has been updated.');
}
# 用邮箱改密码
public function update_forget_pwd()
{
$data = $this->request->post();
// tiaoshi($data);die;
if (empty($data))
{
return $this->json(-1, 'Data error');
}
if (!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/", $data['email']))
{
return $this->json(-2, 'Error Mail Form');
}
$customer_info = model('customer')->getBasicInfoByEmail($data['email']);
if (empty($customer_info))
{
return $this->json(-3, 'The email is not registered');
}
$token = md5($data['email'] . 'forgetpwd');
$this->cacheSet($token, $data['email'], 3600);
$result = $this->send_forgetpwd_email($data['email'], $token);
if ($result['code'] < 0)
{
return $this->json(-4, $result['msg']);
}
$this->_logout();
return $this->json(200, 'The email sending successful');
}
public function retrieve_password()
{
return view();
}
public function change_password()
{
$token = $this->request->post('token');
$password = $this->request->post('password');
$email = $this->cacheGet($token, '');
if ($email == '')
{
return $this->json(-1, 'Link Invalid');
}
if (!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/", $email))
{
return $this->json(-2, 'Error Mail Form');
}
if (!preg_match("/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&*-.]+$)[a-zA-Z\d!@#$%^&*-.]{8,20}$/", $password))
{
return $this->json(-3, 'The password must contain 8-20 characters and at least two types of characters.');
}
model('customer')->where(['stat' => 0, 'email' => $email])->update(['password' => md5($password)]);
$this->cacheDelete($token);
return $this->json(200, 'Your password has been updated.');
}
public function check_forgetpwd_email()
{
$token = $this->request->param('token');
$email = $this->cacheGet($token, '');
if ($email == '' || !preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/", $email))
{
return $this->json(-1, 'Error Mail Form');
}
$password = $this->request->post('password');
if (!preg_match("/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&*-.]+$)[a-zA-Z\d!@#$%^&*-.]{8,20}$/", $data['password']))
{
return $this->json(-2, 'The password must contain 8-20 characters and at least two types of characters.');
}
$customer = model('customer')->where(['stat' => 0, 'email' => $email])->find();
if (empty($customer))
{
return $this->json(-3, 'The email is not registered');
}
model('customer')->where(['stat' => 0, 'email' => $email])->update(['password' => md5($password)]);
$this->cacheDelete($token);
return $this->json(200, 'Your password has been updated.');
}
private function send_forgetpwd_email($email, $token)
{
//邮件标题
$subject = $this->request->host() . '-retrieve_password';
//邮件内容
$body = "<p>Dear $email,</p>
<p>We recently received a request to reset your password.</p>
<p>You may change your password to something secure and memorable here:</p>
<p>http://www.orico.cc/usmobile/customer/forgetpwd.html?token=$token</p>
<p>If you did not request to reset your password, please ignore this email and log in with your existing password.</p>
<p>Feel free to get in touch if you have any questions.</p>
<p>The Orico Team</p>
<p>supports@orico.com.cn</p>";
$res = $this->sendemail($email, $email, $subject, $body, 'oricogroup@orico.com.cn');
if ($res['code'] == 200) {
return ['code' => 200, 'msg' => "Well send you a link so you can please confirm."];
} else {
return ['code' => -3, 'msg' => $res['msg']];
}
}
public function activation()
{
$email = $this->request->param('email');
$email = isset($email) ? $email : '';
$this->assign('email', $email);
return $this->view->fetch();
}
public function forgetpwd_email()
{
return $this->view->fetch();
}
public function new_register()
{
$data = $this->request->post();
// tiaoshi($data);die;
if (empty($data) || $this->customer_id > 0)
{
return $this->json(-1, 'data error');
}
if (!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/", $data['email']))
{
return $this->json(-2, 'Error Mail Form');
}
if (!isset($data['re_send']) && !preg_match("/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&*-.]+$)[a-zA-Z\d!@#$%^&*-.]{8,20}$/", $data['password']))
{
return $this->json(-3, 'The password must contain 8-20 characters and at least two types of characters.');
}
if (!isset($data['re_send']) && !$this->verify_check($data['captcha'], 'authcode'))
{
return $this->json(-4, 'Verification code error');
}
$customer = model('customer')->where(['email' => $data['email'], 'stat' => 0])->find();
if (!empty($customer))
{
return $this->json(-5, 'This email has previously been used.');
}
$token = md5($data['email'] . 'register');
$result = $this->send_register_email($data['email'], $token);
if ($result['code'] < 0)
{
return $this->json(-6, $result['msg']);
}
if (!isset($data['re_send']))
{
$delimiter = '$*$%&';
$this->cacheSet($token, $data['email'] . $delimiter . md5($data['password']), 3600);
}
else
{
if ($this->cacheHas($token))
{
$this->cacheSet($token, $this->cacheGet($token), 3600);
}
else
{
return $this->json(-100, 'The link has expired');
}
}
return $this->json(200, 'Send Success');
}
public function check_register_email()
{
$token = $this->request->param('token');
$data = $this->cacheGet($token, '');
if ($data == '')
{
echo '<script>alert("Captcha Invalid")</script>';
exit;
}
$delimiter = '$*$%&';
$arr = explode($delimiter, $data);
if (!is_array($arr) || !isset($arr[0]) || !isset($arr[1]))
{
echo '<script>alert("Data Invalid")</script>';
exit;
}
$email = $arr[0];
$password = $arr[1];
if (!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/", $email))
{
echo '<script>alert("Error Mail Form")</script>';
exit;
}
$customer = model('customer')->where(['stat' => 0, 'email' => $email])->find();
if (!empty($customer))
{
echo '<script>alert("This email has previously been used.")</script>';
exit;
}
$firstname = 'Orico' . rand(10000000, 99999999);
$insert_data = [
'firstname' => $firstname,
'email' => $email,
'password' => $password,
'country_code' => $this->country_code
];
$customer_id = model('customer')->insertGetId($insert_data);
if (!$customer_id)
{
echo '<script>alert("Registry Faild")</script>';
}
$customer_info = model('customer')->getBasicInfo($customer_id);
$this->set_login_token($customer_info);
$this->cacheDelete($token);
echo '<script>
alert("Registry Success");
location.href="http://www.orico.cc/usmobile";
</script>';
exit;
}
private function send_register_email($email, $token)
{
//邮件标题
$subject = $this->request->host() . '-registry';
//邮件内容
$body = "<p>Dear $email</p><p>Thank you for registering at orico, were excited to have you with us!</p><p>Click the link below to activate your account:</p><p>http://www.orico.cc/usmobile/customer/check_register_email.html?token=$token</p><p>The Orico Team</p><p>support@orico.com.cn</p>";
$res = $this->sendemail($email, $email, $subject, $body, 'oricogroup@orico.com.cn');
if ($res['code'] == 200) {
return ['code' => 200, 'msg' => "Well send you a link so you can please confirm."];
} else {
return ['code' => -3, 'msg' => $res['msg']];
}
}
public function login()
{
if ($this->customer_id > 0)
{
$this->redirect(url('usmobile/customer/personal'));
}
return view();
}
public function new_login()
{
$data = $this->request->post();
if (empty($data) || $this->customer_id > 0)
{
return $this->json(-1, 'Data error');
}
$where = [
'stat' => 0,
'email' => $data['email']
];
$customer_info = model('customer')->where($where)->field('id, firstname, picture, sex, email, telephone, qq, birthday, password')->find();
if (empty($customer_info))
{
return $this->json(-2, 'The email is not registered');
}
if ($customer_info['password'] != md5($data['password']) || empty($data['password']))
{
return $this->json(-3, 'Email address or password incorrect');
}
$this->set_login_token($customer_info);
return $this->json(200, 'Login Successful');
}
public function register() {
if ($this->customer_id > 0) {
return $this->redirect(url('usmobile/customer/personal'));
}
return $this->fetch();
}
public function personal()
{
if ($this->customer_id <= 0)
{
$this->redirect(url('usmobile/customer/login'));
}
return $this->fetch();
}
public function my_collection()
{
if ($this->customer_id <= 0)
{
$this->redirect(url('usmobile/customer/login'));
}
$param = $this->request->param();
// tiaoshi($param);die;
$where = ['a.stat' => 0, 'b.stat' => 0, 'a.customer_id' => $this->customer_id, 'b.country_code' => $this->country_code];
if (isset($param['cid']))
{
$cid_arr = model('product_category')->getChildIDArray($param['cid']);
$where['b.cid'] = ['in', $cid_arr];
$cid = $param['cid'];
}
else
{
$cid = 0;
}
$field = ['b.id', 'b.cid', 'b.name', 'b.shortname', 'b.isnew', 'b.ishot', 'b.recommend', 'b.viewcount', 'b.brand_id'];
$order = ['a.id' => 'desc'];
$list = model('collection')->getList($where, $order, $field, 10);
foreach ($list as $key => $value) {
$product_two_img = model('product_two_img')->where(['product_id' => $value['id']])->find();
$list[$key]['product_two_img'] = $product_two_img['image_url'];
}
$data = [
'list' => $list->isEmpty() ? null : $list->items(),
'page' => $list->render(),
'cid' => $cid
];
$this->assign($data);
return $this->fetch();
}
public function new_logout()
{
$this->_logout();
return $this->redirect('usmobile/customer/login');
}
public function forgetpwd() {
$token = $this->request->param('token') ? $this->request->param('token') : '';
$this->assign('token', $token);
return $this->fetch();
}
public function sendemail($to, $to_name, $subject, $body, $from_email = '', $from_name = 'ORICO') {
$email_host = (string) Config::get('email_host');
$email_tls = (string) Config::get('email_tls');
$email_port = (string) Config::get('email_port');
$email_user = (string) Config::get('email_user');
$email_pass = (string) Config::get('email_pass');
$email_code = (string) Config::get('email_code');
$email_replyaddr = (string) Config::get('email_replyaddr');
$website_email = (string) Config::get('website_email');
// Passing `true` enables exceptions
$mail = new \mail\PHPMailer\PHPMailer(true);
try {
//Tell PHPMailer to use SMTP
$mail->isSMTP();
//$mail->setLanguage('en');
//Enable SMTP debugging
// 0 = off (for production use)
// 1 = client messages
// 2 = client and server messages
$mail->SMTPDebug = 0;
$mail->Host = $email_host;
// if your network does not support SMTP over IPv6
//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission
$mail->Port = $email_port;
$mail->CharSet = strtolower($email_code);
$mail->Encoding = 'base64';
$mail->SMTPKeepAlive = true;
//Set the encryption system to use - ssl (deprecated) or tls
$mail->SMTPSecure = strtolower($email_tls);
//Whether to use SMTP authentication
$mail->SMTPAuth = true;
//Username to use for SMTP authentication - use full email address for gmail
$mail->Username = $email_user;
//Password to use for SMTP authentication
$mail->Password = $email_pass;
//Set who the message is to be sent from
if ($from_email) {
$mail->setFrom($from_email, $from_name);
} else {
$mail->setFrom($email_replyaddr, 'Sender');
}
//Set an alternative reply-to address
if ($website_email) {
$mail->addReplyTo($website_email, 'Reply');
}
//Set who the message is to be sent to
$mail->addAddress($to, $to_name);
//$mail->addAddress($website_email, 'Recipient');
//Set the subject line
$mail->Subject = $subject;
//Read an HTML message body from an external file, convert referenced images to embedded,
//convert HTML into a basic plain-text alternative body
$mail->msgHTML($body);
//$mail->Body = 'This is the HTML message body <b>in bold!</b>';
//Replace the plain text body with one created manually
$mail->AltBody = 'This is a plain-text message body';
$mail->WordWrap = 60;
//send the message, check for errors
if (!$mail->send()) {
$result = ['code' => -1, 'msg' => 'The email sending failed, try again later. '];
} else {
$result = ['code' => 200, 'msg' => 'The email sending successful'];
}
} catch (\mail\PHPMailer\Exception $e) {
$result = ['code' => -2, 'msg' => 'The email sending failed, try again later. '];
}
return $result;
}
}

View File

@@ -0,0 +1,383 @@
<?php
namespace app\usmobile\controller;
use think\Config;
use think\Cookie;
use think\Loader;
class Download extends BaseController
{
public function search($id = 0)
{
$skeyword = $this->request->get('skeyword', '', 'urldecode');
$arg_where = ['a.siteid' => $this->siteid];
$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'];
if (!empty($skeyword)) {
$skeyword = trim($skeyword);
$arg_where['a.name'] = ['like', '%' . $skeyword . '%'];
Config::set('paginate.query', ['skeyword' => $skeyword]); //分页参数
}
if ($id > 0) {
$category = Loader::model('DownloadCategory')->getRow($id);
}
$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;
$value['skeyword'] = $skeyword;
$value['category'] = $category;
$value['seo_title'] = config('download_seo_title') ?: config('website_seo_title');
$value['seo_keyword'] = config('download_seo_keyword') ?: config('website_seo_keyword');
$value['seo_description'] = config('download_seo_description') ?: config('website_seo_description');
$this->assign($value);
return $this->fetch('catelists');
}
public function catelists($id = 0)
{
$skeyword = $this->request->get('keywords', '', 'urldecode');
$arg_where = [
'a.siteid' => $this->siteid,
'a.country_code' => $this->country_code
];
if ($id > 0) {
$arg_where['cid'] = $id;
$category = Loader::model('DownloadCategory')->getRow($id);
}
if (empty($category)) {
return exception('数据有误,请检查后再操作');
}
if($this->country_code == 'US'){
$arg_where['a.cid'] = '22';
}
else{
$arg_where['a.cid'] = '1';
}
if (!empty($skeyword)) {
$skeyword = trim($skeyword);
$arg_where['a.name'] = ['like', '%' . $skeyword . '%'];
Config::set('paginate.query', ['skeyword' => $skeyword]); //分页参数
}
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);
//echo Loader::model('Download')->getLastSql(); die;
$value = [
'list' => $dataObject->isEmpty() ? null : $dataObject->items(), //$dataObject->getCollection()->toArray()
'page' => $dataObject->render(),
];
if ($this->request->isAjax()) {
return $this->result($value, true, 'Software download');
}
$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 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));
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']);
$download = $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 . '秒后再试');
}
$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($download));
readfile($download);
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('数据有误,请检查后再操作');
}
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();
}
}

View File

@@ -0,0 +1,296 @@
<?php
namespace app\ismobile\controller;
use think\Loader;
use think\Cookie;
use think\Config;
class Download extends BaseController {
public function search($id = 0) {
$skeyword = $this->request->get('skeyword', '', 'urldecode');
$arg_where = ['a.siteid' => $this->siteid];
$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'];
if (!empty($skeyword)) {
$skeyword = trim($skeyword);
$arg_where['a.name'] = ['like', '%' . $skeyword . '%'];
Config::set('paginate.query', ['skeyword' => $skeyword]); //分页参数
}
if ($id > 0) {
$category = Loader::model('DownloadCategory')->getRow($id);
}
$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;
$value['skeyword'] = $skeyword;
$value['category'] = $category;
$value['seo_title'] = config('download_seo_title')? : config('website_seo_title');
$value['seo_keyword'] = config('download_seo_keyword')? : config('website_seo_keyword');
$value['seo_description'] = config('download_seo_description')? : config('website_seo_description');
$this->assign($value);
return $this->fetch('catelists');
}
public function catelists($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('数据有误,请检查后再操作');
}
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 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));
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']);
$download = $directory . $detail['dl_url']; // 文件要下载的地址
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($download));
readfile($download);
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('数据有误,请检查后再操作');
}
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) {
//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('数据有误,请检查后再操作');
}
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);
}
}

314
app/usmobile/controller/Group.php Executable file
View File

@@ -0,0 +1,314 @@
<?php
/**
* Created by PhpStorm.
* User: ORICO
* Date: 2018-09-21
* Time: 17:36
*/
namespace app\usmobile\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 job(){
return $this->view->fetch();
}
public function privacy(){
return $this->view->fetch();
}
public function policy(){
return $this->view->fetch();
}
public function culture(){
return $this->view->fetch();
}
public function decennial(){
return $this->view->fetch();
}
public function Contact(){
return $this->view->fetch();
}
public function submission(){
return $this->view->fetch();
}
public function fq(){
$where = ['stat' => 0];
$where['country_code'] = $this->country_code;
$order = [
'sort' => 'asc',
'id' => 'desc'
];
$fq_list = model('fq')->getList($where, $order, null, 6);
$data['fq_list'] = $fq_list;
//echo "<pre>=="; print_r($data); die;
$this->assign($data);
return $this->view->fetch();
}
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 achievement(){
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 distributor(){
return $this->view->fetch();
}
public function introduction(){
return $this->view->fetch();
}
public function business(){
return $this->view->fetch();
}
public function brand(){
return $this->view->fetch();
}
public function product(){
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 ufo(){
return $this->view->fetch();
}
public function faq(){
return $this->view->fetch();
}
public function pssd(){
return $this->view->fetch();
}
public function h_speed(){
return $this->view->fetch();
}
public function ssd(){
return $this->view->fetch();
}
public function thunderbolt_3(){
return $this->view->fetch();
}
public function stripe(){
return $this->view->fetch();
}
public function series_95(){
return $this->view->fetch();
}
public function backup(){
return $this->view->fetch();
}
public function series_35(){
return $this->view->fetch();
}
public function download(){
$keywords_pa = $this->request->param();
$keywords = '';
$map['stat'] = 0;
$map['cid'] = 44;
if ( !empty($keywords_pa['keywords']) ) {
$keywords = $keywords_pa['keywords'];
$map['name|app_model'] = array('like',"%$keywords%");
}
$downloads = model('download')->where($map)->select();
$this->assign('downloads',$downloads);
$this->assign('keywords',$keywords);
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, 'Please log on first');
$data = $this->request->post();
if (empty($data) || !is_array($data))
return $this->json(-1, 'Data error ');
if ($data['product_name'] == '')
return $this->json(-2, 'Product name cannot be empty');
if ($data['product_model'] == '')
return $this->json(-3, 'Product model cannot be empty');
if ($data['product_manufacturer'] == '')
return $this->json(-4, 'Manufacturer name 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['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, 'Email Address format error');
$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, 'Failure to submit');
return $this->json(200, 'ok');
}
public function create()
{
$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['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'] : 'https://www.baidu.com?wd=9558s';
$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'],
'name' => $data['name'],
'last_name' => $data['last_name'],
'email' => $data['email'],
'phone' => trim($data['phone']),
'country' => $data['country'],
'interest' => $data['interested'],
'is_inventory' => $data['is_inventory'],
'createtime' => date("Y-m-d H:i:s"),
'siteid' => $this->siteid,
'country_code' => $this->country_code,
'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,187 @@
<?php
/**
* Created by PhpStorm.
* User: ORICO
* Date: 2018-09-21
* Time: 17:36
*/
namespace app\usmobile\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 job(){
return $this->view->fetch();
}
public function policy(){
return $this->view->fetch();
}
public function culture(){
return $this->view->fetch();
}
public function decennial(){
return $this->view->fetch();
}
public function Contact(){
return $this->view->fetch();
}
public function fq(){
return $this->view->fetch();
}
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 ufo(){
return $this->view->fetch();
}
public function faq(){
return $this->view->fetch();
}
public function h_speed(){
return $this->view->fetch();
}
public function ssd(){
return $this->view->fetch();
}
public function thunderbolt_3(){
return $this->view->fetch();
}
public function stripe(){
return $this->view->fetch();
}
public function series_95(){
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, 'Please log on first');
$data = $this->request->post();
if (empty($data) || !is_array($data))
return $this->json(-1, 'Data error ');
if ($data['product_name'] == '')
return $this->json(-2, 'Product name cannot be empty');
if ($data['product_model'] == '')
return $this->json(-3, 'Product model cannot be empty');
if ($data['product_manufacturer'] == '')
return $this->json(-4, 'Manufacturer name 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['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, 'Email Address format error');
$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, 'Failure to submit');
return $this->json(200, 'ok');
}
}

127
app/usmobile/controller/Index.php Executable file
View File

@@ -0,0 +1,127 @@
<?php
namespace app\usmobile\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.com.cn" || $_SERVER['HTTP_HOST']=="orico.com.cn") {
return $this->redirect("https://www.orico.com.cn/mobile");
}
}
else{
return $this->redirect("https://www.orico.cc/us");
}
$lebel_list = getDifferentProduct("recommend",12);
$this->assign('recomment_items',$lebel_list);
$blog_list = getArticleList();
$this->assign('blog_items',$blog_list);
$faqData = getFaqList();
$this->assign('faqData',$faqData);
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'], 'yanzhengma') || $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);
}
$referer = isset($data['refer']) ? $data['refer'] : 'https://www.baidu.com?wd=9558s';
$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();
$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'),
'order_id' => isset($data['order_id']) ? $data['order_id'] : '',
'country' => isset($data['country']) ? $data['country'] : '',
'channel' => isset($data['channel']) ? $data['channel'] : '',
'refer' => $referer,
'url' => $url,
'channels' => $channel,
'keyword' => $keyword,
'ip' => $fed['ip'],
'state' => $fed['country'],
'province' => $fed['province'],
'city' => $fed['city'],
'drvice' => $fed['drive'],
'user_agent' => $fed['system']." ".$fed['brower'],
];
$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,123 @@
<?php
namespace app\usmobile\controller;
use think\Loader;
use think\Cookie;
use think\Config;
use think\Session;
class Inquiry extends BaseController {
public function inquiry() {
return $this->view->fetch();
}
public function detail($id = 0) {
if ($id > 0) {
return $this->fetch();
} else {
return exception('数据有误,请检查后再操作');
}
}
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]);
}*/
}
public function create()
{
$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, 'Country region 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'],
'first_name' => $data['name'],
'last_name' => $data['last_name'],
'email' => $data['email'],
'phone' => trim($data['phone']),
'country' => $data['country'],
'industry' => isset($data['industry']) ? $data['industry'] : '',
'inquiry' => isset($data['inquiry']) ? $data['inquiry'] : '',
'interested' => isset($data['interested']) ? $data['interested'] : '',
'ip' => get_ip(),
'model' => isset($data['spu']) ? $data['spu'] : '',
'murl' => $_SERVER["HTTP_REFERER"],
'createtime' => date("Y-m-d H:i:s"),
'siteid' => $this->siteid,
'country_code' => $this->country_code,
'refer' => $referer,
'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('inquiry')->insert($insert_data);
if (!$result)
return $this->json(201, 'Failure to submit');
return $this->json(200, 'ok');
}
}

View File

@@ -0,0 +1,80 @@
<?php
namespace app\usmobile\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() {
$data = $this->request->post();
if (empty($data) || !is_array($data)) {
return $this->json(-3, '未知错误');
}
// $row = Loader::model('Pinglun')->getRow(['customer_id' => $data['customer_id']], null, ['id' => 'desc']);
// if ($row && $row['id']) {
// $createtime = strtotime($row['createtime']);
// if (time() - $createtime < 60) {
// return $this->json(-2,'您已评论过了请不要重复评论');
// }
// }
// 验证....
$addtime = date('Y-m-d H:i:s');
$txarr = [1, 2, 3, 4, 5];
shuffle($txarr);
$set = [
'customer_id' => $data['customer_id'],
'cname' => $data['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],
'stat' => 0,
'createtime' => $addtime,
'lasttime' => $addtime,
];
$model = Loader::model('Pinglun')->insert($set);
if ($model) {
isset($data['cid']) ? Loader::model('Article')->where(['id' => $data['cid']])->setInc('commentcount') : '';
return $this->json(1, '评论成功!');
} else {
return $this->json(-5, '操作失败');
}
}
}

View File

@@ -0,0 +1,368 @@
<?php
namespace app\usmobile\controller;
use think\Collection;
use think\Db;
use think\Loader;
use think\Cookie;
use think\Config;
class Product extends BaseController {
public function lists($id = 0) {
$category = Loader::model('ProductCategory')->getRow(['stat' => 0, 'pid' => 0], 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;
}
// 手机端热门产品
$hot_tags = 'hot_category_id_' . $category['id'];
$hot_product_where = ['typeid' => 24, 'stat' => 0, 'tags' => $hot_tags, 'country_code' => $this->country_code];
$hot_product_order = ['sort' => 'asc'];
$hot_product = Loader::model('ad')->where($hot_product_where)->order($hot_product_order)->limit(4)->select();
$value['hot_product'] = $hot_product;
$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'];
break;
case 3:
header('location:' . $category['url']);
exit;
break;
default:
$template = $category['tempindex'];
break;
}
$child = model('product_category')->where(['stat' => 0, 'isshow' => 1, 'pid' => $id])->find();
if (!empty($child)) {
// 有下级分类
$subproductCategory = $this->list_to_tree($this->categoryList, 'id', 'pid', 'child', $id);
$cate_ids = array();
foreach($subproductCategory as $kc => $subCategory){
$cate_ids[] = $subCategory['id'];
}
$cate_id = implode(",", $cate_ids);
} else {
// 如果是最低级分类
$subproductCategory = $this->list_to_tree($this->categoryList, 'id', 'pid', 'child', $category['pid']);
$cate_id = $category['id'];
}
// 获取分类下的所有产品
$where = ['stat' => 0, 'country_code' => $this->country_code];
$where['cid'] = ['in', $cate_id];
$order = ['sort' => 'asc', 'id' => 'desc'];
$field = ['id, name, brand_id'];
$product = Loader::model('product')->where($where)->field($field)->order($order)->select();
foreach ($product as $k => $v) {
$product[$k]['product_two_img'] = [];
$product[$k]['product_two_img'] = Loader::model('product_two_img')->where('product_id', $v['id'])->where('stat', 0)->select();
}
$value['product'] = $product;
$value['subproductCategory'] = $subproductCategory;
$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];
$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 (empty($detail)) {
return exception('数据有误,请检查后再操作');
}
/*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'], ['id', 'name', 'product', 'sort', 'headline', 'recommend', 'description', 'createtime']);
$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']);
foreach ($product_relateds as $k => $v) {
$res = Loader::model('product_two_img')->where(['product_id' => $v['id'], 'stat' => 0])->find();
$product_relateds[$k]['product_two_img'] = $res;
}
$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); die;
$value['attributes'] = $attributes;
/*foreach ($tmp_product_images as $k => $v) {
$image_color = $v['image_color'];
$pos = strrpos($image_color, '/');
$key = substr($image_color, $pos + 1, strpos($image_color, '.') - $pos - 1);
$product_images[$key][] = $v;
}*/
$value['product_images'] = $product_images;
$value['product_relateds'] = $product_relateds;
$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(4,$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);
return $this->fetch($template);
} 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'); //print_r($history);exit;
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;
//$product_ids = array_slice($product_ids, 0, $num);
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 new_arrival() {
$newList = Loader::model('Product')->getNewProductLists(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($newList 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;
$value['newProduct'] = $newProduct;
//$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('new');
}
}

View File

@@ -0,0 +1,24 @@
<?php
/**
* Created by PhpStorm.
* User: ORICO
* Date: 2019-01-23
* Time: 15:17
*/
namespace app\usmobile\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();
}
}

View File

@@ -0,0 +1,38 @@
<?php
namespace app\usmobile\controller;
use think\Loader;
use think\Config;
use think\Db;
class Search extends BaseController {
public function index() {
$skeyword = $this->request->get('skeyword', '', 'urldecode,strval');
$search = [];
if ($skeyword != '') {
$skeyword = trim($skeyword);
$search['skeyword'] = $skeyword;
$arg_where['name|brand_id|keyword'] = ['like', '%' . $search['skeyword'] . '%'];
Config::set('paginate.query', ['skeyword' => $skeyword]); //分页参数
}
$arg_where['stat'] = 0;
$arg_where['is_show'] = 0;
$arg_where['country_code'] = $this->country_code;
$dataObject = Loader::model('Product')->field(['id', 'name', 'description', 'list_bk_img' => 'picture', 'createtime','brand_id', "'productdetail'" => 'link'])->where($arg_where)->paginate(6);
//echo model('product')->getLastSql();
$value = [
'list' => $dataObject->isEmpty() ? null : $dataObject->items(),
'page' => $dataObject->render(),
];
$value['search'] = $search;
$this->assign($value);
return $this->fetch();
}
}

View File

@@ -0,0 +1,30 @@
<?php
namespace app\usmobile\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('数据有误,请检查后再操作');
}
}

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

@@ -0,0 +1,142 @@
<?php
namespace app\usmobile\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'));
}
}

141
app/usmobile/controller/Video.php Executable file
View File

@@ -0,0 +1,141 @@
<?php
namespace app\usmobile\controller;
use think\Loader;
use think\Cookie;
use think\Config;
class Video extends BaseController {
public function lists() {
$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', 'm_icon', 'm_bg', 'isshow', 'recommend', 'picture', 'image1', 'image2', 'classtype', 'url']);
// unset($videoCategory[7]);
// tiaoshi($videoCategory);die;
$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;
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, 2);
$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', 'm_icon', 'm_bg', 'recommend', 'picture', 'image1', 'image2', 'classtype', 'url'], 5);
$value['videoCategory'] = $videoCategory;
break;
case 3:
header('location:' . $category['url']);
exit;
break;
default:
$template = $category['tempindex'];
break;
}
// // 该分类下的热门视频列表
// $hot_video_where = ['c.id' => $id, 'c.stat' => 0, 'ishot' => 1];
// $hot_video_order = ['a.id' => 'desc'];
// $hot_video_field = ['a.*', 'c.name' => 'cname'];
// $hot_video = Loader::model('video')->getCateVideoList($hot_video_where, $hot_video_order, $hot_video_field, 2);
// $value['hot_video'] = $hot_video;
$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]);
}
}
}

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

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

View File

@@ -0,0 +1,72 @@
<?php
namespace app\usmobile\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', '密码不能为空'],
['repassword', 'require|confirm:password', '请确认您的密码|两次密码不一致'],
];
protected $scene = [
'register' => ['telephone', 'firstname', 'password', 'repassword'],
'login' => ['telephone', 'password'],
'change' => ['telephone', 'password', 'repassword']
];
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 '手机号错误';
}
$user = model('customer')->where(['stat' => 0, 'telephone' => $value])->find();
if ($this->currentScene == 'register') {
if ($user) {
// 如果场景为注册,且该手机用户存在
return '该手机号已存在';
} else {
return true;
}
}elseif ($this->currentScene == 'login' || $this->currentScene == 'change') {
if (!$user) {
// 如果场景为登录或者修改密码,且找不到该手机用户
return '该手机号不存在';
} else {
return true;
}
}else {
return '验证场景不存在';
}
return true;
break;
case 'password':
if ($this->currentScene != 'login') {
if (!preg_match("/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,20}$/", $value)) {
return '密码必须包含8-20个字符,且包含数字和字母';
} else {
return true;
}
}
$user = model('customer')->where(['stat' => 0, 'telephone' => $telephone])->find();
if (!$user || $user['password'] != md5($value)) {
return '密码错误';
}
return true;
break;
default:
break;
}
}
}

View File

@@ -0,0 +1,40 @@
<?php
namespace app\usmobile\validate;
use think\Validate;
class Pinglun extends Validate
{
protected $rule = [
['pid', 'require', 'pid不能为空'],
['cid', 'require', 'cid不能为空'],
['typeid', 'require', 'typeid不能为空'],
['content', 'require|check_value:content', '内容不能为空'],
];
protected $scene = [
'add' => ['pid', 'cid', 'typeid', 'content'],
];
protected function check_value($value, $rule)
{
switch ($rule) {
case 'content':
$length = utf8_strlen($value);
if ($length < 6 || $length > 100) {
return '评论必须在6-100个字之间';
}
return true;
break;
case '':
return true;
break;
default:
# code...
break;
}
}
}

View File

@@ -0,0 +1,225 @@
<!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>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/app.css?v={:time()}">
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!-- 详情页 s -->
<div class="cooperapp_bdpage" style="background:#F2F2F2;">
<div class="cooperapp_bd_main" style=";margin-top50px">
<h1 class="cooperapp_t1">To Be Our Distributor</h1>
<p class="cooperapp_s1">Ready to join us?<br /> your details below and our Sales team will get back to you within 2
business days.</p>
<!--内容-->
<div class="bd_ct cooperapp_bd_ct">
<div class="thimg">
<img src="__PUBLIC__/m_weben/images/mcooperation/copperaapp_img1.png" alt="" srcset="" class="cooperapp_bdimg">
</div>
<div class="bd_from">
<div class="theit">
<div class="bditem">
<label class="itlable">Company Name<span class="redtag">*</span></label>
<input type="text" class="form-control itinp companyName" placeholder="Enter your first name">
</div>
</div>
<div class="theit">
<div class="bditem">
<label class="itlable">contact Email <span class="redtag">*</span></label>
<input type="text" class="form-control itinp email" placeholder="Enter your Email">
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">Phone Numbe<span class="redtag">*</span></label>
<input type="text" class="form-control itinp phone"
placeholder="This is your placeholder text">
</div>
</div>
<div class="theit">
<div class="bditem">
<label class="itlable">Type of Business<span class="redtag">*</span></label>
<select name="business_type" data-pf-type="FormInput" class="form-control itinp business_type">
<option value="Online Store">Online Store</option>
<option value="Local Shop">Local Shop</option>
<option value="Both">Both</option></select>
</div>
</div>
<div class="theit">
<div class="bditem">
<label class="itlable">Online Shop URL</label>
<input type="text" class="form-control itinp url"
placeholder="This is your placeholder tex">
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">Enterprise size<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 Or Less</option>
<option value="10-50">10-50</option>
<option value="50-199">50-199</option>
<option value="200 Or More">200 Or More</option>
</select>
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">company Address<span class="redtag">*</span></label>
<input class="form-control itinp address" placeholder="Enter Address">
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">Message<span class="redtag">*</span></label>
<textarea class="ittextarea message" placeholder="Enter your message"></textarea>
</div>
</div>
</div>
</div>
<!-- 提交-->
<div class="bttj">SUBMT</div>
</div>
</div>
<!-- 详情页 e -->
<script>
// 输入框失去焦点
$('.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');
}
})
$('.region').blur(function(){
if($('.region').val() != ''){
$('.region').removeClass('error');
$('.region').next('span').addClass('hide');
}else{
$('.region').addClass('error');
$('.region').next('span').removeClass('hide');
}
})
// 提交表单
$('.submit_btn').click(function(){
var companyName = $('.companyName').val();
var firstName = $('.first').val();
var lastName = $('.last').val();
var email = $('.email').val();
var region = $('.region').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');
}
if(region == ''){
$('.region').addClass('error');
$('.region').next('span').removeClass('hide');
}
try {
k_win_ref = window.parent.document.referrer;
} catch(e) {
k_win_ref = '';
};
//点击创建申请块
if(companyName && firstName && lastName && email && region) {
var type = 'Agent';
$.ajax({
type: "POST",
url: "create",
data: {'company':companyName, 'email':email,'country':region,'name':firstName,'last_name':lastName,'phone':$('.phone').val(),'interested':interesteds,'is_inventory':inventory,'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/bottom" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Check Your Product</title>
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/subject/fake.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/montserrat.css">
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<div class="margin-45">
<div class="fake">
<div class="fake_content">
<div class="title">Check Your Product</div>
</div>
<div class="result_line"></div>
<div class="fake_content">
<div class="sub_title">Note: </div>
<div class="des">Enter the anti-counterfeiting code to check the authenticity and detail of the product. If
you
enter SN code, it will only show the product information. For verify the authenticity of product then please
click the button of "Enter the anti-counterfeiting code.</div>
<div class="fake_button"><a href="__ORICOROOT__/antifake/anti_fake_sninput"><span
class="fake_button_content">Enter S/N Code</span></a></div>
<div class="fake_button"><a href="__ORICOROOT__/antifake/anti_fake_input"><span
class="fake_button_content">Enter Anti-counterfeiting Code</span></a>
</div>
</div>
</div>
</div>
{include file="include/bottom" /}
</div>
</body>
</html>

View File

@@ -0,0 +1,59 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Check Your Product</title>
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/subject/fake.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/montserrat.css">
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<div class="margin-top-90">
<div class="fake">
<div class="fake_content">
<div class="query_title"><img src="__PUBLIC__/m_weben/images/anti_fake/security.png"
class="sn_img">Anti-counterfeiting Code</div>
</div>
<div class="result_line"></div>
<div class="fake_content">
<form action="<?php echo url('antifake/anti_fake_result');?>" method="post" onsubmit="return check();">
<div class="query_sub_title m-t-40">Anti-counterfeiting Code</div>
<div class="query_des">
<input placeholder="Please enter the anti-counterfeiting code" name="fake">
</div>
<div class="query_sub_title m-t-32">Where to get the anti-counterfeiting code</div>
<div class="des">Anti-counterfeiting code can be seen on the label sticker of product (as is shown)</div>
<div class="example img-responsives"><img src="__PUBLIC__/m_weben/images/anti_fake/security_code.png"></div>
<button class="query_button" type="submit"><span class="fake_button_content">Check it</span>
</button>
</form>
</div>
</div>
</div>
<script>
/*判断是否提交表单*/
function check() {
var sn = $("input[name='fake'").val().length;
if(!sn ==8){
alert('请输入8位数防伪码');
return false; //return false; 时,表单不提交
}else {
return true; //return true; 时,表单提交
}
}
</script>
{include file="include/bottom" /}
</div>
<!--底部-->
</body>
</html>

View File

@@ -0,0 +1,81 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Anti-counterfeiting code query result</title>
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/subject/fake.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/montserrat.css">
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<div class="margin-top-90 overflow-h">
<div class="result_title">Result</div>
<div class="result_line"></div>
<div class="result">
<!--结果-->
<?php if($data['result']==1){
if($data['chicktime']!=date("Y-m-d H:i:s")){?>
<div class="result_content m-b-25">
<div class="again_title">Dear Customer:</div>
<div class="again_des">We have inquired the code of <?php echo $data['made_up_articles_name']; ?> for you,
query time: {$data.chicktime}.
Beware of
imitations! Please call the services hotline 400-6696-298 if you have any question.</div>
</div>
<?php }else{?>
<div class="result_content">
<div class="again_title">Dear Customer:</div>
<div class="again_des">Were glad to tell you that the product {$data.fake} you inquired is genuine, please
feel free to use,
thanks for choosing the ORICO product</div>
</div>
<?php }?>
<div class="result_line"></div>
<div class="result_content">
<div class="result_img img-responsives"><img src="<?php echo $data['img']; ?>"></div>
<div class="product_title">Product Info</div>
<div class="product_info">
<span>Name</span> <span><?php echo $data['made_up_articles_name']; ?></span>
</div>
<div class="product_info"><span>Model</span><span><?php echo $data['specifications_and_models']; ?></span>
</div>
<?php
if (strpos($data['made_up_articles_name'], 'NGFF') !== false) {
$data['aditmend'] = 3;
}
elseif(strpos($data['made_up_articles_name'], 'NVME') !== false){
$data['aditmend'] = 5;
}
else{
$data['aditmend'] = '';
}
if($data['aditmend']){
?>
<div class="result_year">ORICOs product reliability backed by up to <?php echo $data['aditmend']; ?> yr.
warranty and free tech-support services, in case of product failure, please feel free to contact the
purchasing platform and ORICO customer service center.</div>
<?php }?>
</div>
</div>
<?PHP }else{?>
<div class="result_content">
<div class="again_title">Dear Customer:</div>
<div class="again_des">Were sorry that the product you inquired is not genuine, please contact the seller.
</div>
</div>
<?php }?>
</div>
</body>
</html>

View File

@@ -0,0 +1,58 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Check Your Product</title>
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/subject/fake.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/montserrat.css">
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<div class="margin-top-90">
<div class="fake">
<div class="fake_content">
<div class="query_title"><img src="__PUBLIC__/m_weben/images/anti_fake/sn.png" class="sn_img">S/N Code</div>
</div>
<div class="result_line"></div>
<div class="fake_content">
<form action="<?php echo url('antifake/anti_fake_snresult');?>" method="post" onsubmit="return check();">
<div class="query_sub_title m-t-40">Enter S/N Code</div>
<div class="query_des">
<input placeholder="Please enter the S/N code" name="sn">
</div>
<div class="query_sub_title m-t-32">Where to get the S/N code</div>
<div class="des">S/N code can be seen on the label sticker of product (as is shown)</div>
<div class="example img-responsives"><img src="__PUBLIC__/m_weben/images/anti_fake/sn_example.png"></div>
<button class="query_button" type="submit"><span class="fake_button_content">Check it</span>
</button>
</form>
</div>
</div>
</div>
<script>
/*判断是否提交表单*/
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>
{include file="include/bottom" /}
</div>
<!--底部-->
</body>
</html>

View File

@@ -0,0 +1,90 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>S/N code query result</title>
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/subject/fake.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/montserrat.css">
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<div class="margin-top-90 overflow-h">
<div class="result_title">Result</div>
<div class="result_line"></div>
<div class="result">
<!--结果-->
<?php if($data['result']==1){?>
<div class="result_content">
<?php if($data['img']){?><div class="result_img img-responsives"><img src="<?php echo $data['img']; ?>"></div><?php }?>
<div class="example img-responsives"><img src="__PUBLIC__/m_weben/images/anti_fake/sn_example.png"></div>
<div class="product_title">Product Info</div>
<div class="product_info">
<span>Name</span> <span><?php echo $data['made_up_articles_name']; ?></span>
</div>
<div class="product_info"><span>Model</span><span><?php echo $data['specifications_and_models']; ?></span>
<div class="product_info"><span>Produce Date</span><span><?php echo $data['production_date']; ?></span>
<div class="product_info">
<span>Warranty Period</span>
<span>
<?php if($data['delivery_time']){?>
<?php echo $data['mendtime']; ?>
<?php }else{?>
No warranty period found.
<?php }?>
</span>
</div>
<?php
if (strpos($data['made_up_articles_name'], 'NGFF') !== false) {
$data['aditmend'] = 3;
}
elseif(strpos($data['made_up_articles_name'], 'NVME') !== false){
$data['aditmend'] = 5;
}
else{
$data['aditmend'] = '';
}
if($data['aditmend']){
?>
<div class="result_year">ORICOs product reliability backed by up to <?php echo $data['aditmend']; ?> yr.
warranty and free tech-support services, in case of product failure, please feel free to contact the
purchasing platform and ORICO customer service center.</div>
<?php }?>
</div>
<?PHP }else{?>
<div class="result_content m-b-25">
<div class="again_title">Dear Customer:</div>
<div class="again_des">The S/N code you entered is incorrect, <a
href="__ORICOROOT__/antifake/anti_fake_sninput"><span class="result_text_blue">please try
again.</span></a></div>
</div>
<?php }?>
<div class="result_line"></div>
<div class="result_content">
<div class="result_once">SN code can only check the product information, for
verify the authenticity of product please through <span class="result_text_blue"><a href="__ORICOROOT__/antifake/anti_fake_input" class="text_blue">"anti-
counterfeiting code ”</a></span></div>
</div>
<!--结果-->
</div>
</div>
{include file="include/bottom" /}
</div>
</body>
</html>

View File

@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Check Your Product</title>
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/subject/fake.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/montserrat.css">
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<div class="margin-45">
<div class="fake">
<div class="fake_content">
<div class="title">Check Your Product</div>
</div>
<div class="result_line"></div>
<div class="fake_content">
<div class="sub_title">Note: </div>
<div class="des">Enter the anti-counterfeiting code to check the authenticity and detail of the product. If
you
enter SN code, it will only show the product information. For verify the authenticity of product then please
click the button of "Enter the anti-counterfeiting code.</div>
<div class="fake_button"><a href="__ORICOROOT__/antifake/anti_fake_sninput"><span
class="fake_button_content">Enter S/N Code</span></a></div>
<div class="fake_button"><a href="__ORICOROOT__/antifake/anti_fake_input"><span
class="fake_button_content">Enter Anti-counterfeiting Code</span></a>
</div>
</div>
</div>
</div>
{include file="include/bottom" /}
</div>
</body>
</html>

View File

@@ -0,0 +1,165 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>News</title>
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<!-- 轮播 s -->
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner img-responsive">
<img src="__PUBLIC__/m_web/images/news/news-banner.jpg">
</div>
<!--新闻列表-->
<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="m_Container">
<!-- Blog列表 s -->
<div class="search_box">
<input type="text" placeholder="Search" class="search" id="article-blog-in" value="">
<button id="blog-btnput" class="search-button-blog">Search</button>
</div>
<div class="blog_list">
<?php if ($list):?>
<ul class="clearfix">
<?php foreach ($list as $detail):?>
<?php
if($detail['jump_link'] == ''){
$alink = "__ORICOROOT__/article/detail/".$detail['id'].".html";
}
else{
$alink = $detail['jump_link'];
}
?>
<li>
<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("M j, Y",$detail['createtime']); ?></span>
</li>
<?php endforeach;?>
<?php else:?>
<div class="clearfix"> No Result</div>
<?php endif;?>
<!-- 分页 s -->
<?php
if ($page) {
echo $page;
}
?>
<!-- 分页 e -->
</div>
<!-- Blog列表 e -->
<!--精彩评论-->
<?php if (!empty($hot_comment)): ?>
<div class="m_Container">
<div class="news-comments">
<div class="title text_center title_margin-top">Wonderful commentary</div>
<?php foreach ($hot_comment as $key => $value): ?>
<div class="news-comment">
<div class="Customer-information">
<div class="left"><img src="<?php echo getImage($value['headimg']); ?>"></div>
<div class="right">
<span class="news_list_des_text"><?php echo $value['customer_name']; ?></span>
<span class="news_list_share"><?php echo $value['createtime'] ?></span>
</div>
</div>
<p><?php echo $value['content']; ?></p>
</div>
<?php endforeach; ?>
</div>
</div>
<?php endif; ?>
<br class="bottom-margin">
<!--底部文件-->
{include file="include/bottom" /}
</div>
</body>
</html>
<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('<img src="__PUBLIC__/m_web/images/news/news-Collection.png">Like(' + data.data + ')');
}
}
});
} else {
alert('您已点过赞了!');
}
return false;
});
});
</script>
<script>
$(function(){
//新闻搜索
var article_search_input = $("#article-search-in");
$("#article-blog-in").keyup(function(event) {
if (event && event.keyCode === 13) {
$("#blog-btnput").trigger("click");
}
});
$("#blog-btnput").bind("click", function(event) {
var keywords = $("#article-blog-in").val();
if(keywords){
var href = "?skeyword=" + encodeURIComponent(keywords);
location.href = href;
}
else{
var href = window.location.href;
var cleanUrl = href.split('?')[0];
location.href = cleanUrl;
}
});
});
</script>

View File

@@ -0,0 +1,269 @@
<!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>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/jquery.bxslider.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/js/jquery.bxslider.min.js">
<style>
.bx-wrapper {margin-bottom:2rem !important;}
.bx-wrapper .bx-pager, .bx-wrapper .bx-controls-auto {bottom: 0 !important;}
.bx-wrapper .bx-pager.bx-default-pager a {width:10px !important;height:10px !important;color: transparent;margin-right:0.5rem;border-radius: 7px !important;border:none !important;background: #c6ced6; display:inline-block;}
.bx-wrapper .bx-pager.bx-default-pager a.active { background: #004bfa;width: 20px;height: 10px;color: transparent;}
.bx-wrapper .bx-pager {text-align: center;font-size: .85em;font-family: Arial;font-weight: bold;color: #666;padding-top: 20px;}
.slide a {color: #333;}
.slide a:hover {color: #333;}
.slide p {height:32px; overflow: hidden;}
</style>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!-- 详情页 s -->
<div class="content" style="margin-top: 60px;">
<input type="hidden" class="b_id">
<div class="clearfix">
<div class="blog_detail">
<div class="blog_title">
<h2><?php echo $detail['name']; ?></h2>
<p><?php echo date("M j, Y",$detail['createtime']); ?> </p>
</div>
<div class="blog_content">
<?php echo $detail['content']; ?>
</div>
</div>
<div class="share_box">
<div class="blog_share">
<h3>SHARE</h3>
<ul class="share_list clearfix">
<li><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=__ORICOROOT__<?php echo url_rewrite('articledetail', array('id' => $detail['id'])); ?>&amp;t=1709023114"><img src="/frontend/weben/images/blog/share1.png"/></a></li>
<li><a target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&amp;ro=true&amp;title=<?php echo $detail['name']; ?>&amp;url=__ORICOROOT__<?php echo url_rewrite('articledetail', array('id' => $detail['id'])); ?>&amp;source=&amp;summary=&amp;armin=armin"><img src="/frontend/weben/images/blog/share2.png"/></a></li>
<li><a target="_blank" href="https://twitter.com/ORICO_Official"><img src="/frontend/weben/images/blog/share3.png"/></a></li>
<li><a href="http://www.reddit.com/submit?url=__ORICOROOT__<?php echo url_rewrite('articledetail', array('id' => $detail['id'])); ?>&title=<?php echo $detail['name'];?>" title="submit to reddit" ><img src="/frontend/weben/images/blog/share4.png"/></a></li>
</ul>
</div>
<div class="comment">
<h3>Leave a Reply</h3>
<form class="comment_form clearfix">
<div style="margin-right: 0.625rem; margin-bottom: 0.5rem;">Name:<br>
<input class="form-control itinp new_name" type="text" name="name">
</div>
<div>Email:<br>
<input class="form-control itinp new_email" type="email" name="email">
<p style="color: #C6C7C9; font-size: 0.75rem; margin-bottom: 0.5rem; ">Your email address will not be pulished.</p>
</div>
<div class="comment_area">Comment:<br>
<textarea class="form-control itinp new_comment" style="height: 3rem;border: 1px solid #DBDBDB;" name="comment"></textarea>
</div>
</form>
<div class="comment_btn" style="color:#ffffff;">POST COMMENT</div>
</div>
<div class="xq">
<div class="swt-Container">
<?php
$articles = getDifferentArticle('default', 3, ['cid' => ["in",['16','32']], 'id' => ['neq', $detail['id']]]);
if ($articles):
?>
<!-- 猜您喜欢 -->
<div class="love">
<div class="love1">
<p>Recommended for you</p>
<p><img src="/frontend/web/images/1line.png"></p>
</div>
<div class="love2 clearfix">
<!--图片滑动-->
<div class="loves">
<?php foreach ($articles as $article): ?>
<?php
if($article['jump_link'] == ''){
$rlink = "__ORICOROOT__/article/detail/".$article['id'].".html";
}
else{
$rlink = $article['jump_link'];
}
?>
<div class="slide">
<a href="<?php echo $rlink; ?>">
<img src="<?php echo getImage($article['picture']); ?>">
<p class="lvtit"><?php echo msubstr($article['name'], 0, 40); ?></p>
</a>
</div>
<?php endforeach; ?>
</div>
<!--图片滑动-->
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
<!--底部-->
{include file="include/bottom" /}
</div>
</body>
</html>
<input type="hidden" name="content_id" value="<?php echo $detail['id']; ?>">
<script type="text/javascript">
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('Link copied successfully')
}
document.body.removeChild(input)
}
$(document).ready(function() {
$(".Release").click(function() {
var customer_id = localStorage.getItem("uer_id");
var firstname = localStorage.getItem("user_info") ? localStorage.getItem("user_info").firstname : '';
var pid = 0;
var cid = $("input[name = 'content_id']").val();
var content = $("#ccont").val();
var customer_id = 1;
var firstname = 'abc';
$.ajax({
url: '__ORICOROOT__/pinglun/add',
type: 'post',
data: {customer_id: customer_id, firstname: firstname, pid: pid, cid: cid, typeid: 'Article', content: content},
dataType: 'json',
success: function(res) {
if (res) {
alert(res.msg);
if (res.code == 1) {
// 评论成功
}else if (res.code == -1) {
// 未登录
}else if (res.code == -2) {
// 前一分钟内评论过
}else if (res.code == -3) {
// 未知错误
}else if (res.code == -4) {
// 表单格式错误
}else if (res.code == -5) {
// 插入数据库失败
}
}
},
});
});
// 提交表单
$('.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: "/us/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>
<script type="text/javascript">
$(document).ready(function(){
$('.loves').bxSlider({
slideWidth: 200,
minSlides: 2,
maxSlides: 2,
infiniteLoop: false,
slideMargin: 10
});
});
</script>

View File

@@ -0,0 +1,162 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>News</title>
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<!-- 轮播 s -->
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner img-responsive">
<img src="__PUBLIC__/m_web/images/news/news-banner.jpg">
</div>
<!--新闻列表-->
<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="m_Container">
<!-- Blog列表 s -->
<div class="search_box">
<input type="text" placeholder="" class="search" id="article-blog-in" value="">
<button id="blog-btnput" class="search-button-blog">Search</button>
</div>
<div class="blog_list">
<?php if ($list):?>
<ul class="clearfix">
<?php foreach ($list as $detail):?>
<?php
if($detail['jump_link'] == ''){
$alink = "__ORICOROOT__/article/detail/".$detail['id'].".html";
}
else{
$alink = $detail['jump_link'];
}
?>
<li>
<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("M j, Y",$detail['createtime']); ?></span>
</li>
<?php endforeach;?>
<?php else:?>
<div class="clearfix"> No Result</div>
<?php endif;?>
<!-- 分页 s -->
<?php
if ($page) {
echo $page;
}
?>
<!-- 分页 e -->
</div>
<!-- Blog列表 e -->
<!--精彩评论-->
<?php if (!empty($hot_comment)): ?>
<div class="m_Container">
<div class="news-comments">
<div class="title text_center title_margin-top">Wonderful commentary</div>
<?php foreach ($hot_comment as $key => $value): ?>
<div class="news-comment">
<div class="Customer-information">
<div class="left"><img src="<?php echo getImage($value['headimg']); ?>"></div>
<div class="right">
<span class="news_list_des_text"><?php echo $value['customer_name']; ?></span>
<span class="news_list_share"><?php echo $value['createtime'] ?></span>
</div>
</div>
<p><?php echo $value['content']; ?></p>
</div>
<?php endforeach; ?>
</div>
</div>
<?php endif; ?>
<br class="bottom-margin">
<!--底部文件-->
{include file="include/bottom" /}
</div>
</body>
</html>
<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('<img src="__PUBLIC__/m_web/images/news/news-Collection.png">Like(' + data.data + ')');
}
}
});
} else {
alert('您已点过赞了!');
}
return false;
});
});
</script>
<script>
$(function(){
//新闻搜索
var article_search_input = $("#article-search-in");
$("#article-blog-in").keyup(function(event) {
if (event && event.keyCode === 13) {
$("#blog-btnput").trigger("click");
}
});
$("#blog-btnput").bind("click", function(event) {
var keywords = $("#article-blog-in").val();
if(keywords){
var href = "?skeyword=" + encodeURIComponent(keywords);
location.href = href;
}
else{
var href = "/usmobile/article.html";
location.href = href;
}
});
});
</script>

View File

@@ -0,0 +1,55 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="m_Container news_detail">
<div class="title text_center"><?php echo $detail['name']; ?></div>
<div class="date text_center"><?php echo date("Y-m-d H:i", $detail['createtime']); ?></div>
<div class="news_detail_content img-responsive">
<p>
<?php echo $detail['content']; ?>
</p>
<img src="<?php echo getImage($detail['picture']); ?>" alt="" />
</div>
</div>
<div class="m_Container">
<div class="news-comments">
<div class="title text_center title_margin-top">精彩评论</div>
<?php if (!empty($list)): ?>
<?php foreach ($list as $key => $value): ?>
<div class="news-comment">
<div class="Customer-information">
<div class="left"><img src="<?php echo getImage($value['headimg']); ?>"></div>
<div class="right">
<span class="news_list_des_text"><?php echo $value['cname']; ?></span>
<span class="news_list_share"><?php echo $value['createtime']; ?></span>
</div>
</div>
<p><?php echo $value['content']; ?></p>
</div>
<?php endforeach; ?>
<?php endif; ?>
</div>
<div class="news-replay">
<textarea id="ccont" placeholder="请输入您的评论..."></textarea>
<span class="Release">发布</span>
</div>
</div>
<br class="bottom-margin">
<!--底部-->
{include file="include/bottom" /}
</div>
</body>
</html>

View File

@@ -0,0 +1,99 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="m_Container news_detail">
<div class="title text_center"><?php echo $detail['name']; ?></div>
<div class="date text_center"><?php echo date("Y-m-d H:i", $detail['createtime']); ?></div>
<div class="news_detail_content img-responsive">
<p>
<?php echo $detail['content']; ?>
</p>
<img src="<?php echo getImage($detail['picture']); ?>" alt="" />
</div>
</div>
<div class="m_Container">
<div class="news-comments">
<div class="title text_center title_margin-top">精彩评论</div>
<?php if (!empty($list)): ?>
<?php foreach ($list as $key => $value): ?>
<div class="news-comment">
<div class="Customer-information">
<div class="left"><img src="<?php echo getImage($value['headimg']); ?>"></div>
<div class="right">
<span class="news_list_des_text"><?php echo $value['cname']; ?></span>
<span class="news_list_share"><?php echo $value['createtime']; ?></span>
</div>
</div>
<p><?php echo $value['content']; ?></p>
</div>
<?php endforeach; ?>
<?php endif; ?>
</div>
<div class="news-replay">
<textarea id="ccont" placeholder="请输入您的评论..."></textarea>
<span class="Release">发布</span>
</div>
</div>
<br class="bottom-margin">
<!--底部-->
{include file="include/bottom" /}
</div>
</body>
</html>
<input type="hidden" name="content_id" value="<?php echo $detail['id']; ?>">
<script type="text/javascript">
$(document).ready(function() {
$(".Release").click(function() {
var pid = 0;
var cid = $("input[name = 'content_id']").val();
var content = $("#ccont").val();
$.ajax({
url: '/mobile/pinglun/add',
type: 'post',
data: {pid: pid, cid: cid, typeid: 'Article', content: content},
dataType: 'json',
success: function(res) {
if (res) {
alert(res.msg);
if (res.code == 1) {
// 评论成功
}else if (res.code == -1) {
// 未登录
}else if (res.code == -2) {
// 前一分钟内评论过
}else if (res.code == -3) {
// 未知错误
}else if (res.code == -4) {
// 表单格式错误
}else if (res.code == -5) {
// 插入数据库失败
}
}
},
});
});
});
</script>

View File

@@ -0,0 +1,137 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<!-- 轮播 s -->
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner img-responsive">
<img src="__PUBLIC__/m_web/images/news/news-banner.jpg">
</div>
<!--新闻列表-->
<div class="m_Container news">
<div class="title text_center title_margin-top">新闻资讯</div>
<?php if (!empty($list)): ?>
<?php foreach ($list as $key => $value): ?>
<div class="news_list newfl">
<a href="/mobile/article/detail/id/<?php echo $value['id']; ?>">
<div class="left img-responsive"><img src="<?php echo getImage($value['picture']); ?>"></div>
<div class="right">
<div class="news_list_title nowrap_ellipsis"><?php echo $value['name']; ?></div>
<div class="news_list_des_text"><?php echo date("Y-m-d", $value['createtime']); ?></div>
<div class="news_list_des_text">
<?php
if (utf8_strlen($value['description']) > 35) {
$value['description'] = msubstr($value['description'], 0, 35);
}
echo $value['description'];
?>
</div>
</a>
<div class="news_list_share">
<span><img src="__PUBLIC__/m_web/images/news/news-share.png">分享</span>
<span><a href="javascript:void(0);" class="addzan text_gray" data-id="<?php echo $value['id']; ?>"><img src="__PUBLIC__/m_web/images/news/news-Collection.png">点赞 <span class="zan_count<?php echo $value['id']; ?>">(<?php echo $value['zancount']; ?>)</span></a></span>
<a href="/mobile/article/detail/id/<?php echo $value['id']; ?>#ccont" class="text_gray">
<span><img src="__PUBLIC__/m_web/images/news/news-comment.png">评论(<?php echo $value['commentcount']; ?>)</span>
</a>
</div>
</div>
</div>
<?php endforeach; ?>
<?php endif; ?>
<div class="Pages">
<span class="p_page">
<?php if ($page) echo $page; ?>
</span>
</div>
</div>
<!--精彩评论-->
<div class="m_Container">
<div class="news-comments">
<div class="title text_center title_margin-top">精彩评论</div>
<?php if (!empty($hot_comment)): ?>
<?php foreach ($hot_comment as $key => $value): ?>
<div class="news-comment">
<div class="Customer-information">
<div class="left"><img src="<?php echo getImage($value['headimg']); ?>"></div>
<div class="right">
<span class="news_list_des_text"><?php echo $value['customer_name']; ?></span>
<span class="news_list_share"><?php echo $value['createtime'] ?></span>
</div>
</div>
<p><?php echo $value['content']; ?></p>
</div>
<?php endforeach; ?>
<?php endif; ?>
</div>
</div>
<br class="bottom-margin">
<!--底部文件-->
{include file="include/bottom" /}
</div>
</body>
</html>
<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('<img src="__PUBLIC__/m_web/images/news/news-Collection.png">点赞(' + data.data + ')');
}
}
});
} else {
alert('您已点过赞了!');
}
return false;
});
});
</script>
<script type="text/javascript">
/*function zan(id) {
var article_id = id;
$.ajax({
url: '/mobile/article/zan',
type: 'post',
data: {id: article_id},
dataType: 'json',
success: function(res) {
if (res) {
alert(res.msg);
if (res.code == 1) {
// 点赞成功
}
}
}
});
}*/
</script>

View File

@@ -0,0 +1,95 @@
<!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>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/style2.css">
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!-- 轮播 s -->
<div class="homeban banner-other" style="margin-top: 40px;">
<div class="bd">
<ul>
<li><a href="#"><img style="width:100%" src="__PUBLIC__/m_weben/images/blog/mblog.png"/></a></li>
</ul>
</div>
</div>
<!-- 轮播 e -->
<div class="m_Container">
<!-- Blog列表 s -->
<div class="search_box">
<input type="text" placeholder="Search blog articles" class="search" id="bg-search-in" value="<?php if(isset($search['name'])){ echo $search['name'];}?>"/>
<button id="search-btnput" class="search-button-blog">Search</button>
</div>
<div class="blog_list">
<?php if ($list): ?>
<ul class="clearfix">
<?php foreach ($list as $detail): ?>
<li>
<a href="<?php echo '/usmobile/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 endif; ?>
</div>
<!-- Blog列表 e -->
<script>
var type = 'Blog';
//点击创建申请块
$(function(){
$('.search_box input').on("keyup", function(){
var skeyword = $("#bg-search-in").val();
if (skeyword) {
var href = "?name=" + encodeURIComponent(skeyword);
location.href = href;
}
else{
var href = "/usmobile/blog";
location.href = href;
}
});
console.log('aaa');
$("#search-btnput").bind("click", function(event) {
console.log('Blog');
var keywords = $("#bg-search-in").val();
if(keywords){
var href = "?name=" + encodeURIComponent(keywords);
location.href = href;
}
});
});
</script>
</div>
<br class="bottom-margin">
<!--底部-->
{include file="include/bottom" /}
</div>
</body>
</html>

View File

@@ -0,0 +1,158 @@
<!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>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/style2.css">
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--top End-->
<!-- 详情页 s -->
<div class="content" style="margin-top: 60px;">
<input type="hidden" value="<?php echo $blog['id'];?>" class="b_id">
<div class="clearfix">
<div class="blog_detail">
<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>Posted on <?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>SHARE</h3>
<ul class="share_list clearfix">
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<li><img src="/frontend/weben/images/blog/share1.png"/></li>
<li><img src="/frontend/weben/images/blog/share2.png"/></li>
<li><img src="/frontend/weben/images/blog/share3.png"/></li>
<li><img src="/frontend/weben/images/blog/share4.png"/></li>
</ul>
</div>
<div class="repply">
<h3>Leave a Reply</h3>
<form>
<span>Name</span>
<input class="new_name" type="text" name="name"/>
<span>Email</span>
<input class="new_email" type="email" name="email" />
<p style="color: #C6C7C9; font-size: 0.75rem; margin-bottom: 0.625rem;">Your email address will not be pulished.</p>
<span>Comment</span>
<textarea class="new_comment" rows="3" style="width: 98%; margin-top: 0.625rem;" name="comment"></textarea>
<div class="comment_btn" style="color:#ffffff;">POST COMMENT</div>
</form>
</div>
</div>
</div>
<div class="comment">
<h3>Leave a Comment</h3>
<form class="comment_form clearfix">
<div style="margin-right: 0.625rem; margin-bottom: 0.5rem;">Name:<br/>
<input class="new_name" type="text" name="name"/>
</div>
<div>Email:<br/>
<input class="new_email" type="email" name="email" />
<p style="color: #C6C7C9; font-size: 0.5rem; margin-bottom: 0.5rem; font-weight: 400;">Your email address will not be pulished.</p>
</div>
<div class="comment_area">Comment:<br/>
<textarea class="new_comment" style="height: 3rem;border: 1px solid #DBDBDB !important;" name="comment"></textarea>
</div>
</form>
<div class="comment_btn" style="color:#ffffff;">POST COMMENT</div>
</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(){
// 提交表单
$('.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;
}
if (/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.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: "/usmobile/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/bottom" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,98 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>search</title>
<meta name="Keywords" content=""/>
<meta name="Description" content=""/> {include file="include/head" /}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/style2.css">
<body>
<div id="content">
<!--top-->
{include file="include/top" /}
<!-- 轮播 s -->
<div class="homeban banner-other" style="margin-top: 40px;">
<div class="bd">
<ul>
<li><a href="#"><img style="width:100%" src="__PUBLIC__/m_weben/images/blog/mblog.png"/></a></li>
</ul>
</div>
</div>
<!-- 轮播 e -->
<div class="m_Container">
<!-- Blog列表 s -->
<div class="search_box">
<input type="text" placeholder="Search blog articles" class="search" id="bg-blog-in" value="<?php if(isset($search['name'])){ echo $search['name'];}?>"/>
<button id="blog-btnput" class="search-button-blog">Search</button>
</div>
<div class="blog_list">
<?php if ($list): ?>
<ul class="clearfix">
<?php foreach ($list as $detail): ?>
<li>
<a href="<?php echo '/usmobile/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">No Result!</div>
<?php endif; ?>
</div>
<!-- Blog列表 e -->
<script>
var type = 'Blog';
$(function(){
$("#bg-blog-in").keyup(function(event) {
if (event && event.keyCode === 13) {
$("#blog-btnput").trigger("click");
}
});
//$("#search-btnput").click(function() {
$("#blog-btnput").bind("click", function(event) {
console.log('Blog');
var keywords = $("#bg-blog-in").val();
if(keywords){
var href = "?name=" + encodeURIComponent(keywords);
location.href = href;
}
else{
var href = "/usmobile/blog";
location.href = href;
}
});
});
</script>
</div>
<br class="bottom-margin">
<!--底部-->
{include file="include/bottom" /}
</div>
</body>
</html>

212
app/usmobile/view/bulk/bulk.phtml Executable file
View File

@@ -0,0 +1,212 @@
<!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>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/style2.css">
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<div class="m_Container">
<!-- 详情页 s -->
<div class="apply_content" style="margin-top: 80px;">
<div class="form_title">Become a Distributor</div>
<div class="apply_form">
<div style="margin-bottom: 1.875rem;">
<p><strong style="color: red; margin-right: 0.3125rem;">*</strong>Company name</p>
<input class='companyName' type="text" placeholder="Legal business name" name="company" id="company" />
</div>
<div style="margin-bottom: 1.875rem;">
<p>Official website</p>
<input type="text" placeholder="Please paste the URL" name="url" class="url" id="url" />
</div>
<div class="name clearfix" style="margin-bottom: 1.875rem;">
<p><strong style="color: red; margin-right: 0.3125rem;">*</strong>Your name</p>
<div style="margin-right: 1.25rem;">
<input type="text" class="first" placeholder="First name" name="firstname" id="firstname"/>
</div>
<div>
<input type="text" class="last" placeholder="Last name" name="lastname" id="lastname"/>
</div>
</div>
<div style="margin-bottom: 1.875rem;">
<p><strong style="color: red; margin-right: 0.3125rem;">*</strong>Email</p>
<input type="email" class="email" name="email" id="email"/>
</div>
<div style="margin-bottom: 1.875rem;">
<p>Phone number</p>
<input type="text" class="phone" name="phone" id="phone"/>
</div>
<div style="margin-bottom: 1.875rem;">
<p>Products you are interested in?</p>
<div class="check_boxs">
<ul>
<li><input type="checkbox" name="interested" value="Computer Peripheral">Computer Peripheral</li>
<li><input type="checkbox" name="interested" value="Phone Peripheral">Phone Peripheral</li>
<li><input type="checkbox" name="interested" value="Electronics">Electronics</li>
<li><input type="checkbox" name="interested" value="SSD">SSD</li>
<li><input type="checkbox" name="interested" value="Entertainment Series">Entertainment Series</li>
<li><input type="checkbox" name="interested" value="Smart Life Series">Smart Life Series</li>
<li><input type="checkbox" name="interested" value="Outdoor Power Station">Outdoor Power Station</li>
</ul>
</div>
</div>
<div style="margin-bottom: 1.875rem;">
<p>Are you willing to keep inventory?</p>
<div class="radio_box">
<ul>
<li><input type="radio" name="inventory" value="YES" checked>YES</li>
<li><input type="radio" name="inventory" value="NO">NO</li>
</ul>
</div>
</div>
<div style="margin-bottom: 1.875rem;">
<p><strong style="color: red; margin-right: 0.3125rem;">*</strong>Distribution region</p>
<input type="text" class="region" placeholder="Country,or area within a country" name="distribution" id="distribution"/>
</div>
<div class="submit_btn">SUBMIT</div>
</div>
</div>
<!-- 详情页 e -->
</div>
<br class="bottom-margin">
<!--底部-->
{include file="include/bottom" /}
</div>
<script>
try {
k_win_ref = window.parent.document.referrer;
} catch(e) {
k_win_ref = '';
};
// 输入框失去焦点
$('.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');
}
})
$('.region').blur(function(){
if($('.region').val() != ''){
$('.region').removeClass('error');
$('.region').next('span').addClass('hide');
}else{
$('.region').addClass('error');
$('.region').next('span').removeClass('hide');
}
})
// 提交表单
$('.submit_btn').click(function(){
var companyName = $('.companyName').val();
var firstName = $('.first').val();
var lastName = $('.last').val();
var email = $('.email').val();
var region = $('.region').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');
}
if(region == ''){
$('.region').addClass('error');
$('.region').next('span').removeClass('hide');
}
//点击创建申请块
if(companyName && firstName && lastName && email && region) {
$.ajax({
type: "POST",
url: "agent/create",
data: {'company':companyName, 'email':email,'country':region,'name':firstName,'last_name':lastName,'phone':$('.phone').val(),'interested':interesteds,'is_inventory':inventory,'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';
}
else{
if(data.code == 403 || data.code == 201) {
alert(data.msg);
}
else{
$('.email').addClass('error');
$('.email').next('span').removeClass('hide');
}
}
}
});
}
})
</script>
</body>
</html>

View File

@@ -0,0 +1,84 @@
<!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__/m_weben/css/login.css">
</head>
<body>
<!--top-->
<div id="content">
{include file="include/top" /}
<!--正文-->
<div class="margin-top-90">
<div class="login-m-a ">
<div class="login-m-user text_center text_gray">
<p class="text_32 margin-top-50 text_black">Activate your account</p>
<p class="text_24 line-height-40 margin-top-20 ">Were excited to have you with us!</p>
<p class="text_24 line-height-40">We have sent an Activation Email to below Email address.</p>
<p class="text_24 line-height-40">Please open the mail to complete registration.</p>
<p class="text_24 line-height-40"><?php echo $email; ?></p>
<span class="cursor_p"><p class="activation text_24 margin-bottom-60 margin-top-50" onclick="register()">Resend the Email</p></span>
</div>
</div>
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</div>
</html>
<script type="text/javascript">
function register()
{
var time = 10;
var email = '<?php echo isset($email) ? $email : ''; ?>';
var arg = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/;
if (!arg.test(email))
{
return;
}
var data = {
email: email,
re_send: 1
};
$.ajax({
url: '/usmobile/customer/new_register',
type: 'post',
dataType: 'json',
data: data,
success: function(res) {
if (res.code == 200)
{
var timer = setInterval(function () {
if(time == 0){
location.href = '/usmobile/customer/activation.html?email=' + email;
clearInterval(timer);
}else {
//$("#btn_send").html(time+"S");
$("#btn_send").hide();
time--;
}
},1000);
}
else
{
alert(res.msg);
}
}
});
}
</script>

View File

@@ -0,0 +1,430 @@
<!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:180px;">
<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 accounts blue cursor_p text-c">Retrieve Password</div>
<div class="des accounts cursor_p text-c">Well send you a link so you can reset your password.</div>
<div class="content">
<li class="margin-b-5">
<input type="text" onfocus="this.placeholder=''" onblur="this.placeholder='Email Address'" id="email" placeholder="Email Address">
<div id="err_email" style="color: red"></div>
</li>
<div class="tjdl">
<button class="tjbtn" onclick="update_forget_pwd('update_by_email')">Sumbit</button>
</div>
</div>
<div class="Register">
<a href="__ORICOROOT__<?php echo url('/register'); ?>" class="left">Registry</a>
<a href="__ORICOROOT__<?php echo url('/login'); ?>" class="right">Login</a>
</div>
</div>
</div>
</div>
<div class="text-c login_bottom">2015 ORICO Technologies Co.,Ltd copyright<a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=44030702002297" >GuangDong ICP No. 15,025,109</a></div>
<!-- 注册 e -->
<!-- 新闻详情页 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 = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,20}$/;
if (!arg.test(password))
{
var html = '<span style="color: red">Passwords must contain 8-20 characters, numbers and letters</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"> Two password inconsistencies </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">Please check the E-mail</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">Error Mail Form</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,185 @@
<!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__/m_weben/css/login.css">
</head>
<body>
<!--top-->
<div id="content">
{include file="include/top" /}
<div class="img-responsive margin-top-90"><img src="/frontend/m_web/images/user/login_banner.jpg" alt=""></div>
<!--top End-->
<!-- 登录 -->
<div class="margin-top-30">
<div class="login-m-a">
<div class="login-m-user">
<div class="login-m-img"><img src="/frontend/m_web/images/user/password.png" alt=""></div>
<div class="input-a">
<input type="password" id="password" onfocus="this.placeholder=''" onblur="this.placeholder='New password'" placeholder="New password">
</div>
</div>
</div>
<div class="login-m-a ">
<div class="login-m-password">
<div class="login-m-img"><img src="/frontend/m_web/images/user/password.png" alt=""></div>
<div class="input-a">
<input type="password" id="re_password" onfocus="this.placeholder=''" onblur="this.placeholder='Confirm New Password'" placeholder="Confirm New Password">
</div>
</div>
</div>
</div>
<!--登录按钮-->
<div class="login-btn margin-top-70">
<button class="login" onclick="update_forget_pwd()">Sumbit</button>
</div>
<!--快速注册-->
<div class="login-text">
<a href="__ORICOROOT__<?php echo url('/customer/register'); ?>">Registry</a>
<span class="floa_r"><a href="__ORICOROOT__<?php echo url('/customer/login.html'); ?>">Login</a></span>
</div>
{include file="include/bottom" /}
</div>
</html>
<script type="text/javascript">
function update_forget_pwd() {
var password = $("#password").val();
var re_password = $("#re_password").val();
var token = '<?php echo isset($token) ? $token : ''; ?>';
var data = {
token: token,
password: password
};
if (!check_format('password') || !check_format('re_password'))
{
return;
}
$.ajax({
url: '/usmobile/customer/change_password',
type: 'post',
dataType: 'json',
data: data,
success: function (res) {
if (res.code == 200)
{
alert(res.msg);
location.href = '/usmobile/customer/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')
{
var re_password = $("#re_password").val();
if (re_password != '')
{
check_format('re_password');
}
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">The password must contain 8-20 characters and at least two types of characters.</span>';
show_err('password', html);
return false;
}
else
{
hide_err('password');
return true;
}
}
else if (id == 're_password')
{
var password = $("#password").val();
var re_password = $("#re_password").val();
if (password != re_password)
{
var html = '<span style="color: red"> Two password inconsistencies </span>';
show_err('re_password', html);
return false;
}
else
{
hide_err('re_password');
return true;
}
}
}
$(document).keyup(function(e) {
var code = e.keyCode;
if (code == 13)
{
update_forget_pwd();
}
});
</script>
<script type="text/javascript">
function hide_err(id)
{
if (id == 'password')
{
var err_id = 'err_password';
var input_id = 'password';
}
else if (id == 're_password')
{
var err_id = 'err_re_password';
var input_id = 're_password';
}
$('#' + err_id).html('');
$('#' + input_id).css('border', '1px solid #dedfe0');
}
function show_err(id, html)
{
if (id == 'password')
{
var err_id = 'err_password';
var input_id = 'password';
}
else if (id == 're_password')
{
var err_id = 'err_re_password';
var input_id = 're_password';
}
$('#' + err_id).html(html);
$('#' + input_id).css('border', '1px solid red');
}
</script>

View File

@@ -0,0 +1,156 @@
<!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__/m_weben/css/login.css">
</head>
<body>
<!--top-->
<div id="content">
{include file="include/top" /}
<!--top End-->
<!--banner-->
<div class="img-responsive margin-top-90"><img src="/frontend/m_web/images/user/login_banner.jpg" alt=""></div>
<!-- 登录 -->
<div class="margin-top-30">
<div class="login-m-a">
<div class="login-m-user">
<div class="login-m-img"><img src="/frontend/m_web/images/user/login-use.png" alt=""></div>
<div class="input-a">
<input type="text" id="email" onfocus="hide_err('email')" onblur="check_format('email')" placeholder="Email Address">
</div>
</div>
</div>
<div class="login-m-a ">
<div class="login-m-password">
<div class="login-m-img"><img src="/frontend/m_web/images/user/password.png" alt=""></div>
<div class="input-a">
<input type="password" onfocus="hide_err('password')" id="password" placeholder="Password">
</div>
</div>
</div>
</div>
<!--登录按钮-->
<div class="login-btn margin-top-70">
<button class="login" onclick="login()">Login</button>
</div>
<!--快速注册-->
<div class="login-text">
<a href="__ORICOROOT__<?php echo url('/customer/register'); ?>">Registry</a>
<span class="floa_r"><a href="__ORICOROOT__<?php echo url('/customer/retrieve_password'); ?>">Forget password</a></span>
</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='toLogin()'><img src="__PUBLIC__/web/images/customer/weixin.png" height="33"></a>
</div>-->
<!-- 登录 -->
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</div>
<script type="text/javascript">
function show_err(id, html)
{
var err_id = '#err_' + id;
var input_id = '#' + id;
$(err_id).html(html);
$(input_id).css('border', '1px solid red');
}
function hide_err(id)
{
var err_id = '#err_' + id;
var input_id = '#' + id;
$(err_id).html('');
$('err_block').html('');
$(input_id).css('border', '1px solid #dedfe0');
}
function check_format(id)
{
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 = 'Please check the E-mail';
show_err(id, html);
return false;
}
else
{
hide_err(id);
return true;
}
}
}
function login()
{
var email = $("#email").val();
var password = $("#password").val();
var data = {
email: email,
password: password
};
if (!check_format('email'))
{
return;
}
$.ajax({
url: '/usmobile/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 = '/usmobile/customer/personal';
}
}
else if (res.code < 0)
{
var html = res.msg;
$('#err_block').html(html);
}
}
});
}
$(document).keyup(function(e) {
var code = e.keyCode;
if (code == 13)
{
login();
}
});
</script>
</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/bottom" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,69 @@
<!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__/m_weben/css/login.css">
</head>
<body>
<!--top-->
<div id="content">
{include file="include/top" /}
<div class="img-responsive margin-top-90"><img src="__PUBLIC__/m_web/images/user/login_banner.jpg" alt=""/></div>
<!--top End-->
<div class="margin-60">
<div class="login-m-a">
<div class="login-m-user">
<div class="login-m-img"><img src="__PUBLIC__/m_web/images/user/email.png" alt=""/></div>
<div class="input-a">
<input name="email" type="text" placeholder="Email Address" onfocus="this.placeholder=''" onblur="this.placeholder='Email Address'" >
</div>
</div>
</div>
<div class="login-m-a ">
<div class="login-m-password">
<div class="login-m-img"><img src="__PUBLIC__/m_web/images/user/password.png" alt=""/></div>
<div class="input-a">
<input name="password" type="password" placeholder="Please enter your password" onfocus="this.placeholder=''" onblur="this.placeholder='Please enter your password'" >
</div>
</div>
</div>
</div>
<div class=" login-btn">
<button class="login">Login</button>
</div>
<div class="login-text"><a href="/usmobile/customer/register.html">Rapid registration</a> <span class="floa_r"><a href="/usmobile/customer/retrieve_password.html">Forget password?</a></span></div>
<!--底部-->
{include file="include/bottom" /}
</body>
</html>
<script type="text/javascript">
$(function() {
$(".login").click(function() {
var email = $("input[name = 'email']").val();
var password = $("input[name = 'password']").val();
$.ajax({
url: '/usmobile/customer/new_login',
type: 'post',
data: {email: email, password: password},
dataType: 'json',
success: function(res) {
if (res.code === 200) {
alert('Login Successful');
location.href = '/usmobile/customer/personal.html';
}
else
{
alert(res.msg);
}
}
});
});
});
</script>

View File

@@ -0,0 +1,189 @@
<!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__/m_weben/css/login.css">
</head>
<body style="background: #f4f5f5;">
<!--top-->
<div id="content">
{include file="include/top-collection" /}
<div class="img-responsive personal-all margin-top-90">
<img src="__PUBLIC__/m_web/images/user/personal-bg.jpg" alt=""/>
<div class="personal_header">
<?php if (!empty($customer_info)): ?>
<?php
$head_img = $customer_info['picture'] != '' ? $customer_info['picture'] : '__PUBLIC__/web/images/customer/logo_small_03.png';
?>
<div class="m_Container">
<div class="left"><img class="headimg" style="border-radius: 50%;" src="<?php echo $head_img; ?>" alt=""/></div>
<div class="right text_28">
<p>User: <?php echo $customer_info['firstname']; ?></p>
<p class="margin-top-14">Status: Logged in</p>
</div>
</div>
<?php endif; ?>
</div>
</div>
<!--收藏内容-->
<div class="personal-bg margin-top-20 margin-bottom-10 overflow-h">
<div class="m_Container">
<!--导航-->
<div class="collection_c margin-bottom-14 margin-top-10 text_black " id="collection_c">
<div class="scroller">
<ul class="clearfix text_28">
<li class="<?php if ($cid == 0): ?> collection_c_hover <?php endif; ?>"><a href="__ORICOROOT__/customer/my_collection.html" class=""><span>All</span></a></li>
<?php if (!empty($productCategory)): ?>
<?php foreach($productCategory as $key => $value): ?>
<li class="<?php if ($cid == $value['id']): ?> collection_c_hover <?php endif; ?>"><a href="__ORICOROOT__/customer/my_collection/cid/<?php echo $value['id']; ?>" class=""><span><?php echo $value['name']; ?></span></a></li>
<?php endforeach; ?>
<?php endif; ?>
</ul>
</div>
</div>
<!--列表-->
<div class="collection_l f_weight_100">
<?php if (!empty($list)): ?>
<ul>
<?php foreach($list as $key => $value): ?>
<a href="/usmobile/product/detail/id/<?php echo $value['id']; ?>.html">
<li class="">
<div class="Batch_select" style="display: none;">
<input id="" name="check_box" type="checkbox" class="check_box" value="<?php echo $value['id']; ?>"><label></label>
</div>
<div class="left img-responsive"><img src="<?php echo $value['product_two_img']; ?>"></div>
<div class="right">
<p class="text_28 margin-top-14"><?php echo $value['name']?></p>
<p class="text_24 text_gray margin-top-20"><?php echo $value['brand_id']; ?></p>
</div>
</li>
</a>
<?php endforeach; ?>
</ul>
<?php else: ?>
<!--无收藏-->
<div class="margin-top-90 margin-bottom-90 text_32 text_center">You haven't collected any products yet.</div>
<?php endif; ?>
</div>
</div>
<div class="collection_b text_24" style="display: none;">
<div class="m_container margin-bottom-20 margin-top-30 text_gray overflow-h">
<div class="collection_b_left img-responsive"><input type="checkbox" class="check" name="check" value=""><label></label>Select All</div>
<div class="collection_b_right delete">Delete</div>
</div>
</div>
</div>
<div class="all_del Popup img-responsive" style="display: none">
<div class="all_delect content text_center">
<p class="text_28 margin-bottom-30">Confirm Delete</p>
<p class="all_del_left">
<span class="bg_red u_button_blue text_24">Confirm</span>
<span class="bg_gray u_button_gray text_24">Cancel</span>
</p>
</div>
</div>
<script type="text/javascript" src="__PUBLIC__/m_web/js/scroll/iscroll.js"></script>
<script type="text/javascript" src="__PUBLIC__/m_web/js/scroll/navbarscroll.js"></script>
<script type="text/javascript">
/*导航滚动*/
$(function(){
//demo示例一到四 通过lass调取一句可以搞定用于页面中可能有多个导航的情况
$('.collection_c').navbarscroll();
});
/*批量删除*/
$(function(){
$(".Batch").click(function(){
$(".Batch_select").toggle();
$(".collection_b").toggle();
//$(".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(){
$(".collection_b_left input[name='check']").click(function(){
if($(this).is(":checked")){
$(".Batch_select input[type='checkbox']").prop("checked",true);
}else{
$(".Batch_select input[type='checkbox']").prop("checked",false);
}
})
});
/*批量管量*/
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/bottom" /}
<!-- bottom e -->
</body>
</html>
<script type="text/javascript">
function cancel_collection(product_id, type=0)
{
if (product_id == '')
{
alert(' Please choose the product first. ');
$(".all_del").hide();
return;
}
var data = {
type: 1,
coll_id: product_id
};
$.ajax({
url: '/us/collection/cancel_collection',
type: 'post',
dataType: 'json',
data: data,
success: function (res) {
if (type == 1)
{
location.reload();
}
}
})
}
</script>

View File

@@ -0,0 +1,186 @@
<!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__/m_weben/css/login.css">
</head>
<body style="background: #f4f5f5;">
<!--top-->
<div id="content">
{include file="include/top-collection" /}
<div class="img-responsive personal-all margin-top-90">
<img src="__PUBLIC__/m_web/images/user/personal-bg.jpg" alt=""/>
<div class="personal_header">
<?php if (!empty($customer_info)): ?>
<?php
$head_img = $customer_info['picture'] != '' ? $customer_info['picture'] : '__PUBLIC__/web/images/customer/logo_small_03.png';
?>
<div class="m_Container">
<div class="left"><img class="headimg" style="border-radius: 50%;" src="<?php echo $head_img; ?>" alt=""/></div>
<div class="right text_28">
<p>User: <?php echo $customer_info['firstname']; ?></p>
<p class="margin-top-14">Status: Logged in</p>
</div>
</div>
<?php endif; ?>
</div>
</div>
<!--收藏内容-->
<div class="personal-bg margin-top-20 margin-bottom-10 overflow-h">
<div class="m_Container">
<!--导航-->
<div class="collection_c margin-bottom-14 margin-top-10 text_black " id="collection_c">
<div class="scroller">
<ul class="clearfix text_28">
<li class="<?php if ($cid == 0): ?> collection_c_hover <?php endif; ?>"><a href="__ORICOROOT__/customer/my_collection.html" class=""><span>All</span></a></li>
<?php if (!empty($productCategory)): ?>
<?php foreach($productCategory as $key => $value): ?>
<li class="<?php if ($cid == $value['id']): ?> collection_c_hover <?php endif; ?>"><a href="__ORICOROOT__/customer/my_collection/cid/<?php echo $value['id']; ?>" class=""><span><?php echo $value['name']; ?></span></a></li>
<?php endforeach; ?>
<?php endif; ?>
</ul>
</div>
</div>
<!--列表-->
<div class="collection_l f_weight_100">
<?php if (!empty($list)): ?>
<ul>
<?php foreach($list as $key => $value): ?>
<li class="">
<div class="Batch_select" style="display: none;">
<input id="" name="check_box" type="checkbox" class="check_box" value="<?php echo $value['id']; ?>"><label></label>
</div>
<div class="left img-responsive"><img src="<?php echo $value['product_two_img']; ?>"></div>
<div class="right">
<p class="text_28 margin-top-14"><?php echo $value['name']?></p>
<p class="text_24 text_gray margin-top-20"><?php echo $value['brand_id']; ?></p>
</div>
</li>
<?php endforeach; ?>
</ul>
<?php else: ?>
<!--无收藏-->
<div class="margin-top-90 margin-bottom-90 text_32 text_center">You haven't collected any products yet.</div>
<?php endif; ?>
</div>
</div>
<div class="collection_b text_24" style="display: none;">
<div class="m_container margin-bottom-20 margin-top-30 text_gray overflow-h">
<div class="collection_b_left img-responsive"><input type="checkbox" class="check" name="check" value=""><label></label>Select All</div>
<div class="collection_b_right delete">Delete</div>
</div>
</div>
</div>
<div class="all_del Popup img-responsive" style="display: none">
<div class="all_delect content text_center">
<p class="text_28 margin-bottom-30">Confirm Delete</p>
<p class="all_del_left">
<span class="bg_red u_button_blue text_24">Confirm</span>
<span class="bg_gray u_button_gray text_24">Cancel</span>
</p>
</div>
</div>
<script type="text/javascript" src="__PUBLIC__/m_web/js/scroll/iscroll.js"></script>
<script type="text/javascript" src="__PUBLIC__/m_web/js/scroll/navbarscroll.js"></script>
<script type="text/javascript">
/*导航滚动*/
$(function(){
//demo示例一到四 通过lass调取一句可以搞定用于页面中可能有多个导航的情况
$('.collection_c').navbarscroll();
});
/*批量删除*/
$(function(){
$(".Batch").click(function(){
$(".Batch_select").toggle();
$(".collection_b").toggle();
//$(".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(){
$(".collection_b_left input[name='check']").click(function(){
if($(this).is(":checked")){
$(".Batch_select input[type='checkbox']").prop("checked",true);
}else{
$(".Batch_select input[type='checkbox']").prop("checked",false);
}
})
});
/*批量管量*/
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/bottom" /}
<!-- bottom e -->
</body>
</html>
<script type="text/javascript">
function cancel_collection(product_id, type=0)
{
if (product_id == '')
{
alert(' Please choose the product first. ');
$(".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,214 @@
<!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__/m_weben/css/login.css">
</head>
<body style="background: #f4f5f5;">
<!--top-->
<div id="content">
{include file="include/top" /}
<div class="img-responsive personal-all margin-top-90">
<img src="__PUBLIC__/m_web/images/user/personal-bg.jpg" alt=""/>
<div class="personal_header">
<?php if (!empty($customer_info)): ?>
<?php
$head_img = $customer_info['picture'] != '' ? $customer_info['picture'] : '__PUBLIC__/web/images/customer/logo_small_03.png';
?>
<div class="m_Container">
<div class="left"><img class="headimg" style="border-radius: 50%;" src="<?php echo $head_img; ?>" alt=""/></div>
<div class="right text_28">
<p>User: <?php echo $customer_info['firstname']; ?></p>
<p class="margin-top-14">Status: Logged in</p>
</div>
</div>
<?php endif; ?>
</div>
</div>
<div class="personal-bg margin-top-14">
<div class="m_Container f_weight_100">
<div class="personal-m-a text_28 text_gray ">
<div class="personal-left-icon"><img src="__PUBLIC__/m_web/images/user/collection.png" alt=""/></div>
<a href="__ORICOROOT__/customer/my_collection.html"><div class="personal-lable">Favorite</div></a>
<div class="personal-icon"><img src="__PUBLIC__/m_web/images/user/personal-icon.png" alt=""/></div>
</div>
<?php if (!empty($customer_info)): ?>
<div class="personal-m-a text_28 text_gray">
<div class="modify">
<div class="personal-left-icon"><img src="__PUBLIC__/m_web/images/user/password.png" alt=""/></div>
<div class="personal-lable">Change Password</div>
<div class="personal-icon"><img src="__PUBLIC__/m_web/images/user/personal-icon.png" alt=""/></div>
</div>
<div class="Popup">
<div class="content password">
<?php if ($customer_info['have_pwd']): ?>
<div class="margin-bottom-20"><label>Original Password</label><input class="form-control input_class" id="old_password" type="password">
</div>
<?php endif; ?>
<div class="margin-bottom-20"><label>New Password</label><input id="new_password" class="form-control input_class" type="password"></div>
<div class="margin-bottom-20"><label>Confirm Password</label><input id="re_password" class="form-control input_class" type="password"></div>
<div class="text_right"><a href="__ORICOROOT__/customer/forgetpwd.html" class="text_blue">Forget Password?</a></div>
<div class="u_button text_22 text_center margin-top-50"><a class="u_button_blue" onclick="update_pwd()">Confirm</a><a class="u_button_gray">Cancel</a><!--<a href="http://www.orico.com.cn/forgetpwd"><span class="forget_button f_blue">忘记密码</span></a>--></div>
</div>
</div>
</div>
<?php endif; ?>
<!--<div class="personal-m-a text_24 text_gray">
<div class="modify">
<div class="personal-left-icon"><img src="__PUBLIC__/m_web/images/user/email.png" alt=""/></div>
<div class="personal-lable">Change Email</div>
<div class="personal-c margin-top-40"><?php echo $customer_info['email']; ?></div>
<div class="personal-icon"><img src="__PUBLIC__/m_web/images/user/personal-icon.png" alt=""/></div>
</div>
<div class="Popup">
<div class="content email">
<div class="margin-bottom-20"><label>New Email</label><input class="form-control input_class" id="email" type="text"></div>
<div class="u_button text_22 text_center margin-top-50"><a class="u_button_blue" onclick="bind_email()">Confim</a><a class="u_button_gray">Cancel</a>
</div>
</div>
</div>
</div>-->
</div>
</div>
<div class=" login-btn" style="margin-bottom: 1.3rem;">
<button class="update margin-top-50" onclick="logout()">Logout</button>
</div>
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>
<script type="text/javascript">
function logout()
{
$.ajax({
'url': '/usmobile/customer/new_logout.html',
'type': 'post',
'success': function(res) {
location.href = '__ORICOROOT__';
}
})
}
/*修改密码*/
$(function(){
$(".modify").click(function(){
$(this).next(".Popup").show();
});
$(".u_button_gray").click(function(){
$(this).parents(".Popup").hide();
})
});
/*修改密码*/
function check_format(id)
{
if (id == 'new_password')
{
var re_password = $("#re_password").val();
if (re_password != '')
{
check_format('re_password');
}
var password = $("#new_password").val();
var arg = /^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&*-.]+$)[a-zA-Z\d!@#$%^&*-.]{8,20}$/;
if (!arg.test(password))
{
var html = 'Password must be 8 - 20 digits, letters or characters';
show_err('new_password', html);
return false;
}
else
{
hide_err('new_password');
return true;
}
}
else if (id == 're_password')
{
var password = $("#new_password").val();
var re_password = $("#re_password").val();
if (password != re_password)
{
var html = 'Two password inconsistencies';
show_err('re_password', html);
return false;
}
else
{
hide_err('re_password');
return true;
}
}
}
function update_pwd()
{
var old_password = $("#old_password").val();
var password = $("#new_password").val();
var data = {
old_password: old_password,
password: password,
};
if (!check_format('new_password') || !check_format('re_password'))
{
return;
}
$.ajax({
url: '/us/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_password', html);
}
else
{
alert(res.msg);
}
}
});
}
</script>
<script type="text/javascript">
function show_err(id, html)
{
var err_id = '#err_' + id;
var input_id = '#' + id;
$(err_id).html(html);
$(input_id).css('border', '1px solid red');
}
function hide_err(id)
{
var err_id = '#err_' + id;
var input_id = '#' + id;
$(err_id).html('');
$(input_id).css('border', '1px solid #dedfe0');
}
</script>

View File

@@ -0,0 +1,247 @@
<!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__/m_weben/css/login.css">
</head>
<body>
<!--top-->
<div id="content">
{include file="include/top" /}
<div class="img-responsive margin-top-90"><img src="__PUBLIC__/m_web/images/user/login_banner.jpg" alt=""/></div>
<!--top End-->
<!-- 注册 -->
<div class="regist-tab">
<!--<div class="tab">
<a href="javascript:;" class="on">邮箱注册</a> <a href="javascript:;" class="on">手机注册</a> </div>-->
<div class="content">
<div class="margin-top-30">
<div class="login-m-a">
<div class="login-m-password">
<div class="login-m-img"><img src="__PUBLIC__/m_web/images/user/email.png" alt=""/></div>
<div class="input-a"><input type="text" onfocus="this.placeholder=''" onblur="this.placeholder='Email Address'" id="email" placeholder="Email Address"></div>
</div>
</div>
<div class="login-m-a">
<div class="login-m-code">
<div class="login-m-img"><img src="__PUBLIC__/m_web/images/user/password.png" alt=""/></div>
<div class="input-a"><input type="password" onfocus="this.placeholder=''" onblur="this.placeholder='Password'" id="password" placeholder="Password"></div>
</div>
</div>
<div class="login-m-a">
<div class="login-m-code">
<div class="login-m-img"><img src="__PUBLIC__/m_web/images/user/login-code.png" alt=""/></div>
<div class="input-a"><input type="text" onfocus="this.placeholder=''" onblur="this.placeholder='Enter Captcha'" id="captcha" placeholder="Enter Captcha"></div>
<div class="input-code img-responsive"><img id="verifyimg" src="/captcha/authcode.html"></div>
</div>
</div>
</div>
</div>
<!--<div class="regist-form"><input type="checkbox"> 我已阅读并同意《网站服务条款》</div>-->
<div class="margin-top-90 login-btn margin-bottom-20 overflow-h"><button class="register" onclick="register()">Registry</button></div>
<div class="login-text"><a href="__ORICOROOT__/customer/login.html" class="float_l margin-bottom-90 overflow-h">Login</a></div>
</div>
<!-- 注册 e -->
{include file="include/bottom" /}
</div>
</body>
</html>
<script type="text/javascript">
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 show_err(id, html)
{
var err_id = '#err_' + id;
var input_id = '#' + id;
$(err_id).html(html);
$(input_id).css('border', '1px solid red');
}
function hide_err(id)
{
var err_id = '#err_' + id;
var input_id = '#' + id;
$(err_id).html('');
$(input_id).css('border', '1px solid #dedfe0');
}
function check_format(id)
{
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 = 'Please check the E-mail';
show_err(id, html);
return false;
}
else
{
hide_err(id);
return true;
}
}
else if (id == 'password')
{
var password = $("#password").val();
var arg = /^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&*-.]+$)[a-zA-Z\d!@#$%^&*-.]{8,20}$/;
if (!arg.test(password))
{
var html = 'The password must contain 8-20 characters and at least two types of characters.';
show_err(id, html);
return false;
}
else
{
hide_err(id);
return true;
}
}
}
function register()
{
var email = $("#email").val();
var password = $("#password").val();
var captcha = $("#captcha").val();
var data = {
email: email,
password: password,
captcha: captcha
}
if (!check_format('email') || !check_format('password'))
{
return;
}
$.ajax({
url: '/usmobile/customer/new_register',
type: 'post',
dataType: 'json',
data: data,
success: function(res) {
if (res.code == 200)
{
alert(res.msg);
location.href = '/usmobile/customer/activation.html?email=' + email;
}
if (res.code < 0)
{
alert(res.msg);
}
}
});
};
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("Sent Again" + curCount + "S");
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>
<script type="text/javascript">
$("#verifyimg").click(function(event) {
event.preventDefault();
$img = $("#verifyimg");
$img.attr("src", "/captcha/authcode.html?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>

View File

@@ -0,0 +1,176 @@
<!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__/m_weben/css/login.css">
</head>
<body>
<!--top-->
<div id="content">
{include file="include/top" /}
<div class="img-responsive margin-top-90"><img src="/frontend/m_web/images/user/login_banner.jpg" alt=""></div>
<!--top End-->
<!--重置密码-->
<div class="margin-top-30 other_login text_center">
<div class="title text_black">Retrieve Password</div>
<div class="text_24 text_gray margin-top-20">Well send you a link so you can reset your password.</div>
</div>
<div class="margin-top-30">
<div class="login-m-a">
<div class="login-m-user">
<div class="login-m-img"><img src="/frontend/m_web/images/user/login-use.png" alt=""></div>
<div class="input-a">
<input type="text" id="email" onfocus="this.placeholder=''" onblur="this.placeholder='Email Address'" placeholder="Email Address">
</div>
</div>
</div>
</div>
<!--登录按钮-->
<div class="login-btn margin-top-70">
<button class="login" onclick="update_by_email()">Sumbit</button>
</div>
<!--快速注册-->
<div class="login-text">
<a href="__ORICOROOT__<?php echo url('/customer/register'); ?>">Registry</a>
<span class="floa_r"><a href="__ORICOROOT__<?php echo url('/customer/login'); ?>">Login</a></span>
</div>
</body>
</html>
<script type="text/javascript">
function update_by_email()
{
var email = $("#email").val();
var data = {
email: email,
};
if (!check_format('email'))
{
return;
}
$.ajax({
url: '/usmobile/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('password', html);
}
else
{
alert(res.msg);
}
}
})
}
function check_format(id)
{
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">Error Mail Form</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;
if (code == 13)
{
update_by_email();
}
});
</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 == 'email')
{
var err_id = 'err_email';
var input_id = 'email';
$('#' + err_id).html('');
$('#' + input_id).css('border', '1px solid #dedfe0');
}
}
function show_err(id, html)
{
if (id == 'email')
{
var err_id = 'err_email';
var input_id = 'email';
$('#' + 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>

383
app/usmobile/view/demo.phtml Executable file
View File

@@ -0,0 +1,383 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ORICO - USB Storage Adapters, Chargers, Hubs, and More</title>
<meta name="Keywords" content="Computer Peripheral, Phone Peripheral, Electronics ">
<meta name="Description" content="Online Shopping for reputable consumer electronics. High quality, fast shipping, affordable prices, sold in over 100 countries, and thousands of reviews.">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/js/bxslider/jquery.bxslider.css">
<script type="text/javascript" src="__PUBLIC__/m_web/js/bxslider/jquery.bxslider.min.js"></script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/swiper.css" />
<script src="__PUBLIC__/m_weben/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__PUBLIC__/m_weben/js/modernizr.js"></script>
<script src="__PUBLIC__/m_weben/js/jquery.mobile.custom.min.js"></script>
<script src="__PUBLIC__/m_weben/js/main.js"></script>
</head>
<body οnlοad="openwin()">
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
{include file="include/banner" /}
<!--类别-->
<?php
$categoryList = getBannerList(71, 5);
if ($categoryList):
?>
<div class="bg-w">
<div class="m_Container">
<div class="swiper-container" id="case4">
<div class="swiper-wrapper">
<?php foreach ($categoryList as $k => $category): ?>
<div class="swiper-slide">
<a href="<?php echo $category['url']; ?>">
<img src="<?php echo getImage($category['picture']); ?>">
<p><?php echo $category['name']; ?></p>
</a>
</div>
<?php endforeach; ?>
</div>
<!-- 分页器 -->
<div class="swiper-pagination"></div>
</div>
</div>
</div>
<?php endif; ?>
<!--广告-->
<?php
$collectionList = getBannerList(72, 3);
if ($collectionList):
?>
<div class="index-img">
<?php foreach ($collectionList as $kc => $collection): ?>
<img src="<?php echo getImage($collection['picture']); ?>">
<div class="Innew-text">
<p class="title"> <?php echo $collection['name']; ?></p>
<p class="more">
<a href="<?php echo $collection['url']; ?>" target="_blank">
View all
<img src="__PUBLIC__/m_weben/images/more.png">
</a>
</p>
</div>
<?php endforeach; ?>
</div>
<?php endif; ?>
<!--Featured Products-->
<?php
if (!empty($recomment_items)):
?>
<div class="m_Container">
<div class="swiper-container" id="case5">
<div class="swiper-wrapper text_center">
<?php foreach ($recomment_items as $kr => $item): ?>
<div class="swiper-slide inproimg">
<a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $item['id']]); ?>"><img src="<?php echo getImage($item['list_bk_img']); ?>"></a>
<div class="inprotext">
<p class="text_center title"><?php echo $item['name']; ?></p>
<p class="t-f16"><?php echo $item['shortname']; ?></p>
<p class="more">
<a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $item['id']]); ?>">
Learn More
<img src="__PUBLIC__/m_weben/images/more-r.png">
</a>
</p>
</div>
</div>
<?php endforeach; ?>
</div>
<div class="inpro-text">
<p class="more">View all
<img src="__PUBLIC__/m_weben/images/more.png">
</p>
</div>
</div>
</div>
<?php endif; ?>
<!--专题图片展示-->
<?php
$recomendList = getBannerList(81, 2);
if ($recomendList):
?>
<?php
foreach ($recomendList as $kr => $recomend):
$styles='top';
if($recomend['style']==3) {
$styles='right';
}
elseif($recomend['style']==2){
$styles='left';
}
elseif($recomend['style']==4){
$styles='bottom';
}
?>
<div class="indocking">
<img src="<?php echo $recomend['picture']; ?>">
<iframe width="100%" style="height:50rem;z-index:9999;" src="/frontend/weben/images/home/UFSD-I-en.mp4" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
<div class="position_a text_center">
<p class=" margin-top-70 f_weight_500 timetitle"><?php echo $recomend['name']; ?> </p>
<p class=" margin-top-14 f_weight_100 timedesin"><?php echo $recomend['description']; ?></p>
<p class=" margin-top-20 f_weight_100 ">
<span class="timeblue">Learn More
<img src="__PUBLIC__/m_weben/images/more-r.png">
</span>
</p>
</div>
</div>
<?php endforeach; ?>
<?php endif; ?>
<?php
$hotList = getBannerList(74, 4);
if ($hotList):
?>
<?php foreach ($hotList as $kh => $hot): ?>
<div class="indocking">
<a href="<?php echo $hot['url']; ?>"><img src="<?php echo $hot["picture"]; ?>"></a>
<div class="position_a text_center">
<p class=" margin-top-70 f_weight_500 timetitle"><?php echo $hot['name']; ?> </p>
<p class=" margin-top-14 f_weight_100 timedesin"><?php echo $hot['description']; ?></p>
<p class=" margin-top-20 f_weight_100">
<a href="<?php echo $hot['url']; ?>" class=" timeblue">
Learn More
<img src="__PUBLIC__/m_weben/images/more-r.png">
</a>
</p>
</div>
</div>
<?php endforeach; ?>
<?php endif; ?>
<!--遮罩图片效果-->
<div class="Tech-text">
<h3>Orico Technology</h3>
<p>designed to be just as easy to learn as iPhone. chatting with friends.</p>
<p class="timeblue">
<a href="#">Learn More
<img src="__PUBLIC__/m_weben/images/more-r.png">
</a>
</p>
</div>
<div class="section section-blends section-full">
<div class="section-stack section-stack--center ">
<div class="section-stack__main">
<div class="before-after shadow text-custom ba-slider" style="--text-color: 255 255 255;">
<img src="__PUBLIC__/m_weben/images/back-img01.jpg">
<div class="resize">
<img src="__PUBLIC__/m_weben/images/back-img02.jpg">
</div>
<span class="handle"></span>
</div>
</div>
</div>
</div>
<!--时间轴效果-->
<?php
$brandList = getBannerList(75, 3);
if ($brandList):
?>
<section class="cd-horizontal-timeline">
<div class="events-content">
<ul>
<?php foreach ($brandList as $kb => $brand): ?>
<li <?php if($kb==0):?>class="selected"<?php endif; ?> data-date="16/01/2014">
<img src="<?php echo $brand['picture']; ?>">
<div class="position_a text_center">
<p class=" margin-top-70 f_weight_500 timetitle"><?php echo $brand['name']; ?> </p>
<p class=" margin-top-14 f_weight_100 timedesin"><?php echo $brand['description']; ?></p>
<p class=" margin-top-20 f_weight_100">
<a class=" timeblue" href="<?php echo $brand['url']; ?>">
Learn More
<img src="__PUBLIC__/m_weben/images/more-r.png">
</a>
</p>
</div>
</li>
<?php endforeach; ?>
</ul>
</div>
<!-- .events-content -->
<div class="timeline">
<div class="events-wrapper">
<div class="events">
<ol>
<?php foreach ($brandList as $kd => $itm): ?>
<li>
<a href="#0" data-date="16/01/2014" <?php if($kd==0):?>class="selected"<?php endif; ?>><?php echo $itm['sort']; ?></a>
</li>
<?php endforeach; ?>
</ol>
<span class="filling-line" aria-hidden="true"></span>
</div>
<!-- .events -->
</div>
<!-- .events-wrapper -->
<ul class="cd-timeline-navigation">
<li>
<a href="#0" class="prev inactive">Prev</a>
</li>
<li>
<a href="#0" class="next">Next</a>
</li>
</ul>
<!-- .cd-timeline-navigation -->
</div>
<!-- .timeline -->
</section>
<?php endif; ?>
<!--number-->
<?php
$dataList = getBannerList(78, 3);
if ($dataList):
?>
<div class="num-bg clearfix">
<ul>
<?php foreach ($dataList as $kd => $feed): ?>
<li>
<h3><?php echo $feed['name']; ?></h3>
<p><?php echo $feed['description']; ?></p>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<!--图片切换-->
<?php
$newsList = getBannerList(77, 10);
if ($newsList):
?>
<div class="swiper-container" id="case7">
<div class="swiper-wrapper">
<?php foreach ($newsList as $kc => $news): ?>
<div class="swiper-slide">
<a href="<?php echo $brand['url']; ?>">
<div class="title"><?php echo $news['name']; ?></div>
<img src="<?php echo $news['picture']; ?>">
</a>
</div>
<?php endforeach; ?>
</div>
<!-- 分页器 -->
<div class="swiper-pagination"></div>
</div>
<?php endif; ?>
<?php
if ($faqData):
?>
<div class="faq">
<div class="faq-title ">
<h3>FAQ</h3>
<h5>What are you most concerned about.</h5>
<p>Our customer support is available Monday to Friday: 9am-6:00pm. Average answer time: 24h</p>
</div>
<?php foreach ($faqData as $kf => $faq): ?>
<dl>
<dt class="cursor_p"><?php echo $faq['name']; ?><i class="rotate icon-arrow"></i>
</dt>
<dd><?php echo str_replace("\r",'',nl2br($faq['content'])); ?></dd>
</dl>
<?php endforeach; ?>
</div>
<?php endif; ?>
{include file="include/bottom" /}
</div>
<script type="text/javascript">
/*banner*/
$(function(){
$('.banner_list').bxSlider({
});
});
/*banner*/
$(function(){
$('.news_list').bxSlider({
speed:5,
auto:true,
pager:false,
});
});
/* 幻灯片轮播*/
var mySwiper4 = new Swiper("#case4",{
loop : false, //允许从第一张到最后一张,或者从最后一张到第一张 循环属性
slidesPerView :4, // 设置显示四张
centeredSlides : true, //使当前图片居中显示
centeredSlidesBounds: true, //使左右两边的图片始终贴合边缘
/* slidesOffsetBefore : 100, //偏移使第一张图片向右偏移100px */
autoplay: false,//可选选项,自动滑动
initialSlide :0,//默认显示第二张图片索引从0开始
speed:2000,//设置过度时间
/* grabCursor: true,//鼠标样式根据浏览器不同而定 */
autoplay :false, /* 设置每隔3000毫秒切换 */
});
/* 产品图片轮播*/
var mySwiper4 = new Swiper("#case5",{
loop : false, //允许从第一张到最后一张,或者从最后一张到第一张 循环属性
slidesPerView :1.4, // 设置显示一张
centeredSlides : true, //使当前图片居中显示
centeredSlidesBounds: true, //使左右两边的图片始终贴合边缘
/* slidesOffsetBefore : 100, //偏移使第一张图片向右偏移100px */
autoplay: false,//可选选项,自动滑动
initialSlide :0,//默认显示第二张图片索引从0开始
speed:2000,//设置过度时间
/* grabCursor: true,//鼠标样式根据浏览器不同而定 */
autoplay :false, /* 设置每隔3000毫秒切换 */
});
/* 覆盖流3d切换 */
var mySwiper = new Swiper('#case7', {
loop : true, //允许从第一张到最后一张,或者从最后一张到第一张 循环属性
effect : 'coverflow', //轮播效果coverflow覆盖流效果
slidesPerView :2.1,
centeredSlides: true,
slidesOffsetBefore : 150,//偏移使第一张图片向右偏移150px */
autoplay: false, //可选选项,自动滑动
initialSlide :1,//默认显示第二张图片索引从0开始
speed:3000,//设置过度时间
/* grabCursor: true,//鼠标样式根据浏览器不同而定 */
autoplay :false, /* 设置每隔3000毫秒切换 */
<!-- 分页器 -->
pagination: {
el: '.swiper-pagination',
clickable :true, /* 可点击切换 */
dynamicBullets: true, /* 动力球样式 */
},
});
</script>
<script type="text/javascript" src="__PUBLIC__/m_weben/js/before-after.min.js"></script>
<script type="text/javascript">
$(function () {
$('.before-after').beforeAfter();
});
</script>
</body>
</html>

View File

@@ -0,0 +1,110 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Software download_ORICO</title>
<meta name="Keywords" content="Software download">
<meta name="Description" content="Software download">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<style>
.clearfix:after {content: ".";display: block;height:0;clear:both; visibility:hidden; }
.clearfix {*zoom:1;}
.mobile-search { background:#004BFA;width:100%;padding:1rem 0 0.5rem;}
.download-title {font-size:28px; text-align: center; color:#333;margin:15px 0;}
.download-bg {background: #fff;border-radius:10px; margin:8px 25px;box-shadow: 0px 2px 40px 0px #E6EAF4;-moz-box-shadow: 0px 2px 40px 0px #E6EAF4;-webkit-box-shadow:0px 2px 40px 0px #E6EAF4; padding:1.333rem;}
@media screen and (max-width: 375px) {
.download-left {width:60%;margin:auto; }
.download-right {width:100%; font-size:0.8rem;}
.down-btn {border:1px solid #009fdf;;text-align: center; color:#009fdf; font-size: 0.8rem; margin:auto; border-radius: 20px;padding:0.5rem 1rem }
}
.download-left img {width:100%;}
@media screen and (min-width: 376px) {
.download-left {width:30%; float: left;}
.download-right {width:65%; float: right; font-size: 0.64rem;}
}
.down-btn {border:1px solid #009fdf;text-align: center; color:#009fdf; font-size: 0.8rem; margin:5px 0; border-radius: 20px;padding:0.5rem 1rem }
.down-btn a { color:#009fdf;}
.down-gray {color:#666; margin: 5px 0;}
</style>
</head>
<body>
<!--头部-->
{include file="include/top" /}
<!--search-->
<div class="margin-45"></div>
<div class="menu mobile-search margin-top-90">
<div class="search">
<!-- <a href="__ORICOROOT__/search">-->
<form action="__ORICOROOT__/download.html" method="get">
<div class="search margin-bottom-30">
<button class="updown_search_btn" type="sumbit" id="search-btn"><span class="icon-search-svg"></span></button>
<input class="form-control" id="search_software" name="keywords" placeholder="search" value="<?php if(isset($keywords)){ echo $keywords;} ?>" type="text">
</div>
</form>
<!-- </a> -->
</div>
</div>
<!--Software download-->
<div class="download-title">Software download</div>
<!--循环-->
<?php if($list):?>
<?php foreach ($list as $key => $value): ?>
<div class="download-bg clearfix">
<div class="download-left"><img src="<?php echo $value['picture']; ?>"></div>
<div class="download-right">
<div class="font-48"> <?php echo $value['name']; ?></div>
<div class="down-gray">
<p>Supported Models: <?php echo $value['app_model']; ?></p>
<p>Supported Systems: <?php echo $value['support_os']; ?></p>
</div>
<div class="down-btn">
<?php
$downloadpath = explode(',', $value['downloadpath']);
$downloadpath64 = explode(',', $value['downloadpath64']);
foreach ($downloadpath as $k => $dl):
$dlname = empty($downloadpath64[$k]) ? 'Download' : $downloadpath64[$k];
//$url=url('index/download/download', ['id' => $detail['id'], 'bit' => $k]);
?>
<a href="<?php echo $dl; ?>" data-cod="dl" data-id="<?php echo $value['id']; ?>" target="_blank"><span class="l_button"><?php echo $dlname; ?></span></a>
<?php endforeach; ?>
</div>
</div>
</div>
<?php endforeach; ?>
<?php else:?>
<div class="download-bg clearfix">No Software!</div>
<?php endif;?>
<?php if ($page) { echo $page; } ?>
<!--底部-->
{include file="include/bottom" /}
<script type="text/javascript">
$(function() {
//
$("#search-btn").bind("click", function(event) {
var skeyword = $("#search_input").val();
if (skeyword) {
var href = "<?php echo url('/usmobile/download'); ?>?skeyword=" + encodeURIComponent(skeyword);
location.href = href;
}
else{
var href = "<?php echo url('/usmobile/download'); ?>";
location.href = href;
}
});
$("#search_software").keyup(function(event) {
if (event && event.keyCode === 13) {
$("#search-btn").trigger("click");
}
});
});
</script>
</body></html>

View File

@@ -0,0 +1,91 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Software download_ORICO</title>
<meta name="Keywords" content="Software download">
<meta name="Description" content="Software download">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<style>
.clearfix:after {content: ".";display: block;height:0;clear:both; visibility:hidden; }
.clearfix {*zoom:1;}
.mobile-search { background:#004BFA;width:100%;padding:1rem 0 0.5rem;}
.download-title {font-size:28px; text-align: center; color:#333;margin:15px 0;}
.download-bg {background: #fff;border-radius:10px; margin:8px 25px;box-shadow: 0px 2px 40px 0px #E6EAF4;-moz-box-shadow: 0px 2px 40px 0px #E6EAF4;-webkit-box-shadow:0px 2px 40px 0px #E6EAF4; padding:1.333rem;}
@media screen and (max-width: 375px) {
.download-left {width:60%;}
.download-right {width:100%; font-size:0.8rem;}
.down-btn {border:1px solid #009fdf; padding:5px; text-align: center; color:#009fdf; font-size: 0.8rem; margin:auto;border-radius: 15px; border-radius: 20px;padding:0.5rem 1rem}
}
.download-left img {width:100%;}
@media screen and (min-width: 376px) {
.download-left {width:30%; float: left;}
.download-right {width:65%; float: right; font-size: 0.64rem;}
.down-btn {border:1px solid #009fdf; padding:5px; text-align: center; color:#009fdf; font-size: 0.8rem; border-radius: 20px;margin:5px 0;padding:0.5rem 1rem}
}
.down-btn a { color:#009fdf;}
.down-gray {color:#666; margin: 5px 0;}
</style>
</head>
<body>
<!--头部-->
{include file="include/top" /}
<!--search-->
<div class="margin-45"></div>
<div class="menu mobile-search margin-top-90">
<div class="search">
<!-- <a href="__ORICOROOT__/search">-->
<form action="__ORICOROOT__/group/download" method="get">
<div class="search margin-bottom-30">
<button class="updown_search_btn" type="sumbit" id="bnt_email"><span class="icon-search-svg"></span></button>
<input class="form-control" name="keywords" placeholder="search" value="{$keywords}" type="text">
</div>
</form>
<!-- </a> -->
</div>
</div>
<!--Software download-->
<div class="download-title">Software download</div>
<!--循环-->
<?php foreach ($downloads as $key => $value): ?>
<div class="download-bg clearfix">
<div class="download-left"><img src="<?php echo $value['picture']; ?>"></div>
<div class="download-right">
<div class="font-48"> <?php echo $value['name']; ?></div>
<div class="down-gray">
<p>Supported Models: <?php echo $value['app_model']; ?></p>
<p>Supported Systems: <?php echo $value['support_os']; ?></p>
</div>
<div class="down-btn"><a href="<?php echo $value['downloadpath']; ?>"><?php echo $value['downloadpath64']; ?></a></div>
</div>
</div>
<?php endforeach; ?>
<!-- <div class="download-bg clearfix">-->
<!-- <div class="download-left"><img src="__PUBLIC__/m_web/images/download/download-img_03.jpg"></div>-->
<!-- <div class="download-right">-->
<!-- <div class="font-48"> ORICO BA2110 Backupper APP</div> -->
<!-- <div class="down-gray">-->
<!-- <p>Supported Models: BA2110</p>-->
<!-- <p>Supported Systems: Android/iOS</p>-->
<!-- </div>-->
<!---->
<!-- -->
<!-- <div class="down-btn"><a href="http://file.oricogroup.com/BA2110.rar">Software download</a></div>-->
<!-- -->
<!-- </div>-->
<!-- </div>-->
<!--底部-->
{include file="include/bottom" /}
</body></html>

BIN
app/usmobile/view/group.rar Executable file

Binary file not shown.

View File

@@ -0,0 +1,181 @@
<!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__/m_web/css/subject/charger.css">
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner position_r img-responsives margin-top-90">
<img src="__PUBLIC__/m_web/images/charger/charger_banner.jpg">
<div class="charger charger_banner text_white">
<p class="big_title">Travel Partner</p>
<p class="des margin-top-10">A good journey starts </br>from a good power bank</p>
</div>
</div>
<!--第二屏-->
<div class="m_Container text_black text_center">
<div class="title margin-top-50">Light & Thin
、Fast & Powerful</div>
<div class="des margin-top-10 line-height-40">
<p>As a strong backing of mobile phone, bank is becoming more and more important.</p>
<p>Thin and light, large capacity and fast charging, bring you a burden-free trip.
</p>
</div>
<video controls poster="__PUBLIC__/web/images/charger/charger_02_video.jpg" class="margin-top-14">
<source src="__PUBLIC__/web/images/charger/ORICO-K10P20P.mp4" type="video/mp4" />
您的浏览器不支持 video 标签。
Your browser does not support HTML5 video.
</video>
</div>
<!--第三屏-->
<div class="m_Container img-responsives text_black">
<ul class="list_two">
<li class="position_r">
<img src="__PUBLIC__/m_web/images/charger/charger_three_01.jpg">
<div class="special_title">ORICO FIREFLY-YC10</div>
<div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=581989383065" class="buy_margin" target="_blank">Amazon</a>
<a href="https://item.jd.com/36818723893.html" target="_blank">AliExpress</a>
</div>
</li>
<li class="position_r">
<img src="__PUBLIC__/m_web/images/charger/charger_three_02.jpg">
<div class="special_title">ORICO FIREFLY-M10</div>
<div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=581626046679" class="buy_margin" target="_blank">Amazon</a>
<a href="https://item.jd.com/36419513320.html" target="_blank">AliExpress</a>
</div>
</li>
<li class="position_r">
<img src="__PUBLIC__/m_web/images/charger/charger_three_03.jpg">
<div class="special_title">ORICO FIREFLY-W10000</div>
<div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=579053338659" class="buy_margin" target="_blank">Amazon</a>
<a href="https://item.jd.com/34136415732.html" target="_blank">AliExpress</a>
</div>
</li>
<li class="position_r">
<img src="__PUBLIC__/m_web/images/charger/charger_three_04.jpg">
<div class="special_title">ORICO FIREFLY-S5</div>
<div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=578664375404" class="buy_margin" target="_blank">Amazon</a>
<a href="https://item.jd.com/33748667556.html" target="_blank">AliExpress</a>
</div>
</li>
</ul>
</div>
<!--第四屏-->
<div class="banner position_r img-responsives margin-top-20">
<img src="__PUBLIC__/m_web/images/charger/charger_04.jpg">
<div class="charger charger_banner text_white">
<p class="big_title line-height-45">Firefly Series</p>
<p class="des margin-top-10">Light up the dark</p>
</div>
</div>
<!--第五屏-->
<div class="m_Container img-responsives text_black">
<ul class="list_two margin-top-10">
<li class="position_r">
<img src="__PUBLIC__/m_web/images/charger/charger_five_01.jpg">
<div class="special_title">ORICO FIREFLY-K10000</div>
<div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=564324743677" class="buy_margin" target="_blank">Amazon</a>
<a href="https://item.jd.com/27427030780.html" target="_blank">AliExpress</a>
</div>
</li>
<li class="position_r">
<img src="__PUBLIC__/m_web/images/charger/charger_five_02.jpg">
<div class="special_title">ORICO FIREFLY-C20</div>
<div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=582121176718" class="buy_margin" target="_blank">Amazon</a>
<a href="https://item.jd.com/37256217725.html" target="_blank">AliExpress</a>
</div>
</li>
<li class="position_r">
<img src="__PUBLIC__/m_web/images/charger/charger_five_03.jpg">
<div class="special_title">ORICO FIREFLY-M6</div>
<div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=581626046679" class="buy_margin" target="_blank">Amazon</a>
<a href="https://item.jd.com/36404611548.html" target="_blank">AliExpress</a>
</div>
</li>
<li class="position_r">
<img src="__PUBLIC__/m_web/images/charger/charger_five_04.jpg">
<div class="special_title">ORICO FIREFLY-C10</div>
<div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=582121176718" class="buy_margin" target="_blank">Amazon</a>
<a href="https://item.jd.com/37256217724.html" target="_blank">AliExpress</a>
</div>
</li>
</ul>
<ul class="list_one">
<li>
<img src="__PUBLIC__/m_web/images/charger/charger_five_05.jpg">
<div class="special_text">
<div class="title">Firefly series large capacity </br>ultrathin power bank</div>
<div class="subtitle margin-top-14">ORICO FIREFLY-K10S</div>
<div class="buy_button des margin-top-40">
<a href="https://detail.tmall.com/item.htm?id=584178569065" class="buy_margin" target="_blank">Amazon</a>
<a href="https://item.jd.com/39884105206.html" target="_blank">AliExpress</a>
</div>
</div>
</li>
</div>
<!--第六屏-->
<div class="banner position_r img-responsives margin-top-20">
<img src="__PUBLIC__/m_web/images/charger/charger_06.jpg">
<div class="charger charger_06 text_white">
<p class="big_title line-height-45">Power Bank + Wireless Charger
<br>Two-in-One</p>
<p class="des margin-top-10">Break through tech and tradition</p>
</div>
</div>
<!--第七屏-->
<div class="banner position_r img-responsives margin-top-20">
<img src="__PUBLIC__/m_web/images/charger/charger_07.jpg">
<div class="charger charger_07 text_white">
<p class="big_title line-height-45">Multiple Quick Charge Modes<br>Freely Switch</p>
<p class="des margin-top-10">Support PD3.0/QC3.0 and other quick charge protocols.</p>
</div>
</div>
<!--第八屏-->
<div class="m_Container img-responsives text_black">
<ul class="list_two margin-top-10">
<li class="position_r">
<img src="__PUBLIC__/m_web/images/charger/charger_three_01.jpg">
<div class="special_title">ORICO FIREFLY-K10000</div>
<div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=564324743677" class="buy_margin" target="_blank">Amazon</a>
<a href="https://item.jd.com/27427030780.html" target="_blank">AliExpress</a>
</div>
</li>
<li class="position_r">
<img src="__PUBLIC__/m_web/images/charger/charger_three_02.jpg">
<div class="special_title">ORICO FIREFLY-C20</div>
<div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=582121176718" class="buy_margin" target="_blank">Amazon</a>
<a href="https://item.jd.com/37256217725.html" target="_blank">AliExpress</a>
</div>
</li>
</ul>
</div>
<br class="bottom-margin">
<!--底部-->
{include file="include/bottom" /}
</div>
</body>
</html>

View File

@@ -0,0 +1,158 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Vision & Mission</title>
<meta name="keywords" content="">
<meta name="description" content="">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/subject/brand.css">
<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/Swiper/6.4.14/swiper-bundle.min.js"></script>
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--内容-->
<div class="margin-25"></div>
<div class="m_ach">
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/brand/achievement_banner.jpg"></div>
<div class="title">Our Achievement</div>
<div class="list-num clearfix">
<ul>
<li>
<h4>4000+</h4>
<p>Daily Order</p>
</li>
<li>
<h4>800+</h4>
<p>Product R & D patent</p>
</li>
<li>
<h4>100+</h4>
<p>Countries and <br>Regions</p>
</li>
<li>
<h4>20+</h4>
<p>International <br>Design Award</p>
</li>
</ul>
</div>
</div>
<!--时间轴-->
<div class="m_ach-b"><div class="title">Brand Events</div></div>
<div class="contain">
<!-- 导航 -->
<div class="nav">
<div class="swiper-container gallery-thumbs">
<div class="swiper-wrapper">
<div class="swiper-slide">2021</div>
<div class="swiper-slide">2020</div>
<div class="swiper-slide">2019</div>
<div class="swiper-slide">2018</div>
<div class="swiper-slide">2017</div>
<div class="swiper-slide">2016</div>
<div class="swiper-slide">2015</div>
<div class="swiper-slide">2014</div>
<div class="swiper-slide">2013</div>
<div class="swiper-slide">2012</div>
<div class="swiper-slide">2011</div>
<div class="swiper-slide">2010</div>
<div class="swiper-slide">2009</div>
</div>
</div>
<!-- 切换按钮 -->
<div class="swiper-button-next swiper-button-white"><img src="__PUBLIC__/m_weben/images/ach-right.png"></div>
<div class="swiper-button-prev swiper-button-white"><img src="__PUBLIC__/m_weben/images/ach-left.png"></div>
</div>
<!-- 内容 -->
<div class="swiper-container gallery-top">
<div class="swiper-wrapper">
<div class="swiper-slide info"><h5>2021</h5><p>Joined Xinchuang Alliance Industry Association and incubated subsidiary brand IAMAKER.</p></div>
<div class="swiper-slide info"><h5>2020</h5><p>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.</p></div>
<div class="swiper-slide info"><h5>2019</h5><p>Celebrated ORICOs 10th anniversary and incubated subsidiary brand Yottamaster. </p></div>
<div class="swiper-slide info"><h5>2018</h5><p>Listed on the Chinas top 30 cross-border e-commerce overseas brands in 2018 and started overall brand upgrade.</p></div>
<div class="swiper-slide info"><h5>2017</h5><p>New industrial chain incubation platform of ORICO Internet & Creativity Industrial Park was established officially.</p></div>
<div class="swiper-slide info"><h5>2016</h5><p>Quality Control Center was established by PICC IWS and Dongguan Quality Inspection while built up the strategic partner relationship with Fresco.</p></div>
<div class="swiper-slide info"><h5>2015</h5><p>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.</p></div>
<div class="swiper-slide info"><h5>2014</h5><p>Kept improving industrial chain and maintained high development speed with 6 factories.</p></div>
<div class="swiper-slide info"><h5>2013</h5><p>ORICO was awarded “National High-tech Enterprise” certification.</p></div>
<div class="swiper-slide info"><h5>2012</h5><p>Started to develop self-industrial chain and optimize packaging, injection molding technologies. Products entered into global markets covering America, Spain, Britain, French and others.</p></div>
<div class="swiper-slide info"><h5>2011</h5><p>Developed offline channels in Thailand, Korea and Germany. Meanwhile the headquarter moved in Shenzhen Zhonghaixin Science & Technology Park.</p></div>
<div class="swiper-slide info"><h5>2010</h5><p>ORICO officially landed on Tmall, JD, Yixun, Newegg, Amazon, Suning, Gome and more mainstream e-commerce platforms, expanding online markets. </p></div>
<div class="swiper-slide info"><h5>2009</h5><p>ORICO was founded formally and first released the Tool Free drive enclosure.</p></div>
</div>
</div>
</div>
<!---->
<div class="m_ch">
<div class="m_ach-b"><div class="chtitle">Tech Development</div></div>
<div class="ach-bg">
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/brand/ach-img01.jpg"></div>
<div class="m_ch-title text_left margin-top-50"><img src="__PUBLIC__/m_weben/images/brand/ach-icon.png">2011</div>
<div class="m_ch-con text_gray text_left line-height-40 margin-top-40">“Tool free” design promoted innovation of HDD enclosure installation. Joined SATA-IO Association to ensure high interoperability of SATA series products.</div>
</div>
<div class="ach-bg">
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/brand/ach-img02.jpg"></div>
<div class="m_ch-title text_left margin-top-50"><img src="__PUBLIC__/m_weben/images/brand/ach-icon.png">2013</div>
<div class="m_ch-con text_gray text_left line-height-40 margin-top-40">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.</div>
</div>
<div class="ach-bg">
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/brand/ach-img03.jpg"></div>
<div class="m_ch-title text_left margin-top-50"><img src="__PUBLIC__/m_weben/images/brand/ach-icon.png">2014</div>
<div class="m_ch-con text_gray text_left line-height-40 margin-top-40">Successfully developed intelligent digital power strip and launched JD crowdfunding in 2015 with satisfying result.</div>
</div>
<div class="ach-bg">
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/brand/ach-img04.jpg"></div>
<div class="m_ch-title text_left margin-top-50"><img src="__PUBLIC__/m_weben/images/brand/ach-icon.png">2015</div>
<div class="m_ch-con text_gray text_left line-height-40 margin-top-40">Started to research data transmission and power transmission technology including Type-C, USB2.0, USB3.0, etc.</div>
</div>
<div class="ach-bg">
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/brand/ach-img05.jpg"></div>
<div class="m_ch-title text_left margin-top-50"><img src="__PUBLIC__/m_weben/images/brand/ach-icon.png">2016</div>
<div class="m_ch-con text_gray text_left line-height-40 margin-top-40">Companys representative product-the transparent enclosure series appeared in market.</div>
</div>
<div class="ach-bg">
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/brand/ach-img06.jpg"></div>
<div class="m_ch-title text_left margin-top-50"><img src="__PUBLIC__/m_weben/images/brand/ach-icon.png">2021</div>
<div class="m_ch-con text_gray text_left line-height-40 margin-top-40">Cooperated with Toshiba to further explore personal storage solutions including personal cloud storage, mobile backuper etc.</div>
</div>
</div>
<!--底部-->
{include file="include/bottom" /}
</div>
<script>
var galleryThumbs = new Swiper('.gallery-thumbs', {
spaceBetween: 10,
slidesPerView: 5,
freeMode: true,
watchSlidesVisibility: true,
watchSlidesProgress: true
})
var galleryTop = new Swiper('.gallery-top', {
spaceBetween: 10,
thumbs: {
swiper: galleryThumbs
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev'
}
})
</script>
</body>
</html>

View File

@@ -0,0 +1,51 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Easy Your Backup</title>
<meta name="Keywords" content=""/>
<meta name="Description" content=""/>
{include file="include/head" /}
<style>
.img-responsive img {width:100%;}
#content {padding-top:2rem;}
.backup-rela {position: relative;}
.backup-also {position: absolute;bottom: 0;}
.backup-btn {position: absolute;right: 5.5rem;bottom: 2rem;width: 4rem;}
</style>
<body οnlοad="openwin()">
<div id="content">
<!--top-->
{include file="include/top" /}
<!--top End-->
<div class="img-responsive">
<a href="https://www.kickstarter.com/projects/1724263521/orico-backuper-easy-your-backup-for-phone?ref=creator_nav" target="_blank"><img src="__PUBLIC__/m_weben/images/backup/banner-01.png"></a>
<div class="backup-rela">
<img src="__PUBLIC__/m_weben/images/backup/backup-02.png">
<div class="backup-also">
<video controls class="margin-top-14">
<source src="__PUBLIC__/m_weben/images/backup/backup-vedio.mp4" type="video/mp4" />
您的浏览器不支持 video 标签。
Your browser does not support HTML5 video.
</video>
</div>
</div>
<img src="__PUBLIC__/m_weben/images/backup/backup-03.png">
<img src="__PUBLIC__/m_weben/images/backup/backup-04.png">
<img src="__PUBLIC__/m_weben/images/backup/backup-05.png">
<img src="__PUBLIC__/m_weben/images/backup/backup-06.png">
<img src="__PUBLIC__/m_weben/images/backup/backup-07.png">
<img src="__PUBLIC__/m_weben/images/backup/backup-08.png">
</div>
<!-- bottom -->
{include file="include/bottom" /}
<!-- bottom e -->
</div>
</body>
</html>

View File

@@ -0,0 +1,81 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Brand Story_ORICO</title>
<meta name="keywords" content="Brand Story">
<meta name="description" content="Backuper">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<style>
.width_screen{width:100%; display: block; position: relative; bottom:0;}
.width_screen img{width:100%; display: block;}
.text_img{position: absolute; top:0; left:0}
.text_img img{width:100%;}
.text{position: absolute; width:100%; top:13.5em; left:0; z-index: 1;}
.text_content{width:7.5em; margin:auto;}
.text_content input{border-radius: 10vw; border:0; width:92%; padding-left:4%; padding-right: 4%; line-height:1.4em; background-color:#b2cdec; font-size: 0.75em; color:#262626;}
.text_content button{background-color:#edd614; border-radius: 10vw; width:100%; border:0; color:#202020; cursor: pointer; line-height:1.4em; margin-top:0.54em; font-size: 0.75em;}
.email_text{font-size: 0.75em; width:90%; margin:5% auto; color:#333; line-height: 1.8em;}
.email_text p{margin-top:1em; margin-bottom: 1em;}
</style>
</head>
<body>
<div class="width_screen">
<img src="__PUBLIC__/m_weben/images/backuper/background.jpg">
</div>
<div class="text_img">
<img src="__PUBLIC__/m_weben/images/backuper/text.png">
</div>
<div class="text">
<div class="text_content">
<from action="" method="post" id="form1">
<input placeholder="Email" name="email" type="text" class="email">
<button onclick="submit()">Signup Now!</button>
</from>
</div>
</div>
<div class="email_text">
<p>Terms and Conditions:</p>
-This campaign is open to the following countries: United States, Canada, Russia, Ukraine, Kazakhstan, France, Sweden, Belgium, Luxembourg, Poland, Netherlands, Portugal, Finland, United Kingdom, Germany, Italy, Spain, Australia, Vietnam, Japan, South Korea, Czech Republic, Ireland, Hungary, Denmark, Croatia, Greece, Malta, Slovenia, Lithuania, Cyprus, Latvia, Estonia, Slovakia, Austria, Pakistan, Myanmar, Philippines, Thailand, Malaysia, Indonesia.<br>
-By submitting your email to receive marketing messages from ORICO.<br>
-ORICO reserves the right of final explanation.
</div>
<script>
function placeholderPic(){
var w = document.documentElement.offsetWidth;
if(w>750){
document.documentElement.style.fontSize=750/20+'px';
}else{
document.documentElement.style.fontSize=w/20+'px';
}
}
placeholderPic();
window.onresize=function(){
placeholderPic();
};
//提交订单
function submit(){
var email = $(".email").val();
$.ajax({
url: "http://www.orico.cc/us/email/index", // 提交到controller的url路径
type: "post", // 提交方式
data: {"email": email}, // data为String类型必须为 Key/Value 格式。
dataType: "json", // 服务器端返回的数据类型
success: function (data) { // 请求成功后的回调函数其中的参数data为controller返回的map,也就是说,@ResponseBody将返回的map转化为JSON格式的数据然后通过data这个参数取JSON数据中的值
if (data.code == 200) {
alert(data.msg);
} else if(data.code = 404){
alert(data.msg);
}else if(data.code=500){
alert(data.msg);
}
},
});
};
</script>
</body></html>

View File

@@ -0,0 +1,87 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Brand Story_ORICO</title>
<meta name="keywords" content="Brand Story">
<meta name="description" content="ORICO was founded in 2009, which is innovative high-tech enterprise rooted in R & D of intelligent digital peripherals.">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/subject/brand.css">
</head>
<body style="background-color:#FFF;">
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="margin-45"></div>
<div class="video-right img-responsive">
<img src="__PUBLIC__/m_weben/images/brand-banner.jpg">
<!-- <video controls="controls" autoplay="autoplay" src="__PUBLIC__/m_weben/images/home-video.mp4" type="video/mp4">
</video>
<div id="poster" class="prism-big-play-btn" onclick="play()">
<img src="__PUBLIC__/m_weben/images/video-icon.png">
</div> -->
</div>
<div class="m_brand">
<div class="brand_title text_left">Our Story</div>
<div class="brand-con text_gray text_left line-height-40 margin-top-40">
<p>ORICO was founded in 2009, which is innovative high-tech enterprise rooted in R & D of intelligent digital peripherals.</p>
<p>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>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="img-responsive">
<img src="__PUBLIC__/m_weben/images/brand/brand-01.jpg">
</div>
<div class="brand_title text_left">Our Mission</div>
<div class="brand-con text_gray text_left line-height-40 margin-top-40">
<p>Orico focuses on the field of storage and transmission of data and power. With its diversified product portfolio, the company meets the needs of consumers while allowing them to experience the changes and convenience brought by technology.</p>
<p>Orico continues to create new products, lead new market categories, and reshape the global consumption patterns of data access products. In the future, Orico will rely on NAS, Docking 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>
<p>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="img-responsive ">
<img src="__PUBLIC__/m_weben/images/brand/brand-02.jpg">
</div>
<div class="img-responsive text-center margin-4">
<img src="__PUBLIC__/m_weben/images/brand/brand-icon01.png">
</div>
<div class="vision-title text_center margin-top-50">Sell well for <?php echo (date("Y")-2009);?> years worldwide</div>
<div class="brand-con text_gray text_center line-height-40 margin-top-40">
Since the establishment of ORICO, it has opened up domestic and overseas offline channels in many countries around the world for <?php echo (date("Y")-2009);?> 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.
</div>
<div class="img-responsive text-center margin-4">
<img src="__PUBLIC__/m_weben/images/brand/brand-icon02.png">
</div>
<div class="vision-title text_center margin-top-50">Superior R&D Team</div>
<div class="brand-con text_gray text_center line-height-40 margin-top-40">
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.
</div>
<div class="img-responsive text-center margin-4">
<img src="__PUBLIC__/m_weben/images/brand/brand-icon03.png">
</div>
<div class="vision-title text_center margin-top-50">Annual production capacity over 4B.</div>
<div class="brand-con text_gray text_center line-height-40 margin-top-40">
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
</div>
</div>
<!--底部-->
{include file="include/bottom" /}
</div>
<script>
var video = document.getElementById("video");
function play(){
document.getElementById("poster").style.display = "none";
video.play();
}
</script>
</body></html>

View File

@@ -0,0 +1,292 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Honors and Certificates</title>
<meta name="keywords" content="Honors and Certificates, ORICO">
<meta name="description" content="ORICO is a brand that is deeply rooted in the exploration and application of USB technology. It has achieved remarkable results in fields of USB storage, charging and transmission for many years.">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<!--link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/subject/honor.css"-->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/app.css?v={:time()}">
</head>
<body style="background-color:#FFF;">
<div id="content">
<!--头部-->
{include file="include/top" /}
<div class="bdpage" style="background: #fff;border-radius: 8px;padding-top: 50px;">
<div class="bd_main bd_main1 bd_main2" >
<h1 class="t1 sfbt1">Bulk Buy</h1>
<!--内容-->
<div class="bd_ct ">
<div class="bd_from" style="padding: 0 16px;">
<div class="theit">
<div class="bditem">
<label class="itlable">Company Name<span class="redtag">*</span></label>
<input type="text" class="form-control itinp companyName" placeholder="Legal business name">
</div>
</div>
<div class="theit">
<div class="bditem">
<label class="itlable">Official website</label>
<input type="text" class="form-control itinp url" placeholder="Please paste the URL">
</div>
</div>
<div class="theit">
<div class="bditem">
<label class="itlable">Your Name<span class="redtag">*</span></label>
<input type="text" class="form-control itinp firstname" placeholder="First name">
<input type="text" class="form-control itinp lastname" placeholder="Last name" style="margin-top: 8px;">
</div>
</div>
<div class="theit">
<div class="bditem">
<label class="itlable">Email<span class="redtag">*</span></label>
<input type="text" class="form-control itinp email">
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">Phone Numbe</label>
<input type="text" class="form-control itinp phone">
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">Products you are interested in?</label>
<div class="sfbchecks">
<form class="sfbcheckboxlist" action="" method="get">
<label class="cit">
<input name="interested" type="checkbox" value="Computer Peripheral" class="sfbcheckboxit">Computer Peripheral
</label>
<label class="cit">
<input type="checkbox" value="Phone Peripheral" name="interested" class="sfbcheckboxit">Phone Peripheral</label>
<label class="cit">
<input type="checkbox" value="Electronics" name="interested" class="sfbcheckboxit">Electronics
</label>
<label class="cit">
<input type="checkbox" value="SSD" name="interested" class="sfbcheckboxit">SSD
</label>
<label class="cit">
<input type="checkbox" value="Entertainment Series" name="interested" class="sfbcheckboxit">Entertainment Series
</label>
<label class="cit">
<input type="checkbox" value="Smart Life Series" name="interested" class="sfbcheckboxit">Smart Life Series
</label>
<label class="cit">
<input type="checkbox" value="Outdoor Power Station" name="interested" class="sfbcheckboxit">Outdoor Power Station
</label>
</form>
</div>
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">Message<span class="redtag">*</span></label>
<textarea class="ittextarea ittextarea2 message" placeholder="Methods used"></textarea>
</div>
</div>
</div>
</div>
<!-- 提交-->
<div class="bttj">SUBMIT</div>
</div>
</div>
<!-- 详情页 e -->
</div>
<script>
$(function() {
// 输入框失去焦点
$('.companyName').blur(function(){
if($('.companyName').val() != ''){
$('.companyName').removeClass('error');
$('.companyName').next('span').addClass('hide');
}else{
$('.companyName').addClass('error');
$('.companyName').next('span').removeClass('hide');
}
})
$('.firstname').blur(function(){
if($('.firstname').val() != ''){
$('.firstname').removeClass('error');
$('.firstname').next('span').addClass('hide');
}else{
$('.firstname').addClass('error');
$('.firstname').next('span').removeClass('hide');
}
})
$('.lastname').blur(function(){
if($('.lastname').val() != ''){
$('.lastname').removeClass('error');
$('.lastname').next('span').addClass('hide');
}else{
$('.lastname').addClass('error');
$('.lastname').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 = $('.firstname').val();
var lastName = $('.lastname').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 == ''){
$('.firstname').addClass('error');
$('.firstname').next('span').removeClass('hide');
}else{
$('.firstname').removeClass('error');
$('.firstname').next('span').addClass('hide');
}
if(lastName == ''){
$('.lastname').addClass('error');
$('.lastname').next('span').removeClass('hide');
}else{
$('.lastname').removeClass('error');
$('.lastname').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: "/usmobile/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("Add Success!");
$("input[ type='text']").val('');
$(":input[name='interested']").attr("checked",false);
$('.message').val('');
$('.phone').val('');
$('#email').val('');
$('.firstname').val('');
$('.lastname').val('');
$('.companyName').val('');
//location.href = '/usmobile/Group/submission.html';
}
else{
if(data.code == 403 || data.code == 201) {
alert(data.msg);
}
else{
$('.email').addClass('error');
$('.email').next('span').removeClass('hide');
}
}
}
});
}
})
})
$(function (doc, win) {
var docEl = doc.documentElement;
resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize';
recalc = function () {
var clientWidth = docEl.clientWidth;
if (!clientWidth) return;
docEl.style.fontSize = 50 * (clientWidth / 375) + 'px';
};
if (!doc.addEventListener) return;
win.addEventListener(resizeEvt, recalc, false);
doc.addEventListener('DOMContentLoaded', recalc, false);
}(document,window));
</script>
<!--底部-->
{include file="include/bottom" /}
</body>
</html>

View File

@@ -0,0 +1,162 @@
<!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__/m_weben/css/subject/contact.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/montserrat.css">
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner img-responsives margin-top-90">
<img src="__PUBLIC__/m_weben/images/contact/contact_banner.png">
</div>
<!--我们的信息-->
<div class="content">
<div class="title">Our Information</div>
<div class="info">
<div class="left"><img src="__PUBLIC__/m_weben/images/contact/address.png"></div>
<div class="right">
<div class="des">19/F, Block 14A, Zhonghaixin Science & Technology Park, Longgang District, Shenzhen, China.
</div>
</div>
</div>
<div class="line"></div>
<div class="info">
<div class="left"><img src="__PUBLIC__/m_weben/images/contact/email.png"></div>
<div class="right">
<div class="info_title">Customer Service:</div>
<div class="des"><?php echo $website_email;?></div>
<div class="info_title m-t-20">Dealer Inquiry:</div>
<div class="des">oversea-bu@orico.com.cn</div>
</div>
</div>
<div class="line"></div>
<div class="info">
<div class="left"><img src="__PUBLIC__/m_weben/images/contact/time.png"></div>
<div class="right">
<div class="info_title">Mon - Fri:</div>
<div class="des">9AM-6PM EST</div>
</div>
</div>
</div>
<!--question-->
<div class="content">
<div class="title">Send Us Your Question</div>
<div class="question">
<div class="title">Your name <span class="red">*</span></div>
<div class="des">
<input type="text" name="name" id="name" placeholder="This is your placeholder text" class="form-control itinp"/>
</div>
</div>
<div class="question">
<div class="title">Your email <span class="red">*</span></div>
<div class="des">
<input type="text" name="email" id="email" placeholder="This is your placeholder text" class="form-control itinp"/>
</div>
</div>
<div class="question">
<div class="title">Your Message <span class="red">*</span></div>
<div class="des">
<textarea rows="6" name="message" id="message" class="ittextarea message" placeholder="This is your placeholder text"></textarea>
</div>
</div>
<div class="question">
<span class="send">SEND</span>
</div>
</div>
<!--Become a Distributor-->
<div class="contact_b"><a href="__ORICOROOT__/group/distributor">Become a Distributor</a></div>
{include file="include/bottom" /}
</div>
<script>
// 提交表单
$('.send').click(function() {
var name = $('#name').val();
var email = $('#email').val();
var message = $('#message').val();
if (name == '') {
$('#name').addClass('error');
$('#name').next('span').removeClass('hide');
}else{
$('#name').removeClass('error');
$('#name').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 (email && message) {
var type = 'Agent';
$.ajax({
type: "POST",
url: "/us/bulk/create",
data: {
'name': name,
'email': email,
'message': message
},
dataType: "json",
success: function(data) {
if (data.code == 200) {
alert("Add Sucess!");
$(".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>
</body>
</html>

View File

@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Culture & Values</title>
<meta name="keywords" content="">
<meta name="description" content="ORICO insists “Four in One” company value, including these four aspects: Satisfy demands of customers, help staffs realize individual value, dont betray investors expectation and trust, undertake social responsibility">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/culture.css">
</head>
<body style="background-color:#FFF;">
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner img-responsives margin-top-90">
<img src="__PUBLIC__/m_weben/images/culture/culture_banner.jpg">
</div>
<!--文化与价值观-->
<div class="m_Container">
<div class="title text_center margin-top-50"><b>Culture & Values</b></div>
<div class="des text_gray text_center line-height-40 margin-top-30">ORICO insists “Four in One” company value, including these four aspects: Satisfy demands of customers, help staffs realize individual value, dont betray investors expectation and trust, undertake social responsibility. Following is detailed explanation: </div>
<!--内容-->
<div class="subtitle text_center margin-top-20"><strong>Satisfy customers</strong></div>
<div class="des text_gray text_center line-height-40 margin-top-14">Create value for customers oriented by their essential demands. Change unreasonable life situations and supply proper solutions. Choose to innovate continuously and provide high-quality products. Optimize and reduce cost constantly. </div>
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/culture/culture_01.jpg"></div>
<div class="subtitle text_center margin-top-30"><strong>Satisfy staffs</strong></div>
<div class="des text_gray text_center line-height-40 margin-top-14">Responsible for the growth of employees and the realization of their values and dreams, establish a platform and mechanism that is fair and reasonable, with clear rewards and punishments, and make the best use of their talents; motivate their sense of ownership in their posts to actively pursue and build themselves, and strive for self-reliance and better life.</div>
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/culture/culture_02.jpg"></div>
<div class="subtitle text_center margin-top-30"><strong>Social responsibility</strong></div>
<div class="des text_gray text_center line-height-40 margin-top-14">Making contribution for the development of society, whether it is engaged in products or the spirit of doing things, we must play a positive role, obey the law and protect the environment, respect the party and love our country, resist the unhealthy trend, and respect the interests of partners.</div>
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/culture/culture_03.jpg"></div>
</div>
<!--成就投资人心愿-->
<div class="m_Container">
<div class="title text_center margin-top-50"><strong>Satisfy investors</strong></div>
<div class="des text_gray text_left line-height-40 margin-top-30">
Create social value together and obtain relevant reasonable return. Invest to innovation of companies and make preparations for any risks. There are 6 words in ORICO “Innovation, Perfection, Dignity, Big Love, Health, Happiness”. <br>
“Innovation”: Accumulate steadily, the core competence of the corporation; “Perfection”: Be persistent, the power resource of exploration and breakthrough;</br>
“Dignity”: Build an honest partnership, treasure superior talents;</br>
“Big Love”: Self-discipline and social commitment, selfless dedication to future purposes;</br>
“Health”: Keep lively forever, the solid foundation of booming development;</br>
“Happiness”: Be peaceful and happy, create happy cultural atmosphere.</br>
Every word is a kind of spirit every staff advocates in our company. Its also an optimal atmosphere company hopes to create for our staffs.
</div>
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/culture/culture_04.jpg"></div>
</div>
<br class="bottom-margin">
<!--底部-->
{include file="include/bottom" /}
</div>
</body>
</html>

View File

@@ -0,0 +1,144 @@
<!DOCTYPE html>
<html lang="en">
<head>
{include file="include/head" /}
<meta charset="UTF-8">
<title>10 Years of Innovative R&D</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/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 style="background:#fff;">
<!--top-->
{include file="include/top" /}
<!--top End-->
<!--Banner-->
<div class="img-responsive margin-top-90"><img src="/uploads/default/banner-wap-EN-ten.jpg"></div>
<!--第二屏-->
<div class="ten_02_bg img-responsive">
<div class="ten_02">
<div class="swt-Container">
<div class="text_center ten_bg f-black f_weight_600 text_40 ten_pa_30">10 Years of Innovative R&D</div>
<div class="img-responsives"><img src="__PUBLIC__/m_weben/images/decennial/ten_02.jpg"></div>
</div>
</div>
</div>
<!--第三屏-->
<div class="img-responsive ten_three">
<div class="text_40 text_center f-black f_weight_600 ten_pa_30">10 Years of Company</div>
<div class="des text_center f-gray ten_pa_20 ten_pa_30">ORICO's ten years of development are full of challenges, but there are always such a group of people, they help, support and acompany us. Thanks to having you all the way.</div>
<div class="m_Container">
<video controls poster="__PUBLIC__/web/images/decennial/ten_03.jpg" height="100%">
<source src="__PUBLIC__/web/images/decennial/ten_video.mp4" type="video/mp4">
您的浏览器不支持 video 标签。
Your browser does not support HTML5 video.
</video>
</div>
<!--10年新起航-->
<div class="swt-Container">
<div class="text_40 text_center f-black f_weight_600 padding-t-48vw ten_pa_30">10 Years, A New Start</div>
<div class="des text_center f-gray ten_pa_20">The brand focuses on the development and production of USB technology peripheral products, including USB data transmission technology, Type-C technology application, USB power transmission technology, etc. Currently, the brand has laid out a new product line including backuper, Thunderbolt 3, SSD etc. in the future, these major sectors will also be the focus of the brand.</div>
<div class="img-responsive margin-t-15vw ten_pa_30"><img src="__PUBLIC__/web/images/decennial/ten04.jpg"></div>
</div>
<!--小改变 大不同-->
<div class="swt-Container">
<div class="text_40 text_center f-black f_weight_600 ten_pa_30">Little changebig difference</div>
<div class="des text_center f-gray ten_pa_20 ten_pa_30">The new brand concept is to explore and create a big difference in the way of accumulating small changes. To fully present the brand's future layout with the newly upgraded VI.</div>
<div class="img-responsive margin-t-15vw position-r">
<img src="__PUBLIC__/web/images/decennial/ten05.jpg">
<div class="text_16 position-r ten_four text_center f-black margin-b-30vw">
<ul>
<li>Computer Peripherals</li>
<li>Phone Peripherals</li>
<li>Electronics</li>
<li>Entertainment</li>
<li>Smart Life</li>
<li>Personal Care</li>
<li>High-end Gaming</li>
</ul>
</div>
</div>
</div>
<div class="ten_four_line"></div>
<!--第五屏-->
<!--第五屏-->
<div class="swt-Container">
<div class="text_40 text_center f-black f_weight_600 ten_pa_30">10th Anniversary Celebration Scene</div>
<!--拉开庆典序幕-->
<div class="text_28 text_center f-black f_weight_600">Celebration Starts</div>
<div class="des text_center f-gray ten_pa_20 ten_pa_30"> At the beginning of the whole celebration, the founder of the brand and the leader of Changping Town of Dongguan gave a speech and kicked off the celebration. They reviewed the brand's ten-year development and future planning and development direction together with thousands of people, including agents, suppliers, company employees and family members. </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="text_40 text_center f-black f_weight_600 ten_pa_30">Self-directed Show</div>
<div class="des text_center f-gray ten_pa_20">The relaxed and joyful songs and dances, sketches and stage plays are all fun, showing the vigorous spirit.</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="text_40 text_center f-black f_weight_600 ten_pa_30">Award-winning Agents, Suppliers</div>
<div class="des text_center f-gray ten_pa_20">The ten-year development is inseparable from the support of all partners. On the occasion of the 10th anniversary of ORICO, many partners at home and abroad have also been invited to participate, thanks to the support and guidance over the years.</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="text_40 text_center f-black f_weight_600 ten_pa_30">A Great Gathering</div>
<div class="des text_center f-gray ten_pa_20"> If we compare a ten-year development enterprise to a ship that sails on the sea, all of our ORICO people are like sailors on a ship, we facing storms together and enjoying sunshine together. Many ORICO people spent their best years with ORICO, and ushered in a new phase of life in ORICO.
</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="text_40 text_center f-black f_weight_600 ten_pa_30">Celebration Moments</div>
<ul class="ten_slider">
<li><img src="__PUBLIC__/web/images/decennial/ten10_one.jpg"></li>
<li><img src="__PUBLIC__/web/images/decennial/ten10_one.jpg"></li>
<li><img src="__PUBLIC__/web/images/decennial/ten10_one.jpg"></li>
</ul>
</div>
</div>
<!--第十一屏-->
<div class="swt-Container padding-b-3">
<div class="text_40 text_center f-black f_weight_600 margin-top-30 margin-bottom-30">10 Years Together, Thanks for Having You All the Way
</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,254 @@
<!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>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/app.css?v={:time()}">
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!-- 详情页 s -->
<div class="cooperapp_bdpage" style="background:#F2F2F2;">
<div class="cooperapp_bd_main" style=";margin-top50px">
<h1 class="cooperapp_t1">To Be Our Distributor</h1>
<p class="cooperapp_s1">Ready to join us?<br /> your details below and our Sales team will get back to you within 2
business days.</p>
<!--内容-->
<div class="bd_ct cooperapp_bd_ct">
<div class="thimg">
<img src="__PUBLIC__/m_weben/images/mcooperation/copperaapp_img1.png" alt="" srcset="" class="cooperapp_bdimg">
</div>
<div class="bd_from">
<div class="theit">
<div class="bditem">
<label class="itlable">Company Name<span class="redtag">*</span></label>
<input type="text" class="form-control itinp companyName" placeholder="Enter your first name">
</div>
</div>
<div class="theit">
<div class="bditem">
<label class="itlable">contact Email <span class="redtag">*</span></label>
<input type="text" class="form-control itinp email" placeholder="Enter your Email">
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">Phone Numbe<span class="redtag">*</span></label>
<input type="text" class="form-control itinp mphone"
placeholder="This is your placeholder text">
</div>
</div>
<div class="theit">
<div class="bditem">
<label class="itlable">Type of Business<span class="redtag">*</span></label>
<select name="business_type" data-pf-type="FormInput" class="form-control itinp business_type">
<option value="Online Store">Online Store</option>
<option value="Local Shop">Local Shop</option>
<option value="Both">Both</option></select>
</div>
</div>
<div class="theit">
<div class="bditem">
<label class="itlable">Online Shop URL</label>
<input type="text" class="form-control itinp url"
placeholder="This is your placeholder tex">
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">Enterprise size<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 Or Less</option>
<option value="10-50">10-50</option>
<option value="50-199">50-199</option>
<option value="200 Or More">200 Or More</option>
</select>
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">company Address<span class="redtag">*</span></label>
<input class="form-control itinp address" placeholder="Enter Address">
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">Message<span class="redtag">*</span></label>
<textarea class="ittextarea message" placeholder="Enter your message"></textarea>
</div>
</div>
</div>
</div>
<!-- 提交-->
<div class="bttj">SUBMIT</div>
</div>
</div>
<!-- 详情页 e -->
<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');
}
})
$('.mphone').blur(function(){
if($('.mphone').val() != ''){
$('.mphone').removeClass('error');
$('.mphone').next('span').addClass('hide');
}else{
$('.mphone').addClass('error');
$('.mphone').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');
}
})
// 提交表单
$('.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(phone == ''){
$('.mphone').addClass('error');
$('.mphone').next('span').removeClass('hide');
}else{
$('.mphone').removeClass('error');
$('.mphone').next('span').addClass('hide');
}
if(message == ''){
$('.message').addClass('error');
$('.message').next('span').removeClass('hide');
}else{
$('.message').removeClass('error');
$('.message').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(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 && phone && message && email && address) {
var type = 'Agent';
$.ajax({
type: "POST",
url: "/us/agents/create",
data: {'company':companyName, 'email':email, 'address':address,'business_type':business_type,'enterprise_size':enterprise_size,'phone':phone,'address':address,'message':message,'uri':$('.url').val(),'refer':k_win_ref},
dataType: "json",
success: function(data){
if(data.code == 200) {
alert('Add Success');
$("input[type='text']").val('');
$("input[type='email']").val('');
$('.address').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/bottom" /}
<!-- bottom e -->
</body>
</html>

View File

@@ -0,0 +1,84 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Software download_ORICO</title>
<meta name="Keywords" content="Software download">
<meta name="Description" content="Software download">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<style>
.clearfix:after {content: ".";display: block;height:0;clear:both; visibility:hidden; }
.clearfix {*zoom:1;}
.mobile-search { background:#004BFA;width:100%;padding:1rem 0 0.5rem;}
.download-title {font-size:28px; text-align: center; color:#333;margin:15px 0;}
.download-bg {background: #fff;border-radius:10px; margin:8px 25px;box-shadow: 0px 2px 40px 0px #E6EAF4;-moz-box-shadow: 0px 2px 40px 0px #E6EAF4;-webkit-box-shadow:0px 2px 40px 0px #E6EAF4; padding:1.333rem;}
.download-left {width:30%; float: left;}
.download-left img {width:100%;}
.download-right {width:65%; float: right; font-size: 0.64rem;}
.down-btn {border:2px solid #009fdf; padding:5px; text-align: center; color:009fdf; font-size: 0.64rem; width:4.26rem;margin:5px 0;}
.down-btn a { color:#009fdf;}
.down-btn a:hover {background:#009fdf; color:#fff;font-size: 0.64rem;}
.down-gray {color:#666; margin: 5px 0;}
</style>
</head>
<body>
<!--头部-->
{include file="include/top" /}
<!--search-->
<div class="margin-45"></div>
<div class="menu mobile-search margin-top-90">
<div class="search">
<!-- <a href="__ORICOROOT__/search">-->
<form action="__ORICOROOT__/group/download" method="get">
<div class="search margin-bottom-30">
<button class="updown_search_btn" type="sumbit" id="bnt_email"><span class="icon-search-svg"></span></button>
<input class="form-control" name="keywords" placeholder="search" value="{$keywords}" type="text">
</div>
</form>
<!-- </a> -->
</div>
</div>
<!--Software download-->
<div class="download-title">Software download</div>
<!--循环-->
<?php foreach ($downloads as $key => $value): ?>
<div class="download-bg clearfix">
<div class="download-left"><img src="<?php echo $value['picture']; ?>"></div>
<div class="download-right">
<div class="font-48"> <?php echo $value['name']; ?></div>
<div class="down-gray">
<p>Supported Models: <?php echo $value['app_model']; ?></p>
<p>Supported Systems: <?php echo $value['support_os']; ?></p>
</div>
<div class="down-btn"><a href="<?php echo $value['downloadpath']; ?>"><?php echo $value['downloadpath64']; ?></a></div>
</div>
</div>
<?php endforeach; ?>
<!-- <div class="download-bg clearfix">-->
<!-- <div class="download-left"><img src="__PUBLIC__/m_web/images/download/download-img_03.jpg"></div>-->
<!-- <div class="download-right">-->
<!-- <div class="font-48"> ORICO BA2110 Backupper APP</div> -->
<!-- <div class="down-gray">-->
<!-- <p>Supported Models: BA2110</p>-->
<!-- <p>Supported Systems: Android/iOS</p>-->
<!-- </div>-->
<!---->
<!-- -->
<!-- <div class="down-btn"><a href="http://file.oricogroup.com/BA2110.rar">Software download</a></div>-->
<!-- -->
<!-- </div>-->
<!-- </div>-->
<!--底部-->
{include file="include/bottom" /}
</body></html>

159
app/usmobile/view/group/fan.phtml Executable file
View File

@@ -0,0 +1,159 @@
<!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__/m_weben/css/subject/fan.css">
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner position_r img-responsives margin-top-90">
<img src="__PUBLIC__/m_web/images/fan/fan_banner.jpg">
<div class="fan fan_banner text_black">
<p class="big_title">Tidy Desktop, Lovely Life</p>
<p class="des margin-top-10">Summer Refreshing, Winter Moistening</p>
</div>
</div>
<!--第二屏-->
<div class="m_Container text_black text_center">
<div class="title margin-top-50">Life is Artistic</div>
<div class="subtitle margin-top-10">Explore USB technology
Create safer and easier tech life</div>
<div class="des margin-top-10 line-height-40">
<p>Delicate details manifest exquisite life. ORICO makes brand concept “Little Change, Big Difference” integrated into our life details during the development of Smart Life Peripherals, such as Mini Fan, Humidifier, etc.</p>
<p>The application of USB technology brings us great convenience for using some daily products like mini fan and humidifier. They can be normally used merely by connecting power adapter, power bank, laptop, car charger and more, unlocking a beautiful life.
</p>
</div>
<video controls poster="__PUBLIC__/web/images/Fan/Fan_02_video.jpg" class="margin-top-14">
<source src="__PUBLIC__/web/images/Fan/ORICO-FH1.mp4" type="video/mp4" />
您的浏览器不支持 video 标签。
Your browser does not support HTML5 video.
</video>
</div>
<!--第三屏-->
<div class="banner position_r img-responsives margin-top-20">
<img src="__PUBLIC__/m_web/images/fan/fan_01.jpg">
<div class="fan fan_03 text_black">
<p class="big_title line-height-45">Ultra-Quiet Humidifier, Perfect Companion
</p>
<p class="des margin-top-10">ORICO Premium Desktop Humidifier</p>
</div>
</div>
<!--第四屏-->
<div class="m_Container img-responsives text_black buy_life">
<ul class="fan_two_list">
<li class="position_r">
<img src="__PUBLIC__/m_web/images/fan/fan_list_01.jpg">
<div class="special_title">Quiet Desktop Humidifier
</div>
<div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=581911488508" class="buy_margin" target="_blank">Amazon</a>
<a href="https://item.jd.com/37196811272.html" target="_blank">AliExpress</a>
</div>
</li>
<li class="position_r">
<img src="__PUBLIC__/m_web/images/fan/fan_list_02.jpg">
<div class="special_title">Quiet Desktop Humidifier Max
</div>
<div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=581911488508" class="buy_margin" target="_blank">Amazon</a>
<a href="https://item.jd.com/37196811273.html" target="_blank">AliExpress</a>
</div>
</li>
</ul>
</div>
<!--第五屏-->
<div class="banner position_r img-responsives">
<img src="__PUBLIC__/m_web/images/fan/fan_02.jpg">
<div class="fan fan_06 text_black">
<p class="big_title">Whisper-Quiet Fan</p>
<p class="big_title">Cooling Summer</p>
<p class="des margin-top-20">Mini Desk Fan</p>
</div>
</div>
<!--第六屏-->
<div class="m_Container img-responsives text_black buy_life">
<ul class="fan_two_list">
<li class="position_r">
<img src="__PUBLIC__/m_web/images/fan/fan_list_03.jpg">
<div class="special_title">Mini Desk Fan</div>
<div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/870" target="_blank">More Details</a>
</div>
</li>
<li class="position_r">
<img src="__PUBLIC__/m_web/images/fan/fan_list_04.jpg">
<div class="special_title">Mini Portable Fan</div>
<div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/606" target="_blank">More Details</a>
</div>
</li>
<li class="position_r">
<img src="__PUBLIC__/m_web/images/fan/fan_list_05.jpg">
<div class="special_title">Mini USB Clip Fan</div>
<div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/221" target="_blank">More Details</a>
</div>
</li>
<li class="position_r">
<img src="__PUBLIC__/m_web/images/fan/fan_list_06.jpg">
<div class="special_title">USB Vertical Mini Fan</div>
<div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/952" target="_blank">More Details</a>
</div>
</li>
<li class="position_r">
<img src="__PUBLIC__/m_web/images/fan/fan_list_07.jpg">
<div class="special_title">LED Handheld Mini Fan</div>
<div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/993" target="_blank">More Details</a>
</div>
</li>
<li class="position_r">
<img src="__PUBLIC__/m_web/images/fan/fan_list_08.jpg">
<div class="special_title">Desktop USB mini fan</div>
<div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/892" target="_blank">More Details</a>
</div>
</li>
<li class="position_r">
<img src="__PUBLIC__/m_web/images/fan/fan_list_09.jpg">
<div class="special_title">USB Mini Desktop Fan</div>
<div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/953" target="_blank">More Details</a>
</div>
</li>
<li class="position_r">
<img src="__PUBLIC__/m_web/images/fan/fan_list_10.jpg">
<div class="special_title">Mini USB Humidifier Fan </div>
<div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/1025" target="_blank">More Details</a>
</div>
</li>
</ul>
</div>
<div class="m_Container text_center margin-top-35 text_black ">Stay tuned for our more USB smart life products…</div>
<br class="bottom-margin">
<!--底部-->
{include file="include/bottom" /}
</div>
</body>
</html>

View File

@@ -0,0 +1,73 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner img-responsives margin-top-90">
<img src="__PUBLIC__/m_web/images/faq/faq_banner.jpg">
</div>
<!--常见问题解答-->
<div class="m_Container">
<div class="title text_center margin-top-50 text_black"><strong>Frequently asked questions</strong></div>
<div class="img-responsives margin-top-40"><img src="__PUBLIC__/m_web/images/faq/faq_01.jpg"></div>
<div class="subtitle text_black text_center margin-top-30">How to use the offline copy function with the 6629US3?</div>
<div class="des text_gray line-height-40 margin-top-40">
<P>1. Connect 2 SATA hard drives, note that Source is the source disk, Target is the target disk (the capacity of the target disk should be larger than the source disk).</P>
<P>2. When offline copying, select Clone on the back the hard drive dock, which is clone mode. When Clone is not used, switch to PC mode directly.</P>
<P>3. Plug in the power and turn on the power switch.</P>
<P>4. After the above preparations are ready, press the START button twice, the percentage indicators will light back and forth at first, and indicators will all light up when copy finished.</P></div>
<div class="img-responsives margin-top-20"><img src="__PUBLIC__/m_web/images/faq/faq_02.jpg"></div>
<div class="subtitle text_black text_center margin-top-30">Unable to log in and enter the W150 router settings interface?</div>
<p class="des text_gray line-height-40 margin-top-10">Plug the router into the power socket and power on. Do not connect the network cable (remember), then search for the wireless network signal connected to "ORICO" on the mobile phone. After the connection is successful, open the browser to enter the IP address: 192.168.11, log in and access the home page and enter user name: admin, password: admin, then log in. </p>
<div class="img-responsives margin-top-20"><img src="__PUBLIC__/m_web/images/faq/faq_03.jpg"></div>
<div class="subtitle text_black text_center margin-top-30 line-height-40">Can I connect hub to TV to expand? Can it drive a hard drive without extra power supply?</div>
<p class="des text_gray text_center line-height-40 margin-top-10">Answer: At present, HUB is mainly used for the PC side. It has not yet been popularized in the TV category. Your TV should support it. There is no guarantee that all TVs will be recognized. Generally 2.5-inch hard disk is ok, because USB power supply is limited, if you are using a 3.5-inch hard disk, it is recommended that you buy a HUB with power adapter.</p>
<div class="img-responsives margin-top-20"><img src="__PUBLIC__/m_web/images/faq/faq_04.jpg"></div>
<div class="subtitle text_black text_center margin-top-30">Brands comparison </div>
<p class="des text_gray text_center line-height-40 margin-top-10">Answer: ORICO uses imported control chips, ICs, original devices, PCBA boards that are developed by ourselves, and all molds are ORICO. ORICO uses all SMD components, so the materials are completely different.</p>
<div class="img-responsives margin-top-20"><img src="__PUBLIC__/m_web/images/faq/faq_05.jpg"></div>
<div class="subtitle text_black text_center margin-top-30">How to set Raid mode?</div>
<p class="des text_gray text_left line-height-40 margin-top-10">
RAID setting method: (If the hard disk is not a new hard disk, please backup the data and then set up the RAID mode)<br>
1. Turn off the power button of device.</br>
2. Trigger the RAID mode switch on the back of the device, set the RAID mode that you wants;</br>
3. Press and hold the set button, turn on the power switch, release the SET button after 5 seconds;</br>
4. At the same time, the RAID manager software can be installed on the computer to manage the RAID function through software.</p>
<div class="img-responsives margin-top-20"><img src="__PUBLIC__/m_web/images/faq/faq_06.jpg"></div>
<div class="subtitle text_black text_center margin-top-30 line-height-40">After the new hard drive is connected to the computer, why can't I find the hard drive and drive letter?</div>
<p class="des text_gray text_center line-height-40 margin-top-10">Due to the limitations of the operating system, the Windows XP system can only support 2TB capacity hard disks. Hard disks larger than 2TB capacity cannot be supported and cannot be used normally. *Method of operation: First, right click on "Computer", then click "Manage", open into "Disk Management", find the new hard disk, right click "Initialize", select "MBR hard disk capacity is less than or equal to 2TB" or "GPT (greater than 2TB)" Then, "New Simple Volume", the default partition is formatted in the next step. After the formatting is completed, the hard disk can be used normally, and the newly added drive letter is displayed.</p>
</div>
<br class="bottom-margin">
<!--底部-->
{include file="include/bottom" /}
</div>
</body></html>

View File

@@ -0,0 +1,73 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner img-responsives margin-top-90">
<img src="__PUBLIC__/m_web/images/faq/faq_banner.jpg">
</div>
<!--常见问题解答-->
<div class="m_Container">
<div class="title text_center margin-top-50 text_black"><strong>Frequently asked questions</strong></div>
<div class="img-responsives margin-top-40"><img src="__PUBLIC__/m_web/images/faq/faq_01.jpg"></div>
<div class="subtitle text_black text_center margin-top-30">How to use the offline copy function with the 6629US3?</div>
<div class="des text_gray line-height-40 margin-top-40">
<P>1. Connect 2 SATA hard drives, note that Source is the source disk, Target is the target disk (the capacity of the target disk should be larger than the source disk).</P>
<P>2. When offline copying, select Clone on the back the hard drive dock, which is clone mode. When Clone is not used, switch to PC mode directly.</P>
<P>3. Plug in the power and turn on the power switch.</P>
<P>4. After the above preparations are ready, press the START button twice, the percentage indicators will light back and forth at first, and indicators will all light up when copy finished.</P></div>
<div class="img-responsives margin-top-20"><img src="__PUBLIC__/m_web/images/faq/faq_02.jpg"></div>
<div class="subtitle text_black text_center margin-top-30">Unable to log in and enter the W150 router settings interface?</div>
<p class="des text_gray line-height-40 margin-top-10">Plug the router into the power socket and power on. Do not connect the network cable (remember), then search for the wireless network signal connected to "ORICO" on the mobile phone. After the connection is successful, open the browser to enter the IP address: 192.168.11, log in and access the home page and enter user name: admin, password: admin, then log in. </p>
<div class="img-responsives margin-top-20"><img src="__PUBLIC__/m_web/images/faq/faq_03.jpg"></div>
<div class="subtitle text_black text_center margin-top-30 line-height-40">Can I connect hub to TV to expand? Can it drive a hard drive without extra power supply?</div>
<p class="des text_gray text_center line-height-40 margin-top-10">Answer: At present, HUB is mainly used for the PC side. It has not yet been popularized in the TV category. Your TV should support it. There is no guarantee that all TVs will be recognized. Generally 2.5-inch hard disk is ok, because USB power supply is limited, if you are using a 3.5-inch hard disk, it is recommended that you buy a HUB with power adapter.</p>
<div class="img-responsives margin-top-20"><img src="__PUBLIC__/m_web/images/faq/faq_04.jpg"></div>
<div class="subtitle text_black text_center margin-top-30">Brands comparison </div>
<p class="des text_gray text_center line-height-40 margin-top-10">Answer: ORICO uses imported control chips, ICs, original devices, PCBA boards that are developed by ourselves, and all molds are ORICO. ORICO uses all SMD components, so the materials are completely different.</p>
<div class="img-responsives margin-top-20"><img src="__PUBLIC__/m_web/images/faq/faq_05.jpg"></div>
<div class="subtitle text_black text_center margin-top-30">How to set Raid mode?</div>
<p class="des text_gray text_left line-height-40 margin-top-10">
RAID setting method: (If the hard disk is not a new hard disk, please backup the data and then set up the RAID mode)<br>
1. Turn off the power button of device.</br>
2. Trigger the RAID mode switch on the back of the device, set the RAID mode that you wants;</br>
3. Press and hold the set button, turn on the power switch, release the SET button after 5 seconds;</br>
4. At the same time, the RAID manager software can be installed on the computer to manage the RAID function through software.</p>
<div class="img-responsives margin-top-20"><img src="__PUBLIC__/m_web/images/faq/faq_06.jpg"></div>
<div class="subtitle text_black text_center margin-top-30 line-height-40">After the new hard drive is connected to the computer, why can't I find the hard drive and drive letter?</div>
<p class="des text_gray text_center line-height-40 margin-top-10">Due to the limitations of the operating system, the Windows XP system can only support 2TB capacity hard disks. Hard disks larger than 2TB capacity cannot be supported and cannot be used normally. *Method of operation: First, right click on "Computer", then click "Manage", open into "Disk Management", find the new hard disk, right click "Initialize", select "MBR hard disk capacity is less than or equal to 2TB" or "GPT (greater than 2TB)" Then, "New Simple Volume", the default partition is formatted in the next step. After the formatting is completed, the hard disk can be used normally, and the newly added drive letter is displayed.</p>
</div>
<br class="bottom-margin">
<!--底部-->
{include file="include/bottom" /}
</div>
</body></html>

View File

@@ -0,0 +1,222 @@
<!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__/m_weben/css/subject/h_speed.css">
<body>
<div id="content">
<!--top-->
{include file="include/top" /}
<!--top End-->
<!--第一屏-->
<div class="h_speed_banner img-responsive margin-top-90">
<img src="__PUBLIC__/m_web/images/h_speed/h_speed_banner.jpg">
<div class="banner_button"><span>SuperSpeed</span>
</div>
<div class="banner_button_title">
Speed Innovation
</div>
<div class="banner_button_subtitle">Real Type-C 10Gbps high-speed</div>
</div>
<!--第二屏-->
<div class="h_speed_02 img-responsive">
<img src="__PUBLIC__/m_web/images/h_speed/h_speed_01.jpg">
<div class="h_speed_all h_speed_l">
<div class="h_speed_02_title">Explore the Way</br>Lead the Trend</div>
<div class="h_speed_02_subtitle">Type-C interface</br>
double-side pluggable</div>
<div class="h_speed_text">
<a href="__ORICOROOT__/product/detail/id/397"><span>Learn More ></span></a>
</div>
</div>
</div>
<!--第三屏-->
<div class="h_speed_02 img-responsive">
<img src="__PUBLIC__/m_web/images/h_speed/h_speed_02.jpg">
<div class="h_speed_all h_speed_r">
<div class="h_speed_02_title">Powerful Chip</br>Fast Transmission</div>
<div class="h_speed_02_subtitle">10Gbps transmission</br>
VL716 strong controller</div>
<div class="h_speed_text">
<a href="__ORICOROOT__/product/detail/id/423"><span>Learn More ></span></a>
</div>
</div>
</div>
<!--第四屏-->
<div class="h_speed_02 img-responsive">
<img src="__PUBLIC__/m_web/images/h_speed/h_speed_03.jpg">
<div class="h_speed_all h_speed_l">
<div class="h_speed_02_title">Breakthrough</br>Speed Limit</div>
<div class="h_speed_02_subtitle">UASP protocol</br>
upgraded speed</div>
<div class="h_speed_text">
<a href="__ORICOROOT__/product/detail/id/859"><span>Learn More ></span></a>
</div>
</div>
</div>
<!--第五屏-->
<div class="h_speed_02 img-responsive">
<img src="__PUBLIC__/m_web/images/h_speed/h_speed_04.jpg">
<div class="h_speed_all h_speed_r">
<div class="h_speed_02_title">Transparent Design</div>
<div class="h_speed_02_subtitle">PC transparent design</br>
beauty of technology</div>
<div class="h_speed_text">
<a href="__ORICOROOT__/product/detail/id/812"><span>Learn More ></span></a>
</div>
</div>
</div>
<!--第六屏-->
<div class="h_speed_02 img-responsive">
<img src="__PUBLIC__/m_web/images/h_speed/h_speed_05.jpg">
<div class="h_speed_all h_speed_l">
<div class="h_speed_02_title">Splashproof Design</br>
No Worry of falling</div>
<div class="h_speed_02_subtitle">360°silicone</br>
outdoor three-proofing</div>
<div class="h_speed_text">
<a href="__ORICOROOT__/product/detail/id/398"><span>Learn More ></span></a>
</div>
</div>
</div>
<!--第七屏-->
<div class="h_speed_02 img-responsive">
<img src="__PUBLIC__/m_web/images/h_speed/h_speed_06.jpg">
<div class="h_speed_all h_speed_r">
<div class="h_speed_02_title">Honeycomb Convection</div>
<div class="h_speed_02_subtitle">Aluminum alloy material</br>
honeycomb heat-dissipation</div>
<div class="h_speed_text">
<a href="__ORICOROOT__/product/detail/id/403"><span>Learn More ></span></a>
</div>
</div>
</div>
<!--第八屏-->
<div class="h_speed_02 img-responsive">
<img src="__PUBLIC__/m_web/images/h_speed/h_speed_07.jpg">
<div class="h_speed_all h_speed_l">
<div class="h_speed_02_title">Light and Thin</div>
<div class="h_speed_02_subtitle">Designed for 7mm SSD, </br>burden-free trip</div>
<div class="h_speed_text">
<a href="__ORICOROOT__/product/detail/id/402"><span>Learn More ></span></a>
</div>
</div>
</div>
<!--第九屏-->
<div class="h_speed_09 img-responsive">
<img src="__PUBLIC__/m_weben/images/h_speed/h_speed_08.jpg">
<div class="h_speed_09_text">Nine Protections, Worry-free Transmission
</div>
</div>
<!--2.5英寸硬盘盒-->
<div class="title margin-top-50 text_black text_center">2.5 inch HDD Enclosure</div>
<div class="m_Container img-responsives margin-top-40 text_black">
<ul class="list_two">
<li>
<img src="__PUBLIC__/m_web/images/h_speed/h_speed_img01.jpg">
<div class="special_title">Type-C interface, 10Gbps </div>
<div class="buy des text_center buy_button">
<span class="subject_span buy_margin">Amazon</span>
<a href="https://item.jd.com/35036915853.html" target="_blank">AliExpress</a>
</div>
</li>
<li>
<img src="__PUBLIC__/m_web/images/h_speed/h_speed_img02.jpg">
<div class="special_title">Three-proofing, 10Gbps
</div>
<div class="buy des text_center buy_button">
<span class="subject_span buy_margin">Amazon</span>
<a href="https://item.jd.com/11868185734.html" target="_blank">AliExpress</a>
</div>
</li>
<li>
<img src="__PUBLIC__/m_web/images/h_speed/h_speed_img03.jpg">
<div class="special_title">Aluminum alloy, 10Gbps
</div>
<div class="buy des text_center buy_button">
<span class="subject_span buy_margin">Amazon</span>
<a href="https://item.jd.com/35036915853.html" target="_blank">AliExpress</a>
</div>
</li>
<li>
<img src="__PUBLIC__/m_web/images/h_speed/h_speed_img04.jpg">
<div class="special_title">12mm ultrathin
</div>
<div class="buy des text_center buy_button">
<span class="subject_span buy_margin">Amazon</span>
<a href="https://item.jd.com/11868185734.html" target="_blank">AliExpress</a>
</div>
</li>
</ul>
</div>
<!--硬盘底座-->
<div class="title margin-top-50 text_black text_center">HDD Dock
</div>
<div class="m_Container img-responsives margin-top-40 text_black">
<ul class="list_two">
<li>
<img src="__PUBLIC__/m_web/images/h_speed/h_speed_img05.jpg">
<div class="special_title">2.5/3.5inch applicable, 10Gbps transmission
</div>
<div class="buy des text_center buy_button">
<span class="subject_span buy_margin">Amazon</span>
<span class="subject_span">AliExpress</span>
</div>
</li>
<li>
<img src="__PUBLIC__/m_web/images/h_speed/h_speed_img06.jpg">
<div class="special_title">2.5/3.5inch applicable, 10Gbps transmission
</div>
<div class="buy des text_center buy_button">
<span class="subject_span buy_margin">Amazon</span>
<span class="subject_span">AliExpress</span>
</div>
</li>
</ul>
</div>
<div class="m_Container img-responsives text_black">
<ul class="list_one">
<li style="margin-top:0">
<img src="__PUBLIC__/m_web/images/h_speed/h_speed_img07.jpg">
<div class="special_text">
<div class="title">Transparent HDD Dock
</div>
<div class="subtitle margin-top-14">10Gbps transmission, UASP protocol
</div>
<div class="buy_button des margin-top-40">
<span class="subject_span buy_margin">Amazon</span>
<span class="subject_span">AliExpress</span>
</div>
</div>
</li>
</ul>
</div>
<br class="bottom-margin">
<!-- bottom -->
{include file="include/bottom" /}
<!-- bottom e -->
</div>
</body>
</html>

View File

@@ -0,0 +1,267 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Honors and Certificates</title>
<meta name="keywords" content="Honors and Certificates, ORICO">
<meta name="description" content="ORICO is a brand that is deeply rooted in the exploration and application of USB technology. It has achieved remarkable results in fields of USB storage, charging and transmission for many years.">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<!--link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/subject/honor.css"-->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/app.css?v={:time()}">
</head>
<body style="background-color:#FFF;">
<div id="content">
<!--头部-->
{include file="include/top" /}
<div class="bdpage" style="background: #fff;border-radius: 8px;padding-top: 50px;">
<div class="bd_main bd_main1 bd_main2" >
<h1 class="t1 sfbt1">Bulk Buy</h1>
<!--内容-->
<div class="bd_ct ">
<div class="bd_from" style="padding: 0 16px;">
<div class="theit">
<div class="bditem">
<label class="itlable">Company Name<span class="redtag">*</span></label>
<input type="text" class="form-control itinp companyName" placeholder="Legal business name">
</div>
</div>
<div class="theit">
<div class="bditem">
<label class="itlable">Official website</label>
<input type="text" class="form-control itinp url" placeholder="Please paste the URL">
</div>
</div>
<div class="theit">
<div class="bditem">
<label class="itlable">Your Name<span class="redtag">*</span></label>
<input type="text" class="form-control itinp firstname" placeholder="First name">
<input type="text" class="form-control itinp lastname" placeholder="Last name" style="margin-top: 8px;">
</div>
</div>
<div class="theit">
<div class="bditem">
<label class="itlable">Email<span class="redtag">*</span></label>
<input type="text" class="form-control itinp email">
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">Phone Numbe</label>
<input type="text" class="form-control itinp phone">
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">Products you are interested in?</label>
<div class="sfbchecks">
<form class="sfbcheckboxlist" action="" method="get">
<label class="cit">
<input name="interested" type="checkbox" value="Computer Peripheral" class="sfbcheckboxit">Computer Peripheral
</label>
<label class="cit">
<input type="checkbox" value="Phone Peripheral" name="interested" class="sfbcheckboxit">Phone Peripheral</label>
<label class="cit">
<input type="checkbox" value="Electronics" name="interested" class="sfbcheckboxit">Electronics
</label>
<label class="cit">
<input type="checkbox" value="SSD" name="interested" class="sfbcheckboxit">SSD
</label>
<label class="cit">
<input type="checkbox" value="Entertainment Series" name="interested" class="sfbcheckboxit">Entertainment Series
</label>
<label class="cit">
<input type="checkbox" value="Smart Life Series" name="interested" class="sfbcheckboxit">Smart Life Series
</label>
<label class="cit">
<input type="checkbox" value="Outdoor Power Station" name="interested" class="sfbcheckboxit">Outdoor Power Station
</label>
</form>
</div>
</div>
</div>
<div class="theit">
<div class="bditem bditem1">
<label class="itlable">Message<span class="redtag">*</span></label>
<textarea class="ittextarea ittextarea2 message" placeholder="Methods used"></textarea>
</div>
</div>
</div>
</div>
<!-- 提交-->
<div class="bttj">SUBMT</div>
</div>
</div>
<!-- 详情页 e -->
</div>
<script>
$(function() {
// 输入框失去焦点
$('.companyName').blur(function(){
if($('.companyName').val() != ''){
$('.companyName').removeClass('error');
$('.companyName').next('span').addClass('hide');
}else{
$('.companyName').addClass('error');
$('.companyName').next('span').removeClass('hide');
}
})
$('.firstname').blur(function(){
if($('.firstname').val() != ''){
$('.firstname').removeClass('error');
$('.firstname').next('span').addClass('hide');
}else{
$('.firstname').addClass('error');
$('.firstname').next('span').removeClass('hide');
}
})
$('.lastname').blur(function(){
if($('.lastname').val() != ''){
$('.lastname').removeClass('error');
$('.lastname').next('span').addClass('hide');
}else{
$('.lastname').addClass('error');
$('.lastname').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 = $('.firstname').val();
var lastName = $('.lastname').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 == ''){
$('.firstname').addClass('error');
$('.firstname').next('span').removeClass('hide');
}
if(lastName == ''){
$('.lastname').addClass('error');
$('.lastname').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: "/usmobile/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 = '/usmobile/Group/submission.html';
}
else{
if(data.code == 403 || data.code == 201) {
alert(data.msg);
}
else{
$('.email').addClass('error');
$('.email').next('span').removeClass('hide');
}
}
}
});
}
})
})
$(function (doc, win) {
var docEl = doc.documentElement;
resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize';
recalc = function () {
var clientWidth = docEl.clientWidth;
if (!clientWidth) return;
docEl.style.fontSize = 50 * (clientWidth / 375) + 'px';
};
if (!doc.addEventListener) return;
win.addEventListener(resizeEvt, recalc, false);
doc.addEventListener('DOMContentLoaded', recalc, false);
}(document,window));
</script>
<!--底部-->
{include file="include/bottom" /}
</body>
</html>

View File

@@ -0,0 +1,77 @@
<!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__/m_web/css/subject/industry.css">
<style>
.industry_01{top:1.875rem; position: absolute; width:87.6%; left:6.2%;}
</style>
</head>
<body style="background-color:#FFF;">
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner img-responsives margin-top-90">
<img src="__PUBLIC__/m_web/images/industry/industry_banner.jpg">
</div>
<!--解密ORICO全产业链布局-->
<div class="m_Container">
<div class="title text_center margin-top-50 text_black"><strong>ORICO Industry Chain Layout</strong></div>
<div class="des text_gray text_center line_height_38 margin-top-30">The whole industry chain integrating R&D, design, production, sales and branding is the strong backing of all ORICO products and services. It can provide solutions that meet the market in real time, efficiently and quickly. In the past 15 years, we have built a comprehensive support system from theory to production, which not only provides solid support for the Group, but also provides effective assistance to the Group's partners and becomes an indispensable partner for many enterprises.</div>
</div>
<!--解密ORICO全产业链布局-->
<div class="m_Container">
<div class="title text_center margin-top-40 text_black"><strong>Theory and Team Support</strong></div>
<div class="des text_gray text_center line_height_38 margin-top-30">Clearly understand the competition of the whole industry chain strategy, focus on building an independent whole industry chain, and lead the development process of the industry chain with customers and consumers. Reasonable allocation of resources and strategic teamwork ensure the rising of Group's added value. </div>
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/industry/industry_01.jpg"></div>
</div>
<!--六大工厂产能支撑-->
<div class="m_Container">
<div class="title text_center margin-top-50 text_black"><strong>Capacity Support from four Factories</strong></div>
<div class="des text_gray text_center line_height_38 margin-top-30">ORICO owns 4 comprehensive design and manufacturing factories, and each of them can independently complete the production and after-sales guarantee services of the corresponding products.</div>
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/industry/industry_02.jpg"></div>
<div class="des text_gray text_center line_height_38 margin-top-20 ">Bringing together industrial design, mold development, manufacturing, electronic research and development, production and assembly. Self-owned warehouse to ensure sufficient supply.</div>
<div class="img-responsive margin-top-14"><img src="__PUBLIC__/m_web/images/industry/industry_03.jpg"></div>
</div>
<!--7大产品线技术与产品支撑-->
<div class="banner img-responsives position_r margin-top-20">
<img src="__PUBLIC__/m_web/images/industry/industry_04.jpg">
<div class="position_a text_white industry_01">
<div class="m_Container">
<p class="text_center"><strong>
Technical and Product Support for 5 Product Lines</strong></p>
<p class="des text_center margin-top-10 line-height-24">Five fully developed product lines, and more than a thousand USB related products, covering everything from data transmission to charging to entertainment peripherals. </p>
</div>
</div>
</div>
<!--品牌树立与平台模式支撑-->
<div class="m_Container">
<div class="title text_center margin-top-50 text_black"><strong>Brand Building and Platform Mode Support</strong></div>
<div class="subtitle text_center margin-top-10 text_black"><strong>Brand</strong></div>
<p class="des text_center margin-top-20 text_gray line_height_38">From the establishment of the brand VI, the brand strategy is constantly improved and clear. In the process of resource allocation and balancing, the brand runs through.</p>
<div class="img-responsive margin-top-14"><img src="__PUBLIC__/m_web/images/industry/industry_05.jpg"></div>
<div class="subtitle text_center margin-top-14 text_black"><strong>Platform</strong></div>
<p class="des text_center margin-top-14 text_gray line_height_38">With USB technology R&D as the core, including product design, technology research and development, manufacturing to sales, ORICO has become a comprehensive service platform.</p>
<div class="img-responsive margin-top-14"><img src="__PUBLIC__/m_web/images/industry/industry_06.jpg"></div>
<div class="subtitle text_center margin-top-14 text_black"><strong>Area</strong></div>
<p class="des text_center margin-top-14 text_gray line_height_38">In addition to regional division and operation in the country, localized and precise operations are carried out for different regional and cultural backgrounds.</p>
<div class="img-responsive margin-top-14"><img src="__PUBLIC__/m_web/images/industry/industry_07.jpg"></div>
<div class="subtitle text_center margin-top-14 text_black"><strong>Mode</strong></div>
<p class="des text_center margin-top-14 text_gray line_height_38">211 smart supply mode provides a quick and flexible solution for online sales, channel sales, and ODM services.</p>
<div class="img-responsive margin-top-14"><img src="__PUBLIC__/m_web/images/industry/industry_08.jpg"></div>
</div>
<br class="bottom-margin">
<!--底部-->
{include file="include/bottom" /}
</div>
</body>
</html>

View File

@@ -0,0 +1,249 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Introduction of the Brand</title>
<meta name="keywords" content="USB charger, USB wiring board, USB small appliances">
<meta name="description" content="We have been focusing on the development and production of USB peripheral products for 9 years, including but not limited to USB storage, USB data transmission, USB charger, USB wiring board, USB small appliances and other creative products . ">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/app.css?v={:time()}">
<style>
.iotbtp1{
text-align: center;
}
.iotb_p1_item img{
width:60px;
height: 60px;
margin-bottom: 8px;
}
.iotb_part22{
padding-bottom: 50px;
background: #fff;
}
.iotb_part22 .wcu_list{
flex-direction: row;
flex-wrap: wrap;
}
.iotb_part22 .wcu_ltem{
width: 49% !important;
position: relative;
margin-bottom: 8px;
}
.iotb_part22 .wcu_s1{
font-size: 12px;
color: #fff;
position: absolute;
padding: 0;
background: rgb(0, 0, 0, 0.4);
width: -webkit-fill-available;
height: 35px;
text-align: center;
line-height: 35px;
bottom: 0;
font-weight: bold;
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
}
</style>
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<div class="iotbpage" >
<img src="__PUBLIC__/m_weben/images/mcooperation/copperaapp_img2.png" alt="" class="bdimg1" >
<div class="iotb_bgw">
<h1 class="iotbt1">Why Choose Us</h1>
<div class="iotb_part1">
<div class="iotb_p1_item" style="margin-bottom: 30px;">
<img src="__PUBLIC__/m_weben/images/mcooperation/iotbic1_app.png" alt="" class="iotbic1">
<p class="iotbtp1">Sell Well for<br> <?php echo (date("Y")-2009);?> Years Worldwide</p>
<span class="iotbts1">
Opened up domestic and <br>
overseas channels in over<br>
70 countries around the<br>
world for <?php echo (date("Y")-2009);?> years
</span>
</div>
<div class="iotb_p1_item" style="margin-bottom: 30px;">
<img src="__PUBLIC__/m_weben/images/mcooperation/iotbic2_app.png" alt="" class="iotbic1">
<p class="iotbtp1">Excellent R&D<br>Team</p>
<span class="iotbts1">Established a R&D Team<br>
of over 140 professionals<br>
including senior<br>
structural and electronic<br>
engineers,etc.
</span>
</div>
<div class="iotb_p1_item">
<img src="__PUBLIC__/m_weben/images/mcooperation/iotbic3_app.png" alt="" class="iotbic1">
<p class="iotbtp1">Digital Lean<br>Manufacturing</p>
<span class="iotbts1">Manufacturing and<br>
warehouse facilities, a<br>
refined OPS supply chain<br>
system provide top-notch<br>
services in customization<br>
production
</span>
</div>
<div class="iotb_p1_item">
<img src="__PUBLIC__/m_weben/images/mcooperation/iotbic4_app.png" alt="" class="iotbic1">
<p class="iotbtp1">Strict Quality<br>Control Process</p>
<span class="iotbts1">The self-built test lab with<br>
a professional analysts<br>
team and advanced<br>
instruments ensures<br>
strict control from start to<br>
finish
</span>
</div>
</div>
</div>
<div class="iotb_part2 iotb_part22">
<h1 class="iotbt1">How We Can Help <br>with Customization</h1>
<div class="fdimgs wcu_list">
<div class="wcu_ltem">
<img src="__PUBLIC__/m_weben/images/mcooperation/dom-fw-gysj.png" alt="" class="fbit">
<span class="wcu_s1">Industrial Design</span>
</div>
<div class="wcu_ltem">
<img src="__PUBLIC__/m_weben/images/mcooperation/dom-fw-jgsj.png" alt="" class="fbit">
<span class="wcu_s1">Structure Design</span>
</div>
<div class="wcu_ltem">
<img src="__PUBLIC__/m_weben/images/mcooperation/dom-fw-dzsj.png" alt="" class="fbit">
<span class="wcu_s1">Electronic Design</span>
</div>
<div class="wcu_ltem">
<img src="__PUBLIC__/m_weben/images/mcooperation/dom-fw-mjkf.png" alt="" class="fbit">
<span class="wcu_s1">Mold Making</span>
</div>
<div class="wcu_ltem">
<img src="__PUBLIC__/m_weben/images/mcooperation/dom-fw-cpcs.png" alt="" class="fbit">
<span class="wcu_s1">Testing & Certification</span>
</div>
<div class="wcu_ltem">
<img src="__PUBLIC__/m_weben/images/mcooperation/dom-fw-ppbz.png" alt="" class="fbit">
<span class="wcu_s1">Branding & Packaging Design</span>
</div>
<div class="wcu_ltem">
<img src="__PUBLIC__/m_weben/images/mcooperation/dom-fw-sczz.png" alt="" class="fbit">
<span class="wcu_s1">Manufacturing & Assembly</span>
</div>
<div class="wcu_ltem">
<img src="__PUBLIC__/m_weben/images/mcooperation/dom-fw-shff.png" alt="" class="fbit">
<span class="wcu_s1">After-Sale Service</span>
</div>
</div>
</div>
<div class="iotb_part2">
<h1 class="iotbt1">For Different Situation</h1>
<div class="fdimgs wcu_list">
<div class="wcu_ltem">
<img src="__PUBLIC__/m_weben/images/mcooperation/odmic11_app.png" alt="" class="fbit">
<span class="wcu_s1">For Business</span>
</div>
<div class="wcu_ltem">
<img src="__PUBLIC__/m_weben/images/mcooperation/odmic22_app.png" alt="" class="fbit">
<span class="wcu_s1">For Dealers</span>
</div>
<div class="wcu_ltem">
<img src="__PUBLIC__/m_weben/images/mcooperation/odmic44_app.png" alt="" class="fbit">
<span class="wcu_s1">For School</span>
</div>
<div class="wcu_ltem">
<img src="__PUBLIC__/m_weben/images/mcooperation/odmic55_app.png" alt="" class="fbit">
<span class="wcu_s1">For Gifts</span>
</div>
</div>
</div>
<!--<div class="iotb_part3">-->
<!-- <div class="odmmain">-->
<!-- <h1 class="iotbt1">ODM Progress</h1>-->
<!-- </div>-->
<!-- <div class="odmconten">-->
<!-- <div class="odmitem">-->
<!-- <div class="appodmimg">-->
<!-- <img src="__PUBLIC__/m_weben/images/mcooperation/appodmic1.png" alt="" >-->
<!-- </div>-->
<!-- <span class="odms1">Market analysis</span>-->
<!-- </div>-->
<!-- <div class="odmitem">-->
<!-- <div class="appodmimg">-->
<!-- <img src="__PUBLIC__/m_weben/images/mcooperation/appodmic2.png" alt="" >-->
<!-- </div>-->
<!-- <span class="odms1">Lock target and cost</span>-->
<!-- </div>-->
<!-- <div class="odmitem">-->
<!-- <div class="appodmimg">-->
<!-- <img src="__PUBLIC__/m_weben/images/mcooperation/appodmic3.png" alt="" >-->
<!-- </div>-->
<!-- <span class="odms1">Serialized product planning</span>-->
<!-- </div>-->
<!-- <div class="odmitem">-->
<!-- <div class="appodmimg">-->
<!-- <img src="__PUBLIC__/m_weben/images/mcooperation/appodmic4.png" alt="" >-->
<!-- </div>-->
<!-- <span class="odms1">Identify needs and evaluate</span>-->
<!-- </div>-->
<!-- <div class="odmitem">-->
<!-- <div class="appodmimg">-->
<!-- <img src="__PUBLIC__/m_weben/images/mcooperation/appodmic5.png" alt="" >-->
<!-- </div>-->
<!-- <span class="odms1">Deposit for R&D</span>-->
<!-- </div>-->
<!-- <div class="odmitem">-->
<!-- <div class="appodmimg">-->
<!-- <img src="__PUBLIC__/m_weben/images/mcooperation/appodmic6.png" alt="" >-->
<!-- </div>-->
<!-- <span class="odms1">Schedule test, certification</span>-->
<!-- </div>-->
<!-- <div class="odmitem">-->
<!-- <div class="appodmimg">-->
<!-- <img src="__PUBLIC__/m_weben/images/mcooperation/appodmic7.png" alt="" >-->
<!-- </div>-->
<!-- <span class="odms1">Confirm sample</span>-->
<!-- </div>-->
<!-- <div class="odmitem">-->
<!-- <div class="appodmimg">-->
<!-- <img src="__PUBLIC__/m_weben/images/mcooperation/appodmic8.png" alt="" >-->
<!-- </div>-->
<!-- <span class="odms1">Open mold for sample</span>-->
<!-- </div>-->
<!-- <div class="odmitem">-->
<!-- <div class="appodmimg">-->
<!-- <img src="__PUBLIC__/m_weben/images/mcooperation/appodmic9.png" alt="" >-->
<!-- </div>-->
<!-- <span class="odms1">Pay mould cost</span>-->
<!-- </div>-->
<!-- <div class="odmitem">-->
<!-- <div class="appodmimg">-->
<!-- <img src="__PUBLIC__/m_weben/images/mcooperation/appodmic10.png" alt="" >-->
<!-- </div>-->
<!-- <span class="odms1">Design sketch and prototype</span>-->
<!-- </div>-->
<!-- </div>-->
<!--</div>-->
<!--<img src="__PUBLIC__/m_weben/images/mcooperation/appcoofootimg.png" class="appcoofootimg" alt="">-->
</div>
<script>
(function(doc, win) {
var docEl = doc.documentElement;
resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize';
recalc = function() {
var clientWidth = docEl.clientWidth;
if (!clientWidth) return;
docEl.style.fontSize = 50 * (clientWidth / 375) + 'px';
};
if (!doc.addEventListener) return;
win.addEventListener(resizeEvt, recalc, false);
doc.addEventListener('DOMContentLoaded', recalc, false);
}(document, window));
</script>
<!--底部-->
{include file="include/bottom" /}
</body></html>

260
app/usmobile/view/group/job.phtml Executable file
View File

@@ -0,0 +1,260 @@
<!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__/m_weben/css/subject/job.css">
<script type="text/javascript" src="__PUBLIC__/m_web/js/bxslider/jquery.bxslider.min.js"></script>
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner img-responsive margin-top-90">
<img src="__PUBLIC__/m_weben/images/job/job_01.jpg">
</div>
<!--内容-->
<div class="m_Container">
<div class="des text_gray text_center line-height-40 margin-top-40">We provide leading technology, innovative products, online & offline channels to make your every achievement possible. With your passion and wisdom, you along with our creative team will make better-than-expected progress, which will bring striking differences beyond your imagination.
</div>
<div class="title text_center margin-top-50">Our Team</div>
<!--合作伙伴-->
<div class="job_banner margin-top-20">
<div class="slide"><img src="__PUBLIC__/m_web/images/job/job_02.jpg">
</div>
<div class="slide"><img src="__PUBLIC__/m_web/images/job/job_02-02.jpg">
</div>
<div class="slide"><img src="__PUBLIC__/m_web/images/job/job_02-03.jpg">
</div>
</div>
</div>
<!--你将获得-->
<div class="m_Container">
<div class="title text_center margin-top-50">What You Get</div>
<div class="img-responsive margin-top-14">
<div class="job_delay ">
<ul>
<li class="margin-top-20"><img src="__PUBLIC__/m_web/images/job/join_icon01.jpg">
<p class="margin-top-20">Rewards</p>
</li>
<li class="margin-top-20"><img src="__PUBLIC__/m_web/images/job/join_icon01.jpg">
<p class="margin-top-20">Career promotions </p>
</li>
<li class="margin-top-20"><img src="__PUBLIC__/m_web/images/job/join_icon01.jpg">
<p class="margin-top-20">Recognition</p>
</li>
<li class="margin-top-20"><img src="__PUBLIC__/m_web/images/job/join_icon01.jpg">
<p class="margin-top-20">Career trainings</p>
</li>
<li class="margin-top-20"><img src="__PUBLIC__/m_web/images/job/join_icon01.jpg">
<p class="margin-top-20">Five one insurance fund</p>
</li>
<li class="margin-top-20"><img src="__PUBLIC__/m_web/images/job/join_icon01.jpg">
<p class="margin-top-20">Extra allowances</p>
</li>
<li class="margin-top-20"><img src="__PUBLIC__/m_web/images/job/join_icon01.jpg">
<p class="margin-top-20">Group activities</p>
</li>
<li class="margin-top-20"><img src="__PUBLIC__/m_web/images/job/join_icon01.jpg">
<p class="margin-top-20">Legal holidays</p>
</li>
<li class="margin-top-20"><img src="__PUBLIC__/m_web/images/job/join_icon01.jpg">
<p class="margin-top-20">Festival gifts</p>
</li>
</ul>
</div>
</div>
</div>
<!--视频-->
<div class="m_Container index_video">
<video controls poster="__PUBLIC__/m_web/images/job/job_03.jpg">
<source src="__PUBLIC__/m_web/images/job/orico_job_video.mp4" type="video/mp4"/> 您的浏览器不支持 video 标签。 Your browser does not support HTML5 video.
</video>
</div>
<!--元创“新兵老将”计划-->
<div class="m_Container">
<div class="title text_center margin-top-50">ORICO Employees Plan </div>
<div class="des text_gray text_center line-height-40 margin-top-40">If you are a potential and diligent workplace entrant, you will make great progress in your position with the help of our superior and professional teams; If you are an experienced veteran, join us and you will be continuing to obtain self-improvement. </div>
</div>
<!--container-->
<div class="m_Container job_bor margin-top-20">
<!--【fixed-thead表头】-->
<table class="form-table fixed-thead" cellpadding="0" cellspacing="0">
<tr>
<th>Job</th>
<th>Hiring number</th>
<th>Work place</th>
<th>Requirement</th>
</tr>
</table>
<!--【fixed-thead表头】-->
<!--【表身】-->
<div class="scroll-box">
<table class="form-table" cellpadding="0" cellspacing="0">
<tr>
<td>Structure designer</td>
<td>1</td>
<td>Changsha</td>
<td class="job_blue"><a href="#">Apply</a></td>
</tr>
<tr>
<td>Industrial designer </td>
<td>2</td>
<td>Changsha</td>
<td class="job_blue"><a href="#">Apply</a></td>
</tr>
<tr>
<td>Graphic designer</td>
<td>1</td>
<td>Changsha</td>
<td class="job_blue"><a href="#">Apply</a></td>
</tr>
<tr>
<td>Amazon EU operation </td>
<td>1</td>
<td>Shenzhen</td>
<td class="job_blue"><a href="#">Apply</a></td>
</tr>
<tr>
<td>Amazon US operation assistant</td>
<td>1</td>
<td>Shenzhen</td>
<td class="job_blue"><a href="#">Apply</a></td>
</tr>
<tr>
<td>Amazon Canada India operation</td>
<td>2</td>
<td>Changsha</td>
<td class="job_blue"><a href="#">Apply</a></td>
</tr>
<tr>
<td>AliExpress promoter</td>
<td>1</td>
<td>Changsha</td>
<td class="job_blue"><a href="#">Apply</a></td>
</tr>
<tr>
<td>Amazon promoter </td>
<td>1</td>
<td>Changsha</td>
<td class="job_blue"><a href="#">Apply</a></td>
</tr>
<tr>
<td>Customer service supervisor</td>
<td>1</td>
<td>Shenzhen</td>
<td class="job_blue"><a href="#">Apply</a></td>
</tr>
<tr>
<td>Customer service</td>
<td>2</td>
<td>Shenzhen</td>
<td class="job_blue"><a href="#">Apply</a></td>
</tr>
<tr>
<td>ebay operation</td>
<td>1</td>
<td>Changsha</td>
<td class="job_blue"><a href="#">Apply</a></td>
</tr>
<tr>
<td>ebay operation assistant</td>
<td>1</td>
<td>Shenzhen</td>
<td class="job_blue"><a href="#">Apply</a></td>
</tr>
<tr>
<td>JD operation</td>
<td>1</td>
<td>Changsha</td>
<td class="job_blue"><a href="#">Apply</a></td>
</tr>
<tr>
<td>Technical & after-sale service</td>
<td>1</td>
<td>Shenzhen</td>
<td class="job_blue"><a href="#">Apply</a></td>
</tr>
<tr>
<td>Alibaba operation</td>
<td>2</td>
<td>Shenzhen</td>
<td class="job_blue"><a href="#">Apply</a></td>
</tr>
<tr>
<td>Electronics engineer</td>
<td>1</td>
<td>Dongguan</td>
<td class="job_blue"><a href="#">Apply</a></td>
</tr>
<tr>
<td>Package designer</td>
<td>1</td>
<td>Dongguan</td>
<td class="job_blue"><a href="#">Apply</a></td>
</tr>
</table>
</div>
<!--【表身】-->
</div>
<!--元创“新兵老将”计划-->
<div class="m_Container">
<div class="title text_center margin-top-50">Contact/Address</div>
<p class="img-responsive margin-top-40"><img src="__PUBLIC__/m_web/images/job/job_04.jpg"></p>
<div class="job-font-adress margin-top-30">
<p >ContactMs. Jiang</p>
<p>Telephone0731-88965800</p>
<p>E-mail<a href="#" class="job_blue">hrcs@orico.com.cn</a></p>
<p>Shenzhen ORICO Technology Co.,Ltd</p>
<p>F9, Headquaters Economic Center Building, Zhonghaixin Science & Technology Park, Bu Lan Road, ShenZhen, China</p>
<p>Dongguan Internet & Creativity Industrial Park</p>
<p>No.24 Tangjiao Rd, Changping Town, Dongguan, China</p>
<p>Changsha Branch</p>
<p>12/11F, Block 8, Xincheng Science & Technology Park, NO.588 Yuelu District, Changsha, China</p>
</div>
</div>
<br class="bottom-margin">
<!--底部-->
{include file="include/bottom" /}
</div>
<script type="text/javascript">
$( document ).ready( function () {
$( '.job_banner' ).bxSlider( {
slideWidth: 710,
infiniteLoop: false,
hideControlOnEnd: true,
slideMargin: 10,
auto: true
} );
} );
</script>
</body>
</html>

161
app/usmobile/view/group/odm.phtml Executable file
View File

@@ -0,0 +1,161 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Introduction of the Brand</title>
<meta name="keywords" content="USB charger, USB wiring board, USB small appliances">
<meta name="description" content="We have been focusing on the development and production of USB peripheral products for 9 years, including but not limited to USB storage, USB data transmission, USB charger, USB wiring board, USB small appliances and other creative products . ">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/app.css?v={:time()}">
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<div class="iotbpage" >
<img src="__PUBLIC__/m_weben/images/mcooperation/copperaapp_img2.png" alt="" class="bdimg1" >
<div class="iotb_bgw">
<h1 class="iotbt1">Why Choose Us</h1>
<div class="iotb_part1">
<div class="iotb_p1_item">
<img src="__PUBLIC__/m_weben/images/mcooperation/iotbic1_app.png" alt="" class="iotbic1">
<p class="iotbtp1">Sell well for 11 years</p>
<span class="iotbts1">Opened up domestic and overseas offline channels in 70+ countries around
the world for 11
years</span>
</div>
<div class="iotb_p1_item">
<img src="__PUBLIC__/m_weben/images/mcooperation/iotbic2_app.png" alt="" class="iotbic1">
<p class="iotbtp1">Superior R&D Team</p>
<span class="iotbts1">Established a professional R & D team of nearly 100 structural engineers,
electronic engineers, etc.</span>
</div>
<div class="iotb_p1_item">
<img src="__PUBLIC__/m_weben/images/mcooperation/iotbic3_app.png" alt="" class="iotbic1">
<p class="iotbtp1">World Support</p>
<span class="iotbts1">Global digital warehousing, products can be sold all over the world</span>
</div>
<div class="iotb_p1_item">
<img src="__PUBLIC__/m_weben/images/mcooperation/iotbic4_app.png" alt="" class="iotbic1">
<p class="iotbtp1">High Quality Assurance</p>
<span class="iotbts1">Advice, tips, and tools to help you save people's lives</span>
</div>
</div>
</div>
<div class="iotb_part2">
<h1 class="iotbt1">Why Choose Us</h1>
<div class="fdimgs wcu_list">
<div class="wcu_ltem">
<img src="__PUBLIC__/m_weben/images/mcooperation/odmic1_app.png" alt="" class="fbit">
<span class="wcu_s1">For Business</span>
</div>
<div class="wcu_ltem">
<img src="__PUBLIC__/m_weben/images/mcooperation/odmic2_app.png" alt="" class="fbit">
<span class="wcu_s1">For Dealers</span>
</div>
<div class="wcu_ltem">
<img src="__PUBLIC__/m_weben/images/mcooperation/odmic4_app.png" alt="" class="fbit">
<span class="wcu_s1">For School</span>
</div>
<div class="wcu_ltem">
<img src="__PUBLIC__/m_weben/images/mcooperation/odmic5_app.png" alt="" class="fbit">
<span class="wcu_s1">For Gifts</span>
</div>
</div>
</div>
<div class="iotb_part3">
<div class="odmmain">
<h1 class="iotbt1">ODM Progress</h1>
</div>
<div class="odmconten">
<div class="odmitem">
<div class="appodmimg">
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic1.png" alt="" >
</div>
<span class="odms1">Market analysis</span>
</div>
<div class="odmitem">
<div class="appodmimg">
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic2.png" alt="" >
</div>
<span class="odms1">Lock target and cost</span>
</div>
<div class="odmitem">
<div class="appodmimg">
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic3.png" alt="" >
</div>
<span class="odms1">Serialized product planning</span>
</div>
<div class="odmitem">
<div class="appodmimg">
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic4.png" alt="" >
</div>
<span class="odms1">Identify needs and evaluate</span>
</div>
<div class="odmitem">
<div class="appodmimg">
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic5.png" alt="" >
</div>
<span class="odms1">Deposit for R&D</span>
</div>
<div class="odmitem">
<div class="appodmimg">
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic6.png" alt="" >
</div>
<span class="odms1">Schedule test, certification</span>
</div>
<div class="odmitem">
<div class="appodmimg">
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic7.png" alt="" >
</div>
<span class="odms1">Confirm sample</span>
</div>
<div class="odmitem">
<div class="appodmimg">
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic8.png" alt="" >
</div>
<span class="odms1">Open mold for sample</span>
</div>
<div class="odmitem">
<div class="appodmimg">
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic9.png" alt="" >
</div>
<span class="odms1">Pay mould cost</span>
</div>
<div class="odmitem">
<div class="appodmimg">
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic10.png" alt="" >
</div>
<span class="odms1">Design sketch and prototype</span>
</div>
</div>
</div>
<img src="__PUBLIC__/m_weben/images/mcooperation/appcoofootimg.png" class="appcoofootimg" alt="">
</div>
<script>
(function(doc, win) {
var docEl = doc.documentElement;
resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize';
recalc = function() {
var clientWidth = docEl.clientWidth;
if (!clientWidth) return;
docEl.style.fontSize = 50 * (clientWidth / 375) + 'px';
};
if (!doc.addEventListener) return;
win.addEventListener(resizeEvt, recalc, false);
doc.addEventListener('DOMContentLoaded', recalc, false);
}(document, window));
</script>
<!--底部-->
{include file="include/bottom" /}
</body></html>

View File

@@ -0,0 +1,123 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Warranty Policy_ORICO</title>
<meta name="keywords" content="Warranty Policy">
<meta name="description" content="Warranty Policy">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<style>
.W-95{width:95%; margin-left:auto; margin-right: auto;}
</style>
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner img-responsives margin-top-90">
<img src="__PUBLIC__/m_weben/images/policy/policy_banner.jpg">
</div>
<!--售后政策-->
<div class="m_Container">
<p class="title text_center margin-top-50 text_black"><strong>Cooperation</strong></p>
<p class="des text_gray text_center line-height-40 margin-top-30">ORICO commits to provide 7-day Refund, 15-day Exchange, 1-year Quality Warranty and Lifetime Maintenance service.</p>
</div>
<!--售后条款-->
<div class="m_Container margin-top-20 text_center">
<p class="subtitle text_black"><strong>7-day Refund</strong></p>
<p class="des text_gray text_center line-height-40 margin-top-14">Customers could apply for returning products within 7 days since you receipt products under the condition that items (including package and accessories) are qualified for second sale. However, you will be responsible for all shipping fees. (Some products cannot be sold secondly after opening sealed package, Refund is not accepted.)</p>
<p class="subtitle text_black margin-top-20"><strong>Lifetime Maintenance</strong></p>
<p class="des text_gray text_center line-height-40 margin-top-14">ORICO products get lifetime repair service. You could contact ORICO to enjoy repair service when products appear “performance breakdown” within 1 year since you receipt products; you will undertake material fees and labor costs after more than 1 year. </p>
<p class="subtitle text_black margin-top-20"><strong>15-day Exchange</strong></p>
<p class="des text_gray text_center line-height-40 margin-top-14">You could exchange the product for another new product of the same type, specification and price or repair it if there are quality problems or performance breakdown within 8-15 days since you receipt the product. We will be responsible for all shipping fees.</p>
<p class="subtitle text_black margin-top-20"><strong>1-year Quality Warranty</strong></p>
<p class="des text_gray text_center line-height-40 margin-top-14">ORICO customized HDDs, ORICO & WD customized HDDs for external storage. 1-year free exchange service: It is available to products if there are any quality problems within 1 year since you receipt them. 3-year limited repair service: It is available to products if there are any quality problems within 3 years since you receipt them.</p>
</div>
<!--质保需知-->
<div class="m_Container margin-top-20 text_center">
<p class="img-responsives"><img src="__PUBLIC__/m_weben/images/policy/policy_01.jpg"></p>
<p class="subtitle text_black margin-top-30"><strong>Quality warranty are not compatible with the following conditions:</strong></p>
<div class="W-95">
<p class="des text_gray text_left line-height-40 margin-top-14" >
1、Reworked products without ORICOs approval; The serial number or warranty sticker has been altered, defaced or removed;</br>
2、Normal wear and tear of the product;</br>
3、Products that have been artificially damaged by improper operation.</br>
4、Products that have been damaged by accidents or natural disasters.</br>
5、Products have been reworked or repaired by unauthorized agencies.</br>
6、Warranty service will be carried out according to “Limited Warranty Clause” in the third policy.</p>
<p class="subtitle text_black margin-top-50 line-height-40"><strong>For your own benefits, please mind the following information</strong></p>
<p class="des text_gray margin-top-14 line-height-40">For a smooth return and refund, quality warranty, please follow these steps:</p>
<p class="des text_gray text_left line-height-40">Please show your purchasing invoice within warranty period. If there is no invoice , we will offer free repair within 1 year since the 90th day after the ex-factory date.</p>
</div>
</div>
<!--保修条款-->
<div class="m_Container margin-top-20 text_center">
<p class="img-responsives"><img src="__PUBLIC__/m_weben/images/policy/policy_02.jpg"></p>
<p class="subtitle text_black margin-top-30"><strong>
Limited Warranty Policy </strong></p>
<p class="W-95 des text_gray text_left line-height-40 margin-top-14">
1、Products that have been artificially damaged by mistake, abuse, wrong operation, accidents or natural disasters.(Like spillage of food or liquid, flooding water, shattering, scratching, etc )</br>
2、 Products that have been reworked and damaged by unauthorized agencies that are not approved by ORICO.</br>
3、 Improper accessories, operation against User Manual or any wrong transportation and accidents to the product.</br>
4、 Products that have been damaged by improper or wrong operation.</br>
5、 Normal wear and tear of product surface, such as labels, parts, etc.</br>
6、 The product is beyond the warranty period.</br>
7、 No purchasing proof or invoice, except product which can be proved that it is in warranty period.
</p>
<p class="subtitle text_black margin-top-14"><strong>Special description</strong></p>
<p class="W-95 des text_gray text_left line-height-40 margin-top-14">
1、In the case of water ingress or serious man-made damage, the repair agreement must be signed first. Otherwise, our company regards the user as disagreeing with the repair.<br>
2、If there is quality problems and man-made damage, the warranty right is no longer available, but we provide maintenance services, and at the same time, we will collect material and maintenance fees, subject to the damage.<br>
3、If the product does not meet the warranty conditions and needs to be charged, the reason for not meeting the warranty conditions shall be indicated on the maintenance record or the toll invoice, and the user shall sign and approve.<br>
4、For example, if Shenzhen ORICO Technologies Co., Ltd. has another advertising commitment approved by the headquarter. The effective area and effective time indicated in the advertisement must be implemented as promised.<br>
</p>
</div>
<!--特别说明-->
<div class="m_Container margin-top-20 text_center">
<p class="img-responsives"><img src="__PUBLIC__/m_weben/images/policy/policy_03.jpg"></p>
<p class="subtitle text_black margin-top-30"><strong>Attentions</strong></p>
<p class="W-95 des text_gray text_left line-height-40 margin-top-14">
1、 Please fill in the repair form in regular script. You should fill in the users name, contact number, fault phenomenon, request for testing or repair and other content. we will judge and handle it according to the content filled out by the user.</br>
2、Please backup information stored in the product to other devices and delete those in the product before sending it to repair to avoid loss or leakage.</br>
*If the above is inconsistent with or missing from the national policy, the national policy shall prevail.
</p>
</div>
<!--注意事项-->
<p></p><br class="bottom-margin">
<!--底部-->
{include file="include/bottom" /}
</div>
</body></html>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,60 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Vision & Mission</title>
<meta name="keywords" content="">
<meta name="description" content="">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/style.css">
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--内容-->
<div class="margin-25"></div>
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/brand/product-banner.jpg"></div>
<div class="m_vision ">
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/vision/vision_01.jpg"></div>
<div class="vision-title text_left margin-top-50">Annual production capacity over 4B.</div>
<div class="vision-con text_gray text_left line-height-40 margin-top-40">We apply more advanced Type-C technical scheme whose data transmission speed reaches up to 10Gbps into our classic storage, innovative expansion products, 3C accessories and more daily gadgets. As for function expansion of Type-C, it can be compatible with Apple Thunderbolt3 port and can support data transmission, PD two-way power deliver and more functions.</div>
</div>
<div class="m_vision">
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/vision/vision_02.jpg"></div>
<div class="vision-title text_left margin-top-50">USB Data/Power Transmission Technology</div>
<div class="vision-con text_gray text_left line-height-40 margin-top-40">ORICO keeps exploring and innovating USB technology, for example, we develop the data transmission technology from USB2.0 to leading USB3.1 tech; we apply USB weak current to digital devices and more products. ORICO will pursue more breakthroughs with the technological age.</div>
</div>
<div class="m_vision">
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/vision/vision_03.jpg"></div>
<div class="vision-title text_left margin-top-50">Household Strong Current Safety Technology</div>
<div class="vision-con text_gray text_left line-height-40 margin-top-40">Involved in household power strip and other products powered on 220V strong voltage, we take all aspects into account to ensure security, including material select and electronic structure design. Our products are qualified national 3C standard, overseas FCC and other relevant certificates.</div>
</div>
<div class="m_vision">
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/vision/vision_04.jpg"></div>
<div class="vision-title text_left margin-top-50">Deep Research on USB Technology</div>
<div class="vision-con text_gray text_left line-height-40 margin-top-40">The development and innovation of USB technology is vast and infinite. For a long time in the future, ORICO will concentrate on the exploration and innovation of USB technology and use it more in transmission, power, audio and video to better facilitate people and promote the breakthrough transformation of transmission technology. Rome was not built in one day. We know that only by bringing together small changes will it be possible to explore greater innovations, and make our career endless through accumulation.</div>
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/vision/vision_05.jpg"></div>
<div class="vision-title text_left margin-top-50">Provide Better Choices for A Better Life</div>
<div class="vision-con text_gray text_left line-height-40 margin-top-40">Change is not only the responsibility of each ORICO employee, but also the opportunity. We expect our change, just like our brand's iconic element, Archimedes screw, to make small changes and corrections in the direction, and to continue to radiate farther away to explore the unknown. Our initial dream of the departure will be as clear as ever. ORICO hopes to explain the power of change to employees, users, and the wider world!</div>
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/vision/vision_06.jpg"></div>
<div class="vision-title text_left margin-top-50">Power of Change</div>
<div class="vision-con text_gray text_left line-height-40 margin-top-40">For the public, ORICO advocates to change the “habitual” lifestyle, encourages everyone to pursue a better life!</div>
</div>
<br class="bottom-margin">
<!--底部-->
{include file="include/bottom" /}
</div>
</body>
</html>

View File

@@ -0,0 +1,63 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>PSSD/Orico</title>
<meta name="Keywords" content="PSSD Storage">
<meta name="Description" content="PSSD Storage">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/ssd.css">
<style>
</style>
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner img-responsives" style="margin-top:90px;">
<img src="__PUBLIC__/m_weben/images/pssd/pssd-eng_01.jpg">
</div>
<video class="margin-top-20" controls="">
<source src="/frontend/m_web/images/pssd/video.mp4" type="video/mp4">
您的浏览器不支持 video 标签。
Your browser does not support HTML5 video.
</video>
<div class="banner img-responsives">
<p><img src="__PUBLIC__/m_weben/images/pssd/pssd-eng_02.jpg"></p>
<p><img src="__PUBLIC__/m_weben/images/pssd/pssd-eng_03.jpg"></p>
<p><img src="__PUBLIC__/m_weben/images/pssd/pssd-eng_04.jpg"/>
</p>
<p><img src="__PUBLIC__/m_weben/images/pssd/pssd-eng_05.jpg" />
</p>
<p><img src="__PUBLIC__/m_weben/images/pssd/pssd-eng_06.jpg" alt=""/></p>
<p><img src="__PUBLIC__/m_weben/images/pssd/pssd-eng_07.jpg" alt=""/>
</p>
<p><img src="__PUBLIC__/m_weben/images/pssd/pssd-eng_08.jpg" alt="" />
</p>
<p><img src="__PUBLIC__/m_weben/images/pssd/pssd-eng_09.jpg" alt=""/></p>
<p><img src="__PUBLIC__/m_weben/images/pssd/pssd-eng_10.jpg" alt="" />
</p>
<p><img src="__PUBLIC__/m_weben/images/pssd/pssd-eng_11.jpg" alt=""/></p>
<p><img src="__PUBLIC__/m_weben/images/pssd/pssd-eng_12.jpg" alt="" />
</p>
<p><img src="__PUBLIC__/m_weben/images/pssd/pssd-eng_13.jpg" alt=""/></p>
<p><img src="__PUBLIC__/m_weben/images/pssd/pssd-eng_14.jpg" alt=""/>
</p>
<p><img src="__PUBLIC__/m_weben/images/pssd/pssd-eng_15.jpg"> </p>
</div>
<!--新增-->
<!--底部-->
{include file="include/bottom" /}
</div>
</body></html>

View File

@@ -0,0 +1,198 @@
<!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__/m_web/css/subject/rdcenter.css">
</head>
<body style="background-color:#FFF;">
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner img-responsives margin-top-90">
<img src="__PUBLIC__/m_web/images/rdcenter/rdcenter_banner.jpg">
</div>
<!--以专研成就使命-->
<div class="m_Container">
<div class="title text_center margin-top-50 text_black"><strong>Dedicated R&D Achieve the Mission</strong></div>
<div class="des text_gray text_center line-height-40 margin-top-30">ORICO is a company driven by market demands and centered on products innovation. Our R&D group, as a development engine, is concentrating on USB technology as well as other leading techniques. Actual demands of market are our directions and the realization of product value is our purpose. We are intensified our efforts to stand in front tier of USB tech exploration around the globe!</div>
</div>
<!--研发团队-->
<div class="m_Container">
<div class="title text_center margin-top-40 text_black"><strong>R&D Group</strong></div>
<div class="des text_gray text_center line-height-40 margin-top-30">ORICO R&D center is organized by 140+ engineers who are capable of ID proposal, industrial design, structure design, electronic design, model development and project management…, outputting more advanced tech and products. </div>
<div class="rdcenter_team margin-top-14">
<ul>
<li class="rdcenter_team_01">
<img src="__PUBLIC__/m_web/images/rdcenter/rdcenter_team_01.jpg">
<p class="des text_black margin-top-10"><strong>Chief Tech Officer</strong></p>
<p class="text_22 text_gray margin-top-10 line-height-38">2-week R&D and 1-week production</p>
</li>
<li class="rdcenter_team_02">
<img src="__PUBLIC__/m_web/images/rdcenter/rdcenter_team_02.jpg">
<p class="des text_black margin-top-10"><strong>Project Manager</strong></p>
<p class="text_22 text_gray margin-top-10 line-height-38">Experienced and expert</p>
</li>
<li class="rdcenter_team_03">
<img src="__PUBLIC__/m_web/images/rdcenter/rdcenter_team_03.jpg">
<p class="des text_black margin-top-10"><strong>Industrial Designer</strong></p>
<p class="text_22 text_gray margin-top-10 line-height-38">Service-oriented and more creative</p>
</li>
<li class="rdcenter_team_01">
<img src="__PUBLIC__/m_web/images/rdcenter/rdcenter_team_04.jpg">
<p class="des text_black margin-top-10"><strong>Senior Structure Engineer</strong></p>
<p class="text_22 text_gray margin-top-10 line-height-38">Design every component carefully</p>
</li>
<li class="rdcenter_team_02">
<img src="__PUBLIC__/m_web/images/rdcenter/rdcenter_team_05.jpg">
<p class="des text_black margin-top-10"><strong>Electronics Engineer</strong></p>
<p class="text_22 text_gray margin-top-10 line-height-38">Examine electronic accurately</p>
</li>
<li class="rdcenter_team_03">
<img src="__PUBLIC__/m_web/images/rdcenter/rdcenter_team_06.jpg">
<p class="des text_black margin-top-10"><strong>Mould Engineer</strong></p>
<p class="text_22 text_gray margin-top-10 line-height-38">Fully responsible for model design, manufacturing, machine commissioning and material selection, etc</p>
</li>
<li class="rdcenter_team_01">
<img src="__PUBLIC__/m_web/images/rdcenter/rdcenter_team_07.jpg">
<p class="des text_black margin-top-10"><strong>Production Manager</strong></p>
<p class="text_22 text_gray margin-top-10 line-height-38">A bond that brings together marketing, product design and manufacturing</p>
</li>
<li class="rdcenter_team_02">
<img src="__PUBLIC__/m_web/images/rdcenter/rdcenter_team_08.jpg">
<p class="des text_black margin-top-10"><strong>Package Designer</strong></p>
<p class="text_22 text_gray margin-top-10 line-height-38">Skillful in design of diversified packages used for display, transportation, storage, etc.</p>
</li>
</ul>
</div>
</div>
<!--研发流程 -->
<div class="m_Container">
<div class="title text_center margin-top-14 text_black"><strong>R&D Process</strong></div>
<div class="banner img-responsives margin-top-40"><img src="__PUBLIC__/m_weben/images/rdcenter/rdcenter_flowsheet.jpg"></div>
</div>
<!--技术与应用-->
<div class="m_Container overflow-h">
<div class="title text_center margin-top-50 text_black"><strong>Technology & Application</strong></div>
<!--Type-c技术全方位应用-->
<div class="subtitle text_black margin-top-14 text_center">All-around Application of Type-C Tech</div>
<div class="des text_gray margin-top-10 text_center line-height-40">We apply more advanced Type-C technical scheme whose data transmission speed reaches up to 10Gbps into our classic storage, innovative expansion products, 3C accessories and more daily gadgets. ORICO products make up more than 65% market share in storage industry. As for function expansion, Type-C can be compatible with Apple Thunderbolt3 port and can support data transmission, PD two-way power deliver and more functions.</div>
<div class="rdcenter_technology margin-top-14">
<ul>
<li><img src="__PUBLIC__/m_web/images/rdcenter/technology_01.jpg"></li>
<li><img src="__PUBLIC__/m_web/images/rdcenter/technology_02.jpg"></li>
<li><img src="__PUBLIC__/m_web/images/rdcenter/technology_03.jpg"></li>
<li><img src="__PUBLIC__/m_web/images/rdcenter/technology_04.jpg"></li>
</ul>
</div>
<!--USB2.0-3.1数据传输技术-->
<div class="subtitle text_black margin-top-14 text_center line-height-40">USB2.0-3.1 Data Transmission Tech</div>
<div class="des text_gray margin-top-10 text_center line-height-40">ORICO keeps exploring and innovating USB technology and has developed the data transmission tech from USB2.0 to current leading USB3.1 tech. we are pursuing more breakthroughs coordinated with the technological era.</div>
<div class="rdcenter_technology margin-top-14">
<ul>
<li><img src="__PUBLIC__/m_web/images/rdcenter/technology_05.jpg"></li>
<li><img src="__PUBLIC__/m_web/images/rdcenter/technology_06.jpg"></li>
<li><img src="__PUBLIC__/m_web/images/rdcenter/technology_07.jpg"></li>
<li><img src="__PUBLIC__/m_web/images/rdcenter/technology_08.jpg"></li>
</ul>
</div>
<!--USB弱电运用技术-->
<div class="subtitle text_black margin-top-14 text_center line-height-40">Application of USB Weak-current</div>
<div class="des text_gray margin-top-10 text_center line-height-40">USB weak current tech has been widely used on more digital products, such as mouse, keyboard, Mini fan and other daily life peripherals like juicer, lamp, etc. </div>
<div class="rdcenter_technology margin-top-14">
<ul>
<li><img src="__PUBLIC__/m_web/images/rdcenter/technology_09.jpg"></li>
<li><img src="__PUBLIC__/m_web/images/rdcenter/technology_10.jpg"></li>
<li><img src="__PUBLIC__/m_web/images/rdcenter/technology_11.jpg"></li>
<li><img src="__PUBLIC__/m_web/images/rdcenter/technology_12.jpg"></li>
</ul>
</div>
<!--安全家用强电技术-->
<div class="subtitle text_black margin-top-14 text_center line-height-40">Household Strong-current Safety Tech</div>
<div class="des text_gray margin-top-10 text_center line-height-40">Involved in household power strip and other products powered on 220V strong voltage, we take all aspects into account to ensure security, including material selection and electronic structure design. Our products are qualified national 3C standard, overseas FCC and other relevant certificates.</div>
<div class="rdcenter_technology margin-top-14">
<ul>
<li><img src="__PUBLIC__/m_web/images/rdcenter/technology_13.jpg"></li>
<li><img src="__PUBLIC__/m_web/images/rdcenter/technology_14.jpg"></li>
</ul>
</div>
<!--精密模具开发技术-->
<div class="subtitle text_black margin-top-14 text_center line-height-40">Development of Precision Molds</div>
<div class="des text_gray margin-top-10 text_center line-height-40">R&D of precision molds creates more delicate exterior for products that are crafted for some high-end peripherals. Electronic design enables products to be compatible with multiple systems and devices.</div>
<div class="rdcenter_technology margin-top-14">
<ul>
<li><img src="__PUBLIC__/m_web/images/rdcenter/technology_15.jpg"></li>
<li><img src="__PUBLIC__/m_web/images/rdcenter/technology_16.jpg"></li>
</ul>
</div>
</div>
<!--资源利用最大化的制造与选材-->
<div class="m_Container">
<div class="title text_center margin-top-50">Make the Best of Resource</div>
<div class="des text_gray margin-top-10 text_center line-height-40">Manufacturing process and material selection are strong supports for satisfying customers and bringing them better using experience. ORICO possesses professional techniques and equipments to make full use of resources. R&D group firmly believe that cost is not reduced by resource saving but reasonable design. The whole design procedure should be optimized according to market condition and target cost to control time and material costs effectively.</div>
<div class="subtitle text_center margin-top-30">Model Manufacturing</div>
<div class="des text_gray text_center line-height-40 margin-top-14">Possess 300+ reserved precision moulds and we are continuing to produce new moulds by precision machining and cutting.</div>
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/rdcenter/factory_01.jpg"></div>
<div class="subtitle text_center margin-top-30">Injection Molding</div>
<div class="des text_gray text_center line-height-40 margin-top-14">Produce 40,000 PCs and assemble 65,000 molds per mouth.</div>
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/rdcenter/factory_02.jpg"></div>
<div class="subtitle text_center margin-top-30">Surface Treatment</div>
<div class="des text_gray text_center line-height-40 margin-top-14">Master all kinds of treatment techniques including spray painting, screen printing, laser carving, etc. </div>
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/rdcenter/factory_03.jpg"></div>
<div class="subtitle text_center margin-top-30">Material Selection</div>
<div class="des text_gray text_center line-height-40 margin-top-14">Select high-pure PC material to ensure better insulation performance and flame resistance. Aluminum alloy and zinc alloy are widely used. </div>
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/rdcenter/factory_04.jpg"></div>
<div class="subtitle text_center margin-top-30">Injection molding workshop</div>
<div class="des text_gray text_center line-height-40 margin-top-14">5 Yizumi machines | 16 Haitian machines</div>
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/rdcenter/factory_05.jpg"></div>
<div class="subtitle text_center margin-top-30">Mould workshop</div>
<div class="des text_gray text_center line-height-40 margin-top-14">4 Xianfeng milling machines | 2 Sanlian milling machines | 1 Xinxing sawing machine | 1 Xiongying cutting machine | 1 Tianma bench grinder</div>
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/rdcenter/factory_06.jpg"></div>
<div class="subtitle text_center margin-top-30">Other machines
</div>
<div class="des text_gray text_center line-height-40 margin-top-14">2 surface grinders | 1 radial drilling machine | 1 lathe</div>
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/rdcenter/factory_07.jpg"></div>
</div>
<!--品质保障体系-->
<div class="m_Container">
<div class="title text_center margin-top-50">Quality Guarantee System</div>
<div class="rdcenter_quality margin-top-40">
<ul>
<li>
<p><img src="__PUBLIC__/m_web/images/rdcenter/quality_01.jpg"></p>
<p>ISO 90012015</p>
<p>international quality management system</p>
</li>
<li>
<p><img src="__PUBLIC__/m_web/images/rdcenter/quality_02.jpg"></p>
<p>Dongguan Municipal Quality Inspection</p>
<p>Center simulated environmental monitoring</p>
</li>
<li>
<p><img src="__PUBLIC__/m_web/images/rdcenter/quality_03.jpg"></p>
<p>Internationally recognized certification system</p>
</li>
</ul>
</div>
</div>
<br class="bottom-margin">
<!--底部-->
{include file="include/bottom" /}
</div>
</body>
</html>

View File

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

View File

@@ -0,0 +1,191 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>35 Series External Hard Drive Enclosure_ORICO</title>
<meta name="Keywords" content="Hard Drive Enclosure" />
<meta name="Description" content="Hard Drive Enclosure" />
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/series_35.css">
</head>
<body style="background-color:#f5f5f5">
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner img-responsives margin-top-90 position_r text_white f_weight_100">
<img src="__PUBLIC__/m_weben/images/series_35/banner.jpg">
</div>
<!--第二屏-->
<div class="m_Container margin-bottom-30 margin-top-50 text_black text_center f_weight_100">
<p class="text_32">The Ideal Storage Experience</p>
<p class="text_24 margin-top-20 line-height-40 margin-bottom-35">The 35 series changes the hard drive from a "lone Wolf" to a "Armed Squad", it giving more space to data storage. In order to cater diverse needs of consumers, 35 series provides multiple storage modes with personalization. It's not just a stack of hardware, we've poured all our care into polishing each part and combining them together to give the 35 series a high level of appearance and performance.</p>
<p class="img-responsives">
<video class="margin-top-20" controls poster="__PUBLIC__/m_web/images/series_95/video.jpg">
<source src="_" type="video/mp4" />
您的浏览器不支持 video 标签。
Your browser does not support HTML5 video.
</video>
</p>
</div>
<!--第三屏-->
<div class="banner img-responsives position_r f_weight_100">
<img src="__PUBLIC__/m_web/images/series_35/series35_03.jpg">
<div class="position_a text_white">
<div class="m_Container text_center">
<p class="text_32 margin-top-50">365×24h Working</p>
<p class="text_24 margin-top-14">In view of the work characteristics of enterprise servers, the 35 series adopts engineering JMS578+JMB394 dual control scheme, which can adapt to continuous working condition, reduce heating while maintaining stable and excellent performance; It allow the hard drive can keep a high MTBF(Mean Time Between Failures) thus to ensure that the data of hard drive will not be damage.</p>
</div>
</div>
</div>
<!--第四屏-->
<div class="banner img-responsives position_r f_weight_100">
<img src="__PUBLIC__/m_web/images/series_35/series35_04.jpg">
<div class="position_a text_white text_center">
<p class="text_32 margin-top-50 banner_l">Up to 80TB Capacity</p>
</div>
</div>
<!--第五屏-->
<div class="banner img-responsives position_r f_weight_100 margin-top-10">
<img src="__PUBLIC__/m_web/images/series_35/series35_05.jpg">
<div class="position_a text_white text_center">
<p class="text_32 margin-top-70 banner_l">Security Monitoring</p>
</div>
</div>
<div class="banner img-responsives position_r f_weight_100 margin-top-10">
<img src="__PUBLIC__/m_web/images/series_35/series35_06.jpg">
<div class="position_a text_white text_center">
<p class="text_32 margin-top-70 banner_l">Video Editing</p>
</div>
</div>
<div class="banner img-responsives position_r f_weight_100 margin-top-10">
<img src="__PUBLIC__/m_web/images/series_35/series35_07.jpg">
<div class="position_a text_white text_center">
<p class="text_32 margin-top-70 banner_l">Private Storage</p>
</div>
</div>
<div class="banner img-responsives position_r f_weight_100 margin-top-10">
<img src="__PUBLIC__/m_web/images/series_35/series35_08.jpg">
<div class="position_a text_white text_center">
<p class="text_32 margin-top-70 banner_l">Sever Expansion</p>
</div>
</div>
<!--第五屏-->
<div class="banner img-responsives position_r f_weight_100 margin-top-10">
<img src="__PUBLIC__/m_web/images/series_35/series35_09.jpg">
<div class="position_a text_white">
<div class="m_Container text_center">
<p class="text_32 margin-top-50">Superior Protection</p>
<p class="text_24 margin-top-14">35 series hard drive enclosure adopts separate bracket design with fixed screws, to perfectly tighten the hard drive on the bracket without loosening or displacement, it greatly improve the stability and safety of data transmission, all the carefully installed screws are designed to give you a safe and carefree storage experience.</p>
</div>
</div>
</div>
<!--第六屏-->
<div class="banner img-responsives position_r f_weight_100">
<img src="__PUBLIC__/m_web/images/series_35/series35_10.jpg">
<div class="position_a text_white text_center">
<p class="text_32 margin-top-50 banner_l">Soild and Stylish</p>
</div>
</div>
<!--第七屏-->
<div class="banner img-responsives position_r f_weight_100">
<img src="__PUBLIC__/m_weben/images/series_35/series35_11.jpg">
<div class="position_a text_white text_center">
<p class="text_32 margin-top-50 banner_l">About RAID</p>
<p class="text_24 margin-top-14">Multiple RAID Modes</p>
</div>
</div>
<!--第八屏-->
<div class="banner img-responsives position_r f_weight_100">
<img src="__PUBLIC__/m_weben/images/series_35/series35_12.jpg">
<div class="position_a text_white text_center">
<p class="text_32 margin-top-50 banner_l">5 Core Performance</p>
</div>
</div>
<!--第九屏-->
<div class="m_Container">
<div class="list_two">
<ul class="margin-top-30 overflow-h">
<li class="img-responsives solid_blue">
<img src="__PUBLIC__/m_web/images/series_95/products_01.jpg">
<div class="position_a text_black">
<p class="text_22 text_center margin-top-40">35 RAID Series</p>
<p class="text_18 text_center margin-top-14 text_l_gray">ORICO 3529RU3</p>
</div>
<div class="computer text_24 text_center buy">
<a href="__ORICOROOT__/product/detail/id/7050.html" target="_blank">Learn More</a>
</div>
</li>
<li class="img-responsives solid_blue">
<img src="__PUBLIC__/m_web/images/series_95/products_02.jpg">
<div class="position_a text_black">
<p class="text_22 text_center margin-top-40">35 RAID Series</p>
<p class="text_18 text_center margin-top-14 text_l_gray">ORICO 3549RU3</p>
</div>
<div class="computer text_24 text_center buy">
<a href="__ORICOROOT__/product/detail/id/7070.html" target="_blank">Learn More</a>
</div>
</li>
<li class="img-responsives solid_blue">
<img src="__PUBLIC__/m_web/images/series_95/products_03.jpg">
<div class="position_a text_black">
<p class="text_22 text_center margin-top-40">35 RAID Series</p>
<p class="text_18 text_center margin-top-14 text_l_gray">ORICO 3559RU3</p>
</div>
<div class="computer text_24 text_center buy">
<a href="__ORICOROOT__/product/detail/id/7072.html" target="_blank">Learn More</a>
</div>
</li>
<li class="img-responsives solid_blue">
<img src="__PUBLIC__/m_web/images/series_95/products_04.jpg">
<div class="position_a text_black">
<p class="text_22 text_center margin-top-40">35 Series</p>
<p class="text_18 text_center margin-top-14 text_l_gray">ORICO 3529U3</p>
</div>
<div class="computer text_24 text_center buy">
<a href="__ORICOROOT__/product/detail/id/7049.html" target="_blank">Learn More</a>
</div>
</li>
<li class="img-responsives solid_blue">
<img src="__PUBLIC__/m_web/images/series_95/products_04.jpg">
<div class="position_a text_black">
<p class="text_22 text_center margin-top-40">35 Series</p>
<p class="text_18 text_center margin-top-14 text_l_gray">ORICO 3549U3</p>
</div>
<div class="computer text_24 text_center buy">
<a href="__ORICOROOT__/product/detail/id/7069.html" target="_blank">Learn More</a>
</div>
</li>
<li class="img-responsives solid_blue">
<img src="__PUBLIC__/m_web/images/series_95/products_04.jpg">
<div class="position_a text_black">
<p class="text_22 text_center margin-top-40">35 Series</p>
<p class="text_18 text_center margin-top-14 text_l_gray">ORICO 3559U3</p>
</div>
<div class="computer text_24 text_center buy">
<a href="__ORICOROOT__/product/detail/id/7071.html" target="_blank">Learn More</a>
</div>
</li>
</ul>
</div>
</div>
<!--第十屏-->
<div class="banner img-responsives">
<img src="__PUBLIC__/m_web/images/ssd/ssd_09.jpg">
</div>
<!--底部-->
{include file="include/bottom" /}
</div>
</body></html>

View File

@@ -0,0 +1,184 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>95 Series_Orico</title>
<meta name="Keywords" content="95 Series">
<meta name="Description" content="95 Series">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/series_95.css">
<style>
</style>
</head>
<body style="background-color:#f5f5f5">
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner img-responsives margin-top-90 position_r text_white f_weight_100">
<img src="__PUBLIC__/m_weben/images/series_95/banner.jpg">
</div>
<!--第二屏-->
<div class="m_Container margin-bottom-30 margin-top-50 text_black text_center f_weight_100">
<p class="text_32">More Capacity. Easier Storage.</p>
<p class="text_24 margin-top-20 line-height-40 margin-bottom-35">The ultimate in storage, upgraded. The larger storage space of the ORICO 95 Series external hard drive enclosure is designed to meet users urgent need for large storage capacity. Through its extraordinary performance proves that: “More Capacity. Easier Storage”.</p>
<p class="img-responsives">
<video class="margin-top-20" controls poster="__PUBLIC__/m_web/images/series_95/video.jpg">
<source src="__PUBLIC__/web/images/95_series/video-en.mp4" type="video/mp4" />
您的浏览器不支持 video 标签。
Your browser does not support HTML5 video.
</video>
</p>
</div>
<!--第三屏-->
<div class="banner img-responsives position_r f_weight_100 text_center">
<img src="__PUBLIC__/m_web/images/series_95/series95_three.jpg">
<div class="position_a text_white">
<div class="text_32 margin-top-50">The 5 Major Upgrade.</div>
<div class="m_Container margin-top-50 series_95_three">
<ul class="two_list">
<li>
<p><img src="__PUBLIC__/m_weben/images/series_95/icon_01.png"></p>
<p class="text_24 margin-top-14">Cooling Upgrade</p>
</li>
<li>
<p><img src="__PUBLIC__/m_weben/images/series_95/icon_02.png"></p>
<p class="text_24 margin-top-14">Security Upgrade</p>
</li>
</ul>
<ul class="three_list margin-top-80">
<li>
<p><img src="__PUBLIC__/m_weben/images/series_95/icon_03.png"></p>
<p class="text_24 margin-top-14">Power Upgrade</p>
</li>
<li>
<p><img src="__PUBLIC__/m_weben/images/series_95/icon_04.png"></p>
<p class="text_24 margin-top-14">Speed Upgrade</p>
</li>
<li>
<p><img src="__PUBLIC__/m_weben/images/series_95/icon_05.png"></p>
<p class="text_24 margin-top-14">Performance Upgrade</p>
</li>
</ul>
</div>
</div>
</div>
<!--第四屏-->
<div class="banner img-responsives position_r f_weight_100">
<img src="__PUBLIC__/m_web/images/series_95/series95_four.jpg">
<div class="position_a text_white">
<p class="text_38 margin-top-80 banner_l">RAID Version</p>
</div>
</div>
<!--第五屏-->
<div class="banner img-responsives position_r f_weight_100">
<img src="__PUBLIC__/m_web/images/series_95/series95_five.jpg">
<div class="position_a text_white">
<p class="text_38 margin-top-80 banner_l">Always Pursuing Better</p>
</div>
</div>
<!--第六屏-->
<div class="m_Container margin-bottom-30 margin-top-50 text_black text_center f_weight_100 series_95_six">
<p class="text_32">Various Applications</p>
<p class="text_24 margin-top-20 line-height-40 margin-bottom-35">95 Series Hard Drive Enclosure supports 16TB hard drive, combining 5-bay can provide a 80Tb large capacity, which applicable to various applications from work to life, and bring you excellent storage experience.</p>
<p class="img-responsives"><img src="__PUBLIC__/m_weben/images/series_95/series95_six_01.jpg"></p>
<p class="img-responsives margin-top-10"><img src="__PUBLIC__/m_weben/images/series_95/series95_six_02.jpg"></p>
<p class="img-responsives margin-top-10"><img src="__PUBLIC__/m_weben/images/series_95/series95_six_03.jpg"></p>
<p class="img-responsives margin-top-10"><img src="__PUBLIC__/m_weben/images/series_95/series95_six_04.jpg"></p>
<p class="img-responsives margin-top-10"><img src="__PUBLIC__/m_weben/images/series_95/series95_six_05.jpg"></p>
</div>
<!--第七屏-->
<div class="m_Container">
<div class="list_two margin-top-10 f_weight_100">
<p class="margin-top-50 text_center text_32">Choose Your Preference?</p>
<p class="text_center text_24 margin-top-14">95U3 Series</p>
<ul class="margin-top-30 overflow-h">
<li class="img-responsives solid_blue">
<img src="__PUBLIC__/m_web/images/series_95/products_01.jpg">
<div class="position_a text_black">
<p class="text_22 text_center margin-top-40">9518 RAID Enclosure</p>
</div>
<!-- <div class="computer text_24 text_center buy">
<span class="subject_span">View Details</a></span>
</div> -->
</li>
<li class="img-responsives solid_blue">
<img src="__PUBLIC__/m_web/images/series_95/products_02.jpg">
<div class="position_a text_black">
<p class="text_22 text_center margin-top-40">9528 RAID Enclosure</p>
</div>
<!-- <div class="computer text_24 text_center buy">
<a href="__ORICOROOT__/product/detail/id/3563.html">View Details</a>
</div> -->
</li>
<li class="img-responsives solid_blue">
<img src="__PUBLIC__/m_web/images/series_95/products_03.jpg">
<div class="position_a text_black">
<p class="text_22 text_center margin-top-40">9548 RAID Enclosure</p>
</div>
<!-- <div class="computer text_24 text_center buy">
<span class="subject_span">View Details</a></span>
</div> -->
</li>
<li class="img-responsives solid_blue">
<img src="__PUBLIC__/m_web/images/series_95/products_04.jpg">
<div class="position_a text_black">
<p class="text_22 text_center margin-top-40">9558 RAID Enclosure</p>
</div>
<!-- <div class="computer text_24 text_center buy">
<a href="__ORICOROOT__/product/detail/id/3570.html">View Details</a>
</div> -->
</li>
</ul>
<p class="text_center text_24 margin-top-50">95RU3 Series</p>
<ul class="margin-top-30 margin-bottom-35 overflow-h">
<li class="img-responsives solid_blue">
<img src="__PUBLIC__/m_web/images/series_95/products_05.jpg">
<div class="position_a text_black">
<p class="text_22 text_center margin-top-40">9528 RAID Enclosure</p>
</div>
<!-- <div class="computer text_24 text_center buy">
<span class="subject_span">View Details</a></span>
</div> -->
</li>
<li class="img-responsives solid_blue">
<img src="__PUBLIC__/m_web/images/series_95/products_06.jpg">
<div class="position_a text_black">
<p class="text_22 text_center margin-top-40">9548 RAID Enclosure</p>
</div>
<!-- <div class="computer text_24 text_center buy">
<span class="subject_span">View Details</a></span>
</div> -->
</li>
<li class="img-responsives solid_blue">
<img src="__PUBLIC__/m_web/images/series_95/products_07.jpg">
<div class="position_a text_black">
<p class="text_22 text_center margin-top-40">9558 RAID Enclosure</p>
</div>
<!-- <div class="computer text_24 text_center buy">
<a href="__ORICOROOT__/product/detail/id/3620.html">View Details</a>
</div> -->
</li>
</ul>
</div>
</div>
<!--第八屏-->
<div class="banner img-responsives">
<img src="__PUBLIC__/m_web/images/ssd/ssd_09.jpg">
</div>
<!--底部-->
{include file="include/bottom" /}
</div>
</body></html>

View File

@@ -0,0 +1,241 @@
<!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__/m_web/css/socket.css">-->
</head>
<body style="background-color:#FFF;">
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner img-responsives margin-top-90">
<img src="__PUBLIC__/m_web/images/socket/socket_banner.jpg">
</div>
<!--第一屏-->
<div class="banner img-responsives">
<div class="m_Container">
<p class="title text_center margin-top-50 text_black">告别传统插座,紧跟科技脚步,体验品质用电</p>
<p class="des text_gray text_center line-height-40 margin-top-30">随着科技的进步越来越多的精密电器用电变得普遍而频繁。插座作为用电的中心把控家居生活的安全、科技便捷和时尚美观多个方面与传统插座不同消费升级下的插座更应像一个精致的数码艺术品足够兼顾到方方面面。秉承“用科技服务人类好用电”的信仰ORICO始终站在前沿科技和好生活的高度看待产品驱动行业向前发展</p>
</div>
<p class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/socket/socket_01.jpg"></p>
</div>
<!--第二屏-->
<div class="banner img-responsives">
<div class="m_Container">
<p class="title text_center margin-top-50 text_black">插座发展、百年不变!品质生活、值得改变!</p>
<p class="des text_gray text_center line-height-40 margin-top-30">1950年人类就开始使用两孔插座迄今沿用至今。三厢接地必用的过载保护防浪涌防雷击保护这些保护对精密电器至关重要。你家的插座应该开始具备这些品质生活应该拥有品质用电来保障。</p>
</div>
<p class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/socket/socket_02.jpg"></p>
</div>
<!--第三屏-->
<div class="banner img-responsives">
<div class="m_Container">
<p class="title text_center margin-top-50 text_black">新科技进步,催生品质生活<br>永不止步,追求前沿科技</p>
</div>
<p class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/socket/socket_03.jpg"></p>
</div>
<!--第四屏-->
<div class="banner img-responsives">
<div class="m_Container">
<p class="title text_center margin-top-50 text_black">看脸的时代,插座也能设计得赏心悦目</p>
<p class="des text_gray text_center line-height-40 margin-top-30">插座在每个场合可以更加美好的呈现,好的设计不仅能拿上台面,更能与整个家具格调心心相印。</p>
</div>
<p class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/socket/socket_04.jpg"></p>
</div>
<!--第五屏-->
<div class="banner img-responsives">
<div class="m_Container">
<p class="title text_center margin-top-50 text_black">没有品牌考虑家居风格生活品味<br>ORICO尤为重视</p>
<ul class="list_two margin-top-14">
<li><img src="__PUBLIC__/m_web/images/socket/socket_five_01.jpg"></li>
<li><img src="__PUBLIC__/m_web/images/socket/socket_five_02.jpg"></li>
<li><img src="__PUBLIC__/m_web/images/socket/socket_five_03.jpg"></li>
<li><img src="__PUBLIC__/m_web/images/socket/socket_five_04.jpg"></li>
</ul>
</div>
</div>
<!--第六屏-->
<div class="banner img-responsives">
<div class="m_Container">
<p class="title text_center margin-top-50 text_black">艺术感×接线板<br>为不同场合设计</p>
<ul class="list_two margin-top-14">
<li><img src="__PUBLIC__/m_web/images/socket/socket_six_01.jpg"></li>
<li><img src="__PUBLIC__/m_web/images/socket/socket_six_02.jpg"></li>
<li><img src="__PUBLIC__/m_web/images/socket/socket_six_03.jpg"></li>
<li><img src="__PUBLIC__/m_web/images/socket/socket_six_04.jpg"></li>
<li><img src="__PUBLIC__/m_web/images/socket/socket_six_05.jpg"></li>
<li><img src="__PUBLIC__/m_web/images/socket/socket_six_06.jpg"></li>
</ul>
</div>
</div>
<!--第七屏-->
<div class="banner img-responsives">
<div class="m_Container">
<p class="title text_center margin-top-50 text_black">磁吸供电颠覆使用场景限制</p>
<p class="des text_gray text_center line-height-40 margin-top-30">人类的用电场景多变,办公桌,沙发,床,餐桌,厨房等等,在多个地方就近供电,而且须整洁有序,磁吸将有助于你将供电口延展到你需要的角度,上台面或隐藏由你决定!</p>
</div>
<p class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/socket/socket_07.jpg"></p>
</div>
<!--第八屏-->
<div class="banner img-responsives">
<div class="m_Container">
<p class="title text_center margin-top-50 text_black">智能兼容 智能匹配电流<br>Aelta智能芯 充电快 不伤机</p>
<p class="des text_gray text_center line-height-40 margin-top-30">USB充电口每天都在外接不同手机/平板/蓝牙耳机/移动电源/手环等不同的设备充电所需电量各不相同。简单的USB口需要发生革命性进步联合世界电源巨头Aelta®研发智能芯--“智能供电算法”技术,久经考验。实现实时匹配微电流和快速电流,给予充电多方位保障。</p>
</div>
<p class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/socket/socket_08.jpg"></p>
</div>
<!--第九屏-->
<div class="banner img-responsives">
<div class="m_Container">
<p class="title text_center margin-top-50 text_black">七合一快充 把握安全快充脉动</p>
</div>
<p class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/socket/socket_09.jpg"></p>
</div>
<!--第十屏-->
<div class="banner img-responsives">
<div class="m_Container">
<p class="title text_center margin-top-50 text_black">智能安全,好的技术值得服务于人,不惜成本!</p>
<p class="des text_gray text_center line-height-40 margin-top-30">几乎没有厂商将安全提高到智能芯片级别除了技术限制成本也是他们考虑的一部分ORICO全系USB充电口标配芯片级智能运算安全限流。</p>
</div>
<p class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/socket/socket_10.jpg"></p>
</div>
<!--第十一屏-->
<div class="banner img-responsives">
<div class="m_Container">
<p class="title text_center margin-top-50 text_black">绿色地球梦从插座开始</p>
<p class="des text_gray text_center line-height-40 margin-top-30">大部分的用电源头无疑就是插座他的节能特性可以大幅改善用电浪费。ORICO除了在选材上选择更高导电特性材料和规格。世界电源巨头MPS也与我们一起研究了这一有意义的事ORICO几乎所有USB插座被应用了全新的MPS同步整流技术提高电能利用率降低损耗符合六级能效。</p>
</div>
<p class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/socket/socket_11.jpg"></p>
</div>
<!--第十二屏-->
<div class="banner img-responsives">
<div class="m_Container">
<p class="title text_center margin-top-50 text_black">选材用料</p>
<p class="des text_gray text_center line-height-40 margin-top-30">人类的用电场景多变,办公桌,沙发,床,餐桌,厨房等等,在多个地方就近供电,而且须整洁有序,磁吸将有助于你将供电口延展到你需要的角度,上台面或隐藏由你决定!</p>
</div>
<p class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/socket/socket_12.jpg"></p>
</div>
<!--第十三屏-->
<div class="banner img-responsives">
<div class="m_Container">
<p class="title text_center margin-top-50 text_black">更高标准</p>
<p class="des text_gray text_center line-height-40 margin-top-30">插头/线材/插线板全部符合3C认证符合2017全新新国标,ISO2015全新国际质量体系认证,CE/FCC/PSE/UL/ROHS认证</p>
</div>
<p class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/socket/socket_13.jpg"></p>
</div>
<!--第十四屏-->
<div class="banner img-responsives margin-bottom-20">
<div class="m_Container">
<p class="title text_center margin-top-50 text_black">植根于充电技术,成名于USB接线板</p>
<p class="des text_gray text_center line-height-40 margin-top-30">2013年掀起全网多口智能充电ORICO充电器名列前五进军USB接线板市场鲜有USB插座类似产品一举进入接线板前五</p>
<video controls poster="/frontend/web/images/socket/socket_37.jpg" class="margin-top-14">
<source src="/frontend/web/images/socket/03.webm" type="audio/mpeg">
<source src="/frontend/web/images/socket/03.mp4" type="video/mp4">
您的浏览器不支持 video 标签。
Your browser does not support HTML5 video.
</video>
</div>
</div>
<!--第十五屏-->
<div class="bg_gray">
<div class="m_Container">
<div class="list_two">
<ul>
<li>
<img src="__PUBLIC__/m_web/images/socket/socket_16_01.jpg">
<div class="special_title">ORICO OSJ-4A5U</div>
<div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=532557922810" class="buy_margin" target="_blank">天猫购买</a>
<span class="subject_span">京东购买</span>
</div>
</li>
<li>
<img src="__PUBLIC__/m_web/images/socket/socket_16_02.jpg">
<div class="special_title">ORICO OSJ-4A5U</div>
<div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=557454805547" class="buy_margin" target="_blank">天猫购买</a>
<span class="subject_span">京东购买</span>
</div>
</li>
<li>
<img src="__PUBLIC__/m_web/images/socket/socket_16_03.jpg">
<div class="special_title">ORICO XCS-4A3U-WH</div>
<div class="buy des text_center buy_button">
<span class="subject_span buy_margin">天猫购买</span>
<span class="subject_span">京东购买</span>
</div>
</li>
<li>
<img src="__PUBLIC__/m_web/images/socket/socket_16_04.jpg">
<div class="special_title">ORICO OPC-2A4U</div>
<div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=532557922810" class="buy_margin" target="_blank">天猫购买</a>
<a href="https://item.jd.com/15605370941.html" target="_blank">京东购买</a>
</div>
</li>
<li>
<img src="__PUBLIC__/m_web/images/socket/socket_16_05.jpg">
<div class="special_title">ORICO MNP-2A3U</div>
<div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=557454805547" class="buy_margin" target="_blank">天猫购买</a>
<a href="https://item.jd.com/31809270733.html" target="_blank">京东购买</a>
</div>
</li>
<li>
<img src="__PUBLIC__/m_web/images/socket/socket_16_06.jpg">
<div class="special_title">ORICO EPC-2A4U-CN</div>
<div class="buy des text_center buy_button">
<span class="subject_span buy_margin">天猫购买</span>
<span class="subject_span">京东购买</span>
</div>
</li>
</ul>
</div>
<ul class="list_one buy_computer">
<li>
<img src="__PUBLIC__/m_web/images/socket/socket_16_07.jpg">
<div class="special_text">
<div class="title">新国标商企办公总控智能排插 </div>
<div class="subtitle margin-top-14">ORICO HPC-8A5U-V1</div>
<div class="buy_button des margin-top-40">
<span class="subject_span buy_margin">天猫购买</span>
<a href="https://item.jd.com/10540713445.html" target="_blank">京东购买</a>
</div>
</div>
</li>
<li>
<img src="__PUBLIC__/m_web/images/socket/socket_16_08.jpg">
<div class="special_text">
<div class="title">高颜值USB桌面智能排插 </div>
<div class="subtitle margin-top-14">ORICO IPC-3A4U</div>
<div class="buy_button des margin-top-40">
<a href="https://detail.tmall.com/item.htm?id=43736525693" class="buy_margin" target="_blank">天猫购买</a>
<a href="https://item.jd.com/10150899260.html" target="_blank">京东购买</a>
</div>
</div>
</li>
</ul>
</div>
</div>
<br class="bottom-margin">
<!--底部-->
{include file="include/bottom" /}
</div>
</body>
</html>

View File

@@ -0,0 +1,98 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Easy your life with All-New Series of ORICO. </title>
<meta name="keywords" content="">
<meta name="description" content="Easy your life with All-New Series of ORICO. Well make unremitting efforts to provide you a better life with concise and comfort.
">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/special.css">
</head>
<body style="background-color:#FFF;">
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner img-responsives margin-top-90 position_r">
<img src="__PUBLIC__/m_web/images/special/banner-en.jpg">
</div>
<div class="img-responsives">
<a href="__ORICOROOT__/Group/pssd.html" class="text_white"><img src="__PUBLIC__/m_weben/images/pssd/pssd-banner.jpg"></a>
</div>
<!--第一屏-->
<div class="special_01">
<div class="content margin-top-14 margin-bottom-10">
<div class="m_Container margin-top-40 margin-bottom-40 overflow-h">
<div class="fly"><img src="__PUBLIC__/m_web/images/special/fly.png"></div>
<p class="text_24 text_center margin-top-30 line_height_38">Well make unremitting efforts to provide you a better life with concise and comfort.</p>
</div>
</div>
</div>
<!--第二屏-->
<div class="banner img-responsives position_r special">
<a href="__ORICOROOT__/Group/transparent.html" class="text_white">
<img src="__PUBLIC__/m_web/images/special/02.jpg">
<div class="position_a text_center">
<p class="text_32 text_blue margin-top-40 f_weight_500">See The Performance Inside-Out </p>
<p class="text_24 text_white margin-top-14 f_weight_100">ORICO Transparent Series</p>
<p class="text_white margin-top-20 f_weight_100"><span class="bg_blue text_24">Learn More </span></p>
</div>
</a>
</div>
<!--第三屏-->
<div class="banner img-responsives position_r special margin-top-10">
<a href="__ORICOROOT__/Group/ssd.html" class="text_white">
<img src="__PUBLIC__/m_web/images/special/03.jpg">
<div class="position_a text_center">
<p class="text_32 text_blue margin-top-40 f_weight_500">Dominate With Furious Speed </p>
<p class="text_24 text_white margin-top-14 f_weight_100">ORICO Troodon SSD Series</p>
<p class="text_white margin-top-20 f_weight_100"><span class="bg_blue text_24">Learn More </span></p>
</div>
</a>
</div>
<!--第四屏-->
<div class="banner img-responsives position_r special margin-top-10">
<a href="__ORICOROOT__/Group/series_95.html" class="text_white">
<img src="__PUBLIC__/m_web/images/special/04.jpg">
<div class="position_a text_center">
<p class="text_32 text_blue margin-top-40 f_weight_500">Enhance the Safety of Your Data</p>
<p class="text_24 text_white margin-top-14 f_weight_100">95 Series Hard Drive Enclosure</p>
<p class="text_white margin-top-20 f_weight_100"><span class="bg_blue text_24">Learn More </span></p>
</div>
</a>
</div>
<!--第五屏-->
<div class="banner img-responsives position_r special margin-top-10">
<a href="__ORICOROOT__/Group/thunderbolt_3.html" class="text_white">
<img src="__PUBLIC__/m_web/images/special/05.jpg">
<div class="position_a text_center">
<p class="text_32 text_blue margin-top-40 f_weight_500">The Power of Thunderbolt™ 3</p>
<p class="text_24 text_white margin-top-14 f_weight_100">Thunderbolt 3 Storage + Expansion</p>
<p class="text_white margin-top-20 f_weight_100"><span class="bg_blue text_24">Learn More </span></p>
</div>
</a>
</div>
<!--第六屏-->
<div class="banner img-responsives position_r special margin-top-10">
<a href="__ORICOROOT__/Group/stripe.html" class="text_white">
<img src="__PUBLIC__/m_web/images/special/06.jpg">
<div class="position_a text_center">
<p class="text_32 text_blue margin-top-40 f_weight_500">The Stripe Collection </p>
<p class="text_24 text_white margin-top-14 f_weight_100">Pick Up Your Favorite Stripe</p>
<p class="text_white margin-top-20 f_weight_100"><span class="bg_blue text_24">Learn More </span></p>
</div>
</a>
</div>
<!--底部-->
{include file="include/bottom" /}
</div>
</body>
</html>

View File

@@ -0,0 +1,78 @@
<!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__/m_web/css/special.css">
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--电脑周边-->
<div class="banner position_r img-responsive special special_01 margin-top-90">
<img src="__PUBLIC__/m_web/images/special/computer_banner.jpg">
<p class="banner_title text_white">Sweet Memories<br>Deserve to be Stored and Shared</p>
</div>
<div class="special_Container img-responsive special_product">
<div class="special_computer">
<li>
<a href="__ORICOROOT__/Group/transparent">
<img src="__PUBLIC__/m_web/images/special/transparent.jpg">
<div class="text_all text_center text_black">
<p class="title margin-top-30">Transparent Series</p>
<p class="des margin-top-10">Confidence in technology</p>
</div>
</a>
</li>
<li>
<a href="__ORICOROOT__/group/h_speed">
<img src="__PUBLIC__/m_web/images/special/G2.jpg">
<div class="text_all text_center text_black">
<p class="title margin-top-30">10Gbps High-speed</p>
<p class="des margin-top-10">Speed innovation</p>
</div>
</a>
</li>
</div>
</div>
<!--手机周边-->
<div class="banner position_r img-responsive special special_02">
<img src="__PUBLIC__/m_web/images/special/phone_banner.jpg">
<p class="banner_title text_black">Perfect Cellphone Partner <br>Sustained Power Supply</p>
</div>
<div class="special_Container img-responsive special_product">
<img src="__PUBLIC__/m_web/images/special/phone.jpg">
<div class="special_product_text text_white">
<div class="special_new_title">Firefly Series</div>
<div class="special_wubtitle">Phone peripherals</div>
<a href="__ORICOROOT__/group/charger" class="text_white"><div class="special_view"><span>Read more</span></div></a>
</div>
</div>
<!--生活周边-->
<div class="banner position_r img-responsive special special_03">
<img src="__PUBLIC__/m_web/images/special/life_banner.jpg">
<p class="banner_title text_black">Add Details to Life </p>
</div>
<div class="special_Container img-responsive special_product">
<img src="__PUBLIC__/m_web/images/special/life.jpg">
<div class="special_product_text text_white">
<div class="special_new_title">Life peripherals</div>
<div class="special_wubtitle">Delicate life</div>
<a href="__ORICOROOT__/Group/fan" class="text_white"><div class="special_view"><span>Read more</span></div></a>
</div>
</div>
<!--底部-->
{include file="include/bottom" /}
</div>
</body>
</html>

356
app/usmobile/view/group/ssd.phtml Executable file
View File

@@ -0,0 +1,356 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SSD Storage/Orico</title>
<meta name="Keywords" content="SSD Storage">
<meta name="Description" content="SSD Storage">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/subject/ssd.css">
<style>
</style>
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner img-responsives margin-top-90">
<img src="__PUBLIC__/m_weben/images/ssd/ssd_01.jpg">
</div>
<!--新增-->
<div class="img-responsive position_r f_weight_100">
<img src="/frontend/m_web/images/ssd/ssd_002.jpg">
<div class="position_a">
<div class="ssd_Container">
<p class="ssd_text text_24 mmargin-top-14 text_center text_gray">New Generation -3D NAND TECHNOLOGY</p>
<p class="ssd_text text_38 margin-top-40 text_center text_black line_height_22">Boosted Storage Density</br>Enhanced Performance</p>
<p class="ssd-t-w text_18 margin-top-130 text_center text_gray ">The whole series of ORICO Troodon solid-state drives are powered by 3D NAND flash, and the storage density is higher than traditional 2D flash. Reached the high level of storage density in the industry, and greatly enhancing the transmission performance, making it easy to process a large amount of stored data.</p>
</div>
<div class="ssd_Container margin-top-280">
<video controls height="100%">
<source src="__PUBLIC__/weben/images/ssd/external_ssd.mp4" type="video/mp4">
您的浏览器不支持 video 标签。
Your browser does not support HTML5 video.
</video>
</div>
</div>
</div>
<!--M200-->
<div class="position_r img-responsives">
<img src="__PUBLIC__/m_web/images/ssd/ssd_003.jpg">
<div class="position_a">
<div class="ssd_Container text_left text_white f_weight_100">
<div class="ssd_right">
<p class="margin-top-80 text_16">Troodon- Armor Series<br>SN100/SV100</p>
<p class="margin-top-14 text_38">All it Protect is Memory</p>
<p class="text_24 margin-top-10 line_height_38">- External Mobile SSD</p>
<!-- <a href="__ORICOROOT__/product/detail/id/5455" target="_blank"><p class="text_24 margin-top-14 ssd_more">Learn More ></p></a> -->
</div>
</div>
</div>
</div>
<!--H100-->
<div class="position_r img-responsives">
<img src="__PUBLIC__/m_web/images/ssd/ssd_004.jpg">
<div class="position_a">
<div class="ssd_Container text_left text_white f_weight_100">
<div class="ssd_left">
<p class="margin-top-80 text_16">Troodon- Wing Series</br>FV300/GV100</p>
<p class="margin-top-14 text_38">Light. Compact. Fast.</p>
<p class="text_24 margin-top-10 line_height_38">—External Mobile SSD</p>
<!-- <a href="__ORICOROOT__/product/detail/id/5491"><p class="text_24 margin-top-14 ssd_more">Learn More ></p></a> -->
</div>
</div>
</div>
</div>
<!--M200-->
<div class="position_r img-responsives">
<img src="__PUBLIC__/m_web/images/ssd/ssd_new.jpg">
<div class="position_a">
<div class="ssd_Container text_left text_white f_weight_100">
<div class="ssd_right">
<p class="margin-top-80 text_16">Troodon- Shield Series<br> BH100/BM200/BV300</p>
<p class="margin-top-14 text_38">Designed to Stable. Built to Rugged. </p>
<p class="text_24 margin-top-10 line_height_38">- External Mobile SSD</p>
<!-- <a href="__ORICOROOT__/product/detail/id/5455" target="_blank"><p class="text_24 margin-top-14 ssd_more">Learn More ></p></a> -->
</div>
</div>
</div>
</div>
<!--产品-->
<div class="m_Container text_center">
<p class="margin-top-50 text_32">Complement Your Storage Experience</p>
<p class="text_28 text_l_gray margin-top-10">See All The Portable SSD</p>
<ul class="list_two margin-top-40 img-responsives ">
<li>
<img src="__PUBLIC__/m_web/images/ssd/SSD_SN100.jpg">
<div class="ssd_text">
<p class="text_24">Troodon- Armor Series
</p>
<p class="text_20 line_height_30 text_gray">ORICO SN100</p>
</div>
<div class="capacity">
<span class="c_span text_16 text_l_gray line_height_22">128 GB</span>
<span class="c_span text_16 text_l_gray line_height_22">256 GB</span>
<span class="c_span text_16 text_l_gray line_height_22">512 GB</span>
<span class="c_span text_16 text_l_gray line_height_22">1 TB</span>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/5455.html" target="_blank">Learn More</a>
</div> -->
</li>
<li>
<img src="__PUBLIC__/m_web/images/ssd/SSD_SV100.jpg">
<div class="ssd_text">
<p class="text_24">Troodon- Armor Series</p>
<p class="text_20 line_height_30 text_gray">ORICO SV100</p>
</div>
<div class="capacity">
<span class="c_span text_16 text_l_gray line_height_22">128 GB</span>
<span class="c_span text_16 text_l_gray line_height_22">256 GB</span>
<span class="c_span text_16 text_l_gray line_height_22">512 GB</span>
<span class="c_span text_16 text_l_gray line_height_22">1 TB</span>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/5456.html" target="_blank">Learn More</a>
</div> -->
</li>
</ul>
<ul class="list_one img-responsives">
<li>
<img src="__PUBLIC__/m_web/images/ssd/SSD_NVME.jpg">
<div class="ssd_text text_left ssd-w-ca">
<p class="text_24">Troodon- Wing Series </p>
<p class="text_20 line_height_30 text_gray">ORICO FV300</p>
</div>
<div class="capacity01">
<span class="c_span text_16 text_l_gray line_height_22">128 GB</span>
<span class="c_span text_16 text_l_gray line_height_22">256 GB</span>
<span class="c_span text_16 text_l_gray line_height_22">512 GB</span>
<span class="c_span text_16 text_l_gray line_height_22">1 TB</span>
</div>
<!-- <div class="buy des text_left buy_button ssd-w-ca">
<a href="__ORICOROOT__/product/detail/id/5491.html" target="_blank">Learn More</a>
</div> -->
</li>
</ul>
<ul class="list_two img-responsives margin-top-20">
<li>
<img src="__PUBLIC__/m_web/images/ssd/SSD_BH100.jpg">
<div class="ssd_text">
<p class="text_24">Troodon- Shield Series </p>
<p class="text_20 line_height_30 text_gray">ORICO BH100</p>
</div>
<div class="capacity">
<span class="c_span text_16 text_l_gray line_height_22">128 GB</span>
<span class="c_span text_16 text_l_gray line_height_22">256 GB</span>
<span class="c_span text_16 text_l_gray line_height_22">512 GB</span>
<span class="c_span text_16 text_l_gray line_height_22">1 TB</span>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/5501.html" target="_blank">Learn More</a>
</div> -->
</li>
<li>
<img src="__PUBLIC__/m_web/images/ssd/SSD_BM200.jpg">
<div class="ssd_text">
<p class="text_24">Troodon- Shield Series </p>
<p class="text_20 line_height_30 text_gray">ORICO BM200</p>
</div>
<div class="capacity">
<span class="c_span text_16 text_l_gray line_height_22">128 GB</span>
<span class="c_span text_16 text_l_gray line_height_22">256 GB</span>
<span class="c_span text_16 text_l_gray line_height_22">512 GB</span>
<span class="c_span text_16 text_l_gray line_height_22">1 TB</span>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/5506.html" target="_blank">Learn More</a>
</div> -->
</li>
</ul>
<ul class="list_two img-responsives margin-top-10">
<li>
<img src="__PUBLIC__/m_web/images/ssd/SSD_BV300.jpg">
<div class="ssd_text">
<p class="text_24">Troodon- Shield Series </p>
<p class="text_20 line_height_30 text_gray">ORICO BV300</p>
</div>
<div class="capacity">
<span class="c_span text_16 text_l_gray line_height_22">128 GB</span>
<span class="c_span text_16 text_l_gray line_height_22">256 GB</span>
<span class="c_span text_16 text_l_gray line_height_22">512 GB</span>
<span class="c_span text_16 text_l_gray line_height_22">1 TB</span>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/5507.html" target="_blank">Learn More</a>
</div> -->
</li>
<li>
<img src="__PUBLIC__/m_web/images/ssd/SSD_GV100.jpg">
<div class="ssd_text">
<p class="text_24">Troodon- Wing Series </p>
<p class="text_20 line_height_30 text_gray">ORICO GV100</p>
</div>
<div class="capacity">
<span class="c_span text_16 text_l_gray line_height_22">128 GB</span>
<span class="c_span text_16 text_l_gray line_height_22">256 GB</span>
<span class="c_span text_16 text_l_gray line_height_22">512 GB</span>
<span class="c_span text_16 text_l_gray line_height_22">1 TB</span>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/5508.html" target="_blank">Learn More</a>
</div> -->
</li>
</ul>
</div>
<!--视频-->
<div class="position_r img-responsives">
<img src="__PUBLIC__/m_web/images/ssd/ssd_02.jpg">
<div class="position_a">
<div class="m_Container text_center text_white f_weight_100">
<p class="margin-top-50 text_32">ORICOs Ten Years Experience in Storage</p>
<p class="margin-top-14 text_28">The Excellent SSD Solution You Never Had</p>
<p class="text_24 margin-top-14">ORICOs SSD has achieved a strong presence in personal consumption storage through its rapidly program response, quick data processing and stable flash.</p>
</div>
<div class="m_Container margin-top-14">
<video controls height="100%">
<source src="__PUBLIC__/web/images/ssd/ssd_video.mp4" type="video/mp4">
您的浏览器不支持 video 标签。
Your browser does not support HTML5 video.
</video>
</div>
</div>
</div>
<!--H100-->
<div class="position_r img-responsives">
<img src="__PUBLIC__/m_web/images/ssd/ssd_03.jpg">
<div class="position_a">
<div class="m_Container text_left text_white f_weight_100">
<div class="ssd_left">
<p class="margin-top-120 text_16">Troodon in Armor H100 </p>
<p class="margin-top-30 text_32">Cool down<br>Speed Up</p>
<p class="text_24 margin-top-14">SATA3.0 protocol, the SSD you better choose.</p>
<!-- <a href="__ORICOROOT__/product/detail/id/4113.html"><p class="text_24 margin-top-20 ssd_more">Learn More ></p></a> -->
</div>
</div>
</div>
</div>
<!--M200-->
<div class="position_r img-responsives">
<img src="__PUBLIC__/m_web/images/ssd/ssd_04.jpg">
<div class="position_a">
<div class="m_Container text_left text_white f_weight_100">
<div class="ssd_right">
<p class="margin-top-120 text_16">Troodon M200 </p>
<p class="margin-top-30 text_32">No Delay<br>Exceptional Responsivity</p>
<p class="text_24 margin-top-14">-mSATA interface, born for the notebook.</p>
<!-- <a href="__ORICOROOT__/product/detail/id/4116.html"><p class="text_24 margin-top-20 ssd_more">Learn More ></p></a> -->
</div>
</div>
</div>
</div>
<!--N300-->
<div class="position_r img-responsives">
<img src="__PUBLIC__/m_web/images/ssd/ssd_05.jpg">
<div class="position_a">
<div class="m_Container text_left text_white f_weight_100">
<div class="ssd_left">
<p class="margin-top-120 text_16">Troodon N300 </p>
<p class="margin-top-30 text_32">SSD Master Always Evolving Performance</p>
<p class="text_24 margin-top-14">Enhanced LDPC algorithm, less loading time.</p>
<!-- <a href="__ORICOROOT__/product/detail/id/4095.html"><p class="text_24 margin-top-20 ssd_more">Learn More ></p></a> -->
</div>
</div>
</div>
</div>
<!--V500-->
<div class="position_r img-responsives">
<img src="__PUBLIC__/m_weben/images/ssd/ssd_06.jpg">
<div class="position_a">
<div class="m_Container text_left text_white f_weight_100">
<div class="ssd_left">
<p class="margin-top-30 text_16">Troodon V500</p>
<p class="margin-top-30 text_32">Dominate the E-Sport <br>with Ferocious Speed</p>
<p class="text_24 margin-top-14">PCI-E ×4, approximately four times faster than the traditional SSD</p>
<!-- <a href="__ORICOROOT__/product/detail/id/4098.html"><p class="text_24 margin-top-20 ssd_more">Learn More ></p></a> -->
</div>
</div>
</div>
</div>
<!--产品-->
<div class="m_Container text_center">
<p class="margin-top-50 text_32">Complement Your Sense of Style</p>
<ul class="list_two margin-top-40 img-responsives">
<li>
<img src="__PUBLIC__/m_web/images/ssd/p_01.jpg">
<div class="ssd_text">
<p class="text_24">Troodon in Armor H100 </p>
<p class="text_20 line_height_30 text_gray">SATA3.0 SSD</p>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/4113.html">Learn More ></a>
</div> -->
</li>
<li>
<img src="__PUBLIC__/m_web/images/ssd/p_02.jpg">
<div class="ssd_text">
<p class="text_24">Troodon M200</p>
<p class="text_20 line_height_30 text_gray">MSATA SSD</p>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/4116.html">Learn More ></a>
</div> -->
</li>
<li>
<img src="__PUBLIC__/m_web/images/ssd/p_03.jpg">
<div class="ssd_text">
<p class="text_24">Troodon N300</p>
<p class="text_20 line_height_30 text_gray">M.2 (NGFF) SSD</p>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/4095.html">Learn More ></a>
</div> -->
</li>
<li>
<img src="__PUBLIC__/m_web/images/ssd/p_04.jpg">
<div class="ssd_text">
<p class="text_24">Troodon V500</p>
<p class="text_20 line_height_30 text_gray">M.2 NVMe SSD</p>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/4098.html">Learn More ></a>
</div> -->
</li>
</ul>
</div>
<!--小改变大不同-->
<div class="position_r img-responsives">
<img src="__PUBLIC__/m_web/images/ssd/ssd_09.jpg">
</div>
<!--底部-->
{include file="include/bottom" /}
</div>
</body></html>

View File

@@ -0,0 +1,220 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Stripe Series_ORICO</title>
<meta name="Keywords" content="Stripe Series">
<meta name="Description" content="Stripe Series">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/stripe.css">
<style>
</style>
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner img-responsives margin-top-90">
<img src="__PUBLIC__/m_weben/images/stripe/banner.jpg">
</div>
<!--新增-->
<!--第二屏-->
<div class="position_r img-responsives">
<img src="/frontend/m_web/images/stripe/stripe02.jpg">
<div class="position_a">
<div class="ssd_Container text_left text_black f_weight_100">
<div class="stripe_right">
<p class="text_32 margin-top-80">Get ready with enough power.</p>
<p class="text_24 margin-top-10 line_height_38">Suitcase-Style Power Bank</p>
</div>
</div>
</div>
</div>
<!--第三屏-->
<div class="m_Container text_center">
<ul class="list_two margin-top-10 img-responsives">
<li>
<img src="__PUBLIC__/m_web/images/stripe/stripe_three_01.jpg">
<div class="stripe_text">
<p class="text_22">10000mAh FIREFLY Series Power Bank</p>
<p class="text_18 line_height_30 text_gray">ORICO FIREFLY-K10000</p>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/3972.html" target="_blank">Learn More</a>
</div> -->
</li>
<li>
<img src="__PUBLIC__/m_web/images/stripe/stripe_three_02.jpg">
<div class="stripe_text">
<p class="text_22">20000mAh FIREFLY Series Power Bank</p>
<p class="text_18 line_height_30 text_gray">ORICO FIREFLY-K20000</p>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/3973.html" target="_blank">Learn More</a>
</div> -->
</li>
<li>
<img src="__PUBLIC__/m_web/images/stripe/stripe_three_03.jpg">
<div class="stripe_text">
<p class="text_22">20000mAh Orico USB-A Power Bank</p>
<p class="text_18 line_height_30 text_gray">ORICO FIREFLY-K20S</p>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/5113.html" target="_blank">Learn More</a>
</div> -->
</li>
<li>
<img src="__PUBLIC__/m_web/images/stripe/stripe_three_04.jpg">
<div class="stripe_text">
<p class="text_22">3200mAh Mini Lipstick Portable Power Bank</p>
<p class="text_18 line_height_30 text_gray">ORICO FIREFLY-SL1</p>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/4041.html" target="_blank">Learn More</a>
</div> -->
</li>
<li>
<img src="__PUBLIC__/m_web/images/stripe/stripe_three_05.jpg">
<div class="stripe_text">
<p class="text_22">10000mAh Ultra-thin Power Bank</p>
<p class="text_18 line_height_30 text_gray">ORICO FIREFLY-K10S</p>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/3591.html" target="_blank">Learn More</a>
</div> -->
</li>
<li>
<img src="__PUBLIC__/m_web/images/stripe/stripe_three_06.jpg">
<div class="stripe_text">
<p class="text_22">10000mAh Suitcase Power Bank</p>
<p class="text_18 line_height_30 text_gray">ORICO FIREFLY-TM10</p>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/3601.html" target="_blank">Learn More</a>
</div> -->
</li>
<li>
<img src="__PUBLIC__/m_web/images/stripe/stripe_three_07.jpg">
<div class="stripe_text">
<p class="text_22">10000mAh Suitcase Power Bank</p>
<p class="text_18 line_height_30 text_gray">ORICO FIREFLY-TR10</p>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/3603.html" target="_blank">Learn More</a>
</div> -->
</li>
<li>
<img src="__PUBLIC__/m_web/images/stripe/stripe_three_08.jpg">
<div class="stripe_text">
<p class="text_22">20000mAh Suitcase Power Bank</p>
<p class="text_18 line_height_30 text_gray">ORICO FIREFLY-SL1</p>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/3604.html" target="_blank">Learn More</a>
</div> -->
</li>
</ul>
</div>
<!--第四屏-->
<div class="position_r img-responsives">
<img src="/frontend/m_web/images/stripe/stripe04.jpg">
<div class="position_a">
<div class="ssd_Container text_left text_white f_weight_100">
<div class="stripe_right margin-top-120">
<p class="text_24 margin-top-50 line_height_38">Stripes Series Hard Drive Enclosure</p>
<p class="text_32 margin-top-10">Managing Your Disk</p>
</div>
</div>
</div>
</div>
<!--第五屏-->
<div class="m_Container text_center">
<ul class="list_two margin-top-10 img-responsives">
<li>
<img src="__PUBLIC__/m_web/images/stripe/stripe_five_01.jpg">
<div class="stripe_text">
<p class="text_22">NVMe M.2 To Type-C SSD Enclosure </p>
<p class="text_18 line_height_30 text_gray">ORICO TCM2-C3</p>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/4039.html" target="_blank">Learn More</a>
</div> -->
</li>
<li>
<img src="__PUBLIC__/m_web/images/stripe/stripe_five_02.jpg">
<div class="stripe_text">
<p class="text_22">NVMe M.2 To Type-C SSD Enclosure </p>
<p class="text_18 line_height_30 text_gray">ORICO TCM2-C3</p>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/4039.html" target="_blank">Learn More</a>
</div> -->
</li>
</ul>
</div>
<!--第六屏-->
<div class="position_r img-responsives">
<img src="/frontend/m_web/images/stripe/stripe06.jpg">
<div class="position_a">
<div class="ssd_Container text_left text_black f_weight_100">
<div class="stripe_left margin-top-120">
<p class="text_24 margin-top-50 line_height_38">Stripes Series Charger</p>
<p class="text_32 margin-top-10">As Good As It Gets</p>
</div>
</div>
</div>
</div>
<!--第七屏-->
<div class="m_Container text_center">
<ul class="list_two margin-top-10 img-responsives">
<li>
<img src="__PUBLIC__/m_web/images/stripe/stripe_seven_01.jpg">
<div class="stripe_text">
<p class="text_22">2.1A Suitcase Series Quick Charge Cable</p>
<p class="text_18 line_height_30 text_gray">ORICO KTL2-10</p>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/3775.html" target="_blank">Learn More</a>
</div> -->
</li>
<li>
<img src="__PUBLIC__/m_web/images/stripe/stripe_seven_02.jpg">
<div class="stripe_text">
<p class="text_22">2.1A Suitcase Series Quick Charge Cable</p>
<p class="text_18 line_height_30 text_gray">ORICO KTL1-10</p>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/3774.html" target="_blank">Learn More</a>
</div> -->
</li>
<li>
<img src="__PUBLIC__/m_web/images/stripe/stripe_seven_03.jpg">
<div class="stripe_text">
<p class="text_22">Dual Port 2.4A Smart Charger</p>
<p class="text_18 line_height_30 text_gray">ORICO WHB-2U</p>
</div>
<!-- <div class="buy des text_center buy_button">
<a href="__ORICOROOT__/product/detail/id/4110.html" target="_blank">Learn More</a>
</div> -->
</li>
</ul>
</div>
<!--底部-->
{include file="include/bottom" /}
</div>
</body></html>

View File

@@ -0,0 +1,57 @@
<!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__/m_weben/css/style.css">
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--Bult Buy-->
<div class="submission" style="margin-top: 230px;">
<div class="submiss-content">
<p> <img src="__PUBLIC__/weben/images/finish.png"></p>
<h3>Thank you for your submission!</h3>
<p class="submiss-p">Someone from our team will reach out shortly.</p>
<div class="submiss-u-p"><a class="submiss-blue" href="javascript:window.history.go(-1);">Return to the previous page</a> in <span id="js-alert-head" class="alert-head"></span>
<span id="js-alert-box" class="alert-box">
<span id="js-sec-text" class="alert-sec-text"></span>
<text class="alert-sec-unit" x="82" y="172" fill="#BDBDBD">seconds</text>
</span>
</div>
</div>
<!--底部-->
{include file="include/bottom" /}
</div>
<!--倒计时-->
<script>
function alertSet(e) {
document.getElementById("js-alert-box").style.display = "inline-block",
document.getElementById("js-alert-head").innerHTML = e;
var t = 10,
n = document.getElementById("js-sec-circle");
document.getElementById("js-sec-text").innerHTML = t,
setInterval(function() {
if ( t -= 1){
document.getElementById("js-sec-text").innerHTML = t;
var e = Math.round(t / 10 * 735);
n.style.strokeDashoffset = e - 735;
}else {
window.history.go(-1);
}
},
970);
}
</script>
<script>alertSet('');</script>
<!--倒计时-->
</body>
</html>

View File

@@ -0,0 +1,144 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ORICO Thunderbolt 3 Series Storage + Expansion_ORICO</title>
<meta name="Keywords" content="ORICO Thunderbolt 3 Series, Storage , Expansion">
<meta name="Description" content="ORICO Thunderbolt 3 Series Storage+Expansion">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/subject/thunderbolt_3.css">
</head>
<body style="background-color:#f5f5f5">
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner img-responsives margin-top-90 position_r text_white f_weight_100">
<img src="__PUBLIC__/m_web/images/thunderbolt_3/thunderbolt_3_banner.jpg">
<div class="position_a">
<div class="thunderbolt_3_banner">
<p class="italic text_38">40Gbps transfer rate, built to be fast.</p>
<p class="text_24 margin-top-14">ORICO Thunderbolt 3 Series</p>
<p class="text_24 margin-top-10">Storage + Expansion</p>
</div>
</div>
</div>
<!--视频-->
<div class="m_Container margin-bottom-30 margin-top-50 text_black text_center f_weight_100">
<p class="text_32">Thunderbolt 3 Official Certification</p>
<p class="text_28 margin-top-20">Real Speed More Professional</p>
<p class="text_22 margin-top-20 line_height_38 margin-bottom-20">ORICO Thunderbolt 3 series have introduced high-speed chip technology of Intel, the theoretical transfer rate is up to 40Gbps. Beyond that, ORICO has also reached cooperation with Intel in other field including storage and expansion. Adhering to the brand concept of “little change, big difference", ORICO keeps showing the features of latest technology and strives to make ORICO Thunderbolt 3 series more reliable in the field of Thunderbolt product.</p>
<p class="img-responsives">
<video poster="__PUBLIC__/m_web/images/thunderbolt_3/video.jpg" controls>
<source src="__PUBLIC__/weben/images/thunderbolt_3/video.mp4" type="video/mp4" />
您的浏览器不支持 video 标签。
Your browser does not support HTML5 video.
</p>
</div>
<!--第二屏-->
<div class="banner img-responsives position_r f_weight_100">
<img src="__PUBLIC__/m_web/images/thunderbolt_3/thunderbolt_3_two.jpg">
<div class="position_a text_white">
<div class="thunderbolt_3_four">
<p class="text_38">Drive At Lightning Speed</p>
<p class="text_24 margin-top-20">Applicable to Thunderbolt 3 interface notebook and desktop. </p>
</div>
</div>
</div>
<!--第三屏-->
<div class="m_Container">
<div class="list_two margin-top-10">
<ul>
<li class="img-responsives slider_blue">
<img src="__PUBLIC__/m_web/images/thunderbolt_3/thunderbolt_3_four_01.jpg">
<div class="position_a text_black">
<p class="text_22 text_center margin-top-40">APM2T3-G40</p>
<!-- <p class="computer text_22 text_center thunderbolt_3_three">
<a href="__ORICOROOT__/product/detail/id/6859/color/APM2T3-G40-GY.html" target="_blank">View details</a>
</p> -->
</div>
</li>
<li class="img-responsives slider_blue">
<img src="__PUBLIC__/m_web/images/thunderbolt_3/thunderbolt_3_four_02.jpg">
<div class="position_a text_black">
<p class="text_22 text_center margin-top-40"> TFM2T3-G40</p>
<!-- <p class="computer text_22 text_center thunderbolt_3_three">
<a href="__ORICOROOT__/product/detail/id/6860/color/APM2T3-G40-GY.html" target="_blank">View details</a>
</p> -->
</div>
</li>
</ul>
</div>
<div class="slider_blue position_r img-responsives margin-top-10 margin-bottom-10">
<img src="__PUBLIC__/m_web/images/thunderbolt_3/thunderbolt_3_three_03.jpg">
<div class="position_a">
<div class="thunderbolt_3_one_list">
<p class="text_24 text_black">Thunderbolt 3, NVMe M.2 SSD Hard Disk</p>
<p class="text_22 text_gray margin-top-14">SCM2T3-G40</p>
<!-- <p class="computer margin-top-40 text_22">
<a href="__ORICOROOT__/product/detail/id/6861/color/SCM2T3-G40-GY.html" target="_blank">View details</a>
</p> -->
</div>
</div>
</div>
</div>
<!--第四屏-->
<div class="banner img-responsives position_r f_weight_100">
<img src="__PUBLIC__/m_web/images/thunderbolt_3/thunderbolt_3_four.jpg">
<div class="position_a text_white">
<div class="thunderbolt_3_four">
<p class="text_38">Expansion With Real Thunderbolt 3</p>
<p class="text_24 margin-top-20">Thunderbolt 3, 8-In-1 Multi-Function Docking Station</p>
</div>
</div>
</div>
<!--第五屏-->
<div class="m_Container margin-top-10 margin-bottom-10 position_r img-responsives">
<div class="slider_blue">
<img src="__PUBLIC__/m_web/images/thunderbolt_3/thunderbolt_3_five.jpg">
<div class="position_a">
<div class="thunderbolt_3_one_list">
<p class="text_24 text_black">Thunderbolt 3, 8-In-1 Multi-Function Docking Station</p>
<p class="text_22 text_gray margin-top-14">8-In-1 Function + DC24V Power Supply</p>
<!-- <p class="computer margin-top-40 text_22">
<a href="__ORICOROOT__/product/detail/id/5481/color/TB3-S1-GY.html" target="_blank">View details</a>
</p> -->
</div>
</div>
</div>
</div>
<!--第六屏-->
<div class="banner img-responsives position_r">
<img src="__PUBLIC__/m_web/images/thunderbolt_3/thunderbolt_3_six.jpg">
<div class="position_a text_white text_center f_weight_100 line_height_38">
<div class="m_Container margin-top-50">
<p class="text_38 line-height-50">Look At The New Era</p>
<p class="text_22 margin-top-40">Thunderbolt 3 as one of the hot spots of latest technology, ORICO is keenly aware of the trends and always follow it, in order to create more comprehensive Thunderbolt 3 series products. From hard drive enclosure to docking station, it is a big step forward for ORICO. In terms of storage and expansion, ORICO focus on products such as Thunderbolt 3 hard drive enclosure, multi-bay enclosure and docking station, which will be release successively in the further time.</p>
</div>
</div>
</div>
<!--第七屏-->
<div class="text_black">
<p class="margin-top-50 margin-bottom-48 text_center f_weight_100 text_30">More Thunderbolt 3 series, coming Soon…</p>
</div>
<!--第八屏-->
<div class="banner img-responsives">
<img src="__PUBLIC__/m_web/images/thunderbolt_3/thunderbolt_3_eight.jpg">
</div>
<!--底部-->
{include file="include/bottom" /}
</div>
</body></html>

View File

@@ -0,0 +1,197 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Transparent Series / ORICO</title>
<meta name="keywords" content="Transparent Series">
<meta name="description" content="ORICO Transparent Series - Advocate Technology、Innovate the Future
Original transparent design, “naked” sincerity">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/transparent.css">
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner position_r img-responsives margin-top-90">
<img src="__PUBLIC__/m_web/images/transparent/transparent_banner.jpg">
<div class="transparent transparent_banner text_white">
<p class="big_title">Transparent Series</p>
<p class="des margin-top-10">Visible Chip</p>
<p class="des margin-top-10">Technology in Your Life</p>
</div>
</div>
<!--第二屏-->
<div class="m_Container text_black text_center">
<div class="title margin-top-50">Advocate Technology、Innovate the Future</div>
<div class="subtitle margin-top-10">Original transparent design, “naked” sincerity</div>
<div class="des margin-top-10 line-height-40">1. Transparent HDD enclosure: strength is nowhere.
Compatible with 2.5/3.5 inch drives, support USB3.0/3.1/3.1 Gen2 high-speed transmission, support UASP, break the limit, 10TB large-capacity .
<br> 
2. Transparent HUB: Transparency is a technology and an art.
The power of the dual power supply ports supports 4/7 port simultaneous transmission. The theoretical speed of USB3.0 interface is up to 5Gbps, easy to connect or transfer files.
 <br>
3. Transparent bluetooth speaker: Fully transparent design, Bluetooth wireless connection, transparent appearance, penetrating sound.
</div>
<video controls poster="__PUBLIC__/web/images/transparent/transparent_02_video.jpg" class="margin-top-14">
<source src="__PUBLIC__/web/images/transparent/video.mp4" type="video/mp4" />
您的浏览器不支持 video 标签。
Your browser does not support HTML5 video.
</video>
</div>
<!--第三屏-->
<div class="banner position_r img-responsives margin-top-20">
<img src="__PUBLIC__/m_web/images/transparent/transparent_01.jpg">
<div class="transparent transparent_03 text_white">
<p class="big_title line-height-45">Achieve More Creative Desktop Crafts
</p>
<p class="des margin-top-10">Expansion & Storage Combined
</p>
</div>
</div>
<!--第四屏-->
<div class="m_Container img-responsives text_black buy_computer">
<ul class="transparent_two_list">
<li class="position_r">
<img src="__PUBLIC__/m_web/images/transparent/transparent_list_01.jpg">
<div class="special_title">USB3.0 7-port Desktop HUB</div>
<!-- <div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=581452943579" class="buy_margin" target="_blank">Amazon</a>
<span class="subject_span">AliExpress</span>
</div> -->
</li>
<li class="position_r">
<img src="__PUBLIC__/m_web/images/transparent/transparent_list_02.jpg">
<div class="special_title">USB3.0 7-port Desktop HUB</div>
<!-- <div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=579136094508" class="buy_margin" target="_blank">Amazon</a>
<span class="subject_span">AliExpress</span>
</div> -->
</li>
<li class="position_r">
<img src="__PUBLIC__/m_web/images/transparent/transparent_list_03.jpg">
<div class="special_title">USB3.0 4-port Desktop HUB</div>
<!-- <div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=556374896537" class="buy_margin" target="_blank">Amazon</a>
<a href="https://item.jd.com/4721827.html" target="_blank">AliExpress</a>
</div> -->
</li>
<li class="position_r">
<img src="__PUBLIC__/m_web/images/transparent/transparent_list_04.jpg">
<div class="special_title">USB3.0 4-port Desktop HUB</div>
<!-- <div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=579136094508&skuId=3845703817955" class="buy_margin" target="_blank">Amazon</a>
<a href="https://item.jd.com/100001600550.html" target="_blank">AliExpress</a>
</div> -->
</li>
<li class="position_r">
<img src="__PUBLIC__/m_web/images/transparent/transparent_list_05.jpg">
<div class="special_title">2.5inch USB3.0 HDD Enclosure </div>
<!-- <div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=538189703406" class="buy_margin" target="_blank">Amazon</a>
<a href="https://item.jd.com/3714590.html" target="_blank">AliExpress</a>
</div> -->
</li>
<li class="position_r">
<img src="__PUBLIC__/m_web/images/transparent/transparent_list_06.jpg">
<div class="special_title">2.5inch Type-C HDD Enclosure</div>
<!-- <div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=538577044860" class="buy_margin" target="_blank">Amazon</a>
<a href="https://item.jd.com/100001503416.html" target="_blank">AliExpress</a>
</div> -->
</li>
<li class="position_r">
<img src="__PUBLIC__/m_web/images/transparent/transparent_list_07.jpg">
<div class="special_title">3.5inch USB3.0 HDD Enclosure </div>
<!-- <div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=548909679923" class="buy_margin" target="_blank">Amazon</a>
<a href="https://item.jd.com/4091495.html" target="_blank">AliExpress</a>
</div> -->
</li>
<li class="position_r">
<img src="__PUBLIC__/m_web/images/transparent/transparent_list_08.jpg">
<div class="special_title">3.5inch Type-C HDD Enclosure </div>
<!-- <div class="buy des text_center buy_button">
<a href="https://detail.tmall.com/item.htm?id=548909679923" class="buy_margin" target="_blank">Amazon</a>
<a href="https://item.jd.com/4091493.html" target="_blank">AliExpress</a>
</div> -->
</li>
</ul>
<ul class="transparent_one_list buy_computer">
<li>
<img src="__PUBLIC__/m_web/images/transparent/transparent_list_09.jpg">
<div class="special_text">
<div class="title">USB3.0 HDD dock </div>
<div class="subtitle margin-top-14">2.5/3.5inch applicable </div>
<!-- <div class="buy_button des margin-top-40">
<a href="https://detail.tmall.com/item.htm?id=548996604143" class="buy_margin" target="_blank">Amazon</a>
<a href="https://item.jd.com/5167714.html" target="_blank">AliExpress</a>
</div> -->
</div>
</li>
<li>
<img src="__PUBLIC__/m_web/images/transparent/transparent_list_10.jpg">
<div class="special_text">
<div class="title">Type-C HDD dock </div>
<div class="subtitle margin-top-14">USB3.1 Gen1, 2.5/3.5inch applicable </div>
<!-- <div class="buy_button des margin-top-40">
<a href="https://detail.tmall.com/item.htm?id=553654630082" class="buy_margin" target="_blank">Amazon</a>
<a href="https://item.jd.com/4884133.html" target="_blank">AliExpress</a>
</div> -->
</div>
</li>
</ul>
</div>
<!--第五屏-->
<div class="banner position_r img-responsives margin-top-10">
<img src="__PUBLIC__/m_web/images/transparent/transparent_02.jpg">
<div class="transparent transparent_05 text_black">
<p class="big_title">Visible Charm of Technology</p>
<p class="des margin-top-10 text_22" style="line-height: 1rem;">Newly emerging technology inclines to be “minimalist”, and interfaces of more laptops tend to be gradually reduced. So desktop HUB is an ideal solution to the problem.
</p>
</div>
</div>
<!--第六屏-->
<div class="banner position_r img-responsives">
<img src="__PUBLIC__/m_web/images/transparent/transparent_03.jpg">
<div class="transparent transparent_06 text_black">
<p class="big_title line-height-45">Transparent Speaker<br>Perfect Life Companion</p>
</div>
</div>
<!--第七屏-->
<div class="m_Container img-responsives text_black">
<ul class="transparent_one_list buy_computer">
<li>
<img src="__PUBLIC__/m_web/images/transparent/transparent_list_11.jpg">
<div class="special_text">
<div class="title">Transparent Bluetooth Speaker </div>
<div class="subtitle margin-top-14">Bluetooth4.2/Hi-fi quality/3-mode
</div>
<!-- <div class="buy_button des margin-top-40">
<a href="https://detail.tmall.com/item.htm?id=580658016171&sku_properties=5919063:6536025" class="buy_margin" target="_blank">Amazon</a>
<a href="https://item.jd.com/37713289565.html" target="_blank">AliExpress</a>
</div> -->
</div>
</li>
</ul>
</div>
<div class="m_Container text_center margin-top-35 text_black ">More family members are coming
</div>
<br class="bottom-margin">
<!--底部-->
{include file="include/bottom" /}
</div>
</body>
</html>

View File

@@ -0,0 +1,60 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Vision & Mission</title>
<meta name="keywords" content="">
<meta name="description" content="">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/style.css">
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--内容-->
<div class="margin-25"></div>
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/brand/product-banner.jpg"></div>
<div class="m_vision ">
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/vision/vision_01.jpg"></div>
<div class="vision-title text_left margin-top-50">Annual production capacity over 4B.</div>
<div class="vision-con text_gray text_left line-height-40 margin-top-40">We apply more advanced Type-C technical scheme whose data transmission speed reaches up to 10Gbps into our classic storage, innovative expansion products, 3C accessories and more daily gadgets. As for function expansion of Type-C, it can be compatible with Apple Thunderbolt3 port and can support data transmission, PD two-way power deliver and more functions.</div>
</div>
<div class="m_vision">
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/vision/vision_02.jpg"></div>
<div class="vision-title text_left margin-top-50">USB Data/Power Transmission Technology</div>
<div class="vision-con text_gray text_left line-height-40 margin-top-40">ORICO keeps exploring and innovating USB technology, for example, we develop the data transmission technology from USB2.0 to leading USB3.1 tech; we apply USB weak current to digital devices and more products. ORICO will pursue more breakthroughs with the technological age.</div>
</div>
<div class="m_vision">
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/vision/vision_03.jpg"></div>
<div class="vision-title text_left margin-top-50">Household Strong Current Safety Technology</div>
<div class="vision-con text_gray text_left line-height-40 margin-top-40">Involved in household power strip and other products powered on 220V strong voltage, we take all aspects into account to ensure security, including material select and electronic structure design. Our products are qualified national 3C standard, overseas FCC and other relevant certificates.</div>
</div>
<div class="m_vision">
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/vision/vision_04.jpg"></div>
<div class="vision-title text_left margin-top-50">Deep Research on USB Technology</div>
<div class="vision-con text_gray text_left line-height-40 margin-top-40">The development and innovation of USB technology is vast and infinite. For a long time in the future, ORICO will concentrate on the exploration and innovation of USB technology and use it more in transmission, power, audio and video to better facilitate people and promote the breakthrough transformation of transmission technology. Rome was not built in one day. We know that only by bringing together small changes will it be possible to explore greater innovations, and make our career endless through accumulation.</div>
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/vision/vision_05.jpg"></div>
<div class="vision-title text_left margin-top-50">Provide Better Choices for A Better Life</div>
<div class="vision-con text_gray text_left line-height-40 margin-top-40">Change is not only the responsibility of each ORICO employee, but also the opportunity. We expect our change, just like our brand's iconic element, Archimedes screw, to make small changes and corrections in the direction, and to continue to radiate farther away to explore the unknown. Our initial dream of the departure will be as clear as ever. ORICO hopes to explain the power of change to employees, users, and the wider world!</div>
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/vision/vision_06.jpg"></div>
<div class="vision-title text_left margin-top-50">Power of Change</div>
<div class="vision-con text_gray text_left line-height-40 margin-top-40">For the public, ORICO advocates to change the “habitual” lifestyle, encourages everyone to pursue a better life!</div>
</div>
<br class="bottom-margin">
<!--底部-->
{include file="include/bottom" /}
</div>
</body>
</html>

View File

@@ -0,0 +1,86 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>We are_ORICO</title>
<meta name="keywords" content="">
<meta name="description" content="henzhen ORICO Technologies Co., Ltd. was established in 2009, and its brand ORICO is an innovative national high-tech enterprise focusing on USB data transmission and USB charging technology.">
{include file="include/head" /}
<script type="text/javascript">
var navID = "1";
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/special.css">
</head>
<body>
<div id="content">
<!--头部-->
{include file="include/top" /}
<!--banner-->
<div class="banner img-responsive">
<img src="__PUBLIC__/m_web/images/culture/weare_banner.jpg">
</div>
<!--内容-->
<div class="m_Container">
<div class="title text_center margin-top-50">We are</div>
<div class="des text_gray text_center line-height-40 margin-top-14 text-indent_48">Shenzhen ORICO Technologies Co., Ltd. was established in 2009, and its brand ORICO is an innovative national high-tech enterprise focusing on USB data transmission and USB charging technology.</div>
<div class="img-responsive margin-top-14"><img src="__PUBLIC__/m_web/images/culture/weare_01.jpg"></div>
</div>
<div class="m_Container">
<div class="title text_center margin-top-50">IDEA</div>
<div class="des text_gray text_center line-height-40 margin-top-14 text-indent_48">In ORICO, from product to service, we insist on seeking truth and being pragmatic. We have pioneering thinking and not constrained, and we are striving for great mission from every subtle changes.</br>ORICO has the manufacturing strength of R&D, design and production of the entire industrial chain. It also has the R&D strength for timely tracking and research of new technologies, as well as the simultaneous development of online platforms and offline channels, and complementary global sales networks. There is also a "two-week research and development, one-week production, MOQ of one" featured 211 service; continue to export USB and consumer electronics products for the market, while quickly capture and reflect market changes, and constantly upgrade products and services.</div>
<div class="img-responsive margin-top-14"><img src="__PUBLIC__/m_web/images/culture/weare_02.jpg"></div>
</div>
<div class="m_Container">
<div class="title text_center margin-top-50">MISSION</div>
<div class="weare_line"></div>
<div class="des text_gray text_center">Mission</div>
<div class="des text_gray text_center line-height-40 margin-top-14 text-indent_48">We shoulders the corporate development mission of “help customers, help employees, help investors and shoulder social responsibility”. It is necessary to gain insight into the essential needs of consumers, to provide better choices in the way small changes. At the same time, create a fair, reasonable and respectful atmosphere for corporate partners, employees and their families to realize themselves.</br>Looking forward to the future, ORICO will strive to provide more comprehensive products and technical support to the market through the firm pursuit of technology and manufacturing, and provide better choices for people's pursuit of a better life. We will also take social responsibility, promote resource reciprocity, and speak for Chinese companies and Chinese manufacturing.</div>
<div class="img-responsive margin-top-14"><img src="__PUBLIC__/m_web/images/culture/weare_03.jpg"></div>
</div>
<div class="m_Container">
<div class="title text_center margin-top-50">Products sell well for 9 years worldwide</div>
<div class="des text_gray text_center line-height-40 margin-top-20">Since the establishment of ORICO, it has opened up domestic and overseas offline channels in many countries around the world for 9 years, and has independent agents and distributors in many countries. At the same time, in the B2C business segment, ORICO has been accepted by the industry in the external HDD enclosure and USB3.0 peripherals for four consecutive years. Its intelligent fast charging surge protector keeps the top 5 in the rapid growth.</div>
</div>
<div class="m_Container">
<div class="title text_center margin-top-30">Superior R&D team</div>
<div class="des text_gray text_center line-height-40 margin-top-20">Established a professional R & D team of nearly 100 senior engineers, structural engineers, electronic engineers, etc. Become a company with a technical reserve. 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.</div>
</div>
<div class="m_Container">
<div class="title text_center margin-top-30">Annual production capacity exceeds 4 billion</div>
<div class="des text_gray text_center line-height-40 margin-top-20">ORICO invested nearly 80 million to build Internet & Creativity Industrial Park, which integrates maker training, project incubation, industry acceleration, investment and financing, and listing cultivation as a whole. The annual production capacity can exceed 4 billion yuan.</div>
</div>
<div class="m_Container">
<div class="title text_center margin-top-40">Learn about ORICO</div>
<div class="weare_line"></div>
<div class="subtitle text_black text_center">Office environment</div>
<div class="des text_gray text_center line-height-40 margin-top-10">The working environment is an important embodiment of the corporate culture. ORICO office is quiet, clean and bright, and the working environment gives employees a sense of independence and comfort, and motivates the enthusiasm and creativity of employees.</div>
<div class="img-responsive margin-top-14"><img src="__PUBLIC__/m_web/images/culture/weare_04.jpg"></div>
<div class="img-responsive margin-top-10"><img src="__PUBLIC__/m_web/images/culture/weare_05.jpg"></div>
<div class="img-responsive margin-top-10"><img src="__PUBLIC__/m_web/images/culture/weare_06.jpg"></div>
</div>
<div class="m_Container">
<div class="title text_center margin-top-50">Factory equipments</div>
<div class="des text_gray text_center line-height-40 margin-top-10 text-indent_48">Adopting 5S management is the premise of creating excellent products. Orico has introduced advanced equipment in the industry and has guaranteed the realization of exquisite technology to ensure high quality of products and high production capacity.</div>
<div class="img-responsive margin-top-14"><img src="__PUBLIC__/m_web/images/culture/weare_07.jpg"></div>
<div class="img-responsive margin-top-10"><img src="__PUBLIC__/m_web/images/culture/weare_08.jpg"></div>
<div class="img-responsive margin-top-10"><img src="__PUBLIC__/m_web/images/culture/weare_09.jpg"></div>
</div>
<br class="bottom-margin">
<!--底部-->
{include file="include/bottom" /}
</div>
</body>
</html>

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