init
This commit is contained in:
591
app/mobile/common.php
Executable file
591
app/mobile/common.php
Executable file
@@ -0,0 +1,591 @@
|
||||
<?php
|
||||
|
||||
use think\Loader;
|
||||
use think\Config;
|
||||
use think\Request;
|
||||
use \app\common\model\ProductBkImage;
|
||||
/**
|
||||
* 把两个日期格式的字符串转化成unix时间戳,然后相减获得时间戳差,最后判断剩余时间,生成类似(2小时30分钟20秒前发布)这样的时间格式。
|
||||
* $time_s int 起始日期的Unix时间
|
||||
* $time_n int 当前日期的Unix时间
|
||||
*/
|
||||
|
||||
define('COUNTRY_CODE', 'ZH');
|
||||
function getHMStime($time_s, $time_n) {
|
||||
//$time_s = strtotime($time_s);
|
||||
//$time_n = strtotime($time_n);
|
||||
//$time_n = time();
|
||||
$strtime = '';
|
||||
$time = $time_n - $time_s;
|
||||
if ($time >= 86400) {
|
||||
return $strtime = date('Y-m-d H:i', $time_s);
|
||||
}
|
||||
if ($time >= 3600) {
|
||||
$strtime .= intval($time / 3600) . '小时';
|
||||
$time = $time % 3600;
|
||||
} else {
|
||||
$strtime .= '';
|
||||
}
|
||||
if ($time >= 60) {
|
||||
$strtime .= intval($time / 60) . '分钟';
|
||||
$time = $time % 60;
|
||||
} else {
|
||||
$strtime .= '';
|
||||
}
|
||||
if ($time > 0) {
|
||||
$strtime .= intval($time) . '秒前';
|
||||
} else {
|
||||
$strtime = '时间错误';
|
||||
}
|
||||
return $strtime;
|
||||
}
|
||||
function getBlogList($limit = 6, $where = array(), $order = array()) {
|
||||
if (empty($limit)) {
|
||||
$limit = Config::get('list_rows') > 0 ? Config::get('list_rows') : 6;
|
||||
}
|
||||
$arg_where = array_merge(['stat' => 1, 'country_code' => COUNTRY_CODE], $where);
|
||||
$arg_field = ['*'];
|
||||
$arg_order = ['id' => 'desc'];
|
||||
$result = Loader::model('Blog')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
|
||||
return $result;
|
||||
}
|
||||
|
||||
function getFaqList($limit = 6, $where = array(), $order = array()) {
|
||||
if (empty($limit)) {
|
||||
$limit = Config::get('list_rows') > 0 ? Config::get('list_rows') : 6;
|
||||
}
|
||||
$arg_where = array_merge(['stat' => 0,'is_home' => 1, 'country_code' => COUNTRY_CODE], $where);
|
||||
$arg_field = ['*'];
|
||||
$arg_order = ['sort' =>
|
||||
'asc', 'id' => 'desc'];
|
||||
$result = Loader::model('fq')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
function getArticleList($limit = 3, $where = array(), $order = array()) {
|
||||
if (empty($limit)) {
|
||||
$limit = Config::get('list_rows') > 0 ? Config::get('list_rows') : 3;
|
||||
}
|
||||
$arg_where = array_merge( ['cid' => 1,'stat' => 0, 'country_code' => COUNTRY_CODE], $where);
|
||||
$arg_field = ['*'];
|
||||
$arg_order = ['createtime' => 'desc'];
|
||||
$result = Loader::model('Article')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
|
||||
|
||||
$arg_wheres = array_merge( ['cid' => 33,'stat' => 0, 'country_code' => COUNTRY_CODE], $where);
|
||||
$rest = Loader::model('Article')->getList($arg_wheres, array_merge($arg_order, $order), $arg_field, $limit);
|
||||
|
||||
$array = array_merge($result, $rest);
|
||||
//echo Loader::model('Article')->getLastSQL();die;
|
||||
|
||||
return $array;
|
||||
}
|
||||
/**
|
||||
* 计算剩余天时分。
|
||||
* $unixEndTime string 终止日期的Unix时间
|
||||
*/
|
||||
function getDHMtime($unixEndTime = 0) {
|
||||
if ($unixEndTime <= time()) { // 如果过了活动终止日期
|
||||
return '0天0时0分';
|
||||
}
|
||||
// 使用当前日期时间到活动截至日期时间的毫秒数来计算剩余天时分
|
||||
$time = $unixEndTime - time();
|
||||
$days = 0;
|
||||
if ($time >= 86400) { // 如果大于1天
|
||||
$days = (int) ($time / 86400);
|
||||
$time = $time % 86400; // 计算天后剩余的毫秒数
|
||||
}
|
||||
$xiaoshi = 0;
|
||||
if ($time >= 3600) { // 如果大于1小时
|
||||
$xiaoshi = (int) ($time / 3600);
|
||||
$time = $time % 3600; // 计算小时后剩余的毫秒数
|
||||
}
|
||||
$fen = (int) ($time / 60); // 剩下的毫秒数都算作分
|
||||
return $days . '天' . $xiaoshi . '时' . $fen . '分';
|
||||
}
|
||||
|
||||
function getDifferentProduct($type, $limit = 12, $where = array(), $order = array()) {
|
||||
if (empty($limit)) {
|
||||
$limit = Config::get('list_rows') > 0 ? Config::get('list_rows') : 12;
|
||||
}
|
||||
$arg_where = array_merge(['stat' => 0,'is_show' => 0, 'country_code' => COUNTRY_CODE], $where);//print_r($where);die;
|
||||
$arg_field = ['id', 'cid', 'name', 'shortname', 'sort', 'ishot', 'isnew', 'recommend', 'viewcount', 'tags', 'description', 'picture', 'picture_back', 'bk_img', 'bk_img_back','list_bk_img', 'createtime'];
|
||||
$bkinfo = ['id','product_id','image_url','image_bk_color','image_color','original_url'];
|
||||
|
||||
switch ($type) {
|
||||
case 'recommend':
|
||||
// $arg_order['sort'] = 'asc';
|
||||
$arg_order['id'] = 'desc';
|
||||
$arg_where['recommend'] = 1;
|
||||
$result = Loader::model('Product')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
|
||||
|
||||
//print_r($result);die;
|
||||
break;
|
||||
case 'headline':
|
||||
$arg_order['sort'] = 'asc';
|
||||
$arg_order['id'] = 'desc';
|
||||
$arg_where['headline'] = 1;
|
||||
$result = Loader::model('Product')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
|
||||
break;
|
||||
case 'ishot':
|
||||
$arg_order['sort'] = 'asc';
|
||||
$arg_order['id'] = 'desc';
|
||||
$arg_where['ishot'] = 1;
|
||||
$result = Loader::model('Product')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
|
||||
break;
|
||||
case 'isnew':
|
||||
$arg_order['sort'] = 'asc';
|
||||
$arg_order ['id'] = 'desc';
|
||||
$arg_where['isnew'] = 1;
|
||||
$result = Loader::model('Product')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
|
||||
break;
|
||||
default:
|
||||
if (!empty($order)) {
|
||||
$arg_order = $order;
|
||||
}
|
||||
$arg_order['sort'] = 'asc';
|
||||
$arg_order['id'] = 'desc';
|
||||
$result = Loader::model('Product')->getList($arg_where, array_merge($arg_order, $order), $arg_field, $limit);
|
||||
break;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
function getDifferentArticle($type, $limit = 12, $where = array(), $order = array()) {
|
||||
if (empty($limit)) {
|
||||
$limit = Config::get('list_rows') > 0 ? Config::get('list_rows') : 12;
|
||||
}
|
||||
$arg_where = array_merge(['stat' => 0, 'country_code' => COUNTRY_CODE], $where);
|
||||
//$arg_where['is_onsale'] = 1;
|
||||
$arg_field = ['id', 'cid', 'name', 'sort', 'headline','jump_link', 'ishot', 'recommend', 'zancount', 'viewcount', 'description', 'picture', 'createtime'];
|
||||
switch ($type) {
|
||||
case 'recommend':
|
||||
$arg_order['createtime'] = 'desc';
|
||||
$arg_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, '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, 'c.stat' => 0, 'p.is_show' => 0, 'p.country_code' => COUNTRY_CODE], $where);
|
||||
$arg_field = ['p.bk_img_back_color','p.bk_img_color','p.picture_back_color','p.picture_color','p.id', 'p.cid', 'p.name', 'p.shortname', 'p.sort', 'p.ishot', 'p.isnew','p.brand_id', 'p.recommend', 'p.viewcount', 'p.tags','p.list_bk_img', 'p.description', 'p.picture', 'p.picture_back', 'p.createtime', 'p.createtime', 'c.name' => 'categoryname', 'c.id' => 'categoryid'];
|
||||
$arg_order['p.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();
|
||||
// 获取二级图片
|
||||
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 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, '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]);
|
||||
}
|
||||
|
||||
|
||||
30
app/mobile/config.php
Executable file
30
app/mobile/config.php
Executable 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/mobile'
|
||||
'__ORICOROOT__' => 'https://www.orico.com.cn/mobile'
|
||||
],
|
||||
//分页配置
|
||||
'paginate' => [
|
||||
'type' => '\pagination\FrontPagination',
|
||||
'var_page' => 'page',
|
||||
'list_rows' => 12,
|
||||
],
|
||||
];
|
||||
185
app/mobile/controller/Ad.php
Executable file
185
app/mobile/controller/Ad.php
Executable file
@@ -0,0 +1,185 @@
|
||||
<?php
|
||||
|
||||
namespace app\mobile\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();
|
||||
}
|
||||
|
||||
}
|
||||
119
app/mobile/controller/Agents.php
Executable file
119
app/mobile/controller/Agents.php
Executable file
@@ -0,0 +1,119 @@
|
||||
<?php
|
||||
|
||||
namespace app\mobile\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');
|
||||
}
|
||||
|
||||
}
|
||||
361
app/mobile/controller/Antifake.php
Executable file
361
app/mobile/controller/Antifake.php
Executable file
@@ -0,0 +1,361 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: ORICO
|
||||
* Date: 2019-07-25
|
||||
* Time: 11:43
|
||||
*/
|
||||
|
||||
namespace app\mobile\controller;
|
||||
use think\Loader;
|
||||
use think\Cookie;
|
||||
use think\Config;
|
||||
use think\validate;
|
||||
class Antifake extends BaseController
|
||||
{
|
||||
|
||||
// public function anti_fake_inlet()
|
||||
// {
|
||||
// echo '系统维护中,请稍后再试!';exit;
|
||||
// }
|
||||
|
||||
public function anti_fake_inlet()
|
||||
{
|
||||
$this->redirect("https://anti-fake-checking.com/index");
|
||||
// $jssdk=new \JsSdk\JsSdk('wx0d4ac6d59abca442','489aaf23cf26f63346e1b456cb264099');
|
||||
// $jssdk=new \JsSdk\JsSdk('wx0d4ac6d59abca442','c482b3f5d1354533e9e14ad294016551');
|
||||
$jssdk=new \JsSdk\JsSdk('wxc0d2e35e015dd0fc','fe931c45ce3513d195c689de9ec1696f');
|
||||
$signPackage = $jssdk->getSignPackage();
|
||||
$this->assign('singpackage',$signPackage);
|
||||
return $this->view->fetch('anti_fake_inlet');
|
||||
}
|
||||
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(!request()->isAjax()){
|
||||
$this->assign('sn',$this->request->get('qrresult'));
|
||||
//return $this->fetch();
|
||||
}
|
||||
|
||||
|
||||
$post = $this->request->get();
|
||||
// dump($post);
|
||||
$fake = $post['qrresult'];
|
||||
$fake = substr($fake,strripos($fake,",")+1);
|
||||
$fake = str_replace('-','',$fake);
|
||||
$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);
|
||||
//return json($data);
|
||||
} else {
|
||||
$postdata = ['sn'=>$fake];
|
||||
$postdata = http_build_query($postdata);
|
||||
$sn = CurlRequest('http://mes.orico.com.cn:8081/content/mes/web/api/fwm.aspx', $postdata);
|
||||
$sn = json_decode($sn, true);
|
||||
// $sn = json_decode($sn, true);//dump($sn);die;
|
||||
if ($sn['result'] == 1) {
|
||||
$data['sn'] = $fake;
|
||||
$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");
|
||||
$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);
|
||||
//return json($data);
|
||||
} else {
|
||||
$data['sn']=$fake;
|
||||
$data['result'] = $sn['result'];
|
||||
$this->assign('data',$data);
|
||||
// return json($data);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return $this->fetch();
|
||||
|
||||
}
|
||||
|
||||
public function anti_fake_scan_result()
|
||||
{
|
||||
if(!request()->isAjax()){
|
||||
$this->assign('sn',$this->request->get('qrresult'));
|
||||
//return $this->fetch();
|
||||
}
|
||||
|
||||
$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;
|
||||
$data['first'] = 0;
|
||||
$this->assign('data', $data);
|
||||
//return json($data);
|
||||
} else {
|
||||
$postdata = ['fwm'=>$fake];
|
||||
$postdata = http_build_query($postdata);
|
||||
$sn = CurlRequest('http://mes.orico.com.cn:8081/content/mes/web/api/fwm.aspx', $postdata);
|
||||
$sn = json_decode($sn, true);
|
||||
// $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");
|
||||
$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'];
|
||||
$data['first'] = 1;
|
||||
$this->assign('data',$data);
|
||||
//return json($data);
|
||||
} else {
|
||||
$data['fake']=$fake;
|
||||
$data['first'] = 0;
|
||||
$data['result'] = $sn['result'];
|
||||
$this->assign('data',$data);
|
||||
// return json($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:8081/content/mes/web/api/fwm.aspx', $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");
|
||||
$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:8081/content/mes/web/api/fwm.aspx', $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");
|
||||
$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_sn()
|
||||
{
|
||||
//if ($_POST) {
|
||||
//$post = $this->request->post();
|
||||
//if($post['sn']==''){
|
||||
// $this->error('请输入SN码');
|
||||
//}
|
||||
//$this->verify_check($post['captcha'], 'authcode') || $this->error('验证码有误', url('fake/index'));
|
||||
$fake = 'Q929T1Y3';
|
||||
|
||||
$postdata = ['sn'=>$fake];
|
||||
$postdata = http_build_query($postdata);
|
||||
|
||||
$sn = https_request('http://mes.orico.com.cn:8081/content/mes/web/api/fwm.aspx', $fake);
|
||||
|
||||
//$sn = CurlRequest('http://mes.orico.com.cn:8081/content/mes/web/api/fwm.aspx', $postdata);
|
||||
$sn = json_decode($sn, true);
|
||||
|
||||
echo "<pre>=="; print_r($sn);die;
|
||||
//$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");
|
||||
$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();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
196
app/mobile/controller/Article.php
Executable file
196
app/mobile/controller/Article.php
Executable file
@@ -0,0 +1,196 @@
|
||||
<?php
|
||||
|
||||
namespace app\mobile\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]); //分页参数
|
||||
|
||||
}
|
||||
$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_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, 12);
|
||||
|
||||
//echo Loader::model('Article')->getLastSql(); die;
|
||||
$value = [
|
||||
'list' => $dataObject->isEmpty() ? null : $dataObject->items(), //$dataObject->getCollection()->toArray()
|
||||
'page' => $dataObject->render(),
|
||||
'category' => ['id' => reset($cate_list)['id'], 'name' => '新闻资讯'],
|
||||
];
|
||||
$value['cate_list'] = $cate_list;
|
||||
|
||||
|
||||
$value['seo_title'] = config('article_seo_title')? : config('website_seo_title');
|
||||
$value['seo_keyword'] = config('article_seo_keyword')? : config('website_seo_keyword');
|
||||
$value['seo_description'] = config('article_seo_description')? : config('website_seo_description');
|
||||
$this->assign($value);
|
||||
$this->assign('search',$search);
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
public function catelists($id = 0) {
|
||||
if ($id > 0) {
|
||||
$category = Loader::model('ArticleCategory')->getRow($id);
|
||||
}
|
||||
if (empty($category)) {
|
||||
return exception('数据有误,请检查后再操作');
|
||||
}
|
||||
|
||||
$arg_where = ['cid' => $id, 'a.country_code' => $this->country_code];
|
||||
$skeyword = $this->request->get('name', '', 'urldecode,strval');
|
||||
if ($skeyword != '') {
|
||||
$skeyword = trim($skeyword);
|
||||
$search['skeyword'] = $skeyword;
|
||||
$arg_where['a.name'] = ['like', '%' . $search['skeyword'] . '%'];
|
||||
Config::set('paginate.query', ['skeyword' => $skeyword]); //分页参数
|
||||
$value['search'] = $search;
|
||||
}
|
||||
|
||||
switch ($category['classtype']) {
|
||||
case 2:
|
||||
$template = $category['templist'];
|
||||
$arg_order = ['a.id' => 'desc'];
|
||||
$arg_field = ['a.id', 'a.cid', 'a.name', 'a.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;
|
||||
}
|
||||
//echo "<pre>=="; print_r($dataObject);die;
|
||||
$cate_list = model('article_category')->where(['country_code' => $this->country_code, 'pid' => 0, 'isshow' => 1, 'stat' => 0])->order(['sort' => 'asc'])->select();
|
||||
$value['cate_list'] = $cate_list;
|
||||
$value['category'] = $category;
|
||||
$value['seo_title'] = $category['seo_title']? : config('website_seo_title');
|
||||
$value['seo_keyword'] = $category['seo_keyword']? : config('website_seo_keyword');
|
||||
$value['seo_description'] = $category['seo_description']? : config('website_seo_description');
|
||||
$this->assign($value);
|
||||
return $this->fetch($template);
|
||||
}
|
||||
|
||||
public function detail($id = 0) {
|
||||
if ($id > 0) {
|
||||
//$jssdk=new \JsSdk\JsSdk('wx0d4ac6d59abca442','8103022bb6ed902eb5c685800a78fd51');
|
||||
//$signPackage = $jssdk->getSignPackage();
|
||||
//$this->assign('singpackage',$signPackage);
|
||||
|
||||
$article = Loader::model('Article')->getRow($id);
|
||||
if (empty($article)) {
|
||||
return exception('数据有误,请检查后再操作');
|
||||
}
|
||||
|
||||
$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,
|
||||
];
|
||||
|
||||
$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, '点赞成功',$article['zancount']);
|
||||
} 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]);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
31
app/mobile/controller/Authcode.php
Executable file
31
app/mobile/controller/Authcode.php
Executable file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace app\mobile\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);
|
||||
}
|
||||
|
||||
}
|
||||
325
app/mobile/controller/BaseController.php
Executable file
325
app/mobile/controller/BaseController.php
Executable file
@@ -0,0 +1,325 @@
|
||||
<?php
|
||||
|
||||
namespace app\mobile\controller;
|
||||
|
||||
use think\Lang;
|
||||
use think\Loader;
|
||||
use think\Config;
|
||||
use think\Session;
|
||||
use think\Cookie;
|
||||
use app\common\controller\BaseController as Controller;
|
||||
|
||||
//<!--#include file="([0-9a-zA-Z/._-]+?)\.html" -->
|
||||
class BaseController extends Controller {
|
||||
|
||||
//当前用户
|
||||
protected $customer_id = 0;
|
||||
|
||||
# 当前国家编码
|
||||
protected $country_code = 'ZH';
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
// 初始化
|
||||
protected function _initialize() {
|
||||
parent::_initialize();
|
||||
if ($this->check_true_login())
|
||||
{
|
||||
$customer_info = json_decode(Cookie::get('c'), true);
|
||||
$this->view->assign('customer_info', $customer_info);
|
||||
$this->customer_id = $customer_info['id'];
|
||||
$this->customer_info = $customer_info;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->_logout();
|
||||
}
|
||||
|
||||
$this->view->assign('seo_title', (string) Config::get('website_seo_title'));
|
||||
$this->view->assign('seo_keyword', (string) Config::get('website_seo_keyword'));
|
||||
$this->view->assign('seo_description', (string) Config::get('website_seo_description'));
|
||||
//$this->categoryList = $this->cacheGet('productCategoryList');
|
||||
if (empty($this->productCategory)) {
|
||||
$this->categoryList = Loader::model('ProductCategory')->getList(['stat' => 0, 'siteid' => $this->siteid,'isshow'=>1, 'country_code' => $this->country_code], ['sort' => 'asc', 'id' => 'asc'], ['id', 'pid', 'haschild', 'name', 'shortname', 'sort', 'description', 'isshow', 'recommend', 'picture', 'm_icon', 'image', 'icon']);
|
||||
$this->cacheTag('ProductCategoryTag')->set('productCategoryList', $this->categoryList);
|
||||
}
|
||||
$this->productCategory = $this->list_to_tree($this->categoryList);
|
||||
// tiaoshi($this->productCategory);die;
|
||||
|
||||
if ($this->cacheHas('country_list')) {
|
||||
$this->country_list = $this->cacheGet('country_list');
|
||||
} else {
|
||||
$this->country_list = model('country')->where(['stat' => 0])->order(['sort' => 'asc'])->select();
|
||||
$this->cacheSet('country_list', $this->country_list, 3600);
|
||||
}
|
||||
$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);
|
||||
|
||||
//搜索推荐产品
|
||||
$search_views = Loader::model('Product')->where(['stat' => 0, 'siteid' => $this->siteid,'is_show'=>0, 'country_code' => $this->country_code])->limit(3)->order(['sort' => 'asc'])->select();
|
||||
$this->view->assign('popular_list', $search_views);
|
||||
|
||||
//$historyList = getBannerList(79, 5);
|
||||
$historyList = Loader::model('banner')->getList(['typeid'=>100,'stat' => 0, 'country_code' => COUNTRY_CODE], ['sort' => 'asc', 'id' => 'desc'], array('*'), 3);
|
||||
$this->view->assign('historyList', $historyList);
|
||||
//导航
|
||||
$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);
|
||||
}
|
||||
|
||||
protected function buildTree($data, $pid = 0)
|
||||
{
|
||||
$tree = [];
|
||||
foreach ($data as $val) {
|
||||
if ($val['pid'] == $pid) {
|
||||
$children = $this->buildTree($data, $val['id']);
|
||||
if (!empty($children)) {
|
||||
$val['items'] = $children;
|
||||
}
|
||||
$tree[] = $val;
|
||||
}
|
||||
}
|
||||
|
||||
return $tree;
|
||||
}
|
||||
|
||||
/**
|
||||
* nasNavigation 获取并组装nas专题页的top导航和footer
|
||||
*/
|
||||
protected function nasNavigation()
|
||||
{
|
||||
$navs = Loader::model('Navigation')->field([
|
||||
'id',
|
||||
'pid',
|
||||
'name',
|
||||
'url',
|
||||
'value',
|
||||
'data_type',
|
||||
'is_new_window_open',
|
||||
])
|
||||
->where('stat', '=', 0)
|
||||
->where('nav_type', '=', 'tops_nas_header')
|
||||
->where('country_code', '=', $this->country_code)
|
||||
->order('sort')
|
||||
->select();
|
||||
|
||||
$navs_array = collection($navs)->toArray();
|
||||
$header = $this->NavDataDealWith($navs_array);
|
||||
$this->assign('nav_header', $this->buildTree($header));
|
||||
}
|
||||
|
||||
//导航初始化
|
||||
private function navInit(){
|
||||
// 读取缓存数据
|
||||
//$header = $this->cacheGet('cache_common_nav_header_key');
|
||||
//$footer = $this->cacheGet('cache_common_nav_footer_key');
|
||||
|
||||
// 导航模型
|
||||
$field = array('id', 'pid', 'name', 'url', 'value', 'data_type', 'is_new_window_open');
|
||||
|
||||
// 缓存没数据则从数据库重新读取,顶部菜单
|
||||
//if(empty($header))
|
||||
//{
|
||||
$headerData = Loader::model('Navigation')->field($field)->where(array('nav_type'=>'header', 'stat'=>0, 'pid'=>0, 'country_code' => 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($category['pid'] == 0) {
|
||||
$v['url'] = 'product/catelists/id/'.$v['value'].'.html';
|
||||
}
|
||||
else{
|
||||
$v['url'] = 'product/subcatelists/id/'.$v['value'].'.html';
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
$data[$k] = $v;
|
||||
}
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 节点遍历
|
||||
* @param $list
|
||||
* @param string $pk
|
||||
* @param string $pid
|
||||
* @param string $child
|
||||
* @param int $root
|
||||
* return array
|
||||
*/
|
||||
protected function list_to_tree($list, $pk = 'id', $pid = 'pid', $child = 'child', $root = 0) {
|
||||
//header('content-type:text/html;charset=utf-8;');
|
||||
// 创建Tree
|
||||
$tree = [];
|
||||
if (is_array($list)) {
|
||||
// 创建基于主键的数组引用
|
||||
$refer = [];
|
||||
foreach ($list as $key => $data) {
|
||||
$list[$key] = $data->toArray();
|
||||
$refer[$data[$pk]] = & $list[$key];
|
||||
}
|
||||
foreach ($list as $key => $data) {
|
||||
// 判断是否存在parent
|
||||
$parentId = $data[$pid];
|
||||
if ($root == $parentId) {
|
||||
$tree[] = & $list[$key];
|
||||
} else {
|
||||
if (isset($refer[$parentId])) {
|
||||
$parent = & $refer[$parentId];
|
||||
$parent[$child][] = & $list[$key];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return $tree;
|
||||
}
|
||||
|
||||
private function check_login_token($customer_id, $curr_time, $p)
|
||||
{
|
||||
$expire = 86400 * 30;
|
||||
if (time() - $curr_time > $expire)
|
||||
return false;
|
||||
|
||||
$temp_p = $this->make_pwd($customer_id, $curr_time);
|
||||
if ($temp_p !== $p)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
protected function set_login_token($customer_info)
|
||||
{
|
||||
$curr_time = time();
|
||||
$p = $this->make_pwd($customer_info['id'], $curr_time);
|
||||
|
||||
$customer_info['telephone'] = $customer_info['telephone'] != '' ? substr_replace($customer_info['telephone'], '****', 3, 4) : '';
|
||||
$customer_info['email'] = $customer_info['email'] != '' ? substr_replace($customer_info['email'], '****', 2, 6) : '';
|
||||
$customer_info['have_pwd'] = $customer_info['password'] != '' ? 1 : 0;
|
||||
unset($customer_info['password']);
|
||||
|
||||
$customer_info['ct'] = $curr_time;
|
||||
$customer_info['p'] = $p;
|
||||
|
||||
$expire = 86400 * 30;
|
||||
Cookie::init(['expire' => $expire]);
|
||||
Cookie::set('c', $customer_info);
|
||||
}
|
||||
|
||||
private function make_pwd($customer_id, $curr_time)
|
||||
{
|
||||
$salt = 'Orico2019.';
|
||||
$p = md5(md5($customer_id . $curr_time . $salt));
|
||||
|
||||
return $p;
|
||||
}
|
||||
|
||||
private function check_login()
|
||||
{
|
||||
return Cookie::has('c');
|
||||
}
|
||||
|
||||
protected function check_true_login()
|
||||
{
|
||||
// 校验用户是否登录,且校验cookie合法性
|
||||
if (!$this->check_login())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$customer_info = json_decode(Cookie::get('c'), true);
|
||||
|
||||
$ct = isset($customer_info['ct']) ? $customer_info['ct'] : '';
|
||||
$p = isset($customer_info['p']) ? $customer_info['p'] : '';
|
||||
return $this->check_login_token($customer_info['id'], $ct, $p);
|
||||
}
|
||||
|
||||
protected function _logout()
|
||||
{
|
||||
if (Cookie::has('c'))
|
||||
Cookie::delete('c');
|
||||
|
||||
$this->customer_id = 0;
|
||||
}
|
||||
|
||||
}
|
||||
156
app/mobile/controller/Blog.php
Executable file
156
app/mobile/controller/Blog.php
Executable file
@@ -0,0 +1,156 @@
|
||||
<?php
|
||||
|
||||
namespace app\mobile\controller;
|
||||
|
||||
use think\Loader;
|
||||
use think\Cookie;
|
||||
use think\Config;
|
||||
use think\Db;
|
||||
|
||||
class Blog extends BaseController {
|
||||
|
||||
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');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
101
app/mobile/controller/Collection.php
Executable file
101
app/mobile/controller/Collection.php
Executable file
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
namespace app\mobile\controller;
|
||||
|
||||
use think\Loader;
|
||||
use think\Cookie;
|
||||
use think\Config;
|
||||
use think\validate;
|
||||
|
||||
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, '取消成功');
|
||||
}
|
||||
|
||||
}
|
||||
27
app/mobile/controller/Country.php
Executable file
27
app/mobile/controller/Country.php
Executable file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: ORICO
|
||||
* Date: 2018-12-10
|
||||
* Time: 13:48
|
||||
*/
|
||||
|
||||
namespace app\mobile\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('修改国家失败');
|
||||
}
|
||||
}
|
||||
}
|
||||
578
app/mobile/controller/Customer.php
Executable file
578
app/mobile/controller/Customer.php
Executable file
@@ -0,0 +1,578 @@
|
||||
<?php
|
||||
|
||||
namespace app\mobile\controller;
|
||||
|
||||
use think\Cookie;
|
||||
use think\Lang;
|
||||
use think\Loader;
|
||||
use think\Config;
|
||||
use think\Session;
|
||||
use think\Validate;
|
||||
use think\Cache;
|
||||
|
||||
class Customer extends BaseController {
|
||||
|
||||
public function login() {
|
||||
if ($this->customer_id > 0)
|
||||
$this->redirect(url('mobile/customer/personal'));
|
||||
|
||||
return view();
|
||||
}
|
||||
|
||||
public function quick_login() {
|
||||
if ($this->customer_id > 0)
|
||||
$this->redirect(url('mobile/customer/personal'));
|
||||
|
||||
return view();
|
||||
}
|
||||
|
||||
public function register() {
|
||||
if ($this->customer_id > 0)
|
||||
$this->redirect(url('mobile/customer/personal'));
|
||||
|
||||
return view();
|
||||
}
|
||||
public function personal() {
|
||||
if ($this->customer_id <= 0)
|
||||
$this->redirect(url('mobile/customer/login'));
|
||||
|
||||
return view();
|
||||
}
|
||||
|
||||
public function forgetpwd()
|
||||
{
|
||||
return view();
|
||||
}
|
||||
|
||||
# 用旧密码改新密码
|
||||
public function update_pwd()
|
||||
{
|
||||
$data = $this->request->post();
|
||||
if (empty($data) || $this->customer_id <= 0)
|
||||
{
|
||||
return $this->json(-1, '数据错误');
|
||||
}
|
||||
|
||||
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, '旧密码错误');
|
||||
}
|
||||
}
|
||||
|
||||
$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, '修改密码失败');
|
||||
}
|
||||
|
||||
$customer_info = model('customer')->getBasicInfo($this->customer_id);
|
||||
|
||||
$this->set_login_token($customer_info);
|
||||
return $this->json(200, '修改密码成功');
|
||||
}
|
||||
|
||||
# 用手机号/邮箱改密码
|
||||
public function update_forget_pwd()
|
||||
{
|
||||
$data = $this->request->post();
|
||||
|
||||
if (empty($data))
|
||||
{
|
||||
return $this->json(-1, '数据错误');
|
||||
}
|
||||
|
||||
if (isset($data['telephone']))
|
||||
{
|
||||
$flag = 1;
|
||||
if (!preg_match("/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/", $data['telephone']))
|
||||
{
|
||||
return $this->json(-2, '手机号格式错误');
|
||||
}
|
||||
|
||||
$captcha = $this->cacheGet('regtel' . $data['telephone'], 'error');
|
||||
if ($captcha != $data['captcha'])
|
||||
{
|
||||
return $this->json(-3, '验证码错误');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->json(-100, '邮箱暂不可用');
|
||||
$flag = 2;
|
||||
if (!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/", $data['email']))
|
||||
{
|
||||
return $this->json(-4, '邮箱格式错误');
|
||||
}
|
||||
|
||||
$captcha = $this->cacheGet('regemail' . $data['email'], 'error');
|
||||
if ($captcha != $data['captcha'])
|
||||
{
|
||||
return $this->json(-5, '验证码错误');
|
||||
}
|
||||
}
|
||||
|
||||
if (!preg_match("/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&*-.]+$)[a-zA-Z\d!@#$%^&*-.]{8,20}$/", $data['password']))
|
||||
{
|
||||
return $this->json(-6, '密码必须包含8-20个字符,且至少包含两种类型字符');
|
||||
}
|
||||
|
||||
if ($flag == 1)
|
||||
{
|
||||
$customer_info = model('customer')->getBasicInfoByTelephone($data['telephone']);
|
||||
if (empty($customer_info))
|
||||
{
|
||||
return $this->json(-7, '该手机号未注册');
|
||||
}
|
||||
|
||||
$update_data = [
|
||||
'password' => md5($data['password']),
|
||||
'salt' => $data['password']
|
||||
];
|
||||
$result = model('customer')->where(['telephone' => $data['telephone']])->update($update_data);
|
||||
}
|
||||
else
|
||||
{
|
||||
$customer_info = model('customer')->getBasicInfoByEmail($data['email']);
|
||||
if (empty($customer_info))
|
||||
{
|
||||
return $this->json(-8, '该邮箱未注册');
|
||||
}
|
||||
|
||||
$update_data = [
|
||||
'password' => md5($data['password']),
|
||||
'salt' => $data['password']
|
||||
];
|
||||
$result = model('customer')->where(['email' => $data['email']])->update($update_data);
|
||||
}
|
||||
|
||||
if (!$result)
|
||||
{
|
||||
return $this->json(-9, '修改密码失败,稍后再试');
|
||||
}
|
||||
|
||||
$this->_logout();
|
||||
return $this->json(200, '修改密码成功');
|
||||
}
|
||||
|
||||
public function bind_email()
|
||||
{
|
||||
$data = $this->request->post();
|
||||
|
||||
if (empty($data) || $this->customer_id <= 0)
|
||||
{
|
||||
return $this->json(-1, '数据错误');
|
||||
}
|
||||
|
||||
if (!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/", $data['email']))
|
||||
{
|
||||
return $this->json(-2, '邮箱格式错误');
|
||||
}
|
||||
|
||||
$customer_info = model('customer')->where(['email' => $data['email']])->find();
|
||||
if (!empty($customer_info))
|
||||
{
|
||||
return $this->json(-3, '邮箱已被使用');
|
||||
}
|
||||
|
||||
$update_data = [
|
||||
'email' => $data['email']
|
||||
];
|
||||
|
||||
$result = model('customer')->where(['id' => $this->customer_id])->update($update_data);
|
||||
if (!$result)
|
||||
{
|
||||
return $this->json(-3, '绑定邮箱失败,请稍后再试');
|
||||
}
|
||||
|
||||
$customer_info = model('customer')->getBasicInfo($this->customer_id);
|
||||
|
||||
$this->set_login_token($customer_info);
|
||||
return $this->json(200, '绑定邮箱成功');
|
||||
|
||||
}
|
||||
|
||||
# 旧手机号改新手机号
|
||||
public function update_tel()
|
||||
{
|
||||
$data = $this->request->post();
|
||||
// tiaoshi($data);die;
|
||||
if (empty($data) || $this->customer_id <= 0)
|
||||
{
|
||||
return $this->json(-1, '数据错误');
|
||||
}
|
||||
$customer_info = model('customer')->where(['id' => $this->customer_id])->find();
|
||||
if ($customer_info['telephone'] != $data['old_telephone'])
|
||||
{
|
||||
return $this->json(-2, '旧手机号错误');
|
||||
}
|
||||
|
||||
if (!preg_match("/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/", $data['new_telephone']))
|
||||
{
|
||||
return $this->json(-3, '手机号格式错误');
|
||||
}
|
||||
|
||||
$captcha = $this->cacheGet('regtel' . $data['new_telephone'], 'error');
|
||||
if ($captcha != $data['captcha'])
|
||||
{
|
||||
return $this->json(-4, '验证码错误');
|
||||
}
|
||||
|
||||
$update_data = [
|
||||
'telephone' => $data['new_telephone']
|
||||
];
|
||||
|
||||
$result = model('customer')->where(['id' => $this->customer_id])->update($update_data);
|
||||
if (!$result)
|
||||
{
|
||||
return $this->json(-5, '修改失败');
|
||||
}
|
||||
|
||||
$new_customer_info = model('customer')->getBasicInfo($this->customer_id);
|
||||
|
||||
$this->set_login_token($new_customer_info);
|
||||
return $this->json(200, '修改成功');
|
||||
}
|
||||
|
||||
public function new_register()
|
||||
{
|
||||
if ($this->customer_id > 0)
|
||||
return $this->json(-10001, '已经登录过');
|
||||
|
||||
$data = $this->request->post();
|
||||
if (empty($data))
|
||||
{
|
||||
return $this->json(-1, '数据错误');
|
||||
}
|
||||
|
||||
$customer = model('customer')->where(['telephone' => $data['telephone'], 'stat' => 0])->find();
|
||||
if (!empty($customer))
|
||||
return $this->json(-2, '该手机号已注册');
|
||||
|
||||
$captcha = $this->cacheGet('regtel' . $data['telephone'], 'error');
|
||||
if ($captcha != $data['captcha'])
|
||||
{
|
||||
return $this->json(-4, '验证码错误');
|
||||
}
|
||||
|
||||
$firstname = 'ORICO' . rand(10000000, 99999999);
|
||||
$insert_data = [
|
||||
'firstname' => $firstname,
|
||||
'telephone' => $data['telephone'],
|
||||
'addtime' => time()
|
||||
];
|
||||
|
||||
$customer_id = model('customer')->insertGetId($insert_data);
|
||||
if (!$customer_id)
|
||||
{
|
||||
return $this->json(-100, '注册失败');
|
||||
}
|
||||
|
||||
$customer_info = model('customer')->getBasicInfo($customer_id);
|
||||
|
||||
$this->set_login_token($customer_info);
|
||||
return $this->json(200, '注册成功');
|
||||
}
|
||||
|
||||
|
||||
public function new_login()
|
||||
{
|
||||
if ($this->customer_id > 0)
|
||||
return $this->json(-10001, '已经登录过');
|
||||
|
||||
$data = $this->request->post();
|
||||
if (empty($data))
|
||||
{
|
||||
return $this->json(-1, '数据错误');
|
||||
}
|
||||
|
||||
if (isset($data['password']))
|
||||
{
|
||||
// 密码登录
|
||||
if (preg_match("/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/", $data['username']))
|
||||
{
|
||||
$where = ['telephone' => $data['username']];
|
||||
}
|
||||
elseif (preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/", $data['username']))
|
||||
{
|
||||
$where = ['email' => $data['username']];
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->json(-2, '账号格式错误');
|
||||
}
|
||||
|
||||
$where['stat'] = 0;
|
||||
$customer_info = model('customer')->where($where)->field('id, firstname, picture, sex, email, telephone, qq, birthday, password')->find();
|
||||
if (empty($customer_info))
|
||||
{
|
||||
return $this->json(-3, '账号未注册');
|
||||
}
|
||||
if ($customer_info['password'] != md5($data['password']))
|
||||
{
|
||||
return $this->json(-4, '账号或密码错误');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// 短信验证码登录
|
||||
$captcha = $this->cacheGet('regtel' . $data['telephone'], 'error');
|
||||
if ($captcha != $data['captcha'])
|
||||
{
|
||||
return $this->json(-5, '验证码错误');
|
||||
}
|
||||
|
||||
$customer_info = model('customer')->getBasicInfoByTelephone($data['telephone']);
|
||||
if (empty($customer_info))
|
||||
{
|
||||
// 未注册直接入库
|
||||
$firstname = 'ORICO' . rand(10000000, 99999999);
|
||||
$insert_data = [
|
||||
'firstname' => $firstname,
|
||||
'telephone' => $data['telephone'],
|
||||
];
|
||||
|
||||
$customer_id = model('customer')->insertGetId($insert_data);
|
||||
if (!$customer_id)
|
||||
{
|
||||
return $this->json(-6, '登录失败');
|
||||
}
|
||||
|
||||
$customer_info = model('customer')->getBasicInfoByTelephone($data['telephone']);
|
||||
}
|
||||
}
|
||||
|
||||
$this->set_login_token($customer_info);
|
||||
return $this->json(200, '登录成功');
|
||||
}
|
||||
|
||||
public function new_logout()
|
||||
{
|
||||
$this->_logout();
|
||||
return $this->json(200, 'ok');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 前台用户登录
|
||||
*/
|
||||
public function check_login() {
|
||||
$data = $this->request->post();
|
||||
if (empty($data) || !is_array($data)) {
|
||||
return $this->json(-1, '未知错误');
|
||||
}
|
||||
|
||||
// $code = $this->cacheGet('regtel' . $data['telephone']);
|
||||
// if ($code != $data['code']) {
|
||||
// return $this->json(-1, '短信验证码不正确');
|
||||
// }
|
||||
|
||||
$validate = Loader::validate('customer');
|
||||
if (!$validate->scene('login')->check($data)) {
|
||||
return $this->json(-1, $validate->getError());
|
||||
}
|
||||
|
||||
// 登录成功
|
||||
$user = model('customer')->getBasicInfoByTelephone($data['telephone']);
|
||||
$curr_time = time();
|
||||
$token = $this->set_token($user['id'], $curr_time);
|
||||
|
||||
$data = [
|
||||
'user_info' => $user,
|
||||
'curr_time' => $curr_time,
|
||||
'token' => $token,
|
||||
];
|
||||
return $this->json(1, '登录成功', $data);
|
||||
}
|
||||
|
||||
public function check_register() {
|
||||
$data = $this->request->post();
|
||||
if (empty($data) || !is_array($data)) {
|
||||
return $this->json(-1, '未知错误');
|
||||
}
|
||||
|
||||
// $code = $this->cacheGet('regtel' . $data['telephone']);
|
||||
// if ($code != $data['code']) {
|
||||
// return $this->json(-1, '短信验证码不正确');
|
||||
// }
|
||||
|
||||
$validate = Loader::validate('customer');
|
||||
if (!$validate->scene('register')->check($data)) {
|
||||
return $this->json(-1, $validate->getError());
|
||||
}
|
||||
// tiaoshi($data);die;
|
||||
$addtime = time();
|
||||
$set = [
|
||||
'group_id' => 1,
|
||||
'telephone' => $data['telephone'],
|
||||
'firstname' => isset($data['firstname']) ? $data['firstname'] : '',
|
||||
// 'lastname' => isset($data['lastname']) ? $data['lastname'] : '',
|
||||
// 'newsletter' => isset($data['newsletter']) ? $data['newsletter'] : 0,
|
||||
'salt' => $data['password'],
|
||||
'password' => md5($data['password']),
|
||||
'stat' => 0,
|
||||
'safe' => 1,
|
||||
'code' => '',
|
||||
// 'item' => isset($data['item']) ? $data['item'] : 0,
|
||||
// 'token' => isset($data['token']) ? $data['token'] : '',
|
||||
// 'wishlist' => isset($data['wishlist']) ? $data['wishlist'] : '',
|
||||
// 'ip' => isset($data['ip']) ? $data['ip'] : '',
|
||||
// 'fenxiang' => isset($data['fenxiang']) ? $data['fenxiang'] : 0,
|
||||
// 'guanzhu' => isset($data['guanzhu']) ? $data['guanzhu'] : 0,
|
||||
// 'hangye' => isset($data['hangye']) ? $data['hangye'] : '',
|
||||
// 'zhiye' => isset($data['zhiye']) ? $data['zhiye'] : '',
|
||||
// 'sex' => isset($data['sex']) ? $data['sex'] : '',
|
||||
// 'birthday' => isset($data['birthday']) ? $data['birthday'] : '',
|
||||
// 'qq' => isset($data['qq']) ? $data['qq'] : '',
|
||||
'addtime' => $addtime,
|
||||
// 'custom_field' => json_encode([]),
|
||||
];
|
||||
$result = Loader::model('Customer')->insertRow($set);
|
||||
if ($result && $customer_id = $result->getData('id')) {
|
||||
$user = model('customer')->getBasicInfo($customer_id);
|
||||
$curr_time = time();
|
||||
$token = $this->set_token($customer_id, $curr_time);
|
||||
$data = [
|
||||
'user_info' => $user,
|
||||
'curr_time' => $curr_time,
|
||||
'token' => $token,
|
||||
];
|
||||
return $this->json(1, '注册成功', $data);
|
||||
} else {
|
||||
return $this->json(-1, '注册失败');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function sendsms() {
|
||||
$data = $this->request->post();
|
||||
|
||||
if (empty($data) || !is_array($data)) {
|
||||
return $this->json(-1, '未知错误');
|
||||
}
|
||||
|
||||
if (isset($data['login']) && $data['login'])
|
||||
{
|
||||
$customer_info = model('customer')->getBasicInfoByTelephone($data['telephone']);
|
||||
if (empty($customer_info))
|
||||
{
|
||||
return $this->json(-101, '手机号未注册');
|
||||
}
|
||||
}
|
||||
else if (isset($data['register']) && $data['register'])
|
||||
{
|
||||
$customer_info = model('customer')->getBasicInfoByTelephone($data['telephone']);
|
||||
if (!empty($customer_info))
|
||||
{
|
||||
return $this->json(-102, '手机号已注册');
|
||||
}
|
||||
}
|
||||
|
||||
$validaterule = [
|
||||
'telephone' => ['regex' => '^1[345789]\d{9}$'],
|
||||
];
|
||||
$validatemsg = [
|
||||
'telephone.regex' => '手机格式错误',
|
||||
];
|
||||
|
||||
$valid_result = $this->validate($data, $validaterule, $validatemsg);
|
||||
if (true !== $valid_result) {
|
||||
return $this->json(-2, $valid_result);
|
||||
}
|
||||
|
||||
$mobile = $data['telephone'];
|
||||
$curr_date = date('Y-m-d');
|
||||
// 当前手机号今天是否发送过验证码
|
||||
$is_send = Cache::get($mobile . $curr_date, '');
|
||||
if ($is_send) {
|
||||
// 如果发过,自增一次
|
||||
Cache::inc($mobile . $curr_date);
|
||||
} else {
|
||||
// 如果今天第一次发短信
|
||||
$expire = 86400;
|
||||
Cache::set($mobile . $curr_date, 1, $expire);
|
||||
}
|
||||
// 当天发送数量
|
||||
$today_send_count = Cache::get($mobile . $curr_date);
|
||||
// if ($today_send_count > 10) {
|
||||
// return $this->json(-102, '每天发送验证码不能超过10次');
|
||||
// }
|
||||
|
||||
//$mobile = $data['telephone'];
|
||||
//$code = mt_rand(10000, 99999);
|
||||
//$this->cacheSet('regtel' . $mobile, $code, 300);
|
||||
//return $this->success($code);
|
||||
//获取对象,如果上面没有引入命名空间,可以这样实例化:$sms = new \alisms\SendSms()
|
||||
$sms = new \alisms\SendSms();
|
||||
//设置关键的四个配置参数,其实配置参数应该写在公共或者模块下的config配置文件中,然后在获取使用,这里我就直接使用了。
|
||||
$sms->accessKeyId = (string) Config::get('sms_accesskeyid');
|
||||
$sms->accessKeySecret = (string) Config::get('sms_accesskeysecret');
|
||||
$sms->signName = (string) Config::get('sms_signname');
|
||||
$sms->templateCode = (string) Config::get('sms_templatecode');
|
||||
|
||||
|
||||
//模板参数,自定义了随机数,你可以在这里保存在缓存或者cookie等设置有效期以便逻辑发送后用户使用后的逻辑处理
|
||||
$code = mt_rand(10000, 99999);
|
||||
$this->cacheSet('regtel' . $mobile, $code, 300);
|
||||
$templateParam = array('code' => $code);
|
||||
$m = $sms->send($mobile, $templateParam);
|
||||
//类中有说明,默认返回的数组格式,如果需要json,在自行修改类,或者在这里将$m转换后在输出
|
||||
if ($m['Code'] == 'OK') {
|
||||
return $this->json(200, $m['Message']);
|
||||
} else {
|
||||
return $this->json(-1, $m['Message']);
|
||||
}
|
||||
}
|
||||
|
||||
/*个人中心*/
|
||||
|
||||
public function my_collection()
|
||||
{
|
||||
if ($this->customer_id <= 0)
|
||||
{
|
||||
$this->redirect('mobile/customer/login.html');
|
||||
}
|
||||
|
||||
$param = $this->request->param();
|
||||
// tiaoshi($param);die;
|
||||
$where = ['a.stat' => 0, 'b.stat' => 0, 'a.customer_id' => $this->customer_id];
|
||||
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);
|
||||
// echo model('collection')->getLastSql();die;
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
581
app/mobile/controller/Customer20191104.php
Executable file
581
app/mobile/controller/Customer20191104.php
Executable file
@@ -0,0 +1,581 @@
|
||||
<?php
|
||||
|
||||
namespace app\mobile\controller;
|
||||
|
||||
use think\Cookie;
|
||||
use think\Lang;
|
||||
use think\Loader;
|
||||
use think\Config;
|
||||
use think\Session;
|
||||
use think\Validate;
|
||||
use think\Cache;
|
||||
|
||||
class Customer extends BaseController {
|
||||
|
||||
public function login() {
|
||||
if ($this->customer_id > 0)
|
||||
$this->redirect(url('mobile/customer/personal'));
|
||||
|
||||
return view();
|
||||
}
|
||||
|
||||
public function quick_login() {
|
||||
if ($this->customer_id > 0)
|
||||
$this->redirect(url('mobile/customer/personal'));
|
||||
|
||||
return view();
|
||||
}
|
||||
|
||||
public function register() {
|
||||
if ($this->customer_id > 0)
|
||||
$this->redirect(url('mobile/customer/personal'));
|
||||
|
||||
return view();
|
||||
}
|
||||
public function personal() {
|
||||
if ($this->customer_id <= 0)
|
||||
$this->redirect(url('mobile/customer/login'));
|
||||
|
||||
return view();
|
||||
}
|
||||
|
||||
public function forgetpwd()
|
||||
{
|
||||
return view();
|
||||
}
|
||||
|
||||
# 用旧密码改新密码
|
||||
public function update_pwd()
|
||||
{
|
||||
$data = $this->request->post();
|
||||
if (empty($data) || $this->customer_id <= 0)
|
||||
{
|
||||
return $this->json(-1, '数据错误');
|
||||
}
|
||||
|
||||
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, '旧密码错误');
|
||||
}
|
||||
}
|
||||
|
||||
$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, '修改密码失败');
|
||||
}
|
||||
|
||||
$customer_info = model('customer')->getBasicInfo($this->customer_id);
|
||||
|
||||
$this->set_login_token($customer_info);
|
||||
return $this->json(200, '修改密码成功');
|
||||
}
|
||||
|
||||
# 用手机号/邮箱改密码
|
||||
public function update_forget_pwd()
|
||||
{
|
||||
$data = $this->request->post();
|
||||
|
||||
if (empty($data))
|
||||
{
|
||||
return $this->json(-1, '数据错误');
|
||||
}
|
||||
|
||||
if (isset($data['telephone']))
|
||||
{
|
||||
$flag = 1;
|
||||
if (!preg_match("/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/", $data['telephone']))
|
||||
{
|
||||
return $this->json(-2, '手机号格式错误');
|
||||
}
|
||||
|
||||
$captcha = $this->cacheGet('regtel' . $data['telephone'], 'error');
|
||||
if ($captcha != $data['captcha'])
|
||||
{
|
||||
return $this->json(-3, '验证码错误');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->json(-100, '邮箱暂不可用');
|
||||
$flag = 2;
|
||||
if (!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/", $data['email']))
|
||||
{
|
||||
return $this->json(-4, '邮箱格式错误');
|
||||
}
|
||||
|
||||
$captcha = $this->cacheGet('regemail' . $data['email'], 'error');
|
||||
if ($captcha != $data['captcha'])
|
||||
{
|
||||
return $this->json(-5, '验证码错误');
|
||||
}
|
||||
}
|
||||
|
||||
if (!preg_match("/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,20}$/", $data['password']))
|
||||
{
|
||||
return $this->json(-6, '密码必须包含8-20个字符,且包含数字和字母');
|
||||
}
|
||||
|
||||
if ($flag == 1)
|
||||
{
|
||||
$customer_info = model('customer')->getBasicInfoByTelephone($data['telephone']);
|
||||
if (empty($customer_info))
|
||||
{
|
||||
return $this->json(-7, '该手机号未注册');
|
||||
}
|
||||
|
||||
$update_data = [
|
||||
'password' => md5($data['password']),
|
||||
'salt' => $data['password']
|
||||
];
|
||||
$result = model('customer')->where(['telephone' => $data['telephone']])->update($update_data);
|
||||
}
|
||||
else
|
||||
{
|
||||
$customer_info = model('customer')->getBasicInfoByEmail($data['email']);
|
||||
if (empty($customer_info))
|
||||
{
|
||||
return $this->json(-8, '该邮箱未注册');
|
||||
}
|
||||
|
||||
$update_data = [
|
||||
'password' => md5($data['password']),
|
||||
'salt' => $data['password']
|
||||
];
|
||||
$result = model('customer')->where(['email' => $data['email']])->update($update_data);
|
||||
}
|
||||
|
||||
if (!$result)
|
||||
{
|
||||
return $this->json(-9, '修改密码失败,稍后再试');
|
||||
}
|
||||
|
||||
$this->_logout();
|
||||
return $this->json(200, '修改密码成功');
|
||||
}
|
||||
|
||||
public function bind_email()
|
||||
{
|
||||
$data = $this->request->post();
|
||||
|
||||
if (empty($data) || $this->customer_id <= 0)
|
||||
{
|
||||
return $this->json(-1, '数据错误');
|
||||
}
|
||||
|
||||
if (!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/", $data['email']))
|
||||
{
|
||||
return $this->json(-2, '邮箱格式错误');
|
||||
}
|
||||
|
||||
$customer_info = model('customer')->where(['email' => $data['email']])->find();
|
||||
if (!empty($customer_info))
|
||||
{
|
||||
return $this->json(-3, '邮箱已被使用');
|
||||
}
|
||||
|
||||
$update_data = [
|
||||
'email' => $data['email']
|
||||
];
|
||||
|
||||
$result = model('customer')->where(['id' => $this->customer_id])->update($update_data);
|
||||
if (!$result)
|
||||
{
|
||||
return $this->json(-3, '绑定邮箱失败,请稍后再试');
|
||||
}
|
||||
|
||||
$customer_info = model('customer')->getBasicInfo($this->customer_id);
|
||||
|
||||
$this->set_login_token($customer_info);
|
||||
return $this->json(200, '绑定邮箱成功');
|
||||
|
||||
}
|
||||
|
||||
# 旧手机号改新手机号
|
||||
public function update_tel()
|
||||
{
|
||||
$data = $this->request->post();
|
||||
// tiaoshi($data);die;
|
||||
if (empty($data) || $this->customer_id <= 0)
|
||||
{
|
||||
return $this->json(-1, '数据错误');
|
||||
}
|
||||
$customer_info = model('customer')->where(['id' => $this->customer_id])->find();
|
||||
if ($customer_info['telephone'] != $data['old_telephone'])
|
||||
{
|
||||
return $this->json(-2, '旧手机号错误');
|
||||
}
|
||||
|
||||
if (!preg_match("/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/", $data['new_telephone']))
|
||||
{
|
||||
return $this->json(-3, '手机号格式错误');
|
||||
}
|
||||
|
||||
$captcha = $this->cacheGet('regtel' . $data['new_telephone'], 'error');
|
||||
if ($captcha != $data['captcha'])
|
||||
{
|
||||
return $this->json(-4, '验证码错误');
|
||||
}
|
||||
|
||||
$update_data = [
|
||||
'telephone' => $data['new_telephone']
|
||||
];
|
||||
|
||||
$result = model('customer')->where(['id' => $this->customer_id])->update($update_data);
|
||||
if (!$result)
|
||||
{
|
||||
return $this->json(-5, '修改失败');
|
||||
}
|
||||
|
||||
$new_customer_info = model('customer')->getBasicInfo($this->customer_id);
|
||||
|
||||
$this->set_login_token($new_customer_info);
|
||||
return $this->json(200, '修改成功');
|
||||
}
|
||||
|
||||
public function new_register()
|
||||
{
|
||||
if ($this->customer_id > 0)
|
||||
return $this->json(-10001, '已经登录过');
|
||||
|
||||
$data = $this->request->post();
|
||||
tiaoshi($data);die;
|
||||
if (empty($data))
|
||||
{
|
||||
return $this->json(-1, '数据错误');
|
||||
}
|
||||
|
||||
$validate = Loader::validate('customer');
|
||||
if (!$validate->scene('register_by_telephone')->check($data))
|
||||
{
|
||||
return $this->json(-2, $validate->getError());
|
||||
}
|
||||
|
||||
$captcha = $this->cacheGet('regtel' . $data['telephone'], 'error');
|
||||
if ($captcha != $data['captcha'])
|
||||
{
|
||||
return $this->json(-4, '验证码错误');
|
||||
}
|
||||
|
||||
$firstname = 'ORICO' . rand(10000000, 99999999);
|
||||
$insert_data = [
|
||||
'firstname' => $firstname,
|
||||
'telephone' => $data['telephone'],
|
||||
'addtime' => time()
|
||||
];
|
||||
|
||||
$customer_id = model('customer')->insertGetId($insert_data);
|
||||
if (!$customer_id)
|
||||
{
|
||||
return $this->json(-100, '注册失败');
|
||||
}
|
||||
|
||||
$customer_info = model('customer')->getBasicInfo($customer_id);
|
||||
|
||||
$this->set_login_token($customer_info);
|
||||
return $this->json(200, '注册成功');
|
||||
}
|
||||
|
||||
|
||||
public function new_login()
|
||||
{
|
||||
if ($this->customer_id > 0)
|
||||
return $this->json(-10001, '已经登录过');
|
||||
|
||||
$data = $this->request->post();
|
||||
if (empty($data))
|
||||
{
|
||||
return $this->json(-1, '数据错误');
|
||||
}
|
||||
|
||||
if (isset($data['password']))
|
||||
{
|
||||
// 密码登录
|
||||
if (preg_match("/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/", $data['username']))
|
||||
{
|
||||
$where = ['telephone' => $data['username']];
|
||||
}
|
||||
elseif (preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/", $data['username']))
|
||||
{
|
||||
$where = ['email' => $data['username']];
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->json(-2, '账号格式错误');
|
||||
}
|
||||
|
||||
$where['stat'] = 0;
|
||||
$customer_info = model('customer')->where($where)->field('id, firstname, picture, sex, email, telephone, qq, birthday, password')->find();
|
||||
if (empty($customer_info))
|
||||
{
|
||||
return $this->json(-3, '账号未注册');
|
||||
}
|
||||
if ($customer_info['password'] != md5($data['password']))
|
||||
{
|
||||
return $this->json(-4, '账号或密码错误');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// 短信验证码登录
|
||||
$captcha = $this->cacheGet('regtel' . $data['telephone'], 'error');
|
||||
if ($captcha != $data['captcha'])
|
||||
{
|
||||
return $this->json(-5, '验证码错误');
|
||||
}
|
||||
|
||||
$customer_info = model('customer')->getBasicInfoByTelephone($data['telephone']);
|
||||
if (empty($customer_info))
|
||||
{
|
||||
// 未注册直接入库
|
||||
$firstname = 'ORICO' . rand(10000000, 99999999);
|
||||
$insert_data = [
|
||||
'firstname' => $firstname,
|
||||
'telephone' => $data['telephone'],
|
||||
];
|
||||
|
||||
$customer_id = model('customer')->insertGetId($insert_data);
|
||||
if (!$customer_id)
|
||||
{
|
||||
return $this->json(-6, '登录失败');
|
||||
}
|
||||
|
||||
$customer_info = model('customer')->getBasicInfoByTelephone($data['telephone']);
|
||||
}
|
||||
}
|
||||
|
||||
$this->set_login_token($customer_info);
|
||||
return $this->json(200, '登录成功');
|
||||
}
|
||||
|
||||
public function new_logout()
|
||||
{
|
||||
$this->_logout();
|
||||
return $this->json(200, 'ok');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 前台用户登录
|
||||
*/
|
||||
public function check_login() {
|
||||
$data = $this->request->post();
|
||||
if (empty($data) || !is_array($data)) {
|
||||
return $this->json(-1, '未知错误');
|
||||
}
|
||||
|
||||
// $code = $this->cacheGet('regtel' . $data['telephone']);
|
||||
// if ($code != $data['code']) {
|
||||
// return $this->json(-1, '短信验证码不正确');
|
||||
// }
|
||||
|
||||
$validate = Loader::validate('customer');
|
||||
if (!$validate->scene('login')->check($data)) {
|
||||
return $this->json(-1, $validate->getError());
|
||||
}
|
||||
|
||||
// 登录成功
|
||||
$user = model('customer')->getBasicInfoByTelephone($data['telephone']);
|
||||
$curr_time = time();
|
||||
$token = $this->set_token($user['id'], $curr_time);
|
||||
|
||||
$data = [
|
||||
'user_info' => $user,
|
||||
'curr_time' => $curr_time,
|
||||
'token' => $token,
|
||||
];
|
||||
return $this->json(1, '登录成功', $data);
|
||||
}
|
||||
|
||||
public function check_register() {
|
||||
$data = $this->request->post();
|
||||
if (empty($data) || !is_array($data)) {
|
||||
return $this->json(-1, '未知错误');
|
||||
}
|
||||
|
||||
// $code = $this->cacheGet('regtel' . $data['telephone']);
|
||||
// if ($code != $data['code']) {
|
||||
// return $this->json(-1, '短信验证码不正确');
|
||||
// }
|
||||
|
||||
$validate = Loader::validate('customer');
|
||||
if (!$validate->scene('register')->check($data)) {
|
||||
return $this->json(-1, $validate->getError());
|
||||
}
|
||||
// tiaoshi($data);die;
|
||||
$addtime = time();
|
||||
$set = [
|
||||
'group_id' => 1,
|
||||
'telephone' => $data['telephone'],
|
||||
'firstname' => isset($data['firstname']) ? $data['firstname'] : '',
|
||||
// 'lastname' => isset($data['lastname']) ? $data['lastname'] : '',
|
||||
// 'newsletter' => isset($data['newsletter']) ? $data['newsletter'] : 0,
|
||||
'salt' => $data['password'],
|
||||
'password' => md5($data['password']),
|
||||
'stat' => 0,
|
||||
'safe' => 1,
|
||||
'code' => '',
|
||||
// 'item' => isset($data['item']) ? $data['item'] : 0,
|
||||
// 'token' => isset($data['token']) ? $data['token'] : '',
|
||||
// 'wishlist' => isset($data['wishlist']) ? $data['wishlist'] : '',
|
||||
// 'ip' => isset($data['ip']) ? $data['ip'] : '',
|
||||
// 'fenxiang' => isset($data['fenxiang']) ? $data['fenxiang'] : 0,
|
||||
// 'guanzhu' => isset($data['guanzhu']) ? $data['guanzhu'] : 0,
|
||||
// 'hangye' => isset($data['hangye']) ? $data['hangye'] : '',
|
||||
// 'zhiye' => isset($data['zhiye']) ? $data['zhiye'] : '',
|
||||
// 'sex' => isset($data['sex']) ? $data['sex'] : '',
|
||||
// 'birthday' => isset($data['birthday']) ? $data['birthday'] : '',
|
||||
// 'qq' => isset($data['qq']) ? $data['qq'] : '',
|
||||
'addtime' => $addtime,
|
||||
// 'custom_field' => json_encode([]),
|
||||
];
|
||||
$result = Loader::model('Customer')->insertRow($set);
|
||||
if ($result && $customer_id = $result->getData('id')) {
|
||||
$user = model('customer')->getBasicInfo($customer_id);
|
||||
$curr_time = time();
|
||||
$token = $this->set_token($customer_id, $curr_time);
|
||||
$data = [
|
||||
'user_info' => $user,
|
||||
'curr_time' => $curr_time,
|
||||
'token' => $token,
|
||||
];
|
||||
return $this->json(1, '注册成功', $data);
|
||||
} else {
|
||||
return $this->json(-1, '注册失败');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function sendsms() {
|
||||
$data = $this->request->post();
|
||||
|
||||
if (empty($data) || !is_array($data)) {
|
||||
return $this->json(-1, '未知错误');
|
||||
}
|
||||
|
||||
if (isset($data['login']) && $data['login'])
|
||||
{
|
||||
$customer_info = model('customer')->getBasicInfoByTelephone($data['telephone']);
|
||||
if (empty($customer_info))
|
||||
{
|
||||
return $this->json(-101, '手机号未注册');
|
||||
}
|
||||
}
|
||||
else if (isset($data['register']) && $data['register'])
|
||||
{
|
||||
$customer_info = model('customer')->getBasicInfoByTelephone($data['telephone']);
|
||||
if (!empty($customer_info))
|
||||
{
|
||||
return $this->json(-102, '手机号已注册');
|
||||
}
|
||||
}
|
||||
|
||||
$validaterule = [
|
||||
'telephone' => ['regex' => '^1[345789]\d{9}$'],
|
||||
];
|
||||
$validatemsg = [
|
||||
'telephone.regex' => '手机格式错误',
|
||||
];
|
||||
|
||||
$valid_result = $this->validate($data, $validaterule, $validatemsg);
|
||||
if (true !== $valid_result) {
|
||||
return $this->json(-2, $valid_result);
|
||||
}
|
||||
|
||||
$mobile = $data['telephone'];
|
||||
$curr_date = date('Y-m-d');
|
||||
// 当前手机号今天是否发送过验证码
|
||||
$is_send = Cache::get($mobile . $curr_date, '');
|
||||
if ($is_send) {
|
||||
// 如果发过,自增一次
|
||||
Cache::inc($mobile . $curr_date);
|
||||
} else {
|
||||
// 如果今天第一次发短信
|
||||
$expire = 86400;
|
||||
Cache::set($mobile . $curr_date, 1, $expire);
|
||||
}
|
||||
// 当天发送数量
|
||||
$today_send_count = Cache::get($mobile . $curr_date);
|
||||
if ($today_send_count > 10) {
|
||||
return $this->json(-102, '每天发送验证码不能超过10次');
|
||||
}
|
||||
|
||||
//$mobile = $data['telephone'];
|
||||
//$code = mt_rand(10000, 99999);
|
||||
//$this->cacheSet('regtel' . $mobile, $code, 300);
|
||||
//return $this->success($code);
|
||||
//获取对象,如果上面没有引入命名空间,可以这样实例化:$sms = new \alisms\SendSms()
|
||||
$sms = new \alisms\SendSms();
|
||||
//设置关键的四个配置参数,其实配置参数应该写在公共或者模块下的config配置文件中,然后在获取使用,这里我就直接使用了。
|
||||
$sms->accessKeyId = (string) Config::get('sms_accesskeyid');
|
||||
$sms->accessKeySecret = (string) Config::get('sms_accesskeysecret');
|
||||
$sms->signName = (string) Config::get('sms_signname');
|
||||
$sms->templateCode = (string) Config::get('sms_templatecode');
|
||||
|
||||
|
||||
//模板参数,自定义了随机数,你可以在这里保存在缓存或者cookie等设置有效期以便逻辑发送后用户使用后的逻辑处理
|
||||
$code = mt_rand(10000, 99999);
|
||||
$this->cacheSet('regtel' . $mobile, $code, 300);
|
||||
$templateParam = array('code' => $code);
|
||||
$m = $sms->send($mobile, $templateParam);
|
||||
//类中有说明,默认返回的数组格式,如果需要json,在自行修改类,或者在这里将$m转换后在输出
|
||||
if ($m['Code'] == 'OK') {
|
||||
return $this->json(200, $m['Message']);
|
||||
} else {
|
||||
return $this->json(-1, $m['Message']);
|
||||
}
|
||||
}
|
||||
|
||||
/*个人中心*/
|
||||
|
||||
public function my_collection()
|
||||
{
|
||||
if ($this->customer_id <= 0)
|
||||
{
|
||||
$this->redirect('mobile/customer/login.html');
|
||||
}
|
||||
|
||||
$param = $this->request->param();
|
||||
// tiaoshi($param);die;
|
||||
$where = ['a.stat' => 0, 'b.stat' => 0, 'a.customer_id' => $this->customer_id];
|
||||
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);
|
||||
// echo model('collection')->getLastSql();die;
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
351
app/mobile/controller/Download.php
Executable file
351
app/mobile/controller/Download.php
Executable file
@@ -0,0 +1,351 @@
|
||||
<?php
|
||||
|
||||
namespace app\mobile\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()
|
||||
{
|
||||
$arg_where = [
|
||||
'a.siteid' => $this->siteid,
|
||||
'c.id' => 1,
|
||||
];
|
||||
$skeyword = $this->request->get('skeyword', '', 'urldecode,strval');
|
||||
if ($skeyword != '') {
|
||||
$skeyword = trim($skeyword);
|
||||
$search['skeyword'] = $skeyword;
|
||||
$arg_where['a.name|a.app_model'] = ['like', '%' . $search['skeyword'] . '%'];
|
||||
Config::set('paginate.query', ['skeyword' => $skeyword]); //分页参数
|
||||
$value['search'] = $search;
|
||||
}
|
||||
|
||||
$arg_order = ['a.id' => 'desc'];
|
||||
$arg_field = ['a.id', 'a.cid', 'a.name', 'a.sort', 'a.headline', 'a.ishot', 'a.recommend', 'a.app_model', 'a.support_os', 'a.format', 'a.viewcount', 'a.downloadcount', 'a.description', 'a.picture', 'a.tags', 'a.downloadpath', 'a.downloadpath64', 'a.createtime', 'c.id' => 'categoryid', 'c.name' => 'categoryname'];
|
||||
$dataObject = Loader::model('Download')->getCateDownloadLists($arg_where, $arg_order, $arg_field, 12);
|
||||
// echo \think\Db::table('download')->getLastSql(), '<hr>';
|
||||
// tiaoshi($dataObject->items());die;
|
||||
$value = [
|
||||
'list' => $dataObject->isEmpty() ? null : $dataObject->items(),
|
||||
'page' => $dataObject->render(),
|
||||
];
|
||||
if ($this->request->isAjax()) {
|
||||
return $this->result($value, true, '下载列表');
|
||||
}
|
||||
$downloadCategory = Loader::model('DownloadCategory')->getList(['siteid' => $this->siteid, 'stat' => 0, 'pid' => 2], ['sort', 'id']);
|
||||
// tiaoshi($downloadCategory);die;
|
||||
$value['downloadCategory'] = $downloadCategory;
|
||||
$value['skeyword'] = '';
|
||||
$this->assign($value);
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
public function detail($id = 0)
|
||||
{
|
||||
if ($id > 0) {
|
||||
$detail = Loader::model('Download')->getRow($id);
|
||||
if (empty($detail)) {
|
||||
return exception('数据有误,请检查后再操作');
|
||||
}
|
||||
//$adddownload = Loader::model('DownloadAddition')->getRowAddition(['aid' => $detail['id']]);
|
||||
$category = Loader::model('DownloadCategory')->getRow($detail['cid']);
|
||||
if (empty($category)) {
|
||||
return exception('数据有误,请检查后再操作');
|
||||
}
|
||||
$prev_detail = Loader::model('Download')->getRow(['id' => ['gt', $id], 'cid' => $category['id'], 'stat' => 0], ['id', 'name'], ['id' => 'asc']);
|
||||
$next_detail = Loader::model('Download')->getRow(['id' => ['lt', $id], 'cid' => $category['id'], 'stat' => 0], ['id', 'name'], ['id' => 'desc']);
|
||||
$value = [
|
||||
'detail' => $detail,
|
||||
//'adddownload' => $adddownload,
|
||||
'category' => $category,
|
||||
'prev_detail' => $prev_detail,
|
||||
'next_detail' => $next_detail,
|
||||
];
|
||||
$value['seo_title'] = $detail['seo_title'] ?: $detail['name'] . '-' . config('website_seo_title');
|
||||
$value['seo_keyword'] = $detail['seo_keyword'] ?: config('website_seo_keyword');
|
||||
$value['seo_description'] = $detail['seo_description'] ?: config('website_seo_description');
|
||||
$this->assign($value);
|
||||
$this->viewcount($id);
|
||||
return $this->fetch();
|
||||
} else {
|
||||
return exception('数据有误,请检查后再操作');
|
||||
}
|
||||
}
|
||||
|
||||
public function download($id = 0, $bit = 0)
|
||||
{
|
||||
$id = intval($id);
|
||||
$bit = intval($bit);
|
||||
|
||||
if ($id > 0) {
|
||||
$detail = Loader::model('Download')->getRow($id);
|
||||
if (empty($detail)) {
|
||||
return exception('数据有误,请检查后再操作');
|
||||
}
|
||||
$docDir = request()->server('DOCUMENT_ROOT');
|
||||
$rootDir = request()->root();
|
||||
$directory = $docDir . $rootDir;
|
||||
$downloadpath = explode(',', $detail['downloadpath']);
|
||||
//$downloadpath64 = explode(',', $detail['downloadpath64']);
|
||||
if (empty($downloadpath[$bit])) {
|
||||
return exception('数据有误,请检查后再操作');
|
||||
}
|
||||
$fileinfo = pathinfo($downloadpath[$bit]);
|
||||
$download = $directory . $downloadpath[$bit]; // 文件要下载的地址
|
||||
Loader::model('Download')->updateRow(['downloadcount' => \think\Db::raw('`downloadcount`+1')], ['id' => $id]);
|
||||
header('Content-type: application/octet-stream');
|
||||
header('Content-Disposition: attachment; filename=' . $fileinfo['basename']);
|
||||
header('Content-Length: ' . filesize($download));
|
||||
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)
|
||||
{
|
||||
//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);
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
}
|
||||
}
|
||||
296
app/mobile/controller/Download2.php
Executable file
296
app/mobile/controller/Download2.php
Executable file
@@ -0,0 +1,296 @@
|
||||
<?php
|
||||
|
||||
namespace app\mobile\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);
|
||||
}
|
||||
}
|
||||
316
app/mobile/controller/Group.php
Executable file
316
app/mobile/controller/Group.php
Executable file
@@ -0,0 +1,316 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: ORICO
|
||||
* Date: 2018-09-21
|
||||
* Time: 17:36
|
||||
*/
|
||||
|
||||
namespace app\mobile\controller;
|
||||
|
||||
use think\Loader;
|
||||
|
||||
class Group extends BaseController
|
||||
{
|
||||
public function index(){
|
||||
return $this->view->fetch();
|
||||
}
|
||||
public function odm(){
|
||||
return $this->view->fetch();
|
||||
}
|
||||
public function special(){
|
||||
return $this->view->fetch();
|
||||
}
|
||||
public function h_speed(){
|
||||
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()
|
||||
{
|
||||
|
||||
$banners = Loader::model("Banner")->alias('b')->field([
|
||||
'b.id',
|
||||
'b.typeid',
|
||||
'bt.name' => 'typename',
|
||||
'bt.description' => 'typedesc',
|
||||
'b.name',
|
||||
'b.categoryid',
|
||||
'b.url',
|
||||
'b.picture',
|
||||
'b.alt',
|
||||
'b.style',
|
||||
'b.description' => 'desc',
|
||||
'b.descolor',
|
||||
'b.btncolor',
|
||||
'b.videourl',
|
||||
])
|
||||
->join('banner_type bt', 'bt.stat= 0 and bt.id=b.typeid')
|
||||
->where('b.stat', '=', 0)
|
||||
->where('b.typeid', '=', 122)
|
||||
->order(['sort' => 'asc', 'id' => 'asc'])
|
||||
->select();
|
||||
$data = [];
|
||||
foreach ($banners as $val) {
|
||||
|
||||
$link = $val['url'];
|
||||
if (empty($val['url']) && !empty($val['categoryid'])) {
|
||||
$link = url_rewrite('productsub', ['id' => $val['categoryid']]);
|
||||
}
|
||||
$data[] = [
|
||||
'id' => $val['id'],
|
||||
'name' => $val['name'],
|
||||
'link' => $link,
|
||||
'picture' => $val['picture'],
|
||||
'alt' => $val['alt'],
|
||||
'style' => $val['style'],
|
||||
'desc' => $val['desc'],
|
||||
'desc_color' => $val['descolor'],
|
||||
'btn_color' => $val['btncolor'],
|
||||
'video_url' => $val['videourl'],
|
||||
];
|
||||
}
|
||||
$this->assign('data', $data);
|
||||
|
||||
return $this->view->fetch();
|
||||
}
|
||||
public function faq(){
|
||||
|
||||
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 distributor2023(){
|
||||
|
||||
return $this->view->fetch();
|
||||
}
|
||||
public function introduction(){
|
||||
|
||||
return $this->view->fetch();
|
||||
}
|
||||
public function business(){
|
||||
|
||||
return $this->view->fetch();
|
||||
}
|
||||
public function rdcenter(){
|
||||
|
||||
return $this->view->fetch();
|
||||
}
|
||||
public function brand(){
|
||||
|
||||
return $this->view->fetch();
|
||||
}
|
||||
public function achievement(){
|
||||
|
||||
return $this->view->fetch();
|
||||
}
|
||||
public function mileage(){
|
||||
|
||||
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 ssd(){
|
||||
|
||||
return $this->view->fetch();
|
||||
}
|
||||
public function thunderbolt_3(){
|
||||
|
||||
return $this->view->fetch();
|
||||
}
|
||||
public function stripe(){
|
||||
|
||||
return $this->view->fetch();
|
||||
}
|
||||
public function pssd(){
|
||||
|
||||
return $this->view->fetch();
|
||||
}
|
||||
public function series_95(){
|
||||
|
||||
return $this->view->fetch();
|
||||
}
|
||||
public function backup(){
|
||||
|
||||
return $this->view->fetch();
|
||||
}
|
||||
public function download(){
|
||||
$keywords_pa = $this->request->param();
|
||||
$keywords = '';
|
||||
$map['stat'] = 0;
|
||||
$map['cid'] = 43;
|
||||
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, '请先登录');
|
||||
|
||||
$data = $this->request->post();
|
||||
if (empty($data) || !is_array($data))
|
||||
return $this->json(-1, '数据错误');
|
||||
|
||||
if ($data['product_name'] == '')
|
||||
return $this->json(-2, '产品名称不能为空');
|
||||
if ($data['product_model'] == '')
|
||||
return $this->json(-3, '产品型号不能为空');
|
||||
if ($data['product_manufacturer'] == '')
|
||||
return $this->json(-4, '厂商不能为空');
|
||||
// if ($data['buy_source'] == '')
|
||||
// return $this->json(-5, '购买渠道不能为空');
|
||||
|
||||
if ($data['customer_telephone'] != '' && !preg_match("/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/", $data['customer_telephone']))
|
||||
return $this->json(-6, '手机格式错误');
|
||||
if ($data['customer_email'] != '' && !preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/", $data['customer_email']))
|
||||
return $this->json(-7, '邮箱格式错误');
|
||||
|
||||
$insert_data = [
|
||||
'customer_id' => $this->customer_id,
|
||||
'product_name' => $data['product_name'],
|
||||
'product_model' => $data['product_model'],
|
||||
'product_manufacturer' => $data['product_manufacturer'],
|
||||
'buy_source' => $data['buy_source'],
|
||||
'product_price' => floatval($data['product_price']),
|
||||
'customer_name' => $data['customer_name'],
|
||||
'customer_email' => $data['customer_email'],
|
||||
'customer_telephone' => $data['customer_telephone'],
|
||||
'description' => $data['description'],
|
||||
'create_time' => time(),
|
||||
];
|
||||
|
||||
$result = model('report')->insert($insert_data);
|
||||
if (!$result)
|
||||
return $this->json(-8, '提交失败');
|
||||
|
||||
return $this->json(200, 'ok');
|
||||
}
|
||||
|
||||
public function question()
|
||||
{
|
||||
$data = $this->request->param();
|
||||
|
||||
$where = [
|
||||
'a.stat' => 0,
|
||||
'a.country_code' => $this->country_code,
|
||||
];
|
||||
$cid = isset($data['cid']) ? $data['cid'] : 0;
|
||||
if ($cid)
|
||||
$where['a.cid'] = $cid;
|
||||
|
||||
$search['keyword'] = '';
|
||||
if (isset($data['keyword']) && $data['keyword'] != '')
|
||||
{
|
||||
$where['a.title'] = ['like', '%' . $data['keyword'] . '%'];
|
||||
$search['keyword'] = $data['keyword'];
|
||||
}
|
||||
|
||||
$order = [
|
||||
'a.sort' => 'asc',
|
||||
'a.id' => 'desc'
|
||||
];
|
||||
$field = ['a.*', 'b.name' => 'cate_name'];
|
||||
|
||||
|
||||
$question_list = model('question')->alias('a')->join('question_category b', 'a.cid = b.id', 'LEFT')->where($where)->order($order)->field($field)->paginate(4);
|
||||
// echo model('question')->getLastSql();die;
|
||||
// tiaoshi($question_list->items());die;
|
||||
$question_catelist = model('question_category')->where(['stat' => 0])->select();
|
||||
$value = [
|
||||
'question_list' => $question_list->isEmpty() ? null : $question_list->items(),
|
||||
'page' => $question_list->render(),
|
||||
'cid' => $cid,
|
||||
'search' => $search,
|
||||
'question_catelist' => $question_catelist
|
||||
];
|
||||
|
||||
$this->assign($value);
|
||||
return view();
|
||||
}
|
||||
|
||||
|
||||
public function question_detail()
|
||||
{
|
||||
$id = $this->request->param('id');
|
||||
$question = model('question')->where(['id' => $id, 'stat' => 0])->find();
|
||||
if (empty($question))
|
||||
return $this->error('没有该问题');
|
||||
|
||||
// tiaoshi($question);die;
|
||||
$this->assign('question', $question);
|
||||
return $this->view->fetch();
|
||||
}
|
||||
|
||||
}
|
||||
17
app/mobile/controller/Group1.php
Executable file
17
app/mobile/controller/Group1.php
Executable file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: ORICO
|
||||
* Date: 2018-09-21
|
||||
* Time: 17:36
|
||||
*/
|
||||
|
||||
namespace app\index\controller;
|
||||
|
||||
|
||||
class Group extends BaseController
|
||||
{
|
||||
public function index(){
|
||||
return $this->view->fetch();
|
||||
}
|
||||
}
|
||||
113
app/mobile/controller/Index.php
Executable file
113
app/mobile/controller/Index.php
Executable file
@@ -0,0 +1,113 @@
|
||||
<?php
|
||||
|
||||
namespace app\mobile\controller;
|
||||
|
||||
use think\Lang;
|
||||
use think\Loader;
|
||||
use think\Config;
|
||||
use think\TransDb;
|
||||
class Index extends BaseController {
|
||||
|
||||
public function index() {
|
||||
|
||||
// 如果是手机端进官网
|
||||
if (isMobile()) {
|
||||
if ($_SERVER['HTTP_HOST']=="www.orico.cc" || $_SERVER['HTTP_HOST']=="orico.cc") {
|
||||
return $this->redirect("http://www.orico.cc/usmobile");
|
||||
}
|
||||
}
|
||||
else{
|
||||
return $this->redirect("http://www.orico.com.cn");
|
||||
}
|
||||
/*
|
||||
if ($_SERVER['HTTP_HOST']=="www.oricogroup.com" && $_SERVER['HTTP_HOST']=="oricogroup.com" ){
|
||||
|
||||
if($this->lang=='zh-cn'){
|
||||
return $this->fetch('/index');
|
||||
}else{
|
||||
return $this->redirect("http://www.oricogroup.com/us");
|
||||
}
|
||||
}elseif($_SERVER['HTTP_HOST']=="www.orico.cc" || $_SERVER['HTTP_HOST']=="orico.cc"){
|
||||
return $this->redirect("http://www.orico.cc/us");
|
||||
}*/
|
||||
|
||||
$lebel_list = getDifferentProduct("recommend",12);
|
||||
$this->assign('recomment_items',$lebel_list);
|
||||
|
||||
|
||||
$blog_list = getArticleList();
|
||||
$this->assign('blog_list',$blog_list);
|
||||
|
||||
|
||||
$faqData = getFaqList();
|
||||
$this->assign('faqData',$faqData);
|
||||
|
||||
|
||||
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);
|
||||
}
|
||||
$set = [
|
||||
'feedback_type' => isset($data['feedback_type']) ? $data['feedback_type'] : '',
|
||||
'name' => isset($data['name']) ? $data['name'] : 'Name',
|
||||
'subject' => isset($data['subject']) ? $data['subject'] : '',
|
||||
'content' => isset($data['content']) ? $data['content'] : '',
|
||||
'way' => isset($data['way']) ? $data['way'] : '',
|
||||
'contact' => isset($data['contact']) ? $data['contact'] : '',
|
||||
'addtime' => date('Y-m-d H:i:s'),
|
||||
];
|
||||
$model = Loader::model('Msgform')->insertRow($set);
|
||||
if ($model && $model->getData('id')) {
|
||||
return $this->success('成功!成功!等待管理员查看', url('/'));
|
||||
} else {
|
||||
return $this->error('操作失败');
|
||||
}
|
||||
}
|
||||
return $this->result(['code' => false, 'msg' => '未知错误'], false, '未知错误');
|
||||
}
|
||||
|
||||
}
|
||||
79
app/mobile/controller/Index1122.php
Executable file
79
app/mobile/controller/Index1122.php
Executable file
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
|
||||
namespace app\index\controller;
|
||||
|
||||
use think\Lang;
|
||||
use think\Loader;
|
||||
use think\Config;
|
||||
use think\TransDb;
|
||||
class Index extends BaseController {
|
||||
|
||||
public function index() {
|
||||
return $this->fetch('/index');
|
||||
}
|
||||
public function info(){
|
||||
echo "\nstart: ".date("Y-m-d H:i:s")."\n";
|
||||
$TransDb = new TransDb();
|
||||
$TransDb->setkv("myTest","这就是一个测试",true);
|
||||
$getDb = $TransDb->getkv("myTest");
|
||||
echo "\nend :".date("Y-m-d H:i:s")."\n";
|
||||
|
||||
dump($getDb);
|
||||
// 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);
|
||||
}
|
||||
$set = [
|
||||
'feedback_type' => isset($data['feedback_type']) ? $data['feedback_type'] : '',
|
||||
'name' => isset($data['name']) ? $data['name'] : 'Name',
|
||||
'subject' => isset($data['subject']) ? $data['subject'] : '',
|
||||
'content' => isset($data['content']) ? $data['content'] : '',
|
||||
'way' => isset($data['way']) ? $data['way'] : '',
|
||||
'contact' => isset($data['contact']) ? $data['contact'] : '',
|
||||
'addtime' => date('Y-m-d H:i:s'),
|
||||
];
|
||||
$model = Loader::model('Msgform')->insertRow($set);
|
||||
if ($model && $model->getData('id')) {
|
||||
return $this->success('成功!成功!等待管理员查看', url('/'));
|
||||
} else {
|
||||
return $this->error('操作失败');
|
||||
}
|
||||
}
|
||||
return $this->result(['code' => false, 'msg' => '未知错误'], false, '未知错误');
|
||||
}
|
||||
|
||||
}
|
||||
90
app/mobile/controller/Pinglun.php
Executable file
90
app/mobile/controller/Pinglun.php
Executable file
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
|
||||
namespace app\mobile\controller;
|
||||
|
||||
use think\Loader;
|
||||
use think\Cookie;
|
||||
use think\Config;
|
||||
use think\validate;
|
||||
|
||||
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, '未知错误');
|
||||
}
|
||||
|
||||
if (!$this->check_token($data['id'], $data['time'], $data['token'])) {
|
||||
return $this->json(-101, 'token过期');
|
||||
}
|
||||
|
||||
// $row = Loader::model('Pinglun')->getRow(['customer_id' => $data['id']], null, ['id' => 'desc']);
|
||||
// if ($row && $row['id']) {
|
||||
// $createtime = strtotime($row['createtime']);
|
||||
// if (time() - $createtime < 60) {
|
||||
// return $this->json(-2,'您已评论过了请不要重复评论');
|
||||
// }
|
||||
// }
|
||||
|
||||
// 验证....
|
||||
$validate = Loader::validate('pinglun');
|
||||
if (!$validate->scene('add')->check($data)) {
|
||||
return $this->json(-1, $validate->getError());
|
||||
}
|
||||
|
||||
$addtime = date('Y-m-d H:i:s');
|
||||
$txarr = [1, 2, 3, 4, 5];
|
||||
shuffle($txarr);
|
||||
$set = [
|
||||
'customer_id' => $data['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, '操作失败');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
364
app/mobile/controller/Product.php
Executable file
364
app/mobile/controller/Product.php
Executable file
@@ -0,0 +1,364 @@
|
||||
<?php
|
||||
|
||||
namespace app\mobile\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']);
|
||||
// header("content-type: text/html; charset=utf8");
|
||||
// dump(json_decode(json_encode($category), true));die;
|
||||
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);
|
||||
}
|
||||
//echo "<pre>=="; print_r($category); exit;
|
||||
|
||||
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' => 6, 'stat' => 0, 'tags' => $hot_tags];
|
||||
$hot_product_order = ['sort' => 'asc'];
|
||||
$hot_product = Loader::model('ad')->where($hot_product_where)->order($hot_product_order)->limit(4)->select();
|
||||
|
||||
$value = [
|
||||
'category' => $category,
|
||||
];
|
||||
|
||||
$value['hot_product'] = empty($hot_product) ? "" : $hot_product;
|
||||
|
||||
$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);
|
||||
//echo "--".$template."<pre>=="; print_r($value);exit;
|
||||
return $this->fetch('catelists');
|
||||
}
|
||||
|
||||
public function subcatelists($id = 0) {
|
||||
$arg_where = ['a.siteid' => $this->siteid];
|
||||
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];
|
||||
$where = ['stat' => 0, 'cid' => $cate_id];
|
||||
$order = ['sort' => 'asc', 'id' => 'desc'];
|
||||
$where['is_show'] = 0;
|
||||
$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'], '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 ($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;
|
||||
|
||||
if (empty($detail)) {
|
||||
return exception('数据有误,请检查后再操作');
|
||||
}
|
||||
$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'];
|
||||
|
||||
$detail['product_two_img'] = model('product_two_img')->where(['stat' => 0, 'product_id' => $id])->select();
|
||||
$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'],'stat' => 0, 'country_code' => $this->country_code), ['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);
|
||||
$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 newarrival() {
|
||||
|
||||
$value = Loader::model('Product')->getNewItemLists(array(),['t.sort' => 'asc', 't.id' => 'asc',], ['p.id', 'p.name', 'p.shortname', 'p.picture', 'p.sort', 'p.ishot', 'p.list_bk_img','p.isnew', 'p.recommend', 'p.description','p.brand_id', 'p.createtime', 't.id' => 'category_id', 't.name'=>'category_name', 't.sort']);
|
||||
|
||||
//分类分组
|
||||
$newProduct = array();
|
||||
foreach($value as $key => $item) {
|
||||
$newProduct[$item['category_id']]['category_id'] = $item['category_id'];
|
||||
$newProduct[$item['category_id']]['category_name'] = $item['category_name'];
|
||||
$newProduct[$item['category_id']]['list'][] = $item;
|
||||
}
|
||||
//echo "<pre>---"; print_r($productCategory);die; //echo "<pre>=="; print_r($productCategory);die;
|
||||
$this->assign('newProduct',$newProduct);
|
||||
|
||||
$value['category'] = "New Product";
|
||||
$value['seo_title'] = $value['category']? : config('website_seo_title_us');
|
||||
$value['seo_keyword'] = $value['category']? : config('website_seo_keyword');
|
||||
$value['seo_description'] = $value['category']? : config('website_seo_description');
|
||||
$this->assign($value);
|
||||
|
||||
return $this->fetch('new');
|
||||
}
|
||||
}
|
||||
188
app/mobile/controller/Product10.10.php
Executable file
188
app/mobile/controller/Product10.10.php
Executable file
@@ -0,0 +1,188 @@
|
||||
<?php
|
||||
|
||||
namespace app\index\controller;
|
||||
|
||||
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];
|
||||
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'];
|
||||
|
||||
// $arg_order = ['a.id' => 'desc'];
|
||||
// $arg_field = ['a.*', 'c.id' => 'categoryid', 'c.name' => 'categoryname'];
|
||||
// $dataObject = Loader::model('Product')->getCateProductLists($arg_where, $arg_order, $arg_field, 12);
|
||||
// $value = [
|
||||
// 'list' => $dataObject->isEmpty() ? null : $dataObject->items(), //$dataObject->getCollection()->toArray()
|
||||
// 'page' => $dataObject->render(),
|
||||
// ];
|
||||
break;
|
||||
case 3:
|
||||
header('location:' . $category['url']);
|
||||
exit;
|
||||
break;
|
||||
default:
|
||||
$template = $category['tempindex'];
|
||||
break;
|
||||
}
|
||||
$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];
|
||||
if ($id > 0) {
|
||||
$arg_where['cid'] = $id;
|
||||
$category = Loader::model('ProductCategory')->getRow($id);
|
||||
}
|
||||
if (empty($category)) {
|
||||
return exception('数据有误,请检查后再操作');
|
||||
}
|
||||
switch ($category['classtype']) {
|
||||
case 2:
|
||||
$template = $category['templist'];
|
||||
$subproductCategory = $this->list_to_tree($this->categoryList, 'id', 'pid', 'child', $id);
|
||||
$value = ['subproductCategory' => $subproductCategory];
|
||||
break;
|
||||
case 3:
|
||||
header('location:' . $category['url']);
|
||||
exit;
|
||||
break;
|
||||
default:
|
||||
$template = $category['tempindex'];
|
||||
break;
|
||||
}
|
||||
$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')->getRow($id);
|
||||
if (empty($detail)) {
|
||||
return exception('数据有误,请检查后再操作');
|
||||
}
|
||||
$addproduct = Loader::model('ProductAddition')->getRow(['aid' => $detail['id']]); //print_r($addproduct);exit;
|
||||
$category = Loader::model('ProductCategory')->getRow($detail['cid']);
|
||||
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,
|
||||
'addproduct' => $addproduct,
|
||||
'category' => $category,
|
||||
//'prev_detail' => $prev_detail,
|
||||
//'next_detail' => $next_detail,
|
||||
];
|
||||
$value['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']);
|
||||
//$value['product_relates'] = Loader::model('Product')->getList(array('cid' => $detail['cid'], 'id' => ['neq', $detail['id']]), ['sort' => 'asc', 'id' => 'asc'], ['id', 'name', 'shortname', 'picture', 'sort', 'ishot', 'isnew', 'recommend', 'description', 'createtime']);
|
||||
$value['product_attrs'] = Loader::model('ProductAttr')->getProductAttrLists(['product_id' => $detail['id']], ['id' => 'desc'], ['pa.id', 'pa.attribute_id', 'pa.value', 'pa.price', 'a.name', 'a.type'], 120);
|
||||
$value['product_relateds'] = Loader::model('Product')->getRelatedProductList(array('pr.product_id' => $detail['id']), ['pr.related_sort' => 'asc', 'pr.id' => 'asc',], ['p.id', 'p.name', 'p.shortname', 'p.picture', 'p.sort', 'p.ishot', 'p.isnew', 'p.recommend', 'p.description', 'p.createtime', 'pr.id' => 'related_id', 'pr.related_product_id', 'pr.related_sort', 'pr.related_desc']);
|
||||
$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;
|
||||
$this->assign($value);
|
||||
$this->viewcount($id);
|
||||
return $this->fetch($template);
|
||||
} else {
|
||||
return exception('数据有误,请检查后再操作');
|
||||
}
|
||||
}
|
||||
|
||||
protected function viewcount($id) {
|
||||
$view = Cookie::get('productview', 'history'); //print_r($history);exit;
|
||||
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]);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
162
app/mobile/controller/Product1011.php
Executable file
162
app/mobile/controller/Product1011.php
Executable file
@@ -0,0 +1,162 @@
|
||||
<?php
|
||||
|
||||
namespace app\index\controller;
|
||||
|
||||
use think\Loader;
|
||||
use think\Cookie;
|
||||
use think\Config;
|
||||
|
||||
class Product extends BaseController {
|
||||
|
||||
public function lists($id = 0) {
|
||||
// echo 'asdf';die;
|
||||
$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');//print_r($category);die;
|
||||
$this->assign($value);
|
||||
return $this->fetch('catelists');
|
||||
}
|
||||
|
||||
public function catelists($id = 0) {
|
||||
// echo 'asdf';die;
|
||||
$arg_where = ['a.siteid' => $this->siteid];
|
||||
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'];
|
||||
|
||||
// $arg_order = ['a.id' => 'desc'];
|
||||
// $arg_field = ['a.*', 'c.id' => 'categoryid', 'c.name' => 'categoryname'];
|
||||
// $dataObject = Loader::model('Product')->getCateProductLists($arg_where, $arg_order, $arg_field, 12);
|
||||
// $value = [
|
||||
// 'list' => $dataObject->isEmpty() ? null : $dataObject->items(), //$dataObject->getCollection()->toArray()
|
||||
// 'page' => $dataObject->render(),
|
||||
// ];
|
||||
break;
|
||||
case 3:
|
||||
header('location:' . $category['url']);
|
||||
exit;
|
||||
break;
|
||||
default:
|
||||
$template = $category['tempindex'];
|
||||
break;
|
||||
}
|
||||
$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];
|
||||
if ($id > 0) {
|
||||
$arg_where['cid'] = $id;
|
||||
$category = Loader::model('ProductCategory')->getRow($id);
|
||||
}
|
||||
if (empty($category)) {
|
||||
return exception('数据有误,请检查后再操作');
|
||||
}
|
||||
switch ($category['classtype']) {
|
||||
case 2:
|
||||
$template = $category['templist'];
|
||||
$subproductCategory = $this->list_to_tree($this->categoryList, 'id', 'pid', 'child', $id);
|
||||
$value = ['subproductCategory' => $subproductCategory];
|
||||
break;
|
||||
case 3:
|
||||
header('location:' . $category['url']);
|
||||
exit;
|
||||
break;
|
||||
default:
|
||||
$template = $category['tempindex'];
|
||||
break;
|
||||
}
|
||||
$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, $color = '') {
|
||||
if ($id > 0) {
|
||||
$detail = Loader::model('Product')->getRow($id);
|
||||
if (empty($detail)) {
|
||||
return exception('数据有误,请检查后再操作');
|
||||
}
|
||||
$addproduct = Loader::model('ProductAddition')->getRow(['aid' => $detail['id']]); //print_r($addproduct);exit;
|
||||
$category = Loader::model('ProductCategory')->getRow($detail['cid']);
|
||||
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,
|
||||
'addproduct' => $addproduct,
|
||||
'category' => $category,
|
||||
//'prev_detail' => $prev_detail,
|
||||
//'next_detail' => $next_detail,
|
||||
];
|
||||
$value['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']);
|
||||
//$value['product_relates'] = Loader::model('Product')->getList(array('cid' => $detail['cid'], 'id' => ['neq', $detail['id']]), ['sort' => 'asc', 'id' => 'asc'], ['id', 'name', 'shortname', 'picture', 'sort', 'ishot', 'isnew', 'recommend', 'description', 'createtime']);
|
||||
$value['product_attrs'] = Loader::model('ProductAttr')->getProductAttrLists(['product_id' => $detail['id']], ['id' => 'desc'], ['pa.id', 'pa.attribute_id', 'pa.value', 'pa.price', 'a.name', 'a.type'], 120);
|
||||
$value['product_relateds'] = Loader::model('Product')->getRelatedProductList(array('pr.product_id' => $detail['id']), ['pr.related_sort' => 'asc', 'pr.id' => 'asc',], ['p.id', 'p.name', 'p.shortname', 'p.picture', 'p.sort', 'p.ishot', 'p.isnew', 'p.recommend', 'p.description', 'p.createtime', 'pr.id' => 'related_id', 'pr.related_product_id', 'pr.related_sort', 'pr.related_desc']);
|
||||
$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;
|
||||
$this->assign($value);
|
||||
$this->viewcount($id);
|
||||
return $this->fetch($template);
|
||||
} else {
|
||||
return exception('数据有误,请检查后再操作');
|
||||
}
|
||||
}
|
||||
|
||||
protected function viewcount($id) {
|
||||
$view = Cookie::get('productview', 'history'); //print_r($history);exit;
|
||||
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]);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
24
app/mobile/controller/Qqlogin.php
Executable file
24
app/mobile/controller/Qqlogin.php
Executable file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: ORICO
|
||||
* Date: 2019-01-23
|
||||
* Time: 15:17
|
||||
*/
|
||||
|
||||
namespace app\mobile\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();
|
||||
}
|
||||
}
|
||||
37
app/mobile/controller/Search.php
Executable file
37
app/mobile/controller/Search.php
Executable file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace app\mobile\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['country_code'] = $this->country_code;
|
||||
$arg_where['is_show'] = 0;
|
||||
|
||||
$dataObject = Loader::model('Product')->field(['id', 'name', 'description', 'list_bk_img' => 'picture', 'createtime','brand_id', "'productdetail'" => 'link'])->where($arg_where)->paginate(6);
|
||||
|
||||
$value = [
|
||||
'list' => $dataObject->isEmpty() ? null : $dataObject->items(),
|
||||
'page' => $dataObject->render(),
|
||||
];
|
||||
$value['search'] = $search;
|
||||
$this->assign($value);
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
30
app/mobile/controller/Singlepage.php
Executable file
30
app/mobile/controller/Singlepage.php
Executable file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace app\mobile\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('数据有误,请检查后再操作');
|
||||
}
|
||||
|
||||
}
|
||||
256
app/mobile/controller/TopsNas.php
Executable file
256
app/mobile/controller/TopsNas.php
Executable file
@@ -0,0 +1,256 @@
|
||||
<?php
|
||||
namespace app\mobile\controller;
|
||||
|
||||
use think\Loader;
|
||||
|
||||
class TopsNas extends BaseController
|
||||
{
|
||||
public function _initialize()
|
||||
{
|
||||
parent::_initialize();
|
||||
parent::nasNavigation();
|
||||
}
|
||||
|
||||
private function getBanners($typeids)
|
||||
{
|
||||
$banners = Loader::model("Banner")->alias('b')->field([
|
||||
'b.id',
|
||||
'b.typeid',
|
||||
'bt.name' => 'typename',
|
||||
'bt.description' => 'typedesc',
|
||||
'b.name',
|
||||
'b.categoryid',
|
||||
'b.url',
|
||||
'b.picture',
|
||||
'b.alt',
|
||||
'b.style',
|
||||
'b.description' => 'desc',
|
||||
'b.descolor',
|
||||
'b.btncolor',
|
||||
'b.videourl',
|
||||
])
|
||||
->join('banner_type bt', 'bt.stat= 0 and bt.id=b.typeid')
|
||||
->where('b.stat', '=', 0)
|
||||
->where('b.typeid', 'in', $typeids)
|
||||
->order(['sort' => 'asc', 'id' => 'asc'])
|
||||
->select();
|
||||
|
||||
$chucks = [];
|
||||
foreach ($banners as $val) {
|
||||
if (empty($chucks['typeid_' . $val['typeid']])) {
|
||||
$chucks['typeid_' . $val['typeid']]['id'] = $val['typeid'];
|
||||
$chucks['typeid_' . $val['typeid']]['name'] = $val['typename'];
|
||||
$chucks['typeid_' . $val['typeid']]['desc'] = $val['typedesc'];
|
||||
$chucks['typeid_' . $val['typeid']]['banners'] = [];
|
||||
}
|
||||
|
||||
$link = $val['url'];
|
||||
if (empty($val['url']) && !empty($val['categoryid'])) {
|
||||
$link = url_rewrite('productsub', ['id' => $val['categoryid']]);
|
||||
}
|
||||
$chucks['typeid_' . $val['typeid']]['banners'][] = [
|
||||
'id' => $val['id'],
|
||||
'name' => $val['name'],
|
||||
'link' => $link,
|
||||
'picture' => $val['picture'],
|
||||
'alt' => $val['alt'],
|
||||
'style' => $val['style'],
|
||||
'desc' => $val['desc'],
|
||||
'desc_color' => $val['descolor'],
|
||||
'btn_color' => $val['btncolor'],
|
||||
'video_url' => $val['videourl'],
|
||||
];
|
||||
}
|
||||
|
||||
return $chucks;
|
||||
}
|
||||
|
||||
/**
|
||||
* nas专题页首页
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$chucks = $this->getBanners([113, 114, 115, 116, 117, 118]);
|
||||
$data = [
|
||||
'swiper' => $chucks['typeid_113'],
|
||||
'product' => $chucks['typeid_114'],
|
||||
'video' => $chucks['typeid_115'],
|
||||
'plan' => $chucks['typeid_116'],
|
||||
'weline' => $chucks['typeid_117'],
|
||||
'download' => $chucks['typeid_118'],
|
||||
];
|
||||
$this->assign("data", $data);
|
||||
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* nas新品公测
|
||||
*/
|
||||
public function beta()
|
||||
{
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* nas 客户合作
|
||||
*/
|
||||
public function cooperation()
|
||||
{
|
||||
$chucks = $this->getBanners([123, 124, 125]);
|
||||
$data = [
|
||||
'image_text' => $chucks['typeid_123'],
|
||||
'advantage' => $chucks['typeid_124'],
|
||||
'expectation' => $chucks['typeid_125'],
|
||||
];
|
||||
$data['advantage']['banners'] = array_chunk($data['advantage']['banners'], 2);
|
||||
|
||||
$this->assign("data", $data);
|
||||
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* getProductSeries 获取产品系列
|
||||
*/
|
||||
private function getProductSeries()
|
||||
{
|
||||
return Loader::model('ProductSeries')
|
||||
->field([
|
||||
'id',
|
||||
'name',
|
||||
])
|
||||
->where('stat', '=', 0)
|
||||
->where('isshow', '=', 1)
|
||||
->order(['id' => 'asc', 'sort' => 'asc'])
|
||||
->select();
|
||||
}
|
||||
|
||||
/**
|
||||
* getCategoryTree 获取特定文章分类树
|
||||
*/
|
||||
private function getCategoryTree($cid = 36)
|
||||
{
|
||||
// 设备
|
||||
$category = Loader::model('ArticleCategory')
|
||||
->field([
|
||||
'id',
|
||||
'pid',
|
||||
'name',
|
||||
])
|
||||
->where('isshow', '=', 1)
|
||||
->where('country_code', '=', $this->country_code)
|
||||
->order(['sort' => 'asc'])
|
||||
->select();
|
||||
$category_array = collection($category)->toArray();
|
||||
$category_tree = $this->buildTree($category_array, $cid);
|
||||
return $category_tree;
|
||||
}
|
||||
|
||||
/**
|
||||
* getCategoryChildren 获取子孙分类id
|
||||
*/
|
||||
private function getCategoryChildren($category)
|
||||
{
|
||||
return \think\Db::query("
|
||||
SELECT t2.id
|
||||
FROM (
|
||||
SELECT
|
||||
@r AS _id, (SELECT @r := GROUP_CONCAT(id) FROM cod_article_category WHERE FIND_IN_SET(pid, _id)) AS parent_id
|
||||
FROM
|
||||
(SELECT @r := $category) vars, cod_article_category h
|
||||
WHERE @r <> 0) t1
|
||||
JOIN cod_article_category t2
|
||||
ON FIND_IN_SET(t2.pid, t1._id)
|
||||
ORDER BY t2.id;
|
||||
");
|
||||
}
|
||||
|
||||
/**
|
||||
* getProductSeriesIdMaps 获取文章系列型号
|
||||
*/
|
||||
private function getProductSeriesIdMaps($article)
|
||||
{
|
||||
$series = [];
|
||||
$array_items = array_column($article, 'product_series');
|
||||
array_walk($array_items, function ($val) use (&$series) {
|
||||
$series = array_merge($series, explode(',', $val));
|
||||
});
|
||||
if (!empty($series)) {
|
||||
$product_series = Loader::model('ProductSeries')
|
||||
->where('id', 'in', array_unique($series))
|
||||
->column('name', 'id');
|
||||
foreach ($article as $key => $val) {
|
||||
$p_series = explode(',', $val['product_series']);
|
||||
$p_item = [];
|
||||
foreach ($p_series as $k => $v) {
|
||||
if (!empty($product_series[$v])) {
|
||||
$p_item[] = $product_series[$v];
|
||||
|
||||
}
|
||||
}
|
||||
$article[$key]['product_series'] = $p_item;
|
||||
}
|
||||
}
|
||||
return $article;
|
||||
}
|
||||
|
||||
/**
|
||||
* guide 使用教程
|
||||
*/
|
||||
public function guide()
|
||||
{
|
||||
$params = [
|
||||
'keywords' => input('get.keywords'),
|
||||
'series' => input('get.series'),
|
||||
'device' => input('get.device', 38),
|
||||
'category' => input('get.category'),
|
||||
'page' => input('get.page', 1),
|
||||
'size' => input('get.size', 10),
|
||||
];
|
||||
|
||||
// 型号
|
||||
$this->assign('series', $this->getProductSeries());
|
||||
|
||||
// 设备
|
||||
$this->assign('category', $this->getCategoryTree(36));
|
||||
|
||||
// 文章列表
|
||||
$article = Loader::model('Article')
|
||||
->field([
|
||||
'id',
|
||||
'name',
|
||||
'description',
|
||||
'product_series',
|
||||
'content',
|
||||
])
|
||||
->where('stat', '=', 0)
|
||||
->where('country_code', '=', $this->country_code)
|
||||
->where(function ($query) use ($params) {
|
||||
if (!empty($params['keywords'])) {
|
||||
$query->where(function ($q) use ($params) {
|
||||
$q->where('name', 'like', '%' . $params['keywords'] . '%')
|
||||
->whereOr(sprintf('MATCH(content) AGAINST("%s" IN BOOLEAN MODE)', $params['keywords']));
|
||||
});
|
||||
}
|
||||
|
||||
if (!empty($params['device']) && empty($params['category'])) {
|
||||
$params['category'] = $params['device'];
|
||||
}
|
||||
$children = $this->getCategoryChildren($params['category']);
|
||||
$categorys = array_merge([$params['category']], array_column($children, 'id'));
|
||||
$query->where('cid', 'in', $categorys);
|
||||
|
||||
if (!empty($params['series'])) {
|
||||
$query->where(sprintf('find_in_set(%s, `product_series`)', $params['series']));
|
||||
}
|
||||
})
|
||||
->order(['id' => 'desc', 'sort' => 'desc'])
|
||||
->paginate($params['size']);
|
||||
$list = $this->getProductSeriesIdMaps($article->items());
|
||||
$this->assign('list', $list);
|
||||
$this->assign('page', $article->render());
|
||||
|
||||
return $this->fetch();
|
||||
}
|
||||
}
|
||||
142
app/mobile/controller/User.php
Executable file
142
app/mobile/controller/User.php
Executable file
@@ -0,0 +1,142 @@
|
||||
<?php
|
||||
|
||||
namespace app\mobile\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'));
|
||||
}
|
||||
|
||||
}
|
||||
142
app/mobile/controller/User20191104.php
Executable file
142
app/mobile/controller/User20191104.php
Executable file
@@ -0,0 +1,142 @@
|
||||
<?php
|
||||
|
||||
namespace app\mobile\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'));
|
||||
}
|
||||
|
||||
}
|
||||
138
app/mobile/controller/Video.php
Executable file
138
app/mobile/controller/Video.php
Executable file
@@ -0,0 +1,138 @@
|
||||
<?php
|
||||
|
||||
namespace app\mobile\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, 'isshow' => 1, 'stat' => 0, '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]);
|
||||
$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']);
|
||||
$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/mobile/tags.php
Executable file
15
app/mobile/tags.php
Executable file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* 行为扩展
|
||||
*/
|
||||
return [
|
||||
|
||||
'module_init' => [
|
||||
'app\\common\\behavior\\SystemConfig',
|
||||
],
|
||||
'action_begin' => [
|
||||
],
|
||||
'user_behavior' => [
|
||||
]
|
||||
];
|
||||
33
app/mobile/validate/Collection.php
Executable file
33
app/mobile/validate/Collection.php
Executable file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
namespace app\mobile\validate;
|
||||
|
||||
use think\Validate;
|
||||
|
||||
class Collection extends Validate
|
||||
{
|
||||
|
||||
protected $rule = [
|
||||
['user_id', 'require', '用户id不能为空'],
|
||||
['type_id', 'require', 'type_id不能为空'],
|
||||
['coll_id', 'require', 'coll_id不能为空'],
|
||||
];
|
||||
|
||||
protected $scene = [
|
||||
'add' => ['user_id', 'type_id', 'coll_id'],
|
||||
];
|
||||
|
||||
protected function check_value($value, $rule)
|
||||
{
|
||||
switch ($rule) {
|
||||
case '':
|
||||
|
||||
case '':
|
||||
|
||||
return true;
|
||||
break;
|
||||
default:
|
||||
# code...
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
72
app/mobile/validate/Customer.php
Executable file
72
app/mobile/validate/Customer.php
Executable file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
namespace app\mobile\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_pwd' => ['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_pwd') {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
40
app/mobile/validate/Pinglun.php
Executable file
40
app/mobile/validate/Pinglun.php
Executable file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
namespace app\mobile\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;
|
||||
}
|
||||
}
|
||||
}
|
||||
224
app/mobile/view/agents/agents.phtml
Executable file
224
app/mobile/view/agents/agents.phtml
Executable file
@@ -0,0 +1,224 @@
|
||||
<!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_back1" /}
|
||||
<!-- 详情页 s -->
|
||||
<div class="cooperapp_bdpage" style="background:#F2F2F2;">
|
||||
<div class="cooperapp_bd_main" style=";margin-top:50px">
|
||||
<h1 class="cooperapp_t1">成为供应商</h1>
|
||||
<p class="cooperapp_s1">准备好加入我们了吗?<br /> 在下面输入您的详细信息,我们的销售团队将在2个工作日内回复您。</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">公司名称<span class="redtag">*</span></label>
|
||||
<input type="text" class="form-control itinp companyName" placeholder="请输入公司名称">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem">
|
||||
<label class="itlable">电子邮件 <span class="redtag">*</span></label>
|
||||
<input type="text" class="form-control itinp email" placeholder="请输入邮箱">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem bditem1">
|
||||
<label class="itlable">电话号码<span class="redtag">*</span></label>
|
||||
<input type="text" class="form-control itinp phone"
|
||||
placeholder="请输入电话号码">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem">
|
||||
<label class="itlable">业务类型<span class="redtag">*</span></label>
|
||||
<select name="business_type" data-pf-type="FormInput" class="form-control itinp business_type">
|
||||
<option value="Online Store">在线商店</option>
|
||||
<option value="Local Shop">本地商店</option>
|
||||
<option value="Both">都有</option></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem">
|
||||
<label class="itlable">在线商店网址</label>
|
||||
<input type="text" class="form-control itinp url"
|
||||
placeholder="请输入网址">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem bditem1">
|
||||
<label class="itlable">企业规模<span class="redtag">*</span></label>
|
||||
<select name="enterprise_size" data-pf-type="FormInput" class="form-control itinp enterprise_size">
|
||||
<option value="10 Or Less">10 或更少</option>
|
||||
<option value="10-50">10-50</option>
|
||||
<option value="50-199">50-199</option>
|
||||
<option value="200 Or More">200 或更多</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem bditem1">
|
||||
<label class="itlable">公司地址<span class="redtag">*</span></label>
|
||||
<input class="form-control itinp address" placeholder="请输入地址">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem bditem1">
|
||||
<label class="itlable">留言<span class="redtag">*</span></label>
|
||||
<textarea class="ittextarea message" placeholder="留言"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 提交-->
|
||||
<div class="bttj">提交</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 详情页 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/bottom1" /}
|
||||
<!-- bottom e -->
|
||||
</body>
|
||||
</html>
|
||||
52
app/mobile/view/antifake/anti_fake.phtml
Executable file
52
app/mobile/view/antifake/anti_fake.phtml
Executable file
@@ -0,0 +1,52 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>防伪、S/N码查询入口页</title>
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/fake.css">
|
||||
<style>
|
||||
|
||||
.fake_button_img{
|
||||
font-size: 12px !important;
|
||||
margin: 40px 0px 0px 0px !important;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top_back1" /}
|
||||
<div class="margin-top-60"></div>
|
||||
<div class="m_Container margin-top-90 overflow-h">
|
||||
<div class="fake">
|
||||
<div class="text_38 text_center text_black title">防伪查询</div>
|
||||
</div>
|
||||
|
||||
<div class="fake01">
|
||||
<div class="fake_content text_22 text_black">
|
||||
<div class="fake_border">
|
||||
<div class="margin-top-50 line-height-50 margin-bottom-48">
|
||||
注:输入防伪码可查询到产品真伪和产品信息,输入S/N码只能查询到产品信息,不能查询到产品真伪,如果需要查询产品真伪建议点击输入防伪码查询进行查询。
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fake_content">
|
||||
<div class="fake_button fake_button_img">
|
||||
<button><a href="__ORICOROOT__/antifake/anti_fake_sninput"><img src="__PUBLIC__/m_web/images/anti_fake/sn_code2.png"></a></button>
|
||||
<button><a href="__ORICOROOT__/antifake/anti_fake_input"><img src="__PUBLIC__/m_web/images/anti_fake/anti_fake_code2.png"></a></button>
|
||||
</div>
|
||||
|
||||
<!--底部-->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</body></html>
|
||||
91
app/mobile/view/antifake/anti_fake_inlet.phtml
Executable file
91
app/mobile/view/antifake/anti_fake_inlet.phtml
Executable file
@@ -0,0 +1,91 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>防伪查询</title>
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/anti-fake.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top_back1" /}
|
||||
<div class="margin-top-60"></div>
|
||||
<div class="m_Container margin-top-90 overflow-h">
|
||||
<div class="fake">
|
||||
<div class="text_38 text_center text_black title">防伪查询</div>
|
||||
</div>
|
||||
|
||||
<div class="fake01">
|
||||
<div class="fake_content text_22 text_black">
|
||||
<div class="fake_border">
|
||||
<div class="margin-top-50 line-height-50 margin-bottom-48">
|
||||
注:扫描二维码可查询到产品真伪和产品信息,扫描S/N码只能查询到产品信息,不能查询到产品真伪,如果需要查询产品真伪建议直接扫描二维码进行查询。
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fake_content">
|
||||
<div class="fake_button margin-top-80 fake_button_img">
|
||||
<button id="sn"><img src="__PUBLIC__/m_web/images/anti_fake/sn_code1.png"></button>
|
||||
<button id="code"><img src="__PUBLIC__/m_web/images/anti_fake/anti_fake_code1.png"></button>
|
||||
</div>
|
||||
<!--底部-->
|
||||
</div>
|
||||
</body>
|
||||
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
||||
<script>
|
||||
wx.config({
|
||||
debug: false,
|
||||
appId: '<?php echo $singpackage["appId"];?>',
|
||||
timestamp: <?php echo $singpackage["timestamp"];?>,
|
||||
nonceStr: '<?php echo $singpackage["nonceStr"];?>',
|
||||
signature: '<?php echo $singpackage["signature"];?>',
|
||||
jsApiList: [
|
||||
// 所有要调用的 API 都要加到这个列表中
|
||||
"scanQRCode"
|
||||
]
|
||||
});
|
||||
wx.ready(function () {
|
||||
// 在这里调用 API
|
||||
$("#sn").click(function(){
|
||||
//要执行的代码写在这里
|
||||
wx.scanQRCode({
|
||||
needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
|
||||
scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码,默认二者都有
|
||||
success: function (res) {
|
||||
//alert(res.resultStr);
|
||||
window.location.href='anti_fake_scan_snresult?qrresult='+res.resultStr; //跳转链接
|
||||
/*for(i in res ){
|
||||
//alert(i); //获得属性
|
||||
alert(i + "---" + res[i]); //获得属性值
|
||||
}*/
|
||||
//var result = res.resultStr; // 当needResult 为 1 时,扫码返回的结果
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
$("#code").click(function(){
|
||||
//要执行的代码写在这里
|
||||
wx.scanQRCode({
|
||||
needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
|
||||
scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码,默认二者都有
|
||||
success: function (res) {
|
||||
//alert(res.resultStr);
|
||||
window.location.href='anti_fake_scan_result?qrresult='+res.resultStr; //跳转链接
|
||||
/* for(i in res ){
|
||||
//alert(i); //获得属性
|
||||
alert(i + "---" + res[i]); //获得属性值
|
||||
}*/
|
||||
//var result = res.resultStr; // 当needResult 为 1 时,扫码返回的结果
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</html>
|
||||
45
app/mobile/view/antifake/anti_fake_inlet_old.phtml
Executable file
45
app/mobile/view/antifake/anti_fake_inlet_old.phtml
Executable file
@@ -0,0 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>防伪查询</title>
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/anti-fake.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top" /}
|
||||
|
||||
<div class="m_Container margin-top-90 overflow-h">
|
||||
<div class="fake">
|
||||
<div class="text_38 text_center text_black title">防伪查询</div>
|
||||
</div>
|
||||
|
||||
<div class="fake01">
|
||||
<div class="fake_content text_22 text_black">
|
||||
<div class="fake_border">
|
||||
<div class="margin-top-50 line-height-50 margin-bottom-48">
|
||||
注:扫描二维码可查询到产品真伪和产品信息,扫描S/N码只能查询到产品信息,不能查询到产品真伪,如果需要查询产品真伪建议直接扫描二维码进行查询。
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fake_content">
|
||||
<div class="fake_button margin-top-80 fake_button_img">
|
||||
<button><a href="http://sao315.com/w/api/saoyisao?redirect_uri=http://www.orico.com.cn/mobile/antifake/anti_fake_scan_snresult"><img src="__PUBLIC__/m_web/images/anti_fake/sn_code1.png"></a></button>
|
||||
<button><a href="http://sao315.com/w/api/saoyisao?redirect_uri=http://www.orico.com.cn/mobile/antifake/anti_fake_scan_result"><img src="__PUBLIC__/m_web/images/anti_fake/anti_fake_code1.png"></a></button>
|
||||
</div>
|
||||
|
||||
<!--底部-->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</body></html>
|
||||
54
app/mobile/view/antifake/anti_fake_input.phtml
Executable file
54
app/mobile/view/antifake/anti_fake_input.phtml
Executable file
@@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>防伪查询入口</title>
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/anti-fake.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top_back1" /}
|
||||
|
||||
<div class="m_Container margin-top-90 overflow-h">
|
||||
<div class="fake">
|
||||
<div class="text_38 text_center text_black title">防伪查询</div>
|
||||
</div>
|
||||
<form action="<?php echo url('antifake/anti_fake_result');?>" method="post" onsubmit="return check();">
|
||||
<div class="fake">
|
||||
<input placeholder="请输入防伪码" name="fake" class="text_28 text_left text_l_gray">
|
||||
</div>
|
||||
<div class="fake">
|
||||
<div class="fake_content">
|
||||
<p class="text_28 text_left text_black margin-top-20">如何获取防伪码</p>
|
||||
<p class="text_18 text_left text_l_gray margin-top-14">防伪码在产品铭牌贴上可见(如图所示:)</p>
|
||||
<p class="margin-top-50 fake_01 text_center margin-bottom-48"><img src="__PUBLIC__/m_web/images/anti_fake/anti_fake.jpg"></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text_center">
|
||||
<div class="fake_button img-responsive margin-top-80">
|
||||
<button type="submit"><img src="__PUBLIC__/m_web/images/anti_fake/inquiry.png" ></button>
|
||||
</div>
|
||||
</form>
|
||||
<!--底部-->
|
||||
</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>
|
||||
</body>
|
||||
</html>
|
||||
64
app/mobile/view/antifake/anti_fake_result.phtml
Executable file
64
app/mobile/view/antifake/anti_fake_result.phtml
Executable file
@@ -0,0 +1,64 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>防伪码查询结果页</title>
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/anti-fake.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top_back1" /}
|
||||
|
||||
<div class="m_Container margin-top-90 overflow-h">
|
||||
<div class="fake">
|
||||
<div class="text_38 text_center text_black title">查询结果</div>
|
||||
</div>
|
||||
<div class="fake01">
|
||||
<div class="fake_content text_22 text_black">
|
||||
<div class="fake_border">
|
||||
<div class="margin-top-50 fake_l_height_38 margin-bottom-48">
|
||||
<?php if($data['result']==1){
|
||||
if($data['chicktime']!=date("Y-m-d H:i:s")){?>
|
||||
<p>尊敬的用户您好:</p>
|
||||
<p>
|
||||
您所查询的防伪码已{$data.chicktime}被查询过。如有疑问可联系客服,谢谢。
|
||||
</p>
|
||||
<?php }else{?>
|
||||
<p>尊敬的用户您好:</p>
|
||||
<p>您所查询的产品是正品,请您放心使用。</p>
|
||||
<?php }?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fake">
|
||||
<!--<div class="fake_content margin-top-50">
|
||||
<div class="f_left img-responsive"><img src="/uploads/product/3169U3/3169U3-L2.jpg"></div>
|
||||
<div class="f_right">
|
||||
<p class="text_32 text_black">产品信息</p>
|
||||
<p class="text_24 text_gray line-height-40 margin-top-10">产品名称:<?php echo $data['made_up_articles_name']; ?></p>
|
||||
<p class="text_24 text_gray line-height-40">产品型号:<?php echo $data['specifications_and_models']; ?></p>
|
||||
<!--<p class="text_24 text_gray line-height-40">出厂日期:<?php echo $data['production_date']; ?></p>
|
||||
<p class="text_24 text_gray line-height-40">保修日期至:<?php echo $data['mendtime']; ?></p>-->
|
||||
<!--</div>
|
||||
</div>-->
|
||||
<div class="fake_content">
|
||||
<p class="text_18 text_gray margin-top-40 margin-bottom-48">ORICO为本产品提供五年质保和免费技术支持服务,如产品出现故障,您可联系购买平台或ORICO客服服务中心,享受质保服务。</p>
|
||||
</div>
|
||||
</div>
|
||||
<?PHP }else{?>
|
||||
<div class="fake">
|
||||
<div class="fake_content">
|
||||
<div class="bg-white overflow-f text-l font-11 f-black fw_result_title">非常抱歉我没认出您所输入的信息,请重试或联系在线客服,谢谢。</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
54
app/mobile/view/antifake/anti_fake_scan_result.phtml
Executable file
54
app/mobile/view/antifake/anti_fake_scan_result.phtml
Executable file
@@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>防伪码查询结果页</title>
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/fake.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top_back1" /}
|
||||
|
||||
<div class="m_Container margin-top-90 overflow-h">
|
||||
<div class="fake">
|
||||
<div class="text_38 text_center text_black title">查询结果</div>
|
||||
</div>
|
||||
<div class="fake01">
|
||||
<div class="fake_content text_22 text_black">
|
||||
<div class="fake_border">
|
||||
<div class="margin-top-50 fake_l_height_38 margin-bottom-48">
|
||||
<?php if($data['result']==1){
|
||||
if($data['chicktime']!=date("Y-m-d H:i:s")){?>
|
||||
<p>尊敬的用户您好:</p>
|
||||
<p>您所查询的防伪码已{$data.chicktime}被查询过。如有疑问可联系客服,谢谢。</p>
|
||||
<?php }else{?>
|
||||
<p>尊敬的用户您好:</p>
|
||||
<p>您所查询的产品是正品,请您放心使用。</p>
|
||||
<?php }?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fake">
|
||||
|
||||
<div class="fake_content">
|
||||
<p class="text_18 text_gray margin-top-40 margin-bottom-48">ORICO为本产品提供五年质保和免费技术支持服务,如产品出现故障,您可联系购买平台或ORICO客服服务中心,享受质保服务。</p>
|
||||
</div>
|
||||
</div>
|
||||
<?PHP }else{?>
|
||||
<div class="fake">
|
||||
<div class="fake_content">
|
||||
<p class="text_22 text_gray line_height_38 margin-top-20">非常抱歉我没认出您所输入的信息,请重试或联系在线客服,谢谢。 </p>
|
||||
</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
63
app/mobile/view/antifake/anti_fake_scan_snresult.phtml
Executable file
63
app/mobile/view/antifake/anti_fake_scan_snresult.phtml
Executable file
@@ -0,0 +1,63 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>S/N码查询结果页</title>
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/fake.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top_back1" /}
|
||||
|
||||
<div class="m_Container margin-top-90 overflow-h">
|
||||
<div class="fake">
|
||||
<div class="text_38 text_center text_black title">查询结果</div>
|
||||
</div>
|
||||
<?php if($data['result']==1){?>
|
||||
<div class="fake">
|
||||
<!-- <div class="fake_content margin-top-50">
|
||||
<div class="f_left img-responsive"><img src="/uploads/product/3169U3/3169U3-L2.jpg"></div>
|
||||
<div class="f_right">
|
||||
<p class="text_32 text_black">产品信息</p>
|
||||
<p class="text_24 text_gray line-height-40 margin-top-10">产品名称:<?php echo $data['made_up_articles_name']; ?></p>
|
||||
<p class="text_24 text_gray line-height-40">产品型号:<?php echo $data['specifications_and_models']; ?></p>
|
||||
<!--<p class="text_24 text_gray line-height-40">出厂日期:<?php echo $data['production_date']; ?></p>
|
||||
<p class="text_24 text_gray line-height-40">保修日期至:<?php echo $data['mendtime']; ?></p>-->
|
||||
<!-- </div>
|
||||
</div> -->
|
||||
<div class="fake_content">
|
||||
<p class="text_18 text_gray margin-top-40 margin-bottom-48">
|
||||
<?php
|
||||
if (strpos($data['made_up_articles_name'], 'NGFF') !== false) {
|
||||
$data['aditmend'] = 5;
|
||||
|
||||
}
|
||||
elseif(strpos($data['made_up_articles_name'], 'NVME') !== false){
|
||||
$data['aditmend'] = 3;
|
||||
}
|
||||
else{
|
||||
$data['aditmend'] = '5';
|
||||
}
|
||||
|
||||
?>
|
||||
ORICO为本产品提供<?php echo $data['aditmend'];?>年质保和免费技术支持服务,如产品出现故障,您可联系购买平台或ORICO客服服务中心,享受质保服务。</p>
|
||||
</div>
|
||||
</div>
|
||||
<?PHP }else{?>
|
||||
<div class="bg-white overflow-f text-l font-11 f-black fw_result_title"><div class="fw_l">非常抱歉我没认出您所输入的信息,请重试或联系在线客服,谢谢。 </div></div>
|
||||
<?php }?>
|
||||
|
||||
<p class="text_22 text_gray line_height_38 margin-top-20">注:S/N码只能查询到产品信息,如需查询产品真伪可点击<a href="http://sao315.com/w/api/saoyisao?redirect_uri=http://www.orico.com.cn/mobile/antifake/anti_fake_scan_result" class="text_blue">“扫描二维码”</a>进入真伪查询页面扫描二维码进行查询。</p>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</body></html>
|
||||
54
app/mobile/view/antifake/anti_fake_sninput.phtml
Executable file
54
app/mobile/view/antifake/anti_fake_sninput.phtml
Executable file
@@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>S/N码查询入口</title>
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/anti-fake.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top_back1" /}
|
||||
|
||||
<div class="m_Container margin-top-90 overflow-h">
|
||||
<div class="fake">
|
||||
<div class="text_38 text_center text_black title">S/N码查询</div>
|
||||
</div>
|
||||
<form action="<?php echo url('antifake/anti_fake_snresult');?>" method="post" onsubmit="return check();">
|
||||
<div class="fake">
|
||||
<input placeholder="请输入S/N码" name="sn" class="text_28 text_left text_l_gray">
|
||||
</div>
|
||||
<div class="fake">
|
||||
<div class="fake_content">
|
||||
<p class="text_28 text_left text_black margin-top-20">如何获取S/N码</p>
|
||||
<p class="text_18 text_left text_l_gray margin-top-14">S/N码在产品铭牌贴上可见(如图所示:)</p>
|
||||
<p class="margin-top-50 fake_01 text_center margin-bottom-48"><img src="__PUBLIC__/m_web/images/anti_fake/fake_01.jpg"></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text_center">
|
||||
<div class="fake_button img-responsive margin-top-80">
|
||||
<button type="submit"><img src="__PUBLIC__/m_web/images/anti_fake/inquiry.png" ></button>
|
||||
</div>
|
||||
</form>
|
||||
<!--底部-->
|
||||
</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>
|
||||
</body>
|
||||
</html>
|
||||
68
app/mobile/view/antifake/anti_fake_snresult.phtml
Executable file
68
app/mobile/view/antifake/anti_fake_snresult.phtml
Executable file
@@ -0,0 +1,68 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>S/N码查询结果页</title>
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/fake.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top_back1" /}
|
||||
|
||||
<div class="m_Container margin-top-90 overflow-h">
|
||||
<div class="fake">
|
||||
<div class="text_38 text_center text_black title">查询结果</div>
|
||||
</div>
|
||||
<?php if($data['result']==1){?>
|
||||
<div class="fake">
|
||||
<div class="fake_content margin-top-50">
|
||||
<div class="f_left img-responsive"><img src="<?php echo $data['img']; ?>"></div>
|
||||
<div class="f_right">
|
||||
<p class="text_32 text_black">产品信息</p>
|
||||
<p class="text_24 text_gray line-height-40 margin-top-10">产品名称:<?php echo $data['made_up_articles_name']; ?></p>
|
||||
<p class="text_24 text_gray line-height-40">产品型号:<?php echo $data['specifications_and_models']; ?></p>
|
||||
<p class="text_24 text_gray line-height-40">生产日期:<?php echo $data['production_date']; ?></p>
|
||||
<!--<p class="text_24 text_gray line-height-40">保修日期至:<?php echo $data['mendtime']; ?></p>-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="fake_content">
|
||||
<p class="text_18 text_gray margin-top-40 margin-bottom-48">
|
||||
<?php
|
||||
if (strpos($data['made_up_articles_name'], 'NGFF') !== false) {
|
||||
$data['aditmend'] = 5;
|
||||
|
||||
}
|
||||
elseif(strpos($data['made_up_articles_name'], 'NVME') !== false){
|
||||
$data['aditmend'] = 3;
|
||||
}
|
||||
else{
|
||||
$data['aditmend'] = '5';
|
||||
}
|
||||
|
||||
?>
|
||||
ORICO为本产品提供<?php echo $data['aditmend'];?>年质保和免费技术支持服务,如产品出现故障,您可联系购买平台或ORICO客服服务中心,享受质保服务。</p>
|
||||
</div>
|
||||
</div>
|
||||
<?PHP }else{?>
|
||||
<div class="fake">
|
||||
<div class="fake_content">
|
||||
<p class="text_22 text_gray margin-top-40 margin-bottom-48">尊敬的用户您好:<br>
|
||||
您输入的S/N码是不正确的,<a href="__ORICOROOT__/antifake/anti_fake_sninput" class="text_blue">请输重新输入!</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<p class="text_22 text_gray line_height_38 margin-top-20">注:S/N码只能查询到产品信息,如需查询产品真伪可点击<a href="__ORICOROOT__/antifake/anti_fake_input" class="text_blue">“防伪码查询”</a>进入真伪查询页面进行查询。</p>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</body></html>
|
||||
52
app/mobile/view/antifake/index.phtml
Executable file
52
app/mobile/view/antifake/index.phtml
Executable file
@@ -0,0 +1,52 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>防伪、S/N码查询入口页</title>
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/fake.css">
|
||||
<style>
|
||||
|
||||
.fake_button_img{
|
||||
font-size: 12px !important;
|
||||
margin: 0 auto;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top_back1" /}
|
||||
<div class="margin-top-60"></div>
|
||||
<div class="m_Container margin-top-90 overflow-h">
|
||||
<div class="fake">
|
||||
<div class="text_38 text_center text_black title">防伪查询</div>
|
||||
</div>
|
||||
|
||||
<div class="fake01">
|
||||
<div class="fake_content text_22 text_black">
|
||||
<div class="fake_border">
|
||||
<div class="margin-top-50 line-height-50 margin-bottom-48">
|
||||
注:输入防伪码可查询到产品真伪和产品信息,输入S/N码只能查询到产品信息,不能查询到产品真伪,建议输入防伪码进行查询。
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fake_content">
|
||||
<div class="fake_button fake_button_img">
|
||||
<button><a href="__ORICOROOT__/antifake/anti_fake_sninput"><img src="__PUBLIC__/m_web/images/anti_fake/sn_code2.png"></a></button>
|
||||
<button><a href="__ORICOROOT__/antifake/anti_fake_input"><img src="__PUBLIC__/m_web/images/anti_fake/anti_fake_code2.png"></a></button>
|
||||
</div>
|
||||
|
||||
<!--底部-->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</body></html>
|
||||
218
app/mobile/view/article/catelists.phtml
Executable file
218
app/mobile/view/article/catelists.phtml
Executable file
@@ -0,0 +1,218 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>新闻动态</title>
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<style>
|
||||
.news_list .right {
|
||||
float: left;
|
||||
width: 65%;
|
||||
}
|
||||
.news_list .left {
|
||||
float: left;
|
||||
width: 30%;
|
||||
}
|
||||
.news_list_share img {
|
||||
vertical-align: bottom;
|
||||
margin-right: 0.16rem;
|
||||
width: 0.927rem;
|
||||
height: 0.927rem;
|
||||
margin-bottom: 0.05rem;
|
||||
}
|
||||
.m_Container_right {
|
||||
float: right;
|
||||
margin: 5px 0 0 0 !important;
|
||||
}
|
||||
.news_list_des_text {
|
||||
font-size: 0.48rem;
|
||||
color: #666;
|
||||
line-height: 0.88rem;
|
||||
text-align: left !important;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- 轮播 s -->
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top_back1" /}
|
||||
<!--banner-->
|
||||
<div class="banner img-responsive margin-top-90">
|
||||
<img src="__PUBLIC__/m_web/images/news/news-banner.jpg">
|
||||
</div>
|
||||
<!--新闻列表-->
|
||||
<div class="swt-Container">
|
||||
<div class="news-vertu">
|
||||
<?php if($cate_list): ?>
|
||||
<div class="tab">
|
||||
<?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="bg-blog-in" value="">
|
||||
<button id="blog-btnput" class="search-button-blog">搜索</button>
|
||||
</div>
|
||||
<?php if (!empty($list)): ?>
|
||||
<div class="blog_list">
|
||||
<ul class="clearfix">
|
||||
<?php foreach ($list as $key => $value): ?>
|
||||
<?php
|
||||
if($value['jump_link'] == ''){
|
||||
$alink = "__ORICOROOT__/article/detail/".$value['id'].".html";
|
||||
}
|
||||
else{
|
||||
$alink = $value['jump_link'];
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $alink;?>">
|
||||
<img src="<?php echo getImage($value['picture']); ?>">
|
||||
<h3><?php echo $value['name']; ?></h3>
|
||||
<p>
|
||||
<?php
|
||||
if (utf8_strlen($value['description']) > 35) {
|
||||
$value['description'] = msubstr($value['description'], 0, 35);
|
||||
}
|
||||
echo $value['description'];
|
||||
?>
|
||||
</p>
|
||||
</a>
|
||||
<span class="blue"><?php echo date("Y-m-d", $value['createtime']); ?></span>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<!-- 分页 s -->
|
||||
<div class="Pages">
|
||||
<span class="p_page">
|
||||
<?php if ($page) echo $page; ?>
|
||||
</span>
|
||||
</div>
|
||||
<!-- 分页 e -->
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<?php else: ?>
|
||||
<div class="news_list newfl">查询无此结果!</div>
|
||||
<?php endif; ?>
|
||||
<!-- Blog列表 e -->
|
||||
<script>
|
||||
|
||||
$(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) {
|
||||
|
||||
var keywords = $("#bg-blog-in").val();
|
||||
if(keywords){
|
||||
var href = "?name=" + encodeURIComponent(keywords);
|
||||
location.href = href;
|
||||
}
|
||||
else{
|
||||
var href = window.location.href;
|
||||
var cleanUrl = href.split('?')[0];
|
||||
|
||||
location.href = cleanUrl;
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<!--精彩评论-->
|
||||
<?php if (!empty($hot_comment)): ?>
|
||||
<div class="m_Container">
|
||||
<div class="news-comments">
|
||||
<div class="title text_center title_margin-top">精彩评论</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/bottom1" /}
|
||||
|
||||
|
||||
|
||||
</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('__ORICOROOT__/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>
|
||||
275
app/mobile/view/article/detail.phtml
Executable file
275
app/mobile/view/article/detail.phtml
Executable file
@@ -0,0 +1,275 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/cooperation.css">
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/jquery.bxslider.css">
|
||||
<script type="text/javascript" src="__PUBLIC__/m_web/js/jquery.bxslider.min.js"></script>
|
||||
{include file="include/head-seo" /}
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
function shareCustomers(){
|
||||
// 复制到粘贴板
|
||||
const input = document.createElement('input')
|
||||
input.setAttribute('readonly', 'readonly')
|
||||
let url=window.location.href
|
||||
input.setAttribute('value', url)
|
||||
document.body.appendChild(input)
|
||||
input.select()
|
||||
if (document.execCommand('copy')) {
|
||||
document.execCommand('copy')
|
||||
alert('链接复制成功')
|
||||
}
|
||||
document.body.removeChild(input)
|
||||
} </script>
|
||||
</head>
|
||||
<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_back1" /}
|
||||
<!--banner-->
|
||||
<!-- 详情页 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("Y-m-d H:i:s", $detail['createtime']); ?> </p>
|
||||
</div>
|
||||
<div class="blog_content">
|
||||
<?php echo $detail['content']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="share_box">
|
||||
<div class="blog_share">
|
||||
<h3>分享</h3>
|
||||
<ul class="share_list clearfix">
|
||||
<li><a target="_blank" href="https://weibo.com/"><img src="/frontend/web/images/blog/share1.png"/></a></li>
|
||||
<li class="wechat"><img src="/frontend/web/images/blog/share2.png"/><div class="wechat_code" ><img src="/frontend/web/images/erweima-blog.png"></div></li>
|
||||
<li><a target="_blank" href="https://creator.xiaohongshu.com/login?redirectReason=401"><img src="/frontend/web/images/blog/share3.png"/></a></li>
|
||||
<li><a href="javascript:shareCustomers();" title="submit to reddit"><img src="/frontend/web/images/blog/share4.png"></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="comment">
|
||||
<h3>留言</h3>
|
||||
<form class="comment_form clearfix">
|
||||
<div style="margin-right: 0.625rem; margin-bottom: 0.5rem;">姓名:<br/>
|
||||
<input class="form-control itinp new_name" type="text" name="name"/>
|
||||
</div>
|
||||
<div>电子邮件:<br/>
|
||||
<input class="form-control itinp new_email" type="email" name="email" />
|
||||
<p style="color: #C6C7C9; font-size: 0.75rem; margin-bottom: 0.5rem; ">您的电子邮件地址不会被公开</p>
|
||||
</div>
|
||||
<div class="comment_area">留言:<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;">提交留言</div>
|
||||
</div>
|
||||
<div class="xq">
|
||||
<div class="swt-Container">
|
||||
<?php
|
||||
$articles = getDifferentArticle('default', 3, ['cid' => $detail['cid'], 'id' => ['neq', $detail['id']]]);
|
||||
if ($articles):
|
||||
?>
|
||||
<!-- 猜您喜欢 -->
|
||||
<div class="love">
|
||||
<div class="love1">
|
||||
<p>你可能还喜欢</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/bottom1" /}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<input type="hidden" name="content_id" value="<?php echo $detail['id']; ?>">
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
// 提交表单
|
||||
$('.comment_btn').click(function(){
|
||||
var new_name = $('.new_name').val();
|
||||
var new_email = $('.new_email').val();
|
||||
var new_comment = $('.new_comment').val();
|
||||
|
||||
console.log('message');
|
||||
if (new_name == '') {
|
||||
//alert("The Name is Empty!");
|
||||
|
||||
$('.new_name').addClass('error');
|
||||
$('.new_name').next('span').removeClass('hide');
|
||||
return false;
|
||||
}else{
|
||||
$('.new_name').removeClass('error');
|
||||
$('.new_name').next('span').addClass('hide');
|
||||
}
|
||||
|
||||
|
||||
if (new_comment == '') {
|
||||
//alert("The Comment is Empty!");
|
||||
|
||||
$('.new_comment').addClass('error');
|
||||
$('.new_comment').next('span').removeClass('hide');
|
||||
return false;
|
||||
}else{
|
||||
$('.new_comment').removeClass('error');
|
||||
$('.new_comment').next('span').addClass('hide');
|
||||
}
|
||||
|
||||
if (new_email == '') {
|
||||
$('.new_email').addClass('error');
|
||||
$('.new_email').next('span').removeClass('hide');
|
||||
}
|
||||
else{
|
||||
if (/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(new_email) == false) {
|
||||
$('.new_email').addClass('error');
|
||||
$('.new_email').next('span').removeClass('hide');
|
||||
return false;
|
||||
}
|
||||
else{
|
||||
$('.new_email').removeClass('error');
|
||||
$('.new_email').next('span').addClass('hide');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
var bid = "<?php echo $detail['id'];?>";
|
||||
//点击创建申请块
|
||||
if(new_name && new_email && new_comment && bid) {
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/index/article/addcomment",
|
||||
data: {'name':new_name, 'email':new_email,'comment':new_comment,'article_id':bid},
|
||||
dataType: "json",
|
||||
success: function(data){
|
||||
if(data.code == 200) {
|
||||
alert("留言提交成功!");
|
||||
$(".new_name").val("");
|
||||
$(".new_email").val("");
|
||||
$(".new_comment").val("");
|
||||
}
|
||||
else{
|
||||
alert(data.msg);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
$(".Release").click(function() {
|
||||
if (user_data == null) {
|
||||
alert('请先登录');
|
||||
window.location.href = "__ORICOROOT__/customer/login";
|
||||
}
|
||||
|
||||
// console.log(user_data);
|
||||
var customer_id = user_data.user_info.id;
|
||||
var time = user_data.curr_time;
|
||||
var token = user_data.token;
|
||||
var firstname = user_data.user_info.firstname;
|
||||
var pid = 0; // 暂时是固定的
|
||||
var cid = $("input[name = 'content_id']").val();
|
||||
var content = $("#ccont").val();
|
||||
$.ajax({
|
||||
url: '__ORICOROOT__/pinglun/add',
|
||||
type: 'post',
|
||||
data: {id: customer_id, time: time, token: token, firstname: firstname, pid: pid, cid: cid, typeid: 'Article', content: content},
|
||||
dataType: 'json',
|
||||
success: function(res) {
|
||||
if (res) {
|
||||
if (res.code == 1) {
|
||||
// 评论成功
|
||||
alert(res.msg);
|
||||
location.reload();
|
||||
}else if (res.code == -101) {
|
||||
// token 过期
|
||||
|
||||
}else if (res.code == -1) {
|
||||
alert(res.msg);
|
||||
|
||||
}else if (res.code == -2) {
|
||||
// 前一分钟内评论过
|
||||
|
||||
}else if (res.code == -3) {
|
||||
// 未知错误
|
||||
|
||||
}else if (res.code == -4) {
|
||||
// 表单格式错误
|
||||
|
||||
}else if (res.code == -5) {
|
||||
// 插入数据库失败
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('.loves').bxSlider({
|
||||
slideWidth: 200,
|
||||
minSlides: 2,
|
||||
maxSlides: 2,
|
||||
infiniteLoop: false,
|
||||
slideMargin: 10
|
||||
});
|
||||
});
|
||||
</script>
|
||||
211
app/mobile/view/article/lists.phtml
Executable file
211
app/mobile/view/article/lists.phtml
Executable file
@@ -0,0 +1,211 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>新闻动态</title>
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<style>
|
||||
.news_list .right {
|
||||
float: left;
|
||||
width: 65%;
|
||||
}
|
||||
.news_list .left {
|
||||
float: left;
|
||||
width: 30%;
|
||||
}
|
||||
.news_list_share img {
|
||||
vertical-align: bottom;
|
||||
margin-right: 0.16rem;
|
||||
width: 0.927rem;
|
||||
height: 0.927rem;
|
||||
margin-bottom: 0.05rem;
|
||||
}
|
||||
.m_Container_right {
|
||||
float: right;
|
||||
margin: 5px 0 0 0 !important;
|
||||
}
|
||||
.news_list_des_text {
|
||||
font-size: 0.48rem;
|
||||
color: #666;
|
||||
line-height: 0.88rem;
|
||||
text-align: left !important;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- 轮播 s -->
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top_back1" /}
|
||||
<!--banner-->
|
||||
<div class="banner img-responsive margin-top-90">
|
||||
<img src="__PUBLIC__/m_web/images/news/news-banner.jpg">
|
||||
</div>
|
||||
<!--新闻列表-->
|
||||
<div class="swt-Container">
|
||||
<div class="news-vertu">
|
||||
<?php if($cate_list): ?>
|
||||
<div class="tab">
|
||||
<?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="bg-blog-in" value="">
|
||||
<button id="blog-btnput" class="search-button-blog">搜索</button>
|
||||
</div>
|
||||
<?php if (!empty($list)): ?>
|
||||
<div class="blog_list">
|
||||
<ul class="clearfix">
|
||||
<?php foreach ($list as $key => $value): ?>
|
||||
<?php
|
||||
if($value['jump_link'] == ''){
|
||||
$alink = "__ORICOROOT__/article/detail/".$value['id'].".html";
|
||||
}
|
||||
else{
|
||||
$alink = $value['jump_link'];
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $alink; ?>">
|
||||
<img src="<?php echo getImage($value['picture']); ?>">
|
||||
<h3><?php echo $value['name']; ?></h3>
|
||||
<p>
|
||||
<?php
|
||||
if (utf8_strlen($value['description']) > 35) {
|
||||
$value['description'] = msubstr($value['description'], 0, 35);
|
||||
}
|
||||
echo $value['description'];
|
||||
?>
|
||||
</p>
|
||||
</a>
|
||||
<span class="blue"><?php echo date("Y-m-d", $value['createtime']); ?></span>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<!-- 分页 s -->
|
||||
<div class="Pages"><?php if ($page) echo $page; ?></div> <!-- 分页 e -->
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<?php else: ?>
|
||||
<div class="news_list newfl">查询无此结果!</div>
|
||||
<?php endif; ?>
|
||||
<!-- Blog列表 e -->
|
||||
<script>
|
||||
|
||||
$(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) {
|
||||
|
||||
var keywords = $("#bg-blog-in").val();
|
||||
if(keywords){
|
||||
var href = "?name=" + encodeURIComponent(keywords);
|
||||
location.href = href;
|
||||
}
|
||||
else{
|
||||
var href = "/mobile/article.html";
|
||||
location.href = href;
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<!--精彩评论-->
|
||||
<?php if (!empty($hot_comment)): ?>
|
||||
<div class="m_Container">
|
||||
<div class="news-comments">
|
||||
<div class="title text_center title_margin-top">精彩评论</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/bottom1" /}
|
||||
|
||||
|
||||
|
||||
</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('__ORICOROOT__/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>
|
||||
88
app/mobile/view/blog/blog.phtml
Executable file
88
app/mobile/view/blog/blog.phtml
Executable file
@@ -0,0 +1,88 @@
|
||||
<!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_back1" /}
|
||||
<!-- 轮播 s -->
|
||||
<div class="homeban banner-other" style="margin-top: 40px;">
|
||||
<div class="bd">
|
||||
<ul>
|
||||
<li><a href="#"><img style="width:100%" src="__PUBLIC__/m_web/images/news/news-banner.jpg"/></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 轮播 e -->
|
||||
|
||||
<div class="m_Container">
|
||||
|
||||
<!-- Blog列表 s -->
|
||||
<div class="search_box">
|
||||
<i class="search_icon"></i>
|
||||
<input type="text" placeholder="Search blog articles" class="search" id="bg-search-in" value="<?php if(isset($search['name'])){ echo $search['name'];}?>"/>
|
||||
</div>
|
||||
<div class="blog_list">
|
||||
<?php if ($list): ?>
|
||||
<ul class="clearfix">
|
||||
<?php foreach ($list as $detail): ?>
|
||||
<li>
|
||||
<a href="<?php echo '/mobile/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="clearfix">No Result!</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
<!-- Blog列表 e -->
|
||||
<script>
|
||||
var type = 'Blog';
|
||||
|
||||
$(function(){
|
||||
|
||||
|
||||
$("#bg-search-in").keyup(function(event) {
|
||||
if (event && event.keyCode === 13) {
|
||||
var keywords = $("#bg-search-in").val();
|
||||
var href = "?name=" + encodeURIComponent(keywords);
|
||||
location.href = href;
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<br class="bottom-margin">
|
||||
|
||||
<!--底部-->
|
||||
{include file="include/bottom1" /}
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
159
app/mobile/view/blog/detail.phtml
Executable file
159
app/mobile/view/blog/detail.phtml
Executable file
@@ -0,0 +1,159 @@
|
||||
<!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_back1" /}
|
||||
|
||||
<!--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>发布于 <?php if($blog['add_time']) {echo date("M d, Y",strtotime($blog['add_time']));} else{echo "May 17, 2021";}?></p>
|
||||
</div>
|
||||
<div class="blog_content">
|
||||
<?php echo $blog['content'];?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="share_box">
|
||||
<div class="blog_share">
|
||||
<h3>分享 </h3>
|
||||
<ul class="share_list clearfix">
|
||||
<!-- Go to www.addthis.com/dashboard to customize your tools -->
|
||||
|
||||
<li><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>留言</h3>
|
||||
<form>
|
||||
<span>名字</span>
|
||||
<input class="new_name" type="text" name="name"/>
|
||||
<span>电邮地址</span>
|
||||
<input class="new_email" type="email" name="email" />
|
||||
<p style="color: #C6C7C9; font-size: 0.75rem; margin-bottom: 0.625rem;">你的电邮地址不会被分享</p>
|
||||
<span>评论</span>
|
||||
<textarea class="new_comment" rows="3" style="width: 98%; margin-top: 0.625rem;" name="comment"></textarea>
|
||||
<div class="comment_btn" style="color:#ffffff;">发布评论</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="comment">
|
||||
<h3>发表评论</h3>
|
||||
<form class="comment_form clearfix">
|
||||
<div style="margin-right: 0.625rem; margin-bottom: 0.5rem;">名字:<br/>
|
||||
<input class="new_name" type="text" name="name"/>
|
||||
</div>
|
||||
<div>电邮地址:<br/>
|
||||
<input class="new_email" type="email" name="email" />
|
||||
<p style="color: #C6C7C9; font-size: 0.5rem; margin-bottom: 0.5rem; font-weight: 400;">你的电邮地址不会被分享</p>
|
||||
</div>
|
||||
<div class="comment_area">评论:<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;">发布评论</div>
|
||||
</div>
|
||||
<?php if ($list): ?>
|
||||
<div class="comment_list">
|
||||
<h3>Showing <?php echo $total;?> 评论</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;
|
||||
}
|
||||
|
||||
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
|
||||
if(reg.test(new_email) == false) {
|
||||
alert("The Email format is not correct!");
|
||||
return false;
|
||||
}
|
||||
|
||||
var bid = "<?php echo $blog['id'];?>";
|
||||
//点击创建申请块
|
||||
if(new_name && new_email && new_comment && bid) {
|
||||
var type = 'Agent';
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/mobile/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/bottom1" /}
|
||||
<!-- bottom e -->
|
||||
</body>
|
||||
</html>
|
||||
293
app/mobile/view/customer/forgetpwd.phtml
Executable file
293
app/mobile/view/customer/forgetpwd.phtml
Executable file
@@ -0,0 +1,293 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8"> {include file="include/head" /}
|
||||
<title>忘记密码</title>
|
||||
<link href="__PUBLIC__/m_web/css/login.css" rel="stylesheet" type="text/css">
|
||||
<style></style>
|
||||
</head>
|
||||
|
||||
<body style="background: #fff;">
|
||||
<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>
|
||||
|
||||
<!-- 代码部分begin -->
|
||||
<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/phone.png" alt=""/>
|
||||
</div>
|
||||
<div class="input-a">
|
||||
<input id="telephone" name="telephone" type="" placeholder="请输入您手机号码" onfocus="this.placeholder=''" onblur="this.placeholder='请输入您手机号码'">
|
||||
</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 id="captcha" name="captcha" type="text" placeholder="请输入验证码" onfocus="this.placeholder=''" onblur="this.placeholder='请输入验证码'">
|
||||
</div>
|
||||
<div class="input-code"> <a href="javascript:void(0);" class="nbtn" id="nbtn"><button>获取验证码</button></a></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 id="password" name="password" type="password" placeholder="请设置您的新密码" onfocus="this.placeholder=''" onblur="this.placeholder='请设置您的新密码'">
|
||||
</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 id="re_password" name="re_password" type="password" placeholder="确认新密码" onfocus="this.placeholder=''" onblur="this.placeholder='确认新密码'">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--<div class="regist-form"><input type="checkbox"> 我已阅读并同意《网站服务条款》</div>-->
|
||||
<div class="margin-top-90 login-btn overflow-h">
|
||||
<button class="update_pwd">提交</button>
|
||||
</div>
|
||||
<div class="login-text margin-bottom-90 overflow-h"><span class="float_l"><a href="__ORICOROOT__/customer/register.html">立即注册</a></span> <span class="float_r"><a href="__ORICOROOT__/customer/login.html">立即登录</a></span></div>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$( function () {
|
||||
$( ".regist-tab .tab a" ).mouseover( function () {
|
||||
$( this ).addClass( 'on' ).siblings().removeClass( 'on' );
|
||||
var index = $( this ).index();
|
||||
number = index;
|
||||
$( '.regist-tab .content li' ).hide();
|
||||
$( '.regist-tab .content li:eq(' + index + ')' ).show();
|
||||
} );
|
||||
|
||||
var auto = 1; //等于1则自动切换,其他任意数字则不自动切换
|
||||
if ( auto == 1 ) {
|
||||
var number = 0;
|
||||
var maxNumber = $( '.regist-tab .tab a' ).length;
|
||||
|
||||
function autotab() {
|
||||
number++;
|
||||
number == maxNumber ? number = 0 : number;
|
||||
$( '.regist-tab .tab a:eq(' + number + ')' ).addClass( 'on' ).siblings().removeClass( 'on' );
|
||||
$( '.regist-tab .content ul li:eq(' + number + ')' ).show().siblings().hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$( ".update_pwd" ).click( function () {
|
||||
var telephone = $( "input[name = 'telephone']" ).val();
|
||||
var captcha = $( "input[name = 'captcha']" ).val();
|
||||
var password = $( "input[name = 'password']" ).val();
|
||||
var re_password = $( "input[name = 're_password']" ).val();
|
||||
|
||||
var arg = /^1[3456789]\d{9}$/;
|
||||
if (!arg.test(telephone))
|
||||
{
|
||||
var msg = '请检查手机号格式';
|
||||
alert(msg);
|
||||
return;
|
||||
}
|
||||
|
||||
arg = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,20}$/;
|
||||
if (!arg.test(password))
|
||||
{
|
||||
var msg = '密码必须包含8-20个字符,且包含数字和字母';
|
||||
alert(msg);
|
||||
return;
|
||||
}
|
||||
if (password != re_password)
|
||||
{
|
||||
var msg = '两次密码不一致';
|
||||
alert(msg);
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajax( {
|
||||
url: '__ORICOROOT__/customer/update_forget_pwd.html',
|
||||
type: 'post',
|
||||
data: {
|
||||
telephone: telephone,
|
||||
captcha: captcha,
|
||||
password: password,
|
||||
},
|
||||
dataType: 'json',
|
||||
success: function ( res ) {
|
||||
if ( res.code == 200 ) {
|
||||
alert('修改密码成功')
|
||||
window.location.href = "__ORICOROOT__/customer/personal.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
alert(res.msg);
|
||||
}
|
||||
}
|
||||
} );
|
||||
} );
|
||||
|
||||
|
||||
} );
|
||||
</script>
|
||||
|
||||
<!--底部-->
|
||||
{include file="include/bottom" /}
|
||||
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
var InterValObj; //timer变量,控制时间
|
||||
var curCount; //当前剩余秒数
|
||||
$(function() {
|
||||
$("a.yanzhengma").click(function(event) {
|
||||
event.preventDefault();
|
||||
//$img = $("#authcode");
|
||||
$("#yanzhengma").attr("src", "<?php echo url('index/authcode/verify', ['id' => 'yanzhengma']); ?>" + "?" + Math.random());
|
||||
});
|
||||
$('#register-form').bind('submit', function(event) {
|
||||
var nameObj = document.getElementById('firstname');
|
||||
if (isNull(nameObj.value) || nameObj.value.length < 2 || nameObj.value.length > 20) {
|
||||
alert('用户名必须在2-20个字符之间');
|
||||
nameObj.focus();
|
||||
return false;
|
||||
}
|
||||
var telephoneObj = document.getElementById('telephone');
|
||||
if (isNull(telephoneObj.value) || !isTelephone(telephoneObj.value)) {
|
||||
alert('手机号码格式不正确');
|
||||
telephoneObj.focus();
|
||||
return false;
|
||||
}
|
||||
var passwordObj = document.getElementById('password');
|
||||
if (isNull(passwordObj.value) || passwordObj.value.length < 6) {
|
||||
alert('密码必须包含8-20个字符,且包含数字和字母');
|
||||
passwordObj.focus();
|
||||
return false;
|
||||
}
|
||||
var repasswordObj = document.getElementById('repassword');
|
||||
if (isNull(repasswordObj.value)) {
|
||||
alert('请确认您的密码');
|
||||
repasswordObj.focus();
|
||||
return false;
|
||||
}
|
||||
if (repasswordObj.value !== passwordObj.value) {
|
||||
repasswordObj.focus();
|
||||
alert('两次密码不一致');
|
||||
return false;
|
||||
}
|
||||
var emailObj = document.getElementById('email');
|
||||
if (!validEmail(emailObj.value)) {
|
||||
alert('电子邮箱格式不正确');
|
||||
emailObj.focus();
|
||||
return false;
|
||||
}
|
||||
var codeObj = document.getElementById('code');
|
||||
if (isNull(codeObj.value)) {
|
||||
alert('短信验证码不能为空');
|
||||
codeObj.focus();
|
||||
return false;
|
||||
}
|
||||
var options = {
|
||||
type: "post",
|
||||
cache: false,
|
||||
dataType: "json",
|
||||
data: $(this).serialize(),
|
||||
success: function(data) {
|
||||
if (data.code) {
|
||||
//alert(data.msg);
|
||||
location.href = data.url;
|
||||
} else {
|
||||
alert(data.msg);
|
||||
}
|
||||
},
|
||||
complete: function() {
|
||||
$("a.yanzhengma").click();
|
||||
}
|
||||
};
|
||||
$.ajax(options);
|
||||
return false;
|
||||
});
|
||||
$("a#submit-btn").click(function(event) {
|
||||
event.preventDefault();
|
||||
$('#register-form').submit();
|
||||
});
|
||||
$("a#nbtn").click(function(event) {
|
||||
event.preventDefault();
|
||||
var telephoneObj = document.getElementById('telephone');
|
||||
if (isNull(telephoneObj.value) || !isTelephone(telephoneObj.value)) {
|
||||
alert('手机号码格式不正确');
|
||||
telephoneObj.focus();
|
||||
return false;
|
||||
}
|
||||
if (InterValObj) {
|
||||
return false;
|
||||
}
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '<?php echo url('__ORICOROOT__/customer/sendsms'); ?>',
|
||||
data: {telephone: telephoneObj.value},
|
||||
dataType: 'json',
|
||||
success: function(data) {
|
||||
if (data.code) {
|
||||
//设置button效果,开始计时
|
||||
curCount = 60;
|
||||
$("a#nbtn").css("background-color", "transparent");
|
||||
$("a#nbtn").attr("disabled", "true");
|
||||
$("a#nbtn").html("<button>重新发送" + curCount + "秒</button>");
|
||||
//alert("验证码发送成功,请查收!");
|
||||
InterValObj = window.setInterval(SetRemainTime, 1000); //启动计时器,1秒执行一次
|
||||
//alert(data.msg);
|
||||
} else {
|
||||
alert(data.msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
function SetRemainTime() {
|
||||
if (curCount < 1) {
|
||||
window.clearInterval(InterValObj); //停止计时器
|
||||
InterValObj = null;
|
||||
$("a#nbtn").removeAttr("disabled"); //启用按钮
|
||||
$("a#nbtn").css("background-color", "");
|
||||
$("a#nbtn").html("<button>重新发送</button>");
|
||||
} else {
|
||||
curCount--;
|
||||
$("a#nbtn").html("<button>重新发送" + curCount + "秒</button>");
|
||||
}
|
||||
}
|
||||
function isNull(data) {
|
||||
return (data == "" || data == undefined || data == null) ? true : false;
|
||||
}
|
||||
function trim(str) {
|
||||
return str.replace(/(^\s*)|(\s*$)/g, '');
|
||||
}
|
||||
function isTelephone(value) {
|
||||
var isMobile = /^1[345789]\d{9}$/;
|
||||
return isMobile.test(value);
|
||||
}
|
||||
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>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
78
app/mobile/view/customer/login.phtml
Executable file
78
app/mobile/view/customer/login.phtml
Executable file
@@ -0,0 +1,78 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
{include file="include/head" /}
|
||||
<title>登录</title>
|
||||
<link href="__PUBLIC__/m_web/css/login.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body style="background: #fff;" class="f_weight_100">
|
||||
<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>
|
||||
<div class="margin-top-30">
|
||||
<div class="login-m-a">
|
||||
<div class="login-m-user">
|
||||
<div class="login-m-img"><img src="__PUBLIC__/m_web/images/user/login-use.png" alt=""/></div>
|
||||
<div class="input-a">
|
||||
<input name="telephone" type="text" placeholder="用户名/账号/手机号" onfocus="this.placeholder=''" onblur="this.placeholder='用户名/账号/手机号'">
|
||||
</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="请输入您的密码" onfocus="this.placeholder=''" onblur="this.placeholder='请输入您的密码'">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="login-btn margin-top-70">
|
||||
<button class="login">登录</button>
|
||||
</div>
|
||||
<div class="login-text"><a href="__ORICOROOT__/customer/register.html">快速注册</a> <span class="floa_r"><a href="__ORICOROOT__/customer/forgetpwd.html">忘记密码?</a></span></div>
|
||||
|
||||
<!--其他登录方式-->
|
||||
<div class="m_Container other_login margin-top-90">
|
||||
<div class="title img-responsive"><img src="__PUBLIC__/m_web/images/user/other_login.png"></div>
|
||||
<div class="text_center margin-top-30 margin-bottom-60">
|
||||
<a href="__ORICOROOT__/customer/quick_login.html" class="img-responsive"><img src="__PUBLIC__/m_web/images/user/quick-phone.png"></a>
|
||||
</div>
|
||||
</div>
|
||||
<!--底部-->
|
||||
{include file="include/bottom" /}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$(".login").click(function() {
|
||||
var telephone = $("input[name = 'telephone']").val();
|
||||
var password = $("input[name = 'password']").val();
|
||||
$.ajax({
|
||||
url: '/mobile/customer/new_login.html',
|
||||
type: 'post',
|
||||
data: {
|
||||
username: telephone,
|
||||
password: password
|
||||
},
|
||||
dataType: 'json',
|
||||
success: function(res) {
|
||||
if (res.code == 200)
|
||||
window.location.href = "/mobile/customer/personal.html";
|
||||
else
|
||||
alert(res.msg);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
177
app/mobile/view/customer/my_collection.phtml
Executable file
177
app/mobile/view/customer/my_collection.phtml
Executable file
@@ -0,0 +1,177 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
{include file="include/head" /}
|
||||
<title>个人中心</title>
|
||||
<link href="__PUBLIC__/m_web/css/login.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<body style="background: #f4f5f5;">
|
||||
<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">
|
||||
<div class="m_Container">
|
||||
<div class="left"><img class="headimg" src="__PUBLIC__/m_web/images/user/user-img_03.png" alt=""/></div>
|
||||
<div class="right text_28">
|
||||
<p>用户:<?php echo $customer_info['firstname']; ?></p>
|
||||
<p class="margin-top-14">状态:已登录</p>
|
||||
</div>
|
||||
</div>
|
||||
</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>全部</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="/mobile/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">您未收藏任何产品</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>全选</div>
|
||||
<div class="collection_b_right 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">确定删除?</p>
|
||||
<p class="all_del_left">
|
||||
<span class="bg_red u_button_blue text_24">确定</span>
|
||||
<span class="bg_gray u_button_gray text_24">取消</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--底部-->
|
||||
{include file="include/bottom" /}
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<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>
|
||||
|
||||
<script type="text/javascript">
|
||||
function cancel_collection(product_id, type=0)
|
||||
{
|
||||
if (product_id == '')
|
||||
{
|
||||
alert('请先选择产品');
|
||||
$(".all_del").hide();
|
||||
return;
|
||||
}
|
||||
|
||||
var data = {
|
||||
type: 1,
|
||||
coll_id: product_id
|
||||
};
|
||||
|
||||
$.ajax({
|
||||
url: '/mobile/collection/cancel_collection.html',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: data,
|
||||
success: function (res) {
|
||||
if (type == 1)
|
||||
{
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
</script>
|
||||
297
app/mobile/view/customer/personal.phtml
Executable file
297
app/mobile/view/customer/personal.phtml
Executable file
@@ -0,0 +1,297 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8"> {include file="include/head" /}
|
||||
<title>个人中心</title>
|
||||
<link href="__PUBLIC__/m_web/css/login.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<body style="background: #f4f5f5;">
|
||||
<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">
|
||||
<div class="m_Container">
|
||||
<div class="left"><img class="headimg" style="border-radius: 50%;" src="<?php echo $customer_info['picture'] != '' ? $customer_info['picture'] : '__PUBLIC__/m_web/images/user/user-img_03.png'; ?>" alt=""/></div>
|
||||
<div class="right text_28">
|
||||
<p>用户:<?php echo $customer_info['firstname']; ?></p>
|
||||
<p class="margin-top-14">状态:已登录</p>
|
||||
</div>
|
||||
</div>
|
||||
</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">我的收藏</div></a>
|
||||
<div class="personal-icon"><img src="__PUBLIC__/m_web/images/user/personal-icon.png" alt=""/></div>
|
||||
</div>
|
||||
<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">修改密码</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>旧密码</label><input class="form-control input_class" id="old_pwd" type="password"></div>
|
||||
<?php endif; ?>
|
||||
<div class="margin-bottom-20"><label>新密码</label><input id="password" class="form-control input_class" type="password"></div>
|
||||
<div class="margin-bottom-20"><label>确认密码</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">忘记密码?</a></div>
|
||||
<div class="u_button text_22 text_center margin-top-50"><a class="u_button_blue" onclick="update_pwd()">确认</a><a class="u_button_gray">取消</a><!--<a href="http://www.orico.com.cn/forgetpwd"><span class="forget_button f_blue">忘记密码</span></a>--></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="personal-m-a text_28 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">修改邮箱</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>新邮箱</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()">确认</a><a class="u_button_gray">取消</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="personal-m-a text_28 text_gray">
|
||||
<div class="modify">
|
||||
<div class="personal-left-icon"><img src="__PUBLIC__/m_web/images/user/phone.png" alt=""/></div>
|
||||
<div class="personal-lable">手机号码</div>
|
||||
<div class="personal-c margin-top-40"><?php echo $customer_info['telephone']; ?></div>
|
||||
<div class="personal-icon"><img src="__PUBLIC__/m_web/images/user/personal-icon.png" alt=""/></div>
|
||||
</div>
|
||||
<div class="Popup">
|
||||
<div class="content phone img-responsive">
|
||||
<div class="margin-bottom-20"><label>旧手机</label><input class="form-control input_class" id="old_telephone" type="text"></div>
|
||||
<div class="margin-bottom-30"><label>新手机</label><input class="form-control input_class" id="telephone" type="text"></div>
|
||||
<div class="position_r margin-bottom-20">
|
||||
<div class="input-code">
|
||||
<input id="captcha" name="captcha" type="text" placeholder="请输入验证码" class="input_phone text_24">
|
||||
<a href="javascript:void(0);" class="nbtn" id="nbtn"><button>获取验证码</button></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="u_button text_22 text_center margin-top-50"><a onclick="update_tel()" class="u_button_blue">确认</a><a class="u_button_gray">取消</a><!--<a href="http://www.orico.com.cn/forgetpwd"><span class="forget_button f_blue">忘记密码</span></a>--></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class=" login-btn" style="margin-bottom: 1.3rem;">
|
||||
<button class="update margin-top-50" onclick="logout()">退出</button>
|
||||
</div>
|
||||
<!--底部-->
|
||||
{include file="include/bottom" /}
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<script type="text/javascript">
|
||||
/*修改密码*/
|
||||
$(function(){
|
||||
$(".modify").click(function(){
|
||||
$(this).next(".Popup").show();
|
||||
});
|
||||
$(".u_button_gray").click(function(){
|
||||
$(this).parents(".Popup").hide();
|
||||
})
|
||||
|
||||
});
|
||||
|
||||
var InterValObj; //timer变量,控制时间
|
||||
$("a#nbtn").click(function(event) {
|
||||
event.preventDefault();
|
||||
var telephoneObj = document.getElementById('telephone');
|
||||
|
||||
var arg = /^1[3456789]\d{9}$/;
|
||||
if (!arg.test(telephoneObj.value))
|
||||
{
|
||||
var msg = '请检查手机号格式';
|
||||
alert(msg);
|
||||
return;
|
||||
}
|
||||
|
||||
if (InterValObj) {
|
||||
return false;
|
||||
}
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '<?php echo url('__ORICOROOT__/customer/sendsms'); ?>',
|
||||
data: {telephone: telephoneObj.value},
|
||||
dataType: 'json',
|
||||
success: function(data) {
|
||||
if (data.code == 200) {
|
||||
//设置button效果,开始计时
|
||||
curCount = 60;
|
||||
$("a#nbtn").css("background-color", "transparent");
|
||||
$("a#nbtn").attr("disabled", "true");
|
||||
$("a#nbtn").html("<button>重新发送" + curCount + "秒</button>");
|
||||
//alert("验证码发送成功,请查收!");
|
||||
InterValObj = window.setInterval(SetRemainTime, 1000); //启动计时器,1秒执行一次
|
||||
//alert(data.msg);
|
||||
} else {
|
||||
alert(data.msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function SetRemainTime() {
|
||||
if (curCount < 1) {
|
||||
window.clearInterval(InterValObj); //停止计时器
|
||||
InterValObj = null;
|
||||
$("a#nbtn").removeAttr("disabled"); //启用按钮
|
||||
$("a#nbtn").css("background-color", "");
|
||||
$("a#nbtn").html("<button>重新发送</button>");
|
||||
} else {
|
||||
curCount--;
|
||||
$("a#nbtn").html("<button>重新发送" + curCount + "秒</button>");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function logout()
|
||||
{
|
||||
$.ajax({
|
||||
'url': '/mobile/customer/new_logout.html',
|
||||
'type': 'post',
|
||||
'success': function(res) {
|
||||
location.href = '__ORICOROOT__';
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
function update_pwd()
|
||||
{
|
||||
var old_pwd = $("#old_pwd").val();
|
||||
var password = $("#password").val();
|
||||
var re_password = $("#re_password").val();
|
||||
var arg = /^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&*-.]+$)[a-zA-Z\d!@#$%^&*-.]{8,20}$/;
|
||||
if (!arg.test(password))
|
||||
{
|
||||
var msg = '密码必须包含8-20个字符,且至少包含两种类型字符';
|
||||
alert(msg);
|
||||
return;
|
||||
}
|
||||
if (password != re_password)
|
||||
{
|
||||
var msg = '两次密码不一致';
|
||||
alert(msg);
|
||||
return;
|
||||
}
|
||||
|
||||
var data = {
|
||||
old_password: old_pwd,
|
||||
password: password,
|
||||
};
|
||||
|
||||
$.ajax({
|
||||
url: '/mobile/customer/update_pwd.html',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: data,
|
||||
success: function (res) {
|
||||
if (res.code == 200)
|
||||
{
|
||||
alert(res.msg);
|
||||
location.reload();
|
||||
}
|
||||
else
|
||||
{
|
||||
alert(res.msg);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function bind_email()
|
||||
{
|
||||
var email = $("#email").val();
|
||||
var data = {
|
||||
email: email
|
||||
};
|
||||
|
||||
var arg = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/;
|
||||
if (!arg.test(email))
|
||||
{
|
||||
var msg = '请检查邮箱格式';
|
||||
alert(msg);
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: '/mobile/customer/bind_email.html',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: data,
|
||||
success: function (res) {
|
||||
if (res.code == 200)
|
||||
{
|
||||
alert(res.msg);
|
||||
location.reload();
|
||||
}
|
||||
else
|
||||
{
|
||||
alert(res.msg);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
function update_tel()
|
||||
{
|
||||
var old_tel = $("#old_telephone").val();
|
||||
var new_tel = $("#telephone").val();
|
||||
var captcha = $("#captcha").val();
|
||||
|
||||
var data = {
|
||||
old_telephone: old_tel,
|
||||
new_telephone: new_tel,
|
||||
captcha: captcha
|
||||
};
|
||||
|
||||
var arg = /^1[3456789]\d{9}$/;
|
||||
if (!arg.test(old_tel) || !arg.test(new_tel))
|
||||
{
|
||||
var msg = '请检查手机号格式';
|
||||
alert(msg);
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: '/mobile/customer/update_tel.html',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: data,
|
||||
success: function (res) {
|
||||
if (res.code == 200)
|
||||
{
|
||||
alert(res.msg);
|
||||
location.reload();
|
||||
}
|
||||
else
|
||||
{
|
||||
alert(res.msg);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
</script>
|
||||
346
app/mobile/view/customer/quick_login.phtml
Executable file
346
app/mobile/view/customer/quick_login.phtml
Executable file
@@ -0,0 +1,346 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8"> {include file="include/head" /}
|
||||
<title>立即登录</title>
|
||||
<link href="__PUBLIC__/m_web/css/login.css" rel="stylesheet" type="text/css">
|
||||
<style></style>
|
||||
</head>
|
||||
|
||||
<body style="background: #fff;">
|
||||
<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>
|
||||
|
||||
<!-- 代码部分begin -->
|
||||
<div class="regist-tab">
|
||||
<!--<div class="tab">
|
||||
<a href="javascript:;" class="on">邮箱注册</a> <a href="javascript:;" class="on">手机注册</a> </div>-->
|
||||
<div class="content">
|
||||
<ul>
|
||||
<!-- <li style="display: none;"> -->
|
||||
<li>
|
||||
<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/phone.png" alt=""/>
|
||||
</div>
|
||||
<div class="input-a">
|
||||
<input id="telephone" name="telephone" type="" placeholder="手机号码" onfocus="this.placeholder=''" onblur="this.placeholder='手机号码'">
|
||||
</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 id="captcha" name="captcha" type="text" placeholder="请输入验证码" onfocus="this.placeholder=''" onblur="this.placeholder='请输入验证码'">
|
||||
</div>
|
||||
<div class="input-code"> <a href="javascript:void(0);" class="nbtn" id="nbtn"><button>获取验证码</button></a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--<div class="regist-form"><input type="checkbox"> 我已阅读并同意《网站服务条款》</div>-->
|
||||
<div class="margin-top-90 login-btn margin-bottom-90 overflow-h">
|
||||
<button class="login" onclick="login()">立即登录</button>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<script>
|
||||
$( function () {
|
||||
$( ".regist-tab .tab a" ).mouseover( function () {
|
||||
$( this ).addClass( 'on' ).siblings().removeClass( 'on' );
|
||||
var index = $( this ).index();
|
||||
number = index;
|
||||
$( '.regist-tab .content li' ).hide();
|
||||
$( '.regist-tab .content li:eq(' + index + ')' ).show();
|
||||
} );
|
||||
|
||||
var auto = 1; //等于1则自动切换,其他任意数字则不自动切换
|
||||
if ( auto == 1 ) {
|
||||
var number = 0;
|
||||
var maxNumber = $( '.regist-tab .tab a' ).length;
|
||||
|
||||
function autotab() {
|
||||
number++;
|
||||
number == maxNumber ? number = 0 : number;
|
||||
$( '.regist-tab .tab a:eq(' + number + ')' ).addClass( 'on' ).siblings().removeClass( 'on' );
|
||||
$( '.regist-tab .content ul li:eq(' + number + ')' ).show().siblings().hide();
|
||||
}
|
||||
}
|
||||
} );
|
||||
</script>
|
||||
|
||||
<!--底部-->
|
||||
{include file="include/bottom" /}
|
||||
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* var InterValObj; //timer变量,控制时间
|
||||
var curCount; //当前剩余秒数
|
||||
$(function() {
|
||||
$("a.yanzhengma").click(function(event) {
|
||||
event.preventDefault();
|
||||
//$img = $("#authcode");
|
||||
$("#yanzhengma").attr("src", "<?php echo url('index/authcode/verify', ['id' => 'yanzhengma']); ?>" + "?" + Math.random());
|
||||
});
|
||||
$('#register-form').bind('submit', function(event) {
|
||||
var nameObj = document.getElementById('firstname');
|
||||
if (isNull(nameObj.value) || nameObj.value.length < 2 || nameObj.value.length > 20) {
|
||||
alert('用户名必须在2-20个字符之间');
|
||||
nameObj.focus();
|
||||
return false;
|
||||
}
|
||||
var telephoneObj = document.getElementById('telephone');
|
||||
if (isNull(telephoneObj.value) || !isTelephone(telephoneObj.value)) {
|
||||
alert('手机号码格式不正确');
|
||||
telephoneObj.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
var codeObj = document.getElementById('code');
|
||||
if (isNull(codeObj.value)) {
|
||||
alert('短信验证码不能为空');
|
||||
codeObj.focus();
|
||||
return false;
|
||||
}
|
||||
var options = {
|
||||
type: "post",
|
||||
cache: false,
|
||||
dataType: "json",
|
||||
data: $(this).serialize(),
|
||||
success: function(data) {
|
||||
if (data.code) {
|
||||
//alert(data.msg);
|
||||
location.href = data.url;
|
||||
} else {
|
||||
alert(data.msg);
|
||||
}
|
||||
},
|
||||
complete: function() {
|
||||
$("a.yanzhengma").click();
|
||||
}
|
||||
};
|
||||
$.ajax(options);
|
||||
return false;
|
||||
});
|
||||
$("#submit-btn").click(function(event) {
|
||||
event.preventDefault();
|
||||
$('#register-form').submit();
|
||||
});
|
||||
$("#nbtn").click(function(event) {
|
||||
event.preventDefault();
|
||||
var telephoneObj = document.getElementById('telephone');
|
||||
if (isNull(telephoneObj.value) || !isTelephone(telephoneObj.value)) {
|
||||
alert('手机号码格式不正确');
|
||||
telephoneObj.focus();
|
||||
return false;
|
||||
}
|
||||
if (InterValObj) {
|
||||
return false;
|
||||
}
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '<?php echo url('__ORICOROOT__/customer/sendsms'); ?>',
|
||||
//data: {telephone: telephoneObj.value, register: 1},
|
||||
data:data,
|
||||
dataType: 'json',
|
||||
success: function(data) {
|
||||
if (data.code > 0) {
|
||||
//设置button效果,开始计时
|
||||
curCount = 60;
|
||||
$("#nbtn").css("background-color", "transparent");
|
||||
$("#nbtn").attr("disabled", "true");
|
||||
$("#nbtn").html("<button>重新发送" + curCount + "秒</button>");
|
||||
alert("验证码发送成功,请查收!");
|
||||
InterValObj = window.setInterval(SetRemainTime, 1000); //启动计时器,1秒执行一次
|
||||
//alert(data.msg);
|
||||
} else {
|
||||
alert(data.msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
function SetRemainTime() {
|
||||
if (curCount < 1) {
|
||||
window.clearInterval(InterValObj); //停止计时器
|
||||
InterValObj = null;
|
||||
$("#nbtn").removeAttr("disabled"); //启用按钮
|
||||
$("#nbtn").css("background-color", "");
|
||||
$("#nbtn").html("<button>重新发送</button>");
|
||||
} else {
|
||||
curCount--;
|
||||
$("#nbtn").html("<button>重新发送" + curCount + "秒</button>");
|
||||
}
|
||||
}
|
||||
function isNull(data) {
|
||||
return (data == "" || data == undefined || data == null) ? true : false;
|
||||
}
|
||||
function trim(str) {
|
||||
return str.replace(/(^\s*)|(\s*$)/g, '');
|
||||
}
|
||||
function isTelephone(value) {
|
||||
var isMobile = /^1[345789]\d{9}$/;
|
||||
return isMobile.test(value);
|
||||
}
|
||||
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);
|
||||
}*/
|
||||
|
||||
var InterValObj; //timer变量,控制时间
|
||||
var curCount; //当前剩余秒数
|
||||
$(function() {
|
||||
$("a.yanzhengma").click(function(event) {
|
||||
event.preventDefault();
|
||||
//$img = $("#authcode");
|
||||
$("#yanzhengma").attr("src", "<?php echo url('index/authcode/verify', ['id' => 'yanzhengma']); ?>" + "?" + Math.random());
|
||||
});
|
||||
$('#register-form').bind('submit', function(event) {
|
||||
var nameObj = document.getElementById('firstname');
|
||||
if (isNull(nameObj.value) || nameObj.value.length < 2 || nameObj.value.length > 20) {
|
||||
alert('用户名必须在2-20个字符之间');
|
||||
nameObj.focus();
|
||||
return false;
|
||||
}
|
||||
var telephoneObj = document.getElementById('telephone');
|
||||
if (isNull(telephoneObj.value) || !isTelephone(telephoneObj.value)) {
|
||||
alert('手机号码格式不正确');
|
||||
telephoneObj.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
var codeObj = document.getElementById('code');
|
||||
if (isNull(codeObj.value)) {
|
||||
alert('短信验证码不能为空');
|
||||
codeObj.focus();
|
||||
return false;
|
||||
}
|
||||
var options = {
|
||||
type: "post",
|
||||
cache: false,
|
||||
dataType: "json",
|
||||
data: $(this).serialize(),
|
||||
success: function(data) {
|
||||
if (data.code) {
|
||||
//alert(data.msg);
|
||||
location.href = data.url;
|
||||
} else {
|
||||
alert(data.msg);
|
||||
}
|
||||
},
|
||||
complete: function() {
|
||||
$("a.yanzhengma").click();
|
||||
}
|
||||
};
|
||||
$.ajax(options);
|
||||
return false;
|
||||
});
|
||||
$("a#submit-btn").click(function(event) {
|
||||
event.preventDefault();
|
||||
$('#register-form').submit();
|
||||
});
|
||||
$("a#nbtn").click(function(event) {
|
||||
event.preventDefault();
|
||||
var telephoneObj = document.getElementById('telephone');
|
||||
if (isNull(telephoneObj.value) || !isTelephone(telephoneObj.value)) {
|
||||
alert('手机号码格式不正确');
|
||||
telephoneObj.focus();
|
||||
return false;
|
||||
}
|
||||
if (InterValObj) {
|
||||
return false;
|
||||
}
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '<?php echo url('__ORICOROOT__/customer/sendsms'); ?>',
|
||||
data: {telephone: telephoneObj.value},
|
||||
dataType: 'json',
|
||||
success: function(data) {
|
||||
if (data.code == 200) {
|
||||
//设置button效果,开始计时
|
||||
curCount = 60;
|
||||
$("a#nbtn").css("background-color", "transparent");
|
||||
$("a#nbtn").attr("disabled", "true");
|
||||
$("a#nbtn").html("<button>重新发送" + curCount + "秒</button>");
|
||||
//alert("验证码发送成功,请查收!");
|
||||
InterValObj = window.setInterval(SetRemainTime, 1000); //启动计时器,1秒执行一次
|
||||
//alert(data.msg);
|
||||
} else {
|
||||
alert(data.msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
function SetRemainTime() {
|
||||
if (curCount < 1) {
|
||||
window.clearInterval(InterValObj); //停止计时器
|
||||
InterValObj = null;
|
||||
$("a#nbtn").removeAttr("disabled"); //启用按钮
|
||||
$("a#nbtn").css("background-color", "");
|
||||
$("a#nbtn").html("<button>重新发送</button>");
|
||||
} else {
|
||||
curCount--;
|
||||
$("a#nbtn").html("<button>重新发送" + curCount + "秒</button>");
|
||||
}
|
||||
}
|
||||
function isNull(data) {
|
||||
return (data == "" || data == undefined || data == null) ? true : false;
|
||||
}
|
||||
function trim(str) {
|
||||
return str.replace(/(^\s*)|(\s*$)/g, '');
|
||||
}
|
||||
function isTelephone(value) {
|
||||
var isMobile = /^1[345789]\d{9}$/;
|
||||
return isMobile.test(value);
|
||||
}
|
||||
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>
|
||||
</body>
|
||||
</html>
|
||||
<script type="text/javascript">
|
||||
function login()
|
||||
{
|
||||
var telephone = $("#telephone").val();
|
||||
var captcha = $("#captcha").val();
|
||||
|
||||
data = {
|
||||
telephone: telephone,
|
||||
captcha: captcha
|
||||
};
|
||||
|
||||
$.ajax({
|
||||
url: '/mobile/customer/new_login.html',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: data,
|
||||
success: function(res) {
|
||||
if (res.code == 200)
|
||||
{
|
||||
location.href = '__ORICOROOT__/customer/personal.html';
|
||||
}
|
||||
if (res.code < 0)
|
||||
{
|
||||
alert(res.msg);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
};
|
||||
</script>
|
||||
217
app/mobile/view/customer/register.phtml
Executable file
217
app/mobile/view/customer/register.phtml
Executable file
@@ -0,0 +1,217 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8"> {include file="include/head" /}
|
||||
<title>注册</title>
|
||||
<link href="__PUBLIC__/m_web/css/login.css" rel="stylesheet" type="text/css">
|
||||
<style></style>
|
||||
</head>
|
||||
|
||||
<body style="background: #fff;">
|
||||
<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>
|
||||
|
||||
<!-- 代码部分begin -->
|
||||
<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/phone.png" alt=""/></div>
|
||||
<div class="input-a"><input id="telephone" name="telephone" type="" placeholder="手机号码" onfocus="this.placeholder=''" onblur="this.placeholder='手机号码'"></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 id="captcha" name="captcha" type="text" placeholder="请输入验证码" onfocus="this.placeholder=''" onblur="this.placeholder='手机号码'"></div>
|
||||
<div class="input-code"> <a href="javascript:void(0);" class="nbtn" id="nbtn"><button>获取验证码</button></a></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()">立即注册</button></div>
|
||||
<div class="login-text"><a href="__ORICOROOT__/customer/login.html" class="float_l margin-bottom-90">立即登录</a></div>
|
||||
</div>
|
||||
<script>
|
||||
$( function () {
|
||||
$( ".regist-tab .tab a" ).mouseover( function () {
|
||||
$( this ).addClass( 'on' ).siblings().removeClass( 'on' );
|
||||
var index = $( this ).index();
|
||||
number = index;
|
||||
$( '.regist-tab .content li' ).hide();
|
||||
$( '.regist-tab .content li:eq(' + index + ')' ).show();
|
||||
} );
|
||||
|
||||
var auto = 1; //等于1则自动切换,其他任意数字则不自动切换
|
||||
if ( auto == 1 ) {
|
||||
var number = 0;
|
||||
var maxNumber = $( '.regist-tab .tab a' ).length;
|
||||
|
||||
function autotab() {
|
||||
number++;
|
||||
number == maxNumber ? number = 0 : number;
|
||||
$( '.regist-tab .tab a:eq(' + number + ')' ).addClass( 'on' ).siblings().removeClass( 'on' );
|
||||
$( '.regist-tab .content ul li:eq(' + number + ')' ).show().siblings().hide();
|
||||
}
|
||||
}
|
||||
} );
|
||||
</script>
|
||||
|
||||
<!--底部-->
|
||||
{include file="include/bottom" /}
|
||||
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
var InterValObj; //timer变量,控制时间
|
||||
var curCount; //当前剩余秒数
|
||||
$(function() {
|
||||
$("a.yanzhengma").click(function(event) {
|
||||
event.preventDefault();
|
||||
//$img = $("#authcode");
|
||||
$("#yanzhengma").attr("src", "<?php echo url('index/authcode/verify', ['id' => 'yanzhengma']); ?>" + "?" + Math.random());
|
||||
});
|
||||
$('#register-form').bind('submit', function(event) {
|
||||
var nameObj = document.getElementById('firstname');
|
||||
if (isNull(nameObj.value) || nameObj.value.length < 2 || nameObj.value.length > 20) {
|
||||
alert('用户名必须在2-20个字符之间');
|
||||
nameObj.focus();
|
||||
return false;
|
||||
}
|
||||
var telephoneObj = document.getElementById('telephone');
|
||||
if (isNull(telephoneObj.value) || !isTelephone(telephoneObj.value)) {
|
||||
alert('手机号码格式不正确');
|
||||
telephoneObj.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
var codeObj = document.getElementById('code');
|
||||
if (isNull(codeObj.value)) {
|
||||
alert('短信验证码不能为空');
|
||||
codeObj.focus();
|
||||
return false;
|
||||
}
|
||||
var options = {
|
||||
type: "post",
|
||||
cache: false,
|
||||
dataType: "json",
|
||||
data: $(this).serialize(),
|
||||
success: function(data) {
|
||||
if (data.code) {
|
||||
//alert(data.msg);
|
||||
location.href = data.url;
|
||||
} else {
|
||||
alert(data.msg);
|
||||
}
|
||||
},
|
||||
complete: function() {
|
||||
$("a.yanzhengma").click();
|
||||
}
|
||||
};
|
||||
$.ajax(options);
|
||||
return false;
|
||||
});
|
||||
$("a#submit-btn").click(function(event) {
|
||||
event.preventDefault();
|
||||
$('#register-form').submit();
|
||||
});
|
||||
$("a#nbtn").click(function(event) {
|
||||
event.preventDefault();
|
||||
var telephoneObj = document.getElementById('telephone');
|
||||
if (isNull(telephoneObj.value) || !isTelephone(telephoneObj.value)) {
|
||||
alert('手机号码格式不正确');
|
||||
telephoneObj.focus();
|
||||
return false;
|
||||
}
|
||||
if (InterValObj) {
|
||||
return false;
|
||||
}
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '<?php echo url('__ORICOROOT__/customer/sendsms'); ?>',
|
||||
data: {telephone: telephoneObj.value, register: 1},
|
||||
dataType: 'json',
|
||||
success: function(data) {
|
||||
if (data.code == 200) {
|
||||
//设置button效果,开始计时
|
||||
curCount = 60;
|
||||
$("a#nbtn").css("background-color", "transparent");
|
||||
$("a#nbtn").attr("disabled", "true");
|
||||
$("a#nbtn").html("<button>重新发送" + curCount + "秒</button>");
|
||||
//alert("验证码发送成功,请查收!");
|
||||
InterValObj = window.setInterval(SetRemainTime, 1000); //启动计时器,1秒执行一次
|
||||
//alert(data.msg);
|
||||
} else {
|
||||
alert(data.msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
function SetRemainTime() {
|
||||
if (curCount < 1) {
|
||||
window.clearInterval(InterValObj); //停止计时器
|
||||
InterValObj = null;
|
||||
$("a#nbtn").removeAttr("disabled"); //启用按钮
|
||||
$("a#nbtn").css("background-color", "");
|
||||
$("a#nbtn").html("<button>重新发送</button>");
|
||||
} else {
|
||||
curCount--;
|
||||
$("a#nbtn").html("<button>重新发送" + curCount + "秒</button>");
|
||||
}
|
||||
}
|
||||
function isNull(data) {
|
||||
return (data == "" || data == undefined || data == null) ? true : false;
|
||||
}
|
||||
function trim(str) {
|
||||
return str.replace(/(^\s*)|(\s*$)/g, '');
|
||||
}
|
||||
function isTelephone(value) {
|
||||
var isMobile = /^1[345789]\d{9}$/;
|
||||
return isMobile.test(value);
|
||||
}
|
||||
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>
|
||||
</body>
|
||||
</html>
|
||||
<script type="text/javascript">
|
||||
function register()
|
||||
{
|
||||
var telephone = $("#telephone").val();
|
||||
var captcha = $("#captcha").val();
|
||||
|
||||
data = {
|
||||
telephone: telephone,
|
||||
captcha: captcha
|
||||
};
|
||||
|
||||
$.ajax({
|
||||
url: '/mobile/customer/new_register',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: data,
|
||||
success: function(res) {
|
||||
if (res.code == 200)
|
||||
{
|
||||
location.href = '/mobile/customer/personal.html';
|
||||
}
|
||||
if (res.code < 0)
|
||||
{
|
||||
alert(res.msg);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
};
|
||||
</script>
|
||||
209
app/mobile/view/detail.phtml
Executable file
209
app/mobile/view/detail.phtml
Executable file
@@ -0,0 +1,209 @@
|
||||
<!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/js/bxslider/goods.bxslider.css">
|
||||
<script type="text/javascript" src="__PUBLIC__/m_web/js/bxslider/jquery.bxslider.min.js"></script></head>
|
||||
<body>
|
||||
<!--top-->
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top" /}
|
||||
|
||||
<!--产品地址-->
|
||||
<div class="m_Container">
|
||||
<div class="goods_address">
|
||||
<a href="/mobile" class="href_01">首页</a>
|
||||
<?php if ($pid): ?>
|
||||
<span class="icon-arrow arrow_address"></span>
|
||||
<a href="/mobile/product/catelists/id/<?php echo $pid['id']; ?>" class="href_02"><?php echo $pid['name']; ?></a>
|
||||
<?php endif; ?>
|
||||
<?php if ($cid): ?>
|
||||
<span class="icon-arrow arrow_address"></span>
|
||||
<a href="/mobile/product/subcatelists/id/<?php echo $cid['id']; ?>" class="href_02"><?php echo $cid['name']; ?></a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<!--产品主图-->
|
||||
<?php if (!empty($product_images)): ?>
|
||||
<div class="m_Container">
|
||||
<ul class="goods_list">
|
||||
<?php foreach ($product_images as $key => $value): ?>
|
||||
<li><img src="<?php echo getImage($value['image_url']); ?>"></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<!--规格参数-->
|
||||
<div class="m_Container">
|
||||
<div class="goods_all_title">
|
||||
<div class="title"><?php echo $detail['name']; ?></div>
|
||||
<div class="subtitle"><?php echo $detail['shortname']; ?></div>
|
||||
</div>
|
||||
<div class="proTfg">
|
||||
<ul class="msul swt-Table">
|
||||
<li class="Table-Row">
|
||||
<div class="ms1 Table-Cell">型号</div>
|
||||
<div class="ms2 Table-Cell"></div>
|
||||
<div class="ms3 Table-Cell"><?php echo $detail['brand_id']; ?></div>
|
||||
</li>
|
||||
<?php if ($detail['product_view']): ?>
|
||||
<?php $detail_views = unserialize($detail['product_view']); ?>
|
||||
<?php foreach ($detail_views as $key => $value): ?>
|
||||
<li class="Table-Row">
|
||||
<div class="ms1 Table-Cell"><?php echo $value['desc_title']; ?></div>
|
||||
<div class="ms2 Table-Cell"></div>
|
||||
<div class="ms3 Table-Cell"><?php echo $value['desc_desc']; ?></div>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="platform_buy">
|
||||
<a>天猫购买</a>
|
||||
<a>京东购买</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--详情-->
|
||||
<div class="goods_details">
|
||||
<ul class="cpa">
|
||||
<li><a href="#link1">产品描述</a></li>
|
||||
<li><a href="#link2">关联产品</a></li>
|
||||
<li><a href="#link4">评论</a></li>
|
||||
<div class="clear"></div>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="goods_des img-responsives">
|
||||
<?php echo $detail['ld_md_content']; ?>
|
||||
<!-- <img src="__PUBLIC__/m_web/images/products/des-01.jpg">
|
||||
<img src="__PUBLIC__/m_web/images/products/des-02.jpg">
|
||||
<img src="__PUBLIC__/m_web/images/products/des-03.jpg">
|
||||
<img src="__PUBLIC__/m_web/images/products/des-04.jpg">
|
||||
<img src="__PUBLIC__/m_web/images/products/des-05.jpg">
|
||||
<img src="__PUBLIC__/m_web/images/products/des-06.jpg">
|
||||
<img src="__PUBLIC__/m_web/images/products/des-07.jpg">
|
||||
<img src="__PUBLIC__/m_web/images/products/des-08.jpg"> -->
|
||||
</div>
|
||||
<div class="m_Container goods_Related">
|
||||
<div class="text_center title goods_Related_title">关联产品</div>
|
||||
<?php if ($product_relateds): ?>
|
||||
<ul class="goods_Related_list">
|
||||
<?php foreach ($product_relateds as $key => $value): ?>
|
||||
<li class="text_center">
|
||||
<div class=""><img src="<?php echo getImage($value['list_bk_img']); ?>"></div>
|
||||
<span class="title"><?php echo $value['name']; ?></span>
|
||||
<span class="subtitle"><?php echo $value['brand_id']; ?></span>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<!--评论-->
|
||||
<div class="m_Container goods_Related">
|
||||
<div class="text_center title">评论</div>
|
||||
<?php if ($list): $list = $list->items(); ?>
|
||||
<?php foreach ($list as $key => $value): ?>
|
||||
<div class="goods_comment">
|
||||
<span class="title"><?php echo $value['auctionSku']; ?></span>
|
||||
<span class="subtitle"><?php echo $value['displayUserNick'], $value['rateDate']; ?></span>
|
||||
<span class="subtitle"><?php echo $value['rateContent']; ?></span>
|
||||
<?php if ($value['pics']): ?>
|
||||
<div class="goods_comment_img">
|
||||
<ul>
|
||||
<?php foreach ($value['pics'] as $k => $v): ?>
|
||||
<li><img src="<?php echo getImage($v); ?>" class=""></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<!--大图-->
|
||||
<div class="big_img">
|
||||
<div class="swiper-container2">
|
||||
<div class="swiper-wrapper"> </div>
|
||||
</div>
|
||||
</div>
|
||||
<!--底部文件-->
|
||||
{include file="include/bottom" /}
|
||||
|
||||
</div>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/js/Click_enlarge/swiper.min.css"/>
|
||||
<script type="text/javascript" src="__PUBLIC__/m_web/js/Click_enlarge/swiper.min.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
/*banner*/
|
||||
$(function(){
|
||||
$('.goods_list').bxSlider({
|
||||
controls:false,
|
||||
});
|
||||
});
|
||||
|
||||
/*关联产品*/
|
||||
var htmlfontSize=$("html").css('font-size'); // 获取字体大小
|
||||
var reg = /\d+/;
|
||||
var bxSliderWidth = (htmlfontSize.match(reg)[0] * 5.04);
|
||||
var slideMarginWidth = (htmlfontSize.match(reg)[0] * 0.58);
|
||||
|
||||
//alert(slideMarginWidth);
|
||||
|
||||
$(function(){
|
||||
$('.goods_Related_list').bxSlider({
|
||||
controls:true,
|
||||
pager:false,
|
||||
minSlides: 3,
|
||||
maxSlides: 3,
|
||||
slideWidth: bxSliderWidth,
|
||||
slideMargin: slideMarginWidth,
|
||||
infiniteLoop:false,
|
||||
});
|
||||
});
|
||||
|
||||
/*评论点击放大功能*/
|
||||
$(document).ready(function(){
|
||||
/*调起大图 S*/
|
||||
var mySwiper = new Swiper('.swiper-container2', {
|
||||
loop: false,
|
||||
pagination: '.swiper-pagination2',
|
||||
})
|
||||
$(".goods_Related").on("click", ".goods_comment_img img",
|
||||
function() {
|
||||
var imgBox = $(this).parents(".goods_comment_img").find("img");
|
||||
var i = $(imgBox).index(this);
|
||||
$(".big_img .swiper-wrapper").html("")
|
||||
|
||||
for(var j = 0 ,c = imgBox.length; j < c ;j++){
|
||||
$(".big_img .swiper-wrapper").append('<div class="swiper-slide"><div class="cell"><img src="' + imgBox.eq(j).attr("src") + '" / ></div></div>');
|
||||
}
|
||||
mySwiper.updateSlidesSize();
|
||||
mySwiper.updatePagination();
|
||||
$(".big_img").css({
|
||||
"z-index": 1001,
|
||||
"opacity": "1"
|
||||
});
|
||||
mySwiper.slideTo(i, 0, false);
|
||||
return false;
|
||||
});
|
||||
|
||||
$(".big_img").on("click",
|
||||
function() {
|
||||
$(this).css({
|
||||
"z-index": "-1",
|
||||
"opacity": "0"
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
/*调起大图 E*/
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
143
app/mobile/view/download/catelists.phtml
Executable file
143
app/mobile/view/download/catelists.phtml
Executable file
@@ -0,0 +1,143 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>软件下载_ORICO/奥睿科官网</title>
|
||||
<meta name="Keywords" content="软件下载">
|
||||
<meta name="Description" content="软件下载">
|
||||
{include file="include/head" /}
|
||||
<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:linear-gradient(to right,#009fdf, #1eb7f3);width:100%;padding-top:8px;}
|
||||
.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;cursor: pointer;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;cursor: pointer;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;}
|
||||
.margin-top-60{
|
||||
margin-top: 52px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!--头部-->
|
||||
{include file="include/top_back1" /}
|
||||
<!--search-->
|
||||
<div class="margin-top-60"></div>
|
||||
<div class="menu mobile-search margin-top-90">
|
||||
<div class="search">
|
||||
<!-- <a href="__ORICOROOT__/search">-->
|
||||
|
||||
<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" name="keywords" id="search_software" placeholder="全站搜索" value="<?php if(isset($keywords)){ echo $keywords;} ?>" type="text">
|
||||
</div>
|
||||
|
||||
<!-- </a>-->
|
||||
</div>
|
||||
</div>
|
||||
<!--软件驱动下载-->
|
||||
<!--tab切换-->
|
||||
<div class="tab">
|
||||
<div class="download-title">软件下载</div>
|
||||
<!--a href="<?php echo url('__ORICOROOT__/download/catelists_down?id=3')?>" class="list">手册</a-->
|
||||
|
||||
</div>
|
||||
<!--tab切换-->
|
||||
|
||||
<!--循环-->
|
||||
<?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>适合型号:<?php echo $value['app_model']; ?></p>
|
||||
<p>支持系统:<?php echo $value['support_os']; ?></p>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
$downloadpath = explode(',', $value['downloadpath']);
|
||||
$downloadpath64 = explode(',', $value['downloadpath64']);
|
||||
foreach ($downloadpath as $k => $dl):
|
||||
$dlname = empty($downloadpath64[$k]) ? '下载' : $downloadpath64[$k];
|
||||
//$url=url('index/download/download', ['id' => $detail['id'], 'bit' => $k]);
|
||||
?>
|
||||
<div class="down-btn"><a href="/<?php echo trim($dl, '/'); ?>" class="l_button" data-cod="dl" data-id="<?php echo $value['id']; ?>" target="_blank"><?php echo $dlname; ?></a></div>
|
||||
<?php endforeach; ?>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php else:?>
|
||||
<div class="list clearfix">查询无此驱动!</div>
|
||||
<?php endif;?>
|
||||
<?php if ($page) { echo $page; } ?>
|
||||
|
||||
|
||||
<!--底部-->
|
||||
{include file="include/bottom1" /}
|
||||
<script type="text/javascript">
|
||||
/*定位光标*/
|
||||
document.querySelector('#search_software').focus();
|
||||
$(function() {
|
||||
//
|
||||
$("#search-btn").bind("click", function(event) {
|
||||
|
||||
var skeyword = $("#search_software").val();
|
||||
|
||||
if (skeyword) {
|
||||
var href = "__ORICOROOT__/download.html?skeyword=" + encodeURIComponent(skeyword);
|
||||
location.href = href;
|
||||
}
|
||||
else{
|
||||
var href = "__ORICOROOT__/download.html";
|
||||
location.href = href;
|
||||
}
|
||||
});
|
||||
$("#search-in").keyup(function(event) {
|
||||
if (event && event.keyCode === 13) {
|
||||
$("#search-btn").trigger("click");
|
||||
}
|
||||
});
|
||||
var $category = $(".navlist");
|
||||
$category.hide();
|
||||
$(".navul li").mouseleave(function() {
|
||||
$(this).children("a").addClass("aons");
|
||||
$(this).children("dl").stop(true, true).slideUp(500);
|
||||
|
||||
});
|
||||
$(".navul li").mouseenter(function() {
|
||||
$category.hide();
|
||||
$(this).children("dl").stop(true, true).slideDown(500);
|
||||
});
|
||||
//搜索框
|
||||
$(".Searchbox .icon").click(function() {
|
||||
$(".Search").slideToggle();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
.list .des {
|
||||
word-break: break-all;
|
||||
}
|
||||
</style>
|
||||
</body></html>
|
||||
127
app/mobile/view/download/catelists_down.phtml
Executable file
127
app/mobile/view/download/catelists_down.phtml
Executable file
@@ -0,0 +1,127 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>软件下载_ORICO/奥睿科官网</title>
|
||||
<meta name="Keywords" content="软件下载">
|
||||
<meta name="Description" content="软件下载">
|
||||
{include file="include/head" /}
|
||||
<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:linear-gradient(to right,#009fdf, #1eb7f3);width:100%;padding-top:8px;}
|
||||
.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;display: inline-block;}
|
||||
.down-btn a { color:#009fdf;}
|
||||
.down-btn a:hover {background:#009fdf; color:#fff;font-size: 0.64rem;}
|
||||
.down-gray {color:#666; margin: 5px 0;}
|
||||
.margin-top-60{
|
||||
margin-top: 52px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!--头部-->
|
||||
{include file="include/top_back1" /}
|
||||
<!--search-->
|
||||
<div class="margin-top-60"></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"></span></button>
|
||||
<input class="form-control" name="keywords" placeholder="全站搜索" value="<?php if(isset($keywords)){ echo $keywords;} ?>" type="text">
|
||||
</div>
|
||||
</form>
|
||||
<!-- </a>-->
|
||||
</div>
|
||||
</div>
|
||||
<!--软件驱动下载-->
|
||||
<div class="download-title">手册下载</div>
|
||||
<!--循环-->
|
||||
<?php if($downloads):?>
|
||||
<?php foreach ($downloads as $key => $value): ?>
|
||||
<div class="download-bg clearfix">
|
||||
<div class="download-left">
|
||||
|
||||
<?php if($detail['picture']):?>
|
||||
<img src="<?php echo $detail['picture']; ?>" alt="" />
|
||||
<?php else:?>
|
||||
<img src="__PUBLIC__/weben/images/software/manual.png" alt="" />
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<div class="download-right">
|
||||
<div class="font-48"> <?php echo $value['name']; ?></div>
|
||||
<div class="down-gray">
|
||||
<p>适合型号:<?php echo $value['app_model']; ?></p>
|
||||
</div>
|
||||
<div class="down-btn">
|
||||
|
||||
<?php
|
||||
$downloadpath = explode(',', $value['downloadpath']);
|
||||
$downloadpath64 = explode(',', $value['downloadpath64']);
|
||||
foreach ($downloadpath as $k => $dl):
|
||||
$dlname = empty($downloadpath64[$k]) ? '下载' : $downloadpath64[$k];
|
||||
|
||||
?>
|
||||
<a class="l_button" href="<?php echo url('/') . trim($dl, '/'); ?>" data-cod="dl" data-id="<?php echo $value['id']; ?>" target="_blank"><?php echo $dlname; ?></a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php else:?>
|
||||
<div class="list clearfix">查询无此说明书!</div>
|
||||
<?php endif;?>
|
||||
<!--底部-->
|
||||
{include file="include/bottom1" /}
|
||||
|
||||
<script type="text/javascript">
|
||||
/*定位光标*/
|
||||
document.querySelector('#search_input').focus();
|
||||
$(function() {
|
||||
//
|
||||
$("#search-btn").bind("click", function(event) {
|
||||
var skeyword = $("#search_input").val();
|
||||
if (skeyword) {
|
||||
var href = "<?php echo url('Download/catelists_down?id=3')?>?skeyword=" + encodeURIComponent(skeyword);
|
||||
location.href = href;
|
||||
}
|
||||
else{
|
||||
var href = "<?php echo url('Download/catelists_down?id=3')?>";
|
||||
location.href = href;
|
||||
}
|
||||
});
|
||||
$("#search-in").keyup(function(event) {
|
||||
if (event && event.keyCode === 13) {
|
||||
$("#search-btn").trigger("click");
|
||||
}
|
||||
});
|
||||
var $category = $(".navlist");
|
||||
$category.hide();
|
||||
$(".navul li").mouseleave(function() {
|
||||
$(this).children("a").addClass("aons");
|
||||
$(this).children("dl").stop(true, true).slideUp(500);
|
||||
|
||||
});
|
||||
$(".navul li").mouseenter(function() {
|
||||
$category.hide();
|
||||
$(this).children("dl").stop(true, true).slideDown(500);
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body></html>
|
||||
93
app/mobile/view/download/index.phtml
Executable file
93
app/mobile/view/download/index.phtml
Executable file
@@ -0,0 +1,93 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>软件下载_ORICO/奥睿科官网</title>
|
||||
<meta name="Keywords" content="软件下载">
|
||||
<meta name="Description" content="软件下载">
|
||||
{include file="include/head" /}
|
||||
<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:linear-gradient(to right,#009fdf, #1eb7f3);width:100%;padding-top:8px;}
|
||||
.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;cursor: pointer; 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;cursor: pointer; 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;}
|
||||
.margin-top-60{
|
||||
margin-top: 52px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!--头部-->
|
||||
{include file="include/top_back1" /}
|
||||
<!--search-->
|
||||
<div class="margin-top-60"></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"></span></button>
|
||||
<input class="form-control" name="keywords" placeholder="全站搜索" value="{$keywords}" type="text">
|
||||
</div>
|
||||
</form>
|
||||
<!-- </a>-->
|
||||
</div>
|
||||
</div>
|
||||
<!--软件驱动下载-->
|
||||
<div class="download-title">软件下载</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>适合型号:<?php echo $value['app_model']; ?></p>
|
||||
<p>支持系统:<?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移动备份宝APP</div>-->
|
||||
<!-- <div class="down-gray">-->
|
||||
<!-- <p>适合型号:BA2110</p>-->
|
||||
<!-- <p>支持系统:Android/iOS</p>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="down-btn"><a href="http://file.oricogroup.com/BA2110.rar">软件下载</a></div>-->
|
||||
<!---->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
|
||||
|
||||
<!--底部-->
|
||||
{include file="include/bottom1" /}
|
||||
|
||||
|
||||
|
||||
|
||||
</body></html>
|
||||
BIN
app/mobile/view/group.rar
Executable file
BIN
app/mobile/view/group.rar
Executable file
Binary file not shown.
178
app/mobile/view/group/Charger.phtml
Executable file
178
app/mobile/view/group/Charger.phtml
Executable file
@@ -0,0 +1,178 @@
|
||||
<!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">差旅搭档</p>
|
||||
<p class="des margin-top-10">美好旅途,</p>
|
||||
<p class="des margin-top-10">从满满的电量开始</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--第二屏-->
|
||||
<div class="m_Container text_black text_center">
|
||||
<div class="title margin-top-50">薄轻颜美、电快量足</div>
|
||||
<div class="subtitle margin-top-10">你旅途中的小确幸</div>
|
||||
<div class="des margin-top-10 line-height-40 text_gray">手机功能越来越丰富,体积越来越轻薄,作为强力的续航后盾——移动电源在生活中充当的角色也越来越重要。<br>
|
||||
轻薄无负的出行快感,单手可握的舒适手感,畅玩一周的饱满电量,以及即刻充满速度,让你对每一次出行,都充满了活力与期待。</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">天猫购买</a>
|
||||
<a href="https://item.jd.com/36818723893.html" target="_blank">京东购买</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">天猫购买</a>
|
||||
<a href="https://item.jd.com/36419513320.html" target="_blank">京东购买</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">天猫购买</a>
|
||||
<a href="https://item.jd.com/34136415732.html" target="_blank">京东购买</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">天猫购买</a>
|
||||
<a href="https://item.jd.com/33748667556.html" target="_blank">京东购买</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">萤之光系列</p>
|
||||
<p class="des margin-top-10">流萤之光,点亮黑暗</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">天猫购买</a>
|
||||
<a href="https://item.jd.com/27427030780.html" target="_blank">京东购买</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">天猫购买</a>
|
||||
<a href="https://item.jd.com/37256217725.html" target="_blank">京东购买</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">天猫购买</a>
|
||||
<a href="https://item.jd.com/36404611548.html" target="_blank">京东购买</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">天猫购买</a>
|
||||
<a href="https://item.jd.com/37256217724.html" target="_blank">京东购买</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">萤火虫系列大容量超薄移动电源</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">天猫购买</a>
|
||||
<a href="https://item.jd.com/39884105206.html" target="_blank">京东购买</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">移动电源+无线充<br>合二为一</p>
|
||||
<p class="des margin-top-10">冲破传统与技术的桎梏</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">多重快充模式合体<br>智能切换</p>
|
||||
<p class="des margin-top-10">18W电力传输,不想等,就要快</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">天猫购买</a>
|
||||
<a href="https://item.jd.com/27427030780.html" target="_blank">京东购买</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">天猫购买</a>
|
||||
<a href="https://item.jd.com/37256217725.html" target="_blank">京东购买</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<br class="bottom-margin">
|
||||
|
||||
<!--底部-->
|
||||
{include file="include/bottom" /}
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
159
app/mobile/view/group/achievement.phtml
Executable file
159
app/mobile/view/group/achievement.phtml
Executable file
@@ -0,0 +1,159 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>品牌里程 </title>
|
||||
<meta name="keywords" content="">
|
||||
<meta name="description" content="">
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
|
||||
<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_back1" /}
|
||||
<div class="margin-top-60"></div>
|
||||
<!--内容-->
|
||||
<div class="m_ach">
|
||||
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/brand/achievement_banner.jpg"></div>
|
||||
<div class="title">ORICO荣耀</div>
|
||||
<div class="list-num clearfix">
|
||||
<ul>
|
||||
<li>
|
||||
<h4>4000+</h4>
|
||||
<p>日订单</p>
|
||||
</li>
|
||||
<li>
|
||||
<h4>800+</h4>
|
||||
<p>研发专利</p>
|
||||
</li>
|
||||
<li>
|
||||
<h4>100+</h4>
|
||||
<p>畅销国家和地区</p>
|
||||
</li>
|
||||
<li>
|
||||
<h4>20+</h4>
|
||||
<p>国际设计奖项</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--时间轴-->
|
||||
<div class="m_ach-b"><div class="title">品牌里程</div></div>
|
||||
<div class="contain">
|
||||
<!-- 导航 -->
|
||||
<div class="nav">
|
||||
<div class="swiper-container gallery-thumbs">
|
||||
<div class="swiper-wrapper">
|
||||
<div class="swiper-slide">2022</div>
|
||||
<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>2022</h5><p>重新定位数据存储与传播以及电力存储与传输品类,开启全新研发模式。</p></div>
|
||||
<div class="swiper-slide info"><h5>2021</h5><p>在深圳成立211数字研发制造实验室发布首款NAS产品MetaBox个人家庭云存储。</p></div>
|
||||
<div class="swiper-slide info"><h5>2020</h5><p>荣获第十八届深圳市著名品牌、第七届全球诚信品牌;孵化旗下品牌IDSONIX,与联想在个人云存储和硬盘框领域达成战略合作。</p></div>
|
||||
<div class="swiper-slide info"><h5>2019</h5><p>ORICO(奥睿科)荣获《2019中国跨境电商出海品牌30强》受邀参加上海CES展 发布国内首款雷电3多功能扩展坞</p></div>
|
||||
<div class="swiper-slide info"><h5>2018</h5><p>参加迪拜GITEX展,“蜂巢系列”产品首次亮相ORICO(奥睿科)首次越南经销商大会在胡志明市召开</p></div>
|
||||
<div class="swiper-slide info"><h5>2017</h5><p>ORICO互联网创意产业园新型产业链孵化平台正式成立。</p></div>
|
||||
<div class="swiper-slide info"><h5>2016</h5><p>在深圳开启2016奶奶中国区,渠道核心代理商大会受邀参加,巴西圣保罗电子消费展</p></div>
|
||||
<div class="swiper-slide info"><h5>2015</h5><p>品牌全球电商运营中心,于长沙成立并运行投资4000万,搭建东莞元创动力电商产业园</p></div>
|
||||
<div class="swiper-slide info"><h5>2014</h5><p>ORICO(奥睿科)&WD达成中国区战略合作伙伴关系全球收款USB数码排插上市</p></div>
|
||||
<div class="swiper-slide info"><h5>2013</h5><p>荣获《国家高新技术企业》认证与WD西部数据建立合作关系</p></div>
|
||||
<div class="swiper-slide info"><h5>2012</h5><p>全资建立组装工厂ORICO(奥睿科)香港专卖店开业</p></div>
|
||||
<div class="swiper-slide info"><h5>2011</h5><p>开拓多国线下渠道加入SATA国际组织协会</p></div>
|
||||
<div class="swiper-slide info"><h5>2010</h5><p>开始布局线上渠道达成多项媒体合作关系</p></div>
|
||||
<div class="swiper-slide info"><h5>2009</h5><p>2009年06月17日ORICO(奥睿科)在中国深圳成立</p></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!---->
|
||||
<div class="m_ch">
|
||||
<div class="m_ach-b"><div class="chtitle">品牌活动</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">“无工具”设计促进了硬盘框安装的创新。加入SATA- io协会,确保SATA系列产品的高互操作性。</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">与WD达成战略合作,进一步探讨存储技术创新。成为威盛实验室中国区主要合作伙伴,正式推出无线云存储系统。</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">2014年成功开发智能数字插板,并启动京东众筹,取得满意效果。</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">开始研究数据传输和动力传输技术,包括Type-C、USB2.0、USB3.0等。</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">公司代表产品——透明罩系列面世。</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">与东芝合作,进一步探索个人存储解决方案,包括个人云存储、移动备份等。</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--底部-->
|
||||
{include file="include/bottom1" /}
|
||||
|
||||
</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>
|
||||
56
app/mobile/view/group/backup.phtml
Executable file
56
app/mobile/view/group/backup.phtml
Executable file
@@ -0,0 +1,56 @@
|
||||
<!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:200px;bottom: 80px;}
|
||||
|
||||
</style>
|
||||
<body οnlοad="openwin()">
|
||||
<div id="content">
|
||||
|
||||
<!--top-->
|
||||
{include file="include/top" /}
|
||||
<!--top End-->
|
||||
<div class="img-responsive">
|
||||
<a href="http://z.jd.com/project/details/1856168798.html?from=jr_search&type=0" target="_blank"><img src="__PUBLIC__/m_web/images/backup/backup-banner.png"></a>
|
||||
<div class="backup-rela">
|
||||
<img src="__PUBLIC__/m_web/images/backup/vedio-two.png">
|
||||
<div class="backup-also">
|
||||
<video controls class="margin-top-14">
|
||||
<source src="__PUBLIC__/m_web/images/backup/backup-vedio.mp4" type="video/mp4" />
|
||||
您的浏览器不支持 video 标签。
|
||||
Your browser does not support HTML5 video.
|
||||
</video>
|
||||
</div>
|
||||
</div>
|
||||
<img src="__PUBLIC__/m_web/images/backup/backup-03.png">
|
||||
<img src="__PUBLIC__/m_web/images/backup/backup-04.png">
|
||||
<img src="__PUBLIC__/m_web/images/backup/backup-05.png">
|
||||
<img src="__PUBLIC__/m_web/images/backup/backup-06.png">
|
||||
<img src="__PUBLIC__/m_web/images/backup/backup-07.png">
|
||||
<img src="__PUBLIC__/m_web/images/backup/backup-08.png">
|
||||
<img src="__PUBLIC__/m_web/images/backup/backup-09.png">
|
||||
<img src="__PUBLIC__/m_web/images/backup/backup-10.png">
|
||||
<img src="__PUBLIC__/m_web/images/backup/backup-11.png">
|
||||
<img src="__PUBLIC__/m_web/images/backup/backup-12.png">
|
||||
<img src="__PUBLIC__/m_web/images/backup/backup-13.png">
|
||||
<img src="__PUBLIC__/m_web/images/backup/backup-14.png">
|
||||
</div>
|
||||
<!-- bottom -->
|
||||
{include file="include/bottom" /}
|
||||
<!-- bottom e -->
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
132
app/mobile/view/group/brand-old.phtml
Executable file
132
app/mobile/view/group/brand-old.phtml
Executable file
@@ -0,0 +1,132 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>品牌发展_品牌故事_ORICO/奥睿科官网</title>
|
||||
<meta name="Keywords" content="品牌发展">
|
||||
<meta name="Description" content="品牌发展">
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/brand.css">
|
||||
</head>
|
||||
<body style="background-color:#FFF;">
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top_back" /}
|
||||
|
||||
<!--banner-->
|
||||
<div class="banner img-responsives margin-top-90">
|
||||
<img src="__PUBLIC__/m_web/images/brand/brand_banner.jpg">
|
||||
</div>
|
||||
|
||||
<!--品牌故事-->
|
||||
<div class="m_Container">
|
||||
<div class="title text_center margin-top-50 text_black"><strong>品牌故事</strong></div>
|
||||
<div class="des text_gray text_center line-height-40 margin-top-30">元创动力始于2009年,作为一家扎根于数码智能周边配件研发的创新型高新技术企业,坚持以雄厚的研发实力、严谨的生产态度、丰富的研发经验、长远的市场导向与规划,不断为个人、家庭及企业开发出实用的生活化产品、技术凸显的高性能产品,以可靠、便捷、创新的形象为大众用户所熟知;以快速、严谨、高质量的印象为合作伙伴所记忆。</div>
|
||||
</div>
|
||||
<div class="m_Container">
|
||||
<div class="title text_center margin-top-40 text_black"><strong>抓住冬日的艳阳</strong></div>
|
||||
<div class="des text_gray text_center line-height-40 margin-top-30">从创始人徐业友先生创立品牌以来,一直致力于让品牌从生活的不合理启发创造,尊重大众对更美好生活向往而不断提高和改变要求的意愿。从品牌创立之初,正值台式电脑向移动笔记本迭代的迅猛发展的时间段,各类台式机“以旧换新”的政策推动,使电脑的新旧换代就像冬日的艳阳,一片生机。<br>作为技术出身的徐业友先生抓住了这个机遇,从IT外围存储入手,为迭代下来的海量数据信息的存储,提供可靠方案,同时,也为轻量化的笔记本功能的完善,让笔记本也能像之前的台式机一样好用提出USB扩展产品开发方案,同期提出了品牌第一代的产品理念“Easy your PC”,一时间在电脑周边消费产品行业激起千层浪。</div>
|
||||
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/brand/brand_01.jpg"></div>
|
||||
</div>
|
||||
<div class="m_Container">
|
||||
<div class="title text_center margin-top-50 text_black"><strong>小改变引发的蝴蝶效应</strong></div>
|
||||
<div class="des text_gray text_center line-height-40 margin-top-30">随着一定的技术累积,元创开始寻求突破,从最熟悉的硬盘盒开始入手,改良了内部硬盘的嵌入设计,从此硬盘盒摆脱了多年来锁螺丝的麻烦,硬盘盒的“Tool free”概念很快便被大众市场所喜爱。 在数码手机/平板疯狂崛起的时期,对传统排插全面改良,将数码充电器与之融为一体,领先推出USB智能排插,拥有巨大的市场需求。 致敬苹果的透明机箱,元创将透明直接一贯到底,强势推出直击匠人内心的全透明系列,从芯片到电容,良心自信彰显。</div>
|
||||
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/brand/brand_02.jpg"></div>
|
||||
</div>
|
||||
<div class="m_Container">
|
||||
<div class="title text_center margin-top-50 text_black"><strong>持续探索科技于生活的意义</strong></div>
|
||||
<div class="des text_gray text_center line-height-40 margin-top-30">就像品牌的新元素“阿基米德螺旋”一样,不断一点一点的修正与改变方向, 就能不断地向更远的地方辐射延展。元创也始终坚持着不断的探索与累积每一点的改变,慢慢累积形成质变,探索更多的可能,不断的探索科技能够给人们生活带来的意义,由此作为品牌孜孜不倦不断追求与发展的动力源泉。</div>
|
||||
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/brand/brand_03.jpg"></div>
|
||||
</div>
|
||||
<!--品牌大事记-->
|
||||
<div class="m_Container overflow-h">
|
||||
<div class="title text_center margin-top-50 text_black"><strong>品牌大事记</strong></div>
|
||||
<div class="dis_box position-r text_gray">
|
||||
<div class="brand">
|
||||
<div class="culture-l position-r subtitle">2021年<span></span></div>
|
||||
<div class="culture-r des line-height-40">入选第七届“国际信誉品牌”暨第十八届“深圳知名品牌”。</div>
|
||||
</div>
|
||||
<div class="brand">
|
||||
<div class="culture-l position-r subtitle">2020年<span></span></div>
|
||||
<div class="culture-r des line-height-40">与什么值得买平台达成合作伙伴关系,超多性价比产品上线。</div>
|
||||
</div>
|
||||
<div class="brand">
|
||||
<div class="culture-l position-r subtitle">2019年<span></span></div>
|
||||
<div class="culture-r des line-height-40">获2019中国出海品牌20强。</div>
|
||||
</div>
|
||||
<div class="brand">
|
||||
<div class="culture-l position-r subtitle">2018年<span></span></div>
|
||||
<div class="culture-r des line-height-40">参加迪拜GITEX展会,“蜂巢系列”升级版磁盘阵列柜产品首次亮相。</div>
|
||||
</div>
|
||||
<div class="brand">
|
||||
<div class="culture-l position-r subtitle">2017年<span></span></div>
|
||||
<div class="culture-r des line-height-40">发布新潮透明系列外观产品,透明硬盘盒至今卖出约300余万件。</div>
|
||||
</div>
|
||||
<div class="brand">
|
||||
<div class="culture-l position-r subtitle">2016年<span></span></div>
|
||||
<div class="culture-r des line-height-40">参加香港环球资源电子产品展,发布国内首款可换式存储扩展产品9558U3系列。</div>
|
||||
</div>
|
||||
<div class="brand">
|
||||
<div class="culture-l position-r subtitle">2015年<span></span></div>
|
||||
<div class="culture-r des line-height-40">ORICO奥睿科品牌全球运营中心在湖南长沙成立,全力运营海内外线上平台。</div>
|
||||
</div>
|
||||
<div class="brand">
|
||||
<div class="culture-l position-r subtitle">2014年<span></span></div>
|
||||
<div class="culture-r des line-height-40">母公司元创时代完成自有产业链的打造,为ORICO奥睿科品牌的高速发展奠定了基础。</div>
|
||||
</div>
|
||||
<div class="brand">
|
||||
<div class="culture-l position-r subtitle">2013年<span></span></div>
|
||||
<div class="culture-r des line-height-40">母公司元创时代荣获【国家高新技术企业】认定;ORICO与多家方案原厂及WD成为战略合作伙伴。</div>
|
||||
</div>
|
||||
<div class="brand">
|
||||
<div class="culture-l position-r subtitle">2012年 <span></span></div>
|
||||
<div class="culture-r des line-height-40">ORICO奥睿科产品开始销往美国、西班牙、英国、法国等地。</div>
|
||||
</div>
|
||||
<div class="brand">
|
||||
<div class="culture-l position-r subtitle">2011年<span></span></div>
|
||||
<div class="culture-r des line-height-40">ORICO奥睿科开拓泰国、韩国、德国海外分销渠道;同年,元创时代入驻深圳龙岗区中海信工业园。</div>
|
||||
</div>
|
||||
<div class="brand">
|
||||
<div class="culture-l position-r subtitle">2010年<span></span></div>
|
||||
<div class="culture-r des line-height-40">ORICO奥睿科开始布局天猫、京东、易迅、苏宁易购、国美、亚马逊、新蛋等国内外主流线上电商平台。</div>
|
||||
</div>
|
||||
<div class="brand">
|
||||
<div class="culture-l position-r subtitle">2009年<span></span></div>
|
||||
<div class="culture-r des line-height-40">ORICO奥睿科品牌正式成立,同年,第一款免工具硬盘盒面市。</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--技术发展-->
|
||||
<!--品牌树立与平台模式支撑-->
|
||||
<div class="m_Container">
|
||||
<div class="title text_center margin-top-14 text_black"><strong>技术发展</strong></div>
|
||||
<div class="subtitle text_center margin-top-10 text_gray">2011年</div>
|
||||
<p class="des text_center margin-top-10 text_gray line-height-40">“Tool free”免工具拆装,推动硬盘盒安装大革新,同年,成功加入SATA国际组织(SATA-IO)协会,以确保品牌全系列SATA产品具有高度互通性!</p>
|
||||
<div class="img-responsive margin-top-14"><img src="__PUBLIC__/m_web/images/brand/brand_04.jpg"></div>
|
||||
<div class="subtitle text_center margin-top-30 text_gray">2013年</div>
|
||||
<p class="des text_center margin-top-10 text_gray line-height-40">与硬盘制造商巨头之一的西部数据(WD)达成战略合作,共同深度探讨存储技术的突破。同年,成为威锋电子中国地区重要合作伙伴,为品牌产品的核心主控方案,注入一剂强心针,正式推出无线云存储系统。</p>
|
||||
<div class="img-responsive margin-top-14"><img src="__PUBLIC__/m_web/images/brand/brand_05.jpg"></div>
|
||||
<div class="subtitle text_center margin-top-30 text_gray">2014年</div>
|
||||
<p class="des text_center margin-top-10 text_gray line-height-40">与硬盘制造商巨头之一的西部数据(WD)达成战略合作,共同深度探讨存储技术的突破。同年,成为威锋电子中国地区重要合作伙伴,为品牌产品的核心主控方案,注入一剂强心针,正式推出无线云存储系统。</p>
|
||||
<div class="img-responsive margin-top-14"><img src="__PUBLIC__/m_web/images/brand/brand_06.jpg"></div>
|
||||
<div class="subtitle text_center margin-top-30 text_gray">2015年</div>
|
||||
<p class="des text_center margin-top-10 text_gray line-height-40">开始着力研究包括Type-C、USB2.0、USB3.0在内的数据传输与电力传输技术。</p>
|
||||
<div class="img-responsive margin-top-14"><img src="__PUBLIC__/m_web/images/brand/brand_07.jpg"></div>
|
||||
<div class="subtitle text_center margin-top-30 text_gray">2016年</div>
|
||||
<p class="des text_center margin-top-10 text_gray line-height-40">ORICO与Fresco达成中国区终端战略合作伙伴。品牌代表性力作,透明系列正式面世。</p>
|
||||
<div class="img-responsive margin-top-14"><img src="__PUBLIC__/m_web/images/brand/brand_08.jpg"></div>
|
||||
<div class="subtitle text_center margin-top-30 text_gray">2020年</div>
|
||||
<p class="des text_center margin-top-10 text_gray line-height-40">品牌开始布局NAS产品线,同年与东芝在DAS和NAS产品开展合作。</p>
|
||||
<div class="img-responsive margin-top-14"><img src="__PUBLIC__/m_web/images/brand/brand_09.jpg"></div>
|
||||
</div>
|
||||
<br class="bottom-margin">
|
||||
<!--底部-->
|
||||
{include file="include/bottom1" /}
|
||||
|
||||
</div>
|
||||
|
||||
</body></html>
|
||||
92
app/mobile/view/group/brand.phtml
Executable file
92
app/mobile/view/group/brand.phtml
Executable file
@@ -0,0 +1,92 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>品牌故事</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_back1" /}
|
||||
|
||||
<!--banner-->
|
||||
<div class="video-right margin-top-60">
|
||||
<div class="banner img-responsives ">
|
||||
<img src="__PUBLIC__/m_web/images/brand/brand_banner.jpg">
|
||||
</div>
|
||||
<!-- <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">我们的故事</div>
|
||||
<div class="brand-con text_gray text_left line-height-40 margin-top-40">
|
||||
<p>ORICO成立于2009年,是一家专注于智能数码外设研发的创新型高科技企业。</p>
|
||||
<p>凭借雄厚的研发实力、严谨的生产态度、丰富的研发经验和长期的营销策划,ORICO坚持为个人、家庭或企业提供更便捷、高性能的产品。</p>
|
||||
<p>ORICO以其可靠和创新的形象而闻名。以其快速的速度、严谨的态度、优质的品质,为合作伙伴所铭记。</p>
|
||||
</div>
|
||||
<div class="img-responsive ">
|
||||
<img src="__PUBLIC__/m_weben/images/brand/brand-01.jpg">
|
||||
</div>
|
||||
|
||||
<div class="brand_title text_left">我们的使命</div>
|
||||
<div class="brand-con text_gray text_left line-height-40 margin-top-40">
|
||||
<p>Orico专注于数据和电力的存储和传输领域。公司以其多样化的产品组合,在满足消费者需求的同时,让他们体验科技带来的变化和便利。</p>
|
||||
<p>Orico不断创造新产品,引领新市场品类,重塑全球数据接入产品消费格局。在将来。Orico将依赖NAS。装饰。UFSD闪存盘、电缆等产品组合,满足全球市场对个性化数据存储和传输的需求。我们还将承担社会责任,促进资源互惠。为中国企业和中国制造业代言。</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">全球畅销<?php echo (date("Y")-2009);?>年</div>
|
||||
<div class="brand-con text_gray text_center line-height-40 margin-top-40">
|
||||
自ORICO成立以来,已在全球许多国家开设了线下渠道,拥有众多国家的独立代理和经销商。ORICO在外接硬盘盒和USB3.0外设领域连续四年被行业认可,我们的快充防雷插座在快速增长中保持前五名。
|
||||
</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">卓越的研发团队</div>
|
||||
<div class="brand-con text_gray text_center line-height-40 margin-top-40">
|
||||
我们致力于为客户的需求提供创新和实用的解决方案。成立了一个由近百名资深工程师、结构工程师、电子工程师等组成的专业研发团队。开发了数千种产品,如USB存储、USB扩展、USB插排、USB充电、数码配件以及优质外设。我们每周都保持新产品的研发。
|
||||
</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">年产能超过40亿</div>
|
||||
<div class="brand-con text_gray text_center line-height-40 margin-top-40">
|
||||
采用5S管理是创造优质产品的前提。ORICO投资近8000万元建设了互联网与创意产业园,这是一个综合服务中心,集创新与技术培训、项目孵化、产业加速、投融资服务等多种功能于一体。年产能稳定超过了40亿元人民币(合6亿美元)。
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--底部-->
|
||||
{include file="include/bottom1" /}
|
||||
|
||||
</div>
|
||||
<script>
|
||||
var video = document.getElementById("video");
|
||||
function play(){
|
||||
document.getElementById("poster").style.display = "none";
|
||||
video.play();
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.margin-top-60{
|
||||
margin-top:60px;
|
||||
}
|
||||
</style>
|
||||
</body></html>
|
||||
293
app/mobile/view/group/business.phtml
Executable file
293
app/mobile/view/group/business.phtml
Executable file
@@ -0,0 +1,293 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>商务订单</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_back1" /}
|
||||
|
||||
<div class="bdpage" style="background: #fff;border-radius: 8px;padding-top: 50px;">
|
||||
<div class="bd_main bd_main1 bd_main2" >
|
||||
<h1 class="t1 sfbt1">批量购买</h1>
|
||||
<!--内容-->
|
||||
<div class="bd_ct ">
|
||||
<div class="bd_from" style="padding: 0 16px;">
|
||||
<div class="theit">
|
||||
<div class="bditem">
|
||||
<label class="itlable">公司名称<span class="redtag">*</span></label>
|
||||
<input type="text" class="form-control itinp companyName" placeholder="法定营业名称">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem">
|
||||
<label class="itlable">官方网站</label>
|
||||
<input type="text" class="form-control itinp url" placeholder="请粘贴网址">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem">
|
||||
<label class="itlable">姓名<span class="redtag">*</span></label>
|
||||
<input type="text" class="form-control itinp firstname" placeholder="名">
|
||||
<input type="text" class="form-control itinp lastname" placeholder="姓" style="margin-top: 8px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem">
|
||||
<label class="itlable">邮箱<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">电话号码</label>
|
||||
<input type="text" class="form-control itinp phone">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem bditem1">
|
||||
<label class="itlable">您对哪个产品品类感兴趣?</label>
|
||||
<div class="sfbchecks">
|
||||
<form class="sfbcheckboxlist" action="" method="get">
|
||||
<label class="cit">
|
||||
<input name="interested" type="checkbox" value="Computer Peripheral" class="sfbcheckboxit">电脑配件
|
||||
</label>
|
||||
<label class="cit">
|
||||
<input type="checkbox" value="Phone Peripheral" name="interested" class="sfbcheckboxit">手机配件</label>
|
||||
<label class="cit">
|
||||
<input type="checkbox" value="Electronics" name="interested" class="sfbcheckboxit">电子电工
|
||||
</label>
|
||||
<label class="cit">
|
||||
<input type="checkbox" value="SSD" name="interested" class="sfbcheckboxit">固态硬盘
|
||||
</label>
|
||||
<label class="cit">
|
||||
<input type="checkbox" value="Entertainment Series" name="interested" class="sfbcheckboxit">娱乐系列
|
||||
</label>
|
||||
<label class="cit">
|
||||
<input type="checkbox" value="Smart Life Series" name="interested" class="sfbcheckboxit">智能生活
|
||||
</label>
|
||||
<label class="cit">
|
||||
<input type="checkbox" value="Outdoor Power Station" name="interested" class="sfbcheckboxit">户外电源
|
||||
</label>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem bditem1">
|
||||
<label class="itlable">留言<span class="redtag">*</span></label>
|
||||
<textarea class="ittextarea ittextarea2 message" placeholder="留言"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 提交-->
|
||||
<div class="bttj">提交</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 详情页 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: "/index/bulk/inquiry",
|
||||
data: {'company':companyName, 'url':url, 'email':email,'name':firstName,'last_name':lastName,'phone':phone,'interested':interesteds,'message':message,'refer':k_win_ref},
|
||||
dataType: "json",
|
||||
success: function(data){
|
||||
if(data.code == 200) {
|
||||
alert('信息已成功提交!');
|
||||
|
||||
$("input[ type='text']").val('');
|
||||
$(":input[name='interested']").attr("checked",false);
|
||||
$("input[ type='email']").val('');
|
||||
$('.firstname').val('');
|
||||
$('.companyName').val('');
|
||||
$('.lastname').val('');
|
||||
$('.phone').val('');
|
||||
$('.message').val('');
|
||||
$('.url').val('');
|
||||
$('#email').val('');
|
||||
|
||||
}
|
||||
else{
|
||||
if(data.code == 403 || data.code == 201) {
|
||||
alert(data.msg);
|
||||
}
|
||||
else{
|
||||
|
||||
$('.email').addClass('error');
|
||||
$('.email').next('span').removeClass('hide');
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
})
|
||||
|
||||
$(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/bottom1" /}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
141
app/mobile/view/group/contact-old.phtml
Executable file
141
app/mobile/view/group/contact-old.phtml
Executable file
@@ -0,0 +1,141 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>联系我们_ORICO/奥睿科官网</title>
|
||||
<meta name="Keywords" content="联系我们">
|
||||
<meta name="Description" content="联系ORICO 奥睿科">
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/contact.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top" /}
|
||||
|
||||
<!--banner-->
|
||||
<div class="banner img-responsives margin-top-90">
|
||||
<img src="__PUBLIC__/m_web/images/contact/contact_banner.jpg">
|
||||
</div>
|
||||
|
||||
<!--联系地址-->
|
||||
<div class="m_Container">
|
||||
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/contact/contact_01.jpg"></div>
|
||||
<p class="subtitle text_black margin-top-14"><strong>深圳市元创时代科技有限公司</strong></p>
|
||||
<p class="des text_gray margin-top-14 line-height-40">地址:深圳市龙岗区布澜大道中海信科技园总部经济中心<br>14A栋19楼</p>
|
||||
<p class="des text_gray margin-top-14">电话:86-755-25196059, 25196115</p>
|
||||
<p class="des text_gray margin-top-14">传真:86-755-82670236</p>
|
||||
<p class="des text_gray margin-top-14">邮编:518112</p>
|
||||
<p class="des text_gray margin-top-14">售后与技术支持热线:400-6696-298</p>
|
||||
<p class="des text_gray margin-top-14">E-mail:supports@orico.com.cn</p>
|
||||
</div>
|
||||
|
||||
<div class="m_Container">
|
||||
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/contact/contact_02.jpg"></div>
|
||||
<p class="subtitle text_black margin-top-14"><strong>ORICO/奥睿科 东莞元创动力</strong></p>
|
||||
<p class="des text_gray margin-top-14 line-height-40">地址:广东省东莞市常平镇塘角路24号元创动力互联网+创<br>新产业园</p>
|
||||
<p class="des text_gray margin-top-14">招商热线:0769-8189 9088</p>
|
||||
<p class="des text_gray margin-top-14">QQ:1521625007</p>
|
||||
<p class="des text_gray margin-top-14">邮编:523560</p>
|
||||
<p class="des text_gray margin-top-14">入驻联系:郭生</p>
|
||||
<p class="des text_gray margin-top-14">E-mail:golf@orico.com.cn</p>
|
||||
</div>
|
||||
|
||||
<div class="m_Container">
|
||||
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/contact/contact_03.jpg"></div>
|
||||
<p class="subtitle text_black margin-top-14"><strong>ORICO/奥睿科 长沙分公司</strong></p>
|
||||
<p class="des text_gray margin-top-14 line-height-40">地址:长沙市高新区岳麓西大道588号芯城科技园8栋11层、<br>12层、13层</p>
|
||||
<p class="des text_gray margin-top-14">电话:86-731-88965800/88965801</p>
|
||||
<p class="des text_gray margin-top-14">邮编:410000</p>
|
||||
<p class="des text_gray margin-top-14">售后与技术支持热线:400-6696-298</p>
|
||||
<p class="des text_gray margin-top-14">E-mail: sales@orico.com.cn</p>
|
||||
</div>
|
||||
|
||||
<div class="m_Container">
|
||||
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/contact/contact_09.jpg"></div>
|
||||
<p class="subtitle text_black margin-top-14"><strong>东莞市心创塑胶制品有限公司</strong></p>
|
||||
<p class="des text_gray margin-top-14">地址:东莞市塘厦四村高科技工业区二路十号</p>
|
||||
<p class="des text_gray margin-top-14">联系人:郑先生</p>
|
||||
<p class="des text_gray margin-top-14">电话:0769-39000958</p>
|
||||
<p class="des text_gray margin-top-14">QQ:574223813</p>
|
||||
<p class="des text_gray margin-top-14">E-mail:zhengjun.mc@orico.cn</p>
|
||||
</div>
|
||||
|
||||
<div class="m_Container">
|
||||
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/contact/contact_08.jpg"></div>
|
||||
<p class="subtitle text_black margin-top-14"><strong>东莞市欣元睿创电子科技有限公司</strong></p>
|
||||
<p class="des text_gray margin-top-14 line-height-40">地址:东莞市常平镇桥梓村塘角路24号元创动力产业园<br>D栋2楼</p>
|
||||
<p class="des text_gray margin-top-14">联系人:余先生</p>
|
||||
<p class="des text_gray margin-top-14">电话:0769-83397358</p>
|
||||
<p class="des text_gray margin-top-14">QQ:820704056</p>
|
||||
<p class="des text_gray margin-top-14">E-mail:pmc.bc@orico.cn</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!--联系人-->
|
||||
<div class="m_Container margin-top-50">
|
||||
<ul class="contact_two text_center">
|
||||
<li>
|
||||
<img src="__PUBLIC__/m_web/images/contact/contact_10.jpg">
|
||||
<p class="des text_black margin-top-20"><strong>国内品牌业务</strong></p>
|
||||
<p class="contact_line margin-top-14"><img src="__PUBLIC__/m_web/images/contact/line.jpg"></p>
|
||||
<p class="des text_black margin-top-10">彭玉环</p>
|
||||
<p class="text_22 text_gray margin-top-10">15927488021</p>
|
||||
<p class="text_22 text_gray margin-top-10">E-mail: <span class="text_blue">pengyuhuan@orico.com.cn</span></p>
|
||||
</li>
|
||||
<li>
|
||||
<img src="__PUBLIC__/m_web/images/contact/contact_11.jpg">
|
||||
<p class="des text_black margin-top-20"><strong>海外品牌业务</strong></p>
|
||||
<p class="contact_line margin-top-14"><img src="__PUBLIC__/m_web/images/contact/line.jpg"></p>
|
||||
<p class="des text_black margin-top-10">Darren</p>
|
||||
<p class="text_22 text_gray margin-top-10">电话:13997611006</p>
|
||||
<p class="text_22 text_gray margin-top-10">E-mail:<span class="text_blue">Darren@orico.com.cn</span></p>
|
||||
</li>
|
||||
<li>
|
||||
<img src="__PUBLIC__/m_web/images/contact/contact_12.jpg">
|
||||
<p class="des text_black margin-top-20"><strong>ODM服务</strong></p>
|
||||
<p class="contact_line margin-top-14"><img src="__PUBLIC__/m_web/images/contact/line.jpg"></p>
|
||||
<p class="des text_black margin-top-10">李璋</p>
|
||||
<p class="text_22 text_gray margin-top-10">电话:13751161411
|
||||
</p>
|
||||
<p class="text_22 text_gray margin-top-10">E-mail: <span class="text_blue">lizhang@orico.com.cn</span></p>
|
||||
</li>
|
||||
<li>
|
||||
<img src="__PUBLIC__/m_web/images/contact/contact_13.jpg">
|
||||
<p class="des text_black margin-top-20"><strong>国内市场营销主管</strong></p>
|
||||
<p class="contact_line margin-top-14"><img src="__PUBLIC__/m_web/images/contact/line.jpg"></p>
|
||||
<p class="des text_black margin-top-10">刘玲</p>
|
||||
<p class="text_22 text_gray margin-top-10">电话:17325283136</p>
|
||||
<p class="text_22 text_gray margin-top-10">E-mail: <span class="text_blue">Jessica.liu@orico.com</span></p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="m_Container margin-top-50">
|
||||
<ul class="contact_three text_black text_center">
|
||||
<li class="contact_three_01">
|
||||
<img src="__PUBLIC__/m_web/images/contact/contact_14.png">
|
||||
<p>售后电话:400-6696-298</p>
|
||||
</li>
|
||||
<li class="contact_three_02">
|
||||
<img src="__PUBLIC__/m_web/images/contact/contact_15.png">
|
||||
<p>邮箱地址:<a href="mailto:supports@orico.com.cn" class="text_blue">supports@orico.com.cn</a></p>
|
||||
</li>
|
||||
<li class="contact_three_03">
|
||||
<img src="__PUBLIC__/m_web/images/contact/contact_16.png">
|
||||
<p>工作时间:09:00—18:00</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<br class="bottom-margin">
|
||||
<!--底部-->
|
||||
{include file="include/bottom" /}
|
||||
|
||||
</div>
|
||||
|
||||
</body></html>
|
||||
164
app/mobile/view/group/contact.20240705.phtml
Executable file
164
app/mobile/view/group/contact.20240705.phtml
Executable file
@@ -0,0 +1,164 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
{include file="include/head" /}
|
||||
|
||||
<title>联系我们</title>
|
||||
<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_back1" /}
|
||||
<div class="margin-top-60"></div>
|
||||
<!--banner-->
|
||||
<div class="banner img-responsives margin-top-90">
|
||||
<!--<img src="__PUBLIC__/m_weben/images/contact/contact_banner.png">-->
|
||||
<!--<div class="banner_title">CONTACT US</div>-->
|
||||
<img src="__PUBLIC__/web/images/indeximage/600-900-1.jpg" alt="" />
|
||||
</div>
|
||||
<!--我们的信息-->
|
||||
<div class="content">
|
||||
<div class="title">我们的信息</div>
|
||||
<div class="info">
|
||||
<div class="left"><img src="__PUBLIC__/m_weben/images/contact/address.png"></div>
|
||||
<div class="right">
|
||||
<div class="des">中国广东省深圳市龙岗区中海信创业园14A栋19层</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">售后信箱:</div>
|
||||
<div class="des">supports@orico.com.cn</div>
|
||||
<!--div class="info_title m-t-20">订单咨询:</div>
|
||||
<div class="des">wholesale@oricotechs.com</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">周一至周五:</div>
|
||||
<div class="des"> 北京时间 9:00- 18:00</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--question-->
|
||||
<div class="content">
|
||||
<div class="title">提交您的问题</div>
|
||||
<div class="question">
|
||||
<div class="title">名字 <span class="red">*</span></div>
|
||||
<div class="des">
|
||||
<input type="text" name="name" id="name" placeholder="请输入你的名字" class="form-control itinp"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="question">
|
||||
<div class="title">邮箱 <span class="red">*</span></div>
|
||||
<div class="des">
|
||||
<input type="text" name="email" id="email" placeholder="请输入你的邮箱" class="form-control itinp"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="question">
|
||||
<div class="title">你的问题 <span class="red">*</span></div>
|
||||
<div class="des">
|
||||
<textarea rows="6" name="message" id="message" class="ittextarea message" placeholder="请输入你的问题"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="question">
|
||||
<span class="send">发送</span>
|
||||
</div>
|
||||
</div>
|
||||
<!--Become a Distributor-->
|
||||
<div class="contact_b"><a href="__ORICOROOT__/Group/distributor">成为经销商</a></div>
|
||||
{include file="include/bottom1" /}
|
||||
</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 (name && email && message) {
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/index/bulk/create",
|
||||
data: {
|
||||
'username': name,
|
||||
'email': email,
|
||||
'message': message
|
||||
},
|
||||
dataType: "json",
|
||||
success: function(data) {
|
||||
if (data.code == 200) {
|
||||
alert('信息已成功提交!');
|
||||
$(".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>
|
||||
247
app/mobile/view/group/contact.phtml
Executable file
247
app/mobile/view/group/contact.phtml
Executable file
@@ -0,0 +1,247 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
{include file="include/head" /}
|
||||
<title>客户服务</title>
|
||||
<style type="text/css">
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.narskfPage {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #F5F5F5;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.narskfPage .narskf-content {
|
||||
width: calc(100% - 20px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 0 0.625rem;
|
||||
padding-top: 0.625rem;
|
||||
padding-bottom: 11.25rem;
|
||||
}
|
||||
.narskfPage .narskf-content .narskf-ct-row {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.narskfPage .narskf-content .narskf-ct-row .narskfit {
|
||||
width: 50%;
|
||||
height: 12rem;
|
||||
border-radius: 0.125rem;
|
||||
margin-right: 0.625rem;
|
||||
margin-bottom: 0.625rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #fff;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
}
|
||||
.narskfPage .narskf-content .narskf-ct-row .narskfit .narskf-title {
|
||||
color: #262626;
|
||||
font-size: 1rem;
|
||||
text-align: center;
|
||||
padding-top: 1rem;
|
||||
padding-bottom: 0.5625rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
.narskfPage .narskf-content .narskf-ct-row .narskfit .narskf-sm {
|
||||
color: #9a9a9a;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.narskfPage .narskf-content .narskf-ct-row .narskfit .narskf-font-26 {
|
||||
color: #262626 !important;
|
||||
}
|
||||
.narskfPage .narskf-content .narskf-ct-row .narskfit .narskico-img {
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
}
|
||||
.narskfPage .narskf-content .narskf-ct-row .narskfit .narskfactive-ewm {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.narskfPage .narskf-content .narskf-ct-row .narskfit .narskfactive-ewm .narskfactiveimg {
|
||||
width: 9.5rem;
|
||||
width: 9.5rem;
|
||||
position: absolute;
|
||||
}
|
||||
.narskfPage .narskf-content .narskf-ct-row .narskfit2 {
|
||||
width: 37rem;
|
||||
height: 10rem;
|
||||
flex-direction: row;
|
||||
justify-content: flex-start;
|
||||
padding-left: 53px;
|
||||
}
|
||||
.narskfPage .narskf-content .narskf-ct-row .narskfit2 .narskico-img {
|
||||
margin-right: 1.5rem;
|
||||
}
|
||||
.narskfPage .narskf-content .narskf-ct-row .narskfit2 .narskfit2-ct {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
.narskfPage .narskf-content .narskf-ct-row .narskfit2 .narskfit2-ct .narskf-title {
|
||||
padding-top: 0;
|
||||
font-size: 1rem;
|
||||
padding-bottom: 0.375rem;
|
||||
}
|
||||
.narskfPage .narskf-content .narskf-ct-row .narskfit2 .narskfit2-ct .narskf-sm {
|
||||
font-size: 0.75rem;
|
||||
color: #9A9A9A;
|
||||
}
|
||||
.narskfPage .narskf-content .narskf-ct-row .narskfit:last-child {
|
||||
margin-right: 0rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top_back1" /}
|
||||
<div class="margin-top-60"></div>
|
||||
<!--banner-->
|
||||
<div class="banner img-responsives margin-top-90">
|
||||
<!--<img src="__PUBLIC__/m_weben/images/contact/contact_banner.png">-->
|
||||
<!--<div class="banner_title">CONTACT US</div>-->
|
||||
<img src="/uploads/default/nas/mcontact-600x900.jpg" alt="" />
|
||||
</div>
|
||||
<!-- content -->
|
||||
<div class="narskfPage">
|
||||
<div class="narskf-content">
|
||||
<div class="narskf-ct-row">
|
||||
<div class="narskfit">
|
||||
<img src="__PUBLIC__/web/images/contact_new/wx-ico.png" class="narskico-img" />
|
||||
<span class="narskf-title">{$data[0]['name']}</span>
|
||||
<span class="narskf-sm">{$data[0]['desc']}</span>
|
||||
<div class="narskfactive-ewm">
|
||||
<img src="{$data[0]['picture']|getImage}" class="narskfactiveimg" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="narskfit">
|
||||
<img src="__PUBLIC__/web/images/contact_new/wx-ico.png" class="narskico-img" />
|
||||
<span class="narskf-title">{$data[1]['name']}</span>
|
||||
<span class="narskf-sm">{$data[1]['desc']}</span>
|
||||
<div class="narskfactive-ewm">
|
||||
<img src="{$data[1]['picture']|getImage}" class="narskfactiveimg" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="narskf-ct-row">
|
||||
<div class="narskfit">
|
||||
<img src="__PUBLIC__/web/images/contact_new/wx-ico.png" class="narskico-img" />
|
||||
<span class="narskf-title">{$data[2]['name']}</span>
|
||||
<span class="narskf-sm">{$data[2]['desc']}</span>
|
||||
<div class="narskfactive-ewm">
|
||||
<img src="{$data[2]['picture']|getImage}" class="narskfactiveimg" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="narskfit">
|
||||
<img src="__PUBLIC__/web/images/contact_new/phone-ico.png" class="narskico-img" />
|
||||
<span class="narskf-title">{$data[3]['name']}</span>
|
||||
<span class="narskf-sm narskf-font-26">{$data[3]['desc']}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="narskf-ct-row">
|
||||
<div class="narskfit">
|
||||
<img src="__PUBLIC__/web/images/contact_new/wx-ico.png" class="narskico-img" />
|
||||
<span class="narskf-title">{$data[4]['name']}</span>
|
||||
<div class="narskfactive-ewm">
|
||||
<img src="{$data[4]['picture']|getImage}" class="narskfactiveimg" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="narskfit">
|
||||
<img src="__PUBLIC__/web/images/contact_new/wx-ico.png" class="narskico-img" />
|
||||
<span class="narskf-title">{$data[5]['name']}</span>
|
||||
<div class="narskfactive-ewm">
|
||||
<img src="{$data[5]['picture']|getImage}" class="narskfactiveimg" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="narskf-ct-row">
|
||||
<div class="narskfit">
|
||||
<img src="__PUBLIC__/web/images/contact_new/wx-ico.png" class="narskico-img" />
|
||||
<span class="narskf-title">{$data[6]['name']}</span>
|
||||
<div class="narskfactive-ewm">
|
||||
<img src="{$data[6]['picture']|getImage}" class="narskfactiveimg" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="narskfit">
|
||||
<img src="__PUBLIC__/web/images/contact_new/wx-ico.png" class="narskico-img" />
|
||||
<span class="narskf-title">{$data[7]['name']}</span>
|
||||
<div class="narskfactive-ewm">
|
||||
<img src="{$data[7]['picture']|getImage}" class="narskfactiveimg" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="narskf-ct-row">
|
||||
<div class="narskfit" onclick="location.href='{$data[8]['link']}'">
|
||||
<img src="__PUBLIC__/web/images/contact_new/wb-ico.png" class="narskico-img" />
|
||||
<span class="narskf-title">{$data[8]['name']}</span>
|
||||
</div>
|
||||
<div class="narskfit" onclick="location.href='{$data[9]['link']}'">
|
||||
<img src="__PUBLIC__/web/images/contact_new/dy-ico.png" class="narskico-img" />
|
||||
<span class="narskf-title">{$data[9]['name']}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="narskf-ct-row">
|
||||
<div class="narskfit" onclick="location.href='{$data[10]['link']}'">
|
||||
<img src="__PUBLIC__/web/images/contact_new/xhs-ico.png" class="narskico-img" />
|
||||
<span class="narskf-title">{$data[10]['name']}</span>
|
||||
</div>
|
||||
<div class="narskfit" onclick="location.href='{$data[11]['link']}'">
|
||||
<img src="__PUBLIC__/web/images/contact_new/tt-ico.png" class="narskico-img" />
|
||||
<span class="narskf-title">{$data[11]['name']}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="narskf-ct-row">
|
||||
<div class="narskfit narskfit2">
|
||||
<img src="__PUBLIC__/web/images/contact_new/sh-ico.png" class="narskico-img" />
|
||||
<div class="narskfit2-ct">
|
||||
<span class="narskf-title">{$data[12]['name']}</span>
|
||||
<span class="narskf-sm">{$data[12]['desc']}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="narskf-ct-row">
|
||||
<div class="narskfit narskfit2">
|
||||
<img src="__PUBLIC__/web/images/contact_new/yj-ico.png" class="narskico-img" />
|
||||
<div class="narskfit2-ct">
|
||||
<span class="narskf-title">{$data[13]['name']}</span>
|
||||
<span class="narskf-sm">{$data[13]['desc']}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{include file="include/bottom1" /}
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('.narskfit').on('click', function() {
|
||||
var $ewm = $(this).find('.narskfactive-ewm');
|
||||
if ($ewm.css('display') === 'none') {
|
||||
$ewm.css('display', 'flex');
|
||||
} else {
|
||||
$ewm.css('display', 'none');
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
62
app/mobile/view/group/culture.phtml
Executable file
62
app/mobile/view/group/culture.phtml
Executable file
@@ -0,0 +1,62 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>文化与价值观_ORICO/奥睿科</title>
|
||||
<meta name="Keywords" content="文化与价值观,企业创新,公司实力,ORICO">
|
||||
<meta name="Description" content="元创坚持“四位一体”的企业价值观,传播正能量">
|
||||
{include file="include/head" /}
|
||||
<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_web/images/culture/culture_banner.jpg">
|
||||
</div>
|
||||
|
||||
<!--文化与价值观-->
|
||||
<div class="m_Container">
|
||||
<div class="title text_center margin-top-50"><b>文化与价值观</b></div>
|
||||
<div class="des text_gray text_center line-height-40 margin-top-30">元创坚持“四位一体”的企业价值观,体现在四个方面:满足客户的需求,帮助员工成就价值,不负投资人的期望与信赖,尽能力承担起社会责任,传播正能量。具体如下:</div>
|
||||
<!--内容-->
|
||||
<div class="subtitle text_center margin-top-20"><strong>成就客记</strong></div>
|
||||
<div class="des text_gray text_center line-height-40 margin-top-14">以客户本质需求为导向,为客户创造价值,洞察和深入挖掘消费者的需求本质,改变不合理的生活现状,提供更合适的解决方案,更好的选择持续创新,提供高品质产品持续优化降低成本</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>成就员工</strong></div>
|
||||
<div class="des text_gray text_center line-height-40 margin-top-14">对员工的成长与人生价值与梦想的实现负责,建立公平合理及奖惩分明的平台与机制,人尽其才;激发员工在岗的主人翁意识,主动追求与打造自己,不断突破自我,自信自强健康的追求更好生活。</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>社会责任</strong></div>
|
||||
<div class="des text_gray text_center line-height-40 margin-top-14">为社会健康发展出力,无论是从事的产品,还是做事的精神,都要起到正面积极的作用 遵纪守法,保护环境,敬党爱国,抵制不正之风尊重合作伙伴的利益。</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>成就投资人心愿</strong></div>
|
||||
<div class="des text_gray text_left line-height-40 margin-top-30">
|
||||
共同创造社会价值和获取相应的合理回报必须为企业创新做投资储备必须为企业发展做风险(内、外)储备。同时,在元创的企业文化中的六个词“创新,极致,尊严,大爱,健康,快乐”。<br>
|
||||
“创新”:是厚积薄发,不畏挑战的企业核心竞争力;<br>
|
||||
“极致”:是坚持不懈,探索与突破的力量源泉;<br>
|
||||
“尊严”:是竭诚相待,敬贤礼士的人才储备;<br>
|
||||
“大爱”:是厚德载物,以成长与未来为目标的无私;<br>
|
||||
“健康”:是生生不息,蓬勃发展的坚实基础;<br>
|
||||
“快乐”:是平安喜乐,其乐融融的文化氛围<br>
|
||||
每一个词都是元创的每一名员工所推崇的精神,也是集团希望为员工所营造的环境,也能让用户和伙伴感知。
|
||||
</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>
|
||||
147
app/mobile/view/group/decennial.phtml
Executable file
147
app/mobile/view/group/decennial.phtml
Executable file
@@ -0,0 +1,147 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
{include file="include/head" /}
|
||||
<meta charset="UTF-8">
|
||||
<title>元创十周年精彩回顾</title>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/decennial.css">
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/scripts/bxslider/jquery.bxslider.css">
|
||||
<script type="text/javascript" src="__PUBLIC__/web/scripts/bxslider/jquery.bxslider.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body style="background:#fff;">
|
||||
<div id="content">
|
||||
|
||||
<!--top-->
|
||||
{include file="include/top" /}
|
||||
<!--top End-->
|
||||
<!--Banner-->
|
||||
<div class="img-responsive margin-top-90"><img src="/uploads/default/banner-wap-CH-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">十年创研,点滴在心</div>
|
||||
<div class="img-responsives"><img src="__PUBLIC__/m_web/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">十载风雨同舟,莫失莫忘</div>
|
||||
<div class="des text_center f-gray ten_pa_20 ten_pa_30">元创的十年发展征途,也可谓荆棘重重、处处充满挑战,但是我们身后,始终有这么一群人,我们要淌水,他们帮我们造船、我们要爬山,他们为我们结绳。十年风雨同舟,感恩一路相随。</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>
|
||||
</div>
|
||||
<!--10年新起航-->
|
||||
<div class="swt-Container">
|
||||
<div class="text_40 text_center f-black f_weight_600 padding-t-48vw ten_pa_30">10年新起航</div>
|
||||
<div class="des text_center f-gray ten_pa_20">品牌专注于USB技术周边产品研发与生产,主要包括USB数据传输技术、Type-C技术运用、USB电力传输技术等的实际应用;目前,品牌已经布局全新品类线包括备份宝、雷电3、固态存储等,未来,这几大板块也将是品牌的着力点。</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">小改变 大不同</div>
|
||||
<div class="des text_center f-black" style="margin-top:-0.5vw;">Little change,big difference</div>
|
||||
<div class="des text_center f-gray ten_pa_20 ten_pa_30">全新品牌理念,以不断累积小改变的方式去探索与创造体验的大不同。以全新升级的VI视觉,全面呈现品牌未来的产品布局。
|
||||
</div>
|
||||
<div class="img-responsive margin-t-15vw position-r">
|
||||
<img src="__PUBLIC__/web/images/decennial/ten05.jpg">
|
||||
<div class="position-r ten_four des text_center f-black margin-b-30vw">
|
||||
<ul>
|
||||
<li>电脑周边</li>
|
||||
<li>手机周边</li>
|
||||
<li>电子电工</li>
|
||||
<li>影音娱乐</li>
|
||||
<li>生活周边</li>
|
||||
<li>个人护理</li>
|
||||
<li>高端游戏</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="ten_four_line"></div>
|
||||
<!--第五屏-->
|
||||
<!--第五屏-->
|
||||
<div class="swt-Container">
|
||||
<div class="text_40 text_center f-black f_weight_600 ten_pa_30">“十年耀变,十年新章”庆典现场</div>
|
||||
<!--拉开庆典序幕-->
|
||||
<div class="text_28 text_center f-black f_weight_600">拉开庆典序幕</div>
|
||||
<div class="des text_center f-gray ten_pa_20 ten_pa_30">整场庆典开始,由品牌创始人及东莞常平镇领导致辞并拉开庆典序幕,和与会的海内外代理商、供应商、公司员工、员工家属等千余人一同回顾了品牌的十年发展路及未来的规划与发展方向。</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">员工自编自导自演欢乐文艺汇演</div>
|
||||
<div class="des text_center f-gray ten_pa_20">轻松愉悦的歌舞、小品、舞台剧逗趣全场,尽显公司蓬勃、年轻、勇敢的企业精神面貌。</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">获奖代理商、供应商</div>
|
||||
<div class="des text_center f-gray ten_pa_20">十年发展征途,离不开各方伙伴的鼎力支持,在元创十周年之际,也邀请了诸多海内外伙伴参与其中,感谢多年来的支持与引导。</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">新、老、少元创人齐聚一堂</div>
|
||||
<div class="des text_center f-gray ten_pa_20">如果将一个十年发展企业的比作一艘海上远航的船,我们所有元创人就如同航船上的水手,一起劈波斩浪、一同沐浴彩虹。许许多多元创人将自己最好的年华与元创写在了一起,许许多多元创人在元创也迎来了人生新阶段。</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">庆典精彩瞬间</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 class="swt-Container padding-b-3">
|
||||
<div class="text_40 text_center f-black f_weight_600 margin-top-30 margin-bottom-30">10年见证,感谢一路同行</div>
|
||||
<div class="img-responsives"><img src="__PUBLIC__/web/images/decennial/ten_11.jpg"></div>
|
||||
</div>
|
||||
<!-- bottom s -->
|
||||
{include file="include/bottom" /}
|
||||
</div>
|
||||
<!-- bottom e -->
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('.ten_slider').bxSlider({
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
251
app/mobile/view/group/distributor.phtml
Executable file
251
app/mobile/view/group/distributor.phtml
Executable file
@@ -0,0 +1,251 @@
|
||||
<!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_back1" /}
|
||||
<!-- 详情页 s -->
|
||||
<div class="cooperapp_bdpage" style="background:#F2F2F2;">
|
||||
<div class="cooperapp_bd_main" style=";margin-top:50px">
|
||||
<h1 class="cooperapp_t1">成为经销商</h1>
|
||||
<p class="cooperapp_s1">准备好加入我们了吗?<br /> 在下面输入您的详细信息,我们的销售团队将在2个工作日内回复您。</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">公司名称<span class="redtag">*</span></label>
|
||||
<input type="text" class="form-control itinp companyName" placeholder="请输入公司名称">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem">
|
||||
<label class="itlable">电子邮件 <span class="redtag">*</span></label>
|
||||
<input type="text" class="form-control itinp email" placeholder="请输入邮箱">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem bditem1">
|
||||
<label class="itlable">电话号码<span class="redtag">*</span></label>
|
||||
<input type="text" class="form-control itinp phone"
|
||||
placeholder="请输入电话号码">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem">
|
||||
<label class="itlable">业务类型<span class="redtag">*</span></label>
|
||||
<select name="business_type" data-pf-type="FormInput" class="form-control itinp business_type">
|
||||
<option value="Online Store">在线商店</option>
|
||||
<option value="Local Shop">本地商店</option>
|
||||
<option value="Both">都有</option></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem">
|
||||
<label class="itlable">在线商店网址</label>
|
||||
<input type="text" class="form-control itinp url"
|
||||
placeholder="请输入网址">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem bditem1">
|
||||
<label class="itlable">企业规模<span class="redtag">*</span></label>
|
||||
<select name="enterprise_size" data-pf-type="FormInput" class="form-control itinp enterprise_size">
|
||||
<option value="10 Or Less">10 或更少</option>
|
||||
<option value="10-50">10-50</option>
|
||||
<option value="50-199">50-199</option>
|
||||
<option value="200 Or More">200 或更多</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem bditem1">
|
||||
<label class="itlable">公司地址<span class="redtag">*</span></label>
|
||||
<input class="form-control itinp address" placeholder="请输入地址">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem bditem1">
|
||||
<label class="itlable">留言<span class="redtag">*</span></label>
|
||||
<textarea class="ittextarea message" placeholder="留言"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 提交-->
|
||||
<div class="bttj">提交</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 详情页 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');
|
||||
}
|
||||
})
|
||||
$('.message').blur(function(){
|
||||
if($('.message').val() != ''){
|
||||
$('.message').removeClass('error');
|
||||
$('.message').next('span').addClass('hide');
|
||||
}else{
|
||||
$('.message').addClass('error');
|
||||
$('.message').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');
|
||||
}
|
||||
})
|
||||
$('.email').blur(function(){
|
||||
if($('.email').val() != ''){
|
||||
$('.email').removeClass('error');
|
||||
$('.email').next('span').addClass('hide');
|
||||
}else{
|
||||
$('.email').addClass('error');
|
||||
$('.email').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');
|
||||
}
|
||||
})
|
||||
// 提交表单
|
||||
$('.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 = $('.phone').val();
|
||||
var address = $('.address').val();
|
||||
var message = $('.message').val();
|
||||
|
||||
|
||||
if(companyName == ''){
|
||||
$('.companyName').addClass('error');
|
||||
$('.companyName').next('span').removeClass('hide');
|
||||
}else{
|
||||
$('.companyName').removeClass('error');
|
||||
$('.companyName').next('span').addClass('hide');
|
||||
}
|
||||
|
||||
if(business_type == ''){
|
||||
$('.business_type').addClass('error');
|
||||
$('.business_type').next('span').removeClass('hide');
|
||||
}
|
||||
if(enterprise_size == ''){
|
||||
$('.enterprise_size').addClass('error');
|
||||
$('.enterprise_size').next('span').removeClass('hide');
|
||||
}
|
||||
|
||||
if(phone == ''){
|
||||
$('.phone').addClass('error');
|
||||
$('.phone').next('span').removeClass('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 && business_type && enterprise_size && email && address && message && phone) {
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/index/bulk/agents",
|
||||
data: {'company':companyName, 'email':email, 'address':address,'business_type':business_type,'enterprise_size':enterprise_size,'phone':phone,'address':address,'message':message,'uri':$('.url').val(),'refer':k_win_ref},
|
||||
dataType: "json",
|
||||
success: function(data){
|
||||
if(data.code == 200) {
|
||||
alert('信息已成功提交!');
|
||||
$("input[ type='text']").val('');
|
||||
$("input[ type='email']").val('');
|
||||
$('.address').val('');
|
||||
$('.message').val('');
|
||||
|
||||
//$(":input[name='interested']").attr("checked",false);
|
||||
$("select option:selected").remove();
|
||||
|
||||
|
||||
}
|
||||
else{
|
||||
if(data.code == 403 || data.code == 201) {
|
||||
alert(data.msg);
|
||||
}
|
||||
else{
|
||||
$('.email').addClass('error');
|
||||
$('.email').next('span').removeClass('hide');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
<!-- bottom s -->
|
||||
{include file="include/bottom1" /}
|
||||
<!-- bottom e -->
|
||||
</body>
|
||||
</html>
|
||||
86
app/mobile/view/group/download.phtml
Executable file
86
app/mobile/view/group/download.phtml
Executable file
@@ -0,0 +1,86 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>软件下载_ORICO/奥睿科官网</title>
|
||||
<meta name="Keywords" content="软件下载">
|
||||
<meta name="Description" content="软件下载">
|
||||
{include file="include/head" /}
|
||||
<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:linear-gradient(to right,#009fdf, #1eb7f3);width:100%;padding-top:8px;}
|
||||
.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;}
|
||||
.margin-top-60{
|
||||
margin-top: 52px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!--头部-->
|
||||
{include file="include/top_back1" /}
|
||||
<!--search-->
|
||||
<div class="margin-top-60"></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"></span></button>
|
||||
<input class="form-control" name="keywords" placeholder="全站搜索" value="{$keywords}" type="text">
|
||||
</div>
|
||||
</form>
|
||||
<!-- </a>-->
|
||||
</div>
|
||||
</div>
|
||||
<!--软件驱动下载-->
|
||||
<div class="download-title">软件下载</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>适合型号:<?php echo $value['app_model']; ?></p>
|
||||
<p>支持系统:<?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移动备份宝APP</div>-->
|
||||
<!-- <div class="down-gray">-->
|
||||
<!-- <p>适合型号:BA2110</p>-->
|
||||
<!-- <p>支持系统:Android/iOS</p>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="down-btn"><a href="http://file.oricogroup.com/BA2110.rar">软件下载</a></div>-->
|
||||
<!---->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
|
||||
|
||||
<!--底部-->
|
||||
{include file="include/bottom1" /}
|
||||
|
||||
|
||||
|
||||
|
||||
</body></html>
|
||||
156
app/mobile/view/group/fan.phtml
Executable file
156
app/mobile/view/group/fan.phtml
Executable file
@@ -0,0 +1,156 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>生活周边小配件_ORICO/奥睿科</title>
|
||||
<meta name="Keywords" content="">
|
||||
<meta name="Description" content="">
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/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">清新桌面,艺术生活</p>
|
||||
<p class="des margin-top-10">驱赶夏日炎热,滋润秋冬干燥</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--第二屏-->
|
||||
<div class="m_Container text_black text_center">
|
||||
<div class="title margin-top-50">生活与艺术,密不可分</div>
|
||||
<div class="subtitle margin-top-10">专研USB技术,轻松打造安全便捷的科技生活</div>
|
||||
<div class="des margin-top-10 line-height-40 text_gray">精致生活,在细节上体现。在生活周边产品的开发上,ORICO将“小改变,大不同”的品牌理念融入生活细节中,如小风扇、加湿器系列产品。同时以USB技术的加入,让小风扇、加湿器这些大众熟知的产品的使用方式更多变,也更多便。连接适配器、移动电源、笔记本电脑、车载充电器等都能够即时使用,美好时光即刻开启。</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">静音加湿,时刻相伴</p>
|
||||
<p class="des margin-top-10">桌面加湿弹</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">静音桌面加湿弹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">天猫购买</a>
|
||||
<a href="https://item.jd.com/37196811272.html" target="_blank">京东购买</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="position_r">
|
||||
<img src="__PUBLIC__/m_web/images/fan/fan_list_02.jpg">
|
||||
<div class="special_title">静音桌面加湿弹</div>
|
||||
<div class="buy des text_center buy_button">
|
||||
<a href="https://detail.tmall.com/item.htm?id=581911488508" class="buy_margin" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/37196811273.html" target="_blank">京东购买</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">风劲声轻</p>
|
||||
<p class="big_title">清凉一夏</p>
|
||||
<p class="des margin-top-20">桌面小风扇</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">清新桌面小风扇</div>
|
||||
<div class="buy des text_center buy_button">
|
||||
<a href="https://detail.tmall.com/item.htm?id=569078175415" class="buy_margin" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/27043436749.html" target="_blank">京东购买</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="position_r">
|
||||
<img src="__PUBLIC__/m_web/images/fan/fan_list_04.jpg">
|
||||
<div class="special_title">壁夹/平放两用小风扇</div>
|
||||
<div class="buy des text_center buy_button">
|
||||
<a href="https://detail.tmall.com/item.htm?id=579366298608" class="buy_margin" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/37252417714.html" target="_blank">京东购买</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="position_r">
|
||||
<img src="__PUBLIC__/m_web/images/fan/fan_list_05.jpg">
|
||||
<div class="special_title">清新桌面小风扇</div>
|
||||
<div class="buy des text_center buy_button">
|
||||
<a href="https://detail.tmall.com/item.htm?id=592227747712" class="buy_margin" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/45522042939.html" target="_blank">京东购买</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="position_r">
|
||||
<img src="__PUBLIC__/m_web/images/fan/fan_list_06.jpg">
|
||||
<div class="special_title">补光灯手持小风扇</div>
|
||||
<div class="buy des text_center buy_button">
|
||||
<a href="https://detail.tmall.com/item.htm?id=592128837480" class="buy_margin" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/45727264679.html" target="_blank">京东购买</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="position_r">
|
||||
<img src="__PUBLIC__/m_web/images/fan/fan_list_07.jpg">
|
||||
<div class="special_title">便携式充蓄两用小风扇</div>
|
||||
<div class="buy des text_center buy_button">
|
||||
<a href="https://detail.tmall.com/item.htm?id=591410773767" class="buy_margin" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/45079324336.html" target="_blank">京东购买</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="position_r">
|
||||
<img src="__PUBLIC__/m_web/images/fan/fan_list_08.jpg">
|
||||
<div class="special_title">清新桌面小风扇</div>
|
||||
<div class="buy des text_center buy_button">
|
||||
<a href="https://detail.tmall.com/item.htm?id=591701161089" class="buy_margin" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/45456678276.html" target="_blank">京东购买</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="position_r">
|
||||
<img src="__PUBLIC__/m_web/images/fan/fan_list_09.jpg">
|
||||
<div class="special_title">清新桌面喷雾小风扇</div>
|
||||
<div class="buy des text_center buy_button">
|
||||
<a href="https://detail.tmall.com/item.htm?id=594277807992" class="buy_margin" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/47287138219.html" target="_blank">京东购买</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="position_r">
|
||||
<img src="__PUBLIC__/m_web/images/fan/fan_list_10.jpg">
|
||||
<div class="special_title">便携式充蓄两用小风扇</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>
|
||||
<div class="m_Container text_center margin-top-35 text_black ">更多USB生活周边,敬请关注</div>
|
||||
|
||||
<br class="bottom-margin">
|
||||
|
||||
<!--底部-->
|
||||
{include file="include/bottom" /}
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
65
app/mobile/view/group/faq.phtml
Executable file
65
app/mobile/view/group/faq.phtml
Executable file
@@ -0,0 +1,65 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>常见问题_ORICO/奥睿科官网</title>
|
||||
<meta name="Keywords" content="常见问题;">
|
||||
<meta name="Description" content="常见问题;">
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top_back1" /}
|
||||
<div class="margin-top-60"></div>
|
||||
<!--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>常见问题解答</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">6629US3 如何使用脱机拷贝功能?</div>
|
||||
<p class="des text_gray text_center line-height-40 margin-top-10">答: 由于操作系统的限制,windowsXP系统只能支持2TB容量硬盘,大于2TB容量硬盘不能支持,无法正常使用。 *操作方法:首先,右击“计算机”, 然后点击“管理”,打开进入“磁盘管理”,找到新增加的硬盘,右击“初始化”,选择“MBR(硬盘容量小于等于2TB)”或“GPT(大于2TB)”,然后“新建简单卷”,默认下一步格式化分区,格式化完成后,硬盘就可以正常使用,显示出来新增</p>
|
||||
|
||||
<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">无法登录进入W150路由器设置界面?</div>
|
||||
<p class="des text_gray text_center line-height-40 margin-top-10">将路由器插上电源插座通上电,先不要连接网线(切记),然后手机搜索连接上“ORICO”的无线网络信号,连接成功后打开浏览器输IP地址:192.168.1.1 ,进行登录访问,打开登录首页后,输入用户名:admin ,密码:admin ,登录即可。</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">HUB是否可以连接电视扩展?无外接电源<br>能带动移动硬盘吗?</div>
|
||||
<p class="des text_gray text_center line-height-40 margin-top-10">答:您好,目前HUB主要针对是PC端使用的,暂时还未普及到电视类目,需要您的电视支持哦,不能保证所有电视都能识别。一般2.5寸的硬盘是可以的呢,由于USB供电有限如果您是给3.5寸的硬盘使用的话,建议您购买带电源的HUB。</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">同行产品品牌对比</div>
|
||||
<p class="des text_gray text_center line-height-40 margin-top-10">您好:orico都是采用的进口控制芯片,IC,原器件,自己研发的PCBA电路板,以及所有模具外观均是ORICO研发,生产!这种便宜的产品不是使用控制芯片,而是使用一种叫邦定的技术一个PCBA,如果使用邦定,成本很低,但是用个十来天,就会出现问题!ORICO全部使用贴片元器件所以,从用料上,完全不一样!</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">如何组建RAID模式?</div>
|
||||
<p class="des text_gray text_left line-height-40 margin-top-10">
|
||||
RAID设置方法:(如果硬盘不是全新的硬盘,请先您备份好数据资料)<br>
|
||||
1、关闭阵列硬盘盒设备电源;<br>
|
||||
2、拨动机身背部的RAID模式开关,设置想要的RAID模式;<br>
|
||||
3、按住SET按键不放,打开电源开关,大约5秒松开SET按键;<br>
|
||||
4、同时,可以在电脑上安装RAID管理器软件,通过软件方式管理RAID功能;</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">全新的硬盘连接电脑后,为什么<br>找不到硬盘,显示不了盘符?</div>
|
||||
<p class="des text_gray text_center line-height-40 margin-top-10">答: 由于操作系统的限制,windowsXP系统只能支持2TB容量硬盘,大于2TB容量硬盘不能支持,无法正常使用。 *操作方法:首先,右击“计算机”, 然后点击“管理”,打开进入“磁盘管理”,找到新增加的硬盘,右击“初始化”,选择“MBR(硬盘容量小于等于2TB)”或“GPT(大于2TB)”,然后“新建简单卷”,默认下一步格式化分区,格式化完成后,硬盘就可以正常使用,显示出来新增的盘符。</p>
|
||||
|
||||
</div>
|
||||
<br class="bottom-margin">
|
||||
<!--底部-->
|
||||
{include file="include/bottom1" /}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</body></html>
|
||||
211
app/mobile/view/group/h_speed.phtml
Executable file
211
app/mobile/view/group/h_speed.phtml
Executable file
@@ -0,0 +1,211 @@
|
||||
<!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_web/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>闪速家庭</span>
|
||||
</div>
|
||||
<div class="banner_button_title">
|
||||
以快之名 速度革新
|
||||
</div>
|
||||
<div class="banner_button_subtitle">真Type-C 10Gbps高速专区</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">探时代之路</br>引科技之风</div>
|
||||
<div class="h_speed_02_subtitle">Type-C接口,</br>
|
||||
正反无障碍插拔</div>
|
||||
<div class="h_speed_text">
|
||||
<a href="/mobile/product/detail/id/397"><span>立即了解 ></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">速由芯生</br>快如闪电</div>
|
||||
<div class="h_speed_02_subtitle">0Gb传输方案,</br>
|
||||
VL716强劲主控</div>
|
||||
<div class="h_speed_text">
|
||||
<a href="/mobile/product/detail/id/423"><span>立即了解 ></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">冲破桎梏</br>比快更快</div>
|
||||
<div class="h_speed_02_subtitle">UASP加速协议,</br>
|
||||
传输提升</div>
|
||||
<div class="h_speed_text">
|
||||
<a href="/mobile/product/detail/id/859"><span>立即了解 ></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">透明新意</br>绽放科技</div>
|
||||
<div class="h_speed_02_subtitle">PC全透明设计,</br>
|
||||
透出科技之美</div>
|
||||
<div class="h_speed_text">
|
||||
<a href="/mobile/product/detail/id/812"><span>立即了解 ></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">防溅水侵扰</br>无跌落之忧</div>
|
||||
<div class="h_speed_02_subtitle">360°硅胶保护,</br>
|
||||
户外三防</div>
|
||||
<div class="h_speed_text">
|
||||
<a href="/mobile/product/detail/id/398"><span>立即了解 ></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">蜂窝对流</br>酷冷散热</div>
|
||||
<div class="h_speed_02_subtitle">全铝合金工艺打造,</br>
|
||||
蜂窝散热设计</div>
|
||||
<div class="h_speed_text">
|
||||
<a href="/mobile/product/detail/id/403"><span>立即了解 ></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">轻巧如风</br>薄如羽翼</div>
|
||||
<div class="h_speed_02_subtitle">为7mm固态硬盘而生,</br>
|
||||
无负出行</div>
|
||||
<div class="h_speed_text">
|
||||
<a href="/mobile/product/detail/id/402"><span>立即了解 ></span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--第九屏-->
|
||||
<div class="h_speed_09 img-responsive">
|
||||
<img src="__PUBLIC__/m_web/images/h_speed/h_speed_08.jpg">
|
||||
<div class="h_speed_09_text">九重保护,让传输更放心</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!--2.5英寸硬盘盒-->
|
||||
|
||||
<div class="title margin-top-50 text_black text_center">2.5英寸硬盘盒</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接口,10Gbps传输</div>
|
||||
<div class="buy des text_center buy_button">
|
||||
<span class="subject_span buy_margin">天猫购买</span>
|
||||
<a href="https://item.jd.com/35036915853.html" target="_blank">京东购买</a>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<img src="__PUBLIC__/m_web/images/h_speed/h_speed_img02.jpg">
|
||||
<div class="special_title">三防设计,10Gbps传输</div>
|
||||
<div class="buy des text_center buy_button">
|
||||
<span class="subject_span buy_margin">天猫购买</span>
|
||||
<a href="https://item.jd.com/11868185734.html" target="_blank">京东购买</a>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<img src="__PUBLIC__/m_web/images/h_speed/h_speed_img03.jpg">
|
||||
<div class="special_title">铝合金材质,10Gbps传输</div>
|
||||
<div class="buy des text_center buy_button">
|
||||
<span class="subject_span buy_margin">天猫购买</span>
|
||||
<a href="https://item.jd.com/35036915853.html" target="_blank">京东购买</a>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<img src="__PUBLIC__/m_web/images/h_speed/h_speed_img04.jpg">
|
||||
<div class="special_title">12mm厚度,轻薄无负</div>
|
||||
<div class="buy des text_center buy_button">
|
||||
<span class="subject_span buy_margin">天猫购买</span>
|
||||
<a href="https://item.jd.com/11868185734.html" target="_blank">京东购买</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!--硬盘底座-->
|
||||
|
||||
<div class="title margin-top-50 text_black text_center">硬盘底座</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.5英寸通用,10Gbps传输</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/h_speed/h_speed_img06.jpg">
|
||||
<div class="special_title">2.5/3.5英寸通用,10Gbps传输</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>
|
||||
<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">透明硬盘底座 </div>
|
||||
<div class="subtitle margin-top-14">10Gbps传输,UASP加速协议 </div>
|
||||
<div class="buy_button des margin-top-40">
|
||||
<span class="subject_span buy_margin">天猫购买</span>
|
||||
<span class="subject_span">京东购买</span>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<br class="bottom-margin">
|
||||
<!-- bottom -->
|
||||
{include file="include/bottom" /}
|
||||
<!-- bottom e -->
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
97
app/mobile/view/group/honor-old.phtml
Executable file
97
app/mobile/view/group/honor-old.phtml
Executable file
@@ -0,0 +1,97 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>荣誉与证书_ORICO专利_奥睿科知识产权</title>
|
||||
<meta name="Keywords" content="荣誉与证书">
|
||||
<meta name="Description" content="荣誉与证书">
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/honor.css">
|
||||
</head>
|
||||
<body style="background-color:#FFF;">
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top" /}
|
||||
|
||||
<!--banner-->
|
||||
<div class="banner img-responsives position_r margin-top-90">
|
||||
<img src="__PUBLIC__/m_web/images/honor/honor_banner.jpg">
|
||||
<div class="position_a text_white">
|
||||
<p class="margin-top-50 text_center"><strong>荣誉与证书</strong></p>
|
||||
<p class="des text_center margin-top-14">专利证书 注册版权 认证与检测 </p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--荣誉证书简介-->
|
||||
<div class="banner img-responsives position_r">
|
||||
<img src="__PUBLIC__/m_web/images/honor/honor_01.jpg">
|
||||
<div class="honor_01 text_white">
|
||||
<p class="des_text">ORICO作为深耕于USB技术探索与应用的品牌,多年来在USB存储、充电、传输等领域都有着骄人成绩。<br>
|
||||
荣誉既是认可,也是责任;我们坚持以终为始,旨在为全世界消费者,带来追求更好生活的选择。</p>
|
||||
<ul class="margin-top-40">
|
||||
<li>
|
||||
<p class="title text_center">300+</p>
|
||||
<p class="subtitle margin-top-14">产品新颖外观设计专利</p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="title text_center">20+</p>
|
||||
<p class="subtitle margin-top-14">核心技术及产品自主发明专利</p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="title text_center">100+</p>
|
||||
<p class="subtitle margin-top-14">产品实用新型专利</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--专利证书-->
|
||||
<div class="banner img-responsives position_r">
|
||||
<img src="__PUBLIC__/m_web/images/honor/honor_02.jpg">
|
||||
<div class="position_a text_white">
|
||||
<p class="margin-top-50 text_center title"><strong>专利证书</strong></p>
|
||||
<p class="text_center margin-top-14 text_22">20+发明专利、300+外观设计专利、100+实用新型专利 </p>
|
||||
</div>
|
||||
</div>
|
||||
<!--专利证书-->
|
||||
<div class="banner img-responsives position_r">
|
||||
<img src="__PUBLIC__/m_web/images/honor/honor_03.jpg">
|
||||
<div class="position_a text_blue">
|
||||
<div class="m_Container">
|
||||
<p class="margin-top-30 text_center title"><strong>知识产权</strong></p>
|
||||
<p class="text_center margin-top-14 text_22 line_height_38">我们的产品、著作、商标等在多国家地区拥有自主知识产权
|
||||
标示着品牌一步步走向国际的心路历程</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--认证与品控-->
|
||||
<div class="banner img-responsives position_r">
|
||||
<img src="__PUBLIC__/m_web/images/honor/honor_04.jpg">
|
||||
<div class="position_a text_white">
|
||||
<div class="m_Container">
|
||||
<p class="margin-top-50 text_center title"><strong>认证与品控</strong></p>
|
||||
<p class="text_center margin-top-14 text_22 line_height_38">严格的品质把控,获取各国家地区的权威认证,只是我们的起点</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--合作伙伴-->
|
||||
<div class="banner img-responsives position_r">
|
||||
<img src="__PUBLIC__/m_web/images/honor/honor_05.jpg">
|
||||
<div class="position_a text_blue">
|
||||
<div class="m_Container">
|
||||
<p class="margin-top-50 text_center title"><strong>你们的信任,我们的动力</strong></p>
|
||||
<p class="text_center margin-top-14 text_22 line_height_38">我们与诸多硬件商、知名品牌,保持着深度合作关系</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!--底部-->
|
||||
{include file="include/bottom" /}
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
267
app/mobile/view/group/honor.phtml
Executable file
267
app/mobile/view/group/honor.phtml
Executable file
@@ -0,0 +1,267 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>商务订单</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_back1" /}
|
||||
|
||||
<div class="bdpage" style="background: #fff;border-radius: 8px;padding-top: 50px;">
|
||||
<div class="bd_main bd_main1 bd_main2" >
|
||||
<h1 class="t1 sfbt1">批量购买</h1>
|
||||
<!--内容-->
|
||||
<div class="bd_ct ">
|
||||
<div class="bd_from" style="padding: 0 16px;">
|
||||
<div class="theit">
|
||||
<div class="bditem">
|
||||
<label class="itlable">公司名称<span class="redtag">*</span></label>
|
||||
<input type="text" class="form-control itinp companyName" placeholder="法定营业名称">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem">
|
||||
<label class="itlable">官方网站</label>
|
||||
<input type="text" class="form-control itinp url" placeholder="请粘贴网址">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem">
|
||||
<label class="itlable">姓名<span class="redtag">*</span></label>
|
||||
<input type="text" class="form-control itinp firstname" placeholder="名">
|
||||
<input type="text" class="form-control itinp lastname" placeholder="姓" style="margin-top: 8px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem">
|
||||
<label class="itlable">邮箱<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">电话号码</label>
|
||||
<input type="text" class="form-control itinp phone">
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem bditem1">
|
||||
<label class="itlable">您对哪个产品品类感兴趣?</label>
|
||||
<div class="sfbchecks">
|
||||
<form class="sfbcheckboxlist" action="" method="get">
|
||||
<label class="cit">
|
||||
<input name="interested" type="checkbox" value="Computer Peripheral" class="sfbcheckboxit">电脑配件
|
||||
</label>
|
||||
<label class="cit">
|
||||
<input type="checkbox" value="Phone Peripheral" name="interested" class="sfbcheckboxit">手机配件</label>
|
||||
<label class="cit">
|
||||
<input type="checkbox" value="Electronics" name="interested" class="sfbcheckboxit">电子电工
|
||||
</label>
|
||||
<label class="cit">
|
||||
<input type="checkbox" value="SSD" name="interested" class="sfbcheckboxit">固态硬盘
|
||||
</label>
|
||||
<label class="cit">
|
||||
<input type="checkbox" value="Entertainment Series" name="interested" class="sfbcheckboxit">娱乐系列
|
||||
</label>
|
||||
<label class="cit">
|
||||
<input type="checkbox" value="Smart Life Series" name="interested" class="sfbcheckboxit">智能生活
|
||||
</label>
|
||||
<label class="cit">
|
||||
<input type="checkbox" value="Outdoor Power Station" name="interested" class="sfbcheckboxit">户外电源
|
||||
</label>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="theit">
|
||||
<div class="bditem bditem1">
|
||||
<label class="itlable">留言<span class="redtag">*</span></label>
|
||||
<textarea class="ittextarea ittextarea2 message" placeholder="留言"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 提交-->
|
||||
<div class="bttj">提交</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 详情页 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/bottom1" /}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
79
app/mobile/view/group/industry.phtml
Executable file
79
app/mobile/view/group/industry.phtml
Executable file
@@ -0,0 +1,79 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>集团产业链_ORICO/奥睿科官网</title>
|
||||
<meta name="Keywords" content="产业链">
|
||||
<meta name="Description" content="产业链">
|
||||
{include file="include/head" /}
|
||||
<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全产业链布局</strong></div>
|
||||
<div class="des text_gray text_center line_height_38 margin-top-30">集研发、设计、生产、销售、品牌于一体的全产业链实力,是ORICO所有产品与服务的强有力后盾,能够实时、有效率、迅捷的提供满足市场的解决方案。15年来,搭建起从理论到产能的全方位支撑体系,不仅为集团提供坚实支撑,同时也为集团合作伙伴们提供有效助力,成为许多企业不可或缺的合作伙伴。</div>
|
||||
</div>
|
||||
<!--解密ORICO全产业链布局-->
|
||||
<div class="m_Container">
|
||||
<div class="title text_center margin-top-40 text_black"><strong>理论与团队支撑</strong></div>
|
||||
<div class="des text_gray text_center line_height_38 margin-top-30">清晰认识全产业链战略的竞争,着力搭建自主全产业链,以客户和消费者引领产业链的发展进程。资源合理分配,团队战略协同,使集团附加值不断高升。</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>四大工厂产能支撑</strong></div>
|
||||
<div class="des text_gray text_center line_height_38 margin-top-30">自主拥有4大综合性设计生产制造工厂,任意一家都能独立完成相应产品的生产及售后保障服务</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 ">汇集工业设计、模具开发、加工制造、电子研发、生产组装于一体;自备仓储物流,保证货源充足。</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>五大产品线技术与产品支撑</strong></p>
|
||||
<p class="des text_center margin-top-10 line-height-40">5条产品线全面铺陈,围绕USB技术研发千余种产品,涵盖从数据传输到充电再到娱乐外设等诸多方面。<br>从外观到技术,通过多年的钻研与累积,拥有自主创新产品的实力,致力于打造更棒的用户体验。 </p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--品牌树立与平台模式支撑-->
|
||||
<div class="m_Container">
|
||||
<div class="title text_center margin-top-50 text_black"><strong>品牌树立与平台模式支撑</strong></div>
|
||||
<div class="subtitle text_center margin-top-10 text_black"><strong>品牌上</strong></div>
|
||||
<p class="des text_center margin-top-20 text_gray line_height_38">从品牌VI的搭建,品牌战略不断完善与明确。在全产业链上下游资源配置与平衡进程中,品牌贯穿始终。</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>平台上</strong></div>
|
||||
<p class="des text_center margin-top-14 text_gray line_height_38">以USB技术研发为核心,包括产品设计、技术研发、生产制造到销售, ORICO已经成为一个综合型服务平台。</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>地域上</strong></div>
|
||||
<p class="des text_center margin-top-14 text_gray line_height_38">除了在全国进行区域化划分与运营,同时在海外市场的开拓上,针对不同地域文化背景施行本土化精准运营。</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>模式上</strong></div>
|
||||
<p class="des text_center margin-top-14 text_gray line_height_38">211智能补货模式的运用,为线上销售、渠道销售、ODM服务提供了迅捷灵活的解决方案。</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>
|
||||
223
app/mobile/view/group/introduction.phtml
Executable file
223
app/mobile/view/group/introduction.phtml
Executable file
@@ -0,0 +1,223 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>品牌介绍</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>
|
||||
.iotb_p1_item img{
|
||||
width:65px;
|
||||
height: 65px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.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: 14px;
|
||||
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;
|
||||
}
|
||||
.iotb_part22{
|
||||
padding-bottom: 50px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top_back1" /}
|
||||
<div class="iotbpage" >
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/copperaapp_img2.png" alt="" class="bdimg1" >
|
||||
<div class="iotb_bgw">
|
||||
<h1 class="iotbt1">选择我们的理由</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">全球畅销<?php echo (date("Y")-2009);?>年</p>
|
||||
<span class="iotbts1">在过去15年里,我们在国内和全球70多个国家成功开拓了线上和线下渠道</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">卓越的研发技术团队</p>
|
||||
<span class="iotbts1">拥有由高级工程师、结构工程师、电子工程师等140多名组成专业的研发团队。</span>
|
||||
</div>
|
||||
<div class="iotb_p1_item">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/iotbic3_app.png" alt="" class="iotbic1">
|
||||
<p class="iotbtp1">精益化生产制造</p>
|
||||
<span class="iotbts1">拥有自己的生产与仓储园区,成熟完善的OPS集成供应链系统。在定制化生产供应等方面拥有国内一流的水平</span>
|
||||
</div>
|
||||
<div class="iotb_p1_item">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/iotbic4_app.png" alt="" class="iotbic1">
|
||||
<p class="iotbtp1">严格的质量管理体系</p>
|
||||
<span class="iotbts1">自建ORICO实验室拥有专业品控质检团队,引进国际先进检测仪器,全过程严格把控质量</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="iotb_part2 iotb_part22">
|
||||
<h1 class="iotbt1">为您提供专属定制服务</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">工业设计</span>
|
||||
</div>
|
||||
<div class="wcu_ltem">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/odmic2_app.png" alt="" class="fbit">
|
||||
<span class="wcu_s1">结构设计</span>
|
||||
</div>
|
||||
<div class="wcu_ltem">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/odmic3_app.png" alt="" class="fbit">
|
||||
<span class="wcu_s1">电子设计</span>
|
||||
</div>
|
||||
<div class="wcu_ltem">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/odmic4_app.png" alt="" class="fbit">
|
||||
<span class="wcu_s1">模具开发</span>
|
||||
</div>
|
||||
<div class="wcu_ltem">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/odmic5_app.png" alt="" class="fbit">
|
||||
<span class="wcu_s1">产品测试与认证</span>
|
||||
</div>
|
||||
<div class="wcu_ltem">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/odmic6_app.png" alt="" class="fbit">
|
||||
<span class="wcu_s1">品牌与包装设计</span>
|
||||
</div>
|
||||
<div class="wcu_ltem">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/odmic7_app.png" alt="" class="fbit">
|
||||
<span class="wcu_s1">生产组装</span>
|
||||
</div>
|
||||
<div class="wcu_ltem">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/odmic8_app.png" alt="" class="fbit">
|
||||
<span class="wcu_s1">售后服务</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="iotb_part2" style="background:#f2f2f2">
|
||||
<h1 class="iotbt1">对于不同的情况</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">业务</span>
|
||||
</div>
|
||||
<div class="wcu_ltem">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/odmic22_app.png" alt="" class="fbit">
|
||||
<span class="wcu_s1">经销商</span>
|
||||
</div>
|
||||
<div class="wcu_ltem">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/odmic44_app.png" alt="" class="fbit">
|
||||
<span class="wcu_s1">学校</span>
|
||||
</div>
|
||||
<div class="wcu_ltem">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/odmic55_app.png" alt="" class="fbit">
|
||||
<span class="wcu_s1">节日礼品</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="iotb_part3" style="display: none;">
|
||||
<div class="odmmain">
|
||||
<h1 class="iotbt1">ODM进展</h1>
|
||||
</div>
|
||||
<div class="odmconten">
|
||||
<div class="odmitem">
|
||||
<div class="appodmimg">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic1.png" alt="" >
|
||||
</div>
|
||||
<span class="odms1">市场分析</span>
|
||||
</div>
|
||||
<div class="odmitem">
|
||||
<div class="appodmimg">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic2.png" alt="" >
|
||||
</div>
|
||||
<span class="odms1">锁定目标和成本</span>
|
||||
</div>
|
||||
<div class="odmitem">
|
||||
<div class="appodmimg">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic3.png" alt="" >
|
||||
</div>
|
||||
<span class="odms1">系列化产品规划</span>
|
||||
</div>
|
||||
<div class="odmitem">
|
||||
<div class="appodmimg">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic4.png" alt="" >
|
||||
</div>
|
||||
<span class="odms1">识别需求和评估</span>
|
||||
</div>
|
||||
<div class="odmitem">
|
||||
<div class="appodmimg">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic5.png" alt="" >
|
||||
</div>
|
||||
<span class="odms1">研发保证金</span>
|
||||
</div>
|
||||
<div class="odmitem">
|
||||
<div class="appodmimg">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic6.png" alt="" >
|
||||
</div>
|
||||
<span class="odms1">安排测试、认证</span>
|
||||
</div>
|
||||
<div class="odmitem">
|
||||
<div class="appodmimg">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic7.png" alt="" >
|
||||
</div>
|
||||
<span class="odms1">确认样品</span>
|
||||
</div>
|
||||
<div class="odmitem">
|
||||
<div class="appodmimg">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic8.png" alt="" >
|
||||
</div>
|
||||
<span class="odms1">开模制作样品</span>
|
||||
</div>
|
||||
<div class="odmitem">
|
||||
<div class="appodmimg">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic9.png" alt="" >
|
||||
</div>
|
||||
<span class="odms1">支付模具费用</span>
|
||||
</div>
|
||||
<div class="odmitem">
|
||||
<div class="appodmimg">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic10.png" alt="" >
|
||||
</div>
|
||||
<span class="odms1">设计草图和原型制作</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<img src="__PUBLIC__/web/images/indeximage/600-800-2.jpg" class="appcoofootimg" alt="" style="display: none;">
|
||||
</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/bottom1" /}
|
||||
</body></html>
|
||||
260
app/mobile/view/group/job.phtml
Executable file
260
app/mobile/view/group/job.phtml
Executable file
@@ -0,0 +1,260 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>加入我们_orico/奥睿科招聘</title>
|
||||
<meta name="Keywords" content="加入我们;">
|
||||
<meta name="Description" content="加入我们">
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/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_web/images/job/job_01.jpg">
|
||||
</div>
|
||||
|
||||
<!--内容-->
|
||||
<div class="m_Container">
|
||||
|
||||
<div class="des text_gray text_center line-height-40 margin-top-40">带上你的激情与智慧,我们提供市场前驱的技术与产品、遍布海内外的线上下渠道;极富创意的团队与你一起,让你的成就超出预期,影响突破想象。</div>
|
||||
<div class="title text_center margin-top-50">我们的团队</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">你将获得</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">与创造价值对等的酬劳</p>
|
||||
</li>
|
||||
<li class="margin-top-20"><img src="__PUBLIC__/m_web/images/job/join_icon01.jpg">
|
||||
<p class="margin-top-20">与自我规划对等的提升</p>
|
||||
</li>
|
||||
<li class="margin-top-20"><img src="__PUBLIC__/m_web/images/job/join_icon01.jpg">
|
||||
<p class="margin-top-20">与个人付出对等的认可</p>
|
||||
</li>
|
||||
<li class="margin-top-20"><img src="__PUBLIC__/m_web/images/job/join_icon01.jpg">
|
||||
<p class="margin-top-20">与市场趋势对等的培养</p>
|
||||
</li>
|
||||
<li class="margin-top-20"><img src="__PUBLIC__/m_web/images/job/join_icon01.jpg">
|
||||
<p class="margin-top-20">五险一金</p>
|
||||
</li>
|
||||
<li class="margin-top-20"><img src="__PUBLIC__/m_web/images/job/join_icon01.jpg">
|
||||
<p class="margin-top-20">各类补贴</p>
|
||||
</li>
|
||||
<li class="margin-top-20"><img src="__PUBLIC__/m_web/images/job/join_icon01.jpg">
|
||||
<p class="margin-top-20">团队活动</p>
|
||||
</li>
|
||||
<li class="margin-top-20"><img src="__PUBLIC__/m_web/images/job/join_icon01.jpg">
|
||||
<p class="margin-top-20">法定节假日</p>
|
||||
</li>
|
||||
<li class="margin-top-20"><img src="__PUBLIC__/m_web/images/job/join_icon01.jpg">
|
||||
<p class="margin-top-20">节日礼品</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--视频-->
|
||||
<div class="m_Container index_video">
|
||||
<video controls poster="__PUBLIC__/m_web/images/job/join_us_video.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">元创“新兵老将”计划</div>
|
||||
<div class="des text_gray text_center line-height-40 margin-top-40">如果你是努力与潜质并存的新人,来到元创,跟随优秀的业务与专家团队雕琢自己,璞玉终绽光芒; </br>
|
||||
如果你是纵横商海的老将,加入我们,突破扼住你天赋的茧,再次振翅蝶变,提升自我价值。</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>职位名称</th>
|
||||
<th>招聘人数</th>
|
||||
<th>工作地点</th>
|
||||
<th>岗位要求</th>
|
||||
</tr>
|
||||
</table> -->
|
||||
<!--【fixed-thead表头】-->
|
||||
<!--【表身】-->
|
||||
<!-- <div class="scroll-box">
|
||||
<table class="form-table" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>结构设计师</td>
|
||||
<td>1</td>
|
||||
<td>长沙</td>
|
||||
<td class="job_blue"><a href="#">投递简历</a></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>工业设计师</td>
|
||||
<td>2</td>
|
||||
<td>长沙</td>
|
||||
<td class="job_blue"><a href="#">投递简历</a></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>平面设计师</td>
|
||||
<td>1</td>
|
||||
<td>长沙</td>
|
||||
<td class="job_blue"><a href="#">投递简历</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>欧洲站运营专员</td>
|
||||
<td>1</td>
|
||||
<td>深圳</td>
|
||||
<td class="job_blue"><a href="#">投递简历</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>美国亚马逊运营助理</td>
|
||||
<td>1</td>
|
||||
<td>深圳</td>
|
||||
<td class="job_blue"><a href="#">投递简历</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>加印亚马逊运营专员</td>
|
||||
<td>2</td>
|
||||
<td>长沙</td>
|
||||
<td class="job_blue"><a href="#">投递简历</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>速卖通推广专员</td>
|
||||
<td>1</td>
|
||||
<td>长沙</td>
|
||||
<td class="job_blue"><a href="#">投递简历</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>亚马逊推广专员</td>
|
||||
<td>1</td>
|
||||
<td>长沙</td>
|
||||
<td class="job_blue"><a href="#">投递简历</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>外贸客服主管</td>
|
||||
<td>1</td>
|
||||
<td>深圳</td>
|
||||
<td class="job_blue"><a href="#">投递简历</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>外贸客服</td>
|
||||
<td>2</td>
|
||||
<td>深圳</td>
|
||||
<td class="job_blue"><a href="#">投递简历</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>ebay运营</td>
|
||||
<td>1</td>
|
||||
<td>长沙</td>
|
||||
<td class="job_blue"><a href="#">投递简历</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>ebay运营助理</td>
|
||||
<td>1</td>
|
||||
<td>深圳</td>
|
||||
<td class="job_blue"><a href="#">投递简历</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>京东运营专员</td>
|
||||
<td>1</td>
|
||||
<td>长沙</td>
|
||||
<td class="job_blue"><a href="#">投递简历</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>技术售后</td>
|
||||
<td>1</td>
|
||||
<td>深圳</td>
|
||||
<td class="job_blue"><a href="#">投递简历</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>阿里巴巴运营</td>
|
||||
<td>2</td>
|
||||
<td>深圳</td>
|
||||
<td class="job_blue"><a href="#">投递简历</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>电子工程师</td>
|
||||
<td>1</td>
|
||||
<td>东莞</td>
|
||||
<td class="job_blue"><a href="#">投递简历</a></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>包装设计师</td>
|
||||
<td>1</td>
|
||||
<td>东莞</td>
|
||||
<td class="job_blue"><a href="#">投递简历</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div> -->
|
||||
<!--【表身】-->
|
||||
|
||||
</div>
|
||||
|
||||
<!--元创“新兵老将”计划-->
|
||||
<div class="m_Container">
|
||||
<div class="title text_center margin-top-50">联系方式/工作地址</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-20">
|
||||
<p >联 系 人:蒋女士</p>
|
||||
<p>联 系 电 话:0731-88965800</p>
|
||||
<p>简历投递邮箱:<a href="#" class="job_blue">hrcs@orico.com.cn</a></p>
|
||||
<p>深 圳 总 部:</p>
|
||||
<p>深圳市龙岗区吉华街道甘坑社区甘李六路12号中海信创新产业城14栋A1903-1904</p>
|
||||
<p>东 莞 公 司:</p>
|
||||
<p>东莞市常平镇塘角路24号元创动力(东莞)电商创新产业园</p>
|
||||
<p>长 沙 公 司:</p>
|
||||
<p>长沙市高新区岳麓西大道588号芯城科技园一期8栋11/12层</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>
|
||||
159
app/mobile/view/group/mileage.phtml
Executable file
159
app/mobile/view/group/mileage.phtml
Executable file
@@ -0,0 +1,159 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>品牌里程 </title>
|
||||
<meta name="keywords" content="">
|
||||
<meta name="description" content="">
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
|
||||
<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_back1" /}
|
||||
<div class="margin-top-60"></div>
|
||||
<!--内容-->
|
||||
<div class="m_ach">
|
||||
<div class="img-responsive "> <img src="__PUBLIC__/m_weben/images/brand/achievement_banner.jpg"></div>
|
||||
<div class="title">ORICO荣耀</div>
|
||||
<div class="list-num clearfix">
|
||||
<ul>
|
||||
<li>
|
||||
<h4>4000+</h4>
|
||||
<p>日订单</p>
|
||||
</li>
|
||||
<li>
|
||||
<h4>800+</h4>
|
||||
<p>研发专利</p>
|
||||
</li>
|
||||
<li>
|
||||
<h4>100+</h4>
|
||||
<p>畅销国家和地区</p>
|
||||
</li>
|
||||
<li>
|
||||
<h4>20+</h4>
|
||||
<p>国际设计奖项</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--时间轴-->
|
||||
<div class="m_ach-b"><div class="title">品牌里程</div></div>
|
||||
<div class="contain">
|
||||
<!-- 导航 -->
|
||||
<div class="nav">
|
||||
<div class="swiper-container gallery-thumbs">
|
||||
<div class="swiper-wrapper">
|
||||
<div class="swiper-slide">2022</div>
|
||||
<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>2022</h5><p>重新定位数据存储与传播以及电力存储与传输品类,开启全新研发模式。</p></div>
|
||||
<div class="swiper-slide info"><h5>2021</h5><p>在深圳成立211数字研发制造实验室发布首款NAS产品MetaBox个人家庭云存储。</p></div>
|
||||
<div class="swiper-slide info"><h5>2020</h5><p>荣获第十八届深圳市著名品牌、第七届全球诚信品牌;孵化旗下品牌IDSONIX,与联想在个人云存储和硬盘框领域达成战略合作。</p></div>
|
||||
<div class="swiper-slide info"><h5>2019</h5><p>ORICO(奥睿科)荣获《2019中国跨境电商出海品牌30强》受邀参加上海CES展 发布国内首款雷电3多功能扩展坞</p></div>
|
||||
<div class="swiper-slide info"><h5>2018</h5><p>参加迪拜GITEX展,“蜂巢系列”产品首次亮相ORICO(奥睿科)首次越南经销商大会在胡志明市召开</p></div>
|
||||
<div class="swiper-slide info"><h5>2017</h5><p>ORICO互联网创意产业园新型产业链孵化平台正式成立。</p></div>
|
||||
<div class="swiper-slide info"><h5>2016</h5><p>在深圳开启2016奶奶中国区,渠道核心代理商大会受邀参加,巴西圣保罗电子消费展</p></div>
|
||||
<div class="swiper-slide info"><h5>2015</h5><p>品牌全球电商运营中心,于长沙成立并运行投资4000万,搭建东莞元创动力电商产业园</p></div>
|
||||
<div class="swiper-slide info"><h5>2014</h5><p>ORICO(奥睿科)&WD达成中国区战略合作伙伴关系全球收款USB数码排插上市</p></div>
|
||||
<div class="swiper-slide info"><h5>2013</h5><p>荣获《国家高新技术企业》认证与WD西部数据建立合作关系</p></div>
|
||||
<div class="swiper-slide info"><h5>2012</h5><p>全资建立组装工厂ORICO(奥睿科)香港专卖店开业</p></div>
|
||||
<div class="swiper-slide info"><h5>2011</h5><p>开拓多国线下渠道加入SATA国际组织协会</p></div>
|
||||
<div class="swiper-slide info"><h5>2010</h5><p>开始布局线上渠道达成多项媒体合作关系</p></div>
|
||||
<div class="swiper-slide info"><h5>2009</h5><p>2009年06月17日ORICO(奥睿科)在中国深圳成立</p></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!---->
|
||||
<div class="m_ch">
|
||||
<div class="m_ach-b"><div class="chtitle">品牌活动</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">“无工具”设计促进了硬盘框安装的创新。加入SATA- io协会,确保SATA系列产品的高互操作性。</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">与WD达成战略合作,进一步探讨存储技术创新。成为威盛实验室中国区主要合作伙伴,正式推出无线云存储系统。</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">2014年成功开发智能数字插板,并启动京东众筹,取得满意效果。</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">开始研究数据传输和动力传输技术,包括Type-C、USB2.0、USB3.0等。</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">公司代表产品——透明罩系列面世。</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">与东芝合作,进一步探索个人存储解决方案,包括个人云存储、移动备份等。</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--底部-->
|
||||
{include file="include/bottom1" /}
|
||||
|
||||
</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>
|
||||
119
app/mobile/view/group/odm-old.phtml
Executable file
119
app/mobile/view/group/odm-old.phtml
Executable file
@@ -0,0 +1,119 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>ODM服务_加盟招商服务_中文官网帮助信息_ORICO/奥睿科官网</title>
|
||||
<meta name="Keywords" content="ODM服务">
|
||||
<meta name="Description" content="ODM服务">
|
||||
{include file="include/head" /}
|
||||
<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>
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top" /}
|
||||
|
||||
<!--banner-->
|
||||
<div class="banner img-responsives margin-top-90">
|
||||
<img src="__PUBLIC__/m_web/images/odm/odm_banner.jpg">
|
||||
</div>
|
||||
|
||||
<!--品牌ODM-->
|
||||
<div class="m_Container">
|
||||
<div class="title text_center margin-top-50 text_black"><strong>品牌ODM</strong></div>
|
||||
<div class="des text_gray text_center line-height-40 margin-top-30">我们将始终以客户的本质需求为导向,为您提供出色的产品解决方案,并持续不断地与您一起优化创新,持续创造长期价值,力求成为您企业发展的一股强大助力。</div>
|
||||
</div>
|
||||
<div class="m_Container img-responsives">
|
||||
<div class="title text_center margin-top-40 text_black"><strong>我们的团队或帮您推进创想的实现</strong></div>
|
||||
<div class="des text_gray text_center line-height-40 margin-top-30">我们专注于USB周边产品的研发与生产已持续10年时间,包括但不仅限于USB存储、USB数据传输、USB充电器、USB接线板、USB小家电等围绕USB技术开发的创想产品。</div>
|
||||
<div class="list_two margin-top-14">
|
||||
<ul>
|
||||
<li><img src="__PUBLIC__/m_web/images/odm/odm_01.jpg"></li>
|
||||
<li><img src="__PUBLIC__/m_web/images/odm/odm_02.jpg"></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--我们竭诚为您服务-->
|
||||
<div class="m_Container img-responsives">
|
||||
<div class="title text_center margin-top-50 text_black"><strong>我们竭诚为您服务</strong></div>
|
||||
<div class="des text_gray text_center line-height-40 margin-top-30">公司配套自有五金模具厂,塑胶模具厂,贴片厂,组装厂,包装厂。搭配具有特色的211供应模式,打造产能可突破40亿元强有力的柔性供应链,敏锐反应市场需求。简化合作流程,并为每一位合作伙伴耐心服务。</div>
|
||||
<div class="list_two margin-top-14">
|
||||
<ul>
|
||||
<li class="bg_white text_center">
|
||||
<p class="text_blue text_40 margin-top-80"><strong>140+</strong></p>
|
||||
<p class="text_30 text_gray margin-top-14 margin-bottom-60"><strong>研发团队</strong></p>
|
||||
</li>
|
||||
<li class="bg_white text_center">
|
||||
<p class="text_blue text_40 margin-top-80"><strong>7家</strong></p>
|
||||
<p class="text_30 text_gray margin-top-10 margin-bottom-60"><strong>全产业链工厂</strong></p>
|
||||
</li>
|
||||
<li class="bg_white text_center">
|
||||
<p class="text_blue text_40 margin-top-80"><strong>300+</strong></p>
|
||||
<p class="text_30 text_gray margin-top-14 margin-bottom-60"><strong>专利及著作版权</strong></p>
|
||||
</li>
|
||||
<li class="bg_white text_center">
|
||||
<p class="text_blue text_40 margin-top-80"><strong>80+</strong></p>
|
||||
<p class="text_30 text_gray margin-top-14 margin-bottom-60"><strong>质检团队</strong></p>
|
||||
</li>
|
||||
<li class="bg_white text_center">
|
||||
<img src="__PUBLIC__/m_web/images/odm/odm_03.jpg">
|
||||
</li>
|
||||
<li class="bg_white text_center">
|
||||
<img src="__PUBLIC__/m_web/images/odm/odm_04.jpg">
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<p><img src="__PUBLIC__/m_web/images/odm/odm_05.jpg"></p>
|
||||
</div>
|
||||
<!--灵活多变的服务模式与技术范畴-->
|
||||
<div class="m_Container img-responsives">
|
||||
<div class="title text_center margin-top-50 text_black"><strong>灵活多变的服务模式与技术范畴</strong></div>
|
||||
<div class="subtitle text_black text_center margin-top-10">全权负责产品定义与研发</div>
|
||||
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/odm/odm_06.jpg"></div>
|
||||
<div class="subtitle text_black text_center margin-top-30">多方共同定义与研发</div>
|
||||
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/odm/odm_07.jpg"></div>
|
||||
<div class="subtitle text_black text_center margin-top-30">转接模具代生产</div>
|
||||
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/odm/odm_08.jpg"></div>
|
||||
</div>
|
||||
<!--荣誉证书-->
|
||||
<div class="m_Container img-responsives margin-top-30">
|
||||
<img src="__PUBLIC__/m_web/images/odm/odm_09.jpg">
|
||||
</div>
|
||||
<!--解决方案-->
|
||||
<div class="m_Container img-responsives">
|
||||
<div class="title text_center margin-top-50 text_black"><strong>很高兴为您提供解决方案</strong></div>
|
||||
<div class="des text_gray text_center line-height-40 margin-top-30">我们拥有从设计到研发再到生产制造、物流运输到最终推向市场的完整产业链布局。</div>
|
||||
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/odm/odm_10.jpg"></div>
|
||||
</div>
|
||||
<!--全新柔性供应补货模式-->
|
||||
<div class="m_Container img-responsives">
|
||||
<div class="title text_center margin-top-50 text_black"><strong>全新柔性供应补货模式</strong></div>
|
||||
<div class="des text_gray text_center margin-top-14">Forecast订单/开放销售数据供应商滚动备货模式</div>
|
||||
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/odm/odm_11.jpg"></div>
|
||||
<div class="des text_gray text_center margin-top-30">依据前三个月销售数据,按照备货系数供应商自动开始第4个月备货</div>
|
||||
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/odm/odm_12.jpg"></div>
|
||||
<div class="des text_gray text_center margin-top-30">季度去峰值销量预估、灵活设置缓冲备货</div>
|
||||
<div class="img-responsives margin-top-14"><img src="__PUBLIC__/m_web/images/odm/odm_13.jpg"></div>
|
||||
</div>
|
||||
<!--ODM项目服务流程-->
|
||||
<div class="m_Container img-responsives">
|
||||
<div class="title text_center margin-top-50 text_black"><strong>ODM项目服务流程</strong></div>
|
||||
<div class="img-responsives margin-top-40"><img src="__PUBLIC__/m_web/images/odm/odm_14.jpg"></div>
|
||||
</div>
|
||||
<!--合作伙伴-->
|
||||
{include file="include/partner" /}
|
||||
|
||||
|
||||
<!--底部-->
|
||||
{include file="include/bottom" /}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</body></html>
|
||||
158
app/mobile/view/group/odm.phtml
Executable file
158
app/mobile/view/group/odm.phtml
Executable file
@@ -0,0 +1,158 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>品牌介绍</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_back1" /}
|
||||
<div class="iotbpage" >
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/copperaapp_img2.png" alt="" class="bdimg1" >
|
||||
<div class="iotb_bgw">
|
||||
<h1 class="iotbt1">选择我们的理由</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">畅销11年</p>
|
||||
<span class="iotbts1">在全球70多个国家开设了线上线下渠道</span>
|
||||
</div>
|
||||
<div class="iotb_p1_item">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/iotbic2_app.png" alt="" class="iotbic1">
|
||||
<p class="iotbtp1">卓越的研发团队</p>
|
||||
<span class="iotbts1">成立了一个由近百名结构工程师、电子工程师等专业研发团队。</span>
|
||||
</div>
|
||||
<div class="iotb_p1_item">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/iotbic3_app.png" alt="" class="iotbic1">
|
||||
<p class="iotbtp1">全球支持</p>
|
||||
<span class="iotbts1">全球数字仓储,产品可以销售到世界各地。</span>
|
||||
</div>
|
||||
<div class="iotb_p1_item">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/iotbic4_app.png" alt="" class="iotbic1">
|
||||
<p class="iotbtp1">高质量保证</p>
|
||||
<span class="iotbts1">提供建议、帮助和工具,以帮助提高用户的体验。</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="iotb_part2">
|
||||
<h1 class="iotbt1">选择我们的理由</h1>
|
||||
<div class="fdimgs wcu_list">
|
||||
<div class="wcu_ltem">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/odmic1_app.png" alt="" class="fbit">
|
||||
<span class="wcu_s1">业务</span>
|
||||
</div>
|
||||
<div class="wcu_ltem">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/odmic2_app.png" alt="" class="fbit">
|
||||
<span class="wcu_s1">经销商</span>
|
||||
</div>
|
||||
<div class="wcu_ltem">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/odmic4_app.png" alt="" class="fbit">
|
||||
<span class="wcu_s1">学校</span>
|
||||
</div>
|
||||
<div class="wcu_ltem">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/odmic5_app.png" alt="" class="fbit">
|
||||
<span class="wcu_s1">节日礼品</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="iotb_part3">
|
||||
<div class="odmmain">
|
||||
<h1 class="iotbt1">ODM进展</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">市场分析</span>
|
||||
</div>
|
||||
<div class="odmitem">
|
||||
<div class="appodmimg">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic2.png" alt="" >
|
||||
</div>
|
||||
<span class="odms1">锁定目标和成本</span>
|
||||
</div>
|
||||
<div class="odmitem">
|
||||
<div class="appodmimg">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic3.png" alt="" >
|
||||
</div>
|
||||
<span class="odms1">系列化产品规划</span>
|
||||
</div>
|
||||
<div class="odmitem">
|
||||
<div class="appodmimg">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic4.png" alt="" >
|
||||
</div>
|
||||
<span class="odms1">识别需求和评估</span>
|
||||
</div>
|
||||
<div class="odmitem">
|
||||
<div class="appodmimg">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic5.png" alt="" >
|
||||
</div>
|
||||
<span class="odms1">研发保证金</span>
|
||||
</div>
|
||||
<div class="odmitem">
|
||||
<div class="appodmimg">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic6.png" alt="" >
|
||||
</div>
|
||||
<span class="odms1">安排测试、认证</span>
|
||||
</div>
|
||||
<div class="odmitem">
|
||||
<div class="appodmimg">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic7.png" alt="" >
|
||||
</div>
|
||||
<span class="odms1">确认样品</span>
|
||||
</div>
|
||||
<div class="odmitem">
|
||||
<div class="appodmimg">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic8.png" alt="" >
|
||||
</div>
|
||||
<span class="odms1">开模制作样品</span>
|
||||
</div>
|
||||
<div class="odmitem">
|
||||
<div class="appodmimg">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic9.png" alt="" >
|
||||
</div>
|
||||
<span class="odms1">支付模具费用</span>
|
||||
</div>
|
||||
<div class="odmitem">
|
||||
<div class="appodmimg">
|
||||
<img src="__PUBLIC__/m_weben/images/mcooperation/appodmic10.png" alt="" >
|
||||
</div>
|
||||
<span class="odms1">设计草图和原型制作</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<img src="__PUBLIC__/web/images/indeximage/600-800-2.jpg" 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/bottom1" /}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body></html>
|
||||
104
app/mobile/view/group/policy.phtml
Executable file
104
app/mobile/view/group/policy.phtml
Executable file
@@ -0,0 +1,104 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>售后政策_注意事项_ORICO/奥睿科官网</title>
|
||||
<meta name="Keywords" content="售后服务">
|
||||
<meta name="Description" content="售后服务,三包政策,无理由退货,15天换新">
|
||||
{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_back1" /}
|
||||
|
||||
<!--banner-->
|
||||
<div class="banner img-responsives margin-top-90">
|
||||
<img src="__PUBLIC__/m_web/images/policy/policy_banner.jpg">
|
||||
</div>
|
||||
|
||||
<!--售后政策-->
|
||||
<div class="m_Container">
|
||||
<p class="title text_center margin-top-50 text_black"><strong>售后政策</strong></p>
|
||||
<p class="des text_gray text_center line-height-40 margin-top-30">ORICO/奥睿科商城为您提供七天包退、15天换新、1年保修、终身维护的服务承诺</p>
|
||||
</div>
|
||||
|
||||
<!--售后条款-->
|
||||
<div class="m_Container margin-top-20 text_center">
|
||||
<p class="subtitle text_black"><strong>七天无理由退货</strong></p>
|
||||
<p class="des text_gray text_center line-height-40 margin-top-14">自收到货物之日起7日内,在不影响商品二次销售的情况下(包装及配件完好),可申请无理由退货,退货运费由用户自行承担。(个别产品拆开密封包装后,影响到二次销售,将不接受退货)</p>
|
||||
<p class="subtitle text_black margin-top-20"><strong>终身维护</strong></p>
|
||||
<p class="des text_gray text_center line-height-40 margin-top-14">所有Orico/奥睿科产品均实施终身维修服务,自收到货物之日起1年内,产品出现“性能故障”,您可以联系Orico/奥睿科官方享受维护服务;一年以上酌收材料费及人工费(收费按国家要求执行)。</p>
|
||||
<p class="subtitle text_black margin-top-20"><strong>15天换新</strong></p>
|
||||
<p class="des text_gray text_center line-height-40 margin-top-14">自收到货物之日起第8日至15日内,由于产品质量问题或性能故障,您可以选择更换同型号同规格同价格产品或者维修,运费由卖家承担。</p>
|
||||
<p class="subtitle text_black margin-top-20"><strong>一年保修</strong></p>
|
||||
<p class="des text_gray text_center line-height-40 margin-top-14">ORICO定制硬盘,ORICO与WD为外部存储设备量身定制硬盘。1年免费换新:自签收之日起,1年内硬盘产品质量问题可享受换新服务。3年有限保修:自签收之日起,3年内质量问题可享受有限免费维修服务。</p>
|
||||
</div>
|
||||
<!--质保需知-->
|
||||
<div class="m_Container margin-top-20 text_center">
|
||||
<p class="img-responsives"><img src="__PUBLIC__/m_web/images/policy/policy_01.jpg"></p>
|
||||
<p class="subtitle text_black margin-top-30"><strong>以下状况不列入质保范围</strong></p>
|
||||
<div class="W-95">
|
||||
<p class="des text_gray text_left line-height-40 margin-top-14" >
|
||||
1、未经ORICO许可进行改造的产品;序列号或质保标签磨 损、涂改或丢失;<br>
|
||||
2、正常磨损;<br>
|
||||
3、不按正常操作使用导致的损坏;<br>
|
||||
4、以下情形造成的损害或故障:意外事故、滥用、误用、疏忽、火灾、水淹、电击或其他自然灾害;<br>
|
||||
5、未经许可的产品改装或不按说明书操作,在非ORICO官网 维修点维修;<br>
|
||||
6、以上的三包(指包退、包换、包修)服务将依照后面所列的“有限保修条款”实施。</p>
|
||||
|
||||
<p class="subtitle text_black margin-top-50 line-height-40"><strong>为了保障您的合法权益<br>敬请关注以下信息</strong></p>
|
||||
<p class="des text_gray margin-top-14 line-height-40">为了得到深圳市元创时代科技有限公司给予您的“包修、包换、包退”的权益,请您:</p>
|
||||
<p class="des text_gray text_left line-height-40">三包有效期内,用户必须出具购买发票,若用户无法出具有效的购买发票,则依照出厂日期后的第90日为保修期的起始日期一年内免费保修。<br>
|
||||
维修时请携带购买发票正本(发票须经售机单位填写完整并加盖公章,且不得涂改,否则无效)。<br>
|
||||
若符合更换条件的,只更换故障部分。如主机故障,只更换主机。其它不予更换,同时收回购买凭证(发票或收据复印件)。</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--保修条款-->
|
||||
<div class="m_Container margin-top-20 text_center">
|
||||
<p class="img-responsives"><img src="__PUBLIC__/m_web/images/policy/policy_02.jpg"></p>
|
||||
<p class="subtitle text_black margin-top-30"><strong>有限保修条款</strong></p>
|
||||
<p class="W-95 des text_gray text_left line-height-40 margin-top-14">
|
||||
1、由于使用者或第三者的疏忽、过失、滥用、误用或灾祸损坏造成的产品损坏(如:食物液体粘渍、进水、外力震裂、外围 部件的刮痕的损坏等)。<br>
|
||||
2、用户自行拆机,非经深圳市元创时代科技有限公司认可之维修和改装所造成的损坏。<br>
|
||||
3、连接不适当的配件、未依说明书使用、因运输及其它意外而造成产品损坏。<br>
|
||||
4、 不正确或不正当的操作使用所造成的产品故障或损坏。<br>
|
||||
5、产品外表的各种标签、零部件、自耗零件和因长期使用而造成产品外表的自然磨损。<br>
|
||||
6、 超过三包有效期的。<br>
|
||||
7、无购买凭证及有效发票的,但能够证明该产品在三包有效期内的除外。<br>
|
||||
</p>
|
||||
<p class="subtitle text_black margin-top-14"><strong>特别说明</strong></p>
|
||||
<p class="W-95 des text_gray text_left line-height-40 margin-top-14">
|
||||
1、产品由于进水或严重人为损坏,寄返维修时,维修单位与用户必须先签订相关维修协议,否则,我公司视为用户放弃维修。<br>
|
||||
2、产品同时有质量问题又有人为损坏的,不再享受保修权利,但我公司提供维修服务,但需要视损坏情况收取材料费和维修费。<br>
|
||||
3、产品需收费维修,须在维修记录或收费发票/收据上注明非保修原因,用户签名认可,否则用户投诉,将由承修单位负责。<br>
|
||||
4、如我司在官方宣传平台另有经总部批准的广告承诺,则在广告中表明的有效区域和有效时段内,公司必须按承诺执行。<br>
|
||||
</p>
|
||||
</div>
|
||||
<!--特别说明-->
|
||||
<div class="m_Container margin-top-20 text_center">
|
||||
<p class="img-responsives"><img src="__PUBLIC__/m_web/images/policy/policy_03.jpg"></p>
|
||||
<p class="subtitle text_black margin-top-30"><strong>注意事项</strong></p>
|
||||
<p class="W-95 des text_gray text_left line-height-40 margin-top-14">
|
||||
1、填写送修单时请用楷体填写,须填写用户姓名、联系电话、故障现象、要求检测或维修以及其它内容,我们将根据用户所填写的内容进行判断和处理。<br>
|
||||
2、请在送修机器前,先将存储在产品里的重要信息记录下来并删除,以免丢失或泄露。<br>
|
||||
*以上若有与国家政策不符或遗漏之处,以国家政策为准。<br>
|
||||
</p>
|
||||
</div>
|
||||
<!--注意事项-->
|
||||
|
||||
<p></p><br class="bottom-margin">
|
||||
<!--底部-->
|
||||
{include file="include/bottom1" /}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</body></html>
|
||||
54
app/mobile/view/group/pssd.phtml
Executable file
54
app/mobile/view/group/pssd.phtml
Executable file
@@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>PSSD系列_ORICO/奥睿科官网</title>
|
||||
<meta name="Keywords" content="PSSD系列">
|
||||
<meta name="Description" content="PSSD系列">
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/pssd.css">
|
||||
<style>
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top_back1" /}
|
||||
<!--banner-->
|
||||
<div class="banner img-responsives">
|
||||
<img src="__PUBLIC__/m_web/images/pssd/paad-wap-01.jpg">
|
||||
</div>
|
||||
<video class="margin-top-20" controls>
|
||||
<source src="__PUBLIC__/m_web/images/pssd/video.mp4" type="video/mp4">
|
||||
您的浏览器不支持 video 标签。
|
||||
Your browser does not support HTML5 video.
|
||||
|
||||
</video>
|
||||
|
||||
<div class="banner img-responsives">
|
||||
<img src="__PUBLIC__/m_web/images/pssd/paad-wap-02.jpg">
|
||||
<img src="__PUBLIC__/m_web/images/pssd/paad-wap-03.jpg">
|
||||
<img src="__PUBLIC__/m_web/images/pssd/paad-wap-04.jpg" >
|
||||
<img src="__PUBLIC__/m_web/images/pssd/paad-wap-05.jpg">
|
||||
<img src="__PUBLIC__/m_web/images/pssd/paad-wap-06.jpg">
|
||||
<img src="__PUBLIC__/m_web/images/pssd/paad-wap-07.jpg">
|
||||
<img src="__PUBLIC__/m_web/images/pssd/paad-wap-08.jpg">
|
||||
<img src="__PUBLIC__/m_web/images/pssd/paad-wap-09.jpg">
|
||||
<img src="__PUBLIC__/m_web/images/pssd/paad-wap-10.jpg">
|
||||
<img src="__PUBLIC__/m_web/images/pssd/paad-wap-11.jpg">
|
||||
<img src="__PUBLIC__/m_web/images/pssd/paad-wap-12.jpg">
|
||||
</div>
|
||||
<!--新增-->
|
||||
|
||||
<!--底部-->
|
||||
{include file="include/bottom1" /}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</body></html>
|
||||
91
app/mobile/view/group/question.phtml
Executable file
91
app/mobile/view/group/question.phtml
Executable file
@@ -0,0 +1,91 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>常见FQ_下载与服务_中文官网帮助信息_ORICO/奥睿科官网</title>
|
||||
<meta name="Keywords" content="常见FQ">
|
||||
<meta name="Description" content="常见FQ">
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/question.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-responsives margin-top-90">
|
||||
<img src="__PUBLIC__/m_web/images/question/banner.jpg">
|
||||
</div>
|
||||
<!--搜索-->
|
||||
<div class="margin-top-20 margin-bottom-20">
|
||||
<div class="m_Container position_r img-responsive">
|
||||
<form method="get" action="__ORICOROOT__/group/question.html">
|
||||
<input type="text" name="keyword" placeholder="请输入您的问题..." id="search-in" value="<?php echo $search['keyword']; ?>" class="text_24">
|
||||
<button type="submit" id="search-btn"><img src="__PUBLIC__/m_web/images/question/search.png"></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!--问题类别-->
|
||||
<div class="fq_cate margin-bottom-10 overflow-h ">
|
||||
<div class="m_Container">
|
||||
<div class="fq_category margin-bottom-35 margin-top-35 text_black" id="fq_category">
|
||||
<div class="scroller">
|
||||
<ul class="clearfix">
|
||||
<li class="<?php if ($cid == 0): ?>fq_hover<?php endif; ?> text_24">
|
||||
<a href="__ORICOROOT__/group/question.html"><span>全部</span></a>
|
||||
</li>
|
||||
<?php foreach ($question_catelist as $key => $value): ?>
|
||||
<li class="<?php if ($cid == $value['id']): ?>fq_hover<?php endif; ?> text_24">
|
||||
<a href="__ORICOROOT__/group/question/cid/<?php echo $value['id']; ?>.html"><span><?php echo $value['name']; ?></span></a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--列表-->
|
||||
<div class="fq_list margin-bottom-20">
|
||||
<div class="m_Container">
|
||||
<?php if (!empty($question_list)): ?>
|
||||
|
||||
<ul>
|
||||
<?php foreach ($question_list as $key => $value): ?>
|
||||
<a href="__ORICOROOT__/group/question_detail.html?id=<?php echo $value['id']; ?>" target="_blank">
|
||||
<li>
|
||||
<div class="left img-responsive"><img src="<?php echo $value['image']; ?>"></div>
|
||||
<div class="right">
|
||||
<p class="text_24 margin-bottom-10 text_black"><?php echo $value['title']; ?></p>
|
||||
<p class="text_20 text_gray"><?php echo msubstr($value['content'], 0, 40);?></p>
|
||||
</div>
|
||||
</li>
|
||||
</a>
|
||||
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<!--底部-->
|
||||
{include file="include/bottom" /}
|
||||
|
||||
</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调取,一句可以搞定,用于页面中可能有多个导航的情况
|
||||
$('.fq_category').navbarscroll();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
49
app/mobile/view/group/question_detail.phtml
Executable file
49
app/mobile/view/group/question_detail.phtml
Executable file
@@ -0,0 +1,49 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>常见FQ_下载与服务_中文官网帮助信息_ORICO/奥睿科官网</title>
|
||||
<meta name="Keywords" content="常见FQ">
|
||||
<meta name="Description" content="常见FQ">
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/question.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-->
|
||||
<?php if (!empty($question)): ?>
|
||||
<div class="banner img-responsives margin-top-90">
|
||||
<!--<img src="__PUBLIC__/m_web/<?php echo $question['image']; ?>">-->
|
||||
<img src="__PUBLIC__/m_web/images/question/banner.jpg">
|
||||
</div>
|
||||
<!--搜索-->
|
||||
<div class="bg_white ">
|
||||
<div class="m_Container position_r f_weight_100 line_height_38 margin-bottom-90">
|
||||
<p class="text_24 margin-top-30"><?php echo $question['title']; ?></p>
|
||||
<p class="text_24 margin-top-30 text_gray"><?php echo $question['content']; ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<!--底部-->
|
||||
{include file="include/bottom" /}
|
||||
|
||||
</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调取,一句可以搞定,用于页面中可能有多个导航的情况
|
||||
$('.fq_category').navbarscroll();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
202
app/mobile/view/group/rdcenter.phtml
Executable file
202
app/mobile/view/group/rdcenter.phtml
Executable file
@@ -0,0 +1,202 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>研发团队_ORICO/奥睿科官网</title>
|
||||
<meta name="Keywords" content="研发团队">
|
||||
<meta name="Description" content="研发团队">
|
||||
{include file="include/head" /}
|
||||
<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>以专研成就使命</strong></div>
|
||||
<div class="des text_gray text_center line-height-40 margin-top-30">元创作为一家以市场驱动,以产品为核心的企业。作为企业发展引擎的专研团队,聚焦于USB技术领域,扎根创研行业先驱技术,始终将坚持以市场的真实需求为研发方向,最终以产品价值为核心,目标剑指全球USB技术领导者!</div>
|
||||
</div>
|
||||
<!--研发团队-->
|
||||
<div class="m_Container">
|
||||
<div class="title text_center margin-top-40 text_black"><strong>研发团队</strong></div>
|
||||
<div class="des text_gray text_center line-height-40 margin-top-30">元创品牌研发中心,由140+位高级工程师组建而成。能够全权负责包括ID提案、工业设计、结构设计、电子设计、模具设计与开发、项目统筹等十余个环节,为客户输出更全面的技术与产品方案。</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>首席技术工程师</strong></p>
|
||||
<p class="text_22 text_gray margin-top-10 line-height-38">两周研发一周生产<br>的211服务速度</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>全案项目经理</strong></p>
|
||||
<p class="text_22 text_gray margin-top-10 line-height-38">8年以上项目经验<br>运筹帷幄</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>ID提案工业设计</strong></p>
|
||||
<p class="text_22 text_gray margin-top-10 line-height-38">以需求为导向<br>天马行空创意无限</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>模具工程师</strong></p>
|
||||
<p class="text_22 text_gray margin-top-10 line-height-38">从设计、制造、机床<br>调试到模具材料选用与<br>处理全面的技术团队</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>产品经理</strong></p>
|
||||
<p class="text_22 text_gray margin-top-10 line-height-38">作为市场与产品设计生<br>产的纽带,多年全案经<br>理练就敏锐的市场洞察力</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>首席技术工程师</strong></p>
|
||||
<p class="text_22 text_gray margin-top-10 line-height-38">精通商品的展示、物流<br>储存等多样化包装的包<br>装选材与包装结构设计</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>高级结构工程师</strong></p>
|
||||
<p class="text_22 text_gray margin-top-10 line-height-38">十年磨一剑,精细<br>考量到每一个元器件</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>高级电子工程师</strong></p>
|
||||
<p class="text_22 text_gray margin-top-10 line-height-38">强电、弱电设计<br>将用电安全写入细节</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--研发流程 -->
|
||||
<div class="m_Container">
|
||||
<div class="title text_center margin-top-14 text_black"><strong>研发流程</strong></div>
|
||||
<div class="banner img-responsives margin-top-40"><img src="__PUBLIC__/m_web/images/rdcenter/rdcenter_flowsheet.jpg"></div>
|
||||
</div>
|
||||
<!--技术与应用-->
|
||||
<div class="m_Container overflow-h">
|
||||
<div class="title text_center margin-top-50 text_black"><strong>技术与应用</strong></div>
|
||||
<!--Type-c技术全方位应用-->
|
||||
<div class="subtitle text_black margin-top-14 text_center">Type-c技术全方位应用</div>
|
||||
<div class="des text_gray margin-top-10 text_center line-height-40">在元创开发的经典存储、创新扩展、3C配件、生活配件上,我们运用到更高规格的Type-c技术方案,能够全面支持近10Gbps的数据传输速率,在储存行业内,元创的储存产品占据国内市场65%以上市场份额;同时在Type-c全功能扩展方面,能够兼容苹果Thunderbolt 3接口,同时实现数据传输、PD双向供电、影音扩展等功能的集成传输。</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<br>数据传输技术</div>
|
||||
<div class="des text_gray margin-top-10 text_center line-height-40">元创一直沉淀与USB技术的探索与创新,在数据传输方面,从USB2.0时代到目前领先的USB3.1技术,元创都紧跟变化,并不断突破创新。</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">USB弱电运用技术</div>
|
||||
<div class="des text_gray margin-top-10 text_center line-height-40">USB接口弱电的运用,早已经从数码产品延续到更多其他产品上,例如数码周边的鼠标、键盘、散热垫、小风扇等,生活周边的果蔬杯、洁面仪、照明灯等等上面都得到了广泛的运用。</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">安全家用强电技术</div>
|
||||
<div class="des text_gray margin-top-10 text_center line-height-40">涉及到家用排插等直接连接220V家用强电的产品,从选材、用料到电子结构的设计,综合考量各方安全防护,产品能够通过新国家3C标准、海外FCC等相关认证</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">精密模具开发技术</div>
|
||||
<div class="des text_gray margin-top-10 text_center line-height-40">针对桌面高端外设、高端游戏配件等精雕细琢的产品,元创的精密模具开发,能够使产品的外观更精致优美,电子结构设计,让产品无缝兼容操作系统或适配设备主体。</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">资源利用最大化的制造与选材</div>
|
||||
<div class="des text_gray margin-top-10 text_center line-height-40">制造过程与产品选材是让产品更精准匹配需求、带给用户更好体验的强力保障,元创拥有专业的工艺技术及高产能仪器设备的加持,使得资源得到最大的利用。元创的研发团队坚信“成本不是省出来的,而是设计出来的”,从设计阶段就要基于对市场的全面考量,瞄准市场与目标成本,优化整个设计制造过程,最终达到时间成本与物料成本的双料管控。</div>
|
||||
|
||||
<div class="subtitle text_center margin-top-30">模具制造</div>
|
||||
<div class="des text_gray text_center line-height-40 margin-top-14">储备精密模具约300+套,并保持平均每个月开10套左右新模,从注塑件到五金件的精密加工、切割</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">注塑加工</div>
|
||||
<div class="des text_gray text_center line-height-40 margin-top-14">月产能4万 PCS/台,组装加工6.5万套/月</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">表面处理</div>
|
||||
<div class="des text_gray text_center line-height-40 margin-top-14">拥有喷涂、丝印、镭雕等多类型处理工艺,产能可达5-7万件/日</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">产品选材</div>
|
||||
<div class="des text_gray text_center line-height-40 margin-top-14">注塑件多选用高纯度PC材料以保证良好的绝缘、成色、阻燃效果,同时铝合金、锌合金材质产品应用广泛。</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">注塑车间机器</div>
|
||||
<div class="des text_gray text_center line-height-40 margin-top-14">伊之密5台 | 海天16台</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">工模车间机器</div>
|
||||
<div class="des text_gray text_center line-height-40 margin-top-14">先锋铣床4台 | 三联铣床2台 | 新兴工锯床1台 | 雄鹰顶针切割机1台 <br>
|
||||
天马牌台式砂轮机1台</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">车/磨/摇臂钻床</div>
|
||||
<div class="des text_gray text_center line-height-40 margin-top-14">平面磨床2台 | 宏远摇臂钻床1台 | 广州车床1台</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">品质保障体系</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>国际质量管理体系</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><img src="__PUBLIC__/m_web/images/rdcenter/quality_02.jpg"></p>
|
||||
<p>东莞市级质检中心</p>
|
||||
<p>模拟环境监测</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><img src="__PUBLIC__/m_web/images/rdcenter/quality_03.jpg"></p>
|
||||
<p>国际公认认证</p>
|
||||
<p>标准检测体系</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<br class="bottom-margin">
|
||||
<!--底部-->
|
||||
{include file="include/bottom" /}
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
146
app/mobile/view/group/report.phtml
Executable file
146
app/mobile/view/group/report.phtml
Executable file
@@ -0,0 +1,146 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>举报_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">谨防仿冒伪劣产品</p>
|
||||
<p class="text_24 f_weight_100 line_height_38">为了保护您免受假货困扰以及ORICO的品牌形象,我们提供了仿冒伪劣产品的举报渠道,如发现或疑似假货的产品,请立即举报并提供以下信息,官方检测人员会立即进行审核,谢谢您的配合。</p>
|
||||
<p class="text_24 margin-top-14 f_weight_100 line_height_38"><span class="f_weight_400">请填写以下表格告知我们您看到的可能不是orico正品的产品:</span><br>(注意带*为必填项)</p>
|
||||
<div class="report_input text_24 margin-top-30 f_weight_100 ">
|
||||
<ul>
|
||||
<li>
|
||||
<label>产品的名称是什么?<span>*</span></label>
|
||||
<input type="text" name="product_name" id="product_name">
|
||||
<span style="display: none; font-size: 0.875em">请输入产品名称</span>
|
||||
</li>
|
||||
<li>
|
||||
<label>你的名字</label>
|
||||
<input class="" type="text" name="customer_name" id="customer_name">
|
||||
</li>
|
||||
<li>
|
||||
<label>产品型号什么?<span>*</span></label>
|
||||
<input type="text" id="product_model" name="product_model">
|
||||
<span style="display: none; font-size: 0.875em">请输入产品型号</span>
|
||||
</li>
|
||||
<li>
|
||||
<label>您的邮件地址</label>
|
||||
<input type="text" id="customer_email" name="customer_email">
|
||||
</li>
|
||||
<li>
|
||||
<label>产品生产厂商是什么?<span>*</span></label>
|
||||
<input type="text" id="product_manufacturer" name="product_manufacturer">
|
||||
<span style="display: none; font-size: 0.875em">请输入产品生产厂商</span>
|
||||
</li>
|
||||
<li>
|
||||
<label>你的电话号码</label>
|
||||
<input type="text" id="customer_telephone" name="customer_telephone">
|
||||
</li>
|
||||
<li>
|
||||
<label>产品价格是多少?</label>
|
||||
<input class="" type="text" id="product_price" name="product_price">
|
||||
</li>
|
||||
<li>
|
||||
<label>购买渠道是什么?</label>
|
||||
<input type="text" id="buy_source" name="buy_source">
|
||||
</li>
|
||||
<li>
|
||||
<label>你为什么认为这个产品是假冒的?它与价格、质量、包装或其他原因有关吗?</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()">立即提交</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("已提交成功");
|
||||
location.reload();
|
||||
}
|
||||
else if (data.code == -100)
|
||||
{
|
||||
alert(data.msg);
|
||||
location.href = 'login.html';
|
||||
}
|
||||
else
|
||||
alert(data.msg);
|
||||
|
||||
},
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
198
app/mobile/view/group/series_35.phtml
Executable file
198
app/mobile/view/group/series_35.phtml
Executable file
@@ -0,0 +1,198 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>35系列存储_ORICO/奥睿科官网</title>
|
||||
<meta name="Keywords" content="35系列存储">
|
||||
<meta name="Description" content="35系列存储">
|
||||
{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_web/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">至美存储体验</p>
|
||||
<p class="text_24 margin-top-20 line-height-40 margin-bottom-35">35系列让硬盘从“单兵作战”变为“合力出击”,给数据存储带来了更为广阔的空间。面对不同的人群需求,我们让它学会“多变”,提供了更多的个性化存储模式。它并不只是简单的硬件堆砌,我们将每个零部件悉心打磨融合,让35系列拥有高颜值与良好性能。</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="series35_content text_center">
|
||||
<p class="text_32 margin-top-50">365×24h不间断工作</p>
|
||||
<p class="text_24 margin-top-14">针对于企业服务器需要长时间工作特点,35系列采用工程级双主控芯片设计,能够适应持续不间断的工作环境,在持续稳定的高性能的同时减少发热,让硬盘保持高MTBF(平均故障时间),无损硬盘数据。</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">80TB海量存储</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">安防监控</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">影视剪辑</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">私有存储</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">企业服务器扩容</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">来自螺丝钉的呵护</p>
|
||||
<p class="text_24 margin-top-14">每个硬盘都单独配有托架,搭配固盘螺丝,使硬盘牢牢固定在托架上不松动不位移,力保数据在传输过程中稳定安全,每颗螺丝的“贴身”呵护,只为带给您一场无忧数据之旅</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">时尚与沉稳的交织</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--第七屏-->
|
||||
<div class="banner img-responsives position_r f_weight_100">
|
||||
<img src="__PUBLIC__/m_web/images/series_35/series35_11.jpg">
|
||||
<div class="position_a text_white text_center">
|
||||
<p class="text_32 margin-top-50 banner_l">RAID模式图解</p>
|
||||
<p class="text_24 margin-top-14">8种RAID模式、拓展个性存储生活</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--第八屏-->
|
||||
<div class="banner img-responsives position_r f_weight_100">
|
||||
<img src="__PUBLIC__/m_web/images/series_35/series35_12.jpg">
|
||||
<div class="position_a text_white text_center">
|
||||
<p class="text_32 margin-top-50 banner_l">五大强劲性能加持</p>
|
||||
<p class="text_32 margin-top-10 banner_l">数据放心存</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系列带阵列硬盘柜</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="https://detail.tmall.com/item.htm?id=609189799320&skuId=4274604632164" class="buy_margin" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/63118486044.html" target="_blank">京东购买</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系列带阵列硬盘柜</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="https://detail.tmall.com/item.htm?id=609189799320&skuId=4274604632166" class="buy_margin" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/63118486046.html" target="_blank">京东购买</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系列带阵列硬盘柜</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="https://detail.tmall.com/item.htm?id=609189799320&skuId=4274604632168" class="buy_margin" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/63118486048.html" target="_blank">京东购买</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系列常规硬盘柜</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">
|
||||
<span class="subject_span buy_margin">天猫购买</span>
|
||||
<a href="https://item.jd.com/63109703650.html" target="_blank">京东购买</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系列常规硬盘柜</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="https://detail.tmall.com/item.htm?id=609189799320&skuId=4274604632165" class="buy_margin" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/63109703652.html" target="_blank">京东购买</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系列常规硬盘柜</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="https://detail.tmall.com/item.htm?id=609189799320&skuId=4274604632167" class="buy_margin" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/63109703654.html" target="_blank">京东购买</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>
|
||||
188
app/mobile/view/group/series_95.phtml
Executable file
188
app/mobile/view/group/series_95.phtml
Executable file
@@ -0,0 +1,188 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>95系列存储_ORICO/奥睿科官网</title>
|
||||
<meta name="Keywords" content="95系列存储">
|
||||
<meta name="Description" content="95系列存储">
|
||||
{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">
|
||||
</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/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">大,有可为</p>
|
||||
<p class="text_24 margin-top-20 line-height-40 margin-bottom-35">不知道从何时开始,“大”成为了一种时尚,手机屏幕越来越大,电脑内存越来越大,数据空间越来越大……针对于用户对大容量存储的迫切需求,95系列外置硬盘柜横空出世,用不俗的实力证明着:大,才有可为。</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.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">5大升级 亲眼见证性能飞跃</div>
|
||||
<div class="m_Container margin-top-50 series_95_three">
|
||||
<ul class="two_list">
|
||||
<li>
|
||||
<p><img src="__PUBLIC__/web/images/95_series/icon_01.png"></p>
|
||||
<p class="font-32 margin-top-14">散热升级</p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="font-32"><img src="__PUBLIC__/web/images/95_series/icon_02.png"></p>
|
||||
<p class="font-32 margin-top-14">安稳升级</p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="three_list margin-top-80">
|
||||
<li>
|
||||
<p class="font-32"><img src="__PUBLIC__/web/images/95_series/icon_03.png"></p>
|
||||
<p class="font-32 margin-top-14">供电升级</p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="font-32"><img src="__PUBLIC__/web/images/95_series/icon_04.png"></p>
|
||||
<p class="font-32 margin-top-14">速度升级</p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="font-32"><img src="__PUBLIC__/web/images/95_series/icon_05.png"></p>
|
||||
<p class="font-32 margin-top-14">性能升级</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版本</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">精雕细琢,更见匠心</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--第六屏-->
|
||||
<div class="m_Container margin-bottom-30 margin-top-50 text_black text_center f_weight_100">
|
||||
<p class="text_32">适用更多场景</p>
|
||||
<p class="text_24 margin-top-20 line-height-40 margin-bottom-35">95系列单盘支持16TB存储,5盘可达80TB。适用于各个场景,不管是影视编辑、还是企业云存储,都可以应对自如,实现人们从生活到工作的大容量存储需求。</p>
|
||||
|
||||
<p class="img-responsives"><img src="__PUBLIC__/m_web/images/series_95/series95_six_01.jpg"></p>
|
||||
<p class="img-responsives margin-top-10"><img src="__PUBLIC__/m_web/images/series_95/series95_six_02.jpg"></p>
|
||||
<p class="img-responsives margin-top-10"><img src="__PUBLIC__/m_web/images/series_95/series95_six_03.jpg"></p>
|
||||
<p class="img-responsives margin-top-10"><img src="__PUBLIC__/m_web/images/series_95/series95_six_04.jpg"></p>
|
||||
<p class="img-responsives margin-top-10"><img src="__PUBLIC__/m_web/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">你中意哪一款呢</p>
|
||||
<p class="text_center text_24 margin-top-14">95系列常规版</p>
|
||||
<ul class="margin-top-30 overflow-h">
|
||||
<li class="img-responsives solid_blue">
|
||||
<a href="__ORICOROOT__/product/detail/id/6765.html"><img src="__PUBLIC__/m_web/images/series_95/products_01.jpg"></a>
|
||||
<div class="position_a text_black">
|
||||
<p class="text_22 text_center margin-top-40">9518硬盘柜</p>
|
||||
</div>
|
||||
<!-- <div class="computer text_24 text_center buy">
|
||||
<span class="subject_span buy_margin">天猫购买</span>
|
||||
<span class="subject_span">京东购买</span>
|
||||
</div> -->
|
||||
</li>
|
||||
<li class="img-responsives solid_blue">
|
||||
<a href="__ORICOROOT__/product/detail/id/6761.html"><img src="__PUBLIC__/m_web/images/series_95/products_02.jpg"></a>
|
||||
<div class="position_a text_black">
|
||||
<p class="text_22 text_center margin-top-40">9528硬盘柜</p>
|
||||
</div>
|
||||
<!-- <div class="computer text_24 text_center buy">
|
||||
<span class="subject_span buy_margin">天猫购买</span>
|
||||
<span class="subject_span">京东购买</span>
|
||||
</div> -->
|
||||
</li>
|
||||
<li class="img-responsives solid_blue">
|
||||
<a href="__ORICOROOT__/product/detail/id/6763.html"><img src="__PUBLIC__/m_web/images/series_95/products_03.jpg"></a>
|
||||
<div class="position_a text_black">
|
||||
<p class="text_22 text_center margin-top-40">9548硬盘柜</p>
|
||||
</div>
|
||||
<!-- <div class="computer text_24 text_center buy">
|
||||
<span class="subject_span buy_margin">天猫购买</span>
|
||||
<span class="subject_span">京东购买</span>
|
||||
</div> -->
|
||||
</li>
|
||||
<li class="img-responsives solid_blue">
|
||||
<a href="__ORICOROOT__/product/detail/id/6771.html"><img src="__PUBLIC__/m_web/images/series_95/products_04.jpg"></a>
|
||||
<div class="position_a text_black">
|
||||
<p class="text_22 text_center margin-top-40">9558硬盘柜</p>
|
||||
</div>
|
||||
<!-- <div class="computer text_24 text_center buy">
|
||||
<span class="subject_span buy_margin">天猫购买</span>
|
||||
<span class="subject_span">京东购买</span>
|
||||
</div> -->
|
||||
</li>
|
||||
</ul>
|
||||
<p class="text_center text_24 margin-top-50">95系列RAID版</p>
|
||||
<ul class="margin-top-30 margin-bottom-35 overflow-h">
|
||||
<li class="img-responsives solid_blue">
|
||||
<a href="__ORICOROOT__/product/detail/id/6766.html"><img src="__PUBLIC__/m_web/images/series_95/products_05.jpg"></a>
|
||||
<div class="position_a text_black">
|
||||
<p class="text_22 text_center margin-top-40">9528磁盘阵列柜</p>
|
||||
</div>
|
||||
<!-- <div class="computer text_24 text_center buy">
|
||||
<span class="subject_span buy_margin">天猫购买</span>
|
||||
<span class="subject_span">京东购买</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磁盘阵列柜</p>
|
||||
</div>
|
||||
<!-- <div class="computer text_24 text_center buy">
|
||||
<span class="subject_span buy_margin">天猫购买</span>
|
||||
<span class="subject_span">京东购买</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磁盘阵列柜</p>
|
||||
</div>
|
||||
<!-- <div class="computer text_24 text_center buy">
|
||||
<span class="subject_span buy_margin">天猫购买</span>
|
||||
<span class="subject_span">京东购买</span>
|
||||
</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>
|
||||
316
app/mobile/view/group/socket.phtml
Executable file
316
app/mobile/view/group/socket.phtml
Executable file
@@ -0,0 +1,316 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>新国标排插_Orico/奥睿科</title>
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/css/subject/socket.css">
|
||||
</head>
|
||||
<body style="background-color:#f5f5f5; font-weight: 100;">
|
||||
<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="m_Container margin-bottom-30 margin-top-50 text_black text_center f_weight_100">
|
||||
<p class="text_32">冲破常规、创想未来</p>
|
||||
<p class="text_22 margin-top-14 line-height-38 margin-bottom-20">ORICO电立方一改排插传统形象,结合科技工艺与灵动设计,让颜值与实力并行 。面:每面都可插拔,互不干扰 ,小:掌心之间,便携易带 ,全:数码充电,家电供电均支持 ,妥:新国标更稳妥,安全可依赖。</p>
|
||||
|
||||
<p class="img-responsives">
|
||||
<video controls poster="__PUBLIC__/m_web/images/socket/video.jpg">
|
||||
<source src="__PUBLIC__/web/images/socket/video.mp4" type="video/mp4" />
|
||||
您的浏览器不支持 video 标签。
|
||||
Your browser does not support HTML5 video.
|
||||
|
||||
</video></p>
|
||||
</div>
|
||||
|
||||
<!--第二屏-->
|
||||
<div class="position_r banner overflow-f img-responsives">
|
||||
<a name="旅行便携"><img src="__PUBLIC__/m_web/images/socket/socket_01.jpg"></a>
|
||||
<div class="m_Container img-responsives">
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_02.jpg" class="margin-top-10">
|
||||
<p class="text_22 text_center margin-top-20">外出旅行,设备充电一对多</p>
|
||||
<div class="margin-top-20 img-responsives position_r">
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_03.jpg">
|
||||
<div class="list_one_special margin-top-70">
|
||||
<p class="text_24 text_black">USB转换插座</p>
|
||||
<p class="text_22 text_gray margin-top-14">4个5孔组合插孔+3个USB插孔</p>
|
||||
<!-- <p class="buy_button margin-top-40 text_24">
|
||||
<a href="https://detail.tmall.com/item.htm?id=600699213423&skuId=4201730821489" class="buy_socket text_white span_margin">天猫购买</a>
|
||||
<a href="https://item.jd.com/100004559817.html" class="buy_socket text_white">京东购买</a>
|
||||
</p> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--第三屏-->
|
||||
<div class="position_r banner overflow-f img-responsives margin-top-30 f_weight_100">
|
||||
<div class="position_r">
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_04.jpg">
|
||||
<div class="socket text_32">工作/居家实用艺术品</div>
|
||||
</div>
|
||||
|
||||
<div class="m_Container img-responsives">
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_05.jpg" class="margin-top-10">
|
||||
<p class="text_22 text_center margin-top-20">宽间距,插孔更大空间,用电不排队</p>
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_06.jpg" class="margin-top-20">
|
||||
<p class="text_22 text_center margin-top-20">多插孔, 公司办公、会议集中供电</p>
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_07.jpg" class="margin-top-20">
|
||||
<p class="text_22 text_center margin-top-20">简约爬墙艺术,桌面不凌乱,插拔更顺手</p>
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_08.jpg" class="margin-top-20">
|
||||
<p class="text_22 text_center margin-top-20">9.8m长电源线,全屋用电无局限</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--第四屏-->
|
||||
<div class="m_Container">
|
||||
<div class="list_two margin-top-30 f_weight_100 text_center">
|
||||
<ul>
|
||||
<li class="border-top-socket">
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_09.jpg">
|
||||
<div class="position_a">
|
||||
<p class="text_22 margin-top-40">新国标USB智能延长线排插</p>
|
||||
</div>
|
||||
<!-- <div class="buy text_22">
|
||||
<a href="https://detail.tmall.com/item.htm?id=603646149598" class="buy_socket span_margin">天猫购买</a>
|
||||
<a href="https://item.jd.com/100008635060.html" class="buy_socket">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
<li class="border-top-socket">
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_10.jpg">
|
||||
<div class="position_a">
|
||||
<p class="text_22 margin-top-40">新国标商企办公总控智能排插</p>
|
||||
</div>
|
||||
<!-- <div class="buy text_22">
|
||||
<a href="https://detail.tmall.com/item.htm?id=532557922810" class="buy_socket span_margin">天猫购买</a>
|
||||
<a href="https://item.jd.com/100007840900.html" class="buy_socket">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
<li class="border-top-socket">
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_11.jpg">
|
||||
<div class="position_a">
|
||||
<p class="text_22 margin-top-40">电小伴安选排插,4口插座</p>
|
||||
</div>
|
||||
<!-- <div class="buy text_22">
|
||||
<a href="https://detail.tmall.com/item.htm?id=602235172418&skuId=4221063509689" class="buy_socket span_margin">天猫购买</a>
|
||||
<a href="https://item.jd.com/100008302450.html" class="buy_socket">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
<li class="border-top-socket">
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_12.jpg">
|
||||
<div class="position_a">
|
||||
<p class="text_22 margin-top-40">新国标安选多孔位桌面排插</p>
|
||||
</div>
|
||||
<!-- <div class="buy text_22">
|
||||
<a href="https://detail.tmall.com/item.htm?id=600900754240&skuId=4371740311352" class="buy_socket span_margin">天猫购买</a>
|
||||
<a href="https://item.jd.com/100008302438.html" class="buy_socket">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--第五屏-->
|
||||
<div class="position_r banner overflow-f img-responsives margin-top-30 f_weight_100">
|
||||
<div class="position_r">
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_13.jpg">
|
||||
<div class="socket text_32">大家电专有管家</div>
|
||||
</div>
|
||||
<div class="m_Container img-responsives">
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_14.jpg" class="margin-top-10">
|
||||
<p class="text_22 text_center margin-top-20">在卧室,空调挂机</p>
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_15.jpg" class="margin-top-20">
|
||||
<p class="text_22 text_center margin-top-20">在浴室,兼顾电热水器、洗衣机</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--第六屏-->
|
||||
<div class="m_Container">
|
||||
<div class="list_two margin-top-30 f_weight_100 text_center">
|
||||
<ul>
|
||||
<li class="border-top-socket">
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_16.jpg">
|
||||
<div class="position_a">
|
||||
<p class="text_22 margin-top-40">大功率单AC口排插</p>
|
||||
</div>
|
||||
<!-- <div class="buy text_22">
|
||||
<a href="https://detail.tmall.com/item.htm?id=600900754240" class="buy_socket span_margin">天猫购买</a>
|
||||
<a href="https://item.jd.com/100007901202.html" class="buy_socket">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
<li class="border-top-socket">
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_17.jpg">
|
||||
<div class="position_a">
|
||||
<p class="text_22 margin-top-40">大功率双AC口排插</p>
|
||||
</div>
|
||||
<!-- <div class="buy text_22">
|
||||
<a href="https://detail.tmall.com/item.htm?id=600900754240" class="buy_socket span_margin">天猫购买</a>
|
||||
<a href="https://item.jd.com/100004546681.html" class="buy_socket">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--第七屏-->
|
||||
<div class="position_r banner overflow-f img-responsives margin-top-30 f_weight_100">
|
||||
<div class="position_r">
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_18.jpg">
|
||||
<div class="socket text_32">智能,让生活更美好</div>
|
||||
</div>
|
||||
<div class="m_Container img-responsives">
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_19.jpg" class="margin-top-10">
|
||||
<p class="text_22 text_center margin-top-20">可依靠支架,解放双手,充电娱乐两不误</p>
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_20.jpg" class="margin-top-20">
|
||||
<p class="text_22 text_center margin-top-20">QC3.0快充,关键时刻,能量瞬满</p>
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_33.jpg" class="margin-top-20">
|
||||
<p class="text_22 text_center margin-top-20">收纳盒排插,用电不凌乱,空间更整洁</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--第八屏-->
|
||||
<div class="m_Container">
|
||||
<div class="list_two margin-top-30 f_weight_100 text_center">
|
||||
<ul>
|
||||
<li class="border-top-socket">
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_21.jpg">
|
||||
<div class="position_a">
|
||||
<p class="text_22 margin-top-40">桌面多功能智能USB接线板</p>
|
||||
</div>
|
||||
<!-- <div class="buy text_22">
|
||||
<a href="https://detail.tmall.com/item.htm?id=597711319974" class="buy_socket span_margin">天猫购买</a>
|
||||
<a href="https://item.jd.com/100007841044.html" class="buy_socket">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
<li class="border-top-socket">
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_22.jpg">
|
||||
<div class="position_a">
|
||||
<p class="text_22 margin-top-40">USB充电桌面排插 (快充版)</p>
|
||||
</div>
|
||||
<!-- <div class="buy text_22">
|
||||
<a href="https://detail.tmall.com/item.htm?id=586387136242" class="buy_socket span_margin">天猫购买</a>
|
||||
<span class="subject_span">京东购买</span>
|
||||
</div> -->
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="img-responsives position_r margin-bottom-20">
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_34.jpg">
|
||||
<div class="list_one_special margin-top-70">
|
||||
<p class="text_24 text_black">收纳盒排插</p>
|
||||
<p class="text_22 text_gray margin-top-14">用电收纳一体设计,尽享有序生活</p>
|
||||
<!-- <p class="buy_button margin-top-40 text_24">
|
||||
<span class="subject_span">天猫购买</span>
|
||||
<span class="subject_span">京东购买</span>
|
||||
</p> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--第九屏-->
|
||||
<div class="text_22 bg_white f_weight_100 text_center">
|
||||
<p class="margin-top-50">3C认证新国标</p>
|
||||
<p class="margin-top-20 margin-bottom-48">750℃高温阻燃 用芯保护</p>
|
||||
<div class="m_Container bg_gray">
|
||||
<div class="socket_09 margin-top-20 margin-bottom-20">
|
||||
<div class="socket_w img-responsive"><img src="__PUBLIC__/m_web/images/socket/socket_23.jpg"></div>
|
||||
<div class="socket_w">
|
||||
<div class="content">
|
||||
<p class="text_32">一体式铜芯</p>
|
||||
<p class="text_18 margin-top-20">5000次插拔不松动导电性好</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="m_Container bg_gray margin-top-20">
|
||||
<div class="socket_09 margin-top-20 margin-bottom-20">
|
||||
<div class="socket_w img-responsive"><img src="__PUBLIC__/m_web/images/socket/socket_24.jpg"></div>
|
||||
<div class="socket_w">
|
||||
<div class="content">
|
||||
<p class="text_32">儿童防护门</p>
|
||||
<p class="text_18 margin-top-20">防孩子手指误插远离触电危险</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="m_Container bg_gray margin-top-20">
|
||||
<div class="socket_09 margin-top-20 margin-bottom-20">
|
||||
<div class="socket_w img-responsive"><img src="__PUBLIC__/m_web/images/socket/socket_25.jpg"></div>
|
||||
<div class="socket_w">
|
||||
<div class="content">
|
||||
<p class="text_32">高阻燃外壳</p>
|
||||
<p class="text_18 margin-top-20">良好pp材料750°高温阻燃</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="m_Container bg_gray margin-top-20 margin-bottom-48">
|
||||
<div class="socket_09 margin-top-20 margin-bottom-20">
|
||||
<div class="socket_w img-responsive"><img src="__PUBLIC__/m_web/images/socket/socket_26.jpg"></div>
|
||||
<div class="socket_w">
|
||||
<div class="content">
|
||||
<p class="text_32">三芯一体粗铜线</p>
|
||||
<p class="text_18 margin-top-20">电阻小、额定功率下使用不软化、不变形</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<!--第十屏-->
|
||||
<div class="responsives position_r f_weight_100 text_white">
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_27.jpg">
|
||||
<div class="socket_10">
|
||||
<p class="text_32">认证证书</p>
|
||||
<p class="text_24 margin-top-14">ORICO安选排插均已通过<br>3C强制认证,符合使用标<br>准,给家更多安稳,给您<br>更多安心</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--第十一屏-->
|
||||
<div class="m_Container">
|
||||
<p class="text_32 text_center margin-top-50 margin-bottom-30">严苛标准,力求尽美</p>
|
||||
<ul class="list_two">
|
||||
<li class="bg_white">
|
||||
<p><img src="__PUBLIC__/m_web/images/socket/socket_28.jpg"></p>
|
||||
<p class="text_center text_32 margin-top-30 margin-bottom-30">摇摆测试</p>
|
||||
</li>
|
||||
<li class="bg_white">
|
||||
<p><img src="__PUBLIC__/m_web/images/socket/socket_29.jpg"></p>
|
||||
<p class="text_center text_32 margin-top-30 margin-bottom-30">插拔测试</p>
|
||||
</li>
|
||||
<li class="bg_white">
|
||||
<p><img src="__PUBLIC__/m_web/images/socket/socket_30.jpg"></p>
|
||||
<p class="text_center text_32 margin-top-30 margin-bottom-30">盐雾测试</p>
|
||||
</li>
|
||||
<li class="bg_white">
|
||||
<p><img src="__PUBLIC__/m_web/images/socket/socket_31.jpg"></p>
|
||||
<p class="text_center text_32 margin-top-30 margin-bottom-30">抗老化测试</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!--第十二屏-->
|
||||
<div class="position_r margin-top-10">
|
||||
<img src="__PUBLIC__/m_web/images/socket/socket_32.jpg">
|
||||
<div class="socket_12">
|
||||
<p>三年质保承诺<br>售后无忧</p>
|
||||
<p class="text_24 margin-top-14">您与家人的用电安全,是<br>我们守护的头等大事</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!--底部-->
|
||||
{include file="include/bottom" /}
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
139
app/mobile/view/group/special-old.phtml
Executable file
139
app/mobile/view/group/special-old.phtml
Executable file
@@ -0,0 +1,139 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>特色产品专题_ORICO/奥睿科</title>
|
||||
<meta name="Keywords" content="特色产品,生活配件,USB智能,ORICO/奥睿科">
|
||||
<meta name="Description" content="特色产品专题_ORICO/奥睿科">
|
||||
{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: #e3e3e3;">
|
||||
<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.jpg">
|
||||
</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-responsives"><img src="__PUBLIC__/m_web/images/special/fly.png"></div>
|
||||
<p class="text_24 text_center margin-top-30 line_height_38">我们用心坚持创新和工艺,将科技融入普通生活,在创造独特,智能产品的同时,致力于为您的生活带来更简洁舒心的体验。</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--pssd-->
|
||||
<div class="banner img-responsives position_r special margin-top-10">
|
||||
<a href="https://www.orico.com.cn/mobile/Group/pssd" class="text_white">
|
||||
<img src="__PUBLIC__/m_web/images/special/pssd-wap.jpg">
|
||||
<div class="position_a text_center">
|
||||
<p class="text_32 text_blue margin-top-40 f_weight_500">存储达人教你自由选配PSSD</p>
|
||||
<p class="text_24 text_white margin-top-14 f_weight_100">跟着达人推荐,开始一次你的自由DIY创想吧!</p>
|
||||
<p class="text_white margin-top-20 f_weight_100"><span class="bg_blue text_24">进入专题</span></p>
|
||||
</div>
|
||||
</a>
|
||||
<div class="special_number">
|
||||
<div class="num_text">01</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--透明系列-->
|
||||
<div class="banner img-responsives position_r special margin-top-10">
|
||||
<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">坦露真芯 与你同行</p>
|
||||
<p class="text_24 text_white margin-top-14 f_weight_100">透明家族系列 高颜值 又真芯</p>
|
||||
<p class="text_white margin-top-20 f_weight_100"><span class="bg_blue text_24">进入专题</span></p>
|
||||
</div>
|
||||
</a>
|
||||
<div class="special_number">
|
||||
<div class="num_text">02</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--SSD存储-->
|
||||
<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">极速读写 主宰战场</p>
|
||||
<p class="text_24 text_white margin-top-14 f_weight_100">迅龙系列固态硬盘</p>
|
||||
<p class="text_white margin-top-20 f_weight_100"><span class="bg_blue text_24">进入专题</span></p>
|
||||
</div>
|
||||
</a>
|
||||
<div class="special_number">
|
||||
<div class="num_text">03</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--95系列-->
|
||||
<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">海量存储 柜在心安</p>
|
||||
<p class="text_24 text_white margin-top-14 f_weight_100">95系列硬盘柜</p>
|
||||
<p class="text_white margin-top-20 f_weight_100"><span class="bg_blue text_24">进入专题</span></p>
|
||||
</div>
|
||||
</a>
|
||||
<div class="special_number">
|
||||
<div class="num_text">04</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--雷电3-->
|
||||
<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">存储传输 唯快不破</p>
|
||||
<p class="text_24 text_white margin-top-14 f_weight_100">雷电3系列 高速存储+高速扩展</p>
|
||||
<p class="text_white margin-top-20 f_weight_100"><span class="bg_blue text_24">进入专题</span></p>
|
||||
</div>
|
||||
</a>
|
||||
<div class="special_number">
|
||||
<div class="num_text">05</div>
|
||||
</div>
|
||||
</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">有起伏才叫生活</p>
|
||||
<p class="text_24 text_white margin-top-14 f_weight_100">个性条纹 天生不凡</p>
|
||||
<p class="text_white margin-top-20 f_weight_100"><span class="bg_blue text_24">进入专题</span></p>
|
||||
</div>
|
||||
</a>
|
||||
<div class="special_number">
|
||||
<div class="num_text">06</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--排插-->
|
||||
<div class="banner img-responsives position_r special">
|
||||
<a href="__ORICOROOT__/Group/socket.html" class="text_white">
|
||||
<img src="__PUBLIC__/m_web/images/special/socket.jpg">
|
||||
<div class="position_a text_center">
|
||||
<p class="text_32 text_blue margin-top-40 f_weight_500">冲破常规 创享生活</p>
|
||||
<p class="text_24 text_black margin-top-14 f_weight_100">新国标 安选排插系列 </p>
|
||||
<p class="text_white margin-top-20 f_weight_100"><span class="bg_blue text_24">进入专题</span></p>
|
||||
</div>
|
||||
</a>
|
||||
<div class="special_number">
|
||||
<div class="num_text">07</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--底部-->
|
||||
{include file="include/bottom" /}
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
140
app/mobile/view/group/special.phtml
Executable file
140
app/mobile/view/group/special.phtml
Executable file
@@ -0,0 +1,140 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>特色产品专题_ORICO/奥睿科</title>
|
||||
<meta name="Keywords" content="特色产品,生活配件,USB智能,ORICO/奥睿科">
|
||||
<meta name="Description" content="特色产品专题_ORICO/奥睿科">
|
||||
{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: #e3e3e3;">
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top_back1" /}
|
||||
|
||||
<!--banner-->
|
||||
<div class="margin-top-60"></div>
|
||||
<div class="banner img-responsives margin-top-90 position_r">
|
||||
<img src="__PUBLIC__/m_web/images/special/banner.jpg">
|
||||
</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-responsives"><img src="__PUBLIC__/m_web/images/special/fly.png"></div>
|
||||
<p class="text_24 text_center margin-top-30 line_height_38">我们用心坚持创新和工艺,将科技融入普通生活,在创造独特,智能产品的同时,致力于为您的生活带来更简洁舒心的体验。</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--pssd-->
|
||||
<div class="banner img-responsives position_r special margin-top-10">
|
||||
<a href="https://www.orico.com.cn/mobile/Group/pssd" class="text_white">
|
||||
<img src="__PUBLIC__/m_web/images/special/pssd-wap.jpg">
|
||||
<div class="position_a text_center">
|
||||
<p class="text_32 text_blue margin-top-40 f_weight_500">存储达人教你自由选配PSSD</p>
|
||||
<p class="text_24 text_white margin-top-14 f_weight_100">跟着达人推荐,开始一次你的自由DIY创想吧!</p>
|
||||
<p class="text_white margin-top-20 f_weight_100"><span class="bg_blue text_24">进入专题</span></p>
|
||||
</div>
|
||||
</a>
|
||||
<div class="special_number">
|
||||
<div class="num_text">01</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--透明系列-->
|
||||
<div class="banner img-responsives position_r special margin-top-10">
|
||||
<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">坦露真芯 与你同行</p>
|
||||
<p class="text_24 text_white margin-top-14 f_weight_100">透明家族系列 高颜值 又真芯</p>
|
||||
<p class="text_white margin-top-20 f_weight_100"><span class="bg_blue text_24">进入专题</span></p>
|
||||
</div>
|
||||
</a>
|
||||
<div class="special_number">
|
||||
<div class="num_text">02</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--SSD存储-->
|
||||
<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">极速读写 主宰战场</p>
|
||||
<p class="text_24 text_white margin-top-14 f_weight_100">迅龙系列固态硬盘</p>
|
||||
<p class="text_white margin-top-20 f_weight_100"><span class="bg_blue text_24">进入专题</span></p>
|
||||
</div>
|
||||
</a>
|
||||
<div class="special_number">
|
||||
<div class="num_text">03</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--95系列-->
|
||||
<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">海量存储 柜在心安</p>
|
||||
<p class="text_24 text_white margin-top-14 f_weight_100">95系列硬盘柜</p>
|
||||
<p class="text_white margin-top-20 f_weight_100"><span class="bg_blue text_24">进入专题</span></p>
|
||||
</div>
|
||||
</a>
|
||||
<div class="special_number">
|
||||
<div class="num_text">04</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--雷电3-->
|
||||
<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">存储传输 唯快不破</p>
|
||||
<p class="text_24 text_white margin-top-14 f_weight_100">雷电3系列 高速存储+高速扩展</p>
|
||||
<p class="text_white margin-top-20 f_weight_100"><span class="bg_blue text_24">进入专题</span></p>
|
||||
</div>
|
||||
</a>
|
||||
<div class="special_number">
|
||||
<div class="num_text">05</div>
|
||||
</div>
|
||||
</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">有起伏才叫生活</p>
|
||||
<p class="text_24 text_white margin-top-14 f_weight_100">个性条纹 天生不凡</p>
|
||||
<p class="text_white margin-top-20 f_weight_100"><span class="bg_blue text_24">进入专题</span></p>
|
||||
</div>
|
||||
</a>
|
||||
<div class="special_number">
|
||||
<div class="num_text">06</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--排插-->
|
||||
<div class="banner img-responsives position_r special">
|
||||
<a href="__ORICOROOT__/Group/socket.html" class="text_white">
|
||||
<img src="__PUBLIC__/m_web/images/special/socket.jpg">
|
||||
<div class="position_a text_center">
|
||||
<p class="text_32 text_blue margin-top-40 f_weight_500">冲破常规 创享生活</p>
|
||||
<p class="text_24 text_black margin-top-14 f_weight_100">新国标 安选排插系列 </p>
|
||||
<p class="text_white margin-top-20 f_weight_100"><span class="bg_blue text_24">进入专题</span></p>
|
||||
</div>
|
||||
</a>
|
||||
<div class="special_number">
|
||||
<div class="num_text">07</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--底部-->
|
||||
{include file="include/bottom1" /}
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
362
app/mobile/view/group/ssd.phtml
Executable file
362
app/mobile/view/group/ssd.phtml
Executable file
@@ -0,0 +1,362 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>SSD存储_ORICO/奥睿科官网</title>
|
||||
<meta name="Keywords" content="SSD存储">
|
||||
<meta name="Description" content="SSD存储">
|
||||
{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 margin-top-90">
|
||||
<img src="__PUBLIC__/m_web/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 margin-top-20 text_center text_gray">新一代 3D NAND 闪存</p>
|
||||
<p class="ssd_text text_38 margin-top-60 text_center text_black">突破存储密度,实现更高性能</p>
|
||||
<p class="ssd-t-w text_18 margin-top-130 text_center text_gray line_height_30">ORICO迅龙系列SSD固态硬盘家族均采用3D NAND 闪存颗粒,存储密度高于传统2D闪存,达到业界高水准存储密度,传输性能能够得到大幅增强,轻松处理大量存储数据。</p>
|
||||
</div>
|
||||
<div class="ssd_Container margin-top-280">
|
||||
<video controls height="100%">
|
||||
<source src="__PUBLIC__/web/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">迅龙-甲系列<br>SN100/SV100</p>
|
||||
<p class="margin-top-14 text_38">户外存储,<br>双重铠甲</p>
|
||||
<p class="text_24 margin-top-10 line_height_38">—外置SSD移动固态硬盘</p>
|
||||
<!-- <a href="__ORICOROOT__/product/detail/id/5454" target="_blank"><p class="text_24 margin-top-14 ssd_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">迅龙-翼系列</br>FV300/GV100</p>
|
||||
<p class="margin-top-14 text_38">轻翼迅捷,<br>急速传输</p>
|
||||
<p class="text_24 margin-top-10 line_height_38">—外置SSD移动固态硬盘</p>
|
||||
<!-- <a href="__ORICOROOT__/product/detail/id/5490"><p class="text_24 margin-top-14 ssd_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">迅龙-盾系列<br>BH100/BM200/BV300</p>
|
||||
<p class="margin-top-14 text_38">工艺护盾,<br>高速散热</p>
|
||||
<p class="text_24 margin-top-10 line_height_38">—外置SSD移动固态硬盘</p>
|
||||
<!-- <a href="__ORICOROOT__/product/detail/id/5500" target="_blank"><p class="text_24 margin-top-14 ssd_more">了解更多 ></p></a> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--产品-->
|
||||
<div class="m_Container text_center">
|
||||
<p class="margin-top-50 text_32">选择您的外置SSD硬盘硬盘</p>
|
||||
<p class="text_28 text_l_gray margin-top-10">查看所有固态硬盘></p>
|
||||
<ul class="list_two margin-top-40 img-responsives ">
|
||||
<li>
|
||||
<a href="/mobile/product/detail/id/5454"><img src="__PUBLIC__/m_web/images/ssd/SSD_SN100.jpg"></a>
|
||||
<div class="ssd_text">
|
||||
<p class="text_24">迅龙-甲系列</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="https://detail.tmall.com/item.htm?id=602173667163" class="buy_margin buy_gray" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/55769131003.html" target="_blank" class="buy_gray">京东购买</a>
|
||||
</div> -->
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a href="/mobile/product/detail/id/5453"><img src="__PUBLIC__/m_web/images/ssd/SSD_SV100.jpg"></a>
|
||||
<div class="ssd_text">
|
||||
<p class="text_24">迅龙-甲系列</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="https://detail.tmall.com/item.htm?id=600632425950" class="buy_margin buy_gray" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/55740967025.html" target="_blank" class="buy_gray">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
<ul class="list_one img-responsives">
|
||||
<li>
|
||||
<a href="/mobile/product/detail/id/5490"><img src="__PUBLIC__/m_web/images/ssd/SSD_NVME.jpg"></a>
|
||||
<div class="ssd_text text_left ssd-w-ca">
|
||||
<p class="text_24">迅龙-甲系列</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="https://detail.tmall.com/item.htm?id=600832746802" class="buy_margin buy_gray" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/56586687685.html" target="_blank" class="buy_gray">京东购买</a>
|
||||
</div>-->
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
<ul class="list_two img-responsives margin-top-20">
|
||||
<li>
|
||||
<a href="/mobile/product/detail/id/5500"><img src="__PUBLIC__/m_web/images/ssd/SSD_BH100.jpg"></a>
|
||||
<div class="ssd_text">
|
||||
<p class="text_24">迅龙-盾系列</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="https://detail.tmall.com/item.htm?id=600632549398&skuId=4218251065437" class="buy_margin buy_gray" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/53658735781.html" target="_blank" class="buy_gray">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
<li>
|
||||
<a href="/mobile/product/detail/id/5503"><img src="__PUBLIC__/m_web/images/ssd/SSD_BM200.jpg"></a>
|
||||
<div class="ssd_text">
|
||||
<p class="text_24">迅龙-盾系列</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="https://detail.tmall.com/item.htm?id=600632549398&skuId=4218251065431" class="buy_margin buy_gray" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/56600613052.html" target="_blank" class="buy_gray">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
<ul class="list_two img-responsives margin-top-10">
|
||||
<li>
|
||||
<a href="/mobile/product/detail/id/5504"><img src="__PUBLIC__/m_web/images/ssd/SSD_BV300.jpg"></a>
|
||||
<div class="ssd_text">
|
||||
<p class="text_24">迅龙-盾系列</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="https://detail.tmall.com/item.htm?id=600632549398" class="buy_margin buy_gray" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/56600613060.html" target="_blank" class="buy_gray">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
<li>
|
||||
<a href="/mobile/product/detail/id/5505"><img src="__PUBLIC__/m_web/images/ssd/SSD_GV100.jpg"></a>
|
||||
<div class="ssd_text">
|
||||
<p class="text_24">迅龙-翼系列</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="https://detail.tmall.com/item.htm?id=600633261262" class="buy_margin buy_gray" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/56649045018.html" target="_blank" class="buy_gray">京东购买</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="ssd_Container text_center text_white f_weight_100">
|
||||
<p class="margin-top-50 text_38">ORICO十年存储研发经验</p>
|
||||
<p class="margin-top-14 text_28">提供业界专业的SSD存储解决方案 </p>
|
||||
<p class="text_24 margin-top-14 line_height_38">快速的程序响应能力、迅捷的速度数据处理能力以及质量可靠的存储颗粒,让ORICO SSD在个人消费级存储领域拥有不俗的表现。</p>
|
||||
</div>
|
||||
<div class="ssd_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="ssd_Container text_left text_white f_weight_100">
|
||||
<div class="ssd_left">
|
||||
<p class="margin-top-120 text_16">迅龙战甲H100</p>
|
||||
<p class="margin-top-14 text_38">高效散热<br>高速传输</p>
|
||||
<p class="text_24 margin-top-10 line_height_38">SATA3.0协议<br>主流PC用户之选</p>
|
||||
<!-- <a href="__ORICOROOT__/mobile/product/detail/id/1056"><p class="text_24 margin-top-14 ssd_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="ssd_Container text_left text_white f_weight_100">
|
||||
<div class="ssd_right">
|
||||
<p class="margin-top-120 text_16">迅龙M200</p>
|
||||
<p class="margin-top-14 text_38">低感延迟<br>瞬息响应</p>
|
||||
<p class="text_24 margin-top-10 line_height_38">mSATA接口,为笔记本而生</p>
|
||||
<!-- <a href="__ORICOROOT__/mobile/product/detail/id/1057"><p class="text_24 margin-top-14 ssd_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="ssd_Container text_left text_white f_weight_100">
|
||||
<div class="ssd_left">
|
||||
<p class="margin-top-120 text_16">迅龙N300</p>
|
||||
<p class="margin-top-14 text_38">专业主控<br>激发潜能</p>
|
||||
<p class="text_24 margin-top-10 line_height_38">精进LDPC算法,缩短加载时间</p>
|
||||
<!-- <a href="__ORICOROOT__/mobile/product/detail/id/1058"><p class="text_24 margin-top-14 ssd_more">了解更多 ></p></a> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--V500-->
|
||||
<div class="position_r img-responsives">
|
||||
<img src="__PUBLIC__/m_web/images/ssd/ssd_06.jpg">
|
||||
<div class="position_a">
|
||||
<div class="ssd_Container text_left text_white f_weight_100">
|
||||
<div class="ssd_right_06">
|
||||
<p class="margin-top-120 text_16">迅龙V500</p>
|
||||
<p class="margin-top-14 text_38">电竞世界<br>唯快不破</p>
|
||||
<p class="text_24 margin-top-10 line_height_38">PCI-E×4通道,<br>比传统SSD快近4倍</p>
|
||||
<!-- <a href="__ORICOROOT__/product/detail/id/1059"><p class="text_24 margin-top-14 ssd_more">了解更多 ></p></a> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--产品-->
|
||||
<div class="m_Container text_center">
|
||||
<p class="margin-top-50 text_32">选择您的固态硬盘</p>
|
||||
<ul class="list_two margin-top-40 img-responsives">
|
||||
<li>
|
||||
<a href="/mobile/product/detail/id/1056"><img src="__PUBLIC__/m_web/images/ssd/p_01.jpg"></a>
|
||||
<div class="ssd_text">
|
||||
<p class="text_24">迅龙战甲系列</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="https://detail.tmall.com/item.htm?id=599706025511" class="buy_margin buy_gray" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/53658735781.html" target="_blank" class="buy_gray">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
<li>
|
||||
<a href="/mobile/product/detail/id/1057"><img src="__PUBLIC__/m_web/images/ssd/p_02.jpg"></a>
|
||||
<div class="ssd_text">
|
||||
<p class="text_24">迅龙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="https://detail.tmall.com/item.htm?id=599919026377" class="buy_margin buy_gray" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/53700093792.html" target="_blank" class="buy_gray">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
<li>
|
||||
<a href="/mobile/product/detail/id/1058"><img src="__PUBLIC__/m_web/images/ssd/p_03.jpg"></a>
|
||||
<div class="ssd_text">
|
||||
<p class="text_24">迅龙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="https://detail.tmall.com/item.htm?id=599910218585" class="buy_margin buy_gray" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/53675070654.html" target="_blank" class="buy_gray">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
<li>
|
||||
<a href="/mobile/product/detail/id/1059"><img src="__PUBLIC__/m_web/images/ssd/p_04.jpg"></a>
|
||||
<div class="ssd_text">
|
||||
<p class="text_24">迅龙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="https://detail.tmall.com/item.htm?id=600103211229" class="buy_margin buy_gray" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/53672700479.html" target="_blank" class="buy_gray">京东购买</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>
|
||||
234
app/mobile/view/group/stripe.phtml
Executable file
234
app/mobile/view/group/stripe.phtml
Executable file
@@ -0,0 +1,234 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>条纹系列_ORICO/奥睿科官网</title>
|
||||
<meta name="Keywords" content="条纹系列">
|
||||
<meta name="Description" content="条纹系列">
|
||||
{include file="include/head" /}
|
||||
<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_web/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">手机后盾 出行无忧</p>
|
||||
<p class="text_24 margin-top-10 line_height_38">条纹系列移动电源</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">萤火虫系列快充移动电源</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="https://detail.tmall.com/item.htm?id=564324743677&skuId=3990591423223" class="buy_margin buy_gray" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/54700571454.html" target="_blank" class="buy_gray">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
<li>
|
||||
<img src="__PUBLIC__/m_web/images/stripe/stripe_three_02.jpg">
|
||||
<div class="stripe_text">
|
||||
<p class="text_22">萤火虫系列快充移动电源</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="https://detail.tmall.com/item.htm?id=564324743677&skuId=3990591423227" class="buy_margin buy_gray" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/54700571456.html" target="_blank" class="buy_gray">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
<li>
|
||||
<img src="__PUBLIC__/m_web/images/stripe/stripe_three_03.jpg">
|
||||
<div class="stripe_text">
|
||||
<p class="text_22">双口USB-A输出移动电源</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="https://detail.tmall.com/item.htm?id=584178569065&skuId=4151509660043" class="buy_margin buy_gray" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/55020888323.html" target="_blank" class="buy_gray">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
<li>
|
||||
<img src="__PUBLIC__/m_web/images/stripe/stripe_three_04.jpg">
|
||||
<div class="stripe_text">
|
||||
<p class="text_22">迷你口红移动电源</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="https://detail.tmall.com/item.htm?id=599298613293&skuId=4184266357709" class="buy_margin buy_gray" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/53296315670.html" target="_blank" class="buy_gray">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
<li>
|
||||
<img src="__PUBLIC__/m_web/images/stripe/stripe_three_05.jpg">
|
||||
<div class="stripe_text">
|
||||
<p class="text_22">大容量超薄移动电源</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="https://detail.tmall.com/item.htm?id=584178569065&skuId=4152041778891" class="buy_margin buy_gray" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/44198586686.html" target="_blank" class="buy_gray">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
<li>
|
||||
<img src="__PUBLIC__/m_web/images/stripe/stripe_three_06.jpg">
|
||||
<div class="stripe_text">
|
||||
<p class="text_22">旅行箱移动电源</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="https://detail.tmall.com/item.htm?id=586813899133" class="buy_margin buy_gray" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/41476765341.html" target="_blank" class="buy_gray">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
<li>
|
||||
<img src="__PUBLIC__/m_web/images/stripe/stripe_three_07.jpg">
|
||||
<div class="stripe_text">
|
||||
<p class="text_22">10000mAH旅行箱移动电源</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="https://detail.tmall.com/item.htm?id=586531593832" class="buy_margin buy_gray" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/41480364047.html" target="_blank" class="buy_gray">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
<li>
|
||||
<img src="__PUBLIC__/m_web/images/stripe/stripe_three_08.jpg">
|
||||
<div class="stripe_text">
|
||||
<p class="text_22">20000mAH旅行箱移动电源</p>
|
||||
<p class="text_18 line_height_30 text_gray">ORICO FIREFLY-TR20</p>
|
||||
</div>
|
||||
<!-- <div class="buy des text_center buy_button">
|
||||
<a href="https://detail.tmall.com/item.htm?id=586531593832&skuId=4154704183542" class="buy_margin buy_gray" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/41480364048.html" target="_blank" class="buy_gray">京东购买</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">条纹系列硬盘盒</p>
|
||||
<p class="text_32 margin-top-10">起承转盒,接盘负责</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--第五屏-->
|
||||
<div class="m_Container text_center">
|
||||
<ul class="list_two margin-top-40 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转Type-c硬盘盒</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="https://detail.tmall.com/item.htm?id=591421618477&skuId=4153216585279" class="buy_margin buy_gray" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/100004877630.html" target="_blank" class="buy_gray">京东购买</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转Type-c硬盘盒</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="https://detail.tmall.com/item.htm?id=591421618477&skuId=4153216585277" class="buy_margin buy_gray" target="_blank">天猫购买</a>
|
||||
<a href="https://item.jd.com/100004877702.html" target="_blank" class="buy_gray">京东购买</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">条纹充电系列</p>
|
||||
<p class="text_32 margin-top-10">特立独行 首当其充</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--第七屏-->
|
||||
<div class="m_Container text_center">
|
||||
<ul class="list_two margin-top-40 img-responsives">
|
||||
<li>
|
||||
<img src="__PUBLIC__/m_web/images/stripe/stripe_seven_01.jpg">
|
||||
<div class="stripe_text">
|
||||
<p class="text_22">2.1A Type-A转Lightning数据线</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="https://detail.tmall.com/item.htm?id=583141826747" class="buy_margin buy_gray">天猫购买</a>
|
||||
<a href="https://item.jd.com/41020348750.html" class="buy_gray">京东购买</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 Type-A转Lightning数据线</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="https://detail.tmall.com/item.htm?id=583141826747" class="buy_margin buy_gray">天猫购买</a>
|
||||
<a href="https://item.jd.com/41020348750.html" class="buy_gray">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
<li>
|
||||
<img src="__PUBLIC__/m_web/images/stripe/stripe_seven_03.jpg">
|
||||
<div class="stripe_text">
|
||||
<p class="text_22">2口2.4A智能充电器</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="https://detail.tmall.com/item.htm?id=591421618477&skuId=4153216585277" class="buy_margin buy_gray" target="_blank">天猫购买</a>
|
||||
<a href="https://detail.tmall.com/item.htm?id=576817465138" target="_blank" class="buy_gray">京东购买</a>
|
||||
</div> -->
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!--底部-->
|
||||
{include file="include/bottom" /}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</body></html>
|
||||
88
app/mobile/view/group/swt.phtml
Executable file
88
app/mobile/view/group/swt.phtml
Executable file
@@ -0,0 +1,88 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/js/video/jsmodern.min.css">
|
||||
<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
|
||||
<script type="text/javascript" src="__PUBLIC__/m_web/js/video/jsmodern.min.js"></script>
|
||||
</head>
|
||||
<style>
|
||||
#video {
|
||||
width: 970px;
|
||||
height: 594px;
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#video video {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: fill;
|
||||
}
|
||||
|
||||
.VideoBtn {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
display: block;
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
margin-left: -35px;
|
||||
margin-top: -35px;
|
||||
cursor: pointer;
|
||||
z-index: 10;
|
||||
}
|
||||
</style>
|
||||
-
|
||||
</head>
|
||||
<body class="bodyBg">
|
||||
<div id="video">
|
||||
<video src="http://old.oricogroup.com/data/video/orico_UCI2C.mp4" id="videoShow"></video>
|
||||
<span class="VideoBtn"><img src="__PUBLIC__/m_web/js/video/bo1.png"></span>
|
||||
</div>
|
||||
<script>
|
||||
$(function () {
|
||||
//视频
|
||||
jsModern.video("#video");
|
||||
//播放视频
|
||||
$(".VideoBtn").click(function () {
|
||||
var video = document.getElementById("videoShow");
|
||||
video.play();
|
||||
$('.VideoBtn').hide();
|
||||
})
|
||||
//监听视频的播放状态
|
||||
var video = document.getElementById("videoShow");
|
||||
video.oncanplay = function () {
|
||||
$(".VideoBtn").show();
|
||||
//$("#video").attr("poster","");
|
||||
}
|
||||
//视频播放事件
|
||||
video.onplay = function () {
|
||||
$("#videoShow").attr("poster", "");
|
||||
$(".VideoBtn").hide();
|
||||
};
|
||||
video.onplaying = function () {
|
||||
$(".VideoBtn").hide();
|
||||
};
|
||||
|
||||
//视频暂停事件
|
||||
video.onpause = function () {
|
||||
$(".VideoBtn").show();
|
||||
};
|
||||
//点击视频周围暂停播放图片出现
|
||||
video.onclick = function () {
|
||||
if (video.paused) {
|
||||
$(".VideoBtn").hide();
|
||||
video.play();
|
||||
} else {
|
||||
$(".VideoBtn").show();
|
||||
video.pause();
|
||||
}
|
||||
};
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
148
app/mobile/view/group/thunderbolt_3.phtml
Executable file
148
app/mobile/view/group/thunderbolt_3.phtml
Executable file
@@ -0,0 +1,148 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>雷电3系列 高速存储+高速扩展_ORICO/奥睿科官网</title>
|
||||
<meta name="Keywords" content="雷电3系列, 高速存储, 高速扩展">
|
||||
<meta name="Description" content="雷电3系列 高速存储+高速扩展">
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_web/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疾速传输 为快而生</p>
|
||||
<p class="text_24 margin-top-14">ORICO雷电3系列</p>
|
||||
<p class="text_24 margin-top-10">高速存储+高速扩展</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">雷电3官方授权认证</p>
|
||||
<p class="text_28 margin-top-20">真速度,更专业</p>
|
||||
<p class="text_22 margin-top-20 line-height-40 margin-bottom-35">ORICO雷电3产品引进了Intel高速芯片技术,理论传输数值高达40Gbps,并在存储及扩展等多个领域与Intel达成了合作。ORICO秉承着“小改变.大不同”的品牌理念,不断展现未来科技的新风貌,力求让ORICO雷电3系列产品在雷电3产品领域更具可靠。</p>
|
||||
|
||||
<p class="img-responsives">
|
||||
<video class="margin-top-20" controls poster="__PUBLIC__/m_web/images/thunderbolt_3/video.jpg">
|
||||
<source src="__PUBLIC__/web/images/thunderbolt_3/video.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">
|
||||
<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">高速存储,风驰电掣</p>
|
||||
<p class="text_24 margin-top-20">—适用于雷电3接口的笔记本/台式机</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--第三屏-->
|
||||
<div class="m_Container">
|
||||
<div class="list_two margin-top-10">
|
||||
<ul>
|
||||
<li class="img-responsives slider_blue">
|
||||
<a href="/mobile/product/detail/id/5134"><img src="__PUBLIC__/m_web/images/thunderbolt_3/thunderbolt_3_four_01.jpg"></a>
|
||||
<div class="text_black">
|
||||
<p class="text_22 text_center margin-top-40 position_a">APM2T3-G40</p>
|
||||
<!-- <p class="computer text_24 text_center thunderbolt_3_three position_a">
|
||||
<a href="https://detail.tmall.com/item.htm?id=600631657031" style="margin-right: 0.8rem">天猫购买</a>
|
||||
<span class="subject_span">京东购买</span>
|
||||
</p> -->
|
||||
</div>
|
||||
</li>
|
||||
<li class="img-responsives slider_blue">
|
||||
<a href="/mobile/product/detail/id/5460"><img src="__PUBLIC__/m_web/images/thunderbolt_3/thunderbolt_3_four_02.jpg"></a>
|
||||
<div class="text_black">
|
||||
<p class="text_22 text_center margin-top-40 position_a">TFM2T3-G40</p>
|
||||
<!-- <p class="computer text_24 text_center thunderbolt_3_three position_a">
|
||||
<a href="https://detail.tmall.com/item.htm?id=601021671005">天猫购买</a>
|
||||
<a href="https://item.jd.com/100007864776.html">京东购买</a>
|
||||
</p> -->
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="slider_blue position_r img-responsives margin-top-10 margin-bottom-10">
|
||||
<a href="/mobile/product/detail/id/5446"><img src="__PUBLIC__/m_web/images/thunderbolt_3/thunderbolt_3_three_03.jpg"></a>
|
||||
<div class="thunderbolt_3_one_list">
|
||||
<p class="text_24 text_black">雷电3 铝合金多功能扩展坞</p>
|
||||
<p class="text_22 text_gray margin-top-14">一拖八+DC24V供电口</p>
|
||||
<!-- <p class="computer margin-top-40 text_24">
|
||||
<a href="https://detail.tmall.com/item.htm?id=601021099953">天猫购买</a>
|
||||
<a href="https://item.jd.com/100007867638.html">京东购买</a>
|
||||
</p> -->
|
||||
</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">急速扩展,快如闪电</p>
|
||||
<p class="text_24 margin-top-20">雷电3 一拖八多功能扩展坞</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--第五屏-->
|
||||
<div class="m_Container margin-top-10 margin-bottom-10 position_r img-responsives">
|
||||
<div class="slider_blue">
|
||||
<a href="/mobile/product/detail/id/5478"><img src="__PUBLIC__/m_web/images/thunderbolt_3/thunderbolt_3_five.jpg"></a>
|
||||
<div class="position_a">
|
||||
<div class="thunderbolt_3_one_list">
|
||||
<p class="text_24 text_black">雷电3 铝合金多功能扩展坞</p>
|
||||
<p class="text_22 text_gray margin-top-14">一拖八+DC24V供电口</p>
|
||||
<!-- <p class="computer margin-top-40 text_24">
|
||||
<a href="https://detail.tmall.com/item.htm?id=601622245886&skuId=4217456909464" style="margin-right: 0.8rem">天猫购买</a>
|
||||
<a href="https://item.jd.com/100008350066.html">京东购买</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">科技巨变,未来可期</p>
|
||||
<p class="text_22 margin-top-40">电3作为未来科技的一大热点,ORICO敏锐感知,时刻紧跟时代潮流,力求打造更加全面的雷电3系列产品。从硬盘盒到扩展坞,正是ORICO向前迈出的一大步,在存储、扩展方面,ORICO着重布局了如雷电3硬盘盒、扩展坞、硬盘柜等产品,将在未来陆续上市。</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--第七屏-->
|
||||
<div class="text_black">
|
||||
<p class="margin-top-50 margin-bottom-48 text_center f_weight_100">
|
||||
更多雷电3系列产品,持续更新...</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>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user