diff --git a/application/admin/controller/AppConfig.php b/application/admin/controller/AppConfig.php index 992eca8c9..1baac4576 100755 --- a/application/admin/controller/AppConfig.php +++ b/application/admin/controller/AppConfig.php @@ -1,7 +1,8 @@ getField('only_tag,name,describe,value,error_tips'); - $this->assign('data', $data); + $this->assign('data', ConfigService::ConfigList()); // 是否 $this->assign('common_is_text_list', lang('common_is_text_list')); - $this->display('Index'); + return $this->fetch(); } /** @@ -58,7 +58,7 @@ class AppConfig extends Common */ public function Save() { - $this->MyConfigSave(); + return ConfigService::ConfigSave($_POST); } } ?> \ No newline at end of file diff --git a/application/admin/controller/AppHomeNav.php b/application/admin/controller/AppHomeNav.php index 5bc0917b3..d921b7b47 100755 --- a/application/admin/controller/AppHomeNav.php +++ b/application/admin/controller/AppHomeNav.php @@ -1,7 +1,8 @@ GetIndexWhere(); + $where = AppNavService::AppHomeNavListWhere($params); + + // 获取总数 + $total = AppNavService::AppHomeNavTotal($where); // 分页 - $number = MyC('admin_page_number'); - $page_param = array( + $page_params = array( 'number' => $number, - 'total' => $m->where($where)->count(), - 'where' => $param, - 'url' => url('Admin/AppHomeNav/Index'), + 'total' => $total, + 'where' => $params, + 'page' => isset($params['page']) ? intval($params['page']) : 1, + 'url' => url('admin/apphomenav/index'), ); - $page = new \base\Page($page_param); + $page = new \base\Page($page_params); + $this->assign('page_html', $page->GetPageHtml()); // 获取列表 - $list = $this->SetDataHandle($m->where($where)->limit($page->GetPageStarNumber(), $number)->order('is_enable desc, sort asc')->select()); - - // 参数 - $this->assign('param', $param); - - // 分页 - $this->assign('page_html', $page->GetPageHtml()); + $data_params = array( + 'm' => $page->GetPageStarNumber(), + 'n' => $number, + 'where' => $where, + 'field' => '*', + ); + $data = AppNavService::AppHomeNavList($data_params); + $this->assign('data_list', $data['data']); // 是否启用 $this->assign('common_is_enable_list', lang('common_is_enable_list')); @@ -76,95 +82,9 @@ class AppHomeNav extends Common // app事件类型 $this->assign('common_app_event_type', lang('common_app_event_type')); - // 数据列表 - $this->assign('list', $list); - $this->display('Index'); - } - - /** - * [SetDataHandle 数据处理] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-29T21:27:15+0800 - * @param [array] $data [手机管理-首页导航数据] - * @return [array] [处理好的数据] - */ - private function SetDataHandle($data) - { - if(!empty($data)) - { - $common_platform_type = lang('common_platform_type'); - $common_is_enable_tips = lang('common_is_enable_tips'); - $common_app_event_type = lang('common_app_event_type'); - foreach($data as &$v) - { - // 是否启用 - $v['is_enable_text'] = $common_is_enable_tips[$v['is_enable']]['name']; - - // 平台类型 - $v['platform_text'] = $common_platform_type[$v['platform']]['name']; - - // 跳转类型 - $v['event_type_text'] = $common_app_event_type[$v['event_type']]['name']; - - // 图片地址 - $v['images_url'] = empty($v['images_url']) ? '' : config('IMAGE_HOST').$v['images_url']; - - // 添加时间 - $v['add_time_text'] = date('Y-m-d H:i:s', $v['add_time']); - - // 更新时间 - $v['upd_time_text'] = date('Y-m-d H:i:s', $v['upd_time']); - } - } - return $data; - } - - /** - * [GetIndexWhere 列表条件] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-10T22:16:29+0800 - */ - private function GetIndexWhere() - { - $where = array(); - - // 模糊 - if(!empty($_REQUEST['keyword'])) - { - $where['name'] = array('like', '%'.I('keyword').'%'); - } - - // 是否更多条件 - if(I('is_more', 0) == 1) - { - if(I('is_enable', -1) > -1) - { - $where['is_enable'] = intval(I('is_enable', 0)); - } - if(I('event_type', -1) > -1) - { - $where['event_type'] = intval(I('event_type', 0)); - } - if(!empty($_REQUEST['platform'])) - { - $where['platform'] = I('platform'); - } - - // 表达式 - if(!empty($_REQUEST['time_start'])) - { - $where['add_time'][] = array('gt', strtotime(I('time_start'))); - } - if(!empty($_REQUEST['time_end'])) - { - $where['add_time'][] = array('lt', strtotime(I('time_end'))); - } - } - return $where; + // 参数 + $this->assign('params', $params); + return $this->fetch(); } /** @@ -176,9 +96,22 @@ class AppHomeNav extends Common */ public function SaveInfo() { - // 手机管理-首页导航信息 - $data = empty($_REQUEST['id']) ? array() : db('AppHomeNav')->find(I('id')); - $this->assign('data', $data); + // 参数 + $params = input(); + + // 数据 + if(!empty($params['id'])) + { + // 获取列表 + $data_params = array( + 'm' => 0, + 'n' => 1, + 'where' => ['id'=>intval($params['id'])], + 'field' => '*', + ); + $data = AppNavService::AppHomeNavList($data_params); + $this->assign('data', empty($data['data'][0]) ? [] : $data['data'][0]); + } // 所属平台 $this->assign('common_platform_type', lang('common_platform_type')); @@ -187,10 +120,12 @@ class AppHomeNav extends Common $this->assign('common_app_event_type', lang('common_app_event_type')); // 参数 - $this->assign('platform_type', 'alipay'); - $this->assign('param', array_merge($_POST, $_GET)); + $this->assign('params', $params); - $this->display('SaveInfo'); + // 编辑器文件存放地址 + $this->assign('editor_path_type', 'app_nav'); + + return $this->fetch(); } /** @@ -205,97 +140,13 @@ class AppHomeNav extends Common // 是否ajax请求 if(!IS_AJAX) { - $this->error('非法访问'); + return $this->error('非法访问'); } - // 图片 - $this->FileSave('images_url', 'file_images_url', 'app_home_nav'); - - // 添加 - if(empty($_POST['id'])) - { - $this->Add(); - - // 编辑 - } else { - $this->Edit(); - } - } - - /** - * [Add 手机管理-首页导航添加] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-18T16:20:59+0800 - */ - private function Add() - { - // 手机管理-首页导航模型 - $m = D('AppHomeNav'); - - // 数据自动校验 - if($m->create($_POST, 1)) - { - // 额外数据处理 - $m->name = I('name'); - $m->jump_url = I('jump_url'); - $m->event_type = intval(I('event_type', -1)); - $m->images_url = I('images_url'); - $m->platform = I('platform'); - $m->is_enable = intval(I('is_enable', 0)); - $m->bg_color = I('bg_color'); - $m->sort = intval(I('sort')); - $m->add_time = time(); - - // 数据添加 - if($m->add()) - { - $this->ajaxReturn('新增成功'); - } else { - $this->ajaxReturn('新增失败', -100); - } - } else { - $this->ajaxReturn($m->getError(), -1); - } - } - - /** - * [Edit 手机管理-首页导航编辑] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-17T22:13:40+0800 - */ - private function Edit() - { - // 手机管理-首页导航模型 - $m = D('AppHomeNav'); - - // 数据自动校验 - if($m->create($_POST, 2)) - { - // 额外数据处理 - $m->name = I('name'); - $m->jump_url = I('jump_url'); - $m->event_type = intval(I('event_type', -1)); - $m->images_url = I('images_url'); - $m->platform = I('platform'); - $m->is_enable = intval(I('is_enable', 0)); - $m->bg_color = I('bg_color'); - $m->sort = intval(I('sort')); - $m->upd_time = time(); - - // 更新数据库 - if($m->where(array('id'=>I('id')))->save()) - { - $this->ajaxReturn('编辑成功'); - } else { - $this->ajaxReturn('编辑失败或数据未改变', -100); - } - } else { - $this->ajaxReturn($m->getError(), -1); - } + // 开始处理 + $params = input(); + $ret = AppNavService::AppHomeNavSave($params); + return json($ret); } /** @@ -310,39 +161,14 @@ class AppHomeNav extends Common // 是否ajax请求 if(!IS_AJAX) { - $this->error('非法访问'); + return $this->error('非法访问'); } - // 参数处理 - $id = I('id'); - - // 删除数据 - if(!empty($id)) - { - // 模型 - $m = db('AppHomeNav'); - - // 是否存在 - $data = $m->find($id); - if(empty($data)) - { - $this->ajaxReturn('资源不存在或已被删除', -2); - } - if($data['is_enable'] == 1) - { - $this->ajaxReturn(lang('common_already_is_enable_error'), -3); - } - - // 删除 - if($m->where(array('id'=>$id))->delete() !== false) - { - $this->ajaxReturn('删除成功'); - } else { - $this->ajaxReturn('删除失败或资源不存在', -100); - } - } else { - $this->ajaxReturn('参数错误', -1); - } + // 开始处理 + $params = input(); + $params['user_type'] = 'admin'; + $ret = AppNavService::AppHomeNavDelete($params); + return json($ret); } /** @@ -354,19 +180,16 @@ class AppHomeNav extends Common */ public function StatusUpdate() { - // 参数 - if(empty($_POST['id']) || !isset($_POST['state'])) + // 是否ajax请求 + if(!IS_AJAX) { - $this->ajaxReturn('参数错误', -1); + return $this->error('非法访问'); } - // 数据更新 - if(db('AppHomeNav')->where(array('id'=>I('id')))->save(array('is_enable'=>I('state')))) - { - $this->ajaxReturn('编辑成功'); - } else { - $this->ajaxReturn('编辑失败或数据未改变', -100); - } + // 开始处理 + $params = input(); + $ret = AppNavService::AppHomeNavStatusUpdate($params); + return json($ret); } } ?> \ No newline at end of file diff --git a/application/admin/controller/AppMiniAlipayConfig.php b/application/admin/controller/AppMiniAlipayConfig.php index b2182cab2..32b154867 100755 --- a/application/admin/controller/AppMiniAlipayConfig.php +++ b/application/admin/controller/AppMiniAlipayConfig.php @@ -1,7 +1,8 @@ getField('only_tag,name,describe,value,error_tips'); - $this->assign('data', $data); + $this->assign('data', ConfigService::ConfigList()); - $this->display('Index'); + return $this->fetch(); } /** @@ -55,7 +55,7 @@ class AppMiniAlipayConfig extends Common */ public function Save() { - $this->MyConfigSave(); + return ConfigService::ConfigSave($_POST); } } ?> \ No newline at end of file diff --git a/application/admin/controller/AppMiniAlipayList.php b/application/admin/controller/AppMiniAlipayList.php index 3bb3f9363..9d9d43e49 100755 --- a/application/admin/controller/AppMiniAlipayList.php +++ b/application/admin/controller/AppMiniAlipayList.php @@ -1,7 +1,8 @@ Is_Power(); - // 当前小程序包名称 - $this->application_name = 'alipay'; - - // 原包地址/操作地址 - $this->old_path = ROOT_PATH.'AppMini'.DS.'Old'.DS.$this->application_name; - $this->new_path = ROOT_PATH.'AppMini'.DS.'New'.DS.$this->application_name; + // 参数 + $this->params = input(); + $params['application_name'] = 'alipay'; } /** @@ -50,42 +48,8 @@ class AppMiniAlipayList extends Common */ public function Index() { - $this->assign('data', $this->GetDataList()); - $this->display('Index'); - } - - /** - * [GetDataList 获取小程序生成列表] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2017-05-10T10:24:40+0800 - */ - private function GetDataList() - { - $result = array(); - if(is_dir($this->new_path)) - { - if($dh = opendir($this->new_path)) - { - while(($temp_file = readdir($dh)) !== false) - { - if($temp_file != '.' && $temp_file != '..') - { - $file_path = $this->new_path.DS.$temp_file; - $url = __MY_URL__.'AppMini'.DS.'New'.DS.$this->application_name.DS.$temp_file; - $result[] = [ - 'name' => $temp_file, - 'url' => substr($url, -4) == '.zip' ? $url : '', - 'size' => FileSizeByteToUnit(filesize($file_path)), - 'time' => date('Y-m-d H:i:s', filectime($file_path)), - ]; - } - } - closedir($dh); - } - } - return $result; + $this->assign('data', AppMiniService::DataList($this->params)); + return $this->fetch(); } /** @@ -97,56 +61,15 @@ class AppMiniAlipayList extends Common */ public function Created() { - // 配置内容 - $app_mini_alipay_title = MyC('common_app_mini_alipay_title'); - $app_mini_alipay_describe = MyC('common_app_mini_alipay_describe'); - if(empty($app_mini_alipay_title) || empty($app_mini_alipay_describe)) + // 是否ajax请求 + if(!IS_AJAX) { - $this->ajaxReturn('配置信息不能为空', -1); + $this->error('非法访问'); } - // 目录不存在则创建 - \base\FileUtil::CreateDir($this->new_path); - - // 复制包目录 - $new_dir = $this->new_path.DS.date('YmdHis'); - if(\base\FileUtil::CopyDir($this->old_path, $new_dir) != true) - { - $this->ajaxReturn('项目包复制失败', -2); - } - - // 校验基础文件是否存在 - if(!file_exists($new_dir.DS.'app.js') || !file_exists($new_dir.DS.'app.json')) - { - $this->ajaxReturn('包基础文件不存在,请重新生成', -3); - } - - // 替换内容 - // app.js - file_put_contents($new_dir.DS.'app.js', str_replace(['{{request_url}}', '{{application_title}}', '{{application_describe}}'], [__MY_URL__, $app_mini_alipay_title, $app_mini_alipay_describe], file_get_contents($new_dir.DS.'app.js'))); - if($status === false) - { - $this->ajaxReturn('基础配置替换失败', -4); - } - - // app.json - $status = file_put_contents($new_dir.DS.'app.json', str_replace(['{{application_title}}'], [$app_mini_alipay_title], file_get_contents($new_dir.DS.'app.json'))); - if($status === false) - { - $this->ajaxReturn('基础配置替换失败', -4); - } - - // 生成压缩包 - $zip = new \base\ZipFolder(); - if(!$zip->zip($new_dir.'.zip', $new_dir)) - { - $this->ajaxReturn('压缩包生成失败', -100); - } - - // 生成成功删除目录 - \base\FileUtil::UnlinkDir($new_dir); - - $this->ajaxReturn('生成成功', 0); + // 开始操作 + $ret = AppMiniService::Created($this->params); + return json($ret); } /** @@ -158,26 +81,15 @@ class AppMiniAlipayList extends Common */ public function Delete() { - // 是否ajax + // 是否ajax请求 if(!IS_AJAX) { $this->error('非法访问'); } - // 删除压缩包 - $path = $this->new_path.DS.I('id'); - if(substr($path, -4) == '.zip') - { - $status = \base\FileUtil::UnlinkFile($this->new_path.DS.I('id')); - } else { - $status = \base\FileUtil::UnlinkDir($this->new_path.DS.I('id')); - } - if($status) - { - $this->ajaxReturn('删除成功'); - } else { - $this->ajaxReturn('删除失败或资源不存在', -100); - } + // 开始操作 + $ret = AppMiniService::Delete($this->params); + return json($ret); } } ?> \ No newline at end of file diff --git a/application/admin/controller/AppSlide.php b/application/admin/controller/AppSlide.php deleted file mode 100755 index 3ba5b8ce5..000000000 --- a/application/admin/controller/AppSlide.php +++ /dev/null @@ -1,369 +0,0 @@ -Is_Login(); - - // 权限校验 - $this->Is_Power(); - } - - /** - * [Index 手机管理-轮播图片列表] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-06T21:31:53+0800 - */ - public function Index() - { - // 参数 - $param = array_merge($_POST, $_GET); - - // 模型对象 - $m = db('AppSlide'); - - // 条件 - $where = $this->GetIndexWhere(); - - // 分页 - $number = MyC('admin_page_number'); - $page_param = array( - 'number' => $number, - 'total' => $m->where($where)->count(), - 'where' => $param, - 'url' => url('Admin/AppSlide/Index'), - ); - $page = new \base\Page($page_param); - - // 获取列表 - $list = $this->SetDataHandle($m->where($where)->limit($page->GetPageStarNumber(), $number)->order('is_enable desc, sort asc')->select()); - - // 参数 - $this->assign('param', $param); - - // 分页 - $this->assign('page_html', $page->GetPageHtml()); - - // 是否启用 - $this->assign('common_is_enable_list', lang('common_is_enable_list')); - - // 所属平台 - $this->assign('common_platform_type', lang('common_platform_type')); - - // 事件类型 - $this->assign('common_app_event_type', lang('common_app_event_type')); - - // 数据列表 - $this->assign('list', $list); - $this->display('Index'); - } - - /** - * [SetDataHandle 数据处理] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-29T21:27:15+0800 - * @param [array] $data [手机管理-轮播图片数据] - * @return [array] [处理好的数据] - */ - private function SetDataHandle($data) - { - if(!empty($data)) - { - $common_platform_type = lang('common_platform_type'); - $common_is_enable_tips = lang('common_is_enable_tips'); - $common_app_event_type = lang('common_app_event_type'); - foreach($data as &$v) - { - // 是否启用 - $v['is_enable_text'] = $common_is_enable_tips[$v['is_enable']]['name']; - - // 平台类型 - $v['platform_text'] = $common_platform_type[$v['platform']]['name']; - - // 事件类型 - $v['event_type_text'] = $common_app_event_type[$v['event_type']]['name']; - - // 图片地址 - $v['images_url'] = empty($v['images_url']) ? '' : config('IMAGE_HOST').$v['images_url']; - - // 添加时间 - $v['add_time_text'] = date('Y-m-d H:i:s', $v['add_time']); - - // 更新时间 - $v['upd_time_text'] = date('Y-m-d H:i:s', $v['upd_time']); - } - } - return $data; - } - - /** - * [GetIndexWhere 列表条件] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-10T22:16:29+0800 - */ - private function GetIndexWhere() - { - $where = array(); - - // 模糊 - if(!empty($_REQUEST['keyword'])) - { - $where['name'] = array('like', '%'.I('keyword').'%'); - } - - // 是否更多条件 - if(I('is_more', 0) == 1) - { - if(I('is_enable', -1) > -1) - { - $where['is_enable'] = intval(I('is_enable', 0)); - } - if(I('event_type', -1) > -1) - { - $where['event_type'] = intval(I('event_type', 0)); - } - if(!empty($_REQUEST['platform'])) - { - $where['platform'] = I('platform'); - } - - // 表达式 - if(!empty($_REQUEST['time_start'])) - { - $where['add_time'][] = array('gt', strtotime(I('time_start'))); - } - if(!empty($_REQUEST['time_end'])) - { - $where['add_time'][] = array('lt', strtotime(I('time_end'))); - } - } - return $where; - } - - /** - * [SaveInfo 添加/编辑页面] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-14T21:37:02+0800 - */ - public function SaveInfo() - { - // 手机管理-轮播图片信息 - $data = empty($_REQUEST['id']) ? array() : db('AppSlide')->find(I('id')); - $this->assign('data', $data); - - // 所属平台 - $this->assign('common_platform_type', lang('common_platform_type')); - - // 事件类型 - $this->assign('common_app_event_type', lang('common_app_event_type')); - - // 参数 - $this->assign('param', array_merge($_POST, $_GET)); - - $this->display('SaveInfo'); - } - - /** - * [Save 手机管理-轮播图片添加/编辑] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-14T21:37:02+0800 - */ - public function Save() - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - // 图片 - $this->FileSave('images_url', 'file_images_url', 'app_slide'); - - // 添加 - if(empty($_POST['id'])) - { - $this->Add(); - - // 编辑 - } else { - $this->Edit(); - } - } - - /** - * [Add 手机管理-轮播图片添加] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-18T16:20:59+0800 - */ - private function Add() - { - // 手机管理-轮播图片模型 - $m = D('AppSlide'); - - // 数据自动校验 - if($m->create($_POST, 1)) - { - // 额外数据处理 - $m->name = I('name'); - $m->jump_url = I('jump_url'); - $m->event_type = intval(I('event_type', -1)); - $m->images_url = I('images_url'); - $m->platform = I('platform'); - $m->is_enable = intval(I('is_enable', 0)); - $m->sort = intval(I('sort')); - $m->add_time = time(); - - // 数据添加 - if($m->add()) - { - $this->ajaxReturn('新增成功'); - } else { - $this->ajaxReturn('新增失败', -100); - } - } else { - $this->ajaxReturn($m->getError(), -1); - } - } - - /** - * [Edit 手机管理-轮播图片编辑] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-17T22:13:40+0800 - */ - private function Edit() - { - // 手机管理-轮播图片模型 - $m = D('AppSlide'); - - // 数据自动校验 - if($m->create($_POST, 2)) - { - // 额外数据处理 - $m->name = I('name'); - $m->jump_url = I('jump_url'); - $m->event_type = intval(I('event_type', -1)); - $m->images_url = I('images_url'); - $m->platform = I('platform'); - $m->is_enable = intval(I('is_enable', 0)); - $m->sort = intval(I('sort')); - $m->upd_time = time(); - - // 更新数据库 - if($m->where(array('id'=>I('id')))->save()) - { - $this->ajaxReturn('编辑成功'); - } else { - $this->ajaxReturn('编辑失败或数据未改变', -100); - } - } else { - $this->ajaxReturn($m->getError(), -1); - } - } - - /** - * [Delete 手机管理-轮播图片删除] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-15T11:03:30+0800 - */ - public function Delete() - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - // 参数处理 - $id = I('id'); - - // 删除数据 - if(!empty($id)) - { - // 模型 - $m = db('AppSlide'); - - // 是否存在 - $data = $m->find($id); - if(empty($data)) - { - $this->ajaxReturn('资源不存在或已被删除', -2); - } - if($data['is_enable'] == 1) - { - $this->ajaxReturn(lang('common_already_is_enable_error'), -3); - } - - // 删除 - if($m->where(array('id'=>$id))->delete() !== false) - { - $this->ajaxReturn('删除成功'); - } else { - $this->ajaxReturn('删除失败或资源不存在', -100); - } - } else { - $this->ajaxReturn('参数错误', -1); - } - } - - /** - * [StatusUpdate 状态更新] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2017-01-12T22:23:06+0800 - */ - public function StatusUpdate() - { - // 参数 - if(empty($_POST['id']) || !isset($_POST['state'])) - { - $this->ajaxReturn('参数错误', -1); - } - - // 数据更新 - if(db('AppSlide')->where(array('id'=>I('id')))->save(array('is_enable'=>I('state')))) - { - $this->ajaxReturn('编辑成功'); - } else { - $this->ajaxReturn('编辑失败或数据未改变', -100); - } - } -} -?> \ No newline at end of file diff --git a/application/admin/controller/Brand.php b/application/admin/controller/Brand.php index af851d001..1634206fc 100755 --- a/application/admin/controller/Brand.php +++ b/application/admin/controller/Brand.php @@ -47,7 +47,7 @@ class Brand extends Common $number = 10; // 条件 - $where = BrandService::BrandListListWhere($params); + $where = BrandService::BrandListWhere($params); // 获取总数 $total = BrandService::BrandTotal($where); @@ -179,7 +179,7 @@ class Brand extends Common */ public function StatusUpdate() { - // 是否ajax请求 + // 是否ajax请求 if(!IS_AJAX) { return $this->error('非法访问'); diff --git a/application/admin/view/default/appconfig/index.html b/application/admin/view/default/appconfig/index.html index da70e3946..e544b9bef 100755 --- a/application/admin/view/default/appconfig/index.html +++ b/application/admin/view/default/appconfig/index.html @@ -4,20 +4,20 @@
-
+
diff --git a/application/admin/view/default/apphomenav/index.html b/application/admin/view/default/apphomenav/index.html index 48e7e89c8..61807ccfe 100755 --- a/application/admin/view/default/apphomenav/index.html +++ b/application/admin/view/default/apphomenav/index.html @@ -4,41 +4,41 @@
- +
- value="{{$param.keyword}}"{{/if}} /> + -
+
+ ~ - +
@@ -46,13 +46,13 @@ -
新增 + - @@ -65,9 +65,9 @@ - {{if !empty($list)}} - - + {{if !empty($data_list)}} + {{foreach $data_list as $v}} + - + {{/foreach}} @@ -109,8 +107,8 @@ - {{if !empty($list)}} - {{$page_html}} + {{if !empty($data_list)}} + {{$page_html|raw}} {{/if}} diff --git a/application/admin/view/default/apphomenav/save_info.html b/application/admin/view/default/apphomenav/save_info.html index 657e3e6ca..b1f8bfb72 100755 --- a/application/admin/view/default/apphomenav/save_info.html +++ b/application/admin/view/default/apphomenav/save_info.html @@ -4,30 +4,30 @@
- + - {{if empty($data['id'])}} 导航添加 {{else /}} 导航编辑 {{/if}} - 返回 + 返回
- value="{{$data.name}}"{{/if}} required /> +
- - + {{foreach $common_platform_type as $v}} {{if !in_array($v['value'], ['pc'])}} - + {{/if}} {{/foreach}} @@ -35,39 +35,39 @@
- - - + {{foreach $common_app_event_type as $v}} + {{/foreach}}
-

{{:lang('common_app_event_type_tips')}}

+

+ WEB页面
   1.以http开头
   2.并在小程序后台加入白名单

内部页面(小程序/APP内部地址)
   1.小程序或APP内部地址
   2.小程序以/pages开始
   3.例如:/pages/user/user
   4.支持带参数 ?x=xx

跳转原生地图查看指定位置
   1.以 | 竖线分割,分别顺序 名称|地址|经度|纬度
   2.例如:ShopXO|上海浦东新区张江高科技园区XXX号|121.626444|31.20843 +

- value="{{$data.event_value}}"{{/if}} /> +
- - value="{{$data.images_url}}"{{/if}}" data-validation-message="请选择需要上传的图片" readonly="readonly" value="{{$data.images_url}}"{{/if}} required /> - -
style="background-color:{{$data.bg_color}};"{{/if}}> - -
+
    +
  • + + +
  • +
