diff --git a/application/plugins/petscms/Admin.php b/application/plugins/petscms/Admin.php deleted file mode 100755 index 1a014051c..000000000 --- a/application/plugins/petscms/Admin.php +++ /dev/null @@ -1,102 +0,0 @@ -fetch('../../../plugins/view/petscms/admin/index'); - } - - /** - * 配置管理 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-02-07T08:21:54+0800 - * @param [array] $params [输入参数] - */ - public function base($params = []) - { - $ret = PluginsService::PluginsData('petscms', ['logo', 'pets_default_images', 'alipay_qrcode_images', 'weixin_qrcode_images']); - if($ret['code'] == 0) - { - if(!empty($ret['data']['not_bind_desc'])) - { - $ret['data']['not_bind_desc'] = str_replace("\n", '
', $ret['data']['not_bind_desc']); - } - $this->assign('data', $ret['data']); - return $this->fetch('../../../plugins/view/petscms/admin/base'); - } 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('petscms', ['logo', 'pets_default_images', 'alipay_qrcode_images', 'weixin_qrcode_images'], 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/petscms/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'=>'petscms', 'data'=>$params], ['logo', 'pets_default_images', 'alipay_qrcode_images', 'weixin_qrcode_images']); - } -} -?> \ No newline at end of file diff --git a/application/plugins/petscms/Hook.php b/application/plugins/petscms/Hook.php deleted file mode 100755 index 19a71abdb..000000000 --- a/application/plugins/petscms/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']['business']['item'][] = [ - 'name' => '我的宠物', - 'url' => PluginsHomeUrl('petscms', 'pets', 'index'), - 'contains' => ['petsindex', 'petssaveinfo', 'petshelp'], - 'is_show' => 1, - 'icon' => 'am-icon-github-alt', - ]; - } - - /** - * 顶部小导航右侧-我的商城 - * @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('petscms', 'pets', 'index'), - ]); - } -} -?> \ No newline at end of file diff --git a/application/plugins/petscms/Pets.php b/application/plugins/petscms/Pets.php deleted file mode 100755 index 32cb7c538..000000000 --- a/application/plugins/petscms/Pets.php +++ /dev/null @@ -1,350 +0,0 @@ -user = UserService::LoginUserInfo(); - - // 需要登录校验的方法 - $is_login_all = ['index', 'saveinfo', 'save', 'untying', 'help', 'helpmap']; - - // 登录校验 - if(in_array(input('pluginsaction'), $is_login_all) && empty($this->user)) - { - if(IS_AJAX) - { - exit(json_encode(DataReturn('登录失效,请重新登录', -400))); - } else { - return $this->redirect('index/user/logininfo'); - } - } - } - - /** - * 我的宠物 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-03-15T23:51:50+0800 - * @param [array] $params [输入参数] - */ - public function index($params = []) - { - // 参数 - $params['user'] = $this->user; - - // 分页 - $number = 10; - - // 条件 - $where = Service::PetsListWhere($params); - - // 获取总数 - $total = Service::PetsTotal($where); - - // 分页 - $page_params = array( - 'number' => $number, - 'total' => $total, - 'where' => $params, - 'page' => isset($params['page']) ? intval($params['page']) : 1, - 'url' => PluginsHomeUrl('petscms', 'pets', 'index'), - ); - $page = new \base\Page($page_params); - $this->assign('page_html', $page->GetPageHtml()); - - // 获取列表 - $data_params = array( - 'm' => $page->GetPageStarNumber(), - 'n' => $number, - 'where' => $where, - ); - $data = Service::PetsList($data_params); - unset($params['user']); - $this->assign('params', $params); - $this->assign('data_list', $data['data']); - $this->assign('pets_attribute_status_list', Service::$pets_attribute_status_list); - $this->assign('pets_attribute_is_text_list', Service::$pets_attribute_is_text_list); - $this->assign('pets_attribute_gender_list', Service::$pets_attribute_gender_list); - $this->assign('pets_attribute_type_list', Service::$pets_attribute_type_list); - return $this->fetch('../../../plugins/view/petscms/pets/index'); - } - - /** - * 宠物添加/编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-03-15T23:51:50+0800 - * @param [array] $params [输入参数] - */ - public function saveinfo($params = []) - { - // 是否绑定 - if(!empty($params['pest_no'])) - { - $data_params = array( - 'm' => 0, - 'n' => 1, - 'where' => ['pest_no' => $params['pest_no']], - ); - $ret = Service::PetsList($data_params); - if(!empty($ret['data'][0]['user_id'])) - { - $this->assign('msg', '该宠物已被绑定'); - return $this->fetch('public/tips_error'); - } - $this->assign('pest_no', $params['pest_no']); - unset($params['pest_no']); - } - - // 获取数据 - $data = []; - if(!empty($params['id'])) - { - $data_params = array( - 'm' => 0, - 'n' => 1, - 'where' => ['id' => intval($params['id'])], - ); - $ret = Service::PetsList($data_params); - if(!empty($ret['data'][0])) - { - $ret['data'][0]['lose_features'] = str_replace('
', "\n", $ret['data'][0]['lose_features']); - $data = $ret['data'][0]; - } - unset($params['id']); - } - - $this->assign('params', $params); - $this->assign('data', $data); - $this->assign('pets_attribute_status_list', Service::$pets_attribute_status_list); - $this->assign('pets_attribute_is_text_list', Service::$pets_attribute_is_text_list); - $this->assign('pets_attribute_gender_list', Service::$pets_attribute_gender_list); - $this->assign('pets_attribute_type_list', Service::$pets_attribute_type_list); - return $this->fetch('../../../plugins/view/petscms/pets/saveinfo'); - } - - /** - * 宠物详情 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-03-15T23:51:50+0800 - * @param [array] $params [输入参数] - */ - public function detail($params = []) - { - // 获取数据 - $data = []; - if(empty($params['id'])) - { - return '宠物id有误'; - } - $data_params = array( - 'm' => 0, - 'n' => 1, - 'where' => ['id' => intval($params['id']), 'status'=>[0,1,2]], - ); - $ret = Service::PetsList($data_params); - $data = empty($ret['data'][0]) ? [] : $ret['data'][0]; - $this->assign('data', $data); - - // 基础信息 - $ret = PluginsService::PluginsData('petscms', ['logo', 'pets_default_images', 'alipay_qrcode_images', 'weixin_qrcode_images']); - if(!empty($ret['data']['not_bind_desc'])) - { - $ret['data']['not_bind_desc'] = str_replace("\n", '
', $ret['data']['not_bind_desc']); - } - $this->assign('plugins_base_data', $ret['data']); - - // 浏览器标题 - if(!empty($data['title'])) - { - $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle($data['title'])); - } - - $this->assign('params', $params); - return $this->fetch('../../../plugins/view/petscms/pets/detail'); - } - - /** - * 宠物添加/编辑 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-03-15T23:51:50+0800 - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 用户 - $params['user_id'] = $this->user['id']; - return Service::PetsSave($params); - } - - /** - * 宠物解绑 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-15T11:03:30+0800 - */ - public function untying($params = []) - { - // 是否ajax - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 用户 - $params['user_id'] = $this->user['id']; - return Service::PetsUntying($params); - } - - /** - * 丢失提供信息添加/编辑 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-03-15T23:51:50+0800 - * @param [array] $params [输入参数] - */ - public function helpsave($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 用户 - $params['user_id'] = $this->user['id']; - return Service::HelpSave($params); - } - - /** - * 宠物帮助数据列表 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-03-15T23:51:50+0800 - * @param [array] $params [输入参数] - */ - public function help($params = []) - { - // 参数 - $params = input(); - if(empty($params['pets_id'])) - { - $this->assign('msg', '参数有误'); - return $this->fetch('public/tips_error'); - } - - // 分页 - $number = 10; - - // 条件 - $where = [ - 'user_id' => $this->user['id'], - 'pets_id' => intval($params['pets_id']), - ]; - - // 获取总数 - $total = Service::HelpTotal($where); - - // 分页 - $page_params = array( - 'number' => $number, - 'total' => $total, - 'where' => $params, - 'page' => isset($params['page']) ? intval($params['page']) : 1, - 'url' => PluginsHomeUrl('petscms', 'pets', 'index'), - ); - $page = new \base\Page($page_params); - $this->assign('page_html', $page->GetPageHtml()); - - // 获取列表 - $data_params = array( - 'm' => $page->GetPageStarNumber(), - 'n' => $number, - 'where' => $where, - ); - $data = Service::HelpList($data_params); - $this->assign('data_list', $data['data']); - return $this->fetch('../../../plugins/view/petscms/pets/help'); - } - - /** - * 宠物帮助数据地图展示 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-03-15T23:51:50+0800 - * @param [array] $params [输入参数] - */ - public function helpmap($params = []) - { - // 隐藏头尾 - $this->assign('is_header', 0); - $this->assign('is_footer', 0); - - // 参数 - $params = input(); - if(!empty($params['lng'])) - { - $params['lng'] = base64_decode($params['lng']); - } - if(!empty($params['lat'])) - { - $params['lat'] = base64_decode($params['lat']); - } - $this->assign('params', $params); - return $this->fetch('../../../plugins/view/petscms/pets/helpmap'); - } -} -?> \ No newline at end of file diff --git a/application/plugins/petscms/Petsadmin.php b/application/plugins/petscms/Petsadmin.php deleted file mode 100755 index 097946fde..000000000 --- a/application/plugins/petscms/Petsadmin.php +++ /dev/null @@ -1,280 +0,0 @@ - $number, - 'total' => $total, - 'where' => $params, - 'page' => isset($params['page']) ? intval($params['page']) : 1, - 'url' => PluginsAdminUrl('petscms', 'petsadmin', 'index'), - ); - $page = new \base\Page($page_params); - $this->assign('page_html', $page->GetPageHtml()); - - // 获取列表 - $data_params = array( - 'm' => $page->GetPageStarNumber(), - 'n' => $number, - 'where' => $where, - ); - $data = Service::PetsList($data_params); - $this->assign('data_list', $data['data']); - - // 插件配置信息 - $base = PluginsService::PluginsData('petscms', ['logo', 'pets_default_images', 'alipay_qrcode_images', 'weixin_qrcode_images'], false); - $this->assign('plugins_base_data', $base['data']); - - $this->assign('params', $params); - $this->assign('pets_attribute_status_list', Service::$pets_attribute_status_list); - $this->assign('pets_attribute_is_text_list', Service::$pets_attribute_is_text_list); - $this->assign('pets_attribute_gender_list', Service::$pets_attribute_gender_list); - $this->assign('pets_attribute_type_list', Service::$pets_attribute_type_list); - return $this->fetch('../../../plugins/view/petscms/petsadmin/index'); - } - - /** - * 添加/编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-03-15T23:51:50+0800 - * @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 = Service::PetsList($data_params); - if(!empty($ret['data'][0])) - { - $ret['data'][0]['lose_features'] = str_replace('
', "\n", $ret['data'][0]['lose_features']); - $data = $ret['data'][0]; - } - unset($params['id']); - } - $this->assign('params', $params); - $this->assign('data', $data); - $this->assign('pets_attribute_status_list', Service::$pets_attribute_status_list); - $this->assign('pets_attribute_is_text_list', Service::$pets_attribute_is_text_list); - $this->assign('pets_attribute_gender_list', Service::$pets_attribute_gender_list); - $this->assign('pets_attribute_type_list', Service::$pets_attribute_type_list); - return $this->fetch('../../../plugins/view/petscms/petsadmin/saveinfo'); - } - - /** - * 宠物详情 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-03-15T23:51:50+0800 - * @param [array] $params [输入参数] - */ - public function detail($params = []) - { - // 获取数据 - $data = []; - if(empty($params['id'])) - { - return '宠物id有误'; - } - $data_params = array( - 'm' => 0, - 'n' => 1, - 'where' => ['id' => intval($params['id']), 'status'=>[0,1,2]], - ); - $ret = Service::PetsList($data_params); - $data = empty($ret['data'][0]) ? [] : $ret['data'][0]; - - $this->assign('data', $data); - $this->assign('params', $params); - return $this->fetch('../../../plugins/view/petscms/petsadmin/detail'); - } - - /** - * 宠物添加/编辑 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-03-15T23:51:50+0800 - * @param [array] $params [输入参数] - */ - public function save($params = []) - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 用户 - return Service::PetsSave($params); - } - - /** - * 宠物解绑 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-15T11:03:30+0800 - */ - public function untying($params = []) - { - // 是否ajax - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 开始操作 - return Service::PetsUntying($params); - } - - /** - * 宠物删除 - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-15T11:03:30+0800 - */ - public function delete($params = []) - { - // 是否ajax - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 开始操作 - return Service::PetsDelete($params); - } - - /** - * 宠物帮助数据列表 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-03-15T23:51:50+0800 - * @param [array] $params [输入参数] - */ - public function help($params = []) - { - // 参数 - if(empty($params['pets_id'])) - { - return '参数有误'; - } - - // 分页 - $number = MyC('admin_page_number', 10, true); - - // 条件 - $where = [ - 'pets_id' => intval($params['pets_id']), - ]; - - // 获取总数 - $total = Service::HelpTotal($where); - - // 分页 - $page_params = array( - 'number' => $number, - 'total' => $total, - 'where' => $params, - 'page' => isset($params['page']) ? intval($params['page']) : 1, - 'url' => PluginsAdminUrl('petscms', 'petsadmin', 'index'), - ); - $page = new \base\Page($page_params); - $this->assign('page_html', $page->GetPageHtml()); - - // 获取列表 - $data_params = array( - 'm' => $page->GetPageStarNumber(), - 'n' => $number, - 'where' => $where, - ); - $data = Service::HelpList($data_params); - unset($params['pets_id']); - $this->assign('data_list', $data['data']); - $this->assign('params', $params); - return $this->fetch('../../../plugins/view/petscms/petsadmin/help'); - } - - /** - * 宠物帮助数据地图展示 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-03-15T23:51:50+0800 - * @param [array] $params [输入参数] - */ - public function helpmap($params = []) - { - // 隐藏头尾 - $this->assign('is_header', 0); - $this->assign('is_footer', 0); - - // 参数 - $params = input(); - if(!empty($params['lng'])) - { - $params['lng'] = base64_decode($params['lng']); - } - if(!empty($params['lat'])) - { - $params['lat'] = base64_decode($params['lat']); - } - $this->assign('params', $params); - return $this->fetch('../../../plugins/view/petscms/petsadmin/helpmap'); - } -} -?> \ No newline at end of file diff --git a/application/plugins/petscms/Service.php b/application/plugins/petscms/Service.php deleted file mode 100755 index 6c5853d47..000000000 --- a/application/plugins/petscms/Service.php +++ /dev/null @@ -1,700 +0,0 @@ - ['value' => 'cat', 'name' => '猫咪'], - 'dog' => ['value' => 'dog', 'name' => '狗狗'], - 'other' => ['value' => 'other', 'name' => '其它'], - ]; - - // 是否 - public static $pets_attribute_is_text_list = [ - 0 => ['value' => 0, 'name' => '否', 'checked' => true], - 1 => ['value' => 1, 'name' => '是'], - ]; - - // 性别 - public static $pets_attribute_gender_list = [ - 0 => ['value' => 0, 'name' => '公'], - 1 => ['value' => 1, 'name' => '母'], - ]; - - // 状态(0正常, 1丢失, 2去世, 3关闭) - public static $pets_attribute_status_list = [ - 0 => ['value' => 0, 'name' => '正常'], - 1 => ['value' => 1, 'name' => '丢失'], - 2 => ['value' => 2, 'name' => '去世'], - 3 => ['value' => 3, 'name' => '关闭'], - ]; - - /** - * 宠物列表 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-09-29 - * @desc description - * @param [array] $params [输入参数] - */ - public static function PetsList($params = []) - { - $where = empty($params['where']) ? [] : $params['where']; - $m = isset($params['m']) ? intval($params['m']) : 0; - $n = isset($params['n']) ? intval($params['n']) : 10; - $order_by = empty($params['order_by']) ? 'status asc, id desc' : $params['order_by']; - - // 获取数据列表 - $data = Db::name('PluginsPetscmsPets')->where($where)->limit($m, $n)->order($order_by)->select(); - if(!empty($data)) - { - foreach($data as &$v) - { - // 类型 - $v['type_name'] = (isset($v['type']) && isset(self::$pets_attribute_type_list[$v['type']])) ? self::$pets_attribute_type_list[$v['type']]['name'] : ''; - - // 性别 - $v['gender_name'] = (isset($v['gender']) && isset(self::$pets_attribute_gender_list[$v['gender']])) ? self::$pets_attribute_gender_list[$v['gender']]['name'] : ''; - - // 是否绝育 - $v['sterilization_name'] = (isset($v['sterilization']) && isset(self::$pets_attribute_is_text_list[$v['sterilization']])) ? self::$pets_attribute_is_text_list[$v['sterilization']]['name'] : ''; - - // 是否疫苗 - $v['vaccine_name'] = (isset($v['vaccine']) && isset(self::$pets_attribute_is_text_list[$v['vaccine']])) ? self::$pets_attribute_is_text_list[$v['vaccine']]['name'] : ''; - - // 状态 - $v['status_name'] = self::$pets_attribute_status_list[$v['status']]['name']; - - // 生日/年龄 - if(empty($v['birthday'])) - { - $v['birthday_name'] = null; - $v['age'] = '0岁'; - } else { - $v['birthday_name'] = date('Y-m-d', $v['birthday']); - $age = \base\Age::CalAge($v['birthday_name']); - $v['age'] = $age['year'].'年'.$age['month'].'月'.$age['day'].'天'; - } - - // 内容 - $v['content'] = ResourcesService::ContentStaticReplace($v['content'], 'get'); - - // 相册 - $v['photo'] = empty($v['photo']) ? null : self::GetPetsPhotoHandle($v['photo']); - - // 丢失时间 - $v['lose_time_name'] = empty($v['lose_time']) ? '' : date('Y-m-d', $v['lose_time']); - - // 丢失宠物特征 - $v['lose_features'] = str_replace("\n", '
', $v['lose_features']); - - // 二维码 - $v['qrcode_url'] = empty($v['qrcode_images']) ? MyUrl('index/qrcode/index', ['content'=>urlencode(base64_encode(PluginsHomeUrl('petscms', 'pets', 'detail', ['id'=>$v['id']])))]) : ResourcesService::AttachmentPathViewHandle($v['qrcode_images']); - $v['qrcode_download'] = MyUrl('index/qrcode/download', ['url'=>urlencode(base64_encode($v['qrcode_url'])), 'filename'=>$v['pest_no']]); - - // 地址 - $v['province_name'] = RegionService::RegionName($v['lose_province']); - $v['city_name'] = RegionService::RegionName($v['lose_city']); - $v['county_name'] = RegionService::RegionName($v['lose_county']); - - // 时间 - $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'] = empty($v['upd_time']) ? '' : date('Y-m-d H:i:s', $v['upd_time']); - $v['upd_time_date'] = empty($v['upd_time']) ? '' : date('Y-m-d', $v['upd_time']); - } - } - return DataReturn('处理成功', 0, $data); - } - - /** - * 宠物相册获取处理 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @datetime 2019-04-11T22:56:49+0800 - * @param [array] $photo [相册数据] - */ - private static function GetPetsPhotoHandle($photo) - { - $result = []; - if(!empty($photo)) - { - if(is_string($photo)) - { - $photo = json_decode($photo, true); - } - foreach($photo as &$v) - { - $result[] = [ - 'images_old' => $v, - 'images' => ResourcesService::AttachmentPathViewHandle($v), - ]; - } - } - return $result; - } - - /** - * 宠物列表条件 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-09-29 - * @desc description - * @param [array] $params [输入参数] - */ - public static function PetsListWhere($params = []) - { - // 条件初始化 - $where = []; - - // 用户id - if(!empty($params['user'])) - { - $where[] = ['user_id', '=', $params['user']['id']]; - } - - // 关键字 - if(!empty($params['keywords'])) - { - $where[] = ['title|detail', 'like', '%'.$params['keywords'].'%']; - } - - // 是否更多条件 - if(isset($params['is_more']) && $params['is_more'] == 1) - { - // 等值 - if(!empty($params['type'])) - { - $where[] = ['type', '=', $params['type']]; - } - if(isset($params['status']) && $params['status'] > -1) - { - $where[] = ['status', '=', intval($params['status'])]; - } - if(isset($params['gender']) && $params['gender'] > -1) - { - $where[] = ['gender', '=', intval($params['gender'])]; - } - if(isset($params['sterilization']) && $params['sterilization'] > -1) - { - $where[] = ['sterilization', '=', intval($params['sterilization'])]; - } - - if(!empty($params['time_start'])) - { - $where[] = ['add_time', '>', strtotime($params['time_start'])]; - } - if(!empty($params['time_end'])) - { - $where[] = ['add_time', '<', strtotime($params['time_end'])]; - } - } - - return $where; - } - - /** - * 宠物总数 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-09-29 - * @desc description - * @param [array] $where [条件] - */ - public static function PetsTotal($where = []) - { - return (int) Db::name('PluginsPetscmsPets')->where($where)->count(); - } - - /** - * 宠物保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-04-11 - * @desc description - * @param [array] $params [输入参数] - */ - public static function PetsSave($params = []) - { - // 请求参数 - $p = [ - [ - 'checked_type' => 'length', - 'key_name' => 'title', - 'checked_data' => '1,60', - 'is_checked' => 1, - 'error_msg' => '标题格式 1~60 个字符之间', - ], - [ - 'checked_type' => 'length', - 'key_name' => 'name', - 'checked_data' => '1,30', - 'is_checked' => 1, - 'error_msg' => '宠物名字格式 1~30 个字符之间', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'birthday', - 'is_checked' => 1, - 'error_msg' => '请填写出生日期', - ], - [ - 'checked_type' => 'in', - 'key_name' => 'type', - 'checked_data' => array_column(self::$pets_attribute_type_list, 'value'), - 'is_checked' => 2, - 'error_msg' => '宠物类型有误', - ], - [ - 'checked_type' => 'length', - 'key_name' => 'varieties', - 'checked_data' => '30', - 'is_checked' => 1, - 'error_msg' => '品种格式最多 30 个字符', - ], - [ - 'checked_type' => 'in', - 'key_name' => 'gender', - 'checked_data' => array_column(self::$pets_attribute_gender_list, 'value'), - 'is_checked' => 2, - 'error_msg' => '宠物性别有误', - ], - [ - 'checked_type' => 'in', - 'key_name' => 'sterilization', - 'checked_data' => array_column(self::$pets_attribute_gender_list, 'value'), - 'is_checked' => 2, - 'error_msg' => '宠物是否绝育有误', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'photo', - 'is_checked' => 1, - 'error_msg' => '请上传宠物相册', - ], - [ - 'checked_type' => 'length', - 'key_name' => 'content', - 'checked_data' => '105000', - 'is_checked' => 1, - 'error_msg' => '宠物简介内容最多 105000 个字符', - ], - [ - 'checked_type' => 'length', - 'key_name' => 'person_name', - 'checked_data' => '1,30', - 'is_checked' => 1, - 'error_msg' => '主人姓名格式 1~30 个字符之间', - ], - [ - 'checked_type' => 'length', - 'key_name' => 'person_tel', - 'checked_data' => '1,30', - 'is_checked' => 1, - 'error_msg' => '主人电话格式 1~30 个字符之间', - ], - [ - 'checked_type' => 'length', - 'key_name' => 'person_weixin', - 'checked_data' => '1,30', - 'is_checked' => 1, - 'error_msg' => '主人微信格式 1~30 个字符之间', - ], - [ - 'checked_type' => 'in', - 'key_name' => 'status', - 'checked_data' => array_column(self::$pets_attribute_status_list, 'value'), - 'is_checked' => 2, - 'error_msg' => '宠物状态有误', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 相册 - $photo = self::GetFormPetsPhotoParams($params); - if($photo['code'] != 0) - { - return $photo; - } - - // 编辑器内容 - $content = empty($params['content']) ? '' : ResourcesService::ContentStaticReplace(htmlspecialchars_decode($params['content']), 'add'); - - // 宠物数据 - $data = [ - 'user_id' => isset($params['user_id']) ? intval($params['user_id']) : 0, - 'title' => isset($params['title']) ? $params['title'] : '', - 'name' => isset($params['name']) ? $params['name'] : '', - 'birthday' => empty($params['birthday']) ? 0 : strtotime($params['birthday']), - 'type' => isset($params['type']) ? $params['type'] : '', - 'varieties' => isset($params['varieties']) ? $params['varieties'] : '', - 'gender' => isset($params['gender']) ? $params['gender'] : -1, - 'sterilization' => isset($params['sterilization']) ? $params['sterilization'] : -1, - 'vaccine' => isset($params['vaccine']) ? $params['vaccine'] : -1, - 'photo' => empty($photo['data']) ? '' : json_encode($photo['data']), - 'content' => $content, - 'person_name' => isset($params['person_name']) ? $params['person_name'] : '', - 'person_tel' => isset($params['person_tel']) ? $params['person_tel'] : '', - 'person_weixin' => isset($params['person_weixin']) ? $params['person_weixin'] : '', - - 'lose_time' => empty($params['lose_time']) ? 0 : strtotime($params['lose_time']), - 'lose_reward_amount' => !empty($params['lose_reward_amount']) ? PriceNumberFormat($params['lose_reward_amount']) : 0.00, - 'lose_features' => isset($params['lose_features']) ? $params['lose_features'] : '', - 'lose_province' => isset($params['province']) ? intval($params['province']) : 0, - 'lose_city' => isset($params['city']) ? intval($params['city']) : 0, - 'lose_county' => isset($params['county']) ? intval($params['county']) : 0, - 'lose_lng' => empty($params['lng']) ? 0.00 : floatval($params['lng']), - 'lose_lat' => empty($params['lat']) ? 0.00 : floatval($params['lat']), - 'lose_address' => isset($params['address']) ? $params['address'] : '', - 'status' => isset($params['status']) ? intval($params['status']) : 0, - ]; - - // 绑定编号 - $edit_msg_title = '编辑'; - if(!empty($params['pest_no'])) - { - $pets = Db::name('PluginsPetscmsPets')->where(['pest_no'=>$params['pest_no']])->field('id,pest_no,user_id')->find(); - if(empty($pets)) - { - return DataReturn('宠物编号不存在['.$params['pest_no'].']', -10); - } - - // 是否被其他用户绑定 - if(!empty($pets['user_id'])) - { - return DataReturn('宠物编号已被绑定['.$params['pest_no'].']', -11); - } - - // 使用编辑模式 - $params['id'] = $pets['id']; - $edit_msg_title = '绑定'; - } - - // 添加/编辑 - if(empty($params['id'])) - { - $data['pest_no'] = date('YmdHis').GetNumberCode(6); - $data['add_time'] = time(); - $pets_id = Db::name('PluginsPetscmsPets')->insertGetId($data); - if($pets_id > 0) - { - // 生成二维码 - self::PetsQrcodeCreate($pets_id); - - return DataReturn('添加成功', 0); - } - return DataReturn('添加失败', -100); - } else { - $data['upd_time'] = time(); - if(Db::name('PluginsPetscmsPets')->where(['id'=>intval($params['id'])])->update($data)) - { - return DataReturn($edit_msg_title.'成功', 0); - } - return DataReturn($edit_msg_title.'失败', -100); - } - } - - /** - * 宠物二维码生成 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-04-19 - * @desc description - * @param [type] $pets_id [description] - */ - private static function PetsQrcodeCreate($pets_id) - { - if(!empty($pets_id)) - { - $base = PluginsService::PluginsData('petscms', ['logo']); - $params = [ - 'path' => DS.'static'.DS.'upload'.DS.'images'.DS.'plugins_petscms'.DS.'qrcode'.DS.date('Y').DS.date('m').DS.date('d').DS, - 'content' => PluginsHomeUrl('petscms', 'pets', 'detail', ['id'=>$pets_id]), - 'logo' => empty($base['data']['logo']) ? '' : $base['data']['logo'], - ]; - $ret = (new \base\Qrcode())->Create($params); - if($ret['code'] == 0) - { - if(!Db::name('PluginsPetscmsPets')->where(['id'=>$pets_id])->update(['qrcode_images'=>$ret['data']['path'].$ret['data']['filename'], 'upd_time'=>time()])) - { - return DataReturn('二维码生成失败', -10); - } - } - } - return DataReturn('二维码生成成功', 0); - } - - /** - * 获取宠物相册 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-07-10 - * @desc description - * @param [array] $params [输入参数] - * @return [array] [一维数组但图片地址] - */ - private static function GetFormPetsPhotoParams($params = []) - { - $result = []; - if(!empty($params['photo']) && is_array($params['photo'])) - { - foreach($params['photo'] as $v) - { - $result[] = ResourcesService::AttachmentPathHandle($v); - } - } - return DataReturn('success', 0, $result); - } - - /** - * 丢失提供信息保存 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2019-04-11 - * @desc description - * @param [array] $params [输入参数] - */ - public static function HelpSave($params = []) - { - // 请求参数 - $p = [ - [ - 'checked_type' => 'empty', - 'key_name' => 'pets_id', - 'error_msg' => '宠物id有误', - ], - [ - 'checked_type' => 'length', - 'key_name' => 'contacts_name', - 'checked_data' => '1,30', - 'error_msg' => '联系人姓名格式 1~30 个字符之间', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'province', - 'error_msg' => '请选择省份', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'city', - 'error_msg' => '请选择城市', - ], - [ - 'checked_type' => 'empty', - 'key_name' => 'county', - 'error_msg' => '请选择区/县', - ], - [ - 'checked_type' => 'length', - 'key_name' => 'address', - 'checked_data' => '1,80', - 'error_msg' => '详细地址格式 1~80 个字符之间', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 电话微信只至少填写一个 - if(empty($params['contacts_tel']) && empty($params['contacts_weixin'])) - { - return DataReturn('电话/微信只至少填写一个', -1); - } - - // 宠物数据 - $data = [ - 'user_id' => isset($params['user_id']) ? intval($params['user_id']) : 0, - 'pets_id' => intval($params['pets_id']), - 'contacts_name' => $params['contacts_name'], - 'contacts_tel' => isset($params['contacts_tel']) ? $params['contacts_tel'] : '', - 'contacts_weixin' => isset($params['contacts_weixin']) ? $params['contacts_weixin'] : '', - 'province' => intval($params['province']), - 'city' => intval($params['city']), - 'county' => intval($params['county']), - 'address' => $params['address'], - 'lng' => empty($params['lng']) ? 0.00 : floatval($params['lng']), - 'lat' => empty($params['lat']) ? 0.00 : floatval($params['lat']), - ]; - - // 添加/编辑 - if(empty($params['id'])) - { - $data['add_time'] = time(); - if(Db::name('PluginsPetscmsHelp')->insertGetId($data) > 0) - { - return DataReturn('提供成功', 0); - } - return DataReturn('提供失败', -100); - } else { - $data['upd_time'] = time(); - if(Db::name('PluginsPetscmsHelp')->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-09-29 - * @desc description - * @param [array] $params [输入参数] - */ - public static function HelpList($params = []) - { - $where = empty($params['where']) ? [] : $params['where']; - $m = isset($params['m']) ? intval($params['m']) : 0; - $n = isset($params['n']) ? intval($params['n']) : 10; - $order_by = empty($params['order_by']) ? 'id desc' : $params['order_by']; - - // 获取数据列表 - $data = Db::name('PluginsPetscmsHelp')->where($where)->limit($m, $n)->order($order_by)->select(); - if(!empty($data)) - { - foreach($data as &$v) - { - // 地址 - $v['province_name'] = RegionService::RegionName($v['province']); - $v['city_name'] = RegionService::RegionName($v['city']); - $v['county_name'] = RegionService::RegionName($v['county']); - - // 时间 - $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'] = empty($v['upd_time']) ? '' : date('Y-m-d H:i:s', $v['upd_time']); - $v['upd_time_date'] = empty($v['upd_time']) ? '' : date('Y-m-d', $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 HelpTotal($where = []) - { - return (int) Db::name('PluginsPetscmsHelp')->where($where)->count(); - } - - /** - * 宠物解绑 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-12-18 - * @desc description - * @param [array] $params [输入参数] - */ - public static function PetsUntying($params = []) - { - // 请求参数 - $p = [ - [ - 'checked_type' => 'empty', - 'key_name' => 'id', - 'error_msg' => '操作id有误', - ], - ]; - $ret = ParamsChecked($params, $p); - if($ret !== true) - { - return DataReturn($ret, -1); - } - - // 条件 - $where = ['id'=>intval($params['id'])]; - if(!empty($params['user_id'])) - { - $where['user_id'] = intval($params['user_id']); - } - - // 解绑操作 - if(Db::name('PluginsPetscmsPets')->where($where)->update(['user_id'=>0, 'upd_time'=>time()])) - { - return DataReturn('解绑成功'); - } - - 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 PetsDelete($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('PluginsPetscmsPets')->where(['id'=>intval($params['id'])])->delete()) - { - return DataReturn('删除成功'); - } - - return DataReturn('删除失败或资源不存在', -100); - } -} -?> \ No newline at end of file diff --git a/application/plugins/petscms/config.json b/application/plugins/petscms/config.json deleted file mode 100755 index 4f4d08639..000000000 --- a/application/plugins/petscms/config.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "base":{ - "plugins":"petscms", - "name":"宠物管理系统", - "logo":"\/static\/upload\/images\/plugins_petscms\/2019\/04\/09\/1554814711403578.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_users_center_left_menu_handle":[ - "app\\plugins\\petscms\\Hook" - ], - "plugins_service_header_navigation_top_right_handle":[ - "app\\plugins\\petscms\\Hook" - ] - } -} \ No newline at end of file diff --git a/application/plugins/petscms/install.sql b/application/plugins/petscms/install.sql deleted file mode 100755 index f69e00393..000000000 --- a/application/plugins/petscms/install.sql +++ /dev/null @@ -1,59 +0,0 @@ -# 宠物管理系统宠物 -CREATE TABLE `s_plugins_petscms_pets` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id', - `user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户id', - `pest_no` char(60) NOT NULL DEFAULT '' COMMENT '宠物编号', - `status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '状态(0正常, 1丢失, 2去世, 3关闭)', - `qrcode_images` char(255) NOT NULL DEFAULT '' COMMENT '宠物二维码', - `title` char(60) NOT NULL DEFAULT '' COMMENT '标题', - `name` char(30) NOT NULL DEFAULT '' COMMENT '名字', - `birthday` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '出生日期', - `type` char(60) NOT NULL DEFAULT '' COMMENT '类型', - `varieties` char(60) NOT NULL DEFAULT '' COMMENT '品种', - `gender` tinyint(2) NOT NULL DEFAULT '-1' COMMENT '性别(0公, 1母)', - `sterilization` tinyint(2) NOT NULL DEFAULT '-1' COMMENT '是否绝育(0否, 1是)', - `vaccine` tinyint(2) NOT NULL DEFAULT '-1' COMMENT '是否疫苗(0否, 1是)', - `photo` mediumtext NOT NULL COMMENT '相册(json数据)', - `content` mediumtext NOT NULL COMMENT '宠物简介', - `person_name` char(30) NOT NULL DEFAULT '' COMMENT '主人姓名', - `person_tel` char(30) NOT NULL DEFAULT '' COMMENT '主人电话', - `person_weixin` char(30) NOT NULL DEFAULT '' COMMENT '主人微信', - `lose_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '丢失-丢失时间', - `lose_reward_amount` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '丢失-悬赏金额', - `lose_features` char(255) NOT NULL DEFAULT '' COMMENT '丢失-宠物特征', - `lose_province` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '丢失-所在省', - `lose_city` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '丢失-所在市', - `lose_county` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '丢失-所在县/区', - `lose_address` char(80) NOT NULL DEFAULT '' COMMENT '丢失-详细地址', - `lose_lng` decimal(13,10) unsigned NOT NULL DEFAULT '0.0000000000' COMMENT '丢失-经度', - `lose_lat` decimal(13,10) unsigned NOT NULL DEFAULT '0.0000000000' 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 `pest_no` (`pest_no`), - KEY `type` (`type`), - KEY `gender` (`gender`), - KEY `user_id` (`user_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='宠物管理系统宠物 - 应用' - - -# 宠物管理系统宠物丢失帮助数据 -CREATE TABLE `s_plugins_petscms_help` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id', - `user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户id', - `pets_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '宠物id', - `contacts_name` char(30) NOT NULL DEFAULT '' COMMENT '联系人姓名', - `contacts_tel` char(30) NOT NULL DEFAULT '' COMMENT '联系人电话', - `contacts_weixin` char(30) NOT NULL DEFAULT '' COMMENT '联系人微信', - `province` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '所在省', - `city` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '所在市', - `county` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '所在县/区', - `address` char(80) NOT NULL DEFAULT '' COMMENT '详细地址', - `lng` decimal(13,10) unsigned NOT NULL DEFAULT '0.0000000000' COMMENT '经度', - `lat` decimal(13,10) unsigned NOT NULL DEFAULT '0.0000000000' 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 `user_id` (`user_id`), - KEY `pets_id` (`pets_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='宠物管理系统宠物丢失帮助数据 - 应用' \ No newline at end of file diff --git a/application/plugins/petscms/uninstall.sql b/application/plugins/petscms/uninstall.sql deleted file mode 100755 index e865a6d31..000000000 --- a/application/plugins/petscms/uninstall.sql +++ /dev/null @@ -1,5 +0,0 @@ -# 宠物管理系统宠物 - 应用 -DROP TABLE `s_plugins_petscms_pets`; - -# 宠物管理系统宠物丢失帮助数据 - 应用 -DROP TABLE `s_plugins_petscms_help`; \ No newline at end of file diff --git a/application/plugins/view/petscms/admin/base.html b/application/plugins/view/petscms/admin/base.html deleted file mode 100755 index bfc95f396..000000000 --- a/application/plugins/view/petscms/admin/base.html +++ /dev/null @@ -1,99 +0,0 @@ -{{include file="public/header" /}} - - -
-
- - 宠物管理系统 - 返回 - - -
-
- -
- {{if !empty($data['not_bind_desc'])}} - {{$data.not_bind_desc|raw}} - {{else /}} - 无 - {{/if}} -
-
-
- -
- {{if !empty($data['pets_take'])}} - {{$data.pets_take}} - {{else /}} - 我要领取 - {{/if}} -
-
-
- -
- {{if !empty($data['lose_provide'])}} - {{$data.lose_provide}} - {{else /}} - 我要提供信息 - {{/if}} -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
-
- -
- {{if !empty($data['alipay_qrcode_name'])}} - {{$data.alipay_qrcode_name}} - {{else /}} - 空 - {{/if}} -
-
- -
- -
- -
-
-
- -
- {{if !empty($data['weixin_qrcode_name'])}} - {{$data.weixin_qrcode_name}} - {{else /}} - 空 - {{/if}} -
-
- - 编辑 -
-
-
- - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/petscms/admin/index.html b/application/plugins/view/petscms/admin/index.html deleted file mode 100755 index d92fef020..000000000 --- a/application/plugins/view/petscms/admin/index.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/petscms/admin/saveinfo.html b/application/plugins/view/petscms/admin/saveinfo.html deleted file mode 100755 index 458ba09c9..000000000 --- a/application/plugins/view/petscms/admin/saveinfo.html +++ /dev/null @@ -1,103 +0,0 @@ -{{include file="public/header" /}} - - -
-
- -
- - 宠物管理系统 - 返回 - - -
- - -
- -
- - -
- -
- - -
- -
- -
    - {{if !empty($data['logo'])}} -
  • - - - × -
  • - {{/if}} -
-
+上传图片
-
- -
- -
    - {{if !empty($data['pets_default_images'])}} -
  • - - - × -
  • - {{/if}} -
-
+上传图片
-
- -
- -
    - {{if !empty($data['alipay_qrcode_images'])}} -
  • - - - × -
  • - {{/if}} -
-
+上传图片
-
-
- - -
- -
- -
    - {{if !empty($data['weixin_qrcode_images'])}} -
  • - - - × -
  • - {{/if}} -
-
+上传图片
-
-
- - -
- -
- -
-
- -
-
- - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/plugins/view/petscms/pets/detail.html b/application/plugins/view/petscms/pets/detail.html deleted file mode 100755 index 625e855fc..000000000 --- a/application/plugins/view/petscms/pets/detail.html +++ /dev/null @@ -1,319 +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)}} -
- {{if isset($data['user_id']) and $data['user_id'] gt 0}} -
-
-
-
    - {{if !empty($data['photo'])}} - {{foreach $data.photo as $photo}} -
  • - {{$data.title}} -
  • - {{/foreach}} - {{else /}} - {{if !empty($plugins_base_data['pets_default_images'])}} -
  • - {{$data.title}} -
  • - {{else /}} -
  • - {{$data.title}} -
  • - {{/if}} - {{/if}} -
