fix niucloud

This commit is contained in:
CQ 2025-10-15 18:13:44 +08:00
parent e879cf0b7a
commit ca75099899
627 changed files with 5728 additions and 6343 deletions

View File

@ -1 +1 @@
APP_DEBUG = true [APP] DEFAULT_TIMEZONE = Asia/Shanghai AUTH_KEY = {auth_key} [DATABASE] TYPE = mysql HOSTNAME = {dbhost} DATABASE = {dbname} USERNAME = {dbuser} PASSWORD = {dbpwd} HOSTPORT = {dbport} PREFIX = {dbprefix} CHARSET = utf8mb4 DEBUG = false [REDIS] REDIS_HOSTNAME = 127.0.0.1 PORT = 6379 REDIS_PASSWORD = SELECT = 0 [QUEUE] state = false [LANG] default_lang = zh-cn [SYSTEM] ADMIN_TOKEN_NAME = token API_TOKEN_NAME = token ADMIN_SITE_ID_NAME = site-id API_SITE_ID_NAME = site-id ADMIN_TOKEN_EXPIRE_TIME = 604800 API_TOKEN_EXPIRE_TIME = 86400 LANG_NAME = lang CHANNEL_NAME = channel ADMIN_DOMAIN = WAP_DOMAIN = WEB_DOMAIN = [NIUCLOUD] code = secret =
APP_DEBUG = true [APP] DEFAULT_TIMEZONE = Asia/Shanghai AUTH_KEY = {auth_key} [DATABASE] TYPE = mysql HOSTNAME = {dbhost} DATABASE = {dbname} USERNAME = {dbuser} PASSWORD = {dbpwd} HOSTPORT = {dbport} PREFIX = {dbprefix} CHARSET = utf8mb4 DEBUG = false [REDIS] REDIS_HOSTNAME = 127.0.0.1 PORT = 6379 REDIS_PASSWORD = SELECT = 0 [QUEUE] state = false [LANG] default_lang = zh-cn [SYSTEM] ADMIN_TOKEN_NAME = token API_TOKEN_NAME = token ADMIN_SITE_ID_NAME = site-id API_SITE_ID_NAME = site-id ADMIN_TOKEN_EXPIRE_TIME = 604800 API_TOKEN_EXPIRE_TIME = 2592000 LANG_NAME = lang CHANNEL_NAME = channel ADMIN_DOMAIN = WAP_DOMAIN = WEB_DOMAIN = [NIUCLOUD] code = secret =

View File

@ -89,13 +89,6 @@ class ExceptionHandle extends Handle
'previous' => $e->getPrevious(),
] : [];
// 添加自定义异常处理机制
if (strpos($e->getMessage(), 'open_basedir') !== false) {
return fail('OPEN_BASEDIR_ERROR');
}
if (strpos($e->getMessage(), 'Allowed memory size of') !== false) {
return fail('PHP_SCRIPT_RUNNING_OUT_OF_MEMORY');
}
if ($e instanceof DbException) {
return fail(get_lang('DATA_GET_FAIL').':'.$e->getMessage(), [
'file' => $e->getFile(),
@ -122,17 +115,28 @@ class ExceptionHandle extends Handle
}
private function handleException(Throwable $e) {
// 添加自定义异常处理机制
if (strpos($e->getMessage(), 'open_basedir') !== false) {
return fail('OPEN_BASEDIR_ERROR');
}
if (strpos($e->getMessage(), 'Allowed memory size of') !== false) {
return fail('PHP_SCRIPT_RUNNING_OUT_OF_MEMORY');
}
if (preg_match('/^(fopen|file_get_contents|file_put_contents|include|require)\((.+?)\):.*Permission denied/', $e->getMessage(), $matches)) {
$filePath = $matches[2]; // 提取出来的文件路径
return fail("请检查文件{$filePath}是否存在或权限是否正确");
}
$trace = array_map(function ($class){
return str_replace('\\', '/', $class);
}, array_column($e->getTrace(), 'class'));
$debug = env("APP_DEBUG", false);
foreach ($trace as $class) {
if (preg_match('#^addon/([^/]+)/#', $class, $matches)) {
return fail("{$matches[1]}插件内{$class}{$e->getLine()}行出现异常,异常信息:" .$e->getMessage());
return fail("{$matches[1]}插件内{$class}{$e->getLine()}行出现异常,异常信息:" .$e->getMessage(),$debug?$e->getTrace():[]);
}
}
$debug = env("APP_DEBUG", false);
return fail("{$trace[0]}{$e->getLine()}行出现异常,异常信息:" .$e->getMessage(), $debug ? $e->getTrace() : []);
}

View File

@ -78,7 +78,6 @@ class App extends BaseAdminController
["is_forced_upgrade",0],
["package_path", ""],
["package_type", ""],
["package_type", ""],
["build", []],
["cert", []],
["upgrade_type", ""],
@ -102,7 +101,6 @@ class App extends BaseAdminController
["is_forced_upgrade",0],
["package_path", ""],
["package_type", ""],
["package_type", ""],
["build", []],
["cert", []],
["upgrade_type", ""],

View File

@ -178,14 +178,13 @@ class Site extends BaseAdminController
return success(data: $data);
}
public function showApp()
/**
* 统一展示 安装的插件 应用 营销工具等。。
* @return Response
*/
public function showCustomer()
{
return success((new SiteService())->getShowAppTools());
}
public function showMarketing()
{
return success((new SiteService())->getShowMarketingTools());
return success((new SiteService())->showCustomer());
}
/**
@ -232,5 +231,11 @@ class Site extends BaseAdminController
return success(( new CaptchaService() )->create());
}
public function getSpecialMenuList()
{
return success('SUCCESS', (new SiteService())->getSpecialMenuList());
}
}

View File

@ -30,7 +30,8 @@ class Config extends BaseAdminController
*/
public function getWebsite()
{
return success(( new ConfigService() )->getWebSite());
$site_id = $this->request->header()['site-id'];
return success(( new ConfigService() )->getWebSite($site_id));
}
/**
@ -84,7 +85,8 @@ class Config extends BaseAdminController
*/
public function getCopyright()
{
return success(( new ConfigService() )->getCopyright());
$site_id = $this->request->header()['site-id'];
return success(( new ConfigService() )->getCopyright($site_id));
}
/**

View File

@ -106,6 +106,7 @@ class User extends BaseAdminController
$data = $this->request->params([
['username', ''],
['password', ''],
['mobile', ''],
['real_name', ''],
['status', UserDict::ON],
['head_img', ''],
@ -124,6 +125,7 @@ class User extends BaseAdminController
public function edit($uid) {
$data = $this->request->params([
['password', ''],
['mobile', ''],
['real_name', ''],
['head_img', ''],
]);

View File

@ -97,9 +97,8 @@ Route::group('site', function () {
// 获取店铺包含的插件
Route::get('addons', 'site.Site/addons');
// 获取应用列表
Route::get('showapp', 'site.Site/showApp');
// 获取营销列表
Route::get('showMarketing', 'site.Site/showMarketing');
Route::get('showCustomer', 'site.Site/showCustomer');
Route::get('special_menu', 'site.Site/getSpecialMenuList');
})->middleware([
AdminCheckToken::class,
AdminCheckRole::class,

View File

@ -54,7 +54,7 @@ class App extends BaseController
'mobile' => 'mobile'
]);
// 校验手机验证码(电脑端扫码)
// 校验手机验证码
( new LoginService() )->checkMobileCode($data[ 'mobile' ]);
$wechat_app_service = new WechatAppService();

View File

@ -0,0 +1,27 @@
<?php
declare (strict_types = 1);
namespace app\command;
use app\job\refreshArea;
use app\service\admin\auth\LoginService;
use think\console\Command;
use think\console\Input;
use think\console\Output;
class refreshAreaCommand extends Command
{
protected function configure()
{
// 指令配置
$this->setName('refreshArea')
->setDescription('更新地区命令');
}
protected function execute(Input $input, Output $output)
{
(new refreshArea())->execute($output);
// 指令输出
$output->writeln('地区更新成功');
}
}

View File

@ -28,6 +28,7 @@ class CommonActiveDict
const NEWCOMER_DISCOUNT = 'newcomer_discount'; // 新人专享 新
const PINTUAN = 'pintuan'; // 新人专享 新
const SECKILL = 'seckill'; // 秒杀 秒
const RELAY = 'relay'; // 接龙 接
public static function getActiveShort($active = '')
{
@ -72,6 +73,11 @@ class CommonActiveDict
'active_name' => get_lang('common_active_short.pintuan_name'),
'bg_color' => '#FF1C77'
],
self::RELAY => [
'name' => get_lang('common_active_short.relay_short'),
'active_name' => get_lang('common_active_short.relay_name'),
'bg_color' => '#0EB108'
],
];
return !empty($active) ? $data[$active] ?? [] : $data;
}

View File

@ -869,37 +869,37 @@ return [
],
],
],
[
'menu_name' => '营销管理',
'menu_key' => 'active',
'menu_short_name' => '营销',
'parent_key' => '',
'menu_type' => '0',
'icon' => 'iconfont iconyingxiao2',
'api_url' => '',
'router_path' => 'app/marketing',
'view_path' => '',
'methods' => '',
'sort' => '87',
'status' => '1',
'is_show' => '1',
'children' => [
[
'menu_name' => '营销列表',
'menu_key' => 'marketing_list',
'menu_short_name' => '营销列表',
'menu_type' => '1',
'icon' => 'iconfont iconmanage-apply',
'api_url' => 'marketing/list',
'router_path' => 'app/marketing',
'view_path' => 'app/marketing',
'methods' => 'get',
'sort' => '160',
'status' => '1',
'is_show' => '1',
],
],
],
// [
// 'menu_name' => '营销管理',
// 'menu_key' => 'active',
// 'menu_short_name' => '营销',
// 'parent_key' => '',
// 'menu_type' => '0',
// 'icon' => 'iconfont iconyingxiao2',
// 'api_url' => '',
// 'router_path' => 'app/marketing',
// 'view_path' => '',
// 'methods' => '',
// 'sort' => '87',
// 'status' => '1',
// 'is_show' => '1',
// 'children' => [
// [
// 'menu_name' => '营销列表',
// 'menu_key' => 'marketing_list',
// 'menu_short_name' => '营销列表',
// 'menu_type' => '1',
// 'icon' => 'iconfont iconmanage-apply',
// 'api_url' => 'marketing/list',
// 'router_path' => 'app/marketing',
// 'view_path' => 'app/marketing',
// 'methods' => 'get',
// 'sort' => '160',
// 'status' => '1',
// 'is_show' => '1',
// ],
// ],
// ],
[
'menu_name' => '核销管理',
'menu_key' => 'verify',
@ -911,7 +911,7 @@ return [
'router_path' => 'marketing/verify/index',
'view_path' => '',
'methods' => 'get',
'sort' => '48',
'sort' => '30',
'status' => '1',
'is_show' => '1',
'children' => [
@ -1021,14 +1021,14 @@ return [
'menu_name' => '签到管理',
'menu_key' => 'sign',
'menu_short_name' => '签到管理',
'parent_key' => 'active',
'parent_key' => 'addon',
'menu_type' => '0',
'icon' => 'element FolderChecked',
'api_url' => '',
'router_path' => 'marketing/sign/config',
'view_path' => '',
'methods' => 'get',
'sort' => '30',
'sort' => '91',
'status' => '1',
'is_show' => '1',
'children' => [
@ -1086,8 +1086,8 @@ return [
'menu_type' => '0',
'icon' => 'iconfont iconyingyong21',
'api_url' => '',
'router_path' => '',
'view_path' => '',
'router_path' => 'app/index',
'view_path' => 'app/index',
'methods' => '',
'sort' => '86',
'status' => '1',
@ -1103,7 +1103,7 @@ return [
'router_path' => 'app/index',
'view_path' => 'app/index',
'methods' => 'get',
'sort' => '130',
'sort' => '999',
'status' => '1',
'is_show' => '1',
],
@ -2578,7 +2578,7 @@ return [
'router_path' => '',
'view_path' => '',
'methods' => '',
'sort' => '0',
'sort' => '29',
'status' => '1',
'is_show' => '1',
'menu_attr' => 'diy_form',
@ -2628,7 +2628,7 @@ return [
'router_path' => '',
'view_path' => '',
'methods' => '',
'sort' => '0',
'sort' => '27',
'status' => '1',
'is_show' => '1',
'menu_attr' => 'setting_export',
@ -2678,7 +2678,7 @@ return [
'router_path' => '',
'view_path' => '',
'methods' => '',
'sort' => '0',
'sort' => '28',
'status' => '1',
'is_show' => '1',
'menu_attr' => 'printer_management',

View File

@ -18,6 +18,10 @@ class SiteDict
public const ON = 1;//正常
public const CLOSE = 3;//停止
public const ADDON_CHILD_MENU_DICT_SYSTEM_TOOL = 'system_tool';
public const ADDON_CHILD_MENU_DICT_MARKING_TOOL = 'marketing_tool';
public const ADDON_CHILD_MENU_DICT_MARKING_ACTIVE = 'marketing_active';
public const ADDON_CHILD_MENU_DICT_ADDON_TOOL = 'addon_tool';
/**
* 站点状态
@ -32,4 +36,39 @@ class SiteDict
];
}
/**
* 站点应用管理特殊子菜单
* @return array
*/
public static function getAddonChildMenu()
{
//注意 sort 倒序排序使用
return [
self::ADDON_CHILD_MENU_DICT_SYSTEM_TOOL => [
'key' => self::ADDON_CHILD_MENU_DICT_SYSTEM_TOOL,
'name' => get_lang('dict_site_addon_menu.system_tool'),
'short_name' => get_lang('dict_site_addon_menu.system_tool_short'),
'sort' => 97
],
self::ADDON_CHILD_MENU_DICT_MARKING_TOOL => [
'key' => self::ADDON_CHILD_MENU_DICT_MARKING_TOOL,
'name' => get_lang('dict_site_addon_menu.marking_tool'),
'short_name' => get_lang('dict_site.marking_tool_short'),
'sort' => 99
],
self::ADDON_CHILD_MENU_DICT_MARKING_ACTIVE => [
'key' => self::ADDON_CHILD_MENU_DICT_MARKING_ACTIVE,
'name' => get_lang('dict_site_addon_menu.marking_active'),
'short_name' => get_lang('dict_site_addon_menu.marking_active_short'),
'sort' => 100
],
self::ADDON_CHILD_MENU_DICT_ADDON_TOOL => [
'key' => self::ADDON_CHILD_MENU_DICT_ADDON_TOOL,
'name' => get_lang('dict_site_addon_menu.addon_tool'),
'short_name' => get_lang('dict_site_addon_menu.addon_tool_short'),
'sort' => 98
],
];
}
}

View File

@ -40,6 +40,7 @@ class ConfigKeyDict
public const SMS = 'SMS';//短信配置
public const PINTUAN_ORDER_CONFIG = 'PINTUAN_ORDER_CONFIG';//拼团订单配置
public const RELAY_ORDER_CONFIG = 'RELAY_ORDER_CONFIG';//接龙订单配置
public const APP = 'app';
}

View File

