diff --git a/application/admin/controller/Pluginsadmin.php b/application/admin/controller/Pluginsadmin.php index 7bf0e575f..5b5f34eab 100755 --- a/application/admin/controller/Pluginsadmin.php +++ b/application/admin/controller/Pluginsadmin.php @@ -90,6 +90,8 @@ class Pluginsadmin extends Common $data = PluginsAdminService::PluginsList($data_params); $this->assign('data_list', $data['data']); + $this->assign('store_url', config('shopxo.store_url').'?url='.urlencode(__MY_URL__)); + return $this->fetch(); } else { return $this->fetch('upload'); diff --git a/application/admin/view/default/pluginsadmin/index.html b/application/admin/view/default/pluginsadmin/index.html index d9967a26f..3c08ac820 100755 --- a/application/admin/view/default/pluginsadmin/index.html +++ b/application/admin/view/default/pluginsadmin/index.html @@ -74,7 +74,10 @@ {{else /}} -
还没有相关应用
+
+ 还没有相关应用 + 应用商店 +
{{/if}}
diff --git a/application/plugins/.gitignore b/application/plugins/.gitignore old mode 100644 new mode 100755 index 96633daf1..4e9c10e3d --- a/application/plugins/.gitignore +++ b/application/plugins/.gitignore @@ -1,3 +1,4 @@ * !.gitignore +!index.html !view \ No newline at end of file diff --git a/application/plugins/answers/Hook.php b/application/plugins/answers/Hook.php deleted file mode 100755 index 0360e4607..000000000 --- a/application/plugins/answers/Hook.php +++ /dev/null @@ -1,59 +0,0 @@ - 0, - 'pid' => 0, - 'name' => $ret['data']['application_name'], - 'url' => PluginsHomeUrl('answers', 'index', 'index'), - 'data_type' => 'custom', - 'is_show' => 1, - 'is_new_window_open' => 0, - 'items' => [], - ]; - array_unshift($params['header'], $nav); - } - } - } - } -} -?> \ No newline at end of file diff --git a/application/plugins/answers/admin/Admin.php b/application/plugins/answers/admin/Admin.php deleted file mode 100755 index ea90aa74d..000000000 --- a/application/plugins/answers/admin/Admin.php +++ /dev/null @@ -1,291 +0,0 @@ -assign('data', isset($base['data']) ? $base['data'] : []); - - // 幻灯片 - $data_params = [ - 'where' => ['is_enable'=>1], - ]; - $slider = Service::SlideList($data_params); - $this->assign('slider', isset($slider['data']) ? $slider['data'] : []); - - // 商品数据 - $goods = Service::GoodsList(); - $this->assign('goods_list', $goods['data']['goods']); - - return $this->fetch('../../../plugins/view/answers/admin/admin/index'); - } - - /** - * 基础信息编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function baseinfo($params = []) - { - $ret = PluginsService::PluginsData('answers', ['images', 'images_bottom']); - if($ret['code'] == 0) - { - // 是否 - $is_whether_list = [ - 0 => array('id' => 0, 'name' => '否', 'checked' => true), - 1 => array('id' => 1, 'name' => '是'), - ]; - - $this->assign('is_whether_list', $is_whether_list); - $this->assign('data', $ret['data']); - - // 获取推荐问答 - if(!empty($ret['data']['category_ids'])) - { - $answers = Service::AnswerList(['n'=>100, 'field'=>'id,content as title', 'category_ids'=> $ret['data']['category_ids']]); - $this->assign('answers_rc_list', $answers['data']); - } else { - $this->assign('answers_rc_list', []); - } - - return $this->fetch('../../../plugins/view/answers/admin/admin/baseinfo'); - } else { - return $ret['msg']; - } - } - - /** - * 基础数据保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function basesave($params = []) - { - return PluginsService::PluginsDataSave(['plugins'=>'answers', 'data'=>$params], ['images', 'images_bottom']); - } - - /** - * 幻灯片页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function slider($params = []) - { - $ret = Service::SlideList(); - if($ret['code'] == 0) - { - $this->assign('data_list', $ret['data']); - return $this->fetch('../../../plugins/view/answers/admin/admin/slider'); - } else { - return $ret['msg']; - } - } - - /** - * 幻灯片编辑 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function sliderinfo($params = []) - { - // 数据 - $data = []; - if(!empty($params['id'])) - { - $data_params = array( - 'where' => ['id'=>intval($params['id'])], - ); - $ret = Service::SlideList($data_params); - $data = empty($ret['data'][0]) ? [] : $ret['data'][0]; - } - $this->assign('data', $data); - - return $this->fetch('../../../plugins/view/answers/admin/admin/sliderinfo'); - } - - /** - * 幻灯片保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function slidersave($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 开始处理 - return Service::SlideSave($params); - } - - /** - * 幻灯片删除 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-15T11:03:30+0800 - * @param [array] $params [输入参数] - */ - public function sliderdelete($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 开始处理 - return Service::SlideDelete($params); - } - - /** - * 幻灯片状态更新 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2017-01-12T22:23:06+0800 - * @param [array] $params [输入参数] - */ - public function sliderstatusupdate($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 开始处理 - return Service::SlideStatusUpdate($params); - } - - - /** - * 推荐商品编辑编辑 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function goodsinfo($params = []) - { - // 商品数据 - $goods = Service::GoodsList(); - $this->assign('goods', $goods['data']); - - // 商品分类 - $this->assign('goods_category_list', GoodsService::GoodsCategoryAll()); - - return $this->fetch('../../../plugins/view/answers/admin/admin/goodsinfo'); - } - - /** - * 商品搜索 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function goodssearch($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 搜索数据 - return Service::GoodsSearchList($params); - } - - /** - * 商品保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function goodssave($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 搜索数据 - return Service::GoodsSave($params); - } - - /** - * 问答搜索 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function answerssearch($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 问答内容 - return Service::AnswerList(['n'=>100, 'field'=>'id,content as title']); - } -} -?> \ No newline at end of file diff --git a/application/plugins/answers/config.json b/application/plugins/answers/config.json deleted file mode 100755 index e0b379042..000000000 --- a/application/plugins/answers/config.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "base":{ - "plugins":"answers", - "name":"问答增强版", - "logo":"\/static\/upload\/images\/plugins_answers\/2019\/03\/06\/1551853529634743.jpg", - "author":"Devil", - "author_url":"https:\/\/shopxo.net\/", - "version":"1.0.0", - "desc":"问答系统增强、独立首页、详情、搜索、可配置推荐问答及商品", - "apply_terminal":[ - "pc", - "h5" - ], - "apply_version":[ - "1.5.0" - ], - "is_home":true - }, - "hook":{ - "plugins_service_navigation_header_handle":[ - "app\\plugins\\answers\\Hook" - ] - } -} \ No newline at end of file diff --git a/application/plugins/answers/index/Index.php b/application/plugins/answers/index/Index.php deleted file mode 100755 index 584bd5698..000000000 --- a/application/plugins/answers/index/Index.php +++ /dev/null @@ -1,224 +0,0 @@ -assign('plugins_answers_data', isset($base['data']) ? $base['data'] : []); - - // 幻灯片 - $data_params = [ - 'where' => ['is_enable'=>1], - ]; - $slider = Service::SlideList($data_params); - $this->assign('plugins_answers_slider', isset($slider['data']) ? $slider['data'] : []); - - // 商品数据 - $goods = Service::GoodsList(); - $this->assign('plugins_answers_goods_list', $goods['data']['goods']); - - // 最新问答内容 - $middle_new_page_number = isset($base['data']['middle_new_page_number']) ? intval($base['data']['middle_new_page_number']) : 15; - $answer = Service::AnswerList(['n'=>$middle_new_page_number]); - $this->assign('plugins_answers_middle_answer_list', $answer['data']); - - // 推荐问答 - if(!empty($base['data']['category_ids'])) - { - $answers = Service::AnswerList(['n'=>100, 'category_ids'=> $base['data']['category_ids']]); - $this->assign('plugins_answers_rc_list', $answers['data']); - } else { - $this->assign('plugins_answers_rc_list', []); - } - - // 最新商品 - if(!empty($base['data']['home_new_goods_number'])) - { - $goods = GoodsService::GoodsList(['where'=>['is_delete_time'=>0], 'field'=>'id,title,images,min_price', 'n'=>intval($base['data']['home_new_goods_number'])]); - $this->assign('plugins_new_goods_list', $goods['data']); - } - - // 浏览器标题 - $seo_name = empty($base['data']['application_name']) ? '问答' : $base['data']['application_name']; - $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle($seo_name, 1)); - - return $this->fetch('../../../plugins/view/answers/index/index/index'); - } - - /** - * 详情入口 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-03-07 - * @desc description - * @param [array] $params [输入参数] - */ - public function detail($params = []) - { - // 基础数据 - $base = PluginsService::PluginsData('answers', ['images', 'images_bottom']); - $this->assign('plugins_answers_data', isset($base['data']) ? $base['data'] : []); - - // 商品数据 - $goods = Service::GoodsList(); - $this->assign('plugins_answers_goods_list', $goods['data']['goods']); - - // 推荐问答 - if(!empty($base['data']['category_ids'])) - { - $answers = Service::AnswerList(['n'=>100, 'category_ids'=> $base['data']['category_ids']]); - $this->assign('plugins_answers_rc_list', $answers['data']); - } else { - $this->assign('plugins_answers_rc_list', []); - } - - // 获取问答数据 - $detail = Service::AnswerRow($params); - $this->assign('plugins_answers_detail', $detail); - - // 浏览次数 - if($detail['code'] == 0 && !empty($detail['data']['id'])) - { - AnswerService::AnswerAccessCountInc(['answer_id'=>$detail['data']['id']]); - } - - // 浏览器标题 - if(!empty($detail['data']['title'])) - { - $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle($detail['data']['title'])); - } else if(!empty($detail['data']['content'])) - { - $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle($detail['data']['content'])); - } - - return $this->fetch('../../../plugins/view/answers/index/index/detail'); - } - - /** - * 搜索 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-03-11 - * @desc description - * @param [array] $params [输入参数] - */ - public function search($params = []) - { - if(input('post.answers_keywords')) - { - $answers_keywords = str_replace(['?', ' ', '+', '-'], '', trim(input('post.answers_keywords'))); - return redirect(PluginsHomeUrl('answers', 'index', 'search', ['answers_keywords'=>$answers_keywords])); - } else { - // 基础数据 - $base = PluginsService::PluginsData('answers', ['images', 'images_bottom']); - $this->assign('plugins_answers_data', isset($base['data']) ? $base['data'] : []); - - // 商品数据 - $goods = Service::GoodsList(); - $this->assign('plugins_answers_goods_list', $goods['data']['goods']); - - // 推荐问答 - if(!empty($base['data']['category_ids'])) - { - $answers = Service::AnswerList(['n'=>100, 'category_ids'=> $base['data']['category_ids']]); - $this->assign('plugins_answers_rc_list', $answers['data']); - } else { - $this->assign('plugins_answers_rc_list', []); - } - - // 获取搜索数据 - // 分页 - $number = isset($base['data']['search_page_number']) ? intval($base['data']['search_page_number']) : 28; - - // 条件 - $keywords_arr = empty($params['answers_keywords']) ? [] : ['keywords'=>$params['answers_keywords']]; - $where = Service::AnswerListWhere(array_merge($params, $keywords_arr)); - - // 获取总数 - $total = AnswerService::AnswerTotal($where); - - // 分页 - $page_params = array( - 'number' => $number, - 'total' => $total, - 'where' => $params, - 'page' => isset($params['page']) ? intval($params['page']) : 1, - 'url' => PluginsHomeUrl('answers', 'index', 'search'), - ); - $page = new \base\Page($page_params); - $this->assign('page_html', $page->GetPageHtml()); - - // 获取列表 - $data_params = array( - 'm' => $page->GetPageStarNumber(), - 'n' => $number, - 'where' => $where, - 'field' => 'id,title,content,add_time,is_reply', - ); - $data = AnswerService::AnswerList($data_params); - $this->assign('plugins_answers_data_list', $data['data']); - - // 参数 - $this->assign('params', $params); - - // 浏览器标题 - $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle('问答搜索', 1)); - - return $this->fetch('../../../plugins/view/answers/index/index/search'); - } - } - - /** - * 提问 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function answer($params = []) - { - $params = input('post.'); - $params['user'] = UserService::LoginUserInfo(); - return AnswerService::AnswerSave($params); - } -} -?> \ No newline at end of file diff --git a/application/plugins/answers/install.sql b/application/plugins/answers/install.sql deleted file mode 100755 index 994d57f4f..000000000 --- a/application/plugins/answers/install.sql +++ /dev/null @@ -1,23 +0,0 @@ -# 问答系统商品 - 应用 -CREATE TABLE `{PREFIX}plugins_answers_goods` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id', - `goods_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '商品id', - `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间', - PRIMARY KEY (`id`), - KEY `goods_id` (`goods_id`) -) ENGINE=InnoDB DEFAULT CHARSET={CHARSET} ROW_FORMAT=DYNAMIC COMMENT='问答系统商品 - 应用'; - -# 问答系统轮播图 - 应用 -CREATE TABLE `{PREFIX}plugins_answers_slide` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id', - `name` char(60) NOT NULL DEFAULT '' COMMENT '别名', - `images_url` char(255) NOT NULL DEFAULT '' COMMENT '图片地址', - `url` char(255) NOT NULL DEFAULT '' COMMENT 'url地址', - `is_enable` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否启用(0否,1是)', - `sort` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '排序', - `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间', - `upd_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间', - PRIMARY KEY (`id`), - KEY `is_enable` (`is_enable`), - KEY `sort` (`sort`) -) ENGINE=InnoDB DEFAULT CHARSET={CHARSET} ROW_FORMAT=DYNAMIC COMMENT='问答系统轮播图 - 应用'; \ No newline at end of file diff --git a/application/plugins/answers/service/Service.php b/application/plugins/answers/service/Service.php deleted file mode 100755 index a5038afea..000000000 --- a/application/plugins/answers/service/Service.php +++ /dev/null @@ -1,406 +0,0 @@ -where($where)->order('sort asc')->select(); - if(!empty($data)) - { - $common_is_enable_tips = lang('common_is_enable_tips'); - foreach($data as &$v) - { - // 是否启用 - $v['is_enable_text'] = $common_is_enable_tips[$v['is_enable']]['name']; - - // 图片地址 - $v['images_url_old'] = $v['images_url']; - $v['images_url'] = ResourcesService::AttachmentPathViewHandle($v['images_url']); - - // 时间 - $v['add_time_time'] = date('Y-m-d H:i:s', $v['add_time']); - $v['add_time_date'] = date('Y-m-d', $v['add_time']); - $v['upd_time_time'] = date('Y-m-d H:i:s', $v['upd_time']); - $v['upd_time_date'] = date('Y-m-d', $v['upd_time']); - } - } - return DataReturn('处理成功', 0, $data); - } - - /** - * 幻灯片数据保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-12-19 - * @desc description - * @param [array] $params [输入参数] - */ - public static function SlideSave($params = []) - { - // 请求类型 - $p = [ - [ - 'checked_type' => 'length', - 'key_name' => 'name', - 'checked_data' => '2,60', - 'error_msg' => '名称长度 2~60 个字符', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'images_url', - 'checked_data' => '255', - 'error_msg' => '请上传图片', - ], - [ - 'checked_type' => 'fun', - 'key_name' => 'url', - 'is_checked' => 1, - 'checked_data' => 'CheckUrl', - 'error_msg' => 'url格式有误', - ], - [ - 'checked_type' => 'length', - 'key_name' => 'sort', - 'checked_data' => '3', - 'error_msg' => '顺序 0~255 之间的数值', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 附件 - $data_fields = ['images_url']; - $attachment = ResourcesService::AttachmentParams($params, $data_fields); - - // 数据 - $data = [ - 'name' => $params['name'], - 'url' => $params['url'], - 'images_url' => $attachment['data']['images_url'], - 'sort' => intval($params['sort']), - 'is_enable' => isset($params['is_enable']) ? intval($params['is_enable']) : 0, - ]; - - if(empty($params['id'])) - { - $data['add_time'] = time(); - if(Db::name('PluginsAnswersSlide')->insertGetId($data) > 0) - { - return DataReturn('添加成功', 0); - } - return DataReturn('添加失败', -100); - } else { - $data['upd_time'] = time(); - if(Db::name('PluginsAnswersSlide')->where(['id'=>intval($params['id'])])->update($data)) - { - return DataReturn('编辑成功', 0); - } - return DataReturn('编辑失败', -100); - } - } - - /** - * 幻灯片删除 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-12-18 - * @desc description - * @param [array] $params [输入参数] - */ - public static function SlideDelete($params = []) - { - // 请求参数 - $p = [ - [ - 'checked_type' => 'empty', - 'key_name' => 'id', - 'error_msg' => '操作id有误', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 删除操作 - if(Db::name('PluginsAnswersSlide')->where(['id'=>$params['id']])->delete()) - { - return DataReturn('删除成功'); - } - - return DataReturn('删除失败或资源不存在', -100); - } - - /** - * 幻灯片状态更新 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-06T21:31:53+0800 - * @param [array] $params [输入参数] - */ - public static function SlideStatusUpdate($params = []) - { - // 请求参数 - $p = [ - [ - 'checked_type' => 'empty', - 'key_name' => 'id', - 'error_msg' => '操作id有误', - ], - [ - 'checked_type' => 'in', - 'key_name' => 'state', - 'checked_data' => [0,1], - 'error_msg' => '状态有误', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 数据更新 - if(Db::name('PluginsAnswersSlide')->where(['id'=>intval($params['id'])])->update(['is_enable'=>intval($params['state'])])) - { - return DataReturn('编辑成功'); - } - return DataReturn('编辑失败或数据未改变', -100); - } - - /** - * 商品搜索 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-06T21:31:53+0800 - * @param [array] $params [输入参数] - */ - public static function GoodsSearchList($params = []) - { - // 条件 - $where = [ - ['g.is_delete_time', '=', 0], - ['g.is_shelves', '=', 1] - ]; - - // 关键字 - if(!empty($params['keywords'])) - { - $where[] = ['g.title', 'like', '%'.$params['keywords'].'%']; - } - - // 分类id - if(!empty($params['category_id'])) - { - $category_ids = GoodsService::GoodsCategoryItemsIds([$params['category_id']], 1); - $category_ids[] = $params['category_id']; - $where[] = ['gci.category_id', 'in', $category_ids]; - } - - // 指定字段 - $field = 'g.id,g.title'; - - // 获取数据 - return GoodsService::CategoryGoodsList(['where'=>$where, 'm'=>0, 'n'=>100, 'field'=>$field, 'is_admin_access'=>1]); - } - - /** - * 关联商品保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-03-07 - * @desc description - * @param [array] $params [输入参数] - */ - public static function GoodsSave($params = []) - { - // 清除商品id - Db::name('PluginsAnswersGoods')->where('id', '>', 0)->delete(); - - // 写入商品id - if(!empty($params['category_ids'])) - { - $ids_all = explode(',', $params['category_ids']); - $data = []; - foreach($ids_all as $goods_id) - { - $data[] = [ - 'goods_id' => $goods_id, - 'add_time' => time(), - ]; - } - if(Db::name('PluginsAnswersGoods')->insertAll($data) < count($data)) - { - return DataReturn('操作失败', -100); - } - } - return DataReturn('操作成功', 0); - } - - /** - * 商品列表 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-06T21:31:53+0800 - * @param [array] $params [输入参数] - */ - public static function GoodsList($params = []) - { - // 获取推荐商品id - $goods_ids = Db::name('PluginsAnswersGoods')->column('goods_id'); - if(empty($goods_ids)) - { - return DataReturn('没有商品', 0, ['goods'=>[], 'goods_ids'=>[]]); - } - - // 条件 - $where = [ - ['g.is_delete_time', '=', 0], - ['g.is_shelves', '=', 1], - ['g.id', 'in', $goods_ids], - ]; - - // 指定字段 - $field = 'g.id,g.title,g.images,g.min_price'; - - // 获取数据 - $ret = GoodsService::CategoryGoodsList(['where'=>$where, 'm'=>0, 'n'=>100, 'field'=>$field]); - return DataReturn('操作成功', 0, ['goods'=>$ret['data'], 'goods_ids'=>$goods_ids]); - } - - /** - * 条件 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-03-11 - * @desc description - * @param [array] $params [输入参数] - */ - public static function AnswerListWhere($params = []) - { - // 条件 - $where = [ - ['is_show', '=', 1], - ]; - - // 搜索关键字 - if(!empty($params['keywords'])) - { - $where[] = ['title|content', 'like', '%'.$params['keywords'].'%']; - } - - // 指定问答id - if(!empty($params['category_ids'])) - { - $where[] = ['id', 'in', explode(',', $params['category_ids'])]; - } - - return $where; - } - - /** - * 问答列表 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-06T21:31:53+0800 - * @param [array] $params [输入参数] - */ - public static function AnswerList($params = []) - { - // 字段 - $field = empty($params['field']) ? 'id,name,title,content,reply,is_reply,reply_time,add_time' : $params['field']; - - // 获取列表 - $data_params = array( - 'm' => 0, - 'n' => isset($params['n']) ? intval($params['n']) : 10, - 'where' => self::AnswerListWhere($params), - 'field' => $field, - ); - return AnswerService::AnswerList($data_params); - } - - /** - * 获取一条问答 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-06T21:31:53+0800 - * @param [array] $params [输入参数] - */ - public static function AnswerRow($params = []) - { - // 参数 - if(empty($params['id'])) - { - return DataReturn('问答id有误', -1); - } - // 条件 - $where = [ - ['is_show', '=', 1], - ['id', '=', intval($params['id'])], - ]; - - // 字段 - $field = 'id,name,title,content,reply,is_reply,access_count,reply_time,add_time'; - - // 获取列表 - $data_params = array( - 'm' => 0, - 'n' => 1, - 'where' => $where, - 'field' => $field, - ); - $ret = AnswerService::AnswerList($data_params); - if(isset($ret['data'][0])) - { - $ret['data'] = $ret['data'][0]; - } - return $ret; - } -} -?> \ No newline at end of file diff --git a/application/plugins/answers/uninstall.sql b/application/plugins/answers/uninstall.sql deleted file mode 100755 index e1b4a4bfc..000000000 --- a/application/plugins/answers/uninstall.sql +++ /dev/null @@ -1,5 +0,0 @@ -# 问答系统商品 - 应用 -DROP TABLE `{PREFIX}plugins_answers_goods`; - -# 问答系统轮播图 - 应用 -DROP TABLE `{PREFIX}plugins_answers_slide`; \ No newline at end of file diff --git a/application/plugins/commongobacktop/Hook.php b/application/plugins/commongobacktop/Hook.php deleted file mode 100755 index b57ab7e8a..000000000 --- a/application/plugins/commongobacktop/Hook.php +++ /dev/null @@ -1,148 +0,0 @@ -html($params); - break; - - case 'plugins_common_page_bottom' : - $ret = $this->js($params); - break; - - case 'plugins_common_header' : - $ret = $this->css($params); - break; - - default : - $ret = ''; - } - return $ret; - } else { - return ''; - } - } - - /** - * css - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-06T16:16:34+0800 - * @param [array] $params [输入参数] - */ - public function css($params = []) - { - return ''; - } - - /** - * js - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-06T16:16:34+0800 - * @param [array] $params [输入参数] - */ - public function js($params = []) - { - return ''; - } - - /** - * 视图 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-06T16:16:34+0800 - * @param [array] $params [输入参数] - */ - public function html($params = []) - { - // 当前模块/控制器/方法 - $module_name = strtolower(request()->module()); - $controller_name = strtolower(request()->controller()); - $action_name = strtolower(request()->action()); - - // 获取应用数据 - $ret = PluginsService::PluginsData('commongobacktop', ['images']); - if($ret['code'] == 0) - { - // 图片是否为空 - if(empty($ret['data']['images'])) - { - return ''; - } - - // 非全局 - if($ret['data']['is_overall'] != 1) - { - // 非首页则空 - if($module_name.$controller_name.$action_name != 'indexindexindex') - { - return ''; - } - } - - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/commongobacktop/index/public/content'); - } else { - return $ret['msg']; - } - } -} -?> \ No newline at end of file diff --git a/application/plugins/commongobacktop/admin/Admin.php b/application/plugins/commongobacktop/admin/Admin.php deleted file mode 100755 index f2085a13a..000000000 --- a/application/plugins/commongobacktop/admin/Admin.php +++ /dev/null @@ -1,85 +0,0 @@ -assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/commongobacktop/admin/admin/index'); - } else { - return $ret['msg']; - } - } - - /** - * 编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function saveinfo($params = []) - { - $ret = PluginsService::PluginsData('commongobacktop', ['images']); - if($ret['code'] == 0) - { - // 是否 - $is_whether_list = [ - 0 => array('id' => 0, 'name' => '否'), - 1 => array('id' => 1, 'name' => '是', 'checked' => true), - ]; - - $this->assign('is_whether_list', $is_whether_list); - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/commongobacktop/admin/admin/saveinfo'); - } else { - return $ret['msg']; - } - } - - /** - * 数据保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - return PluginsService::PluginsDataSave(['plugins'=>'commongobacktop', 'data'=>$params], ['images']); - } -} -?> \ No newline at end of file diff --git a/application/plugins/commongobacktop/config.json b/application/plugins/commongobacktop/config.json deleted file mode 100755 index 146f6c0c8..000000000 --- a/application/plugins/commongobacktop/config.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "base":{ - "plugins":"commongobacktop", - "name":"回到顶部", - "logo":"\/static\/upload\/images\/plugins_commongobacktop\/2019\/02\/15\/1550200927239565.jpg", - "author":"Devil", - "author_url":"https:\/\/shopxo.net\/", - "version":"1.0.0", - "desc":"当滚动到底部的时候出现回到顶部操作", - "apply_terminal":[ - "pc", - "h5" - ], - "apply_version":[ - "1.5.0" - ], - "is_home":false - }, - "hook":{ - "plugins_view_common_bottom":[ - "app\\plugins\\commongobacktop\\Hook" - ], - "plugins_common_page_bottom":[ - "app\\plugins\\commongobacktop\\Hook" - ], - "plugins_common_header":[ - "app\\plugins\\commongobacktop\\Hook" - ] - } -} \ No newline at end of file diff --git a/application/plugins/commononlineservice/Hook.php b/application/plugins/commononlineservice/Hook.php deleted file mode 100755 index 213c8aec3..000000000 --- a/application/plugins/commononlineservice/Hook.php +++ /dev/null @@ -1,125 +0,0 @@ -html($params); - break; - - default : - $ret = ''; - } - return $ret; - } else { - return ''; - } - } - } - - /** - * 视图 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-06T16:16:34+0800 - * @param [array] $params [输入参数] - */ - public function html($params = []) - { - // 当前模块/控制器/方法 - $module_name = strtolower(request()->module()); - $controller_name = strtolower(request()->controller()); - $action_name = strtolower(request()->action()); - - // 获取应用数据 - $ret = PluginsService::PluginsData('commononlineservice', ['images']); - if($ret['code'] == 0) - { - // 非全局 - if($ret['data']['is_overall'] != 1) - { - // 非首页则空 - if($module_name.$controller_name.$action_name != 'indexindexindex') - { - return ''; - } - } - - // 客服 - $online_service = empty($ret['data']['online_service']) ? [] : explode("\n", $ret['data']['online_service']); - $online_service_data = []; - if(!empty($online_service)) - { - foreach($online_service as $v) - { - $items = explode('|', $v); - if(count($items) == 2) - { - $online_service_data[] = $items; - } - } - } - $ret['data']['online_service'] = $online_service_data; - - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/commononlineservice/index/public/content'); - } else { - return $ret['msg']; - } - } -} -?> \ No newline at end of file diff --git a/application/plugins/commononlineservice/admin/Admin.php b/application/plugins/commononlineservice/admin/Admin.php deleted file mode 100755 index 2c24b44f9..000000000 --- a/application/plugins/commononlineservice/admin/Admin.php +++ /dev/null @@ -1,88 +0,0 @@ -', $ret['data']['online_service']); - - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/commononlineservice/admin/admin/index'); - } else { - return $ret['msg']; - } - } - - /** - * 编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function saveinfo($params = []) - { - $ret = PluginsService::PluginsData('commononlineservice'); - if($ret['code'] == 0) - { - // 是否 - $is_whether_list = [ - 0 => array('id' => 0, 'name' => '否'), - 1 => array('id' => 1, 'name' => '是', 'checked' => true), - ]; - - $this->assign('is_whether_list', $is_whether_list); - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/commononlineservice/admin/admin/saveinfo'); - } else { - return $ret['msg']; - } - } - - /** - * 数据保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - return PluginsService::PluginsDataSave(['plugins'=>'commononlineservice', 'data'=>$params]); - } -} -?> \ No newline at end of file diff --git a/application/plugins/commononlineservice/config.json b/application/plugins/commononlineservice/config.json deleted file mode 100755 index 62858cfe4..000000000 --- a/application/plugins/commononlineservice/config.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "base":{ - "plugins":"commononlineservice", - "name":"在线客服", - "logo":"\/static\/upload\/images\/plugins_commononlineservice\/2019\/02\/17\/1550393245526672.jpg", - "author":"Devil", - "author_url":"https:\/\/shopxo.net\/", - "version":"1.0.0", - "desc":"在线客服、QQ、电话", - "apply_terminal":[ - "pc", - "h5" - ], - "apply_version":[ - "1.5.0" - ], - "is_home":false - }, - "hook":{ - "plugins_css":[ - "app\\plugins\\commononlineservice\\Hook" - ], - "plugins_js":[ - "app\\plugins\\commononlineservice\\Hook" - ], - "plugins_view_common_bottom":[ - "app\\plugins\\commononlineservice\\Hook" - ] - } -} \ No newline at end of file diff --git a/application/plugins/commonrightnavigation/Hook.php b/application/plugins/commonrightnavigation/Hook.php deleted file mode 100755 index 1f4a6dda2..000000000 --- a/application/plugins/commonrightnavigation/Hook.php +++ /dev/null @@ -1,144 +0,0 @@ -html($params); - break; - - default : - $ret = ''; - } - return $ret; - } else { - return ''; - } - } - } - - /** - * 视图 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-06T16:16:34+0800 - * @param [array] $params [输入参数] - */ - public function html($params = []) - { - // 当前模块/控制器/方法 - $module_name = strtolower(request()->module()); - $controller_name = strtolower(request()->controller()); - $action_name = strtolower(request()->action()); - - // 获取应用数据 - $ret = PluginsService::PluginsData('commonrightnavigation', ['alipay_mini_qrcode_images', 'alipay_fuwu_qrcode_images', 'weixin_mini_qrcode_images', 'weixin_fuwu_qrcode_images']); - - // html拼接 - $html = '
'; - $content = ''; - if($ret['code'] == 0) - { - // 非全局 - if($ret['data']['is_overall'] != 1) - { - // 非首页则空 - if($module_name.$controller_name.$action_name != 'indexindexindex') - { - return ''; - } - } - - // 当前模块/控制器/方法 - $this->assign('module_controller_action', $module_name.$controller_name.$action_name); - - // 是否新窗口打开 - $is_new_window_open_html = (isset($ret['data']['is_new_window_open']) && $ret['data']['is_new_window_open'] == 1) ? 'target="_blank"' : ''; - $this->assign('is_new_window_open_html', $is_new_window_open_html); - - // 购物车总数 - $cart_total = BuyService::UserCartTotal(['user'=>$params['user']]); - $this->assign('cart_total', $cart_total); - - // 是否需要登录 - $login_event_class = empty($params['user']) ? 'login-event' : ''; - $this->assign('login_event_class', $login_event_class); - - // 用户信息 - $this->assign('user', $params['user']); - - // 应用数据 - $this->assign('data', $ret['data']); - - // 购物车 - $cart_list = BuyService::CartList(['user'=>$params['user']]); - $this->assign('cart_list', $cart_list['data']); - $base = [ - 'total_price' => empty($cart_list['data']) ? 0 : array_sum(array_column($cart_list['data'], 'total_price')), - 'cart_count' => empty($cart_list['data']) ? 0 : count($cart_list['data']), - 'ids' => empty($cart_list['data']) ? '' : implode(',', array_column($cart_list['data'], 'id')), - ]; - $this->assign('base', $base); - - return $this->fetch('../../../plugins/view/commonrightnavigation/index/public/content'); - } else { - return $ret['msg']; - } - } -} -?> \ No newline at end of file diff --git a/application/plugins/commonrightnavigation/admin/Admin.php b/application/plugins/commonrightnavigation/admin/Admin.php deleted file mode 100755 index 94dda34a5..000000000 --- a/application/plugins/commonrightnavigation/admin/Admin.php +++ /dev/null @@ -1,85 +0,0 @@ -assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/commonrightnavigation/admin/admin/index'); - } else { - return $ret['msg']; - } - } - - /** - * 编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function saveinfo($params = []) - { - $ret = PluginsService::PluginsData('commonrightnavigation', ['alipay_mini_qrcode_images', 'alipay_fuwu_qrcode_images', 'weixin_mini_qrcode_images', 'weixin_fuwu_qrcode_images']); - if($ret['code'] == 0) - { - // 是否 - $is_whether_list = [ - 0 => array('id' => 0, 'name' => '否'), - 1 => array('id' => 1, 'name' => '是', 'checked' => true), - ]; - - $this->assign('is_whether_list', $is_whether_list); - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/commonrightnavigation/admin/admin/saveinfo'); - } else { - return $ret['msg']; - } - } - - /** - * 数据保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - return PluginsService::PluginsDataSave(['plugins'=>'commonrightnavigation', 'data'=>$params], ['alipay_mini_qrcode_images', 'alipay_fuwu_qrcode_images', 'weixin_mini_qrcode_images', 'weixin_fuwu_qrcode_images']); - } -} -?> \ No newline at end of file diff --git a/application/plugins/commonrightnavigation/config.json b/application/plugins/commonrightnavigation/config.json deleted file mode 100755 index a0ae65b50..000000000 --- a/application/plugins/commonrightnavigation/config.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "base":{ - "plugins":"commonrightnavigation", - "name":"右侧快捷导航", - "logo":"\/static\/upload\/images\/plugins_commonrightnavigation\/2019\/02\/15\/1550222872753553.jpg", - "author":"Devil", - "author_url":"https:\/\/shopxo.net\/", - "version":"1.0.0", - "desc":"浏览器右侧快捷导航", - "apply_terminal":[ - "pc", - "h5" - ], - "apply_version":[ - "1.5.0" - ], - "is_home":false - }, - "hook":{ - "plugins_css":[ - "app\\plugins\\commonrightnavigation\\Hook" - ], - "plugins_js":[ - "app\\plugins\\commonrightnavigation\\Hook" - ], - "plugins_view_common_bottom":[ - "app\\plugins\\commonrightnavigation\\Hook" - ] - } -} \ No newline at end of file diff --git a/application/plugins/commonrightnavigation/index/Index.php b/application/plugins/commonrightnavigation/index/Index.php deleted file mode 100755 index a9dd27cac..000000000 --- a/application/plugins/commonrightnavigation/index/Index.php +++ /dev/null @@ -1,76 +0,0 @@ -module()); - $controller_name = strtolower(request()->controller()); - $action_name = strtolower(request()->action()); - - // 当前模块/控制器/方法 - $this->assign('module_controller_action', $module_name.$controller_name.$action_name); - - // 购物车 - $cart_list = BuyService::CartList(['user'=>UserService::LoginUserInfo()]); - - // 基础数据 - $base = [ - 'total_price' => empty($cart_list['data']) ? '0.00' : PriceNumberFormat(array_sum(array_column($cart_list['data'], 'total_price'))), - 'cart_count' => empty($cart_list['data']) ? 0 : count($cart_list['data']), - 'ids' => empty($cart_list['data']) ? '' : implode(',', array_column($cart_list['data'], 'id')), - ]; - $data = [ - 'cart_list' => $cart_list['data'], - 'base' => $base, - ]; - return DataReturn('操作成功', 0, $data); - } -} -?> \ No newline at end of file diff --git a/application/plugins/commontopmaxpicture/Hook.php b/application/plugins/commontopmaxpicture/Hook.php deleted file mode 100755 index 056746ce0..000000000 --- a/application/plugins/commontopmaxpicture/Hook.php +++ /dev/null @@ -1,105 +0,0 @@ -html($params); - } - } - - /** - * 视图 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-06T16:16:34+0800 - * @param [array] $params [输入参数] - */ - public function html($params = []) - { - // 当前模块/控制器/方法 - $module_name = strtolower(request()->module()); - $controller_name = strtolower(request()->controller()); - $action_name = strtolower(request()->action()); - - // 获取应用数据 - $ret = PluginsService::PluginsData('commontopmaxpicture', ['images']); - if($ret['code'] == 0) - { - // 图片是否为空 - if(empty($ret['data']['images'])) - { - return ''; - } - - // 有效时间 - if(!empty($ret['data']['time_start'])) - { - // 是否已开始 - if(strtotime($ret['data']['time_start']) > time()) - { - return ''; - } - } - if(!empty($ret['data']['time_end'])) - { - // 是否已结束 - if(strtotime($ret['data']['time_end']) < time()) - { - return ''; - } - } - - // 非全局 - if($ret['data']['is_overall'] != 1) - { - // 非首页则空 - if($module_name.$controller_name.$action_name != 'indexindexindex') - { - return ''; - } - } - - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/commontopmaxpicture/index/public/content'); - } else { - return $ret['msg']; - } - } -} -?> \ No newline at end of file diff --git a/application/plugins/commontopmaxpicture/admin/Admin.php b/application/plugins/commontopmaxpicture/admin/Admin.php deleted file mode 100755 index 5bff1a1e7..000000000 --- a/application/plugins/commontopmaxpicture/admin/Admin.php +++ /dev/null @@ -1,85 +0,0 @@ -assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/commontopmaxpicture/admin/admin/index'); - } else { - return $ret['msg']; - } - } - - /** - * 编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function saveinfo($params = []) - { - $ret = PluginsService::PluginsData('commontopmaxpicture', ['images']); - if($ret['code'] == 0) - { - // 是否 - $is_whether_list = [ - 0 => array('id' => 0, 'name' => '否', 'checked' => true), - 1 => array('id' => 1, 'name' => '是'), - ]; - - $this->assign('is_whether_list', $is_whether_list); - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/commontopmaxpicture/admin/admin/saveinfo'); - } else { - return $ret['msg']; - } - } - - /** - * 数据保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - return PluginsService::PluginsDataSave(['plugins'=>'commontopmaxpicture', 'data'=>$params], ['images']); - } -} -?> \ No newline at end of file diff --git a/application/plugins/commontopmaxpicture/config.json b/application/plugins/commontopmaxpicture/config.json deleted file mode 100755 index 3acefef9b..000000000 --- a/application/plugins/commontopmaxpicture/config.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "base":{ - "plugins":"commontopmaxpicture", - "name":"顶部广告", - "logo":"\/static\/upload\/images\/plugins_commontopmaxpicture\/2019\/02\/09\/1549671733987654.jpg", - "author":"Devil", - "author_url":"https:\/\/shopxo.net\/", - "version":"1.0.0", - "desc":"顶部大图广告,突破视觉", - "apply_terminal":[ - "pc", - "h5" - ], - "apply_version":[ - "1.5.0" - ], - "is_home":false - }, - "hook":{ - "plugins_view_common_top":[ - "app\\plugins\\commontopmaxpicture\\Hook" - ] - } -} \ No newline at end of file diff --git a/application/plugins/commontopnotice/Hook.php b/application/plugins/commontopnotice/Hook.php deleted file mode 100755 index 89742b395..000000000 --- a/application/plugins/commontopnotice/Hook.php +++ /dev/null @@ -1,106 +0,0 @@ -html($params); - } - } - - /** - * 视图 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-06T16:16:34+0800 - * @param [array] $params [输入参数] - */ - public function html($params = []) - { - // 当前模块/控制器/方法 - $module_name = strtolower(request()->module()); - $controller_name = strtolower(request()->controller()); - $action_name = strtolower(request()->action()); - - // 获取应用数据 - $ret = PluginsService::PluginsData('commontopnotice'); - if($ret['code'] == 0) - { - // 内容是否为空 - if(empty($ret['data']['content'])) - { - return ''; - } - - // 有效时间 - if(!empty($ret['data']['time_start'])) - { - // 是否已开始 - if(strtotime($ret['data']['time_start']) > time()) - { - return ''; - } - } - if(!empty($ret['data']['time_end'])) - { - // 是否已结束 - if(strtotime($ret['data']['time_end']) < time()) - { - return ''; - } - } - - // 非全局 - if($ret['data']['is_overall'] != 1) - { - // 非首页则空 - if($module_name.$controller_name.$action_name != 'indexindexindex') - { - return ''; - } - } - - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/commontopnotice/index/public/content'); - } else { - return $ret['msg']; - } - } -} -?> \ No newline at end of file diff --git a/application/plugins/commontopnotice/admin/Admin.php b/application/plugins/commontopnotice/admin/Admin.php deleted file mode 100755 index ac63db5b2..000000000 --- a/application/plugins/commontopnotice/admin/Admin.php +++ /dev/null @@ -1,85 +0,0 @@ -assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/commontopnotice/admin/admin/index'); - } else { - return $ret['msg']; - } - } - - /** - * 编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function saveinfo($params = []) - { - $ret = PluginsService::PluginsData('commontopnotice'); - if($ret['code'] == 0) - { - // 是否 - $is_whether_list = [ - 0 => array('id' => 0, 'name' => '否', 'checked' => true), - 1 => array('id' => 1, 'name' => '是'), - ]; - - $this->assign('is_whether_list', $is_whether_list); - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/commontopnotice/admin/admin/saveinfo'); - } else { - return $ret['msg']; - } - } - - /** - * 数据保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - return PluginsService::PluginsDataSave(['plugins'=>'commontopnotice', 'data'=>$params]); - } -} -?> \ No newline at end of file diff --git a/application/plugins/commontopnotice/config.json b/application/plugins/commontopnotice/config.json deleted file mode 100755 index 7d1e5e8c9..000000000 --- a/application/plugins/commontopnotice/config.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "base":{ - "plugins":"commontopnotice", - "name":"顶部公告", - "logo":"\/static\/upload\/images\/plugins_commontopnotice\/2019\/02\/12\/1549671733987652.jpg", - "author":"Devil", - "author_url":"https:\/\/shopxo.net\/", - "version":"1.0.0", - "desc":"顶部公告,通知", - "apply_terminal":[ - "pc", - "h5" - ], - "apply_version":[ - "1.5.0" - ], - "is_home":false - }, - "hook":{ - "plugins_view_common_top":[ - "app\\plugins\\commontopnotice\\Hook" - ] - } -} \ No newline at end of file diff --git a/application/plugins/expressforkdn/Hook.php b/application/plugins/expressforkdn/Hook.php deleted file mode 100755 index 03873f040..000000000 --- a/application/plugins/expressforkdn/Hook.php +++ /dev/null @@ -1,154 +0,0 @@ -operation($params); - break; - - // 弹窗代码 - case 'plugins_view_common_bottom' : - case 'plugins_admin_view_common_bottom' : - $ret = $this->html($params); - break; - - // 页面底部 - case 'plugins_common_page_bottom' : - case 'plugins_admin_common_page_bottom' : - $ret = $this->js($params); - break; - - // header代码 - case 'plugins_common_header' : - case 'plugins_admin_common_header' : - $ret = $this->css($params); - break; - - default : - $ret = ''; - } - return $ret; - } - return ''; - } - - /** - * css - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-06T16:16:34+0800 - * @param [array] $params [输入参数] - */ - public function css($params = []) - { - return ''; - } - - /** - * js - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-06T16:16:34+0800 - * @param [array] $params [输入参数] - */ - public function js($params = []) - { - return ''; - } - - /** - * 视图 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-06T16:16:34+0800 - * @param [array] $params [输入参数] - */ - public function html($params = []) - { - // 获取应用数据 - $ret = PluginsService::PluginsData('expressforkdn', ['images']); - if($ret['code'] == 0) - { - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/expressforkdn/index/public/content'); - } else { - return $ret['msg']; - } - } - - /** - * 操作 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-06T16:16:34+0800 - * @param [array] $params [输入参数] - */ - public function operation($params = []) - { - if(empty($params['order'])) - { - return DataReturn('订单为空', -1); - } - - // 钩子html - if(isset($params['order']['status']) && in_array($params['order']['status'], [3,4])) - { - - $params['order']['plugins_service_order_handle_operation_html'][] = ''; - } - - return DataReturn('处理成功', 0); - } -} -?> \ No newline at end of file diff --git a/application/plugins/expressforkdn/admin/Admin.php b/application/plugins/expressforkdn/admin/Admin.php deleted file mode 100755 index 8d94d6c9d..000000000 --- a/application/plugins/expressforkdn/admin/Admin.php +++ /dev/null @@ -1,64 +0,0 @@ -assign('express_list', ExpressService::ExpressList()); - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/expressforkdn/admin/admin/index'); - } else { - return $ret['msg']; - } - } - - /** - * 编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function saveinfo($params = []) - { - $ret = PluginsService::PluginsData('expressforkdn'); - if($ret['code'] == 0) - { - $this->assign('express_list', ExpressService::ExpressList()); - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/expressforkdn/admin/admin/saveinfo'); - } else { - return $ret['msg']; - } - } - /** - * 数据保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - return PluginsService::PluginsDataSave(['plugins'=>'expressforkdn', 'data'=>$params]); - } -} -?> \ No newline at end of file diff --git a/application/plugins/expressforkdn/config.json b/application/plugins/expressforkdn/config.json deleted file mode 100755 index 2533f7696..000000000 --- a/application/plugins/expressforkdn/config.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "base":{ - "plugins":"expressforkdn", - "name":"快递鸟API接口", - "logo":"\/static\/upload\/images\/plugins_expressforkdn\/2019\/03\/11\/1552286675575734.png", - "author":"guoguo", - "author_url":"http:\/\/gadmin.cojz8.com", - "version":"1.0.0", - "desc":"集成快递鸟第三方后台查询接口", - "apply_terminal":[ - "pc", - "h5" - ], - "apply_version":[ - "1.5.0" - ], - "is_home":false - }, - "hook":{ - "plugins_view_common_bottom":[ - "app\\plugins\\expressforkdn\\Hook" - ], - "plugins_admin_view_common_bottom":[ - "app\\plugins\\expressforkdn\\Hook" - ], - "plugins_common_page_bottom":[ - "app\\plugins\\expressforkdn\\Hook" - ], - "plugins_admin_common_page_bottom":[ - "app\\plugins\\expressforkdn\\Hook" - ], - "plugins_common_header":[ - "app\\plugins\\expressforkdn\\Hook" - ], - "plugins_admin_common_header":[ - "app\\plugins\\expressforkdn\\Hook" - ], - "plugins_service_order_handle_begin":[ - "app\\plugins\\expressforkdn\\Hook" - ] - } -} \ No newline at end of file diff --git a/application/plugins/expressforkdn/index/Index.php b/application/plugins/expressforkdn/index/Index.php deleted file mode 100644 index 881e6a819..000000000 --- a/application/plugins/expressforkdn/index/Index.php +++ /dev/null @@ -1,179 +0,0 @@ - 'empty', - 'key_name' => 'express_id', - 'error_msg' => '快递id有误', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'express_number', - 'error_msg' => '快递单号有误', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1, '

'.$ret.'

'); - } - - // 获取配置数据 - $ret = PluginsService::PluginsData('expressforkdn'); - if($ret['code'] == 0) - { - // 是否配置物流代码 - if(empty($ret['data']['express_ids'][$params['express_id']])) - { - return DataReturn('请先再后台配置物流代码', -1, '

请先再后台配置物流代码

'); - } - - // 获取快递信息 - $data = $this->expresstraces(['shipper_code'=>$ret['data']['express_ids'][$params['express_id']],'logistic_code'=>$params['express_number'], 'config'=>$ret['data']]); - - // 状态列表 - $status_arr = [ - 0 => '暂无物流信息', - 1 => '快递公司已揽收', - 2 => '快递正在配送途中...', - 3 => '该物流已被签收', - 4 => '该物流问题件,请咨询物流商处理!', - ]; - if(!isset($data['State']) || !isset($status_arr[$data['State']])) - { - return DataReturn('查询失败', -1, '

查询失败

'); - } - - // 开始处理 - $html .='

'.$status_arr[$data['State']].'

'; - $html .= '
    '; - - // 快递信息 - if(in_array($data['State'], [2,3]) && !empty($data['Traces']) && is_array($data['Traces'])) - { - foreach($data['Traces'] as $k=>$v) - { - $html .='
  • '.$v['AcceptTime'].''.$v['AcceptStation'].'
  • '; - } - } - return DataReturn('处理成功', 0, $html); - } else { - return DataReturn($ret['msg'], -100); - } - } - - /** - * 获取物流信息 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-03-12 - * @desc description - * @param [array] $params [输入参数] - * @return [type] [description] - */ - public function expresstraces($params = []) - { - // 参数 - if(empty($params['shipper_code']) || empty($params['logistic_code']) || empty($params['config'])) - { - return ['State'=>0, 'Reason'=>'请求参数有误']; - } - - // 请求数据 - $url = 'http://api.kdniao.com/Ebusiness/EbusinessOrderHandle.aspx'; - $request_data = json_encode([ - 'OrderCode' => '', - 'ShipperCode' => $params['shipper_code'], - 'LogisticCode' => $params['logistic_code'], - ]); - $data = array( - 'EBusinessID' => $params['config']['ebid'], - 'RequestType' => '1002', - 'RequestData' => urlencode($request_data) , - 'DataType' => '2', - ); - $data['DataSign'] = $this->encrypt($request_data, $params['config']['appkey']); - return $this->request_post($url, $data); - } - - /** - * post提交数据 - * @param string $url 请求Url - * @param array $data 提交的数据 - * @return url响应返回的html - */ - public function request_post($url, $data) - { - $temps = array(); - foreach ($data as $key => $value) { - $temps[] = sprintf('%s=%s', $key, $value); - } - $post_data = implode('&', $temps); - $url_info = parse_url($url); - if(empty($url_info['port'])) - { - $url_info['port']=80; - } - $httpheader = "POST " . $url_info['path'] . " HTTP/1.0\r\n"; - $httpheader.= "Host:" . $url_info['host'] . "\r\n"; - $httpheader.= "Content-Type:application/x-www-form-urlencoded\r\n"; - $httpheader.= "Content-Length:" . strlen($post_data) . "\r\n"; - $httpheader.= "Connection:close\r\n\r\n"; - $httpheader.= $post_data; - $fd = fsockopen($url_info['host'], $url_info['port']); - fwrite($fd, $httpheader); - $gets = ""; - $headerFlag = true; - while (!feof($fd)) { - if (($header = @fgets($fd)) && ($header == "\r\n" || $header == "\n")) { - break; - } - } - while (!feof($fd)) { - $gets.= fread($fd, 128); - } - fclose($fd); - - return json_decode($gets, true); - } - /** - * 电商Sign签名生成 - * @param data 内容 - * @param appkey Appkey - * @return DataSign签名 - */ - public function encrypt($data, $appkey) { - return urlencode(base64_encode(md5($data.$appkey))); - } -} -?> \ No newline at end of file diff --git a/application/plugins/footercustomerservice/Hook.php b/application/plugins/footercustomerservice/Hook.php deleted file mode 100755 index 4d8151136..000000000 --- a/application/plugins/footercustomerservice/Hook.php +++ /dev/null @@ -1,134 +0,0 @@ -CssFile($params); - break; - - // 底部导航上面钩子 - case 'plugins_view_common_footer_top' : - $ret = $this->FooterServerData($params); - break; - default : - $ret = ''; - } - return $ret; - } - } - - /** - * 客户服务数据 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-06T16:16:34+0800 - * @param [array] $params [输入参数] - */ - public function FooterServerData($params = []) - { - $ret = $this->IsNormal($params); - if($ret['code'] == 0) - { - $this->assign('data_list', $ret['data']); - return $this->fetch('../../../plugins/view/footercustomerservice/index/public/content'); - } - return ''; - } - - /** - * css - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-06T16:16:34+0800 - * @param [array] $params [输入参数] - */ - public function CssFile($params = []) - { - $ret = $this->IsNormal($params); - if($ret['code'] == 0) - { - return __MY_ROOT_PUBLIC__.'static/plugins/css/footercustomerservice/index/style.css'; - } - return ''; - } - - /** - * 是否正常 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-04-23 - * @desc description - * @param [array] $params [输入参数] - */ - private function IsNormal($params = []) - { - // 当前模块/控制器/方法 - $module_name = strtolower(request()->module()); - $controller_name = strtolower(request()->controller()); - $action_name = strtolower(request()->action()); - - // 获取应用数据 - $ret = PluginsService::PluginsData('footercustomerservice'); - if($ret['code'] == 0) - { - // 是否仅首页 - if(isset($ret['data']['is_only_home']) && $ret['data']['is_only_home'] == 1) - { - // 非首页则空 - if($module_name.$controller_name.$action_name != 'indexindexindex') - { - return DataReturn('仅首页展示', -1); - } - } - } - - // 获取图片列表 - $ret = Service::DataList(); - if($ret['code'] == 0 && !empty($ret['data'])) - { - return DataReturn('成功', 0, $ret['data']); - } - - return DataReturn('失败', -100); - } -} -?> \ No newline at end of file diff --git a/application/plugins/footercustomerservice/admin/Admin.php b/application/plugins/footercustomerservice/admin/Admin.php deleted file mode 100755 index 017888abf..000000000 --- a/application/plugins/footercustomerservice/admin/Admin.php +++ /dev/null @@ -1,199 +0,0 @@ -assign('data_list', $list['data']); - - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/footercustomerservice/admin/admin/index'); - } else { - return $ret['msg']; - } - } - - /** - * 编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function saveinfo($params = []) - { - $ret = PluginsService::PluginsData('footercustomerservice', null, false); - if($ret['code'] == 0) - { - // 是否 - $is_whether_list = [ - 0 => array('id' => 0, 'name' => '否', 'checked' => true), - 1 => array('id' => 1, 'name' => '是'), - ]; - $this->assign('is_whether_list', $is_whether_list); - - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/footercustomerservice/admin/admin/saveinfo'); - } else { - return $ret['msg']; - } - } - - /** - * 数据保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - $list = Service::DataList(); - $params['data_list'] = $list['data']; - return PluginsService::PluginsDataSave(['plugins'=>'footercustomerservice', 'data'=>$params]); - } - - - - /** - * 数据列表页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function dataindex($params = []) - { - $list = Service::DataList(); - if($list['code'] == 0) - { - $this->assign('data_list', $list['data']); - return $this->fetch('../../../plugins/view/footercustomerservice/admin/admin/dataindex'); - } else { - return $list['msg']; - } - } - - /** - * 数据列表编辑 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function datainfo($params = []) - { - // 数据 - $data = []; - if(!empty($params['id'])) - { - $data_params = [ - 'get_id' => $params['id'], - ]; - $ret = Service::DataList($data_params); - $data = empty($ret['data']) ? [] : $ret['data']; - } - $this->assign('data', $data); - - return $this->fetch('../../../plugins/view/footercustomerservice/admin/admin/datainfo'); - } - - /** - * 数据列表保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function datasave($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 开始处理 - return Service::DataSave($params); - } - - /** - * 数据列表删除 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-15T11:03:30+0800 - * @param [array] $params [输入参数] - */ - public function datadelete($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 开始处理 - return Service::DataDelete($params); - } - - /** - * 数据列表状态更新 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2017-01-12T22:23:06+0800 - * @param [array] $params [输入参数] - */ - public function datastatusupdate($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 开始处理 - return Service::DataStatusUpdate($params); - } -} -?> \ No newline at end of file diff --git a/application/plugins/footercustomerservice/config.json b/application/plugins/footercustomerservice/config.json deleted file mode 100755 index d1309e9a7..000000000 --- a/application/plugins/footercustomerservice/config.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "base":{ - "plugins":"footercustomerservice", - "name":"底部客户服务介绍", - "logo":"\/static\/upload\/images\/plugins_footercustomerservice\/2019\/04\/23\/1555984179784604.jpg", - "author":"Devil", - "author_url":"https:\/\/shopxo.net\/", - "version":"1.0.0", - "desc":"底部客户服务介绍,最多可添加4项", - "apply_terminal":[ - "pc", - "h5" - ], - "apply_version":[ - "1.5.0" - ], - "is_home":false - }, - "hook":{ - "plugins_css":[ - "app\\plugins\\footercustomerservice\\Hook" - ], - "plugins_view_common_footer_top":[ - "app\\plugins\\footercustomerservice\\Hook" - ] - } -} \ No newline at end of file diff --git a/application/plugins/footercustomerservice/service/Service.php b/application/plugins/footercustomerservice/service/Service.php deleted file mode 100755 index d98c784ac..000000000 --- a/application/plugins/footercustomerservice/service/Service.php +++ /dev/null @@ -1,228 +0,0 @@ - 'length', - 'key_name' => 'name', - 'checked_data' => '1,8', - 'error_msg' => '名称长度 1~8 个字符', - ], - [ - 'checked_type' => 'length', - 'key_name' => 'desc', - 'checked_data' => '30', - 'error_msg' => '描述格式最多 30 个字符', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'images_url', - 'checked_data' => '255', - 'error_msg' => '请上传图片', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 附件 - $data_fields = ['images_url']; - $attachment = ResourcesService::AttachmentParams($params, $data_fields); - - // 数据 - $data = [ - 'name' => $params['name'], - 'desc' => $params['desc'], - 'images_url' => $attachment['data']['images_url'], - 'is_enable' => isset($params['is_enable']) ? intval($params['is_enable']) : 0, - 'operation_time' => time(), - ]; - - // 原有数据 - $ret = PluginsService::PluginsData('footercustomerservice', null, false); - - // 数据id - $data['id'] = (empty($params['id']) || empty($ret['data']) || empty($ret['data']['data_list'][$params['id']])) ? date('YmdHis').GetNumberCode(6) : $params['id']; - $ret['data']['data_list'][$data['id']] = $data; - - // 添加最多添加4条 - if(empty($params['id'])) - { - if(count($ret['data']['data_list']) > 4) - { - return DataReturn('最多添加4条数据', -1); - } - } - - // 保存 - return PluginsService::PluginsDataSave(['plugins'=>'footercustomerservice', 'data'=>$ret['data']]); - } - - /** - * 数据列表删除 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-12-18 - * @desc description - * @param [array] $params [输入参数] - */ - public static function DataDelete($params = []) - { - // 请求参数 - $p = [ - [ - 'checked_type' => 'empty', - 'key_name' => 'id', - 'error_msg' => '操作id有误', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 原有数据 - $ret = PluginsService::PluginsData('footercustomerservice', null, false); - $ret['data']['data_list'] = (empty($ret['data']) || empty($ret['data']['data_list'])) ? [] : $ret['data']['data_list']; - - // 删除操作 - if(isset($ret['data']['data_list'][$params['id']])) - { - unset($ret['data']['data_list'][$params['id']]); - } - - // 保存 - return PluginsService::PluginsDataSave(['plugins'=>'footercustomerservice', 'data'=>$ret['data']]); - } - - /** - * 数据列表删除 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-12-18 - * @desc description - * @param [array] $params [输入参数] - */ - public static function DataStatusUpdate($params = []) - { - // 请求参数 - $p = [ - [ - 'checked_type' => 'empty', - 'key_name' => 'id', - 'error_msg' => '操作id有误', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'field', - 'error_msg' => '操作字段有误', - ], - [ - 'checked_type' => 'in', - 'key_name' => 'state', - 'checked_data' => [0,1], - 'error_msg' => '状态有误', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 原有数据 - $ret = PluginsService::PluginsData('footercustomerservice', null, false); - $ret['data']['data_list'] = (empty($ret['data']) || empty($ret['data']['data_list'])) ? [] : $ret['data']['data_list']; - - // 删除操作 - if(isset($ret['data']['data_list'][$params['id']]) && isset($ret['data']['data_list'][$params['id']][$params['field']])) - { - $ret['data']['data_list'][$params['id']][$params['field']] = intval($params['state']); - $ret['data']['data_list'][$params['id']]['operation_time'] = time(); - } - - // 保存 - return PluginsService::PluginsDataSave(['plugins'=>'footercustomerservice', 'data'=>$ret['data']]); - } -} -?> \ No newline at end of file diff --git a/application/plugins/freightfee/Hook.php b/application/plugins/freightfee/Hook.php deleted file mode 100755 index 89cd8d72f..000000000 --- a/application/plugins/freightfee/Hook.php +++ /dev/null @@ -1,316 +0,0 @@ -FreightFeeCalculate($params); - break; - - // 商品免运费icon - case 'plugins_view_goods_detail_title' : - $ret = $this->FreeShippingGoodsIcon($params); - break; - - default : - $ret = ''; - } - return $ret; - } - } - - /** - * 商品免运费icon - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-04-26 - * @desc description - * @param [array] $params [输入参数] - */ - private function FreeShippingGoodsIcon($params = []) - { - $ret = PluginsService::PluginsData('freightfee'); - if($ret['code'] == 0 && !empty($ret['data']['goods_ids']) && !empty($params['goods_id'])) - { - $goods_all = explode(',', $ret['data']['goods_ids']); - if(in_array($params['goods_id'], $goods_all)) - { - return '免运费'; - } - } - return ''; - } - - /** - * 运费计算 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-03-21 - * @desc description - * @param [array] $params [输入参数] - */ - public function FreightFeeCalculate($params = []) - { - $ret = PluginsService::PluginsData('freightfee'); - if($ret['code'] == 0) - { - // 默认运费 - $price = 0; - - // 支付方式免运费 - $is_payment = true; - if(!empty($ret['data']['payment']) && !empty($params['params']['payment_id'])) - { - $payment = array_map(function($v){return explode('-', $v);}, explode(',', $ret['data']['payment'])); - if(!empty($payment) && is_array($payment)) - { - foreach($payment as $v) - { - if(isset($v[0]) && $v[0] == $params['params']['payment_id']) - { - $is_payment = false; - break; - } - } - } - } - - // 免运费商品 - $free_goods = $this->FreeShippingGoods(empty($ret['data']['goods_ids']) ? '' : $ret['data']['goods_ids'], $params); - $params['data']['base']['buy_count'] -= $free_goods['buy_count']; - $params['data']['base']['spec_weight_total'] -= $free_goods['spec_weight']; - - // 是否设置运费数据 - if($is_payment === true && !empty($ret['data']['data'][0])) - { - // 规则 - $rules = $this->RulesHandle($ret['data']['data'], $params['data']['base']['address']); - - // 计费方式 - if(!empty($rules)) - { - // 订单金额满免运费 - if(empty($rules['free_shipping_price']) || $params['data']['base']['total_price'] < $rules['free_shipping_price']) - { - // 根据规则计算运费 - switch($ret['data']['valuation']) - { - // 按件 - case 0 : - $price = $this->PieceCalculate($rules, $params['data']); - break; - - // 按量 - case 1 : - $price = $this->QuantityCalculate($rules, $params['data']); - break; - } - } - } - } - - // 扩展展示数据 - $show_name = empty($ret['data']['show_name']) ? '运费' : $ret['data']['show_name']; - $params['data']['extension_data'][] = [ - 'name' => $show_name, - 'price' => $price, - 'type' => 1, - 'tips' => '+¥'.$price.'元', - ]; - - // 金额 - $params['data']['base']['increase_price'] += $price; - $params['data']['base']['actual_price'] += $price; - - return DataReturn('无需处理', 0); - } else { - return $ret['msg']; - } - } - - /** - * 免运费商品 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-04-26 - * @desc description - * @param [string] $goods_ids [商品ids] - * @param [array] $params [钩子参数] - */ - private function FreeShippingGoods($goods_ids, $params) - { - $result = [ - 'buy_count' => 0, - 'spec_weight' => 0, - ]; - if(!empty($goods_ids)) - { - $goods_all = explode(',', $goods_ids); - foreach($params['data']['goods'] as $goods) - { - if(in_array($goods['goods_id'], $goods_all)) - { - $result['buy_count'] += $goods['stock']; - $result['spec_weight'] += $goods['spec_weight']; - } - } - } - - return $result; - } - - /** - * 按重计费 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-03-21 - * @desc description - * @param [array] $rules [规则] - * @param [array] $buy [生成订单数据] - */ - public function QuantityCalculate($rules, $buy) - { - $price = 0; - if($rules['first_price'] > 0 && $buy['base']['spec_weight_total'] >= $rules['first']) - { - $price = $rules['first_price']; - } - if($rules['continue_price'] > 0 && $buy['base']['spec_weight_total'] >= $rules['continue']+$rules['first']) - { - $number = ($buy['base']['spec_weight_total']-$rules['first'])/$rules['continue']; - if($number > 0) - { - $price += round($rules['continue_price']*$number); - } - } - - return $price; - } - - /** - * 按件计费 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-03-21 - * @desc description - * @param [array] $rules [规则] - * @param [array] $buy [生成订单数据] - */ - public function PieceCalculate($rules, $buy) - { - $price = 0; - if($rules['first_price'] > 0 && $buy['base']['buy_count'] >= $rules['first']) - { - $price = $rules['first_price']; - } - if($rules['continue_price'] > 0 && $buy['base']['buy_count'] >= $rules['continue']+$rules['first']) - { - $number = round(($buy['base']['buy_count']-$rules['first'])/$rules['continue']); - if($number > 0) - { - $price += round($rules['continue_price']*$number); - } - } - - return $price; - } - - /** - * 运费规则匹配 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-03-21 - * @desc description - * @param [array] $rules [运费规则列表] - * @param [array] $address [用户地址] - */ - public function RulesHandle($rules, $address) - { - if(count($rules) > 1 && !empty($address)) - { - $data = [ - 'province' => ['rules' => [], 'number' => 0], - 'city' => ['rules' => [], 'number' => 0], - ]; - foreach($rules as $k=>$v) - { - if($k != 0) - { - $region = explode('-', $v['region']); - if(!empty($region)) - { - if(in_array($address['province'], $region)) - { - $data['province']['rules'] = $v; - $data['province']['number']++; - } - if(in_array($address['city'], $region)) - { - $data['city']['rules'] = $v; - $data['city']['number']++; - } - } - } - } - if($data['city']['number'] > 0) - { - if($data['province']['number'] > $data['city']['number']) - { - return $data['province']['rules']; - } - return $data['city']['rules']; - } else { - if($data['province']['number'] > 0) - { - return $data['province']['rules']; - } - } - } - return $rules[0]; - } -} -?> \ No newline at end of file diff --git a/application/plugins/freightfee/admin/Admin.php b/application/plugins/freightfee/admin/Admin.php deleted file mode 100755 index 2486b515f..000000000 --- a/application/plugins/freightfee/admin/Admin.php +++ /dev/null @@ -1,128 +0,0 @@ -assign('data', Service::DataHandle($ret['data'])); - return $this->fetch('../../../plugins/view/freightfee/admin/admin/index'); - } else { - return $ret['msg']; - } - } - - /** - * 编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function saveinfo($params = []) - { - $ret = PluginsService::PluginsData('freightfee'); - if($ret['code'] == 0) - { - // 是否 - $is_whether_list = [ - 0 => array('id' => 0, 'name' => '按件数', 'checked' => true), - 1 => array('id' => 1, 'name' => '按重量'), - ]; - - // 地区 - $region = RegionService::RegionItems(['pid'=>0, 'field'=>'id,name']); - if(!empty($region)) - { - $region = array_map(function($v) - { - $v['items'] = RegionService::RegionItems(['pid'=>$v['id'], 'field'=>'id,name']); - return $v; - }, $region); - } - - // 支付方式 - $this->assign('payment_list', PaymentService::PaymentList(['is_enable'=>1, 'is_open_user'=>1])); - - // 商品分类 - $this->assign('goods_category_list', GoodsService::GoodsCategoryAll()); - - $this->assign('region_list', $region); - $this->assign('is_whether_list', $is_whether_list); - $this->assign('data', Service::DataHandle($ret['data'])); - return $this->fetch('../../../plugins/view/freightfee/admin/admin/saveinfo'); - } else { - return $ret['msg']; - } - } - - /** - * 数据保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - return PluginsService::PluginsDataSave(['plugins'=>'freightfee', 'data'=>$params]); - } - - /** - * 商品搜索 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function goodssearch($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 搜索数据 - return Service::GoodsSearchList($params); - } -} -?> \ No newline at end of file diff --git a/application/plugins/freightfee/config.json b/application/plugins/freightfee/config.json deleted file mode 100755 index 0b62e5749..000000000 --- a/application/plugins/freightfee/config.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "base":{ - "plugins":"freightfee", - "name":"运费设置", - "logo":"\/static\/upload\/images\/plugins_freightfee\/2019\/03\/18\/1552894366387964.jpg", - "author":"Devil", - "author_url":"https:\/\/shopxo.net\/", - "version":"1.2.0", - "desc":"快递运费设置", - "apply_terminal":[ - "pc", - "h5", - "app", - "alipay", - "weixin", - "baidu" - ], - "apply_version":[ - "1.5.0" - ], - "is_home":false - }, - "hook":{ - "plugins_css":[ - "app\\plugins\\freightfee\\Hook" - ], - "plugins_service_buy_handle":[ - "app\\plugins\\freightfee\\Hook" - ], - "plugins_view_goods_detail_title":[ - "app\\plugins\\freightfee\\Hook" - ] - } -} \ No newline at end of file diff --git a/application/plugins/freightfee/service/Service.php b/application/plugins/freightfee/service/Service.php deleted file mode 100644 index 751f3fb1a..000000000 --- a/application/plugins/freightfee/service/Service.php +++ /dev/null @@ -1,132 +0,0 @@ -where('id', 'in', explode('-', $v['region_show']))->column('name')); - } - - // 商品列表 - $data['goods_list'] = empty($data['goods_ids']) ? [] : self::GoodsList($data['goods_ids']); - } - return $data; - } - - /** - * 商品搜索 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-06T21:31:53+0800 - * @param [array] $params [输入参数] - */ - public static function GoodsSearchList($params = []) - { - // 条件 - $where = [ - ['g.is_delete_time', '=', 0], - ['g.is_shelves', '=', 1] - ]; - - // 关键字 - if(!empty($params['keywords'])) - { - $where[] = ['g.title', 'like', '%'.$params['keywords'].'%']; - } - - // 分类id - if(!empty($params['category_id'])) - { - $category_ids = GoodsService::GoodsCategoryItemsIds([$params['category_id']], 1); - $category_ids[] = $params['category_id']; - $where[] = ['gci.category_id', 'in', $category_ids]; - } - - // 指定字段 - $field = 'g.id,g.title'; - - // 获取数据 - return GoodsService::CategoryGoodsList(['where'=>$where, 'm'=>0, 'n'=>100, 'field'=>$field, 'is_admin_access'=>1]); - } - - /** - * 商品列表 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-06T21:31:53+0800 - * @param [string] $goods_ids [商品id] - */ - public static function GoodsList($goods_ids = []) - { - // 商品id - if(empty($goods_ids)) - { - return []; - } else { - $goods_ids = explode(',', $goods_ids); - } - - // 条件 - $where = [ - ['g.is_delete_time', '=', 0], - ['g.is_shelves', '=', 1], - ['g.id', 'in', $goods_ids], - ]; - - // 指定字段 - $field = 'g.id,g.title,g.images,g.price'; - - // 获取数据 - $ret = GoodsService::CategoryGoodsList(['where'=>$where, 'm'=>0, 'n'=>100, 'field'=>$field]); - return $ret['data']; - } -} -?> \ No newline at end of file diff --git a/application/plugins/homemiddleadv/Hook.php b/application/plugins/homemiddleadv/Hook.php deleted file mode 100755 index bacf371a4..000000000 --- a/application/plugins/homemiddleadv/Hook.php +++ /dev/null @@ -1,138 +0,0 @@ -StyleCss($params); - break; - - // 楼层数据上面 - case 'plugins_view_home_floor_top' : - $ret = $this->HomeFloorTopAdv($params); - break; - default : - $ret = ''; - } - return $ret; - } - } - - /** - * 首页楼层顶部广告 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-06T16:16:34+0800 - * @param [array] $params [输入参数] - */ - public function HomeFloorTopAdv($params = []) - { - // 获取应用数据 - $ret = PluginsService::PluginsData('homemiddleadv'); - if($ret['code'] == 0) - { - // 有效时间 - if(!empty($ret['data']['time_start'])) - { - // 是否已开始 - if(strtotime($ret['data']['time_start']) > time()) - { - return ''; - } - } - if(!empty($ret['data']['time_end'])) - { - // 是否已结束 - if(strtotime($ret['data']['time_end']) < time()) - { - return ''; - } - } - } - - // 获取图片列表 - $ret = Service::DataList(); - if($ret['code'] == 0 && !empty($ret['data'])) - { - $this->assign('data_list', $ret['data']); - return $this->fetch('../../../plugins/view/homemiddleadv/index/public/content'); - } - return ''; - } - - /** - * css - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-06T16:16:34+0800 - * @param [array] $params [输入参数] - */ - public function StyleCss($params = []) - { - return ''; - } -} -?> \ No newline at end of file diff --git a/application/plugins/homemiddleadv/admin/Admin.php b/application/plugins/homemiddleadv/admin/Admin.php deleted file mode 100755 index 7a15aab7b..000000000 --- a/application/plugins/homemiddleadv/admin/Admin.php +++ /dev/null @@ -1,192 +0,0 @@ -assign('data_list', $list['data']); - - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/homemiddleadv/admin/admin/index'); - } else { - return $ret['msg']; - } - } - - /** - * 编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function saveinfo($params = []) - { - $ret = PluginsService::PluginsData('homemiddleadv', null, false); - if($ret['code'] == 0) - { - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/homemiddleadv/admin/admin/saveinfo'); - } else { - return $ret['msg']; - } - } - - /** - * 数据保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - $list = Service::DataList(); - $params['data_list'] = $list['data']; - return PluginsService::PluginsDataSave(['plugins'=>'homemiddleadv', 'data'=>$params]); - } - - - - /** - * 数据列表页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function dataindex($params = []) - { - $list = Service::DataList(); - if($list['code'] == 0) - { - $this->assign('data_list', $list['data']); - return $this->fetch('../../../plugins/view/homemiddleadv/admin/admin/dataindex'); - } else { - return $list['msg']; - } - } - - /** - * 数据列表编辑 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function datainfo($params = []) - { - // 数据 - $data = []; - if(!empty($params['id'])) - { - $data_params = [ - 'get_id' => $params['id'], - ]; - $ret = Service::DataList($data_params); - $data = empty($ret['data']) ? [] : $ret['data']; - } - $this->assign('data', $data); - - return $this->fetch('../../../plugins/view/homemiddleadv/admin/admin/datainfo'); - } - - /** - * 数据列表保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function datasave($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 开始处理 - return Service::DataSave($params); - } - - /** - * 数据列表删除 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-15T11:03:30+0800 - * @param [array] $params [输入参数] - */ - public function datadelete($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 开始处理 - return Service::DataDelete($params); - } - - /** - * 数据列表状态更新 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2017-01-12T22:23:06+0800 - * @param [array] $params [输入参数] - */ - public function datastatusupdate($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 开始处理 - return Service::DataStatusUpdate($params); - } -} -?> \ No newline at end of file diff --git a/application/plugins/homemiddleadv/config.json b/application/plugins/homemiddleadv/config.json deleted file mode 100755 index f6782cac7..000000000 --- a/application/plugins/homemiddleadv/config.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "base":{ - "plugins":"homemiddleadv", - "name":"首页中间广告", - "logo":"\/static\/upload\/images\/plugins_homemiddleadv\/2019\/04\/22\/1555917416820968.jpg", - "author":"Devil", - "author_url":"https:\/\/shopxo.net\/", - "version":"1.0.0", - "desc":"首页中间广告,推荐位", - "apply_terminal":[ - "pc", - "h5" - ], - "apply_version":[ - "1.5.0" - ], - "is_home":false - }, - "hook":{ - "plugins_common_header":[ - "app\\plugins\\homemiddleadv\\Hook" - ], - "plugins_view_home_floor_top":[ - "app\\plugins\\homemiddleadv\\Hook" - ] - } -} \ No newline at end of file diff --git a/application/plugins/homemiddleadv/service/Service.php b/application/plugins/homemiddleadv/service/Service.php deleted file mode 100755 index c9b60e609..000000000 --- a/application/plugins/homemiddleadv/service/Service.php +++ /dev/null @@ -1,224 +0,0 @@ - 'length', - 'key_name' => 'name', - 'checked_data' => '2,60', - 'error_msg' => '名称长度 2~60 个字符', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'images_url', - 'checked_data' => '255', - 'error_msg' => '请上传图片', - ], - [ - 'checked_type' => 'fun', - 'key_name' => 'url', - 'is_checked' => 1, - 'checked_data' => 'CheckUrl', - 'error_msg' => 'url格式有误', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 附件 - $data_fields = ['images_url']; - $attachment = ResourcesService::AttachmentParams($params, $data_fields); - - // 数据 - $data = [ - 'name' => $params['name'], - 'url' => $params['url'], - 'images_url' => $attachment['data']['images_url'], - 'is_enable' => isset($params['is_enable']) ? intval($params['is_enable']) : 0, - 'is_new_window_open' => isset($params['is_new_window_open']) ? intval($params['is_new_window_open']) : 0, - 'operation_time' => time(), - ]; - - // 原有数据 - $ret = PluginsService::PluginsData('homemiddleadv', null, false); - - // 数据id - $data['id'] = (empty($params['id']) || empty($ret['data']) || empty($ret['data']['data_list'][$params['id']])) ? date('YmdHis').GetNumberCode(6) : $params['id']; - $ret['data']['data_list'][$data['id']] = $data; - - // 保存 - return PluginsService::PluginsDataSave(['plugins'=>'homemiddleadv', 'data'=>$ret['data']]); - } - - /** - * 数据列表删除 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-12-18 - * @desc description - * @param [array] $params [输入参数] - */ - public static function DataDelete($params = []) - { - // 请求参数 - $p = [ - [ - 'checked_type' => 'empty', - 'key_name' => 'id', - 'error_msg' => '操作id有误', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 原有数据 - $ret = PluginsService::PluginsData('homemiddleadv', null, false); - $ret['data']['data_list'] = (empty($ret['data']) || empty($ret['data']['data_list'])) ? [] : $ret['data']['data_list']; - - // 删除操作 - if(isset($ret['data']['data_list'][$params['id']])) - { - unset($ret['data']['data_list'][$params['id']]); - } - - // 保存 - return PluginsService::PluginsDataSave(['plugins'=>'homemiddleadv', 'data'=>$ret['data']]); - } - - /** - * 数据列表状态更新 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-12-18 - * @desc description - * @param [array] $params [输入参数] - */ - public static function DataStatusUpdate($params = []) - { - // 请求参数 - $p = [ - [ - 'checked_type' => 'empty', - 'key_name' => 'id', - 'error_msg' => '操作id有误', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'field', - 'error_msg' => '操作字段有误', - ], - [ - 'checked_type' => 'in', - 'key_name' => 'state', - 'checked_data' => [0,1], - 'error_msg' => '状态有误', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 原有数据 - $ret = PluginsService::PluginsData('homemiddleadv', null, false); - $ret['data']['data_list'] = (empty($ret['data']) || empty($ret['data']['data_list'])) ? [] : $ret['data']['data_list']; - - // 删除操作 - if(isset($ret['data']['data_list'][$params['id']]) && isset($ret['data']['data_list'][$params['id']][$params['field']])) - { - $ret['data']['data_list'][$params['id']][$params['field']] = intval($params['state']); - $ret['data']['data_list'][$params['id']]['operation_time'] = time(); - } - - // 保存 - return PluginsService::PluginsDataSave(['plugins'=>'homemiddleadv', 'data'=>$ret['data']]); - } -} -?> \ No newline at end of file diff --git a/application/plugins/membershiplevel/Hook.php b/application/plugins/membershiplevel/Hook.php deleted file mode 100755 index 28a3c0135..000000000 --- a/application/plugins/membershiplevel/Hook.php +++ /dev/null @@ -1,203 +0,0 @@ -module()); - $controller_name = strtolower(request()->controller()); - $action_name = strtolower(request()->action()); - - // 页面参数 - $input = input(); - - $ret = ''; - switch($params['hook_name']) - { - case 'plugins_css' : - $ret = __MY_ROOT_PUBLIC__.'static/plugins/css/membershiplevel/index/style.css'; - break; - - // 商品数据处理后 - case 'plugins_service_goods_handle_end' : - if($module_name != 'admin') - { - $this->GoodsHandleEnd($params['goods']); - } - break; - - // 商品规格基础数据 - case 'plugins_service_goods_spec_base' : - $this->GoodsSpecBase($params['spec_base']); - break; - - // 满减优惠 - case 'plugins_service_buy_handle' : - $ret = $this->FullReductionCalculate($params); - break; - - // 用户登录成功信息纪录钩子 icon处理 - case 'plugins_service_user_login_success_record' : - $ret = $this->UserLoginSuccessIconHandle($params); - break; - } - return $ret; - } else { - return ''; - } - } - - /** - * 用户icon处理 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-04-28 - * @desc description - * @param [array] $params [输入参数] - */ - private function UserLoginSuccessIconHandle($params = []) - { - if(!empty($params['user'])) - { - // 用户等级 - $level = Service::UserLevelMatching($params['user']); - if(!empty($level) && $level['images_url']) - { - $params['user']['icon'] = $level['images_url']; - } - } - return DataReturn('处理成功', 0); - } - - /** - * 满减计算 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-03-21 - * @desc description - * @param [array] $params [输入参数] - */ - public function FullReductionCalculate($params = []) - { - // 用户等级 - $level = Service::UserLevelMatching(); - if(!empty($level) && $level['order_price'] > 0 && $level['full_reduction_price'] > 0 && $params['data']['base']['total_price'] >= $level['order_price']) - { - // 扩展展示数据 - $show_name = $level['name'].'-满减'; - $params['data']['extension_data'][] = [ - 'name' => $show_name, - 'price' => $level['full_reduction_price'], - 'type' => 1, - 'tips' => '-¥'.$level['full_reduction_price'].'元', - ]; - - // 金额 - $params['data']['base']['preferential_price'] += $level['full_reduction_price']; - $params['data']['base']['actual_price'] -= $level['full_reduction_price']; - - return DataReturn('处理成功', 0); - } - return DataReturn('无需处理', 0); - } - - /** - * 商品处理结束钩子 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-03-26 - * @desc description - * @param [array] &$goods [商品数据] - */ - private function GoodsHandleEnd(&$goods = []) - { - // 用户等级 - $level = Service::UserLevelMatching(); - if(!empty($level) && $level['discount_rate'] > 0) - { - // 无价格字段则不处理 - if(isset($goods['price'])) - { - $goods['original_price'] = $goods['price']; - $goods['price'] = Service::PriceCalculate($goods['price'], $level['discount_rate'], 0); - $price_title = empty($level['name']) ? '会员价' : $level['name']; - $goods['show_field_price_text'] = ''.$price_title.''; - } - - // 最低价最高价 - if(isset($goods['min_price'])) - { - $goods['min_price'] = Service::PriceCalculate($goods['min_price'], $level['discount_rate'], 0); - } - if(isset($goods['max_price'])) - { - $goods['max_price'] = Service::PriceCalculate($goods['max_price'], $level['discount_rate'], 0); - } - } - } - - /** - * 商品规格基础数据 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-03-26 - * @desc description - * @param [array] &$spec_base [规格信息] - */ - private function GoodsSpecBase(&$spec_base = []) - { - // 用户等级 - $level = Service::UserLevelMatching(); - if(!empty($level) && $level['discount_rate'] > 0 && isset($spec_base['price'])) - { - if(empty($spec_base['original_price'])) - { - $spec_base['original_price'] = $spec_base['price']; - } - $spec_base['price'] = Service::PriceCalculate($spec_base['price'], $level['discount_rate'], 0); - } - } -} -?> \ No newline at end of file diff --git a/application/plugins/membershiplevel/admin/Admin.php b/application/plugins/membershiplevel/admin/Admin.php deleted file mode 100755 index 2b5f4b985..000000000 --- a/application/plugins/membershiplevel/admin/Admin.php +++ /dev/null @@ -1,88 +0,0 @@ -assign('members_level_rules_list', Service::$members_level_rules_list); - - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/membershiplevel/admin/admin/index'); - } else { - return $ret['msg']; - } - } - - /** - * 编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function saveinfo($params = []) - { - $ret = PluginsService::PluginsData('membershiplevel', Service::$base_config_attachment_field, false); - if($ret['code'] == 0) - { - // 等级规则 - $this->assign('members_level_rules_list', Service::$members_level_rules_list); - - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/membershiplevel/admin/admin/saveinfo'); - } else { - return $ret['msg']; - } - } - - /** - * 数据保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - // 会员等级数据 - $level = Service::LevelDataList(); - $params['level_list'] = $level['data']; - return PluginsService::PluginsDataSave(['plugins'=>'membershiplevel', 'data'=>$params]); - } -} -?> \ No newline at end of file diff --git a/application/plugins/membershiplevel/admin/Level.php b/application/plugins/membershiplevel/admin/Level.php deleted file mode 100644 index f8c9316d6..000000000 --- a/application/plugins/membershiplevel/admin/Level.php +++ /dev/null @@ -1,135 +0,0 @@ -assign('data_list', $ret['data']); - $this->assign('params', $params); - return $this->fetch('../../../plugins/view/membershiplevel/admin/level/index'); - } else { - return $ret['msg']; - } - } - - /** - * 等级编辑 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function saveinfo($params = []) - { - // 数据 - $data = []; - if(!empty($params['id'])) - { - $data_params = [ - 'get_id' => $params['id'], - ]; - $ret = Service::LevelDataList($data_params); - $data = empty($ret['data']) ? [] : $ret['data']; - } - $this->assign('data', $data); - - return $this->fetch('../../../plugins/view/membershiplevel/admin/level/saveinfo'); - } - - /** - * 等级保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 开始处理 - return Service::LevelDataSave($params); - } - - /** - * 等级状态更新 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2017-01-12T22:23:06+0800 - * @param [array] $params [输入参数] - */ - public function statusupdate($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 开始处理 - $params['data_field'] = 'level_list'; - return Service::DataStatusUpdate($params); - } - - /** - * 等级删除 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-15T11:03:30+0800 - * @param [array] $params [输入参数] - */ - public function delete($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 开始处理 - $params['data_field'] = 'level_list'; - return Service::DataDelete($params); - } -} -?> \ No newline at end of file diff --git a/application/plugins/membershiplevel/config.json b/application/plugins/membershiplevel/config.json deleted file mode 100755 index 73b1cb945..000000000 --- a/application/plugins/membershiplevel/config.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "base":{ - "plugins":"membershiplevel", - "name":"会员等级", - "logo":"\/static\/upload\/images\/plugins_membershiplevel\/2019\/04\/25\/1556163954923228.jpg", - "author":"Devil", - "author_url":"https:\/\/shopxo.net\/", - "version":"1.0.0", - "desc":"根据不同等级设置不同折扣,满减优惠", - "apply_terminal":[ - "pc", - "h5", - "app", - "alipay", - "weixin", - "baidu" - ], - "apply_version":[ - "1.5.0" - ], - "is_home":false - }, - "hook":{ - "plugins_css":[ - "app\\plugins\\membershiplevel\\Hook" - ], - "plugins_service_goods_handle_end":[ - "app\\plugins\\membershiplevel\\Hook" - ], - "plugins_service_goods_spec_base":[ - "app\\plugins\\membershiplevel\\Hook" - ], - "plugins_service_buy_handle":[ - "app\\plugins\\membershiplevel\\Hook" - ], - "plugins_service_user_login_success_record":[ - "app\\plugins\\membershiplevel\\Hook" - ] - } -} \ No newline at end of file diff --git a/application/plugins/membershiplevel/service/Service.php b/application/plugins/membershiplevel/service/Service.php deleted file mode 100755 index 05fa5f84b..000000000 --- a/application/plugins/membershiplevel/service/Service.php +++ /dev/null @@ -1,460 +0,0 @@ - ['value' => 0, 'name' => '积分(可用积分)', 'checked' => true], - 1 => ['value' => 1, 'name' => '消费总额(已完成订单)'], - ]; - - /** - * 获取等级数据列表 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-04-22 - * @desc description - * @param [array] $params [输入参数] - */ - public static function LevelDataList($params = []) - { - // 数据字段 - $data_field = 'level_list'; - - // 获取数据 - $ret = PluginsService::PluginsData('membershiplevel', self::$base_config_attachment_field); - $data = (empty($ret['data']) || empty($ret['data'][$data_field])) ? [] : $ret['data'][$data_field]; - - // 数据处理 - return self::LevelDataHandle($data, $params); - } - - /** - * 用户等级数据列表处理 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-04-27T01:08:23+0800 - * @param [array] $data [等级数据] - * @param [array] $params [输入参数] - */ - public static function LevelDataHandle($data, $params = []) - { - if(!empty($data)) - { - $common_is_enable_tips = lang('common_is_enable_tips'); - foreach($data as &$v) - { - // 是否启用 - $v['is_enable_text'] = $common_is_enable_tips[$v['is_enable']]['name']; - - // 图片地址 - $v['images_url_old'] = $v['images_url']; - $v['images_url'] = ResourcesService::AttachmentPathViewHandle($v['images_url']); - - // 时间 - $v['operation_time_time'] = empty($v['operation_time']) ? '' : date('Y-m-d H:i:s', $v['operation_time']); - $v['operation_time_date'] = empty($v['operation_time']) ? '' : date('Y-m-d', $v['operation_time']); - } - } - - // 是否读取单条 - if(!empty($params['get_id']) && isset($data[$params['get_id']])) - { - $data = $data[$params['get_id']]; - } - - return DataReturn('处理成功', 0, $data); - } - - /** - * 获取等级数据保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-04-22 - * @desc description - * @param [array] $params [输入参数] - */ - public static function LevelDataSave($params = []) - { - // 请求参数 - $p = [ - [ - 'checked_type' => 'length', - 'key_name' => 'name', - 'checked_data' => '1,30', - 'error_msg' => '名称长度 1~30 个字符', - ], - [ - 'checked_type' => 'isset', - 'key_name' => 'rules_min', - 'error_msg' => '请填写规则最小值', - ], - [ - 'checked_type' => 'isset', - 'key_name' => 'rules_max', - 'error_msg' => '请填写规则最大值', - ], - [ - 'checked_type' => 'max', - 'key_name' => 'discount_rate', - 'checked_data' => 0.99, - 'is_checked' => 1, - 'error_msg' => '折扣率应输入 0.00~0.99 的数字,小数保留两位', - ], - [ - 'checked_type' => 'fun', - 'key_name' => 'order_price', - 'checked_data' => 'CheckPrice', - 'is_checked' => 1, - 'error_msg' => '请输入有效的订单满金额', - ], - [ - 'checked_type' => 'fun', - 'key_name' => 'full_reduction_price', - 'checked_data' => 'CheckPrice', - 'is_checked' => 1, - 'error_msg' => '请输入有效的满减金额', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 请求参数 - $p = [ - [ - 'checked_type' => 'eq', - 'key_name' => 'rules_min', - 'checked_data' => $params['rules_max'], - 'error_msg' => '规则最小值不能最大值相等', - ], - [ - 'checked_type' => 'eq', - 'key_name' => 'rules_max', - 'checked_data' => $params['rules_min'], - 'error_msg' => '规则最大值不能最小值相等', - ], - ]; - if(intval($params['rules_max']) > 0) - { - $p[] = [ - 'checked_type' => 'max', - 'key_name' => 'rules_min', - 'checked_data' => intval($params['rules_max']), - 'error_msg' => '规则最小值不能大于最大值['.intval($params['rules_max']).']', - ]; - $p[] = [ - 'checked_type' => 'min', - 'key_name' => 'rules_max', - 'checked_data' => intval($params['rules_min']), - 'error_msg' => '规则最大值不能小于最小值['.intval($params['rules_min']).']', - ]; - } - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 数据字段 - $data_field = 'level_list'; - - // 附件 - $data_fields = ['images_url']; - $attachment = ResourcesService::AttachmentParams($params, $data_fields); - - // 数据 - $data = [ - 'name' => $params['name'], - 'rules_min' => $params['rules_min'], - 'rules_max' => $params['rules_max'], - 'images_url' => $attachment['data']['images_url'], - 'is_enable' => isset($params['is_enable']) ? intval($params['is_enable']) : 0, - 'discount_rate' => isset($params['discount_rate']) ? $params['discount_rate'] : 0, - 'order_price' => empty($params['order_price']) ? 0.00 : PriceNumberFormat($params['order_price']), - 'full_reduction_price' => empty($params['full_reduction_price']) ? 0.00 : PriceNumberFormat($params['full_reduction_price']), - 'operation_time' => time(), - ]; - - // 原有数据 - $ret = PluginsService::PluginsData('membershiplevel', self::$base_config_attachment_field, false); - - // 数据id - $data['id'] = (empty($params['id']) || empty($ret['data']) || empty($ret['data'][$data_field][$params['id']])) ? date('YmdHis').GetNumberCode(6) : $params['id']; - $ret['data'][$data_field][$data['id']] = $data; - - // 保存 - return PluginsService::PluginsDataSave(['plugins'=>'membershiplevel', 'data'=>$ret['data']]); - } - - /** - * 数据删除 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-12-18 - * @desc description - * @param [array] $params [输入参数] - */ - public static function DataDelete($params = []) - { - // 请求参数 - $p = [ - [ - 'checked_type' => 'empty', - 'key_name' => 'id', - 'error_msg' => '操作id有误', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 数据字段 - $data_field = empty($params['data_field']) ? 'data_list' : $params['data_field']; - - // 原有数据 - $ret = PluginsService::PluginsData('membershiplevel', self::$base_config_attachment_field, false); - $ret['data'][$data_field] = (empty($ret['data']) || empty($ret['data'][$data_field])) ? [] : $ret['data'][$data_field]; - - // 删除操作 - if(isset($ret['data'][$data_field][$params['id']])) - { - unset($ret['data'][$data_field][$params['id']]); - } - - // 保存 - return PluginsService::PluginsDataSave(['plugins'=>'membershiplevel', 'data'=>$ret['data']]); - } - - /** - * 数据状态更新 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-12-18 - * @desc description - * @param [array] $params [输入参数] - */ - public static function DataStatusUpdate($params = []) - { - // 请求参数 - $p = [ - [ - 'checked_type' => 'empty', - 'key_name' => 'id', - 'error_msg' => '操作id有误', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'field', - 'error_msg' => '操作字段有误', - ], - [ - 'checked_type' => 'in', - 'key_name' => 'state', - 'checked_data' => [0,1], - 'error_msg' => '状态有误', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 数据字段 - $data_field = empty($params['data_field']) ? 'data_list' : $params['data_field']; - - // 原有数据 - $ret = PluginsService::PluginsData('membershiplevel', self::$base_config_attachment_field, false); - $ret['data'][$data_field] = (empty($ret['data']) || empty($ret['data'][$data_field])) ? [] : $ret['data'][$data_field]; - - // 删除操作 - if(isset($ret['data'][$data_field][$params['id']]) && is_array($ret['data'][$data_field][$params['id']])) - { - $ret['data'][$data_field][$params['id']][$params['field']] = intval($params['state']); - $ret['data'][$data_field][$params['id']]['operation_time'] = time(); - } - - // 保存 - return PluginsService::PluginsDataSave(['plugins'=>'membershiplevel', 'data'=>$ret['data']]); - } - - /** - * 优惠价格计算 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-03-26 - * @desc description - * @param [string] $price [商品展示金额] - * @param [int] $plugins_discount [折扣系数] - * @param [int] $plugins_price [减金额] - */ - public static function PriceCalculate($price, $plugins_discount = 0, $plugins_price = 0) - { - if($plugins_discount <= 0 && $plugins_price <= 0) - { - return $price; - } - - // 折扣 - if($plugins_discount > 0) - { - if(stripos($price, '-') !== false) - { - $text = explode('-', $price); - $min_price = $text[0]*$plugins_discount; - $max_price = $text[1]*$plugins_discount; - $price = ($min_price <= 0) ? '0.00' : PriceNumberFormat($min_price); - $price .= '-'.(($max_price <= 0) ? '0.00' : PriceNumberFormat($max_price)); - } else { - $price = (float) $price *$plugins_discount; - $price = ($price <= 0) ? '0.00' : PriceNumberFormat($price); - } - } - - // 减金额 - if($plugins_price > 0) - { - if(stripos($price, '-') !== false) - { - $text = explode('-', $price); - $min_price = $text[0]-$plugins_price; - $max_price = $text[1]-$plugins_price; - $price = ($min_price <= 0) ? '0.00' : PriceNumberFormat($min_price); - $price .= '-'.(($max_price <= 0) ? '0.00' : PriceNumberFormat($max_price)); - } else { - $price = (float) $price-$plugins_price; - $price = ($price <= 0) ? '0.00' : PriceNumberFormat($price); - } - } - return $price; - } - - /** - * 用户等级匹配 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-04-28 - * @desc description - * @param [array] $user [用户信息] - */ - public static function UserLevelMatching($user = []) - { - // 未指定用户信息,则从服务层读取 - if(empty($user)) - { - $user = UserService::LoginUserInfo(); - } - if(!empty($user)) - { - // 缓存key - $key = 'plugins_membershiplevel_cache_user_level_'.$user['id']; - $level = cache($key); - - // 应用配置 - if(empty($level) || config('app_debug') == true) - { - $base = PluginsService::PluginsData('membershiplevel', Service::$base_config_attachment_field); - if(!empty($base['data']['level_list'])) - { - // 规则 - $level_rules = isset($base['data']['level_rules']) ? $base['data']['level_rules'] : 0; - - // 匹配类型 - $value = 0; - switch($level_rules) - { - // 积分(可用积分) - case 0 : - $value = isset($user['integral']) ? intval($user['integral']) : 0; - break; - - // 消费总额(已完成订单) - // 订单状态(0待确认, 1已确认/待支付, 2已支付/待发货, 3已发货/待收货, 4已完成, 5已取消, 6已关闭) - case 1 : - $where = ['user_id'=>$user['id'], 'status'=>4]; - $value = (float) Db::name('Order')->where($where)->sum('total_price'); - break; - } - - // 匹配相应的等级 - $level_list = self::LevelDataHandle($base['data']['level_list']); - foreach($level_list['data'] as $rules) - { - if(isset($rules['is_enable']) && $rules['is_enable'] == 1) - { - // 0-* - if($rules['rules_min'] <= 0 && $rules['rules_max'] > 0 && $value < $rules['rules_max']) - { - $level = $rules; - break; - } - - // *-* - if($rules['rules_min'] > 0 && $rules['rules_max'] > 0 && $value >= $rules['rules_min'] && $value < $rules['rules_max']) - { - $level = $rules; - break; - } - - // *-0 - if($rules['rules_max'] <= 0 && $rules['rules_min'] > 0 && $value > $rules['rules_min']) - { - $level = $rules; - break; - } - } - } - - // 等级icon - if(!empty($level) && empty($level['images_url'])) - { - $level['images_url'] = empty($base['data']['default_level_images']) ? config('shopxo.attachment_host').'/static/plugins/images/membershiplevel/level-default-images.png' : $base['data']['default_level_images']; - } - cache($key, $level); - } - } - return $level; - } - return []; - } -} -?> \ No newline at end of file diff --git a/application/plugins/newuserreduction/Hook.php b/application/plugins/newuserreduction/Hook.php deleted file mode 100755 index dbabd7cdf..000000000 --- a/application/plugins/newuserreduction/Hook.php +++ /dev/null @@ -1,156 +0,0 @@ -ReductionCalculate($params); - break; - - default : - $ret = ''; - } - return $ret; - } - } - - /** - * 立减计算 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-03-21 - * @desc description - * @param [array] $params [输入参数] - */ - public function ReductionCalculate($params = []) - { - $ret = PluginsService::PluginsData('newuserreduction'); - if($ret['code'] == 0) - { - // 是否设置需满金额 - if(isset($ret['data']['full_amount']) && $ret['data']['full_amount'] > 0 && $params['data']['base']['total_price'] < $ret['data']['full_amount']) - { - return DataReturn('无需处理', 0); - } - - // 默认金额 - $price = isset($ret['data']['price']) ? (float) $ret['data']['price'] : 0; - $unit = '元'; - $price_show = $price; - if($price > 0 && $this->IsNewUser($params)) - { - // 是否随机 - if(isset($ret['data']['is_random']) && $ret['data']['is_random'] == 1) - { - // 随机金额需要提交步骤生效 - if(!isset($params['params']['is_order_submit']) || $params['params']['is_order_submit'] != 1) - { - $price = 0; - $price_show = '随机减'; - $unit = ''; - } else { - $price = $this->RandomFloat(0, $price); - $price_show = $price; - } - } - - // 扩展展示数据 - $show_name = empty($ret['data']['show_name']) ? '新用户立减' : $ret['data']['show_name']; - $params['data']['extension_data'][] = [ - 'name' => $show_name, - 'price' => $price, - 'type' => 0, - 'tips' => '-¥'.$price_show.$unit, - ]; - - // 金额 - $params['data']['base']['preferential_price'] += $price; - if($params['data']['base']['actual_price'] > 0) - { - $params['data']['base']['actual_price'] -= $price; - } - } - return DataReturn('无需处理', 0); - } else { - return $ret['msg']; - } - } - - /** - * 是否满足新用户条件 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-03-25 - * @desc description - * @param [array] $params [输入参数] - */ - private function IsNewUser($params = []) - { - // 用户信息是否存在 - if(empty($params['params']['user'])) - { - return false; - } - - // 获取用户订单 - // 订单状态(0待确认, 1已确认/待支付, 2已支付/待发货, 3已发货/待收货, 4已完成, 5已取消, 6已关闭) - $where = [ - ['user_id', '=', intval($params['params']['user']['id'])], - ['status', '<=', 4], - ]; - $temp = Db::name('Order')->where($where)->count(); - return empty($temp); - } - - /** - * 生成随机金额 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-03-25 - * @desc description - * @param [int] $min [最小值] - * @param [int] $max [最大值] - */ - private function RandomFloat($min = 0, $max = 10) - { - return sprintf("%.2f", $min+mt_rand()/mt_getrandmax()*($max-$min)); - } -} -?> \ No newline at end of file diff --git a/application/plugins/newuserreduction/admin/Admin.php b/application/plugins/newuserreduction/admin/Admin.php deleted file mode 100755 index 5c7e30fa4..000000000 --- a/application/plugins/newuserreduction/admin/Admin.php +++ /dev/null @@ -1,85 +0,0 @@ -assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/newuserreduction/admin/admin/index'); - } else { - return $ret['msg']; - } - } - - /** - * 编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function saveinfo($params = []) - { - $ret = PluginsService::PluginsData('newuserreduction'); - if($ret['code'] == 0) - { - // 是否 - $is_whether_list = [ - 0 => array('id' => 0, 'name' => '否', 'checked' => true), - 1 => array('id' => 1, 'name' => '是'), - ]; - - $this->assign('is_whether_list', $is_whether_list); - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/newuserreduction/admin/admin/saveinfo'); - } else { - return $ret['msg']; - } - } - - /** - * 数据保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - return PluginsService::PluginsDataSave(['plugins'=>'newuserreduction', 'data'=>$params]); - } -} -?> \ No newline at end of file diff --git a/application/plugins/newuserreduction/config.json b/application/plugins/newuserreduction/config.json deleted file mode 100755 index 3bbf82619..000000000 --- a/application/plugins/newuserreduction/config.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "base":{ - "plugins":"newuserreduction", - "name":"新用户立减", - "logo":"\/static\/upload\/images\/plugins_newuserreduction\/2019\/03\/25\/1553483752670109.jpg", - "author":"Devil", - "author_url":"https:\/\/shopxo.net\/", - "version":"1.2.0", - "desc":"新用户立减优惠", - "apply_terminal":[ - "pc", - "h5", - "app", - "alipay", - "weixin", - "baidu" - ], - "apply_version":[ - "1.5.0" - ], - "is_home":false - }, - "hook":{ - "plugins_service_buy_handle":[ - "app\\plugins\\newuserreduction\\Hook" - ] - } -} \ No newline at end of file diff --git a/application/plugins/share/Hook.php b/application/plugins/share/Hook.php deleted file mode 100755 index 4370b4877..000000000 --- a/application/plugins/share/Hook.php +++ /dev/null @@ -1,114 +0,0 @@ -Content($params); - break; - - case 'plugins_view_goods_detail_photo_bottom' : - $ret = $this->GoodsPhotoBottom($params); - break; - } - } - return $ret; - } - - /** - * 商品页面相册底部钩子 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-04-22T02:08:26+0800 - * @param [array] $params [输入参数] - */ - private function GoodsPhotoBottom($params = []) - { - // 获取应用数据 - $ret = PluginsService::PluginsData('share', ['pic']); - if($ret['code'] == 0 && isset($ret['data']['is_goods_detail']) && $ret['data']['is_goods_detail'] == 1) - { - // html - $html ='
    '; - $html .= ' 分享'; - $html .= '
    '; - } - return ''; - } - - /** - * 视图html - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-06T16:16:34+0800 - * @param [array] $params [输入参数] - */ - private function Content($params = []) - { - // 获取应用数据 - $ret = PluginsService::PluginsData('share', ['pic']); - if($ret['code'] == 0) - { - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/share/index/public/content'); - } else { - return $ret['msg']; - } - } -} -?> \ No newline at end of file diff --git a/application/plugins/share/admin/Admin.php b/application/plugins/share/admin/Admin.php deleted file mode 100755 index 5afab27b2..000000000 --- a/application/plugins/share/admin/Admin.php +++ /dev/null @@ -1,90 +0,0 @@ - ['value' => 0, 'name' => '关闭', 'checked' => true], - 1 => ['value' => 1, 'name' => '开启'], - ]; - - /** - * 首页 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function index($params = []) - { - $ret = PluginsService::PluginsData('share', ['pic']); - if($ret['code'] == 0) - { - // 是否开启 - $this->assign('share_is_enable_list', $this->share_is_enable_list); - - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/share/admin/admin/index'); - } else { - return $ret['msg']; - } - } - - /** - * 编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function saveinfo($params = []) - { - $ret = PluginsService::PluginsData('share', ['pic']); - if($ret['code'] == 0) - { - // 是否开启 - $this->assign('share_is_enable_list', $this->share_is_enable_list); - - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/share/admin/admin/saveinfo'); - } else { - return $ret['msg']; - } - } - - /** - * 数据保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - return PluginsService::PluginsDataSave(['plugins'=>'share', 'data'=>$params], ['pic']); - } -} -?> \ No newline at end of file diff --git a/application/plugins/share/config.json b/application/plugins/share/config.json deleted file mode 100755 index 2cdadaf5b..000000000 --- a/application/plugins/share/config.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "base":{ - "plugins":"share", - "name":"分享", - "logo":"\/static\/upload\/images\/plugins_share\/2019\/04\/19\/1555667271928933.jpg", - "author":"Devil", - "author_url":"https:\/\/shopxo.net\/", - "version":"1.0.0", - "desc":"分享组件", - "apply_terminal":[ - "pc", - "h5" - ], - "apply_version":[ - "1.5.0" - ], - "is_home":false - }, - "hook":{ - "plugins_css":[ - "app\\plugins\\share\\Hook" - ], - "plugins_js":[ - "app\\plugins\\share\\Hook" - ], - "plugins_view_common_bottom":[ - "app\\plugins\\share\\Hook" - ], - "plugins_view_goods_detail_photo_bottom":[ - "app\\plugins\\share\\Hook" - ] - } -} \ No newline at end of file diff --git a/application/plugins/touristbuy/Hook.php b/application/plugins/touristbuy/Hook.php deleted file mode 100755 index a64e9986c..000000000 --- a/application/plugins/touristbuy/Hook.php +++ /dev/null @@ -1,196 +0,0 @@ -LoginNavTopHtml($params); - break; - - // 用户登录页面顶部 - case 'plugins_view_user_login_info_top' : - case 'plugins_view_user_reg_info' : - $ret = $this->UserLoginInfoHtml($params); - break; - - // header代码 - case 'plugins_common_header' : - $ret = $this->Style($params); - break; - - // 导航链接 - case 'plugins_service_navigation_header_handle' : - $ret = $this->NavTitle($params); - break; - - // 系统运行开始 - case 'plugins_service_system_begin' : - $ret = $this->SystemBegin($params); - break; - - default : - $ret = DataReturn('无需处理', 0); - } - return $ret; - - // 默认返回视图 - } else { - return ''; - } - } - - /** - * 系统运行开始 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-03-18 - * @desc description - * @param [array] $params [输入参数] - */ - public function SystemBegin($params = []) - { - // 是否开启默认游客 - $ret = PluginsService::PluginsData('touristbuy'); - if($ret['code'] == 0 && isset($ret['data']['is_default_tourist']) && $ret['data']['is_default_tourist'] == 1 && strtolower(request()->module()) == 'index') - { - return Service::TouristReg(); - } - return DataReturn('无需处理', 0); - } - - /** - * css - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-06T16:16:34+0800 - * @param [array] $params [输入参数] - */ - public function NavTitle($params = []) - { - if(!empty($params['header']) && is_array($params['header'])) - { - // 获取应用数据 - $ret = PluginsService::PluginsData('touristbuy'); - if($ret['code'] == 0 && !empty($ret['data']['application_name'])) - { - $params['header'][] = [ - 'id' => 0, - 'pid' => 0, - 'name' => $ret['data']['application_name'], - 'url' => PluginsHomeUrl('touristbuy', 'index', 'index'), - 'data_type' => 'custom', - 'is_show' => 1, - 'is_new_window_open' => 0, - 'items' => [], - ]; - } - } - } - - /** - * css - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-06T16:16:34+0800 - * @param [array] $params [输入参数] - */ - public function Style($params = []) - { - return ''; - } - - /** - * 前端顶部小导航展示登入 - * @author Guoguo - * @blog http://gadmin.cojz8.com - * @version 1.0.0 - * @datetime 2019年3月14日 - * @param [array] $params [输入参数] - */ - public function UserLoginInfoHtml($params = []) - { - // 获取已登录用户信息,已登录则不展示入口 - $user = UserService::LoginUserInfo(); - if(empty($user)) - { - // 当前模块/控制器/方法 - $module_name = strtolower(request()->module()); - $controller_name = strtolower(request()->controller()); - $action_name = strtolower(request()->action()); - - // 当前窗口登录父级 - $is_parent = ($module_name.$controller_name.$action_name == 'indexusermodallogininfo') ? 1 : 0; - - // 获取应用数据 - $ret = PluginsService::PluginsData('touristbuy'); - $login_name = empty($ret['data']['login_name']) ? '游客' : $ret['data']['login_name']; - return ''.$login_name.''; - } - return ''; - } - - /** - * 前端顶部小导航展示登入 - * @author Guoguo - * @blog http://gadmin.cojz8.com - * @version 1.0.0 - * @datetime 2019年3月14日 - * @param [array] $params [输入参数] - */ - public function LoginNavTopHtml($params = []) - { - // 获取已登录用户信息,已登录则不展示入口 - $user = UserService::LoginUserInfo(); - if(empty($user)) - { - // 获取应用数据 - $ret = PluginsService::PluginsData('touristbuy'); - $login_name = empty($ret['data']['login_name']) ? '游客' : $ret['data']['login_name']; - return ''.$login_name.''; - } - return ''; - } -} -?> \ No newline at end of file diff --git a/application/plugins/touristbuy/admin/Admin.php b/application/plugins/touristbuy/admin/Admin.php deleted file mode 100755 index 05335b906..000000000 --- a/application/plugins/touristbuy/admin/Admin.php +++ /dev/null @@ -1,85 +0,0 @@ -assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/touristbuy/admin/admin/index'); - } else { - return $ret['msg']; - } - } - - /** - * 编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function saveinfo($params = []) - { - $ret = PluginsService::PluginsData('touristbuy'); - if($ret['code'] == 0) - { - // 是否 - $is_whether_list = [ - 0 => array('id' => 0, 'name' => '否', 'checked' => true), - 1 => array('id' => 1, 'name' => '是'), - ]; - - $this->assign('is_whether_list', $is_whether_list); - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/touristbuy/admin/admin/saveinfo'); - } else { - return $ret['msg']; - } - } - - /** - * 数据保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - return PluginsService::PluginsDataSave(['plugins'=>'touristbuy', 'data'=>$params]); - } -} -?> \ No newline at end of file diff --git a/application/plugins/touristbuy/config.json b/application/plugins/touristbuy/config.json deleted file mode 100755 index 79a08eb43..000000000 --- a/application/plugins/touristbuy/config.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "base":{ - "plugins":"touristbuy", - "name":"游客购买", - "logo":"\/static\/upload\/images\/plugins_touristbuy\/2019\/03\/15\/1552656656517586.jpg", - "author":"Devil", - "author_url":"https:\/\/shopxo.net\/", - "version":"1.0.0", - "desc":"无需登录实现游客购物,在线支付,订单查询", - "apply_terminal":[ - "pc", - "h5" - ], - "apply_version":[ - "1.4.0" - ], - "is_home":true - }, - "hook":{ - "plugins_service_system_begin":[ - "app\\plugins\\touristbuy\\Hook" - ], - "plugins_common_header":[ - "app\\plugins\\touristbuy\\Hook" - ], - "plugins_view_header_navigation_top_left":[ - "app\\plugins\\touristbuy\\Hook" - ], - "plugins_view_user_login_info_top":[ - "app\\plugins\\touristbuy\\Hook" - ], - "plugins_view_user_reg_info":[ - "app\\plugins\\touristbuy\\Hook" - ], - "plugins_service_navigation_header_handle":[ - "app\\plugins\\touristbuy\\Hook" - ] - } -} \ No newline at end of file diff --git a/application/plugins/touristbuy/index/Index.php b/application/plugins/touristbuy/index/Index.php deleted file mode 100755 index e5022927e..000000000 --- a/application/plugins/touristbuy/index/Index.php +++ /dev/null @@ -1,137 +0,0 @@ -assign('data', $ret['data']); - $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle('订单查询', 1)); - return $this->fetch('../../../plugins/view/touristbuy/index/index/index'); - } else { - return $ret['msg']; - } - } - - /** - * 订单详情 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-03-15T23:51:50+0800 - * @param [array] $params [输入参数] - */ - public function detail($params = []) - { - // 请求参数 - $p = [ - [ - 'checked_type' => 'empty', - 'key_name' => 'order_no', - 'error_msg' => '请输入订单号', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'name', - 'error_msg' => '请输入收件人姓名', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'tel', - 'error_msg' => '请输入收件人电话', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - $this->assign('msg', $ret); - return $this->fetch('public/tips_error'); - } - - // 参数 - $params['user_type'] = 'user'; - - // 条件 - $where = OrderService::OrderListWhere($params); - $where[] = ['order_no', '=', $params['order_no']]; - $where[] = ['receive_name', '=', $params['name']]; - $where[] = ['receive_tel', '=', $params['tel']]; - - // 获取列表 - $data_params = array( - 'm' => 0, - 'n' => 1, - 'where' => $where, - ); - $data = OrderService::OrderList($data_params); - if(!empty($data['data'][0])) - { - $this->assign('data', $data['data'][0]); - $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle('订单详情', 1)); - - // 参数 - $this->assign('params', $params); - return $this->fetch('../../../plugins/view/touristbuy/index/index/detail'); - } else { - $this->assign('msg', '没有相关数据'); - return $this->fetch('public/tips_error'); - } - } - - /** - * 游客登录 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-03-15T22:31:29+0800 - * @param [array] $params [输入参数] - */ - public function login($params = []) - { - $ret = Service::TouristReg(); - if($ret['code'] == 0) - { - $this->assign('msg', $ret['msg']); - $this->assign('data', $ret['data']); - $this->assign('is_parent', isset($params['is_parent']) ? $params['is_parent'] : 0); - return $this->fetch('public/login_success'); - } else { - $this->assign('msg', $ret['msg']); - return $this->fetch('public/tips_error'); - } - } -} -?> \ No newline at end of file diff --git a/application/plugins/touristbuy/service/Service.php b/application/plugins/touristbuy/service/Service.php deleted file mode 100755 index 8f8d9a986..000000000 --- a/application/plugins/touristbuy/service/Service.php +++ /dev/null @@ -1,90 +0,0 @@ - $nickname, - 'nickname' => $nickname, - 'status' => 0, - 'salt' => $salt, - 'pwd' => LoginPwdEncryption($nickname, $salt), - 'add_time' => time(), - 'upd_time' => time(), - ]; - - // 数据添加 - $ret = UserService::UserInsert($data, ['nickname'=>$nickname, 'pwd'=>$nickname]); - if($ret['code'] == 0) - { - // 单独存储用户id - session('tourist_user_id', $ret['data']['user_id']); - - // 用户登录session纪录 - if(UserService::UserLoginRecord($ret['data']['user_id'])) - { - return DataReturn('登录成功', 0, $ret['data']); - } - } - return DataReturn('登录失败', -100); - } -} -?> \ No newline at end of file diff --git a/application/plugins/ucenter/Hook.php b/application/plugins/ucenter/Hook.php deleted file mode 100755 index b13dbadc8..000000000 --- a/application/plugins/ucenter/Hook.php +++ /dev/null @@ -1,263 +0,0 @@ -RegisterEndHandle($config['data'], $params); - break; - - // 登录 - case 'plugins_service_user_login_end' : - $ret = $this->LoginEndHandle($config['data'], $params); - break; - - // 登录密码修改 - case 'plugins_service_user_login_pwd_update' : - $ret = $this->LoginPwdUpdateHandle($config['data'], $params); - break; - - // 账号修改 - case 'plugins_service_user_accounts_update' : - $ret = $this->AccountsUpdateHandle($config['data'], $params); - break; - } - } - - // 退出 - if(in_array($params['hook_name'], ['plugins_service_user_logout_handle'])) - { - $ret = $this->LogoutEndHandle($config['data'], $params); - } - - return $ret; - } - - - // 默认返回视图 - } else { - return ''; - } - } - - /** - * 账号修改 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-04-02 - * @desc description - * @param [array] $config [配置信息] - * @param [array] $params [输入参数] - */ - public function AccountsUpdateHandle($config = [], $params = []) - { - // 异步接口 - if(!empty($config['accounts_async_url'])) - { - $accounts_async_url = explode("\n", $config['accounts_async_url']); - if(!empty($accounts_async_url) && is_array($accounts_async_url)) - { - foreach($accounts_async_url as $url) - { - $join = (stripos($url, '?') === false) ? '?' : '&'; - SyncJob($url.$join.'data='.urlencode(json_encode($params['user'])).'¶ms='.urlencode(json_encode($params['params']))); - } - } - } - } - - /** - * 登录密码修改 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-04-02 - * @desc description - * @param [array] $config [配置信息] - * @param [array] $params [输入参数] - */ - public function LoginPwdUpdateHandle($config = [], $params = []) - { - // 异步接口 - if(!empty($config['loginpwdupdate_async_url'])) - { - $loginpwdupdate_async_url = explode("\n", $config['loginpwdupdate_async_url']); - if(!empty($loginpwdupdate_async_url) && is_array($loginpwdupdate_async_url)) - { - foreach($loginpwdupdate_async_url as $url) - { - $join = (stripos($url, '?') === false) ? '?' : '&'; - SyncJob($url.$join.'data='.urlencode(json_encode($params['user'])).'¶ms='.urlencode(json_encode($params['params']))); - } - } - } - } - - /** - * 退出 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-04-02 - * @desc description - * @param [array] $config [配置信息] - * @param [array] $params [输入参数] - */ - public function LogoutEndHandle($config = [], $params = []) - { - // 用户信息 - $user = empty($params['user']) ? '' : $params['user']; - - // 同步接口 - if(!empty($config['logout_sync_url'])) - { - $logout_sync_url = explode("\n", $config['logout_sync_url']); - if(!empty($logout_sync_url) && is_array($logout_sync_url)) - { - foreach($logout_sync_url as $url) - { - $join = (stripos($url, '?') === false) ? '?' : '&'; - $params['body_html'][] = ''; - } - } - } - - // 异步接口 - if(!empty($config['logout_async_url'])) - { - $logout_async_url = explode("\n", $config['logout_async_url']); - if(!empty($logout_async_url) && is_array($logout_async_url)) - { - foreach($logout_async_url as $url) - { - $join = (stripos($url, '?') === false) ? '?' : '&'; - SyncJob($url.$join.'data='.urlencode(json_encode($user))); - } - } - } - } - - /** - * 注册 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-04-02 - * @desc description - * @param [array] $config [配置信息] - * @param [array] $params [输入参数] - */ - public function RegisterEndHandle($config = [], $params = []) - { - // 同步接口 - if(!empty($config['register_sync_url'])) - { - $register_sync_url = explode("\n", $config['register_sync_url']); - if(!empty($register_sync_url) && is_array($register_sync_url)) - { - foreach($register_sync_url as $url) - { - $join = (stripos($url, '?') === false) ? '?' : '&'; - $params['body_html'][] = ''; - } - } - } - - // 异步接口 - if(!empty($config['register_async_url'])) - { - $register_async_url = explode("\n", $config['register_async_url']); - if(!empty($register_async_url) && is_array($register_async_url)) - { - foreach($register_async_url as $url) - { - $join = (stripos($url, '?') === false) ? '?' : '&'; - SyncJob($url.$join.'data='.urlencode(json_encode($params['user'])).'¶ms='.urlencode(json_encode($params['params']))); - } - } - } - } - - /** - * 登录 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-04-02 - * @desc description - * @param [array] $config [配置信息] - * @param [array] $params [输入参数] - */ - public function LoginEndHandle($config = [], $params = []) - { - // 同步接口 - if(!empty($config['login_sync_url'])) - { - $login_sync_url = explode("\n", $config['login_sync_url']); - if(!empty($login_sync_url) && is_array($login_sync_url)) - { - foreach($login_sync_url as $url) - { - $join = (stripos($url, '?') === false) ? '?' : '&'; - $params['body_html'][] = ''; - } - } - } - - // 异步接口 - if(!empty($config['login_async_url'])) - { - $login_async_url = explode("\n", $config['login_async_url']); - if(!empty($login_async_url) && is_array($login_async_url)) - { - foreach($login_async_url as $url) - { - $join = (stripos($url, '?') === false) ? '?' : '&'; - SyncJob($url.$join.'data='.urlencode(json_encode($params['user'])).'¶ms='.urlencode(json_encode($params['params']))); - } - } - } - } -} -?> \ No newline at end of file diff --git a/application/plugins/ucenter/admin/Admin.php b/application/plugins/ucenter/admin/Admin.php deleted file mode 100755 index 5bd93e774..000000000 --- a/application/plugins/ucenter/admin/Admin.php +++ /dev/null @@ -1,94 +0,0 @@ -', $ret['data']['login_sync_url']); - $ret['data']['login_async_url'] = empty($ret['data']['login_async_url']) ? '' : str_replace("\n", '
    ', $ret['data']['login_async_url']); - $ret['data']['register_sync_url'] = empty($ret['data']['register_sync_url']) ? '' : str_replace("\n", '
    ', $ret['data']['register_sync_url']); - $ret['data']['register_async_url'] = empty($ret['data']['register_async_url']) ? '' : str_replace("\n", '
    ', $ret['data']['register_async_url']); - $ret['data']['logout_sync_url'] = empty($ret['data']['logout_sync_url']) ? '' : str_replace("\n", '
    ', $ret['data']['logout_sync_url']); - $ret['data']['logout_async_url'] = empty($ret['data']['logout_async_url']) ? '' : str_replace("\n", '
    ', $ret['data']['logout_async_url']); - $ret['data']['loginpwdupdate_async_url'] = empty($ret['data']['loginpwdupdate_async_url']) ? '' : str_replace("\n", '
    ', $ret['data']['loginpwdupdate_async_url']); - $ret['data']['accounts_async_url'] = empty($ret['data']['accounts_async_url']) ? '' : str_replace("\n", '
    ', $ret['data']['accounts_async_url']); - - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/ucenter/admin/admin/index'); - } else { - return $ret['msg']; - } - } - - /** - * 编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function saveinfo($params = []) - { - $ret = PluginsService::PluginsData('ucenter'); - if($ret['code'] == 0) - { - // 是否 - $is_whether_list = [ - 0 => array('id' => 0, 'name' => '否', 'checked' => true), - 1 => array('id' => 1, 'name' => '是'), - ]; - - $this->assign('is_whether_list', $is_whether_list); - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/ucenter/admin/admin/saveinfo'); - } else { - return $ret['msg']; - } - } - - /** - * 数据保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - return PluginsService::PluginsDataSave(['plugins'=>'ucenter', 'data'=>$params]); - } -} -?> \ No newline at end of file diff --git a/application/plugins/ucenter/config.json b/application/plugins/ucenter/config.json deleted file mode 100755 index cd3256e2c..000000000 --- a/application/plugins/ucenter/config.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "base":{ - "plugins":"ucenter", - "name":"UCenter", - "logo":"\/static\/upload\/images\/plugins_ucenter\/2019\/04\/02\/1554185833720976.jpg", - "author":"Devil", - "author_url":"https:\/\/shopxo.net\/", - "version":"1.0.0", - "desc":"同步用户登录、注册、密码修改、账号修改", - "apply_terminal":[ - "pc", - "h5" - ], - "apply_version":[ - "1.5.0" - ], - "is_home":false - }, - "hook":{ - "plugins_service_user_login_end":[ - "app\\plugins\\ucenter\\Hook" - ], - "plugins_service_user_register_end":[ - "app\\plugins\\ucenter\\Hook" - ], - "plugins_service_user_logout_handle":[ - "app\\plugins\\ucenter\\Hook" - ], - "plugins_service_user_login_pwd_update":[ - "app\\plugins\\ucenter\\Hook" - ], - "plugins_service_user_accounts_update":[ - "app\\plugins\\ucenter\\Hook" - ] - } -} \ No newline at end of file diff --git a/application/plugins/ucenter/index/Api.php b/application/plugins/ucenter/index/Api.php deleted file mode 100755 index c0095d7e6..000000000 --- a/application/plugins/ucenter/index/Api.php +++ /dev/null @@ -1,173 +0,0 @@ - $data['accounts'], 'is_delete_time'=>0); - $temp = Db::name('User')->where($where)->find(); - if(empty($temp)) - { - return json(DataReturn('用户信息不存在', -402)); - } - - // 调用服务层 - $salt = GetNumberCode(6); - $user_data = [ - 'accounts' => $data['accounts'], - 'my_pwd' => $data['my_pwd'], - 'new_pwd' => $data['new_pwd'], - 'confirm_new_pwd' => $data['confirm_new_pwd'], - 'user' => $temp, - ]; - $ret = SafetyService::LoginPwdUpdate($user_data); - return json(DataReturn($ret['msg'], $ret['code'])); - } - - /** - * 登录 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-09T14:25:44+0800 - * @param [array] $params [输入参数] - */ - public function Login($params = []) - { - $user = empty($params['data']) ? '' : json_decode(htmlspecialchars_decode($params['data']), true); - $data = empty($params['params']) ? '' : json_decode(htmlspecialchars_decode($params['params']), true); - - if(empty($user)) - { - return json(DataReturn('用户信息为空', -400)); - } - if(empty($data)) - { - return json(DataReturn('参数为空', -401)); - } - if(empty($data['accounts']) || empty($data['pwd'])) - { - return json(DataReturn('账号或密码为空', -402)); - } - - // 调用服务层 - $ret = UserService::Login($data); - return json(DataReturn($ret['msg'], $ret['code'])); - } - - /** - * 注册 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-09T14:25:44+0800 - * @param [array] $params [输入参数] - */ - public function Register($params = []) - { - $user = empty($params['data']) ? '' : json_decode(htmlspecialchars_decode($params['data']), true); - $data = empty($params['params']) ? '' : json_decode(htmlspecialchars_decode($params['params']), true); - - if(empty($user)) - { - return json(DataReturn('用户信息为空', -400)); - } - if(empty($data)) - { - return json(DataReturn('参数为空', -401)); - } - if(empty($data['accounts']) || empty($data['pwd'])) - { - return json(DataReturn('账号或密码为空', -402)); - } - - // 用户注册数据 - $salt = GetNumberCode(6); - $user_data = [ - 'username' => $data['accounts'], - 'nickname' => $data['accounts'], - 'email' => CheckEmail($data['accounts']) ? $data['accounts'] : '', - 'mobile' => CheckMobile($data['accounts']) ? $data['accounts'] : '', - 'salt' => $salt, - 'pwd' => LoginPwdEncryption($data['pwd'], $salt), - ]; - - // 调用服务层 - $ret = UserService::UserInsert($user_data, $data); - if($ret['code'] == 0) - { - $ret = UserService::Login($data); - } - return json(DataReturn($ret['msg'], $ret['code'])); - } - - /** - * 退出 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-09T14:25:44+0800 - * @param [array] $params [输入参数] - */ - public function Logout($params = []) - { - $user = empty($params['data']) ? '' : json_decode(htmlspecialchars_decode($params['data']), true); - - if(empty($user)) - { - return json(DataReturn('用户信息为空', -400)); - } - - // 调用服务层 - $ret = UserService::Logout(); - return json(DataReturn($ret['msg'], $ret['code'])); - } - -} -?> \ No newline at end of file diff --git a/application/plugins/usercentertopnotice/Hook.php b/application/plugins/usercentertopnotice/Hook.php deleted file mode 100755 index f7da6a85f..000000000 --- a/application/plugins/usercentertopnotice/Hook.php +++ /dev/null @@ -1,91 +0,0 @@ -html($params); - } - } - - /** - * 视图 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-06T16:16:34+0800 - * @param [array] $params [输入参数] - */ - public function html($params = []) - { - // 获取应用数据 - $ret = PluginsService::PluginsData('usercentertopnotice'); - if($ret['code'] == 0) - { - // 内容是否为空 - if(empty($ret['data']['content'])) - { - return ''; - } - - // 有效时间 - if(!empty($ret['data']['time_start'])) - { - // 是否已开始 - if(strtotime($ret['data']['time_start']) > time()) - { - return ''; - } - } - if(!empty($ret['data']['time_end'])) - { - // 是否已结束 - if(strtotime($ret['data']['time_end']) < time()) - { - return ''; - } - } - - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/usercentertopnotice/index/public/content'); - } else { - return $ret['msg']; - } - } -} -?> \ No newline at end of file diff --git a/application/plugins/usercentertopnotice/admin/Admin.php b/application/plugins/usercentertopnotice/admin/Admin.php deleted file mode 100755 index 7882f0e53..000000000 --- a/application/plugins/usercentertopnotice/admin/Admin.php +++ /dev/null @@ -1,78 +0,0 @@ -assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/usercentertopnotice/admin/admin/index'); - } else { - return $ret['msg']; - } - } - - /** - * 编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function saveinfo($params = []) - { - $ret = PluginsService::PluginsData('usercentertopnotice'); - if($ret['code'] == 0) - { - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/usercentertopnotice/admin/admin/saveinfo'); - } else { - return $ret['msg']; - } - } - - /** - * 数据保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - return PluginsService::PluginsDataSave(['plugins'=>'usercentertopnotice', 'data'=>$params]); - } -} -?> \ No newline at end of file diff --git a/application/plugins/usercentertopnotice/config.json b/application/plugins/usercentertopnotice/config.json deleted file mode 100755 index 3e5554abf..000000000 --- a/application/plugins/usercentertopnotice/config.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "base":{ - "plugins":"usercentertopnotice", - "name":"用户中心顶部公告", - "logo":"\/static\/upload\/images\/plugins_usercentertopnotice\/2019\/02\/12\/1549671733967341.jpg", - "author":"Devil", - "author_url":"https:\/\/shopxo.net\/", - "version":"1.0.0", - "desc":"用户中心顶部公告,通知", - "apply_terminal":[ - "pc", - "h5" - ], - "apply_version":[ - "1.3.0" - ], - "is_home":false - }, - "hook":{ - "plugins_view_user_center_top":[ - "app\\plugins\\usercentertopnotice\\Hook" - ] - } -} \ No newline at end of file diff --git a/application/plugins/userloginrewardintegral/Hook.php b/application/plugins/userloginrewardintegral/Hook.php deleted file mode 100755 index 4b3958c70..000000000 --- a/application/plugins/userloginrewardintegral/Hook.php +++ /dev/null @@ -1,137 +0,0 @@ -LoginGiveIntegral($params); - break; - - default : - $ret = DataReturn('无需处理', 0); - } - return $ret; - } else { - return DataReturn('钩子传入参数有误', -600); - } - - // 默认返回视图 - } else { - return ''; - } - } - - /** - * 赠送积分 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-14T22:19:08+0800 - * @param [array] $params [参数] - */ - private function LoginGiveIntegral($params) - { - // 获取应用数据 - $ret = PluginsService::PluginsData('userloginrewardintegral'); - if($ret['code'] == 0) - { - // 限制时间是否已结束 - if(!empty($ret['data']['time_start'])) - { - // 是否已开始 - if(strtotime($ret['data']['time_start']) > time()) - { - return DataReturn('不在限制时间范围、无需处理', 0); - } - } - if(!empty($ret['data']['time_end'])) - { - // 是否已结束 - if(strtotime($ret['data']['time_end']) < time()) - { - return DataReturn('不在限制时间范围、无需处理', 0); - } - } - - // 是否日一次限制 - if(isset($ret['data']['is_day_once']) && $ret['data']['is_day_once'] == 1) - { - $where = [ - ['user_id', '=', $params['user_id']], - ['add_time', '>=', strtotime(date('Y-m-d 00:00:00'))], - ['type', '=', 1], - ['msg', '=', '登录奖励积分'], - ]; - $log = Db::name('UserIntegralLog')->where($where)->find(); - if(!empty($log)) - { - return DataReturn('今日已赠送、无需处理', 0); - } - } - - // 获取用户积分 - $give_integral = empty($ret['data']['give_integral']) ? 0 : intval($ret['data']['give_integral']); - if(!empty($give_integral)) - { - // 用户积分添加 - $user_integral = Db::name('User')->where(['id'=>$params['user_id']])->value('integral'); - if(!Db::name('User')->where(['id'=>$params['user_id']])->setInc('integral', $give_integral)) - { - return DataReturn('登录奖励积分失败', -10); - } - - // 积分日志 - IntegralService::UserIntegralLogAdd($params['user_id'], $user_integral, $user_integral+$give_integral, '登录奖励积分', 1); - - // 更新用户登录缓存数据 - UserService::UserLoginRecord($params['user_id']); - - return DataReturn('登录奖励积分成功', 0); - } else { - return DataReturn('登录奖励积分应用配置有误', -600); - } - } else { - return $ret; - } - } -} -?> \ No newline at end of file diff --git a/application/plugins/userloginrewardintegral/admin/Admin.php b/application/plugins/userloginrewardintegral/admin/Admin.php deleted file mode 100755 index 48514b8e2..000000000 --- a/application/plugins/userloginrewardintegral/admin/Admin.php +++ /dev/null @@ -1,85 +0,0 @@ -assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/userloginrewardintegral/admin/admin/index'); - } else { - return $ret['msg']; - } - } - - /** - * 编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function saveinfo($params = []) - { - $ret = PluginsService::PluginsData('userloginrewardintegral'); - if($ret['code'] == 0) - { - // 是否 - $is_whether_list = [ - 0 => array('id' => 0, 'name' => '否'), - 1 => array('id' => 1, 'name' => '是', 'checked' => true), - ]; - - $this->assign('is_whether_list', $is_whether_list); - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/userloginrewardintegral/admin/admin/saveinfo'); - } else { - return $ret['msg']; - } - } - - /** - * 数据保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - return PluginsService::PluginsDataSave(['plugins'=>'userloginrewardintegral', 'data'=>$params]); - } -} -?> \ No newline at end of file diff --git a/application/plugins/userloginrewardintegral/config.json b/application/plugins/userloginrewardintegral/config.json deleted file mode 100755 index 9c996d93c..000000000 --- a/application/plugins/userloginrewardintegral/config.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "base":{ - "plugins":"userloginrewardintegral", - "name":"登录奖励积分", - "logo":"\/static\/upload\/images\/plugins_userloginrewardintegral\/2019\/02\/14\/1550151082834629.jpg", - "author":"Devil", - "author_url":"https:\/\/shopxo.net\/", - "version":"1.0.0", - "desc":"用户登录成功后奖励积分", - "apply_terminal":[ - "pc", - "h5" - ], - "apply_version":[ - "1.5.0" - ], - "is_home":false - }, - "hook":{ - "plugins_service_user_login_end":[ - "app\\plugins\\userloginrewardintegral\\Hook" - ] - } -} \ No newline at end of file diff --git a/application/plugins/usernotloginhidegoodsprice/Hook.php b/application/plugins/usernotloginhidegoodsprice/Hook.php deleted file mode 100755 index 5ec927fd6..000000000 --- a/application/plugins/usernotloginhidegoodsprice/Hook.php +++ /dev/null @@ -1,151 +0,0 @@ -PriceHandle($params); - - // 默认返回视图 - } else { - return ''; - } - } - - /** - * 价格处理 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-14T22:19:08+0800 - * @param [array] $params [参数] - */ - private function PriceHandle($params) - { - // 后端访问不处理 - if(isset($params['params']['is_admin_access']) && $params['params']['is_admin_access'] == 1) - { - return DataReturn('无需处理', 0); - } - - // 用户是否已登录 - $user = UserService::LoginUserInfo(); - if(!empty($user)) - { - // 查询用户状态是否正常 - $ret = UserService::UserStatusCheck('id', $user['id']); - if($ret['code'] == 0) - { - return DataReturn('无需处理', 0); - } - } - - // 获取应用数据 - $ret = PluginsService::PluginsData('usernotloginhidegoodsprice'); - if($ret['code'] == 0) - { - // 限制终端 - if(!empty($ret['data']['limit_terminal'])) - { - $limit_terminal_all = explode(',', $ret['data']['limit_terminal']); - $client_type = APPLICATION_CLIENT_TYPE; - if($client_type == 'pc' && IsMobile()) - { - $client_type = 'h5'; - } - if(!in_array($client_type, $limit_terminal_all)) - { - return DataReturn('无需处理', 0); - } - } - - // 原价 - $original_price_placeholder = isset($ret['data']['original_price_placeholder']) ? $ret['data']['original_price_placeholder'] : ''; - - // 销售价 - $price_placeholder = empty($ret['data']['price_placeholder']) ? '登录可见' : $ret['data']['price_placeholder']; - - switch($params['hook_name']) - { - // 商品数据处理后 - case 'plugins_service_goods_handle_end' : - // 商品原价 - if(isset($params['goods']['original_price'])) - { - $params['goods']['original_price'] = $original_price_placeholder; - } - if(isset($params['goods']['min_original_price'])) - { - $params['goods']['min_original_price'] = $original_price_placeholder; - } - if(isset($params['goods']['max_original_price'])) - { - $params['goods']['max_original_price'] = $original_price_placeholder; - } - - // 销售价 - if(isset($params['goods']['price'])) - { - $params['goods']['price'] = $price_placeholder; - } - if(isset($params['goods']['min_price'])) - { - $params['goods']['min_price'] = $price_placeholder; - } - if(isset($params['goods']['max_price'])) - { - $params['goods']['max_price'] = $price_placeholder; - } - break; - - // 商品规格基础数据 - case 'plugins_service_goods_spec_base' : - if(isset($params['spec_base']['original_price'])) - { - $params['spec_base']['original_price'] = $original_price_placeholder; - } - if(isset($params['spec_base']['price'])) - { - $params['spec_base']['price'] = $price_placeholder; - } - break; - - // 默认 - default : - return DataReturn('无需处理', 0); - } - - return DataReturn('处理成功', 0); - } else { - return $ret; - } - } -} -?> \ No newline at end of file diff --git a/application/plugins/usernotloginhidegoodsprice/admin/Admin.php b/application/plugins/usernotloginhidegoodsprice/admin/Admin.php deleted file mode 100755 index 5debe3db7..000000000 --- a/application/plugins/usernotloginhidegoodsprice/admin/Admin.php +++ /dev/null @@ -1,96 +0,0 @@ -assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/usernotloginhidegoodsprice/admin/admin/index'); - } else { - return $ret['msg']; - } - } - - /** - * 编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function saveinfo($params = []) - { - $ret = PluginsService::PluginsData('usernotloginhidegoodsprice'); - if($ret['code'] == 0) - { - // 限制终端 - $ret['data']['limit_terminal'] = empty($ret['data']['limit_terminal']) ? [] : explode(',', $ret['data']['limit_terminal']); - - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/usernotloginhidegoodsprice/admin/admin/saveinfo'); - } else { - return $ret['msg']; - } - } - - /** - * 数据保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - return PluginsService::PluginsDataSave(['plugins'=>'usernotloginhidegoodsprice', 'data'=>$params]); - } -} -?> \ No newline at end of file diff --git a/application/plugins/usernotloginhidegoodsprice/config.json b/application/plugins/usernotloginhidegoodsprice/config.json deleted file mode 100755 index 7a8008161..000000000 --- a/application/plugins/usernotloginhidegoodsprice/config.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "base":{ - "plugins":"usernotloginhidegoodsprice", - "name":"未登录隐藏商品价格", - "logo":"\/static\/upload\/images\/plugins_usernotloginhidegoodsprice\/2019\/02\/26\/1551184745400164.jpg", - "author":"Devil", - "author_url":"https:\/\/shopxo.net\/", - "version":"1.0.0", - "desc":"用户未登录不展示商品价格", - "apply_terminal":[ - "pc", - "h5", - "app", - "alipay", - "weixin", - "baidu" - ], - "apply_version":[ - "1.5.0" - ], - "is_home":false - }, - "hook":{ - "plugins_service_goods_handle_end":[ - "app\\plugins\\usernotloginhidegoodsprice\\Hook" - ], - "plugins_service_goods_spec_base":[ - "app\\plugins\\usernotloginhidegoodsprice\\Hook" - ] - } -} \ No newline at end of file diff --git a/application/plugins/view/.gitignore b/application/plugins/view/.gitignore old mode 100644 new mode 100755 diff --git a/application/plugins/view/answers/admin/admin/baseinfo.html b/application/plugins/view/answers/admin/admin/baseinfo.html deleted file mode 100755 index 3e67a16c6..000000000 --- a/application/plugins/view/answers/admin/admin/baseinfo.html +++ /dev/null @@ -1,147 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - -
    - - 问答系统 - 返回 - - -
    - - -
    - -
    - -
      - {{if !empty($data['images_old'])}} -
    • - - - × -
    • - {{/if}} -
    -
    +上传图片
    -
    -
    - - -
    -
    - -
    - {{foreach $is_whether_list as $v}} - - {{/foreach}} -
    -
    - -
    - -
      - {{if !empty($data['images_bottom_old'])}} -
    • - - - × -
    • - {{/if}} -
    -
    +上传图片
    -
    -
    - - -
    -
    - -
    - {{foreach $is_whether_list as $v}} - - {{/foreach}} -
    -
    - -
    - - -
    - -
    - - -
    - -
    - - -
    - -
    - - -
    - -
    - - -
    - -
    - - -
    - - -
    -
    - - -
    -
    - -
    -
    可选
    -
      -
      没有相关数据
      -
    -
    - -
    -
    已选
    -
      -
      没有相关数据
      - {{if !empty($answers_rc_list)}} - {{foreach $answers_rc_list as $v}} -
    • - {{$v.title}} - -
    • - {{/foreach}} - {{/if}} -
    -
    -
    -
    - -
    - -
    -
    - -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/answers/admin/admin/goodsinfo.html b/application/plugins/view/answers/admin/admin/goodsinfo.html deleted file mode 100755 index b4272be13..000000000 --- a/application/plugins/view/answers/admin/admin/goodsinfo.html +++ /dev/null @@ -1,82 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - - {{if empty($data['id'])}} - 商品添加 - {{else /}} - 商品编辑 - {{/if}} - - 返回 - - -
    - -
    -
    -
    - - - -
    -
    - -
    -
    可选
    -
      -
      没有相关数据
      -
    -
    - -
    -
    已选
    -
      -
      没有相关数据
      - {{if !empty($goods['goods'])}} - {{foreach $goods['goods'] as $v}} -
    • - {{$v.title}} - -
    • - {{/foreach}} - {{/if}} -
    -
    -
    -
    - -
    - - -
    -
    - -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/answers/admin/admin/index.html b/application/plugins/view/answers/admin/admin/index.html deleted file mode 100755 index 5e367becd..000000000 --- a/application/plugins/view/answers/admin/admin/index.html +++ /dev/null @@ -1,178 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 问答系统 - 返回 - - -
    - -
    -
    - 基础数据 - 编辑 -
    -
    -
    - -
    - {{if empty($data['application_name'])}} - 未设置应用导航名称 - {{else /}} - {{$data.application_name}} - {{/if}} -
    -
    - -
    - -
    - {{if empty($data['right_top_rec_name'])}} - 推荐问答 - {{else /}} - {{$data.right_top_rec_name}} - {{/if}} -
    -
    - -
    - -
    - {{if empty($data['middle_new_name'])}} - 最新问答 - {{else /}} - {{$data.middle_new_name}} - {{/if}} -
    -
    - -
    - -
    - {{if empty($data['right_top_goods_name'])}} - 推荐商品 - {{else /}} - {{$data.right_top_goods_name}} - {{/if}} -
    -
    - -
    - -
    - {{if empty($data['middle_new_page_number'])}} - 默认 15 条 - {{else /}} - {{$data.middle_new_page_number}} 条 - {{/if}} -
    -
    - -
    - -
    - {{if empty($data['search_page_number'])}} - 默认 28 条 - {{else /}} - {{$data.search_page_number}} 条 - {{/if}} -
    -
    - -
    - -
    - {{if empty($data['home_new_goods_number'])}} - 不展示 - {{else /}} - {{$data.home_new_goods_number}} 条 - {{/if}} -
    -
    - -
    - -
    - - - -
    -
    - -
    - -
    - - - -
    -
    -
    -
    - - -
    -
    - 幻灯片 - 编辑 -
    -
    - {{if !empty($slider)}} -
    - -
    - {{else /}} - 没有幻灯片 - {{/if}} -
    -
    - - -
    -
    - 右侧商品 - 编辑 -
    -
    - {{if !empty($goods_list)}} - - {{else /}} - 没有商品数据 - {{/if}} -
    -
    -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/answers/admin/admin/slider.html b/application/plugins/view/answers/admin/admin/slider.html deleted file mode 100755 index 3e7ac15a2..000000000 --- a/application/plugins/view/answers/admin/admin/slider.html +++ /dev/null @@ -1,71 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 问答系统 - 返回 - - -
    - -
    - 新增 -
    - - - - - - - - - - - - - - - - {{if !empty($data_list)}} - {{foreach $data_list as $v}} - - - - - - - - - {{/foreach}} - {{/if}} - -
    名称图片url地址是否启用创建时间操作
    {{$v.name}} - {{if !empty($v['images_url'])}} - - - - {{else /}} - 暂无图片 - {{/if}} - {{$v.url}} - - {{$v.add_time_time}} - - - - -
    - {{if empty($data_list)}} -
    没有相关数据
    - {{/if}} - -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/answers/admin/admin/sliderinfo.html b/application/plugins/view/answers/admin/admin/sliderinfo.html deleted file mode 100755 index 3354d0ff6..000000000 --- a/application/plugins/view/answers/admin/admin/sliderinfo.html +++ /dev/null @@ -1,64 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - - {{if empty($data['id'])}} - 幻灯片添加 - {{else /}} - 幻灯片编辑 - {{/if}} - - 返回 - - -
    - -
    -
    - - -
    - -
    - - -
    - -
    - -
      -
    • - - -
    • -
    -
    +上传图片
    -
    - -
    - - -
    - -
    - - -
    - -
    - - -
    -
    - -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/answers/index/index/detail.html b/application/plugins/view/answers/index/index/detail.html deleted file mode 100755 index ff1d3a18e..000000000 --- a/application/plugins/view/answers/index/index/detail.html +++ /dev/null @@ -1,134 +0,0 @@ -{{include file="public/header" /}} - - -{{include file="public/header_top_nav" /}} - - -{{include file="public/nav_search" /}} - - -{{include file="public/header_nav" /}} - - -{{include file="public/goods_category" /}} - - -
    - -
    - {{if isset($plugins_answers_detail['code']) and $plugins_answers_detail['code'] eq 0}} - {{if !empty($plugins_answers_detail['data']['content'])}} -
    - {{if !empty($plugins_answers_detail['data']['title'])}} -

    主题:{{$plugins_answers_detail.data.title}}

    - {{/if}} -

    阅读数:{{$plugins_answers_detail.data.access_count}}

    -
    -
    {{$plugins_answers_detail.data.content|raw}}
    - -
    - {{if isset($plugins_answers_detail['data']['is_reply']) and $plugins_answers_detail['data']['is_reply'] eq 1}} -
    - 管理员已回答 -

    {{$plugins_answers_detail.data.reply|raw}}

    -
    - - {{else /}} -
    - 管理员待回复 -
    - {{/if}} -
    - {{else /}} -
    没有相关数据
    - {{/if}} - {{else /}} -
    {{$plugins_answers_detail.msg}}
    - {{/if}} -
    - - -
    - - {{include file="../../../plugins/view/answers/index/public/operation" /}} - - -
    -
    -

    - {{if empty($plugins_answers_data['right_top_rec_name'])}} - 推荐问答 - {{else /}} - {{$plugins_answers_data.right_top_rec_name}} - {{/if}} -

    - 更多 » -
    -
    - {{if !empty($plugins_answers_rc_list)}} - - {{/if}} -
    -
    - - -
    -
    -

    - {{if empty($plugins_answers_data['right_top_goods_name'])}} - 推荐商品 - {{else /}} - {{$plugins_answers_data.right_top_goods_name}} - {{/if}} -

    - 更多 » -
    - {{if !empty($plugins_answers_goods_list)}} - - {{/if}} -
    -
    - - - {{include file="../../../plugins/view/answers/index/public/popup" /}} -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/answers/index/index/index.html b/application/plugins/view/answers/index/index/index.html deleted file mode 100755 index edab0b748..000000000 --- a/application/plugins/view/answers/index/index/index.html +++ /dev/null @@ -1,202 +0,0 @@ -{{include file="public/header" /}} - - -{{include file="public/header_top_nav" /}} - - -{{include file="public/nav_search" /}} - - -{{include file="public/header_nav" /}} - - -{{include file="public/goods_category" /}} - - -
    -
    - -
    - {{if !empty($plugins_answers_slider)}} -
    - -
    - {{/if}} -
    - - -
    - - {{include file="../../../plugins/view/answers/index/public/operation" /}} - - -
    -
    -

    - {{if empty($plugins_answers_data['right_top_rec_name'])}} - 推荐问答 - {{else /}} - {{$plugins_answers_data.right_top_rec_name}} - {{/if}} -

    - 更多 » -
    -
    - {{if !empty($plugins_answers_rc_list)}} - - {{/if}} -
    -
    -
    -
    - - - {{if !empty($plugins_answers_data['images'])}} -
    - - - -
    - {{/if}} - -
    - -
    -
    -
    -

    - {{if empty($plugins_answers_data['middle_new_name'])}} - 最新问答 - {{else /}} - {{$plugins_answers_data.middle_new_name}} - {{/if}} -

    - 更多 » -
    -
    - {{if !empty($plugins_answers_middle_answer_list)}} - - - {{else /}} -
    没有相关数据
    - {{/if}} -
    -
    -
    - - -
    -
    -

    - {{if empty($plugins_answers_data['right_top_goods_name'])}} - 推荐商品 - {{else /}} - {{$plugins_answers_data.right_top_goods_name}} - {{/if}} -

    - 更多 » -
    - {{if !empty($plugins_answers_goods_list)}} - - {{/if}} -
    -
    - - - {{if !empty($plugins_answers_data['images_bottom'])}} -
    - - - -
    - {{/if}} - - - {{if !empty($plugins_new_goods_list)}} -
    -
    -

    最新商品

    - 更多 » -
    - -
    - {{/if}} - - - {{include file="../../../plugins/view/answers/index/public/popup" /}} -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/answers/index/index/search.html b/application/plugins/view/answers/index/index/search.html deleted file mode 100755 index 45dad575a..000000000 --- a/application/plugins/view/answers/index/index/search.html +++ /dev/null @@ -1,125 +0,0 @@ -{{include file="public/header" /}} - - -{{include file="public/header_top_nav" /}} - - -{{include file="public/nav_search" /}} - - -{{include file="public/header_nav" /}} - - -{{include file="public/goods_category" /}} - - - - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/answers/index/public/operation.html b/application/plugins/view/answers/index/public/operation.html deleted file mode 100755 index 4c97b5289..000000000 --- a/application/plugins/view/answers/index/public/operation.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - -
    - -
    \ No newline at end of file diff --git a/application/plugins/view/answers/index/public/popup.html b/application/plugins/view/answers/index/public/popup.html deleted file mode 100755 index c2780a839..000000000 --- a/application/plugins/view/answers/index/public/popup.html +++ /dev/null @@ -1,31 +0,0 @@ -
    -
    -
    -

    提问

    - × -
    -
    -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    - -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/application/plugins/view/commongobacktop/admin/admin/index.html b/application/plugins/view/commongobacktop/admin/admin/index.html deleted file mode 100755 index 7750d5d52..000000000 --- a/application/plugins/view/commongobacktop/admin/admin/index.html +++ /dev/null @@ -1,36 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 回到顶部 - 返回 - - -
    -
    - -
    - -
    -
    -
    - -
    - {{if isset($data['is_overall']) and $data['is_overall'] eq 1}} - 是 - {{else /}} - 否 - {{/if}} -
    -
    - 编辑 -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/commongobacktop/admin/admin/saveinfo.html b/application/plugins/view/commongobacktop/admin/admin/saveinfo.html deleted file mode 100755 index b4ff3c3c3..000000000 --- a/application/plugins/view/commongobacktop/admin/admin/saveinfo.html +++ /dev/null @@ -1,46 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - -
    - - 回到顶部 - 返回 - - -
    - -
      -
    • - - -
    • -
    -
    +上传图片
    -
    - -
    - -
    - {{foreach $is_whether_list as $v}} - - {{/foreach}} -
    -
    - -
    - -
    -
    - -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/commongobacktop/index/public/content.html b/application/plugins/view/commongobacktop/index/public/content.html deleted file mode 100755 index 0c2536867..000000000 --- a/application/plugins/view/commongobacktop/index/public/content.html +++ /dev/null @@ -1,5 +0,0 @@ -
    -
    - -
    -
    \ No newline at end of file diff --git a/application/plugins/view/commononlineservice/admin/admin/index.html b/application/plugins/view/commononlineservice/admin/admin/index.html deleted file mode 100755 index d1627e9f1..000000000 --- a/application/plugins/view/commononlineservice/admin/admin/index.html +++ /dev/null @@ -1,77 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 在线客服 - 返回 - - -
    -
    - -
    - {{if !empty($data['title'])}} - {{$data.title}} - {{else /}} - 未填写 - {{/if}} -
    -
    -
    - -
    - {{if !empty($data['online_service'])}} - {{$data.online_service|raw}} - {{else /}} - 未填写 - {{/if}} -
    -
    -
    - -
    - {{if !empty($data['tel'])}} - {{$data.tel}} - {{else /}} - 未填写 - {{/if}} -
    -
    -
    - -
    - {{if isset($data['is_overall']) and $data['is_overall'] eq 1}} - 是 - {{else /}} - 否 - {{/if}} -
    -
    - -
    - -
    -
    -
    - -
    - {{if !empty($data['distance_top'])}} - {{$data.distance_top}} - {{else /}} - 0 - {{/if}} - % -
    -
    - - 编辑 -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/commononlineservice/admin/admin/saveinfo.html b/application/plugins/view/commononlineservice/admin/admin/saveinfo.html deleted file mode 100755 index 2aa563ffb..000000000 --- a/application/plugins/view/commononlineservice/admin/admin/saveinfo.html +++ /dev/null @@ -1,68 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - -
    - - 在线客服 - 返回 - - -
    - - -
    - -
    - - -
    - -
    - - -
    - -
    - -
    - {{foreach $is_whether_list as $v}} - - {{/foreach}} -
    -
    - -
    - - - -
    - -
    - -
    - - - - -
    -
    - -
    - -
    -
    - -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/commononlineservice/index/public/content.html b/application/plugins/view/commononlineservice/index/public/content.html deleted file mode 100755 index 5a07e7a6b..000000000 --- a/application/plugins/view/commononlineservice/index/public/content.html +++ /dev/null @@ -1,35 +0,0 @@ -
    -
    - 展开 - 收缩 -
    -
    -
    - {{if !empty($data['title'])}} -

    {{$data.title}}

    - {{/if}} - {{if !empty($data['online_service'])}} - - {{/if}} -
    -
    -
    \ No newline at end of file diff --git a/application/plugins/view/commonrightnavigation/admin/admin/index.html b/application/plugins/view/commonrightnavigation/admin/admin/index.html deleted file mode 100755 index be11fa2ef..000000000 --- a/application/plugins/view/commonrightnavigation/admin/admin/index.html +++ /dev/null @@ -1,74 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 右侧快捷导航 - 返回 - - -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - {{if isset($data['is_new_window_open']) and $data['is_new_window_open'] eq 1}} - 是 - {{else /}} - 否 - {{/if}} -
    -
    -
    - -
    - {{if isset($data['is_overall']) and $data['is_overall'] eq 1}} - 是 - {{else /}} - 否 - {{/if}} -
    -
    -
    - -
    - {{if isset($data['is_goods_page_show_cart']) and $data['is_goods_page_show_cart'] eq 1}} - 是 - {{else /}} - 否 - {{/if}} -
    -
    - 编辑 -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/commonrightnavigation/admin/admin/saveinfo.html b/application/plugins/view/commonrightnavigation/admin/admin/saveinfo.html deleted file mode 100755 index ba8380007..000000000 --- a/application/plugins/view/commonrightnavigation/admin/admin/saveinfo.html +++ /dev/null @@ -1,113 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - -
    - - 右侧快捷导航 - 返回 - - -
    - -
      - {{if !empty($data['alipay_mini_qrcode_images'])}} -
    • - - - × -
    • - {{/if}} -
    -
    +上传图片
    -
    - -
    - -
      - {{if !empty($data['alipay_fuwu_qrcode_images'])}} -
    • - - - × -
    • - {{/if}} -
    -
    +上传图片
    -
    - -
    - -
      - {{if !empty($data['weixin_mini_qrcode_images'])}} -
    • - - - × -
    • - {{/if}} -
    -
    +上传图片
    -
    - -
    - -
      - {{if !empty($data['weixin_fuwu_qrcode_images'])}} -
    • - - - × -
    • - {{/if}} -
    -
    +上传图片
    -
    - -
    - -
    - {{foreach $is_whether_list as $v}} - - {{/foreach}} -
    -
    - -
    - -
    - {{foreach $is_whether_list as $v}} - - {{/foreach}} -
    -
    - -
    - -
    - {{foreach $is_whether_list as $v}} - - {{/foreach}} -
    -
    - -
    - -
    -
    - -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/commonrightnavigation/index/public/content.html b/application/plugins/view/commonrightnavigation/index/public/content.html deleted file mode 100755 index 38121c7df..000000000 --- a/application/plugins/view/commonrightnavigation/index/public/content.html +++ /dev/null @@ -1,220 +0,0 @@ -
    - - -
    - -
    - 用户中心 -
    -
    -
    -
    - - - -
    - -
    - 我的足迹 -
    -
    -
    -
    - - - -
    - -
    - 我的收藏 -
    -
    -
    -
    - - -
    - - -
    - 购物车 -
    {{if $cart_total > 9}}9+{{else /}}{{$cart_total}}{{/if}}
    -
    -
    - {{if !isset($module_controller_action) or $module_controller_action != 'indexcartindex'}} -
    - -
    - {{if !empty($cart_list)}} - - {{foreach $cart_list as $goods}} - - - - - - {{/foreach}} -
    -
    - - - -
    - {{$goods.title}} - {{if !empty($goods.spec)}} -
      - {{foreach $goods.spec as $spec}} -
    • {{$spec.type}}:{{$spec.value}}
    • - {{/foreach}} -
    - {{/if}} -
    -
    -
    - ¥{{$goods.total_price}} - x{{$goods.stock}} - - 删除 -
    - {{/if}} -
    - - -
    -
    - {{$base.cart_count}} 种商品 - 共计: - ¥{{$base.total_price}} - - - -
    -
    - - -
    - -
    -

    您的购物车还是空的,您可以

    - -
    -
    -
    - {{/if}} -
    - - - {{if !empty($data['alipay_mini_qrcode_images']) or !empty($data['alipay_fuwu_qrcode_images']) or !empty($data['weixin_mini_qrcode_images']) or !empty($data['weixin_fuwu_qrcode_images'])}} - -
    - -
    -
      - {{if !empty($data['alipay_mini_qrcode_images'])}} -
    • -

      支付宝小程序

      - 支付宝小程序 -
    • - {{/if}} - {{if !empty($data['alipay_fuwu_qrcode_images'])}} -
    • -

      支付宝生活号

      - 支付宝生活号 -
    • - {{/if}} - {{if !empty($data['weixin_mini_qrcode_images'])}} -
    • -

      微信小程序

      - 微信小程序 -
    • - {{/if}} - {{if !empty($data['weixin_fuwu_qrcode_images'])}} -
    • -

      微信公众号

      - 微信公众号 -
    • - {{/if}} -
    -
    -
    -
    - {{/if}} - - - -
    - -
    -
    - - 在线留言 - -
    - - -
    -
    - - -
    -
    - - -
    -
    - -
    -
    -
    -
    -
    - - - -
    - -
    - 返回顶部 -
    -
    -
    -
    -
    - - \ No newline at end of file diff --git a/application/plugins/view/commontopmaxpicture/admin/admin/index.html b/application/plugins/view/commontopmaxpicture/admin/admin/index.html deleted file mode 100755 index ac8e7f1c7..000000000 --- a/application/plugins/view/commontopmaxpicture/admin/admin/index.html +++ /dev/null @@ -1,74 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 顶部大图 - 返回 - - -
    -
    - -
    - -
    -
    -
    - -
    -
    -
    - -
    - {{if !empty($data['url'])}} - {{$data.url}} - {{else /}} - 无 - {{/if}} -
    -
    -
    - -
    - {{if isset($data['is_new_window_open']) and $data['is_new_window_open'] eq 1}} - 是 - {{else /}} - 否 - {{/if}} -
    -
    -
    - -
    - {{if isset($data['is_overall']) and $data['is_overall'] eq 1}} - 是 - {{else /}} - 否 - {{/if}} -
    -
    -
    - -
    - {{if !empty($data['time_start']) and !empty($data['time_end'])}} - {{$data.time_start}} ~ {{$data.time_end}} - {{elseif !empty($data['time_start']) and empty($data['time_end'])}} - {{$data.time_start}} ~ 长期有效 - {{elseif empty($data['time_start']) and !empty($data['time_end'])}} - 立即生效 ~ {{$data.time_end}} - {{else /}} - 无限制 - {{/if}} -
    -
    - 编辑 -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/commontopmaxpicture/admin/admin/saveinfo.html b/application/plugins/view/commontopmaxpicture/admin/admin/saveinfo.html deleted file mode 100755 index 7ada6b987..000000000 --- a/application/plugins/view/commontopmaxpicture/admin/admin/saveinfo.html +++ /dev/null @@ -1,79 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - -
    - - 顶部大图 - 返回 - - -
    - -
      -
    • - - -
    • -
    -
    +上传图片
    -
    - -
    - - - -
    - -
    - - -
    - -
    - -
    - {{foreach $is_whether_list as $v}} - - {{/foreach}} -
    -
    - -
    - -
    - {{foreach $is_whether_list as $v}} - - {{/foreach}} -
    -
    - -
    - -
    - - ~ - -
    -
    - -
    - -
    -
    - -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/commontopmaxpicture/index/public/content.html b/application/plugins/view/commontopmaxpicture/index/public/content.html deleted file mode 100755 index 29d2b8741..000000000 --- a/application/plugins/view/commontopmaxpicture/index/public/content.html +++ /dev/null @@ -1,5 +0,0 @@ -
    - - 顶部大图 - -
    \ No newline at end of file diff --git a/application/plugins/view/commontopnotice/admin/admin/index.html b/application/plugins/view/commontopnotice/admin/admin/index.html deleted file mode 100755 index 00b9a24b1..000000000 --- a/application/plugins/view/commontopnotice/admin/admin/index.html +++ /dev/null @@ -1,54 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 顶部公告 - 返回 - - -
    -
    - -
    - {{if !empty($data['content'])}} - {{$data.content}} - {{else /}} - 无 - {{/if}} -
    -
    -
    - -
    - {{if isset($data['is_overall']) and $data['is_overall'] eq 1}} - 是 - {{else /}} - 否 - {{/if}} -
    -
    -
    - -
    - {{if !empty($data['time_start']) and !empty($data['time_end'])}} - {{$data.time_start}} ~ {{$data.time_end}} - {{elseif !empty($data['time_start']) and empty($data['time_end'])}} - {{$data.time_start}} ~ 长期有效 - {{elseif empty($data['time_start']) and !empty($data['time_end'])}} - 立即生效 ~ {{$data.time_end}} - {{else /}} - 无限制 - {{/if}} -
    -
    - 编辑 -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/commontopnotice/admin/admin/saveinfo.html b/application/plugins/view/commontopnotice/admin/admin/saveinfo.html deleted file mode 100755 index afd71110c..000000000 --- a/application/plugins/view/commontopnotice/admin/admin/saveinfo.html +++ /dev/null @@ -1,49 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - -
    - - 顶部公告 - 返回 - - -
    - - -
    - -
    - -
    - {{foreach $is_whether_list as $v}} - - {{/foreach}} -
    -
    - -
    - -
    - - ~ - -
    -
    - -
    - -
    -
    - -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/commontopnotice/index/public/content.html b/application/plugins/view/commontopnotice/index/public/content.html deleted file mode 100755 index d2f141836..000000000 --- a/application/plugins/view/commontopnotice/index/public/content.html +++ /dev/null @@ -1,3 +0,0 @@ -
    -
    {{$data.content}}
    -
    \ No newline at end of file diff --git a/application/plugins/view/expressforkdn/admin/admin/index.html b/application/plugins/view/expressforkdn/admin/admin/index.html deleted file mode 100755 index 839293ad3..000000000 --- a/application/plugins/view/expressforkdn/admin/admin/index.html +++ /dev/null @@ -1,54 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 快递鸟API接口 - 返回 - - -
    -
    - -
    - {{if empty($data['ebid'])}} - 未填写 - {{else /}} - {{$data.ebid}} - {{/if}} -
    -
    -
    - -
    - {{if empty($data['appkey'])}} - 未填写 - {{else /}} - {{$data.appkey}} - {{/if}} -
    -
    -
    - -
    - {{if !empty($express_list)}} - {{foreach $express_list as $express}} - {{if $express.is_enable eq 1}} -

    {{$express.name}} {{if !empty($data['express_ids'][$express['id']])}}({{$data.express_ids[$express.id]}}){{/if}}

    - {{/if}} - {{/foreach}} - {{/if}} -
    -
    - - - 编辑 -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/expressforkdn/admin/admin/saveinfo.html b/application/plugins/view/expressforkdn/admin/admin/saveinfo.html deleted file mode 100755 index a9568b338..000000000 --- a/application/plugins/view/expressforkdn/admin/admin/saveinfo.html +++ /dev/null @@ -1,43 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - -
    - - 快递鸟API接口 - 返回 - - -
    - - -
    - -
    - - -
    -
    - - {{if !empty($express_list)}} - {{foreach $express_list as $express}} - {{if $express.is_enable eq 1}} -

    {{$express.name}}

    - {{/if}} - {{/foreach}} - {{/if}} -
    -
    - -
    -
    - -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/expressforkdn/index/public/content.html b/application/plugins/view/expressforkdn/index/public/content.html deleted file mode 100755 index ddb6dc867..000000000 --- a/application/plugins/view/expressforkdn/index/public/content.html +++ /dev/null @@ -1,10 +0,0 @@ - -
    -
    -
    -

    物流信息

    - × -
    -
    ...
    -
    -
    \ No newline at end of file diff --git a/application/plugins/view/footercustomerservice/admin/admin/dataindex.html b/application/plugins/view/footercustomerservice/admin/admin/dataindex.html deleted file mode 100755 index 8afbe3d1a..000000000 --- a/application/plugins/view/footercustomerservice/admin/admin/dataindex.html +++ /dev/null @@ -1,71 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 底部客户服务介绍 - 返回 - - -
    - -
    - 新增 -
    - - - - - - - - - - - - - - - - {{if !empty($data_list)}} - {{foreach $data_list as $v}} - - - - - - - - - {{/foreach}} - {{/if}} - -
    图片名称描述是否启用操作时间操作
    - {{if !empty($v['images_url'])}} - - - - {{else /}} - 暂无图片 - {{/if}} - {{$v.name}}{{$v.desc}} - - {{$v.operation_time_time}} - - - - -
    - {{if empty($data_list)}} -
    没有相关数据
    - {{/if}} - -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/footercustomerservice/admin/admin/datainfo.html b/application/plugins/view/footercustomerservice/admin/admin/datainfo.html deleted file mode 100755 index 23464a094..000000000 --- a/application/plugins/view/footercustomerservice/admin/admin/datainfo.html +++ /dev/null @@ -1,59 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - - {{if empty($data['id'])}} - 底部客户服务介绍添加 - {{else /}} - 底部客户服务介绍编辑 - {{/if}} - - 返回 - - -
    - -
    -
    - - -
    - -
    - - -
    - -
    - -
      -
    • - - -
    • -
    -
    +上传图片
    -
    - -
    - - -
    - -
    - - -
    -
    - -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/footercustomerservice/admin/admin/index.html b/application/plugins/view/footercustomerservice/admin/admin/index.html deleted file mode 100755 index 560037682..000000000 --- a/application/plugins/view/footercustomerservice/admin/admin/index.html +++ /dev/null @@ -1,69 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 底部客户服务介绍 - 返回 - - -
    - -
    -
    - 基础数据 - 编辑 -
    -
    -
    - -
    - {{if isset($data['is_only_home']) and $data['is_only_home'] eq 1}} - 是 - {{else /}} - 否 - {{/if}} -
    -
    -
    -
    - - -
    -
    - 服务介绍 - 编辑 -
    -
    - {{if !empty($data_list)}} - - {{else /}} - 没有数据 - {{/if}} -
    -
    -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/footercustomerservice/admin/admin/saveinfo.html b/application/plugins/view/footercustomerservice/admin/admin/saveinfo.html deleted file mode 100755 index efca456e0..000000000 --- a/application/plugins/view/footercustomerservice/admin/admin/saveinfo.html +++ /dev/null @@ -1,35 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - -
    - - 底部客户服务介绍 - 返回 - - -
    - -
    - {{foreach $is_whether_list as $v}} - - {{/foreach}} -
    -
    - -
    - -
    -
    - -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/footercustomerservice/index/public/content.html b/application/plugins/view/footercustomerservice/index/public/content.html deleted file mode 100644 index 561f2ab60..000000000 --- a/application/plugins/view/footercustomerservice/index/public/content.html +++ /dev/null @@ -1,21 +0,0 @@ -{{if !empty($data_list)}} -
    - -
    -{{/if}} \ No newline at end of file diff --git a/application/plugins/view/freightfee/admin/admin/index.html b/application/plugins/view/freightfee/admin/admin/index.html deleted file mode 100755 index c5e2813e2..000000000 --- a/application/plugins/view/freightfee/admin/admin/index.html +++ /dev/null @@ -1,148 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 运费设置 - 返回 - - -
    -
    -
    - 基础数据 - 编辑 -
    -
    -
    - -
    - {{if empty($data['show_name'])}} - 运费 - {{else /}} - {{$data.show_name}} - {{/if}} -
    -
    - -
    - -
    - {{if empty($data['payment_names'])}} - 未设置 - {{else /}} - {{$data.payment_names}} - {{/if}} -
    -
    - -
    - -
    - {{if isset($data['valuation']) and $data['valuation'] eq 0}} - 按件数 - {{else /}} - 按重量 - {{/if}} -
    -
    -
    -
    - -
    -
    - 免运费商品 - 编辑 -
    -
    - {{if !empty($data['goods_list'])}} - - - - - - - - - {{foreach $data['goods_list'] as $v}} - - - - - {{/foreach}} - -
    标题价格
    - {{$v.title}} - ¥{{$v.price}}
    - {{else /}} - 没有配置 - {{/if}} -
    -
    - -
    -
    - 运费模板 - 编辑 -
    -
    -
    - {{if !empty($data['data'])}} - - {{if isset($data['valuation']) and $data['valuation'] eq 0}} - - - - - - - - - - - {{else /}} - - - - - - - - - - - {{/if}} - - {{foreach $data.data as $k=>$v}} - - - - - - - - - {{/foreach}} - -
    运送到首件数(件)首费(元)续件数(件)续费(元)满(免运费)
    运送到首件数(kg)首费(元)续件数(kg)续费(元)满(免运费)
    - {{if $v['region'] eq 'default'}} - 默认运费 - {{else /}} -
    {{$v.region_names}}
    - {{/if}} -
    {{if isset($v['first'])}}{{$v.first}}{{/if}}{{if isset($v['first_price'])}}{{$v.first_price}}{{/if}}{{if isset($v['continue'])}}{{$v.continue}}{{/if}}{{if isset($v['continue_price'])}}{{$v.continue_price}}{{/if}}{{if isset($v['free_shipping_price'])}}{{$v.free_shipping_price}}{{/if}}
    - {{else /}} - 没有配置 - {{/if}} -
    -
    -
    -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/freightfee/admin/admin/saveinfo.html b/application/plugins/view/freightfee/admin/admin/saveinfo.html deleted file mode 100755 index 5d9336f9b..000000000 --- a/application/plugins/view/freightfee/admin/admin/saveinfo.html +++ /dev/null @@ -1,285 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - -
    - - 运费设置 - 返回 - - -
    - - -
    - -
    - - -
    - -
    - -
    -
    - - - -
    -
    - -
    -
    可选
    -
      -
      没有相关数据
      -
    -
    - -
    -
    已选
    -
      -
      没有相关数据
      - {{if !empty($data['goods_list'])}} - {{foreach $data['goods_list'] as $v}} -
    • - {{$v.title}} - -
    • - {{/foreach}} - {{/if}} -
    -
    -
    -
    -
    - -
    - -
    - {{foreach $is_whether_list as $v}} - - {{/foreach}} -
    -
    - -
    - - - {{if empty($data['data'])}} - - - - - - - - - - - - - - - - - - - - - - - {{else /}} - {{if isset($data['valuation']) and $data['valuation'] eq 0}} - - - - - - - - - - - - - {{foreach $data.data as $k=>$v}} - - - - - - - - {{if $v['region'] eq 'default'}} - - {{else /}} - - {{/if}} - - {{/foreach}} - - {{else /}} - - - - - - - - - - - - - {{foreach $data.data as $k=>$v}} - - - - - - - - {{if $v['region'] eq 'default'}} - - {{else /}} - - {{/if}} - - {{/foreach}} - - {{/if}} - {{/if}} -
    运送到*首件数(件)*首费(元)*续件数(件)*续费(元)*满(免运费)操作
    -
    默认运费 - - -
    - - - - - - - - - -
    运送到*首件数(件)*首费(元)*续件数(件)*续费(元)*满(免运费)操作
    - {{if $v['region'] eq 'default'}} -
    默认运费 - - - {{else /}} -
    {{$v.region_names}}
    - 添加地区 - - - {{/if}} -
    - - - - - - - - - - - 删除 -
    运送到*首件数(kg)*首费(元)*续件数(kg)*续费(元)*满(免运费)操作
    - {{if $v['region'] eq 'default'}} -
    默认运费 - - - {{else /}} -
    {{$v.region_names}}
    - 添加地区 - - - {{/if}} -
    - - - - - - - - - - - 删除 -
    - +为指定地区城市设置运费 -
    - -
    - -
    -
    - - - -
    -
    -
    -

    选择区域

    - × -
    -
    - {{if !empty($region_list)}} -
      - {{foreach $region_list as $v}} -
    • -

      {{$v.name}}

      - {{if !empty($v['items'])}} -
        - {{foreach $v.items as $vs}} -
      • - {{$vs.name}} -
      • - {{/foreach}} -
      - {{/if}} -
    • - {{/foreach}} -
    - {{else /}} -
    没有相关数据
    - {{/if}} - -
    -
    -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/homemiddleadv/admin/admin/dataindex.html b/application/plugins/view/homemiddleadv/admin/admin/dataindex.html deleted file mode 100755 index a5c95c66f..000000000 --- a/application/plugins/view/homemiddleadv/admin/admin/dataindex.html +++ /dev/null @@ -1,75 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 首页中间广告 - 返回 - - -
    - -
    - 新增 -
    - - - - - - - - - - - - - - - - - {{if !empty($data_list)}} - {{foreach $data_list as $v}} - - - - - - - - - - {{/foreach}} - {{/if}} - -
    名称图片url地址是否新窗口打开是否启用操作时间操作
    {{$v.name}} - {{if !empty($v['images_url'])}} - - - - {{else /}} - 暂无图片 - {{/if}} - {{$v.url}} - - - - {{$v.operation_time_time}} - - - - -
    - {{if empty($data_list)}} -
    没有相关数据
    - {{/if}} - -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/homemiddleadv/admin/admin/datainfo.html b/application/plugins/view/homemiddleadv/admin/admin/datainfo.html deleted file mode 100755 index bd66cec48..000000000 --- a/application/plugins/view/homemiddleadv/admin/admin/datainfo.html +++ /dev/null @@ -1,64 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - - {{if empty($data['id'])}} - 首页中间广告添加 - {{else /}} - 首页中间广告编辑 - {{/if}} - - 返回 - - -
    - -
    -
    - - -
    - -
    - - -
    - -
    - -
      -
    • - - -
    • -
    -
    +上传图片
    -
    - -
    - - -
    - -
    - - -
    - -
    - - -
    -
    - -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/homemiddleadv/admin/admin/index.html b/application/plugins/view/homemiddleadv/admin/admin/index.html deleted file mode 100755 index 1f80ef8ff..000000000 --- a/application/plugins/view/homemiddleadv/admin/admin/index.html +++ /dev/null @@ -1,69 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 首页中间广告 - 返回 - - -
    - -
    -
    - 基础数据 - 编辑 -
    -
    -
    - -
    - {{if !empty($data['time_start']) and !empty($data['time_end'])}} - {{$data.time_start}} ~ {{$data.time_end}} - {{elseif !empty($data['time_start']) and empty($data['time_end'])}} - {{$data.time_start}} ~ 长期有效 - {{elseif empty($data['time_start']) and !empty($data['time_end'])}} - 立即生效 ~ {{$data.time_end}} - {{else /}} - 无限制 - {{/if}} -
    -
    -
    -
    - - -
    -
    - 广告图片 - 编辑 -
    -
    - {{if !empty($data_list)}} - - {{else /}} - 没有数据 - {{/if}} -
    -
    -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/homemiddleadv/admin/admin/saveinfo.html b/application/plugins/view/homemiddleadv/admin/admin/saveinfo.html deleted file mode 100755 index e2f84bb99..000000000 --- a/application/plugins/view/homemiddleadv/admin/admin/saveinfo.html +++ /dev/null @@ -1,33 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - -
    - - 首页中间广告 - 返回 - - -
    - -
    - - ~ - -
    -
    - -
    - -
    -
    - -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/homemiddleadv/index/public/content.html b/application/plugins/view/homemiddleadv/index/public/content.html deleted file mode 100644 index 66de758c9..000000000 --- a/application/plugins/view/homemiddleadv/index/public/content.html +++ /dev/null @@ -1,17 +0,0 @@ -{{if !empty($data_list)}} -
    - -
    -{{/if}} \ No newline at end of file diff --git a/application/plugins/view/membershiplevel/admin/admin/index.html b/application/plugins/view/membershiplevel/admin/admin/index.html deleted file mode 100755 index c86608724..000000000 --- a/application/plugins/view/membershiplevel/admin/admin/index.html +++ /dev/null @@ -1,56 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 会员等级 - 返回 - - -
    - -
    -
    - 基础数据 - 编辑 -
    -
    -
    - -
    - {{if isset($data['level_rules']) and isset($members_level_rules_list[$data['level_rules']])}} - {{:$members_level_rules_list[$data['level_rules']]['name']}} - {{else /}} - 未设置,默认[ 积分(可用积分)] - {{/if}} -
    -
    - -
    - -
    - -
    -
    -
    -
    - - -
    -
    - 会员等级 - 编辑 -
    -
    - -
    -
    -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/membershiplevel/admin/admin/saveinfo.html b/application/plugins/view/membershiplevel/admin/admin/saveinfo.html deleted file mode 100755 index 2d64f4068..000000000 --- a/application/plugins/view/membershiplevel/admin/admin/saveinfo.html +++ /dev/null @@ -1,49 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - -
    - - 会员等级 - 返回 - - -
    - -
    - {{foreach $members_level_rules_list as $v}} - - {{/foreach}} -
    -
    - -
    - -
      - {{if !empty($data['default_level_images'])}} -
    • - - - × -
    • - {{/if}} -
    -
    +上传图片
    -
    - -
    - -
    -
    - -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/membershiplevel/admin/level/index.html b/application/plugins/view/membershiplevel/admin/level/index.html deleted file mode 100644 index dfb90154f..000000000 --- a/application/plugins/view/membershiplevel/admin/level/index.html +++ /dev/null @@ -1,93 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - {{if !isset($params['is_admin_index']) or $params['is_admin_index'] neq 1}} - - 会员等级 - 返回 - - {{/if}} - -
    - {{if !isset($params['is_admin_index']) or $params['is_admin_index'] neq 1}} - -
    - 新增 -
    - - {{/if}} - - - - - - - - - - - - {{if !isset($params['is_admin_index']) or $params['is_admin_index'] neq 1}} - - {{/if}} - - - - {{if !empty($data_list)}} - {{foreach $data_list as $v}} - - - - - - - - {{if !isset($params['is_admin_index']) or $params['is_admin_index'] neq 1}} - - {{/if}} - - {{/foreach}} - {{/if}} - -
    名称图标规则值优惠信息是否启用操作时间操作
    {{$v.name}} - {{if !empty($v['images_url'])}} - - - - {{else /}} - 暂无图片 - {{/if}} - {{$v.rules_min}}~{{$v.rules_max}} - 满减:{{if $v['order_price'] gt 0 and $v['full_reduction_price'] gt 0}} - 满{{$v.order_price}}元 减{{$v.full_reduction_price}}元 - {{else /}} - 无满减 - {{/if}} -
    - 折扣:{{if $v['discount_rate']}} - {{$v.discount_rate}}折 - {{else /}} - 无折扣 - {{/if}} -
    - - {{$v.operation_time_time}} - - - - -
    - {{if empty($data_list)}} -
    没有相关数据
    - {{/if}} - -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/membershiplevel/admin/level/saveinfo.html b/application/plugins/view/membershiplevel/admin/level/saveinfo.html deleted file mode 100644 index 871069fac..000000000 --- a/application/plugins/view/membershiplevel/admin/level/saveinfo.html +++ /dev/null @@ -1,99 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - - {{if empty($data['id'])}} - 会员等级添加 - {{else /}} - 会员等级编辑 - {{/if}} - - 返回 - - -
    - -
    -
    - - -
    - -
    - -
      - {{if !empty($data['images_url'])}} -
    • - - - × -
    • - {{/if}} -
    -
    +上传图标
    -
    - -
    - -

    - 规则举例
    - 最小规则0 - 最大规则100 则是小于100 -
    最小规则1000 - 最大规则0 则是大于1000 -
    最小规则100 - 最大规则500 则是大于等于100并且小于500 -
    -

    -
    -
    - -
    - - ~ - -
    -
    - -
    - -

    - 优惠说明
    - - 满减优惠 与 折扣率可叠加使用,如需只使用其中一项优惠,则请注意只需配置该优惠项即可!!! - -

    -
    -
    - -
    - - - - -
    -
    -
    - - -
    - -
    - - -
    - -
    - - -
    -
    - -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/newuserreduction/admin/admin/index.html b/application/plugins/view/newuserreduction/admin/admin/index.html deleted file mode 100755 index 54ea2f3eb..000000000 --- a/application/plugins/view/newuserreduction/admin/admin/index.html +++ /dev/null @@ -1,64 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 新用户立减 - 返回 - - -
    -
    - -
    - {{if empty($data['show_name'])}} - 新用户立减 - {{else /}} - {{$data.show_name}} - {{/if}} -
    -
    - -
    - -
    - {{if empty($data['full_amount'])}} - 不限 - {{else /}} - {{$data.full_amount}} - {{/if}} -
    -
    - -
    - -
    - {{if empty($data['price'])}} - 未设置 - {{else /}} - {{$data.price}} - {{/if}} -
    -
    - -
    - -
    - {{if isset($data['is_random']) and $data['is_random'] eq 1}} - 是 - {{else /}} - 否 - {{/if}} -
    -
    - - 编辑 -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/newuserreduction/admin/admin/saveinfo.html b/application/plugins/view/newuserreduction/admin/admin/saveinfo.html deleted file mode 100755 index a21ec6581..000000000 --- a/application/plugins/view/newuserreduction/admin/admin/saveinfo.html +++ /dev/null @@ -1,50 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - -
    - - 新用户立减 - 返回 - - -
    - - -
    - -
    - - -
    - -
    - - -
    - -
    - -
    - {{foreach $is_whether_list as $v}} - - {{/foreach}} -
    -
    - -
    - -
    -
    - -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/share/admin/admin/index.html b/application/plugins/view/share/admin/admin/index.html deleted file mode 100755 index babe60033..000000000 --- a/application/plugins/view/share/admin/admin/index.html +++ /dev/null @@ -1,93 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 分享 - 返回 - - -
    - -

    - 建议不要设置默认内容,采用自动获取页面相应的内容
    - 内容优先级: 1元素配置默认 -> 2插件配置默认 -> 3页面对应内容 -

    -
    - -
    - 分享类型
    -        QQ[qq] , QQ空间[qzone] , 微信[weixin] , 新浪微博[sian] , 复制[url] - -

    - 元素配置规则
    -        类型:data-share="自定义分享类型,以英文逗号分割,默认全部分享类型,自定义分享如: qq,weixin "
    -        标题:data-title="分享标题"
    -        描述:data-desc="分享描述内容"
    -        网址:data-url="分享url地址"
    -        图片:data-pic="图片地址" - -

    - 使用插件
    -        标签上添加类即可自动初始化 [plugins-share-view] -
    - - -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/share/admin/admin/saveinfo.html b/application/plugins/view/share/admin/admin/saveinfo.html deleted file mode 100755 index e81991ae2..000000000 --- a/application/plugins/view/share/admin/admin/saveinfo.html +++ /dev/null @@ -1,72 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - -
    - - 分享 - 返回 - - -
    - -

    - 建议不要设置默认内容,采用自动获取页面相应的内容
    - 内容优先级: 1元素配置默认 -> 2插件配置默认 -> 3页面对应内容 -

    -
    - -
    - - -
    - -
    - - -
    - -
    - - -
    - -
    - -
      - {{if !empty($data['pic'])}} -
    • - - - × -
    • - {{/if}} -
    -
    +上传图片
    -
    - -
    - -
    - {{foreach $share_is_enable_list as $v}} - - {{/foreach}} -
    -
    - -
    - -
    -
    - -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/share/index/public/content.html b/application/plugins/view/share/index/public/content.html deleted file mode 100755 index 8f68f4c26..000000000 --- a/application/plugins/view/share/index/public/content.html +++ /dev/null @@ -1,61 +0,0 @@ - -
    -
    -
      - - - - - -
    -
    -
    - - -
    -
    -
    - × -
    -
    -
    -

    打开微信,点击底部的“发现”

    -

    使用“扫一扫”即可将网页分享至朋友圈

    -
    -
    -
    - - -
    - -
    - - -
    -
    -
    - × -
    -
    -
    - - 复制 -
    -
    -
    -
    \ No newline at end of file diff --git a/application/plugins/view/touristbuy/admin/admin/index.html b/application/plugins/view/touristbuy/admin/admin/index.html deleted file mode 100755 index 4436ac1fb..000000000 --- a/application/plugins/view/touristbuy/admin/admin/index.html +++ /dev/null @@ -1,79 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 游客购买 - 返回 - - -
    -
    - -
    - {{if !empty($data['application_name'])}} - {{$data.application_name}} - {{else /}} - 无 - {{/if}} -
    -
    -
    - -
    - {{if !empty($data['login_name'])}} - {{$data.login_name}} - {{else /}} - 游客 - {{/if}} -
    -
    -
    - -
    - {{if !empty($data['nickname'])}} - {{$data.nickname}} - {{else /}} - 游客 - {{/if}} -
    -
    -
    - -
    - {{if !empty($data['query_tips'])}} - {{$data.query_tips}} - {{else /}} - 无 - {{/if}} -
    -
    - -
    - -
    - {{if isset($data['is_default_tourist']) and $data['is_default_tourist'] eq 1}} - 是 - {{else /}} - 否 - {{/if}} -
    -
    - - - - 编辑 -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/touristbuy/admin/admin/saveinfo.html b/application/plugins/view/touristbuy/admin/admin/saveinfo.html deleted file mode 100755 index 8a52c5eb8..000000000 --- a/application/plugins/view/touristbuy/admin/admin/saveinfo.html +++ /dev/null @@ -1,55 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - -
    - - 游客购买 - 返回 - - -
    - - -
    - -
    - - -
    - -
    - - -
    - -
    - - -
    - -
    - -
    - {{foreach $is_whether_list as $v}} - - {{/foreach}} -
    -
    - -
    - -
    -
    - -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/touristbuy/index/index/detail.html b/application/plugins/view/touristbuy/index/index/detail.html deleted file mode 100755 index 9bf7278ba..000000000 --- a/application/plugins/view/touristbuy/index/index/detail.html +++ /dev/null @@ -1,329 +0,0 @@ -{{include file="public/header" /}} - - -{{include file="public/header_top_nav" /}} - - -{{include file="public/nav_search" /}} - - -{{include file="public/header_nav" /}} - - -{{include file="public/goods_category" /}} - - -
    - - -
    -
    - - {{if !in_array($data['status'], [5,6])}} -
      -
    • -

      - -

      -
      -

      拍下商品

      - {{if !empty($data.add_time)}} -

      {{$data.add_time}}

      - {{/if}} -
      -
    • -
    • - -

      - {{if $data['status'] GT 1}}{{else /}}2{{/if}} -

      -
      -

      付款

      - {{if !empty($data.pay_time)}} -

      {{$data.pay_time}}

      - {{/if}} -
      -
    • -
    • - -

      - {{if $data['status'] GT 2}}{{else /}}3{{/if}} -

      -
      -

      卖家发货

      - {{if !empty($data.delivery_time)}} -

      {{$data.delivery_time}}

      - {{/if}} -
      -
    • -
    • - -

      - {{if $data['status'] GT 3}}{{else /}}4{{/if}} -

      -
      -

      确认收货

      - {{if !empty($data.collect_time)}} -

      {{$data.collect_time}}

      - {{/if}} -
      -
    • -
    • - -

      - {{if $data['user_is_comments'] GT 0}}{{else /}}5{{/if}} -

      -
      -

      评价

      - {{if !empty($data.user_is_comments_time)}} -

      {{$data.user_is_comments_time}}

      - {{/if}} -
      -
    • -
    - {{/if}} - - -
    -
    -
    -
    订单信息
    -
    -
    -
    收货地址:
    -
    {{$data.receive_name}}, {{$data.receive_tel}}, {{$data.receive_province_name}} {{$data.receive_city_name}} {{$data.receive_county_name}} {{$data.receive_address}}
    -
    -
    -
    订单编号:
    -
    {{$data.order_no}}
    -
    - {{if !empty($data.status_name)}} -
    -
    订单状态:
    -
    {{$data.status_name}}
    -
    - {{/if}} - {{if !empty($data.pay_status_name)}} -
    -
    支付状态:
    -
    {{$data.pay_status_name}}
    -
    - {{/if}} - {{if !empty($data.payment_name)}} -
    -
    支付方式:
    -
    {{$data.payment_name}}
    -
    - {{/if}} - {{if !empty($data.user_note)}} -
    -
    用户留言:
    -
    {{$data.user_note}}
    -
    - {{/if}} - {{if !empty($data.add_time)}} -
    -
    下单时间:
    -
    {{$data.add_time}}
    -
    - {{/if}} - {{if !empty($data.confirm_time)}} -
    -
    确认时间:
    -
    {{$data.confirm_time}}
    -
    - {{/if}} - {{if !empty($data.pay_time)}} -
    -
    付款时间:
    -
    {{$data.pay_time}}
    -
    - {{/if}} - {{if !empty($data.delivery_time)}} -
    -
    发货时间:
    -
    {{$data.delivery_time}}
    -
    - {{/if}} - {{if !empty($data.collect_time)}} -
    -
    收货时间:
    -
    {{$data.collect_time}}
    -
    - {{/if}} - {{if !empty($data.user_is_comments_time)}} -
    -
    评论时间:
    -
    {{$data.user_is_comments_time}}
    -
    - {{/if}} - {{if in_array($data['status'], [5]) and !empty($data['cancel_time'])}} -
    -
    取消时间:
    -
    {{$data.cancel_time}}
    -
    - {{/if}} - {{if in_array($data['status'], [6]) and !empty($data['close_time'])}} -
    -
    关闭时间:
    -
    {{$data.close_time}}
    -
    - {{/if}} -
    -
    -
    -
    -
    - {{if $data['status'] EQ 4}} - - {{else /}} - - {{/if}} -

    {{$data.status_name}}

    -
    -
    - - - {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}} -
    - plugins_service_order_handle_operation_html -
    - {{/if}} - {{if !empty($data['plugins_service_order_handle_operation_html']) and is_array($data['plugins_service_order_handle_operation_html'])}} - {{foreach $data.plugins_service_order_handle_operation_html as $hook}} - {{if is_string($hook) or is_int($hook)}} - {{$hook|raw}} - {{/if}} - {{/foreach}} - {{/if}} -
    - {{if in_array($data['status'], [3,4])}} -
    -
    -
    快递公司:
    -
    - {{if !empty($data.express_name)}}{{$data.express_name}}{{/if}} -
    -
    - {{if !empty($data.express_number)}} -
    -
    快递单号:
    -
    {{$data.express_number}}
    -
    - {{/if}} -
    - {{/if}} -
    -
    - - - {{if !empty($data.items)}} -
    - - - - - - - - - - - {{foreach $data.items as $goods}} - - - - - - - {{/foreach}} - -
    商品信息单价数量金额
    -
    - - - -
    - {{$goods.title}} - {{if !empty($goods.spec)}} -
      - {{foreach $goods.spec as $spec}} -
    • {{$spec.type}}:{{$spec.value}}
    • - {{/foreach}} -
    - {{/if}} -
    -
    -
    - {{if $goods['original_price'] gt 0}} - ¥{{$goods.original_price}} - {{/if}} - ¥{{$goods.price}} - x{{$goods.buy_number}} -
    -
    - {{if $goods['original_price'] gt 0}} -

    ¥{{$goods.original_price}}

    - {{/if}} -

    ¥{{$goods.price}}

    -
    - x{{$goods.buy_number}} - - ¥{{$goods.total_price}} -
    -
    - - {{if !empty($data['extension_data'])}} -
    - {{foreach $data.extension_data as $ertk=>$ext}} -
    -
    {{$ext.name}}:
    -
    {{$ext.tips}}
    -
    - {{/foreach}} -
    - {{/if}} - -
    - {{if !empty($data.price)}} -
    -
    商品总价:
    -
    ¥{{$data.price}}
    -
    - {{/if}} - {{if !empty($data.increase_price)}} -
    -
    增加金额:
    -
    +¥{{$data.increase_price}}
    -
    - {{/if}} - {{if !empty($data.preferential_price)}} -
    -
    优惠金额:
    -
    -¥{{$data.preferential_price}}
    -
    - {{/if}} - {{if !empty($data.total_price)}} -
    -
    订单总价:
    -
    ¥{{$data.total_price}}
    -
    - {{/if}} - {{if !empty($data.pay_price)}} -
    -
    支付金额:
    -
    - ¥{{$data.pay_price}} -
    -
    - {{/if}} -
    - {{/if}} -
    -
    - -
    - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/touristbuy/index/index/index.html b/application/plugins/view/touristbuy/index/index/index.html deleted file mode 100755 index 96f0d5bc0..000000000 --- a/application/plugins/view/touristbuy/index/index/index.html +++ /dev/null @@ -1,53 +0,0 @@ -{{include file="public/header" /}} - - -{{include file="public/header_top_nav" /}} - - -{{include file="public/nav_search" /}} - - -{{include file="public/header_nav" /}} - - -{{include file="public/goods_category" /}} - - -
    -
    - {{if !empty($data['query_tips'])}} -
    - -

    {{$data.query_tips}}

    -
    - {{/if}} - - -
    -
    - - -
    - -
    - - -
    - -
    - - -
    - -
    - -
    -
    - -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/ucenter/admin/admin/index.html b/application/plugins/view/ucenter/admin/admin/index.html deleted file mode 100755 index 30aafe3ed..000000000 --- a/application/plugins/view/ucenter/admin/admin/index.html +++ /dev/null @@ -1,217 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - UCenter - 返回 - - -
    -
    - -
    - {{if !empty($data['login_sync_url'])}} - {{$data.login_sync_url|raw}} - {{else /}} - 无 - {{/if}} -
    -
    - 附带参数
    - data 当前用户数据 [ 以 urlencode(json_encode($data)) ]
    - params 用户登录账号信息 [ 以 urlencode(json_encode($params)) ]
    -     accounts 账号
    -     pwd 密码 -
    -
    -
    - -
    - {{if !empty($data['login_async_url'])}} - {{$data.login_async_url|raw}} - {{else /}} - 无 - {{/if}} -
    -
    - 附带参数
    - data 当前用户数据 [ 以 urlencode(json_encode($data)) ]
    - params 用户登录账号信息 [ 以 urlencode(json_encode($params)) ]
    -     accounts 账号
    -     pwd 密码 -
    -
    - -
    - -
    - {{if !empty($data['register_sync_url'])}} - {{$data.register_sync_url|raw}} - {{else /}} - 无 - {{/if}} -
    -
    - 附带参数(手机号、邮箱、用户名、用户昵称 都为可选参数[但至少会有一个字段存在])
    - data 当前用户数据 [ 以 urlencode(json_encode($data)) ]
    - params 用户注册账号信息 [ 以 urlencode(json_encode($params)) ]
    -     mobile 手机号
    -     email 邮箱
    -     username 用户名
    -     nickname 用户昵称
    -     pwd 密码 -
    -
    -
    - -
    - {{if !empty($data['register_async_url'])}} - {{$data.register_async_url|raw}} - {{else /}} - 无 - {{/if}} -
    -
    - 附带参数(手机号、邮箱、用户名、用户昵称 都为可选参数[但至少会有一个字段存在])
    - data 当前用户数据 [ 以 urlencode(json_encode($data)) ]
    - params 用户注册账号信息 [ 以 urlencode(json_encode($params)) ]
    -     mobile 手机号
    -     email 邮箱
    -     username 用户名
    -     nickname 用户昵称
    -     pwd 密码 -
    -
    - -
    - -
    - {{if !empty($data['logout_sync_url'])}} - {{$data.logout_sync_url|raw}} - {{else /}} - 无 - {{/if}} -
    -
    - 附带参数
    - data 当前用户数据 [ 以 urlencode(json_encode($data)) ] -
    -
    -
    - -
    - {{if !empty($data['logout_async_url'])}} - {{$data.logout_async_url|raw}} - {{else /}} - 无 - {{/if}} -
    -
    - 附带参数
    - data 当前用户数据 [ 以 urlencode(json_encode($data)) ] -
    -
    - -
    - -
    - {{if !empty($data['loginpwdupdate_async_url'])}} - {{$data.loginpwdupdate_async_url|raw}} - {{else /}} - 无 - {{/if}} -
    -
    - 附带参数
    - data 当前用户数据 [ 以 urlencode(json_encode($data)) ]
    - params 用户账号信息 [ 以 urlencode(json_encode($params)) ]
    -     accounts 账号
    -     pwd 密码 -
    -
    - -
    - -
    - {{if !empty($data['accounts_async_url'])}} - {{$data.accounts_async_url|raw}} - {{else /}} - 无 - {{/if}} -
    -
    - 附带参数
    - data 当前用户数据 [ 以 urlencode(json_encode($data)) ]
    - params 用户账号信息 [ 以 urlencode(json_encode($params)) ]
    -     accounts 原来的账号
    -     new_accounts 新的账号
    -     field 字段类型(mobile、email、username) -
    -
    - -
    - -
    - {{:PluginsHomeUrl('ucenter', 'api', 'login')}} -
    -
    - 附带参数
    - data 当前用户数据 [ 以 urlencode(json_encode($data)) ]
    - params 用户登录账号信息 [ 以 urlencode(json_encode($params)) ]
    -     accounts 账号
    -     pwd 密码 -
    -
    - -
    - -
    - {{:PluginsHomeUrl('ucenter', 'api', 'register')}} -
    -
    - 附带参数
    - data 当前用户数据 [ 以 urlencode(json_encode($data)) ]
    - params 用户注册账号信息 [ 以 urlencode(json_encode($params)) ]
    -     accounts 账号
    -     pwd 密码 -
    -
    - -
    - -
    - {{:PluginsHomeUrl('ucenter', 'api', 'logout')}} -
    -
    - 附带参数
    - data 当前用户数据 [ 以 urlencode(json_encode($data)) ] -
    -
    - -
    - -
    - {{:PluginsHomeUrl('ucenter', 'api', 'loginpwdupdate')}} -
    -
    - 附带参数
    - data 当前用户数据 [ 以 urlencode(json_encode($data)) ]
    - params 修改密码参数信息 [ 以 urlencode(json_encode($params)) ]
    -     accounts 账号
    -     my_pwd 原始密码
    -     new_pwd 新密码
    -     confirm_new_pwd 确认新密码 -
    -
    - - 编辑 -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/ucenter/admin/admin/saveinfo.html b/application/plugins/view/ucenter/admin/admin/saveinfo.html deleted file mode 100755 index f7c35c5d0..000000000 --- a/application/plugins/view/ucenter/admin/admin/saveinfo.html +++ /dev/null @@ -1,65 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - -
    - - UCenter - 返回 - - -
    - - -
    -
    - - -
    - - -
    - - -
    -
    - - -
    - - -
    - - -
    -
    - - -
    - - -
    - - -
    - - -
    - - -
    - -
    - -
    -
    - -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/usercentertopnotice/admin/admin/index.html b/application/plugins/view/usercentertopnotice/admin/admin/index.html deleted file mode 100755 index 6dcedae18..000000000 --- a/application/plugins/view/usercentertopnotice/admin/admin/index.html +++ /dev/null @@ -1,44 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 顶部公告 - 返回 - - -
    -
    - -
    - {{if !empty($data['content'])}} - {{$data.content}} - {{else /}} - 无 - {{/if}} -
    -
    -
    - -
    - {{if !empty($data['time_start']) and !empty($data['time_end'])}} - {{$data.time_start}} ~ {{$data.time_end}} - {{elseif !empty($data['time_start']) and empty($data['time_end'])}} - {{$data.time_start}} ~ 长期有效 - {{elseif empty($data['time_start']) and !empty($data['time_end'])}} - 立即生效 ~ {{$data.time_end}} - {{else /}} - 无限制 - {{/if}} -
    -
    - 编辑 -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/usercentertopnotice/admin/admin/saveinfo.html b/application/plugins/view/usercentertopnotice/admin/admin/saveinfo.html deleted file mode 100755 index d6c45d228..000000000 --- a/application/plugins/view/usercentertopnotice/admin/admin/saveinfo.html +++ /dev/null @@ -1,38 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - -
    - - 顶部公告 - 返回 - - -
    - - -
    - -
    - -
    - - ~ - -
    -
    - -
    - -
    -
    - -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/usercentertopnotice/index/public/content.html b/application/plugins/view/usercentertopnotice/index/public/content.html deleted file mode 100755 index d2f141836..000000000 --- a/application/plugins/view/usercentertopnotice/index/public/content.html +++ /dev/null @@ -1,3 +0,0 @@ -
    -
    {{$data.content}}
    -
    \ No newline at end of file diff --git a/application/plugins/view/userloginrewardintegral/admin/admin/index.html b/application/plugins/view/userloginrewardintegral/admin/admin/index.html deleted file mode 100755 index f444acda1..000000000 --- a/application/plugins/view/userloginrewardintegral/admin/admin/index.html +++ /dev/null @@ -1,55 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 登录奖励积分 - 返回 - - -
    -
    - -
    - {{if !empty($data['give_integral'])}} - {{$data.give_integral}} - {{else /}} - 0 - {{/if}} - 积分 -
    -
    -
    - -
    - {{if isset($data['is_day_once']) and $data['is_day_once'] eq 1}} - 是 - {{else /}} - 否 - {{/if}} -
    -
    -
    - -
    - {{if !empty($data['time_start']) and !empty($data['time_end'])}} - {{$data.time_start}} ~ {{$data.time_end}} - {{elseif !empty($data['time_start']) and empty($data['time_end'])}} - {{$data.time_start}} ~ 长期有效 - {{elseif empty($data['time_start']) and !empty($data['time_end'])}} - 立即生效 ~ {{$data.time_end}} - {{else /}} - 无限制 - {{/if}} -
    -
    - 编辑 -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/userloginrewardintegral/admin/admin/saveinfo.html b/application/plugins/view/userloginrewardintegral/admin/admin/saveinfo.html deleted file mode 100755 index 7935456a4..000000000 --- a/application/plugins/view/userloginrewardintegral/admin/admin/saveinfo.html +++ /dev/null @@ -1,49 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - -
    - - 登录奖励积分 - 返回 - - -
    - - -
    - -
    - -
    - {{foreach $is_whether_list as $v}} - - {{/foreach}} -
    -
    - -
    - -
    - - ~ - -
    -
    - -
    - -
    -
    - -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/usernotloginhidegoodsprice/admin/admin/index.html b/application/plugins/view/usernotloginhidegoodsprice/admin/admin/index.html deleted file mode 100755 index c0c02d2df..000000000 --- a/application/plugins/view/usernotloginhidegoodsprice/admin/admin/index.html +++ /dev/null @@ -1,51 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 未登录隐藏商品价格 - 返回 - - -
    -
    - -
    - {{if !empty($data['original_price_placeholder'])}} - {{$data.original_price_placeholder}} - {{else /}} - 未填写 - {{/if}} -
    -
    -
    - -
    - {{if !empty($data['price_placeholder'])}} - {{$data.price_placeholder}} - {{else /}} - 登录可见 - {{/if}} -
    -
    -
    - -
    - {{if !empty($data['limit_terminal_text'])}} - {{$data.limit_terminal_text}} - {{else /}} - 全部 - {{/if}} -
    -
    - - 编辑 -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/usernotloginhidegoodsprice/admin/admin/saveinfo.html b/application/plugins/view/usernotloginhidegoodsprice/admin/admin/saveinfo.html deleted file mode 100755 index a87082bae..000000000 --- a/application/plugins/view/usernotloginhidegoodsprice/admin/admin/saveinfo.html +++ /dev/null @@ -1,43 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - -
    - - 未登录隐藏商品价格 - 返回 - - -
    - - -
    - -
    - - -
    - -
    - - -
    - -
    - -
    -
    - -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/wallet/admin/admin/index.html b/application/plugins/view/wallet/admin/admin/index.html deleted file mode 100755 index 0c67f955b..000000000 --- a/application/plugins/view/wallet/admin/admin/index.html +++ /dev/null @@ -1,119 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 钱包 - 返回 - - -
    - -
    -
    - 基础数据 - 编辑 -
    -
    - -
    -
    - - -
    -
    - 管理 -
    -
    - -
    -
    -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/wallet/admin/admin/saveinfo.html b/application/plugins/view/wallet/admin/admin/saveinfo.html deleted file mode 100755 index 494299da6..000000000 --- a/application/plugins/view/wallet/admin/admin/saveinfo.html +++ /dev/null @@ -1,84 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - -
    - - 配置管理 - 返回 - - -
    - -
    - {{foreach $is_whether_list as $v}} - - {{/foreach}} -
    -
    - -
    - -
    - {{foreach $is_whether_list as $v}} - - {{/foreach}} -
    -
    - -
    - -
    - - - - -
    -
    - -

    - 提现申请通过安全验证后,在规定时间内完提现申请操作,单位[ 分钟 ],默认30分钟 -

    -
    -
    - -
    - -
    - {{foreach $recharge_give_type_list as $v}} - - {{/foreach}} -
    - -
    - -

    - 赠送金额规则,小于0或空则不赠送
    - - 固定金额:填写相应的金额即可
    - 比例:填写百分比数值,如 10% 则填写 10(小数保留两位、四舍五入) -
    -

    -
    -
    - -
    - -
    -
    - -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/wallet/admin/cash/auditinfo.html b/application/plugins/view/wallet/admin/cash/auditinfo.html deleted file mode 100644 index 1e80eb7b6..000000000 --- a/application/plugins/view/wallet/admin/cash/auditinfo.html +++ /dev/null @@ -1,90 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 提现审核 - 返回 - - -
    - {{if !empty($data)}} - -
    - {{if !empty($data['user'])}} - - {{/if}} - -
    -

    用户钱包

    -
    - 有效金额: - {{$user_wallet.normal_money}} 元 -
    -
    - 冻结金额: - {{$user_wallet.frozen_money}} 元 -
    -
    - 赠送金额: - {{$user_wallet.give_money}} 元 -
    -
    - -
    -

    收款信息

    - 银行:{{$data.bank_name}}
    - 账号:{{$data.bank_accounts}}
    - 姓名:{{$data.bank_username}}
    -
    - -
    -

    申请信息

    - 单号:{{$data.cash_no}}
    - 金额:{{$data.money}} 元 -
    - -
    - - -
    - -
    - - -
    - -
    - - -
    - -
    - - - - -
    -
    - - {{else /}} -
    {{$msg}}
    - {{/if}} -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/wallet/admin/cash/index.html b/application/plugins/view/wallet/admin/cash/index.html deleted file mode 100644 index cc5000b81..000000000 --- a/application/plugins/view/wallet/admin/cash/index.html +++ /dev/null @@ -1,197 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 提现申请管理 - 返回 - - -
    - - - - - - - - - - - - - - - - - - - {{if !empty($data_list)}} - {{foreach $data_list as $v}} - - - - - - - - - - {{/foreach}} - {{/if}} - -
    用户信息提现信息收款信息打款信息备注更多操作
    - 单号:{{$v.cash_no}}
    - 金额:{{$v.money}} 元 -
    - 银行:{{$v.bank_name}}
    - 账号:{{$v.bank_accounts}}
    - 姓名:{{$v.bank_username}}
    -
    - {{$v.status_text}}
    - {{if $v['pay_money'] gt 0}} - 金额:{{$v.pay_money}}
    - {{/if}} - {{if !empty($v['pay_time_text'])}} - 时间:{{$v.pay_time_text}} - {{/if}} -
    - {{if empty($v['msg'])}}未填写{{else /}}{{$v.msg}}{{/if}} - - 查看更多 -
    -
    -
    -

    详情内容

    - × -
    -
    -
    -
    用户信息
    - - -
    提现信息
    -
    - 单号:{{$v.cash_no}}
    - 金额:{{$v.money}} 元 -
    - -
    收款信息
    -
    - 银行:{{$v.bank_name}}
    - 账号:{{$v.bank_accounts}}
    - 姓名:{{$v.bank_username}}
    -
    - -
    打款信息
    -
    - {{$v.status_text}}
    - {{if $v['pay_money'] gt 0}} - 金额:{{$v.pay_money}}
    - {{/if}} - {{if !empty($v['pay_time_text'])}} - 时间:{{$v.pay_time_text}} - {{/if}} -
    - -
    备注
    -
    {{if empty($v['msg'])}}未填写{{else /}}{{$v.msg}}{{/if}}
    - -
    申请时间
    -
    {{$v.add_time_text}}
    - -
    更新时间
    -
    {{if empty($v['upd_time_text'])}}未更新{{else /}}{{$v.upd_time_text}}{{/if}}
    -
    -
    -
    -
    -
    - {{if $v['status'] eq 0}} - - - - {{/if}} -
    - - - {{if empty($data_list)}} -
    没有相关数据
    - {{/if}} - - - {{if !empty($data_list)}} - {{$page_html|raw}} - {{/if}} -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/wallet/admin/recharge/index.html b/application/plugins/view/wallet/admin/recharge/index.html deleted file mode 100644 index 7d300ee16..000000000 --- a/application/plugins/view/wallet/admin/recharge/index.html +++ /dev/null @@ -1,177 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 充值管理 - 返回 - - -
    - - - - - - - - - - - - - - - - - {{if !empty($data_list)}} - {{foreach $data_list as $v}} - - - - - - - - {{/foreach}} - {{/if}} - -
    用户信息充值信息支付信息更多操作
    - 单号:{{$v.recharge_no}}
    - 金额:{{$v.money}} 元 -
    - 状态:{{$v.status_text}}
    - {{if !empty($v['payment_name'])}} - 方式:{{$v.payment_name}}
    - {{/if}} - {{if !empty($v['pay_time_text'])}} - 时间:{{$v.pay_time_text}}
    - {{/if}} - {{if $v['pay_money'] gt 0}} - 金额:{{$v.pay_money}} 元 - {{/if}} -
    - 查看更多 -
    -
    -
    -

    详情内容

    - × -
    -
    -
    -
    用户信息
    - - -
    充值信息
    -
    - 单号:{{$v.recharge_no}}
    - 金额:{{$v.money}} 元 -
    - -
    支付信息
    -
    - {{$v.status_text}}
    - {{if !empty($v['payment_name'])}} - 方式:{{$v.payment_name}}
    - {{/if}} - {{if !empty($v['pay_time_text'])}} - 时间:{{$v.pay_time_text}}
    - {{/if}} - {{if $v['pay_money'] gt 0}} - 金额:{{$v.pay_money}} 元 - {{/if}} -
    - -
    创建时间
    -
    {{$v.add_time_text}}
    -
    -
    -
    -
    -
    - {{if $v['status'] eq 0}} - - {{/if}} -
    - - {{if empty($data_list)}} -
    没有相关数据
    - {{/if}} - - - {{if !empty($data_list)}} - {{$page_html|raw}} - {{/if}} -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/wallet/admin/wallet/index.html b/application/plugins/view/wallet/admin/wallet/index.html deleted file mode 100644 index 4798ec215..000000000 --- a/application/plugins/view/wallet/admin/wallet/index.html +++ /dev/null @@ -1,190 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 钱包管理 - 返回 - - -
    - - - - - - - - - - - - - - - - - {{if !empty($data_list)}} - {{foreach $data_list as $v}} - - - - - - - - {{/foreach}} - {{/if}} - -
    用户信息账户金额(元)状态更多操作
    -
      -
    • - 有效:{{$v.normal_money}} -
    • -
    • - 冻结:{{$v.frozen_money}} -
    • -
    • - 赠送:{{$v.give_money}} -
    • -
    -
    {{$v.status_text}} - 查看更多 -
    -
    -
    -

    详情内容

    - × -
    -
    -
    -
    用户信息
    - - -
    账户金额(元)
    -
    -
      -
    • - 有效:{{$v.normal_money}} -
    • -
    • - 冻结:{{$v.frozen_money}} -
    • -
    • - 赠送:{{$v.give_money}} -
    • -
    -
    - -
    状态
    -
    {{$v.status_text}}
    - -
    创建时间
    -
    {{$v.add_time_text}}
    - -
    更新时间
    -
    {{if empty($v['upd_time_text'])}}未更新{{else /}}{{$v.upd_time_text}}{{/if}}
    -
    -
    -
    -
    -
    - - -
    - - - {{if empty($data_list)}} -
    没有相关数据
    - {{/if}} - - - {{if !empty($data_list)}} - {{$page_html|raw}} - {{/if}} -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/wallet/admin/wallet/saveinfo.html b/application/plugins/view/wallet/admin/wallet/saveinfo.html deleted file mode 100644 index 9c2bc8184..000000000 --- a/application/plugins/view/wallet/admin/wallet/saveinfo.html +++ /dev/null @@ -1,79 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 钱包编辑 - 返回 - - -
    - {{if !empty($data)}} - -
    -
    -
    - 有效金额: - {{$data.normal_money}} 元 -
    -
    - 冻结金额: - {{$data.frozen_money}} 元 -
    -
    - 赠送金额: - {{$data.give_money}} 元 -
    -
    -
    - - -
    - -
    - - -
    - -
    - - -
    - -
    - - -
    - -
    - - -
    - -
    - - -
    - -
    - - -
    -
    - - {{else /}} -
    {{$msg}}
    - {{/if}} -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/wallet/admin/walletlog/index.html b/application/plugins/view/wallet/admin/walletlog/index.html deleted file mode 100644 index c42bbab0b..000000000 --- a/application/plugins/view/wallet/admin/walletlog/index.html +++ /dev/null @@ -1,228 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 账户明细管理 - 返回 - - -
    - - - - - - - - - - - - - - - - - - - - - {{if !empty($data_list)}} - {{foreach $data_list as $v}} - - - - - - - - - - - - {{/foreach}} - {{/if}} - -
    用户信息业务操作类型操作金额(元)原始金额(元)最新金额(元)变更说明更多
    {{$v.business_type_text}} - {{if $v['operation_type'] eq 0}} - {{$v.operation_type_text}} - {{elseif $v['operation_type'] eq 1}} - {{$v.operation_type_text}} - {{/if}} - {{$v.money_type_text}} - {{if $v['operation_type'] eq 0}} - - - {{elseif $v['operation_type'] eq 1}} - + - {{/if}} - {{$v.operation_money}} - - {{$v.original_money}} - - {{$v.latest_money}} - {{$v.msg|raw}} - 查看更多 -
    -
    -
    -

    详情内容

    - × -
    -
    -
    -
    用户信息
    - - -
    业务类型
    -
    {{$v.business_type_text}}
    - -
    操作类型
    -
    - {{if $v['operation_type'] eq 0}} - {{$v.operation_type_text}} - {{elseif $v['operation_type'] eq 1}} - {{$v.operation_type_text}} - {{/if}} -
    - -
    金额类型
    -
    {{$v.money_type_text}}
    - -
    操作金额(元)
    -
    - {{if $v['operation_type'] eq 0}} - - - {{elseif $v['operation_type'] eq 1}} - + - {{/if}} - {{$v.operation_money}} -
    - -
    原始金额(元)
    -
    - {{$v.original_money}} -
    - -
    最新金额(元)
    -
    - {{$v.latest_money}} -
    - -
    变更说明
    -
    {{$v.msg|raw}}
    - -
    操作时间
    -
    {{$v.add_time_text}}
    -
    -
    -
    -
    -
    - - {{if empty($data_list)}} -
    没有相关数据
    - {{/if}} - - - {{if !empty($data_list)}} - {{$page_html|raw}} - {{/if}} -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/wallet/index/cash/authinfo.html b/application/plugins/view/wallet/index/cash/authinfo.html deleted file mode 100644 index 2eb874b13..000000000 --- a/application/plugins/view/wallet/index/cash/authinfo.html +++ /dev/null @@ -1,100 +0,0 @@ -{{include file="public/header" /}} - - -{{include file="public/header_top_nav" /}} - - -{{include file="public/nav_search" /}} - - -{{include file="public/header_nav" /}} - - -{{include file="public/goods_category" /}} - - -
    - - - {{include file="public/user_menu" /}} - - - -
    -
    - - {{include file="../../../plugins/view/wallet/index/public/nav" /}} - - - -
    -

    操作提示

    -
      -
    • 1. 请选择 "绑定邮箱" 或 "绑定手机" 方式其一作为安全校验码的获取方式并正确输入。
    • -
    • 2. 如果您的邮箱已失效,可以 绑定手机 后通过接收手机短信完成验证。
    • -
    • 3. 如果您的手机已失效,可以 绑定邮箱 后通过接收邮件完成验证。
    • -
    • 4. 请正确输入下方图形验证码,如看不清可点击图片进行更换,输入完成后进行下一步操作。
    • -
    • 5. 收到安全验证码后,请在{{:Myc('common_verify_expire_time', 600, true)/60}}分钟内完成验证。
    • -
    • 6. 安全验证成功后,请在{{if empty($plugins_base_data['cash_time_limit'])}}30{{else /}}{{$plugins_base_data.cash_time_limit}}{{/if}}分钟内完成提现申请。
    • -
    -
    - - - -
    -
    - - -
    - -
    - -
    - - - - -
    -
    - -
    - -
    -
    - - - -
    -
    -
    - × -
    -
    -
    - - -
    - -
    -
    -
    - -
    -
    - -
    - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/wallet/index/cash/createinfo.html b/application/plugins/view/wallet/index/cash/createinfo.html deleted file mode 100644 index 86f998340..000000000 --- a/application/plugins/view/wallet/index/cash/createinfo.html +++ /dev/null @@ -1,84 +0,0 @@ -{{include file="public/header" /}} - - -{{include file="public/header_top_nav" /}} - - -{{include file="public/nav_search" /}} - - -{{include file="public/header_nav" /}} - - -{{include file="public/goods_category" /}} - - -
    - - - {{include file="public/user_menu" /}} - - - -
    -
    - - {{include file="../../../plugins/view/wallet/index/public/nav" /}} - - - {{if isset($check_status) and $check_status eq 1}} - -
    -
    - -
    - - - - -
    -
    - 当前可用金额 {{$user_wallet.normal_money}} 元 -
    -
    - -
    - - -
    - 强烈建议优先填写国有4大银行(中国银行、中国建设银行、中国工商银行和中国农业银行) 请填写详细的开户银行分行名称,虚拟账户如支付宝、财付通、微信 直接填写 支付宝 即可。 -
    -
    - -
    - - -
    - 银行账号或虚拟账号(支付宝、财付通等账号) -
    -
    - -
    - - -
    - 收款账号的开户人姓名 -
    -
    - -
    - -
    -
    - - {{else /}} -
    安全验证已超时,请重新验证再操作 申请提现
    - {{/if}} -
    -
    - -
    - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/wallet/index/cash/index.html b/application/plugins/view/wallet/index/cash/index.html deleted file mode 100755 index c224e364b..000000000 --- a/application/plugins/view/wallet/index/cash/index.html +++ /dev/null @@ -1,177 +0,0 @@ -{{include file="public/header" /}} - - -{{include file="public/header_top_nav" /}} - - -{{include file="public/nav_search" /}} - - -{{include file="public/header_nav" /}} - - -{{include file="public/goods_category" /}} - - -
    - - - {{include file="public/user_menu" /}} - - - -
    -
    - - {{include file="../../../plugins/view/wallet/index/public/nav" /}} - - - - - - - -
    - - - - - - - - - - - - - {{if !empty($data_list)}} - {{foreach $data_list as $v}} - - - - - - - - - {{/foreach}} - {{/if}} - -
    提现信息收款信息打款信息备注申请时间更多
    - 单号:{{$v.cash_no}}
    - 金额:{{$v.money}} 元 -
    - 银行:{{$v.bank_name}}
    - 账号:{{$v.bank_accounts}}
    - 姓名:{{$v.bank_username}} -
    - {{$v.status_text}}
    - {{if $v['pay_money'] gt 0}} - 金额:{{$v.pay_money}}
    - {{/if}} - {{if !empty($v['pay_time_text'])}} - 时间:{{$v.pay_time_text}} - {{/if}} -
    {{$v.msg}}{{$v.add_time_text}} - 查看更多 -
    -
    -
    -

    详情内容

    - × -
    -
    -
    -
    提现信息
    -
    - 单号:{{$v.cash_no}}
    - 金额:{{$v.money}} 元 -
    - -
    收款信息
    -
    - 银行:{{$v.bank_name}}
    - 账号:{{$v.bank_accounts}}
    - 姓名:{{$v.bank_username}} -
    - -
    打款信息
    -
    - {{$v.status_text}}
    - {{if $v['pay_money'] gt 0}} - 金额:{{$v.pay_money}}
    - {{/if}} - {{if !empty($v['pay_time_text'])}} - 时间:{{$v.pay_time_text}} - {{/if}} -
    - -
    备注
    -
    {{$v.msg}}
    - -
    申请时间
    -
    {{$v.add_time_text}}
    -
    -
    -
    -
    -
    - - {{if empty($data_list)}} -
    没有相关数据
    - {{/if}} -
    - - - {{if !empty($data_list)}} - {{$page_html|raw}} - {{/if}} -
    -
    - -
    - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/wallet/index/public/nav.html b/application/plugins/view/wallet/index/public/nav.html deleted file mode 100755 index 36821dbd1..000000000 --- a/application/plugins/view/wallet/index/public/nav.html +++ /dev/null @@ -1,139 +0,0 @@ - -
      -
    • - 账户余额 -
    • -
    • - 充值明细 -
    • -
    • - 余额提现 -
    • - -
      - {{if in_array($plugins_control, ['wallet', 'recharge']) and (!isset($plugins_base_data['is_enable_recharge']) or $plugins_base_data['is_enable_recharge'] eq 1)}} - - {{/if}} - {{if in_array($plugins_control, ['wallet', 'cash']) and (!isset($plugins_base_data['is_enable_cash']) or $plugins_base_data['is_enable_cash'] eq 1)}} - 提现 - {{/if}} -
      -
    - - -{{if empty($wallet_error)}} -
    -
    - 有效金额 - {{$user_wallet.normal_money}} - - 正常可以使用的金额、包含赠送金额 -
    -
    - 冻结金额 - {{$user_wallet.frozen_money}} - - 一般预交易中、提现、交易并未完成,冻结相应的金额 -
    -
    - 赠送金额 - {{$user_wallet.give_money}} - - 所有赠送金额总额 -
    -
    -{{else /}} -
    - {{$wallet_error}} -
    -{{/if}} - - -
    -
    -
    - × -
    -
    -
    - -
    - - - - -
    - - -
    -
    -
    -
    - - -
    -
    -
    -

    支付确认

    - × -
    -
    -
    -
    -

    充值单号:...

    -

    充值金额:...

    -
    -
    - - {{if !empty($buy_payment_list)}} -
      - {{foreach $buy_payment_list as $payment}} - {{if !in_array($payment['payment'], config('shopxo.under_line_list'))}} -
    • - {{if !empty($payment.logo)}} - - {{/if}} - {{$payment.name}} - -
    • - {{/if}} - {{/foreach}} -
    - {{/if}} - {{if empty($buy_payment_list)}} -
    没有支付方式
    - {{/if}} - -
    - -
    - - -
    -
    -
    -
    -
    - \ No newline at end of file diff --git a/application/plugins/view/wallet/index/recharge/index.html b/application/plugins/view/wallet/index/recharge/index.html deleted file mode 100755 index cb23769db..000000000 --- a/application/plugins/view/wallet/index/recharge/index.html +++ /dev/null @@ -1,143 +0,0 @@ -{{include file="public/header" /}} - - -{{include file="public/header_top_nav" /}} - - -{{include file="public/nav_search" /}} - - -{{include file="public/header_nav" /}} - - -{{include file="public/goods_category" /}} - - -
    - - - {{include file="public/user_menu" /}} - - - -
    -
    - - {{include file="../../../plugins/view/wallet/index/public/nav" /}} - - - - - -
    - - - - - - - - - - - - - - - - {{if !empty($data_list)}} - {{foreach $data_list as $v}} - - - - - - - - - - - - {{/foreach}} - {{/if}} - -
    充值单号充值金额(元)支付金额(元)状态支付方式支付时间创建时间更多操作
    {{$v.recharge_no}} - {{$v.money}} - - {{if $v['pay_money'] gt 0}} - {{$v.pay_money}} - {{/if}} - {{$v.status_text}}{{$v.payment_name}}{{$v.pay_time_text}}{{$v.add_time_text}} - 查看更多 -
    -
    -
    -

    详情内容

    - × -
    -
    -
    -
    充值单号
    -
    {{$v.recharge_no}}
    - -
    充值金额(元)
    -
    - {{$v.money}} -
    - -
    支付金额(元)
    -
    - {{if $v['pay_money'] gt 0}} - {{$v.pay_money}} - {{/if}} -
    - -
    状态
    -
    {{$v.status_text}}
    - -
    支付方式
    -
    {{$v.payment_name}}
    - -
    支付时间
    -
    {{$v.pay_time_text}}
    - -
    创建时间
    -
    {{$v.add_time_text}}
    -
    -
    -
    -
    -
    - {{if $v['status'] eq 0}} - - - {{/if}} -
    - - {{if empty($data_list)}} -
    没有相关数据
    - {{/if}} -
    - - - {{if !empty($data_list)}} - {{$page_html|raw}} - {{/if}} -
    -
    - -
    - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/wallet/index/wallet/index.html b/application/plugins/view/wallet/index/wallet/index.html deleted file mode 100755 index b45ce2305..000000000 --- a/application/plugins/view/wallet/index/wallet/index.html +++ /dev/null @@ -1,204 +0,0 @@ -{{include file="public/header" /}} - - -{{include file="public/header_top_nav" /}} - - -{{include file="public/nav_search" /}} - - -{{include file="public/header_nav" /}} - - -{{include file="public/goods_category" /}} - - -
    - - - {{include file="public/user_menu" /}} - - - -
    -
    - - {{include file="../../../plugins/view/wallet/index/public/nav" /}} - - - - - - - -
    - - - - - - - - - - - - - - - - {{if !empty($data_list)}} - {{foreach $data_list as $v}} - - - - - - - - - - - - {{/foreach}} - {{/if}} - -
    业务类型操作类型金额类型操作金额(元)原始金额(元)最新金额(元)变更说明操作时间更多
    {{$v.business_type_text}} - {{if $v['operation_type'] eq 0}} - {{$v.operation_type_text}} - {{elseif $v['operation_type'] eq 1}} - {{$v.operation_type_text}} - {{/if}} - {{$v.money_type_text}} - {{if $v['operation_type'] eq 0}} - - - {{elseif $v['operation_type'] eq 1}} - + - {{/if}} - {{$v.operation_money}} - - {{$v.original_money}} - - {{$v.latest_money}} - {{$v.msg|raw}}{{$v.add_time_text}} - 查看更多 -
    -
    -
    -

    详情内容

    - × -
    -
    -
    -
    业务类型
    -
    {{$v.business_type_text}}
    - -
    操作类型
    -
    - {{if $v['operation_type'] eq 0}} - {{$v.operation_type_text}} - {{elseif $v['operation_type'] eq 1}} - {{$v.operation_type_text}} - {{/if}} -
    - -
    金额类型
    -
    - {{$v.money_type_text}} -
    - -
    操作金额(元)
    -
    - {{if $v['operation_type'] eq 0}} - - - {{elseif $v['operation_type'] eq 1}} - + - {{/if}} - {{$v.operation_money}} -
    - -
    原始金额(元)
    -
    - {{$v.original_money}} -
    - -
    最新金额(元)
    -
    - {{$v.latest_money}} -
    - -
    变更说明
    -
    {{$v.msg|raw}}
    - -
    操作时间
    -
    {{$v.add_time_text}}
    -
    -
    -
    -
    -
    - - {{if empty($data_list)}} -
    没有相关数据
    - {{/if}} -
    - - - {{if !empty($data_list)}} - {{$page_html|raw}} - {{/if}} -
    -
    - -
    - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/weixinwebauthorization/admin/admin/index.html b/application/plugins/view/weixinwebauthorization/admin/admin/index.html deleted file mode 100755 index 3834aad5a..000000000 --- a/application/plugins/view/weixinwebauthorization/admin/admin/index.html +++ /dev/null @@ -1,91 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - - 微信网页授权 - 返回 - - -
    -
    - -
    - {{if !empty($data['appid'])}} - {{$data.appid}} - {{else /}} - 未填写 - {{/if}} -
    -
    -
    - -
    - {{if !empty($data['secret'])}} - {{$data.secret}} - {{else /}} - 未填写 - {{/if}} -
    -
    -
    - -
    - {{if isset($data['auth_type']) and $data['auth_type'] eq 1}} - 弹出授权 - {{else /}} - 静默授权 - {{/if}} -
    -
    - -
    - -
    - {{if !empty($data['login_name'])}} - {{$data.login_name}} - {{else /}} - 未填写(不显示) - {{/if}} -
    -
    -
    - -
    - {{if !empty($data['nickname'])}} - {{$data.nickname}} - {{else /}} - 微信 - {{/if}} -
    -
    - - - - - - 编辑 -
    -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/weixinwebauthorization/admin/admin/saveinfo.html b/application/plugins/view/weixinwebauthorization/admin/admin/saveinfo.html deleted file mode 100755 index de9f0054f..000000000 --- a/application/plugins/view/weixinwebauthorization/admin/admin/saveinfo.html +++ /dev/null @@ -1,55 +0,0 @@ -{{include file="public/header" /}} - - -
    -
    - -
    - - 微信网页授权 - 返回 - - -
    - - -
    - -
    - - -
    - -
    - - -
    - -
    - - -
    - -
    - -
    - {{foreach $is_auth_type_list as $v}} - - {{/foreach}} -
    -
    - -
    - -
    -
    - -
    -
    - - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/weixinwebauthorization/index/public/auth_button.html b/application/plugins/view/weixinwebauthorization/index/public/auth_button.html deleted file mode 100755 index 6eed34fff..000000000 --- a/application/plugins/view/weixinwebauthorization/index/public/auth_button.html +++ /dev/null @@ -1,3 +0,0 @@ -{{if !empty($plugins_data['login_name'])}} - {{$plugins_data.login_name}} -{{/if}} \ No newline at end of file diff --git a/application/plugins/view/weixinwebauthorization/index/public/auth_text.html b/application/plugins/view/weixinwebauthorization/index/public/auth_text.html deleted file mode 100644 index 1d9132a17..000000000 --- a/application/plugins/view/weixinwebauthorization/index/public/auth_text.html +++ /dev/null @@ -1,3 +0,0 @@ -{{if !empty($plugins_data['login_name'])}} - {{$plugins_data.login_name}} -{{/if}} \ No newline at end of file diff --git a/application/plugins/wallet/Hook.php b/application/plugins/wallet/Hook.php deleted file mode 100755 index fd76f696a..000000000 --- a/application/plugins/wallet/Hook.php +++ /dev/null @@ -1,93 +0,0 @@ -UserCenterLeftMenuHandle($params); - break; - - // 顶部小导航右侧-我的商城 - case 'plugins_service_header_navigation_top_right_handle' : - $ret = $this->CommonTopNavRightMenuHandle($params); - break; - - default : - $ret = ''; - } - return $ret; - } - } - - /** - * 用户中心左侧菜单处理 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-04-11 - * @desc description - * @param array $params [description] - */ - public function UserCenterLeftMenuHandle($params = []) - { - $params['data']['property']['item'][] = [ - 'name' => '我的钱包', - 'url' => PluginsHomeUrl('wallet', 'wallet', 'index'), - 'contains' => ['walletindex', 'rechargeindex', 'cashindex', 'cashauthinfo', 'cashcreateinfo'], - 'is_show' => 1, - 'icon' => 'am-icon-google-wallet', - ]; - } - - /** - * 顶部小导航右侧-我的商城 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-04-11 - * @desc description - * @param array $params [description] - */ - public function CommonTopNavRightMenuHandle($params = []) - { - array_push($params['data'][1]['items'], [ - 'name' => '我的钱包', - 'url' => PluginsHomeUrl('wallet', 'wallet', 'index'), - ]); - } -} -?> \ No newline at end of file diff --git a/application/plugins/wallet/admin/Admin.php b/application/plugins/wallet/admin/Admin.php deleted file mode 100755 index 1f8ad2d64..000000000 --- a/application/plugins/wallet/admin/Admin.php +++ /dev/null @@ -1,98 +0,0 @@ -assign('data', $ret['data']); - - // 统计数据 - $this->assign('statistical', StatisticalService::StatisticalData()); - - return $this->fetch('../../../plugins/view/wallet/admin/admin/index'); - } else { - return $ret['msg']; - } - } - - /** - * 编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function saveinfo($params = []) - { - $ret = PluginsService::PluginsData('wallet', '', false); - if($ret['code'] == 0) - { - // 是否 - $is_whether_list = [ - 0 => array('value' => 0, 'name' => '否'), - 1 => array('value' => 1, 'name' => '是', 'checked' => true), - ]; - $this->assign('is_whether_list', $is_whether_list); - - // 充值赠送类型 - $recharge_give_type_list = [ - 0 => array('value' => 0, 'name' => '固定金额', 'checked' => true), - 1 => array('value' => 1, 'name' => '比例'), - ]; - $this->assign('recharge_give_type_list', $recharge_give_type_list); - - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/wallet/admin/admin/saveinfo'); - } else { - return $ret['msg']; - } - } - - /** - * 数据保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - return PluginsService::PluginsDataSave(['plugins'=>'wallet', 'data'=>$params]); - } -} -?> \ No newline at end of file diff --git a/application/plugins/wallet/admin/Cash.php b/application/plugins/wallet/admin/Cash.php deleted file mode 100644 index a72e4c678..000000000 --- a/application/plugins/wallet/admin/Cash.php +++ /dev/null @@ -1,135 +0,0 @@ - $number, - 'total' => $total, - 'where' => $params, - 'page' => isset($params['page']) ? intval($params['page']) : 1, - 'url' => PluginsAdminUrl('wallet', 'cash', 'index'), - ); - $page = new \base\Page($page_params); - $this->assign('page_html', $page->GetPageHtml()); - - // 获取列表 - if($total > 0) - { - $data_params = array( - 'm' => $page->GetPageStarNumber(), - 'n' => $number, - 'where' => $where, - ); - $data = BaseService::CashList($data_params); - $this->assign('data_list', $data['data']); - } else { - $this->assign('data_list', []); - } - - // 静态数据 - $this->assign('cash_status_list', CashService::$cash_status_list); - - // 参数 - $this->assign('params', $params); - return $this->fetch('../../../plugins/view/wallet/admin/cash/index'); - } - - /** - * 审核页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-05-05 - * @desc description - * @param [array] $params [输入参数] - */ - public function auditinfo($params = []) - { - $data = []; - if(!empty($params['id'])) - { - $data_params = array( - 'm' => 0, - 'n' => 1, - 'where' => ['id'=>intval($params['id'])], - ); - $ret = BaseService::CashList($data_params); - if(!empty($ret['data'][0])) - { - // 用户钱包 - $user_wallet = WalletService::UserWallet($ret['data'][0]['user_id']); - if($user_wallet['code'] == 0) - { - $data = $ret['data'][0]; - $this->assign('user_wallet', $user_wallet['data']); - } else { - $this->assign('msg', $user_wallet['msg']); - } - } else { - $this->assign('msg', '数据不存在或已删除'); - } - } else { - $this->assign('msg', '参数id有误'); - } - - $this->assign('data', $data); - return $this->fetch('../../../plugins/view/wallet/admin/cash/auditinfo'); - } - - /** - * 审核 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-05-06 - * @desc description - * @param [array] $params [输入参数] - */ - public function audit($params = []) - { - return CashService::CashAudit($params); - } -} -?> \ No newline at end of file diff --git a/application/plugins/wallet/admin/Recharge.php b/application/plugins/wallet/admin/Recharge.php deleted file mode 100644 index 63858e60f..000000000 --- a/application/plugins/wallet/admin/Recharge.php +++ /dev/null @@ -1,99 +0,0 @@ - $number, - 'total' => $total, - 'where' => $params, - 'page' => isset($params['page']) ? intval($params['page']) : 1, - 'url' => PluginsAdminUrl('wallet', 'recharge', 'index'), - ); - $page = new \base\Page($page_params); - $this->assign('page_html', $page->GetPageHtml()); - - // 获取列表 - if($total > 0) - { - $data_params = array( - 'm' => $page->GetPageStarNumber(), - 'n' => $number, - 'where' => $where, - ); - $data = BaseService::RechargeList($data_params); - $this->assign('data_list', $data['data']); - } else { - $this->assign('data_list', []); - } - - // 静态数据 - $this->assign('recharge_status_list', RechargeService::$recharge_status_list); - - // 参数 - $this->assign('params', $params); - return $this->fetch('../../../plugins/view/wallet/admin/recharge/index'); - } - - /** - * 充值纪录删除 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-09-14 - * @desc description - * @param [array] $params [输入参数] - */ - public function delete($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - // 开始处理 - return RechargeService::RechargeDelete($params); - } -} -?> \ No newline at end of file diff --git a/application/plugins/wallet/admin/Wallet.php b/application/plugins/wallet/admin/Wallet.php deleted file mode 100644 index e232cbe17..000000000 --- a/application/plugins/wallet/admin/Wallet.php +++ /dev/null @@ -1,129 +0,0 @@ - $number, - 'total' => $total, - 'where' => $params, - 'page' => isset($params['page']) ? intval($params['page']) : 1, - 'url' => PluginsAdminUrl('wallet', 'wallet', 'index'), - ); - $page = new \base\Page($page_params); - $this->assign('page_html', $page->GetPageHtml()); - - // 获取列表 - if($total > 0) - { - $data_params = array( - 'm' => $page->GetPageStarNumber(), - 'n' => $number, - 'where' => $where, - ); - $data = BaseService::WalletList($data_params); - $this->assign('data_list', $data['data']); - } else { - $this->assign('data_list', []); - } - - // 静态数据 - $this->assign('wallet_status_list', WalletService::$wallet_status_list); - - // 参数 - $this->assign('params', $params); - return $this->fetch('../../../plugins/view/wallet/admin/wallet/index'); - } - - /** - * 钱包编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-05-05 - * @desc description - * @param [array] $params [输入参数] - */ - public function saveinfo($params = []) - { - $data = []; - if(!empty($params['id'])) - { - $data_params = array( - 'm' => 0, - 'n' => 1, - 'where' => ['id'=>intval($params['id'])], - ); - $ret = BaseService::WalletList($data_params); - if(!empty($ret['data'][0])) - { - $data = $ret['data'][0]; - - // 静态数据 - $this->assign('wallet_status_list', WalletService::$wallet_status_list); - } else { - $this->assign('msg', '钱包有误'); - } - } else { - $this->assign('msg', '钱包id有误'); - } - - $this->assign('data', $data); - return $this->fetch('../../../plugins/view/wallet/admin/wallet/saveinfo'); - } - - /** - * 钱包编辑 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-05-06 - * @desc description - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - return WalletService::WalletEdit($params); - } -} -?> \ No newline at end of file diff --git a/application/plugins/wallet/admin/Walletlog.php b/application/plugins/wallet/admin/Walletlog.php deleted file mode 100644 index 13b4bd19f..000000000 --- a/application/plugins/wallet/admin/Walletlog.php +++ /dev/null @@ -1,75 +0,0 @@ - $number, - 'total' => $total, - 'where' => $params, - 'page' => isset($params['page']) ? intval($params['page']) : 1, - 'url' => PluginsAdminUrl('wallet', 'walletlog', 'index'), - ); - $page = new \base\Page($page_params); - $this->assign('page_html', $page->GetPageHtml()); - - // 获取列表 - $data_params = array( - 'm' => $page->GetPageStarNumber(), - 'n' => $number, - 'where' => $where, - ); - $data = BaseService::WalletLogList($data_params); - $this->assign('data_list', $data['data']); - - // 静态数据 - $this->assign('business_type_list', WalletService::$business_type_list); - $this->assign('operation_type_list', WalletService::$operation_type_list); - $this->assign('money_type_list', WalletService::$money_type_list); - - // 参数 - $this->assign('params', $params); - return $this->fetch('../../../plugins/view/wallet/admin/walletlog/index'); - } -} -?> \ No newline at end of file diff --git a/application/plugins/wallet/config.json b/application/plugins/wallet/config.json deleted file mode 100755 index 2adbccba3..000000000 --- a/application/plugins/wallet/config.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "base":{ - "plugins":"wallet", - "name":"钱包", - "logo":"\/static\/upload\/images\/plugins_wallet\/2019\/04\/28\/1556447296647734.jpg", - "author":"Devil", - "author_url":"https:\/\/shopxo.net\/", - "version":"1.0.0", - "desc":"用户钱包,在线充值,提现", - "apply_terminal":[ - "pc", - "h5", - "app", - "alipay", - "weixin", - "baidu" - ], - "apply_version":[ - "1.5.0" - ], - "is_home":false - }, - "hook":{ - "plugins_service_users_center_left_menu_handle":[ - "app\\plugins\\wallet\\Hook" - ], - "plugins_service_header_navigation_top_right_handle":[ - "app\\plugins\\wallet\\Hook" - ] - } -} \ No newline at end of file diff --git a/application/plugins/wallet/index/Cash.php b/application/plugins/wallet/index/Cash.php deleted file mode 100644 index 5e28b7a66..000000000 --- a/application/plugins/wallet/index/Cash.php +++ /dev/null @@ -1,235 +0,0 @@ -user; - - // 分页 - $number = 10; - - // 条件 - $where = BaseService::CashWhere($params); - - // 获取总数 - $total = BaseService::CashTotal($where); - - // 分页 - $page_params = array( - 'number' => $number, - 'total' => $total, - 'where' => $params, - 'page' => isset($params['page']) ? intval($params['page']) : 1, - 'url' => PluginsHomeUrl('wallet', 'cash', 'index'), - ); - $page = new \base\Page($page_params); - $this->assign('page_html', $page->GetPageHtml()); - - // 获取列表 - $data_params = array( - 'm' => $page->GetPageStarNumber(), - 'n' => $number, - 'where' => $where, - ); - $data = BaseService::CashList($data_params); - $this->assign('data_list', $data['data']); - - // 静态数据 - $this->assign('cash_status_list', CashService::$cash_status_list); - - // 参数 - $this->assign('params', $params); - return $this->fetch('../../../plugins/view/wallet/index/cash/index'); - } - - /** - * 余额提现 - 安全验证 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-03-15T23:51:50+0800 - * @param [array] $params [输入参数] - */ - public function authinfo($params = []) - { - // 是否开启提现申请 - if(isset($this->plugins_base['is_enable_cash']) && $this->plugins_base['is_enable_cash'] == 0) - { - $this->assign('msg', '暂时关闭了提现申请'); - return $this->fetch('public/tips_error'); - } - - // 手机号/邮箱 - $check_account_list = [ - ['field' => 'mobile_security', 'value' => 'mobile', 'name' => '手机'], - ['field' => 'email_security', 'value' => 'email','name' => '邮箱'], - ]; - $this->assign('check_account_list', $check_account_list); - - // 参数 - $this->assign('params', $params); - return $this->fetch('../../../plugins/view/wallet/index/cash/authinfo'); - } - - /** - * 余额提现 - 提现信息填写页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-03-15T23:51:50+0800 - * @param [array] $params [输入参数] - */ - public function createinfo($params = []) - { - // 是否开启提现申请 - if(isset($this->plugins_base['is_enable_cash']) && $this->plugins_base['is_enable_cash'] == 0) - { - $this->assign('msg', '暂时关闭了提现申请'); - return $this->fetch('public/tips_error'); - } - - // 安全验证后规定时间内时间限制 - $cash_time_limit = empty($this->plugins_base['cash_time_limit']) ? 30 : $this->plugins_base['cash_time_limit']*60; - - // 是否验证成功 - $check_time = session('plugins_wallet_cash_check_success'); - $check_status = (!empty($check_time) && $check_time+$cash_time_limit >= time()) ? 1 : 0; - $this->assign('check_status', $check_status); - - // 参数 - $this->assign('params', $params); - return $this->fetch('../../../plugins/view/wallet/index/cash/createinfo'); - } - - /** - * 验证码显示 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-05-08 - * @desc description - * @param [array] $params [输入参数] - */ - public function verifyentry($params = []) - { - $params = array( - 'width' => 100, - 'height' => 28, - 'use_point_back' => false, - 'key_prefix' => 'wallet_cash', - ); - $verify = new \base\Verify($params); - $verify->Entry(); - } - - /** - * 验证码发送 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-05-08 - * @desc description - * @param [array] $params [输入参数] - */ - public function verifysend($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 开始处理 - $params['user'] = $this->user; - return CashService::VerifySend($params); - } - - /** - * 验证码校验 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-05-08 - * @desc description - * @param [array] $params [输入参数] - */ - public function verifycheck($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 开始处理 - $params['user'] = $this->user; - return CashService::VerifyCheck($params); - } - - /** - * 提现创建 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-05-08 - * @desc description - * @param [array] $params [输入参数] - */ - public function create($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 开始处理 - $params['user'] = $this->user; - return CashService::CashCreate($params); - } -} -?> \ No newline at end of file diff --git a/application/plugins/wallet/index/Common.php b/application/plugins/wallet/index/Common.php deleted file mode 100644 index 7d740ff09..000000000 --- a/application/plugins/wallet/index/Common.php +++ /dev/null @@ -1,84 +0,0 @@ -user = UserService::LoginUserInfo(); - - // 登录校验 - if(empty($this->user)) - { - if(IS_AJAX) - { - exit(json_encode(DataReturn('登录失效,请重新登录', -400))); - } else { - return $this->redirect('index/user/logininfo'); - } - } - - // 发起支付 - 支付方式 - $this->assign('buy_payment_list', PaymentService::BuyPaymentList(['is_enable'=>1, 'is_open_user'=>1])); - - // 用户钱包 - $user_wallet = WalletService::UserWallet($this->user['id']); - - // 用户钱包错误信息 - $wallet_error = ($user_wallet['code'] == 0) ? '' : $user_wallet['msg']; - $this->assign('wallet_error', $wallet_error); - - // 所有ajax请求校验用户钱包状态 - if(IS_AJAX && !empty($wallet_error)) - { - exit(json_encode(DataReturn($wallet_error, -50))); - } - - // 用户钱包信息 - $this->user_wallet = $user_wallet['data']; - $this->assign('user_wallet', $user_wallet['data']); - - // 应用配置 - $plugins_base = PluginsService::PluginsData('wallet'); - $this->plugins_base = $plugins_base['data']; - $this->assign('plugins_base_data', $this->plugins_base); - } -} -?> \ No newline at end of file diff --git a/application/plugins/wallet/index/Recharge.php b/application/plugins/wallet/index/Recharge.php deleted file mode 100755 index aa7ea4ca9..000000000 --- a/application/plugins/wallet/index/Recharge.php +++ /dev/null @@ -1,209 +0,0 @@ -user; - - // 分页 - $number = 10; - - // 条件 - $where = BaseService::RechargeWhere($params); - - // 获取总数 - $total = BaseService::RechargeTotal($where); - - // 分页 - $page_params = array( - 'number' => $number, - 'total' => $total, - 'where' => $params, - 'page' => isset($params['page']) ? intval($params['page']) : 1, - 'url' => PluginsHomeUrl('wallet', 'recharge', 'index'), - ); - $page = new \base\Page($page_params); - $this->assign('page_html', $page->GetPageHtml()); - - // 获取列表 - $data_params = array( - 'm' => $page->GetPageStarNumber(), - 'n' => $number, - 'where' => $where, - ); - $data = BaseService::RechargeList($data_params); - $this->assign('data_list', $data['data']); - - // 参数 - $this->assign('params', $params); - return $this->fetch('../../../plugins/view/wallet/index/recharge/index'); - } - - /** - * 充值订单创建 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-03-15T23:51:50+0800 - * @param [array] $params [输入参数] - */ - public function create($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 是否开启充值 - if(isset($this->plugins_base['is_enable_recharge']) && $this->plugins_base['is_enable_recharge'] == 0) - { - return DataReturn('暂时关闭了在线充值', -1); - } - - // 用户 - $params['user'] = $this->user; - $params['user_wallet'] = $this->user_wallet; - return RechargeService::RechargeCreate($params); - } - - /** - * 支付 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-03-15T23:51:50+0800 - * @param [array] $params [输入参数] - */ - public function pay($params = []) - { - // 用户 - $params['user'] = $this->user; - $ret = PayService::Pay($params); - if($ret['code'] == 0) - { - return redirect($ret['data']); - } else { - $this->assign('msg', $ret['msg']); - return $this->fetch('public/tips_error'); - } - } - - /** - * 支付状态校验 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-03-15T23:51:50+0800 - * @param [array] $params [输入参数] - */ - public function paycheck($params = []) - { - if(input('post.')) - { - $params['user'] = $this->user; - return PayService::RechargePayCheck($params); - } else { - $this->assign('msg', '非法访问'); - return $this->fetch('public/tips_error'); - } - } - - /** - * 支付同步页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-04-29 - * @desc description - * @param [array] $params [输入参数] - */ - public function respond($params = []) - { - // 获取支付回调数据 - $params['user'] = $this->user; - $ret = PayService::Respond($params); - - // 自定义链接 - $this->assign('to_url', PluginsHomeUrl('wallet', 'recharge', 'index')); - $this->assign('to_title', '充值明细'); - - // 状态 - if($ret['code'] == 0) - { - $this->assign('msg', '支付成功'); - return $this->fetch('public/tips_success'); - } else { - $this->assign('msg', $ret['msg']); - return $this->fetch('public/tips_error'); - } - } - - /** - * 充值纪录删除 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-09-14 - * @desc description - * @param [array] $params [输入参数] - */ - public function delete($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - // 开始处理 - $params['user'] = $this->user; - return RechargeService::RechargeDelete($params); - } -} -?> \ No newline at end of file diff --git a/application/plugins/wallet/index/Rechargenotify.php b/application/plugins/wallet/index/Rechargenotify.php deleted file mode 100644 index 379251ae3..000000000 --- a/application/plugins/wallet/index/Rechargenotify.php +++ /dev/null @@ -1,42 +0,0 @@ - \ No newline at end of file diff --git a/application/plugins/wallet/index/Wallet.php b/application/plugins/wallet/index/Wallet.php deleted file mode 100644 index e384d5f0d..000000000 --- a/application/plugins/wallet/index/Wallet.php +++ /dev/null @@ -1,91 +0,0 @@ -user; - - // 分页 - $number = 10; - - // 条件 - $where = BaseService::WalletLogWhere($params); - - // 获取总数 - $total = BaseService::WalletLogTotal($where); - - // 分页 - $page_params = array( - 'number' => $number, - 'total' => $total, - 'where' => $params, - 'page' => isset($params['page']) ? intval($params['page']) : 1, - 'url' => PluginsHomeUrl('wallet', 'wallet', 'index'), - ); - $page = new \base\Page($page_params); - $this->assign('page_html', $page->GetPageHtml()); - - // 获取列表 - $data_params = array( - 'm' => $page->GetPageStarNumber(), - 'n' => $number, - 'where' => $where, - ); - $data = BaseService::WalletLogList($data_params); - $this->assign('data_list', $data['data']); - - // 静态数据 - $this->assign('business_type_list', WalletService::$business_type_list); - $this->assign('operation_type_list', WalletService::$operation_type_list); - $this->assign('money_type_list', WalletService::$money_type_list); - - // 参数 - $this->assign('params', $params); - return $this->fetch('../../../plugins/view/wallet/index/wallet/index'); - } -} -?> \ No newline at end of file diff --git a/application/plugins/wallet/install.sql b/application/plugins/wallet/install.sql deleted file mode 100644 index 0d7cc50dc..000000000 --- a/application/plugins/wallet/install.sql +++ /dev/null @@ -1,75 +0,0 @@ -# 钱包 -CREATE TABLE `{PREFIX}plugins_wallet` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id', - `user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户id', - `status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '状态(0正常, 1异常, 2已注销)', - `normal_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '有效金额(包含赠送金额)', - `frozen_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '冻结金额', - `give_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '赠送金额(所有赠送金额总计)', - `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间', - `upd_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间', - PRIMARY KEY (`id`), - KEY `status` (`status`), - KEY `user_id` (`user_id`) -) ENGINE=InnoDB DEFAULT CHARSET={CHARSET} ROW_FORMAT=DYNAMIC COMMENT='钱包 - 应用'; - -# 钱包日志 -CREATE TABLE `{PREFIX}plugins_wallet_log` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id', - `user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户id', - `wallet_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '钱包id', - `business_type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '业务类型(0系统, 1充值, 2提现, 3消费)', - `money_type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '金额类型(0正常, 1冻结, 2赠送)', - `operation_type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '操作类型( 0减少, 1增加)', - `operation_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '操作金额', - `original_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '原始金额', - `latest_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '最新金额', - `msg` char(200) NOT NULL DEFAULT '' COMMENT '变更说明', - `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间', - PRIMARY KEY (`id`), - KEY `wallet_id` (`wallet_id`), - KEY `user_id` (`user_id`) -) ENGINE=InnoDB DEFAULT CHARSET={CHARSET} ROW_FORMAT=DYNAMIC COMMENT='钱包日志 - 应用'; - -# 充值 -CREATE TABLE `{PREFIX}plugins_wallet_recharge` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id', - `user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户id', - `wallet_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '钱包id', - `recharge_no` char(60) NOT NULL DEFAULT '' COMMENT '充值单号', - `status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '状态(0未支付, 1已支付)', - `money` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '金额', - `pay_money` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '支付金额', - `payment_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '支付方式id', - `payment` char(60) NOT NULL DEFAULT '' COMMENT '支付方式标记', - `payment_name` char(60) NOT NULL DEFAULT '' COMMENT '支付方式名称', - `pay_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '支付时间', - `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间', - PRIMARY KEY (`id`), - UNIQUE KEY `recharge_no` (`recharge_no`), - KEY `status` (`status`), - KEY `user_id` (`user_id`) -) ENGINE=InnoDB DEFAULT CHARSET={CHARSET} ROW_FORMAT=DYNAMIC COMMENT='钱包充值 - 应用'; - -# 钱包提现 -CREATE TABLE `{PREFIX}plugins_wallet_cash` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id', - `user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户id', - `wallet_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '钱包id', - `cash_no` char(60) NOT NULL DEFAULT '' COMMENT '提现单号', - `status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '状态(0未打款, 1已打款, 2打款失败)', - `money` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '提现金额', - `pay_money` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '打款金额', - `bank_name` char(60) NOT NULL DEFAULT '' COMMENT '收款银行', - `bank_accounts` char(60) NOT NULL DEFAULT '' COMMENT '收款账号', - `bank_username` char(60) NOT NULL DEFAULT '' COMMENT '开户人姓名', - `msg` char(200) NOT NULL DEFAULT '' COMMENT '描述(用户可见)', - `pay_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '打款时间', - `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间', - `upd_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间', - PRIMARY KEY (`id`), - UNIQUE KEY `cash_no` (`cash_no`), - KEY `status` (`status`), - KEY `user_id` (`user_id`), - KEY `wallet_id` (`wallet_id`) -) ENGINE=InnoDB DEFAULT CHARSET={CHARSET} ROW_FORMAT=DYNAMIC COMMENT='钱包提现 - 应用'; \ No newline at end of file diff --git a/application/plugins/wallet/service/BaseService.php b/application/plugins/wallet/service/BaseService.php deleted file mode 100755 index 124ec0995..000000000 --- a/application/plugins/wallet/service/BaseService.php +++ /dev/null @@ -1,426 +0,0 @@ -field($field)->where($where)->limit($m, $n)->order($order_by)->select(); - if(!empty($data)) - { - $wallet_status_list = WalletService::$wallet_status_list; - foreach($data as &$v) - { - // 用户信息 - $v['user'] = UserService::GetUserViewInfo($v['user_id']); - - // 状态 - $v['status_text'] = (isset($v['status']) && isset($wallet_status_list[$v['status']])) ? $wallet_status_list[$v['status']]['name'] : '未知'; - - // 时间 - $v['add_time_text'] = empty($v['add_time']) ? '' : date('Y-m-d H:i:s', $v['add_time']); - $v['upd_time_text'] = empty($v['upd_time']) ? '' : date('Y-m-d H:i:s', $v['upd_time']); - } - } - return DataReturn('处理成功', 0, $data); - } - - /** - * 钱包总数 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-09-29 - * @desc description - * @param [array] $where [条件] - */ - public static function WalletTotal($where = []) - { - return (int) Db::name('PluginsWallet')->where($where)->count(); - } - - /** - * 钱包条件 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-09-29 - * @desc description - * @param [array] $params [输入参数] - */ - public static function WalletWhere($params = []) - { - $where = []; - - // 用户 - if(!empty($params['keywords'])) - { - $user_ids = Db::name('User')->where('username|nickname|mobile|email', '=', $params['keywords'])->column('id'); - if(!empty($user_ids)) - { - $where[] = ['user_id', 'in', $user_ids]; - } else { - // 无数据条件,避免用户搜索条件没有数据造成的错觉 - $where[] = ['id', '=', 0]; - } - } - - // 状态 - if(isset($params['status']) && $params['status'] > -1) - { - $where[] = ['status', '=', $params['status']]; - } - - return $where; - } - - /** - * 充值列表 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-04-30T00:13:14+0800 - * @param [array] $params [输入参数] - */ - public static function RechargeList($params = []) - { - $where = empty($params['where']) ? [] : $params['where']; - $m = isset($params['m']) ? intval($params['m']) : 0; - $n = isset($params['n']) ? intval($params['n']) : 10; - $field = empty($params['field']) ? '*' : $params['field']; - $order_by = empty($params['order_by']) ? 'id desc' : $params['order_by']; - - // 获取数据列表 - $data = Db::name('PluginsWalletRecharge')->field($field)->where($where)->limit($m, $n)->order($order_by)->select(); - if(!empty($data)) - { - $common_gender_list = lang('common_gender_list'); - foreach($data as &$v) - { - // 用户信息 - $v['user'] = UserService::GetUserViewInfo($v['user_id']); - - // 支付状态 - $v['status_text'] = isset($v['status']) ? RechargeService::$recharge_status_list[$v['status']]['name'] : ''; - - // 支付时间 - $v['pay_time_text'] = empty($v['pay_time']) ? '' : date('Y-m-d H:i:s', $v['pay_time']); - - // 创建时间 - $v['add_time_text'] = empty($v['add_time']) ? '' : date('Y-m-d H:i:s', $v['add_time']); - } - } - return DataReturn('处理成功', 0, $data); - } - - /** - * 充值列表总数 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-09-29 - * @desc description - * @param [array] $where [条件] - */ - public static function RechargeTotal($where = []) - { - return (int) Db::name('PluginsWalletRecharge')->where($where)->count(); - } - - /** - * 充值列表条件 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-09-29 - * @desc description - * @param [array] $params [输入参数] - */ - public static function RechargeWhere($params = []) - { - $where = []; - - // 用户id - if(!empty($params['user'])) - { - $where[] = ['user_id', '=', $params['user']['id']]; - } - - // 关键字根据用户筛选 - if(!empty($params['keywords'])) - { - if(empty($params['user'])) - { - $user_ids = Db::name('User')->where('username|nickname|mobile|email', '=', $params['keywords'])->column('id'); - if(!empty($user_ids)) - { - $where[] = ['user_id', 'in', $user_ids]; - } else { - // 无数据条件,走单号条件 - $where[] = ['recharge_no', '=', $params['keywords']]; - } - } - } - - // 状态 - if(isset($params['status']) && $params['status'] > -1) - { - $where[] = ['status', '=', $params['status']]; - } - - return $where; - } - - /** - * 钱包明细列表 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-04-30T00:13:14+0800 - * @param [array] $params [输入参数] - */ - public static function WalletLogList($params = []) - { - $where = empty($params['where']) ? [] : $params['where']; - $m = isset($params['m']) ? intval($params['m']) : 0; - $n = isset($params['n']) ? intval($params['n']) : 10; - $field = empty($params['field']) ? '*' : $params['field']; - $order_by = empty($params['order_by']) ? 'id desc' : $params['order_by']; - - // 获取数据列表 - $data = Db::name('PluginsWalletLog')->field($field)->where($where)->limit($m, $n)->order($order_by)->select(); - if(!empty($data)) - { - $business_type_list = WalletService::$business_type_list; - $operation_type_list = WalletService::$operation_type_list; - $money_type_list = WalletService::$money_type_list; - foreach($data as &$v) - { - // 用户信息 - $v['user'] = UserService::GetUserViewInfo($v['user_id']); - - // 业务类型 - $v['business_type_text'] = (isset($v['business_type']) && isset($business_type_list[$v['business_type']])) ? $business_type_list[$v['business_type']]['name'] : '未知'; - - // 操作类型 - $v['operation_type_text'] = (isset($v['operation_type']) && isset($operation_type_list[$v['operation_type']])) ? $operation_type_list[$v['operation_type']]['name'] : '未知'; - - // 金额类型 - $v['money_type_text'] = (isset($v['money_type']) && isset($money_type_list[$v['money_type']])) ? $money_type_list[$v['money_type']]['name'] : '未知'; - - // 操作原因 - $v['msg'] = empty($v['msg']) ? '' : str_replace("\n", '
    ', $v['msg']); - - // 创建时间 - $v['add_time_text'] = empty($v['add_time']) ? '' : date('Y-m-d H:i:s', $v['add_time']); - } - } - return DataReturn('处理成功', 0, $data); - } - - /** - * 钱包明细总数 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-09-29 - * @desc description - * @param [array] $where [条件] - */ - public static function WalletLogTotal($where = []) - { - return (int) Db::name('PluginsWalletLog')->where($where)->count(); - } - - /** - * 钱包明细条件 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-09-29 - * @desc description - * @param [array] $params [输入参数] - */ - public static function WalletLogWhere($params = []) - { - $where = []; - - // 用户id - if(!empty($params['user'])) - { - $where[] = ['user_id', '=', $params['user']['id']]; - } - - // 用户 - if(!empty($params['keywords'])) - { - $user_ids = Db::name('User')->where('username|nickname|mobile|email', '=', $params['keywords'])->column('id'); - if(!empty($user_ids)) - { - $where[] = ['user_id', 'in', $user_ids]; - } else { - // 无数据条件,避免用户搜索条件没有数据造成的错觉 - $where[] = ['id', '=', 0]; - } - } - - // 业务类型 - if(isset($params['business_type']) && $params['business_type'] > -1) - { - $where[] = ['business_type', '=', $params['business_type']]; - } - - // 操作类型 - if(isset($params['operation_type']) && $params['operation_type'] > -1) - { - $where[] = ['operation_type', '=', $params['operation_type']]; - } - - // 金额类型 - if(isset($params['money_type']) && $params['money_type'] > -1) - { - $where[] = ['money_type', '=', $params['money_type']]; - } - - return $where; - } - - /** - * 提现列表 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-04-30T00:13:14+0800 - * @param [array] $params [输入参数] - */ - public static function CashList($params = []) - { - $where = empty($params['where']) ? [] : $params['where']; - $m = isset($params['m']) ? intval($params['m']) : 0; - $n = isset($params['n']) ? intval($params['n']) : 10; - $field = empty($params['field']) ? '*' : $params['field']; - $order_by = empty($params['order_by']) ? 'id desc' : $params['order_by']; - - // 获取数据列表 - $data = Db::name('PluginsWalletCash')->field($field)->where($where)->limit($m, $n)->order($order_by)->select(); - if(!empty($data)) - { - $common_gender_list = lang('common_gender_list'); - foreach($data as &$v) - { - // 用户信息 - $v['user'] = UserService::GetUserViewInfo($v['user_id']); - - // 提现状态 - $v['status_text'] = isset($v['status']) ? CashService::$cash_status_list[$v['status']]['name'] : ''; - - // 备注 - $v['msg'] = empty($v['msg']) ? '' : str_replace("\n", '
    ', $v['msg']); - - // 时间 - $v['pay_time_text'] = empty($v['pay_time']) ? '' : date('Y-m-d H:i:s', $v['pay_time']); - $v['add_time_text'] = empty($v['add_time']) ? '' : date('Y-m-d H:i:s', $v['add_time']); - $v['upd_time_text'] = empty($v['upd_time']) ? '' : date('Y-m-d H:i:s', $v['upd_time']); - } - } - return DataReturn('处理成功', 0, $data); - } - - /** - * 提现列表总数 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-09-29 - * @desc description - * @param [array] $where [条件] - */ - public static function CashTotal($where = []) - { - return (int) Db::name('PluginsWalletCash')->where($where)->count(); - } - - /** - * 提现列表条件 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-09-29 - * @desc description - * @param [array] $params [输入参数] - */ - public static function CashWhere($params = []) - { - $where = []; - - // 用户id - if(!empty($params['user'])) - { - $where[] = ['user_id', '=', $params['user']['id']]; - } - - // 关键字根据用户筛选 - if(!empty($params['keywords'])) - { - if(empty($params['user'])) - { - $user_ids = Db::name('User')->where('username|nickname|mobile|email', '=', $params['keywords'])->column('id'); - if(!empty($user_ids)) - { - $where[] = ['user_id', 'in', $user_ids]; - } else { - // 无数据条件,走单号条件 - $where[] = ['cash_no', '=', $params['keywords']]; - } - } - } - - // 状态 - if(isset($params['status']) && $params['status'] > -1) - { - $where[] = ['status', '=', $params['status']]; - } - - return $where; - } - -} -?> \ No newline at end of file diff --git a/application/plugins/wallet/service/CashService.php b/application/plugins/wallet/service/CashService.php deleted file mode 100644 index 74807bb72..000000000 --- a/application/plugins/wallet/service/CashService.php +++ /dev/null @@ -1,542 +0,0 @@ - ['value' => 0, 'name' => '未打款', 'checked' => true], - 1 => ['value' => 1, 'name' => '已打款'], - 2 => ['value' => 2, 'name' => '打款失败'], - ]; - - /** - * 验证码发送 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2017-03-05T19:17:10+0800 - * @param [array] $params [输入参数] - */ - public static function VerifySend($params = []) - { - // 数据验证 - $p = [ - [ - 'checked_type' => 'empty', - 'key_name' => 'account_type', - 'error_msg' => '身份认证方式有误', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'user', - 'error_msg' => '用户信息有误', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 账户 - if(empty($params['user'][$params['account_type']])) - { - return DataReturn('当前验证类型账号未绑定', -1); - } - - // 验证码基础参数 - $img_verify_params = array( - 'key_prefix' => 'wallet_cash', - 'expire_time' => MyC('common_verify_expire_time'), - 'time_interval' => MyC('common_verify_time_interval'), - ); - - // 是否开启图片验证码 - $verify = self::IsImaVerify($params, $img_verify_params); - if($verify['code'] != 0) - { - return $verify; - } - - // 当前验证账户 - $accounts = $params['user'][$params['account_type']]; - - // 发送验证码 - $verify_params = array( - 'key_prefix' => md5('wallet_cash_'.$accounts), - 'expire_time' => MyC('common_verify_expire_time'), - 'time_interval' => MyC('common_verify_time_interval'), - ); - $code = GetNumberCode(6); - if($params['account_type'] == 'mobile') - { - $obj = new \base\Sms($verify_params); - $status = $obj->SendCode($accounts, $code, MyC('common_sms_currency_template')); - } else { - $obj = new \base\Email($verify_params); - $email_params = array( - 'email' => $accounts, - 'content' => MyC('common_email_currency_template'), - 'title' => MyC('home_site_name').' - 账户安全认证', - 'code' => $code, - ); - $status = $obj->SendHtml($email_params); - } - - // 状态 - if($status) - { - // 清除验证码 - if(isset($verify['data']) && is_object($verify['data'])) - { - $verify['data']->Remove(); - } - - return DataReturn('发送成功', 0); - } - return DataReturn('发送失败'.'['.$obj->error.']', -100); - } - - /** - * 是否开启图片验证码校验 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2017-03-22T15:48:31+0800 - * @param [array] $params [输入参数] - * @param [array] $verify_params [配置参数] - * @return [object] [图片验证码类对象] - */ - private static function IsImaVerify($params, $verify_params) - { - if(MyC('home_img_verify_state') == 1) - { - if(empty($params['verify'])) - { - return DataReturn('参数错误', -10); - } - $verify = new \base\Verify($verify_params); - if(!$verify->CheckExpire()) - { - return DataReturn('验证码已过期', -11); - } - if(!$verify->CheckCorrect($params['verify'])) - { - return DataReturn('验证码错误', -12); - } - return DataReturn('操作成功', 0, $verify); - } - return DataReturn('操作成功', 0); - } - - /** - * 验证码校验 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2017-03-28T15:57:19+0800 - * @param [array] $params [输入参数] - */ - public static function VerifyCheck($params = []) - { - // 数据验证 - $p = [ - [ - 'checked_type' => 'empty', - 'key_name' => 'account_type', - 'error_msg' => '身份认证方式有误', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'verify', - 'error_msg' => '验证码不能为空', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'user', - 'error_msg' => '用户信息有误', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 账户 - if(empty($params['user'][$params['account_type']])) - { - return DataReturn('当前验证类型账号未绑定', -1); - } - - // 当前验证账户 - $accounts = $params['user'][$params['account_type']]; - - // 验证码校验 - $verify_params = array( - 'key_prefix' => md5('wallet_cash_'.$accounts), - 'expire_time' => MyC('common_verify_expire_time') - ); - if($params['account_type'] == 'mobile') - { - $obj = new \base\Sms($verify_params); - } else { - $obj = new \base\Email($verify_params); - } - // 是否已过期 - if(!$obj->CheckExpire()) - { - return DataReturn('验证码已过期', -10); - } - // 是否正确 - if($obj->CheckCorrect($params['verify'])) - { - // 校验成功标记 - session('plugins_wallet_cash_check_success', time()); - - // 清除验证码 - $obj->Remove(); - - return DataReturn('验证正确', 0); - } - return DataReturn('验证码错误', -11); - } - - /** - * 提现创建 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-05-08 - * @desc description - * @param [array] $params [输入参数] - */ - public static function CashCreate($params = []) - { - // 参数验证 - $p = [ - [ - 'checked_type' => 'empty', - 'key_name' => 'money', - 'error_msg' => '提现金额不能为空', - ], - [ - 'checked_type' => 'length', - 'key_name' => 'bank_name', - 'checked_data' => '1,60', - 'error_msg' => '收款银行格式 1~60 个字符之间', - ], - [ - 'checked_type' => 'length', - 'key_name' => 'bank_accounts', - 'checked_data' => '1,60', - 'error_msg' => '收款账号格式 1~60 个字符之间', - ], - [ - 'checked_type' => 'length', - 'key_name' => 'bank_username', - 'checked_data' => '1,30', - 'error_msg' => '开户人姓名格式 1~30 个字符之间', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'user', - 'error_msg' => '用户信息有误', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 用户钱包 - $user_wallet = WalletService::UserWallet($params['user']['id']); - if($user_wallet['code'] != 0) - { - return $user_wallet; - } - - // 提现金额 - $money = PriceNumberFormat($params['money']); - if($money > $user_wallet['data']['normal_money']) - { - return DataReturn('提现金额不能大于有效金额', -1); - } - - // 开始处理 - Db::startTrans(); - - // 添加提现数据 - $data = [ - 'cash_no' => date('YmdHis').GetNumberCode(6), - 'user_id' => $user_wallet['data']['user_id'], - 'wallet_id' => $user_wallet['data']['id'], - 'status' => 0, - 'money' => $money, - 'bank_name' => $params['bank_name'], - 'bank_accounts' => $params['bank_accounts'], - 'bank_username' => $params['bank_username'], - 'add_time' => time(), - ]; - $cash_id = Db::name('PluginsWalletCash')->insertGetId($data); - if($cash_id <= 0) - { - Db::rollback(); - return DataReturn('提现操作失败', -100); - } - - // 钱包更新 - $wallet_data = [ - 'normal_money' => PriceNumberFormat($user_wallet['data']['normal_money']-$money), - 'frozen_money' => PriceNumberFormat($user_wallet['data']['frozen_money']+$money), - 'upd_time' => time(), - ]; - if(!Db::name('PluginsWallet')->where(['id'=>$user_wallet['data']['id']])->update($wallet_data)) - { - Db::rollback(); - return DataReturn('钱包操作失败', -100); - } - - // 日志 - $money_field = [ - ['field' => 'normal_money', 'money_type' => 0, 'msg' => ' [ 有效金额减少'.$money.'元 ]'], - ['field' => 'frozen_money', 'money_type' => 1, 'msg' => ' [ 冻结金额增加'.$money.'元 ]'], - ]; - foreach($money_field as $v) - { - // 有效金额 - if($user_wallet['data'][$v['field']] != $wallet_data[$v['field']]) - { - $log_data = [ - 'user_id' => $user_wallet['data']['user_id'], - 'wallet_id' => $user_wallet['data']['id'], - 'business_type' => 2, - 'operation_type' => ($user_wallet['data'][$v['field']] < $wallet_data[$v['field']]) ? 1 : 0, - 'money_type' => $v['money_type'], - 'operation_money' => ($user_wallet['data'][$v['field']] < $wallet_data[$v['field']]) ? PriceNumberFormat($wallet_data[$v['field']]-$user_wallet['data'][$v['field']]) : PriceNumberFormat($user_wallet['data'][$v['field']]-$wallet_data[$v['field']]), - 'original_money' => $user_wallet['data'][$v['field']], - 'latest_money' => $wallet_data[$v['field']], - 'msg' => '用户提现申请 '.$v['msg'], - ]; - if(!WalletService::WalletLogInsert($log_data)) - { - Db::rollback(); - return DataReturn('日志添加失败', -101); - } - - // 消息通知 - MessageService::MessageAdd($user_wallet['data']['user_id'], '账户余额变动', $log_data['msg'], 3, $cash_id); - } - } - - // 提交事务 - Db::commit(); - return DataReturn('操作成功', 0); - } - - /** - * 提现申请审核 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-05-10 - * @desc description - * @param [array] $params [输入参数] - */ - public static function CashAudit($params = []) - { - // 参数验证 - $p = [ - [ - 'checked_type' => 'empty', - 'key_name' => 'id', - 'error_msg' => '提现id有误', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'pay_money', - 'error_msg' => '打款金额有误', - ], - [ - 'checked_type' => 'fun', - 'key_name' => 'pay_money', - 'checked_data' => 'CheckPrice', - 'error_msg' => '请输入有效的打款金额有误', - ], - [ - 'checked_type' => 'min', - 'key_name' => 'pay_money', - 'checked_data' => 0.01, - 'error_msg' => '打款金额有误,最低0.01元', - ], - [ - 'checked_type' => 'length', - 'key_name' => 'msg', - 'checked_data' => '180', - 'error_msg' => '备注最多 180 个字符', - ], - [ - 'checked_type' => 'in', - 'key_name' => 'type', - 'checked_data' => ['agree', 'refuse'], - 'error_msg' => '操作类型有误,同意或拒绝操作出错', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 获取提现数据 - $cash = Db::name('PluginsWalletCash')->find(intval($params['id'])); - if(empty($cash)) - { - return DataReturn('提现数据不存在或已删除', -10); - } - - // 状态 - if($cash['status'] != 0) - { - return DataReturn('状态不可操作['.self::$cash_status_list[$cash['status']]['name'].']', -11); - } - - // 金额处理 - $pay_money = PriceNumberFormat($params['pay_money']); - if($pay_money <= 0.00 || $pay_money > $cash['money']) - { - return DataReturn('打款金额有误,最低0.01元,最高'.$cash['money'].'元', -12); - } - - // 获取用户钱包 - $wallet = Db::name('PluginsWallet')->find(intval($cash['wallet_id'])); - if(empty($wallet)) - { - return DataReturn('用户钱包不存在或已删除', -20); - } - - // 是否发送消息 - $is_send_message = (isset($params['is_send_message']) && $params['is_send_message'] == 1) ? 1 : 0; - - // 开始处理 - Db::startTrans(); - - // 数据处理 - if($params['type'] == 'agree') - { - // 钱包更新数据 - $wallet_upd_data = [ - 'frozen_money' => PriceNumberFormat($wallet['frozen_money']-$cash['money']), - ]; - - // 提现更新数据 - $cash_upd_data = [ - 'status' => 1, - 'pay_money' => $pay_money, - 'pay_time' => time(), - ]; - - $money_field = [ - ['field' => 'frozen_money', 'money_type' => 1, 'msg' => ' [ 提现申请成功 , 冻结金额减少'.$cash['money'].'元 ]'], - ]; - - // 打款金额是否小于提现金额 - if($pay_money < $cash['money']) - { - $surplus_money = PriceNumberFormat($cash['money']-$pay_money); - $wallet_upd_data['normal_money'] = PriceNumberFormat($wallet['normal_money']+$surplus_money); - - $money_field[] = ['field' => 'normal_money', 'money_type' => 0, 'msg' => ' [ 提现申请成功 , 部分金额未打款 , 冻结金额退回至有效金额'.$surplus_money.'元 ]']; - } - } else { - // 钱包更新数据 - $wallet_upd_data = [ - 'frozen_money' => PriceNumberFormat($wallet['frozen_money']-$cash['money']), - 'normal_money' => PriceNumberFormat($wallet['normal_money']+$cash['money']), - ]; - - // 提现更新数据 - $cash_upd_data = [ - 'status' => 2, - ]; - - $money_field = [ - ['field' => 'frozen_money', 'money_type' => 1, 'msg' => ' [ 提现申请失败 , 冻结金额释放 '.$cash['money'].'元 ]'], - ['field' => 'normal_money', 'money_type' => 0, 'msg' => ' [ 提现申请失败 , 冻结金额退回至有效金额'.$cash['money'].'元 ]'], - ]; - } - - // 提现更新 - $cash_upd_data['msg'] = empty($params['msg']) ? '' : $params['msg']; - $cash_upd_data['upd_time'] = time(); - if(!Db::name('PluginsWalletCash')->where(['id'=>$cash['id']])->update($cash_upd_data)) - { - Db::rollback(); - return DataReturn('提现申请操作失败', -100); - } - - // 钱包更新 - if(!Db::name('PluginsWallet')->where(['id'=>$wallet['id']])->update($wallet_upd_data)) - { - Db::rollback(); - return DataReturn('钱包操作失败', -101); - } - - foreach($money_field as $v) - { - // 有效金额 - if($wallet[$v['field']] != $wallet_upd_data[$v['field']]) - { - $log_data = [ - 'user_id' => $wallet['user_id'], - 'wallet_id' => $wallet['id'], - 'business_type' => 2, - 'operation_type' => ($wallet[$v['field']] < $wallet_upd_data[$v['field']]) ? 1 : 0, - 'money_type' => $v['money_type'], - 'operation_money' => ($wallet[$v['field']] < $wallet_upd_data[$v['field']]) ? PriceNumberFormat($wallet_upd_data[$v['field']]-$wallet[$v['field']]) : PriceNumberFormat($wallet[$v['field']]-$wallet_upd_data[$v['field']]), - 'original_money' => $wallet[$v['field']], - 'latest_money' => $wallet_upd_data[$v['field']], - 'msg' => '管理员审核'.$v['msg'], - ]; - if(!WalletService::WalletLogInsert($log_data)) - { - Db::rollback(); - return DataReturn('日志添加失败', -101); - } - - // 消息通知 - if($is_send_message == 1) - { - MessageService::MessageAdd($wallet['user_id'], '账户余额变动', $log_data['msg'], 3, $cash['id']); - } - } - } - - // 处理成功 - Db::commit(); - return DataReturn('操作成功', 0); - } -} -?> \ No newline at end of file diff --git a/application/plugins/wallet/service/PayService.php b/application/plugins/wallet/service/PayService.php deleted file mode 100644 index bf6be8234..000000000 --- a/application/plugins/wallet/service/PayService.php +++ /dev/null @@ -1,446 +0,0 @@ - 'empty', - 'key_name' => 'user', - 'error_msg' => '用户信息有误', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'recharge_id', - 'error_msg' => '充值日志id不能为空', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'payment_id', - 'error_msg' => '请选择支付方式', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 支付方式; - $payment = PaymentService::PaymentList(['where'=>['id'=>intval($params['payment_id']), 'is_enable'=>1, 'is_open_user'=>1]]); - if(empty($payment[0])) - { - return DataReturn('支付方式有误', -1); - } - - // 支付入口文件检查 - $pay_checked = PaymentService::EntranceFileChecked($payment[0]['payment'], 'wallet'); - if($pay_checked['code'] != 0) - { - // 入口文件不存在则创建 - $payment_params = [ - 'payment' => $payment[0]['payment'], - 'business' => [ - ['name' => 'Wallet', 'desc' => '钱包'], - ], - 'respond' => '/index/plugins/index/pluginsname/wallet/pluginscontrol/recharge/pluginsaction/respond', - 'notify' => '/index/plugins/index/pluginsname/wallet/pluginscontrol/rechargenotify/pluginsaction/notify', - ]; - $ret = PaymentService::PaymentEntranceCreated($payment_params); - if($ret['code'] != 0) - { - return $ret; - } - } - - // 非线上支付方式不可用 - if(in_array($payment[0]['payment'], config('shopxo.under_line_list'))) - { - return DataReturn('不能使用非线上支付方式进行充值', -10); - } - - // 获取充值数据 - $recharge = Db::name('PluginsWalletRecharge')->where(['id'=>intval($params['recharge_id'])])->find(); - if(empty($recharge)) - { - return DataReturn('充值数据不存在', -1); - } - if($recharge['status'] == 1) - { - return DataReturn('该数据已充值,请重新创建充值订单', -2); - } - - // 回调地址 - $url = __MY_URL__.'payment_wallet_'.strtolower($payment[0]['payment']); - - // url模式, pathinfo模式下采用自带url生成url, 避免非index.php多余 - if(MyC('home_seo_url_model', 0) == 0) - { - $call_back_url = $url.'_respond.php'; - } else { - $call_back_url = PluginsHomeUrl('wallet', 'recharge', 'respond', ['paymentname'=>$payment[0]['payment']]); - if(stripos($call_back_url, '?') !== false) - { - $call_back_url = $url.'_respond.php'; - } - } - - // 发起支付 - $pay_data = array( - 'user' => $params['user'], - 'out_user' => md5($params['user']['id']), - 'order_id' => $recharge['id'], - 'order_no' => $recharge['recharge_no'], - 'name' => '账户充值', - 'total_price' => $recharge['money'], - 'notify_url' => $url.'_notify.php', - 'call_back_url' => $call_back_url, - 'site_name' => MyC('home_site_name', 'ShopXO', true), - 'ajax_url' => PluginsHomeUrl('wallet', 'recharge', 'paycheck') - ); - $pay_name = 'payment\\'.$payment[0]['payment']; - $ret = (new $pay_name($payment[0]['config']))->Pay($pay_data); - if(isset($ret['code']) && $ret['code'] == 0) - { - return $ret; - } - return DataReturn(empty($ret['msg']) ? '支付接口异常' : $ret['msg'], -1); - } - - /** - * 支付状态校验 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-01-08 - * @desc description - * @param [array] $params [输入参数] - */ - public static function RechargePayCheck($params = []) - { - // 请求参数 - $p = [ - [ - 'checked_type' => 'empty', - 'key_name' => 'order_no', - 'error_msg' => '充值单号有误', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'user', - 'error_msg' => '用户信息有误', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 获取订单状态 - $where = ['recharge_no'=>$params['order_no'], 'user_id'=>$params['user']['id']]; - $recharge = Db::name('PluginsWalletRecharge')->where($where)->field('id,status')->find(); - if(empty($recharge)) - { - return DataReturn('充值数据不存在', -400, ['url'=>__MY_URL__]); - } - if($recharge['status'] == 1) - { - return DataReturn('支付成功', 0, ['url'=>PluginsHomeUrl('wallet', 'recharge', 'index')]); - } - return DataReturn('支付中', -300); - } - - /** - * 支付同步处理 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-09-28 - * @desc description - * @param [array] $params [输入参数] - */ - public static function Respond($params = []) - { - // 请求参数 - $p = [ - [ - 'checked_type' => 'empty', - 'key_name' => 'user', - 'error_msg' => '用户信息有误', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 支付方式 - $payment_name = defined('PAYMENT_TYPE') ? PAYMENT_TYPE : (isset($params['paymentname']) ? $params['paymentname'] : ''); - if(empty($payment_name)) - { - return DataReturn('支付方式标记异常', -1); - } - $payment = PaymentService::PaymentList(['where'=>['payment'=>$payment_name]]); - if(empty($payment[0])) - { - return DataReturn('支付方式有误', -1); - } - - // 支付数据校验 - $pay_name = 'payment\\'.$payment_name; - $ret = (new $pay_name($payment[0]['config']))->Respond(array_merge($_GET, $_POST)); - if(isset($ret['code']) && $ret['code'] == 0) - { - return DataReturn('支付成功', 0); - } - return DataReturn(empty($ret['msg']) ? '支付失败' : $ret['msg'], -100); - } - - /** - * 支付异步处理 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-09-28 - * @desc description - * @param [array] $params [输入参数] - */ - public static function Notify($params = []) - { - // 支付方式 - $payment = PaymentService::PaymentList(['where'=>['payment'=>PAYMENT_TYPE]]); - if(empty($payment[0])) - { - return DataReturn('支付方式有误', -1); - } - - // 支付数据校验 - $pay_name = 'payment\\'.PAYMENT_TYPE; - $ret = (new $pay_name($payment[0]['config']))->Respond(array_merge($_GET, $_POST)); - if(!isset($ret['code']) || $ret['code'] != 0) - { - return $ret; - } - - // 获取充值信息 - $recharge = Db::name('PluginsWalletRecharge')->where(['recharge_no'=>$ret['data']['out_trade_no']])->find(); - - // 支付处理 - $pay_params = [ - 'recharge' => $recharge, - 'payment' => $payment[0], - 'pay' => [ - 'trade_no' => $ret['data']['trade_no'], - 'subject' => $ret['data']['subject'], - 'buyer_user' => $ret['data']['buyer_user'], - 'pay_price' => $ret['data']['pay_price'], - ], - ]; - return self::RechargePayHandle($pay_params); - } - - /** - * 充值支付处理 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2018-10-05T23:02:14+0800 - * @param [array] $params [输入参数] - */ - private static function RechargePayHandle($params = []) - { - // 订单信息 - if(empty($params['recharge'])) - { - return DataReturn('资源不存在或已被删除', -1); - } - if($params['recharge']['status'] > 0) - { - $status_text = RechargeService::$recharge_status_list[$params['recharge']['status']]['name']; - return DataReturn('状态不可操作['.$status_text.']', 0); - } - - // 支付方式 - if(empty($params['payment'])) - { - return DataReturn('支付方式有误', -1); - } - - // 支付金额 - $pay_price = isset($params['pay']['pay_price']) ? $params['pay']['pay_price'] : 0; - - // 写入支付日志 - $pay_log_data = [ - 'user_id' => $params['recharge']['user_id'], - 'order_id' => $params['recharge']['id'], - 'total_price' => $params['recharge']['money'], - 'trade_no' => isset($params['pay']['trade_no']) ? $params['pay']['trade_no'] : '', - 'buyer_user' => isset($params['pay']['buyer_user']) ? $params['pay']['buyer_user'] : '', - 'pay_price' => $pay_price, - 'subject' => isset($params['pay']['subject']) ? $params['pay']['subject'] : '账户充值', - 'payment' => $params['payment']['payment'], - 'payment_name' => $params['payment']['name'], - 'business_type' => 2, - ]; - PayLogService::PayLogInsert($pay_log_data); - - // 获取用户钱包校验 - $user_wallet = WalletService::UserWallet($params['recharge']['user_id']); - if($user_wallet['code'] != 0) - { - return $user_wallet; - } else { - if($user_wallet['data']['id'] != $params['recharge']['wallet_id']) - { - return DataReturn('用户钱包不匹配', -1); - } - } - - // 开启事务 - Db::startTrans(); - - // 更新充值状态 - $upd_data = array( - 'status' => 1, - 'pay_money' => $pay_price, - 'payment_id' => $params['payment']['id'], - 'payment' => $params['payment']['payment'], - 'payment_name' => $params['payment']['name'], - 'pay_time' => time(), - ); - if(!Db::name('PluginsWalletRecharge')->where(['id'=>$params['recharge']['id']])->update($upd_data)) - { - Db::rollback(); - return DataReturn('充值状态更新失败', -100); - } - - // 是否有赠送金额 - $give_money = self::RechargeGiveMoneyHandle($pay_price); - - // 字段名称 金额类型 描述 - if($give_money > 0) - { - $money_field = [ - ['field' => 'normal_money', 'money_type' => 0, 'msg' => ' [ '.$pay_price.'元 , 赠送'.$give_money.'元 ]'], - ['field' => 'give_money', 'money_type' => 2, 'msg' => ' [ 赠送'.$give_money.'元 ]'], - ]; - } else { - $money_field = [ - ['field' => 'normal_money', 'money_type' => 0, 'msg' => ' [ '.$pay_price.'元 ]'], - ]; - } - - // 钱包更新数据 - $data = [ - 'normal_money' => PriceNumberFormat($user_wallet['data']['normal_money']+$pay_price+$give_money), - 'give_money' => PriceNumberFormat($user_wallet['data']['give_money']+$give_money), - 'upd_time' => time(), - ]; - if(!Db::name('PluginsWallet')->where(['id'=>$user_wallet['data']['id']])->update($data)) - { - Db::rollback(); - return DataReturn('钱包更新失败', -10); - } - - // 有效金额和赠送金额字段数据处理 - foreach($money_field as $v) - { - // 有效金额 - if($user_wallet['data'][$v['field']] != $data[$v['field']]) - { - $log_data = [ - 'user_id' => $user_wallet['data']['user_id'], - 'wallet_id' => $user_wallet['data']['id'], - 'business_type' => 1, - 'operation_type' => 1, - 'money_type' => $v['money_type'], - 'operation_money' => ($user_wallet['data'][$v['field']] < $data[$v['field']]) ? PriceNumberFormat($data[$v['field']]-$user_wallet['data'][$v['field']]) : PriceNumberFormat($user_wallet['data'][$v['field']]-$data[$v['field']]), - 'original_money' => $user_wallet['data'][$v['field']], - 'latest_money' => $data[$v['field']], - 'msg' => '账户充值'.$v['msg'], - ]; - if(!WalletService::WalletLogInsert($log_data)) - { - Db::rollback(); - return DataReturn('日志添加失败', -101); - } - - // 消息通知 - MessageService::MessageAdd($params['recharge']['user_id'], '账户余额变动', $log_data['msg'], 2, $params['recharge']['id']); - } - } - - // 提交事务 - Db::commit(); - return DataReturn('支付成功', 0); - } - - /** - * 充值赠送金额计算 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-05-08T00:12:48+0800 - * @param [float] $pay_price [支付金额] - */ - private static function RechargeGiveMoneyHandle($pay_price) - { - $give_money = 0.00; - $ret = PluginsService::PluginsData('wallet', '', false); - if(!empty($ret['data']['recharge_give_value']) && isset($ret['data']['recharge_give_type'])) - { - switch($ret['data']['recharge_give_type']) - { - // 固定金额 - case 0 : - $give_money = $ret['data']['recharge_give_value']; - break; - - // 比例 - case 1 : - $give_money = ($ret['data']['recharge_give_value']/100)*$pay_price; - break; - } - } - return PriceNumberFormat($give_money); - } -} -?> \ No newline at end of file diff --git a/application/plugins/wallet/service/RechargeService.php b/application/plugins/wallet/service/RechargeService.php deleted file mode 100644 index 632b5e9c9..000000000 --- a/application/plugins/wallet/service/RechargeService.php +++ /dev/null @@ -1,141 +0,0 @@ - ['value' => 0, 'name' => '未支付', 'checked' => true], - 1 => ['value' => 1, 'name' => '已支付'], - ]; - - /** - * 充值订单创建 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-04-29 - * @desc description - * @param [array] $params [输入参数] - */ - public static function RechargeCreate($params = []) - { - // 请求参数 - $p = [ - [ - 'checked_type' => 'empty', - 'key_name' => 'user', - 'error_msg' => '用户信息有误', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'user_wallet', - 'error_msg' => '用户钱包有误', - ], - [ - 'checked_type' => 'fun', - 'key_name' => 'money', - 'checked_data' => 'CheckPrice', - 'error_msg' => '请输入有效的充值金额', - ], - [ - 'checked_type' => 'min', - 'key_name' => 'money', - 'checked_data' => 0.01, - 'error_msg' => '请输入大于0的充值金额', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 添加 - $data = [ - 'recharge_no' => date('YmdHis').GetNumberCode(6), - 'wallet_id' => $params['user_wallet']['id'], - 'user_id' => $params['user']['id'], - 'money' => PriceNumberFormat($params['money']), - 'status' => 0, - 'add_time' => time(), - - ]; - $recharge_id = Db::name('PluginsWalletRecharge')->insertGetId($data); - if($recharge_id > 0) - { - return DataReturn('添加成功',0, [ - 'recharge_id' => $recharge_id, - 'recharge_no' => $data['recharge_no'], - 'money' => $data['money'], - ]); - } - return DataReturn('添加失败', -100); - } - - /** - * 充值纪录删除 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-09-14 - * @desc description - * @param [array] $params [输入参数] - */ - public static function RechargeDelete($params = []) - { - // 请求参数 - $p = [ - [ - 'checked_type' => 'empty', - 'key_name' => 'id', - 'error_msg' => '删除数据id有误', - ], - [ - 'checked_type' => 'empty', - 'is_checked' => 2, - 'key_name' => 'user', - 'error_msg' => '用户信息有误', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 删除 - $where = [ - 'id' => intval($params['id']), - ]; - if(!empty($params['user']['id'])) - { - $where['user_id'] = $params['user']['id']; - } - if(Db::name('PluginsWalletRecharge')->where($where)->delete()) - { - return DataReturn('删除成功', 0); - } - return DataReturn('删除失败或资源不存在', -100); - } - -} -?> \ No newline at end of file diff --git a/application/plugins/wallet/service/StatisticalService.php b/application/plugins/wallet/service/StatisticalService.php deleted file mode 100644 index ad9c46ff8..000000000 --- a/application/plugins/wallet/service/StatisticalService.php +++ /dev/null @@ -1,207 +0,0 @@ -count(); - break; - - // 提现申请 - case 'cash' : - $table = 'PluginsWalletCash'; - - // 扩展数据 - $ext_count = Db::name($table)->where(['status'=>0])->count(); - break; - - // 充值 - case 'recharge' : - $table = 'PluginsWalletRecharge'; - - // 扩展数据 - $ext_count = Db::name($table)->where(['status'=>0])->count(); - break; - - // 账户明细 - case 'walletlog' : - $table = 'PluginsWalletLog'; - break; - } - } - if(empty($table)) - { - return DataReturn('类型错误', -1); - } - - // 总数 - $total_count = Db::name($table)->count(); - - // 昨天 - $where = [ - ['add_time', '>=', self::$yesterday_time_start], - ['add_time', '<=', self::$yesterday_time_end], - ]; - $yesterday_count = Db::name($table)->where($where)->count(); - - // 今天 - $where = [ - ['add_time', '>=', self::$today_time_start], - ['add_time', '<=', self::$today_time_end], - ]; - $today_count = Db::name($table)->where($where)->count(); - - // 数据组装 - $result = [ - 'total_count' => $total_count, - 'yesterday_count' => $yesterday_count, - 'today_count' => $today_count, - 'ext_count' => $ext_count, - ]; - return DataReturn('处理成功', 0, $result); - } - - /** - * 获取统计数据 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-06T21:31:53+0800 - * @param [array] $params [输入参数] - */ - public static function StatisticalData($params = []) - { - // 初始化 - self::Init($params); - - // 统计数据初始化 - $result = [ - 'wallet' => [ - 'title' => '钱包总数', - 'count' => 0, - 'yesterday_count' => 0, - 'today_count' => 0, - 'right_count' => 0, - 'right_title' => '用户', - 'url' => PluginsAdminUrl('wallet', 'wallet', 'index'), - ], - 'cash' => [ - 'title' => '提现总数', - 'count' => 0, - 'yesterday_count' => 0, - 'today_count' => 0, - 'right_count' => 0, - 'right_title' => '待处理', - 'url' => PluginsAdminUrl('wallet', 'cash', 'index'), - ], - 'recharge' => [ - 'title' => '充值总数', - 'count' => 0, - 'yesterday_count' => 0, - 'today_count' => 0, - 'right_count' => 0, - 'right_title' => '待支付', - 'url' => PluginsAdminUrl('wallet', 'recharge', 'index'), - ], - 'walletlog' => [ - 'title' => '账户明细总数', - 'count' => 0, - 'yesterday_count' => 0, - 'today_count' => 0, - 'url' => PluginsAdminUrl('wallet', 'walletlog', 'index'), - ], - ]; - $type_all = ['wallet', 'cash', 'recharge', 'walletlog']; - foreach($type_all as $type) - { - $ret = self::YesterdayTodayTotal(['type'=>$type]); - if($ret['code'] == 0) - { - $result[$type]['count'] = $ret['data']['total_count']; - $result[$type]['yesterday_count'] = $ret['data']['yesterday_count']; - $result[$type]['today_count'] = $ret['data']['today_count']; - if(isset($result[$type]['right_count']) && isset($ret['data']['ext_count'])) - { - $result[$type]['right_count'] = $ret['data']['ext_count']; - } - } - } - return $result; - } -} -?> \ No newline at end of file diff --git a/application/plugins/wallet/service/WalletService.php b/application/plugins/wallet/service/WalletService.php deleted file mode 100644 index fe5e30877..000000000 --- a/application/plugins/wallet/service/WalletService.php +++ /dev/null @@ -1,348 +0,0 @@ - ['value' => 0, 'name' => '正常', 'checked' => true], - 1 => ['value' => 1, 'name' => '异常'], - 2 => ['value' => 2, 'name' => '已注销'], - ]; - - // 业务类型 - public static $business_type_list = [ - 0 => ['value' => 0, 'name' => '系统', 'checked' => true], - 1 => ['value' => 1, 'name' => '充值'], - 2 => ['value' => 2, 'name' => '提现'], - 3 => ['value' => 3, 'name' => '消费'], - ]; - - // 操作类型 - public static $operation_type_list = [ - 0 => ['value' => 0, 'name' => '减少', 'checked' => true], - 1 => ['value' => 1, 'name' => '增加'], - ]; - - // 金额类型 - public static $money_type_list = [ - 0 => ['value' => 0, 'name' => '有效', 'checked' => true], - 1 => ['value' => 1, 'name' => '冻结'], - 2 => ['value' => 2, 'name' => '赠送'], - ]; - - /** - * 用户钱包 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-04-30 - * @desc description - * @param [int] $user_id [用户id] - */ - public static function UserWallet($user_id) - { - // 请求参数 - if(empty($user_id)) - { - return DataReturn('用户id有误', -1); - } - - // 获取钱包, 不存在则创建 - $wallet = Db::name('PluginsWallet')->where(['user_id' => $user_id])->find(); - if(empty($wallet)) - { - $data = [ - 'user_id' => $user_id, - 'status' => 0, - 'add_time' => time(), - ]; - $wallet_id = Db::name('PluginsWallet')->insertGetId($data); - if($wallet_id > 0) - { - return DataReturn('操作成功', 0, Db::name('PluginsWallet')->find($wallet_id)); - } else { - return DataReturn('钱包添加失败', -100); - } - } else { - return self::UserWalletStatusCheck($wallet); - } - } - - /** - * 用户钱包状态校验 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-05-08 - * @desc description - * @param [array] $user_wallet [用户钱包] - */ - public static function UserWalletStatusCheck($user_wallet) - { - // 用户钱包状态 - $wallet_error = ''; - if(isset($user_wallet['status'])) - { - if($user_wallet['status'] != 0) - { - $wallet_error = array_key_exists($user_wallet['status'], self::$wallet_status_list) ? '用户钱包[ '.self::$wallet_status_list[$user_wallet['status']]['name'].' ]' : '用户钱包状态异常错误'; - } - } else { - $wallet_error = '用户钱包异常错误'; - } - - if(!empty($wallet_error)) - { - return DataReturn($wallet_error, -30); - } - return DataReturn('操作成功', 0, $user_wallet); - } - - /** - * 钱包日志添加 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-05-07T00:57:36+0800 - * @param [array] $params [输入参数] - * @return [boolean] [成功true, 失败false] - */ - public static function WalletLogInsert($params = []) - { - $data = [ - 'user_id' => isset($params['user_id']) ? intval($params['user_id']) : 0, - 'wallet_id' => isset($params['wallet_id']) ? intval($params['wallet_id']) : 0, - 'business_type' => isset($params['business_type']) ? intval($params['business_type']) : 0, - 'operation_type' => isset($params['operation_type']) ? intval($params['operation_type']) : 0, - 'money_type' => isset($params['money_type']) ? intval($params['money_type']) : 0, - 'operation_money' => isset($params['operation_money']) ? PriceNumberFormat($params['operation_money']) : 0.00, - 'original_money' => isset($params['original_money']) ? PriceNumberFormat($params['original_money']) : 0.00, - 'latest_money' => isset($params['latest_money']) ? PriceNumberFormat($params['latest_money']) : 0.00, - 'msg' => empty($params['msg']) ? '系统' : $params['msg'], - 'add_time' => time(), - ]; - return Db::name('PluginsWalletLog')->insertGetId($data) > 0; - } - - /** - * 钱包编辑 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-05-06 - * @desc description - * @param [array] $params [输入参数] - */ - public static function WalletEdit($params = []) - { - // 请求参数 - $p = [ - [ - 'checked_type' => 'empty', - 'key_name' => 'id', - 'error_msg' => '钱包id有误', - ], - [ - 'checked_type' => 'in', - 'key_name' => 'status', - 'checked_data' => array_column(self::$wallet_status_list, 'value'), - 'error_msg' => '钱包状态有误', - ], - [ - 'checked_type' => 'fun', - 'key_name' => 'normal_money', - 'checked_data' => 'CheckPrice', - 'is_checked' => 1, - 'error_msg' => '有效金额格式有误', - ], - [ - 'checked_type' => 'fun', - 'key_name' => 'frozen_money', - 'checked_data' => 'CheckPrice', - 'is_checked' => 1, - 'error_msg' => '冻结金额格式有误', - ], - [ - 'checked_type' => 'fun', - 'key_name' => 'give_money', - 'checked_data' => 'CheckPrice', - 'is_checked' => 1, - 'error_msg' => '赠送金额格式有误', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 获取钱包 - $wallet = Db::name('PluginsWallet')->find(intval($params['id'])); - if(empty($wallet)) - { - return DataReturn('钱包不存在或已删除', -10); - } - - // 开始处理 - Db::startTrans(); - - // 数据 - $data = [ - 'status' => intval($params['status']), - 'normal_money' => empty($params['normal_money']) ? 0.00 : PriceNumberFormat($params['normal_money']), - 'frozen_money' => empty($params['frozen_money']) ? 0.00 : PriceNumberFormat($params['frozen_money']), - 'give_money' => empty($params['give_money']) ? 0.00 : PriceNumberFormat($params['give_money']), - 'upd_time' => time(), - ]; - if(!Db::name('PluginsWallet')->where(['id'=>$wallet['id']])->update($data)) - { - Db::rollback(); - return DataReturn('操作失败', -100); - } - - // 日志 - // 字段名称 金额类型 金额名称 - $money_field = [ - ['field' => 'normal_money', 'money_type' => 0], - ['field' => 'frozen_money', 'money_type' => 1], - ['field' => 'give_money', 'money_type' => 2], - ]; - - // 是否发送消息 - $is_send_message = (isset($params['is_send_message']) && $params['is_send_message'] == 1) ? 1 : 0; - - // 操作原因 - $operation_msg = empty($params['msg']) ? '' : ' [ '.$params['msg'].' ]'; - foreach($money_field as $v) - { - // 有效金额 - if($wallet[$v['field']] != $data[$v['field']]) - { - $log_data = [ - 'user_id' => $wallet['user_id'], - 'wallet_id' => $wallet['id'], - 'business_type' => 0, - 'operation_type' => ($wallet[$v['field']] < $data[$v['field']]) ? 1 : 0, - 'money_type' => $v['money_type'], - 'operation_money' => ($wallet[$v['field']] < $data[$v['field']]) ? PriceNumberFormat($data[$v['field']]-$wallet[$v['field']]) : PriceNumberFormat($wallet[$v['field']]-$data[$v['field']]), - 'original_money' => $wallet[$v['field']], - 'latest_money' => $data[$v['field']], - ]; - $operation_type_text = ($log_data['operation_type'] == 1) ? '增加' : '减少'; - $log_data['msg'] = '管理员操作 [ '.self::$money_type_list[$v['money_type']]['name'].'金额'.$operation_type_text.$log_data['operation_money'].'元 ]'.$operation_msg; - if(!self::WalletLogInsert($log_data)) - { - Db::rollback(); - return DataReturn('日志添加失败', -101); - } - - // 消息通知 - if($is_send_message == 1) - { - MessageService::MessageAdd($wallet['user_id'], '账户余额变动', $log_data['msg'], 0, $wallet['id']); - } - } - } - - // 处理成功 - Db::commit(); - return DataReturn('操作成功', 0); - } - - /** - * 用户钱包有效金额更新 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-06-10 - * @desc description - * @param [int] $user_id [用户id] - * @param [float] $money [操作金额] - * @param [int] $type [类型(0减少, 1增加)] - * @param [string] $field [金额字段, 默认normal_money有效金额, frozen_money冻结金额, give_money赠送金额] - * @param [int] $business_type [业务类型(0系统, 1充值, 2提现, 3消费)] - * @param [string] $msg_title [附加描述标题] - */ - public static function UserWalletMoneyUpdate($user_id, $money, $type, $field = 'normal_money', $business_type = 0, $msg_title = '钱包变更') - { - // 获取用户钱包 - $wallet = self::UserWallet($user_id); - if($wallet['code'] == 0) - { - // 金额字段 - $money_field = ['normal_money' => 0, 'frozen_money '=> 1, 'give_money' => 2]; - if(!in_array($field, $money_field)) - { - return DataReturn('钱包操作金额字段有误', -10); - } - - // 操作金额 - $money = PriceNumberFormat($money); - - // 开始处理 - Db::startTrans(); - - // 钱包数据 - $data = [ - $field => ($type == 1) ? PriceNumberFormat($wallet['data'][$field]+$money) : PriceNumberFormat($wallet['data'][$field]-$money), - 'upd_time' => time(), - ]; - if(!Db::name('PluginsWallet')->where(['id'=>$wallet['data']['id']])->update($data)) - { - Db::rollback(); - return DataReturn('钱包操作失败', -100); - } - - // 日志 - $log_data = [ - 'user_id' => $wallet['data']['user_id'], - 'wallet_id' => $wallet['data']['id'], - 'business_type' => $business_type, - 'operation_type' => $type, - 'money_type' => $money_field[$field], - 'operation_money' => $money, - 'original_money' => $wallet['data'][$field], - 'latest_money' => $data[$field], - ]; - $operation_type_text = ($log_data['operation_type'] == 1) ? '增加' : '减少'; - $log_data['msg'] = $msg_title.' [ '.self::$money_type_list[$log_data['money_type']]['name'].'金额'.$operation_type_text.$log_data['operation_money'].'元 ]'; - if(!self::WalletLogInsert($log_data)) - { - Db::rollback(); - return DataReturn('钱包日志添加失败', -101); - } - - // 消息通知 - MessageService::MessageAdd($wallet['data']['user_id'], '钱包变更', $log_data['msg'], 0, $wallet['data']['id']); - - // 处理成功 - Db::commit(); - return DataReturn('操作成功', 0); - } - return $wallet; - } -} -?> \ No newline at end of file diff --git a/application/plugins/wallet/uninstall.sql b/application/plugins/wallet/uninstall.sql deleted file mode 100644 index b2c734e2a..000000000 --- a/application/plugins/wallet/uninstall.sql +++ /dev/null @@ -1,11 +0,0 @@ -# 钱包 - 应用 -DROP TABLE `{PREFIX}plugins_wallet`; - -# 充值 - 应用 -DROP TABLE `{PREFIX}plugins_wallet_recharge`; - -# 钱包日志 - 应用 -DROP TABLE `{PREFIX}plugins_wallet_log`; - -# 钱包提现 - 应用 -DROP TABLE `{PREFIX}plugins_wallet_cash`; \ No newline at end of file diff --git a/application/plugins/weixinwebauthorization/Hook.php b/application/plugins/weixinwebauthorization/Hook.php deleted file mode 100644 index 5b80cc74e..000000000 --- a/application/plugins/weixinwebauthorization/Hook.php +++ /dev/null @@ -1,128 +0,0 @@ -ButtonHtml($params); - } - break; - - // 公共顶部小导航钩子-左侧 - case 'plugins_view_header_navigation_top_left' : - if(empty($user) && IsMobile()) - { - $ret = $this->NavTextHtml($params); - } - break; - - // 用户中心-个人资料 - case 'plugins_service_users_personal_show_field_list_handle' : - $ret = $this->UserPersonalHtml($params, $user); - break; - } - } - return $ret; - } - - /** - * 用户中心-个人资料 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-06T16:16:34+0800 - * @param [array] $params [输入参数] - * @param [array] $user [用户登录信息] - */ - public function UserPersonalHtml($params = [], $user = []) - { - if(empty($user['weixin_web_openid'])) - { - $tips = ' 绑定'; - } else { - $tips = ' 解绑'; - } - - $params['data']['weixin_web_openid'] = [ - 'is_ext' => 1, - 'name' => '微信绑定', - 'value' => empty($user['weixin_web_openid']) ? '未绑定' : $user['weixin_web_openid'], - 'tips' => $tips, - ]; - } - - /** - * 登录登录html - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-05-24 - * @desc description - * @param array $params [description] - */ - private function ButtonHtml($params = []) - { - $ret = PluginsService::PluginsData('weixinwebauthorization'); - $this->assign('plugins_data', $ret['data']); - return $this->fetch('../../../plugins/view/weixinwebauthorization/index/public/auth_button'); - } - - /** - * 文字登录html - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-05-24 - * @desc description - * @param array $params [description] - */ - private function NavTextHtml($params = []) - { - $ret = PluginsService::PluginsData('weixinwebauthorization'); - $this->assign('plugins_data', $ret['data']); - return $this->fetch('../../../plugins/view/weixinwebauthorization/index/public/auth_text'); - } -} -?> \ No newline at end of file diff --git a/application/plugins/weixinwebauthorization/admin/Admin.php b/application/plugins/weixinwebauthorization/admin/Admin.php deleted file mode 100644 index 7192552ae..000000000 --- a/application/plugins/weixinwebauthorization/admin/Admin.php +++ /dev/null @@ -1,85 +0,0 @@ -assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/weixinwebauthorization/admin/admin/index'); - } else { - return $ret['msg']; - } - } - - /** - * 编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function saveinfo($params = []) - { - $ret = PluginsService::PluginsData('weixinwebauthorization'); - if($ret['code'] == 0) - { - // 授权方式 - $is_auth_type_list = [ - 0 => array('id' => 0, 'name' => '静默授权', 'checked' => true), - 1 => array('id' => 1, 'name' => '弹出授权'), - ]; - - $this->assign('is_auth_type_list', $is_auth_type_list); - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/weixinwebauthorization/admin/admin/saveinfo'); - } else { - return $ret['msg']; - } - } - - /** - * 数据保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - return PluginsService::PluginsDataSave(['plugins'=>'weixinwebauthorization', 'data'=>$params]); - } -} -?> \ No newline at end of file diff --git a/application/plugins/weixinwebauthorization/config.json b/application/plugins/weixinwebauthorization/config.json deleted file mode 100644 index 21b3cacc6..000000000 --- a/application/plugins/weixinwebauthorization/config.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "base":{ - "plugins":"weixinwebauthorization", - "name":"微信网页授权", - "logo":"\/static\/upload\/images\/plugins_weixinwebauthorization\/2019\/05\/24\/1558681549248354.jpg", - "author":"Devil", - "author_url":"https:\/\/shopxo.net\/", - "version":"1.0.0", - "desc":"微信授权登录、注册、支付", - "apply_terminal":[ - "pc", - "h5" - ], - "apply_version":[ - "1.5.0" - ], - "is_home":false - }, - "hook":{ - "plugins_view_user_login_info_top":[ - "app\\plugins\\weixinwebauthorization\\Hook" - ], - "plugins_view_user_reg_info":[ - "app\\plugins\\weixinwebauthorization\\Hook" - ], - "plugins_view_header_navigation_top_left":[ - "app\\plugins\\weixinwebauthorization\\Hook" - ], - "plugins_service_users_personal_show_field_list_handle":[ - "app\\plugins\\weixinwebauthorization\\Hook" - ] - } -} \ No newline at end of file diff --git a/application/plugins/weixinwebauthorization/index/Auth.php b/application/plugins/weixinwebauthorization/index/Auth.php deleted file mode 100644 index e0ea44fab..000000000 --- a/application/plugins/weixinwebauthorization/index/Auth.php +++ /dev/null @@ -1,89 +0,0 @@ -assign('msg', $ret['msg']); - return $this->fetch('public/tips_error'); - } - } - - /** - * 授权回调 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function Callback($params = []) - { - $ret = AuthService::Callback($params); - if($ret['code'] == 0) - { - // 是否订单支付授权,进入订单详情 - $url = session('plugins_pay_order_detail_url'); - if(!empty($url)) - { - session('plugins_pay_order_detail_url', null); - return redirect($url); - } - - // 默认页面提示 - $this->assign('msg', $ret['msg']); - $this->assign('data', $ret['data']); - return $this->fetch('public/login_success'); - } else { - $this->assign('msg', $ret['msg']); - return $this->fetch('public/tips_error'); - } - } -} -?> \ No newline at end of file diff --git a/application/plugins/weixinwebauthorization/index/Pay.php b/application/plugins/weixinwebauthorization/index/Pay.php deleted file mode 100644 index be578c77e..000000000 --- a/application/plugins/weixinwebauthorization/index/Pay.php +++ /dev/null @@ -1,53 +0,0 @@ -intval($params['id']), 'is_pay_auto'=>1, 'is_pay_submit'=>1]); - session('plugins_pay_order_detail_url', $url); - } - - // 调用授权 - $ret = AuthService::Auth($params); - if($ret['code'] == 0) - { - return redirect($ret['data']); - } else { - $this->assign('msg', $ret['msg']); - return $this->fetch('public/tips_error'); - } - } -} -?> \ No newline at end of file diff --git a/application/plugins/weixinwebauthorization/install.sql b/application/plugins/weixinwebauthorization/install.sql deleted file mode 100644 index 2919d64ad..000000000 --- a/application/plugins/weixinwebauthorization/install.sql +++ /dev/null @@ -1,2 +0,0 @@ -# 用户 -ALTER TABLE `{PREFIX}user` add `weixin_web_openid` char(60) NOT NULL DEFAULT '' COMMENT '微信web用户openid' after `weixin_openid`; \ No newline at end of file diff --git a/application/plugins/weixinwebauthorization/service/AuthService.php b/application/plugins/weixinwebauthorization/service/AuthService.php deleted file mode 100755 index b251b3de1..000000000 --- a/application/plugins/weixinwebauthorization/service/AuthService.php +++ /dev/null @@ -1,292 +0,0 @@ - '', - 'upd_time' => time(), - ]; - if(Db::name('User')->where(['id'=>$user['id']])->update($data)) - { - if(UserService::UserLoginRecord($user['id'])) - { - return DataReturn('解绑成功', 0); - } - } - return DataReturn('解绑失败', -100); - } - return DataReturn('未登录,不能操作', -1); - } - - /** - * 微信绑定 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-12-03 - * @desc description - * @param [array] $params [输入参数] - */ - public static function WeixinAuthBind($params = []) - { - // openid - if(empty($params['openid'])) - { - return DataReturn('用户openid为空', -1); - } - - // 获取登录用户 - $user = UserService::LoginUserInfo(); - if(!empty($user)) - { - // 是否已绑定 - if(!empty($user['weixin_web_openid'])) - { - return DataReturn('该帐号已绑定微信,请先解绑', -1); - } - - // 绑定 - if(Db::name('User')->where(['id'=>$user['id']])->update(['weixin_web_openid'=>$params['openid'], 'upd_time'=>time()])) - { - // 用户登录session纪录 - if(UserService::UserLoginRecord($user['id'])) - { - return DataReturn('绑定成功', 0); - } - } - return DataReturn('绑定失败', -100); - } - - // openid登录 - $user = UserService::UserInfo('weixin_web_openid', $params['openid']); - if(!empty($user)) - { - // 用户登录 - return UserService::UserLoginHandle($user['id'], $params); - } - - // 用户名 - $username = empty($params['nickname']) ? '微信-'.RandomString(6) : $params['nickname'].'-'.RandomString(6); - if(mb_strlen($username, 'utf-8') > 18) - { - $username = mb_substr($username, 0, 18); - } - - // 游客数据 - $salt = GetNumberCode(6); - $data = [ - 'weixin_web_openid' => $params['openid'], - 'username' => $username, - 'nickname' => empty($params['nickname']) ? '' : $params['nickname'], - 'gender' => empty($params['sex']) ? 0 : (isset($params['sex']) && $params['sex'] == 1) ? 2 : 1, - 'province' => empty($params['province']) ? '' : $params['province'], - 'city' => empty($params['city']) ? '' : $params['city'], - 'avatar' => empty($params['headimgurl']) ? '' : $params['headimgurl'], - 'status' => 0, - 'salt' => $salt, - 'pwd' => LoginPwdEncryption($username, $salt), - 'add_time' => time(), - 'upd_time' => time(), - ]; - - // 数据添加 - $ret = UserService::UserInsert($data, $params); - if($ret['code'] == 0) - { - // 用户登录session纪录 - if(UserService::UserLoginRecord($ret['data']['user_id'])) - { - return DataReturn('登录成功', 0, $ret['data']); - } - } - return DataReturn('登录失败', -100); - } -} -?> \ No newline at end of file diff --git a/application/plugins/weixinwebauthorization/uninstall.sql b/application/plugins/weixinwebauthorization/uninstall.sql deleted file mode 100644 index 0777b6c9f..000000000 --- a/application/plugins/weixinwebauthorization/uninstall.sql +++ /dev/null @@ -1,2 +0,0 @@ -# 用户-微信web用户openid -ALTER TABLE `{PREFIX}user` drop `weixin_web_openid`; \ No newline at end of file diff --git a/application/tags.php b/application/tags.php index e725b2b9f..7fb4b4ce8 100755 --- a/application/tags.php +++ b/application/tags.php @@ -13,7 +13,6 @@ return array ( 'app_init' => array ( - 0 => 'app\\plugins\\touristbuy\\Hook', ), 'app_begin' => array ( @@ -33,132 +32,5 @@ return array ( 'log_write' => array ( ), - 'plugins_view_common_top' => - array ( - 0 => 'app\\plugins\\commontopmaxpicture\\Hook', - 1 => 'app\\plugins\\commontopnotice\\Hook', - ), - 'plugins_view_user_center_top' => - array ( - 0 => 'app\\plugins\\usercentertopnotice\\Hook', - ), - 'plugins_service_user_login_end' => - array ( - 0 => 'app\\plugins\\userloginrewardintegral\\Hook', - ), - 'plugins_css' => - array ( - 0 => 'app\\plugins\\commonrightnavigation\\Hook', - 1 => 'app\\plugins\\freightfee\\Hook', - 2 => 'app\\plugins\\share\\Hook', - 3 => 'app\\plugins\\footercustomerservice\\Hook', - 4 => 'app\\plugins\\membershiplevel\\Hook', - ), - 'plugins_js' => - array ( - 0 => 'app\\plugins\\commonrightnavigation\\Hook', - 1 => 'app\\plugins\\share\\Hook', - ), - 'plugins_view_common_bottom' => - array ( - 0 => 'app\\plugins\\commonrightnavigation\\Hook', - 1 => 'app\\plugins\\expressforkdn\\Hook', - 2 => 'app\\plugins\\share\\Hook', - ), - 'plugins_service_navigation_header_handle' => - array ( - 0 => 'app\\plugins\\answers\\Hook', - 1 => 'app\\plugins\\touristbuy\\Hook', - ), - 'plugins_admin_view_common_bottom' => - array ( - 0 => 'app\\plugins\\expressforkdn\\Hook', - ), - 'plugins_common_page_bottom' => - array ( - 0 => 'app\\plugins\\expressforkdn\\Hook', - ), - 'plugins_admin_common_page_bottom' => - array ( - 0 => 'app\\plugins\\expressforkdn\\Hook', - ), - 'plugins_common_header' => - array ( - 0 => 'app\\plugins\\expressforkdn\\Hook', - 1 => 'app\\plugins\\touristbuy\\Hook', - 2 => 'app\\plugins\\homemiddleadv\\Hook', - ), - 'plugins_admin_common_header' => - array ( - 0 => 'app\\plugins\\expressforkdn\\Hook', - ), - 'plugins_service_order_handle_begin' => - array ( - 0 => 'app\\plugins\\expressforkdn\\Hook', - ), - 'plugins_service_system_begin' => - array ( - 0 => 'app\\plugins\\touristbuy\\Hook', - ), - 'plugins_view_header_navigation_top_left' => - array ( - 0 => 'app\\plugins\\touristbuy\\Hook', - 1 => 'app\\plugins\\weixinwebauthorization\\Hook', - ), - 'plugins_view_user_login_info_top' => - array ( - 0 => 'app\\plugins\\touristbuy\\Hook', - 1 => 'app\\plugins\\weixinwebauthorization\\Hook', - ), - 'plugins_view_user_reg_info' => - array ( - 0 => 'app\\plugins\\touristbuy\\Hook', - 1 => 'app\\plugins\\weixinwebauthorization\\Hook', - ), - 'plugins_service_buy_handle' => - array ( - 0 => 'app\\plugins\\freightfee\\Hook', - 1 => 'app\\plugins\\membershiplevel\\Hook', - ), - 'plugins_view_goods_detail_title' => - array ( - 0 => 'app\\plugins\\freightfee\\Hook', - ), - 'plugins_view_goods_detail_photo_bottom' => - array ( - 0 => 'app\\plugins\\share\\Hook', - ), - 'plugins_view_home_floor_top' => - array ( - 0 => 'app\\plugins\\homemiddleadv\\Hook', - ), - 'plugins_view_common_footer_top' => - array ( - 0 => 'app\\plugins\\footercustomerservice\\Hook', - ), - 'plugins_service_goods_handle_end' => - array ( - 0 => 'app\\plugins\\membershiplevel\\Hook', - ), - 'plugins_service_goods_spec_base' => - array ( - 0 => 'app\\plugins\\membershiplevel\\Hook', - ), - 'plugins_service_user_login_success_record' => - array ( - 0 => 'app\\plugins\\membershiplevel\\Hook', - ), - 'plugins_service_users_center_left_menu_handle' => - array ( - 0 => 'app\\plugins\\wallet\\Hook', - ), - 'plugins_service_header_navigation_top_right_handle' => - array ( - 0 => 'app\\plugins\\wallet\\Hook', - ), - 'plugins_service_users_personal_show_field_list_handle' => - array ( - 0 => 'app\\plugins\\weixinwebauthorization\\Hook', - ), ); ?> \ No newline at end of file diff --git a/public/static/plugins/css/.gitignore b/public/static/plugins/css/.gitignore old mode 100644 new mode 100755 diff --git a/public/static/plugins/css/answers/admin/admin.css b/public/static/plugins/css/answers/admin/admin.css deleted file mode 100644 index ed43dd046..000000000 --- a/public/static/plugins/css/answers/admin/admin.css +++ /dev/null @@ -1,161 +0,0 @@ -/** - * 首页 - */ -.answers-content .items { - margin: 10px 0 20px 0; - border-bottom: 1px dashed #f1f1f1; - padding-bottom: 20px; -} -.answers-content .items .immages-tag { - text-align: left; -} -.answers-content .items .immages-tag img { - max-width: 100%; - border: 1px dashed #eee; - padding: 5px; -} -.answers-content .edit-submit { - margin-bottom: 20px; -} -.answers-content img { - max-width: 100%; -} -.answers-content .am-slider-c3 .am-slider-counter { - background-color: #d13a49; -} -@media only screen and (min-width:640px) { - .answers-slider .am-slider { - width: 30%; - } -} - -@media only screen and (max-width:640px) { - -} - -/** - * 编辑页面 - */ -ul.plugins-images-view li, ul.plugins-images-bottom-view li { - width: 100%; - height: auto; -} - -/** - * 幻灯片编辑 - */ -ul.plug-file-upload-view li { - min-width: 300px; - height: auto; -} - - -/** - * 商品推荐编辑 - */ -form.am-form { - margin-bottom: 20px; -} -select.forth-selection-form-category { - display: -webkit-inline-box; -} -.forth-selection-container .forth-selection-form-category, .forth-selection-container .chosen-container, .forth-selection-container .forth-selection-form-keywords { - width: 30% !important; -} -.forth-selection-container .chosen-container, .forth-selection-container .forth-selection-form-keywords { - display: -webkit-inline-box !important; -} -.forth-selection-container .chosen-single { - width: 100%; -} -.forth-selection-container .forth-selection-form { - margin-bottom: 2px; -} -.forth-selection-list { - overflow: hidden; - margin-bottom: 20px; - position: relative; -} -.forth-selection-list .forth-selection-items { - width: calc(50% - 50px); - height: 300px; -} -.forth-selection-list .forth-selection-items .title { - text-align: center; -} -.forth-selection-list .forth-selection-items .forth-selection-content { - border: 1px solid #eee; - height: calc(100% - 25px); - overflow-y: scroll; - overflow-x: hidden; - border-radius: 2px; - margin-top: 5px; -} -.forth-selection-list .forth-selection-items .forth-selection-content li { - padding: 5px 45px 5px 5px; - border-style: dotted; - border-color: #eaeaea; - border-width: 1px 0; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - color: #666; - position: relative; -} -.forth-selection-list .forth-selection-items .forth-selection-content li:nth-child(2) { - border-top: 0; -} -.forth-selection-list .forth-selection-items .forth-selection-content li i { - cursor: pointer; - padding: 0 10px 0 5px; - position: absolute; - top: 5px; - right: 5px; -} -.forth-selection-list .selected-all { - position: absolute; - margin-top: 140px; - margin-left: 20px; -} -.forth-selection-container input[name="category_ids"] { - position: absolute; - left: -1000000px; - top: -1000000px; -} -.forth-selection-list i { - color: #888 !important; -} -.am-form-error .forth-selection-items .forth-selection-content { - border-color: #dd514c; -} - -.content-view { - max-width: 100%; - max-height: 200px; - overflow-y: auto; - overflow-x: hidden; -} -.content-view-win { - border: 1px solid #eee; - padding: 10px; -} -.content-view-win img, .content-view img { - max-width: 100%; -} - -@media only screen and (max-width: 641px) { - .forth-selection-container .forth-selection-form-category, .forth-selection-container .forth-selection-form-keywords - { - width: calc(55% - 60px) !important; - display: -webkit-inline-box !important; - } - .forth-selection-container .chosen-container { - display: none !important; - } - - .content-view-td { - display: none; - } -} - diff --git a/public/static/plugins/css/answers/index/index.css b/public/static/plugins/css/answers/index/index.css deleted file mode 100644 index 4615269f1..000000000 --- a/public/static/plugins/css/answers/index/index.css +++ /dev/null @@ -1,181 +0,0 @@ -.plugins-answers .am-list-news-hd { - font-weight: 500; - padding-top: 10px; - padding-bottom: 2px; -} -.plugins-answers .answers-goods { - overflow: hidden; -} -.plugins-answers .answers-goods ul.am-gallery { - width: calc(100% + 10px); - margin-left: -5px; -} -.plugins-answers .answers-goods .am-list-news-hd { - padding-bottom: 0; -} -.plugins-answers .am-gallery-bordered .am-gallery-item { - box-shadow: none; - -webkit-box-shadow: none; - border: 1px solid #eee; -} -.plugins-answers .answers-middle-banner img { - width: 100%; -} -.plugins-answers .am-slider-c3 .am-slider-counter { - background-color: #d13a49; -} -.plugins-answers .answers-btn-list .am-btn { - width: 48%; -} -.plugins-answers .answers-btn-list .am-btn-danger { - color: #fff !important; - background-color: #f15262; - border-color: #f15262; - font-size: 14px; -} -.plugins-answers .answers-btn-list .am-btn-warning { - color: #fff !important; - background-color: #F44336; - border-color: #F44336; - font-size: 14px; -} -.plugins-answers .answers-btn-list, .plugins-answers .am-list-news-bd .am-list { - margin-bottom: 10px; -} -.plugins-answers .am-input-group-sm > .am-input-group-btn > .am-btn, .plugins-answers .am-input-group-sm > .am-form-field { - height: 32px; -} -.plugins-answers .am-gallery-bordered .am-gallery-title { - font-size: 12px; -} -.plugins-answers .answers-top, .plugins-answers .answers-middle { - overflow: hidden; -} -.plugins-answers .answers-top, .plugins-answers .answers-middle-banner { - margin-top: 10px; -} - -@media only screen and (min-width:640px) { - .plugins-answers .am-u-md-8, .plugins-answers .am-gallery { - padding: 0; - } - .plugins-answers .am-gallery-bordered .am-gallery-item:hover { - -webkit-box-shadow: 0px 12px 12px -10px rgba(0,0,0,.4); - box-shadow:0px 12px 12px -10px rgba(0,0,0,.4); - border: 4px solid #d2364c; - -webkit-transition: border-color .2s ease-in; - -moz-transition: border-color .2s ease-in; - -ms-transition: border-color .2s ease-in; - -o-transition: border-color .2s ease-in; - transition: border-color .2s ease-in; - } - .plugins-answers .am-gallery-bordered .am-gallery-item:hover a { - text-decoration: none; - } - .plugins-answers .am-gallery-bordered .am-gallery-item a h3:hover { - color: #d2364c; - text-decoration: underline; - } - - .plugins-answers .answers-sidebar, .plugins-answers .answers-goods { - padding-right: 1px; - } - .plugins-answers .am-list-news-default { - margin: 0; - } - .plugins-answers .answers-middle-list .am-list-news-hd { - padding-top: 10px; - } -} - -@media only screen and (max-width:1025px) { - .plugins-answers { - padding: 0 5px; - } -} - -@media only screen and (max-width:640px) { - .plugins-answers { - padding: 0 5px; - } - .plugins-answers .am-u-md-8, .plugins-answers .am-u-md-4, .plugins-answers .am-gallery { - padding: 0; - } - .plugins-answers .am-list-news-default { - margin: 0; - } - .plugins-answers .answers-slider { - margin-bottom: 10px; - } - .plugins-answers .am-list-news-hd { - padding-bottom: 5px; - } - .plugins-answers .answers-top { - margin-top: 0; - } -} - -/** - * 详情 - */ -.plugins-answers-detail, .plugins-answers-search { - padding-top: 10px; -} -.plugins-answers-detail .am-u-md-8 { - border: 1px solid #dedede; -} -.plugins-answers-detail .base-content, .plugins-answers-detail .base-footer { - padding: 10px; -} -.plugins-answers-detail .base-content { - border-top: 1px solid #dedede; -} -.plugins-answers-detail .base-footer { - text-align: right; - border-top: 1px dashed #e7e7e7; - border-bottom: 1px dashed #e7e7e7; -} -.plugins-answers-detail .base { - margin-top: 10px; - box-shadow: none; - -webkit-box-shadow: none; -} -.plugins-answers-detail .am-panel-warning { - background: #fff7ef; -} -.plugins-answers-detail .am-panel-success { - background: #e7ffe5; -} -.plugins-answers-detail .am-panel { - margin: 0; - border: 0; -} -.plugins-answers-detail .base-title { - position: relative; - height: 45px; - padding: 10px; - background: #f6f6f6; -} -.plugins-answers-detail .base-title .highlighted { - color: #FF9800; -} -.plugins-answers-detail h2 { - font-weight: 500; - font-size: 16px; -} -.plugins-answers-detail .base-title .gray-text { - position: absolute; - right: 10px; - top: 15px; -} -.plugins-answers-detail .base .reply-content { - margin-top: 5px; -} -.plugins-answers-detail .reply-footer { - border-bottom: 0; -} -@media only screen and (max-width:640px) { - .plugins-answers-detail .answers-btn-list { - margin-top: 10px; - } -} \ No newline at end of file diff --git a/public/static/plugins/css/commongobacktop/admin/admin.css b/public/static/plugins/css/commongobacktop/admin/admin.css deleted file mode 100755 index 818044136..000000000 --- a/public/static/plugins/css/commongobacktop/admin/admin.css +++ /dev/null @@ -1,20 +0,0 @@ -/** - * 首页 - */ -.commongobacktop-content .items { - margin: 10px 0 20px 0; - border-bottom: 1px dashed #f1f1f1; - padding-bottom: 20px; -} -.commongobacktop-content .items .immages-tag { - border: 1px solid #eee; - text-align: center; - max-width: 100px; - padding: 5px; -} -.commongobacktop-content .items .immages-tag img { - max-width: 100%; -} -.commongobacktop-content .edit-submit { - margin-bottom: 20px; -} \ No newline at end of file diff --git a/public/static/plugins/css/commononlineservice/admin/admin.css b/public/static/plugins/css/commononlineservice/admin/admin.css deleted file mode 100755 index a1c61abfa..000000000 --- a/public/static/plugins/css/commononlineservice/admin/admin.css +++ /dev/null @@ -1,25 +0,0 @@ -/** - * 首页 - */ -.commononlineservice-content .items { - margin: 10px 0 20px 0; - border-bottom: 1px dashed #f1f1f1; - padding-bottom: 20px; -} -.commononlineservice-content .items .immages-tag { - border: 1px solid #eee; - text-align: center; - max-width: 100px; - padding: 5px; -} -.commononlineservice-content .items .immages-tag img { - max-width: 100%; -} -.commononlineservice-content .items .bg-color-tag { - width: 50px; - height: 50px; - border: 1px solid #eee; -} -.commononlineservice-content .edit-submit { - margin-bottom: 20px; -} \ No newline at end of file diff --git a/public/static/plugins/css/commononlineservice/index/style.css b/public/static/plugins/css/commononlineservice/index/style.css deleted file mode 100755 index 086f9384c..000000000 --- a/public/static/plugins/css/commononlineservice/index/style.css +++ /dev/null @@ -1,85 +0,0 @@ -.commononlineservice .float-left, .commononlineservice .content { - background:#d2364c; -} -.commononlineservice { - font-size: 12px; - position: fixed; - top: 30%; - right: 0px; - z-index: 1001; -} -.commononlineservice .float-left { - width: 35px; - float:left; - position: relative; - z-index:1; - margin-top: 0; - height: 120px; -} -.commononlineservice .float-left a { - font-size:0; - text-indent: -999em; -} -.commononlineservice .content { - float: left; - padding: 5px; - overflow:hidden; - width: 140px; - margin-right:-150px; -} -.commononlineservice .content .cn { - background:#F7F7F7; -} -.commononlineservice .cn .title { - font-size: 14px; - color: #333; - font-weight:600; - line-height:24px; - padding:5px; - text-align:center; - margin: 0; -} -.commononlineservice .cn ul { - padding:0px; - margin: 0; -} -.commononlineservice .cn ul li { - line-height: 38px; - height:38px; - border-bottom: solid 1px #E6E4E4; - overflow: hidden; - text-align:center; -} -.commononlineservice .cn ul li:last-child { - border: 0; -} -.commononlineservice .cn ul li span, .commononlineservice .cn ul li a { - color: #777; -} -.commononlineservice .cn ul li img { - vertical-align: middle; -} -.commononlineservice .btn-open, .commononlineservice .btn-ctn { - position: relative; - z-index:9; - top:0; - left: 0; - background-image: url(../../../images/commononlineservice/btn-ctn.png); - background-repeat: no-repeat; - display:block; - height: 120px; - background-size: 55px; -} -.commononlineservice .btn-open { - background-position: 3px 10px; -} -.commononlineservice .btn-ctn { - background-position: -24px 10px; - display: none; -} -.commononlineservice ul li.top { - border-bottom: solid #ACE5F9 1px; -} -.commononlineservice ul li.bot { - border-bottom: none; -} \ No newline at end of file diff --git a/public/static/plugins/css/commonrightnavigation/admin/admin.css b/public/static/plugins/css/commonrightnavigation/admin/admin.css deleted file mode 100755 index ac823bfa9..000000000 --- a/public/static/plugins/css/commonrightnavigation/admin/admin.css +++ /dev/null @@ -1,24 +0,0 @@ -/** - * 首页 - */ -.commonrightnavigation-content .items { - margin: 10px 0 20px 0; - border-bottom: 1px dashed #f1f1f1; - padding-bottom: 20px; -} -.commonrightnavigation-content .items .immages-tag { - border: 1px solid #eee; - text-align: center; - width: 120px; - height: 120px; -} -.commonrightnavigation-content .items .immages-tag img { - max-width: 100%; -} -.commonrightnavigation-content .edit-submit { - margin-bottom: 20px; -} - -/** - * 编辑页面 - */ diff --git a/public/static/plugins/css/commonrightnavigation/index/style.css b/public/static/plugins/css/commonrightnavigation/index/style.css deleted file mode 100755 index 55e07fcf2..000000000 --- a/public/static/plugins/css/commonrightnavigation/index/style.css +++ /dev/null @@ -1,358 +0,0 @@ -.commonrightnavigation-right-nav .cart .cart-text { - line-height: 16px; - font-size: 12px; -} -.commonrightnavigation-right-nav .cart .cart-text .cart-count { - width: 20px; - height: 20px; - border-radius: 10px; - line-height: 20px; - padding: 0; -} - -@media only screen and (min-width:1025px) { - .commonrightnavigation-right-nav { - width: 35px; - height: 100vh; - background: #000; - position: fixed; - top: 0; - right: 0; - font-size: 16px; - z-index: 1000; - } - .commonrightnavigation-right-nav .base-nav { - text-align: center; - position: absolute; - width: 100%; - color: #ccc; - } - .commonrightnavigation-right-nav .base-nav .nav-a { - color: #ccc; - } - .commonrightnavigation-right-nav .base-nav a { - cursor: pointer; - } - .commonrightnavigation-right-nav .base-nav [class*="am-icon-"]:before { - line-height: 35px; - } - .commonrightnavigation-right-nav .mui-mbar-tab-tip { - position: absolute; - left: -90px; - top: 0; - width: 90px; - height: 35px; - line-height: 35px; - text-align: center; - color: #fff; - background-color: #494949; - -webkit-box-shadow: 0 0 5px rgba(0,0,0,.2); - -moz-box-shadow: 0 0 5px rgba(0,0,0,.2); - box-shadow: 0 0 5px rgba(0,0,0,.2); - font-size: 12px; - font-weight: 700; - display: none; - } - .mui-mbar-popup { - height: auto; - position: absolute; - right: 35px; - display: none; - box-shadow: -5px 0px 15px 5px rgba(0,0,0,.4); - } - .commonrightnavigation-right-nav .base-nav:hover { - background: #d2364c; - color: #fff; - } - .commonrightnavigation-right-nav .base-nav:hover .nav-a { - color: #fff; - text-decoration: none; - } - .commonrightnavigation-right-nav .base-nav:hover .mui-mbar-tab-tip, .commonrightnavigation-right-nav .base-nav:hover .mui-mbar-popup { - display: block; - } - .commonrightnavigation-right-nav .mui-mbar-tab-tip-arr { - top: 10px; - right: -8px; - color: #494949; - } - .commonrightnavigation-right-nav .mui-mbar-arr { - position: absolute; - width: 16px; - height: 16px; - line-height: 16px; - text-align: center; - font-size: 16px; - font-family: "\5b8b\4f53"; - } - .commonrightnavigation-right-nav .go-top { - bottom: 0; - left: 0; - height: 35px; - display: none; - } - .commonrightnavigation-right-nav .answer-content { - bottom: 70px; - left: 0; - height: 35px; - } - .commonrightnavigation-right-nav .qrcode-content { - bottom: 35px; - left: 0; - height: 35px; - } - .commonrightnavigation-right-nav .cart { - bottom: 40vh; - left: 0; - height: 125px; - border-top: 1px solid #444; - border-bottom: 1px solid #444; - padding: 5px 0; - } - .commonrightnavigation-right-nav .cart:hover { - border-top: 1px solid #d2364c; - border-bottom: 1px solid #d2364c; - } - .commonrightnavigation-right-nav .favor { - bottom: calc(40vh + 135px); - left: 0; - height: 35px; - } - .commonrightnavigation-right-nav .browse { - bottom: calc(40vh + 170px); - left: 0; - height: 35px; - } - .commonrightnavigation-right-nav .user-center { - bottom: calc(40vh + 205px); - left: 0; - height: 35px; - padding: 5px; - } - .commonrightnavigation-right-nav .user-center img { - border-radius: 50px; - max-width: 100%; - } - .commonrightnavigation-right-nav .cart .cart-text { - width: 12px; - font-size: 12px; - margin-left: 11.5px; - } - .commonrightnavigation-right-nav .cart .cart-text .cart-count { - margin-left: -4px; - } - .commonrightnavigation-right-nav .qrcode-items { - bottom: 0; - width: 140px; - } - .commonrightnavigation-right-nav .qrcode-items ul { - padding: 0; - border: 1px solid #eee; - padding: 10px 10px; - background: #f5f5f5; - } - .commonrightnavigation-right-nav .qrcode-items li { - list-style: none; - } - .commonrightnavigation-right-nav .qrcode-items li:not(:first-child) { - margin-top: 10px; - } - .commonrightnavigation-right-nav .qrcode-items p { - font-size: 14px; - font-weight: 700; - color: #666; - padding: 0; - margin: 0; - line-height: 24px; - } - .commonrightnavigation-right-nav .qrcode-items img { - width: 120px; - } - - .commonrightnavigation-right-nav .answer-content .mui-mbar-popup { - bottom: 0; - width: 230px; - height: 335px; - background: #fff; - padding: 10px; - text-align: left; - color: #666; - } - .commonrightnavigation-right-nav .answer-content .mui-mbar-popup legend span { - font-weight: 500; - } - .commonrightnavigation-right-nav .answer-content .am-form-group { - width: 100%; - } - - .commonrightnavigation-right-nav .cart-content { - bottom: 0; - width: 400px; - min-height: 100px; - max-height: 360px; - background: #fff; - color: #666; - } -} - -@media only screen and (max-width:1025px) { - .commonrightnavigation-right-nav .user-content, - .commonrightnavigation-right-nav .browse-content, - .commonrightnavigation-right-nav .favor-content, - .commonrightnavigation-right-nav .qrcode-content, - .commonrightnavigation-right-nav .cart-content, - .commonrightnavigation-right-nav .commonrightnavigation-cart a.nav-a, - .commonrightnavigation-right-nav .go-top .mui-mbar-tab-tip, - .commonrightnavigation-right-nav .answer-content { - display: none; - } - .commonrightnavigation-right-nav .go-top { - position: fixed; - bottom: 130px; - right: 10px; - background: #eee; - width: 45px; - height: 45px; - line-height: 45px; - text-align: center; - color: #666; - cursor: pointer; - border-radius: 50px; - border: 1px solid #e3e3e3; - z-index: 1000; - display: none; - } - .commonrightnavigation-right-nav .go-top i { - font-size: 24px; - } - .cart-show { - display: block !important; - } - .commonrightnavigation-right-nav .cart-show { - position: fixed; - right: 0; - bottom: calc(50% - 50px); - background: #eee; - width: 30px; - padding: 5px; - text-align: center; - border-left: 1px solid #e3e3e3; - border-top: 1px solid #e3e3e3; - border-bottom: 1px solid #e3e3e3; - border-top-left-radius: 3px; - border-bottom-left-radius: 3px; - z-index: 1000; - } - .commonrightnavigation-right-nav a.cart-show { - text-decoration: none; - } -} - - -/** - * 购物车 - */ -.commonrightnavigation-cart .cart-content { - text-align: left; - font-size: 12px; -} -.commonrightnavigation-cart .cart-content .cart-items { - min-height: 60px; - max-height: 320px; - overflow-x: auto; -} -.commonrightnavigation-cart .cart-content .goods-detail img { - width: 60px; - height: 60px; - position: absolute; -} -.commonrightnavigation-cart .cart-content .goods-detail { - position: relative; - min-height: 60px; -} -.commonrightnavigation-cart .cart-content .goods-title { - display: block; - max-height: 36px; - overflow: hidden; - text-overflow: ellipsis; - font-size: 12px; -} -.commonrightnavigation-cart .cart-content .goods-title:hover { - text-decoration: underline; -} -.commonrightnavigation-cart .cart-content .goods-base { - float: left; - top: 0; - margin-left: 65px; -} -.commonrightnavigation-cart .cart-content .goods-attr { - margin-top: 5px; -} -.commonrightnavigation-cart .cart-content .goods-attr li { - color: #888; - line-height: 16px; - font-size: 12px; -} -.commonrightnavigation-cart .cart-content strong.total-price-content, .commonrightnavigation-cart .cart-content .nav-total-price { - font-weight: 700; -} -.commonrightnavigation-cart .cart-content .cart-nav label { - cursor: pointer; -} -.commonrightnavigation-cart .cart-content .selected-tips strong, .commonrightnavigation-cart .cart-content .nav-total-price { - font-size: 14px; -} -.commonrightnavigation-cart .cart-content strong.total-price-content, .commonrightnavigation-cart .cart-content .selected-tips strong, .commonrightnavigation-cart .cart-content .nav-total-price { - color: #d2364c; - font-family: Verdana,Tahoma,arial; -} -.commonrightnavigation-cart .cart-content .am-table { - margin-bottom: 10px; -} -.commonrightnavigation-cart .cart-content .am-table > tbody > tr > td { - border-top: 1px solid #F5F5F5; -} -.commonrightnavigation-cart .cart-content table td.base input[type="checkbox"] { - float: left; -} -.commonrightnavigation-cart .cart-content .cart-nav { - background: #eee; - height: 40px; - line-height: 40px; - padding: 0 0 0 5px; -} -.commonrightnavigation-cart .cart-content .cart-nav .separate-submit { - height: 40px; - width: 100px; - font-size: 16px; - font-weight: 500; -} -.commonrightnavigation-cart .cart-content .selected-tips { - margin-right: 15px; -} -.commonrightnavigation-cart .cart-content table tr .base { - width: 60%; -} -.commonrightnavigation-cart .cart-content table tr .total-price { - width: 26%; -} -.commonrightnavigation-cart .cart-content table tr .operation { - width: 12%; -} -.commonrightnavigation-cart .cart-content table tr .operation a { - font-size: 12px; -} -.commonrightnavigation-cart .cart-content .cart-nav .nav-total-price { - margin-right: 5px; -} -.commonrightnavigation-cart .cart-content .mixed-tips { - margin-bottom: 2%; - margin-top: 2%; -} - -.commonrightnavigation-cart .cart-content .mixed-tips-content { - margin-top: 20px; -} -.commonrightnavigation-right-nav form.am-form .am-form-group { - padding: 0 !important; -} \ No newline at end of file diff --git a/public/static/plugins/css/commontopmaxpicture/admin/admin.css b/public/static/plugins/css/commontopmaxpicture/admin/admin.css deleted file mode 100755 index ebfd5c3c0..000000000 --- a/public/static/plugins/css/commontopmaxpicture/admin/admin.css +++ /dev/null @@ -1,39 +0,0 @@ -/** - * 首页 - */ -.commontopmaxpicture-content .items { - margin: 10px 0 20px 0; - border-bottom: 1px dashed #f1f1f1; - padding-bottom: 20px; -} -.commontopmaxpicture-content .items .immages-tag { - border: 1px solid #eee; - text-align: center; -} -.commontopmaxpicture-content .items .immages-tag img { - max-width: 100%; -} -.commontopmaxpicture-content .items .bg-color-tag { - width: 50px; - height: 50px; - border: 1px solid #eee; -} -.commontopmaxpicture-content .edit-submit { - margin-bottom: 20px; -} - -/** - * 编辑页面 - */ -ul.plugins-images-view li { - width: 100%; - height: auto; -} -.form-date input { - width: 30% !important; - display: -webkit-inline-box !important; -} - -.form-date span { - vertical-align: middle; -} \ No newline at end of file diff --git a/public/static/plugins/css/commontopmaxpicture/index.html b/public/static/plugins/css/commontopmaxpicture/index.html deleted file mode 100755 index 0519ecba6..000000000 --- a/public/static/plugins/css/commontopmaxpicture/index.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/static/plugins/css/commontopnotice/admin/admin.css b/public/static/plugins/css/commontopnotice/admin/admin.css deleted file mode 100755 index f74e11549..000000000 --- a/public/static/plugins/css/commontopnotice/admin/admin.css +++ /dev/null @@ -1,27 +0,0 @@ -/** - * 首页 - */ -.commontopnotice-content .items { - margin: 10px 0 20px 0; - border-bottom: 1px dashed #f1f1f1; - padding-bottom: 20px; -} -.commontopnotice-content .edit-submit { - margin-bottom: 20px; -} - -/** - * 编辑页面 - */ -ul.plugins-images-view li { - width: 100%; - height: auto; -} -.form-date input { - width: 30% !important; - display: -webkit-inline-box !important; -} - -.form-date span { - vertical-align: middle; -} \ No newline at end of file diff --git a/public/static/plugins/css/expressforkdn/admin/admin.css b/public/static/plugins/css/expressforkdn/admin/admin.css deleted file mode 100755 index 096cfea7f..000000000 --- a/public/static/plugins/css/expressforkdn/admin/admin.css +++ /dev/null @@ -1,32 +0,0 @@ -/** - * 首页 - */ -.expressforkdn-content .items { - margin: 10px 0 20px 0; - border-bottom: 1px dashed #f1f1f1; - padding-bottom: 20px; -} -.expressforkdn-content .express-items { - overflow: hidden; -} -.expressforkdn-content .express-items p { - border: 1px dashed #ccc; - padding: 6px; - float: left; - margin: 0; -} -.expressforkdn-content .express-items p input { - display: -webkit-inline-box; - width: 80px; - font-size: 12px !important; -} -.expressforkdn-content .express-items p:not(:last-child) { - margin: 0 20px 10px 0; -} -.expressforkdn-content .edit-submit { - margin-bottom: 20px; -} - -/** - * 编辑页面 - */ diff --git a/public/static/plugins/css/footercustomerservice/admin/admin.css b/public/static/plugins/css/footercustomerservice/admin/admin.css deleted file mode 100755 index 679fad2dc..000000000 --- a/public/static/plugins/css/footercustomerservice/admin/admin.css +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 首页 - */ -.footercustomerservice-content .items { - margin: 10px 0 20px 0; - border-bottom: 1px dashed #f1f1f1; - padding-bottom: 20px; -} -.footercustomerservice-content .items .immages-tag { - text-align: left; -} -.footercustomerservice-content .items .immages-tag img { - max-width: 100%; - border: 1px dashed #eee; - padding: 5px; -} -.footercustomerservice-content .edit-submit { - margin-bottom: 20px; -} -.footercustomerservice-content img { - max-width: 100%; -} -.footercustomerservice-content .am-slider-c3 .am-slider-counter { - background-color: #d13a49; -} -@media only screen and (min-width:640px) { - .footercustomerservice-data-list .am-gallery-overlay .am-gallery-item img { - width: auto; - max-height: 150px; - } -} - -/** - * 服务介绍列表 - */ -.customer-service .am-gallery-overlay .am-gallery-item img { - width: 50px; - float: left; -} -.customer-service .am-gallery-overlay .am-gallery-item .base { - margin-left: 60px; -} -.customer-service .am-gallery-overlay .am-gallery-item .base .title { - font-weight: 500; - font-size: 16px; - color: #505050; - margin: 0; -} -.customer-service .am-gallery-overlay .am-gallery-item .base .desc { - color: #999; - margin: 5px 0 0 0; -} -.am-footer-default { - margin-top: 0; -} -@media only screen and (max-width:640px) { - .customer-service .am-gallery-overlay .am-gallery-item { - border-bottom: 1px solid #f0f0f0; - padding-bottom: 10px; - } -} \ No newline at end of file diff --git a/public/static/plugins/css/footercustomerservice/index.html b/public/static/plugins/css/footercustomerservice/index.html deleted file mode 100755 index 0519ecba6..000000000 --- a/public/static/plugins/css/footercustomerservice/index.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/static/plugins/css/footercustomerservice/index/style.css b/public/static/plugins/css/footercustomerservice/index/style.css deleted file mode 100644 index 2d0e09a76..000000000 --- a/public/static/plugins/css/footercustomerservice/index/style.css +++ /dev/null @@ -1,30 +0,0 @@ -.plugins-footercustomerservice-customer-service { - background: #f8f8f8; - padding: 10px 0; - margin-top: 20px; -} -.plugins-footercustomerservice-customer-service .am-gallery-overlay .am-gallery-item img { - width: 50px; - float: left; -} -.plugins-footercustomerservice-customer-service .am-gallery-overlay .am-gallery-item .base { - margin-left: 60px; -} -.plugins-footercustomerservice-customer-service .am-gallery-overlay .am-gallery-item .base .title { - font-weight: 500; - font-size: 16px; - color: #505050; -} -.plugins-footercustomerservice-customer-service .am-gallery-overlay .am-gallery-item .base .desc { - color: #999; - margin-top: 5px; -} -@media only screen and (max-width:1025px) { - .plugins-footercustomerservice-customer-service .am-gallery-overlay .am-gallery-item { - border-bottom: 1px solid #f0f0f0; - padding-bottom: 10px; - } -} -.am-footer-default { - margin-top: 0; -} \ No newline at end of file diff --git a/public/static/plugins/css/freightfee/admin/admin.css b/public/static/plugins/css/freightfee/admin/admin.css deleted file mode 100755 index 6959848ef..000000000 --- a/public/static/plugins/css/freightfee/admin/admin.css +++ /dev/null @@ -1,188 +0,0 @@ -/** - * 首页 - */ -.freightfee-content .am-panel-bd .am-table { - margin-bottom: 0; -} -.freightfee-content .items { - margin: 10px 0 20px 0; - border-bottom: 1px dashed #f1f1f1; - padding-bottom: 20px; -} -.freightfee-content .edit-submit { - margin-bottom: 20px; -} -.freightfee-content .index-goods-list .am-panel-bd { - max-height: 300px; - overflow-y: scroll; - overflow-x: hidden; -} - -/** - * 运费模板 - */ -.freightfee-rules table.am-table { - margin-bottom: 10px; -} -.freightfee-rules table.am-table tr td input { - max-width: 100px; - display: -webkit-inline-box; -} -.freightfee-rules table.am-table tr th, .freightfee-rules table.am-table tr td, .freightfee-rules table.am-table tr td input { - text-align: center; -} -.freightfee-rules table.am-table tr td.first -{ - width: 30%; -} -.freightfee-rules table.am-table tr td .region-td { - border: 1px solid #bee5c0; - padding: 5px; - background: #f0fff0; - margin-bottom: 5px; -} -.freightfee-rules table.am-table td.first input { - position: absolute; - margin-left: -1000000px; -} -.freightfee-rules .am-form-group-label-tips-must { - vertical-align: middle; - margin-left: 5px !important; -} - -/** - * 弹窗 - */ -#freightfee-region-popup ul { - margin: 0; - padding: 0; -} -#freightfee-region-popup ul li { - list-style-type: none; - border-bottom: 1px solid #eee; - margin-bottom: 15px; -} -#freightfee-region-popup ul.city-list { - overflow: hidden; - margin-top: 5px; -} -#freightfee-region-popup ul .province-name { - border-bottom: 1px solid #e7e7e7; - background: #f5f5f5; - margin: 0; -} -#freightfee-region-popup ul .province-name.selected-may { - background: #eaf7eb; - border-bottom: 1px solid #d2efd3; -} -#freightfee-region-popup ul .province-name.selected { - background: #4CAF50; - border-bottom: 1px solid #409643; - color: #fff; -} -#freightfee-region-popup ul.city-list li { - float: left; - background: #e9e8e8; - margin: 0 10px 10px 0; - border-radius: 3px; - border: 1px solid #d6d6d6; -} -#freightfee-region-popup ul li .province-name, #freightfee-region-popup ul li .city-name -{ - cursor: pointer; - padding: 2px 5px; -} -#freightfee-region-popup ul.city-list li.selected { - background: #4CAF50; - color: #fff; - border: 1px solid #409643; -} - - -/** - * 商品推荐编辑 - */ -.forth-selection-container select.forth-selection-form-category { - display: -webkit-inline-box; -} -.forth-selection-container .forth-selection-form-category, .forth-selection-container .chosen-container, .forth-selection-container .forth-selection-form-keywords { - width: 30% !important; -} -.forth-selection-container .chosen-container, .forth-selection-container .forth-selection-form-keywords { - display: -webkit-inline-box !important; -} -.forth-selection-container .chosen-single { - width: 100%; -} -.forth-selection-container .forth-selection-form { - margin-bottom: 2px; -} -.forth-selection-list { - overflow: hidden; - margin-bottom: 20px; - position: relative; -} -.forth-selection-list .forth-selection-items { - width: calc(50% - 50px); - height: 300px; -} -.forth-selection-list .forth-selection-items .title { - text-align: center; -} -.forth-selection-list .forth-selection-items .forth-selection-content { - border: 1px solid #eee; - height: calc(100% - 25px); - overflow-y: scroll; - overflow-x: hidden; - border-radius: 2px; - margin-top: 5px; - background: #fff; -} -.forth-selection-list .forth-selection-items .forth-selection-content li { - padding: 5px 45px 5px 5px; - border-style: dotted; - border-color: #eaeaea; - border-width: 1px 0; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - color: #666; - position: relative; -} -.forth-selection-list .forth-selection-items .forth-selection-content li:nth-child(2) { - border-top: 0; -} -.forth-selection-list .forth-selection-items .forth-selection-content li i { - cursor: pointer; - padding: 0 10px 0 5px; - position: absolute; - top: 5px; - right: 5px; -} -.forth-selection-list .selected-all { - position: absolute; - margin-top: 140px; - margin-left: 20px; -} -.forth-selection-container input[name="goods_ids"] { - position: absolute; - left: -1000000px; - top: -1000000px; -} -.forth-selection-list i { - color: #888 !important; -} -.forth-selection-container .am-form-error .forth-selection-items .forth-selection-content { - border-color: #dd514c; -} -@media only screen and (max-width: 641px) { - .forth-selection-container .forth-selection-form-category, .forth-selection-container .forth-selection-form-keywords - { - width: calc(55% - 60px) !important; - display: -webkit-inline-box !important; - } - .forth-selection-container .chosen-container { - display: none !important; - } -} diff --git a/public/static/plugins/css/freightfee/index/style.css b/public/static/plugins/css/freightfee/index/style.css deleted file mode 100644 index 4df5c8f66..000000000 --- a/public/static/plugins/css/freightfee/index/style.css +++ /dev/null @@ -1,7 +0,0 @@ -.plugins-freightfee-goods-icon { - background: #fff; - border: 1px solid #5eb95e; - color: #5eb95e; - font-weight: 500; - vertical-align: middle; -} \ No newline at end of file diff --git a/public/static/plugins/css/homemiddleadv/admin/admin.css b/public/static/plugins/css/homemiddleadv/admin/admin.css deleted file mode 100755 index 6a8fae32a..000000000 --- a/public/static/plugins/css/homemiddleadv/admin/admin.css +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 首页 - */ -.homemiddleadv-content .items { - margin: 10px 0 20px 0; - border-bottom: 1px dashed #f1f1f1; - padding-bottom: 20px; -} -.homemiddleadv-content .items .immages-tag { - text-align: left; -} -.homemiddleadv-content .items .immages-tag img { - max-width: 100%; - border: 1px dashed #eee; - padding: 5px; -} -.homemiddleadv-content .edit-submit { - margin-bottom: 20px; -} -.homemiddleadv-content img { - max-width: 100%; -} -.homemiddleadv-content .am-slider-c3 .am-slider-counter { - background-color: #d13a49; -} -@media only screen and (min-width:640px) { - .homemiddleadv-data-list .am-gallery-overlay .am-gallery-item img { - width: auto; - max-height: 150px; - } -} - -/** - * 编辑页面 - */ -.form-date input { - width: 30% !important; - display: -webkit-inline-box !important; -} - -.form-date span { - vertical-align: middle; -} - -/** - * 数据列表编辑 - */ -ul.plug-file-upload-view li { - width: 160px; - height: auto; -} \ No newline at end of file diff --git a/public/static/plugins/css/homemiddleadv/index.html b/public/static/plugins/css/homemiddleadv/index.html deleted file mode 100755 index 0519ecba6..000000000 --- a/public/static/plugins/css/homemiddleadv/index.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/static/plugins/css/membershiplevel/admin/admin.css b/public/static/plugins/css/membershiplevel/admin/admin.css deleted file mode 100755 index cfb8e3db5..000000000 --- a/public/static/plugins/css/membershiplevel/admin/admin.css +++ /dev/null @@ -1,41 +0,0 @@ -/** - * 首页 - */ -.membershiplevel-content .items { - margin: 10px 0 20px 0; - border-bottom: 1px dashed #f1f1f1; - padding-bottom: 20px; -} -.membershiplevel-content .items .immages-tag { - border: 1px solid #eee; - text-align: center; - max-width: 60px; - max-height: 60px; - padding: 5px; -} -.membershiplevel-content .items .immages-tag img { - max-width: 100%; -} - -/** - * iframe - */ -.membershiplevel-content .am-panel-bd iframe { - min-height: 300px; -} - -/** - * 会员等级 - */ -.membershiplevel-level-list .am-panel-bd { - padding: 0; -} - - -/** - * 编辑页面 - */ -.content ul.plug-file-upload-view li { - max-width: 50px; - max-height: 50px; -} \ No newline at end of file diff --git a/public/static/plugins/css/membershiplevel/admin/level.css b/public/static/plugins/css/membershiplevel/admin/level.css deleted file mode 100644 index bf438edc3..000000000 --- a/public/static/plugins/css/membershiplevel/admin/level.css +++ /dev/null @@ -1,20 +0,0 @@ -/** - * 列表 - */ -.membershiplevel-content table img, .membershiplevel-content ul.plug-file-upload-view li { - max-width: 50px; - max-height: 50px; -} - -/** - * 编辑页面 - */ -.membershiplevel-content .rules-value input, .membershiplevel-content .full-reduction-value input { - display: -webkit-inline-box; -} -.membershiplevel-content .rules-value input { - width: calc(50% - 8px); -} -.membershiplevel-content .full-reduction-value input { - width: calc(50% - 18px); -} \ No newline at end of file diff --git a/public/static/plugins/css/membershiplevel/index.html b/public/static/plugins/css/membershiplevel/index.html deleted file mode 100755 index 0519ecba6..000000000 --- a/public/static/plugins/css/membershiplevel/index.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/static/plugins/css/membershiplevel/index/style.css b/public/static/plugins/css/membershiplevel/index/style.css deleted file mode 100644 index 4ee6dc554..000000000 --- a/public/static/plugins/css/membershiplevel/index/style.css +++ /dev/null @@ -1,18 +0,0 @@ -.plugins-membershiplevel-goods-price-icon { - padding: 3px 5px; - background: #fee85c; - color: #d19432; - position: relative; -} -.plugins-membershiplevel-goods-price-icon:after { - content: ''; - display: inline-block; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 20px; - background: url(../../../images/membershiplevel/flash.gif) no-repeat center; - background-size: contain; - opacity: 0.3; -} \ No newline at end of file diff --git a/public/static/plugins/css/newuserreduction/admin/admin.css b/public/static/plugins/css/newuserreduction/admin/admin.css deleted file mode 100755 index cfc91ee6c..000000000 --- a/public/static/plugins/css/newuserreduction/admin/admin.css +++ /dev/null @@ -1,11 +0,0 @@ -/** - * 首页 - */ -.newuserreduction-content .items { - margin: 10px 0 20px 0; - border-bottom: 1px dashed #f1f1f1; - padding-bottom: 20px; -} -.newuserreduction-content .edit-submit { - margin-bottom: 20px; -} \ No newline at end of file diff --git a/public/static/plugins/css/share/admin/admin.css b/public/static/plugins/css/share/admin/admin.css deleted file mode 100755 index 1be764047..000000000 --- a/public/static/plugins/css/share/admin/admin.css +++ /dev/null @@ -1,36 +0,0 @@ -/** - * 首页 - */ -.share-content .items { - margin: 10px 0 20px 0; - border-bottom: 1px dashed #f1f1f1; - padding-bottom: 20px; -} -.share-content .items .immages-tag { - border: 1px solid #eee; - text-align: center; - max-width: 100px; - padding: 5px; -} -.share-content .items .immages-tag img { - max-width: 100%; -} -.share-content .edit-submit { - margin-bottom: 20px; -} - -/** - * 编辑页面 - */ -ul.plugins-images-view li { - width: 100%; - height: auto; -} -.form-date input { - width: 30% !important; - display: -webkit-inline-box !important; -} - -.form-date span { - vertical-align: middle; -} \ No newline at end of file diff --git a/public/static/plugins/css/share/index/iconfont.css b/public/static/plugins/css/share/index/iconfont.css deleted file mode 100644 index 8c6c4dafb..000000000 --- a/public/static/plugins/css/share/index/iconfont.css +++ /dev/null @@ -1,41 +0,0 @@ -@font-face {font-family: "iconfont"; - src: url('iconfont.eot?t=1555845408116'); /* IE9 */ - src: url('iconfont.eot?t=1555845408116#iefix') format('embedded-opentype'), /* IE6-IE8 */ - url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAjUAAsAAAAADzAAAAiFAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCDXgqRDI1HATYCJAMcCxAABCAFhG0HUhuRDCMR5mvVJ/uLAtttxYBgdFC4wTDAPKPjPAgxVgs524d9vbB1sH47tA8N9vtF8NDv7zvX74vtbwKjouSQwbpxU94kT9+QPB0cnk7990rmcknJIfttKmcoFNQaixVKNrebDxXDCbjLTfrpBxAAMMYmYnnydBu3pW29eEkLCYvUt679ZAc+2A37iWOp3wFUZe8SHRaZowoa8ICiiup8tPPNJjpQmvKWsen2KjAbu38zBOAni3nA2vrWXjw0RC2gaHVpYQrPYkEHEAWe3nqcqE3hLgye3CrvAewr3y/e+EyYACRGAXJg53zdLJWPfPlYf+NfGqMSAGl6LuC6GSigGIC+6vY8jRugEW+yPv6NNb1AGA+JhR/UBerCdelzmS8f//9vbSfLBWH6Dx5INAqLwICwADTBE3QwbuERCHxIeAzkQ8NjOB8KHtP5sPDk7ELQx1KQ9KoHHJ4QBnIA8hDUNgRTQswjiBxpT7C5NmNugSIUBa1crEw8HN4dY5fAf0zpZgYGZma2pqa9B9oppRDRp30pKGNyGCb6vAjDcRRl+i/zMAxHkNnTlwGUTGm1IooST9J08ItLoOgQlXxHyzCC6zQPiobHThzbN3r6pCNMJAkCY2EITqKw5jLNw2bkQ+h4wsZgTN1uGL1Jx0PR7PlJjpdn+IrX9SCFN4SdFCXCMDNsgCWVPzaGcP0uUc6DuEKDkiTA93MRHLBYM/vAAILgp/mzN5l+Ac0EXnQgyCE1mx1IDqOOXFyF4OOuw0PsIW0AQaDDY2xiyEGrlci1YnyQO3lvwdC04/BJkfGI0QGW0ucElAWSCvHx2wimZGEkqvG7R6UX/DGDLEwuhyQTqqC9RbPXzfsBpvWRn2AT3uKyPcYs1JwsxQc4I6OIin9c4wK9aSaDJBGc5hR+E0ryRDI0jaJivM2UiJDpr5LOmPXdKeEhwySb8CUVSAU+yCIQPxXeQpsdC+mTs4lIhYJUVDFUjA3gLEaEK20BZQSb6GNJsNFGfFGShENqlj+GESSONA2PO8i0WirKjMVCROIc8uRx1QhLZD4wcr7fF2mq6gF9VBTERkZV5v0o1NzFTJqmoirPUe2fxsRKHlE02YQR1lxkOgl2eX4GL5Nbig0g4lwMRyvKcJItUaAoTpVXkFoJ8VFcitPmDjlkRZK/JcPk0LSYoiQnn8qe9D2SPq64ofWYZpZcp90nqOyTF2UX+s5Jzxcx3ac6ISe+MqiM10moZRp0ViVVijRVWWhRq4mgUnHTVyx5yDTK3VX9Z3WOqOoz+cU4EsKdJcrpjk+EjkGGCX5v6+m1dElCKV/msn2je31UXGFYpGBDbJxQvC9JANjL2N6lvN0Cl4aH+YY+VW6Nt14jbmAQxmUkSz2XGq0y391mlMxD4J6/FmAkS7iatybTt3hBSe2CtBULC8vBRqOJvQtWZK2z2T4JvuVHUzS/V1f+uQ+4qp7gSiOitylvRT+3LYgWSByUT3oL5568avM+DLYvejb+YCQyv2Y2cvzQb4dTw64d1t4GADgd9S1AGjcZl5gvhHFyYwP/JS6WJgUVzrUXElV+bwq8swyNGw4f5MMELNnNEdQd7IljNQWV2gu4yVZFpm3e55JZ67Ko49zOb5ZtuTrW1rjnNw/oH1vvmmi4P8BpUct4bratqbC+N9thc7pei/Tkd/pOn++T6Tfude6xOPm9Y68mpCMjfF7TpsOjas52E8OfP7HhCGdusAe2tcjtbui53UszdlzsOvCpQE/3qlXyp5ObgadA//OK5KBNX121ifvBxD7R4pAb38YgNNdXwz9k6+8aeCXNeLtzRfNxMGKQswrJ6K4QG7QYZmTcNxEaiIpT9P5w35xw665YGb/X2ss5cFbmxT1uGHd0lcJG8C2YWz1R2uoRZWQWtvaVKg6N91AlFmY0LN7W0XjHViKMba6hAtwCaqzN/RNarEVNesNA2byrJjHCVH+1utl4T0ReoxHgFVMPw4NDxCWBlVZrYJAQtLcJhZ2ddxErJ/2x1lb4zsp9gRVwSdbrksu79PilXo3gXtnlq/bIv8BvcA3Pi/ZpcKw95uZqVOhczk5KQstdikqzs5kFA74Tq9eM+w7O7/Jwf7FoFYiy/dtPyuOu5Ybaha7l8rjSOInuZpI/56tmw1HD0eavOCFf+331V8K9l7WV2aVda2x/MOHHuB90Nr9ks8uic5XupgRY/SwQhXkwESYV5gmgABbmwSSYeD4w8hApJHIJIfnTb7vTkrkcAbF7EsHhcmiAMloZv6AIdbznuNyw/3NMnxvyuRHxOQjKSr0U7My/5FblXHkP6BfiiZ1FNQv018yQLXodehOk3hq9RkmoPUYasKkwlFPoH9/wtIb3LOCZb25A7rMC+9qAWl/Le92q+OFHtPHszl64Xe/CIf3NIEXQ9YP7qpY4XYerzQ+zfnpdEzMya5BN1Y384f+x62q+Qjnqmaom6zynXPBAlSe+9l1VHYh2ItqoEpVEon71Av9Nax4+NLph+P9oEU9yNBETr4DDjldHgZ1T/pGfrE6/pMK4MMTMahFoE34bc0QCfjoNDjaBOG/S06WYpUc2XcpgSBwZhsIjG6ihxQxDgBKGxaOC4aeIJacHSNCIQmhTAIVs5BiCKAcZkjBHKuUFva/SAH3NMKT5VmkBK/QZfvqF/QUD5Ir14nJlVIIW9AKFodbxdrmoxS/Mhloxys97/ZB9QS3EQfRLPrFFTuMQP2aJiAPH1MCDOwDrmqBjKtFIkEOiS8PQ3Q8NDDWry+rKqETitKAXwcJQ61aXi+PrX5gNteKArm/BH7Iv1g9xEDEAn5qWqWtZKv2YJYIuB0IjUwMPdGFNYwSd93YlGgnyGJEuDXEqx6oJ8tc1w1kTg68nOaDXiRSLTQNP3/miVZu+3w5c7/s/tbj3uWI8TFjMRbtaAQAAAA==') format('woff2'), - url('iconfont.woff?t=1555845408116') format('woff'), - url('iconfont.ttf?t=1555845408116') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */ - url('iconfont.svg?t=1555845408116#iconfont') format('svg'); /* iOS 4.1- */ -} - -.iconfont { - font-family: "iconfont" !important; - font-size: 16px; - font-style: normal; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.icon-sina:before { - content: "\e71d"; -} - -.icon-qq:before { - content: "\e600"; -} - -.icon-url:before { - content: "\e639"; -} - -.icon-qzone:before { - content: "\e62b"; -} - -.icon-share:before { - content: "\e9d1"; -} - -.icon-weixin:before { - content: "\e64e"; -} - diff --git a/public/static/plugins/css/share/index/style.css b/public/static/plugins/css/share/index/style.css deleted file mode 100644 index c304177de..000000000 --- a/public/static/plugins/css/share/index/style.css +++ /dev/null @@ -1,121 +0,0 @@ -/** - * 分享 - */ -.plugins-share-container, #plugins-share-layer { - display: none; -} -.plugins-share ul { - overflow: hidden; -} -.plugins-share ul li { - float: left; - width: 25px; - height: 25px; - text-align: center; - line-height: 25px; - border-radius: 50px; - margin-right: 10px; - cursor: pointer; -} -.plugins-share ul li:last-child { - margin-right: 0; -} -.plugins-share ul li .iconfont { - font-size: 16px; - color: #fff; -} -.plugins-share ul li.share-qq { - background: #03A9F4; -} -.plugins-share ul li.share-qzone { - background: #FF9800; -} -.plugins-share ul li.share-weixin { - background: #3eab0f; -} -.plugins-share ul li.share-sian { - background: #e71f2d; -} -.plugins-share ul li.share-url { - background: #607d8b; -} - -@media only screen and (min-width: 641px) { - .plugins-share ul li.share-qq:hover { - background: #26bbff; - } - .plugins-share ul li.share-qzone:hover { - background: #fca729; - } - .plugins-share ul li.share-weixin:hover { - background: #49bc18; - } - .plugins-share ul li.share-sian:hover { - background: #f43844; - } - .plugins-share ul li.share-url:hover { - background: #7d9eae; - } -} - - -/** - * 微信二维码 - */ -#plugins-share-weixin-modal .weixin-qrcode { - margin-top: 10px; -} - -/** - * 弹层 - */ -#plugins-share-layer { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: rgba(0, 0, 0, 0.6); - z-index: 10000; - text-align: center; -} -#plugins-share-layer img { - max-width: 90%; -} - -/** - * 复制 - */ -#plugins-share-copy-modal .am-input-group { - margin-top: 10px; -} -#plugins-share-copy-modal .am-input-group .am-input-group-label { - cursor: pointer; -} - - -/** - * 商品页面分享 - */ -.plugins-goods-share-view { - margin-top: 5px; - display: block; -} -.plugins-goods-share-view a { - color: #888; -} -.plugins-goods-share-view a:hover { - color: #d2364c; -} -@media only screen and (max-width: 641px) { - .plugins-goods-share-view { - margin-top: 0; - padding: 5px; - border-top: 1px solid; - border-bottom: 1px solid; - border-color: #eee; - } - .plugins-goods-share-view .am-dropdown-content { - margin: 0 5px; - } -} \ No newline at end of file diff --git a/public/static/plugins/css/touristbuy/admin/admin.css b/public/static/plugins/css/touristbuy/admin/admin.css deleted file mode 100755 index e07c2caed..000000000 --- a/public/static/plugins/css/touristbuy/admin/admin.css +++ /dev/null @@ -1,11 +0,0 @@ -/** - * 首页 - */ -.touristbuy-content .items { - margin: 10px 0 20px 0; - border-bottom: 1px dashed #f1f1f1; - padding-bottom: 20px; -} -.touristbuy-content .edit-submit { - margin-bottom: 20px; -} \ No newline at end of file diff --git a/public/static/plugins/css/touristbuy/index/index.css b/public/static/plugins/css/touristbuy/index/index.css deleted file mode 100644 index d846fed82..000000000 --- a/public/static/plugins/css/touristbuy/index/index.css +++ /dev/null @@ -1,3 +0,0 @@ -.plugins-touristbuy-index { margin-top: 5%; } -.plugins-touristbuy-index form.am-form { margin-top: 20px; } -.plugins-touristbuy-index form.am-form .am-form-group { padding: 0 !important; } \ No newline at end of file diff --git a/public/static/plugins/css/touristbuy/index/index.detail.css b/public/static/plugins/css/touristbuy/index/index.detail.css deleted file mode 100644 index 27170e557..000000000 --- a/public/static/plugins/css/touristbuy/index/index.detail.css +++ /dev/null @@ -1,190 +0,0 @@ -/** - * 进度 - */ -ul.progress { - margin: 20px 0; -} -ul.progress li { - position: relative; - } -ul.progress li i.step { - display: block; - background-color: #e1e1e1; -} - -ul.progress li .digital { - background-color: #f7f7f7; - border-radius: 50px; - width: 36px; - height: 36px; - line-height: 26px; - text-align: center; - color: #e1e1e1; - font-weight: 700; - border: 6px solid #e1e1e1; -} - -ul.progress li .base .title { - font-weight: 500; - color: #666; -} - -ul.progress li .base .date { - color: #999; -} - -ul.progress li.steps-success .digital { - border: 6px solid #4CAF50; - color: #fff; -} -ul.progress li.steps-success .digital { - background-color: #82cc85; -} -ul.progress li.steps-success i.step { - background-color: #4CAF50; -} -ul.progress li.current .title { - color: #4CAF50; -} - -.base-right .icon-tips, .base-right .icon-success { - font-size: 50px; -} -.base-right .icon-tips { - color: #6980d0; -} -.base-right .icon-success { - color: #28801c; -} - -@media only screen and (min-width: 641px) { - ul.progress { - overflow: hidden; - } - ul.progress li { - float: left; - width: 20%; - text-align: center; - } - ul.progress li i.step { - display: block; - height: 6px; - width: 100%; - position: absolute; - margin: 15px 0 0 -50%; - z-index: 1; - } - ul.progress li .digital { - position: absolute; - margin-left: calc(50% - 18px); - z-index: 2; - } - ul.progress li .base { - margin-top: 50px; - } -} - -@media only screen and (max-width: 641px) { - ul.progress li i.step { - height: 60px; - width: 6px; - margin-left: 15px; - } - - ul.progress li .base { - position: absolute; - left: 50px; - top: 0; - } - ul.progress li:not(:first-child) .base { - margin-top: 70px; - } -} - - -/** - * 文本列表 - */ -.items { - padding: 3px 0; - overflow: hidden; -} -.items-detail { - color: #666; -} - - -/** - * 订单详情基础 - */ -.order-base .am-panel { - -webkit-box-shadow: none; - box-shadow: none; -} -.order-base .am-panel-bd, .order-base .base-right { - padding: 5px 10px; -} -.order-base, .order-base .status { - overflow: hidden; -} -.order-base .status-name { - line-height: 80px; -} -.order-base .operation .am-btn { - margin-left: 15px; -} -.order-base .logistics { - margin-top: 10px; -} -.order-base .am-btn-block { - width: auto; - padding-left: 1em; - padding-right: 1em; -} -@media only screen and (min-width: 641px) { - .order-base .base-left, .order-base .base-right { - width: 50%; - float: left; - } - .order-base { - border: 1px solid #ddd; - } - .order-base .am-panel-default { - border-color: #fff; - } - .order-base .am-panel { - border: 0; - margin: 0; - } - .order-base .base-left { - border-right: 1px solid #ddd; - } - .order-base .base-right { - padding-top: 0; - } -} -@media only screen and (max-width: 641px) { - .order-base .base-right { - border: 1px solid #ddd; - } -} - -/** - * 商品列表 - */ -.order-goods { margin-top: 20px; } -.goods-detail img { width: 80px; height: 80px; position: absolute; } -.goods-detail { position: relative; min-height: 80px; } -.goods-title { display: block; max-height: 36px; overflow: hidden; text-overflow: ellipsis; } -.goods-title:hover { text-decoration: underline; } -.goods-base { float: left; top: 0; margin-left: 85px; } -.goods-attr { margin-top: 5px; } -.goods-attr li { color: #888; line-height: 16px; } -.original-price, .line-price { font-family: Verdana,Tahoma,arial; } -.original-price { color: #9c9c9c; text-decoration: line-through; } -.line-price { color: #3c3c3c; } -.line-price, strong.total-price-content, strong.total-price-content { font-weight: 700; font-family: Verdana,Tahoma,arial; } -strong.total-price-content { color: #d2364c; } -.am-table { margin-bottom: 10px; } -.am-table > tbody > tr > td { border-top: 1px solid #F5F5F5; } -.am-table > thead > tr > th { border-bottom: 1px solid #f7f7f7; } \ No newline at end of file diff --git a/public/static/plugins/css/ucenter/admin/admin.css b/public/static/plugins/css/ucenter/admin/admin.css deleted file mode 100755 index d5c2358cf..000000000 --- a/public/static/plugins/css/ucenter/admin/admin.css +++ /dev/null @@ -1,27 +0,0 @@ -/** - * 首页 - */ -.ucenter-content .items { - margin: 10px 0 20px 0; - border-bottom: 1px dashed #f1f1f1; - padding-bottom: 20px; -} -.ucenter-content .edit-submit { - margin-bottom: 20px; -} - -/** - * 编辑页面 - */ -ul.plugins-images-view li { - width: 100%; - height: auto; -} -.form-date input { - width: 30% !important; - display: -webkit-inline-box !important; -} - -.form-date span { - vertical-align: middle; -} \ No newline at end of file diff --git a/public/static/plugins/css/usercentertopnotice/admin/admin.css b/public/static/plugins/css/usercentertopnotice/admin/admin.css deleted file mode 100755 index 6ff560ca0..000000000 --- a/public/static/plugins/css/usercentertopnotice/admin/admin.css +++ /dev/null @@ -1,27 +0,0 @@ -/** - * 首页 - */ -.usercentertopnotice-content .items { - margin: 10px 0 20px 0; - border-bottom: 1px dashed #f1f1f1; - padding-bottom: 20px; -} -.usercentertopnotice-content .edit-submit { - margin-bottom: 20px; -} - -/** - * 编辑页面 - */ -ul.plugins-images-view li { - width: 100%; - height: auto; -} -.form-date input { - width: 30% !important; - display: -webkit-inline-box !important; -} - -.form-date span { - vertical-align: middle; -} \ No newline at end of file diff --git a/public/static/plugins/css/userloginrewardintegral/admin/admin.css b/public/static/plugins/css/userloginrewardintegral/admin/admin.css deleted file mode 100755 index e5ccd3b92..000000000 --- a/public/static/plugins/css/userloginrewardintegral/admin/admin.css +++ /dev/null @@ -1,23 +0,0 @@ -/** - * 首页 - */ -.userloginrewardintegral-content .items { - margin: 10px 0 20px 0; - border-bottom: 1px dashed #f1f1f1; - padding-bottom: 20px; -} -.userloginrewardintegral-content .edit-submit { - margin-bottom: 20px; -} - -/** - * 编辑页面 - */ -.form-date input { - width: 30% !important; - display: -webkit-inline-box !important; -} - -.form-date span { - vertical-align: middle; -} \ No newline at end of file diff --git a/public/static/plugins/css/usernotloginhidegoodsprice/admin/admin.css b/public/static/plugins/css/usernotloginhidegoodsprice/admin/admin.css deleted file mode 100755 index 051871969..000000000 --- a/public/static/plugins/css/usernotloginhidegoodsprice/admin/admin.css +++ /dev/null @@ -1,15 +0,0 @@ -/** - * 首页 - */ -.usernotloginhidegoodsprice-content .items { - margin: 10px 0 20px 0; - border-bottom: 1px dashed #f1f1f1; - padding-bottom: 20px; -} -.usernotloginhidegoodsprice-content .items .empty-text { - color: #ccc; -} - -.usernotloginhidegoodsprice-content .edit-submit { - margin-bottom: 20px; -} \ No newline at end of file diff --git a/public/static/plugins/css/wallet/admin/admin.css b/public/static/plugins/css/wallet/admin/admin.css deleted file mode 100644 index 7d0b47301..000000000 --- a/public/static/plugins/css/wallet/admin/admin.css +++ /dev/null @@ -1,66 +0,0 @@ -/** - * 首页 - */ -.wallet-content-base .am-panel-bd, .wallet-content-base .items { - padding: 10px; -} -.wallet-content-base .am-panel-bd .am-gallery { - padding: 0; -} -.wallet-content-base .items { - border: 1px dashed #eee; -} - -/** - * 模块 - */ -.wallet-content-module .am-panel-bd, .wallet-content-module .am-panel-bd .am-gallery { - padding: 0; -} -.wallet-content-module .module-items { - text-align: left; - padding: 10px; - margin: 10px; - border-radius: 3px; - background: #f0f0f0; - position: relative; -} -.wallet-content-module .module-items p, .wallet-content-module .module-items .small { - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; -} -.wallet-content-module .module-items p { - max-width: 100%; -} -.wallet-content-module .module-items .small { - max-width: calc(100% - 40px); -} -.wallet-content-module .module-items p { - font-size: 14px; - font-weight: 700; - margin: 0; - color: #666; -} -.wallet-content-module .module-items p.total { - margin: 0 0 5px 0; - color: #333; - font-size: 26px; - font-weight: 700; -} -.wallet-content-module .module-items .small span { - color: #888; - font-size: 12px; -} -.wallet-content-module .module-items .top-right { - position: absolute; - top: 10px; - right: 10px; - color: #888; -} -.wallet-content-module .module-items .view-to { - position: absolute; - right: 10px; - bottom: 10px; - color: #666; -} \ No newline at end of file diff --git a/public/static/plugins/css/wallet/admin/cash.css b/public/static/plugins/css/wallet/admin/cash.css deleted file mode 100644 index 3fce3dd63..000000000 --- a/public/static/plugins/css/wallet/admin/cash.css +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 列表 - */ -.cash-content table.am-table .operation-msg { - width: 15%; -} - -/** - * 金额 - */ -.cash-content .money-bold { - font-weight: 700; -} -.cash-content .money { - color: #4CAF50; -} -.cash-content .cash-money { - color: #FF9800; -} - -/** - * 用户钱包金额 - */ -.cash-content .normal-money, -.cash-content .frozen-money, -.cash-content .give-money { - font-weight: 700; -} -.cash-content .normal-money { - color: #4CAF50; -} -.cash-content .frozen-money { - color: #FF9800; -} -.cash-content .give-money { - color: #666; -} - -/** - * 审核页面 - */ -.cash-content .am-alert-title { - margin-bottom: 5px; - font-weight: 700; - font-size: 14px; - color: #888; -} -@media only screen and (min-width: 641px) { - .cash-content .form-submit-list { - padding-left: 20% !important; - padding-right: 40% !important; - } -} -.cash-content .form-submit-list button { - width: 45%; -} -.cash-content .form-submit-list input[name="type"] { - position: absolute; - margin-left: -1000000px; -} \ No newline at end of file diff --git a/public/static/plugins/css/wallet/admin/common.css b/public/static/plugins/css/wallet/admin/common.css deleted file mode 100644 index 68f8a191d..000000000 --- a/public/static/plugins/css/wallet/admin/common.css +++ /dev/null @@ -1,13 +0,0 @@ -/** - * 用户信息 - */ -.content-right .user-info img { - max-width: 35px; - max-height: 35px; - margin: 0 5px 2px 0; -} -.content-right ul { - list-style: none; - padding: 0; - margin: 0; -} \ No newline at end of file diff --git a/public/static/plugins/css/wallet/admin/wallet.css b/public/static/plugins/css/wallet/admin/wallet.css deleted file mode 100644 index 476ccec65..000000000 --- a/public/static/plugins/css/wallet/admin/wallet.css +++ /dev/null @@ -1,37 +0,0 @@ -/** - * 列表 - */ -.wallet-content .view-operation { - width: 160px; -} -.wallet-content .view-operation button { - width: calc(50% - 5px); -} - - -/** - * 金额 - */ -.wallet-content .normal-money, -.wallet-content .frozen-money, -.wallet-content .give-money { - font-weight: 700; -} -.wallet-content .normal-money { - color: #4CAF50; -} -.wallet-content .frozen-money { - color: #FF9800; -} -.wallet-content .give-money { - color: #666; -} - -/** - * 编辑 - */ -@media only screen and (min-width: 641px) { - .wallet-content form .am-alert { - margin: 0; - } -} diff --git a/public/static/plugins/css/wallet/admin/walletlog.css b/public/static/plugins/css/wallet/admin/walletlog.css deleted file mode 100644 index dc5e78e37..000000000 --- a/public/static/plugins/css/wallet/admin/walletlog.css +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 列表 - */ -.walletlog-content table.am-table { - margin-top: 10px; -} -.walletlog-content table.am-table .money-bold { - font-weight: 700; -} -.walletlog-content table.am-table .money { - color: #E4393C; -} -.walletlog-content table.am-table .operation-reduce-icon { - color: #f00; -} -.walletlog-content table.am-table .operation-increase-icon { - color: #0a9610; -} -.walletlog-content table.am-table .operation-msg { - width: 30%; -} \ No newline at end of file diff --git a/public/static/plugins/css/wallet/index/cash.css b/public/static/plugins/css/wallet/index/cash.css deleted file mode 100644 index 172ffaa41..000000000 --- a/public/static/plugins/css/wallet/index/cash.css +++ /dev/null @@ -1,49 +0,0 @@ -/** - * 操作提示 - */ -.user-content-body .wallet-cash-auth-tips .title { - font-weight: 500; - font-size: 16px; - margin-bottom: 2px; -} -.user-content-body .wallet-cash-auth-tips ul li { - color: #486d48; - line-height: 24px; -} -.user-content-body .wallet-cash-auth-tips ul li a { - text-decoration: underline; -} - -/** - * 弹窗图片验证码 - */ -.user-content-body .verify-submit-win, .user-content-body .verify-submit-win-new { margin-top: 20px; display: block; } -.user-content-body .reg-switch-tips { font-weight: 100; font-size: 12px; color: #f87689; margin-left: 20px; } -.user-content-body #verify-win .am-modal-bd { margin-top: 10px; } -.user-content-body #verify-win .am-modal-bd .base { overflow: hidden; } -.user-content-body #verify-win .am-modal-bd .base .verify-tips { font-size: 12px; } -.user-content-body #verify-img { vertical-align: middle; } - -/** - * 提现可用金额 - */ -.user-content-body form.create-info .am-alert { - color: #90cae9; -} -.user-content-body form.create-info .cash-normal-mony { - font-weight: 700; - color: #55b35a; -} -.user-content-body form.create-info .am-form-group:hover .am-alert { - color: #1490d2; -} - -/** - * 列表 - */ -.user-content-body .data-list .operation-msg { - width: 20%; -} -.user-content-body .data-list .cash-money { - color: #FF9800; -} \ No newline at end of file diff --git a/public/static/plugins/css/wallet/index/common.css b/public/static/plugins/css/wallet/index/common.css deleted file mode 100644 index 7c0099713..000000000 --- a/public/static/plugins/css/wallet/index/common.css +++ /dev/null @@ -1,162 +0,0 @@ -/* 筛选 */ -.thin { overflow:hidden; } -.thin .so { width:66%; } -.thin_sub { font-weight:100; margin:10px 0px 0px 10px; cursor: pointer; } -.so-list { width:100%; margin-top: 10px; } -.so-list * { font-size:1.2rem !important; } -.so-list input { height:28px; display:inline !important; } -.time input, .so-list .chosen-container { background:#FFF !important; } -.time input { width:100px !important; } -.time i { position:absolute; margin:4px 0px 0px -15px; } -.price input { width:101px !important; } -.time, .time { width:50%; } -.so-list tr+tr>td { padding-top:10px; } -.so-list .chosen-container { border-radius:2px; } -.text-grey { color: #999; } -.chosen-container-single .chosen-single, .so-list select { height: 28px; line-height: 28px; width: 100%; } -.reset-submit { margin-left: 20px; } -.so-list select { padding: 0 0 0 8px; } -@media only screen and (min-width: 641px) { - .so-list .chosen-container, .so-list select { width:217px !important; display: -webkit-inline-box; } - .thin_sub:hover { color:#F60; } -} -@media only screen and (max-width: 641px) { - .so-list input { width:40% !important; } - .so-list td { width:100%; display:block; } - .so-list tr td:last-child { margin-top:10px; } - .so-list .chosen-container { width:85%; } - .so-list .chosen-container { width:100%; } - .so-list tr td:last-child { padding-top:0px !important; } - .chosen-container-single .chosen-search input[type="text"] { width: 100% !important; } - .so-list select { width: calc(100% - 44px); display: -webkit-inline-box; } -} - -/** - * 导航 - */ -.user-content-body .am-nav { - border-bottom: 1px solid #eee; -} -.user-content-body .am-nav li { - margin-bottom: -1px; -} -.user-content-body .am-nav li a { - font-size: 14px; -} -.user-content-body .am-nav .am-active { - border-bottom: 2px solid #ed5565; - -} -.user-content-body .am-nav > li > a:hover, .user-content-body .am-nav > li > a:focus { - background: transparent; -} -.user-content-body .am-nav .am-topbar-right { - margin-right: 0; - text-align: right; -} -.user-content-body .am-nav .am-topbar-right .am-btn:not(:last-child) { - margin-right: 5px; -} -.user-content-body .am-nav .am-topbar-right .am-topbar-btn { - margin-top: 0; -} -@media only screen and (max-width: 641px) { - .user-content-body .am-nav li a { - font-size: 12px; - padding: 2px 5px; - } - .user-content-body .am-nav .am-topbar-right .am-topbar-btn { - padding: 2px 5px; - } -} - -/** - * 账户信息 - */ -.user-content-body .am-alert-secondary { - margin-bottom: 20px; -} -.user-content-body .normal .panel-value { - color: #4CAF50; -} -.user-content-body .frozen .panel-value { - color: #FF9800; -} -.user-content-body .panel-value { - font-size: 18px; - font-weight: 700; -} -.user-content-body .panel-tips { - color: #ff9600; - background: #fdf8ed; - padding: 3px 6px; - border: 1px solid #f4eadb; - margin-left: 10px; -} -@media only screen and (max-width: 641px) { - .user-content-body .panel-tips { - display: none; - } -} - -/** - * 业务弹窗 - */ -.user-content-body .business-item label { margin-bottom: 0px; } -.user-content-body .business-item h3 { font-weight: 700; } -.user-content-body .business-item ul { padding: 5px 1px; overflow: hidden; } -.user-content-body .business-item ul li { border:1px solid transparent ;overflow: hidden; float: left; cursor: pointer; padding: 5px; border: 1px solid #eee; margin: 0 10px 10px 0; background: #fff; } -.user-content-body .business-item ul li img { width: 36px; height: 36px; } -.user-content-body .business-item ul li:hover, .user-content-body .business-item ul li.selected { border-color: #e4383c ; position: relative; box-shadow: 0px 0 0px 1px #e4383c; } -.user-content-body .business-item li.selected i.icon-active { position: absolute; width: 10px; height: 10px; font-size: 0; line-height: 0; right: 0px; bottom: 0px; background: url(../../../images/wallet/sys_item_selected.gif) no-repeat right bottom; } -@media only screen and (min-width:640px) { - .user-content-body .business-item ul li {width:calc(33% - 5px); } - .user-content-body .business-item ul li:nth-child(3n) { margin-right: 0; } -} -@media only screen and (max-width:640px) { - .user-content-body .business-item ul li { width: calc(50% - 5px); } - .user-content-body .business-item ul li:nth-child(2n) { margin-right: 0; } -} - -/** - * 充值窗口 - */ -#plugins-recharge-pay-modal button[type="submit"] { - margin-top: 10px; -} - - -/** - * 支付选择窗口 - */ -#plugins-recharge-pay-popup input[name="payment_id"] { - margin-left: -10000px; - position: absolute; -} -#plugins-recharge-pay-popup .base { - margin-bottom: 15px; - padding: 5px 10px; - background: #f6f6f6; - border: 1px solid #efefef; -} -#plugins-recharge-pay-popup .base p { - line-height: 24px; -} -#plugins-recharge-pay-popup .base .recharge-no { - font-weight: 700; - color: #666; -} - - -/** - * 列表 - */ -.user-content-body .data-list { - margin-top: 10px; -} -.user-content-body .data-list .money-bold { - font-weight: 700; -} -.user-content-body .data-list .money { - color: #E4393C; -} \ No newline at end of file diff --git a/public/static/plugins/css/wallet/index/wallet.css b/public/static/plugins/css/wallet/index/wallet.css deleted file mode 100644 index fb3f849ea..000000000 --- a/public/static/plugins/css/wallet/index/wallet.css +++ /dev/null @@ -1,12 +0,0 @@ -/** - * 列表 - */ -.user-content-body .data-list .operation-reduce-icon { - color: #f00; -} -.user-content-body .data-list .operation-increase-icon { - color: #0a9610; -} -.user-content-body .data-list .operation-msg { - width: 30%; -} \ No newline at end of file diff --git a/public/static/plugins/css/weixinwebauthorization/admin/admin.css b/public/static/plugins/css/weixinwebauthorization/admin/admin.css deleted file mode 100755 index 548dc59f4..000000000 --- a/public/static/plugins/css/weixinwebauthorization/admin/admin.css +++ /dev/null @@ -1,11 +0,0 @@ -/** - * 首页 - */ -.weixinwebauthorization-content .items { - margin: 10px 0 20px 0; - border-bottom: 1px dashed #f1f1f1; - padding-bottom: 20px; -} -.weixinwebauthorization-content .edit-submit { - margin-bottom: 20px; -} \ No newline at end of file diff --git a/public/static/plugins/images/.gitignore b/public/static/plugins/images/.gitignore old mode 100644 new mode 100755 diff --git a/public/static/plugins/images/answers/default-images.jpg b/public/static/plugins/images/answers/default-images.jpg deleted file mode 100644 index c3eb8295d..000000000 Binary files a/public/static/plugins/images/answers/default-images.jpg and /dev/null differ diff --git a/public/static/plugins/images/answers/index.html b/public/static/plugins/images/answers/index.html deleted file mode 100755 index 0519ecba6..000000000 --- a/public/static/plugins/images/answers/index.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/static/plugins/images/commongobacktop/default-images.jpg b/public/static/plugins/images/commongobacktop/default-images.jpg deleted file mode 100644 index c3eb8295d..000000000 Binary files a/public/static/plugins/images/commongobacktop/default-images.jpg and /dev/null differ diff --git a/public/static/plugins/images/commongobacktop/index.html b/public/static/plugins/images/commongobacktop/index.html deleted file mode 100755 index 0519ecba6..000000000 --- a/public/static/plugins/images/commongobacktop/index.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/static/plugins/images/commononlineservice/btn-ctn.png b/public/static/plugins/images/commononlineservice/btn-ctn.png deleted file mode 100755 index 8e24a351c..000000000 Binary files a/public/static/plugins/images/commononlineservice/btn-ctn.png and /dev/null differ diff --git a/public/static/plugins/images/commonrightnavigation/default-images.jpg b/public/static/plugins/images/commonrightnavigation/default-images.jpg deleted file mode 100644 index c3eb8295d..000000000 Binary files a/public/static/plugins/images/commonrightnavigation/default-images.jpg and /dev/null differ diff --git a/public/static/plugins/images/commonrightnavigation/index.html b/public/static/plugins/images/commonrightnavigation/index.html deleted file mode 100755 index 0519ecba6..000000000 --- a/public/static/plugins/images/commonrightnavigation/index.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/static/plugins/images/commontopmaxpicture/default-images.jpg b/public/static/plugins/images/commontopmaxpicture/default-images.jpg deleted file mode 100644 index c3eb8295d..000000000 Binary files a/public/static/plugins/images/commontopmaxpicture/default-images.jpg and /dev/null differ diff --git a/public/static/plugins/images/commontopmaxpicture/index.html b/public/static/plugins/images/commontopmaxpicture/index.html deleted file mode 100755 index 0519ecba6..000000000 --- a/public/static/plugins/images/commontopmaxpicture/index.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/static/plugins/images/footercustomerservice/default-images.jpg b/public/static/plugins/images/footercustomerservice/default-images.jpg deleted file mode 100644 index c3eb8295d..000000000 Binary files a/public/static/plugins/images/footercustomerservice/default-images.jpg and /dev/null differ diff --git a/public/static/plugins/images/footercustomerservice/index.html b/public/static/plugins/images/footercustomerservice/index.html deleted file mode 100755 index 0519ecba6..000000000 --- a/public/static/plugins/images/footercustomerservice/index.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/static/plugins/images/homemiddleadv/default-images.jpg b/public/static/plugins/images/homemiddleadv/default-images.jpg deleted file mode 100644 index c3eb8295d..000000000 Binary files a/public/static/plugins/images/homemiddleadv/default-images.jpg and /dev/null differ diff --git a/public/static/plugins/images/homemiddleadv/index.html b/public/static/plugins/images/homemiddleadv/index.html deleted file mode 100755 index 0519ecba6..000000000 --- a/public/static/plugins/images/homemiddleadv/index.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/static/plugins/images/membershiplevel/default-images.jpg b/public/static/plugins/images/membershiplevel/default-images.jpg deleted file mode 100644 index c3eb8295d..000000000 Binary files a/public/static/plugins/images/membershiplevel/default-images.jpg and /dev/null differ diff --git a/public/static/plugins/images/membershiplevel/flash.gif b/public/static/plugins/images/membershiplevel/flash.gif deleted file mode 100644 index 1be5d37bd..000000000 Binary files a/public/static/plugins/images/membershiplevel/flash.gif and /dev/null differ diff --git a/public/static/plugins/images/membershiplevel/index.html b/public/static/plugins/images/membershiplevel/index.html deleted file mode 100755 index 0519ecba6..000000000 --- a/public/static/plugins/images/membershiplevel/index.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/static/plugins/images/membershiplevel/level-default-images.png b/public/static/plugins/images/membershiplevel/level-default-images.png deleted file mode 100644 index 6c67333d6..000000000 Binary files a/public/static/plugins/images/membershiplevel/level-default-images.png and /dev/null differ diff --git a/public/static/plugins/images/share/default-images.jpg b/public/static/plugins/images/share/default-images.jpg deleted file mode 100644 index c3eb8295d..000000000 Binary files a/public/static/plugins/images/share/default-images.jpg and /dev/null differ diff --git a/public/static/plugins/images/share/share-layer.png b/public/static/plugins/images/share/share-layer.png deleted file mode 100644 index 38c22789c..000000000 Binary files a/public/static/plugins/images/share/share-layer.png and /dev/null differ diff --git a/public/static/plugins/images/wallet/default-images.jpg b/public/static/plugins/images/wallet/default-images.jpg deleted file mode 100644 index c3eb8295d..000000000 Binary files a/public/static/plugins/images/wallet/default-images.jpg and /dev/null differ diff --git a/public/static/plugins/images/wallet/index.html b/public/static/plugins/images/wallet/index.html deleted file mode 100755 index 0519ecba6..000000000 --- a/public/static/plugins/images/wallet/index.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/static/plugins/images/wallet/sys_item_selected.gif b/public/static/plugins/images/wallet/sys_item_selected.gif deleted file mode 100644 index 704bbf535..000000000 Binary files a/public/static/plugins/images/wallet/sys_item_selected.gif and /dev/null differ diff --git a/public/static/plugins/js/.gitignore b/public/static/plugins/js/.gitignore old mode 100644 new mode 100755 diff --git a/public/static/plugins/js/answers/admin/admin.js b/public/static/plugins/js/answers/admin/admin.js deleted file mode 100644 index 3697b087b..000000000 --- a/public/static/plugins/js/answers/admin/admin.js +++ /dev/null @@ -1,107 +0,0 @@ -$(function() -{ - // 添加元素到右侧 - function RightElementAdd(value, name) - { - if($('.forth-selection-container ul.ul-right').find('.items-li-'+value).length == 0) - { - var html = '
  • '+name+'
  • '; - $('.forth-selection-container ul.ul-right').append(html); - } - - // 右侧数据同步 - RightElementGoods(); - - // 左侧是否还有内容 - if($('.forth-selection-container ul.ul-left li').length == 0) - { - $('.forth-selection-container ul.ul-left .table-no').removeClass('none'); - } else { - $('.forth-selection-container ul.ul-left .table-no').addClass('none'); - } - } - - // 批量-商品id同步 - function RightElementGoods() - { - var value_all = []; - $('.forth-selection-container ul.ul-right li').each(function(k, v) - { - value_all[k] = $(this).find('span.name').data('value'); - }); - $('.forth-selection-container input[name="category_ids"]').val(value_all.join(',')).blur(); - - // 右侧是否还有数据 - if($('.forth-selection-container ul.ul-right li').length == 0) - { - $('.forth-selection-container ul.ul-right .table-no').removeClass('none'); - } else { - $('.forth-selection-container ul.ul-right .table-no').addClass('none'); - } - } - // 左侧点击到右侧 - $('.forth-selection-container ul.ul-left').on('click', 'i.am-icon-angle-right', function() - { - var value = $(this).prev().data('value'); - var name = $(this).prev().text(); - $(this).parent().remove(); - RightElementAdd(value, name); - }); - - // 左侧全部移动到右侧 - $('.forth-selection-container .selected-all').on('click', function() - { - $('.forth-selection-container ul.ul-left li').each(function(k, v) - { - var value = $(this).find('span.name').data('value'); - var name = $(this).find('span.name').text(); - $(this).remove(); - RightElementAdd(value, name); - }); - }); - - // 右侧删除 - $('.forth-selection-container ul.ul-right').on('click', 'i.am-icon-trash-o', function() - { - $(this).parent().remove(); - RightElementGoods(); - }); - - // 商品搜索 - $('.forth-selection-form .search-submit').on('click', function() - { - var category_id = $('.forth-selection-form .forth-selection-form-category').val(); - var keywords = $('.forth-selection-form .forth-selection-form-keywords').val(); - console.log(category_id, keywords) - - // ajax请求 - $.ajax({ - url:$('.forth-selection-form').data('search-url'), - type:'POST', - dataType:"json", - timeout:10000, - data:{"category_id": category_id, "keywords": keywords}, - success:function(result) - { - if(result.code == 0) - { - var html = ''; - for(var i in result.data) - { - html += '
  • '+result['data'][i]['title']+'
  • '; - } - $('ul.ul-left .table-no').addClass('none'); - $('ul.ul-left li').remove(); - $('ul.ul-left').append(html); - } else { - Prompt(result.msg); - } - }, - error:function() - { - Prompt('网络异常错误'); - } - }); - }); - -}); \ No newline at end of file diff --git a/public/static/plugins/js/answers/index/index.js b/public/static/plugins/js/answers/index/index.js deleted file mode 100644 index ee8f02cf8..000000000 --- a/public/static/plugins/js/answers/index/index.js +++ /dev/null @@ -1,6 +0,0 @@ -$(function() -{ - // 问答表单初始化 - FromInit('form.form-validation-plugins-answer-ask'); - -}); \ No newline at end of file diff --git a/public/static/plugins/js/commononlineservice/index/style.js b/public/static/plugins/js/commononlineservice/index/style.js deleted file mode 100755 index 9c9c418b5..000000000 --- a/public/static/plugins/js/commononlineservice/index/style.js +++ /dev/null @@ -1,17 +0,0 @@ -$(function() -{ - // 在线客服 - $('.commononlineservice .btn-open').click(function() - { - $('.commononlineservice .content').animate({'margin-right':'0px'}, 300); - $('.commononlineservice .btn-open').css('display', 'none'); - $('.commononlineservice .btn-ctn').css('display', 'block'); - }); - - $('.commononlineservice .btn-ctn').click(function() - { - $('.commononlineservice .content').animate({'margin-right':'-150px'}, 300); - $('.commononlineservice .btn-open').css('display', 'block'); - $('.commononlineservice .btn-ctn').css('display', 'none'); - }); -}); \ No newline at end of file diff --git a/public/static/plugins/js/commonrightnavigation/index/style.js b/public/static/plugins/js/commonrightnavigation/index/style.js deleted file mode 100755 index 60958a652..000000000 --- a/public/static/plugins/js/commonrightnavigation/index/style.js +++ /dev/null @@ -1,102 +0,0 @@ -$(function() -{ - // 在线留言表单初始化 - FromInit('form.form-validation-plugins-commonrightnavigation-answer'); - - // 回顶部监测 - $(window).scroll(function() - { - if($(window).scrollTop() > 100) - { - $("#plugins-commonrightnavigation").fadeIn(1000); - } else { - $("#plugins-commonrightnavigation").fadeOut(1000); - } - }); - - // 购物车查询 - $('.commonrightnavigation-cart').on('mouseenter', function() - { - // 当前鼠标是否还在元素上,防止鼠标直接进入子级元素导致重复执行事件 - if($(this).attr('data-is-has-mouse') == 1) - { - return false; - } else { - $(this).attr('data-is-has-mouse', 1); - } - - // url - var $this = $(this); - var ajax_url = $this.data('cart-ajax-url'); - var delete_url = $this.data('cart-delete-ajax-url'); - - // ajax请求 - $.ajax({ - url: ajax_url, - type: 'post', - dataType: "json", - timeout: 10000, - data: {}, - success: function(result) - { - if(result.code == 0 && result.data.cart_list.length > 0) - { - var html = ''; - for(var i in result.data.cart_list) - { - html += ''; - html += ''; - html += ''; - html += ''; - } - html += '
    '; - html += '
    '; - html += ''; - html += ''; - html += ''; - html += '
    '; - html += ''+result.data.cart_list[i]['title']+''; - if((result.data.cart_list[i]['spec'] || null) != null) - { - html += '
      '; - for(var s in result.data.cart_list[i]['spec']) - { - html += '
    • '+result.data.cart_list[i]['spec'][s]['type']+':'+result.data.cart_list[i]['spec'][s]['value']+'
    • '; - } - html += '
    '; - } - html += '
    '; - html += '¥'+result.data.cart_list[i]['total_price']+''; - html += ' x'+result.data.cart_list[i]['stock']+''; - html += ''; - html += '删除'; - html += '
    '; - $this.find('.cart-items').html(html); - $this.find('.mixed-tips').hide(); - $this.find('.cart-nav').show(); - $this.find('.cart-items').show(); - $this.find('.cart-nav .selected-tips strong').text(result.data.base.cart_count); - $this.find('.cart-nav .nav-total-price').text('¥'+result.data.base.total_price); - $this.find('.cart-nav input[name="ids"]').val(result.data.base.ids); - HomeCartNumberTotalUpdate(result.data.base.cart_count); - } else { - $this.find('.mixed-tips').show(); - $this.find('.cart-nav').hide(); - $this.find('.cart-items').hide(); - $this.find('.cart-nav .selected-tips strong').text(0); - $this.find('.cart-nav .nav-total-price').text('¥0.00'); - $this.find('.cart-nav input[name="ids"]').val(''); - HomeCartNumberTotalUpdate(0); - } - }, - error: function(xhr, type) - { - Prompt('服务器错误'); - } - }); - }).mouseleave(function() - { - // 鼠标离开元素标记 - $(this).attr('data-is-has-mouse', 0); - }); -}); \ No newline at end of file diff --git a/public/static/plugins/js/freightfee/admin/admin.js b/public/static/plugins/js/freightfee/admin/admin.js deleted file mode 100644 index 7681bb883..000000000 --- a/public/static/plugins/js/freightfee/admin/admin.js +++ /dev/null @@ -1,382 +0,0 @@ -$(function() -{ - // 计费方式切换 - $('form.am-form input[name=valuation]').on('click', function() - { - var $this = $(this); - var valuation = parseInt($this.val()); - if($(this).parents('.am-form-group').attr('data-value') != valuation) - { - AMUI.dialog.confirm({ - title: '温馨提示', - content: '切换计价方式后,所设置当前模板的运输信息将被清空,确定继续么?', - onConfirm: function(e) - { - // 内容 - var valuation_unit = ['件', 'kg']; - var unit = valuation_unit[valuation] || null; - if(unit == null) - { - Prompt('配置有误'); - return false; - } - - $this.parents('.am-form-group').attr('data-value', valuation); - var thead = ''; - thead += '运送到*'; - thead += '首件数('+unit+')*'; - thead += '首费(元)*'; - thead += '续件数('+unit+')*'; - thead += '续费(元)*'; - thead += '满(免运费)'; - thead += '操作'; - thead += ''; - - var html = ''; - switch(valuation) - { - // 按件 - case 0 : - html += ''; - html += '
    默认运费'; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - break; - - // 按重量 - case 1 : - html += ''; - html += '
    默认运费'; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - html += ''; - break; - - default : - Prompt('配置有误'); - } - $('.freightfee-rules table.am-table thead').html(thead); - $('.freightfee-rules table.am-table tbody').html(html); - }, - onCancel: function() - { - $('form.am-form input[name=valuation]').eq(valuation).uCheck('uncheck'); - $('form.am-form input[name=valuation]').eq(valuation == 1 ? 0 : 1).uCheck('check'); - $this.parents('.am-form-group').attr('data-value', valuation == 1 ? 0 : 1); - } - }); - } - }); - - // 元素添加 - $('.rules-submit-add').on('click', function() - { - // 唯一索引 - var index = parseInt(Math.random()*1000001); - - // 元素html - var html = $('.freightfee-rules table.am-table').find('tbody tr:first').prop('outerHTML'); - if(html.indexOf('默认运费') >= 0) - { - html = html.replace(/默认运费/ig, '添加地区'); - } - if(html.indexOf('') >= 0) - { - html = html.replace(//ig, '删除'); - } - $('.freightfee-rules table.am-table').append(html); - - // 值赋空 - $('.freightfee-rules table.am-table').find('tbody tr:last').find('input').each(function(k, v) - { - $(this).attr('value', ''); - }); - $('.freightfee-rules table.am-table').find('tbody tr:last .region-td').text('').addClass('none'); - - // 移除原来的class新增新的class - $('.freightfee-rules table.am-table').find('tbody tr:last').removeClass().addClass('data-list-'+index); - - // name名称设置 - $('.freightfee-rules table.am-table').find('tbody tr:last .region-name').attr('name', 'data['+index+'][region]'); - $('.freightfee-rules table.am-table').find('tbody tr:last .region-name-show').attr('name', 'data['+index+'][region_show]'); - $('.freightfee-rules table.am-table').find('tbody tr:last .first-name').attr('name', 'data['+index+'][first]'); - $('.freightfee-rules table.am-table').find('tbody tr:last .first-price-name').attr('name', 'data['+index+'][first_price]'); - $('.freightfee-rules table.am-table').find('tbody tr:last .continue-name').attr('name', 'data['+index+'][continue]'); - $('.freightfee-rules table.am-table').find('tbody tr:last .continue-price-name').attr('name', 'data['+index+'][continue_price]'); - $('.freightfee-rules table.am-table').find('tbody tr:last .continue-free-shipping-price-name').attr('name', 'data['+index+'][free_shipping_price]'); - }); - - // 行移除 - $(document).on('click', '.freightfee-rules table.am-table .line-remove', function() - { - $(this).parents('tr').remove(); - }); - - // 地区编辑 - $(document).on('click', '.freightfee-rules table.am-table .line-edit', function() - { - var index = $(this).data('index'); - $('#freightfee-region-popup').modal(); - $('#freightfee-region-popup').attr('data-index', index); - - // 清除选中 - $('#freightfee-region-popup').find('.province-name').removeClass('selected').removeClass('selected-may'); - $('#freightfee-region-popup').find('.city-name').parent('li').removeClass('selected'); - - // 地区选中 - var ids = $('.data-list-'+index).find('td.first input').val() || null; - - if(ids != null) - { - var ids_all = ids.split('-'); - for(var i in ids_all) - { - $('.region-node-'+ids_all[i]).parent('li').addClass('selected'); - } - - // 父级选择处理 - $('#freightfee-region-popup .city-list').each(function(k, v) - { - var items_count = $(this).find('.city-name').length; - var selected_count = $(this).find('.selected').length; - if(selected_count >= items_count) - { - $(this).prev('.province-name').removeClass('selected-may').addClass('selected'); - } else if(selected_count > 0 && selected_count < items_count) - { - $(this).prev('.province-name').removeClass('selected').addClass('selected-may'); - } else { - $(this).prev('.province-name').removeClass('selected-may').removeClass('selected'); - } - }); - } - }); - - // 地区选择事件 - 省 - $('#freightfee-region-popup .province-name').on('click', function() - { - if($(this).hasClass('selected-may') || $(this).hasClass('selected')) - { - $(this).next('.city-list').find('li').removeClass('selected'); - $(this).removeClass('selected-may').removeClass('selected'); - } else { - $(this).next('.city-list').find('li').addClass('selected'); - $(this).addClass('selected'); - } - }); - - // 地区选择事件 - 城市 - $('#freightfee-region-popup .city-name').on('click', function() - { - if($(this).parent('li').hasClass('selected')) - { - $(this).parent('li').removeClass('selected'); - } else { - $(this).parent('li').addClass('selected'); - } - - // 父级处理 - var items_count = $(this).parents('.city-list').find('.city-name').length; - var selected_count = $(this).parents('.city-list').find('.selected').length; - if(selected_count >= items_count) - { - $(this).parents('.city-list').prev('.province-name').removeClass('selected-may').addClass('selected'); - } else if(selected_count > 0 && selected_count < items_count) - { - $(this).parents('.city-list').prev('.province-name').removeClass('selected').addClass('selected-may'); - } else { - $(this).parents('.city-list').prev('.province-name').removeClass('selected-may').removeClass('selected'); - } - }); - - // 地区选择确认 - $('#freightfee-region-popup button[type="submit"]').on('click', function() - { - var name_all = []; - var ids_all = []; - var show_ids_all = []; - var city_index = 0; - var province_index = 0; - var province_id = 0; - $('#freightfee-region-popup .city-list li').each(function(k, v) - { - if($(this).parent('.city-list').prev('.province-name').hasClass('selected')) - { - var temp_province_id = $(this).parent('.city-list').prev('.province-name').data('id'); - console.log(temp_province_id) - if(province_id != temp_province_id) - { - province_id = temp_province_id; - name_all[province_index] = $(this).parent('.city-list').prev('.province-name').text(); - show_ids_all[province_index] = temp_province_id; - province_index++; - } - } else { - if($(this).hasClass('selected')) - { - name_all[province_index] = $(this).find('.city-name').text(); - show_ids_all[province_index] = $(this).find('.city-name').data('city-id'); - province_index++; - } - } - if($(this).hasClass('selected')) - { - ids_all[city_index] = $(this).find('.city-name').data('city-id'); - city_index++; - } - }); - var $content = $('.data-list-'+$('#freightfee-region-popup').attr('data-index')+' .region-td'); - $content.text(name_all.join('、')); - if(name_all.length > 0) - { - $content.removeClass('none'); - } else { - $content.addClass('none'); - } - - $('.data-list-'+$('#freightfee-region-popup').attr('data-index')+' td.first input.region-name').val(ids_all.join('-')); - $('.data-list-'+$('#freightfee-region-popup').attr('data-index')+' td.first input.region-name-show').val(show_ids_all.join('-')); - - $('#freightfee-region-popup').modal('close'); - }); - - - // 添加元素到右侧 - function RightElementAdd(value, name) - { - if($('.forth-selection-container ul.ul-right').find('.items-li-'+value).length == 0) - { - var html = '
  • '+name+'
  • '; - $('.forth-selection-container ul.ul-right').append(html); - } - - // 右侧数据同步 - RightElementGoods(); - - // 左侧是否还有内容 - if($('.forth-selection-container ul.ul-left li').length == 0) - { - $('.forth-selection-container ul.ul-left .table-no').removeClass('none'); - } else { - $('.forth-selection-container ul.ul-left .table-no').addClass('none'); - } - } - - // 批量-商品id同步 - function RightElementGoods() - { - var value_all = []; - $('.forth-selection-container ul.ul-right li').each(function(k, v) - { - value_all[k] = $(this).find('span.name').data('value'); - }); - $('.forth-selection-container input[name="goods_ids"]').val(value_all.join(',')).blur(); - - // 右侧是否还有数据 - if($('.forth-selection-container ul.ul-right li').length == 0) - { - $('.forth-selection-container ul.ul-right .table-no').removeClass('none'); - } else { - $('.forth-selection-container ul.ul-right .table-no').addClass('none'); - } - } - // 左侧点击到右侧 - $('.forth-selection-container ul.ul-left').on('click', 'i.am-icon-angle-right', function() - { - var value = $(this).prev().data('value'); - var name = $(this).prev().text(); - $(this).parent().remove(); - RightElementAdd(value, name); - }); - - // 左侧全部移动到右侧 - $('.forth-selection-container .selected-all').on('click', function() - { - $('.forth-selection-container ul.ul-left li').each(function(k, v) - { - var value = $(this).find('span.name').data('value'); - var name = $(this).find('span.name').text(); - $(this).remove(); - RightElementAdd(value, name); - }); - }); - - // 右侧删除 - $('.forth-selection-container ul.ul-right').on('click', 'i.am-icon-trash-o', function() - { - $(this).parent().remove(); - RightElementGoods(); - }); - - // 商品搜索 - $('.forth-selection-form .search-submit').on('click', function() - { - var category_id = $('.forth-selection-form .forth-selection-form-category').val(); - var keywords = $('.forth-selection-form .forth-selection-form-keywords').val(); - console.log(category_id, keywords) - - // ajax请求 - $.ajax({ - url:$('.forth-selection-form').data('search-url'), - type:'POST', - dataType:"json", - timeout:10000, - data:{"category_id": category_id, "keywords": keywords}, - success:function(result) - { - if(result.code == 0) - { - var html = ''; - for(var i in result.data) - { - html += '
  • '+result['data'][i]['title']+'
  • '; - } - $('ul.ul-left .table-no').addClass('none'); - $('ul.ul-left li').remove(); - $('ul.ul-left').append(html); - } else { - Prompt(result.msg); - } - }, - error:function() - { - Prompt('网络异常错误'); - } - }); - }); -}); \ No newline at end of file diff --git a/public/static/plugins/js/share/index/style.js b/public/static/plugins/js/share/index/style.js deleted file mode 100644 index 3fe9237d3..000000000 --- a/public/static/plugins/js/share/index/style.js +++ /dev/null @@ -1,156 +0,0 @@ -$(function() -{ - // 分享事件 - $(document).on('click', '.plugins-share ul li', function() - { - // 分享类型 - var type = $(this).data('type'); - - // 来源站点 - var site = 'shopxo'; - - // url - var url = $(this).parents('.plugins-share').parent().data('url') || $('.plugins-share-container').data('url') || window.location.href; - url = encodeURIComponent(url); - - // 标题 - var title = $(this).parents('.plugins-share').parent().data('title') || $('.plugins-share-container').data('title') || document.title || null; - title = title == null ? '' : encodeURIComponent(title); - - // 描述 - var desc = $(this).parents('.plugins-share').parent().data('desc') || $('.plugins-share-container').data('desc') || $('meta[name="description"]').attr('content') || null; - desc = desc == null ? '' : encodeURIComponent(desc); - - // 封面图 - var pic = $(this).parents('.plugins-share').parent().data('pic') || $('.plugins-share-container').data('pic') || null; - pic = pic == null ? '' : encodeURIComponent(pic); - - // 平台地址 - var platform_url = null; - - // 当前环境 - var env = MobileBrowserEnvironment(); - - // 关闭弹层 - $('#plugins-share-layer').hide(); - - // 根据分享类型处理 - switch(type) - { - // QQ - case 'qq' : - if(env == 'qq' || env == 'weixin' || env == 'qzone' || env == 'weibo') - { - $('#plugins-share-layer').show(); - } else { - platform_url = 'https://connect.qq.com/widget/shareqq/index.html?url='+url+'&utm_medium=qqim&title='+title+'&desc='+desc+'&pics='+pic+'&site='+site - } - break; - - // QQ空间 - case 'qzone' : - if(env == 'qq' || env == 'weibo') - { - $('#plugins-share-layer').show(); - } else { - platform_url = 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+url+'&utm_medium=qzone&title='+title+'&desc='+desc+'&pics='+pic+'&summary='+desc+'&site='+site; - } - break; - - // 新浪微博 - case 'sian' : - platform_url = 'http://service.weibo.com/share/share.php?url='+url+'&utm_medium=sian&title='+title+'&desc='+desc+'&pics='+pic+'&site='+site; - break; - - // 微信 - case 'weixin' : - if(env == 'qq' || env == 'weixin' || env == 'qzone' || env == 'weibo') - { - $('#plugins-share-layer').show(); - } else { - var $modal = $('#plugins-share-weixin-modal'); - $modal.find('.weixin-qrcode').empty().qrcode({ - text: decodeURIComponent(url), - width: 200, - height: 200 - }); - $modal.modal({width: 260}); - $modal.modal('open'); - } - break; - - // url - case 'url' : - var $modal = $('#plugins-share-copy-modal'); - $modal.find('.am-input-group input').val(decodeURIComponent(url)); - $modal.modal({width: 300}); - $modal.modal('open'); - break; - } - - // 跳转 - if(platform_url != null) - { - window.open(platform_url); - } - }); - - // url复制 - var clipboard = new ClipboardJS('#plugins-share-copy-modal .am-input-group .am-input-group-label', - { - text: function() - { - return $('#plugins-share-copy-modal .am-input-group input').val(); - } - }); - clipboard.on('success', function(e) - { - Prompt('复制成功', 'success'); - }); - clipboard.on('error', function(e) - { - Prompt('复制失败,请手动复制!'); - }); - - // 分享提示弹层关闭 - $('#plugins-share-layer').on('click', function() - { - $('#plugins-share-layer').hide(); - }); - - - // 分享组建初始化 - if($('.plugins-share-container').length > 0) - { - // 标签初始化 - if($('.plugins-share-view').length > 0) - { - // 循环处理每个节点 - $('.plugins-share-view').each(function(k, v) - { - // 获取指定分享项 - var html = ''; - var share = $(this).data('share') || null; - - // 未指定则全部 - if(share == null) - { - html = $('.plugins-share-container').html(); - } else { - share = share.split(','); - if(share.length > 0) - { - html += '
      '; - for(var i in share) - { - html += $('.plugins-share-container').find('ul li.share-'+share[i]).prop('outerHTML'); - } - html += '
    '; - } - } - $(this).html(html); - }); - } - } - -}); \ No newline at end of file diff --git a/public/static/plugins/js/wallet/admin/cash.js b/public/static/plugins/js/wallet/admin/cash.js deleted file mode 100644 index 527ca9550..000000000 --- a/public/static/plugins/js/wallet/admin/cash.js +++ /dev/null @@ -1,9 +0,0 @@ -$(function() -{ - // 表单提交 - $('.cash-content .form-submit-list button[type="submit"]').on('click', function() - { - $('.cash-content .form-submit-list input[name="type"]').val($(this).data('type')) - $('.cash-content .form-submit-list input[name="type"]').blur(); - }); -}); \ No newline at end of file diff --git a/public/static/plugins/js/wallet/index/cash.js b/public/static/plugins/js/wallet/index/cash.js deleted file mode 100644 index 3a9622370..000000000 --- a/public/static/plugins/js/wallet/index/cash.js +++ /dev/null @@ -1,108 +0,0 @@ -$(function() -{ - $verify_win = $('#verify-win'); - - // 原帐号验证码发送 - $('.verify-submit, .verify-submit-win').on('click', function() - { - // 是否选择验证账号类型 - var $account_type_tag = $('form.form-validation select[name="account_type"]'); - var account_type = $account_type_tag.val() || null; - if(account_type == null) - { - $account_type_tag.trigger('change'); - Prompt($account_type_tag.data('validation-message')); - return false; - } - - // 图片验证码校验 - var $this = $(this); - var $verify = $('#verify-img-value'); - var verify = ''; - - // 是否需要先校验图片验证码 - if($this.data('verify') == 1) - { - // 开启图片验证码窗口 - $verify_win.modal('open'); - $verify.focus(); - return false; - } - - // 验证码窗口操作按钮则更新按钮对象 - var is_win = $(this).data('win'); - if(is_win == 1) - { - $this = $('.verify-submit'); - - // 验证码参数处理 - verify = $verify.val().replace(/\s+/g, ''); - - if(verify.length < 6) - { - Prompt($verify.data('validation-message')); - $verify.focus(); - return false; - } - } - - // 验证码时间间隔 - var time_count = parseInt($this.data('time')); - - // 按钮交互 - $this.button('loading'); - if(is_win == 1) - { - $('.verify-submit-win').button('loading'); - } - - // 发送验证码 - $.ajax({ - url:$('.verify-submit').data('url'), - type:'POST', - data:{"verify":verify, "account_type":account_type}, - dataType:'json', - success:function(result) - { - if(result.code == 0) - { - var intervalid = setInterval(function() - { - if(time_count == 0) - { - $this.button('reset'); - if(is_win == 1) - { - $('.verify-submit-win').button('reset'); - } - $this.text($this.data('text')); - $verify.val(''); - clearInterval(intervalid); - } else { - var send_msg = $this.data('send-text').replace(/{time}/, time_count--); - $this.text(send_msg); - } - }, 1000); - $verify_win.modal('close'); - } else { - $this.button('reset'); - if(is_win == 1) - { - $('.verify-submit-win').button('reset'); - } - Prompt(result.msg); - } - }, - error:function() - { - $this.button('reset'); - if(is_win == 1) - { - $('.verify-submit-win').button('reset'); - } - Prompt('网络错误'); - } - }); - }); - -}); \ No newline at end of file diff --git a/public/static/plugins/js/wallet/index/common.js b/public/static/plugins/js/wallet/index/common.js deleted file mode 100644 index dd663bb4c..000000000 --- a/public/static/plugins/js/wallet/index/common.js +++ /dev/null @@ -1,26 +0,0 @@ -$(function() -{ - // 表单初始化 - if($('form.form-validation-plugins-recharge-modal').length > 0) - { - FromInit('form.form-validation-plugins-recharge-modal'); - } - if($('form.form-validation-plugins-recharge-popup').length > 0) - { - FromInit('form.form-validation-plugins-recharge-popup'); - } - - // 混合列表选择 - $('.business-item ul li').on('click', function() - { - var value = ''; - if($(this).hasClass('selected')) - { - $(this).removeClass('selected'); - } else { - value = $(this).data('value'); - $(this).addClass('selected').siblings('li').removeClass('selected'); - } - $('form.form-validation-plugins-recharge-popup input[name='+$(this).parent().data('type')+'_id]').val(value).blur(); - }); -}); \ No newline at end of file diff --git a/public/static/plugins/js/wallet/index/recharge.js b/public/static/plugins/js/wallet/index/recharge.js deleted file mode 100644 index 97d8287f4..000000000 --- a/public/static/plugins/js/wallet/index/recharge.js +++ /dev/null @@ -1,22 +0,0 @@ -$(function() -{ - // 充值列表支付发起事件 - $('.recharge-submit').on('click', function() - { - var recharge_id = $(this).data('value') || null; - var recharge_no = $(this).data('recharge-no') || null; - var money = $(this).data('money') || null; - var $popup = $('#plugins-recharge-pay-popup'); - if(recharge_id != null && recharge_no != null && money != null) - { - $popup.find('.business-item ul li').removeClass('selected'); - $popup.find('input[name="payment_id"]').val(''); - $popup.find('input[name="recharge_id"]').val(recharge_id); - $popup.find('.base .recharge-no').text(recharge_no); - $popup.find('.base .price strong').text('¥'+money); - $popup.modal('open'); - } else { - Prompt('充值参数有误'); - } - }); -}); \ No newline at end of file diff --git a/public/static/upload/images/common/2019/05/17/1558062481107570.jpg b/public/static/upload/images/common/2019/05/17/1558062481107570.jpg old mode 100644 new mode 100755 diff --git a/public/static/upload/images/common/2019/05/17/1558072588843696.jpg b/public/static/upload/images/common/2019/05/17/1558072588843696.jpg old mode 100644 new mode 100755 diff --git a/public/static/upload/images/common/2019/05/17/1558073623385520.jpg b/public/static/upload/images/common/2019/05/17/1558073623385520.jpg old mode 100644 new mode 100755 diff --git a/public/static/upload/images/common/2019/05/17/1558073623641199.jpg b/public/static/upload/images/common/2019/05/17/1558073623641199.jpg old mode 100644 new mode 100755 diff --git a/public/static/upload/images/goods_category/2018/08/20180814180843848554.png b/public/static/upload/images/goods_category/2018/08/20180814180843848554.png old mode 100644 new mode 100755 diff --git a/public/static/upload/images/plugins_answers/2019/03/06/1551853529634743.jpg b/public/static/upload/images/plugins_answers/2019/03/06/1551853529634743.jpg deleted file mode 100644 index bba59b265..000000000 Binary files a/public/static/upload/images/plugins_answers/2019/03/06/1551853529634743.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_answers/2019/03/07/1551940310193935.jpg b/public/static/upload/images/plugins_answers/2019/03/07/1551940310193935.jpg deleted file mode 100644 index a9072d216..000000000 Binary files a/public/static/upload/images/plugins_answers/2019/03/07/1551940310193935.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_answers/2019/03/07/1551940388179648.jpg b/public/static/upload/images/plugins_answers/2019/03/07/1551940388179648.jpg deleted file mode 100644 index 9a2842958..000000000 Binary files a/public/static/upload/images/plugins_answers/2019/03/07/1551940388179648.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_answers/2019/03/07/1551940388704924.jpg b/public/static/upload/images/plugins_answers/2019/03/07/1551940388704924.jpg deleted file mode 100644 index 58211d724..000000000 Binary files a/public/static/upload/images/plugins_answers/2019/03/07/1551940388704924.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_answers/2019/03/07/1551942704326624.jpg b/public/static/upload/images/plugins_answers/2019/03/07/1551942704326624.jpg deleted file mode 100644 index 7de47cce3..000000000 Binary files a/public/static/upload/images/plugins_answers/2019/03/07/1551942704326624.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_answers/2019/03/13/1552463137211834.png b/public/static/upload/images/plugins_answers/2019/03/13/1552463137211834.png deleted file mode 100644 index cf193d173..000000000 Binary files a/public/static/upload/images/plugins_answers/2019/03/13/1552463137211834.png and /dev/null differ diff --git a/public/static/upload/images/plugins_commongobacktop/2019/02/15/1550200927239565.jpg b/public/static/upload/images/plugins_commongobacktop/2019/02/15/1550200927239565.jpg deleted file mode 100644 index b4b35b9cf..000000000 Binary files a/public/static/upload/images/plugins_commongobacktop/2019/02/15/1550200927239565.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_commongobacktop/2019/02/15/1550210425433304.png b/public/static/upload/images/plugins_commongobacktop/2019/02/15/1550210425433304.png deleted file mode 100755 index 2a12a3958..000000000 Binary files a/public/static/upload/images/plugins_commongobacktop/2019/02/15/1550210425433304.png and /dev/null differ diff --git a/public/static/upload/images/plugins_commononlineservice/2019/02/17/1550393245526672.jpg b/public/static/upload/images/plugins_commononlineservice/2019/02/17/1550393245526672.jpg deleted file mode 100644 index 4b4875285..000000000 Binary files a/public/static/upload/images/plugins_commononlineservice/2019/02/17/1550393245526672.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_commonrightnavigation/2019/02/15/1550222872753553.jpg b/public/static/upload/images/plugins_commonrightnavigation/2019/02/15/1550222872753553.jpg deleted file mode 100644 index e91674c8b..000000000 Binary files a/public/static/upload/images/plugins_commonrightnavigation/2019/02/15/1550222872753553.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_commonrightnavigation/2019/02/17/1550375588899802.jpeg b/public/static/upload/images/plugins_commonrightnavigation/2019/02/17/1550375588899802.jpeg deleted file mode 100755 index c114a4b64..000000000 Binary files a/public/static/upload/images/plugins_commonrightnavigation/2019/02/17/1550375588899802.jpeg and /dev/null differ diff --git a/public/static/upload/images/plugins_commontopmaxpicture/2019/02/09/1549671733978860.jpg b/public/static/upload/images/plugins_commontopmaxpicture/2019/02/09/1549671733978860.jpg deleted file mode 100755 index ca90c7ce6..000000000 Binary files a/public/static/upload/images/plugins_commontopmaxpicture/2019/02/09/1549671733978860.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_commontopmaxpicture/2019/02/09/1549671733987654.jpg b/public/static/upload/images/plugins_commontopmaxpicture/2019/02/09/1549671733987654.jpg deleted file mode 100644 index ec907875e..000000000 Binary files a/public/static/upload/images/plugins_commontopmaxpicture/2019/02/09/1549671733987654.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_commontopnotice/2019/02/12/1549671733987652.jpg b/public/static/upload/images/plugins_commontopnotice/2019/02/12/1549671733987652.jpg deleted file mode 100644 index 328416652..000000000 Binary files a/public/static/upload/images/plugins_commontopnotice/2019/02/12/1549671733987652.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_expressforkdn/2019/03/11/1552286675575734.png b/public/static/upload/images/plugins_expressforkdn/2019/03/11/1552286675575734.png deleted file mode 100644 index bdc357cd8..000000000 Binary files a/public/static/upload/images/plugins_expressforkdn/2019/03/11/1552286675575734.png and /dev/null differ diff --git a/public/static/upload/images/plugins_footercustomerservice/2019/04/23/1555984179784604.jpg b/public/static/upload/images/plugins_footercustomerservice/2019/04/23/1555984179784604.jpg deleted file mode 100755 index 79b97fcb0..000000000 Binary files a/public/static/upload/images/plugins_footercustomerservice/2019/04/23/1555984179784604.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_footercustomerservice/2019/04/23/1555990891552781.png b/public/static/upload/images/plugins_footercustomerservice/2019/04/23/1555990891552781.png deleted file mode 100644 index 063f0cf94..000000000 Binary files a/public/static/upload/images/plugins_footercustomerservice/2019/04/23/1555990891552781.png and /dev/null differ diff --git a/public/static/upload/images/plugins_footercustomerservice/2019/04/23/1555990891594648.png b/public/static/upload/images/plugins_footercustomerservice/2019/04/23/1555990891594648.png deleted file mode 100644 index df8d4bda3..000000000 Binary files a/public/static/upload/images/plugins_footercustomerservice/2019/04/23/1555990891594648.png and /dev/null differ diff --git a/public/static/upload/images/plugins_footercustomerservice/2019/04/23/1555990891827973.png b/public/static/upload/images/plugins_footercustomerservice/2019/04/23/1555990891827973.png deleted file mode 100644 index 389fda891..000000000 Binary files a/public/static/upload/images/plugins_footercustomerservice/2019/04/23/1555990891827973.png and /dev/null differ diff --git a/public/static/upload/images/plugins_footercustomerservice/2019/04/23/1555991139659862.png b/public/static/upload/images/plugins_footercustomerservice/2019/04/23/1555991139659862.png deleted file mode 100644 index d7dc52ca2..000000000 Binary files a/public/static/upload/images/plugins_footercustomerservice/2019/04/23/1555991139659862.png and /dev/null differ diff --git a/public/static/upload/images/plugins_freightfee/2019/03/18/1552894366387964.jpg b/public/static/upload/images/plugins_freightfee/2019/03/18/1552894366387964.jpg deleted file mode 100644 index dc87d5fc9..000000000 Binary files a/public/static/upload/images/plugins_freightfee/2019/03/18/1552894366387964.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_homemiddleadv/2019/04/22/1555917416820968.jpg b/public/static/upload/images/plugins_homemiddleadv/2019/04/22/1555917416820968.jpg deleted file mode 100644 index aadc09fbb..000000000 Binary files a/public/static/upload/images/plugins_homemiddleadv/2019/04/22/1555917416820968.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_homemiddleadv/2019/04/22/1555929400237551.jpg b/public/static/upload/images/plugins_homemiddleadv/2019/04/22/1555929400237551.jpg deleted file mode 100644 index a56708af9..000000000 Binary files a/public/static/upload/images/plugins_homemiddleadv/2019/04/22/1555929400237551.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_homemiddleadv/2019/04/22/1555929400479636.jpg b/public/static/upload/images/plugins_homemiddleadv/2019/04/22/1555929400479636.jpg deleted file mode 100644 index 73a9e41d5..000000000 Binary files a/public/static/upload/images/plugins_homemiddleadv/2019/04/22/1555929400479636.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_homemiddleadv/2019/04/22/1555929400647560.jpg b/public/static/upload/images/plugins_homemiddleadv/2019/04/22/1555929400647560.jpg deleted file mode 100644 index ead80371f..000000000 Binary files a/public/static/upload/images/plugins_homemiddleadv/2019/04/22/1555929400647560.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_homemiddleadv/2019/04/22/1555929400780646.jpg b/public/static/upload/images/plugins_homemiddleadv/2019/04/22/1555929400780646.jpg deleted file mode 100644 index 51fcff596..000000000 Binary files a/public/static/upload/images/plugins_homemiddleadv/2019/04/22/1555929400780646.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_membershiplevel/2019/04/25/1556163954923228.jpg b/public/static/upload/images/plugins_membershiplevel/2019/04/25/1556163954923228.jpg deleted file mode 100644 index 9556b9570..000000000 Binary files a/public/static/upload/images/plugins_membershiplevel/2019/04/25/1556163954923228.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_newuserreduction/2019/03/25/1553483752670109.jpg b/public/static/upload/images/plugins_newuserreduction/2019/03/25/1553483752670109.jpg deleted file mode 100644 index 8456a54b4..000000000 Binary files a/public/static/upload/images/plugins_newuserreduction/2019/03/25/1553483752670109.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_share/2019/04/19/1555667271928933.jpg b/public/static/upload/images/plugins_share/2019/04/19/1555667271928933.jpg deleted file mode 100644 index 381e9c523..000000000 Binary files a/public/static/upload/images/plugins_share/2019/04/19/1555667271928933.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_touristbuy/2019/03/15/1552656656517586.jpg b/public/static/upload/images/plugins_touristbuy/2019/03/15/1552656656517586.jpg deleted file mode 100644 index 6b2ba3143..000000000 Binary files a/public/static/upload/images/plugins_touristbuy/2019/03/15/1552656656517586.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_ucenter/2019/04/02/1554185833720976.jpg b/public/static/upload/images/plugins_ucenter/2019/04/02/1554185833720976.jpg deleted file mode 100644 index 99209eb89..000000000 Binary files a/public/static/upload/images/plugins_ucenter/2019/04/02/1554185833720976.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_usercentertopnotice/2019/02/12/1549671733967341.jpg b/public/static/upload/images/plugins_usercentertopnotice/2019/02/12/1549671733967341.jpg deleted file mode 100644 index ac526e7e8..000000000 Binary files a/public/static/upload/images/plugins_usercentertopnotice/2019/02/12/1549671733967341.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_userloginrewardintegral/2019/02/14/1550151082834629.jpg b/public/static/upload/images/plugins_userloginrewardintegral/2019/02/14/1550151082834629.jpg deleted file mode 100644 index a00f18046..000000000 Binary files a/public/static/upload/images/plugins_userloginrewardintegral/2019/02/14/1550151082834629.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_usernotloginhidegoodsprice/2019/02/26/1551184745400164.jpg b/public/static/upload/images/plugins_usernotloginhidegoodsprice/2019/02/26/1551184745400164.jpg deleted file mode 100644 index 03af4d43d..000000000 Binary files a/public/static/upload/images/plugins_usernotloginhidegoodsprice/2019/02/26/1551184745400164.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_wallet/2019/04/28/1556447296647734.jpg b/public/static/upload/images/plugins_wallet/2019/04/28/1556447296647734.jpg deleted file mode 100644 index a91aedb98..000000000 Binary files a/public/static/upload/images/plugins_wallet/2019/04/28/1556447296647734.jpg and /dev/null differ diff --git a/public/static/upload/images/plugins_weixinwebauthorization/2019/05/24/1558681549248354.jpg b/public/static/upload/images/plugins_weixinwebauthorization/2019/05/24/1558681549248354.jpg deleted file mode 100644 index a6b85d461..000000000 Binary files a/public/static/upload/images/plugins_weixinwebauthorization/2019/05/24/1558681549248354.jpg and /dev/null differ