-
-
-
-

{{$data.title}}

-
    -
  • - 编号 - {{$data.pest_no}} -
  • -
  • - 名字 - {{$data.name}} -
  • -
  • - 类型 - {{$data.type_name}} -
  • -
  • - 性别 - {{$data.gender_name}} -
  • -
  • - 生日 - {{$data.birthday_name}} -
  • -
  • - 年龄 - {{$data.age}} -
  • -
  • - 品种 - {{$data.varieties}} -
  • -
  • - 绝育 - {{$data.sterilization_name}} -
  • -
  • - 疫苗 - {{$data.vaccine_name}} -
  • -
  • - 状态 - {{$data.status_name}} -
  • -
- - {{if isset($data['status']) and $data['status'] eq 1}} - - - -
-
-
-

提供信息

- × -
-
-
-
- - -
-
- - -
-
- - -
- -
- - - - -
-
- -
- - - - - - -
-
-
- -
- - -
-
-
-
-
- {{/if}} - - -
-
-
-
-
- - {{if isset($data['status']) and $data['status'] eq 1}} -
-
- {{if !empty($data['lose_features'])}} -

{{$data.lose_features|raw}}

- {{/if}} -
    - {{if !empty($data['person_name'])}} -
  • - 主人姓名 - {{$data.person_name}} -
  • - {{/if}} - {{if !empty($data['person_tel'])}} -
  • - 主人电话 - {{$data.person_tel}} -
  • - {{/if}} - {{if !empty($data['person_weixin'])}} -
  • - 主人微信 - {{$data.person_weixin}} -
  • - {{/if}} - - {{if !empty($data['lose_time_name'])}} -
  • - 丢失时间 - {{$data.lose_time_name}} -
  • - {{/if}} - {{if !empty($data['lose_reward_amount']) and $data['lose_reward_amount'] gt 0}} -
  • - 悬赏金额 - ¥{{$data.lose_reward_amount}} -
  • - {{/if}} - {{if !empty($data['lose_address'])}} -
  • - 丢失地址 - {{$data.province_name}}{{$data.city_name}}{{$data.county_name}}{{$data.lose_address}} -
  • - {{/if}} -