@ -11,9 +11,9 @@ $system_event = [
/**
* 系统事件
*/
'AppInit' => [ 'app\listener\system\AppInitListener' ],
'AppInit' => ['app\listener\system\AppInitListener'],
//站点初始化
'SiteInit' => [ 'app\listener\system\SiteInitListener' ],
'SiteInit' => ['app\listener\system\SiteInitListener'],
// 站点创建之后
'AddSiteAfter' => [
'app\listener\system\AddSiteAfterListener'
@ -26,26 +26,26 @@ $system_event = [
* 会员相关事件
*/
//会员注册事件
'MemberRegister' => [ 'app\listener\member\MemberRegisterListener' ],
'MemberRegister' => ['app\listener\member\MemberRegisterListener'],
//会员登录事件
'MemberLogin' => [ 'app\listener\member\MemberLoginListener' ],
'MemberLogin' => ['app\listener\member\MemberLoginListener'],
//会员账户变化事件
'MemberAccount' => [ 'app\listener\member\MemberAccountListener' ],
'MemberAccount' => ['app\listener\member\MemberAccountListener'],
//扫码事件
'Scan' => [ 'app\listener\scan\ScanListener' ],
'Scan' => ['app\listener\scan\ScanListener'],
/**
* 支付相关事件
*/
'PayCreate' => [ 'app\listener\pay\PayCreateListener' ],
'PayCreate' => ['app\listener\pay\PayCreateListener'],
//支付成功
'PaySuccess' => [ 'app\listener\pay\PaySuccessListener' ],
'PaySuccess' => ['app\listener\pay\PaySuccessListener'],
//退款成功
'RefundSuccess' => [ 'app\listener\pay\RefundSuccessListener' ],
'RefundSuccess' => ['app\listener\pay\RefundSuccessListener'],
//转账成功
'TransferSuccess' => [ 'app\listener\pay\TransferSuccessListener' ],
'TransferSuccess' => ['app\listener\pay\TransferSuccessListener'],
// 任务失败统一回调,有四种定义方式
'queue_failed' => [
[ 'app\listener\job\QueueFailedLoggerListener', 'report' ],
['app\listener\job\QueueFailedLoggerListener', 'report'],
],
//系统应用管理加载
'AppManage' => [
@ -118,25 +118,28 @@ $system_event = [
'StatField' => [],
// 获取海报数据
'GetPosterType' => [ 'app\listener\system\PosterType' ],
'GetPosterData' => [ 'app\listener\system\Poster' ],
'GetPosterType' => ['app\listener\system\PosterType'],
'GetPosterData' => ['app\listener\system\Poster'],
// 小程序授权变更事件
'WeappAuthChangeAfter' => [ 'app\listener\system\WeappAuthChangeAfter' ],
'WeappAuthChangeAfter' => ['app\listener\system\WeappAuthChangeAfter'],
'ShowApp' => [
'app\listener\system\ShowAppListener'
],
'ShowMarketing' => [
'app\listener\system\ShowMarketingListener'
],
'ShowCustomer' => [
'app\listener\system\ShowCustomerListener'
],
//获取微信转账场景配置
'GetWechatTransferTradeScene' => [
'app\listener\transfer\TransferCashOutListener'
],
//主题色
'ThemeColor' => [ 'app\listener\diy\ThemeColorListener' ],
'ThemeColor' => ['app\listener\diy\ThemeColorListener'],
],
'subscribe' => [
],
];
return ( new DictLoader("Event") )->load($system_event);
return (new DictLoader("Event"))->load($system_event);

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -27,16 +27,12 @@ class AutoClearPosterAndQrcode extends BaseJob
// 清理海报目录
$dir = 'upload/poster';
$dir = public_path($dir);
Log::write('AutoClearPosterAndQrcode尝试清理海报目录: ' . $dir);
$res = $this->clearDirectory($dir);
Log::write('AutoClearPosterAndQrcode海报目录清理结果: ' . ($res ? '成功' : '失败'));
// 清理二维码目录
$qrcode_dir = 'upload/qrcode';
$qrcode_dir = public_path($qrcode_dir);
Log::write('AutoClearPosterAndQrcode尝试清理二维码目录: ' . $qrcode_dir);
$res = $this->clearDirectory($qrcode_dir);
Log::write('AutoClearPosterAndQrcode二维码目录清理结果: ' . ($res ? '成功' : '失败'));
return true;
} catch (\Exception $e) {

View File

@ -68,6 +68,7 @@ return [
'NOT_EXIST_UPGRADE_CONTENT' => '没有获取到可以升级的内容',
'CLOUD_BUILD_AUTH_CODE_NOT_FOUND' => '请先填写授权码',
'TASK_CYCLE_ERROR' => '任务周期填写错误',
'UPGRADE_TASK_EXIST' => '有正在执行的升级任务,可以展开正在升级的任务,也可以在开发>更新缓存中清除缓存重新开始升级',
//登录注册重置账号....
'LOGIN_SUCCESS' => '登录成功',
@ -106,6 +107,7 @@ return [
'NO_SITE_USER_ROLE' => '用户不存在关联权限',
'ADMIN_NOT_ALLOW_EDIT_ROLE' => '超级管理员不允许改动权限',
'USERNAME_REPEAT' => '账号重复',
'MOBILE_REPEAT' => '手机号重复',
'SITE_USER_EXIST' => '该用户已存在',
//角色管理

View File

@ -467,5 +467,21 @@ return [
'pintuan_name' => '拼团',
'seckill_short' => '秒',
'seckill_name' => '秒杀',
'relay_short' => '接',
'relay_name' => '接龙',
],
//应用菜单下 特殊菜单定义
'dict_site_addon_menu' => [
'system_tool_short' => '系统',
'system_tool' => '系统工具',
'marking_tool_short' => '工具',
'marking_tool' => '营销工具',
'marking_active_short' => '活动',
'marking_active' => '营销活动',
'addon_tool_short' => '插件',
'addon_tool' => '应用插件',
]
];

View File

@ -0,0 +1,75 @@
<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
namespace app\listener\system;
use app\dict\site\SiteDict;
/**
* 查询营销列表
* Class ShowAppListener
* @package app\listener\system
*/
class ShowCustomerListener
{
public function handle()
{
// 应用app、addon 待定
// 营销marketing
// 工具tool
return [
// 应用
SiteDict::ADDON_CHILD_MENU_DICT_SYSTEM_TOOL => [
[
'title' => '核销管理',
'desc' => '管理核销员及核销记录',
'icon' => 'static/resource/images/marketing/verifier.png',
'key' => 'verify',
'url' => '/marketing/verify/index',
],
[
'title' => '万能表单',
'desc' => '适用于各种应用场景,满足多样化的业务需求',
'icon' => 'static/resource/images/diy_form/icon.png',
'key' => 'diy_form',
'url' => '/diy_form/list',
],
[
'title' => '小票打印',
'desc' => '支持打印机添加,便捷创建小票打印模板',
'icon' => 'static/resource/images/tool/printer_icon.png',
'key' => 'printer_management',
'url' => '/printer/list',
],
[
'title' => '数据导出',
'desc' => '展示导出文件,支持删除与下载',
'icon' => 'static/resource/images/tool/export_icon.png',
'key' => 'setting_export',
'url' => '/setting/export',
],
],
// 工具
SiteDict::ADDON_CHILD_MENU_DICT_MARKING_TOOL => [
],
// 营销
SiteDict::ADDON_CHILD_MENU_DICT_MARKING_ACTIVE => [
[
'title' => '签到管理',
'desc' => '客户每日签到发放奖励',
'icon' => 'static/resource/images/marketing/sign.png',
'key' => 'sign',
'url' => '/marketing/sign/config',
],
]
];
}
}

View File

@ -42,7 +42,7 @@ class AuthService extends BaseAdminService
{
$site_id = $request->adminSiteId();
//todo 将站点编号转化为站点id
$site_info = ( new CoreSiteService() )->getSiteCache($site_id);
$site_info = (new CoreSiteService())->getSiteCache($site_id);
//站点不存在
if (empty($site_info)) throw new AuthException('SITE_NOT_EXIST');
//没有当前站点的信息
@ -51,7 +51,7 @@ class AuthService extends BaseAdminService
}
$request->siteId($site_id);
$request->appType($site_info[ 'app_type' ]);
$request->appType($site_info['app_type']);
return true;
}
@ -67,19 +67,19 @@ class AuthService extends BaseAdminService
$rule = strtolower(trim($request->rule()->getRule()));
$method = strtolower(trim($request->method()));
$site_info = ( new AuthSiteService() )->getSiteInfo();
$site_info = (new AuthSiteService())->getSiteInfo();
if ($method != 'get') {
if ($site_info[ 'status' ] == SiteDict::EXPIRE) throw new AuthException('SITE_EXPIRE_NOT_ALLOW');
if ($site_info[ 'status' ] == SiteDict::CLOSE) throw new AuthException('SITE_CLOSE_NOT_ALLOW');
if ($site_info['status'] == SiteDict::EXPIRE) throw new AuthException('SITE_EXPIRE_NOT_ALLOW');
if ($site_info['status'] == SiteDict::CLOSE) throw new AuthException('SITE_CLOSE_NOT_ALLOW');
}
$menu_service = new MenuService();
$all_menu_list = $menu_service->getAllApiList($this->app_type);
//先判断当前访问的接口是否收到权限的限制
$method_menu_list = $all_menu_list[ $method ] ?? [];
$method_menu_list = $all_menu_list[$method] ?? [];
if (!in_array($rule, $method_menu_list)) {
$other_menu_list = $menu_service->getAllApiList($this->app_type == AppTypeDict::ADMIN ? AppTypeDict::SITE : AppTypeDict::ADMIN);
$method_menu_list = $other_menu_list[ $method ] ?? [];
$method_menu_list = $other_menu_list[$method] ?? [];
if (!in_array($rule, $method_menu_list)) {
return true;
} else {
@ -88,7 +88,7 @@ class AuthService extends BaseAdminService
}
$auth_role_list = $this->getAuthApiList();
if (!empty($auth_role_list[ $method ]) && in_array($rule, $auth_role_list[ $method ]))
if (!empty($auth_role_list[$method]) && in_array($rule, $auth_role_list[$method]))
return true;
throw new AuthException('NO_PERMISSION');
@ -118,15 +118,15 @@ class AuthService extends BaseAdminService
if (empty($user_role_info))
return [];
$is_admin = $user_role_info[ 'is_admin' ];//是否是超级管理员组
$is_admin = $user_role_info['is_admin'];//是否是超级管理员组
}
$menu_service = new MenuService();
if ($is_admin) {//查询全部启用的权限
//获取站点信息
return ( new AuthSiteService() )->getApiList(1);
return (new AuthSiteService())->getApiList(1);
} else {
$user_role_ids = $user_role_info[ 'role_ids' ];
$user_role_ids = $user_role_info['role_ids'];
$role_service = new RoleService();
$menu_keys = $role_service->getMenuIdsByRoleIds($this->site_id, $user_role_ids);
@ -147,19 +147,20 @@ class AuthService extends BaseAdminService
$user_role_info = $this->getAuthRole($this->site_id);
if (empty($user_role_info))
return [];
$is_admin = $user_role_info[ 'is_admin' ];//是否是超级管理员组
$is_admin = $user_role_info['is_admin'];//是否是超级管理员组
}
$menu_service = new MenuService();
if ($is_admin) {
// 查询全部启用的权限
return ( new MenuService() )->getAllMenuList($this->app_type, 1, $is_tree, 1);
$menu_list = (new MenuService())->getAllMenuList($this->app_type, 1, $is_tree, 1);
} else {
$user_role_ids = $user_role_info[ 'role_ids' ];
$user_role_ids = $user_role_info['role_ids'];
$role_service = new RoleService();
$menu_keys = $role_service->getMenuIdsByRoleIds($this->site_id, $user_role_ids);
return $menu_service->getMenuListByMenuKeys($this->site_id, $menu_keys, $this->app_type, $is_tree, $addon);
$menu_list = $menu_service->getMenuListByMenuKeys($this->site_id, $menu_keys, $this->app_type, $is_tree, $addon);
}
return $menu_list;
}
/**
@ -167,7 +168,7 @@ class AuthService extends BaseAdminService
*/
public function getAuthInfo()
{
return ( new SiteUserService() )->getInfo($this->uid);
return (new SiteUserService())->getInfo($this->uid);
}
/**
@ -178,7 +179,7 @@ class AuthService extends BaseAdminService
*/
public function modifyAuth(string $field, $data)
{
return ( new SiteUserService() )->modify($this->uid, $field, $data);
return (new SiteUserService())->modify($this->uid, $field, $data);
}
/**
@ -188,14 +189,14 @@ class AuthService extends BaseAdminService
*/
public function editAuth(array $data)
{
if (!empty($data[ 'password' ])) {
if (!empty($data['password'])) {
//检测原始密码是否正确
$user = ( new UserService() )->find($this->uid);
if (!check_password($data[ 'original_password' ], $user->password))
$user = (new UserService())->find($this->uid);
if (!check_password($data['original_password'], $user->password))
throw new AuthException('OLD_PASSWORD_ERROR');
}
return ( new UserService() )->edit($this->uid, $data);
return (new UserService())->edit($this->uid, $data);
}
/**
@ -207,14 +208,14 @@ class AuthService extends BaseAdminService
$super_admin_uid = Cache::get('super_admin_uid');
if (!$super_admin_uid) {
$super_admin_uid = ( new SysUserRole() )->where([
[ 'site_id', '=', request()->defaultSiteId() ],
[ 'is_admin', '=', 1 ]
$super_admin_uid = (new SysUserRole())->where([
['site_id', '=', request()->defaultSiteId()],
['is_admin', '=', 1]
])->value('uid');
Cache::set('super_admin_uid', $super_admin_uid);
}
return $super_admin_uid == ( new self() )->uid;
return $super_admin_uid == (new self())->uid;
}
}

View File

@ -120,7 +120,7 @@ class NiuSmsService extends BaseAdminService
{
$account_info = $this->niu_service->loginAccount($params);
if ($account_info) {
(new CoreNiuSmsService())->setNiuLoginConfig($params, true);
$this->niu_service->setNiuLoginConfig($params, true);
}
return $account_info;
}

View File

@ -423,142 +423,63 @@ class SiteService extends BaseAdminService
}
/**
* 查询应用列表todo 完善
* @return array
* @return array[]
*/
public function getShowAppTools()
public function showCustomer($is_sort=true)
{
$list = [
'tool' => $this->getAllAddonAndTool()['tool'],
// 'promotion' => [
// 'title' => '营销活动',
// 'list' => []
// ]
];
return $list;
}
/**
* 查询营销列表
* @return array
*/
public function getShowMarketingTools()
{
$all = $this->getAllAddonAndTool();
$list = [
'marketing' => $all['marketing'],
'addon' => $all['addon'],
];
return $list;
}
private function getMarketing()
{
$list = [
'marketing' => [
'title' => '营销活动',
'list' => []
]
];
$apps = event('ShowMarketing', ['site_id' => $this->site_id]);
$keys = [];
foreach ($apps as $v) {
foreach ($v as $ck => $cv) {
if (!empty($cv)) {
foreach ($cv as $addon_k => $addon_v) {
if (in_array($addon_v['key'], $keys)) {
continue;
}
$list[$ck]['list'][] = $addon_v;
$keys[] = $addon_v['key'];
}
$show_list = event('ShowCustomer', ['site_id' => $this->site_id]);
$addon_type_list = SiteDict::getAddonChildMenu();
$return = [];
foreach ($show_list as $item) {
foreach ($addon_type_list as $key => $value) {
if (!isset($return[$key])) {
$return[$key] = [
'title' => $value['name'],
'sort' => $value['sort'],
'list' => [],
];
}
$return[$key]['list'] = array_merge($return[$key]['list'], $item[$key] ?? []);
}
}
return $list;
}
private function getAllAddonAndTool()
{
$markting_list = $this->getMarketing() ?? [];
$markting = $markting_list['marketing'];
$marking_addon = $markting_list['tool']['list'] ?? [];
$list = [
'marketing' => $markting,
'addon' => [
'title' => '营销工具',
'list' => $marking_addon
],
'tool' => [
'title' => '系统工具',
'list' => []
],
// 'promotion' => [
// 'title' => '营销活动',
// 'list' => []
// ]
];
$apps = event('ShowApp');
//防止有未实现对应事件的插件额外做一次查询 未实现的直接放到 addon_tool 里面
$keys = [];
foreach ($apps as $v) {
foreach ($v as $ck => $cv) {
if (!empty($cv)) {
foreach ($cv as $addon_k => $addon_v) {
if (in_array($addon_v['key'], $keys)) {
continue;
}
$list[$ck]['list'][] = $addon_v;
$keys[] = $addon_v['key'];
}
}
foreach ($return as $item) {
foreach ($item['list'] as $value) {
$keys[] = $value['key'];
}
}
$site_addon = $this->getSiteAddons([]);
$menu_model = (new SysMenu());
$site_addons = $this->getSiteAddons([]);
$addon_urls = $menu_model
->where([['addon', 'in', array_column($site_addons, 'key')], ['is_show', '=', 1], ['menu_type', '=', 1]])
->where([['addon', 'in', array_column($site_addon, 'key')], ['addon', 'not in', $keys], ['is_show', '=', 1], ['menu_type', '=', 1]])
->order('id asc')
->group('addon')
->column('router_path', 'addon');
if (!empty($site_addons)) {
foreach ($site_addons as $k => $v) {
$continue = true;
if (!empty($markting['list'])) {
foreach ($markting['list'] as $key => $val) {
if ($v['key'] == $val['key']) {
unset($site_addons[$k]);
$continue = false;
}
}
}
if ($continue && !in_array($v['key'], $keys)) {
$url = $addon_urls[$v['key']] ?? '';
$list['addon']['list'][] = [
'title' => $v['title'],
'desc' => $v['desc'],
'icon' => $v['icon'],
'key' => $v['key'],
'url' => $url ? '/' . $url : ''
];
if (!empty($site_addon)) {
foreach ($site_addon as $k => $v) {
if (in_array($v['key'], $keys)) {
continue;
}
$url = $addon_urls[$v['key']] ?? '';
$return['addon_tool']['list'][] = [
'title' => $v['title'],
'desc' => $v['desc'],
'icon' => $v['icon'],
'key' => $v['key'],
'url' => $url ? '/' . $url : ''
];
}
}
return $list;
if($is_sort){
usort($return, function (array $a, array $b) {
$sortA = isset($a['sort']) ? (int)$a['sort'] : 0;
$sortB = isset($b['sort']) ? (int)$b['sort'] : 0;
return $sortB <=> $sortA;
});
}
return $return;
}
/**
@ -600,5 +521,53 @@ class SiteService extends BaseAdminService
return $config;
}
//生成菜单数据
public function getSpecialMenuList()
{
$auth_menu_list = (new AuthService())->getAuthMenuList(1);
$auth_menu_list = array_column($auth_menu_list, null, 'menu_key');
$auth_menu_list = $auth_menu_list['addon'];
$list = $this->showCustomer(false);//获取对应的需要展示的key
$addon_menu_list = SiteDict::getAddonChildMenu();
$menu_list = [];
foreach ($addon_menu_list as $item) {
$menu_key_list = array_column($list[$item['key']]['list'] ?? [], 'key');
$temp_menu = [
'app_type'=>'site',
'menu_name' => $item['name'],
'menu_key' => $item['key'],
'menu_short_name' => $item['short_name'],
'parent_key' => 'addon',
'menu_type' => '0',
'icon' => 'iconfont iconzhuangxiu3',
'api_url' => '',
'router_path' => 'app/index',
'view_path' => 'app/index',
'methods' => 'get',
'sort' => $item['sort'],
'status' => '1',
'is_show' => '1',
];
$children = [];
foreach ($auth_menu_list['children'] as $datum_item) {
if (in_array($datum_item['menu_key'], $menu_key_list)) {
$children[] = $datum_item;
}
}
$temp_menu['children'] = $children;
$menu_list[] = $temp_menu;
}
usort($menu_list, function (array $a, array $b) {
$sortA = isset($a['sort']) ? (int)$a['sort'] : 0;
$sortB = isset($b['sort']) ? (int)$b['sort'] : 0;
return $sortB <=> $sortA;
});
return [
'parent_key' => 'addon',
'list' => $menu_list
];
}
}

View File

@ -37,9 +37,9 @@ class ConfigService extends BaseAdminService
* 获取版权信息(网站整体,不按照站点设置)
* @return array|mixed
*/
public function getCopyright()
public function getCopyright($site_id)
{
return ( new CoreSysConfigService() )->getCopyright($this->site_id);
return ( new CoreSysConfigService() )->getCopyright($site_id);
}
/**
@ -66,9 +66,10 @@ class ConfigService extends BaseAdminService
* 获取网站信息
* @return array
*/
public function getWebSite()
public function getWebSite($site_id = 0)
{
$info = ( new SiteService() )->getInfo($this->site_id);
$site_id = $site_id != 0 ? $site_id : $this->site_id;
$info = ( new SiteService() )->getInfo($site_id);
$service_info = $this->getService();
$info['site_login_logo'] = $service_info[ 'site_login_logo' ];
$info['site_login_bg_img'] = $service_info[ 'site_login_bg_img' ];

View File

@ -124,7 +124,8 @@ class StorageConfigService extends BaseAdminService
{
$config['default'] = $storage_type;
}else if ($config['default'] == $storage_type) {
$config['default'] = '';
throw new AdminException('UPLOAD_STORAGE_TYPE_ALL_CLOSE');
// $config['default'] = '';
}
foreach ($storage_type_list[$storage_type]['params'] as $k_param => $v_param)
{

View File

@ -37,7 +37,7 @@ class UserService extends BaseAdminService
public function __construct()
{
parent::__construct();
$this->model = new SysUser();
$this->model = new SysUser();
}
/**
@ -50,7 +50,7 @@ class UserService extends BaseAdminService
AuthService::isSuperAdmin();
$super_admin_uid = Cache::get('super_admin_uid');
$field = 'uid,username,head_img,real_name,last_ip,last_time,login_count,status';
$field = 'uid,username,mobile,head_img,real_name,last_ip,last_time,login_count,status';
$search_model = $this->model->withSearch([ 'username', 'real_name', 'last_time' ], $where)->field($field)->append([ 'status_name' ])->order('uid desc');
return $this->pageQuery($search_model, function ($item) use ($super_admin_uid) {
$item['site_num'] = (new SysUserRole())->where([['uid', '=', $item['uid']], ['site_id', '<>', request()->defaultSiteId() ] ])->count();
@ -71,7 +71,7 @@ class UserService extends BaseAdminService
$where = array(
['uid', '=', $uid],
);
$field = 'uid, username, head_img, real_name, last_ip, last_time, create_time, login_count, delete_time, update_time';
$field = 'uid, username, head_img, mobile, real_name, last_ip, last_time, create_time, login_count, delete_time, update_time';
$info = $this->model->where($where)->field($field)->findOrEmpty()->toArray();
if (!empty($info)) {
@ -96,11 +96,14 @@ class UserService extends BaseAdminService
*/
public function add(array $data){
if ($this->checkUsername($data['username'])) throw new CommonException('USERNAME_REPEAT');
//手机号 唯一校验 后续调整为使用validate
if ($this->checkUserMobile($data['mobile'])) throw new CommonException('MOBILE_REPEAT');
Db::startTrans();
try {
$user_data = [
'username' => $data['username'],
'mobile' => $data['mobile'],
'head_img' => $data['head_img'],
'status' => $data['status'],
'real_name' => $data['real_name'],
@ -180,6 +183,29 @@ class UserService extends BaseAdminService
else return false;
}
/**
* 检测用户名是否重复
* @param $username
* @return bool
* @throws DbException
*/
public function checkUserMobile($mobile,$uid=0)
{
if (empty($mobile)){
return true;
}
$where[] = ['mobile', '=', $mobile];
if ($uid != 0){
$where[] = ['uid', '<>', $uid];
}
$count = $this->model->where($where)->count();
if($count > 0)
{
return true;
}
else return false;
}
/**
* 用户模型对象
* @param int $uid
@ -211,6 +237,10 @@ class UserService extends BaseAdminService
if(isset($data['head_img'])){
$user_data['head_img'] = $data['head_img'];
}
if(isset($data['mobile']) && !empty($data['mobile'])){//手机号 唯一校验 后续调整为使用validate
if ($this->checkUserMobile($data['mobile'],$uid)) throw new CommonException('MOBILE_REPEAT');
$user_data['mobile'] = $data['mobile'];
}
if(isset($data['real_name'])){
$user_data['real_name'] = $data['real_name'];
}
@ -294,8 +324,8 @@ class UserService extends BaseAdminService
$all_uid = array_column($this->getUserAll($where), 'uid');
$all_role_uid = (new SysUserRole())->distinct(true)->order('id desc')->select()->column('uid');
$data = $this->model->distinct(true)->hasWhere('userrole', function ($query) {
$query->where([['is_admin', '=', 1]])->whereOr([['site_id', '=', 0]]);
})->withSearch(['username', 'realname', 'create_time'], $where)
$query->where([['is_admin', '=', 1]])->whereOr([['site_id', '=', 0]]);
})->withSearch(['username', 'realname', 'create_time'], $where)
->field($field)
->order('SysUser.uid desc')
->select()

View File

@ -93,7 +93,7 @@ class CoreAppCloudService extends CoreCloudBaseService
// uni
$uni_dir = $package_dir . 'uni-app';
dir_copy($this->root_path . 'uni-app', $uni_dir, exclude_dirs: [ 'node_modules', 'unpackage', 'dist' ]);
dir_copy($this->root_path . 'uni-app', $uni_dir, exclude_dirs: [ 'node_modules', 'unpackage', 'dist', '.git' ]);
$this->handleUniapp($uni_dir);
// 替换env文件
$this->weappEnvReplace($uni_dir . DIRECTORY_SEPARATOR . '.env.production');

View File

@ -137,18 +137,18 @@ class CoreCloudBuildService extends BaseCoreService
// 拷贝手机端文件
$wap_is_compile = ( new Addon() )->where([ [ 'compile', 'like', '%wap%' ] ])->field('id')->findOrEmpty();
if ($wap_is_compile->isEmpty()) {
dir_copy($this->root_path . 'uni-app', $package_dir . 'uni-app', exclude_dirs: [ 'node_modules', 'unpackage', 'dist' ]);
dir_copy($this->root_path . 'uni-app', $package_dir . 'uni-app', exclude_dirs: [ 'node_modules', 'unpackage', 'dist', '.git' ]);
$this->handleUniapp($package_dir . 'uni-app');
}
// 拷贝admin端文件
$admin_is_compile = ( new Addon() )->where([ [ 'compile', 'like', '%admin%' ] ])->field('id')->findOrEmpty();
if ($admin_is_compile->isEmpty()) {
dir_copy($this->root_path . 'admin', $package_dir . 'admin', exclude_dirs: [ 'node_modules', 'dist', '.vscode', '.idea' ]);
dir_copy($this->root_path . 'admin', $package_dir . 'admin', exclude_dirs: [ 'node_modules', 'dist', '.vscode', '.idea', '.git' ]);
}
// 拷贝web端文件
$web_is_compile = ( new Addon() )->where([ [ 'compile', 'like', '%web%' ] ])->field('id')->findOrEmpty();
if ($web_is_compile->isEmpty()) {
dir_copy($this->root_path . 'web', $package_dir . 'web', exclude_dirs: [ 'node_modules', '.output', '.nuxt' ]);
dir_copy($this->root_path . 'web', $package_dir . 'web', exclude_dirs: [ 'node_modules', '.output', '.nuxt', '.git' ]);
}
$this->handleCustomPort($package_dir);

View File

@ -115,7 +115,7 @@ class CoreExportService extends BaseCoreService
$data_list = [];
foreach ($data_array as $v)
{
$data_list = empty($data_list) ? $v : array_merge($data_list, $v);
$data_list = array_merge($data_list, $v );
}
return $data_list;
}

View File

@ -85,7 +85,7 @@ class CoreWeappCloudService extends CoreCloudBaseService
// 如果不存在编译版小程序
if ($compile_addon->isEmpty()) {
dir_copy($this->root_path . 'uni-app', $uni_dir, exclude_dirs: [ 'node_modules', 'unpackage', 'dist' ]);
dir_copy($this->root_path . 'uni-app', $uni_dir, exclude_dirs: [ 'node_modules', 'unpackage', 'dist', '.git']);
$this->handleUniapp($uni_dir);
// 替换env文件
$this->weappEnvReplace($uni_dir . DIRECTORY_SEPARATOR . '.env.production');

View File

@ -0,0 +1 @@
ALTER TABLE `verify` CHANGE `value` `value` LONGTEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '核销内容';

View File

@ -0,0 +1,14 @@
ALTER TABLE activity_exchange_code
CHANGE COLUMN activity_type activity_type VARCHAR(20) NOT NULL DEFAULT '' COMMENT '例seckill-秒杀活动';
ALTER TABLE activity_exchange_code
ADD COLUMN type_item_id INT(11) NOT NULL DEFAULT 0 COMMENT '规格id';
ALTER TABLE member
ADD COLUMN wxapp_openid VARCHAR(255) NOT NULL DEFAULT '' COMMENT '微信移动应用openid';
ALTER TABLE member
MODIFY wxapp_openid VARCHAR(255) NOT NULL DEFAULT '' COMMENT '微信移动应用openid' AFTER weapp_openid;
ALTER TABLE sys_user
ADD COLUMN mobile VARCHAR(20) NOT NULL DEFAULT '' COMMENT '手机号';

View File

@ -18,7 +18,8 @@ $data = [
//wokrerman的启动停止和重启
'workerman' => 'app\command\workerman\Workerman',
//重置管理员密码
'reset:password' => 'app\command\Resetpassword'
'reset:password' => 'app\command\Resetpassword',
'refresh:area' => 'app\command\refreshAreaCommand',
],
];
return (new DictLoader("Console"))->load($data);

View File

@ -1,6 +1,6 @@
<?php
return [
'version' => '1.1.6',
'code' => '202509130001'
'version' => '1.1.7',
'code' => '202510150001'
];

View File

@ -41,7 +41,7 @@ class Poster extends BasePoster
$bg_type = $poster_data[ 'global' ][ 'bgType' ];
$instance = PosterInstance::extension('imagick')->config([
'path' => realpath($dir) . DIRECTORY_SEPARATOR . $file_path,
'dpi' => [480,480]
'dpi' => [120,120]
]);
$bg_width = $poster_data[ 'global' ][ 'width' ];
$bg_height = $poster_data[ 'global' ][ 'height' ];

View File

@ -48,6 +48,7 @@ class BaseNiucloudClient
* @var string
*/
protected string $baseUri = 'https://api.niucloud.com/openapi/';
// protected string $baseUri = 'http://niucloud-admin.cn/openapi/';//调试放开
/**
*

View File

@ -1 +0,0 @@
import{d as l,r as d,o as i,c as p,a as t,b as u,e as m,w as x,u as v,f,E as h,p as b,g,h as I,i as w,t as S}from"./index-981069db.js";/* empty css */import{_ as B}from"./_plugin-vue_export-helper-c27b6911.js";const k=""+new URL("error-ab7e4004.png",import.meta.url).href,o=e=>(b("data-v-4f4088b5"),e=e(),g(),e),y={class:"error"},C={class:"flex items-center"},E=o(()=>t("div",null,[t("img",{class:"w-[240px]",src:k})],-1)),N={class:"text-left ml-[100px]"},R=o(()=>t("div",{class:"error-text text-[28px] font-bold"},"404错误",-1)),U=o(()=>t("div",{class:"text-[#222] text-[20px] mt-[15px]"},"哎呀,出错了!您访问的页面不存在...",-1)),V=o(()=>t("div",{class:"text-[#c4c2c2] text-[12px] mt-[5px]"},"尝试检查URL的错误然后点击浏览器刷新按钮。",-1)),L={class:"mt-[40px]"},$=l({__name:"404",setup(e){let s=null;const a=d(5),n=f();return s=setInterval(()=>{a.value===0?(clearInterval(s),n.go(-1)):a.value--},1e3),i(()=>{s&&clearInterval(s)}),(r,c)=>{const _=h;return I(),p("div",y,[t("div",C,[u(r.$slots,"content",{},()=>[E],!0),t("div",N,[R,U,V,t("div",L,[m(_,{class:"bottom",onClick:c[0]||(c[0]=D=>v(n).go(-1))},{default:x(()=>[w(S(a.value)+" 秒后返回上一页",1)]),_:1})])])])])}}});const z=B($,[["__scopeId","data-v-4f4088b5"]]);export{z as default};

View File

@ -1 +0,0 @@
import{dz as f}from"./index-981069db.js";export{f as default};

View File

@ -1 +0,0 @@
import z from"./VerifySlide-93a39dd8.js";import g from"./VerifyPoints-504a8b73.js";import{Q as k,r as o,l as w,bb as T,Z as V,_ as B,h as p,c as u,a as c,i as N,C as y,x as d,s as C,bc as j,v}from"./index-981069db.js";import{_ as O}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-764f42d4.js";const P={name:"Vue2Verify",components:{VerifySlide:z,VerifyPoints:g},props:{captchaType:{type:String,required:!0},figure:{type:Number},arith:{type:Number},mode:{type:String,default:"pop"},vSpace:{type:Number},explain:{type:String},imgSize:{type:Object,default(){return{width:"310px",height:"155px"}}},blockSize:{type:Object},barSize:{type:Object}},setup(m){const{captchaType:i,figure:e,arith:t,mode:n,vSpace:h,explain:f,imgSize:Q,blockSize:R,barSize:W}=k(m),a=o(!1),r=o(void 0),s=o(void 0),l=o({}),S=w(()=>n.value=="pop"?a.value:!0),b=()=>{l.value.refresh&&l.value.refresh()},x=()=>{a.value=!1,b()},_=()=>{n.value=="pop"&&(a.value=!0)};return T(()=>{switch(i.value){case"blockPuzzle":r.value="2",s.value="VerifySlide";break;case"clickWord":r.value="",s.value="VerifyPoints";break}}),{clickShow:a,verifyType:r,componentType:s,instance:l,showBox:S,closeBox:x,show:_}}},D={key:0,class:"verifybox-top"},E=c("i",{class:"iconfont icon-close"},null,-1),q=[E];function I(m,i,e,t,n,h){return V((p(),u("div",{class:v(e.mode=="pop"?"mask":"")},[c("div",{class:v(e.mode=="pop"?"verifybox":""),style:d({"max-width":parseInt(e.imgSize.width)+30+"px"})},[e.mode=="pop"?(p(),u("div",D,[N(" 请完成安全验证 "),c("span",{class:"verifybox-close",onClick:i[0]||(i[0]=(...f)=>t.closeBox&&t.closeBox(...f))},q)])):y("",!0),c("div",{class:"verifybox-bottom",style:d({padding:e.mode=="pop"?"15px":"0"})},[t.componentType?(p(),C(j(t.componentType),{key:0,captchaType:e.captchaType,type:t.verifyType,figure:e.figure,arith:e.arith,mode:e.mode,vSpace:e.vSpace,explain:e.explain,imgSize:e.imgSize,blockSize:e.blockSize,barSize:e.barSize,ref:"instance"},null,8,["captchaType","type","figure","arith","mode","vSpace","explain","imgSize","blockSize","barSize"])):y("",!0)],4)],6)],2)),[[B,t.showBox]])}const J=O(P,[["render",I]]);export{J as default};

View File

@ -1 +0,0 @@
import{r as F,a as V,b as K,c as G}from"./index-764f42d4.js";import{Q,bd as X,r as s,n as m,a_ as Y,h as H,c as I,a as l,x as A,Z,_ as U,F as $,W as ee,t as L,ay as te}from"./index-981069db.js";import{_ as ae}from"./_plugin-vue_export-helper-c27b6911.js";const ie={name:"VerifyPoints",props:{mode:{type:String,default:"fixed"},captchaType:{type:String},vSpace:{type:Number,default:5},imgSize:{type:Object,default(){return{width:"310px",height:"155px"}}},barSize:{type:Object,default(){return{width:"310px",height:"40px"}}}},setup(N,f){const{mode:_,captchaType:e,vSpace:R,imgSize:q,barSize:c}=Q(N),{proxy:n}=X(),h=s(""),z=s(3),p=m([]),a=m([]),o=s(1),O=s(""),w=m([]),v=s(""),u=m({imgHeight:0,imgWidth:0,barHeight:0,barWidth:0}),y=m([]),d=s(""),b=s(void 0),x=s(void 0),j=s(!0),C=s(!0),J=()=>{p.splice(0,p.length),a.splice(0,a.length),o.value=1,B(),te(()=>{const{imgHeight:i,imgWidth:t,barHeight:g,barWidth:r}=F(n);u.imgHeight=i,u.imgWidth=t,u.barHeight=g,u.barWidth=r,n.$parent.$emit("ready",n)})};Y(()=>{J(),n.$el.onselectstart=function(){return!1}});const S=s(null),D=i=>{if(a.push(k(S,i)),o.value==z.value){o.value=T(k(S,i));const t=M(a,u);a.length=0,a.push(...t),setTimeout(()=>{const g=h.value?V(v.value+"---"+JSON.stringify(a),h.value):v.value+"---"+JSON.stringify(a),r={captchaType:e.value,captcha_code:h.value?V(JSON.stringify(a),h.value):JSON.stringify(a),captcha_key:v.value};K(r).then(P=>{P.code==1?(b.value="#4cae4c",x.value="#5cb85c",d.value="验证成功",C.value=!1,_.value=="pop"&&setTimeout(()=>{n.$parent.clickShow=!1,W()},1500),n.$parent.$emit("success",{captchaVerification:g})):(n.$parent.$emit("error",n),b.value="#d9534f",x.value="#d9534f",d.value="验证失败",setTimeout(()=>{W()},700))})},400)}o.value<z.value&&(o.value=T(k(S,i)))},k=function(i,t){const g=t.offsetX,r=t.offsetY;return{x:g,y:r}},T=function(i){return y.push(Object.assign({},i)),o.value+1},W=function(){y.splice(0,y.length),b.value="#000",x.value="#ddd",C.value=!0,p.splice(0,p.length),a.splice(0,a.length),o.value=1,B(),d.value="验证失败",j.value=!0};function B(){const i={captchaType:e.value};G(i).then(t=>{t.code==1?(O.value=t.data.originalImageBase64,v.value=t.data.token,h.value=t.data.secretKey,w.value=t.data.wordList,d.value="请依次点击【"+w.value.join(",")+"】"):d.value=t.msg})}const M=function(i,t){return i.map(r=>{const P=Math.round(310*r.x/parseInt(t.imgWidth)),E=Math.round(155*r.y/parseInt(t.imgHeight));return{x:P,y:E}})};return{secretKey:h,checkNum:z,fontPos:p,checkPosArr:a,num:o,pointBackImgBase:O,pointTextList:w,backToken:v,setSize:u,tempPoints:y,text:d,barAreaColor:b,barAreaBorderColor:x,showRefresh:j,bindingClick:C,init:J,canvas:S,canvasClick:D,getMousePos:k,createPoint:T,refresh:W,getPictrue:B,pointTransfrom:M}}},ne={style:{position:"relative"}},se={class:"verify-img-out"},oe=l("i",{class:"iconfont icon-refresh"},null,-1),re=[oe],ce=["src"],le={class:"verify-msg"};function he(N,f,_,e,R,q){return H(),I("div",ne,[l("div",se,[l("div",{class:"verify-img-panel",style:A({width:e.setSize.imgWidth,height:e.setSize.imgHeight,"background-size":e.setSize.imgWidth+" "+e.setSize.imgHeight,"margin-bottom":_.vSpace+"px"})},[Z(l("div",{class:"verify-refresh",style:{"z-index":"3"},onClick:f[0]||(f[0]=(...c)=>e.refresh&&e.refresh(...c))},re,512),[[U,e.showRefresh]]),l("img",{src:"data:image/png;base64,"+e.pointBackImgBase,ref:"canvas",alt:"",style:{width:"100%",height:"100%",display:"block"},onClick:f[1]||(f[1]=c=>e.bindingClick?e.canvasClick(c):void 0)},null,8,ce),(H(!0),I($,null,ee(e.tempPoints,(c,n)=>(H(),I("div",{key:n,class:"point-area",style:A({"background-color":"#1abd6c",color:"#fff","z-index":9999,width:"20px",height:"20px","text-align":"center","line-height":"20px","border-radius":"50%",position:"absolute",top:parseInt(c.y-10)+"px",left:parseInt(c.x-10)+"px"})},L(n+1),5))),128))],4)]),l("div",{class:"verify-bar-area",style:A({width:e.setSize.imgWidth,color:this.barAreaColor,"border-color":this.barAreaBorderColor,"line-height":this.barSize.height})},[l("span",le,L(e.text),1)],4)])}const fe=ae(ie,[["render",he]]);export{fe as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{d as V,y as B,f as N,r as x,a_ as S,h as T,c as j,e as o,w as s,a as t,t as n,u as e,q as a,i as h,B as q,aI as I,aJ as R,E as $,a$ as D,b0 as F,b1 as J,K,b2 as M,a9 as P}from"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as Q}from"./aliapp-7285103d.js";const U={class:"main-container"},z={class:"flex justify-between items-center"},G={class:"text-page-title"},H={class:"p-[20px]"},L={class:"panel-title !text-sm"},O={class:"text-[14px] font-[700]"},W={class:"text-[#999]"},X={class:"mt-[20px] mb-[40px] h-[32px]"},Y={class:"text-[14px] font-[700]"},Z={class:"text-[#999]"},tt={class:"mt-[20px] mb-[40px] h-[32px]"},et={class:"text-[14px] font-[700]"},st={class:"text-[#999]"},at=t("div",{class:"mt-[20px] mb-[40px] h-[32px]"},null,-1),ot={class:"text-[14px] font-[700]"},nt={class:"text-[#999]"},lt={class:"flex justify-center"},ct={class:"w-[100%] h-[100%] flex items-center justify-center bg-[#f5f7fa]"},pt={class:"mt-[22px] text-center"},it={class:"text-[12px]"},wt=V({__name:"access",setup(_t){const f=B(),d=N(),v=f.meta.title,_=x("/channel/aliapp"),p=x("");S(async()=>{const c=await Q();p.value=c.data.qr_code});const b=c=>{window.open(c,"_blank")},w=c=>{d.push({path:_.value})};return(c,l)=>{const g=I,y=R,m=$,i=D,C=F,u=J,E=K,k=M,A=P;return T(),j("div",U,[o(A,{class:"card !border-none",shadow:"never"},{default:s(()=>[t("div",z,[t("span",G,n(e(v)),1)]),o(y,{modelValue:_.value,"onUpdate:modelValue":l[0]||(l[0]=r=>_.value=r),class:"my-[20px]",onTabChange:w},{default:s(()=>[o(g,{label:e(a)("weappAccessFlow"),name:"/channel/aliapp"},null,8,["label"])]),_:1},8,["modelValue"]),t("div",H,[t("h3",L,n(e(a)("weappInlet")),1),o(k,null,{default:s(()=>[o(u,{span:20},{default:s(()=>[o(C,{active:4,direction:"vertical"},{default:s(()=>[o(i,null,{title:s(()=>[t("p",O,n(e(a)("weappAttestation")),1)]),description:s(()=>[t("span",W,n(e(a)("weappAttest")),1),t("div",X,[o(m,{type:"primary",onClick:l[1]||(l[1]=r=>b("https://open.alipay.com/develop/manage"))},{default:s(()=>[h(n(e(a)("clickAccess")),1)]),_:1})])]),_:1}),o(i,null,{title:s(()=>[t("p",Y,n(e(a)("weappSetting")),1)]),description:s(()=>[t("span",Z,n(e(a)("emplace")),1),t("div",tt,[o(m,{type:"primary",plain:"",onClick:l[2]||(l[2]=r=>e(d).push("/channel/aliapp/config"))},{default:s(()=>[h(n(e(a)("weappSettingBtn")),1)]),_:1})])]),_:1}),o(i,null,{title:s(()=>[t("p",et,n(e(a)("uploadVersion")),1)]),description:s(()=>[t("span",st,n(e(a)("releaseCourse")),1),at]),_:1}),o(i,null,{title:s(()=>[t("p",ot,n(e(a)("completeAccess")),1)]),description:s(()=>[t("span",nt,n(e(a)("releaseCourse")),1)]),_:1})]),_:1})]),_:1}),o(u,{span:4},{default:s(()=>[t("div",lt,[o(E,{class:"w-[180px] h-[180px]",src:p.value?e(q)(p.value):""},{error:s(()=>[t("div",ct,[t("span",null,n(p.value?e(a)("fileErr"):e(a)("emptyQrCode")),1)])]),_:1},8,["src"])]),t("div",pt,[t("p",it,n(e(a)("clickAccess2")),1)])]),_:1})]),_:1})])]),_:1})])}}});export{wt as default};

View File

@ -1 +0,0 @@
import{d as B,y as T,f as $,r as c,a_ as q,b6 as I,o as M,h as R,c as W,e,w as t,a as s,t as o,u as n,q as a,i as u,aI as A,aJ as L,E as U,a$ as j,b0 as D,b1 as F,b2 as G,a9 as J}from"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as P}from"./wechat-5d2c00db.js";const z={class:"main-container"},H={class:"flex justify-between items-center"},K={class:"text-page-title"},O={class:"p-[20px]"},Q={class:"panel-title !text-sm"},X={class:"text-[14px] font-[700]"},Y={class:"text-[#999]"},Z={class:"mt-[20px] mb-[40px] h-[32px]"},tt={class:"text-[14px] font-[700]"},et={class:"mt-[20px] mb-[40px] h-[32px]"},nt={class:"text-[14px] font-[700]"},st={class:"mt-[20px] mb-[40px] h-[32px]"},dt=B({__name:"access",setup(at){const f=T(),_=$(),x=f.meta.title,r=c("/channel/app"),b=c(""),g=c({}),y=c({}),h=async()=>{await P().then(({data:l})=>{g.value=l,b.value=l.qr_code})};q(async()=>{await h(),await I().then(({data:l})=>{y.value=l}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&h()})}),M(()=>{document.removeEventListener("visibilitychange",()=>{})});const w=l=>{window.open(l,"_blank")},C=l=>{_.push({path:r.value})};return(l,i)=>{const v=A,E=L,d=U,m=j,k=D,V=F,S=G,N=J;return R(),W("div",z,[e(N,{class:"card !border-none",shadow:"never"},{default:t(()=>[s("div",H,[s("span",K,o(n(x)),1)]),e(E,{modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=p=>r.value=p),class:"my-[20px]",onTabChange:C},{default:t(()=>[e(v,{label:n(a)("accessFlow"),name:"/channel/app"},null,8,["label"]),e(v,{label:n(a)("versionManage"),name:"/channel/app/version"},null,8,["label"])]),_:1},8,["modelValue"]),s("div",O,[s("h3",Q,o(n(a)("appInlet")),1),e(S,null,{default:t(()=>[e(V,{span:20},{default:t(()=>[e(k,{class:"!mt-[10px]",active:3,direction:"vertical"},{default:t(()=>[e(m,null,{title:t(()=>[s("p",X,o(n(a)("uniappApp")),1)]),description:t(()=>[s("span",Y,o(n(a)("appAttestation1")),1),s("div",Z,[e(d,{type:"primary",onClick:i[1]||(i[1]=p=>w("https://dcloud.io/"))},{default:t(()=>[u(o(n(a)("toCreate")),1)]),_:1})])]),_:1}),e(m,null,{title:t(()=>[s("p",tt,o(n(a)("appSetting")),1)]),description:t(()=>[s("div",et,[e(d,{type:"primary",onClick:i[2]||(i[2]=p=>n(_).push("/channel/app/config"))},{default:t(()=>[u(o(n(a)("settingInfo")),1)]),_:1})])]),_:1}),e(m,null,{title:t(()=>[s("p",nt,o(n(a)("versionManage")),1)]),description:t(()=>[s("div",st,[e(d,{type:"primary",plain:"",onClick:i[3]||(i[3]=p=>n(_).push("/channel/app/version"))},{default:t(()=>[u(o(n(a)("releaseVersion")),1)]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1})])]),_:1})])}}});export{dt as default};

View File

@ -1 +0,0 @@
import{d as W,y as T,f as j,r as m,a_ as F,b6 as I,o as U,h as w,c as b,e as n,w as s,a,t as o,u as e,q as t,i as r,F as C,B as z,aI as L,aJ as M,E as D,a$ as G,b0 as J,b1 as K,K as P,b2 as Q,a9 as H}from"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as O}from"./weapp-7a9a2b27.js";import{a as X}from"./wxoplatform-f13faa3d.js";const Y={class:"main-container"},Z={class:"flex justify-between items-center"},ee={class:"text-page-title"},te={class:"p-[20px]"},se={class:"panel-title !text-sm"},ae={class:"text-[14px] font-[700]"},ne={class:"text-[#999]"},oe={class:"mt-[20px] mb-[40px] h-[32px]"},le={class:"text-[14px] font-[700]"},pe={class:"text-[#999]"},ie={class:"mt-[20px] mb-[40px] h-[32px]"},ce={class:"text-[14px] font-[700]"},re={class:"text-[#999]"},_e={class:"mt-[20px] mb-[40px] h-[32px]"},de={class:"text-[14px] font-[700]"},ue={class:"text-[#999]"},me=a("div",{class:"mt-[20px] mb-[40px] h-[32px]"},null,-1),he={class:"flex justify-center"},fe={class:"w-[100%] h-[100%] flex items-center justify-center bg-[#f5f7fa]"},xe={class:"mt-[22px] text-center"},ve={class:"text-[12px]"},$e=W({__name:"access",setup(we){const k=T(),_=j(),E=k.meta.title,h=m("/channel/weapp"),d=m(""),f=m({}),x=m({}),g=async()=>{await O().then(({data:p})=>{f.value=p,d.value=p.qr_code})};F(async()=>{await g(),await I().then(({data:p})=>{x.value=p}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&g()})}),U(()=>{document.removeEventListener("visibilitychange",()=>{})});const A=p=>{window.open(p,"_blank")},B=p=>{_.push({path:h.value})},S=()=>{X().then(({data:p})=>{window.open(p)})};return(p,l)=>{const v=L,V=M,i=D,u=G,$=J,y=K,q=P,N=Q,R=H;return w(),b("div",Y,[n(R,{class:"card !border-none",shadow:"never"},{default:s(()=>[a("div",Z,[a("span",ee,o(e(E)),1)]),n(V,{modelValue:h.value,"onUpdate:modelValue":l[0]||(l[0]=c=>h.value=c),class:"mt-[20px]",onTabChange:B},{default:s(()=>[n(v,{label:e(t)("weappAccessFlow"),name:"/channel/weapp"},null,8,["label"]),n(v,{label:e(t)("subscribeMessage"),name:"/channel/weapp/message"},null,8,["label"]),n(v,{label:e(t)("weappRelease"),name:"/channel/weapp/code"},null,8,["label"])]),_:1},8,["modelValue"]),a("div",te,[a("h3",se,o(e(t)("weappInlet")),1),n(N,null,{default:s(()=>[n(y,{span:20},{default:s(()=>[n($,{class:"!mt-[10px]",active:4,direction:"vertical"},{default:s(()=>[n(u,null,{title:s(()=>[a("p",ae,o(e(t)("weappAttestation")),1)]),description:s(()=>[a("span",ne,o(e(t)("weappAttest")),1),a("div",oe,[n(i,{type:"primary",onClick:l[1]||(l[1]=c=>A("https://mp.weixin.qq.com/"))},{default:s(()=>[r(o(e(t)("clickAccess")),1)]),_:1})])]),_:1}),n(u,null,{title:s(()=>[a("p",le,o(e(t)("weappSetting")),1)]),description:s(()=>[a("span",pe,o(e(t)("emplace")),1),a("div",ie,[x.value.app_id&&x.value.app_secret?(w(),b(C,{key:0},[n(i,{type:"primary",onClick:l[2]||(l[2]=c=>e(_).push("/channel/weapp/config"))},{default:s(()=>[r(o(f.value.app_id?e(t)("seeConfig"):e(t)("weappSettingBtn")),1)]),_:1}),n(i,{type:"primary",plain:"",onClick:S},{default:s(()=>[r(o(f.value.is_authorization?e(t)("refreshAuth"):e(t)("authWeapp")),1)]),_:1})],64)):(w(),b(C,{key:1},[n(i,{type:"primary",onClick:l[3]||(l[3]=c=>e(_).push("/channel/weapp/config"))},{default:s(()=>[r(o(e(t)("weappSettingBtn")),1)]),_:1}),n(i,{type:"primary",plain:"",onClick:l[4]||(l[4]=c=>e(_).push("/channel/weapp/course"))},{default:s(()=>[r("配置教程")]),_:1})],64))])]),_:1}),n(u,null,{title:s(()=>[a("p",ce,o(e(t)("uploadVersion")),1)]),description:s(()=>[a("span",re,o(e(t)("releaseCourse")),1),a("div",_e,[n(i,{type:"primary",plain:"",onClick:l[5]||(l[5]=c=>e(_).push("/channel/weapp/code"))},{default:s(()=>[r(o(e(t)("weappRelease")),1)]),_:1})])]),_:1}),n(u,null,{title:s(()=>[a("p",de,o(e(t)("completeAccess")),1)]),description:s(()=>[a("span",ue,o(e(t)("releaseCourse")),1),me]),_:1})]),_:1})]),_:1}),n(y,{span:4},{default:s(()=>[a("div",he,[n(q,{class:"w-[180px] h-[180px]",src:d.value?e(z)(d.value):""},{error:s(()=>[a("div",fe,[a("span",null,o(d.value?e(t)("fileErr"):e(t)("emptyQrCode")),1)])]),_:1},8,["src"])]),a("div",xe,[a("p",ve,o(e(t)("clickAccess2")),1)])]),_:1})]),_:1})])]),_:1})])}}});export{$e as default};

View File

@ -1 +0,0 @@
import{d as W,y as $,f as j,r as u,a_ as F,b6 as I,o as R,h as w,c as y,e as a,w as s,a as n,t as o,u as e,q as t,i as r,F as U,s as z,B as L,aI as M,aJ as D,E as G,a$ as J,b0 as K,b1 as P,K as Q,b2 as H,a9 as O}from"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as X}from"./wechat-5d2c00db.js";import{a as Y}from"./wxoplatform-f13faa3d.js";const Z={class:"main-container"},ee={class:"flex justify-between items-center"},te={class:"text-page-title"},ae={class:"p-[20px]"},se={class:"panel-title !text-sm"},ne={class:"text-[14px] font-[700]"},oe={class:"text-[#999]"},le={class:"mt-[20px] mb-[40px] h-[32px]"},ce={class:"text-[14px] font-[700]"},ie={class:"text-[#999]"},pe={class:"mt-[20px] mb-[40px] h-[32px]"},re={class:"text-[14px] font-[700]"},_e={class:"text-[#999]"},de={class:"mt-[20px] mb-[40px] h-[32px]"},me={class:"flex justify-center"},ue={class:"w-[100%] h-[100%] flex items-center justify-center bg-[#f5f7fa]"},he={class:"mt-[22px] text-center"},fe={class:"text-[12px]"},Be=W({__name:"access",setup(ve){const C=$(),_=j(),k=C.meta.title,h=u("/channel/wechat"),d=u(""),f=u({}),v=u({}),b=async()=>{await X().then(({data:l})=>{f.value=l,d.value=l.qr_code})};F(async()=>{await b(),await I().then(({data:l})=>{v.value=l}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&b()})}),R(()=>{document.removeEventListener("visibilitychange",()=>{})});const E=l=>{window.open(l,"_blank")},A=l=>{_.push({path:h.value})},S=()=>{Y().then(({data:l})=>{window.open(l)})};return(l,c)=>{const m=M,B=D,i=G,x=J,V=K,g=P,q=Q,N=H,T=O;return w(),y("div",Z,[a(T,{class:"card !border-none",shadow:"never"},{default:s(()=>[n("div",ee,[n("span",te,o(e(k)),1)]),a(B,{modelValue:h.value,"onUpdate:modelValue":c[0]||(c[0]=p=>h.value=p),class:"my-[20px]",onTabChange:A},{default:s(()=>[a(m,{label:e(t)("wechatAccessFlow"),name:"/channel/wechat"},null,8,["label"]),a(m,{label:e(t)("customMenu"),name:"/channel/wechat/menu"},null,8,["label"]),a(m,{label:e(t)("wechatTemplate"),name:"/channel/wechat/message"},null,8,["label"]),a(m,{label:e(t)("reply"),name:"/channel/wechat/reply"},null,8,["label"])]),_:1},8,["modelValue"]),n("div",ae,[n("h3",se,o(e(t)("wechatInlet")),1),a(N,null,{default:s(()=>[a(g,{span:20},{default:s(()=>[a(V,{class:"!mt-[10px]",active:3,direction:"vertical"},{default:s(()=>[a(x,null,{title:s(()=>[n("p",ne,o(e(t)("wechatAttestation")),1)]),description:s(()=>[n("span",oe,o(e(t)("wechatAttestation1")),1),n("div",le,[a(i,{type:"primary",onClick:c[1]||(c[1]=p=>E("https://mp.weixin.qq.com/"))},{default:s(()=>[r(o(e(t)("clickAccess")),1)]),_:1})])]),_:1}),a(x,null,{title:s(()=>[n("p",ce,o(e(t)("wechatSetting")),1)]),description:s(()=>[n("span",ie,o(e(t)("wechatSetting1")),1),n("div",pe,[v.value.app_id&&v.value.app_secret?(w(),y(U,{key:0},[a(i,{type:"primary",onClick:c[2]||(c[2]=p=>e(_).push("/channel/wechat/config"))},{default:s(()=>[r(o(f.value.app_id?e(t)("seeConfig"):e(t)("clickSetting")),1)]),_:1}),a(i,{type:"primary",plain:"",onClick:S},{default:s(()=>[r(o(f.value.is_authorization?e(t)("refreshAuth"):e(t)("authWechat")),1)]),_:1})],64)):(w(),z(i,{key:1,type:"primary",onClick:c[3]||(c[3]=p=>e(_).push("/channel/wechat/config"))},{default:s(()=>[r(o(e(t)("clickSetting")),1)]),_:1}))])]),_:1}),a(x,null,{title:s(()=>[n("p",re,o(e(t)("wechatAccess")),1)]),description:s(()=>[n("span",_e,o(e(t)("wechatAccess")),1),n("div",de,[a(i,{type:"primary",plain:"",onClick:c[4]||(c[4]=p=>e(_).push("/channel/wechat/course"))},{default:s(()=>[r(o(e(t)("releaseCourse")),1)]),_:1})])]),_:1})]),_:1})]),_:1}),a(g,{span:4},{default:s(()=>[n("div",me,[a(q,{class:"w-[180px] h-[180px]",src:d.value?e(L)(d.value):""},{error:s(()=>[n("div",ue,[n("span",null,o(d.value?e(t)("fileErr"):e(t)("emptyQrCode")),1)])]),_:1},8,["src"])]),n("div",he,[n("p",fe,o(e(t)("clickAccess2")),1)])]),_:1})]),_:1})])]),_:1})])}}});export{Be as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{_ as o}from"./add-member.vue_vue_type_script_setup_true_lang-a6a364bd.js";import"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css */import"./member-3d15b900.js";export{o as default};

View File

@ -1 +0,0 @@
import{d as I,r as m,n as L,l as R,q as o,h as N,s as M,w as d,a as Z,e as s,i as k,t as C,u as t,Z as j,bZ as z,L as A,M as O,N as T,E as K,V as S,a3 as G}from"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css */import{p as J,z as Q,A as W}from"./member-3d15b900.js";const X={class:"dialog-footer"},me=I({__name:"add-member",emits:["complete"],setup(Y,{expose:$,emit:x}){const p=m(!1),i=m(!1),b=m(!1);let f="",c="";const w=m(!0),v=m(!0),g=m(!0),_={member_id:"",nickname:"",member_no:"",init_member_no:"",mobile:"",password:"",password_copy:""},r=L({..._}),y=m(),P=R(()=>({member_no:[{required:!0,message:o("memberNoPlaceholder"),trigger:"blur"},{validator:B,trigger:"blur"}],mobile:[{required:!0,message:o("mobilePlaceholder"),trigger:"blur"},{validator:D,trigger:"blur"}],password:[{required:!0,message:o("passwordPlaceholder"),trigger:"blur"}],password_copy:[{required:!0,message:o("passwordPlaceholder"),trigger:"blur"},{validator:E,trigger:"blur"}]})),D=(n,e,a)=>{e&&!/^1[3-9]\d{9}$/.test(e)?a(new Error(o("mobileHint"))):a()},E=(n,e,a)=>{e!=r.password?a(o("doubleCipherHint")):a()},B=(n,e,a)=>{e&&!/^[0-9a-zA-Z]*$/g.test(e)?a(new Error(o("memberNoHint"))):a()},U=async()=>{await Q().then(n=>{c=n.data}).catch(()=>{})},q=async n=>{if(i.value||!n)return;const e=W;await n.validate(async a=>{if(a){if(i.value=!0,b.value)return;b.value=!0,e(r).then(V=>{i.value=!1,b.value=!1,p.value=!1,x("complete")}).catch(()=>{i.value=!1,b.value=!1})}})};return $({showDialog:p,setFormData:async(n=null)=>{if(i.value=!0,Object.assign(r,_),f=o("addMember"),n){f=o("updateMember");const e=await(await J(n.member_id)).data;e&&Object.keys(r).forEach(a=>{e[a]!=null&&(r[a]=e[a])})}else await U(),r.member_no=c,r.init_member_no=c;i.value=!1}}),(n,e)=>{const a=A,u=O,V=T,h=K,F=S,H=G;return N(),M(F,{modelValue:p.value,"onUpdate:modelValue":e[14]||(e[14]=l=>p.value=l),title:t(f),width:"500px","destroy-on-close":!0},{footer:d(()=>[Z("span",X,[s(h,{onClick:e[12]||(e[12]=l=>p.value=!1)},{default:d(()=>[k(C(t(o)("cancel")),1)]),_:1}),s(h,{type:"primary",loading:i.value,onClick:e[13]||(e[13]=l=>q(y.value))},{default:d(()=>[k(C(t(o)("confirm")),1)]),_:1},8,["loading"])])]),default:d(()=>[j((N(),M(V,{model:r,"label-width":"90px",ref_key:"formRef",ref:y,rules:t(P),class:"page-form"},{default:d(()=>[s(u,{label:t(o)("memberNo"),prop:"member_no"},{default:d(()=>[s(a,{modelValue:r.member_no,"onUpdate:modelValue":e[0]||(e[0]=l=>r.member_no=l),modelModifiers:{trim:!0},clearable:"",maxlength:"20",placeholder:t(o)("memberNoPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(u,{label:t(o)("mobile"),prop:"mobile"},{default:d(()=>[s(a,{modelValue:r.mobile,"onUpdate:modelValue":e[1]||(e[1]=l=>r.mobile=l),modelModifiers:{trim:!0},clearable:"",placeholder:t(o)("mobilePlaceholder"),maxlength:"11",onKeyup:e[2]||(e[2]=l=>t(z)(l)),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(u,{label:t(o)("nickname")},{default:d(()=>[s(a,{modelValue:r.nickname,"onUpdate:modelValue":e[3]||(e[3]=l=>r.nickname=l),modelModifiers:{trim:!0},clearable:"",placeholder:t(o)("nickNamePlaceholder"),class:"input-width",maxlength:"10","show-word-limit":"",readonly:w.value,onClick:e[4]||(e[4]=l=>w.value=!1),onBlur:e[5]||(e[5]=l=>w.value=!0)},null,8,["modelValue","placeholder","readonly"])]),_:1},8,["label"]),s(u,{label:t(o)("password"),prop:"password"},{default:d(()=>[s(a,{modelValue:r.password,"onUpdate:modelValue":e[6]||(e[6]=l=>r.password=l),modelModifiers:{trim:!0},type:"password",placeholder:t(o)("passwordPlaceholder"),clearable:"",class:"input-width","show-password":!0,readonly:v.value,onClick:e[7]||(e[7]=l=>v.value=!1),onBlur:e[8]||(e[8]=l=>v.value=!0)},null,8,["modelValue","placeholder","readonly"])]),_:1},8,["label"]),s(u,{label:t(o)("passwordCopy"),prop:"password_copy"},{default:d(()=>[s(a,{modelValue:r.password_copy,"onUpdate:modelValue":e[9]||(e[9]=l=>r.password_copy=l),modelModifiers:{trim:!0},type:"password",placeholder:t(o)("passwordPlaceholder"),clearable:"",class:"input-width","show-password":!0,readonly:g.value,onClick:e[10]||(e[10]=l=>g.value=!1),onBlur:e[11]||(e[11]=l=>g.value=!0)},null,8,["modelValue","placeholder","readonly"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[H,i.value]])]),_:1},8,["modelValue","title"])}}});export{me as _};

View File

@ -1 +0,0 @@
import{_ as o}from"./add-table.vue_vue_type_script_setup_true_lang-7b648f44.js";import"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./tools-7c26f9aa.js";export{o as default};

View File

@ -1 +0,0 @@
import{d as L,f as N,r as c,n as k,l as E,h as p,s as _,w as o,a as b,Z as x,u as t,t as f,q as n,e as d,i as B,ak as z,L as q,E as F,al as P,V as U,a3 as G}from"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{k as I,l as M}from"./tools-7c26f9aa.js";const le=L({__name:"add-table",setup(R,{expose:h}){const g=N(),m=c(!1),s=c(""),e=k({loading:!0,data:[],searchParam:{table_name:"",table_content:""}}),v=E(()=>e.data.filter(a=>!s.value||a.Name.toLowerCase().includes(s.value.toLowerCase())||a.Comment.toLowerCase().includes(s.value.toLowerCase()))),u=()=>{e.loading=!0,I().then(a=>{e.loading=!1,e.data=a.data}).catch(()=>{e.loading=!1})};u();const w=a=>{const l=a.Name;e.loading=!0,M({table_name:l}).then(i=>{e.loading=!1,m.value=!1,g.push({path:"/tools/code/edit",query:{id:i.data.id}})}).catch(()=>{e.loading=!1})};return h({showDialog:m,setFormData:async(a=null)=>{u()}}),(a,l)=>{const i=z,C=q,V=F,D=P,y=U,T=G;return p(),_(y,{modelValue:m.value,"onUpdate:modelValue":l[1]||(l[1]=r=>m.value=r),title:t(n)("addCode"),width:"800px","destroy-on-close":!0},{default:o(()=>[b("div",null,[x((p(),_(D,{data:t(v),size:"large",height:"400"},{empty:o(()=>[b("span",null,f(e.loading?"":t(n)("emptyData")),1)]),default:o(()=>[d(i,{prop:"Name",label:t(n)("tableName"),"min-width":"150"},null,8,["label"]),d(i,{prop:"Comment",label:t(n)("tableComment"),"min-width":"120"},null,8,["label"]),d(i,{align:"right","min-width":"150"},{header:o(()=>[d(C,{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=r=>s.value=r),modelModifiers:{trim:!0},size:"small",placeholder:t(n)("searchPlaceholder")},null,8,["modelValue","placeholder"])]),default:o(r=>[d(V,{size:"small",type:"primary",onClick:Z=>w(r.row)},{default:o(()=>[B(f(t(n)("addBtn")),1)]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[T,e.loading]])])]),_:1},8,["modelValue","title"])}}});export{le as _};

View File

@ -1 +0,0 @@
import{_ as e}from"./add-theme.vue_vue_type_script_setup_true_lang-4685e294.js";const o=Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"}));export{o as _};

View File

@ -1 +0,0 @@
import{d as U,r as d,n as h,l as B,h as N,s as R,w as n,a as q,e as o,i as v,u as _,a6 as F,L as O,M as $,bJ as j,N as A,E as I,V as S}from"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";import{u as T}from"./diy-d896d899.js";const z={class:"dialog-footer"},X=U({__name:"add-theme",emits:["confirm"],setup(J,{expose:g,emit:V}){const y=T(),s=d(!1),i=d(!1),b={title:"",label:"",value:"",tip:""};let f=[];const m=d(""),l=h({...b}),k=r=>{f=r.key,m.value="";for(const e in l)l[e]="";r.data&&Object.keys(r.data).length&&(m.value="edit",Object.keys(l).forEach((e,t)=>{l[e]=r.data[e]?r.data[e]:""})),s.value=!0},p=d(),x=B(()=>({title:[{required:!0,message:"请输入颜色名称",trigger:"blur"}],value:[{required:!0,validator:(r,e,t)=>{e?t():t("请输入颜色value值")},trigger:["blur","change"]}],label:[{required:!0,message:"请输入颜色key值",trigger:"blur"},{validator:(r,e,t)=>{const u=/^[a-zA-Z0-9-]+$/;f.indexOf(e)!=-1&&t("新增颜色key值与已存在颜色key值命名重复请修改命名"),u.test(e)?t():t("颜色key值只能输入字母、数字和连字符")},trigger:"blur"}]})),w=async r=>{var e;i.value||await((e=p.value)==null?void 0:e.validate(async t=>{i.value||(i.value=!0,t&&(i.value=!1,V("confirm",F(l)),s.value=!1))}))};return g({dialogThemeVisible:s,open:k}),(r,e)=>{const t=O,u=$,E=j,C=A,c=I,D=S;return N(),R(D,{modelValue:s.value,"onUpdate:modelValue":e[6]||(e[6]=a=>s.value=a),title:"新增颜色",width:"550px","align-center":""},{footer:n(()=>[q("div",z,[o(c,{onClick:e[4]||(e[4]=a=>s.value=!1)},{default:n(()=>[v("取消")]),_:1}),o(c,{type:"primary",onClick:e[5]||(e[5]=a=>w(p.value))},{default:n(()=>[v("保存")]),_:1})])]),default:n(()=>[o(C,{model:l,"label-width":"120px",ref_key:"formRef",ref:p,rules:_(x)},{default:n(()=>[o(u,{label:"名字",prop:"title"},{default:n(()=>[o(t,{modelValue:l.title,"onUpdate:modelValue":e[0]||(e[0]=a=>l.title=a),class:"!w-[250px]",maxlength:"7",placeholder:"请输入颜色名称"},null,8,["modelValue"])]),_:1}),o(u,{label:"颜色key值",prop:"label"},{default:n(()=>[o(t,{modelValue:l.label,"onUpdate:modelValue":e[1]||(e[1]=a=>l.label=a),class:"!w-[250px]",maxlength:"20",disabled:m.value=="edit",placeholder:"请输入颜色key值"},null,8,["modelValue","disabled"])]),_:1}),o(u,{label:"颜色value值",prop:"value"},{default:n(()=>[o(E,{modelValue:l.value,"onUpdate:modelValue":e[2]||(e[2]=a=>l.value=a),"show-alpha":"",predefine:_(y).predefineColors},null,8,["modelValue","predefine"])]),_:1}),o(u,{label:"颜色提示"},{default:n(()=>[o(t,{modelValue:l.tip,"onUpdate:modelValue":e[3]||(e[3]=a=>l.tip=a),class:"!w-[250px]",placeholder:"请输入颜色提示"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])}}});export{X as _};

View File

@ -1 +0,0 @@
import{P as t}from"./index-981069db.js";function d(n){return t.get("addon/local",n)}function o(n){return t.post(`addon/install/${n.addon}`,n)}function a(n){return t.post(`addon/cloudinstall/${n.addon}`,n)}function s(n){return t.post(`addon/uninstall/${n.addon}`,n,{showSuccessMessage:!0})}function l(n){return t.get(`addon/install/check/${n}`)}function u(){return t.get("addon/installtask")}function i(n){return t.get(`addon/cloudinstall/${n}`)}function r(n){return t.get(`addon/uninstall/check/${n}`)}function c(n){return t.put(`addon/install/cancel/${n}`,{},{showErrorMessage:!1})}function g(){return t.get("addon/list/install")}function f(){return t.get("home/site/group/app_list")}function p(){return t.get("addon/init")}function A(){return t.get("app/index")}function h(){return t.get("index/adv_list")}export{g as a,A as b,h as c,p as d,d as e,u as f,f as g,a as h,o as i,i as j,r as k,c as l,l as p,s as u};

View File

@ -1 +0,0 @@
import{d as F,y as w,r as b,n as C,h as f,c as y,Z as B,s as D,w as r,e as o,a as l,t as n,u as a,q as i,i as k,cg as I,a6 as N,ch as U,b8 as L,M as R,a9 as S,N as T,E as j,a3 as q}from"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css */import A from"./index-8c50f34e.js";import"./el-form-item-4ed993c7.js";/* empty css *//* empty css */import"./index.vue_vue_type_style_index_0_lang-17b86af9.js";/* empty css *//* empty css */import"./attachment-9e0d5f86.js";import"./index.vue_vue_type_script_setup_true_lang-20418369.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-3d9b7185.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang-51212ca7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./sortable.esm-be94e56d.js";const M={class:"main-container"},O={class:"text-[16px] text-[#1D1F3A] font-bold mb-4"},Z={class:"panel-title !text-[14px] bg-[#F4F5F7] p-3 border-[#E6E6E6] border-solid border-b-[1px]"},$={class:"form-tip"},z={class:"box-card mt-[20px] !border-none"},G={class:"panel-title !text-[14px] bg-[#F4F5F7] p-3 border-[#E6E6E6] border-solid border-b-[1px]"},H={class:"form-tip"},J={class:"fixed-footer-wrap"},K={class:"fixed-footer"},Nt=F({__name:"adminlogin",setup(P){const g=w().meta.title,m=b(!0),_=b(),e=C({is_captcha:0,is_site_captcha:0,bg:"",site_bg:""});(async()=>{const p=await(await I()).data;Object.keys(e).forEach(t=>{e[t]=p[t]}),m.value=!1})();const v=async p=>{m.value||!p||await p.validate(t=>{if(t){const d=N(e);U(d).then(()=>{m.value=!1}).catch(()=>{m.value=!1})}})};return(p,t)=>{const d=L,c=R,u=A,h=S,x=T,V=j,E=q;return f(),y("div",M,[B((f(),D(x,{class:"page-form",model:e,"label-width":"150px",ref_key:"ruleFormRef",ref:_},{default:r(()=>[o(h,{class:"box-card !border-none",shadow:"never"},{default:r(()=>[l("h3",O,n(a(g)),1),l("h3",Z,n(a(i)("admin")),1),o(c,{label:a(i)("isCaptcha")},{default:r(()=>[o(d,{modelValue:e.is_captcha,"onUpdate:modelValue":t[0]||(t[0]=s=>e.is_captcha=s),"active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1},8,["label"]),o(c,{label:a(i)("bgImg")},{default:r(()=>[o(u,{modelValue:e.bg,"onUpdate:modelValue":t[1]||(t[1]=s=>e.bg=s)},null,8,["modelValue"]),l("div",$,n(a(i)("adminBgImgTip")),1)]),_:1},8,["label"]),l("div",z,[l("h3",G,n(a(i)("site")),1),o(c,{label:a(i)("isCaptcha")},{default:r(()=>[o(d,{modelValue:e.is_site_captcha,"onUpdate:modelValue":t[2]||(t[2]=s=>e.is_site_captcha=s),"active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1},8,["label"]),o(c,{label:a(i)("bgImg")},{default:r(()=>[o(u,{modelValue:e.site_bg,"onUpdate:modelValue":t[3]||(t[3]=s=>e.site_bg=s)},null,8,["modelValue"]),l("div",H,n(a(i)("siteBgImgTip")),1)]),_:1},8,["label"])])]),_:1})]),_:1},8,["model"])),[[E,m.value]]),l("div",J,[l("div",K,[o(V,{type:"primary",onClick:t[4]||(t[4]=s=>v(_.value))},{default:r(()=>[k(n(a(i)("save")),1)]),_:1})])])])}}});export{Nt as default};

View File

@ -1 +0,0 @@
import{d as v,y,n as k,f as x,h as m,c as E,e as a,w as o,a as i,t as r,u as t,Z as C,s as B,q as n,i as p,ci as N,ak as T,E as D,al as L,a9 as A,a3 as V}from"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */const j={class:"main-container"},R={class:"flex justify-between items-center"},$={class:"text-page-title"},q={class:"mt-[20px]"},X=v({__name:"agreement",setup(z){const _=y().meta.title,e=k({loading:!0,data:[]});(()=>{e.loading=!0,e.data=[],N().then(l=>{Object.keys(l.data).forEach(d=>e.data.push(l.data[d])),e.loading=!1}).catch(()=>{e.loading=!1})})();const u=x(),g=l=>{u.push(`/setting/agreement/edit?key=${l.agreement_key}`)};return(l,d)=>{const s=T,h=D,f=L,b=A,w=V;return m(),E("div",j,[a(b,{class:"box-card !border-none",shadow:"never"},{default:o(()=>[i("div",R,[i("span",$,r(t(_)),1)]),i("div",q,[C((m(),B(f,{data:e.data,size:"large"},{empty:o(()=>[i("span",null,r(e.loading?"":t(n)("emptyData")),1)]),default:o(()=>[a(s,{prop:"type_name",label:t(n)("typeName"),"min-width":"100","show-overflow-tooltip":!0},null,8,["label"]),a(s,{prop:"title",label:t(n)("title"),"min-width":"100","show-overflow-tooltip":!0},null,8,["label"]),a(s,{label:t(n)("updateTime"),"min-width":"180",align:"center"},{default:o(({row:c})=>[p(r(c.update_time||""),1)]),_:1},8,["label"]),a(s,{label:t(n)("operation"),align:"right",fixed:"right",width:"100"},{default:o(({row:c})=>[a(h,{type:"primary",link:"",onClick:Z=>g(c)},{default:o(()=>[p(r(t(n)("config")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[w,e.loading]])])]),_:1})])}}});export{X as default};

View File

@ -1 +0,0 @@
import{d as q,y as M,f as P,r as y,cj as S,n as T,l as $,q as r,h,c as j,e as a,w as s,u as n,b4 as I,Z as U,s as A,a as w,i as k,t as x,ck as L,cl as O,b5 as H,a9 as Z,L as z,M as G,N as J,E as K,a3 as Q}from"./index-981069db.js";/* empty css *//* empty css *//* empty css */import{_ as W}from"./index.vue_vue_type_script_setup_true_lang-852e456f.js";import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_style_index_0_lang-17b86af9.js";/* empty css *//* empty css */import"./attachment-9e0d5f86.js";import"./index.vue_vue_type_script_setup_true_lang-20418369.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-3d9b7185.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang-51212ca7.js";import"./_plugin-vue_export-helper-c27b6911.js";const X={class:"main-container"},Y={class:"fixed-footer-wrap"},ee={class:"fixed-footer"},Se=q({__name:"agreement_edit",setup(te){const d=M(),V=P(),_=d.query.key||"",i=y(!1),E=S(),B=d.meta.title,f={agreement_key:"",content:"",title:"",agreement_key_name:""},t=T({...f});i.value=!0,_&&(async(m="")=>{Object.assign(t,f);const e=await(await L(m)).data;Object.keys(t).forEach(o=>{e[o]!=null&&(t[o]=e[o])}),i.value=!1})(_);const g=y(),D=$(()=>({title:[{required:!0,message:r("titlePlaceholder"),trigger:"blur"}],content:[{required:!0,trigger:["blur","change"],validator:(m,e,o)=>{if(e==="")o(new Error(r("contentPlaceholder")));else{if(e.length<5||e.length>1e5)return o(new Error(r("contentMaxTips"))),!1;o()}}}]})),C=async m=>{i.value||!m||await m.validate(async e=>{if(e){i.value=!0;const o=t;o.key=t.agreement_key,O(o).then(c=>{i.value=!1,p()}).catch(()=>{i.value=!1})}})},p=()=>{E.removeTab(d.path),V.push({path:"/setting/agreement"})};return(m,e)=>{const o=H,c=Z,v=z,u=G,F=W,N=J,b=K,R=Q;return h(),j("div",X,[a(c,{class:"card !border-none",shadow:"never"},{default:s(()=>[a(o,{content:n(B),icon:n(I),onBack:e[0]||(e[0]=l=>p())},null,8,["content","icon"])]),_:1}),U((h(),A(c,{class:"box-card mt-[15px] !border-none",shadow:"never"},{default:s(()=>[a(N,{model:t,"label-width":"90px",ref_key:"formRef",ref:g,rules:n(D),class:"page-form"},{default:s(()=>[a(u,{label:n(r)("type")},{default:s(()=>[a(v,{modelValue:t.agreement_key_name,"onUpdate:modelValue":e[1]||(e[1]=l=>t.agreement_key_name=l),modelModifiers:{trim:!0},readonly:"",class:"input-width"},null,8,["modelValue"])]),_:1},8,["label"]),a(u,{label:n(r)("title"),prop:"title"},{default:s(()=>[a(v,{modelValue:t.title,"onUpdate:modelValue":e[2]||(e[2]=l=>t.title=l),modelModifiers:{trim:!0},clearable:"",placeholder:n(r)("titlePlaceholder"),class:"input-width",maxlength:"20"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(u,{label:n(r)("content"),prop:"content"},{default:s(()=>[a(F,{modelValue:t.content,"onUpdate:modelValue":e[3]||(e[3]=l=>t.content=l)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1})),[[R,i.value]]),w("div",Y,[w("div",ee,[a(b,{type:"primary",onClick:e[4]||(e[4]=l=>C(g.value))},{default:s(()=>[k(x(n(r)("save")),1)]),_:1}),a(b,{onClick:e[5]||(e[5]=l=>p())},{default:s(()=>[k(x(n(r)("cancel")),1)]),_:1})])])])}}});export{Se as default};

View File

@ -1 +0,0 @@
import{P as t}from"./index-981069db.js";function e(){return t.get("aliapp/config")}function p(a){return t.put("aliapp/config",a,{showSuccessMessage:!0})}function n(){return t.get("aliapp/static")}export{n as a,e as g,p as s};

View File

@ -1 +0,0 @@
import{P as n}from"./index-981069db.js";function t(){return n.get("channel/app/config")}function r(e){return n.put("channel/app/config",e,{showSuccessMessage:!0})}function a(e){return n.get("channel/app/version",{params:e})}function o(e){return n.get(`channel/app/version/${e}`)}function u(){return n.get("channel/app/platfrom")}function i(e){return n.post("channel/app/version",e,{showSuccessMessage:!0})}function c(e){return n.put(`channel/app/version/${e.id}`,e,{showSuccessMessage:!0})}function p(e){return n.delete(`channel/app/version/${e.id}`)}function g(e){return n.get(`channel/app/build/log/${e}`)}function f(e){return n.put(`channel/app/version/${e}/release`,{},{showSuccessMessage:!0})}function l(e){return n.post("channel/app/generate_sing_cert",e,{showSuccessMessage:!0})}export{a,g as b,u as c,p as d,c as e,i as f,t as g,o as h,l as i,f as r,r as s};

View File

@ -1 +0,0 @@
import{_ as o}from"./app-version-edit.vue_vue_type_style_index_0_lang-a2ff20e5.js";import"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_style_index_0_lang-c7976b56.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";import"./app-0e99a48e.js";import"./generate-sing-cert.vue_vue_type_script_setup_true_lang-6173a0d3.js";export{o as default};

View File

@ -1 +0,0 @@
import{d as I,f as V,j as M,r as y,n as N,Z as R,h as l,c as x,a as e,t as s,u as a,q as o,e as u,w as c,F as j,W as D,B as T,s as $,i as q,C as k,cb as b,H as w,E as z,K as H,ba as K,cc as O,ab as P,a3 as U,p as W,g as Z}from"./index-981069db.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as G}from"./apply_empty-cdca3e85.js";import{a as J}from"./addon-73fe6379.js";import{_ as Q}from"./_plugin-vue_export-helper-c27b6911.js";const X=""+new URL("app_store_default-c0531792.png",import.meta.url).href,h=_=>(W("data-v-8a156fb4"),_=_(),Z(),_),Y={class:"box-border pt-[68px] px-[76px] overview-top"},ee={key:0},te={class:"flex justify-between items-center"},se={class:"font-[600] text-[26px] text-[#222] leading-[37px]"},ae={class:"font-[500] text-[14px] text-[#222] leading-[20px] mt-[12px]"},oe=h(()=>e("div",{class:"mr-[9px] text-[#3F3F3F] iconfont iconxiazai01"},null,-1)),ne={class:"font-[600] text-[14px] text-[#222] leading-[20px]"},pe={class:"flex flex-wrap mt-[40px]"},ce=["onClick"],ie={class:"bg-[#F7FAFB] py-[18px] px-[24px] flex items-center app-item-head"},re=h(()=>e("div",{class:"image-slot"},[e("img",{class:"w-[40px] h-[40px] rounded-[8px]",src:X})],-1)),le={class:"py-[18px] px-[24px]"},_e={class:"font-[600] leading-[1] text-[14px] text-[#222]"},de={class:"text-[13px] text-[#6D7278] leading-[18px] mt-[6px] truncate"},xe=h(()=>e("div",{class:"w-[230px] mx-auto"},[e("img",{src:G,class:"max-w-full",alt:""})],-1)),ue={class:"flex items-center"},me=I({__name:"app_manage",setup(_){const v=V(),m=M(),n=y(!0),d=N({appList:[]}),f=y({});(()=>{n.value=!0,J().then(p=>{Object.values(p.data).forEach((t,i)=>{t.type=="app"&&d.appList.push(t)}),m.routers.forEach((t,i)=>{t.children&&t.children.length?(t.name=b(t.children),f.value[t.meta.app]=b(t.children)):f.value[t.meta.app]=t.name}),n.value=!1}).catch(()=>{n.value=!1})})();const L=p=>{w.set({key:"menuAppStorage",data:p.key}),w.set({key:"plugMenuTypeStorage",data:""});const t=m.appMenuList;t.push(p.key),m.setAppMenuList(t);const i=f.value[p.key];v.push({name:i})},g=()=>{v.push("/app_manage/app_store")};return(p,t)=>{const i=z,F=H,E=K,S=O,C=P,A=U;return R((l(),x("div",Y,[d.appList&&!n.value?(l(),x("div",ee,[e("div",te,[e("div",null,[e("div",se,s(a(o)("app")),1),e("div",ae,s(a(o)("versionInfo"))+" "+s(a(o)("currentVersion")),1)]),u(i,{onClick:g,class:"px-[15px]"},{default:c(()=>[oe,e("span",ne,s(a(o)("appStore")),1)]),_:1})]),e("div",pe,[(l(!0),x(j,null,D(d.appList,(r,B)=>(l(),x("div",{key:B,class:"app-item w-[280px] box-border !bg-[#fff] rounded-[6px] cursor-pointer mr-[20px] mb-[20px] overflow-hidden",onClick:he=>L(r)},[e("div",ie,[u(F,{class:"w-[44px] h-[44px] rounded-[8px]",src:a(T)(r.icon),fit:"contain"},{error:c(()=>[re]),_:2},1032,["src"])]),e("div",le,[e("div",_e,s(r.title),1),u(E,{class:"box-item",effect:"light",content:r.desc,placement:"bottom-start"},{default:c(()=>[e("div",de,s(r.desc),1)]),_:2},1032,["content"])])],8,ce))),128)),!d.appList.length&&!n.value?(l(),$(C,{key:0,class:"mx-auto overview-empty"},{image:c(()=>[xe]),description:c(()=>[e("p",ue,[e("span",null,s(a(o)("descriptionLeft")),1),u(S,{type:"primary",onClick:g,class:"mx-[5px]"},{default:c(()=>[q(s(a(o)("link")),1)]),_:1}),e("span",null,s(a(o)("descriptionRight")),1)])]),_:1})):k("",!0)])])):k("",!0)])),[[A,n.value]])}}});const Be=Q(me,[["__scopeId","data-v-8a156fb4"]]);export{Be as default};

View File

@ -1 +0,0 @@
import{d as f,y as h,r as y,h as m,c as s,e,w as o,a as i,t as b,u as p,F as v,W as x,q as g,aI as V,aJ as w,a9 as E}from"./index-981069db.js";/* empty css *//* empty css */import k from"./attachment-9e0d5f86.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang-20418369.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-3d9b7185.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang-51212ca7.js";import"./_plugin-vue_export-helper-c27b6911.js";const B={class:"main-container attachment-container"},C={class:"flex justify-between items-center mb-[20px]"},N={class:"text-page-title"},it=f({__name:"attachment",setup(T){const l=h().meta.title,a=["image","video","icon"],n=y(a[0]);return(j,r)=>{const c=V,_=w,d=E;return m(),s("div",B,[e(d,{class:"box-card !border-none full-container",shadow:"never"},{default:o(()=>[i("div",C,[i("span",N,b(p(l)),1)]),e(_,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=t=>n.value=t),"tab-position":"top"},{default:o(()=>[(m(),s(v,null,x(a,(t,u)=>e(c,{label:p(g)(t),name:t,key:u},{default:o(()=>[e(k,{scene:"attachment",type:t},null,8,["type"])]),_:2},1032,["label","name"])),64))]),_:1},8,["modelValue"])]),_:1})])}}});export{it as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
@charset "UTF-8";[data-v-ab587b59] .terminal .t-log-box span{white-space:pre-wrap}.table-head-bg[data-v-ab587b59]{background-color:var(--el-table-header-bg-color)}[data-v-ab587b59] .number-of-steps .el-step__line{margin:0 25px;background:#dddddd}[data-v-ab587b59] .number-of-steps .el-step__head{margin-top:10px}[data-v-ab587b59] .number-of-steps .is-success{color:var(--el-color-primary);border-color:var(--el-color-primary)}[data-v-ab587b59] .number-of-steps .is-success .el-step__icon{background:var(--el-color-primary);color:#fff}[data-v-ab587b59] .number-of-steps .is-success .el-step__icon i{color:#fff}[data-v-ab587b59] .number-of-steps .is-success .el-step__line{margin:0 25px;background:var(--el-color-primary)}[data-v-ab587b59] .number-of-steps .is-finish{color:var(--el-color-primary);border-color:var(--el-color-primary)}[data-v-ab587b59] .number-of-steps .is-finish .el-step__icon{background:var(--el-color-primary)!important;color:#fff!important}[data-v-ab587b59] .number-of-steps .is-finish .el-step__icon i{color:#fff}[data-v-ab587b59] .number-of-steps .is-finish .el-step__line{margin:0 25px;background:var(--el-color-primary)}[data-v-ab587b59] .number-of-steps .is-process{color:var(--el-color-primary);font-weight:inherit}[data-v-ab587b59] .number-of-steps .is-process .el-step__icon{padding:10px;border:1px solid var(--el-color-primary);background:var(--el-color-primary)!important;color:#fff!important}[data-v-ab587b59] .number-of-steps .is-wait{color:#333}[data-v-ab587b59] .el-result__icon{color:unset!important}[data-v-ab587b59] .el-result__title p{font-size:25px;color:#1d1f3a;font-weight:500}[data-v-ab587b59] .el-result__subtitle p{font-size:15px;color:#4f516d;font-weight:500;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical}.multi-hidden[data-v-ab587b59]{word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{d as b,r as d,n as w,I as m,l as g,R as c,h as E,s as F,w as i,e as n,a,Z as N,i as R,_ as j,aG as B,L as C,M as I,N as O}from"./index-981069db.js";/* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css */const k={class:"flex items-center"},D=a("span",{class:"ml-[10px] el-form-item__label"},"消费折扣",-1),M={class:"w-[120px]"},U=a("div",{class:"text-sm text-gray-400 mb-[5px]"},"会员购买产品默认折扣,需要商品设置参与会员折扣有效",-1),q=b({__name:"benefits-discount",props:{modelValue:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(p,{expose:_,emit:f}){const v=p,e=d({is_use:0,discount:""}),r=d(null),x=w({discount:[{validator:(l,t,s)=>{e.value.is_use&&(m.empty(e.value.discount)&&s("请输入折扣"),m.decimal(e.value.discount,1)||s("折扣格式错误"),(parseFloat(e.value.discount)<0||parseFloat(e.value.discount)>9.9)&&s("折扣只能输入0~9.9之间的值"),e.value.discount<0&&s("折扣不能小于0")),s()}}]}),o=g({get(){return v.modelValue},set(l){f("update:modelValue",l)}});return c(()=>o.value,(l,t)=>{(!t||!Object.keys(t).length)&&Object.keys(l).length&&(e.value=o.value)},{immediate:!0}),c(()=>e.value,()=>{o.value=e.value},{deep:!0}),_({verify:async()=>{var t;let l=!0;return await((t=r.value)==null?void 0:t.validate(s=>{l=s})),l}}),(l,t)=>{const s=B,V=C,h=I,y=O;return E(),F(y,{ref_key:"formRef",ref:r,model:e.value,rules:x},{default:i(()=>[n(h,{label:"",prop:"discount",class:"!mb-[10px]"},{default:i(()=>[a("div",null,[a("div",k,[n(s,{modelValue:e.value.is_use,"onUpdate:modelValue":t[0]||(t[0]=u=>e.value.is_use=u),"true-label":1,"false-label":0,label:"",size:"large"},null,8,["modelValue"]),D,N(a("div",M,[n(V,{modelValue:e.value.discount,"onUpdate:modelValue":t[1]||(t[1]=u=>e.value.discount=u),modelModifiers:{trim:!0},clearable:""},{append:i(()=>[R("折")]),_:1},8,["modelValue"])],512),[[j,e.value.is_use]])]),U])]),_:1})]),_:1},8,["model","rules"])}}});export{q as default};

View File

@ -1 +0,0 @@
import{d as W,y as O,r as b,n as V,h as u,c as E,e as n,w as s,a as i,t as m,u as o,Z as z,s as p,q as l,bX as k,C as f,i as v,F as G,W as L,b8 as S,M as j,L as H,aE as I,aF as K,aG as P,bE as X,a9 as q,N as Z,E as $,a3 as J}from"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css */import{d as Q,W as Y,X as ee}from"./member-3d15b900.js";const te={class:"main-container"},ae={class:"flex justify-between items-center"},oe={class:"text-page-title"},se={class:"text-[12px] text-[#999] leading-[24px]"},le=i("span",{class:"ml-2"},"%",-1),ne={class:"text-[12px] text-[#999] leading-[24px]"},re={class:"fixed-footer-wrap"},ie={class:"fixed-footer"},Fe=W({__name:"cash_out",setup(de){const C=O().meta.title,c=b(!0),g=b(),t=V({is_auto_transfer:"0",is_auto_verify:"0",is_open:"0",min:"0",rate:"0",transfer_type:[]}),y=b([]);(async()=>{y.value=await(await Q()).data})(),(async()=>{const d=await(await Y()).data;Object.keys(t).forEach(e=>{d[e]!=null&&(t[e]=d[e])}),c.value=!1})();const R=V({min:[{validator:(d,e,r)=>{Number(e)<.01?r(new Error(l("cashWithdrawalAmountHint"))):r()},trigger:"blur"}],rate:[{validator:(d,e,r)=>{Number(e)>100||Number(e)<0?r(new Error(l("commissionRatioHint"))):r()},trigger:"blur"}]}),F=async d=>{c.value||!d||await d.validate(e=>{if(e){const r={...t};ee(r).then(()=>{c.value=!1}).catch(()=>{c.value=!1})}})};return(d,e)=>{const r=S,_=j,h=H,x=I,N=K,T=P,D=X,w=q,A=Z,B=$,M=J;return u(),E("div",te,[n(w,{class:"box-card !border-none",shadow:"never"},{default:s(()=>[i("div",ae,[i("span",oe,m(o(C)),1)]),z((u(),p(A,{class:"page-form mt-[20px]",model:t,"label-width":"150px",ref_key:"ruleFormRef",ref:g,rules:R},{default:s(()=>[n(w,{class:"box-card !border-none",shadow:"never"},{default:s(()=>[n(_,{label:o(l)("isOpen")},{default:s(()=>[n(r,{modelValue:t.is_open,"onUpdate:modelValue":e[0]||(e[0]=a=>t.is_open=a),"active-value":"1","inactive-value":"0"},null,8,["modelValue"])]),_:1},8,["label"]),t.is_open?(u(),p(_,{key:0,label:o(l)("cashWithdrawalAmount"),prop:"min"},{default:s(()=>[i("div",null,[n(h,{modelValue:t.min,"onUpdate:modelValue":e[1]||(e[1]=a=>t.min=a),modelModifiers:{trim:!0},onKeyup:e[2]||(e[2]=a=>o(k)(a)),class:"input-width",placeholder:o(l)("cashWithdrawalAmountPlaceholder")},null,8,["modelValue","placeholder"]),i("div",se,m(o(l)("minTips")),1)])]),_:1},8,["label"])):f("",!0),t.is_open?(u(),p(_,{key:1,label:o(l)("commissionRatio"),prop:"rate"},{default:s(()=>[n(h,{modelValue:t.rate,"onUpdate:modelValue":e[3]||(e[3]=a=>t.rate=a),modelModifiers:{trim:!0},onKeyup:e[4]||(e[4]=a=>o(k)(a)),class:"input-width",placeholder:o(l)("commissionRatioPlaceholder")},null,8,["modelValue","placeholder"]),le]),_:1},8,["label"])):f("",!0),t.is_open?(u(),p(_,{key:2,label:o(l)("audit"),class:"items-center"},{default:s(()=>[n(N,{modelValue:t.is_auto_verify,"onUpdate:modelValue":e[5]||(e[5]=a=>t.is_auto_verify=a)},{default:s(()=>[n(x,{label:"0",size:"large"},{default:s(()=>[v(m(o(l)("manualAudit")),1)]),_:1}),n(x,{label:"1",size:"large"},{default:s(()=>[v(m(o(l)("automaticAudit")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):f("",!0),t.is_open?(u(),p(_,{key:3,label:o(l)("transferMode"),class:"items-baseline"},{default:s(()=>[i("div",null,[n(D,{modelValue:t.transfer_type,"onUpdate:modelValue":e[6]||(e[6]=a=>t.transfer_type=a),size:"large"},{default:s(()=>[(u(!0),E(G,null,L(y.value,(a,U)=>(u(),p(T,{label:a.key,key:"a"+U},{default:s(()=>[v(m(a.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"]),i("div",ne,m(o(l)("transferModeTips")),1)])]),_:1},8,["label"])):f("",!0)]),_:1})]),_:1},8,["model","rules"])),[[M,c.value]])]),_:1}),i("div",re,[i("div",ie,[n(B,{type:"primary",onClick:e[7]||(e[7]=a=>F(g.value))},{default:s(()=>[v(m(o(l)("save")),1)]),_:1})])])])}}});export{Fe as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
.btn-time[data-v-eda7292b]{line-height:36px;text-align:center}[data-v-eda7292b] .el-button{border-radius:4px!important}[data-v-eda7292b] .el-timeline-item__node--normal{width:16px!important;height:16px!important}[data-v-eda7292b] .el-timeline-item__tail{left:6px!important}[data-v-eda7292b] .el-timeline-item__node.is-hollow{background:#9699B6!important;border-width:3px!important}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{P as b,d as S,y as B,r as v,n as R,b9 as D,b3 as F,R as I,$ as g,q as a,h as M,c as P,e as n,w as l,a as r,t as u,u as i,i as $,b8 as j,M as O,L as U,N as L,a9 as T,E as z}from"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css */import{_ as A}from"./_plugin-vue_export-helper-c27b6911.js";function G(){return b.get("channel/pc/config")}function H(_){return b.put("channel/pc/config",_,{showSuccessMessage:!0})}const J={class:"main-container"},K={class:"flex justify-between items-center"},Q={class:"text-page-title"},W={class:"fixed-footer-wrap"},X={class:"fixed-footer"},Y=S({__name:"config",setup(_){const y=B().meta.title,o=v(!0),e=R({is_open:!1,request_url:""}),d=v();D().then(t=>{e.request_url=t.data.web_url+"/",o.value=!1}),G().then(t=>{Object.assign(e,t.data),e.is_open=Boolean(Number(e.is_open)),o.value=!1});const{copy:w,isSupported:h,copied:m}=F(),x=t=>{if(!h.value){g({message:a("notSupportCopy"),type:"warning"});return}w(t)};I(m,()=>{m.value&&g({message:a("copySuccess"),type:"success"})});const C=()=>{window.open(e.request_url)},E=async t=>{o.value||!t||await t.validate(async s=>{if(s){o.value=!0;const c={...e};c.is_open=Number(c.is_open),H(c).then(()=>{o.value=!1}).catch(()=>{o.value=!1})}})};return(t,s)=>{const c=j,f=O,N=U,k=L,q=T,V=z;return M(),P("div",J,[n(q,{class:"box-card !border-none",shadow:"never"},{default:l(()=>[r("div",K,[r("span",Q,u(i(y)),1)]),n(k,{class:"page-form mt-[20px]",model:e,"label-width":"150px",ref_key:"formRef",ref:d},{default:l(()=>[n(f,{label:i(a)("isOpen")},{default:l(()=>[n(c,{modelValue:e.is_open,"onUpdate:modelValue":s[0]||(s[0]=p=>e.is_open=p)},null,8,["modelValue"])]),_:1},8,["label"]),n(f,{label:i(a)("pCDomainName")},{default:l(()=>[n(N,{"model-value":e.request_url,class:"input-width",readonly:!0},{append:l(()=>[r("div",{class:"cursor-pointer",onClick:s[1]||(s[1]=p=>x(e.request_url))},u(i(a)("copy")),1)]),_:1},8,["model-value"]),r("span",{class:"ml-2 cursor-pointer visit-btn",onClick:C},u(i(a)("clickVisit")),1)]),_:1},8,["label"])]),_:1},8,["model"])]),_:1}),r("div",W,[r("div",X,[n(V,{type:"primary",loading:o.value,onClick:s[2]||(s[2]=p=>E(d.value))},{default:l(()=>[$(u(i(a)("save")),1)]),_:1},8,["loading"])])])])}}});const ie=A(Y,[["__scopeId","data-v-2f7e1e13"]]);export{ie as default};

View File

@ -1 +0,0 @@
import{d as M,y as B,f as N,r as v,n as U,l as R,h as b,c as T,e as a,w as s,u as t,Z as D,s as $,a as n,t as d,q as l,i as m,b5 as L,a9 as P,L as F,E as K,M as O,N as S,a3 as j}from"./index-981069db.js";/* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import{g as q,s as H}from"./app-0e99a48e.js";const Z={class:"main-container"},z={class:"panel-title !text-sm"},G={class:"form-tip flex items-center"},J={class:"form-tip"},Q={class:"form-tip"},W={class:"panel-title !text-sm"},X={class:"form-tip"},Y={class:"fixed-footer-wrap"},ee={class:"fixed-footer"},ce=M({__name:"config",setup(ae){const V=B(),y=N(),g=V.meta.title,r=v(!0),o=U({uni_app_id:"",app_name:"",android_app_key:"",application_id:"",wechat_app_id:"",wechat_app_secret:""}),f=v(),k=R(()=>({}));q().then(i=>{Object.assign(o,i.data),r.value=!1});const x=async i=>{r.value||!i||await i.validate(async e=>{e&&(r.value=!0,H(o).then(()=>{r.value=!1}).catch(()=>{r.value=!1}))})},h=i=>{window.open(i)},A=()=>{y.push("/channel/app")};return(i,e)=>{const C=L,_=P,c=F,w=K,u=O,I=S,E=j;return b(),T("div",Z,[a(_,{class:"card !border-none",shadow:"never"},{default:s(()=>[a(C,{content:t(g),icon:i.ArrowLeft,onBack:e[0]||(e[0]=p=>A())},null,8,["content","icon"])]),_:1}),D((b(),$(I,{class:"page-form mt-[15px]",model:o,"label-width":"170px",ref_key:"formRef",ref:f,rules:t(k)},{default:s(()=>[a(_,{class:"box-card !border-none mt-[15px]",shadow:"never"},{default:s(()=>[n("h3",z,d(t(l)("appInfo")),1),a(u,{label:t(l)("uniAppId"),prop:"uni_app_id"},{default:s(()=>[a(c,{modelValue:o.uni_app_id,"onUpdate:modelValue":e[1]||(e[1]=p=>o.uni_app_id=p),modelModifiers:{trim:!0},placeholder:"",class:"input-width",clearable:""},null,8,["modelValue"]),n("div",G,[m(d(t(l)("uniAppIdTips"))+" ",1),a(w,{link:"",type:"primary",onClick:e[2]||(e[2]=p=>h("https://www.dcloud.io/"))},{default:s(()=>[m(d(t(l)("toCreate")),1)]),_:1})])]),_:1},8,["label"]),a(u,{label:t(l)("appName"),prop:"app_name"},{default:s(()=>[a(c,{modelValue:o.app_name,"onUpdate:modelValue":e[3]||(e[3]=p=>o.app_name=p),modelModifiers:{trim:!0},placeholder:"",class:"input-width",clearable:""},null,8,["modelValue"])]),_:1},8,["label"]),a(u,{label:t(l)("androidAppKey"),prop:"android_app_key"},{default:s(()=>[a(c,{modelValue:o.android_app_key,"onUpdate:modelValue":e[4]||(e[4]=p=>o.android_app_key=p),modelModifiers:{trim:!0},placeholder:"",class:"input-width",clearable:""},null,8,["modelValue"]),n("div",J,[m(d(t(l)("androidAppKeyTips"))+" ",1),n("span",{class:"text-primary cursor-pointer",onClick:e[5]||(e[5]=p=>h("https://nativesupport.dcloud.net.cn/AppDocs/usesdk/appkey.html"))},"查看详情")])]),_:1},8,["label"]),a(u,{label:t(l)("applicationId"),prop:"application_id"},{default:s(()=>[a(c,{modelValue:o.application_id,"onUpdate:modelValue":e[6]||(e[6]=p=>o.application_id=p),modelModifiers:{trim:!0},placeholder:"",class:"input-width",clearable:""},null,8,["modelValue"]),n("div",Q,d(t(l)("applicationIdTips")),1)]),_:1},8,["label"])]),_:1}),a(_,{class:"box-card !border-none mt-[15px]",shadow:"never"},{default:s(()=>[n("h3",W,d(t(l)("wechatAppInfo")),1),a(u,{label:t(l)("wechatAppid"),prop:"app_id"},{default:s(()=>[a(c,{modelValue:o.wechat_app_id,"onUpdate:modelValue":e[7]||(e[7]=p=>o.wechat_app_id=p),modelModifiers:{trim:!0},placeholder:t(l)("appidPlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"]),n("div",X,d(t(l)("wechatAppidTips")),1)]),_:1},8,["label"]),a(u,{label:t(l)("wechatAppsecret"),prop:"app_secret"},{default:s(()=>[a(c,{modelValue:o.wechat_app_secret,"onUpdate:modelValue":e[8]||(e[8]=p=>o.wechat_app_secret=p),modelModifiers:{trim:!0},placeholder:t(l)("appSecretPlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model","rules"])),[[E,r.value]]),n("div",Y,[n("div",ee,[a(w,{type:"primary",loading:r.value,onClick:e[9]||(e[9]=p=>x(f.value))},{default:s(()=>[m(d(t(l)("save")),1)]),_:1},8,["loading"])])])])}}});export{ce as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{P as b,d as S,y as B,r as v,n as R,b9 as D,b3 as F,R as I,$ as g,q as o,h as M,c as $,e as a,w as l,a as r,t as u,u as i,i as j,b8 as H,M as O,L as U,N as L,a9 as P,E as T}from"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css */import{_ as z}from"./_plugin-vue_export-helper-c27b6911.js";function A(){return b.get("channel/h5/config")}function G(_){return b.put("channel/h5/config",_,{showSuccessMessage:!0})}const J={class:"main-container"},K={class:"flex justify-between items-center"},Q={class:"text-page-title"},W={class:"fixed-footer-wrap"},X={class:"fixed-footer"},Y=S({__name:"config",setup(_){const h=B().meta.title,n=v(!0),e=R({is_open:!0,request_url:""}),d=v();A().then(t=>{Object.assign(e,t.data),e.is_open=Boolean(Number(e.is_open)),n.value=!1}),D().then(t=>{e.request_url=t.data.wap_url+"/"});const{copy:y,isSupported:w,copied:m}=F(),x=t=>{if(!w.value){g({message:o("notSupportCopy"),type:"warning"});return}y(t)};I(m,()=>{m.value&&g({message:o("copySuccess"),type:"success"})});const C=()=>{window.open(e.request_url)},E=async t=>{n.value||!t||await t.validate(async s=>{if(s){n.value=!0;const c={...e};c.is_open=Number(c.is_open),G(c).then(()=>{n.value=!1}).catch(()=>{n.value=!1})}})};return(t,s)=>{const c=H,f=O,N=U,k=L,q=P,V=T;return M(),$("div",J,[a(q,{class:"box-card !border-none",shadow:"never"},{default:l(()=>[r("div",K,[r("span",Q,u(i(h)),1)]),a(k,{class:"page-form mt-[20px]",model:e,"label-width":"150px",ref_key:"formRef",ref:d},{default:l(()=>[a(f,{label:i(o)("isOpen")},{default:l(()=>[a(c,{modelValue:e.is_open,"onUpdate:modelValue":s[0]||(s[0]=p=>e.is_open=p)},null,8,["modelValue"])]),_:1},8,["label"]),a(f,{label:i(o)("h5DomainName")},{default:l(()=>[a(N,{"model-value":e.request_url,class:"input-width",readonly:!0},{append:l(()=>[r("div",{class:"cursor-pointer",onClick:s[1]||(s[1]=p=>x(e.request_url))},u(i(o)("copy")),1)]),_:1},8,["model-value"]),r("span",{class:"ml-2 cursor-pointer visit-btn",onClick:C},u(i(o)("clickVisit")),1)]),_:1},8,["label"])]),_:1},8,["model"])]),_:1}),r("div",W,[r("div",X,[a(V,{type:"primary",loading:n.value,onClick:s[2]||(s[2]=p=>E(d.value))},{default:l(()=>[j(u(i(o)("save")),1)]),_:1},8,["loading"])])])])}}});const ie=z(Y,[["__scopeId","data-v-8a5349bf"]]);export{ie as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{d as f,y as g,f as v,r as y,n as b,h as k,c as T,e as a,w as r,u as t,b4 as E,a as e,i as o,t as s,q as n,b5 as R,a9 as O,E as B}from"./index-981069db.js";/* empty css *//* empty css *//* empty css */import{g as C}from"./wechat-5d2c00db.js";const L=""+new URL("wechat_1-0a26d3a6.png",import.meta.url).href,U=""+new URL("wechat_4-94a271d5.png",import.meta.url).href,j=""+new URL("wechat_2-0513f476.png",import.meta.url).href,q=""+new URL("wechat_3-0a96f3fe.png",import.meta.url).href,N={class:"main-container"},V={class:"flex"},D=e("div",{class:"min-w-[60px]"},[e("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"1")],-1),S={class:"flex items-center text-[14px]"},A=e("span",{class:"text-primary"},"URL / Token / EncondingAESKey",-1),H=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:L})],-1),K={class:"flex items-center text-[14px] mt-[20px]"},P=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:U})],-1),W={class:"flex mt-[40px]"},$=e("div",{class:"min-w-[60px]"},[e("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"2")],-1),z={class:"flex items-center text-[14px]"},F=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:j})],-1),G={class:"flex mt-[40px]"},I=e("div",{class:"min-w-[60px]"},[e("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"3")],-1),J={class:"flex items-center text-[14px]"},M={class:"text-primary"},Q=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:q})],-1),ae=f({__name:"course",setup(X){const l=g().meta.title,_=v(),d=()=>{_.push("/channel/wechat")},m=y(!0),x=b({wechat_name:"",wechat_original:"",app_id:"",app_secret:"",qr_code:"",token:"",encoding_aes_key:"",encryption_type:"not_encrypt"});C().then(i=>{Object.assign(x,i.data),m.value=!1});const h=()=>{window.open("https://mp.weixin.qq.com/","_blank")};return(i,c)=>{const w=R,p=O,u=B;return k(),T("div",N,[a(p,{class:"card !border-none",shadow:"never"},{default:r(()=>[a(w,{content:t(l),icon:t(E),onBack:c[0]||(c[0]=Z=>d())},null,8,["content","icon"])]),_:1}),a(p,{class:"box-card mt-[15px] pt-[20px] !border-none",shadow:"never"},{default:r(()=>[e("div",V,[D,e("div",null,[e("p",S,[o(s(t(n)("writingTipsOne1"))+"--",1),a(u,{link:"",type:"primary",onClick:h},{default:r(()=>[o(s(t(n)("writingTipsOne2")),1)]),_:1}),o(", "+s(t(n)("writingTipsOne3")),1),A,o(s(t(n)("writingTipsOne4")),1)]),H,e("p",K,s(t(n)("writingTipsOne5")),1),P])]),e("div",W,[$,e("div",null,[e("p",z,s(t(n)("writingTipsTwo1")),1),F])]),e("div",G,[I,e("div",null,[e("p",J,[o(s(t(n)("writingTipsThree1")),1),e("span",M,s(t(n)("writingTipsThree2")),1)]),Q])])]),_:1})])}}});export{ae as default};

View File

@ -1 +0,0 @@
import{d as u,y as h,f,h as b,c as g,e as r,w as i,u as t,b4 as v,a as e,i as o,t as s,q as n,b5 as y,a9 as k,E as T}from"./index-981069db.js";/* empty css *//* empty css *//* empty css */const E=""+new URL("weapp_1-7017a047.png",import.meta.url).href,R=""+new URL("weapp_2-8fac7fa5.png",import.meta.url).href,B=""+new URL("weapp_3-07a2249e.png",import.meta.url).href,L=""+new URL("weapp_4-d837a9b1.png",import.meta.url).href,U={class:"main-container"},j={class:"flex"},C=e("div",{class:"min-w-[60px]"},[e("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"1")],-1),N={class:"flex items-center text-[14px]"},q=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:E})],-1),O={class:"flex mt-[40px]"},V=e("div",{class:"min-w-[60px]"},[e("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"2")],-1),F={class:"flex items-center text-[14px]"},S=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:R})],-1),A={class:"flex mt-[40px]"},D=e("div",{class:"min-w-[60px]"},[e("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"3")],-1),H={class:"flex items-center text-[14px]"},K={class:"text-primary"},P=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:B})],-1),$={class:"flex mt-[40px]"},z=e("div",{class:"min-w-[60px]"},[e("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"4")],-1),G={class:"flex items-center text-[14px]"},I=e("span",{class:"text-primary"},"URL / Token / EncondingAESKey",-1),J=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:L})],-1),te=u({__name:"course",setup(M){const p=h(),l=f(),d=p.meta.title,_=()=>{l.push("/channel/weapp")},m=()=>{window.open("https://mp.weixin.qq.com/","_blank")};return(Q,a)=>{const x=y,c=k,w=T;return b(),g("div",U,[r(c,{class:"card !border-none",shadow:"never"},{default:i(()=>[r(x,{content:t(d),icon:t(v),onBack:a[0]||(a[0]=W=>_())},null,8,["content","icon"])]),_:1}),r(c,{class:"box-card mt-[15px] !border-none",shadow:"never"},{default:i(()=>[e("div",j,[C,e("div",null,[e("p",N,[o(s(t(n)("writingTipsOne1")),1),r(w,{link:"",type:"primary",onClick:m},{default:i(()=>[o(s(t(n)("writingTipsOne2")),1)]),_:1}),o(","+s(t(n)("writingTipsOne3")),1)]),q])]),e("div",O,[V,e("div",null,[e("p",F,s(t(n)("writingTipsTwo1")),1),S])]),e("div",A,[D,e("div",null,[e("p",H,[o(s(t(n)("writingTipsThree1")),1),e("span",K,s(t(n)("writingTipsThree2")),1)]),P])]),e("div",$,[z,e("div",null,[e("p",G,[o(s(t(n)("writingTipsFour1")),1),I,o(s(t(n)("writingTipsFour2")),1)]),J])])]),_:1})])}}});export{te as default};

View File

@ -1 +0,0 @@
import{d as v,y as b,f as R,r as C,n as T,h as k,c as L,e as t,w as a,u as e,b4 as U,a as s,i as r,t as o,q as n,b5 as j,a9 as E,E as B,b1 as N,b2 as O}from"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css */import{g as V}from"./wechat-5d2c00db.js";const q=""+new URL("alipay1-029c00a2.png",import.meta.url).href,D=""+new URL("alipay2-f74219b9.png",import.meta.url).href,H=""+new URL("alipay3-0895ce6e.png",import.meta.url).href,P=""+new URL("alipay4-92fef352.png",import.meta.url).href,S=""+new URL("alipay4_1-ad9b08e3.jpg",import.meta.url).href,W=""+new URL("alipay4_2-cbaa820b.jpg",import.meta.url).href,$=""+new URL("alipay4_3-4a213289.jpg",import.meta.url).href,z=""+new URL("alipay4_4-7924cbdd.jpg",import.meta.url).href,A=""+new URL("alipay5-6dba1989.png",import.meta.url).href,F=""+new URL("alipay6-f1e18995.png",import.meta.url).href,G=""+new URL("alipay7-c805d7c0.png",import.meta.url).href,I=""+new URL("alipay8-3097d150.png",import.meta.url).href,J={class:"main-container"},K={class:"flex"},M=s("div",{class:"min-w-[60px]"},[s("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"1")],-1),Q={class:"flex items-center text-[14px]"},X=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:q})],-1),Y={class:"flex items-center text-[14px] mt-[20px]"},Z=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:D})],-1),ss=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:H})],-1),es={class:"flex mt-[40px]"},ts=s("div",{class:"min-w-[60px]"},[s("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"2")],-1),as={class:"flex items-center text-[14px]"},os={class:"w-[100%] mt-[10px] flex flex-wrap"},ns=s("div",{class:"w-[100%]"},[s("img",{class:"w-[100%]",src:P})],-1),is=s("div",{class:"w-[100%]"},[s("img",{class:"w-[100%]",src:S})],-1),rs=s("div",{class:"w-[100%]"},[s("img",{class:"w-[100%]",src:W})],-1),cs=s("div",{class:"w-[100%]"},[s("img",{class:"w-[100%]",src:$})],-1),ps=s("div",{class:"w-[100%]"},[s("img",{class:"w-[100%]",src:z})],-1),ls={class:"flex mt-[40px]"},_s=s("div",{class:"min-w-[60px]"},[s("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"3")],-1),ms={class:"flex items-center text-[14px]"},ds=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:A})],-1),xs=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:F})],-1),us={class:"flex items-center text-[14px] mt-[20px]"},ws=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:G})],-1),hs={class:"flex items-center text-[14px] mt-[20px]"},fs=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:I})],-1),Ls=v({__name:"course",setup(ys){const _=b(),m=R(),d=()=>{m.push("/channel/aliapp")},x=_.meta.title,u=C(!0),w=T({wechat_name:"",wechat_original:"",app_id:"",app_secret:"",qr_code:"",token:"",encoding_aes_key:"",encryption_type:"not_encrypt"});V().then(c=>{Object.assign(w,c.data),u.value=!1});const h=()=>{window.open("https://open.alipay.com/develop/manage","_blank")};return(c,p)=>{const f=j,l=E,y=B,i=N,g=O;return k(),L("div",J,[t(l,{class:"card !border-none",shadow:"never"},{default:a(()=>[t(f,{content:e(x),icon:e(U),onBack:p[0]||(p[0]=gs=>d())},null,8,["content","icon"])]),_:1}),t(l,{class:"box-card mt-[15px] !border-none",shadow:"never"},{default:a(()=>[s("div",K,[M,s("div",null,[s("p",Q,[r(o(e(n)("alipayCourseTipsOne1"))+"--",1),t(y,{link:"",type:"primary",onClick:h},{default:a(()=>[r(o(e(n)("alipayCourseTipsOne2")),1)]),_:1}),r(", "+o(e(n)("alipayCourseTipsOne3")),1)]),X,s("p",Y,o(e(n)("alipayCourseTipsTwo1")),1),Z,ss])]),s("div",es,[ts,s("div",null,[s("p",as,o(e(n)("alipayCourseTipsTwo2")),1),s("div",os,[ns,s("div",null,[t(g,{gutter:20},{default:a(()=>[t(i,{span:6},{default:a(()=>[is]),_:1}),t(i,{span:6},{default:a(()=>[rs]),_:1}),t(i,{span:6},{default:a(()=>[cs]),_:1}),t(i,{span:6},{default:a(()=>[ps]),_:1})]),_:1})])])])]),s("div",ls,[_s,s("div",null,[s("p",ms,o(e(n)("alipayCourseTipsThree1")),1),ds,xs,s("p",us,o(e(n)("alipayCourseTipsThree2")),1),ws,s("p",hs,o(e(n)("alipayCourseTipsThree3")),1),fs])])]),_:1})])}}});export{Ls as default};