+
+上传图片
- {{$data.bg_color}}{{/if}}" /> -
@@ -76,10 +76,10 @@
- +
- value="{{$data.id}}"{{/if}} /> +
diff --git a/application/admin/view/default/appminialipayconfig/index.html b/application/admin/view/default/appminialipayconfig/index.html index 232a96a5e..da8b7e324 100755 --- a/application/admin/view/default/appminialipayconfig/index.html +++ b/application/admin/view/default/appminialipayconfig/index.html @@ -4,22 +4,22 @@
-
+
- +
- +
- +
diff --git a/application/admin/view/default/appminialipaylist/index.html b/application/admin/view/default/appminialipaylist/index.html index d1a65d3e0..4c7114f94 100755 --- a/application/admin/view/default/appminialipaylist/index.html +++ b/application/admin/view/default/appminialipaylist/index.html @@ -5,12 +5,12 @@
- +
-
名称
{{$v.name}} {{$v.platform_text}} @@ -88,16 +88,14 @@ {{/if}} - {{$v.add_time_text}}{{$v.add_time_time}} - + - {{if $v['is_enable'] eq 0)}} - - {{/if}} +
@@ -20,25 +20,24 @@ - - + {{if !empty($data)}} + {{foreach $data as $v}} {{/foreach}} - {{/if}} - - + {{else /}} + {{/if}}
包名
{{$v.name}} {{$v.size}} {{$v.time}} - + {{if !empty($v.url)}} {{/if}} - +
没有相关数据
没有相关数据
diff --git a/application/admin/view/default/appslide/index.html b/application/admin/view/default/appslide/index.html deleted file mode 100755 index 1c5083579..000000000 --- a/application/admin/view/default/appslide/index.html +++ /dev/null @@ -1,120 +0,0 @@ -{{include file="public/header" /}} - - -
-
- - -
- value="{{$param.keyword}}"{{/if}} /> - - - -
- - - -
- ~ - -
-
-
- - - - -
新增 -
- - - - - - - - - - - - {{/foreach}} - {{else /}} - - {{/if}} - -
{{$v.name}}{{$v.platform_text}} - {{if !empty($v['images_url'])}} - - - - {{else /}} - 暂无图片 - {{/if}} - - {{$v.event_value}} - {{if !empty($v['event_value'])}} -
{{$v.event_type_text}} - {{/if}} -
- - - - - {{if $v['is_enable'] eq 0)}} - - {{/if}} -
没有相关数据
- - - - {{if !empty($list)}} - {{$page_html}} - {{/if}} - -
-
- - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/admin/view/default/appslide/save_info.html b/application/admin/view/default/appslide/save_info.html deleted file mode 100755 index 09f8c4918..000000000 --- a/application/admin/view/default/appslide/save_info.html +++ /dev/null @@ -1,84 +0,0 @@ -{{include file="public/header" /}} - - -
-
- -
- - - 返回 - -
- - value="{{$data.name}}"{{/if}} required /> -
-
- - -
- -
- - -
-
-
- -

WEB页面
   1.以http开头
   2.并在小程序后台加入白名单

内部页面(小程序/APP内部地址)
   1.小程序或APP内部地址
   2.小程序以/pages开始
   3.例如:/pages/user/user
   4.支持带参数 ?x=xx

跳转原生地图查看指定位置
   1.以 | 竖线分割,分别顺序 名称|地址|经度|纬度
   2.例如:ShopXO|上海浦东新区张江高科技园区XXX号|121.626444|31.20843