-
- {{if !empty($data['lose_lng']) and !empty($data['lose_lat'])}} -
- {{/if}} -
- {{/if}} - - {{if !empty($data['content'])}} -
-
- - 宠物详情 -
-
{{$data.content|raw}}
-
- {{/if}} - {{else /}} -
-

- {{if !empty($plugins_base_data['not_bind_desc'])}} -
- {{$plugins_base_data.not_bind_desc|raw}} -
- {{/if}} - {{if empty($plugins_base_data['pets_take'])}}我要领取{{else /}}{{$plugins_base_data.pets_take}}{{/if}} -
- {{/if}} - - {{if !empty($plugins_base_data['alipay_qrcode_images']) or !empty($plugins_base_data['weixin_qrcode_images'])}} - - {{/if}} -
-{{else /}} -
没有相关数据
-{{/if}} - -{{include file="public/footer" /}} - -{{if !empty($data['lose_lng']) and !empty($data['lose_lat']) and $data['lose_lng'] gt 0 and $data['lose_lat'] gt 0 and isset($data['status']) and $data['status'] eq 1}} - - - - -{{/if}} \ No newline at end of file diff --git a/application/plugins/view/petscms/pets/help.html b/application/plugins/view/petscms/pets/help.html deleted file mode 100755 index 4dc726b6f..000000000 --- a/application/plugins/view/petscms/pets/help.html +++ /dev/null @@ -1,92 +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" /}} - - - -
-
- -
- - - - - - - - - - - - {{if !empty($data_list)}} - {{foreach $data_list as $v}} - - - - - - - - {{/foreach}} - {{/if}} - {{if empty($data_list)}} - - - - {{/if}} - -
联系人信息省市区/县详细地址操作时间操作
- 姓名:{{if empty($v['contacts_name'])}}未填写{{else /}}{{$v.contacts_name}}{{/if}}
- - 电话:{{if empty($v['contacts_tel'])}}未填写{{else /}}{{$v.contacts_tel}}{{/if}}
- - 微信:{{if empty($v['contacts_weixin'])}}未填写{{else /}}{{$v.contacts_weixin}}{{/if}} -
- 所在省:{{if empty($v['province_name'])}}未填写{{else /}}{{$v.province_name}}{{/if}}
- - 所在市:{{if empty($v['city_name'])}}未填写{{else /}}{{$v.city_name}}{{/if}}
- - 所在区/县:{{if empty($v['county_name'])}}未填写{{else /}}{{$v.county_name}}{{/if}}
-
{{$v.address}} - 添加:{{$v.add_time_time}} - {{if !empty($v['upd_time_time'])}} -
更新:{{$v.upd_time_time}} - {{/if}} -
- {{if !empty($v['lng']) and !empty($v['lat']) and $v['lng'] gt 0 and $v['lat'] gt 0}} - - {{/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/petscms/pets/helpmap.html b/application/plugins/view/petscms/pets/helpmap.html deleted file mode 100755 index e9e03d976..000000000 --- a/application/plugins/view/petscms/pets/helpmap.html +++ /dev/null @@ -1,39 +0,0 @@ -{{include file="public/header" /}} - -{{if !empty($params['lng']) and !empty($params['lat']) and $params['lng'] gt 0 and $params['lat'] gt 0}} -
-{{else /}} -
参数有误
-{{/if}} - -{{include file="public/footer" /}} - -{{if !empty($params['lng']) and !empty($params['lat']) and $params['lng'] gt 0 and $params['lat'] gt 0}} - - - - -{{/if}} \ No newline at end of file diff --git a/application/plugins/view/petscms/pets/index.html b/application/plugins/view/petscms/pets/index.html deleted file mode 100755 index 79e26dbb5..000000000 --- a/application/plugins/view/petscms/pets/index.html +++ /dev/null @@ -1,220 +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" /}} - - - -
-
-
-
-
- - - - -
- -
- - - - - - - - - - - - - - - -
- 类型: - - - 状态: - -
- 绝育: - - - 性别: - -
- - 清除条件 -
-
- - -
- 新增 -
- - - -
- - - - - - - - - - - - - - {{if !empty($data_list)}} - {{foreach $data_list as $v}} - - - - - - - - - - {{/foreach}} - {{/if}} - {{if empty($data_list)}} - - - - {{/if}} - -
标题/相册宠物信息主人信息二维码状态操作时间操作
-

{{$v.title}}

-
-
    - {{if !empty($v['photo'])}} - {{foreach $v.photo as $photo}} -
  • - {{$v.title}} -
  • - {{/foreach}} - {{else /}} - {{if !empty($plugins_base_data['pets_default_images'])}} -
  • - {{$v.title}} -
  • - {{else /}} -
  • - {{$v.title}} -
  • - {{/if}} - {{/if}} -
-
-
- 编号:{{if empty($v['pest_no'])}}未填写{{else /}}{{$v.pest_no}}{{/if}}
- - 名字:{{if empty($v['name'])}}未填写{{else /}}{{$v.name}}{{/if}}
- - 类型:{{if empty($v['type_name'])}}未填写{{else /}}{{$v.type_name}}{{/if}}
- - 性别:{{if empty($v['gender_name'])}}未设置{{else /}}{{$v.gender_name}}{{/if}}
- - 生日:{{if empty($v['birthday_name'])}}未填写{{else /}}{{$v.birthday_name}}{{/if}}
- - 年龄:{{if empty($v['age'])}}未填写{{else /}}{{$v.age}}{{/if}}
- - 品种:{{if empty($v['varieties'])}}未填写{{else /}}{{$v.varieties}}{{/if}}
- - 绝育:{{if empty($v['sterilization_name'])}}未设置{{else /}}{{$v.sterilization_name}}{{/if}}
- - 疫苗:{{if empty($v['sterilization_name'])}}未设置{{else /}}{{$v.sterilization_name}}{{/if}}
-
- 姓名:{{if empty($v['person_name'])}}未填写{{else /}}{{$v.person_name}}{{/if}}
- - 电话:{{if empty($v['person_tel'])}}未填写{{else /}}{{$v.person_tel}}{{/if}}
- - 微信:{{if empty($v['person_weixin'])}}未填写{{else /}}{{$v.person_weixin}}{{/if}}
-
- {{$v.title}} - -

下载二维码

-
-
{{$v.status_name}} - 添加:{{$v.add_time_time}} - {{if !empty($v['upd_time_time'])}} -
更新:{{$v.upd_time_time}} - {{/if}} -
- 编辑 - - {{if $v['status'] neq 3}} - 详情 - {{/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/petscms/pets/saveinfo.html b/application/plugins/view/petscms/pets/saveinfo.html deleted file mode 100755 index 9a7feafeb..000000000 --- a/application/plugins/view/petscms/pets/saveinfo.html +++ /dev/null @@ -1,249 +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" /}} - - - -
-
-
- - 我的宠物 - 返回 - - - -
- {{if !empty($pest_no)}} -
- - -
- {{/if}} - -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- - -
- -
    - {{if !empty($data['photo'])}} - {{foreach $data.photo as $v}} -
  • - - - × -
  • - {{/foreach}} - {{/if}} -
-
+上传相册
-
- - {{if empty($pest_no)}} -
- - -
- {{/if}} - - -
- - -
-
- - -
-

主人信息

-
-
- - -
-
- - -
-
- - -
-
- - -
-

丢失信息(丢失状态下有效)

-
-
- - -
-
- - -
-
- - -
-
- - - - -
-
- -
- - - - - - -
-
-
-
- -
- - -
-
-
-
- -
- - -{{include file="public/footer" /}} - - - - - - \ No newline at end of file diff --git a/application/plugins/view/petscms/petsadmin/help.html b/application/plugins/view/petscms/petsadmin/help.html deleted file mode 100755 index d77653f1a..000000000 --- a/application/plugins/view/petscms/petsadmin/help.html +++ /dev/null @@ -1,79 +0,0 @@ -{{include file="public/header" /}} - - -
-
- - 宠物管理系统 - 返回 - - -
- -
- - - - - - - - - - - - {{if !empty($data_list)}} - {{foreach $data_list as $v}} - - - - - - - - {{/foreach}} - {{/if}} - {{if empty($data_list)}} - - - - {{/if}} - -
联系人信息省市区/县详细地址操作时间操作
- 姓名:{{if empty($v['contacts_name'])}}未填写{{else /}}{{$v.contacts_name}}{{/if}}
- - 电话:{{if empty($v['contacts_tel'])}}未填写{{else /}}{{$v.contacts_tel}}{{/if}}
- - 微信:{{if empty($v['contacts_weixin'])}}未填写{{else /}}{{$v.contacts_weixin}}{{/if}} -
- 所在省:{{if empty($v['province_name'])}}未填写{{else /}}{{$v.province_name}}{{/if}}
- - 所在市:{{if empty($v['city_name'])}}未填写{{else /}}{{$v.city_name}}{{/if}}
- - 所在区/县:{{if empty($v['county_name'])}}未填写{{else /}}{{$v.county_name}}{{/if}}
-
{{$v.address}} - 添加:{{$v.add_time_time}} - {{if !empty($v['upd_time_time'])}} -
更新:{{$v.upd_time_time}} - {{/if}} -
- {{if !empty($v['lng']) and !empty($v['lat']) and $v['lng'] gt 0 and $v['lat'] gt 0}} - - {{/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/petscms/petsadmin/helpmap.html b/application/plugins/view/petscms/petsadmin/helpmap.html deleted file mode 100755 index e9e03d976..000000000 --- a/application/plugins/view/petscms/petsadmin/helpmap.html +++ /dev/null @@ -1,39 +0,0 @@ -{{include file="public/header" /}} - -{{if !empty($params['lng']) and !empty($params['lat']) and $params['lng'] gt 0 and $params['lat'] gt 0}} -
-{{else /}} -
参数有误
-{{/if}} - -{{include file="public/footer" /}} - -{{if !empty($params['lng']) and !empty($params['lat']) and $params['lng'] gt 0 and $params['lat'] gt 0}} - - - - -{{/if}} \ No newline at end of file diff --git a/application/plugins/view/petscms/petsadmin/index.html b/application/plugins/view/petscms/petsadmin/index.html deleted file mode 100755 index cd92e125b..000000000 --- a/application/plugins/view/petscms/petsadmin/index.html +++ /dev/null @@ -1,210 +0,0 @@ -{{include file="public/header" /}} - - -
-
- - 宠物管理系统 - 返回 - - -
-
-
-
- - - - -
- -
- - - - - - - - - - - - - - - -
- 类型: - - - 状态: - -
- 绝育: - - - 性别: - -
- - 清除条件 -
-
- - -
- 新增 -
- - - -
- - - - - - - - - - - - - - {{if !empty($data_list)}} - {{foreach $data_list as $v}} - - - - - - - - - - {{/foreach}} - {{/if}} - {{if empty($data_list)}} - - - - {{/if}} - -
标题/相册宠物信息主人信息二维码状态操作时间操作
-

{{$v.title}}

-
-
    - {{if !empty($v['photo'])}} - {{foreach $v.photo as $photo}} -
  • - {{$v.title}} -
  • - {{/foreach}} - {{else /}} - {{if !empty($plugins_base_data['pets_default_images'])}} -
  • - {{$v.title}} -
  • - {{else /}} -
  • - {{$v.title}} -
  • - {{/if}} - {{/if}} -
-
-
- 编号:{{if empty($v['pest_no'])}}未填写{{else /}}{{$v.pest_no}}{{/if}}
- - 名字:{{if empty($v['name'])}}未填写{{else /}}{{$v.name}}{{/if}}
- - 类型:{{if empty($v['type_name'])}}未填写{{else /}}{{$v.type_name}}{{/if}}
- - 性别:{{if empty($v['gender_name'])}}未设置{{else /}}{{$v.gender_name}}{{/if}}
- - 生日:{{if empty($v['birthday_name'])}}未填写{{else /}}{{$v.birthday_name}}{{/if}}
- - 年龄:{{if empty($v['age'])}}未填写{{else /}}{{$v.age}}{{/if}}
- - 品种:{{if empty($v['varieties'])}}未填写{{else /}}{{$v.varieties}}{{/if}}
- - 绝育:{{if empty($v['sterilization_name'])}}未设置{{else /}}{{$v.sterilization_name}}{{/if}}
- - 疫苗:{{if empty($v['sterilization_name'])}}未设置{{else /}}{{$v.sterilization_name}}{{/if}}
-
- 姓名:{{if empty($v['person_name'])}}未填写{{else /}}{{$v.person_name}}{{/if}}
- - 电话:{{if empty($v['person_tel'])}}未填写{{else /}}{{$v.person_tel}}{{/if}}
- - 微信:{{if empty($v['person_weixin'])}}未填写{{else /}}{{$v.person_weixin}}{{/if}}
-
- {{$v.title}} - -

下载二维码

-
-
{{$v.status_name}} - 添加:{{$v.add_time_time}} - {{if !empty($v['upd_time_time'])}} -
更新:{{$v.upd_time_time}} - {{/if}} -
- 编辑 - {{if $v['status'] neq 3}} - 详情 - {{/if}} - 帮助 - {{if $v['user_id'] gt 0}} - - {{/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/petscms/petsadmin/saveinfo.html b/application/plugins/view/petscms/petsadmin/saveinfo.html deleted file mode 100755 index a422076ed..000000000 --- a/application/plugins/view/petscms/petsadmin/saveinfo.html +++ /dev/null @@ -1,220 +0,0 @@ -{{include file="public/header" /}} - - -
-
- - 宠物管理系统 - 返回 - -
-
- -
-
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- - -
- -
    - {{if !empty($data['photo'])}} - {{foreach $data.photo as $v}} -
  • - - - × -
  • - {{/foreach}} - {{/if}} -
-
+上传相册
-
- -
- - -
- - -
- - -
-
- - -
-

主人信息

-
-
- - -
-
- - -
-
- - -
-
- - -
-

丢失信息(丢失状态下有效)

-
-
- - -
-
- - -
-
- - -
-
- - - - -
-
- -
- - - - - - -
-
-
-
- -
- - - -
-
-
-
-
- - - -{{include file="public/footer" /}} - - - - - - \ No newline at end of file diff --git a/application/tags.php b/application/tags.php index d418694a7..51745d173 100755 --- a/application/tags.php +++ b/application/tags.php @@ -119,16 +119,6 @@ return array ( array ( 0 => 'app\\plugins\\freightfee\\Hook', ), - 'plugins_service_users_center_left_menu_handle' => - array ( - 0 => 'app\\plugins\\petscms\\Hook', - 1 => 'app\\plugins\\wallet\\Hook', - ), - 'plugins_service_header_navigation_top_right_handle' => - array ( - 0 => 'app\\plugins\\petscms\\Hook', - 1 => 'app\\plugins\\wallet\\Hook', - ), 'plugins_js' => array ( 0 => 'app\\plugins\\share\\Hook', @@ -157,5 +147,13 @@ return array ( 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', + ), ); ?> \ No newline at end of file diff --git a/config/shopxo.sql b/config/shopxo.sql index 4c7d261f7..983e11374 100644 --- a/config/shopxo.sql +++ b/config/shopxo.sql @@ -1,20 +1,18 @@ /* - Navicat Premium Data Transfer + Navicat MySQL Data Transfer Source Server : 本机 - Source Server Type : MySQL - Source Server Version : 50722 + Source Server Version : 50716 Source Host : localhost - Source Database : shopxo_test + Source Database : shopxo_ttt - Target Server Type : MySQL - Target Server Version : 50722 + Target Server Version : 50716 File Encoding : utf-8 - Date: 04/28/2019 18:31:22 PM + Date: 04/29/2019 00:29:21 AM */ -SET NAMES utf8mb4; +SET NAMES utf8; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- @@ -907,7 +905,7 @@ CREATE TABLE `s_plugins` ( -- Records of `s_plugins` -- ---------------------------- BEGIN; -INSERT INTO `s_plugins` VALUES ('1', 'commontopmaxpicture', '{\"images\":\"\\/static\\/upload\\/images\\/plugins_commontopmaxpicture\\/2019\\/02\\/09\\/1549671733978860.jpg\",\"bg_color\":\"#ce0000\",\"url\":\"https:\\/\\/shopxo.net\\/\",\"is_new_window_open\":\"1\",\"is_overall\":\"1\",\"time_start\":\"\",\"time_end\":\"\",\"pluginsname\":\"commontopmaxpicture\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '1', '1550145321', '1551345727'), ('2', 'commontopnotice', '{\"content\":\"\\u6b22\\u8fce\\u6765\\u5230ShopXO\\u4f01\\u4e1a\\u7ea7B2C\\u5f00\\u6e90\\u7535\\u5546\\u7cfb\\u7edf\\u3001\\u6f14\\u793a\\u7ad9\\u70b9\\u8bf7\\u52ff\\u53d1\\u8d77\\u652f\\u4ed8\\u3001\\u4ee5\\u514d\\u7ed9\\u60a8\\u5e26\\u6765\\u4e0d\\u5fc5\\u8981\\u7684\\u8d22\\u4ea7\\u635f\\u5931\\u3002\",\"is_overall\":\"1\",\"time_start\":\"\",\"time_end\":\"\",\"pluginsname\":\"commontopnotice\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '1', '1550156571', '1551345882'), ('3', 'usercentertopnotice', '{\"content\":\"\\u7528\\u6237\\u4e2d\\u5fc3\\u516c\\u544a\",\"time_start\":\"\",\"time_end\":\"\",\"pluginsname\":\"usercentertopnotice\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '1', '1550157860', '1551191932'), ('14', 'userloginrewardintegral', '{\"give_integral\":\"5\",\"is_day_once\":\"1\",\"time_start\":\"\",\"time_end\":\"\",\"pluginsname\":\"userloginrewardintegral\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '1', '1550151175', '1551191930'), ('15', 'commongobacktop', '{\"images\":\"\\/static\\/upload\\/images\\/plugins_commongobacktop\\/2019\\/02\\/15\\/1550210425433304.png\",\"is_overall\":\"1\",\"pluginsname\":\"commongobacktop\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '0', '1550200998', '1551191928'), ('16', 'commonrightnavigation', '{\"weixin_mini_qrcode_images\":\"\\/static\\/upload\\/images\\/plugins_commonrightnavigation\\/2019\\/02\\/17\\/1550375588899802.jpeg\",\"is_new_window_open\":\"0\",\"is_overall\":\"1\",\"is_goods_page_show_cart\":\"1\",\"pluginsname\":\"commonrightnavigation\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\",\"alipay_mini_qrcode_images\":\"\",\"alipay_fuwu_qrcode_images\":\"\",\"weixin_fuwu_qrcode_images\":\"\"}', '0', '1550222925', '1556007360'), ('17', 'commononlineservice', '{\"title\":\"ShopXO\\u5728\\u7ebf\\u5ba2\\u670d\",\"online_service\":\"\\u552e\\u524d|12345678\\n\\u552e\\u540e|12345678\",\"tel\":\"021-88888888\",\"is_overall\":\"1\",\"bg_color\":\"\",\"distance_top\":\"3\",\"pluginsname\":\"commononlineservice\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '0', '1550393304', '1556007348'), ('20', 'usernotloginhidegoodsprice', '{\"original_price_placeholder\":\"\",\"price_placeholder\":\"\",\"pluginsname\":\"usernotloginhidegoodsprice\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '0', '1551184852', '1553591863'), ('21', 'answers', '{\"application_name\":\"\\u95ee\\u7b54\",\"images\":\"\\/static\\/upload\\/images\\/plugins_answers\\/2019\\/03\\/07\\/1551942704326624.jpg\",\"url\":\"http:\\/\\/shopxo.net\\/\",\"is_new_window_open\":\"1\",\"images_bottom\":\"\\/static\\/upload\\/images\\/plugins_answers\\/2019\\/03\\/13\\/1552463137211834.png\",\"url_bottom\":\"https:\\/\\/test.shopxo.net\",\"is_new_window_open_bottom\":\"1\",\"right_top_rec_name\":\"\",\"middle_new_name\":\"\",\"right_top_goods_name\":\"\",\"middle_new_page_number\":\"15\",\"search_page_number\":\"28\",\"home_new_goods_number\":\"12\",\"category_ids\":\"12,7,6,4,3,2,1\",\"pluginsname\":\"answers\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"basesave\"}', '1', '1551853705', '1552724209'), ('23', 'expressforkdn', '{\"ebid\":\"\",\"appkey\":\"\",\"express_ids\":{\"1\":\"\",\"2\":\"\",\"3\":\"\",\"4\":\"ZTO\",\"5\":\"\",\"6\":\"\",\"7\":\"\",\"8\":\"\",\"9\":\"\",\"10\":\"\",\"11\":\"\",\"12\":\"\",\"13\":\"\",\"14\":\"\"},\"pluginsname\":\"expressforkdn\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '1', '1552358826', '1553161103'), ('25', 'touristbuy', '{\"application_name\":\"\\u8ba2\\u5355\\u67e5\\u8be2\",\"login_name\":\"\\u6e38\\u5ba2\\u767b\\u5f55\",\"nickname\":\"\\u6e38\\u5ba2\",\"query_tips\":\"\\u8bf7\\u8f93\\u5165\\u8ba2\\u5355\\u53f7\\uff0c\\u6536\\u4ef6\\u4eba\\u59d3\\u540d\\uff0c\\u6536\\u4ef6\\u4eba\\u7535\\u8bdd\\u5373\\u53ef\\u67e5\\u770b\\u8ba2\\u5355\\u8be6\\u60c5\",\"is_default_tourist\":\"0\",\"pluginsname\":\"touristbuy\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '1', '1552656743', '1553486026'), ('26', 'freightfee', '{\"show_name\":\"\\u8fd0\\u8d39\",\"goods_ids\":\"2\",\"valuation\":\"0\",\"data\":[{\"region\":\"default\",\"region_show\":\"default\",\"first\":\"1\",\"first_price\":\"10\",\"continue\":\"1\",\"continue_price\":\"5\",\"free_shipping_price\":\"228\"}],\"pluginsname\":\"freightfee\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '1', '1552894438', '1556432057'), ('27', 'newuserreduction', '{\"show_name\":\"\\u65b0\\u7528\\u6237\\u7acb\\u51cf\",\"full_amount\":\"\",\"price\":\"3\",\"is_random\":\"1\",\"pluginsname\":\"newuserreduction\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '1', '1553483809', '1553593711'), ('30', 'ucenter', '{\"login_sync_url\":\"\",\"login_async_url\":\"\",\"register_sync_url\":\"\",\"register_async_url\":\"\",\"logout_sync_url\":\"\",\"logout_async_url\":\"\",\"loginpwdupdate_async_url\":\"\",\"accounts_async_url\":\"\",\"pluginsname\":\"ucenter\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '0', '1554186010', '1554349799'), ('31', 'petscms', '{\"not_bind_desc\":\"\\u8be5\\u5ba0\\u7269\\u8fd8\\u6ca1\\u6709\\u4e3b\\u4eba\\u9886\\u53d6\\uff0c\\u7acb\\u5373\\u9886\\u53d6\\u53ef\\u7231\\u7684\\u5ba0\\u7269\\u5b9d\\u5b9d\\u54e6\\uff01\\uff01\\uff01\",\"pets_take\":\"\\u6211\\u8981\\u9886\\u53d6\",\"lose_provide\":\"\\u6211\\u8981\\u63d0\\u4f9b\\u4fe1\\u606f\",\"alipay_qrcode_name\":\"\",\"weixin_qrcode_name\":\"\",\"pluginsname\":\"petscms\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '1', '1554186010', '1555662725'), ('33', 'share', null, '1', '1555667312', '1555668223'), ('34', 'homemiddleadv', '{\"time_start\":\"2019-04-22 23:34:00\",\"time_end\":\"\",\"pluginsname\":\"homemiddleadv\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\",\"data_list\":{\"20190422180652622612\":{\"name\":\"\\u667a\\u80fdPad\",\"url\":\"http:\\/\\/shopxo.net\\/\",\"images_url\":\"\\/static\\/upload\\/images\\/plugins_homemiddleadv\\/2019\\/04\\/22\\/1555929400479636.jpg\",\"is_enable\":1,\"is_new_window_open\":1,\"operation_time\":1556182596,\"id\":\"20190422180652622612\"},\"20190422183713735111\":{\"name\":\"\\u667a\\u80fd\\u624b\\u673a\",\"url\":\"\",\"images_url\":\"\\/static\\/upload\\/images\\/plugins_homemiddleadv\\/2019\\/04\\/22\\/1555929400237551.jpg\",\"is_enable\":1,\"is_new_window_open\":0,\"operation_time\":1555988047,\"id\":\"20190422183713735111\"},\"20190422183742153442\":{\"name\":\"\\u667a\\u80fd\\u7535\\u8f6c\\u63a5\\u5934\",\"url\":\"\",\"images_url\":\"\\/static\\/upload\\/images\\/plugins_homemiddleadv\\/2019\\/04\\/22\\/1555929400780646.jpg\",\"is_enable\":1,\"is_new_window_open\":0,\"operation_time\":1555948369,\"id\":\"20190422183742153442\"},\"20190422183756326575\":{\"name\":\"\\u65b0\\u4e00\\u4ee3\\u667a\\u80fd\\u5e73\\u677f\",\"url\":\"\",\"images_url\":\"\\/static\\/upload\\/images\\/plugins_homemiddleadv\\/2019\\/04\\/22\\/1555929400647560.jpg\",\"is_enable\":1,\"is_new_window_open\":0,\"operation_time\":1555948385,\"id\":\"20190422183756326575\"}}}', '1', '1555917493', '1556182596'), ('35', 'footercustomerservice', '{\"is_only_home\":\"0\",\"pluginsname\":\"footercustomerservice\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\",\"data_list\":{\"20190423101219612886\":{\"name\":\"\\u7269\\u884c\\u5929\\u4e0b\",\"desc\":\"\\u591a\\u4ed3\\u76f4\\u53d1 \\u6781\\u901f\\u914d\\u9001\\u591a\\u4ed3\\u76f4\\u53d1 \\u6781\\u901f\\u914d\",\"images_url\":\"\\/static\\/upload\\/images\\/plugins_footercustomerservice\\/2019\\/04\\/23\\/1555990891552781.png\",\"is_enable\":1,\"operation_time\":1556182603,\"id\":\"20190423101219612886\"},\"20190423101429924371\":{\"name\":\"\\u7cbe\\u81f4\\u670d\\u52a1\",\"desc\":\"\\u7cbe\\u81f4\\u670d\\u52a1 \\u552e\\u540e\\u4fdd\\u969c\\u7cbe\\u81f4\\u670d\\u52a1 \\u552e\\u540e\\u4fdd\\u969c\",\"images_url\":\"\\/static\\/upload\\/images\\/plugins_footercustomerservice\\/2019\\/04\\/23\\/1555990891827973.png\",\"is_enable\":1,\"operation_time\":1555990919,\"id\":\"20190423101429924371\"},\"20190423101441929067\":{\"name\":\"\\u9000\\u6362\\u65e0\\u5fe7\",\"desc\":\"\\u653e\\u5fc3\\u8d2d\\u7269 \\u9000\\u8fd8\\u65e0\\u5fe7\\u653e\\u5fc3\\u8d2d\\u7269 \\u9000\\u8fd8\\u65e0\\u5fe7\",\"images_url\":\"\\/static\\/upload\\/images\\/plugins_footercustomerservice\\/2019\\/04\\/23\\/1555990891594648.png\",\"is_enable\":1,\"operation_time\":1555990931,\"id\":\"20190423101441929067\"},\"20190423101454021035\":{\"name\":\"\\u6ee1\\u51cf\\u6d3b\\u52a8\",\"desc\":\"\\u6ee1500\\u5143\\u7acb\\u51cf90\\uff0c\\u65b0\\u7528\\u6237\\u7acb\\u51cf200\",\"images_url\":\"\\/static\\/upload\\/images\\/plugins_footercustomerservice\\/2019\\/04\\/23\\/1555991139659862.png\",\"is_enable\":1,\"operation_time\":1555991141,\"id\":\"20190423101454021035\"}}}', '1', '1555984266', '1556263194'), ('36', 'membershiplevel', '{\"level_rules\":\"0\",\"pluginsname\":\"membershiplevel\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\",\"level_list\":{\"20190425155935996197\":{\"name\":\"VIP1\",\"rules_min\":\"0\",\"rules_max\":\"100\",\"images_url\":\"\",\"is_enable\":1,\"discount_rate\":\"0.9\",\"order_price\":\"100.00\",\"full_reduction_price\":\"10.00\",\"operation_time\":1556419988,\"id\":\"20190425155935996197\"},\"20190425160645024007\":{\"name\":\"VIP2\",\"rules_min\":\"100\",\"rules_max\":\"300\",\"images_url\":\"\",\"is_enable\":1,\"discount_rate\":\"0.8\",\"order_price\":0,\"full_reduction_price\":0,\"operation_time\":1556419992,\"id\":\"20190425160645024007\"},\"20190425161453658835\":{\"name\":\"VIP3\",\"rules_min\":\"300\",\"rules_max\":\"0\",\"images_url\":\"\",\"is_enable\":1,\"discount_rate\":\"0.7\",\"order_price\":0,\"full_reduction_price\":0,\"operation_time\":1556433455,\"id\":\"20190425161453658835\"}}}', '1', '1555984266', '1556433455'), ('37', 'wallet', null, '1', '1555984266', '1556437481'); +INSERT INTO `s_plugins` VALUES ('1', 'commontopmaxpicture', '{\"images\":\"\\/static\\/upload\\/images\\/plugins_commontopmaxpicture\\/2019\\/02\\/09\\/1549671733978860.jpg\",\"bg_color\":\"#ce0000\",\"url\":\"https:\\/\\/shopxo.net\\/\",\"is_new_window_open\":\"1\",\"is_overall\":\"1\",\"time_start\":\"\",\"time_end\":\"\",\"pluginsname\":\"commontopmaxpicture\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '1', '1550145321', '1551345727'), ('2', 'commontopnotice', '{\"content\":\"\\u6b22\\u8fce\\u6765\\u5230ShopXO\\u4f01\\u4e1a\\u7ea7B2C\\u5f00\\u6e90\\u7535\\u5546\\u7cfb\\u7edf\\u3001\\u6f14\\u793a\\u7ad9\\u70b9\\u8bf7\\u52ff\\u53d1\\u8d77\\u652f\\u4ed8\\u3001\\u4ee5\\u514d\\u7ed9\\u60a8\\u5e26\\u6765\\u4e0d\\u5fc5\\u8981\\u7684\\u8d22\\u4ea7\\u635f\\u5931\\u3002\",\"is_overall\":\"1\",\"time_start\":\"\",\"time_end\":\"\",\"pluginsname\":\"commontopnotice\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '1', '1550156571', '1551345882'), ('3', 'usercentertopnotice', '{\"content\":\"\\u7528\\u6237\\u4e2d\\u5fc3\\u516c\\u544a\",\"time_start\":\"\",\"time_end\":\"\",\"pluginsname\":\"usercentertopnotice\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '1', '1550157860', '1551191932'), ('14', 'userloginrewardintegral', '{\"give_integral\":\"5\",\"is_day_once\":\"1\",\"time_start\":\"\",\"time_end\":\"\",\"pluginsname\":\"userloginrewardintegral\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '1', '1550151175', '1551191930'), ('15', 'commongobacktop', '{\"images\":\"\\/static\\/upload\\/images\\/plugins_commongobacktop\\/2019\\/02\\/15\\/1550210425433304.png\",\"is_overall\":\"1\",\"pluginsname\":\"commongobacktop\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '0', '1550200998', '1551191928'), ('16', 'commonrightnavigation', '{\"weixin_mini_qrcode_images\":\"\\/static\\/upload\\/images\\/plugins_commonrightnavigation\\/2019\\/02\\/17\\/1550375588899802.jpeg\",\"is_new_window_open\":\"0\",\"is_overall\":\"1\",\"is_goods_page_show_cart\":\"1\",\"pluginsname\":\"commonrightnavigation\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\",\"alipay_mini_qrcode_images\":\"\",\"alipay_fuwu_qrcode_images\":\"\",\"weixin_fuwu_qrcode_images\":\"\"}', '0', '1550222925', '1556007360'), ('17', 'commononlineservice', '{\"title\":\"ShopXO\\u5728\\u7ebf\\u5ba2\\u670d\",\"online_service\":\"\\u552e\\u524d|12345678\\n\\u552e\\u540e|12345678\",\"tel\":\"021-88888888\",\"is_overall\":\"1\",\"bg_color\":\"\",\"distance_top\":\"3\",\"pluginsname\":\"commononlineservice\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '0', '1550393304', '1556007348'), ('20', 'usernotloginhidegoodsprice', '{\"original_price_placeholder\":\"\",\"price_placeholder\":\"\",\"pluginsname\":\"usernotloginhidegoodsprice\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '0', '1551184852', '1553591863'), ('21', 'answers', '{\"application_name\":\"\\u95ee\\u7b54\",\"images\":\"\\/static\\/upload\\/images\\/plugins_answers\\/2019\\/03\\/07\\/1551942704326624.jpg\",\"url\":\"http:\\/\\/shopxo.net\\/\",\"is_new_window_open\":\"1\",\"images_bottom\":\"\\/static\\/upload\\/images\\/plugins_answers\\/2019\\/03\\/13\\/1552463137211834.png\",\"url_bottom\":\"https:\\/\\/test.shopxo.net\",\"is_new_window_open_bottom\":\"1\",\"right_top_rec_name\":\"\",\"middle_new_name\":\"\",\"right_top_goods_name\":\"\",\"middle_new_page_number\":\"15\",\"search_page_number\":\"28\",\"home_new_goods_number\":\"12\",\"category_ids\":\"12,7,6,4,3,2,1\",\"pluginsname\":\"answers\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"basesave\"}', '1', '1551853705', '1552724209'), ('23', 'expressforkdn', '{\"ebid\":\"\",\"appkey\":\"\",\"express_ids\":{\"1\":\"\",\"2\":\"\",\"3\":\"\",\"4\":\"ZTO\",\"5\":\"\",\"6\":\"\",\"7\":\"\",\"8\":\"\",\"9\":\"\",\"10\":\"\",\"11\":\"\",\"12\":\"\",\"13\":\"\",\"14\":\"\"},\"pluginsname\":\"expressforkdn\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '1', '1552358826', '1553161103'), ('25', 'touristbuy', '{\"application_name\":\"\\u8ba2\\u5355\\u67e5\\u8be2\",\"login_name\":\"\\u6e38\\u5ba2\\u767b\\u5f55\",\"nickname\":\"\\u6e38\\u5ba2\",\"query_tips\":\"\\u8bf7\\u8f93\\u5165\\u8ba2\\u5355\\u53f7\\uff0c\\u6536\\u4ef6\\u4eba\\u59d3\\u540d\\uff0c\\u6536\\u4ef6\\u4eba\\u7535\\u8bdd\\u5373\\u53ef\\u67e5\\u770b\\u8ba2\\u5355\\u8be6\\u60c5\",\"is_default_tourist\":\"0\",\"pluginsname\":\"touristbuy\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '1', '1552656743', '1553486026'), ('26', 'freightfee', '{\"show_name\":\"\\u8fd0\\u8d39\",\"goods_ids\":\"2\",\"valuation\":\"0\",\"data\":[{\"region\":\"default\",\"region_show\":\"default\",\"first\":\"1\",\"first_price\":\"10\",\"continue\":\"1\",\"continue_price\":\"5\",\"free_shipping_price\":\"228\"}],\"pluginsname\":\"freightfee\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '1', '1552894438', '1556432057'), ('27', 'newuserreduction', '{\"show_name\":\"\\u65b0\\u7528\\u6237\\u7acb\\u51cf\",\"full_amount\":\"\",\"price\":\"3\",\"is_random\":\"1\",\"pluginsname\":\"newuserreduction\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '1', '1553483809', '1553593711'), ('30', 'ucenter', '{\"login_sync_url\":\"\",\"login_async_url\":\"\",\"register_sync_url\":\"\",\"register_async_url\":\"\",\"logout_sync_url\":\"\",\"logout_async_url\":\"\",\"loginpwdupdate_async_url\":\"\",\"accounts_async_url\":\"\",\"pluginsname\":\"ucenter\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\"}', '0', '1554186010', '1554349799'), ('33', 'share', null, '1', '1555667312', '1555668223'), ('34', 'homemiddleadv', '{\"time_start\":\"2019-04-22 23:34:00\",\"time_end\":\"\",\"pluginsname\":\"homemiddleadv\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\",\"data_list\":{\"20190422180652622612\":{\"name\":\"\\u667a\\u80fdPad\",\"url\":\"http:\\/\\/shopxo.net\\/\",\"images_url\":\"\\/static\\/upload\\/images\\/plugins_homemiddleadv\\/2019\\/04\\/22\\/1555929400479636.jpg\",\"is_enable\":1,\"is_new_window_open\":1,\"operation_time\":1556182596,\"id\":\"20190422180652622612\"},\"20190422183713735111\":{\"name\":\"\\u667a\\u80fd\\u624b\\u673a\",\"url\":\"\",\"images_url\":\"\\/static\\/upload\\/images\\/plugins_homemiddleadv\\/2019\\/04\\/22\\/1555929400237551.jpg\",\"is_enable\":1,\"is_new_window_open\":0,\"operation_time\":1555988047,\"id\":\"20190422183713735111\"},\"20190422183742153442\":{\"name\":\"\\u667a\\u80fd\\u7535\\u8f6c\\u63a5\\u5934\",\"url\":\"\",\"images_url\":\"\\/static\\/upload\\/images\\/plugins_homemiddleadv\\/2019\\/04\\/22\\/1555929400780646.jpg\",\"is_enable\":1,\"is_new_window_open\":0,\"operation_time\":1555948369,\"id\":\"20190422183742153442\"},\"20190422183756326575\":{\"name\":\"\\u65b0\\u4e00\\u4ee3\\u667a\\u80fd\\u5e73\\u677f\",\"url\":\"\",\"images_url\":\"\\/static\\/upload\\/images\\/plugins_homemiddleadv\\/2019\\/04\\/22\\/1555929400647560.jpg\",\"is_enable\":1,\"is_new_window_open\":0,\"operation_time\":1555948385,\"id\":\"20190422183756326575\"}}}', '1', '1555917493', '1556182596'), ('35', 'footercustomerservice', '{\"is_only_home\":\"0\",\"pluginsname\":\"footercustomerservice\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\",\"data_list\":{\"20190423101219612886\":{\"name\":\"\\u7269\\u884c\\u5929\\u4e0b\",\"desc\":\"\\u591a\\u4ed3\\u76f4\\u53d1 \\u6781\\u901f\\u914d\\u9001\\u591a\\u4ed3\\u76f4\\u53d1 \\u6781\\u901f\\u914d\",\"images_url\":\"\\/static\\/upload\\/images\\/plugins_footercustomerservice\\/2019\\/04\\/23\\/1555990891552781.png\",\"is_enable\":1,\"operation_time\":1556182603,\"id\":\"20190423101219612886\"},\"20190423101429924371\":{\"name\":\"\\u7cbe\\u81f4\\u670d\\u52a1\",\"desc\":\"\\u7cbe\\u81f4\\u670d\\u52a1 \\u552e\\u540e\\u4fdd\\u969c\\u7cbe\\u81f4\\u670d\\u52a1 \\u552e\\u540e\\u4fdd\\u969c\",\"images_url\":\"\\/static\\/upload\\/images\\/plugins_footercustomerservice\\/2019\\/04\\/23\\/1555990891827973.png\",\"is_enable\":1,\"operation_time\":1555990919,\"id\":\"20190423101429924371\"},\"20190423101441929067\":{\"name\":\"\\u9000\\u6362\\u65e0\\u5fe7\",\"desc\":\"\\u653e\\u5fc3\\u8d2d\\u7269 \\u9000\\u8fd8\\u65e0\\u5fe7\\u653e\\u5fc3\\u8d2d\\u7269 \\u9000\\u8fd8\\u65e0\\u5fe7\",\"images_url\":\"\\/static\\/upload\\/images\\/plugins_footercustomerservice\\/2019\\/04\\/23\\/1555990891594648.png\",\"is_enable\":1,\"operation_time\":1555990931,\"id\":\"20190423101441929067\"},\"20190423101454021035\":{\"name\":\"\\u6ee1\\u51cf\\u6d3b\\u52a8\",\"desc\":\"\\u6ee1500\\u5143\\u7acb\\u51cf90\\uff0c\\u65b0\\u7528\\u6237\\u7acb\\u51cf200\",\"images_url\":\"\\/static\\/upload\\/images\\/plugins_footercustomerservice\\/2019\\/04\\/23\\/1555991139659862.png\",\"is_enable\":1,\"operation_time\":1555991141,\"id\":\"20190423101454021035\"}}}', '1', '1555984266', '1556263194'), ('36', 'membershiplevel', '{\"level_rules\":\"0\",\"pluginsname\":\"membershiplevel\",\"pluginscontrol\":\"admin\",\"pluginsaction\":\"save\",\"level_list\":{\"20190425155935996197\":{\"name\":\"VIP1\",\"rules_min\":\"0\",\"rules_max\":\"100\",\"images_url\":\"\",\"is_enable\":1,\"discount_rate\":\"0.9\",\"order_price\":\"100.00\",\"full_reduction_price\":\"10.00\",\"operation_time\":1556419988,\"id\":\"20190425155935996197\"},\"20190425160645024007\":{\"name\":\"VIP2\",\"rules_min\":\"100\",\"rules_max\":\"300\",\"images_url\":\"\",\"is_enable\":1,\"discount_rate\":\"0.8\",\"order_price\":0,\"full_reduction_price\":0,\"operation_time\":1556419992,\"id\":\"20190425160645024007\"},\"20190425161453658835\":{\"name\":\"VIP3\",\"rules_min\":\"300\",\"rules_max\":\"0\",\"images_url\":\"\",\"is_enable\":1,\"discount_rate\":\"0.7\",\"order_price\":0,\"full_reduction_price\":0,\"operation_time\":1556433455,\"id\":\"20190425161453658835\"}}}', '1', '1555984266', '1556433455'), ('37', 'wallet', null, '1', '1555984266', '1556437481'); COMMIT; -- ---------------------------- @@ -954,78 +952,6 @@ BEGIN; INSERT INTO `s_plugins_answers_slide` VALUES ('1', '品牌盛宴', '/static/upload/images/plugins_answers/2019/03/07/1551940388704924.jpg', '', '1', '1', '1551865738', '1553590786'), ('2', '你想要的', '/static/upload/images/plugins_answers/2019/03/07/1551940388179648.jpg', 'https://ask.shopxo.net/article/6', '1', '3', '1551866754', '1551940526'), ('3', '爱上潮流名店', '/static/upload/images/plugins_answers/2019/03/07/1551940310193935.jpg', 'https://shopxo.net/', '1', '0', '1551940433', '1551940506'); COMMIT; --- ---------------------------- --- Table structure for `s_plugins_petscms_help` --- ---------------------------- -DROP TABLE IF EXISTS `s_plugins_petscms_help`; -CREATE TABLE `s_plugins_petscms_help` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id', - `user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户id', - `pets_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '宠物id', - `contacts_name` char(30) NOT NULL DEFAULT '' COMMENT '联系人姓名', - `contacts_tel` char(30) NOT NULL DEFAULT '' COMMENT '联系人电话', - `contacts_weixin` char(30) NOT NULL DEFAULT '' COMMENT '联系人微信', - `province` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '所在省', - `city` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '所在市', - `county` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '所在县/区', - `address` char(80) NOT NULL DEFAULT '' COMMENT '详细地址', - `lng` decimal(13,10) unsigned NOT NULL DEFAULT '0.0000000000' COMMENT '经度', - `lat` decimal(13,10) unsigned NOT NULL DEFAULT '0.0000000000' 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 `user_id` (`user_id`), - KEY `pets_id` (`pets_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='宠物管理系统宠物丢失帮助数据 - 应用'; - --- ---------------------------- --- Table structure for `s_plugins_petscms_pets` --- ---------------------------- -DROP TABLE IF EXISTS `s_plugins_petscms_pets`; -CREATE TABLE `s_plugins_petscms_pets` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id', - `user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户id', - `pest_no` char(60) NOT NULL DEFAULT '' COMMENT '宠物编号', - `status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '状态(0正常, 1丢失, 2去世, 3关闭)', - `qrcode_images` char(255) NOT NULL DEFAULT '' COMMENT '宠物二维码', - `title` char(60) NOT NULL DEFAULT '' COMMENT '标题', - `name` char(30) NOT NULL DEFAULT '' COMMENT '名字', - `birthday` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '出生日期', - `type` char(60) NOT NULL DEFAULT '' COMMENT '类型', - `varieties` char(60) NOT NULL DEFAULT '' COMMENT '品种', - `gender` tinyint(2) NOT NULL DEFAULT '-1' COMMENT '性别(0公, 1母)', - `sterilization` tinyint(2) NOT NULL DEFAULT '-1' COMMENT '是否绝育(0否, 1是)', - `vaccine` tinyint(2) NOT NULL DEFAULT '-1' COMMENT '是否疫苗(0否, 1是)', - `photo` mediumtext NOT NULL COMMENT '相册(json数据)', - `content` mediumtext NOT NULL COMMENT '宠物简介', - `person_name` char(30) NOT NULL DEFAULT '' COMMENT '主人姓名', - `person_tel` char(30) NOT NULL DEFAULT '' COMMENT '主人电话', - `person_weixin` char(30) NOT NULL DEFAULT '' COMMENT '主人微信', - `lose_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '丢失-丢失时间', - `lose_reward_amount` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '丢失-悬赏金额', - `lose_features` char(255) NOT NULL DEFAULT '' COMMENT '丢失-宠物特征', - `lose_province` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '丢失-所在省', - `lose_city` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '丢失-所在市', - `lose_county` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '丢失-所在县/区', - `lose_address` char(80) NOT NULL DEFAULT '' COMMENT '丢失-详细地址', - `lose_lng` decimal(13,10) unsigned NOT NULL DEFAULT '0.0000000000' COMMENT '丢失-经度', - `lose_lat` decimal(13,10) unsigned NOT NULL DEFAULT '0.0000000000' 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 `pest_no` (`pest_no`), - KEY `type` (`type`), - KEY `gender` (`gender`), - KEY `user_id` (`user_id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='宠物管理系统宠物 - 应用'; - --- ---------------------------- --- Records of `s_plugins_petscms_pets` --- ---------------------------- -BEGIN; -INSERT INTO `s_plugins_petscms_pets` VALUES ('1', '90', '20190419163957282865', '0', '/static/upload/images/plugins_petscms/qrcode/2019/04/19/2019041916395788696.png', '11', '22', '1556035200', 'dog', '11', '0', '1', '0', '[\"\\/static\\/upload\\/images\\/plugins_petscms\\/2019\\/04\\/09\\/1554814711403578.jpg\",\"\\/static\\/upload\\/images\\/plugins_petscms\\/2019\\/04\\/09\\/1554814711403578.jpg\"]', '', '222', '17600222222', 'weixin-888', '0', '0.00', '', '0', '0', '0', '', '0.0000000000', '0.0000000000', '1555663197', '1555663852'); -COMMIT; - -- ---------------------------- -- Table structure for `s_power` -- ---------------------------- diff --git a/public/static/plugins/css/petscms/admin.css b/public/static/plugins/css/petscms/admin.css deleted file mode 100755 index 172d0b521..000000000 --- a/public/static/plugins/css/petscms/admin.css +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 首页 - */ -.petscms-content .index-list li { - padding: 10px; -} -.petscms-content .index-list li a { - background: #eee; - display: block; - padding: 20px 10px 10px 10px; - color: #666; - text-align: center; - min-height: 100px; -} -.petscms-content .index-list li a:hover { - background: #e3e3e3; -} -.petscms-content .index-list li a .title { - font-size: 20px; -} -.petscms-content .index-list li a .desc { - color: #999; -} - -/** - * 配置管理 - */ -.petscms-content .items { - margin: 10px 0 20px 0; - border-bottom: 1px dashed #f1f1f1; - padding-bottom: 20px; -} -.petscms-content .items .immages-tag { - border: 1px solid #eee; - text-align: center; - max-width: 100px; - padding: 5px; -} -.petscms-content .items .immages-tag img { - max-width: 100%; -} -.petscms-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/petscms/pets.css b/public/static/plugins/css/petscms/pets.css deleted file mode 100644 index 7c291e290..000000000 --- a/public/static/plugins/css/petscms/pets.css +++ /dev/null @@ -1,78 +0,0 @@ -/* 筛选 */ -.thin, .pay-list { overflow:hidden; } -.thin .so { width:66%; } -.thin_sub { font-weight:100; margin:10px 0px 0px 10px; cursor: pointer; } -.so-list { width:100%; margin-top: 20px; } -.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; } -.operation-nav { margin: 15px 0 10px 0; } -.row-qucode img { max-width: 100px; } -.row-qucode p { margin-top: 5px; } -.row-qucode a:hover, .row-qucode a:focus { text-decoration: none; } -.row-first { width: 20%; } -.row-first p { font-weight: 500; max-width: 240px; } -.row-first .am-slider { max-height: 130px; } -.row-first .am-slider .am-slides img { width: auto; max-height: 100%; margin: 0 auto; } -.data-list table.am-table .am-slides li { height: 150px; } -@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; } -} -.th-operation { - width: 120px; -} - -/** - * 添加/编辑页面 - */ -.base-view .am-form-group:last-child, .person-view .am-form-group:last-child, .lose-view .am-form-group:last-child {border-bottom: 0; } -form.form-validation h2 { font-weight: 700; font-size: 14px; } -form.form-validation .am-divider { margin: 10px auto; } -.lose-view { margin-top: 30px; } -form.form-validation .am-alert-secondary { background-color: #f8f8f8; } -form.form-validation .am-alert-warning { background-color: #fffbf7; } - -/** - * 地图、联动地址 - */ -form.form-validation .region-linkage .chosen-select { - display: -webkit-inline-box; - width: calc(33.3% - 3px) !important; -} -form.form-validation .region-linkage .chosen-select .chosen-single { - width: 100%; -} -form.form-validation #map { - width: 100%; - height: 350px; - margin-top: 5px; -} - -/** - * 帮助页面 - */ -#help-map { - width: 100%; - height: 100vh; -} \ No newline at end of file diff --git a/public/static/plugins/css/petscms/pets.detail.css b/public/static/plugins/css/petscms/pets.detail.css deleted file mode 100644 index f603bcb4d..000000000 --- a/public/static/plugins/css/petscms/pets.detail.css +++ /dev/null @@ -1,288 +0,0 @@ -/** - * 公共 - */ -.shop-navigation { - border-bottom: 2px solid #03A9F4; -} -.search-bar form { - border: 2px solid #03A9F4; -} -#ai-topsearch { - background: #03A9F4 none repeat scroll 0% 0%; -} -.goods-category-title, .navigation-user, .navigation-user .nav-user, .shop-navigation .am-btn { - background: #03A9F4; -} -.navigation-user * { - color: #ffe500; -} -.am-footer-default { - border-top: 2px solid #03A9F4; -} -.shop-navigation .am-btn, .shop-navigation .navigation-search input { - border-color: #03A9F4; -} -.shop-navigation .am-topbar-nav > li > a:hover, a:hover, a:focus { - color: #03A9F4; -} -.shop-navigation .am-topbar-nav > li > a:hover:after { - border-bottom-color: #03A9F4; -} - -/** - * 详情 - */ -.pets-detail { - margin-top: 10px; -} -.pets-detail .am-slider-a1 .am-control-nav li a.am-active { - background-color: #03A9F4; -} -.provide-submit, .base-share { - margin-top: 20px; -} -.pets-detail .am-btn-primary { - background-color: #03A9F4; - color: #fff !important; - border-color: #03A9F4; -} -.pets-detail .top { - overflow: hidden; -} -.spacing-nav-title { - color: #02a9f4; - margin-bottom: 10px; -} -.spacing-nav-title, .spacing-nav-title .text-wrapper { - background: #edf9ff; -} -.spacing-nav-title .line { - background: transparent; -} - -/** - * 未绑定 - */ -.pets-not-bind { - text-align: center; - max-width: 600px; - margin: auto; - margin-top: 30px; - margin-bottom: 50px; - padding: 0 5px; -} -.pets-not-bind i { - font-size: 60px; - color: #f0f0f0; -} -.pets-not-bind .am-alert-secondary { - margin-top: 0; - background: #fcfcfc; - border: 1px solid #f8f8f8; -} -.pets-not-bind .am-btn { - margin-top: 10px; -} - -/** - * 相关二维码 - */ -.pets-qrcode-related { - margin-top: 30px; -} -.pets-qrcode-related ul { - margin: 0 auto; - max-width: 600px; - overflow: hidden; - border: 1px solid; - border-top: 5px solid; - border-color: #1aa9f3; -} -.pets-qrcode-related li { - width: 50%; - float: left; - text-align: center; - padding: 20px; -} -.pets-qrcode-related li:first-child { - border-right: 1px solid #eee; -} -.pets-qrcode-related li:last-child { - border-left: 1px solid #fff; -} -.pets-qrcode-related li p { - font-size: 14px; - font-weight: 500; - color: #666; - margin-top: 5px; -} - -/** - * 左侧 - */ -.photo { - padding-left: 0; - padding-right: 0; -} - -/** - * 右侧 - */ -.base { - padding-right: 0; -} -.base h1 { - font-size: 18px; - font-weight: 600; - margin-bottom: 2px; -} -.base ul.basic { - background: #f8fdff; - padding: 0 10px; - overflow: hidden; - border: 1px solid #ebf9ff; -} -.base ul.basic li { - padding: 10px 0; - float: left; - width: 50%; - border-top: 1px solid #f0faff; -} -.base ul.basic li:first-child, .base ul.basic li:nth-child(2) { - border-top: 0; -} -.base ul.basic li span:first-child { - font-weight: 500; - margin-right: 10px; - border-right: 1px solid #d7f1ff; - padding-right: 10px; - color: #666; -} - -/** - * 丢失信息 - */ -.lose .am-alert-warning { - background-color: #ffeee1; - border-color: #ffb682; - color: #888; - margin-top: 20px; - margin-bottom: 5px; -} -.lose .lose-desc { - font-size: 16px; - color: #f00; -} -.lose ul.person { - overflow: hidden; -} -.lose ul.person li span:first-child { - font-weight: 500; - margin-right: 10px; - border-right: 1px solid #ffd5b5; - padding-right: 10px; -} -.lose ul.person { - margin-top: 5px; -} -.lose ul.person li { - padding: 8px 0; - border-top: 1px solid #ffe4d0; -} -.lose ul.person li:first-child { - border-top: 0; -} -.lose ul.person li.tel a { - color: #70cfff; -} -#map-view { - width: 100%; - height: 350px; -} - -/** - * 地图、联动地址 - */ -form.form-validation .map-address { - border-bottom: 0; - padding-bottom: 0; - margin-bottom: 10px; -} -form.form-validation .region-linkage .chosen-select { - display: -webkit-inline-box; - width: calc(33.3% - 3px) !important; -} -form.form-validation .region-linkage .chosen-select .chosen-single { - width: 100%; -} -form.form-validation #map { - width: 100%; - height: 300px; -} - -@media only screen and (min-width: 641px) { - .pets-detail { - padding: 0 5px; - } - .photo .am-slider { - border: 1px solid #eee; - } - .lose ul.person li { - float: left; - width: 50%; - } - .lose ul.person li:nth-child(2) { - border-top: 0; - } - .pets-qrcode-related li img { - max-width: 150px; - } -} -@media only screen and (min-width:1025px) { - /** - * 详情 - */ - .pets-detail { - padding: 0; - } -} -@media only screen and (max-width: 641px) { - .base, .lose, .content, .pets-qrcode-related { - padding: 0 5px; - } - .base h1 { - margin: 10px 0 5px 0; - } - .base ul.basic li span:first-child, .lose ul.person li span:first-child { - margin-right: 5px; - padding-right: 5px; - } - #map-view, form.form-validation #map { - height: 200px; - } - .provide-submit, .base-share-mobile { - margin: 0; - position: fixed; - left: 0; - bottom: 0; - width: 100%; - z-index: 2; - height: 35px; - } - .base-share-mobile { - background: #9bddff; - } - .base-share-mobile .plugins-share ul { - padding: 5px; - } - .base-share-mobile .plugins-share ul li { - margin-right: calc(10% - 12.5px); - margin-left: calc(10% - 12.5px); - } - .am-footer { - padding-bottom: 35px; - } - .pets-qrcode-related li img { - max-width: 100%; - } -} \ No newline at end of file diff --git a/public/static/plugins/css/petscms/petsadmin.css b/public/static/plugins/css/petscms/petsadmin.css deleted file mode 100644 index 1c762a5cf..000000000 --- a/public/static/plugins/css/petscms/petsadmin.css +++ /dev/null @@ -1,87 +0,0 @@ -/* 筛选 */ -.thin, .pay-list { overflow:hidden; } -.thin .so { width:66%; } -.thin_sub { font-weight:100; margin:10px 0px 0px 10px; cursor: pointer; } -.so-list { width:100%; margin-top: 20px; } -.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; } -.operation-nav { margin: 15px 0 10px 0; } -.row-qucode img { max-width: 100px; } -.row-qucode p { margin-top: 5px; } -.row-qucode a:hover, .row-qucode a:focus { text-decoration: none; } -.row-first { width: 20%; } -.row-first p { font-weight: 500; max-width: 240px; } -.row-first .am-slider { max-height: 130px; } -.row-first .am-slider .am-slides img { width: auto; max-height: 100%; margin: 0 auto; } -.data-list table.am-table .am-slides li { height: 150px; } -@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; } -} -.th-operation { - width: 120px; -} - -/** - * 添加/编辑页面 - */ -.base-view .am-form-group:last-child, .person-view .am-form-group:last-child, .lose-view .am-form-group:last-child {border-bottom: 0; } -form.form-validation h2 { font-weight: 700; font-size: 14px; } -form.form-validation .am-divider { margin: 10px auto; } -.lose-view { margin-top: 30px; } -form.form-validation .am-alert-secondary { background-color: #f8f8f8; } -form.form-validation .am-alert-warning { background-color: #fffbf7; } - - -/** - * 地图、联动地址 - */ -form.form-validation .region-linkage .chosen-select { - display: -webkit-inline-box; - width: calc(33.3% - 3px) !important; -} -form.form-validation .region-linkage .chosen-select .chosen-single { - width: 100%; -} -form.form-validation #map { - width: 100%; - height: 350px; - margin-top: 5px; -} - -/** - * 帮助页面 - */ -#help-map { - width: 100%; - height: 100vh; -} - -/** - * 公共 - */ -.am-slider-a1 { - -webkit-box-shadow: none; - box-shadow: none; -} diff --git a/public/static/plugins/images/petscms/default-images.jpg b/public/static/plugins/images/petscms/default-images.jpg deleted file mode 100644 index c3eb8295d..000000000 Binary files a/public/static/plugins/images/petscms/default-images.jpg and /dev/null differ diff --git a/public/static/plugins/images/petscms/index.html b/public/static/plugins/images/petscms/index.html deleted file mode 100755 index 0519ecba6..000000000 --- a/public/static/plugins/images/petscms/index.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/static/plugins/images/petscms/pets-default-images.jpg b/public/static/plugins/images/petscms/pets-default-images.jpg deleted file mode 100644 index 0cdab2a12..000000000 Binary files a/public/static/plugins/images/petscms/pets-default-images.jpg and /dev/null differ diff --git a/public/static/plugins/js/petscms/pets.js b/public/static/plugins/js/petscms/pets.js deleted file mode 100644 index dede4f049..000000000 --- a/public/static/plugins/js/petscms/pets.js +++ /dev/null @@ -1,15 +0,0 @@ -$(function() -{ - // 帮助-地图查看 - $('.pets-help .map-submit').on('click', function() - { - var lng = parseFloat($(this).data('lng')); - var lat = parseFloat($(this).data('lat')); - if(lng > 0 && lat > 0) - { - // 数据base64避免特殊字符 - var url = UrlFieldReplace('lat', window.btoa(lat), UrlFieldReplace('lng', window.btoa(lng), $('.pets-help').data('url'))); - ModalLoad(url, '地图', 'plugins-petscms-popup-modal-help'); - } - }); -}); \ No newline at end of file diff --git a/public/static/plugins/js/petscms/petsadmin.js b/public/static/plugins/js/petscms/petsadmin.js deleted file mode 100644 index dede4f049..000000000 --- a/public/static/plugins/js/petscms/petsadmin.js +++ /dev/null @@ -1,15 +0,0 @@ -$(function() -{ - // 帮助-地图查看 - $('.pets-help .map-submit').on('click', function() - { - var lng = parseFloat($(this).data('lng')); - var lat = parseFloat($(this).data('lat')); - if(lng > 0 && lat > 0) - { - // 数据base64避免特殊字符 - var url = UrlFieldReplace('lat', window.btoa(lat), UrlFieldReplace('lng', window.btoa(lng), $('.pets-help').data('url'))); - ModalLoad(url, '地图', 'plugins-petscms-popup-modal-help'); - } - }); -}); \ No newline at end of file diff --git a/public/static/upload/images/plugins_petscms/2019/04/09/1554814711403578.jpg b/public/static/upload/images/plugins_petscms/2019/04/09/1554814711403578.jpg deleted file mode 100755 index 43c4d9319..000000000 Binary files a/public/static/upload/images/plugins_petscms/2019/04/09/1554814711403578.jpg and /dev/null differ