View File

@ -1 +0,0 @@
import{_ as o}from"./create-site-limit.vue_vue_type_script_setup_true_lang-c23e4071.js";import"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./user-8524f057.js";export{o as default};

View File

@ -1 +0,0 @@
import{d as B,r as f,l as F,q as o,R as q,h as d,s as v,w as a,a as x,e as s,i as g,t as p,u as r,Z as P,c as C,F as R,W as I,C as M,a4 as Z,a1 as O,M as T,L as $,N as j,E as W,V as z,a3 as A}from"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{e as H,a as J,b as K}from"./user-8524f057.js";const Q={key:0,class:"text-[12px] text-[#a9a9a9] leading-normal mt-[5px]"},X={class:"dialog-footer"},ce=B({__name:"create-site-limit",props:{siteGroup:{type:Object,default:()=>({})},uid:{type:Number,default:0}},emits:["complete"],setup(w,{expose:y,emit:L}){const c=w,u=f(!1),b=f(null),t=f({id:0,uid:c.uid,group_id:"",num:1,month:1}),m=f(!1),S=F(()=>({group_id:[{required:!0,message:o("siteGroupPlaceholder"),trigger:"blur"}],num:[{required:!0,message:o("numPlaceholder"),trigger:"blur"},{validator:(i,e,n)=>{e<=0&&n(o("numCannotLtZero")),n()}}],month:[{required:!0,message:o("monthPlaceholder"),trigger:"blur"},{validator:(i,e,n)=>{e<=0&&n(o("monthCannotLtZero")),n()}}]})),E=async i=>{m.value||!i||await i.validate(async e=>{e&&(m.value=!0,(t.value.id?H:J)(t.value).then(()=>{m.value=!1,u.value=!1,L("complete")}).catch(()=>{m.value=!1}))})},N=(i=0)=>{i?K(i).then(({data:e})=>{t.value=e,u.value=!0}):u.value=!0};return q(()=>u.value,()=>{u.value||(t.value={id:0,uid:c.uid,group_id:"",num:1,month:1})}),y({setFormData:N,loading:m}),(i,e)=>{const n=Z,U=O,_=T,V=$,D=j,h=W,G=z,k=A;return d(),v(G,{modelValue:u.value,"onUpdate:modelValue":e[5]||(e[5]=l=>u.value=l),title:r(o)("userCreateSiteLimit"),width:"700px","destroy-on-close":!0},{footer:a(()=>[x("span",X,[s(h,{onClick:e[3]||(e[3]=l=>u.value=!1)},{default:a(()=>[g(p(r(o)("cancel")),1)]),_:1}),s(h,{type:"primary",loading:m.value,onClick:e[4]||(e[4]=l=>E(b.value))},{default:a(()=>[g(p(r(o)("confirm")),1)]),_:1},8,["loading"])])]),default:a(()=>[P((d(),v(D,{model:t.value,"label-width":"130px",ref_key:"formRef",ref:b,rules:r(S),class:"page-form",autocomplete:"off"},{default:a(()=>[s(_,{label:r(o)("siteGroup"),prop:"group_id"},{default:a(()=>[s(U,{modelValue:t.value.group_id,"onUpdate:modelValue":e[0]||(e[0]=l=>t.value.group_id=l),placeholder:r(o)("siteGroupPlaceholder"),disabled:t.value.id},{default:a(()=>[(d(!0),C(R,null,I(c.siteGroup,l=>(d(),v(n,{label:l.group_name,value:l.group_id},null,8,["label","value"]))),256))]),_:1},8,["modelValue","placeholder","disabled"])]),_:1},8,["label"]),s(_,{label:r(o)("createSiteNum"),prop:"num"},{default:a(()=>[x("div",null,[s(V,{modelValue:t.value.num,"onUpdate:modelValue":e[1]||(e[1]=l=>t.value.num=l),modelModifiers:{number:!0,trim:!0},class:"!w-[150px]"},null,8,["modelValue"]),t.value.group_id?(d(),C("p",Q,p(r(o)("createdSiteNum"))+""+p(c.siteGroup[t.value.group_id].site_num),1)):M("",!0)])]),_:1},8,["label"]),s(_,{label:r(o)("createSiteTimeLimit"),prop:"month"},{default:a(()=>[s(V,{modelValue:t.value.month,"onUpdate:modelValue":e[2]||(e[2]=l=>t.value.month=l),modelModifiers:{number:!0,trim:!0},class:"!w-[150px]"},{append:a(()=>[g(p(r(o)("month")),1)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[k,m.value]])]),_:1},8,["modelValue","title"])}}});export{ce as _};

View File

@ -1 +0,0 @@
import{_ as o}from"./cron-info.vue_vue_type_script_setup_true_lang-077369e8.js";import"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";export{o as default};

View File

@ -1 +0,0 @@
import{d as E,r as m,n as V,l as N,h as r,s as h,w as e,a as n,e as o,i as B,t as l,u as a,q as s,Z as F,c as b,M as T,N as C,E as O,V as R,a3 as j}from"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";const I={class:"input-width"},S={class:"input-width"},q={key:0,class:"input-width"},J={key:1,class:"input-width"},L={class:"input-width"},M={class:"input-width"},U={class:"input-width"},Z={class:"input-width"},$={class:"input-width"},z={class:"input-width"},A={class:"input-width"},G={class:"dialog-footer"},at=E({__name:"cron-info",setup(H,{expose:v}){const c=m(!1),u=m(!0),p={count:0,create_time:"",crond_length:"",crond_type:"",crond_type_name:"",data:"",delete_time:"",last_time:"",next_time:"",status_desc:"",title:"",type:"",type_name:"",update_time:""},t=V({...p}),y=m(),w=N(()=>({}));return v({showDialog:c,setFormData:async(_=null)=>{u.value=!0,Object.assign(t,p),_&&Object.keys(t).forEach(d=>{_[d]!=null&&(t[d]=_[d])}),u.value=!1}}),(_,d)=>{const i=T,g=C,x=O,D=R,k=j;return r(),h(D,{modelValue:c.value,"onUpdate:modelValue":d[1]||(d[1]=f=>c.value=f),title:a(s)("cronInfo"),width:"550px","destroy-on-close":!0},{footer:e(()=>[n("span",G,[o(x,{type:"primary",onClick:d[0]||(d[0]=f=>c.value=!1)},{default:e(()=>[B(l(a(s)("confirm")),1)]),_:1})])]),default:e(()=>[F((r(),h(g,{model:t,"label-width":"110px",ref_key:"formRef",ref:y,rules:a(w),class:"page-form"},{default:e(()=>[o(i,{label:a(s)("title")},{default:e(()=>[n("div",I,l(t.title),1)]),_:1},8,["label"]),o(i,{label:a(s)("typeName")},{default:e(()=>[n("div",S,l(t.type_name),1)]),_:1},8,["label"]),o(i,{label:a(s)("crondType")},{default:e(()=>[t.type=="crond"?(r(),b("div",q,l(t.crond_length)+" "+l(t.crond_type_name),1)):(r(),b("div",J,l(a(s)("cron")),1))]),_:1},8,["label"]),o(i,{label:a(s)("count")},{default:e(()=>[n("div",L,l(t.count),1)]),_:1},8,["label"]),o(i,{label:a(s)("task")},{default:e(()=>[n("div",M,l(t.task),1)]),_:1},8,["label"]),o(i,{label:a(s)("data")},{default:e(()=>[n("div",U,l(JSON.stringify(t.data)),1)]),_:1},8,["label"]),o(i,{label:a(s)("statusDesc")},{default:e(()=>[n("div",Z,l(t.status_desc),1)]),_:1},8,["label"]),o(i,{label:a(s)("lastTime")},{default:e(()=>[n("div",$,l(t.last_time),1)]),_:1},8,["label"]),o(i,{label:a(s)("nextTime")},{default:e(()=>[n("div",z,l(t.next_time),1)]),_:1},8,["label"]),o(i,{label:a(s)("createTime")},{default:e(()=>[n("div",A,l(t.create_time),1)]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[k,u.value]])]),_:1},8,["modelValue","title"])}}});export{at as _};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{d as _,l as d,B as r,h as a,c as n,F as u,W as p,s as f,u as s,v as g,K as v}from"./index-981069db.js";/* empty css *//* empty css */const h=_({__name:"detail-form-image",props:{data:{type:Object,default:()=>({})}},setup(i){const e=i,o=d(()=>e.data.handle_field_value.map(t=>r(t)));return(t,x)=>{const c=v;return a(),n("div",null,[(a(!0),n(u,null,p(e.data.handle_field_value,(m,l)=>(a(),f(c,{src:s(r)(m),class:g(["w-[70px] h-[70px]",{"mr-[5px]":l+1<e.data.handle_field_value.length}]),fit:"contain","preview-src-list":s(o),"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"initial-index":l,"hide-on-click-modal":!0},null,8,["src","class","preview-src-list","zoom-rate","min-scale","initial-index"]))),256))])}}}),B=Object.freeze(Object.defineProperty({__proto__:null,default:h},Symbol.toStringTag,{value:"Module"}));export{B as _};

View File

@ -1 +0,0 @@
import{d as o,h as r,c as _,t as a}from"./index-981069db.js";import{_ as n}from"./_plugin-vue_export-helper-c27b6911.js";const s={class:"form-render"},d=o({__name:"detail-form-render",props:{data:{type:Object,default:()=>({})}},setup(e){const t=e;return(l,p)=>(r(),_("div",s,a(t.data.render_value),1))}});const c=n(d,[["__scopeId","data-v-2b402684"]]),u=Object.freeze(Object.defineProperty({__proto__:null,default:c},Symbol.toStringTag,{value:"Module"}));export{u as _};

View File

@ -1 +0,0 @@
import{_ as o}from"./detail-member.vue_vue_type_script_setup_true_lang-bf050950.js";import"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css */import"./member_head-d9fd7b2c.js";import"./member-3d15b900.js";import"./member-point-edit.vue_vue_type_script_setup_true_lang-21b8122c.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";import"./member-balance-edit.vue_vue_type_script_setup_true_lang-c5f99b5d.js";import"./edit-member.vue_vue_type_script_setup_true_lang-eb54a7ae.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-8c50f34e.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-17b86af9.js";import"./attachment-9e0d5f86.js";import"./index.vue_vue_type_script_setup_true_lang-20418369.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-3d9b7185.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang-51212ca7.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./sortable.esm-be94e56d.js";export{o as default};

View File

@ -1 +0,0 @@
import{d as w,r as f,a5 as b,Z as y,h as i,c as d,s as k,w as n,a as l,t as _,u as t,q as a,e,C as S,ak as C,al as B,a0 as E,a9 as z,a3 as D}from"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import{w as N}from"./tools-7c26f9aa.js";const V={class:"main-container min-h-[70vh]"},I={class:"panel-title !text-sm"},T={class:"text-[14px]"},j={class:"mt-[20px]"},q={class:"panel-title !text-sm"},L={class:"text-[14px]"},O={class:"mt-[20px]"},Z={class:"panel-title !text-sm"},A={class:"text-[14px]"},F={key:0},G={key:1},H={class:"mt-[20px]"},J={class:"panel-title !text-sm"},K={class:"text-[14px]"},M={key:0},P={key:1},ie=w({__name:"detection",setup(Q){const o=f({}),p=f(!0);return(()=>{N().then(u=>{o.value=u.data,p.value=!1})})(),(u,U)=>{const s=C,r=B,h=b("Select"),c=E,v=b("CloseBold"),g=z,x=D;return y((i(),d("div",V,[Object.keys(o.value).length?(i(),k(g,{key:0,class:"box-card !border-none",shadow:"never"},{default:n(()=>[l("div",null,[l("h3",I,_(t(a)("serverInformation")),1),l("div",T,[e(r,{data:o.value.server,size:"large"},{default:n(()=>[e(s,{prop:"name",label:t(a)("environment"),align:"left","min-width":"200"},null,8,["label"]),e(s,{prop:"server",label:t(a)("version"),align:"left","min-width":"140"},null,8,["label"])]),_:1},8,["data"])])]),l("div",j,[l("h3",q,_(t(a)("systemDemand")),1),l("div",L,[e(r,{data:o.value.server_version,size:"large"},{default:n(()=>[e(s,{prop:"name",label:t(a)("environment"),align:"left","min-width":"200"},null,8,["label"]),e(s,{prop:"demand",label:t(a)("demand"),align:"left","min-width":"140"},null,8,["label"]),e(s,{prop:"server",label:t(a)("version"),align:"left","min-width":"140"},null,8,["label"])]),_:1},8,["data"])])]),l("div",O,[l("h3",Z,_(t(a)("authorityStatus")),1),l("div",A,[e(r,{data:o.value.system_variables,size:"large"},{default:n(()=>[e(s,{prop:"name",label:t(a)("name"),align:"left","min-width":"200"},null,8,["label"]),e(s,{prop:"need",label:t(a)("demand"),align:"left","min-width":"140"},null,8,["label"]),e(s,{label:t(a)("status"),align:"left","min-width":"140"},{default:n(({row:m})=>[m.status?(i(),d("span",F,[e(c,{color:"green"},{default:n(()=>[e(h)]),_:1})])):(i(),d("span",G,[e(c,{color:"red"},{default:n(()=>[e(v)]),_:1})]))]),_:1},8,["label"])]),_:1},8,["data"])])]),l("div",H,[l("h3",J,_(t(a)("process")),1),l("div",K,[e(r,{data:o.value.process,size:"large"},{default:n(()=>[e(s,{prop:"name",label:t(a)("name"),align:"left","min-width":"200"},null,8,["label"]),e(s,{prop:"need",label:t(a)("demand"),align:"left","min-width":"140"},null,8,["label"]),e(s,{label:t(a)("status"),align:"left","min-width":"140"},{default:n(({row:m})=>[m.status?(i(),d("span",M,[e(c,{color:"green"},{default:n(()=>[e(h)]),_:1})])):(i(),d("span",P,[e(c,{color:"red"},{default:n(()=>[e(v)]),_:1})]))]),_:1},8,["label"])]),_:1},8,["data"])])])]),_:1})):S("",!0)])),[[x,p.value]])}}});export{ie as default};

View File

@ -1 +0,0 @@
import{d as w,r as i,cr as E,n as y,q as l,h as _,c as V,e as n,w as s,Z as B,s as D,a as c,t as d,u as r,i as T,cs as C,L as N,M as R,E as q,N as F,a9 as I,a3 as L}from"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css */const M={class:"main-container"},P={class:"panel-title !text-sm"},S={class:"text-[14px] text-[#a9a9a9] leading-tight mt-[10px]"},J=w({__name:"developer_token",setup(U){const e=i(!0),o=i({token:""});E().then(({data:t})=>{e.value=!1,t.token&&(o.value=t)});const u=i(),v=y({token:[{required:!0,message:l("tokenPlaceholder"),trigger:"blur"}]}),f=async t=>{e.value||!t||await t.validate(async a=>{a&&(e.value=!0,C(o.value).then(()=>{e.value=!1}).catch(()=>{e.value=!1}))})};return(t,a)=>{const k=N,m=R,h=q,g=F,x=I,b=L;return _(),V("div",M,[n(x,{class:"box-card !border-none",shadow:"never"},{default:s(()=>[B((_(),D(g,{class:"page-form",model:o.value,"label-width":"0",ref_key:"formRef",ref:u,rules:v},{default:s(()=>[c("h3",P,d(r(l)("developerTokenEdit")),1),n(m,{label:"",prop:"token"},{default:s(()=>[c("div",null,[n(k,{modelValue:o.value.token,"onUpdate:modelValue":a[0]||(a[0]=p=>o.value.token=p),modelModifiers:{trim:!0},placeholder:r(l)("tokenPlaceholder"),class:"input-width",clearable:"",maxlength:"30"},null,8,["modelValue","placeholder"])]),c("div",S,d(r(l)("tokenTips")),1)]),_:1}),n(m,{label:""},{default:s(()=>[n(h,{type:"primary",loading:e.value,onClick:a[1]||(a[1]=p=>f(u.value))},{default:s(()=>[T(d(r(l)("save")),1)]),_:1},8,["loading"])]),_:1})]),_:1},8,["model","rules"])),[[b,e.value]])]),_:1})])}}});export{J as default};

View File

@ -1 +0,0 @@
import{P as e}from"./index-981069db.js";function c(t){return e.get("dict/dict",{params:t})}function i(t){return e.get(`dict/dict/${t}`)}function u(t){return e.post("dict/dict",t,{showErrorMessage:!0,showSuccessMessage:!0})}function o(t){return e.put(`dict/dict/${t.id}`,t,{showErrorMessage:!0,showSuccessMessage:!0})}function n(t){return e.delete(`dict/dict/${t}`,{showErrorMessage:!0,showSuccessMessage:!0})}function a(t,s){return e.put(`dict/dictionary/${t}`,s,{showErrorMessage:!0,showSuccessMessage:!0})}function d(){return e.get("dict/all")}export{u as a,c as b,d as c,n as d,o as e,i as g,a as s};

View File

@ -1 +0,0 @@
import{_ as o}from"./dict.vue_vue_type_style_index_0_lang-3519a2b1.js";import"./index-981069db.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./dict-6b43be3b.js";export{o as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{P as t}from"./index-981069db.js";function i(e){return t.get("diy/diy",{params:e})}function u(e){return t.get("diy/carousel_search",{params:e})}function n(e){return t.post("diy/diy",e,{showSuccessMessage:!0})}function r(e){return t.put(`diy/diy/${e.id}`,e,{showSuccessMessage:!0})}function o(e){return t.put(`diy/use/${e.id}`,e,{showSuccessMessage:!0})}function a(e){return t.put("diy/diy/share",e,{showSuccessMessage:!0})}function c(e){return t.delete(`diy/diy/${e}`,{showSuccessMessage:!0})}function g(e){return t.get("diy/init",{params:e})}function y(e){return t.get("diy/link",{params:e})}function d(e){return t.get("diy/bottom",{params:e})}function f(e){return t.get("diy/bottom/config",{params:e})}function h(e){return t.post("diy/bottom",e,{showSuccessMessage:!0})}function p(e){return t.get("diy/template",{params:e})}function m(e){return t.get("diy/template/pages",{params:e})}function D(e){return t.get("diy/route",{params:e})}function l(){return t.get("diy/route/apps")}function S(e){return t.get("diy/route/info",{params:e})}function w(e){return t.put("diy/route/share",e,{showSuccessMessage:!0})}function M(e){return t.get("diy/decorate",{params:e})}function P(e){return t.put("diy/change",e,{showSuccessMessage:!0})}function T(e){return t.get("diy/apps")}function L(e){return t.post("diy/copy",e,{showSuccessMessage:!0})}function k(e){return t.get("diy/page_link",{params:e})}function B(e){return t.get("diy/theme/color",{params:e})}function $(e){return t.get("diy/theme",{params:e})}function b(e){return t.post("diy/theme/add",e)}function C(e){return t.put(`diy/theme/edit/${e.id}`,e,{showSuccessMessage:!0})}function R(e){return t.delete(`diy/theme/delete/${e}`,{showSuccessMessage:!0})}function A(e){return t.post("diy/theme",e,{showSuccessMessage:!0})}export{h as A,$ as B,k as C,u as a,b,B as c,R as d,C as e,m as f,y as g,r as h,g as i,n as j,M as k,P as l,T as m,p as n,i as o,o as p,L as q,c as r,A as s,a as t,l as u,D as v,S as w,w as x,d as y,f as z};

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