-
- - value="{{$data.event_value}}"{{/if}} /> -
- -
- - - value="{{$data.images_url}}"{{/if}}" data-validation-message="请选择需要上传的图片" readonly="readonly" value="{{$data.images_url}}"{{/if}} required /> - -
-
- -
- - -
- -
- - -
-
- value="{{$data.id}}"{{/if}} /> - -
- - -
-
- - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/admin/view/default/goods/index.html b/application/admin/view/default/goods/index.html index ed389dfe0..b300a6e10 100755 --- a/application/admin/view/default/goods/index.html +++ b/application/admin/view/default/goods/index.html @@ -39,7 +39,7 @@ @@ -149,7 +149,7 @@
- + diff --git a/application/service/AdminPowerService.php b/application/service/AdminPowerService.php index 01a5edb8f..269f476ba 100644 --- a/application/service/AdminPowerService.php +++ b/application/service/AdminPowerService.php @@ -111,12 +111,18 @@ class AdminPowerService $data['add_time'] = time(); if(db('Power')->insertGetId($data) > 0) { + // 清除用户权限数据 + self::PowerCacheDelete(); + return DataReturn('添加成功', 0); } return DataReturn('添加失败', -100); } else { if(db('Power')->where(['id'=>intval($params['id'])])->update($data) !== false) { + // 清除用户权限数据 + self::PowerCacheDelete(); + return DataReturn('更新成功', 0); } return DataReturn('更新失败', -100); diff --git a/application/service/AppMiniService.php b/application/service/AppMiniService.php new file mode 100644 index 000000000..94b045aae --- /dev/null +++ b/application/service/AppMiniService.php @@ -0,0 +1,194 @@ + $temp_file, + 'url' => substr($url, -4) == '.zip' ? $url : '', + 'size' => FileSizeByteToUnit(filesize($file_path)), + 'time' => date('Y-m-d H:i:s', filectime($file_path)), + ]; + } + } + closedir($dh); + } + } + return $result; + } + + /** + * 源码包生成 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2018-12-21 + * @desc description + * @param [array] $params [输入参数] + */ + public static function Created($params = []) + { + // 初始化 + self::Init($params); + + // 配置内容 + $app_mini_alipay_title = MyC('common_app_mini_alipay_title'); + $app_mini_alipay_describe = MyC('common_app_mini_alipay_describe'); + if(empty($app_mini_alipay_title) || empty($app_mini_alipay_describe)) + { + return DataReturn('配置信息不能为空', -1); + } + + // 源码包目录是否存在 + if(!is_dir(self::$new_root)) + { + return DataReturn('源码包目录不存在', -1); + } + + // 源码包目录是否有权限 + if(!is_writable(self::$new_root)) + { + return DataReturn('源码包目录没有权限', -1); + } + + // 目录不存在则创建 + \base\FileUtil::CreateDir(self::$new_path); + + // 复制包目录 + $new_dir = self::$new_path.DS.date('YmdHis'); + if(\base\FileUtil::CopyDir(self::$old_path, $new_dir) != true) + { + return DataReturn('项目包复制失败', -2); + } + + // 校验基础文件是否存在 + if(!file_exists($new_dir.DS.'app.js') || !file_exists($new_dir.DS.'app.json')) + { + return DataReturn('包基础文件不存在,请重新生成', -3); + } + + // 替换内容 + // app.js + $status = file_put_contents($new_dir.DS.'app.js', str_replace(['{{request_url}}', '{{application_title}}', '{{application_describe}}'], [__MY_URL__, $app_mini_alipay_title, $app_mini_alipay_describe], file_get_contents($new_dir.DS.'app.js'))); + if($status === false) + { + return DataReturn('基础配置替换失败', -4); + } + + // app.json + $status = file_put_contents($new_dir.DS.'app.json', str_replace(['{{application_title}}'], [$app_mini_alipay_title], file_get_contents($new_dir.DS.'app.json'))); + if($status === false) + { + return DataReturn('基础配置替换失败', -4); + } + + // 生成压缩包 + $zip = new \base\ZipFolder(); + if(!$zip->zip($new_dir.'.zip', $new_dir)) + { + return DataReturn('压缩包生成失败', -100); + } + + // 生成成功删除目录 + \base\FileUtil::UnlinkDir($new_dir); + + return DataReturn('生成成功', 0); + } + + /** + * 源码包删除 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2018-12-21 + * @desc description + * @param [array] $params [输入参数] + */ + public static function Delete($params = []) + { + // 参数 + if(empty($params['id'])) + { + return DataReturn('操作id不能为空', -10); + } + + // 初始化 + self::Init($params); + + // 删除压缩包 + $path = self::$new_path.DS.$params['id']; + if(substr($path, -4) == '.zip') + { + $status = \base\FileUtil::UnlinkFile($path); + } else { + $status = \base\FileUtil::UnlinkDir($path); + } + if($status) + { + return DataReturn('删除成功'); + } + return DataReturn('删除失败或资源不存在', -100); + } +} +?> \ No newline at end of file diff --git a/application/service/AppNavService.php b/application/service/AppNavService.php new file mode 100644 index 000000000..f1042da86 --- /dev/null +++ b/application/service/AppNavService.php @@ -0,0 +1,305 @@ +where($where)->order($order_by)->limit($m, $n)->select(); + if(!empty($data)) + { + $common_platform_type = lang('common_platform_type'); + $common_is_enable_tips = lang('common_is_enable_tips'); + $common_app_event_type = lang('common_app_event_type'); + $image_host = config('IMAGE_HOST'); + foreach($data as &$v) + { + // 是否启用 + if(isset($v['is_enable'])) + { + $v['is_enable_text'] = $common_is_enable_tips[$v['is_enable']]['name']; + } + + // 平台类型 + if(isset($v['platform'])) + { + $v['platform_text'] = $common_platform_type[$v['platform']]['name']; + } + + // 事件类型 + if(isset($v['event_type']) && $v['event_type'] != -1) + { + $v['event_type_text'] = $common_app_event_type[$v['event_type']]['name']; + } + + // 图片地址 + if(isset($v['images_url'])) + { + $v['images_url_old'] = $v['images_url']; + $v['images_url'] = empty($v['images_url']) ? '' : $image_host.$v['images_url']; + } + + // 时间 + if(isset($v['add_time'])) + { + $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']); + } + if(isset($v['upd_time'])) + { + $v['upd_time_time'] = date('Y-m-d H:i:s', $v['upd_time']); + $v['upd_time_date'] = date('Y-m-d', $v['upd_time']); + } + } + } + return DataReturn('处理成功', 0, $data); + } + + /** + * 首页导航总数 + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-10T22:16:29+0800 + * @param [array] $where [条件] + */ + public static function AppHomeNavTotal($where) + { + return (int) db('AppHomeNav')->where($where)->count(); + } + + /** + * 首页导航列表条件 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2018-09-29 + * @desc description + * @param [array] $params [输入参数] + */ + public static function AppHomeNavListWhere($params = []) + { + $where = []; + + if(!empty($params['keywords'])) + { + $where[] = ['name', 'like', '%'.$params['keywords'].'%']; + } + + // 是否更多条件 + if(isset($params['is_more']) && $params['is_more'] == 1) + { + // 等值 + if(isset($params['is_enable']) && $params['is_enable'] > -1) + { + $where[] = ['is_enable', '=', intval($params['is_enable'])]; + } + if(isset($params['event_type']) && $params['event_type'] > -1) + { + $where[] = ['event_type', '=', intval($params['event_type'])]; + } + if(!empty($params['platform'])) + { + $where[]= ['platform', '=', $params['platform']]; + } + + 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-12-19 + * @desc description + * @param [array] $params [输入参数] + */ + public static function AppHomeNavSave($params = []) + { + // 请求类型 + $p = [ + [ + 'checked_type' => 'length', + 'key_name' => 'name', + 'checked_data' => '2,60', + 'error_msg' => '名称长度 2~60 个字符', + ], + [ + 'checked_type' => 'in', + 'key_name' => 'platform', + 'checked_data' => array_column(lang('common_platform_type'), 'value'), + 'error_msg' => '平台类型有误', + ], + [ + 'checked_type' => 'in', + 'key_name' => 'event_type', + 'checked_data' => array_column(lang('common_app_event_type'), 'value'), + 'is_checked' => 2, + 'error_msg' => '事件值类型有误', + ], + [ + 'checked_type' => 'length', + 'key_name' => 'event_value', + 'checked_data' => '255', + 'error_msg' => '事件值最多 255 个字符', + ], + [ + 'checked_type' => 'empty', + 'key_name' => 'images_url', + 'checked_data' => '255', + 'error_msg' => '请上传图片', + ], + [ + 'checked_type' => 'length', + 'key_name' => 'sort', + 'checked_data' => '3', + 'error_msg' => '顺序 0~255 之间的数值', + ], + ]; + $ret = params_checked($params, $p); + if($ret !== true) + { + return DataReturn($ret, -1); + } + + // 附件 + $data_fields = ['images_url']; + $attachment = ResourcesService::AttachmentParams($params, $data_fields); + + // 数据 + $data = [ + 'name' => $params['name'], + 'platform' => $params['platform'], + 'event_type' => isset($params['event_type']) ? intval($params['event_type']) : -1, + 'event_value' => $params['event_value'], + 'images_url' => $attachment['data']['images_url'], + 'bg_color' => isset($params['bg_color']) ? $params['bg_color'] : '', + 'sort' => intval($params['sort']), + 'is_enable' => isset($params['is_enable']) ? intval($params['is_enable']) : 0, + ]; + + if(empty($params['id'])) + { + $data['add_time'] = time(); + if(db('AppHomeNav')->insertGetId($data) > 0) + { + return DataReturn('添加成功', 0); + } + return DataReturn('添加失败', -100); + } else { + $data['upd_time'] = time(); + if(db('AppHomeNav')->where(['id'=>intval($params['id'])])->update($data)) + { + return DataReturn('编辑成功', 0); + } + return DataReturn('编辑失败', -100); + } + } + + /** + * 首页导航删除 + * @author Devil + * @blog http://gong.gg/ + * @version 1.0.0 + * @date 2018-12-18 + * @desc description + * @param [array] $params [输入参数] + */ + public static function AppHomeNavDelete($params = []) + { + // 请求参数 + $p = [ + [ + 'checked_type' => 'empty', + 'key_name' => 'id', + 'error_msg' => '操作id有误', + ], + ]; + $ret = params_checked($params, $p); + if($ret !== true) + { + return DataReturn($ret, -1); + } + + // 删除操作 + if(db('AppHomeNav')->where(['id'=>$params['id']])->delete()) + { + return DataReturn('删除成功'); + } + + return DataReturn('删除失败或资源不存在', -100); + } + + /** + * 首页导航状态更新 + * @author Devil + * @blog http://gong.gg/ + * @version 0.0.1 + * @datetime 2016-12-06T21:31:53+0800 + * @param [array] $params [输入参数] + */ + public static function AppHomeNavStatusUpdate($params = []) + { + // 请求参数 + $p = [ + [ + 'checked_type' => 'empty', + 'key_name' => 'id', + 'error_msg' => '操作id有误', + ], + [ + 'checked_type' => 'in', + 'key_name' => 'state', + 'checked_data' => [0,1], + 'error_msg' => '状态有误', + ], + ]; + $ret = params_checked($params, $p); + if($ret !== true) + { + return DataReturn($ret, -1); + } + + // 数据更新 + if(db('AppHomeNav')->where(['id'=>intval($params['id'])])->update(['is_enable'=>intval($params['state'])])) + { + return DataReturn('编辑成功'); + } + return DataReturn('编辑失败或数据未改变', -100); + } +} +?> \ No newline at end of file diff --git a/application/service/BrandService.php b/application/service/BrandService.php index d77b2e5b6..62544f807 100755 --- a/application/service/BrandService.php +++ b/application/service/BrandService.php @@ -24,7 +24,7 @@ class BrandService { $where = empty($params['where']) ? [] : $params['where']; $field = empty($params['field']) ? '*' : $params['field']; - $order_by = empty($params['order_by']) ? 'id desc' : trim($params['order_by']); + $order_by = empty($params['order_by']) ? 'sort asc' : trim($params['order_by']); $m = isset($params['m']) ? intval($params['m']) : 0; $n = isset($params['n']) ? intval($params['n']) : 10; @@ -34,7 +34,7 @@ class BrandService if(!empty($data)) { $common_is_enable_tips = lang('common_is_enable_tips'); - $images_host = config('IMAGE_HOST'); + $image_host = config('IMAGE_HOST'); foreach($data as &$v) { // 是否启用 @@ -53,7 +53,7 @@ class BrandService if(isset($v['logo'])) { $v['logo_old'] = $v['logo']; - $v['logo'] = empty($v['logo']) ? '' : $images_host.$v['logo']; + $v['logo'] = empty($v['logo']) ? '' : $image_host.$v['logo']; } // 时间 @@ -94,7 +94,7 @@ class BrandService * @desc description * @param [array] $params [输入参数] */ - public static function BrandListListWhere($params = []) + public static function BrandListWhere($params = []) { $where = []; @@ -174,11 +174,11 @@ class BrandService $brand = db('Brand')->where($brand_where)->field('id,name,logo,website_url')->select(); if(!empty($brand)) { - $images_host = config('IMAGE_HOST'); + $image_host = config('IMAGE_HOST'); foreach($brand as &$v) { $v['logo_old'] = $v['logo']; - $v['logo'] = empty($v['logo']) ? null : $images_host.$v['logo']; + $v['logo'] = empty($v['logo']) ? null : $image_host.$v['logo']; $v['website_url'] = empty($v['website_url']) ? null : $v['website_url']; } } diff --git a/application/service/SlideService.php b/application/service/SlideService.php index 8541e7c6c..a9cc4d301 100644 --- a/application/service/SlideService.php +++ b/application/service/SlideService.php @@ -56,6 +56,7 @@ class SlideService // 图片地址 if(isset($v['images_url'])) { + $v['images_url_old'] = $v['images_url']; $v['images_url'] = empty($v['images_url']) ? '' : $image_host.$v['images_url']; } diff --git a/public/appmini/index.html b/public/appmini/index.html new file mode 100755 index 000000000..0519ecba6 --- /dev/null +++ b/public/appmini/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/appmini/new/.gitignore b/public/appmini/new/.gitignore new file mode 100755 index 000000000..c96a04f00 --- /dev/null +++ b/public/appmini/new/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file diff --git a/public/appmini/old/alipay/README.md b/public/appmini/old/alipay/README.md new file mode 100755 index 000000000..207019d9d --- /dev/null +++ b/public/appmini/old/alipay/README.md @@ -0,0 +1 @@ +支付宝小程序 \ No newline at end of file diff --git a/public/appmini/old/alipay/app.acss b/public/appmini/old/alipay/app.acss new file mode 100755 index 000000000..37843798b --- /dev/null +++ b/public/appmini/old/alipay/app.acss @@ -0,0 +1,274 @@ +/* 框架样式覆盖 */ +.a-textarea-control textarea { font-size: 12px; } + +/* 公共样式 */ +page { + background: #f5f5f5; + color: #4a4a4a; +} +page, textarea { + font-size: 28rpx; +} + +input[type="text"], +input[type="number"], +input[type="idcard"], +input[type="digit"], +textarea { + -webkit-appearance: none; + border-radius: 5px; +} + +/* 导航分割 */ +.spacing-nav-title { + position: relative; + color: #d2364c; + text-align: center; + background-color: #ffffff; + height: 80rpx; + line-height: 80rpx; +} +.spacing-nav-title .line { + display: inline-block; + width: 50%; + height: 1px; + background: #d2364c; + position: absolute; + left: 50%; + top: 50%; + -webkit-transform: translate(-50%,-50%); + -ms-transform: translate(-50%,-50%); + transform: translate(-50%,-50%); +} +.spacing-nav-title .text-wrapper { + position: relative; + display: inline-block; + padding: 0 8px; + background-color: #ffffff; + font-size: 36rpx; + font-weight: bold; +} + +/* 模块分割间距 */ +.spacing { padding-top: 20rpx; } +.spacing-10 { padding-top: 10rpx; } +.spacing-mb { margin-bottom: 20rpx; } +.spacing-mt { margin-top: 20rpx; } + +/* 在线客服 */ +.customer-service { + position: fixed; + bottom: 100rpx; + right: 0; +} +.customer-service image { + width: 80rpx; + height: 80rpx; + margin-right: 20rpx; +} + + +.drift { position: fixed; left: -1000px; } + +.nav-submit-fixed { background: #eee; height: 46px; position: fixed; bottom: 0; z-index: 10; } + +.tips { background: #ffffeb url('/images/tips.png') no-repeat 5rpx 12rpx; background-size: 35rpx 35rpx; color: #f7b240; border: 1px solid #faebd2; line-height: 36rpx; padding: 5px 5px 5px 20px; font-size: 26rpx; border-radius: 2px; display: block; } + +.data-loding image { width: 60px; height: 60px; background-size: 80% 80% !important; } + + +/* 边框 */ +.br { border: solid 1px #efefef; } +.br-b { border-bottom: solid 1px #efefef; } +.br-t { border-top: solid 1px #efefef; } +.br-l { border-left: solid 1px #efefef; } +.br-r { border-right: solid 1px #efefef; } + +/* 虚线边框 */ +.br-b-dashed { border-bottom: dashed 1px #efefef; } +.br-t-dashed { border-top: dashed 1px #efefef; } +.br-l-dashed { border-left: dashed 1px #efefef; } +.br-r-dashed { border-right: dashed 1px #efefef; } + +/* 箭头符号 */ +.arrow-right { background-image: url('data:image/svg+xml;charset=utf-8,'); background-size: 15px 10px; background-repeat: no-repeat; background-position: center right; } + + +/* 常用样式 */ +.fl { float: left; } +.fr { float: right; } +.bg-white { background-color: #fff; } +.wh-auto { width: 100%; } +.tc { text-align: center; } +.tl { text-align: left; } +.tr { text-align: right; } +.oh { overflow: hidden; } +.dis-none { display: none; } +.dis-block { display: block; } + +.cr-main { color: #d2364c; } +.cr-666 { color: #666; } +.cr-888 { color: #888; } +.cr-ccc { color: #ccc; } +.cr-fff { color: #fff; } + +.my-btn-default{ + font-size: 38rpx; + color: #fff; + border: none; + background-color:#d2364c; + border-radius: 2px; +} +.my-btn-default.btn-disabled{ + background-color: #a6a6a6; + color: #fff; +} +.my-btn-gray{ + font-size: 30rpx; + color: #fff; + border: none; + background-color:#a6a6a6; + border-radius: 2px; +} + +/* 文字超出部分使用省略号 */ +.single-text { + -o-text-overflow: ellipsis; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + max-width: 100%; +} +.multi-text { + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; +} + + +/* 没有数据状态/处理错误/加载中 */ +.no-data-box { + padding: 80rpx 0; +} +.no-data-box image { + width: 160rpx; + margin-bottom: 30rpx; +} +.no-data-box .no-data-tips { + font-size: 28rpx; + color: #a6a6a6; +} +.no-data-loding { + padding-top: 15%; + padding-bottom: 10px; +} + +/* 底线 */ +.data-bottom-line{ + padding: 40rpx; + overflow: hidden; +} +.data-bottom-line view { + width: 33.3%; +} +.data-bottom-line .left, .data-bottom-line .right{ + margin-top: 5px; + border-bottom: 1px solid #e1e1e1; +} +.data-bottom-line .msg{ + color: #999; + text-align: center; + font-size: 24rpx; +} + +/* 业务公共 */ +.copyright { + color: #a5a5a5; + text-align: center; + padding: 20rpx 0; +} +.copyright .title { + font-size: 30rpx; + font-weight: 500; + margin-bottom: 5rpx; +} +.copyright .text { + font-size: 26rpx; + font-weight: 400; +} + +.sales-price { + color: #f40; + font-weight: bold; + font-size: 32rpx; +} +.original-price { + color: #888; + font-size: 26rpx; + text-decoration: line-through; + margin-left: 10rpx; +} + +.submit-fixed { + position: fixed; + left: 0; + bottom: 0; + background: #d2364c; + color: #fff; + border: none; + width: 100%; +} + +.bg-main, .bg-primary, .bg-warning { + color: #fff; + border: 0; + font-size: 34rpx; +} +.bg-main { + background: #d2364c; +} +.bg-primary { + background: #ed6977; +} +.bg-warning { + background: #F37B1D; +} +.bg-active-main { + background: #d2364c !important; + color: #fff !important; +} + +.submit-bottom { + height: 85rpx; + line-height: 85rpx; + font-size: 32rpx; + border-radius: 0; +} +.bg-main.a-button-disabled { + background: #fbe0e5; + color: #f7b6c2; +} +.bg-warning.a-button-disabled { + background: #ffcda6; + color: #fdae70; +} +.bg-primary.a-button-disabled { + background: #ffd2d7; + color: #ffa0ab; +} + +.nav-back { + position: fixed; + left: 0; + bottom: 10%; +} + +/* + 滚动标签高度 +*/ +.scroll-box { + height: 100vh; +} \ No newline at end of file diff --git a/public/appmini/old/alipay/app.js b/public/appmini/old/alipay/app.js new file mode 100755 index 000000000..6ca42220b --- /dev/null +++ b/public/appmini/old/alipay/app.js @@ -0,0 +1,486 @@ +App({ + data: { + // 用户信息缓存key + cache_user_info_key: "cache_shop_user_info_key", + + // 用户站点信息缓存key + cache_user_merchant_key: "cache_shop_user_merchant_key", + + // 设备信息缓存key + cache_system_info_key: "cache_shop_system_info_key", + + // 用户地址选择缓存key + cache_buy_user_address_select_key: "cache_buy_user_address_select_key", + + // 用户传入信息缓存key + cache_launch_info_key: "cache_shop_launch_info_key", + + // 默认用户头像 + default_user_head_src: "/images/default-user.png", + + // 成功圆形提示图片 + default_round_success_icon: "/images/default-round-success-icon.png", + + // 错误圆形提示图片 + default_round_error_icon: "/images/default-round-error-icon.png", + + + // 页面标题 + common_pages_title: { + "goods_search": "商品搜索", + "goods_detail": "商品详情", + "goods_attribute": "属性", + "user_address": "我的地址", + "user_address_save_add": "新增地址", + "user_address_save_edit": "编辑地址", + "buy": "订单确认", + "user_order": "我的订单", + "user_order_detail": "订单详情", + "user_favor": "我的收藏", + "answer_form": "留言", + "answer_list": "问答", + "user_answer_list": "我的留言", + "user": "用户中心", + "goods_category": "分类", + "cart": "购物车", + "message": "消息", + "user_integral": "我的积分", + "user_goods_browse": "我的足迹", + }, + + // 请求地址 + request_url: "{{request_url}}", + //request_url: "https://demo.shopxo.net/", + //request_url: 'http://localhost/project/shopxo/', + + // 基础信息 + application_title: "{{application_title}}", + application_describe: "{{application_describe}}", + }, + + /** + * 小程序初始化 + */ + onLaunch(options) { + // 设置设备信息 + this.set_system_info(); + + // 参数缓存 + my.setStorage({ + key: this.data.cache_launch_info_key, + data: options.query || null + }); + // 启动query参数处理 + this.startup_query(options.query); + }, + + /** + * 启动query参数处理 + */ + startup_query(params) { + // 没有启动参数则返回 + if ((params || null) == null) { + return false; + } + + // 启动处理类型 + var type = params.type || null; + switch (type) { + // type=page + case "page": + // 页面 + var page = params.page || null; + + // 参数名 + var params_field = params.params_field || null; + + // 参数值 + var params_value = params.params_value || null; + + // 页面跳转 + if(page != null) + { + my.navigateTo({ + url: "/pages/" + page + "/" + page + "?" + params_field + "=" + params_value + }); + } + break; + + // type=view + case "view" : + var url = params.url || null; + + // 页面跳转 + if(url != null) + { + my.navigateTo({ + url: '/pages/web-view/web-view?url='+url + }); + } + break; + + // 默认 + default: + break; + } + }, + + /** + * 获取设备信息 + */ + get_system_info() { + let system_info = my.getStorageSync({ + key: this.data.cache_system_info_key + }); + if ((system_info.data || null) == null) { + return this.set_system_info(); + } + return system_info.data; + }, + + /** + * 设置设备信息 + */ + set_system_info() { + var system_info = my.getSystemInfoSync(); + my.setStorage({ + key: this.data.cache_system_info_key, + data: system_info + }); + return system_info; + }, + + /** + * 请求地址生成 + */ + get_request_url(a, c, m, params) { + a = a || "Index"; + c = c || "Index"; + m = m || "Api"; + params = params || ""; + if (params != "" && params.substr(0, 1) != "&") { + params = "&" + params; + } + var user = this.GetUserCacheInfo(); + var app_client_user_id = user == false ? "" : user.alipay_openid; + var user_id = user == false ? 0 : user.id; + var nickname = user == false ? "" : user.nickname; + return ( + this.data.request_url + + "api.php?m=" + + m + + "&c=" + + c + + "&a=" + + a + + "&application_client=default&&application=app&application_client_type=alipay&application_user_id=" + + app_client_user_id + + "&user_id=" + + user_id + + "&nickname=" + + nickname + + "&ajax=ajax" + + params + ); + }, + + /** + * 获取用户信息,信息不存在则唤醒授权 + * object 回调操作对象 + * method 回调操作对象的函数 + * return 有用户数据直接返回, 则回调调用者 + */ + GetUserInfo(object, method) { + var user = this.GetUserCacheInfo(); + if (user == false) { + // 唤醒用户授权 + this.UserAuthCode(object, method); + + return false; + } else { + return user; + } + }, + + /** + * 从缓存获取用户信息 + */ + GetUserCacheInfo() { + var user = my.getStorageSync({ key: this.data.cache_user_info_key }); + if ((user.data || null) == null) { + return false; + } + return user.data; + }, + + /** + * 用户授权 + * object 回调操作对象 + * method 回调操作对象的函数 + */ + UserAuthCode(object, method) { + // 邀请人参数 + var params = my.getStorageSync({key: this.data.cache_launch_info_key}); + var referrer = (params.data == null) ? 0 : (params.data.referrer || 0); + + // 加载loding + my.showLoading({ content: "授权中..." }); + + // 请求授权接口 + my.getAuthCode({ + scopes: "auth_user", + success: res => { + if (res.authCode) { + my.httpRequest({ + url: this.get_request_url("GetAlipayUserInfo", "User"), + method: "POST", + data: { + authcode: res.authCode, + referrer: referrer + }, + dataType: "json", + success: res => { + my.hideLoading(); + if (res.data.code == 0) { + my.setStorage({ + key: this.data.cache_user_info_key, + data: res.data.data + }); + + if (typeof object === "object" && (method || null) != null) { + object[method](); + } + } else { + my.showToast({ + type: "fail", + content: res.data.msg, + duration: 3000 + }); + } + }, + fail: () => { + my.hideLoading(); + + my.showToast({ + type: "fail", + content: "服务器请求出错", + duration: 3000 + }); + } + }); + } + }, + fail: e => { + my.hideLoading(); + + my.showToast({ + type: "fail", + content: "授权失败", + duration: 3000 + }); + } + }); + }, + + /** + * 获取位置权限 + * object 回调操作对象 + * method 回调操作对象的函数 + */ + use_location(object, method) { + my.showLoading({ content: "定位中..." }); + + my.getLocation({ + success(res) { + my.hideLoading(); + + // 回调 + if (typeof object === "object" && (method || null) != null) { + object[method]({ lng: res.longitude, lat: res.latitude, status: 1000 }); + } + }, + fail(e) { + my.hideLoading(); + switch (e.error) { + case 11: + case 2001: + my.alert({ + title: "温馨提示", + content: "点击右上角->关于->右上角->设置->打开地理位置权限", + buttonText: "我知道了", + success: () => { + if (typeof object === "object" && (method || null) != null) { + object[method]({ status: 400 }); + } + } + }); + break; + + case 12: + my.showToast({ content: "网络异常,请重试[" + e.error + "]" }); + break; + + case 13: + my.showToast({ content: "定位失败,请重试[" + e.error + "]" }); + break; + + default: + my.showToast({ content: "定位超时,请重试[" + e.error + "]" }); + } + } + }); + }, + + /** + * 字段数据校验 + * data 待校验的数据, 一维json对象 + * validation 待校验的字段, 格式 [{fields: 'mobile', msg: '请填写手机号码'}, ...] + */ + fields_check(data, validation) { + for (var i in validation) { + var temp_value = data[validation[i]["fields"]]; + var temp_is_can_zero = validation[i]["is_can_zero"] || null; + + if ((temp_value == undefined || temp_value.length == 0 || temp_value == -1) || (temp_is_can_zero == null && temp_value == 0) + ) { + my.showToast({ + type: "fail", + content: validation[i]["msg"] + }); + return false; + } + } + return true; + }, + + /** + * 获取当前时间戳 + */ + get_timestamp() { + return parseInt(new Date().getTime() / 1000); + }, + + /** + * 获取日期 + * format 日期格式(默认 yyyy-MM-dd h:m:s) + * timestamp 时间戳(默认当前时间戳) + */ + get_date(format, timestamp) { + var d = new Date((timestamp || this.get_timestamp()) * 1000); + var date = { + "M+": d.getMonth() + 1, + "d+": d.getDate(), + "h+": d.getHours(), + "m+": d.getMinutes(), + "s+": d.getSeconds(), + "q+": Math.floor((d.getMonth() + 3) / 3), + "S+": d.getMilliseconds() + }; + if (/(y+)/i.test(format)) { + format = format.replace( + RegExp.$1, + (d.getFullYear() + "").substr(4 - RegExp.$1.length) + ); + } + for (var k in date) { + if (new RegExp("(" + k + ")").test(format)) { + format = format.replace( + RegExp.$1, + RegExp.$1.length == 1 + ? date[k] + : ("00" + date[k]).substr(("" + date[k]).length) + ); + } + } + return format; + }, + + /** + * 获取对象、数组的长度、元素个数 + * obj 要计算长度的元素(object、array、string) + */ + get_length(obj) { + var obj_type = typeof obj; + if (obj_type == "string") { + return obj.length; + } else if (obj_type == "object") { + var obj_len = 0; + for (var i in obj) { + obj_len++; + } + return obj_len; + } + return false; + }, + + /** + * 价格保留两位小数 + * price 价格保留两位小数 + */ + price_two_decimal(x) { + var f_x = parseFloat(x); + if (isNaN(f_x)) { + return 0; + } + var f_x = Math.round(x * 100) / 100; + var s_x = f_x.toString(); + var pos_decimal = s_x.indexOf("."); + if (pos_decimal < 0) { + pos_decimal = s_x.length; + s_x += "."; + } + while (s_x.length <= pos_decimal + 2) { + s_x += "0"; + } + return s_x; + }, + + /** + * 价格保留两位小数 + * price 价格保留两位小数 + */ + operation_event(e) { + var value = e.target.dataset.value || null; + var type = parseInt(e.target.dataset.type); + + if (value != null) { + switch(type) { + // web + case 0 : + my.navigateTo({url: '/pages/web-view/web-view?url='+value}); + break; + + // 内部页面 + case 1 : + my.navigateTo({url: value}); + break; + + // 跳转到外部小程序 + case 2 : + my.navigateToMiniProgram({appId: value}); + break; + + // 跳转到地图查看位置 + case 3 : + var values = value.split('|'); + if (values.length != 4) { + my.showToast({content: '事件值格式有误'}); + return false; + } + + my.openLocation({ + name: values[0], + address: values[1], + longitude: values[2], + latitude: values[3], + }); + break; + + // 拨打电话 + case 4 : + my.makePhoneCall({ number: value }); + break; + } + } + }, +}); diff --git a/public/appmini/old/alipay/app.json b/public/appmini/old/alipay/app.json new file mode 100755 index 000000000..418bb49ab --- /dev/null +++ b/public/appmini/old/alipay/app.json @@ -0,0 +1,61 @@ +{ + "pages": [ + "pages/index/index", + "pages/goods-category/goods-category", + "pages/cart/cart", + "pages/user/user", + "pages/web-view/web-view", + "pages/login/login", + "pages/paytips/paytips", + "pages/goods-search/goods-search", + "pages/goods-detail/goods-detail", + "pages/goods-attribute/goods-attribute", + "pages/buy/buy", + "pages/user-address/user-address", + "pages/user-address-save/user-address-save", + "pages/user-order/user-order", + "pages/user-order-detail/user-order-detail", + "pages/user-faovr/user-faovr", + "pages/user-answer-list/user-answer-list", + "pages/answer-list/answer-list", + "pages/answer-form/answer-form", + "pages/message/message", + "pages/user-integral/user-integral", + "pages/user-goods-browse/user-goods-browse" + ], + "window": { + "defaultTitle": "{{application_title}}", + "titleBarColor": "#d2364c" + }, + "tabBar": { + "textColor": "#8a8a8a", + "selectedColor": "#d2364c", + "backgroundColor": "#fff", + "items": [ + { + "pagePath": "pages/index/index", + "icon": "/images/nav-icon-home.png", + "activeIcon": "/images/nav-icon-home-active.png", + "name": "首页" + }, + { + "pagePath": "pages/goods-category/goods-category", + "icon": "/images/nav-icon-category.png", + "activeIcon": "/images/nav-icon-category-active.png", + "name": "分类" + }, + { + "pagePath": "pages/cart/cart", + "icon": "/images/nav-icon-cart.png", + "activeIcon": "/images/nav-icon-cart-active.png", + "name": "购物车" + }, + { + "pagePath": "pages/user/user", + "icon": "/images/nav-icon-user.png", + "activeIcon": "/images/nav-icon-user-active.png", + "name": "我的" + } + ] + } +} diff --git a/public/appmini/old/alipay/components/home-banner/home-banner.acss b/public/appmini/old/alipay/components/home-banner/home-banner.acss new file mode 100755 index 000000000..c3a6ff6f0 --- /dev/null +++ b/public/appmini/old/alipay/components/home-banner/home-banner.acss @@ -0,0 +1,3 @@ +.banner { + height: 320rpx!important; +} \ No newline at end of file diff --git a/public/appmini/old/alipay/components/home-banner/home-banner.axml b/public/appmini/old/alipay/components/home-banner/home-banner.axml new file mode 100755 index 000000000..efbf6edf9 --- /dev/null +++ b/public/appmini/old/alipay/components/home-banner/home-banner.axml @@ -0,0 +1,19 @@ + + + + + + \ No newline at end of file diff --git a/public/appmini/old/alipay/components/home-banner/home-banner.js b/public/appmini/old/alipay/components/home-banner/home-banner.js new file mode 100755 index 000000000..ae7707d40 --- /dev/null +++ b/public/appmini/old/alipay/components/home-banner/home-banner.js @@ -0,0 +1,75 @@ +const app = getApp(); +Component({ + mixins: [], + data: { + indicator_dots: false, + indicator_color: 'rgba(0, 0, 0, .3)', + indicator_active_color: '#e31c55', + autoplay: true, + circular: true, + data_list_loding_status: 1, + data_bottom_line_status: false, + data_list: [], + }, + props: {}, + didMount() { + this.init(); + }, + didUpdate() {}, + didUnmount() {}, + methods: { + // 获取数 + init() { + // 加载loding + this.setData({ + data_list_loding_status: 1, + }); + + // 加载loding + my.httpRequest({ + url: app.get_request_url("HomeBanner", "Resources"), + method: "POST", + data: {}, + dataType: "json", + success: res => { + if (res.data.code == 0) { + var data = res.data.data; + this.setData({ + data_list: data, + indicator_dots: (data.length > 1), + autoplay: (data.length > 1), + data_list_loding_status: data.length == 0 ? 0 : 3, + data_bottom_line_status: true, + }); + } else { + this.setData({ + data_list_loding_status: 0, + data_bottom_line_status: true, + }); + + my.showToast({ + type: "fail", + content: res.data.msg + }); + } + }, + fail: () => { + this.setData({ + data_list_loding_status: 2, + data_bottom_line_status: true, + }); + + my.showToast({ + type: "fail", + content: "服务器请求出错" + }); + } + }); + }, + + // 操作事件 + banner_event(e) { + app.operation_event(e); + }, + }, +}); diff --git a/public/appmini/old/alipay/components/home-banner/home-banner.json b/public/appmini/old/alipay/components/home-banner/home-banner.json new file mode 100755 index 000000000..32640e0dc --- /dev/null +++ b/public/appmini/old/alipay/components/home-banner/home-banner.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/public/appmini/old/alipay/components/home-nav/home-nav.acss b/public/appmini/old/alipay/components/home-nav/home-nav.acss new file mode 100755 index 000000000..3547f4a38 --- /dev/null +++ b/public/appmini/old/alipay/components/home-nav/home-nav.acss @@ -0,0 +1,20 @@ +.data-list { + overflow: hidden; +} +.data-list .items { + width: calc(25% - 60rpx); + float: left; + padding: 30rpx; +} +.items-content { + border-radius: 50%; + padding: 20rpx; +} +.data-list .items image { + width: 80rpx !important; + height: 80rpx !important; +} +.data-list .items .title { + margin-top: 10rpx; + font-size: 32rpx; +} \ No newline at end of file diff --git a/public/appmini/old/alipay/components/home-nav/home-nav.axml b/public/appmini/old/alipay/components/home-nav/home-nav.axml new file mode 100755 index 000000000..bf44cc04b --- /dev/null +++ b/public/appmini/old/alipay/components/home-nav/home-nav.axml @@ -0,0 +1,15 @@ + + + + + + + {{item.name}} + + + + + + + + diff --git a/public/appmini/old/alipay/components/home-nav/home-nav.js b/public/appmini/old/alipay/components/home-nav/home-nav.js new file mode 100755 index 000000000..f28f2ca8a --- /dev/null +++ b/public/appmini/old/alipay/components/home-nav/home-nav.js @@ -0,0 +1,67 @@ +const app = getApp(); +Component({ + mixins: [], + props: {}, + data: { + data_list_loding_status: 1, + data_bottom_line_status: false, + data_list: [], + }, + didMount() { + this.init(); + }, + didUpdate(){}, + didUnmount(){}, + methods:{ + init() { + // 加载loding + this.setData({ + data_list_loding_status: 1, + }); + + // 加载loding + my.httpRequest({ + url: app.get_request_url("HomeNav", "Resources"), + method: "POST", + data: {}, + dataType: "json", + success: res => { + if (res.data.code == 0) { + var data = res.data.data; + this.setData({ + data_list: data, + data_list_loding_status: data.length == 0 ? 0 : 3, + data_bottom_line_status: true, + }); + } else { + this.setData({ + data_list_loding_status: 0, + data_bottom_line_status: true, + }); + + my.showToast({ + type: "fail", + content: res.data.msg + }); + } + }, + fail: () => { + this.setData({ + data_list_loding_status: 2, + data_bottom_line_status: true, + }); + + my.showToast({ + type: "fail", + content: "服务器请求出错" + }); + } + }); + }, + + // 操作事件 + nav_event(e) { + app.operation_event(e); + }, + } +}); diff --git a/public/appmini/old/alipay/components/home-nav/home-nav.json b/public/appmini/old/alipay/components/home-nav/home-nav.json new file mode 100755 index 000000000..32640e0dc --- /dev/null +++ b/public/appmini/old/alipay/components/home-nav/home-nav.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/public/appmini/old/alipay/images/buy-address-divider.png b/public/appmini/old/alipay/images/buy-address-divider.png new file mode 100755 index 000000000..60a8f7875 Binary files /dev/null and b/public/appmini/old/alipay/images/buy-address-divider.png differ diff --git a/public/appmini/old/alipay/images/customer-service.png b/public/appmini/old/alipay/images/customer-service.png new file mode 100755 index 000000000..b21af423f Binary files /dev/null and b/public/appmini/old/alipay/images/customer-service.png differ diff --git a/public/appmini/old/alipay/images/default-cart-empty.png b/public/appmini/old/alipay/images/default-cart-empty.png new file mode 100755 index 000000000..b7a0596c2 Binary files /dev/null and b/public/appmini/old/alipay/images/default-cart-empty.png differ diff --git a/public/appmini/old/alipay/images/default-round-error-icon.png b/public/appmini/old/alipay/images/default-round-error-icon.png new file mode 100755 index 000000000..3f2fd1b70 Binary files /dev/null and b/public/appmini/old/alipay/images/default-round-error-icon.png differ diff --git a/public/appmini/old/alipay/images/default-round-success-icon.png b/public/appmini/old/alipay/images/default-round-success-icon.png new file mode 100755 index 000000000..029022a99 Binary files /dev/null and b/public/appmini/old/alipay/images/default-round-success-icon.png differ diff --git a/public/appmini/old/alipay/images/default-select-active-icon.png b/public/appmini/old/alipay/images/default-select-active-icon.png new file mode 100755 index 000000000..12dfcfe38 Binary files /dev/null and b/public/appmini/old/alipay/images/default-select-active-icon.png differ diff --git a/public/appmini/old/alipay/images/default-select-icon.png b/public/appmini/old/alipay/images/default-select-icon.png new file mode 100755 index 000000000..466c0ebc0 Binary files /dev/null and b/public/appmini/old/alipay/images/default-select-icon.png differ diff --git a/public/appmini/old/alipay/images/default-user.png b/public/appmini/old/alipay/images/default-user.png new file mode 100755 index 000000000..ccb06c0ec Binary files /dev/null and b/public/appmini/old/alipay/images/default-user.png differ diff --git a/public/appmini/old/alipay/images/empty.png b/public/appmini/old/alipay/images/empty.png new file mode 100755 index 000000000..71fed2f12 Binary files /dev/null and b/public/appmini/old/alipay/images/empty.png differ diff --git a/public/appmini/old/alipay/images/error.png b/public/appmini/old/alipay/images/error.png new file mode 100755 index 000000000..db1478bb2 Binary files /dev/null and b/public/appmini/old/alipay/images/error.png differ diff --git a/public/appmini/old/alipay/images/goods-detail-favor-icon-0.png b/public/appmini/old/alipay/images/goods-detail-favor-icon-0.png new file mode 100755 index 000000000..b1c8a5e13 Binary files /dev/null and b/public/appmini/old/alipay/images/goods-detail-favor-icon-0.png differ diff --git a/public/appmini/old/alipay/images/goods-detail-favor-icon-1.png b/public/appmini/old/alipay/images/goods-detail-favor-icon-1.png new file mode 100755 index 000000000..5821e3e94 Binary files /dev/null and b/public/appmini/old/alipay/images/goods-detail-favor-icon-1.png differ diff --git a/public/appmini/old/alipay/images/goods-detail-home-icon.png b/public/appmini/old/alipay/images/goods-detail-home-icon.png new file mode 100755 index 000000000..a1d37089e Binary files /dev/null and b/public/appmini/old/alipay/images/goods-detail-home-icon.png differ diff --git a/public/appmini/old/alipay/images/goods-detail-share-icon.png b/public/appmini/old/alipay/images/goods-detail-share-icon.png new file mode 100755 index 000000000..329e89b7a Binary files /dev/null and b/public/appmini/old/alipay/images/goods-detail-share-icon.png differ diff --git a/public/appmini/old/alipay/images/goods-detail-shop-icon.png b/public/appmini/old/alipay/images/goods-detail-shop-icon.png new file mode 100755 index 000000000..d8f173b7d Binary files /dev/null and b/public/appmini/old/alipay/images/goods-detail-shop-icon.png differ diff --git a/public/appmini/old/alipay/images/home-consulting-image.jpg b/public/appmini/old/alipay/images/home-consulting-image.jpg new file mode 100755 index 000000000..9aa888ccf Binary files /dev/null and b/public/appmini/old/alipay/images/home-consulting-image.jpg differ diff --git a/public/appmini/old/alipay/images/nav-icon-cart-active.png b/public/appmini/old/alipay/images/nav-icon-cart-active.png new file mode 100755 index 000000000..34b341f6d Binary files /dev/null and b/public/appmini/old/alipay/images/nav-icon-cart-active.png differ diff --git a/public/appmini/old/alipay/images/nav-icon-cart.png b/public/appmini/old/alipay/images/nav-icon-cart.png new file mode 100755 index 000000000..90cf0b224 Binary files /dev/null and b/public/appmini/old/alipay/images/nav-icon-cart.png differ diff --git a/public/appmini/old/alipay/images/nav-icon-category-active.png b/public/appmini/old/alipay/images/nav-icon-category-active.png new file mode 100755 index 000000000..8db743b75 Binary files /dev/null and b/public/appmini/old/alipay/images/nav-icon-category-active.png differ diff --git a/public/appmini/old/alipay/images/nav-icon-category.png b/public/appmini/old/alipay/images/nav-icon-category.png new file mode 100755 index 000000000..b0464d183 Binary files /dev/null and b/public/appmini/old/alipay/images/nav-icon-category.png differ diff --git a/public/appmini/old/alipay/images/nav-icon-home-active.png b/public/appmini/old/alipay/images/nav-icon-home-active.png new file mode 100755 index 000000000..3d62e9114 Binary files /dev/null and b/public/appmini/old/alipay/images/nav-icon-home-active.png differ diff --git a/public/appmini/old/alipay/images/nav-icon-home.png b/public/appmini/old/alipay/images/nav-icon-home.png new file mode 100755 index 000000000..b90a704e3 Binary files /dev/null and b/public/appmini/old/alipay/images/nav-icon-home.png differ diff --git a/public/appmini/old/alipay/images/nav-icon-user-active.png b/public/appmini/old/alipay/images/nav-icon-user-active.png new file mode 100755 index 000000000..2ef2eaef0 Binary files /dev/null and b/public/appmini/old/alipay/images/nav-icon-user-active.png differ diff --git a/public/appmini/old/alipay/images/nav-icon-user.png b/public/appmini/old/alipay/images/nav-icon-user.png new file mode 100755 index 000000000..e8531f430 Binary files /dev/null and b/public/appmini/old/alipay/images/nav-icon-user.png differ diff --git a/public/appmini/old/alipay/images/search-asc-icon.png b/public/appmini/old/alipay/images/search-asc-icon.png new file mode 100755 index 000000000..0b16b29ca Binary files /dev/null and b/public/appmini/old/alipay/images/search-asc-icon.png differ diff --git a/public/appmini/old/alipay/images/search-default-icon.png b/public/appmini/old/alipay/images/search-default-icon.png new file mode 100755 index 000000000..d91a76411 Binary files /dev/null and b/public/appmini/old/alipay/images/search-default-icon.png differ diff --git a/public/appmini/old/alipay/images/search-desc-icon.png b/public/appmini/old/alipay/images/search-desc-icon.png new file mode 100755 index 000000000..9e79244e9 Binary files /dev/null and b/public/appmini/old/alipay/images/search-desc-icon.png differ diff --git a/public/appmini/old/alipay/images/search-submit-icon.png b/public/appmini/old/alipay/images/search-submit-icon.png new file mode 100755 index 000000000..af5205981 Binary files /dev/null and b/public/appmini/old/alipay/images/search-submit-icon.png differ diff --git a/public/appmini/old/alipay/images/tips.png b/public/appmini/old/alipay/images/tips.png new file mode 100755 index 000000000..bf59c3cf1 Binary files /dev/null and b/public/appmini/old/alipay/images/tips.png differ diff --git a/public/appmini/old/alipay/images/upload.png b/public/appmini/old/alipay/images/upload.png new file mode 100755 index 000000000..98c89f040 Binary files /dev/null and b/public/appmini/old/alipay/images/upload.png differ diff --git a/public/appmini/old/alipay/images/user-address.png b/public/appmini/old/alipay/images/user-address.png new file mode 100755 index 000000000..b3d1b7530 Binary files /dev/null and b/public/appmini/old/alipay/images/user-address.png differ diff --git a/public/appmini/old/alipay/images/user-head-message-icon.png b/public/appmini/old/alipay/images/user-head-message-icon.png new file mode 100755 index 000000000..c1b03e367 Binary files /dev/null and b/public/appmini/old/alipay/images/user-head-message-icon.png differ diff --git a/public/appmini/old/alipay/images/user-index-nav-order-icon-1.png b/public/appmini/old/alipay/images/user-index-nav-order-icon-1.png new file mode 100755 index 000000000..b17897383 Binary files /dev/null and b/public/appmini/old/alipay/images/user-index-nav-order-icon-1.png differ diff --git a/public/appmini/old/alipay/images/user-index-nav-order-icon-2.png b/public/appmini/old/alipay/images/user-index-nav-order-icon-2.png new file mode 100755 index 000000000..fb20b6866 Binary files /dev/null and b/public/appmini/old/alipay/images/user-index-nav-order-icon-2.png differ diff --git a/public/appmini/old/alipay/images/user-index-nav-order-icon-3.png b/public/appmini/old/alipay/images/user-index-nav-order-icon-3.png new file mode 100755 index 000000000..61483e02c Binary files /dev/null and b/public/appmini/old/alipay/images/user-index-nav-order-icon-3.png differ diff --git a/public/appmini/old/alipay/images/user-index-nav-order-icon-4.png b/public/appmini/old/alipay/images/user-index-nav-order-icon-4.png new file mode 100755 index 000000000..db15f17c0 Binary files /dev/null and b/public/appmini/old/alipay/images/user-index-nav-order-icon-4.png differ diff --git a/public/appmini/old/alipay/images/user-nav-address-icon.png b/public/appmini/old/alipay/images/user-nav-address-icon.png new file mode 100755 index 000000000..dfcf810c5 Binary files /dev/null and b/public/appmini/old/alipay/images/user-nav-address-icon.png differ diff --git a/public/appmini/old/alipay/images/user-nav-answer-icon.png b/public/appmini/old/alipay/images/user-nav-answer-icon.png new file mode 100755 index 000000000..37539afa9 Binary files /dev/null and b/public/appmini/old/alipay/images/user-nav-answer-icon.png differ diff --git a/public/appmini/old/alipay/images/user-nav-cache-icon.png b/public/appmini/old/alipay/images/user-nav-cache-icon.png new file mode 100755 index 000000000..782ff89de Binary files /dev/null and b/public/appmini/old/alipay/images/user-nav-cache-icon.png differ diff --git a/public/appmini/old/alipay/images/user-nav-customer-service-icon.png b/public/appmini/old/alipay/images/user-nav-customer-service-icon.png new file mode 100755 index 000000000..53750e55c Binary files /dev/null and b/public/appmini/old/alipay/images/user-nav-customer-service-icon.png differ diff --git a/public/appmini/old/alipay/images/user-nav-faovr-icon.png b/public/appmini/old/alipay/images/user-nav-faovr-icon.png new file mode 100755 index 000000000..9d3edcab1 Binary files /dev/null and b/public/appmini/old/alipay/images/user-nav-faovr-icon.png differ diff --git a/public/appmini/old/alipay/images/user-nav-order-icon.png b/public/appmini/old/alipay/images/user-nav-order-icon.png new file mode 100755 index 000000000..14725a888 Binary files /dev/null and b/public/appmini/old/alipay/images/user-nav-order-icon.png differ diff --git a/public/appmini/old/alipay/node_modules/mini-antui/CHANGELOG.md b/public/appmini/old/alipay/node_modules/mini-antui/CHANGELOG.md new file mode 100755 index 000000000..dd519ab98 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/CHANGELOG.md @@ -0,0 +1,207 @@ +## 0.4.3 + +`2018-11-07` + +- **Enhancement** + - `tabs`新增`tabBarCls`tabBar自定义样式class + - `tabs`新增`duration`控制滑动动画时长 + - `calendar`date参数兼容IOS格式要求 + +## 0.4.2 + +`2018-10-31` + +- **Enhancement** + - `amount-input`组件type属性新增`digit`类型 + - `vtabs`新增`activeTab`,`onTabClick`和`onChange`属性([#125](https://github.com/ant-mini-program/mini-antui/issues/125)) + +## 0.4.1 + +`2018-10-29` + +- **Enhancement** + - `notice`新增`enableMarquee`和`marqueeProps`属性([#140](https://github.com/ant-mini-program/mini-antui/issues/140)) + +- **Bug Fix** + - 修复`message`type为`fail`时的白屏问题([#152](https://github.com/ant-mini-program/mini-antui/issues/152)) + +## 0.4.0 + +`2018-10-23` + +- **Feature** + - 新增`am-checkbox`组件 + - 新增`badge`组件 + +- **Enhancement** + - `calendar`组件`tabs`属性新增`disable`字段,新增`onSelectHasDisableDat`属性([#108](https://github.com/ant-mini-program/mini-antui/issues/108)) + +- **Bug Fix** + - 修复`vtabs`在安卓下出现滚动误差的问题 + - 修复`tabs`在`tabs`属性变化时没有重新计算宽度导致的滚动不正常问题 + +## 0.3.13 + +`2018-10-18` + +- **Bug Fix** + - 修复`swipe-action`在didUpdate时陷入死循环的问题 + - 修复`vtabs`tabs数据变化没有响应的问题 + +## 0.3.12 + +`2018-10-12` + +- **Enhancement** + - `vtabs`新增`badgeType`和`badgeText`属性([#92](https://github.com/ant-mini-program/mini-antui/issues/92)) + +## 0.3.11 + +`2018-10-10` + +- **Bug Fix** + - 修复`search-bar`在IPhone X下面出现滚动的问题([#113](https://github.com/ant-mini-program/mini-antui/issues/113)) + - 修复`stepper`在重置初始值时操作按钮状态不改变的bug([#111](https://github.com/ant-mini-program/mini-antui/issues/111)) + +- **Enhancement** + - `page-result`图标升级到最新版本 + - `input-item`增大清除icon点击响应范围 + +## 0.3.10 + +`2018-10-08` + +- **Enhancement** + - 解决`list`,`input-item`在安卓下线条较粗的问题 + +## 0.3.9 + +`2018-09-27` + +- **Bug Fix** + - 修复`input-item`在失去焦点时清除按钮仍旧显示的问题 + +## 0.3.8 + +`2018-09-26` + +- **Bug Fix** + - 修复`filter`组件单选时需要反选取消选择的问题 + +- **Feature** + - 新增`picker-item`组件 + +- **Enhancement** + - `tabs`新增`activeCls`属性,用来表示激活tabbar的自定义class([#87](https://github.com/ant-mini-program/mini-antui/issues/87)) + - `input-item`新增`clear`、`onClear`属性,组件内支持清除输入功能([#84](https://github.com/ant-mini-program/mini-antui/issues/84)) + - `list-item` onClick回调新增target参数,用来支持自定义dataset([#85](https://github.com/ant-mini-program/mini-antui/issues/85)) + +## 0.3.7 + +`2018-09-25` + +- **Bug Fix** + - 修复了`input-item`组件在失去焦点等事件中无dataset的问题([#66](https://github.com/ant-mini-program/mini-antui/issues/66)) + - 修复`popup`组件mask定位为absolut导致的页面滚动时mask跟着滚动的bug + +- **Enhancement** + - `popup`新增disableScroll属性以适应不同业务场景 + - 完善`swipe-action`的示例代码 + - 文档更新,添加体验二维码 + +## 0.3.6 + +`2018-09-13` + +- **Enhancement** + - 新增tips组件的类型 + +## 0.3.5 + +`2018-08-29` + +- **Bug Fix** + - 修复`search-bar`点击icon无效的bug + - 修复`search-bar`苹果输入法中间态无法清除placeholder的bug + +- **Enhancement** + - 优化`list`组件样式 + +## 0.3.4 + +`2018-08-16` + +- **Enhancement** + - 优化`tabs`组件闪烁问题 + - `face-detection`组件增加最小旋转角度属性 + +## 0.3.3 + +`2018-08-10` + +- **Feature** + - `tabs`组件新增`activeTab`属性,用来指定当前激活tab + +## 0.3.2 + +`2018-08-07` + +- **Feature** + - 新增`popup`弹出菜单组件 + - `face-detection`组件新增活体检测功能 + +## 0.3.1 + +`2018-07-27` + +- **Feature** + - `face-detection`组件新增`appName`和`serviceName`字段 + +## 0.3.0 + +`2018-07-26` + +- **Feature** + - 新增`face-detection`组件 + - 新增`footer`组件 + - `page-result`组件增加slot,方便开发者个性化定制区域内容 + +- **Enhancement** + - 优化`calendar`组件在初次渲染时的闪烁问题 + - 优化`swipe-action`右侧按钮宽度自适应文本内容 + + +## 0.2.0 + +`2018-07-11` + +- **Feature** + + - 新增`vtab组件` + +- **Enhancement** + + - 优化`swipe-action`组件性能 + - 解决`tabs`组件在初次渲染时的页面闪烁问题 + +## 0.1.0 + +`2018-06-21` + + +- **Feature** + + - 新增`steps`、`popover`、`amount-input`、`calendar`组件; + - `tabs`组件`tabs`属性新增`badgeType`属性、新增`showPlus`、`onPlusClick`属性 + - `modal`组件新增`closeType`属性,以适应不同的背景颜色 + +- **Bug Fix** + + - 修复`grid`、`modal`、`input-item`组件样式问题 + + +## 0.0.13 + +`2018-05-09` + +首次发布小程序版antui组件库 diff --git a/public/appmini/old/alipay/node_modules/mini-antui/LICENSE b/public/appmini/old/alipay/node_modules/mini-antui/LICENSE new file mode 100755 index 000000000..55687a991 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/LICENSE @@ -0,0 +1,22 @@ +MIT LICENSE + +Copyright (c) 2018-present Alipay.com, https://www.alipay.com/ + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/public/appmini/old/alipay/node_modules/mini-antui/README.md b/public/appmini/old/alipay/node_modules/mini-antui/README.md new file mode 100755 index 000000000..222a470c4 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/README.md @@ -0,0 +1,52 @@ +

+ +

+ +# mini-antui + +## 链接 +- [mini-antui官网文档](https://docs.alipay.com/mini/component-ext/overview-ext-common) +- [支付宝小程序](https://mini.open.alipay.com/channel/miniIndex.htm) +- [开发工具](https://docs.alipay.com/mini/ide/overview) + +## 特性 + +- 基于`Advance Design`设计规范 +- 使用[支付宝小程序](https://mini.open.alipay.com/channel/miniIndex.htm)开发 + +## 预览 + +用[小程序开发者工具](https://docs.alipay.com/mini/ide/overview)打开项目 + +## 安装 + +```bash +$ npm install mini-antui --save +``` + +## 使用 + +在页面json中文件中进行注册,如card组件的注册如下所示: + +```json +{ + "usingComponents": { + "card": "mini-antui/es/card/index", + } +} +``` + +在axml文件中进行调用: +```html + +``` + +## 贡献 + +如果你有好的意见或建议,欢迎给我们提[issue](https://github.com/ant-mini-program/mini-antui/issues)。 diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/_util/fmtEvent.js b/public/appmini/old/alipay/node_modules/mini-antui/es/_util/fmtEvent.js new file mode 100755 index 000000000..713153c4a --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/_util/fmtEvent.js @@ -0,0 +1,14 @@ +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +export default function fmtEvent(props, e) { + var dataset = {}; + for (var key in props) { + if (/data-/gi.test(key)) { + dataset[key.replace(/data-/gi, '')] = props[key]; + } + } + return _extends({}, e, { + currentTarget: { dataset: dataset }, + target: { dataset: dataset, targetDataset: dataset } + }); +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/am-checkbox/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/am-checkbox/index.acss new file mode 100755 index 000000000..863b1ffb9 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/am-checkbox/index.acss @@ -0,0 +1,68 @@ +.am-checkbox { + position: relative; + height: 22px; + width: 22px; + display: inline-block; +} + +.am-checkbox-value { + position: absolute; + z-index: 1; + border-radius: 50%; + opacity: 0; +} + +.am-checkbox-synthetic { + position: absolute; + z-index: 2; + pointer-events: none; + top: 0; + left: 0; + border-radius: 50%; + height: 100%; + width: 100%; +} + +.am-checkbox-synthetic::before { + position: absolute; + left: 0; + top: 0; + height: 200%; + width: 200%; + display: block; + box-sizing: border-box; + border-radius: 50%; + content: ''; + transform-origin: 0 0; + transform: scale(0.5); + border: 1px solid #c9c9c9; +} + +.am-checkbox-value.a-checkbox-checked + .am-checkbox-synthetic::before { + background-color: #108ee9; + border-color: #108ee9; + border-width: 0; +} + +.am-checkbox-value.a-checkbox-checked + .am-checkbox-synthetic::after { + position: absolute; + display: block; + z-index: 999; + content: ''; + top: 4px; + right: 8px; + width: 5px; + height: 10px; + border: 2px solid #fff; + border-width: 0 1px 1px 0; + transform: rotate(45deg); +} + +.am-checkbox-value.a-checkbox-disabled + .am-checkbox-synthetic::before { + border: 1px solid #ccc; + background-color: #e1e1e1; +} + +.am-checkbox-value.a-checkbox-disabled + .am-checkbox-synthetic::after { + border-color: #adadad; +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/am-checkbox/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/am-checkbox/index.axml new file mode 100755 index 000000000..49f693103 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/am-checkbox/index.axml @@ -0,0 +1,11 @@ + + + + \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/am-checkbox/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/am-checkbox/index.js new file mode 100755 index 000000000..830153dd4 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/am-checkbox/index.js @@ -0,0 +1,17 @@ +import fmtEvent from '../_util/fmtEvent'; + +Component({ + props: { + value: '', + checked: false, + disabled: false, + onChange: function onChange() {}, + id: '' + }, + methods: { + onChange: function onChange(e) { + var event = fmtEvent(this.props, e); + this.props.onChange(event); + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/am-checkbox/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/am-checkbox/index.json new file mode 100755 index 000000000..32640e0dc --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/am-checkbox/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/amount-input/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/amount-input/index.acss new file mode 100755 index 000000000..85cda0b99 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/amount-input/index.acss @@ -0,0 +1,95 @@ +.am-amount { + box-sizing: border-box; + height: 173px; + width: 100%; + padding: 16px; + background: #fff; +} + +.am-amount-title { + height: 24px; + line-height: 24px; + color: #333; + font-size: 17px; +} + +.am-amount-synthetic { + position: absolute; + top: 0; + left: 0; + display: flex; +} + +.am-amount-input { + margin-top: 16px; + padding-bottom: 16px; + display: flex; + align-items: center; + width: 100%; + height: 48px; + position: relative; + line-height: 48px; + border-bottom: 1rpx solid #eee; +} + +.am-amount-symbol { + width: 18px; + font-family: PingFang SC; + font-size: 30px; + color: #333; +} + +.am-amount-placeholder { + margin-left: 6px; + color: #ccc; + font-size: 24px; +} + +.am-amount-value { + padding: 0 0 0 24px; + box-sizing: border-box; + z-index: 2; + height: 48px; + line-height: 48px; + vertical-align: middle; + background-color: transparent; + font-size: 48px; + font-weight: 500; +} + +.am-amount-clear { + visibility: hidden; + width: 28px; + height: 28px; +} + +.am-amount-clear icon { + display: flex; + height: 100%; + justify-content: center; + align-items: center; +} + +.am-amount-clear-show { + visibility: visible; +} + +.am-amount-footer { + padding: 16px 0; + display: flex; +} + +.am-amount-extra { + flex: 1; + height: 20px; + line-height: 20px; + color: #999; + font-size: 14px; +} + +.am-amount-btn { + width: 120px; + text-align: right; + color: #108ee9; + font-size: 14px; +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/amount-input/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/amount-input/index.axml new file mode 100755 index 000000000..1a8ce32d3 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/amount-input/index.axml @@ -0,0 +1,26 @@ + + {{title}} + + + ¥ + {{placeholder}} + + + + + + + + {{extra}} + {{btnText}} + + \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/amount-input/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/amount-input/index.js new file mode 100755 index 000000000..7319a473e --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/amount-input/index.js @@ -0,0 +1,56 @@ +import fmtEvent from '../_util/fmtEvent'; + +Component({ + props: { + type: 'number', + className: '', + focus: false, + placeholder: '', + value: '' + }, + data: { + _focus: false + }, + methods: { + onInput: function onInput(e) { + var event = fmtEvent(this.props, e); + if (this.props.onInput) { + this.props.onInput(event); + } + }, + onConfirm: function onConfirm(e) { + var event = fmtEvent(this.props, e); + if (this.props.onConfirm) { + this.props.onConfirm(event); + } + }, + onButtonClick: function onButtonClick() { + if (this.onButtonClick) { + this.props.onButtonClick(); + } + }, + onFocus: function onFocus(e) { + this.setData({ + _focus: true + }); + var event = fmtEvent(this.props, e); + if (this.props.onFocus) { + this.props.onFocus(event); + } + }, + onBlur: function onBlur(e) { + this.setData({ + _focus: false + }); + var event = fmtEvent(this.props, e); + if (this.props.onBlur) { + this.props.onBlur(event); + } + }, + onClearTap: function onClearTap() { + if (this.props.onClear) { + this.props.onClear(''); + } + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/amount-input/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/amount-input/index.json new file mode 100755 index 000000000..32640e0dc --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/amount-input/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/badge/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/badge/index.acss new file mode 100755 index 000000000..6da9ea571 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/badge/index.acss @@ -0,0 +1,41 @@ +.am-badge { + display: inline-block; + position: relative; + vertical-align: middle; + line-height: 1; +} + +.am-badge-text { + display: inline-block; + position: absolute; + right: 0; + transform: translate(50%, -50%); + top: 0px; + min-width: 16px; + padding: 0; + height: 16px; + line-height: 16px; + text-align: center; + background-color: #FF3B30; + border-radius: 16px; + color: #fff; + font-size: 10px; +} + +.am-badge-text.am-badge-double { + padding: 0 4px; +} + +.am-badge-not-a-wrapper .am-badge-text { + position: relative; + top: auto; + right: auto; + transform: translateX(0); +} + +.am-badge-text.is-dot { + padding: 0; + width: 10px; + min-width: 10px; + height: 10px; +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/badge/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/badge/index.axml new file mode 100755 index 000000000..d460924f5 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/badge/index.axml @@ -0,0 +1,10 @@ + + + {{typeof text === 'number' && text > overflowCount ? overflowCount + '+' : text }} + + + + \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/badge/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/badge/index.js new file mode 100755 index 000000000..626efaf4a --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/badge/index.js @@ -0,0 +1,8 @@ +Component({ + props: { + className: '', + overflowCount: 99, + text: '', + dot: false + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/badge/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/badge/index.json new file mode 100755 index 000000000..32640e0dc --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/badge/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/calendar/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/calendar/index.acss new file mode 100755 index 000000000..7bc2867d7 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/calendar/index.acss @@ -0,0 +1,188 @@ +.am-calendar { + background-color: #fff; + padding-top: 10px; +} + +.am-calendar-months { + display: flex; + box-sizing: border-box; + padding: 0 26px; + align-items: center; + height: 28px; +} + +.am-calendar-prev-month, +.am-calendar-next-month { + display: flex; + width: 40px; + font-size: 20px; +} + +.am-calendar-prev-month { + justify-content: flex-start; +} + +.am-calendar-next-month { + justify-content: flex-end; +} + +.am-calendar-arrow { + height: 28px; + width: 12px; + background-image: url('https://gw.alipayobjects.com/zos/rmsportal/vYcMhkfyHRIOeVXWdcPe.png'); + background-size: 8px 14px; + background-position: left center; + background-repeat: no-repeat; +} + +.am-calendar-arrow.next { + transform: rotate(180deg); +} + +.am-calendar-selected-month { + flex: 1; + text-align: center; + font-size: 20px; + font-weight: 600; + color: #333; +} + +.am-calendar-days { + display: flex; + padding: 14px 10px 9px; + border-bottom: 1rpx solid #eee; + height: 20px; + line-height: 20px; +} + +.am-calendar-day { + flex: 1; + text-align: center; + color: #333; + font-size: 14px; +} + +.am-calendar-dates { + display: flex; + flex-direction: column; +} + +.am-calendar-week { + margin-bottom: 17px; + display: flex; + flex-direction: row; + padding: 0 10px; +} + +.am-calendar-week:first-child { + margin-top: 12px; +} + +.am-calendar-date-wrap { + position: relative; + text-align: center; + display: flex; + flex-direction: column; + align-items: center; + height: 42px; + flex: 1; +} + +.am-calendar-date { + text-align: center; + height: 23px; + line-height: 23px; + font-size: 19px; + font-family: 'Helvetica'; + color: #333; +} + +.am-calendar-tag { + position: absolute; + top: 21px; + width: 42px; + overflow: hidden; + text-overflow: hidden; + white-space: nowrap; + color: #f5a623; + font-size: 10px; + font-weight: 500; +} + +.am-calendar-today { + color: #108ee9; +} + +.am-calendar-gray { + color: #ccc; +} + +.am-calendar-selected .am-calendar-block { + position: absolute; + left: calc(50% - 21px); + top: calc(50% - 10px); + transform: translateY(-50%); + width: 42px; + height: 42px; + background: #309EF2; + border-radius: 2px; +} + +.am-calendar-middle.is-range .am-calendar-block { + position: absolute; + left: 0; + top: calc(50% - 10px); + transform: translateY(-50%); + height: 42px; + background: #309EF2; + width: 100%; + border-radius: 0; +} + +.am-calendar-start.is-range .am-calendar-block { + position: absolute; + left: calc(50% - 21px); + top: calc(50% - 10px); + transform: translateY(-50%); + width: 100%; + height: 42px; + background: #309EF2; + border-radius: 2px 0 0 2px; +} + +.am-calendar-end.is-range .am-calendar-block { + position: absolute; + left: 0; + top: calc(50% - 10px); + transform: translateY(-50%); + width: calc(50% + 21px); + height: 42px; + background: #309EF2; + border-radius: 0 2px 2px 0; +} + +.am-calendar-selected .am-calendar-block.has-tag, +.am-calendar-start .am-calendar-block.has-tag, +.am-calendar-middle .am-calendar-block.has-tag, +.am-calendar-end .am-calendar-block.has-tag { + top: calc(50% - 7px); +} + +.am-calendar-selected .am-calendar-date, +.am-calendar-start .am-calendar-date, +.am-calendar-middle .am-calendar-date, +.am-calendar-end .am-calendar-date { + position: relative; + color: #fff; +} + +.am-calendar-selected .am-calendar-tag, +.am-calendar-start .am-calendar-tag, +.am-calendar-middle .am-calendar-tag, +.am-calendar-end .am-calendar-tag { + color: #fff; +} + +.am-calendar-disable .am-calendar-date { + color: #999; +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/calendar/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/calendar/index.axml new file mode 100755 index 000000000..43db2c630 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/calendar/index.axml @@ -0,0 +1,47 @@ + + + + + + {{selectedYear}}年{{selectedMonth + 1}}月 + + + + + + + {{item}} + + + + + + + + + {{item.date}} + {{item.disable ? 'disable' : item.tag}} + + + + + + diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/calendar/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/calendar/index.js new file mode 100755 index 000000000..3e4544116 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/calendar/index.js @@ -0,0 +1,426 @@ +function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } + +/* eslint-disable complexity, no-param-reassign */ +/* eslint max-depth: [2, 7] */ +var leapYear = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; +var commonYear = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; +var FIRST_MONTH = 0; +var LAST_MONTH = 11; +var DAYS_PER_ROW = 7; +var COLOR_MAP = { + 1: '#f5a911', + 2: '#e8541e', + 3: '#07a89b', + 4: '#108ee9', + 5: 'rgba(51, 51, 51, 0.4)' +}; + +// 获取某月第某天是星期几 +function getDay(month, year, index) { + return new Date(year, month, index).getDay(); +} + +// 获取某月有几天 +function getMonthLength(month, year) { + if (year % 400 === 0 || year % 100 !== 0 && year % 4 === 0) { + return leapYear[month]; + } else { + return commonYear[month]; + } +} + +// 数字补位 1 -> 01 +function prefixNum(num) { + if (num < 10) { + return '0' + num; + } else { + return '' + num; + } +} + +Component({ + data: { + selectedYear: 0, + selectedMonth: 0, + currentDate: null, + dates: [], + blockType: 1 // 1.没有待办纯数字 2.有待办 用于区分不同类型日期块的样式。 + }, + props: { + className: '', + tagData: [], + type: 'single' + }, + didMount: function didMount() { + this.tapTimes = 1; + var date = new Date(); + date.setHours(0); + date.setMinutes(0); + date.setSeconds(0); + date.setMilliseconds(0); + var year = date.getFullYear(); + var month = date.getMonth(); + + this.setData({ + selectedYear: year, + selectedMonth: month, + currentDate: date + }); + this.refreshdates(month, year); + }, + didUpdate: function didUpdate() { + var dates = this.data.dates; + + var blockType = 1; + for (var i = 0; i < dates.length; i++) { + for (var j = 0; j < dates[i].length; j++) { + if (this.hasTag(dates[i][j])) { + blockType = 2; + } + } + } + + this.setData({ + dates: dates, + blockType: blockType + }); + }, + + methods: { + onPrevMonthTap: function onPrevMonthTap() { + var _data = this.data, + selectedMonth = _data.selectedMonth, + selectedYear = _data.selectedYear; + + var year = selectedYear; + var month = selectedMonth; + // 如果当前选中是一月份,前一月是去年的12月 + if (selectedMonth === FIRST_MONTH) { + year = selectedYear - 1; + month = LAST_MONTH; + } else { + month = selectedMonth - 1; + } + + if (this.props.onMonthChange) { + this.props.onMonthChange(month, selectedMonth); + } + + this.setData({ + selectedYear: year, + selectedMonth: month + }); + + this.refreshdates(month, year); + }, + onNextMonthTap: function onNextMonthTap() { + var _data2 = this.data, + selectedMonth = _data2.selectedMonth, + selectedYear = _data2.selectedYear; + + var year = selectedYear; + var month = selectedMonth; + // 如果当前选中是十二月份,下一月是去年的12月 + if (selectedMonth === LAST_MONTH) { + year = selectedYear + 1; + month = FIRST_MONTH; + } else { + month = selectedMonth + 1; + } + + if (this.props.onMonthChange) { + this.props.onMonthChange(month, selectedMonth); + } + + this.setData({ + selectedYear: year, + selectedMonth: month + }); + + this.refreshdates(month, year); + }, + refreshdates: function refreshdates(month, year) { + this.tapTimes = 1; + var _data3 = this.data, + selectedYear = _data3.selectedYear, + selectedMonth = _data3.selectedMonth, + currentDate = _data3.currentDate; + + var firstDay = getDay(month, year, 1); + var days = getMonthLength(month, year); + var datesArray = []; + var currentDateTimeStamp = +currentDate; + var num = 0; + + for (var i = 0; i < firstDay; i++) { + num += 1; + // 如果当前选中的是一月份,前一个月是去年的12月 + var _year = selectedYear; + var _month = selectedMonth; + + if (selectedMonth === 0) { + _year = selectedYear - 1; + _month = LAST_MONTH; + } else { + _year = selectedYear; + _month = selectedMonth - 1; + } + + var date = getMonthLength(_month, _year) - i; + datesArray.unshift({ + year: _year, + month: _month, + date: date, + isToday: false, + isGray: true, + isSelected: false, + tag: '' + }); + } + + for (var _i = 0; _i < days; _i++) { + num += 1; + var _date = _i + 1; + var dateTimeStamp = +new Date(selectedYear, selectedMonth, _date); + datesArray.push({ + year: selectedYear, + month: selectedMonth, + date: _date, + isToday: dateTimeStamp === currentDateTimeStamp, + isGray: false, + isSelected: dateTimeStamp === currentDateTimeStamp, + tag: '' + }); + } + + var nextDate = 0; + var daysPerPage = 35; + + if (num > 35) { + daysPerPage = 42; + } + + for (var _i2 = 0; _i2 < daysPerPage - days - firstDay; _i2++) { + // 如果是12月,下月是第二年的1月份 + nextDate += 1; + var _year2 = selectedYear; + var _month2 = selectedMonth; + + if (selectedMonth === LAST_MONTH) { + _year2 = selectedYear + 1; + _month2 = FIRST_MONTH; + } else { + _year2 = selectedYear; + _month2 = selectedMonth + 1; + } + + datesArray.push({ + year: _year2, + month: _month2, + date: nextDate, + isToday: false, + isGray: true, + isSelected: false, + tag: '' + }); + } + var blockType = 1; + for (var _i3 = 0; _i3 < datesArray.length; _i3++) { + if (this.hasTag(datesArray[_i3])) { + blockType = 2; + } + } + + var dates = []; + var weekDates = []; + for (var _i4 = 0; _i4 < datesArray.length; _i4++) { + weekDates.push(datesArray[_i4]); + if ((_i4 + 1) % DAYS_PER_ROW === 0) { + dates.push([].concat(_toConsumableArray(weekDates))); + weekDates = []; + } + } + + this.setData({ + dates: dates, + blockType: blockType + }); + }, + hasTag: function hasTag(dateObj) { + var tagData = this.props.tagData; + // 去重由调用者处理 + + if (tagData.length === 0) { + dateObj.tag = ''; + return false; + } + return tagData.some(function (item) { + var dateArr = item.date.split('-'); + var dateStr = []; + // 兼容ios下new Date('2018-1-1')格式返回invalid Date的问题 + for (var i = 0; i < dateArr.length; i++) { + dateStr.push(dateArr[i].length > 1 ? dateArr[i] : '0' + dateArr[i]); + } + + var date = new Date(dateStr.join('-')); + if (dateObj.year === date.getFullYear() && dateObj.month === date.getMonth() && dateObj.date === date.getDate()) { + dateObj.tag = item.tag; + dateObj.color = COLOR_MAP[item.tagColor]; + dateObj.disable = item.disable; + return true; + } else { + dateObj.tag = ''; + return false; + } + }); + }, + getDateGap: function getDateGap(day1, day2) { + var date1 = +new Date(day1.year, prefixNum(day1.month), prefixNum(day1.date)); + var date2 = +new Date(day2.year, prefixNum(day2.month), prefixNum(day2.date)); + return (date1 - date2) / (24 * 3600 * 1000); + }, + makeDate: function makeDate(dateObj) { + return new Date(dateObj.year + '-' + prefixNum(dateObj.month + 1) + '-' + prefixNum(dateObj.date)); + }, + onDateTap: function onDateTap(event) { + var dates = this.data.dates; + var _event$currentTarget$ = event.currentTarget.dataset, + year = _event$currentTarget$.year, + month = _event$currentTarget$.month, + date = _event$currentTarget$.date; + var type = this.props.type; + + + if (type === 'range') { + if (this.tapTimes % 2 === 0) { + this.tapTimes += 1; + this.endDate = { year: year, month: month, date: date }; + var dateGap = this.getDateGap(this.startDate, this.endDate); + + if (dateGap > 0) { + var _ref = [this.endDate, this.startDate]; + this.startDate = _ref[0]; + this.endDate = _ref[1]; + } + + var hasDisable = false; + for (var i = 0; i < dates.length; i++) { + for (var j = 0; j < dates[i].length; j++) { + var dateObj = dates[i][j]; + dateObj.isStart = false; + dateObj.isMiddle = false; + dateObj.isEnd = false; + + var startDateGap = this.getDateGap(dateObj, this.startDate); + var endDateGap = this.getDateGap(dateObj, this.endDate); + + if (dateObj.year === year && dateObj.month === month && dateObj.date === date && dateObj.disable) { + hasDisable = true; + } + if (startDateGap > 0 && endDateGap < 0) { + if (dateObj.disable) { + hasDisable = true; + } + + if (dateGap !== 0) { + if (j === 0) { + dateObj.isStart = true; + } else if (j === 6) { + dateObj.isEnd = true; + } else { + dateObj.isMiddle = true; + } + } else { + dateObj.isSelected = true; + } + } + + if (this.startDate.year === dateObj.year && this.startDate.month === dateObj.month && this.startDate.date === dateObj.date && dateGap !== 0) { + if (j === 6) { + dateObj.isSelected = true; + } else { + dateObj.isStart = true; + } + } + + if (this.endDate.year === dateObj.year && this.endDate.month === dateObj.month && this.endDate.date === dateObj.date && dateGap !== 0) { + if (j === 0) { + dateObj.isSelected = true; + } else { + dateObj.isEnd = true; + } + } + } + } + if (hasDisable) { + this.props.onSelectHasDisableDate([this.makeDate(this.startDate), this.makeDate(this.endDate)]); + return; + } + + if (this.props.onSelect) { + this.props.onSelect([this.makeDate(this.startDate), this.makeDate(this.endDate)]); + } + } else { + var isDisable = false; + for (var _i5 = 0; _i5 < dates.length; _i5++) { + for (var _j = 0; _j < dates[_i5].length; _j++) { + var _dateObj = dates[_i5][_j]; + if (_dateObj.year === year && _dateObj.month === month && _dateObj.date === date) { + if (_dateObj.disable) { + console.log(1111); + isDisable = true; + _dateObj.isSelected = false; + } else { + _dateObj.isSelected = true; + } + _dateObj.isStart = false; + _dateObj.isMiddle = false; + _dateObj.isEnd = false; + } else { + _dateObj.isSelected = false; + _dateObj.isStart = false; + _dateObj.isMiddle = false; + _dateObj.isEnd = false; + } + } + } + if (!isDisable) { + this.tapTimes += 1; + } + this.startDate = { year: year, month: month, date: date }; + } + + this.setData({ + dates: dates + }); + } else { + var _isDisable = false; + for (var _i6 = 0; _i6 < dates.length; _i6++) { + for (var _j2 = 0; _j2 < dates[_i6].length; _j2++) { + var _dateObj2 = dates[_i6][_j2]; + if (_dateObj2.year === year && _dateObj2.month === month && _dateObj2.date === date) { + _dateObj2.isSelected = true; + if (_dateObj2.disable) { + _isDisable = true; + } + } else { + _dateObj2.isSelected = false; + } + } + } + + if (_isDisable) { + return; + } + + this.setData({ + dates: dates + }); + + if (this.props.onSelect) { + this.props.onSelect([this.makeDate({ year: year, month: month, date: date }), undefined]); + } + } + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/calendar/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/calendar/index.json new file mode 100755 index 000000000..467ce2945 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/calendar/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/card/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/card/index.acss new file mode 100755 index 000000000..fda8d87a2 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/card/index.acss @@ -0,0 +1,72 @@ +.am-card { + display: flex; + background-color: #fff; + border-radius: 4px; + margin: 6px 10px; + align-items: center; + min-height: 81px; + flex-direction: column; + padding: 0 16px; +} + +.am-card.am-card-active { + background: #D9D9D9; +} + +.am-card-body { + display: flex; + align-items: center; + width: 100%; + padding: 16px 0; +} + +.am-card-content { + flex: 1; + min-width: 100px; +} + +.am-card-title { + font-size: 18px; + line-height: 25px; + color: #333; + margin-bottom: 4px; +} + +.am-card-subtitle { + font-size: 14px; + line-height: 20px; + color: #999; + margin-bottom: 2px; +} + +.am-card-thumb { + margin-right: 10px; + width: 48px; + height: 48px; + border-radius: 2px; +} + +.am-card-arrow { + width: 13px; + height: 13px; + background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAaCAYAAAC+aNwHAAAAkElEQVR4AWJwL/BhAJRWByYAgkAUhmdpkDZxlJZqD9UpXCPyBUTEga9+4IkI94F1XaWUTdH+a67inPOhjP2OgD+IFoTcm1GY3khrbfGAGFG6kBmAkPCw1rq6iBYb0VkEzJD+hHQWAz6iJBtQdP8YiQEbUQNiAF0BP0T+Gnkj8VbmHxMq5gOFjzQ+VPlYxz+WEyrVzhdMcxADAAAAAElFTkSuQmCC") center center no-repeat; + background-size: 8px 13px; +} + +.am-card-footer { + display: flex; + width: 100%; + align-items: center; + border-top: 1rpx solid #eee; + padding: 10px 0; + margin: -4px 0 0; + font-size: 14px; + line-height: 20px; + color: #999; +} + +.am-card-footer image { + width: 14px; + height: 14px; + margin-right: 4px; +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/card/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/card/index.axml new file mode 100755 index 000000000..67c388bbe --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/card/index.axml @@ -0,0 +1,19 @@ + + + + + {{title}} + {{subTitle}} + {{title}} + + + + + {{footer}} + + diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/card/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/card/index.js new file mode 100755 index 000000000..a4da35930 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/card/index.js @@ -0,0 +1,16 @@ +Component({ + props: { + title: '', + onClick: function onClick() {}, + info: '' + }, + methods: { + onCardClick: function onCardClick() { + var _props = this.props, + info = _props.info, + onClick = _props.onClick; + + onClick({ info: info }); + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/card/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/card/index.json new file mode 100755 index 000000000..467ce2945 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/card/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/face-detection/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/face-detection/index.axml new file mode 100755 index 000000000..9c51ad9b6 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/face-detection/index.axml @@ -0,0 +1,8 @@ + +appName and serviceName is required \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/face-detection/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/face-detection/index.js new file mode 100755 index 000000000..ceccaeecc --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/face-detection/index.js @@ -0,0 +1,107 @@ +Component({ + props: { + facing: 'front', + appName: '', + serviceName: '', + useLiveFaceCheck: false, + minRotate: -1 + }, + didMount: function didMount() { + this.webViewContext = my.createWebViewContext('am-face-detection'); + this.doFaceLeftResolve = null; + this.isDidFaceLeftResolve = false; + this.doFaceRightResolve = null; + this.isDidFaceRightResolve = false; + }, + didUnMount: function didUnMount() { + this.webViewContext.postMessage({ action: 'releaseCamera' }); + }, + + methods: { + doLeftFaceCheck: function doLeftFaceCheck() { + var _this = this; + + return new Promise(function (resolve, reject) { + _this.isDidFaceLeftResolve = false; + _this.webViewContext.postMessage({ action: 'doFaceLeft', data: { minRotate: _this.props.minRotate } }); + _this.doFaceLeftResolve = resolve; + setTimeout(function () { + if (!_this.isDidFaceLeftResolve) { + reject(); + } + }, 30000); + }); + }, + doRightFaceCheck: function doRightFaceCheck() { + var _this2 = this; + + return new Promise(function (resolve, reject) { + _this2.isDidFaceRightResolve = false; + _this2.webViewContext.postMessage({ action: 'doFaceRight', data: { minRotate: _this2.props.minRotate } }); + _this2.doFaceRightResolve = resolve; + setTimeout(function () { + if (!_this2.isDidFaceRightResolve) { + reject(); + } + }, 30000); + }); + }, + onMessage: function onMessage(e) { + var _this3 = this; + + var _props = this.props, + onFaceStatusChange = _props.onFaceStatusChange, + onFail = _props.onFail, + onSuccessBtnTap = _props.onSuccessBtnTap; + var _e$detail = e.detail, + action = _e$detail.action, + data = _e$detail.data; + + + if (action === 'resignSuccessBtnClick') { + if (onSuccessBtnTap) { + onSuccessBtnTap(); + } + } + + if (action === 'faceRotated' && data.forward === 'left') { + this.isDidFaceLeftResolve = true; + this.doFaceLeftResolve(data.imageBase64); + return; + } + + if (action === 'faceRotated' && data.forward === 'right') { + this.isDidFaceRightResolve = true; + this.doFaceRightResolve(data.imageBase64); + return; + } + + if (action === 'captureImage') { + if (onFaceStatusChange) { + var promise = onFaceStatusChange({ + imageBase64: data.imageBase64, + faceRect: data.faceRect + }, { + doLeftFaceCheck: this.doLeftFaceCheck.bind(this), + doRightFaceCheck: this.doRightFaceCheck.bind(this) + }); + + if (promise instanceof Promise) { + promise.then(function () { + _this3.webViewContext.postMessage({ action: 'requestSuccess' }); + })['catch'](function () { + _this3.webViewContext.postMessage({ action: 'requestFailure' }); + }); + } else { + this.webViewContext.postMessage({ action: 'requestSuccess' }); + } + } + } else { + /* eslint-disable */ + if (onFail) { + onFail({ code: data.code, message: data.message }); + } + } + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/face-detection/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/face-detection/index.json new file mode 100755 index 000000000..32640e0dc --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/face-detection/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/filter/filter-item/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/filter/filter-item/index.acss new file mode 100755 index 000000000..f1376f2bc --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/filter/filter-item/index.acss @@ -0,0 +1,26 @@ +.am-filter-item-wrap { + padding: 7px 6px; + min-width: 33.3%; + max-width: 180px; + overflow: hidden; + float: left; + display: list-item; + box-sizing: border-box; +} + +.am-filter-item { + font-size: 14px; + height: 36px; + line-height: 36px; + background: #f5f5f5; + border-radius: 2px; + text-align: center; + padding: 0 20px; + box-sizing: border-box; +} + +.am-filter-click { + color: #108EE9; + background: #e1f2fe url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAfCAYAAACLSL/LAAAEgElEQVRYhc2Xa0wcVRTH/2cXdi2F0pe29RWMNbHBpLWf2qQmWqma4Ftj1ZBqfcQYjUmlobESP2hDfTT9ILGaaEEECQ0qjy5uNgUDRGiatsG0JNpStaAujy6wsO+d2Xv8MDN3ZhekSHndZLObe+fO/Oac//nfs8TMWEyj3SvS3jnuLU5baBDrqL+kZO1p8JZf9sWeWjRgpWeit773o7fJH1HvAoBFAbbHM7rlSOeoK64kVhlzCwp2sl9QSYtvl+vXQBnANuvagoGd6FMdha7Bg+e90bdBABgAEUAABIMWoioru2PLi9xDNQPjyoMAAIOBWf6e94h90BFa/1Grzx2KifU6TfIFRADmGezFRv99VV3jjQnBmRKCoaXPGHrU5gWsY1DQfrfv9fbLkc/kpKErKxCg64zmHqz+kurc6/GV/u6Lv6pFyALALFOn0+mwcyz+I13R1cXNI3WjEXWb8dwkoUseAYD0b8xtKvf+FNxQemrsRFwVN0kRUWoQjAhKv5ArcwL2eK0/v/Fi+HtmdspUTZZCZg3IWgT6dbbJbjzT0dInbHcf9e1ruBh2MeBM0g+R/uSJn5wVaViXaTevI5o9sOrflIxdx4erfhlSPpQZMTJHeqpInySzJDetc+Dky2uxeqk96X6zksqDp6JrSzrGm4IxsTkZRE8RA6bOIFN5/21O1O28HllOm/kC+to1g73iCW/6+lzQk0iIG7SHUnLFGSPFKp7PXYLyx1bBYScMBBIYDCd0drr2qry3xv9MW2+sGiC7WVl6ytgSIcOf9AgWbsnEJ3nZICL0janI+2YIQyHTw2asMdefqv2Oo/4DbX8px0BklzoGmYZpzFm6BgLj8APZOLRjOYgIPcMK7ikfRM+IKkU/47Pyi24ls7gt+O1wWH1UEsgUWUAAXS/aT4edUPHICjybmwEA6B6KY0flFQyEdFOVkdbf7/84f9HP0Vs+PRPyxFTeICf1/SXbMlCQex0AoOJ8BO93BKEktLVl6UDd0yuxPccJADjtjeOh6isYiZhtjqlLbW7aYE82BLfW98TcDM5OhtJe08ZARX4mCnKXAADODigoaPRjLCrg3rkSG9ekAwDa+2J4uGYYgbgw9yfBaVqbFtjmqrHdXQPKV5jMkOVNARsYFfnLZOQiCmM0KnBjluZRnj+ieKJ2GBHVstey31rNU4Idu6CmF7YGDv0TSLx1VXrjKGFGRX6WjJwxfrgQwXN1o4iLVAhLNcr5Kezi47Ox7AOdoe8CMZF3VSgJBwgivNAUAAAJV9kdwW6XHwlhORKsp4O1N5uqKl9rjtxedi7crArOmTaU4fYMCEDCBeKMNzzjYCbT07QNgEhpX4nl8oRU5tWOb2/pUxrBvHTaUMZIqTCbDmn2WfiPFBpFIK2jX4rZ3SvozrKxN1t6480zggKSTZIIwnpoG3/NpBnD7DisZysRQLZWYmZ82a049rcHPveFxUszAkodk3apk3gWW6Jlin8ETtqY9m5nfM3h04G6qMJbZwUKmNgMSj6yCD2130c/QK1woAj7bv77X8e4TyVCc9zHAAAAAElFTkSuQmCC') right bottom no-repeat; + background-size: 17px 13px; +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/filter/filter-item/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/filter/filter-item/index.axml new file mode 100755 index 000000000..0d80d98e8 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/filter/filter-item/index.axml @@ -0,0 +1,3 @@ + + {{value}} + diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/filter/filter-item/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/filter/filter-item/index.js new file mode 100755 index 000000000..a9235c643 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/filter/filter-item/index.js @@ -0,0 +1,87 @@ +import lifecycle from '../mixins/lifecycle'; + +Component({ + mixins: [lifecycle], + data: { + confirmStyle: '' + }, + + props: { + className: '', + item: '', + id: '', + value: '', + selected: false, + onChange: function onChange() {} + }, + + didMount: function didMount() { + var _data = this.data, + results = _data.results, + items = _data.items; + var _props = this.props, + selected = _props.selected, + id = _props.id, + value = _props.value; + + if (selected) { + results.push({ id: id, value: value }); + items.push(this); + this.setData({ + confirmStyle: true + }); + } + }, + + + methods: { + handleClick: function handleClick() { + var _props2 = this.props, + id = _props2.id, + value = _props2.value, + onChange = _props2.onChange; + var confirmStyle = this.data.confirmStyle; + var _data2 = this.data, + results = _data2.results, + items = _data2.items, + commonProps = _data2.commonProps; + + if (commonProps.max === 1) { + if (confirmStyle === '') { + items.forEach(function (element) { + element.setData({ + confirmStyle: '' + }); + }); + results.splice(0, results.length); + confirmStyle = true; + results.push({ id: id, value: value }); + items.push(this); + onChange(results); + } + this.setData({ + confirmStyle: confirmStyle + }); + return; + } + if (confirmStyle === '' && results.length < commonProps.max) { + confirmStyle = true; + results.push({ id: id, value: value }); + items.push(this); + } else { + confirmStyle = ''; + results.some(function (key, index) { + if (JSON.stringify(key) === JSON.stringify({ id: id, value: value })) { + results.splice(index, 1); + return true; + } else { + return false; + } + }); + } + this.setData({ + confirmStyle: confirmStyle + }); + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/filter/filter-item/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/filter/filter-item/index.json new file mode 100755 index 000000000..32640e0dc --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/filter/filter-item/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/filter/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/filter/index.acss new file mode 100755 index 000000000..6aa088d80 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/filter/index.acss @@ -0,0 +1,59 @@ +.am-filter-show { + height: 100vh; + display: block; + position: relative; +} + +.am-filter-hide { + display: none; +} + +.am-filter-mask, .am-filter-document { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; +} + +.am-filter-mask { + background: rgba(0, 0, 0, 0.65); +} + +.am-filter-content { + background: #ffffff; + display: flex; + flex-direction: column; + overflow-x: hidden; + overflow-y: scroll; +} + +.am-filter-list { + flex: 1; + padding: 10px 5px 23px; + overflow-x: hidden; + min-height: 200px; + overflow-y: scroll; + max-height: 515px; + box-sizing: border-box; +} + +.am-filter-btn { + width: 100%; + display: flex; +} + +.am-filter-default, .am-filter-primary { + flex: 1; + height: 48px; + font-size: 18px; + box-sizing: border-box; + width: 50%; + border: 0; + border-radius: 0; +} + +.am-filter-default { + border-top: 1px solid #eeeeee; + border-right: none; +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/filter/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/filter/index.axml new file mode 100755 index 000000000..0e2bb004c --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/filter/index.axml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/filter/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/filter/index.js new file mode 100755 index 000000000..bb681ee2b --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/filter/index.js @@ -0,0 +1,40 @@ +import lifecycle from './mixins/lifecycle'; + +Component({ + mixins: [lifecycle], + data: { + maxHeight: 0 + }, + props: { + className: '', + onChange: function onChange() {}, + max: 10000 + }, + didMount: function didMount() { + var commonProps = this.data.commonProps; + var max = this.props.max; + + commonProps.max = max; + }, + + methods: { + resetFn: function resetFn() { + var _data = this.data, + items = _data.items, + results = _data.results; + + items.forEach(function (element) { + element.setData({ + confirmStyle: '' + }); + }); + results.splice(0, results.length); + }, + confirmFn: function confirmFn() { + var onChange = this.props.onChange; + var results = this.data.results; + + onChange(results); + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/filter/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/filter/index.json new file mode 100755 index 000000000..467ce2945 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/filter/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/filter/mixins/lifecycle.js b/public/appmini/old/alipay/node_modules/mini-antui/es/filter/mixins/lifecycle.js new file mode 100755 index 000000000..4288863c4 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/filter/mixins/lifecycle.js @@ -0,0 +1,18 @@ +export default { + data: { + results: [], + items: [], + commonProps: { + max: 10000 + } + }, + + didUnmount: function didUnmount() { + var _data = this.data, + items = _data.items, + results = _data.results; + + results.splice(0, results.length); + items.splice(0, items.length); + } +}; \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/footer/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/footer/index.acss new file mode 100755 index 000000000..1792210ae --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/footer/index.acss @@ -0,0 +1,31 @@ +.am-footer-links { + display: flex; + justify-content: center; +} + +.am-footer-link { + height: 17px; + line-height: 17px; + color: #108ee9; + font-size: 12px; +} + +.am-footer-link::after { + content: '|'; + padding: 0 5px; + height: 17px; + color: #ccc; +} + +.am-footer-link:last-child::after { + display: none; +} + +.am-footer-copyright { + margin-top: 3px; + height: 17px; + line-height: 17px; + color: #ccc; + font-size: 14px; + text-align: center; +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/footer/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/footer/index.axml new file mode 100755 index 000000000..e0d5ccef6 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/footer/index.axml @@ -0,0 +1,8 @@ + + + + {{item.text}} + + + {{copyright}} + \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/footer/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/footer/index.js new file mode 100755 index 000000000..cb7485f9f --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/footer/index.js @@ -0,0 +1,5 @@ +Component({ + props: { + className: '' + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/footer/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/footer/index.json new file mode 100755 index 000000000..32640e0dc --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/footer/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/grid/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/grid/index.acss new file mode 100755 index 000000000..b170d798f --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/grid/index.acss @@ -0,0 +1,223 @@ +.am-grid { + display: flex; + flex-direction: row; + flex-wrap: wrap; + background-color: white; +} + +.am-grid-4 { + padding-top: 7px; + padding-bottom: 7px; +} + +.am-grid-5 { + padding-top: 6px; + padding-bottom: 7px; +} + +.am-grid-item { + text-align: center; + position: relative; +} + +.am-grid-3 .am-grid-border { + position: absolute; + left: 0; + bottom: 0; + width: 100%; + height: 100%; + border-bottom: 1rpx solid #eee; + border-right: 1rpx solid #eee; + box-sizing: border-box; +} + +.am-grid-3 .am-grid-right { + border-right: none; +} + +.am-grid-3 .am-grid-bottom { + border-bottom: none; +} + +.am-grid-3 .am-grid-top { + height: calc(100% - 15px); +} + +.am-grid-item-wrapper { + position: absolute; + left: 0; + bottom: 0; + width: 100%; + height: 100%; + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; +} + +.am-grid-2 .am-grid-item-wrapper { + flex-direction: row; + justify-content: flex-start; +} + +.am-grid-icon-container { + display: flex; + justify-content: center; + align-items: center; +} + +.am-grid-icon { + flex: 1; + width: 36px; + height: 36px; +} + +.am-grid-text-wrapper { + display: flex; + flex-direction: column; + align-items: flex-start; +} + +.am-grid-3 .am-grid-text-wrapper { + align-items: center; +} + +.am-grid-3 .am-grid-text { + height: 20px; + line-height: 20px; +} + +.am-grid-3 .am-grid-desc { + height: 17px; + line-height: 17px; +} + +.am-grid-text { + color: #333; + font-size: 14px; + line-height: 1; + margin-top: 14px; +} + +.am-grid-desc { + color: #999; + font-size: 12px; +} + +.am-grid-2 .am-grid-item.has-desc { + padding-top: 70px; +} + +.am-grid-3 .am-grid-item { + padding-top: 125px; +} + +.am-grid-3.am-grid-no-line { + padding: 8px 16px 0 16px; +} + +.am-grid-no-line .am-grid-item { + padding-top: 110px; +} + +.am-grid-2 .am-grid-item { + padding-top: 64px; +} + + +.am-grid-4 .am-grid-item { + padding-top: 68px; +} + +.am-grid-4.circular .am-grid-item { + padding-top: 82px; +} + +.am-grid-3 { + padding: 0 16px; +} + +.am-grid-3 .am-grid-text { + margin-top: 12px; +} + +.am-grid-no-line .am-grid-border { + border-right: none; + border-bottom: none; +} + +.am-grid-4.circular { + padding-top: 3px; +} + +.am-grid-4.circular .am-grid-icon-container { + margin-top: 13px; + padding: 8px; + border-radius: 50%; + background-color: #D8D8D8; +} + +.am-grid-2 .am-grid-icon-container { + margin-left: 16px; +} + +.am-grid-2 .am-grid-icon { + width: 28px; + height: 28px; +} + +.am-grid-4 .am-grid-icon-container { + margin-top: 7px; +} + +.am-grid-4 .am-grid-icon { + height: 28px; + width: 28px; +} + +.am-grid-4.circular .am-grid-icon { + width: 26px; + height: 26px; + flex: 1; +} + +.am-grid-4.circular .am-grid-text { + height: 16px; + line-height: 16px; +} + +.am-grid-5 .am-grid-item { + padding-top: 75px; +} + +.am-grid-5 .am-grid-icon { + border-radius: 50%; + width: 43px; + height: 43px; +} + +.am-grid-2 .am-grid-text { + margin-top: 0; + margin-left: 12px; + height: 24px; + line-height: 24px; + font-size: 17px; +} + +.am-grid-2 .am-grid-desc { + margin-left: 12px; + height: 16px; + line-height: 16px; +} + +.am-grid-4 .am-grid-text { + font-size: 13px; + height: 13px; + line-height: 13px; + margin-top: 7px; +} +.am-grid-5 .am-grid-text { + font-size: 12px; + margin-top: 7px; +} + diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/grid/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/grid/index.axml new file mode 100755 index 000000000..c92ca5b85 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/grid/index.axml @@ -0,0 +1,22 @@ + + + + + + + + + + {{item.text}} + {{item.desc}} + + + + + \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/grid/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/grid/index.js new file mode 100755 index 000000000..2f075a2cb --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/grid/index.js @@ -0,0 +1,32 @@ +Component({ + data: { + bottomIndex: 0 + }, + props: { + columnNum: 3, + circular: false, + list: [], + onGridItemClick: function onGridItemClick() {}, + hasLine: true + }, + didMount: function didMount() { + var _props = this.props, + list = _props.list, + columnNum = _props.columnNum; + + var rows = list.length / columnNum; + this.setData({ + bottomIndex: Math.floor(rows) === rows ? (rows - 1) * columnNum : Math.floor(rows) * columnNum + }); + }, + + methods: { + onGridItemClick: function onGridItemClick(e) { + this.props.onGridItemClick({ + detail: { + index: e.target.dataset.index + } + }); + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/grid/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/grid/index.json new file mode 100755 index 000000000..467ce2945 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/grid/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/input-item/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/input-item/index.acss new file mode 100755 index 000000000..91c0a63a6 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/input-item/index.acss @@ -0,0 +1,74 @@ +.am-input-item { + display: flex; + align-items: center; + background: #fff; + padding-left: 15px; +} + +.am-input-item .a-input-content { + padding-left: 2px; +} + +.am-input-line { + position: relative; + flex: 1; + display: flex; + align-items: center; + padding-right: 15px; + min-height: 47px; + overflow: hidden; +} + +.am-input-label { + min-width: 80px; + margin-right: 2px; + color: #333; +} + +.am-input-content { + flex: 1; + display: flex; + height: 33px; + color: #000; + text-align: left; +} + +.am-input-content .a-input-wrap { + flex: 1; +} + +.am-input-clear { + display: flex; + height: 33px; + width: 33px; + justify-content: center; + align-items: center; +} + +.am-input-clear.show { + visibility: visible; +} + +.am-input-clear.hidden { + visibility: hidden; + pointer-events: none; +} + +.am-input-line-bottom::after { + content: ''; + display: block; + position: absolute; + width: 100%; + height: 1px; + transform: scaleY(0.5); + left: 0; + bottom: 0; + right: auto; + top: auto; + background-color: #eee; +} + +/* 最后一行 */ +.am-input-item.last .am-input-line-bottom::after { + display: none; +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/input-item/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/input-item/index.axml new file mode 100755 index 000000000..6a6bc47b5 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/input-item/index.axml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/input-item/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/input-item/index.js new file mode 100755 index 000000000..8c0052a03 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/input-item/index.js @@ -0,0 +1,59 @@ +import fmtEvent from '../_util/fmtEvent'; + +Component({ + props: { + className: '', + labelCls: '', + inputCls: '', + last: false, + value: '', + name: '', + type: 'text', + password: false, + placeholder: '', + placeholderClass: '', + placeholderStyle: '', + disabled: false, + maxlength: 140, + focus: false, + clear: false, // 是否带清除功能 + syncInput: false, + enableNative: false, // 兼容安卓input的输入bug + onInput: function onInput() {}, + onConfirm: function onConfirm() {}, + onFocus: function onFocus() {}, + onBlur: function onBlur() {}, + onClear: function onClear() {} + }, + data: { + _focus: false + }, + methods: { + onBlur: function onBlur(e) { + this.setData({ + _focus: false + }); + var event = fmtEvent(this.props, e); + this.props.onBlur(event); + }, + onConfirm: function onConfirm(e) { + var event = fmtEvent(this.props, e); + this.props.onConfirm(event); + }, + onFocus: function onFocus(e) { + this.setData({ + _focus: true + }); + var event = fmtEvent(this.props, e); + this.props.onFocus(event); + }, + onInput: function onInput(e) { + var event = fmtEvent(this.props, e); + this.props.onInput(event); + }, + onClear: function onClear(e) { + var event = fmtEvent(this.props, e); + this.props.onClear(event); + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/input-item/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/input-item/index.json new file mode 100755 index 000000000..467ce2945 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/input-item/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/list/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/list/index.acss new file mode 100755 index 000000000..abce0fe4f --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/list/index.acss @@ -0,0 +1,39 @@ +.am-list-header, +.am-list-footer { + font-size: 14px; + color: #888; +} + +.am-list-header { + padding: 16px 16px 8px; +} + +.am-list-body { + position: relative; +} + +.am-list-body::before { + position: absolute; + content: ''; + top: 0; + left: 0; + right: 0; + height: 1px; + transform: scaleY(0.5); + background-color: #eee; +} + +.am-list-body::after { + position: absolute; + content: ''; + bottom: 0; + left: 0; + right: 0; + height: 1px; + transform: scaleY(0.5); + background-color: #eee; +} + +.am-list-footer { + padding: 8px 16px 16px 16px; +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/list/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/list/index.axml new file mode 100755 index 000000000..cf509812e --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/list/index.axml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/list/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/list/index.js new file mode 100755 index 000000000..cb7485f9f --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/list/index.js @@ -0,0 +1,5 @@ +Component({ + props: { + className: '' + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/list/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/list/index.json new file mode 100755 index 000000000..467ce2945 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/list/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/list/list-item/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/list/list-item/index.acss new file mode 100755 index 000000000..cad5d3323 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/list/list-item/index.acss @@ -0,0 +1,127 @@ +.am-list-item { + display: flex; + align-items: center; + background: #fff; + padding-left: 16px; + font-size: 15px; + line-height: 1.4; + color: #333; +} + +/* hover 样式 */ +.am-list-item-hover { + background-color: #f8f8f8; +} + +.am-list-prefix { + margin-right: 16px; +} + +.am-list-thumb { + width: 30px; + height: 30px; + margin-right: 16px; +} + +.am-list-line { + position: relative; + flex: 1; + display: flex; + align-items: center; + align-self: stretch; + padding-right: 15px; + min-height: 52px; + overflow: hidden; +} + +.am-list-content, +.am-list-extra { + line-height: 1.5; + width: auto; + padding-top: 7px; + padding-bottom: 7px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.am-list-content { + flex: 1; + color: #000; + font-size: 17px; + text-align: left; +} + +.am-list-extra { + flex-basis: 36%; + color: #888; + font-size: 16px; + text-align: right; +} + +.am-list-brief { + color: #888; + font-size: 14px; +} + +.am-list-wrap .am-list-content, +.am-list-wrap .am-list-extra { + white-space: normal; +} + +.am-list-arrow { + display: block; + width: 15px; + height: 15px; + margin-left: 8px; + background-image: url('https://gw.alipayobjects.com/zos/rmsportal/nGMpTwTjtKMbOeeQIucS.png'); + background-size: contain; + background-repeat: no-repeat; + background-position: 50% 50%; +} + +.am-list-arrow-empty { + visibility: hidden; +} + +.am-list-line-bottom::after { + content: ''; + display: block; + position: absolute; + width: 100%; + height: 1px; + background: #eee; + transform: scaleY(0.5); + left: 0; + bottom: 0; + right: auto; + top: auto; +} + +/* 子元素垂直对齐 */ +.am-list-top .am-list-line { + align-items: flex-start; +} + +.am-list-middle .am-list-line { + align-items: center; +} + +.am-list-bottom .am-list-line { + align-items: flex-end; +} + +/* 多行 */ +.am-list-multiple .am-list-line { + padding: 6px 15px 6px 0; +} + +.am-list-multiple .am-list-thumb { + width: 36px; + height: 36px; +} + +/* 最后一行 */ +.am-list-item.last .am-list-line-bottom::after { + display: none; +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/list/list-item/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/list/list-item/index.axml new file mode 100755 index 000000000..3c751535c --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/list/list-item/index.axml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/list/list-item/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/list/list-item/index.js new file mode 100755 index 000000000..803d13b98 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/list/list-item/index.js @@ -0,0 +1,32 @@ +Component({ + props: { + className: '', + align: false, + disabled: false, + multipleLine: false, + wrap: false + }, + didMount: function didMount() { + this.dataset = {}; + for (var key in this.props) { + if (/data-/gi.test(key)) { + this.dataset[key.replace(/data-/gi, '')] = this.props[key]; + } + } + }, + + methods: { + onItemTap: function onItemTap(ev) { + var _props = this.props, + onClick = _props.onClick, + disabled = _props.disabled; + + if (onClick && !disabled) { + onClick({ + index: ev.target.dataset.index, + target: { dataset: this.dataset } + }); + } + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/list/list-item/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/list/list-item/index.json new file mode 100755 index 000000000..467ce2945 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/list/list-item/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/message/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/message/index.acss new file mode 100755 index 000000000..7ad2f0be2 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/message/index.acss @@ -0,0 +1,33 @@ +.am-message { + background-color: #fff; + border-bottom: 1rpx solid #eeeeee; + margin-bottom: 30px; + padding: 30px 15px; + text-align: center; + height: 199px; + box-sizing: border-box; +} +.am-message .am-icon { + display: block; +} +.am-message-main { + font-size: 20px; + margin: 16px 0 9px; + line-height: 28px; +} +.am-message-sub { + padding: 0 30px; + font-size: 14px; + line-height: 19px; + margin-top: 6px; + color: #999; +} +.am-button-wrap{ + padding: 0 15px; +} +.am-button-wrap .a-button { + margin-bottom: 15px; +} +.am-button-wrap .a-button:last-child { + margin-bottom: 0; +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/message/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/message/index.axml new file mode 100755 index 000000000..3eb529863 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/message/index.axml @@ -0,0 +1,27 @@ + + + + {{title}} + + + {{subTitle}} + + + + + + diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/message/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/message/index.js new file mode 100755 index 000000000..48ca2900f --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/message/index.js @@ -0,0 +1,17 @@ +Component({ + props: { + className: "", + type: "success", + title: "", + onTapMain: function onTapMain() {}, + onTapSub: function onTapSub() {} + }, + methods: { + tapMain: function tapMain() { + this.props.onTapMain(); + }, + tapSub: function tapSub() { + this.props.onTapSub(); + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/message/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/message/index.json new file mode 100755 index 000000000..32640e0dc --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/message/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/modal/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/modal/index.acss new file mode 100755 index 000000000..14b5dcd0d --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/modal/index.acss @@ -0,0 +1,118 @@ +.am-modal-show { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; +} +.am-modal-hide { + display: none; +} +.am-modal-mask, +.am-modal-document { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; +} +.am-modal-mask { + background-color: rgba(0, 0, 0, 0.75); +} +.am-modal-document { + display: flex; + align-items: center; + justify-content: center; +} +.am-modal { + background-color: #fff; + border-radius: 2px; + width: 270px; + position: relative; +} +.am-modal-image { + display: flex; + justify-content: center; +} +.am-modal-image-md, +.am-modal-image-sm { + margin-top: 24px; +} + +.am-modal-image-lg image { + width: 270px; + height: 156px; +} +.am-modal-image-md image { + width: 134px; + height: 134px; +} +.am-modal-image-sm image { + width: 65px; + height: 65px; +} +.am-modal-header { + font-size: 18px; + line-height: 21px; + text-align: center; + color: #333; + font-weight: 600; + padding-top: 22px; +} +.am-modal-body { + margin-top: 8px; + overflow: hidden; + max-width: 270px; + padding: 0 16px; + line-height: 20px; + text-align: center; + color: #333; + font-size: 14px; +} + +.am-modal-footer { + margin-top: 12px; + height: 50px; + line-height: 50px; + border-top: 1rpx solid #ddd; + font-size: 18px; + color: #108ee9; + text-align: center; +} +.am-modal-close { + position: absolute; + display: block; + right: 0; + top: 0; + height: 48px; + width: 48px; + background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAMAAAAM7l6QAAAANlBMVEVMaXGIiIiJiYmJiYn///+IiIiIiIiRkZGJiYmJiYmIiIiZmZmIiIiIiIiLi4uJiYmIiIiIiIif033nAAAAEXRSTlMA3vWjAZv1FdRBcAq0vhZmK7msGmgAAABnSURBVHhe7dEpFoAwEATRTliysIS5/2VReS16xiEp+2XhuQqC2nngshp4262j1Omq2wq6q3Rf6arionRVdaq4qjpVneo71fOUqerJbAkVLRv/eBcW/nEvfPD3/4szPHhXGzj6VPWBF66vCbNK4YfYAAAAAElFTkSuQmCC") center no-repeat; + background-size: 16px 16px; +} + +.am-close-white { + background: url("https://gw.alipayobjects.com/zos/rmsportal/fdmdsySxNBrpcVBVGEUM.png") center no-repeat;; + background-size: 16px 16px; +} + +.am-modal-close-active, +.am-modal-footer-active { + background-color: rgba(37,39,40,.05); +} + +.am-modal-document-advice .am-modal { + padding-top: 0; + width: auto; +} +.am-modal-document-advice .am-modal-body { + padding: 0; + max-width: 319px; +} + +.am-modal-document-advice .am-modal-close { + top: -50px; + height: 27px; + width: 27px; + background-size: 27px 27px; + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAAA2CAYAAACMRWrdAAAEMElEQVR4AWKgJvj//z8roFl7cJJdiaM4/mbtvbZt27Zt27ZtrvLfvu8iVWe77tSmJ/lNMlWfQtLICXo6wARswRk8wUf8RAt+4TOe4wJ2YAaqkujfIsx8XEMTggK04j5WojbtQBXYhF8I8viCh7iJy7iBB3iPtjx1mnEQdcUOVIKl+IzA8QEHMBFVEY70SGzHcwSO39iCimKEGoeXCMRP7MDwmG33wzp8gHvU51uGWoYW55TZi5qE+ynrCvjDCbgXJUmfegedTs6gj/HZUY3dzs68huqkGr8pDbdgaZGv6YnO0XuFfnGPlIb6hnEpjcD98Uq25W3BfwvO6fcKfVP+e6lydvQtlPgPFHqkNFS64Sqdv4ZDvkN6i1xT4zI20+mDbxJuWdTr6oVU0oEiS+HGys7/hbqeKizRIV3XZTDcRtnWAz1NcT7Ln2+fjAcrx0e5ZPrlK7gJQZd9KW1sNeajX8Tyi2Sbz+ZL/1PmfrUeM/zT+IaxCRyBw/iLu1HCUSbnjJID3QLzZOUOj43Zh78I8BoT4oaSie+6iHXnyrbvcldek5XDPTaoN24h0HAxQ33DeuSi/rfJDe5Hdzb9110RP5x9KGnnqvQ/JFw4QRYelPLxwxmHkraWSt9rwoWbZeFEKZ9sOINQ0l699Hs+XHhaFnbd6xiEMwilP7nzfh4ueBSORFIubrjbbjiLUPqTmf9f5DTpIy1ocOQmGoTSPo93O/Pk7vS2FjQI9xF/DEKF/e2Xvnq3L2hGgCta0CKcQSjta0e3GYhMpW4aTVT3oFk6fYnRBn3tlT76/Ccz5IcGofSa+ukOKAn3d1Tar2lf8Mxj1hFnmrTJf4bi1ecVuYUpaV9wXjqrMAq1Hjn0tgrX3lbYZrhgu3Q02ipUjOlX1IlwCwJcDhdOk052WoayCkfd2dLWpnBhlaR9aR3KIpwzLRylK+7Jiv5moTymXx79l8iI+wMlunK5NL7eIpTVkaPsRKl72F1ZjWaZ+pRHbHQWHvmGihDuIaYVcJM56l8FDkiBDZ5Pjr9hFXIJ3BX8wCaURKgzXrb5dr5Ctfjl86TKYFrUiIEeZ8wjCTZCVhk+W7TfCXPdZ4pRnwa3YnJGQ/XGV30K7LsnfmJAxkJVyPy23Q6fyrud4bc6I6FyuOi8ky7x/dPTYfQ2qjIQap/zlrWq0FejL6WhF+iX4umnR+oH+sdpsC9eS4PfMT6FN5jPnVBjk3q1c8P5JGITyos0pH/z/xTC75o7gEB8wmKUGH3b8djp76rFda6vcn86Hb7AfFTFbLsUk3AdgWjBDpRYnx612BdOmkUzrmEZGjwGqLk4oztMnEW/ND5LOON+dyg+4hZO4AB2YR+O4SreojVP3dsYkfaf5gDswAcEMXzHYYzK4hxuEFbhLJ7KI21XM17hEjZilM01ZP8NVCP6ozeqkbPu93+pG3nJRlqdHgAAAABJRU5ErkJggg=="); +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/modal/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/modal/index.axml new file mode 100755 index 000000000..135b4c636 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/modal/index.axml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/modal/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/modal/index.js new file mode 100755 index 000000000..3fbc09b26 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/modal/index.js @@ -0,0 +1,24 @@ +Component({ + props: { + className: '', + topImageSize: 'md', + showClose: true, + closeType: '0' + }, + methods: { + onModalClick: function onModalClick() { + var onModalClick = this.props.onModalClick; + + if (onModalClick) { + onModalClick(); + } + }, + onModalClose: function onModalClose() { + var onModalClose = this.props.onModalClose; + + if (onModalClose) { + onModalClose(); + } + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/modal/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/modal/index.json new file mode 100755 index 000000000..467ce2945 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/modal/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/notice/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/notice/index.acss new file mode 100755 index 000000000..1d24ffc09 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/notice/index.acss @@ -0,0 +1,76 @@ +.am-notice { + width: 100%; + height: 36px; + box-sizing: border-box; + line-height: 36px; + display: flex; + background-color: #fefceb; + overflow: hidden; + font-size: 13px; + color: #f76a24; +} + +.am-notice-thumb { + padding-left: 16px; + width: 19px; + background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAYFBMVEVMaXH4biD/dSn3biD2cib/dDj3biD3biD4biD4byP/lUD3biD4biH4biH3biD5byH4biD4cCH3biH3bST2byT4biH3biD3cSP3biD0bSH6cCL4biH3biL3biH4biL4biGKhhI5AAAAIHRSTlMA4A3wGAj3+rRQBJOsn+o/zUtcKBzH1TKILzZvU796aUQsa54AAAEeSURBVHgBfdNVlt0wFETRElhlZvaD+c+yta7SSYznewstY99aqwkPNYbMcd/XUTHGbTOZvTzQlcZFaUF+kHhQ0OUVjumYroWAZCQZ99hla5YVAgC6zLGcEEqtb1JUC/4CTwaqLpyspFT3+B8gyjla+EpKucYeIBrClZC7MwmYXimAznEVEJ3AyLcGULC4AUkpsy800TVAZ9gAUFxvAGaZPWZ7ByrWsontDjQcnkHG7HGJJFxByeUafCgTVCzTazAwSwHkwq6A7cJJXC/rOOdYZqePZRVn+FpHqbZ7YEfWYW7d972tjg+mUVS7R9fXNM0v0O2bHOz50X4D+DrSbOnp2WfkLGBm/bG4aCPzVpZ4+DWNBw9NiizwVF/kPXb9AFr1D7ArYO8yAAAAAElFTkSuQmCC") center no-repeat; + background-size: 18px auto; + background-position: center right; +} + +.am-notice-content { + flex: 1; + width: 100%; + margin-left: 9px; + margin-right: 10px; + overflow: hidden; +} + +.am-notice-marquee { + position: relative; + height: 100%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + display: inline-block; +} + +.am-notice-operation { + padding-right: 16px; +} + +.am-notice-link { + display: block; + height: 100%; + color: #f85800; +} + +.am-notice-link::after { + content: ""; + display: inline-block; + width: 6px; + height: 6px; + border: 1px solid #f76a24; + border-top: 0 none; + border-left: 0 none; + margin-left: 6px; + margin-right: 2px; + margin-bottom: 1px; + transform: rotate(315deg) +} + +.am-notice-closable { + width: 10px; + height: 100%; + background-image: url('https://gw.alipayobjects.com/zos/rmsportal/mLiemrUlPGVwIGXQdWDx.png'); + background-size: contain; + background-position: center; + background-repeat: no-repeat; +} + +.am-notice-operation-text { + display: block; + height: 100%; + color: #e14f00 + ; +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/notice/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/notice/index.axml new file mode 100755 index 000000000..b53f62c86 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/notice/index.axml @@ -0,0 +1,12 @@ + + + + + + + + + {{action}} + + + \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/notice/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/notice/index.js new file mode 100755 index 000000000..36bbf1c20 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/notice/index.js @@ -0,0 +1,123 @@ +Component({ + props: { + className: '', + mode: '', // closable,link + action: '', // 文本按钮 + show: true, // 是否显示 + enableMarquee: false, // 是否开启marquee + onClick: function onClick() {}, + marqueeProps: { + loop: false, + leading: 500, + trailing: 800, + fps: 40 + } + }, + data: { + animatedWidth: 0, + overflowWidth: 0 + }, + didMount: function didMount() { + if (this.props.enableMarquee) { + this._measureText(); + this._startAnimation(); + } + }, + didUpdate: function didUpdate() { + this._measureText(); + if (this.props.enableMarquee && !this._marqueeTimer) { + this._measureText(); + this._startAnimation(); + } + }, + didUnmount: function didUnmount() { + if (this._marqueeTimer) { + clearTimeout(this._marqueeTimer); + this._marqueeTimer = null; + } + }, + + methods: { + _measureText: function _measureText() { + var _this = this; + + // 计算文本所占据的宽度,计算需要滚动的宽度 + my.createSelectorQuery().select('.am-notice-marquee-' + this.$id).boundingClientRect().select('.am-notice-content-' + this.$id).boundingClientRect().exec(function (ret) { + var overflowWidth = ret && ret[0] && ret[1] && ret[0].width - ret[1].width || 0; + _this.setData({ + overflowWidth: overflowWidth + }); + }); + }, + _startAnimation: function _startAnimation() { + var _this2 = this; + + if (this._marqueeTimer) { + clearTimeout(this._marqueeTimer); + } + + var _props$marqueeProps = this.props.marqueeProps, + loop = _props$marqueeProps.loop, + fps = _props$marqueeProps.fps, + trailing = _props$marqueeProps.trailing, + leading = _props$marqueeProps.leading; + + var TIMEOUT = 1 / fps * 1000; + var isLeading = this.data.animatedWidth === 0; + var timeout = isLeading ? leading : TIMEOUT; + + var animate = function animate() { + var overflowWidth = _this2.data.overflowWidth; + + var animatedWidth = _this2.data.animatedWidth + 1; + var isRoundOver = animatedWidth > overflowWidth; + + if (isRoundOver) { + if (loop) { + animatedWidth = 0; + } else { + return; + } + } + + if (isRoundOver && trailing) { + _this2._marqueeTimer = setTimeout(function () { + _this2.setData({ + animatedWidth: animatedWidth + }); + + _this2._marqueeTimer = setTimeout(animate, TIMEOUT); + }, trailing); + } else { + _this2.setData({ + animatedWidth: animatedWidth + }); + + _this2._marqueeTimer = setTimeout(animate, TIMEOUT); + } + }; + + if (this.data.overflowWidth !== 0) { + this._marqueeTimer = setTimeout(animate, timeout); + } + }, + onNoticeTap: function onNoticeTap() { + var _props = this.props, + mode = _props.mode, + onClick = _props.onClick; + + if (mode === 'link' && typeof onClick === 'function') { + onClick(); + } + }, + onOperationTap: function onOperationTap() { + var _props2 = this.props, + mode = _props2.mode, + onClick = _props2.onClick; + + if (mode === 'closable' && typeof onClick === 'function') { + onClick(); + } + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/notice/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/notice/index.json new file mode 100755 index 000000000..32640e0dc --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/notice/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/page-result/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/page-result/index.acss new file mode 100755 index 000000000..004cd6216 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/page-result/index.acss @@ -0,0 +1,88 @@ +.am-page-result { + background: #fff; + height: 100vh; + overflow: hidden; +} + +.am-page-result-pic { + width: 220px; + height: 220px; + margin: 22px auto 0; + background-position: center bottom; + background-repeat: no-repeat; + background-size: contain; +} + +.page-network { + background-image: url("https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/i/error-network.png"); +} + +.page-error { + background-image: url("https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/i/error-busy.png"); +} + +.page-busy { + background-image: url("https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/i/error-excption.png"); +} + +.page-empty { + background-image: url("https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/i/error-not-found.png"); +} + +.page-logoff { + background-image: url("https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/i/error-logout.png"); +} + +.am-page-result-title { + margin: 25px auto 0; + text-align: center; + font-size: 20px; + color: #333; +} + +.am-page-result-brief { + margin: 16px auto; + font-size: 14px; + color: #888; + max-width: 266px; + text-align: center; +} + +.am-local-page { + height: 100%; +} + +.am-local-page .am-page-result-pic { + width: 90px; + height: 90px; + margin: 24px auto 0; + background-size: contain; +} + +.am-local-page .am-page-result-brief { + margin-bottom: 30px; + font-size: 14px; + color: #999; + max-width: 266px; + text-align: center; +} + +.am-local-page .page-empty { + background-image: url("https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/i/error-not-found-sm.png"); +} + +.am-local-page .page-error { + background-image: url("https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/i/error-busy-sm.png"); +} + +.am-local-page .page-network { + background-image: url("https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/i/error-network-sm.png"); +} + +.am-local-page .page-busy { + background-image: url("https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/i/error-excption-sm.png"); +} + +.am-local-page .page-logoff { + background-image: url("https://gw.alipayobjects.com/as/g/antui/antui-static/1.0.3/i/error-logout-sm.png"); +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/page-result/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/page-result/index.axml new file mode 100755 index 000000000..4c7f5d697 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/page-result/index.axml @@ -0,0 +1,6 @@ + + + {{title}} + {{brief}} + + diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/page-result/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/page-result/index.js new file mode 100755 index 000000000..3bd42c3ce --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/page-result/index.js @@ -0,0 +1,7 @@ +Component({ + props: { + className: '', + type: 'network', + local: false + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/page-result/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/page-result/index.json new file mode 100755 index 000000000..467ce2945 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/page-result/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/picker-item/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/picker-item/index.acss new file mode 100755 index 000000000..72c0511cc --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/picker-item/index.acss @@ -0,0 +1,84 @@ +.am-picker-item { + display: flex; + align-items: center; + background: #fff; + padding-left: 15px; +} + +.am-picker-line { + position: relative; + flex: 1; + display: flex; + align-items: center; + padding-right: 15px; + min-height: 47px; + overflow: hidden; +} + +.am-picker-label { + min-width: 80px; + margin-right: 2px; + color: #333; +} + +.am-picker-wrapper { + display: flex; + flex: 1; + height: 33px; + align-items: center; +} + +.am-picker-content { + flex: 1; + display: flex; + align-items: center; + height: 33px; + color: #000; + text-align: left; +} + +.am-picker-clear { + display: flex; +} + +.am-picker-line-bottom::after { + content: ''; + display: block; + position: absolute; + width: 100%; + height: 1px; + transform: scaleY(0.5); + left: 0; + bottom: 0; + right: auto; + top: auto; + background-color: #eee; +} + +/* 最后一行 */ +.am-picker-item.last .am-picker-line-bottom::after { + display: none; +} + +.am-picker-text { + padding-left: 8px; +} + +.am-picker-content-placeholder { + color: #ccc; +} + +.am-picker-content-value { + color: #333; +} + +.am-picker-arrow { + display: block; + width: 13px; + height: 13px; + margin-left: 8px; + background-image: url('https://gw.alipayobjects.com/zos/rmsportal/nGMpTwTjtKMbOeeQIucS.png'); + background-size: contain; + background-repeat: no-repeat; + background-position: 50% 50%; +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/picker-item/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/picker-item/index.axml new file mode 100755 index 000000000..00902d58f --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/picker-item/index.axml @@ -0,0 +1,18 @@ + + + + + + + + + {{value.length > 0 ? value : placeholder}} + + + + + + + \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/picker-item/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/picker-item/index.js new file mode 100755 index 000000000..f732912e1 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/picker-item/index.js @@ -0,0 +1,16 @@ +import fmtEvent from '../_util/fmtEvent'; + +Component({ + props: { + className: '', + value: '', + placeholder: '', + onSelect: function onSelect() {} + }, + methods: { + onPickerTap: function onPickerTap(e) { + var event = fmtEvent(this.props, e); + this.props.onPickerTap(event); + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/picker-item/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/picker-item/index.json new file mode 100755 index 000000000..32640e0dc --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/picker-item/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/popover/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/popover/index.acss new file mode 100755 index 000000000..39dddb58a --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/popover/index.acss @@ -0,0 +1,171 @@ +.am-popover { + position: relative; +} +.am-popover-mask { + position: fixed; + top: 0; + right: 0; + left: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.3); + height: 100%; + z-index: 99; +} +.am-popover-content { + position: absolute; + z-index: 100; + border-radius: 4px; + font-size: 14px; + color: #333; +} +.border-true { + border: 1px solid #ddd; +} +.am-popover-inner { + position: relative; + color: #000; + background-color: #fff; + border-radius: 3px; +} +/* popover position: top */ +.am-popover-placement-top { + top: -7px; + left: 50%; + transform: translate(-50%, -100%); +} +.am-popover-placement-topLeft { + top: -7px; + left: 0; + transform: translate(0, -100%); +} +.am-popover-placement-topRight { + top: -7px; + right: 0; + transform: translate(0, -100%); +} +/* popover position: right */ +.am-popover-placement-right { + top: 50%; + right: -7px; + transform: translate(100%, -50%); +} +.am-popover-placement-rightTop { + top: 0; + right: -7px; + transform: translateX(100%); +} +.am-popover-placement-rightBottom { + bottom: 0; + right: -7px; + transform: translateX(100%); +} +/* popover position: bottom */ +.am-popover-placement-bottom { + bottom: -7px; + left: 50%; + transform: translate(-50%, 100%); +} +.am-popover-placement-bottomRight { + bottom: -7px; + right: 0; + transform: translateY(100%); +} +.am-popover-placement-bottomLeft { + bottom: -7px; + left: 0; + transform: translateY(100%); +} +/* popover position: left */ +.am-popover-placement-left { + top: 50%; + left: -7px; + transform: translate(-100%, -50%); +} +.am-popover-placement-leftTop { + top: 0; + left: -7px; + transform: translateX(-100%); +} +.am-popover-placement-leftBottom { + bottom: 0; + left: -7px; + transform: translateX(-100%); +} +/* arrow style start */ +.am-popover-arrow { + position: absolute; + width: 7px; + height: 7px; + background-color: #fff; + z-index: 0; + /* box-shadow: 0 0 2px rgba(0, 0, 0, 0.21); */ +} +/* arrow position: top */ +.am-popover-placement-top .am-popover-arrow, +.am-popover-placement-topLeft .am-popover-arrow, +.am-popover-placement-topRight .am-popover-arrow { + transform: translateY(50%) rotate(45deg); + bottom: 0; +} +.am-popover-placement-top .am-popover-arrow { + transform: translate(-50%, 50%) rotate(45deg); + left: 50%; +} +.am-popover-placement-topRight .am-popover-arrow { + right: 16px; +} +.am-popover-placement-topLeft .am-popover-arrow { + left: 16px; +} +/* arrow position: right */ +.am-popover-placement-right .am-popover-arrow, +.am-popover-placement-rightTop .am-popover-arrow, +.am-popover-placement-rightBottom .am-popover-arrow { + transform: translateX(-50%) rotate(45deg); + left: 0; +} +.am-popover-placement-right .am-popover-arrow { + transform: translate(-50%, -50%) rotate(45deg); + top: 50%; +} +.am-popover-placement-rightBottom .am-popover-arrow { + bottom: 16px; +} +.am-popover-placement-rightTop .am-popover-arrow { + top: 16px; +} +/* arrow position: bottom */ +.am-popover-placement-bottom .am-popover-arrow, +.am-popover-placement-bottomLeft .am-popover-arrow, +.am-popover-placement-bottomRight .am-popover-arrow { + transform: translateY(-50%) rotate(45deg); + top: 0; +} +.am-popover-placement-bottom .am-popover-arrow { + transform: translate(-50%, -50%) rotate(45deg); + left: 50%; +} +.am-popover-placement-bottomLeft .am-popover-arrow { + left: 16px; +} +.am-popover-placement-bottomRight .am-popover-arrow { + right: 16px; +} +/* arrow position: left */ +.am-popover-placement-left .am-popover-arrow, +.am-popover-placement-leftTop .am-popover-arrow, +.am-popover-placement-leftBottom .am-popover-arrow { + transform: translateX(50%) rotate(45deg); + right: 0; +} +.am-popover-placement-left .am-popover-arrow { + transform: translate(50%, -50%) rotate(45deg); + top: 50%; +} +.am-popover-placement-leftTop .am-popover-arrow { + top: 16px; +} +.am-popover-placement-leftBottom .am-popover-arrow { + bottom: 16px; +} +/* arrow style end */ diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/popover/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/popover/index.axml new file mode 100755 index 000000000..d0b95c3c9 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/popover/index.axml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/popover/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/popover/index.js new file mode 100755 index 000000000..b008b305f --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/popover/index.js @@ -0,0 +1,15 @@ +Component({ + props: { + show: false, + className: '', + showMask: true, + position: 'bottomRight' + }, + methods: { + onMaskClick: function onMaskClick() { + if (this.props.onMaskClick && typeof this.props.onMaskClick === 'function') { + this.props.onMaskClick(); + } + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/popover/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/popover/index.json new file mode 100755 index 000000000..467ce2945 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/popover/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/popover/popover-item/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/popover/popover-item/index.acss new file mode 100755 index 000000000..e74576c76 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/popover/popover-item/index.acss @@ -0,0 +1,16 @@ +.am-popover-item { + min-width: 80px; + max-width: 170px; + height: 39px; + margin: 0 10px; + line-height: 39px; + font-size: 14px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + color: #333; + text-align: center; +} +.am-popover-item:not(:last-child) { + border-bottom: 1px solid #eee; +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/popover/popover-item/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/popover/popover-item/index.axml new file mode 100755 index 000000000..810ea4c36 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/popover/popover-item/index.axml @@ -0,0 +1,3 @@ + + + diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/popover/popover-item/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/popover/popover-item/index.js new file mode 100755 index 000000000..6b2e5cb58 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/popover/popover-item/index.js @@ -0,0 +1,12 @@ +Component({ + props: { + className: '' + }, + methods: { + onItemClick: function onItemClick() { + if (this.props.onItemClick && typeof this.props.onItemClick === 'function') { + this.props.onItemClick(); + } + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/popover/popover-item/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/popover/popover-item/index.json new file mode 100755 index 000000000..32640e0dc --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/popover/popover-item/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/popup/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/popup/index.acss new file mode 100755 index 000000000..e0cd78583 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/popup/index.acss @@ -0,0 +1,57 @@ +.am-popup-content { + position: fixed; +} + +.am-popup-mask { + position: fixed; + top: 0; + bottom: 0; + left: 0; + right: 0; + background-color: rgba(0, 0, 0, 0.75); + opacity: 0; + pointer-events: none; +} + +.am-popup-left { + transform: translateX(-100%); + left: 0; + top: 0; + bottom: 0; +} + +.am-popup-right { + transform: translateX(100%); + right: 0; + top: 0; + bottom: 0; +} + +.am-popup-top { + top: 0; + width: 100vw; + transform: translateY(-100%); +} + +.am-popup-bottom { + bottom: 0; + width: 100vw; + transform: translateY(100%); +} + +.am-popup-show .am-popup-content { + transform: none; +} + +.am-popup-show .am-popup-mask { + opacity: 1; + pointer-events: auto; +} + +.am-popup.animation .am-popup-content { + transition: all 0.15s linear; +} + +.am-popup.animation .am-popup-mask { + transition: all 0.15s linear; +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/popup/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/popup/index.axml new file mode 100755 index 000000000..d7b797a5d --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/popup/index.axml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/popup/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/popup/index.js new file mode 100755 index 000000000..3f7fc6054 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/popup/index.js @@ -0,0 +1,20 @@ +Component({ + props: { + className: '', + show: false, + position: 'bottom', + mask: true, + animation: true, + disableScroll: true + }, + methods: { + onMaskTap: function onMaskTap() { + var onClose = this.props.onClose; + + + if (onClose) { + onClose(); + } + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/popup/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/popup/index.json new file mode 100755 index 000000000..32640e0dc --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/popup/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/search-bar/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/search-bar/index.acss new file mode 100755 index 000000000..86753057e --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/search-bar/index.acss @@ -0,0 +1,90 @@ +.am-search { + height: 44px; + display: flex; + align-items: center; + padding: 0 0 0 12px; + background: #ffffff; + overflow: hidden; +} + +.am-search-input { + display: flex; + position: relative; + height: 28px; + line-height: 28px; + flex: 1; + background: rgba(0, 0, 0, 0.05); + border-radius: 2px; +} + +.am-search-synthetic { + display: flex; + position: absolute; + left: 0; + top: 0; + height: 28px; + line-height: 28px; + padding-left: 14px; +} + +.am-search-synthetic-placeholder { + width: 100px; + font-size: 14px; + color: #999999; +} + +.am-search-synthetic-icon { + height: 14px; + width: 14px; + display: inline-block; + background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjhweCIgaGVpZ2h0PSIyOHB4IiB2aWV3Qm94PSIwIDAgMjggMjgiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDQ5LjMgKDUxMTY3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5TaGFwZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxkZWZzPjwvZGVmcz4KICAgIDxnIGlkPSLnu4Tku7blupPlj4rmoIfms6giIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSLlhbbku5YiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0zMDUzLjAwMDAwMCwgLTgwMi4wMDAwMDApIiBmaWxsPSIjQjJCMkIyIj4KICAgICAgICAgICAgPGcgaWQ9IuaQnOe0ouWFpeWPoyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjk5My4wMDAwMDAsIDczMi4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxnIGlkPSJpb3M25bqU55So5Lit5b+D5a+86IiqIj4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNODYuMDc4NDMwOCw5OCBMNzkuNDkwMTk1Niw5MC45MjE0MzUyIEM3Ny41MTU1MTcyLDkyLjQ2MTY5OTYgNzQuNDEyMzk5OCw5My45NzQ0NzcxIDcxLjczNzAyMTQsOTMuOTc0NDc3MSBDNjUuMjU0ODk0LDkzLjk3NDQ3NzEgNjAsODguNjA3NTY1OCA2MCw4MS45ODczNTg2IEM2MCw3NS4zNjcxNTE0IDY1LjI1NDg5NCw3MCA3MS43MzcwMjE0LDcwIEM3OC4yMTg2NzQzLDcwIDgzLjQ3MzU2ODIsNzUuMzY2NjcxMiA4My40NzM1NjgyLDgxLjk4NzExODUgQzgzLjQ3MzU2ODIsODQuNTk3NjkxMyA4Mi42NDc1ODIyLDg3LjAwNjU0NTcgODEuMjU5OTQ0Nyw4OC45NzQ1MDEzIEw4OCw5NS44MzcwMTA3IEw4Ni4wNzg0MzA4LDk4IFogTTcxLjczNzA1MjgsNzIuNTA2MTAzNyBDNjYuNjA5NDg0NCw3Mi41MDYxMDM3IDYyLjQ1MjgyNjgsNzYuNzUwNjY3MSA2Mi40NTI4MjY4LDgxLjk4NzEwNzkgQzYyLjQ1MjgyNjgsODcuMjIzNTQ4NyA2Ni42MDkyMzY3LDkxLjQ2ODYxMzYgNzEuNzM3MDUyOCw5MS40Njg2MTM2IEM3Ni44NjMzODI0LDkxLjQ2ODYxMzYgODEuMDE5NzkyMyw4Ny4yMjM1NDg3IDgxLjAxOTc5MjMsODEuOTg3MTA3OSBDODEuMDE5NzkyMyw3Ni43NTA2NjcxIDc2Ljg2MzM4MjQsNzIuNTA2MTAzNyA3MS43MzcwNTI4LDcyLjUwNjEwMzcgTDcxLjczNzA1MjgsNzIuNTA2MTAzNyBaIiBpZD0iU2hhcGUiPjwvcGF0aD4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+'); + background-size: contain; + margin-right: 6px; + vertical-align: -2px; +} + +.am-search-value { + flex: 1; + height: 28px; + font-size: 14px; + padding: 0 0 0 34px; + background: transparent; + box-sizing: border-box; +} + +.am-search-clear { + visibility: hidden; + width: 28px; + height: 28px; +} + +.am-search-clear icon { + display: flex; + height: 100%; + justify-content: center; + align-items: center; +} + +.am-search-clear-show { + visibility: visible; +} + +.am-search-cancel { + margin-right: -48px; + opacity: 0; + color: #108ee9; + font-size: 16px; + width: 64px; + height: 28px; + line-height: 28px; + text-align: center; +} + +.am-search-anim { + transition: margin-right 0.3s, opacity 0.3s; +} + +.am-search-repos { + margin-right: 0; + opacity: 1; +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/search-bar/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/search-bar/index.axml new file mode 100755 index 000000000..c18b3bfb6 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/search-bar/index.axml @@ -0,0 +1,29 @@ + + + + + + {{placeholder}} + + + + + + + + 取消 + diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/search-bar/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/search-bar/index.js new file mode 100755 index 000000000..6d898ed59 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/search-bar/index.js @@ -0,0 +1,102 @@ +Component({ + props: { + className: '', + placeholder: '', + focus: false + }, + data: { + _value: '', + focus: false + }, + didMount: function didMount() { + this.setData({ + _value: 'value' in this.props ? this.props.value : '', + focus: this.props.focus + }); + }, + didUpdate: function didUpdate() { + if ('value' in this.props && this.props.value !== this.data._value) { + this.setData({ + _value: this.props.value + }); + } + }, + + methods: { + handleInput: function handleInput(e) { + var value = e.detail.value; + + + if (!('value' in this.props)) { + this.setData({ + _value: value + }); + } + + if (this.props.onInput) { + this.props.onInput(value); + } + }, + handleClear: function handleClear() { + // this.setData({ + // focus: true, + // }); + + if (!('value' in this.props)) { + this.setData({ + _value: '' + }); + } + + this.doClear(); + }, + doClear: function doClear() { + if (this.props.onClear) { + this.props.onClear(''); + } + + if (this.props.onChange) { + this.props.onChange(''); + } + }, + handleFocus: function handleFocus() { + this.setData({ + focus: true + }); + + if (this.props.onFocus) { + this.props.onFocus(); + } + }, + handleBlur: function handleBlur() { + this.setData({ + focus: false + }); + + if (this.props.onBlur) { + this.props.onBlur(); + } + }, + handleCancel: function handleCancel() { + if (!('value' in this.props)) { + this.setData({ + _value: '' + }); + } + + if (this.props.onCancel) { + this.props.onCancel(); + } else { + this.doClear(); + } + }, + handleConfirm: function handleConfirm(e) { + var value = e.detail.value; + + + if (this.props.onSubmit) { + this.props.onSubmit(value); + } + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/search-bar/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/search-bar/index.json new file mode 100755 index 000000000..467ce2945 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/search-bar/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/stepper/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/stepper/index.acss new file mode 100755 index 000000000..ec361c7c2 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/stepper/index.acss @@ -0,0 +1,40 @@ +.am-stepper-content { + padding: 10rpx 0; + overflow: hidden; + text-align: center; + line-height: 70rpx; + font-size: 40rpx; + display: inline-block; + width: 245rpx; + color: #000; +} + +.am-stepper-reduce { + border: #eeeeee solid 1px; + border-radius: 10rpx; + width: 70rpx; + height: 70rpx; + background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyppVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTMyIDc5LjE1OTI4NCwgMjAxNi8wNC8xOS0xMzoxMzo0MCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUuNSAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo0MDRDMUYwNDI1OTExMUU4OUY0N0VFQzhCQkYwQTYyOCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo1ODU0RTgzODI2ODYxMUU4OUY0N0VFQzhCQkYwQTYyOCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjQwNEMxRjAyMjU5MTExRTg5RjQ3RUVDOEJCRjBBNjI4IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjQwNEMxRjAzMjU5MTExRTg5RjQ3RUVDOEJCRjBBNjI4Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+jjGoUQAAAF5JREFUeNrs2LEJACAMRUF1/xkc0gUiAe3tRLkHFna59teIKD/UyieBgICAgICAgICAgICAgICAgByVu9batkZ+H3t9318NdCAgICAgICAgICAgICAgICAgIPeaAgwAyuE/sx15o0MAAAAASUVORK5CYII=") center center no-repeat; + background-size: 40rpx 40rpx; + float: left; + display: inline-block; +} + +.am-stepper-add { + border: #eeeeee solid 1px; + border-radius: 4rpx; + width: 70rpx; + height: 70rpx; + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyppVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTMyIDc5LjE1OTI4NCwgMjAxNi8wNC8xOS0xMzoxMzo0MCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUuNSAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo1ODU0RTgzRjI2ODYxMUU4OUY0N0VFQzhCQkYwQTYyOCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo1ODU0RTg0MDI2ODYxMUU4OUY0N0VFQzhCQkYwQTYyOCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjU4NTRFODNEMjY4NjExRTg5RjQ3RUVDOEJCRjBBNjI4IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjU4NTRFODNFMjY4NjExRTg5RjQ3RUVDOEJCRjBBNjI4Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+jv5jrAAAAHdJREFUeNrs2sENgCAMBVDq/jMwpA5QIdERIIivCQdO5SXt5YfIzLJDHWWTmgKJiDq8x4zRapDWJsNogYCAgICAgICAgICAgID8D1J6+PAEEGe/fuzU9/1SFDsCAgICAgICAgICAgICAgKyEuQa3SD811qsbgEGAMVVTz/OpY/oAAAAAElFTkSuQmCC"); + background-size: 40rpx 40rpx; + background-repeat: no-repeat; + background-position: center; + float: right; + display: inline-block; +} + +.am-stepper-input { + display: inline-block; + width: 70rpx; + color: #000; +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/stepper/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/stepper/index.axml new file mode 100755 index 000000000..7250f39f1 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/stepper/index.axml @@ -0,0 +1,20 @@ + + + + + \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/stepper/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/stepper/index.js new file mode 100755 index 000000000..53e909789 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/stepper/index.js @@ -0,0 +1,111 @@ +Component({ + data: { + opaReduce: 1, + opaAdd: 1 + }, + props: { + className: '', + min: 0, + max: 100000, + disabled: false, + value: 10, + readOnly: false, + showNumber: false, + step: 1, + onChange: function onChange() {} + }, + didMount: function didMount() { + var _props = this.props, + value = _props.value, + min = _props.min, + max = _props.max; + + this.setData({ + value: Math.min(Math.max(min, value), max) + }); + }, + didUpdate: function didUpdate(preProps) { + var _props2 = this.props, + value = _props2.value, + min = _props2.min, + max = _props2.max; + + if (preProps.value !== value) { + var newValue = Math.min(Math.max(min, value), max); + this.setData({ + value: newValue + }); + this.resetFn(newValue); + } + }, + + methods: { + changeFn: function changeFn(ev) { + var _props3 = this.props, + min = _props3.min, + max = _props3.max, + onChange = _props3.onChange, + disabled = _props3.disabled, + readOnly = _props3.readOnly, + step = _props3.step; + + var evType = ev.target.dataset.type; + var _data = this.data, + opaReduce = _data.opaReduce, + opaAdd = _data.opaAdd, + value = _data.value; + + var enable = disabled || readOnly; + if (!enable) { + if (evType === 'reduce') { + if (value > min) { + opaAdd = 1; + value = Math.max(min, value - step); + opaReduce = value === min ? 0.4 : 1; + } + } else { + /* eslint-disable no-lonely-if */ + if (value < max) { + opaReduce = 1; + value = Math.min(value + step, max); + opaAdd = value === max ? 0.4 : 1; + } + } + this.setData({ + value: value, + opaAdd: opaAdd, + opaReduce: opaReduce + }); + onChange(value); + } + }, + onBlur: function onBlur(event) { + var value = event.detail.value; + + this.resetFn(value); + }, + resetFn: function resetFn(value) { + var _props4 = this.props, + max = _props4.max, + min = _props4.min, + onChange = _props4.onChange; + + var calculatedVal = value; + var opaAdd = 1; + var opaReduce = 1; + if (value >= max) { + calculatedVal = max; + opaAdd = 0.4; + } else if (value <= min) { + calculatedVal = min; + opaReduce = 0.4; + } + this.setData({ + value: calculatedVal, + opaAdd: opaAdd, + opaReduce: opaReduce + }); + onChange(calculatedVal); + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/stepper/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/stepper/index.json new file mode 100755 index 000000000..467ce2945 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/stepper/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/steps/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/steps/index.acss new file mode 100755 index 000000000..9bb638690 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/steps/index.acss @@ -0,0 +1,139 @@ +/* horizontal steps style */ +.am-hor-steps { + padding: 20px 50px 10px 50px; + background-color: #fff; + overflow: hidden; + white-space: nowrap; +} +.am-hor-step { + display: inline-block; + white-space: normal; + text-align: center; + vertical-align: top; +} +.am-hor-step-line { + position: relative; + margin: 6px 0; + height: 2px; + background-color: #ccc; +} +.am-hor-step-line.is-active { + background-color: #108ee9; +} +.am-hor-step-line.is-last { + background-color: transparent; +} +.am-hor-step-icon { + position: absolute; + top: 50%; + left: 0; + width: 10px; + height: 10px; + transform: translate(-50%, -50%); + border-radius: 999px; + background-color: #ccc; +} +.am-hor-step-icon.is-active { + background-color: #108ee9; +} +.am-hor-step-text { + margin-top: 20px; + padding: 0 5px; + max-width: 90px; + transform: translateX(-50%); +} +.am-hor-step-title { + font-size: 12px; + color: #333; +} +.am-hor-step-description { + margin-top: 6px; + font-size: 12px; + color: #999; +} + +/* vertical steps style */ +.am-vertical-steps { + padding: 20px 30px 0 30px; + background-color: #fff; +} +.am-vertical-step { + display: flex; +} +.am-vertical-step-left { + position: relative; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + width: 24px; + margin-right: 20px; +} +/* line 包含 top 和 bottom 两块, 整体下移20px, 保证和原点无缝衔接 */ +.am-vertical-step-line { + position: relative; + top: 10px; + width: 2px; + background-color: #ccc; +} +.am-vertical-step-line-top { + flex: 1; +} +/* 60px 是 am-vertical-step-text的margin-bottom的40px加上line的下移20px,保证line-top底部和右侧文字底布对齐*/ +.am-vertical-step-line-bottom { + height: 30px; + width: 2px; + background-color: #ccc; +} +.am-vertical-step-line.is-active { + background-color: #108ee9; +} +.am-vertical-step-icon { + position: absolute; + top: 0; + left: 50%; + transform: translateX(-50%); + border-radius: 999px; +} +.am-vertical-step-icon.is-normal { + top: 5px; + background-color: #ccc; + width: 10px; + height: 10px; +} +.am-vertical-step-icon.is-active, +.am-vertical-step-icon.is-fail { + width: 24px; + height: 24px; + background-color: #fff; +} +.am-vertical-step-right { + flex: 1; + margin-bottom: 20px; +} +.am-vertical-step-title { + margin-bottom: 4px; + font-size: 17px; + color: #333; +} +.am-vertical-step-title.is-active { + color: #108ee9; +} +.am-vertical-step-title.is-fail { + color: #F4333C; +} +.am-vertical-step-description { + font-size: 14px; + color: #888; +} +.am-vertical-placeholder { + height: 20px; +} +.am-vertical-placeholder-line { + position: absolute; + left: 50%; + transform: translateX(-50%); + height: 100%; + width: 2px; + background-color: #ccc; +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/steps/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/steps/index.axml new file mode 100755 index 000000000..0eb2f4b17 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/steps/index.axml @@ -0,0 +1,44 @@ + + + + + + + + {{item.title}} + + + {{item.description}} + + + + + + + + + + + + + + + + + + + + {{item.title}} + + + {{item.description}} + + + + \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/steps/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/steps/index.js new file mode 100755 index 000000000..1b5293ff0 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/steps/index.js @@ -0,0 +1,9 @@ +Component({ + props: { + className: '', + activeIndex: 1, + failIndex: 0, + direction: 'horizontal', + items: [] + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/steps/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/steps/index.json new file mode 100755 index 000000000..467ce2945 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/steps/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/swipe-action/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/swipe-action/index.acss new file mode 100755 index 000000000..346576555 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/swipe-action/index.acss @@ -0,0 +1,40 @@ +.am-swipe { + position: relative; + overflow: hidden; +} +.am-swipe-content { + position: relative; + transition: all 250ms; +} +.am-swiping .am-swipe-content { + transition: none; +} +.am-swipe-right { + position: absolute; + top: 0; + bottom: 0; + display: flex; + right: 0; +} +.am-swipe-btn { + padding: 0 14px; + justify-content: center; + align-items: center; + display: flex; + color: #fff; +} +.am-swipe-btn-delete { + background-color: rgb(244, 51, 60); +} +.am-swipe-btn-edit { + background-color: #108ee9; +} + +//=== v2 === +.am-swipe-movable-area { + position: absolute; +} + +.am-swipe-movable-area .am-swipe-content { + transition: none; +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/swipe-action/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/swipe-action/index.axml new file mode 100755 index 000000000..842d052ba --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/swipe-action/index.axml @@ -0,0 +1,67 @@ + + + + + + + {{item.text}} + + + + + + + + + + + + + + + {{item.text}} + + + + + + + + + \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/swipe-action/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/swipe-action/index.js new file mode 100755 index 000000000..d65ec3bcb --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/swipe-action/index.js @@ -0,0 +1,237 @@ +var windowWidth = my.getSystemInfoSync().windowWidth; +var isV2 = +my.SDKVersion.split('.').join('') > 1112; + +Component({ + data: { + leftPos: 0, + swiping: false, + holdSwipe: true, + viewWidth: windowWidth, + x: 0, + actionWidth: 0, + transitionVal: 'none' + }, + props: { + className: '', + right: [], + restore: false, + index: null, + height: 52, + enableNew: false + }, + didMount: function didMount() { + var _this = this; + + var enableNew = this.props.enableNew; + + var useV2 = isV2 && enableNew; + this.btnWidth = 0; + this.setData({ + useV2: useV2 + }); + this.setBtnWidth(); + if (useV2) { + setTimeout(function () { + _this.setData({ + transitionVal: 'transform 100ms' + }); + }, 500); + } + }, + didUpdate: function didUpdate(_prevProps, prevData) { + var restore = this.props.restore; + var _data = this.data, + holdSwipe = _data.holdSwipe, + useV2 = _data.useV2; + + if (restore === true && _prevProps.restore !== restore || prevData.holdSwipe === true && holdSwipe === false) { + this.setData({ + leftPos: 0, + swiping: false, + x: this.btnWidth // V2 + }); + } + + if (!useV2) { + this.setBtnWidth(); + } + }, + + methods: { + setBtnWidth: function setBtnWidth() { + var _this2 = this; + + my.createSelectorQuery().select('.am-swipe-right-' + this.$id).boundingClientRect().exec(function (ret) { + _this2.btnWidth = ret && ret[0] && ret[0].width || 0; + if (isV2 && _this2.props.enableNew) { + _this2.setData({ + actionWidth: _this2.btnWidth, + x: _this2.btnWidth + }); + } + }); + }, + onSwipeTap: function onSwipeTap() { + if (!this.data.swiping) { + this.setData({ + leftPos: 0, + swiping: false, + x: 0 + }); + } + }, + onSwipeStart: function onSwipeStart(e) { + this.touchObject = { + startX: e.touches[0].pageX, + startY: e.touches[0].pageY + }; + var _props = this.props, + index = _props.index, + onSwipeStart = _props.onSwipeStart; + + if (onSwipeStart) { + onSwipeStart({ index: index }); + } + }, + onSwipeMove: function onSwipeMove(e) { + var touchObject = this.touchObject; + + var touchePoint = e.touches[0]; + var leftPos = this.data.leftPos; + + + touchObject.endX = touchePoint.pageX; + + // 首次触发时,计算滑动角度 + if (touchObject.direction === undefined) { + var direction = 0; + + var xDist = touchObject.startX - touchePoint.pageX || 0; + var yDist = touchObject.startY - touchePoint.pageY || 0; + + var r = Math.atan2(yDist, xDist); + var swipeAngle = Math.round(r * 180 / Math.PI); + + if (swipeAngle < 0) { + swipeAngle = 360 - Math.abs(swipeAngle); + } + if (swipeAngle <= 45 && swipeAngle >= 0) { + direction = 1; + } + if (swipeAngle <= 360 && swipeAngle >= 315) { + direction = 1; + } + if (swipeAngle >= 135 && swipeAngle <= 225) { + direction = -1; + } + + touchObject.direction = direction; + } + + // 通过角度判断是左右方向 + if (touchObject.direction !== 0) { + var newLeftPos = leftPos; + // 滑动距离 + var distance = touchObject.endX - touchObject.startX; + // 左划 + if (distance < 0) { + newLeftPos = Math.max(distance, -this.btnWidth); + // 右划 + } else { + newLeftPos = 0; + } + if (Math.abs(distance) > 10) { + this.setData({ + leftPos: newLeftPos, + swiping: distance < 0 + }); + } + } + }, + onSwipeEnd: function onSwipeEnd(e) { + var touchObject = this.touchObject; + + if (touchObject.direction !== 0) { + var touchePoint = e.changedTouches[0]; + + touchObject.endX = touchePoint.pageX; + + var leftPos = this.data.leftPos; + + var distance = touchObject.endX - touchObject.startX; + var newLeftPos = leftPos; + if (distance < 0) { + if (Math.abs(distance + leftPos) > this.btnWidth * 0.7) { + newLeftPos = -this.btnWidth; + } else { + newLeftPos = 0; + } + } + this.setData({ + leftPos: newLeftPos, + swiping: false + }); + } + }, + onChange: function onChange() { + if (!this.data.swiping) { + this.setData({ + swiping: true + }); + } + }, + onChangeEnd: function onChangeEnd(e) { + var _this3 = this; + + var actionWidth = this.data.actionWidth; + var x = e.detail.x; + + this.setData({ + x: x < actionWidth / 2 ? -1 : actionWidth - 1, + swiping: false + }, function () { + _this3.setData({ + x: _this3.data.x === -1 ? 0 : actionWidth + }); + }); + }, + done: function done() { + var _this4 = this; + + this.setData({ + holdSwipe: true + }, function () { + _this4.setData({ + holdSwipe: false + }); + }); + }, + onItemClick: function onItemClick(e) { + var _this5 = this; + + var onRightItemClick = this.props.onRightItemClick; + var holdSwipe = this.data.holdSwipe; + + if (onRightItemClick) { + var index = e.target.dataset.index; + + onRightItemClick({ + index: index, + extra: this.props.extra, + detail: this.props.right[index], + done: this.done.bind(this) + }); + } + + if (!this.data.swiping && holdSwipe === false) { + setTimeout(function () { + _this5.setData({ + leftPos: 0, + swiping: false, + x: 0 + }); + }, 300); + } + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/swipe-action/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/swipe-action/index.json new file mode 100755 index 000000000..467ce2945 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/swipe-action/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/index.acss new file mode 100755 index 000000000..825eec5c8 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/index.acss @@ -0,0 +1,125 @@ +.am-tabs-tab-bar-wrap { + width: 100%; +} + +.am-tabs-bar { + background: #fff; + width: 100%; + overflow: hidden; + height: 42px; + display: flex; +} + +.am-tabs-scroll-left { + width: 36px; + height: 39px; + position: absolute; + top: 1px; + left: 0; + z-index: 99; + background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0)) left no-repeat; + background-size: 100%; +} + +.am-tabs-scroll-right { + width: 36px; + height: 39px; + position: absolute; + top: 1px; + right: 0; + z-index: 99; + background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0)) left no-repeat; + background-size: 100%; +} + +.am-tabs-plus-wrap { + display: none; + position: relative; + width: 24px; + height: 43px; +} + +.am-tabs-plus-wrap.show { + display: block; +} + +.am-tabs-plus { + position: absolute; + z-index: 100; + top: 4px; + left: 0; + transform: translateX(-50%); + width: 32px; + height: 32px; + background-image: url('https://gw.alipayobjects.com/zos/rmsportal/DObPgppwxyNHeejHANtu.png'); + background-size: 16px 16px; + background-position: center; + background-repeat: no-repeat; +} + +.am-tabs-bar-content-wrap { + position: relative; + flex: 1; +} + +.am-tabs-bar-content { + width: 100%; + height: 50px; + overflow-x: auto; + overflow-y: hidden; + display: flex; + flex-direction: row; +} + +.am-tabs-bar-tab { + height: 42px; + display: flex; + align-items: center; + justify-content: center; + width: 25%; + flex-shrink: 0; + font-size: 16px; +} + +.am-tabs-bar-title { + height: 42px; + line-height: 42px; + box-sizing: border-box; + position: relative; + border-bottom-width: 2px; + border-bottom-style: solid; + border-bottom-color: transparent; +} + +.am-tabs-bar-badge.dot { + position: absolute; + top: 3px; + right: 0px; + transform: translateX(8px); +} + +.am-tabs-bar-badge.text { + position: absolute; + top: 0px; + right: 2px; + transform: translateX(100%); + height: 16px; +} + +.am-tabs-content-wrap { + margin-top: 1px; + display: flex; + background: #fff; + flex-direction: row; + overflow: hidden; + height: auto; +} + +.am-tabs-content-wrap.fix { + height: auto !important; +} + +.am-tabs-slides { + display: flex; + transition-duration: 500ms; +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/index.axml new file mode 100755 index 000000000..1e9bed8e9 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/index.axml @@ -0,0 +1,60 @@ + + + + + + + + + + + + {{item.title}} + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/index.js new file mode 100755 index 000000000..7d8a0a4fc --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/index.js @@ -0,0 +1,70 @@ +var _my$getSystemInfoSync = my.getSystemInfoSync(), + windowWidth = _my$getSystemInfoSync.windowWidth; + +Component({ + props: { + className: '', + activeCls: '', + tabBarUnderlineColor: '#108ee9', // 选中选项卡下划线颜色 + tabBarActiveTextColor: '#108ee9', // 选中选项卡字体颜色 + tabBarInactiveTextColor: '#333333', // 未选中选项卡字体颜色 + tabBarBackgroundColor: '#ffffff', // 选项卡背景颜色 + showPlus: false, + swipeable: true, + activeTab: 0, // 当前激活tab + animation: true, + tabBarCls: '', // tabbar的自定义样式class + duration: 500 + }, + data: { + windowWidth: windowWidth, + tabWidth: 0.25, + autoplay: false, + animation: false, + version: my.SDKVersion + }, + didMount: function didMount() { + var _props = this.props, + tabs = _props.tabs, + animation = _props.animation; + + this.setData({ + tabWidth: tabs.length > 3 ? 0.25 : 1 / tabs.length, + animation: animation, + autoplay: true + }); + }, + didUpdate: function didUpdate(prevProps) { + var tabs = this.props.tabs; + + if (prevProps.tabs.length !== tabs.length) { + this.setData({ + tabWidth: tabs.length > 3 ? 0.25 : 1 / tabs.length + }); + } + }, + + methods: { + handleSwiperChange: function handleSwiperChange(e) { + var current = e.detail.current; + + + if (this.props.onChange) { + this.props.onChange({ index: current }); + } + }, + handleTabClick: function handleTabClick(e) { + var index = e.target.dataset.index; + + + if (this.props.onTabClick) { + this.props.onTabClick({ index: index }); + } + }, + handlePlusClick: function handlePlusClick() { + if (this.props.onPlusClick) { + this.props.onPlusClick(); + } + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/index.json new file mode 100755 index 000000000..94f295877 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "badge": "../badge/index" + } +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/tab-content/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/tab-content/index.acss new file mode 100755 index 000000000..4b396366e --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/tab-content/index.acss @@ -0,0 +1,9 @@ +.am-tabs-pane-wrap { + width: 100vw; + height: auto; + flex-shrink: 0; +} + +.fix .am-tabs-pane-wrap { + position: static; +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/tab-content/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/tab-content/index.axml new file mode 100755 index 000000000..3562dcc36 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/tab-content/index.axml @@ -0,0 +1,3 @@ + + + diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/tab-content/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/tab-content/index.js new file mode 100755 index 000000000..df2bc90b4 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/tab-content/index.js @@ -0,0 +1 @@ +Component({}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/tab-content/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/tab-content/index.json new file mode 100755 index 000000000..467ce2945 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/tab-content/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/util.sjs b/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/util.sjs new file mode 100755 index 000000000..22999b02e --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/tabs/util.sjs @@ -0,0 +1,50 @@ +function toIntArray(v) { + const ret = []; + const version = v.split('.'); + + for (let i = 0; i < version.length; i++) { + ret.push(parseInt(version[i], 10)); + } + + return ret; +} + +const calcScrollLeft = (windowWidth, tabWidth, current) => { + let scrollInit = current * windowWidth * tabWidth; + + if (current <= 2) { + scrollInit = 0; + } else { + scrollInit = (current - 2) * windowWidth * tabWidth; + } + + return scrollInit; +}; + +const compareVersion = (v) => { + const targetVersion = toIntArray('1.10.0'); + const version = toIntArray(v); + let ret = 0; + + for (let i = 0, n1, n2; i < version.length; i++) { + n1 = targetVersion[i]; + n2 = version[i]; + + if (n1 > n2) { + ret = -1; + break + } + + if (n1 < n2) { + ret = 1; + break; + } + } + + return ret; +} + +export default { + calcScrollLeft, + compareVersion, +}; diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-dialog/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-dialog/index.acss new file mode 100755 index 000000000..194dc7e35 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-dialog/index.acss @@ -0,0 +1,63 @@ +.am-tips-dialog { + position: relative; + height: 55px; + width: 100%; + padding: 0 6px; + box-sizing: border-box; +} + +.am-tips-dialog-wrap { + display: flex; + align-items: center; + background: #2093E7; + box-shadow: 0 3px 3px rgba(0, 127, 255, .24); + border-radius: 2px; + padding: 0 24px 0 12px; + height: 100%; +} + +.am-tips-dialog-rectangle .am-tips-dialog-wrap { + padding: 0 16px 0 6px; +} + +.am-tips-dialog-close { + margin-left: 5px; + margin-right: 11px; + height: 20px; + width: 20px; + background-image: url(https://gw.alipayobjects.com/zos/rmsportal/yIhgeiRsGHxWWrCKNfhc.png); + background-size: 50%; + background-position: center; + background-repeat: no-repeat; +} + +.am-tips-dialog-icon { + height: 35px; + width: 35px; + background-color: #fff; + border-radius: 2px; + margin-right: 9px; +} + +.am-tips-dialog-icon image { + width: 35px; + height: 35px; +} + +.am-tips-dialog-content { + flex: 1; +} + +.am-tips-dialog-wrap::before { + content: ''; + position: absolute; + bottom: -5px; + left: 40px; + border-left: 10px solid transparent; + border-right: 10px solid transparent; + border-top: 10px solid #2093E7; +} + +.am-tips-dialog-rectangle .am-tips-dialog-wrap::before { + display: none; +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-dialog/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-dialog/index.axml new file mode 100755 index 000000000..e039a4729 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-dialog/index.axml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-dialog/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-dialog/index.js new file mode 100755 index 000000000..5dd18a6c8 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-dialog/index.js @@ -0,0 +1,17 @@ +Component({ + props: { + show: true, + className: '', + type: 'dialog' + }, + methods: { + onCloseTap: function onCloseTap() { + var onCloseTap = this.props.onCloseTap; + + + if (onCloseTap) { + onCloseTap(); + } + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-dialog/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-dialog/index.json new file mode 100755 index 000000000..32640e0dc --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-dialog/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-plain/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-plain/index.acss new file mode 100755 index 000000000..fccfc2181 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-plain/index.acss @@ -0,0 +1,38 @@ +.am-tips-plain-favorite { + position: fixed; + bottom: 10px; + padding: 7px 10px; + box-sizing: border-box; + font-size: 12px; +} + +.am-tips-plain-favorite-wrap { + position: relative; + background: #2093E7; + box-shadow: 0 3px 3px rgba(0, 127, 255, .24); + border-radius: 2px; + color: #fff; + padding: 10px; + min-height: 10px; +} + +.am-tips-plain-favorite-content { + line-height: 12px; + overflow: hidden; + height: 12px; +} + +.am-tips-plain-favorite-action:active { + background: #0B71BA +} + +.am-tips-plain-favorite-wrap::before { + content: ''; + position: absolute; + bottom: -5px; + left: 50%; + margin-left: -10px; + border-left: 10px solid transparent; + border-right: 10px solid transparent; + border-top: 10px solid #2093E7; +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-plain/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-plain/index.axml new file mode 100755 index 000000000..ca4e30e6c --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-plain/index.axml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-plain/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-plain/index.js new file mode 100755 index 000000000..1df3957df --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-plain/index.js @@ -0,0 +1,31 @@ +Component({ + data: { + show: true + }, + props: { + className: '', + time: 5000, + onClose: function onClose() {} + }, + didMount: function didMount() { + var _this = this; + + var show = this.data.show; + var time = this.props.time; + + setTimeout(function () { + _this.setData({ + show: false + }); + }, time); + }, + + methods: { + onClose: function onClose() { + this.setData({ + show: false + }); + this.props.onClose(); + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-plain/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-plain/index.json new file mode 100755 index 000000000..32640e0dc --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/tips/tips-plain/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/vtabs/index.acss b/public/appmini/old/alipay/node_modules/mini-antui/es/vtabs/index.acss new file mode 100755 index 000000000..796131c81 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/vtabs/index.acss @@ -0,0 +1,67 @@ +.am-vtabs { + width: 100vw; + height: 100vh; + display: flex; + flex-direction: row; +} + +.am-vtabs-bar { + width: 110px; + overflow: hidden; +} + +.am-vtabs-bar-content { + height: 100%; + width: 120px; +} + +.am-vtabs-bar-tab { + box-sizing: border-box; + height: 55px; + width: 110px; + text-align: center; + line-height: 55px; + font-size: 14px; + border-left-width: 4px; + border-left-style: solid; + border-left-color: transparent; + border-right-width: 4px; + border-right-style: solid; + border-right-color: transparent; + white-space: nowrap; + overflow: hidden; +} + +.am-vtabs-bar-title { + position: relative; + display: inline-block; +} + +.am-vtabs-bar-badge.dot { + position: absolute; + top: 11px; + right: 0px; + transform: translateX(8px); +} + +.am-vtabs-bar-badge.text { + position: absolute; + top: 8px; + right: 2px; + transform: translateX(100%); +} + +.am-vtabs-content-wrap { + overflow: hidden; + flex: 1; + height: 100%; + background-color: #fff; +} + +.am-vtabs-slides { + height: 100%; +} + +.am-vtabs-slides.animate { + transition-duration: 500ms; +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/vtabs/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/vtabs/index.axml new file mode 100755 index 000000000..4292ebdf5 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/vtabs/index.axml @@ -0,0 +1,52 @@ + + + + + + + {{item.title}} + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/vtabs/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/vtabs/index.js new file mode 100755 index 000000000..ae4c6e8bb --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/vtabs/index.js @@ -0,0 +1,153 @@ +Component({ + data: { + tabTop: 0, + wrapScrollTop: 0 + }, + props: { + activeTab: 0, + className: '', + tabs: [], + animated: false, + swipeable: true, + tabBarActiveTextColor: '#108ee9', + tabBarInactiveTextColor: '#333333', + tabBarActiveBgColor: '#ffffff', + tabBarInactiveBgColor: '#f8f8f8', + tabBarlineColor: '#108ee9', + onTabClick: function onTabClick() {}, + onScrollBar: function onScrollBar() {} + }, + didMount: function didMount() { + this.isScrolling = false; + this.timerId = null; + this.calcHeight(); + }, + didUpdate: function didUpdate(prevProps) { + if (this.props.tabs.length !== prevProps.tabs.length) { + this.calcHeight(); + } + }, + didUnmount: function didUnmount() { + if (this.timerId) { + clearTimeout(this.timerId); + this.timerId = null; + } + }, + + methods: { + calcHeight: function calcHeight() { + var _this = this; + + var _props = this.props, + tabs = _props.tabs, + activeTab = _props.activeTab; + + this.anchorMap = {}; + this.indexMap = {}; + this.wrapHeight = 0; + this.scrollWrapHeight = 0; + + my.createSelectorQuery().select('.am-vtabs-slides').boundingClientRect().exec(function (ret) { + _this.wrapHeight = ret[0].height; + }); + + var cacheHeight = 0; + + var _loop = function _loop(i) { + var anchor = tabs[i].anchor; + /* eslint-disable no-loop-func */ + + my.createSelectorQuery().select('#am-vtab-slide-' + anchor).boundingClientRect().exec(function (ret) { + _this.anchorMap[anchor] = cacheHeight; + _this.indexMap[i] = cacheHeight; + if (activeTab === i) { + _this.setData({ + wrapScrollTop: _this.indexMap[i] + }); + } + cacheHeight += ret[0].height; + _this.scrollWrapHeight = cacheHeight; + }); + }; + + for (var i = 0; i < tabs.length; i++) { + _loop(i); + } + }, + handleTabClick: function handleTabClick(e) { + var _e$target$dataset = e.target.dataset, + anchor = _e$target$dataset.anchor, + index = _e$target$dataset.index; + + + if (!this.isScrolling || !this.props.swipeable) { + if (this.props.activeTab !== index) { + this.props.onTabClick(index); + } + this.setData({ + wrapScrollTop: this.anchorMap[anchor] + }); + this.moveScrollBar(index); + } + }, + moveScrollBar: function moveScrollBar(current) { + var tabTop = void 0; + + if (current < 6) { + tabTop = 0; + } else { + tabTop = (current - 5) * 55; + } + if (this.props.activeTab !== current) { + if (this.props.onChange) { + this.props.onChange(current); + } else { + this.props.onScrollBar(current); + } + } + this.setData({ + tabTop: tabTop, + current: current + }); + }, + onScroll: function onScroll(e) { + var _this2 = this; + + var scrollTop = e.detail.scrollTop; + + var keys = Object.keys(this.anchorMap); + + if (this.timerId) { + clearTimeout(this.timerId); + this.timerId = null; + } + + this.timerId = setTimeout(function () { + _this2.isScrolling = false; + }, 300); + + var anchorLength = keys.length; + for (var i = 0; i < anchorLength; i++) { + if (i === anchorLength - 1) { + // 如果是最后一个只需满足scrollTop高于当前vtab-content的高度 + if (scrollTop >= this.anchorMap[keys[i]]) { + this.moveScrollBar(i); + break; + } + } + if (scrollTop >= Math.floor(this.anchorMap[keys[i]]) && scrollTop < Math.floor(this.anchorMap[keys[i + 1]])) { + // 如果没个vtab-content高度小于scroll-view高度,到达底部后就不需要根据scrollTop再去判断左侧的选择项 + if (scrollTop + this.wrapHeight < this.scrollWrapHeight) { + this.moveScrollBar(i); + } + break; + } + } + }, + onWrapTouchMove: function onWrapTouchMove() { + if (this.props.swipeable) { + this.isScrolling = true; + } + } + } +}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/vtabs/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/vtabs/index.json new file mode 100755 index 000000000..a30305932 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/vtabs/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "badge": "../badge/index" + } +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/vtabs/vtab-content/index.axml b/public/appmini/old/alipay/node_modules/mini-antui/es/vtabs/vtab-content/index.axml new file mode 100755 index 000000000..02f912cd5 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/vtabs/vtab-content/index.axml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/vtabs/vtab-content/index.js b/public/appmini/old/alipay/node_modules/mini-antui/es/vtabs/vtab-content/index.js new file mode 100755 index 000000000..df2bc90b4 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/vtabs/vtab-content/index.js @@ -0,0 +1 @@ +Component({}); \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/es/vtabs/vtab-content/index.json b/public/appmini/old/alipay/node_modules/mini-antui/es/vtabs/vtab-content/index.json new file mode 100755 index 000000000..32640e0dc --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/es/vtabs/vtab-content/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/public/appmini/old/alipay/node_modules/mini-antui/package.json b/public/appmini/old/alipay/node_modules/mini-antui/package.json new file mode 100755 index 000000000..3a1c11200 --- /dev/null +++ b/public/appmini/old/alipay/node_modules/mini-antui/package.json @@ -0,0 +1,57 @@ +{ + "_from": "mini-antui", + "_id": "mini-antui@0.4.4", + "_inBundle": false, + "_integrity": "sha512-mkrn5VF30ojspyVY70Otn91sp0YyJE4j0fvsqqzAaXqOv1fpHROTwLMcIwshi8XcMn9gAxXrdFujJQQo46uh+Q==", + "_location": "/mini-antui", + "_phantomChildren": {}, + "_requested": { + "type": "tag", + "registry": true, + "raw": "mini-antui", + "name": "mini-antui", + "escapedName": "mini-antui", + "rawSpec": "", + "saveSpec": null, + "fetchSpec": "latest" + }, + "_requiredBy": [ + "#USER", + "/" + ], + "_resolved": "https://registry.npmjs.org/mini-antui/-/mini-antui-0.4.4.tgz", + "_shasum": "50e84f026e200b1f17f8f8dac9643c3c504f274b", + "_spec": "mini-antui", + "_where": "/data/www/project/shopxo/alipay", + "bugs": { + "url": "https://github.com/ant-mini-program/mini-antui/issues" + }, + "bundleDependencies": false, + "deprecated": false, + "description": "小程序版AntUI", + "devDependencies": { + "eslint": "^4.19.1", + "eslint-config-ali": "^3.1.0", + "eslint-plugin-import": "^2.11.0", + "pre-commit-eslint": "^0.0.6", + "rc-tools": "6.x" + }, + "files": [ + "es" + ], + "homepage": "https://github.com/ant-mini-program/mini-antui#readme", + "keywords": [ + "antui", + "mini-program" + ], + "name": "mini-antui", + "repository": { + "type": "git", + "url": "git+ssh://git@github.com/ant-mini-program/mini-antui.git" + }, + "scripts": { + "build": "rc-tools run compile && node scripts/cp.js && node scripts/rm.js", + "pub": "git push origin && npm run build && npm publish" + }, + "version": "0.4.4" +} diff --git a/public/appmini/old/alipay/package-lock.json b/public/appmini/old/alipay/package-lock.json new file mode 100755 index 000000000..dd7c71bed --- /dev/null +++ b/public/appmini/old/alipay/package-lock.json @@ -0,0 +1,11 @@ +{ + "requires": true, + "lockfileVersion": 1, + "dependencies": { + "mini-antui": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/mini-antui/-/mini-antui-0.4.4.tgz", + "integrity": "sha512-mkrn5VF30ojspyVY70Otn91sp0YyJE4j0fvsqqzAaXqOv1fpHROTwLMcIwshi8XcMn9gAxXrdFujJQQo46uh+Q==" + } + } +} diff --git a/public/appmini/old/alipay/pages/answer-form/answer-form.acss b/public/appmini/old/alipay/pages/answer-form/answer-form.acss new file mode 100755 index 000000000..abfc92444 --- /dev/null +++ b/public/appmini/old/alipay/pages/answer-form/answer-form.acss @@ -0,0 +1,21 @@ +.content{ + padding: 10rpx; +} +.content-textarea { + padding-top: 10rpx; + min-height: 20vh; +} +.bottom-btn-box { + margin-top: 160rpx; + padding: 0 10rpx; +} + +.form-input { + padding: 20rpx 0; +} +.form-input input, .form-input textarea { + font-size: 30rpx; + box-sizing: border-box; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; +} \ No newline at end of file diff --git a/public/appmini/old/alipay/pages/answer-form/answer-form.axml b/public/appmini/old/alipay/pages/answer-form/answer-form.axml new file mode 100755 index 000000000..3b8005f52 --- /dev/null +++ b/public/appmini/old/alipay/pages/answer-form/answer-form.axml @@ -0,0 +1,15 @@ +
+ + + + + + + +