mirror of
https://gitee.com/niucloud-team/niucloud.git
synced 2026-07-22 07:07:42 +00:00
v2.0.0
This commit is contained in:
parent
316dc91802
commit
f0c3d2af5c
@ -25,9 +25,7 @@ function publish() {
|
||||
fixIndexHtml()
|
||||
|
||||
if (!fs.existsSync(dest)) {
|
||||
console.error(`[publish] target not found: ${dest}`)
|
||||
console.error('[publish] set PUBLISH_DEST to your web admin directory')
|
||||
process.exit(1)
|
||||
return
|
||||
}
|
||||
|
||||
fs.rmSync(dest, { recursive: true, force: true, maxRetries: 5, retryDelay: 200 })
|
||||
|
||||
@ -11,6 +11,7 @@ const path = require('path')
|
||||
const { spawnSync } = require('child_process')
|
||||
const { ROOT } = require('./addon-utils.cjs')
|
||||
const { SHARED_BUILD_ORDER } = require('./shared-external.cjs')
|
||||
const { scanDirExports, resolveConflicts, buildReExportStatements } = require('./scan-exports.cjs')
|
||||
|
||||
/** 临时入口目录,每次构建前重写 */
|
||||
const SHARED_SRC = path.join(ROOT, '.build', 'shared')
|
||||
@ -33,30 +34,26 @@ const ENTRY_CONTENT = {
|
||||
function writeEntries() {
|
||||
fs.mkdirSync(SHARED_SRC, { recursive: true })
|
||||
|
||||
// 动态生成 core-shared:全量重导出所有 @/app/api/* + @/utils/* 模块
|
||||
// 通用冲突映射:{ "module:name" -> "module_name" }
|
||||
const allConflicts = {}
|
||||
|
||||
// 1a. 扫描 app/api 目录(排除 addon.ts / module.ts)
|
||||
const apiDir = path.join(ROOT, 'src', 'app', 'api')
|
||||
const apiExports = []
|
||||
if (fs.existsSync(apiDir)) {
|
||||
for (const f of fs.readdirSync(apiDir)) {
|
||||
if (f.endsWith('.ts') && f !== 'addon.ts' && f !== 'module.ts') {
|
||||
const mod = f.replace('.ts', '')
|
||||
apiExports.push(`export * from '../../src/app/api/${mod}'`)
|
||||
}
|
||||
}
|
||||
}
|
||||
const apiFiles = scanDirExports(apiDir, { exclude: ['addon.ts', 'module.ts'] })
|
||||
const { resolved: apiResolved, conflicts: apiConflicts } = resolveConflicts(apiFiles)
|
||||
Object.assign(allConflicts, apiConflicts)
|
||||
const apiExports = buildReExportStatements(apiResolved, '../../src/app/api')
|
||||
|
||||
// 1b. 扫描 utils 目录中被重导出的文件
|
||||
const utilsDir = path.join(ROOT, 'src', 'utils')
|
||||
const utilsExports = []
|
||||
if (fs.existsSync(utilsDir)) {
|
||||
for (const f of fs.readdirSync(utilsDir)) {
|
||||
// common, request, storage, config 单独处理,其余全量重导出
|
||||
if (f.endsWith('.ts') && f !== 'common.ts' && f !== 'request.ts' && f !== 'storage.ts' && f !== 'config.ts' && f !== 'test.ts' && f !== 'directives.ts' && f !== 'tianditu.ts' && f !== 'qqmap.ts' && f !== 'addon-loader.ts' && f !== 'addon-lang.ts') {
|
||||
const mod = f.replace('.ts', '')
|
||||
utilsExports.push(`export * from '../../src/utils/${mod}'`)
|
||||
}
|
||||
}
|
||||
}
|
||||
const utilsExclude = ['common.ts', 'request.ts', 'storage.ts', 'config.ts', 'test.ts',
|
||||
'directives.ts', 'addon-loader.ts', 'addon-lang.ts', 'tianditu.ts', 'qqmap.ts']
|
||||
const utilsFiles = scanDirExports(utilsDir, { exclude: utilsExclude })
|
||||
const { resolved: utilsResolved, conflicts: utilsConflicts } = resolveConflicts(utilsFiles)
|
||||
Object.assign(allConflicts, utilsConflicts)
|
||||
const utilsExports = buildReExportStatements(utilsResolved, '../../src/utils')
|
||||
|
||||
// 2. 生成 core-shared 入口
|
||||
ENTRY_CONTENT['core-shared'] = [
|
||||
"export * from '../../src/utils/common'",
|
||||
"import _request from '../../src/utils/request'",
|
||||
@ -68,7 +65,6 @@ function writeEntries() {
|
||||
"export { _config as config }",
|
||||
"export { _test as test }",
|
||||
"export default _request",
|
||||
// qqmap 独立导出(与 tianditu 同名冲突,tianditu 由 addon 直接打包)
|
||||
"export * from '../../src/utils/qqmap'",
|
||||
...utilsExports,
|
||||
...apiExports,
|
||||
@ -81,6 +77,15 @@ function writeEntries() {
|
||||
for (const [key, content] of Object.entries(ENTRY_CONTENT)) {
|
||||
fs.writeFileSync(path.join(SHARED_SRC, `${key}.ts`), content, 'utf-8')
|
||||
}
|
||||
|
||||
// 3. 保存冲突映射
|
||||
if (Object.keys(allConflicts).length) {
|
||||
fs.writeFileSync(path.join(ROOT, '.build', 'export-conflicts.json'), JSON.stringify(allConflicts, null, 2), 'utf-8')
|
||||
console.log(`[build-shared] conflicts: ${Object.keys(allConflicts).length} entries`)
|
||||
}
|
||||
if (Object.keys(apiConflicts).length) {
|
||||
fs.writeFileSync(path.join(ROOT, '.build', 'api-conflicts.json'), JSON.stringify(apiConflicts, null, 2), 'utf-8')
|
||||
}
|
||||
}
|
||||
|
||||
/** 构建单个 shared 包;仅第一个包 emptyOutDir 清空 .shared */
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
const { ROOT, ADDON_DIR, scanAddonViews, scanAddonLang } = require('./addon-utils.cjs')
|
||||
const { scanRecursive, resolveConflicts } = require('./scan-exports.cjs')
|
||||
|
||||
const key = process.argv[2] || process.env.ADDON_KEY
|
||||
if (!key) {
|
||||
@ -95,6 +96,24 @@ const langsBlock = Object.keys(langByLocale).length
|
||||
|
||||
const langCount = Object.values(langMap).reduce((n, files) => n + files.length, 0)
|
||||
|
||||
// 插件内部导出冲突检测:扫描 ts/js,告警同名导出及入口保留名冲突
|
||||
const addonSrcDir = path.join(ADDON_DIR, key)
|
||||
const addonFiles = scanRecursive(addonSrcDir, { exclude: ['lang', 'views', 'components'], extensions: ['.ts', '.js'] })
|
||||
const { conflicts: addonConflicts, resolved: addonResolved } = resolveConflicts(addonFiles)
|
||||
const entryReserved = new Set(['addonKey', 'sharedVersion', 'views', 'components', 'langs', 'ROUTE', 'NO_LOGIN_ROUTES'])
|
||||
const routerFileKey = 'router_index'
|
||||
const reservedConflicts = addonResolved.filter(r =>
|
||||
r.normal.some(n => entryReserved.has(n) && r.module !== routerFileKey)
|
||||
)
|
||||
if (reservedConflicts.length) {
|
||||
console.warn(`[addon-entry] ${key}: exports conflicting with entry reserved names:`)
|
||||
reservedConflicts.forEach(r => r.normal.filter(n => entryReserved.has(n)).forEach(n =>
|
||||
console.warn(` ${r.module} exports "${n}" which is reserved`)))
|
||||
}
|
||||
if (Object.keys(addonConflicts).length) {
|
||||
console.warn(`[addon-entry] ${key}: ${Object.keys(addonConflicts).length} internal export conflict(s)`)
|
||||
}
|
||||
|
||||
const content = `/* AUTO-GENERATED entry for addon "${key}" */
|
||||
${langImports.join('\n')}
|
||||
|
||||
|
||||
103
admin/scripts/scan-exports.cjs
Normal file
103
admin/scripts/scan-exports.cjs
Normal file
@ -0,0 +1,103 @@
|
||||
/**
|
||||
* 通用导出冲突扫描器
|
||||
* 扫描目录下 .ts/.js 文件的 export,检测同名冲突,返回冲突映射。
|
||||
*/
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
|
||||
const DEFAULT_EXTENSIONS = ['.ts', '.js', '.tsx', '.jsx']
|
||||
|
||||
/** 从源码中提取所有命名导出名称 */
|
||||
function scanExports(src) {
|
||||
const names = []
|
||||
// export const|let|var|function|class|type|interface|enum NAME
|
||||
const declRe = /export\s+(?:const|let|var|function|class|type|interface|enum)\s+(\w+)/g
|
||||
for (const m of src.matchAll(declRe)) names.push(m[1])
|
||||
// export { a, b, c as d }
|
||||
const braceRe = /export\s*(?:type\s*)?\{([^}]+)\}/g
|
||||
for (const m of src.matchAll(braceRe)) {
|
||||
for (const item of m[1].split(',').map(s => s.trim()).filter(Boolean)) {
|
||||
const parts = item.split(/\s+(?:as|:)\s+/)
|
||||
names.push(parts.length > 1 ? parts[parts.length - 1].trim() : parts[0].trim())
|
||||
}
|
||||
}
|
||||
return [...new Set(names)]
|
||||
}
|
||||
|
||||
/** 扫描目录,返回文件列表 */
|
||||
function scanDirExports(dir, opts = {}) {
|
||||
const exclude = new Set(opts.exclude || [])
|
||||
const exts = new Set(opts.extensions || DEFAULT_EXTENSIONS)
|
||||
if (!fs.existsSync(dir)) return []
|
||||
const out = []
|
||||
for (const f of fs.readdirSync(dir)) {
|
||||
const full = path.join(dir, f)
|
||||
if (!fs.statSync(full).isFile()) continue
|
||||
if (![...exts].some(e => f.endsWith(e))) continue
|
||||
if (exclude.has(f) || exclude.has(full)) continue
|
||||
out.push({ moduleKey: f.replace(/\.[^.]+$/, ''), path: full })
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
/** 递归扫描目录 */
|
||||
function scanRecursive(dir, opts = {}) {
|
||||
const exclude = new Set(opts.exclude || [])
|
||||
const exts = new Set(opts.extensions || DEFAULT_EXTENSIONS)
|
||||
const out = []
|
||||
if (!fs.existsSync(dir)) return out
|
||||
function walk(base, rel) {
|
||||
for (const name of fs.readdirSync(base)) {
|
||||
const relPath = rel ? `${rel}/${name}` : name
|
||||
if (exclude.has(relPath) || exclude.has(name)) continue
|
||||
const full = path.join(base, name)
|
||||
const stat = fs.statSync(full)
|
||||
if (stat.isDirectory()) walk(full, relPath)
|
||||
else if (stat.isFile() && [...exts].some(e => name.endsWith(e)))
|
||||
out.push({ moduleKey: relPath.replace(/\.[^.]+$/, '').replace(/[\\/]/g, '_'), path: full })
|
||||
}
|
||||
}
|
||||
walk(dir, '')
|
||||
return out
|
||||
}
|
||||
|
||||
/**
|
||||
* 检测并解决导出冲突。按 moduleKey 字母序处理,
|
||||
* 先导出的保留原名,后出现的加 moduleKey 前缀。
|
||||
*/
|
||||
function resolveConflicts(files, opts = {}) {
|
||||
const sorted = [...files].sort((a, b) => a.moduleKey.localeCompare(b.moduleKey))
|
||||
const exportedNames = new Set()
|
||||
const conflicts = {}
|
||||
const resolved = []
|
||||
for (const file of sorted) {
|
||||
const src = fs.readFileSync(file.path, 'utf-8')
|
||||
const names = scanExports(src)
|
||||
const normal = []; const renamed = []
|
||||
for (const name of names) {
|
||||
if (!exportedNames.has(name)) { exportedNames.add(name); normal.push(name) }
|
||||
else {
|
||||
const newName = opts.prefixer ? opts.prefixer(file, name) : file.moduleKey + '_' + name
|
||||
exportedNames.add(newName); renamed.push(name)
|
||||
conflicts[file.moduleKey + ':' + name] = newName
|
||||
}
|
||||
}
|
||||
resolved.push({ module: file.moduleKey, normal, renamed, src: file.path })
|
||||
}
|
||||
return { resolved, conflicts }
|
||||
}
|
||||
|
||||
/** 生成 re-export 语句 */
|
||||
function buildReExportStatements(resolved, modulePathPrefix) {
|
||||
const lines = []
|
||||
for (const r of resolved) {
|
||||
if (r.normal.length) lines.push(`export { ${r.normal.join(', ')} } from '${modulePathPrefix}/${r.module}'`)
|
||||
if (r.renamed.length) {
|
||||
const renamedStr = r.renamed.map(n => `${n} as ${r.module}_${n}`).join(', ')
|
||||
lines.push(`export { ${renamedStr} } from '${modulePathPrefix}/${r.module}'`)
|
||||
}
|
||||
}
|
||||
return lines
|
||||
}
|
||||
|
||||
module.exports = { scanExports, scanDirExports, scanRecursive, resolveConflicts, buildReExportStatements }
|
||||
@ -60,6 +60,30 @@ export default defineConfig({
|
||||
/import\s+(\w+)\s+from\s+['"]@\/utils\/test['"]/g,
|
||||
"import { test as $1 } from '@/utils/test'"
|
||||
)
|
||||
// 处理导出同名冲突:import { X } from '@/app/api/mod' / '@/utils/mod'
|
||||
// 优先 export-conflicts.json,兼容旧版 api-conflicts.json
|
||||
let conflicts = {}
|
||||
const sources = [
|
||||
fileURLToPath(new URL('./.build/export-conflicts.json', import.meta.url)),
|
||||
fileURLToPath(new URL('./.build/api-conflicts.json', import.meta.url))
|
||||
]
|
||||
for (const p of sources) { try { conflicts = { ...conflicts, ...require(p) } } catch (_) {} }
|
||||
if (Object.keys(conflicts).length) {
|
||||
code = code.replace(
|
||||
/import\s+\{([^}]+)\}\s+from\s+['"]@\/(?:app\/api|utils)\/(\w+)['"]/g,
|
||||
(match: string, names: string, mod: string) => {
|
||||
const remapped = names.split(',').map(n => {
|
||||
const trimmed = n.trim()
|
||||
const [name, alias] = trimmed.includes(' as ') ? trimmed.split(' as ').map(s => s.trim()) : [trimmed, trimmed]
|
||||
const key = mod + ':' + name
|
||||
if (conflicts[key]) return conflicts[key] + ' as ' + alias
|
||||
return trimmed
|
||||
})
|
||||
const ns = match.includes('@/app/api') ? '@/app/api' : '@/utils'
|
||||
return 'import { ' + remapped.join(', ') + ' } from \'' + ns + '/' + mod + '\''
|
||||
}
|
||||
)
|
||||
}
|
||||
// 处理 export { default as ... } from '@/utils/storage|config|test'
|
||||
code = code.replace(
|
||||
/export\s+\{\s*default\s+as\s+(\w+)\s*\}\s+from\s+['"]@\/utils\/(storage|config|test)['"]/g,
|
||||
|
||||
@ -59,4 +59,16 @@ class Area extends BaseApiController
|
||||
]);
|
||||
return success((new AreaService())->getAddressByLatlng($data));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过地址查询经纬度(地理编码)
|
||||
* @return Response
|
||||
*/
|
||||
public function getLatlngByAddress()
|
||||
{
|
||||
$data = $this->request->params([
|
||||
['address', '']
|
||||
]);
|
||||
return success((new AreaService())->getLatlngByAddress($data));
|
||||
}
|
||||
}
|
||||
|
||||
@ -128,6 +128,7 @@ Route::group(function () {
|
||||
|
||||
// 通过经纬度查询地址
|
||||
Route::get('area/address_by_latlng', 'sys.Area/getAddressByLatlng');
|
||||
Route::get('area/latlng_by_address', 'sys.Area/getLatlngByAddress');
|
||||
|
||||
/***************************************************** 海报管理 ****************************************************/
|
||||
//获取海报
|
||||
|
||||
@ -182,7 +182,7 @@ class Workerman extends Command
|
||||
$addon_path = $addon_dir . $v[ 'key' ] . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'job';
|
||||
if (is_dir($addon_path)) {
|
||||
search_dir($addon_path, $addon_data, root_path());
|
||||
$class_list = array_merge($class_list, array_filter($addon_data));
|
||||
$class_list = array_merge($class_list, array_filter($addon_data ?? []));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -141,6 +141,7 @@ class NoticeTypeDict
|
||||
}
|
||||
|
||||
const PARAMS_TYPE_VALID_CODE = 'valid_code';
|
||||
const PARAMS_TYPE_MOBILE_NUMBER = 'mobile_number';
|
||||
const PARAMS_TYPE_OTHER_NUMBER = 'other_number';
|
||||
const PARAMS_TYPE_AMOUNT = 'amount';
|
||||
const PARAMS_TYPE_DATE = 'date';
|
||||
@ -153,16 +154,24 @@ class NoticeTypeDict
|
||||
[
|
||||
'name' => '验证码',
|
||||
'type' => self::PARAMS_TYPE_VALID_CODE,
|
||||
'desc' => '4-6位纯数字',
|
||||
'rule' => '/^\d$/',
|
||||
'desc' => '4-6位纯数字/纯英文,或数字英文组合,英文支持大小写',
|
||||
'rule' => '/^[a-zA-Z0-9]+$/',
|
||||
'min'=>4,
|
||||
'max'=>6
|
||||
],
|
||||
[
|
||||
'name' => '其他号码(手机号)',
|
||||
'name' => '电话号码',
|
||||
'type' => self::PARAMS_TYPE_MOBILE_NUMBER,
|
||||
'desc' => '1-15位纯数字',
|
||||
'rule'=>'/^\d+$/',
|
||||
'min'=>1,
|
||||
'max'=>15
|
||||
],
|
||||
[
|
||||
'name' => '其他号码',
|
||||
'type' => self::PARAMS_TYPE_OTHER_NUMBER,
|
||||
'desc' => '1-20位字母+数字组合',
|
||||
'rule'=>'/^[a-zA-Z0-9]$/',
|
||||
'desc' => '1-20位英文+数字组合,支持中划线-',
|
||||
'rule'=>'/^[a-zA-Z0-9-]+$/',
|
||||
'min'=>1,
|
||||
'max'=>20
|
||||
],
|
||||
@ -170,18 +179,20 @@ class NoticeTypeDict
|
||||
'name' => '金额',
|
||||
'type' => self::PARAMS_TYPE_AMOUNT,
|
||||
'desc' => '支持数字或数字的中文 (壹贰叁肆伍陆柒捌玖拾佰仟万亿 圆元整角分厘毫)',
|
||||
'rule' => "/^(?:\d+|(?:[零壹贰叁肆伍陆柒捌玖拾佰仟万亿圆角分厘毫]+|圆|元|整)+)$/u"
|
||||
'rule' => "/^(?:\d+(?:\.\d+)?|[零壹贰叁肆伍陆柒捌玖拾佰仟万亿圆角分厘毫圆元整]+)$/u"
|
||||
],
|
||||
[
|
||||
'name' => '日期',
|
||||
'type' => self::PARAMS_TYPE_DATE,
|
||||
'desc' => '符合时间的表达方式 也支持中文:2019年9月3日16时24分35秒',
|
||||
'rule' => ''
|
||||
'desc' => '符合时间的表达方式 也支持中文:2019年9月3日16时24分35秒,最多20位',
|
||||
'rule' => '',
|
||||
'min'=>1,
|
||||
'max'=>20
|
||||
],
|
||||
[
|
||||
'name' => '中文',
|
||||
'type' => self::PARAMS_TYPE_CHINESE,
|
||||
'desc' => '1-15中文,支持中文圆括号()',
|
||||
'desc' => '1-15个中文,支持中文圆括号()',
|
||||
'rule' => '/^[\p{Han}()]+$/u',
|
||||
'min'=>1,
|
||||
'max'=>15
|
||||
@ -189,18 +200,18 @@ class NoticeTypeDict
|
||||
[
|
||||
'name' => '纯数字',
|
||||
'type' => self::PARAMS_TYPE_INT_NUMBER,
|
||||
'desc' => ' 1-10个数字',
|
||||
'rule' => '/^\d$/',
|
||||
'desc' => '1-10个数字',
|
||||
'rule' => '/^\d+$/',
|
||||
'min'=>1,
|
||||
'max'=>10
|
||||
],
|
||||
[
|
||||
'name' => '其他',
|
||||
'type' => self::PARAMS_TYPE_OTHERS,
|
||||
'desc' => ' 1-30个中文数字字母组合,支持中文符号。',
|
||||
'rule' => '/^[\p{Han}\p{N}\p{L}\p{P}\p{S}\s]$/u',
|
||||
'desc' => '1-20个中文英文数字组合,支持中文符号和空格',
|
||||
'rule' => '/^[\p{Han}\p{N}\p{L}\p{P}\p{S}\s]+$/u',
|
||||
'min'=>1,
|
||||
'max'=>30
|
||||
'max'=>20
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
@ -120,7 +120,7 @@ class AuthService extends BaseAdminService
|
||||
if (!$this->isCheckDomain()) return;
|
||||
|
||||
$site_address = $authinfo['site_address'] ?? '';
|
||||
$domain = request()->domain();
|
||||
$domain = str_replace(['http://', 'https://'], '', request()->domain());
|
||||
|
||||
// 如果是站点域名不进行验证
|
||||
$site_id = (new CoreSiteService())->getSiteIdByDomain($domain);
|
||||
|
||||
@ -63,18 +63,25 @@ class SiteService extends BaseAdminService
|
||||
*/
|
||||
public function getPage(array $where = [])
|
||||
{
|
||||
|
||||
$admin_site_info = $this->model->where([['site_id', '=', 0]])->field('logo, icon')->findOrEmpty()->toArray();
|
||||
$field = 'site_id, site_name, front_end_name, front_end_logo, front_end_icon, app_type, keywords, logo, icon, `desc`, status, latitude, longitude, province_id, city_id,
|
||||
district_id, address, full_address, phone, business_hours, create_time, expire_time, group_id, app, addons, site_domain';
|
||||
$condition = [
|
||||
['app_type', '<>', 'admin']
|
||||
];
|
||||
$search_model = $this->model->where($condition)->withSearch(['create_time', 'expire_time', 'keywords', 'status', 'group_id', 'app', 'site_domain'], $where)->with(['groupName'])->field($field)->append(['status_name'])->order('create_time desc');
|
||||
return $this->pageQuery($search_model, function ($item) {
|
||||
return $this->pageQuery($search_model, function ($item) use ($admin_site_info) {
|
||||
$item['admin'] = (new SysUserRole())->where([['site_id', '=', $item['site_id']], ['is_admin', '=', 1]])
|
||||
->field('uid')
|
||||
->with(['userinfo'])
|
||||
->findOrempty()->toArray();
|
||||
|
||||
if (empty($item['logo'])) {
|
||||
$item['logo'] = $admin_site_info['logo'] ?? 'static/resource/images/site/logo.png';
|
||||
}
|
||||
if (empty($item['icon'])) {
|
||||
$item['icon'] = $admin_site_info['icon'] ?? 'static/resource/images/site/icon.jpg';
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -93,11 +100,15 @@ class SiteService extends BaseAdminService
|
||||
$info['site_addons'] = (new Addon())->where([['key', 'in', $site_addons]])->field('key,title,desc,icon,type')->select()->toArray();
|
||||
$info['uid'] = (new SysUserRole())->where([['site_id', '=', $site_id], ['is_admin', '=', 1]])->value('uid');
|
||||
}
|
||||
|
||||
if(empty($info['logo']) || empty($info['icon'])){
|
||||
$admin_site_info = $this->model->where([['site_id', '=', 0]])->field('logo, icon')->findOrEmpty()->toArray();
|
||||
}
|
||||
if (empty($info['logo'])) {
|
||||
$info['logo'] = 'static/resource/images/site/logo.png';
|
||||
$info['logo'] = $admin_site_info['logo'] ?? 'static/resource/images/site/logo.png';
|
||||
}
|
||||
if (empty($info['icon'])) {
|
||||
$info['icon'] = 'static/resource/images/site/icon.png';
|
||||
$info['icon'] = $admin_site_info['icon'] ?? 'static/resource/images/site/icon.png';
|
||||
}
|
||||
return $info;
|
||||
}
|
||||
@ -115,6 +126,8 @@ class SiteService extends BaseAdminService
|
||||
if ($site_group->isEmpty()) throw new CommonException('SITE_GROUP_NOT_EXIST');
|
||||
|
||||
$data['app_type'] = 'site';
|
||||
$admin_site_info = $this->model->where([['site_id', '=', 0]])->field('logo, icon')->findOrEmpty()->toArray();
|
||||
|
||||
//添加站点
|
||||
$data_site = [
|
||||
'site_domain' => $data['site_domain'] ?? '',
|
||||
@ -126,7 +139,8 @@ class SiteService extends BaseAdminService
|
||||
'app' => $site_group['app'],
|
||||
'addons' => '',
|
||||
'status' => strtotime($data['expire_time']) > time() ? SiteDict::ON : SiteDict::EXPIRE,
|
||||
'icon' => 'static/resource/images/site/site_icon.jpg'
|
||||
'icon' => $admin_site_info['icon'] ?? 'static/resource/images/site/icon.jpg',
|
||||
'logo' => $admin_site_info['logo'] ?? 'static/resource/images/site/logo.png',
|
||||
];
|
||||
Db::startTrans();
|
||||
try {
|
||||
|
||||
@ -100,6 +100,46 @@ class AreaService extends BaseApiService
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过地址查询经纬度(地理编码)
|
||||
* @param $params
|
||||
* @return array
|
||||
*/
|
||||
public function getLatlngByAddress($params)
|
||||
{
|
||||
$map = ( new ConfigService() )->getMap();
|
||||
$map_type = $map['map_type'] ?? 'tianditu';
|
||||
|
||||
if ($map_type == 'tencent') {
|
||||
$map_service = new \app\service\core\map\CoreQqMap($this->site_id);
|
||||
$res = $map_service->addressToDetail(['address' => $params['address']]);
|
||||
} else {
|
||||
$map_service = new \app\service\core\map\CoreTiandituMap($this->site_id);
|
||||
$res = $map_service->addressToDetail(['address' => $params['address']]);
|
||||
}
|
||||
|
||||
if (is_string($res)) {
|
||||
$res = json_decode($res, true);
|
||||
}
|
||||
|
||||
if ($res) {
|
||||
if ($res['status'] == 0) {
|
||||
$location = $res['result']['location'] ?? [];
|
||||
return [
|
||||
'lat' => $location['lat'] ?? 0,
|
||||
'lng' => $location['lng'] ?? 0,
|
||||
'province' => $res['result']['address_component']['province'] ?? '',
|
||||
'city' => $res['result']['address_component']['city'] ?? '',
|
||||
'district' => $res['result']['address_component']['district'] ?? '',
|
||||
];
|
||||
} else {
|
||||
throw new ApiException('请检查地图配置:'.$res['message']);
|
||||
}
|
||||
} else {
|
||||
throw new ApiException('地图接口请求失败');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过经纬度查询地址
|
||||
* @param $params
|
||||
|
||||
@ -96,7 +96,7 @@ class CoreAppCloudService extends CoreCloudBaseService
|
||||
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');
|
||||
$this->uniappEnvReplace($uni_dir . DIRECTORY_SEPARATOR . '.env.production');
|
||||
|
||||
// 拷贝证书文件
|
||||
if ($data['cert']['type'] == 'private') {
|
||||
@ -266,16 +266,28 @@ class CoreAppCloudService extends CoreCloudBaseService
|
||||
}
|
||||
|
||||
/**
|
||||
* 小程序上传env文件处理
|
||||
* env文件处理
|
||||
* @param string $env_file
|
||||
* @return void
|
||||
*/
|
||||
private function weappEnvReplace(string $env_file)
|
||||
private function uniappEnvReplace(string $env_file)
|
||||
{
|
||||
$env = file_get_contents($env_file);
|
||||
$env = str_replace("VITE_APP_BASE_URL=''", "VITE_APP_BASE_URL='" . (string) url('/', [], '', true) . 'api/' . "'", $env);
|
||||
$env = str_replace("VITE_IMG_DOMAIN=''", "VITE_IMG_DOMAIN='" . (string) url('/', [], '', true) . "'", $env);
|
||||
$env = str_replace("VITE_SITE_ID = ''", "VITE_SITE_ID='" . $this->site_id . "'", $env);
|
||||
$base_url = (string) url('/', [], '', true);
|
||||
$site_id = $this->site_id;
|
||||
|
||||
$env = preg_replace_callback(
|
||||
"/(VITE_APP_BASE_URL|VITE_IMG_DOMAIN|VITE_SITE_ID)\s*=\s*''/",
|
||||
function ($matches) use ($base_url, $site_id) {
|
||||
return match ($matches[1]) {
|
||||
'VITE_APP_BASE_URL' => "VITE_APP_BASE_URL='{$base_url}api/'",
|
||||
'VITE_IMG_DOMAIN' => "VITE_IMG_DOMAIN='{$base_url}'",
|
||||
'VITE_SITE_ID' => "VITE_SITE_ID='{$site_id}'",
|
||||
};
|
||||
},
|
||||
$env
|
||||
);
|
||||
|
||||
file_put_contents($env_file, $env);
|
||||
}
|
||||
|
||||
|
||||
@ -372,7 +372,7 @@ class CoreCloudBuildService extends BaseCoreService
|
||||
} else {
|
||||
// 压缩包解压失败 尝试重新下载
|
||||
if (!isset($this->build_task[ 'retry' ])) {
|
||||
unlink($zip_resource);
|
||||
unlink($zipFile);
|
||||
$this->build_task['retry'] = 1;
|
||||
unset($this->build_task['index']);
|
||||
Cache::set($this->cache_key, $this->build_task);
|
||||
|
||||
@ -152,10 +152,14 @@ class CorePosterService extends BaseCoreService
|
||||
'param' => $param,
|
||||
'channel' => $channel
|
||||
])));
|
||||
|
||||
// 合并模版数据
|
||||
foreach ($poster_data_arr as $k => $v) {
|
||||
$poster_data = array_merge($poster_data, $v);
|
||||
}
|
||||
if( isset($poster_data['goods_img']) && !empty($poster_data['goods_img']) ) {
|
||||
$poster_data['goods_img'] = get_file_url($poster_data['goods_img']);
|
||||
}
|
||||
|
||||
$dir = 'upload/poster/' . $site_id;
|
||||
$temp1 = md5(json_encode($poster));
|
||||
@ -166,7 +170,7 @@ class CorePosterService extends BaseCoreService
|
||||
//判断当前海报是否存在,存在直接返回地址,不存在的话则创建
|
||||
|
||||
if (is_file($path)) {
|
||||
return $path;
|
||||
return get_file_url($path);
|
||||
} else {
|
||||
return $this->create($site_id, $poster, $poster_data, $dir, $file_path, $channel);
|
||||
}
|
||||
@ -195,7 +199,7 @@ class CorePosterService extends BaseCoreService
|
||||
//将模版中的部分待填充值替换
|
||||
$core_upload_service = new CoreFetchService();
|
||||
if ($poster['global']['bgType'] == 'url') {
|
||||
if (!empty($poster['global']['bgUrl']) && str_contains($poster['global']['bgUrl'], 'http://') || str_contains($poster['global']['bgUrl'], 'https://')) {
|
||||
if (!empty($poster['global']['bgUrl']) && (str_contains($poster['global']['bgUrl'], 'http://') || str_contains($poster['global']['bgUrl'], 'https://'))) {
|
||||
//判断是否是是远程图片,远程图片需要本地化
|
||||
$temp_dir = 'file/' . 'image' . '/' . $site_id . '/' . date('Ym') . '/' . date('d');
|
||||
try {
|
||||
|
||||
@ -58,6 +58,16 @@ class CoreSiteService extends BaseCoreService
|
||||
];
|
||||
$info = $this->model->where($where)->field('site_id, site_name, front_end_name, front_end_logo,front_end_icon, app_type, keywords, logo, icon, `desc`, status, latitude, longitude, province_id, city_id, district_id, address, full_address, phone, business_hours, create_time, expire_time, group_id, app, addons, site_domain, meta_title, meta_desc, meta_keyword')->append([ 'status_name' ])->findOrEmpty()->toArray();
|
||||
if (!empty($info)) {
|
||||
if($site_id == 0){
|
||||
$info['icon'] = !empty($info['icon']) ? $info['icon'] : 'static/resource/images/site/icon.jpg';
|
||||
$info['logo'] = !empty($info['logo']) ? $info['logo'] : 'static/resource/images/site/logo.png';
|
||||
}else {
|
||||
if (empty($info['logo']) || empty($info['icon'])){
|
||||
$admin_site_info = $this->model->where($where)->field('logo, icon')->findOrEmpty()->toArray();
|
||||
$info['icon'] = empty($info['icon']) ? $admin_site_info['icon'] : $info['icon'];
|
||||
$info['logo'] = empty($info['logo']) ? $admin_site_info['logo'] : $info['logo'];
|
||||
}
|
||||
}
|
||||
$site_addons = ( new CoreSiteService() )->getAddonKeysBySiteId((int) $site_id);
|
||||
$info[ 'apps' ] = ( new Addon() )->where([ [ 'key', 'in', $site_addons ], [ 'type', '=', AddonDict::APP ] ])->field('key,title,desc,icon,type,support_app')->select()->toArray();
|
||||
$info[ 'site_addons' ] = ( new Addon() )->where([ [ 'key', 'in', $site_addons ], [ 'type', '=', AddonDict::ADDON ] ])->field('key,title,desc,icon,type,support_app')->select()->toArray();
|
||||
|
||||
@ -97,23 +97,53 @@ class Niuyun extends BaseSms
|
||||
$params_type_arr = NoticeTypeDict::getApiParamsType();
|
||||
$type_arr = array_column($params_type_arr, null, 'type');
|
||||
$return = [];
|
||||
|
||||
foreach ($params_json as $param => $validate) {
|
||||
$value = $data[$param];
|
||||
$pattern = $type_arr[$validate]['rule'] ?? '';
|
||||
$max = $type_arr[$validate]['max'] ?? 1;
|
||||
$min = $type_arr[$validate]['max'] ?? mb_strlen($value);
|
||||
if (!empty($pattern) && in_array($validate, [NoticeTypeDict::PARAMS_TYPE_CHINESE, NoticeTypeDict::PARAMS_TYPE_OTHERS])) {
|
||||
$value = str_replace(' ', '', $value);
|
||||
$value = str_replace('.', '', $value);
|
||||
$filtered = preg_replace($pattern, '', $value);
|
||||
$value = (mb_strlen($filtered, 'UTF-8') >= $min && mb_strlen($filtered, 'UTF-8') <= 35)
|
||||
? $filtered // 长度合法,保留过滤后的字符串
|
||||
: mb_substr($filtered, 0, $max); // 长度非法,返回空字符串
|
||||
// 1. 兜底:参数不存在直接抛出异常
|
||||
if (!isset($data[$param])) {
|
||||
Log::write("SEND_NY_SMS 参数缺失 param:" . $param);
|
||||
throw new \Exception('NY:参数【' . $param . '】缺失,无法发送');
|
||||
}
|
||||
if (empty($value)) {
|
||||
Log::write("SEND_NY_SMS 参数异常,无法发送 param:" . $param);
|
||||
throw new \Exception('NY:参数异常,无法发送');
|
||||
$origin_value = $data[$param];
|
||||
$value = trim($origin_value);
|
||||
|
||||
// 2. 获取当前参数类型配置,不存在则拦截
|
||||
$type_config = $type_arr[$validate] ?? [];
|
||||
if (empty($type_config)) {
|
||||
Log::write("SEND_NY_SMS 未知校验类型 param:{$param}, type:{$validate}");
|
||||
throw new \Exception('NY:参数【' . $param . '】校验类型配置不存在');
|
||||
}
|
||||
$pattern = $type_config['rule'] ?? '';
|
||||
$max = $type_config['max'] ?? 20;
|
||||
$min = $type_config['min'] ?? 1;
|
||||
|
||||
// 3. 仅中文、其他类型 清除空格与小数点(其余类型保留.空格,如金额、号码)
|
||||
if (in_array($validate, [NoticeTypeDict::PARAMS_TYPE_CHINESE, NoticeTypeDict::PARAMS_TYPE_OTHERS])) {
|
||||
$value = str_replace([' ', '.'], '', $value);
|
||||
}
|
||||
|
||||
// 4. 有正则规则:先整体校验是否符合格式,不通过直接抛异常
|
||||
if (!empty($pattern)) {
|
||||
if (!preg_match($pattern, $value)) {
|
||||
Log::write("SEND_NY_SMS 参数格式不合法 param:{$param} 原始值:{$origin_value} 规则:{$pattern}");
|
||||
throw new \Exception('NY:参数【' . $param . '】格式不符合要求');
|
||||
}
|
||||
}
|
||||
|
||||
// 5. 校验通过后,按最大长度截断
|
||||
$value = mb_substr($value, 0, $max);
|
||||
$real_len = mb_strlen($value, 'UTF-8');
|
||||
|
||||
if($param == NoticeTypeDict::PARAMS_TYPE_OTHER_NUMBER && mb_strlen($value, 'UTF-8') > 20){
|
||||
$value = mb_substr($value, 0, 17) . '---';
|
||||
}
|
||||
|
||||
// 6. 最小长度校验,截断后过短直接拦截
|
||||
if ($real_len < $min) {
|
||||
Log::write("SEND_NY_SMS 参数长度不足 param:{$param} 处理后值:{$value} 最小长度:{$min}");
|
||||
throw new \Exception('NY:参数【' . $param . '】长度不满足最低要求');
|
||||
}
|
||||
|
||||
$return[$param] = $value;
|
||||
}
|
||||
return $return;
|
||||
|
||||
@ -46,7 +46,7 @@ class TokenAuth
|
||||
];
|
||||
|
||||
$params['jti'] = $id . "_" . $type;
|
||||
$token = JWT::encode($params, Env::get('app.app_key', 'niucloud456$%^'));
|
||||
$token = JWT::encode($params, Env::get('app.auth_key', 'niucloud456$%^'));
|
||||
$cache_token = Cache::store("jwt")->get("token_" . $params['jti']) ?: Cache::get("token_" . $params['jti']);
|
||||
$cache_token_arr = $cache_token ?: [];
|
||||
// if(!empty($cache_token))
|
||||
@ -67,7 +67,7 @@ class TokenAuth
|
||||
*/
|
||||
public static function parseToken(string $token, string $type): array
|
||||
{
|
||||
$payload = JWT::decode($token, Env::get('app.app_key', 'niucloud456$%^'), ['HS256']);
|
||||
$payload = JWT::decode($token, Env::get('app.auth_key', 'niucloud456$%^'), ['HS256']);
|
||||
if (!empty($payload)) {
|
||||
$token_info = json_decode(json_encode($payload), true, 512, JSON_THROW_ON_ERROR);
|
||||
|
||||
|
||||
@ -1 +0,0 @@
|
||||
import{bE as o}from"./index-f755d42f.js";import"vue";import"pinia";import"@element-plus/icons-vue";import"axios";import"/admin/assets/shared/admin-lang.js";import"vue-router";import"/admin/assets/shared/admin-lang.js";export{o as default};
|
||||
1
niucloud/public/admin/assets/App-32183ba3.js
Normal file
1
niucloud/public/admin/assets/App-32183ba3.js
Normal file
@ -0,0 +1 @@
|
||||
import{bE as o}from"./index-eed023fb.js";import"vue";import"pinia";import"@element-plus/icons-vue";import"axios";import"/admin/assets/shared/admin-lang.js";import"vue-router";import"/admin/assets/shared/admin-lang.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
1
niucloud/public/admin/assets/Verify-2439ff11.js
Normal file
1
niucloud/public/admin/assets/Verify-2439ff11.js
Normal file
@ -0,0 +1 @@
|
||||
import z from"./VerifySlide-5d66d689.js";import g from"./VerifyPoints-697c7bf1.js";import{toRefs as k,ref as c,computed as w,watchEffect as T,withDirectives as V,openBlock as m,createElementBlock as u,normalizeClass as y,createElementVNode as r,normalizeStyle as d,createTextVNode as B,createCommentVNode as v,createBlock as N,resolveDynamicComponent as C,vShow as j}from"vue";import{_ as E}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-b654393e.js";import"./index-eed023fb.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"/admin/assets/shared/admin-lang.js";import"vue-router";import"/admin/assets/shared/admin-lang.js";const O={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(s){const{captchaType:i,figure:e,arith:t,mode:a,vSpace:S,explain:f,imgSize:R,blockSize:W,barSize:A}=k(s),o=c(!1),n=c(void 0),l=c(void 0),p=c({}),h=w(()=>a.value=="pop"?o.value:!0),b=()=>{p.value.refresh&&p.value.refresh()},x=()=>{o.value=!1,b()},_=()=>{a.value=="pop"&&(o.value=!0)};return T(()=>{switch(i.value){case"blockPuzzle":n.value="2",l.value="VerifySlide";break;case"clickWord":n.value="",l.value="VerifyPoints";break}}),{clickShow:o,verifyType:n,componentType:l,instance:p,showBox:h,closeBox:x,show:_}}},P={key:0,class:"verifybox-top"},D=r("i",{class:"iconfont icon-close"},null,-1),q=[D];function I(s,i,e,t,a,S){return V((m(),u("div",{class:y(e.mode=="pop"?"mask":"")},[r("div",{class:y(e.mode=="pop"?"verifybox":""),style:d({"max-width":parseInt(e.imgSize.width)+30+"px"})},[e.mode=="pop"?(m(),u("div",P,[B(" 请完成安全验证 "),r("span",{class:"verifybox-close",onClick:i[0]||(i[0]=(...f)=>t.closeBox&&t.closeBox(...f))},q)])):v("",!0),r("div",{class:"verifybox-bottom",style:d({padding:e.mode=="pop"?"15px":"0"})},[t.componentType?(m(),N(C(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"])):v("",!0)],4)],6)],2)),[[j,t.showBox]])}const te=E(O,[["render",I]]);export{te as default};
|
||||
@ -1 +0,0 @@
|
||||
import z from"./VerifySlide-5d0c2caa.js";import g from"./VerifyPoints-b1912ce1.js";import{toRefs as k,ref as c,computed as w,watchEffect as T,withDirectives as V,openBlock as m,createElementBlock as u,normalizeClass as y,createElementVNode as r,normalizeStyle as d,createTextVNode as B,createCommentVNode as v,createBlock as N,resolveDynamicComponent as C,vShow as j}from"vue";import{_ as E}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-d35b82f6.js";import"./index-f755d42f.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"/admin/assets/shared/admin-lang.js";import"vue-router";import"/admin/assets/shared/admin-lang.js";const O={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(s){const{captchaType:i,figure:e,arith:t,mode:a,vSpace:S,explain:f,imgSize:R,blockSize:W,barSize:A}=k(s),o=c(!1),n=c(void 0),l=c(void 0),p=c({}),h=w(()=>a.value=="pop"?o.value:!0),b=()=>{p.value.refresh&&p.value.refresh()},x=()=>{o.value=!1,b()},_=()=>{a.value=="pop"&&(o.value=!0)};return T(()=>{switch(i.value){case"blockPuzzle":n.value="2",l.value="VerifySlide";break;case"clickWord":n.value="",l.value="VerifyPoints";break}}),{clickShow:o,verifyType:n,componentType:l,instance:p,showBox:h,closeBox:x,show:_}}},P={key:0,class:"verifybox-top"},D=r("i",{class:"iconfont icon-close"},null,-1),q=[D];function I(s,i,e,t,a,S){return V((m(),u("div",{class:y(e.mode=="pop"?"mask":"")},[r("div",{class:y(e.mode=="pop"?"verifybox":""),style:d({"max-width":parseInt(e.imgSize.width)+30+"px"})},[e.mode=="pop"?(m(),u("div",P,[B(" 请完成安全验证 "),r("span",{class:"verifybox-close",onClick:i[0]||(i[0]=(...f)=>t.closeBox&&t.closeBox(...f))},q)])):v("",!0),r("div",{class:"verifybox-bottom",style:d({padding:e.mode=="pop"?"15px":"0"})},[t.componentType?(m(),N(C(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"])):v("",!0)],4)],6)],2)),[[j,t.showBox]])}const te=E(O,[["render",I]]);export{te as default};
|
||||
1
niucloud/public/admin/assets/VerifyPoints-697c7bf1.js
Normal file
1
niucloud/public/admin/assets/VerifyPoints-697c7bf1.js
Normal file
@ -0,0 +1 @@
|
||||
import{r as K,a as V,b as F,c as G}from"./index-b654393e.js";import{toRefs as X,getCurrentInstance as Y,ref as o,reactive as v,onMounted as Q,openBlock as H,createElementBlock as I,createElementVNode as l,normalizeStyle as A,withDirectives as U,vShow as Z,Fragment as $,renderList as ee,toDisplayString as E,nextTick as te}from"vue";import{_ as ie}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-eed023fb.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"/admin/assets/shared/admin-lang.js";import"vue-router";import"/admin/assets/shared/admin-lang.js";const ae={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,g){const{mode:_,captchaType:e,vSpace:L,imgSize:R,barSize:c}=X(N),{proxy:n}=Y(),h=o(""),z=o(3),f=v([]),i=v([]),r=o(1),O=o(""),w=v([]),m=o(""),u=v({imgHeight:0,imgWidth:0,barHeight:0,barWidth:0}),y=v([]),d=o(""),b=o(void 0),x=o(void 0),j=o(!0),C=o(!0),J=()=>{f.splice(0,f.length),i.splice(0,i.length),r.value=1,W(),te(()=>{const{imgHeight:a,imgWidth:t,barHeight:p,barWidth:s}=K(n);u.imgHeight=a,u.imgWidth=t,u.barHeight=p,u.barWidth=s,n.$parent.$emit("ready",n)})};Q(()=>{J(),n.$el.onselectstart=function(){return!1}});const S=o(null),q=a=>{if(i.push(k(S,a)),r.value==z.value){r.value=T(k(S,a));const t=M(i,u);i.length=0,i.push(...t),setTimeout(()=>{const p=h.value?V(m.value+"---"+JSON.stringify(i),h.value):m.value+"---"+JSON.stringify(i),s={captchaType:e.value,captcha_code:h.value?V(JSON.stringify(i),h.value):JSON.stringify(i),captcha_key:m.value};F(s).then(B=>{B.code==1?(b.value="#4cae4c",x.value="#5cb85c",d.value="验证成功",C.value=!1,_.value=="pop"&&setTimeout(()=>{n.$parent.clickShow=!1,P()},1500),n.$parent.$emit("success",{captchaVerification:p})):(n.$parent.$emit("error",n),b.value="#d9534f",x.value="#d9534f",d.value="验证失败",setTimeout(()=>{P()},700))})},400)}r.value<z.value&&(r.value=T(k(S,a)))},k=function(a,t){const p=t.offsetX,s=t.offsetY;return{x:p,y:s}},T=function(a){return y.push(Object.assign({},a)),r.value+1},P=function(){y.splice(0,y.length),b.value="#000",x.value="#ddd",C.value=!0,f.splice(0,f.length),i.splice(0,i.length),r.value=1,W(),d.value="验证失败",j.value=!0};function W(){const a={captchaType:e.value};G(a).then(t=>{t.code==1?(O.value=t.data.originalImageBase64,m.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(a,t){return a.map(s=>{const B=Math.round(310*s.x/parseInt(t.imgWidth)),D=Math.round(155*s.y/parseInt(t.imgHeight));return{x:B,y:D}})};return{secretKey:h,checkNum:z,fontPos:f,checkPosArr:i,num:r,pointBackImgBase:O,pointTextList:w,backToken:m,setSize:u,tempPoints:y,text:d,barAreaColor:b,barAreaBorderColor:x,showRefresh:j,bindingClick:C,init:J,canvas:S,canvasClick:q,getMousePos:k,createPoint:T,refresh:P,getPictrue:W,pointTransfrom:M}}},ne={style:{position:"relative"}},oe={class:"verify-img-out"},re=l("i",{class:"iconfont icon-refresh"},null,-1),se=[re],ce=["src"],le={class:"verify-msg"};function he(N,g,_,e,L,R){return H(),I("div",ne,[l("div",oe,[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"})},[U(l("div",{class:"verify-refresh",style:{"z-index":"3"},onClick:g[0]||(g[0]=(...c)=>e.refresh&&e.refresh(...c))},se,512),[[Z,e.showRefresh]]),l("img",{src:"data:image/png;base64,"+e.pointBackImgBase,ref:"canvas",alt:"",style:{width:"100%",height:"100%",display:"block"},onClick:g[1]||(g[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"})},E(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,E(e.text),1)],4)])}const _e=ie(ae,[["render",he]]);export{_e as default};
|
||||
@ -1 +0,0 @@
|
||||
import{r as K,a as V,b as F,c as G}from"./index-d35b82f6.js";import{toRefs as X,getCurrentInstance as Y,ref as o,reactive as v,onMounted as Q,openBlock as H,createElementBlock as I,createElementVNode as l,normalizeStyle as A,withDirectives as U,vShow as Z,Fragment as $,renderList as ee,toDisplayString as E,nextTick as te}from"vue";import{_ as ie}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-f755d42f.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"/admin/assets/shared/admin-lang.js";import"vue-router";import"/admin/assets/shared/admin-lang.js";const ae={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,g){const{mode:_,captchaType:e,vSpace:L,imgSize:R,barSize:c}=X(N),{proxy:n}=Y(),h=o(""),z=o(3),f=v([]),i=v([]),r=o(1),O=o(""),w=v([]),m=o(""),u=v({imgHeight:0,imgWidth:0,barHeight:0,barWidth:0}),y=v([]),d=o(""),b=o(void 0),x=o(void 0),j=o(!0),C=o(!0),J=()=>{f.splice(0,f.length),i.splice(0,i.length),r.value=1,W(),te(()=>{const{imgHeight:a,imgWidth:t,barHeight:p,barWidth:s}=K(n);u.imgHeight=a,u.imgWidth=t,u.barHeight=p,u.barWidth=s,n.$parent.$emit("ready",n)})};Q(()=>{J(),n.$el.onselectstart=function(){return!1}});const S=o(null),q=a=>{if(i.push(k(S,a)),r.value==z.value){r.value=T(k(S,a));const t=M(i,u);i.length=0,i.push(...t),setTimeout(()=>{const p=h.value?V(m.value+"---"+JSON.stringify(i),h.value):m.value+"---"+JSON.stringify(i),s={captchaType:e.value,captcha_code:h.value?V(JSON.stringify(i),h.value):JSON.stringify(i),captcha_key:m.value};F(s).then(B=>{B.code==1?(b.value="#4cae4c",x.value="#5cb85c",d.value="验证成功",C.value=!1,_.value=="pop"&&setTimeout(()=>{n.$parent.clickShow=!1,P()},1500),n.$parent.$emit("success",{captchaVerification:p})):(n.$parent.$emit("error",n),b.value="#d9534f",x.value="#d9534f",d.value="验证失败",setTimeout(()=>{P()},700))})},400)}r.value<z.value&&(r.value=T(k(S,a)))},k=function(a,t){const p=t.offsetX,s=t.offsetY;return{x:p,y:s}},T=function(a){return y.push(Object.assign({},a)),r.value+1},P=function(){y.splice(0,y.length),b.value="#000",x.value="#ddd",C.value=!0,f.splice(0,f.length),i.splice(0,i.length),r.value=1,W(),d.value="验证失败",j.value=!0};function W(){const a={captchaType:e.value};G(a).then(t=>{t.code==1?(O.value=t.data.originalImageBase64,m.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(a,t){return a.map(s=>{const B=Math.round(310*s.x/parseInt(t.imgWidth)),D=Math.round(155*s.y/parseInt(t.imgHeight));return{x:B,y:D}})};return{secretKey:h,checkNum:z,fontPos:f,checkPosArr:i,num:r,pointBackImgBase:O,pointTextList:w,backToken:m,setSize:u,tempPoints:y,text:d,barAreaColor:b,barAreaBorderColor:x,showRefresh:j,bindingClick:C,init:J,canvas:S,canvasClick:q,getMousePos:k,createPoint:T,refresh:P,getPictrue:W,pointTransfrom:M}}},ne={style:{position:"relative"}},oe={class:"verify-img-out"},re=l("i",{class:"iconfont icon-refresh"},null,-1),se=[re],ce=["src"],le={class:"verify-msg"};function he(N,g,_,e,L,R){return H(),I("div",ne,[l("div",oe,[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"})},[U(l("div",{class:"verify-refresh",style:{"z-index":"3"},onClick:g[0]||(g[0]=(...c)=>e.refresh&&e.refresh(...c))},se,512),[[Z,e.showRefresh]]),l("img",{src:"data:image/png;base64,"+e.pointBackImgBase,ref:"canvas",alt:"",style:{width:"100%",height:"100%",display:"block"},onClick:g[1]||(g[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"})},E(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,E(e.text),1)],4)])}const _e=ie(ae,[["render",he]]);export{_e as default};
|
||||
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/VerifySlide-5d66d689.js
Normal file
1
niucloud/public/admin/assets/VerifySlide-5d66d689.js
Normal file
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/access-67f05ba6.js
Normal file
1
niucloud/public/admin/assets/access-67f05ba6.js
Normal file
@ -0,0 +1 @@
|
||||
import{ElTabPane as T,ElTabs as B,ElButton as M,ElStep as R,ElSteps as W,ElCol as $,ElRow as q,ElCard as A}from"element-plus/es";import{defineComponent as I,ref as c,onMounted as L,onUnmounted as P,openBlock as U,createElementBlock as j,createVNode as e,withCtx as t,createElementVNode as o,toDisplayString as a,unref as n,createTextVNode as u}from"vue";import{t as s}from"/admin/assets/shared/admin-lang.js";import{g as D}from"./wechat-45cb2e9f.js";import{P as F}from"./index-eed023fb.js";import{useRoute as G,useRouter as z}from"vue-router";import"pinia";import"@element-plus/icons-vue";import"axios";import"/admin/assets/shared/admin-lang.js";const H={class:"main-container"},J={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]"},ot={class:"mt-[20px] mb-[40px] h-[32px]"},vt=I({__name:"access",setup(st){const h=G(),r=z(),x=h.meta.title,_=c("/channel/app"),b=c(""),g=c({}),y=c({}),f=async()=>{await D().then(({data:l})=>{g.value=l,b.value=l.qr_code})};L(async()=>{await f(),await F().then(({data:l})=>{y.value=l}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&f()})}),P(()=>{document.removeEventListener("visibilitychange",()=>{})});const C=l=>{window.open(l,"_blank")},w=l=>{r.push({path:_.value})};return(l,i)=>{const v=T,E=B,m=M,d=R,k=W,V=$,S=q,N=A;return U(),j("div",H,[e(N,{class:"card !border-none",shadow:"never"},{default:t(()=>[o("div",J,[o("span",K,a(n(x)),1)]),e(E,{modelValue:_.value,"onUpdate:modelValue":i[0]||(i[0]=p=>_.value=p),class:"my-[20px]",onTabChange:w},{default:t(()=>[e(v,{label:n(s)("accessFlow"),name:"/channel/app"},null,8,["label"]),e(v,{label:n(s)("versionManage"),name:"/channel/app/version"},null,8,["label"])]),_:1},8,["modelValue"]),o("div",O,[o("h3",Q,a(n(s)("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(d,null,{title:t(()=>[o("p",X,a(n(s)("uniappApp")),1)]),description:t(()=>[o("span",Y,a(n(s)("appAttestation1")),1),o("div",Z,[e(m,{type:"primary",onClick:i[1]||(i[1]=p=>C("https://dcloud.io/"))},{default:t(()=>[u(a(n(s)("toCreate")),1)]),_:1})])]),_:1}),e(d,null,{title:t(()=>[o("p",tt,a(n(s)("appSetting")),1)]),description:t(()=>[o("div",et,[e(m,{type:"primary",onClick:i[2]||(i[2]=p=>n(r).push("/channel/app/config"))},{default:t(()=>[u(a(n(s)("settingInfo")),1)]),_:1})])]),_:1}),e(d,null,{title:t(()=>[o("p",nt,a(n(s)("versionManage")),1)]),description:t(()=>[o("div",ot,[e(m,{type:"primary",plain:"",onClick:i[3]||(i[3]=p=>n(r).push("/channel/app/version"))},{default:t(()=>[u(a(n(s)("releaseVersion")),1)]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1})])]),_:1})])}}});export{vt as default};
|
||||
1
niucloud/public/admin/assets/access-726d6465.js
Normal file
1
niucloud/public/admin/assets/access-726d6465.js
Normal file
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/access-7e255054.js
Normal file
1
niucloud/public/admin/assets/access-7e255054.js
Normal file
@ -0,0 +1 @@
|
||||
import{ElTabPane as V,ElTabs as N,ElButton as S,ElStep as B,ElSteps as T,ElCol as j,ElImage as R,ElRow as q,ElCard as I}from"element-plus/es";import{defineComponent as $,ref as x,onMounted as D,openBlock as F,createElementBlock as M,createVNode as n,withCtx as s,createElementVNode as t,toDisplayString as l,unref as e,createTextVNode as f}from"vue";import{t as o}from"/admin/assets/shared/admin-lang.js";import{i as P}from"./index-eed023fb.js";import{g as Q}from"./aliapp-d619a3c3.js";import{useRoute as U,useRouter as z}from"vue-router";import"pinia";import"@element-plus/icons-vue";import"axios";import"/admin/assets/shared/admin-lang.js";const G={class:"main-container"},H={class:"flex justify-between items-center"},J={class:"text-page-title"},K={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]"},ot=t("div",{class:"mt-[20px] mb-[40px] h-[32px]"},null,-1),nt={class:"text-[14px] font-[700]"},lt={class:"text-[#999]"},at={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]"},Ct=$({__name:"access",setup(_t){const h=U(),d=z(),v=h.meta.title,_=x("/channel/aliapp"),p=x("");D(async()=>{const c=await Q();p.value=c.data.qr_code});const w=c=>{window.open(c,"_blank")},b=c=>{d.push({path:_.value})};return(c,a)=>{const g=V,C=N,m=S,i=B,E=T,u=j,y=R,k=q,A=I;return F(),M("div",G,[n(A,{class:"card !border-none",shadow:"never"},{default:s(()=>[t("div",H,[t("span",J,l(e(v)),1)]),n(C,{modelValue:_.value,"onUpdate:modelValue":a[0]||(a[0]=r=>_.value=r),class:"my-[20px]",onTabChange:b},{default:s(()=>[n(g,{label:e(o)("weappAccessFlow"),name:"/channel/aliapp"},null,8,["label"])]),_:1},8,["modelValue"]),t("div",K,[t("h3",L,l(e(o)("weappInlet")),1),n(k,null,{default:s(()=>[n(u,{span:20},{default:s(()=>[n(E,{active:4,direction:"vertical"},{default:s(()=>[n(i,null,{title:s(()=>[t("p",O,l(e(o)("weappAttestation")),1)]),description:s(()=>[t("span",W,l(e(o)("weappAttest")),1),t("div",X,[n(m,{type:"primary",onClick:a[1]||(a[1]=r=>w("https://open.alipay.com/develop/manage"))},{default:s(()=>[f(l(e(o)("clickAccess")),1)]),_:1})])]),_:1}),n(i,null,{title:s(()=>[t("p",Y,l(e(o)("weappSetting")),1)]),description:s(()=>[t("span",Z,l(e(o)("emplace")),1),t("div",tt,[n(m,{type:"primary",plain:"",onClick:a[2]||(a[2]=r=>e(d).push("/channel/aliapp/config"))},{default:s(()=>[f(l(e(o)("weappSettingBtn")),1)]),_:1})])]),_:1}),n(i,null,{title:s(()=>[t("p",et,l(e(o)("uploadVersion")),1)]),description:s(()=>[t("span",st,l(e(o)("releaseCourse")),1),ot]),_:1}),n(i,null,{title:s(()=>[t("p",nt,l(e(o)("completeAccess")),1)]),description:s(()=>[t("span",lt,l(e(o)("releaseCourse")),1)]),_:1})]),_:1})]),_:1}),n(u,{span:4},{default:s(()=>[t("div",at,[n(y,{class:"w-[180px] h-[180px]",src:p.value?e(P)(p.value):""},{error:s(()=>[t("div",ct,[t("span",null,l(p.value?e(o)("fileErr"):e(o)("emptyQrCode")),1)])]),_:1},8,["src"])]),t("div",pt,[t("p",it,l(e(o)("clickAccess2")),1)])]),_:1})]),_:1})])]),_:1})])}}});export{Ct as default};
|
||||
@ -1 +0,0 @@
|
||||
import{ElTabPane as T,ElTabs as B,ElButton as M,ElStep as R,ElSteps as W,ElCol as $,ElRow as q,ElCard as A}from"element-plus/es";import{defineComponent as I,ref as c,onMounted as L,onUnmounted as P,openBlock as U,createElementBlock as j,createVNode as e,withCtx as t,createElementVNode as o,toDisplayString as a,unref as n,createTextVNode as u}from"vue";import{t as s}from"/admin/assets/shared/admin-lang.js";import{g as D}from"./wechat-424d153f.js";import{P as F}from"./index-f755d42f.js";import{useRoute as G,useRouter as z}from"vue-router";import"pinia";import"@element-plus/icons-vue";import"axios";import"/admin/assets/shared/admin-lang.js";const H={class:"main-container"},J={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]"},ot={class:"mt-[20px] mb-[40px] h-[32px]"},vt=I({__name:"access",setup(st){const h=G(),r=z(),x=h.meta.title,_=c("/channel/app"),b=c(""),g=c({}),y=c({}),f=async()=>{await D().then(({data:l})=>{g.value=l,b.value=l.qr_code})};L(async()=>{await f(),await F().then(({data:l})=>{y.value=l}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&f()})}),P(()=>{document.removeEventListener("visibilitychange",()=>{})});const C=l=>{window.open(l,"_blank")},w=l=>{r.push({path:_.value})};return(l,i)=>{const v=T,E=B,m=M,d=R,k=W,V=$,S=q,N=A;return U(),j("div",H,[e(N,{class:"card !border-none",shadow:"never"},{default:t(()=>[o("div",J,[o("span",K,a(n(x)),1)]),e(E,{modelValue:_.value,"onUpdate:modelValue":i[0]||(i[0]=p=>_.value=p),class:"my-[20px]",onTabChange:w},{default:t(()=>[e(v,{label:n(s)("accessFlow"),name:"/channel/app"},null,8,["label"]),e(v,{label:n(s)("versionManage"),name:"/channel/app/version"},null,8,["label"])]),_:1},8,["modelValue"]),o("div",O,[o("h3",Q,a(n(s)("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(d,null,{title:t(()=>[o("p",X,a(n(s)("uniappApp")),1)]),description:t(()=>[o("span",Y,a(n(s)("appAttestation1")),1),o("div",Z,[e(m,{type:"primary",onClick:i[1]||(i[1]=p=>C("https://dcloud.io/"))},{default:t(()=>[u(a(n(s)("toCreate")),1)]),_:1})])]),_:1}),e(d,null,{title:t(()=>[o("p",tt,a(n(s)("appSetting")),1)]),description:t(()=>[o("div",et,[e(m,{type:"primary",onClick:i[2]||(i[2]=p=>n(r).push("/channel/app/config"))},{default:t(()=>[u(a(n(s)("settingInfo")),1)]),_:1})])]),_:1}),e(d,null,{title:t(()=>[o("p",nt,a(n(s)("versionManage")),1)]),description:t(()=>[o("div",ot,[e(m,{type:"primary",plain:"",onClick:i[3]||(i[3]=p=>n(r).push("/channel/app/version"))},{default:t(()=>[u(a(n(s)("releaseVersion")),1)]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1})])]),_:1})])}}});export{vt as default};
|
||||
@ -1 +0,0 @@
|
||||
import{ElTabPane as V,ElTabs as N,ElButton as S,ElStep as B,ElSteps as T,ElCol as j,ElImage as R,ElRow as q,ElCard as I}from"element-plus/es";import{defineComponent as $,ref as x,onMounted as D,openBlock as F,createElementBlock as M,createVNode as n,withCtx as s,createElementVNode as t,toDisplayString as l,unref as e,createTextVNode as f}from"vue";import{t as o}from"/admin/assets/shared/admin-lang.js";import{i as P}from"./index-f755d42f.js";import{g as Q}from"./aliapp-51fe63ae.js";import{useRoute as U,useRouter as z}from"vue-router";import"pinia";import"@element-plus/icons-vue";import"axios";import"/admin/assets/shared/admin-lang.js";const G={class:"main-container"},H={class:"flex justify-between items-center"},J={class:"text-page-title"},K={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]"},ot=t("div",{class:"mt-[20px] mb-[40px] h-[32px]"},null,-1),nt={class:"text-[14px] font-[700]"},lt={class:"text-[#999]"},at={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]"},Ct=$({__name:"access",setup(_t){const h=U(),d=z(),v=h.meta.title,_=x("/channel/aliapp"),p=x("");D(async()=>{const c=await Q();p.value=c.data.qr_code});const w=c=>{window.open(c,"_blank")},b=c=>{d.push({path:_.value})};return(c,a)=>{const g=V,C=N,m=S,i=B,E=T,u=j,y=R,k=q,A=I;return F(),M("div",G,[n(A,{class:"card !border-none",shadow:"never"},{default:s(()=>[t("div",H,[t("span",J,l(e(v)),1)]),n(C,{modelValue:_.value,"onUpdate:modelValue":a[0]||(a[0]=r=>_.value=r),class:"my-[20px]",onTabChange:b},{default:s(()=>[n(g,{label:e(o)("weappAccessFlow"),name:"/channel/aliapp"},null,8,["label"])]),_:1},8,["modelValue"]),t("div",K,[t("h3",L,l(e(o)("weappInlet")),1),n(k,null,{default:s(()=>[n(u,{span:20},{default:s(()=>[n(E,{active:4,direction:"vertical"},{default:s(()=>[n(i,null,{title:s(()=>[t("p",O,l(e(o)("weappAttestation")),1)]),description:s(()=>[t("span",W,l(e(o)("weappAttest")),1),t("div",X,[n(m,{type:"primary",onClick:a[1]||(a[1]=r=>w("https://open.alipay.com/develop/manage"))},{default:s(()=>[f(l(e(o)("clickAccess")),1)]),_:1})])]),_:1}),n(i,null,{title:s(()=>[t("p",Y,l(e(o)("weappSetting")),1)]),description:s(()=>[t("span",Z,l(e(o)("emplace")),1),t("div",tt,[n(m,{type:"primary",plain:"",onClick:a[2]||(a[2]=r=>e(d).push("/channel/aliapp/config"))},{default:s(()=>[f(l(e(o)("weappSettingBtn")),1)]),_:1})])]),_:1}),n(i,null,{title:s(()=>[t("p",et,l(e(o)("uploadVersion")),1)]),description:s(()=>[t("span",st,l(e(o)("releaseCourse")),1),ot]),_:1}),n(i,null,{title:s(()=>[t("p",nt,l(e(o)("completeAccess")),1)]),description:s(()=>[t("span",lt,l(e(o)("releaseCourse")),1)]),_:1})]),_:1})]),_:1}),n(u,{span:4},{default:s(()=>[t("div",at,[n(y,{class:"w-[180px] h-[180px]",src:p.value?e(P)(p.value):""},{error:s(()=>[t("div",ct,[t("span",null,l(p.value?e(o)("fileErr"):e(o)("emptyQrCode")),1)])]),_:1},8,["src"])]),t("div",pt,[t("p",it,l(e(o)("clickAccess2")),1)])]),_:1})]),_:1})])]),_:1})])}}});export{Ct as default};
|
||||
1
niucloud/public/admin/assets/access-b858993a.js
Normal file
1
niucloud/public/admin/assets/access-b858993a.js
Normal file
@ -0,0 +1 @@
|
||||
import{ElTabPane as q,ElTabs as $,ElButton as j,ElStep as R,ElSteps as U,ElCol as z,ElImage as F,ElRow as I,ElCard as L}from"element-plus/es";import{defineComponent as M,ref as u,onMounted as P,onUnmounted as D,openBlock as w,createElementBlock as y,createVNode as n,withCtx as o,createElementVNode as s,toDisplayString as a,unref as e,createTextVNode as r,Fragment as G,createBlock as Q}from"vue";import{t}from"/admin/assets/shared/admin-lang.js";import{P as H,i as J}from"./index-eed023fb.js";import{g as K}from"./wechat-45cb2e9f.js";import{a as O}from"./wxoplatform-e90f840f.js";import{useRoute as X,useRouter as Y}from"vue-router";import"pinia";import"@element-plus/icons-vue";import"axios";import"/admin/assets/shared/admin-lang.js";const Z={class:"main-container"},ee={class:"flex justify-between items-center"},te={class:"text-page-title"},ne={class:"p-[20px]"},oe={class:"panel-title !text-sm"},se={class:"text-[14px] font-[700]"},ae={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]"},me={class:"mt-[20px] mb-[40px] h-[32px]"},de={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]"},Ne=M({__name:"access",setup(ve){const C=X(),_=Y(),k=C.meta.title,h=u("/channel/wechat"),m=u(""),f=u({}),v=u({}),g=async()=>{await K().then(({data:l})=>{f.value=l,m.value=l.qr_code})};P(async()=>{await g(),await H().then(({data:l})=>{v.value=l}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&g()})}),D(()=>{document.removeEventListener("visibilitychange",()=>{})});const E=l=>{window.open(l,"_blank")},A=l=>{_.push({path:h.value})},S=()=>{O().then(({data:l})=>{window.open(l)})};return(l,c)=>{const d=q,V=$,i=j,x=R,B=U,b=z,N=F,T=I,W=L;return w(),y("div",Z,[n(W,{class:"card !border-none",shadow:"never"},{default:o(()=>[s("div",ee,[s("span",te,a(e(k)),1)]),n(V,{modelValue:h.value,"onUpdate:modelValue":c[0]||(c[0]=p=>h.value=p),class:"my-[20px]",onTabChange:A},{default:o(()=>[n(d,{label:e(t)("wechatAccessFlow"),name:"/channel/wechat"},null,8,["label"]),n(d,{label:e(t)("customMenu"),name:"/channel/wechat/menu"},null,8,["label"]),n(d,{label:e(t)("wechatTemplate"),name:"/channel/wechat/message"},null,8,["label"]),n(d,{label:e(t)("reply"),name:"/channel/wechat/reply"},null,8,["label"])]),_:1},8,["modelValue"]),s("div",ne,[s("h3",oe,a(e(t)("wechatInlet")),1),n(T,null,{default:o(()=>[n(b,{span:20},{default:o(()=>[n(B,{class:"!mt-[10px]",active:3,direction:"vertical"},{default:o(()=>[n(x,null,{title:o(()=>[s("p",se,a(e(t)("wechatAttestation")),1)]),description:o(()=>[s("span",ae,a(e(t)("wechatAttestation1")),1),s("div",le,[n(i,{type:"primary",onClick:c[1]||(c[1]=p=>E("https://mp.weixin.qq.com/"))},{default:o(()=>[r(a(e(t)("clickAccess")),1)]),_:1})])]),_:1}),n(x,null,{title:o(()=>[s("p",ce,a(e(t)("wechatSetting")),1)]),description:o(()=>[s("span",ie,a(e(t)("wechatSetting1")),1),s("div",pe,[v.value.app_id&&v.value.app_secret?(w(),y(G,{key:0},[n(i,{type:"primary",onClick:c[2]||(c[2]=p=>e(_).push("/channel/wechat/config"))},{default:o(()=>[r(a(f.value.app_id?e(t)("seeConfig"):e(t)("clickSetting")),1)]),_:1}),n(i,{type:"primary",plain:"",onClick:S},{default:o(()=>[r(a(f.value.is_authorization?e(t)("refreshAuth"):e(t)("authWechat")),1)]),_:1})],64)):(w(),Q(i,{key:1,type:"primary",onClick:c[3]||(c[3]=p=>e(_).push("/channel/wechat/config"))},{default:o(()=>[r(a(e(t)("clickSetting")),1)]),_:1}))])]),_:1}),n(x,null,{title:o(()=>[s("p",re,a(e(t)("wechatAccess")),1)]),description:o(()=>[s("span",_e,a(e(t)("wechatAccess")),1),s("div",me,[n(i,{type:"primary",plain:"",onClick:c[4]||(c[4]=p=>e(_).push("/channel/wechat/course"))},{default:o(()=>[r(a(e(t)("releaseCourse")),1)]),_:1})])]),_:1})]),_:1})]),_:1}),n(b,{span:4},{default:o(()=>[s("div",de,[n(N,{class:"w-[180px] h-[180px]",src:m.value?e(J)(m.value):""},{error:o(()=>[s("div",ue,[s("span",null,a(m.value?e(t)("fileErr"):e(t)("emptyQrCode")),1)])]),_:1},8,["src"])]),s("div",he,[s("p",fe,a(e(t)("clickAccess2")),1)])]),_:1})]),_:1})])]),_:1})])}}});export{Ne as default};
|
||||
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
import{ElTabPane as q,ElTabs as $,ElButton as j,ElStep as R,ElSteps as U,ElCol as z,ElImage as F,ElRow as I,ElCard as L}from"element-plus/es";import{defineComponent as M,ref as u,onMounted as P,onUnmounted as D,openBlock as w,createElementBlock as y,createVNode as n,withCtx as o,createElementVNode as s,toDisplayString as a,unref as e,createTextVNode as r,Fragment as G,createBlock as Q}from"vue";import{t}from"/admin/assets/shared/admin-lang.js";import{P as H,i as J}from"./index-f755d42f.js";import{g as K}from"./wechat-424d153f.js";import{a as O}from"./wxoplatform-189d3e58.js";import{useRoute as X,useRouter as Y}from"vue-router";import"pinia";import"@element-plus/icons-vue";import"axios";import"/admin/assets/shared/admin-lang.js";const Z={class:"main-container"},ee={class:"flex justify-between items-center"},te={class:"text-page-title"},ne={class:"p-[20px]"},oe={class:"panel-title !text-sm"},se={class:"text-[14px] font-[700]"},ae={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]"},me={class:"mt-[20px] mb-[40px] h-[32px]"},de={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]"},Ne=M({__name:"access",setup(ve){const C=X(),_=Y(),k=C.meta.title,h=u("/channel/wechat"),m=u(""),f=u({}),v=u({}),g=async()=>{await K().then(({data:l})=>{f.value=l,m.value=l.qr_code})};P(async()=>{await g(),await H().then(({data:l})=>{v.value=l}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&g()})}),D(()=>{document.removeEventListener("visibilitychange",()=>{})});const E=l=>{window.open(l,"_blank")},A=l=>{_.push({path:h.value})},S=()=>{O().then(({data:l})=>{window.open(l)})};return(l,c)=>{const d=q,V=$,i=j,x=R,B=U,b=z,N=F,T=I,W=L;return w(),y("div",Z,[n(W,{class:"card !border-none",shadow:"never"},{default:o(()=>[s("div",ee,[s("span",te,a(e(k)),1)]),n(V,{modelValue:h.value,"onUpdate:modelValue":c[0]||(c[0]=p=>h.value=p),class:"my-[20px]",onTabChange:A},{default:o(()=>[n(d,{label:e(t)("wechatAccessFlow"),name:"/channel/wechat"},null,8,["label"]),n(d,{label:e(t)("customMenu"),name:"/channel/wechat/menu"},null,8,["label"]),n(d,{label:e(t)("wechatTemplate"),name:"/channel/wechat/message"},null,8,["label"]),n(d,{label:e(t)("reply"),name:"/channel/wechat/reply"},null,8,["label"])]),_:1},8,["modelValue"]),s("div",ne,[s("h3",oe,a(e(t)("wechatInlet")),1),n(T,null,{default:o(()=>[n(b,{span:20},{default:o(()=>[n(B,{class:"!mt-[10px]",active:3,direction:"vertical"},{default:o(()=>[n(x,null,{title:o(()=>[s("p",se,a(e(t)("wechatAttestation")),1)]),description:o(()=>[s("span",ae,a(e(t)("wechatAttestation1")),1),s("div",le,[n(i,{type:"primary",onClick:c[1]||(c[1]=p=>E("https://mp.weixin.qq.com/"))},{default:o(()=>[r(a(e(t)("clickAccess")),1)]),_:1})])]),_:1}),n(x,null,{title:o(()=>[s("p",ce,a(e(t)("wechatSetting")),1)]),description:o(()=>[s("span",ie,a(e(t)("wechatSetting1")),1),s("div",pe,[v.value.app_id&&v.value.app_secret?(w(),y(G,{key:0},[n(i,{type:"primary",onClick:c[2]||(c[2]=p=>e(_).push("/channel/wechat/config"))},{default:o(()=>[r(a(f.value.app_id?e(t)("seeConfig"):e(t)("clickSetting")),1)]),_:1}),n(i,{type:"primary",plain:"",onClick:S},{default:o(()=>[r(a(f.value.is_authorization?e(t)("refreshAuth"):e(t)("authWechat")),1)]),_:1})],64)):(w(),Q(i,{key:1,type:"primary",onClick:c[3]||(c[3]=p=>e(_).push("/channel/wechat/config"))},{default:o(()=>[r(a(e(t)("clickSetting")),1)]),_:1}))])]),_:1}),n(x,null,{title:o(()=>[s("p",re,a(e(t)("wechatAccess")),1)]),description:o(()=>[s("span",_e,a(e(t)("wechatAccess")),1),s("div",me,[n(i,{type:"primary",plain:"",onClick:c[4]||(c[4]=p=>e(_).push("/channel/wechat/course"))},{default:o(()=>[r(a(e(t)("releaseCourse")),1)]),_:1})])]),_:1})]),_:1})]),_:1}),n(b,{span:4},{default:o(()=>[s("div",de,[n(N,{class:"w-[180px] h-[180px]",src:m.value?e(J)(m.value):""},{error:o(()=>[s("div",ue,[s("span",null,a(m.value?e(t)("fileErr"):e(t)("emptyQrCode")),1)])]),_:1},8,["src"])]),s("div",he,[s("p",fe,a(e(t)("clickAccess2")),1)])]),_:1})]),_:1})])]),_:1})])}}});export{Ne as default};
|
||||
1
niucloud/public/admin/assets/account-1b288cd9.js
Normal file
1
niucloud/public/admin/assets/account-1b288cd9.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/active-008727cc.js
Normal file
1
niucloud/public/admin/assets/active-008727cc.js
Normal file
@ -0,0 +1 @@
|
||||
import{O as t}from"./index-eed023fb.js";function s(e){return t.get("friend_help/pages",{params:e})}function i(){return t.get("friend_help/init")}function o(e){return t.get("diy/list",{params:e})}function d(e){return t.post("friend_help/batch_set",e,{showSuccessMessage:!0})}function u(e){return t.post("friend_help/add",e,{showSuccessMessage:!0})}function l(e){return t.put(`friend_help/edit/${e.id}`,e,{showSuccessMessage:!0})}function a(e){return t.get(`friend_help/detail/${e}`)}function c(){return t.get("friend_help/share")}function p(e){return t.put(`friend_help/close/${e}`,{showSuccessMessage:!0})}function f(e){return t.delete(`friend_help/delete/${e}`,{showSuccessMessage:!0})}function g(){return t.get("friend_help/goods_of_select_source")}function h(e,n){return t.get(`friend_help/goods_of_select/${e}`,{params:n})}function _(e){return t.get("friend_help/stat/total",{params:e})}function H(e){return t.get("friend_help/stat/day",{params:e})}function F(e){return t.get("friend_help/stat/hour",{params:e})}function S(e){return t.get("friend_help/stat/channel",{params:e})}function w(e){return t.get("friend_help/diy/goods",{params:e})}function M(e){return t.get("friend_help/receive_list",{params:e})}function m(e){return t.post("friend_help/code/import",e,{showSuccessMessage:!0})}function y(e){return t.post("friend_help/code/delete",e,{showSuccessMessage:!0})}function C(e){return t.post("friend_help/code/clear",e,{showSuccessMessage:!0})}export{a,o as b,M as c,C as d,m as e,y as f,w as g,d as h,g as i,h as j,c as k,i as l,l as m,u as n,s as o,f as p,p as q,H as r,S as s,_ as t,F as u};
|
||||
@ -1 +0,0 @@
|
||||
import{O as n}from"./index-f755d42f.js";function a(t){return n.get("pintuan/pages",{params:t})}function s(){return n.get("pintuan/init")}function i(t){return n.get("diy/list",{params:t})}function o(t){return n.post("pintuan/batch_set",t,{showSuccessMessage:!0})}function r(t){return n.post("pintuan/add",t,{showSuccessMessage:!0})}function c(t){return n.put(`pintuan/edit/${t.id}`,t,{showSuccessMessage:!0})}function g(t){return n.get(`pintuan/detail/${t}`)}function p(){return n.get("pintuan/share")}function d(t){return n.put(`pintuan/close/${t}`,{showSuccessMessage:!0})}function f(t){return n.delete(`pintuan/delete/${t}`,{showSuccessMessage:!0})}function l(){return n.get("pintuan/goods_of_select_source")}function h(t,e){return n.get(`pintuan/goods_of_select/${t}`,{params:e})}function P(t){return n.get("pintuan/stat/total",{params:t})}function S(t){return n.get("pintuan/stat/day",{params:t})}function w(t){return n.get("pintuan/stat/hour",{params:t})}function M(t){return n.get("pintuan/stat/channel",{params:t})}function _(t){return n.get("pintuan/diy/goods",{params:t})}function m(t){return n.get("pintuan/receive_list",{params:t})}function y(t){return n.post("pintuan/code/import",t,{showSuccessMessage:!0})}function C(t){return n.post("pintuan/code/delete",t,{showSuccessMessage:!0})}function $(t){return n.post("pintuan/code/clear",t,{showSuccessMessage:!0})}export{g as a,i as b,m as c,$ as d,y as e,o as f,_ as g,l as h,h as i,p as j,s as k,c as l,r as m,a as n,f as o,C as p,d as q,S as r,M as s,P as t,w as u};
|
||||
1
niucloud/public/admin/assets/active-2857f3c8.js
Normal file
1
niucloud/public/admin/assets/active-2857f3c8.js
Normal file
@ -0,0 +1 @@
|
||||
import{O as t}from"./index-eed023fb.js";function r(e){return t.get("relay/pages",{params:e})}function o(){return t.get("relay/init")}function n(e){return t.get("diy/list",{params:e})}function u(e){return t.post("relay/batch_set",e,{showSuccessMessage:!0})}function l(e){return t.post("relay/add",e,{showSuccessMessage:!0})}function c(e){return t.put(`relay/edit/${e.id}`,e,{showSuccessMessage:!0})}function y(e){return t.get(`relay/detail/${e}`)}function i(){return t.get("relay/share")}function g(e){return t.put(`relay/close/${e}`,{showSuccessMessage:!0})}function d(e){return t.delete(`relay/delete/${e}`,{showSuccessMessage:!0})}function f(){return t.get("relay/goods_of_select_source")}function R(e,a){return t.get(`relay/goods_of_select/${e}`,{params:a})}function h(e){return t.get("relay/stat/total",{params:e})}function S(e){return t.get("relay/stat/day",{params:e})}function p(e){return t.get("relay/stat/hour",{params:e})}function w(e){return t.get("relay/stat/channel",{params:e})}function M(e){return t.get("relay/diy/goods",{params:e})}function _(e){return t.get("relay/receive_list",{params:e})}function m(e){return t.post("relay/code/import",e,{showSuccessMessage:!0})}function C(e){return t.post("relay/code/delete",e,{showSuccessMessage:!0})}function $(e){return t.post("relay/code/clear",e,{showSuccessMessage:!0})}export{y as a,_ as b,$ as c,m as d,u as e,n as f,M as g,f as h,R as i,i as j,o as k,c as l,l as m,r as n,d as o,g as p,S as q,C as r,w as s,h as t,p as u};
|
||||
1
niucloud/public/admin/assets/active-3270e6c1.js
Normal file
1
niucloud/public/admin/assets/active-3270e6c1.js
Normal file
@ -0,0 +1 @@
|
||||
import{O as t}from"./index-eed023fb.js";function l(e){return t.get("seckill/lists",{params:e})}function c(e){return t.get(`seckill/info/${e}`)}function i(e){return t.post("seckill/add",e,{showSuccessMessage:!0})}function o(e){return t.post("seckill/close",e,{showSuccessMessage:!0})}function n(e){return t.put(`seckill/edit/${e.id}`,e,{showSuccessMessage:!0})}function u(e){return t.post("seckill/delete",e,{showSuccessMessage:!0})}function r(){return t.get("seckill/init")}function a(){return t.get("seckill/select")}function k(e){return t.get("seckill/stat/total",{params:e})}function g(e){return t.get("seckill/stat/day",{params:e})}function S(e){return t.get("seckill/stat/hour",{params:e})}function d(e){return t.get("seckill/stat/channel",{params:e})}function f(e){return t.get("seckill/time/select",{params:e})}function h(e){return t.get("seckill/activeGoods/select",{params:e})}function p(e){return t.get("seckill/goods/receive_list",{params:e})}function w(e){return t.post("seckill/goods/code/import",e,{showSuccessMessage:!0})}function M(e){return t.post("seckill/goods/code/delete",e,{showSuccessMessage:!0})}function m(e){return t.post("seckill/goods/code/clear",e,{showSuccessMessage:!0})}export{p as a,m as b,w as c,c as d,r as e,n as f,a as g,i as h,l as i,u as j,o as k,g as l,d as m,f as n,h as o,k as p,S as q,M as s};
|
||||
@ -1 +0,0 @@
|
||||
import{O as t}from"./index-f755d42f.js";function s(e){return t.get("friend_help/pages",{params:e})}function i(){return t.get("friend_help/init")}function o(e){return t.get("diy/list",{params:e})}function d(e){return t.post("friend_help/batch_set",e,{showSuccessMessage:!0})}function u(e){return t.post("friend_help/add",e,{showSuccessMessage:!0})}function l(e){return t.put(`friend_help/edit/${e.id}`,e,{showSuccessMessage:!0})}function a(e){return t.get(`friend_help/detail/${e}`)}function c(){return t.get("friend_help/share")}function p(e){return t.put(`friend_help/close/${e}`,{showSuccessMessage:!0})}function f(e){return t.delete(`friend_help/delete/${e}`,{showSuccessMessage:!0})}function g(){return t.get("friend_help/goods_of_select_source")}function h(e,n){return t.get(`friend_help/goods_of_select/${e}`,{params:n})}function _(e){return t.get("friend_help/stat/total",{params:e})}function H(e){return t.get("friend_help/stat/day",{params:e})}function F(e){return t.get("friend_help/stat/hour",{params:e})}function S(e){return t.get("friend_help/stat/channel",{params:e})}function w(e){return t.get("friend_help/diy/goods",{params:e})}function M(e){return t.get("friend_help/receive_list",{params:e})}function m(e){return t.post("friend_help/code/import",e,{showSuccessMessage:!0})}function y(e){return t.post("friend_help/code/delete",e,{showSuccessMessage:!0})}function C(e){return t.post("friend_help/code/clear",e,{showSuccessMessage:!0})}export{a,o as b,M as c,C as d,m as e,y as f,w as g,d as h,g as i,h as j,c as k,i as l,l as m,u as n,s as o,f as p,p as q,H as r,S as s,_ as t,F as u};
|
||||
@ -1 +0,0 @@
|
||||
import{O as t}from"./index-f755d42f.js";function l(e){return t.get("seckill/lists",{params:e})}function c(e){return t.get(`seckill/info/${e}`)}function i(e){return t.post("seckill/add",e,{showSuccessMessage:!0})}function o(e){return t.post("seckill/close",e,{showSuccessMessage:!0})}function n(e){return t.put(`seckill/edit/${e.id}`,e,{showSuccessMessage:!0})}function u(e){return t.post("seckill/delete",e,{showSuccessMessage:!0})}function r(){return t.get("seckill/init")}function a(){return t.get("seckill/select")}function k(e){return t.get("seckill/stat/total",{params:e})}function g(e){return t.get("seckill/stat/day",{params:e})}function S(e){return t.get("seckill/stat/hour",{params:e})}function d(e){return t.get("seckill/stat/channel",{params:e})}function f(e){return t.get("seckill/time/select",{params:e})}function h(e){return t.get("seckill/activeGoods/select",{params:e})}function p(e){return t.get("seckill/goods/receive_list",{params:e})}function w(e){return t.post("seckill/goods/code/import",e,{showSuccessMessage:!0})}function M(e){return t.post("seckill/goods/code/delete",e,{showSuccessMessage:!0})}function m(e){return t.post("seckill/goods/code/clear",e,{showSuccessMessage:!0})}export{p as a,m as b,w as c,c as d,r as e,n as f,a as g,i as h,l as i,u as j,o as k,g as l,d as m,f as n,h as o,k as p,S as q,M as s};
|
||||
@ -1 +0,0 @@
|
||||
import{O as t}from"./index-f755d42f.js";function r(e){return t.get("relay/pages",{params:e})}function o(){return t.get("relay/init")}function n(e){return t.get("diy/list",{params:e})}function u(e){return t.post("relay/batch_set",e,{showSuccessMessage:!0})}function l(e){return t.post("relay/add",e,{showSuccessMessage:!0})}function c(e){return t.put(`relay/edit/${e.id}`,e,{showSuccessMessage:!0})}function y(e){return t.get(`relay/detail/${e}`)}function i(){return t.get("relay/share")}function g(e){return t.put(`relay/close/${e}`,{showSuccessMessage:!0})}function d(e){return t.delete(`relay/delete/${e}`,{showSuccessMessage:!0})}function f(){return t.get("relay/goods_of_select_source")}function R(e,a){return t.get(`relay/goods_of_select/${e}`,{params:a})}function h(e){return t.get("relay/stat/total",{params:e})}function S(e){return t.get("relay/stat/day",{params:e})}function p(e){return t.get("relay/stat/hour",{params:e})}function w(e){return t.get("relay/stat/channel",{params:e})}function M(e){return t.get("relay/diy/goods",{params:e})}function _(e){return t.get("relay/receive_list",{params:e})}function m(e){return t.post("relay/code/import",e,{showSuccessMessage:!0})}function C(e){return t.post("relay/code/delete",e,{showSuccessMessage:!0})}function $(e){return t.post("relay/code/clear",e,{showSuccessMessage:!0})}export{y as a,_ as b,$ as c,m as d,u as e,n as f,M as g,f as h,R as i,i as j,o as k,c as l,l as m,r as n,d as o,g as p,S as q,C as r,w as s,h as t,p as u};
|
||||
@ -1 +0,0 @@
|
||||
import{_ as o}from"./active-detail-popup.vue_vue_type_script_setup_true_lang-47dcbeea.js";import"vue";import"./goods_default-b611c81b.js";import"/admin/assets/shared/admin-lang.js";import"./active-c1b7d0e4.js";import"./index-f755d42f.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"vue-router";import"/admin/assets/shared/admin-lang.js";export{o as default};
|
||||
@ -0,0 +1 @@
|
||||
import{_ as o}from"./active-detail-popup.vue_vue_type_script_setup_true_lang-8b13429d.js";import"vue";import"./goods_default-247a7f2b.js";import"/admin/assets/shared/admin-lang.js";import"./active-2857f3c8.js";import"./index-eed023fb.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"vue-router";import"/admin/assets/shared/admin-lang.js";export{o as default};
|
||||
@ -0,0 +1 @@
|
||||
import{_ as o}from"./active-detail-popup.vue_vue_type_script_setup_true_lang-af688090.js";import"vue";import"./goods_default-b4a8d71f.js";import"/admin/assets/shared/admin-lang.js";import"./active-008727cc.js";import"./index-eed023fb.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"vue-router";import"/admin/assets/shared/admin-lang.js";export{o as default};
|
||||
@ -1 +0,0 @@
|
||||
import{_ as o}from"./active-detail-popup.vue_vue_type_script_setup_true_lang-23e01af3.js";import"vue";import"./goods_default-665e448a.js";import"/admin/assets/shared/admin-lang.js";import"./active-6dbbbdca.js";import"./index-f755d42f.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"vue-router";import"/admin/assets/shared/admin-lang.js";export{o as default};
|
||||
@ -0,0 +1 @@
|
||||
import{_ as o}from"./active-detail-popup.vue_vue_type_script_setup_true_lang-b60c03ba.js";import"vue";import"./goods_default-f482a1c1.js";import"/admin/assets/shared/admin-lang.js";import"./active-f1b156bf.js";import"./index-eed023fb.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"vue-router";import"/admin/assets/shared/admin-lang.js";export{o as default};
|
||||
@ -1 +0,0 @@
|
||||
import{_ as o}from"./active-detail-popup.vue_vue_type_script_setup_true_lang-a99f3444.js";import"vue";import"./goods_default-87959339.js";import"/admin/assets/shared/admin-lang.js";import"./active-10e6494f.js";import"./index-f755d42f.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"vue-router";import"/admin/assets/shared/admin-lang.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
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
1
niucloud/public/admin/assets/active-f1b156bf.js
Normal file
1
niucloud/public/admin/assets/active-f1b156bf.js
Normal file
@ -0,0 +1 @@
|
||||
import{O as n}from"./index-eed023fb.js";function a(t){return n.get("pintuan/pages",{params:t})}function s(){return n.get("pintuan/init")}function i(t){return n.get("diy/list",{params:t})}function o(t){return n.post("pintuan/batch_set",t,{showSuccessMessage:!0})}function r(t){return n.post("pintuan/add",t,{showSuccessMessage:!0})}function c(t){return n.put(`pintuan/edit/${t.id}`,t,{showSuccessMessage:!0})}function g(t){return n.get(`pintuan/detail/${t}`)}function p(){return n.get("pintuan/share")}function d(t){return n.put(`pintuan/close/${t}`,{showSuccessMessage:!0})}function f(t){return n.delete(`pintuan/delete/${t}`,{showSuccessMessage:!0})}function l(){return n.get("pintuan/goods_of_select_source")}function h(t,e){return n.get(`pintuan/goods_of_select/${t}`,{params:e})}function P(t){return n.get("pintuan/stat/total",{params:t})}function S(t){return n.get("pintuan/stat/day",{params:t})}function w(t){return n.get("pintuan/stat/hour",{params:t})}function M(t){return n.get("pintuan/stat/channel",{params:t})}function _(t){return n.get("pintuan/diy/goods",{params:t})}function m(t){return n.get("pintuan/receive_list",{params:t})}function y(t){return n.post("pintuan/code/import",t,{showSuccessMessage:!0})}function C(t){return n.post("pintuan/code/delete",t,{showSuccessMessage:!0})}function $(t){return n.post("pintuan/code/clear",t,{showSuccessMessage:!0})}export{g as a,i as b,m as c,$ as d,y as e,o as f,_ as g,l as h,h as i,p as j,s as k,c as l,r as m,a as n,f as o,C as p,d as q,S as r,M as s,P as t,w as u};
|
||||
1
niucloud/public/admin/assets/add-013f4d7d.js
Normal file
1
niucloud/public/admin/assets/add-013f4d7d.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/add-2e05d833.js
Normal file
1
niucloud/public/admin/assets/add-2e05d833.js
Normal file
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
1
niucloud/public/admin/assets/add-554afc6e.js
Normal file
1
niucloud/public/admin/assets/add-554afc6e.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
import{_ as o}from"./add-address.vue_vue_type_script_setup_true_lang-9f0e4ac1.js";import"vue";import"/admin/assets/shared/admin-lang.js";import"./index-f755d42f.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"vue-router";import"/admin/assets/shared/admin-lang.js";import"./member-6c14d092.js";import"./cloneDeep-ba8f92cd.js";import"./isArrayLike-2d9dc100.js";export{o as default};
|
||||
1
niucloud/public/admin/assets/add-address-69fb0985.js
Normal file
1
niucloud/public/admin/assets/add-address-69fb0985.js
Normal file
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/add-address-da105ee7.js
Normal file
1
niucloud/public/admin/assets/add-address-da105ee7.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as o}from"./add-address.vue_vue_type_script_setup_true_lang-5ccff516.js";import"vue";import"/admin/assets/shared/admin-lang.js";import"./index-eed023fb.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"vue-router";import"/admin/assets/shared/admin-lang.js";import"./member-7df8598f.js";import"./cloneDeep-ba8f92cd.js";import"./isArrayLike-2d9dc100.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
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/add-c462a826.js
Normal file
1
niucloud/public/admin/assets/add-c462a826.js
Normal file
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/add-goods-popup-226b6d2d.js
Normal file
1
niucloud/public/admin/assets/add-goods-popup-226b6d2d.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/add-goods-popup-6701060a.js
Normal file
1
niucloud/public/admin/assets/add-goods-popup-6701060a.js
Normal file
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
1
niucloud/public/admin/assets/add-goods-popup-ced9728d.js
Normal file
1
niucloud/public/admin/assets/add-goods-popup-ced9728d.js
Normal file
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/add-member-09b0841d.js
Normal file
1
niucloud/public/admin/assets/add-member-09b0841d.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as o}from"./add-member.vue_vue_type_script_setup_true_lang-04e88c91.js";import"vue";import"/admin/assets/shared/admin-lang.js";import"./member-7df8598f.js";import"./index-eed023fb.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"vue-router";import"/admin/assets/shared/admin-lang.js";export{o as default};
|
||||
@ -1 +0,0 @@
|
||||
import{_ as o}from"./add-member.vue_vue_type_script_setup_true_lang-3fffe5f6.js";import"vue";import"/admin/assets/shared/admin-lang.js";import"./member-6c14d092.js";import"./index-f755d42f.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"vue-router";import"/admin/assets/shared/admin-lang.js";export{o as default};
|
||||
@ -0,0 +1 @@
|
||||
import{ElInput as R,ElFormItem as j,ElForm as z,ElButton as A,ElDialog as L,ElLoadingDirective as O}from"element-plus/es";import{defineComponent as T,ref as m,reactive as K,computed as S,openBlock as N,createBlock as k,unref as a,withCtx as d,createElementVNode as Z,createVNode as s,createTextVNode as x,toDisplayString as C,withDirectives as G}from"vue";import{t as o}from"/admin/assets/shared/admin-lang.js";import{p as J,z as Q,A as W}from"./member-7df8598f.js";import{a9 as X}from"./index-eed023fb.js";const Y={class:"dialog-footer"},ne=T({__name:"add-member",emits:["complete"],setup(ee,{expose:M,emit:$}){const p=m(!1),i=m(!1),f=m(!1);let b="",c="";const v=m(!0),w=m(!0),g=m(!0),_={member_id:"",nickname:"",member_no:"",init_member_no:"",mobile:"",password:"",password_copy:""},t=K({..._}),y=m(),D=S(()=>({member_no:[{required:!0,message:o("memberNoPlaceholder"),trigger:"blur"},{validator:B,trigger:"blur"}],mobile:[{required:!0,message:o("mobilePlaceholder"),trigger:"blur"},{validator:E,trigger:"blur"}],password:[{required:!0,message:o("passwordPlaceholder"),trigger:"blur"}],password_copy:[{required:!0,message:o("passwordPlaceholder"),trigger:"blur"},{validator:P,trigger:"blur"}]})),E=(n,e,r)=>{e&&!/^1[3-9]\d{9}$/.test(e)?r(new Error(o("mobileHint"))):r()},P=(n,e,r)=>{e!=t.password?r(o("doubleCipherHint")):r()},B=(n,e,r)=>{e&&!/^[0-9a-zA-Z]*$/g.test(e)?r(new Error(o("memberNoHint"))):r()},U=async()=>{await Q().then(n=>{c=n.data}).catch(()=>{})},F=$,q=async n=>{if(i.value||!n)return;const e=W;await n.validate(async r=>{if(r){if(i.value=!0,f.value)return;f.value=!0,e(t).then(V=>{i.value=!1,f.value=!1,p.value=!1,F("complete")}).catch(()=>{i.value=!1,f.value=!1})}})};return M({showDialog:p,setFormData:async(n=null)=>{if(i.value=!0,Object.assign(t,_),b=o("addMember"),n){b=o("updateMember");const e=await(await J(n.member_id)).data;e&&Object.keys(t).forEach(r=>{e[r]!=null&&(t[r]=e[r])})}else await U(),t.member_no=c,t.init_member_no=c;i.value=!1}}),(n,e)=>{const r=R,u=j,V=z,h=A,H=L,I=O;return N(),k(H,{modelValue:p.value,"onUpdate:modelValue":e[14]||(e[14]=l=>p.value=l),title:a(b),width:"500px","destroy-on-close":!0},{footer:d(()=>[Z("span",Y,[s(h,{onClick:e[12]||(e[12]=l=>p.value=!1)},{default:d(()=>[x(C(a(o)("cancel")),1)]),_:1}),s(h,{type:"primary",loading:i.value,onClick:e[13]||(e[13]=l=>q(y.value))},{default:d(()=>[x(C(a(o)("confirm")),1)]),_:1},8,["loading"])])]),default:d(()=>[G((N(),k(V,{model:t,"label-width":"90px",ref_key:"formRef",ref:y,rules:D.value,class:"page-form"},{default:d(()=>[s(u,{label:a(o)("memberNo"),prop:"member_no"},{default:d(()=>[s(r,{modelValue:t.member_no,"onUpdate:modelValue":e[0]||(e[0]=l=>t.member_no=l),modelModifiers:{trim:!0},clearable:"",maxlength:"20",placeholder:a(o)("memberNoPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(u,{label:a(o)("mobile"),prop:"mobile"},{default:d(()=>[s(r,{modelValue:t.mobile,"onUpdate:modelValue":e[1]||(e[1]=l=>t.mobile=l),modelModifiers:{trim:!0},clearable:"",placeholder:a(o)("mobilePlaceholder"),maxlength:"11",onKeyup:e[2]||(e[2]=l=>a(X)(l)),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(u,{label:a(o)("nickname")},{default:d(()=>[s(r,{modelValue:t.nickname,"onUpdate:modelValue":e[3]||(e[3]=l=>t.nickname=l),modelModifiers:{trim:!0},clearable:"",placeholder:a(o)("nickNamePlaceholder"),class:"input-width",maxlength:"10","show-word-limit":"",readonly:v.value,onClick:e[4]||(e[4]=l=>v.value=!1),onBlur:e[5]||(e[5]=l=>v.value=!0)},null,8,["modelValue","placeholder","readonly"])]),_:1},8,["label"]),s(u,{label:a(o)("password"),prop:"password"},{default:d(()=>[s(r,{modelValue:t.password,"onUpdate:modelValue":e[6]||(e[6]=l=>t.password=l),modelModifiers:{trim:!0},type:"password",placeholder:a(o)("passwordPlaceholder"),clearable:"",class:"input-width","show-password":!0,readonly:w.value,onClick:e[7]||(e[7]=l=>w.value=!1),onBlur:e[8]||(e[8]=l=>w.value=!0)},null,8,["modelValue","placeholder","readonly"])]),_:1},8,["label"]),s(u,{label:a(o)("passwordCopy"),prop:"password_copy"},{default:d(()=>[s(r,{modelValue:t.password_copy,"onUpdate:modelValue":e[9]||(e[9]=l=>t.password_copy=l),modelModifiers:{trim:!0},type:"password",placeholder:a(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"])),[[I,i.value]])]),_:1},8,["modelValue","title"])}}});export{ne as _};
|
||||
@ -1 +0,0 @@
|
||||
import{ElInput as R,ElFormItem as j,ElForm as z,ElButton as A,ElDialog as L,ElLoadingDirective as O}from"element-plus/es";import{defineComponent as T,ref as m,reactive as K,computed as S,openBlock as N,createBlock as k,unref as a,withCtx as d,createElementVNode as Z,createVNode as s,createTextVNode as x,toDisplayString as C,withDirectives as G}from"vue";import{t as o}from"/admin/assets/shared/admin-lang.js";import{p as J,z as Q,A as W}from"./member-6c14d092.js";import{a9 as X}from"./index-f755d42f.js";const Y={class:"dialog-footer"},ne=T({__name:"add-member",emits:["complete"],setup(ee,{expose:M,emit:$}){const p=m(!1),i=m(!1),f=m(!1);let b="",c="";const v=m(!0),w=m(!0),g=m(!0),_={member_id:"",nickname:"",member_no:"",init_member_no:"",mobile:"",password:"",password_copy:""},t=K({..._}),y=m(),D=S(()=>({member_no:[{required:!0,message:o("memberNoPlaceholder"),trigger:"blur"},{validator:B,trigger:"blur"}],mobile:[{required:!0,message:o("mobilePlaceholder"),trigger:"blur"},{validator:E,trigger:"blur"}],password:[{required:!0,message:o("passwordPlaceholder"),trigger:"blur"}],password_copy:[{required:!0,message:o("passwordPlaceholder"),trigger:"blur"},{validator:P,trigger:"blur"}]})),E=(n,e,r)=>{e&&!/^1[3-9]\d{9}$/.test(e)?r(new Error(o("mobileHint"))):r()},P=(n,e,r)=>{e!=t.password?r(o("doubleCipherHint")):r()},B=(n,e,r)=>{e&&!/^[0-9a-zA-Z]*$/g.test(e)?r(new Error(o("memberNoHint"))):r()},U=async()=>{await Q().then(n=>{c=n.data}).catch(()=>{})},F=$,q=async n=>{if(i.value||!n)return;const e=W;await n.validate(async r=>{if(r){if(i.value=!0,f.value)return;f.value=!0,e(t).then(V=>{i.value=!1,f.value=!1,p.value=!1,F("complete")}).catch(()=>{i.value=!1,f.value=!1})}})};return M({showDialog:p,setFormData:async(n=null)=>{if(i.value=!0,Object.assign(t,_),b=o("addMember"),n){b=o("updateMember");const e=await(await J(n.member_id)).data;e&&Object.keys(t).forEach(r=>{e[r]!=null&&(t[r]=e[r])})}else await U(),t.member_no=c,t.init_member_no=c;i.value=!1}}),(n,e)=>{const r=R,u=j,V=z,h=A,H=L,I=O;return N(),k(H,{modelValue:p.value,"onUpdate:modelValue":e[14]||(e[14]=l=>p.value=l),title:a(b),width:"500px","destroy-on-close":!0},{footer:d(()=>[Z("span",Y,[s(h,{onClick:e[12]||(e[12]=l=>p.value=!1)},{default:d(()=>[x(C(a(o)("cancel")),1)]),_:1}),s(h,{type:"primary",loading:i.value,onClick:e[13]||(e[13]=l=>q(y.value))},{default:d(()=>[x(C(a(o)("confirm")),1)]),_:1},8,["loading"])])]),default:d(()=>[G((N(),k(V,{model:t,"label-width":"90px",ref_key:"formRef",ref:y,rules:D.value,class:"page-form"},{default:d(()=>[s(u,{label:a(o)("memberNo"),prop:"member_no"},{default:d(()=>[s(r,{modelValue:t.member_no,"onUpdate:modelValue":e[0]||(e[0]=l=>t.member_no=l),modelModifiers:{trim:!0},clearable:"",maxlength:"20",placeholder:a(o)("memberNoPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(u,{label:a(o)("mobile"),prop:"mobile"},{default:d(()=>[s(r,{modelValue:t.mobile,"onUpdate:modelValue":e[1]||(e[1]=l=>t.mobile=l),modelModifiers:{trim:!0},clearable:"",placeholder:a(o)("mobilePlaceholder"),maxlength:"11",onKeyup:e[2]||(e[2]=l=>a(X)(l)),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(u,{label:a(o)("nickname")},{default:d(()=>[s(r,{modelValue:t.nickname,"onUpdate:modelValue":e[3]||(e[3]=l=>t.nickname=l),modelModifiers:{trim:!0},clearable:"",placeholder:a(o)("nickNamePlaceholder"),class:"input-width",maxlength:"10","show-word-limit":"",readonly:v.value,onClick:e[4]||(e[4]=l=>v.value=!1),onBlur:e[5]||(e[5]=l=>v.value=!0)},null,8,["modelValue","placeholder","readonly"])]),_:1},8,["label"]),s(u,{label:a(o)("password"),prop:"password"},{default:d(()=>[s(r,{modelValue:t.password,"onUpdate:modelValue":e[6]||(e[6]=l=>t.password=l),modelModifiers:{trim:!0},type:"password",placeholder:a(o)("passwordPlaceholder"),clearable:"",class:"input-width","show-password":!0,readonly:w.value,onClick:e[7]||(e[7]=l=>w.value=!1),onBlur:e[8]||(e[8]=l=>w.value=!0)},null,8,["modelValue","placeholder","readonly"])]),_:1},8,["label"]),s(u,{label:a(o)("passwordCopy"),prop:"password_copy"},{default:d(()=>[s(r,{modelValue:t.password_copy,"onUpdate:modelValue":e[9]||(e[9]=l=>t.password_copy=l),modelModifiers:{trim:!0},type:"password",placeholder:a(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"])),[[I,i.value]])]),_:1},8,["modelValue","title"])}}});export{ne as _};
|
||||
@ -1 +0,0 @@
|
||||
import{_ as o}from"./add-reserve.vue_vue_type_script_setup_true_lang-a0d3bcb2.js";import"vue";import"/admin/assets/shared/admin-lang.js";import"./vipcard-100d11b8.js";import"./index-f755d42f.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"vue-router";import"/admin/assets/shared/admin-lang.js";export{o as default};
|
||||
1
niucloud/public/admin/assets/add-reserve-c8bb7a9f.js
Normal file
1
niucloud/public/admin/assets/add-reserve-c8bb7a9f.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as o}from"./add-reserve.vue_vue_type_script_setup_true_lang-ec884193.js";import"vue";import"/admin/assets/shared/admin-lang.js";import"./vipcard-da03511a.js";import"./index-eed023fb.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"vue-router";import"/admin/assets/shared/admin-lang.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
@ -1 +0,0 @@
|
||||
import{_ as o}from"./add-table.vue_vue_type_script_setup_true_lang-89e09b51.js";import"vue";import"/admin/assets/shared/admin-lang.js";import"./tools-a813b09b.js";import"./index-f755d42f.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"vue-router";import"/admin/assets/shared/admin-lang.js";export{o as default};
|
||||
1
niucloud/public/admin/assets/add-table-6bc22fdc.js
Normal file
1
niucloud/public/admin/assets/add-table-6bc22fdc.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as o}from"./add-table.vue_vue_type_script_setup_true_lang-116ac501.js";import"vue";import"/admin/assets/shared/admin-lang.js";import"./tools-3c5cba60.js";import"./index-eed023fb.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"vue-router";import"/admin/assets/shared/admin-lang.js";export{o as default};
|
||||
@ -0,0 +1 @@
|
||||
import{ElTableColumn as E,ElInput as N,ElButton as x,ElTable as L,ElDialog as k,ElLoadingDirective as B}from"element-plus/es";import{defineComponent as z,ref as u,reactive as F,computed as P,openBlock as p,createBlock as _,unref as l,withCtx as o,createElementVNode as f,withDirectives as U,toDisplayString as b,createVNode as s,createTextVNode as q}from"vue";import{t as n}from"/admin/assets/shared/admin-lang.js";import{k as G,l as I}from"./tools-3c5cba60.js";import{useRouter as M}from"vue-router";const O=z({__name:"add-table",setup(R,{expose:g}){const h=M(),m=u(!1),r=u(""),e=F({loading:!0,data:[],searchParam:{table_name:"",table_content:""}}),v=P(()=>e.data.filter(a=>!r.value||a.Name.toLowerCase().includes(r.value.toLowerCase())||a.Comment.toLowerCase().includes(r.value.toLowerCase()))),c=()=>{e.loading=!0,G().then(a=>{e.loading=!1,e.data=a.data}).catch(()=>{e.loading=!1})};c();const w=a=>{const t=a.Name;e.loading=!0,I({table_name:t}).then(d=>{e.loading=!1,m.value=!1,h.push({path:"/tools/code/edit",query:{id:d.data.id}})}).catch(()=>{e.loading=!1})};return g({showDialog:m,setFormData:async(a=null)=>{c()}}),(a,t)=>{const d=E,C=N,D=x,V=L,y=k,T=B;return p(),_(y,{modelValue:m.value,"onUpdate:modelValue":t[1]||(t[1]=i=>m.value=i),title:l(n)("addCode"),width:"800px","destroy-on-close":!0},{default:o(()=>[f("div",null,[U((p(),_(V,{data:v.value,size:"large",height:"400"},{empty:o(()=>[f("span",null,b(e.loading?"":l(n)("emptyData")),1)]),default:o(()=>[s(d,{prop:"Name",label:l(n)("tableName"),"min-width":"150"},null,8,["label"]),s(d,{prop:"Comment",label:l(n)("tableComment"),"min-width":"120"},null,8,["label"]),s(d,{align:"right","min-width":"150"},{header:o(()=>[s(C,{modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=i=>r.value=i),modelModifiers:{trim:!0},size:"small",placeholder:l(n)("searchPlaceholder")},null,8,["modelValue","placeholder"])]),default:o(i=>[s(D,{size:"small",type:"primary",onClick:$=>w(i.row)},{default:o(()=>[q(b(l(n)("addBtn")),1)]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[T,e.loading]])])]),_:1},8,["modelValue","title"])}}});export{O as _};
|
||||
@ -1 +0,0 @@
|
||||
import{ElTableColumn as E,ElInput as N,ElButton as x,ElTable as L,ElDialog as k,ElLoadingDirective as B}from"element-plus/es";import{defineComponent as z,ref as u,reactive as F,computed as P,openBlock as p,createBlock as _,unref as l,withCtx as o,createElementVNode as f,withDirectives as U,toDisplayString as b,createVNode as s,createTextVNode as q}from"vue";import{t as n}from"/admin/assets/shared/admin-lang.js";import{k as G,l as I}from"./tools-a813b09b.js";import{useRouter as M}from"vue-router";const O=z({__name:"add-table",setup(R,{expose:g}){const h=M(),m=u(!1),r=u(""),e=F({loading:!0,data:[],searchParam:{table_name:"",table_content:""}}),v=P(()=>e.data.filter(a=>!r.value||a.Name.toLowerCase().includes(r.value.toLowerCase())||a.Comment.toLowerCase().includes(r.value.toLowerCase()))),c=()=>{e.loading=!0,G().then(a=>{e.loading=!1,e.data=a.data}).catch(()=>{e.loading=!1})};c();const w=a=>{const t=a.Name;e.loading=!0,I({table_name:t}).then(d=>{e.loading=!1,m.value=!1,h.push({path:"/tools/code/edit",query:{id:d.data.id}})}).catch(()=>{e.loading=!1})};return g({showDialog:m,setFormData:async(a=null)=>{c()}}),(a,t)=>{const d=E,C=N,D=x,V=L,y=k,T=B;return p(),_(y,{modelValue:m.value,"onUpdate:modelValue":t[1]||(t[1]=i=>m.value=i),title:l(n)("addCode"),width:"800px","destroy-on-close":!0},{default:o(()=>[f("div",null,[U((p(),_(V,{data:v.value,size:"large",height:"400"},{empty:o(()=>[f("span",null,b(e.loading?"":l(n)("emptyData")),1)]),default:o(()=>[s(d,{prop:"Name",label:l(n)("tableName"),"min-width":"150"},null,8,["label"]),s(d,{prop:"Comment",label:l(n)("tableComment"),"min-width":"120"},null,8,["label"]),s(d,{align:"right","min-width":"150"},{header:o(()=>[s(C,{modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=i=>r.value=i),modelModifiers:{trim:!0},size:"small",placeholder:l(n)("searchPlaceholder")},null,8,["modelValue","placeholder"])]),default:o(i=>[s(D,{size:"small",type:"primary",onClick:$=>w(i.row)},{default:o(()=>[q(b(l(n)("addBtn")),1)]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[T,e.loading]])])]),_:1},8,["modelValue","title"])}}});export{O as _};
|
||||
1
niucloud/public/admin/assets/add-technician-7f2f0d98.js
Normal file
1
niucloud/public/admin/assets/add-technician-7f2f0d98.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as o}from"./add-technician.vue_vue_type_script_setup_true_lang-8d709d14.js";import"./index-7bfa54d2.js";import"./index.vue_vue_type_style_index_0_lang-5b2596b8.js";import"vue";import"./index-eed023fb.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"/admin/assets/shared/admin-lang.js";import"vue-router";import"/admin/assets/shared/admin-lang.js";import"./attachment-48d75f15.js";import"./index.vue_vue_type_script_setup_true_lang-455d81a8.js";import"./index.vue_vue_type_script_setup_true_lang-f5fa650a.js";import"./index.vue_vue_type_script_setup_true_lang-03438c63.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./sortable.esm-be94e56d.js";import"./vipcard-da03511a.js";export{o as default};
|
||||
@ -1 +0,0 @@
|
||||
import{_ as o}from"./add-technician.vue_vue_type_script_setup_true_lang-0f72953b.js";import"./index-67142920.js";import"./index.vue_vue_type_style_index_0_lang-22a28f77.js";import"vue";import"./index-f755d42f.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"/admin/assets/shared/admin-lang.js";import"vue-router";import"/admin/assets/shared/admin-lang.js";import"./attachment-c0e75c10.js";import"./index.vue_vue_type_script_setup_true_lang-455d81a8.js";import"./index.vue_vue_type_script_setup_true_lang-f5fa650a.js";import"./index.vue_vue_type_script_setup_true_lang-03438c63.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./sortable.esm-be94e56d.js";import"./vipcard-100d11b8.js";export{o as default};
|
||||
@ -1 +0,0 @@
|
||||
import{ElInput as N,ElFormItem as C,ElForm as k,ElButton as B,ElDialog as R,ElLoadingDirective as $}from"element-plus/es";import j from"./index-67142920.js";import{defineComponent as q,ref as p,reactive as I,computed as K,openBlock as h,createBlock as v,unref as t,withCtx as n,createElementVNode as M,createVNode as i,createTextVNode as c,toDisplayString as f,withDirectives as O}from"vue";import{t as a}from"/admin/assets/shared/admin-lang.js";import{a3 as L,a4 as S}from"./vipcard-100d11b8.js";import{a9 as y}from"./index-f755d42f.js";const z={class:"dialog-footer"},Z=q({__name:"add-technician",emits:["complete"],setup(A,{expose:w,emit:x}){const s=p(!1),m=p(!1),b={id:"",name:"",mobile:"",seniority:"0",number:"",position:"",headimg:""},l=I({...b}),g=p(),D=K(()=>({name:[{required:!0,message:a("namePlaceholder"),trigger:"blur"}],mobile:[{required:!0,message:a("mobilePlaceholder"),trigger:"blur"},{trigger:"blur",validator:(d,e,r)=>{e&&!/^1[3-9]\d{9}$/.test(e)&&r(new Error(a("mobileNumberFormatTips"))),r()}}]})),E=x,P=async d=>{if(m.value||!d)return;const e=l.id?L:S;await d.validate(async r=>{r&&(m.value=!0,e(l).then(_=>{m.value=!1,s.value=!1,E("complete")}).catch(()=>{m.value=!1}))})};return w({showDialog:s,setFormData:async(d=null)=>{Object.assign(l,b),d&&d&&Object.keys(l).forEach(e=>{d[e]!=null&&(l[e]=d[e])}),m.value=!1}}),(d,e)=>{const r=N,u=C,_=j,U=k,V=B,F=R,T=$;return h(),v(F,{modelValue:s.value,"onUpdate:modelValue":e[10]||(e[10]=o=>s.value=o),title:l.id?t(a)("updateTechnician"):t(a)("addTechnician"),width:"500px","destroy-on-close":!0},{footer:n(()=>[M("span",z,[i(V,{onClick:e[8]||(e[8]=o=>s.value=!1)},{default:n(()=>[c(f(t(a)("cancel")),1)]),_:1}),i(V,{type:"primary",loading:m.value,onClick:e[9]||(e[9]=o=>P(g.value))},{default:n(()=>[c(f(t(a)("confirm")),1)]),_:1},8,["loading"])])]),default:n(()=>[O((h(),v(U,{model:l,"label-width":"90px",ref_key:"formRef",ref:g,rules:D.value,class:"page-form"},{default:n(()=>[i(u,{label:t(a)("name"),prop:"name"},{default:n(()=>[i(r,{maxlength:"20","show-word-limit":"",modelValue:l.name,"onUpdate:modelValue":e[0]||(e[0]=o=>l.name=o),modelModifiers:{trim:!0},clearable:"",placeholder:t(a)("namePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i(u,{label:t(a)("headimg")},{default:n(()=>[i(_,{modelValue:l.headimg,"onUpdate:modelValue":e[1]||(e[1]=o=>l.headimg=o)},null,8,["modelValue"])]),_:1},8,["label"]),i(u,{label:t(a)("mobile"),prop:"mobile"},{default:n(()=>[i(r,{modelValue:l.mobile,"onUpdate:modelValue":e[2]||(e[2]=o=>l.mobile=o),modelModifiers:{trim:!0},clearable:"",maxlength:"11",placeholder:t(a)("mobilePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i(u,{label:t(a)("seniority"),prop:""},{default:n(()=>[i(r,{modelValue:l.seniority,"onUpdate:modelValue":e[3]||(e[3]=o=>l.seniority=o),clearable:"",placeholder:t(a)("seniorityPlaceholder"),class:"input-width",onKeyup:e[4]||(e[4]=o=>t(y)(o)),maxlength:"2"},{append:n(()=>[c(f(t(a)("year")),1)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),i(u,{label:t(a)("number"),prop:""},{default:n(()=>[i(r,{modelValue:l.number,"onUpdate:modelValue":e[5]||(e[5]=o=>l.number=o),clearable:"",placeholder:t(a)("numberPlaceholder"),class:"input-width",onKeyup:e[6]||(e[6]=o=>t(y)(o))},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i(u,{label:t(a)("position"),prop:""},{default:n(()=>[i(r,{modelValue:l.position,"onUpdate:modelValue":e[7]||(e[7]=o=>l.position=o),clearable:"",placeholder:t(a)("positionPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[T,m.value]])]),_:1},8,["modelValue","title"])}}});export{Z as _};
|
||||
@ -0,0 +1 @@
|
||||
import{ElInput as N,ElFormItem as C,ElForm as k,ElButton as B,ElDialog as R,ElLoadingDirective as $}from"element-plus/es";import j from"./index-7bfa54d2.js";import{defineComponent as q,ref as p,reactive as I,computed as K,openBlock as h,createBlock as v,unref as t,withCtx as n,createElementVNode as M,createVNode as i,createTextVNode as c,toDisplayString as f,withDirectives as O}from"vue";import{t as a}from"/admin/assets/shared/admin-lang.js";import{a3 as L,a4 as S}from"./vipcard-da03511a.js";import{a9 as y}from"./index-eed023fb.js";const z={class:"dialog-footer"},Z=q({__name:"add-technician",emits:["complete"],setup(A,{expose:w,emit:x}){const s=p(!1),m=p(!1),b={id:"",name:"",mobile:"",seniority:"0",number:"",position:"",headimg:""},l=I({...b}),g=p(),D=K(()=>({name:[{required:!0,message:a("namePlaceholder"),trigger:"blur"}],mobile:[{required:!0,message:a("mobilePlaceholder"),trigger:"blur"},{trigger:"blur",validator:(d,e,r)=>{e&&!/^1[3-9]\d{9}$/.test(e)&&r(new Error(a("mobileNumberFormatTips"))),r()}}]})),E=x,P=async d=>{if(m.value||!d)return;const e=l.id?L:S;await d.validate(async r=>{r&&(m.value=!0,e(l).then(_=>{m.value=!1,s.value=!1,E("complete")}).catch(()=>{m.value=!1}))})};return w({showDialog:s,setFormData:async(d=null)=>{Object.assign(l,b),d&&d&&Object.keys(l).forEach(e=>{d[e]!=null&&(l[e]=d[e])}),m.value=!1}}),(d,e)=>{const r=N,u=C,_=j,U=k,V=B,F=R,T=$;return h(),v(F,{modelValue:s.value,"onUpdate:modelValue":e[10]||(e[10]=o=>s.value=o),title:l.id?t(a)("updateTechnician"):t(a)("addTechnician"),width:"500px","destroy-on-close":!0},{footer:n(()=>[M("span",z,[i(V,{onClick:e[8]||(e[8]=o=>s.value=!1)},{default:n(()=>[c(f(t(a)("cancel")),1)]),_:1}),i(V,{type:"primary",loading:m.value,onClick:e[9]||(e[9]=o=>P(g.value))},{default:n(()=>[c(f(t(a)("confirm")),1)]),_:1},8,["loading"])])]),default:n(()=>[O((h(),v(U,{model:l,"label-width":"90px",ref_key:"formRef",ref:g,rules:D.value,class:"page-form"},{default:n(()=>[i(u,{label:t(a)("name"),prop:"name"},{default:n(()=>[i(r,{maxlength:"20","show-word-limit":"",modelValue:l.name,"onUpdate:modelValue":e[0]||(e[0]=o=>l.name=o),modelModifiers:{trim:!0},clearable:"",placeholder:t(a)("namePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i(u,{label:t(a)("headimg")},{default:n(()=>[i(_,{modelValue:l.headimg,"onUpdate:modelValue":e[1]||(e[1]=o=>l.headimg=o)},null,8,["modelValue"])]),_:1},8,["label"]),i(u,{label:t(a)("mobile"),prop:"mobile"},{default:n(()=>[i(r,{modelValue:l.mobile,"onUpdate:modelValue":e[2]||(e[2]=o=>l.mobile=o),modelModifiers:{trim:!0},clearable:"",maxlength:"11",placeholder:t(a)("mobilePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i(u,{label:t(a)("seniority"),prop:""},{default:n(()=>[i(r,{modelValue:l.seniority,"onUpdate:modelValue":e[3]||(e[3]=o=>l.seniority=o),clearable:"",placeholder:t(a)("seniorityPlaceholder"),class:"input-width",onKeyup:e[4]||(e[4]=o=>t(y)(o)),maxlength:"2"},{append:n(()=>[c(f(t(a)("year")),1)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),i(u,{label:t(a)("number"),prop:""},{default:n(()=>[i(r,{modelValue:l.number,"onUpdate:modelValue":e[5]||(e[5]=o=>l.number=o),clearable:"",placeholder:t(a)("numberPlaceholder"),class:"input-width",onKeyup:e[6]||(e[6]=o=>t(y)(o))},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i(u,{label:t(a)("position"),prop:""},{default:n(()=>[i(r,{modelValue:l.position,"onUpdate:modelValue":e[7]||(e[7]=o=>l.position=o),clearable:"",placeholder:t(a)("positionPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[T,m.value]])]),_:1},8,["modelValue","title"])}}});export{Z as _};
|
||||
1
niucloud/public/admin/assets/addon-7ecf1da7.js
Normal file
1
niucloud/public/admin/assets/addon-7ecf1da7.js
Normal file
@ -0,0 +1 @@
|
||||
import{O as t}from"./index-eed023fb.js";function a(n){return t.get("addon/local",n)}function s(n){return t.post(`addon/install/${n.addon}`,n)}function o(n){return t.post(`addon/uninstall/${n.addon}`,n,{showSuccessMessage:!0})}function d(n){return t.get(`addon/install/check/${n}`)}function l(){return t.get("addon/installtask")}function i(n){return t.get(`addon/cloudinstall/${n}`)}function u(n){return t.get(`addon/uninstall/check/${n}`)}function r(n){return t.put(`addon/install/cancel/${n}`,{},{showErrorMessage:!1})}function c(){return t.get("addon/list/install")}function g(){return t.get("home/site/group/app_list")}function f(){return t.get("addon/init")}function p(){return t.get("app/index")}function A(){return t.get("index/adv_list")}export{c as a,p as b,A as c,f as d,a as e,l as f,g,i as h,s as i,u as j,r as k,d as p,o as u};
|
||||
@ -1 +0,0 @@
|
||||
import{O as t}from"./index-f755d42f.js";function a(n){return t.get("addon/local",n)}function s(n){return t.post(`addon/install/${n.addon}`,n)}function o(n){return t.post(`addon/uninstall/${n.addon}`,n,{showSuccessMessage:!0})}function d(n){return t.get(`addon/install/check/${n}`)}function l(){return t.get("addon/installtask")}function i(n){return t.get(`addon/cloudinstall/${n}`)}function u(n){return t.get(`addon/uninstall/check/${n}`)}function r(n){return t.put(`addon/install/cancel/${n}`,{},{showErrorMessage:!1})}function c(){return t.get("addon/list/install")}function g(){return t.get("home/site/group/app_list")}function f(){return t.get("addon/init")}function p(){return t.get("app/index")}function A(){return t.get("index/adv_list")}export{c as a,p as b,A as c,f as d,a as e,l as f,g,i as h,s as i,u as j,r as k,d as p,o as u};
|
||||
@ -1 +0,0 @@
|
||||
import{_ as o}from"./address-list.vue_vue_type_script_setup_true_lang-5870abb5.js";import"vue";import"./member-6c14d092.js";import"./index-f755d42f.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"/admin/assets/shared/admin-lang.js";import"vue-router";import"/admin/assets/shared/admin-lang.js";export{o as default};
|
||||
@ -1 +0,0 @@
|
||||
import{_ as o}from"./address-list.vue_vue_type_script_setup_true_lang-8982c404.js";import"vue";import"./member-6c14d092.js";import"./index-f755d42f.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"/admin/assets/shared/admin-lang.js";import"vue-router";import"/admin/assets/shared/admin-lang.js";export{o as default};
|
||||
1
niucloud/public/admin/assets/address-list-91d79ad6.js
Normal file
1
niucloud/public/admin/assets/address-list-91d79ad6.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as o}from"./address-list.vue_vue_type_script_setup_true_lang-026043a7.js";import"vue";import"./member-7df8598f.js";import"./index-eed023fb.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"/admin/assets/shared/admin-lang.js";import"vue-router";import"/admin/assets/shared/admin-lang.js";export{o as default};
|
||||
1
niucloud/public/admin/assets/address-list-ea5b7400.js
Normal file
1
niucloud/public/admin/assets/address-list-ea5b7400.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as o}from"./address-list.vue_vue_type_script_setup_true_lang-22fd4b78.js";import"vue";import"./member-7df8598f.js";import"./index-eed023fb.js";import"pinia";import"@element-plus/icons-vue";import"axios";import"/admin/assets/shared/admin-lang.js";import"vue-router";import"/admin/assets/shared/admin-lang.js";export{o as default};
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user