mirror of
https://gitee.com/niucloud-team/niucloud.git
synced 2026-08-01 03:55:49 +00:00
1.2.3
注意事项:本次升级后将不再支持调用官方的云编译服务,如需使用云编译功能需使用官方提供的第三方云编译程序自行启用云编译服务。 修复 本地开发时会验证授权信息的问题 优化 本版本更新后卸载插件会同时删除本地文件 修复 支付回调失败问题 优化 云编译失败后增加异常分析,可排除异常插件后重新编译 修复 云编译没有清除旧的编译文件
This commit is contained in:
parent
396eb8406d
commit
0864a7a502
@ -1,9 +1,11 @@
|
|||||||
# api请求地址
|
# api请求地址
|
||||||
|
|
||||||
VITE_APP_BASE_URL='/adminapi/'
|
VITE_APP_BASE_URL='/adminapi/'
|
||||||
|
|
||||||
# 图片服务器地址
|
|
||||||
VITE_IMG_DOMAIN=''
|
VITE_IMG_DOMAIN=''
|
||||||
|
|
||||||
|
# 图片服务器地址VITE_IMG_DOMAIN='https://cs-home-service.site.niucloud.com/'
|
||||||
|
|
||||||
# 请求时header中token的参数名
|
# 请求时header中token的参数名
|
||||||
VITE_REQUEST_HEADER_TOKEN_KEY='token'
|
VITE_REQUEST_HEADER_TOKEN_KEY='token'
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,11 @@
|
|||||||
# api请求地址
|
# api请求地址
|
||||||
|
|
||||||
VITE_APP_BASE_URL='/adminapi/'
|
VITE_APP_BASE_URL='/adminapi/'
|
||||||
|
|
||||||
# 图片服务器地址
|
|
||||||
VITE_IMG_DOMAIN=''
|
VITE_IMG_DOMAIN=''
|
||||||
|
|
||||||
|
# 图片服务器地址VITE_IMG_DOMAIN='https://cs-home-service.site.niucloud.com/'
|
||||||
|
|
||||||
# 请求时header中token的参数名
|
# 请求时header中token的参数名
|
||||||
VITE_REQUEST_HEADER_TOKEN_KEY='token'
|
VITE_REQUEST_HEADER_TOKEN_KEY='token'
|
||||||
|
|
||||||
|
|||||||
@ -1,143 +0,0 @@
|
|||||||
# NiuCloud Admin 开发规范
|
|
||||||
|
|
||||||
## 技术栈区分
|
|
||||||
|
|
||||||
本项目采用前后端分离架构,包含两个主要前端部分:
|
|
||||||
|
|
||||||
1. **PC端后台管理系统**
|
|
||||||
- 框架: Vue 3 + TypeScript + Vite
|
|
||||||
- UI组件库: Element Plus
|
|
||||||
- 状态管理: Pinia
|
|
||||||
- 样式处理: SCSS + Tailwind CSS
|
|
||||||
|
|
||||||
2. **移动端应用**
|
|
||||||
- 框架: uni-app + Vue 3 + TypeScript
|
|
||||||
- UI组件库: uview-plus
|
|
||||||
- 状态管理: Pinia
|
|
||||||
- 样式处理: SCSS + Windi CSS
|
|
||||||
|
|
||||||
## 关键组件使用规范
|
|
||||||
|
|
||||||
### 消息提示组件
|
|
||||||
|
|
||||||
**重要注意事项:请根据开发平台选择正确的消息提示组件!**
|
|
||||||
|
|
||||||
#### PC端 (admin目录)
|
|
||||||
- **必须使用Element Plus的消息提示组件**,而不是uni-app的方法
|
|
||||||
- 主要组件包括:`ElMessage`、`ElMessageBox`、`ElNotification`等
|
|
||||||
- 导入方式:`import { ElMessage, ElMessageBox } from 'element-plus'`
|
|
||||||
- 使用示例:
|
|
||||||
```typescript
|
|
||||||
import { ElMessage } from 'element-plus'
|
|
||||||
|
|
||||||
// 成功消息
|
|
||||||
ElMessage.success('操作成功')
|
|
||||||
|
|
||||||
// 错误消息
|
|
||||||
ElMessage.error('操作失败')
|
|
||||||
|
|
||||||
// 确认对话框
|
|
||||||
ElMessageBox.confirm('确定要执行此操作吗?', '提示', {
|
|
||||||
confirmButtonText: '确定',
|
|
||||||
cancelButtonText: '取消',
|
|
||||||
type: 'warning'
|
|
||||||
}).then(() => {
|
|
||||||
// 用户点击确认后的逻辑
|
|
||||||
}).catch(() => {
|
|
||||||
// 用户点击取消后的逻辑
|
|
||||||
})
|
|
||||||
```
|
|
||||||
|
|
||||||
#### 移动端 (uni-app目录)
|
|
||||||
- **使用uni-app提供的API**进行消息提示
|
|
||||||
- 主要方法包括:`uni.showToast`、`uni.showModal`、`uni.showLoading`等
|
|
||||||
- 使用示例:
|
|
||||||
```typescript
|
|
||||||
// 成功提示
|
|
||||||
uni.showToast({
|
|
||||||
title: '操作成功',
|
|
||||||
icon: 'success',
|
|
||||||
duration: 2000
|
|
||||||
})
|
|
||||||
|
|
||||||
// 模态对话框
|
|
||||||
uni.showModal({
|
|
||||||
title: '提示',
|
|
||||||
content: '确定要执行此操作吗?',
|
|
||||||
success: (res) => {
|
|
||||||
if (res.confirm) {
|
|
||||||
// 用户点击确认后的逻辑
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
```
|
|
||||||
|
|
||||||
## API请求规范
|
|
||||||
|
|
||||||
### PC端API请求
|
|
||||||
- 使用`@/utils/request.ts`封装的请求工具
|
|
||||||
- 支持`showSuccessMessage`和`showErrorMessage`选项控制消息显示
|
|
||||||
- 示例:
|
|
||||||
```typescript
|
|
||||||
import request from '@/utils/request'
|
|
||||||
|
|
||||||
// GET请求
|
|
||||||
export function getOrderList(params: Record<string, any>) {
|
|
||||||
return request.get('order/list', params)
|
|
||||||
}
|
|
||||||
|
|
||||||
// POST请求(带成功消息)
|
|
||||||
export function createOrder(params: Record<string, any>) {
|
|
||||||
return request.post('order/create', params, { showSuccessMessage: true })
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 移动端API请求
|
|
||||||
- 使用uni-app的`uni.request`或封装的请求工具
|
|
||||||
- 示例:
|
|
||||||
```typescript
|
|
||||||
// 发送请求
|
|
||||||
uni.request({
|
|
||||||
url: 'https://example.com/api/order/list',
|
|
||||||
method: 'GET',
|
|
||||||
data: {
|
|
||||||
page: 1,
|
|
||||||
limit: 10
|
|
||||||
},
|
|
||||||
success: (res) => {
|
|
||||||
// 处理成功响应
|
|
||||||
},
|
|
||||||
fail: (err) => {
|
|
||||||
// 处理请求失败
|
|
||||||
}
|
|
||||||
})
|
|
||||||
```
|
|
||||||
|
|
||||||
## 代码风格规范
|
|
||||||
|
|
||||||
1. **文件命名**
|
|
||||||
- 组件文件:PascalCase,如 `OrderList.vue`
|
|
||||||
- 普通文件:kebab-case 或 camelCase,如 `api-service.ts` 或 `commonUtils.ts`
|
|
||||||
|
|
||||||
2. **TypeScript规范**
|
|
||||||
- 为函数参数、返回值和重要变量添加明确的类型注解
|
|
||||||
- 使用接口 (interface) 定义复杂数据结构
|
|
||||||
- 避免 `any` 类型的滥用
|
|
||||||
|
|
||||||
3. **Vue组件规范**
|
|
||||||
- 使用 Vue 3 Composition API 和 `<script setup lang="ts">` 语法
|
|
||||||
- 组件样式建议使用 scoped 属性或 CSS Modules
|
|
||||||
|
|
||||||
## 国际化规范
|
|
||||||
|
|
||||||
- PC端使用Vue I18n进行国际化,语言文件位于`src/lang`目录
|
|
||||||
- 移动端同样使用Vue I18n,语言文件位于`src/app/locale`目录
|
|
||||||
- 使用`t('key')`函数获取翻译文本
|
|
||||||
|
|
||||||
## 其他重要规范
|
|
||||||
|
|
||||||
- 严格遵循RESTful API设计规范
|
|
||||||
- 统一处理API响应数据和错误情况
|
|
||||||
- 代码提交前确保通过TypeScript类型检查
|
|
||||||
- 组件开发遵循高内聚低耦合原则
|
|
||||||
- 优先复用现有组件和工具函数
|
|
||||||
1
admin/auto-imports.d.ts
vendored
1
admin/auto-imports.d.ts
vendored
@ -1,7 +1,6 @@
|
|||||||
// Generated by 'unplugin-auto-import'
|
// Generated by 'unplugin-auto-import'
|
||||||
export {}
|
export {}
|
||||||
declare global {
|
declare global {
|
||||||
const ElMessage: typeof import('element-plus/es')['ElMessage']
|
|
||||||
const ElMessageBox: typeof import('element-plus/es')['ElMessageBox']
|
const ElMessageBox: typeof import('element-plus/es')['ElMessageBox']
|
||||||
const ElNotification: typeof import('element-plus/es')['ElNotification']
|
const ElNotification: typeof import('element-plus/es')['ElNotification']
|
||||||
}
|
}
|
||||||
|
|||||||
6
admin/components.d.ts
vendored
6
admin/components.d.ts
vendored
@ -17,11 +17,14 @@ declare module '@vue/runtime-core' {
|
|||||||
ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb']
|
ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb']
|
||||||
ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
|
ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
|
||||||
ElButton: typeof import('element-plus/es')['ElButton']
|
ElButton: typeof import('element-plus/es')['ElButton']
|
||||||
|
ElCalendar: typeof import('element-plus/es')['ElCalendar']
|
||||||
ElCard: typeof import('element-plus/es')['ElCard']
|
ElCard: typeof import('element-plus/es')['ElCard']
|
||||||
ElCarousel: typeof import('element-plus/es')['ElCarousel']
|
ElCarousel: typeof import('element-plus/es')['ElCarousel']
|
||||||
ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem']
|
ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem']
|
||||||
|
ElCascader: typeof import('element-plus/es')['ElCascader']
|
||||||
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
|
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
|
||||||
ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup']
|
ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup']
|
||||||
|
ElCheckTag: typeof import('element-plus/es')['ElCheckTag']
|
||||||
ElCol: typeof import('element-plus/es')['ElCol']
|
ElCol: typeof import('element-plus/es')['ElCol']
|
||||||
ElCollapse: typeof import('element-plus/es')['ElCollapse']
|
ElCollapse: typeof import('element-plus/es')['ElCollapse']
|
||||||
ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem']
|
ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem']
|
||||||
@ -32,6 +35,7 @@ declare module '@vue/runtime-core' {
|
|||||||
ElDescriptions: typeof import('element-plus/es')['ElDescriptions']
|
ElDescriptions: typeof import('element-plus/es')['ElDescriptions']
|
||||||
ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem']
|
ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem']
|
||||||
ElDialog: typeof import('element-plus/es')['ElDialog']
|
ElDialog: typeof import('element-plus/es')['ElDialog']
|
||||||
|
ElDivider: typeof import('element-plus/es')['ElDivider']
|
||||||
ElDrawer: typeof import('element-plus/es')['ElDrawer']
|
ElDrawer: typeof import('element-plus/es')['ElDrawer']
|
||||||
ElDropdown: typeof import('element-plus/es')['ElDropdown']
|
ElDropdown: typeof import('element-plus/es')['ElDropdown']
|
||||||
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
|
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
|
||||||
@ -58,6 +62,7 @@ declare module '@vue/runtime-core' {
|
|||||||
ElRadio: typeof import('element-plus/es')['ElRadio']
|
ElRadio: typeof import('element-plus/es')['ElRadio']
|
||||||
ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
|
ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
|
||||||
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
|
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
|
||||||
|
ElRate: typeof import('element-plus/es')['ElRate']
|
||||||
ElResult: typeof import('element-plus/es')['ElResult']
|
ElResult: typeof import('element-plus/es')['ElResult']
|
||||||
ElRow: typeof import('element-plus/es')['ElRow']
|
ElRow: typeof import('element-plus/es')['ElRow']
|
||||||
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
|
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
|
||||||
@ -78,6 +83,7 @@ declare module '@vue/runtime-core' {
|
|||||||
ElTimeline: typeof import('element-plus/es')['ElTimeline']
|
ElTimeline: typeof import('element-plus/es')['ElTimeline']
|
||||||
ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem']
|
ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem']
|
||||||
ElTimePicker: typeof import('element-plus/es')['ElTimePicker']
|
ElTimePicker: typeof import('element-plus/es')['ElTimePicker']
|
||||||
|
ElTimeSelect: typeof import('element-plus/es')['ElTimeSelect']
|
||||||
ElTooltip: typeof import('element-plus/es')['ElTooltip']
|
ElTooltip: typeof import('element-plus/es')['ElTooltip']
|
||||||
ElTree: typeof import('element-plus/es')['ElTree']
|
ElTree: typeof import('element-plus/es')['ElTree']
|
||||||
ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect']
|
ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect']
|
||||||
|
|||||||
@ -31,7 +31,7 @@ export function installAddon(params: Record<string, any>) {
|
|||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
export function cloudInstallAddon(params: Record<string, any>) {
|
export function cloudInstallAddon(params: Record<string, any>) {
|
||||||
return request.post(`addon/cloudinstall/${ params.addon }`, params)
|
return request.post(`addon/cloudinstall/${ params.addon }`, params, { showErrorMessage: false })
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -3,8 +3,8 @@ import request from '@/utils/request'
|
|||||||
/**
|
/**
|
||||||
* 云编译
|
* 云编译
|
||||||
*/
|
*/
|
||||||
export function cloudBuild() {
|
export function cloudBuild(params: Record<string, any> = {}) {
|
||||||
return request.post('niucloud/build', {})
|
return request.post('niucloud/build', params)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -32,5 +32,5 @@ export function clearCloudBuildTask() {
|
|||||||
* 云编译前检测
|
* 云编译前检测
|
||||||
*/
|
*/
|
||||||
export function preBuildCheck() {
|
export function preBuildCheck() {
|
||||||
return request.get('niucloud/build/check')
|
return request.get('niucloud/build/check', { showErrorMessage: false })
|
||||||
}
|
}
|
||||||
|
|||||||
@ -70,7 +70,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="flex justify-end mt-[20px]" v-show="cloudBuildTask">
|
<div class="flex justify-end mt-[20px]" v-show="cloudBuildTask">
|
||||||
<el-button @click="dialogCancel()" class="!w-[90px]">取消</el-button>
|
<el-button @click="dialogCancel()" class="!w-[90px]">取消</el-button>
|
||||||
<el-button type="primary" :loading="timeloading" class="!w-[140px]">已用时 {{ formattedDuration }}</el-button>
|
<el-button type="primary" :loading="timeloading" class="!w-[140px]" v-if="!errorInfo">已用时 {{ formattedDuration }}</el-button>
|
||||||
|
<el-button type="primary" @click="active = 'error'" v-if="errorInfo">下一步</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-show="active == 'error'">
|
<div v-show="active == 'error'">
|
||||||
@ -81,10 +82,18 @@
|
|||||||
<img src="@/app/assets/images/error_icon.png" alt="">
|
<img src="@/app/assets/images/error_icon.png" alt="">
|
||||||
</template>
|
</template>
|
||||||
<template #extra>
|
<template #extra>
|
||||||
<el-scrollbar class="max-h-[150px] !overflow-auto text-[15px] text-[#4F516D] mb-[15px] mt-[-15px]">
|
<el-scrollbar class="max-h-[150px] !overflow-auto text-[15px] text-[#4F516D] mb-[15px] mt-[-15px]" v-if="errorInfo">
|
||||||
{{errorInfo}}
|
{{errorInfo}}
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
|
<el-alert :closable="false" class="!mb-[15px] !w-full" v-if="errorAnalysis.analysis" type="warning">
|
||||||
|
<template #default>
|
||||||
|
<div class="text-left">
|
||||||
|
错误分析:{{ errorAnalysis.analysis }}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-alert>
|
||||||
<el-button @click="handleReturn" class="!w-[90px]">错误信息</el-button>
|
<el-button @click="handleReturn" class="!w-[90px]">错误信息</el-button>
|
||||||
|
<el-button @click="againBuild" type="primary" plain class="!w-[90px]" v-if="errorAnalysis.error_addon">重新编译</el-button>
|
||||||
<el-button @click="showDialog=false" type="primary" class="!w-[90px]">完成</el-button>
|
<el-button @click="showDialog=false" type="primary" class="!w-[90px]">完成</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-result>
|
</el-result>
|
||||||
@ -106,25 +115,85 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-show="active == 'again_build'">
|
||||||
|
<div class="h-[50vh] flex flex-col">
|
||||||
|
<div class="flex-1 h-0 flex items-center flex-col">
|
||||||
|
<el-table
|
||||||
|
ref="tableRef"
|
||||||
|
:data="installedAddonList"
|
||||||
|
row-key="key"
|
||||||
|
size="large"
|
||||||
|
@selection-change="handleSelectionChange"
|
||||||
|
>
|
||||||
|
<el-table-column type="selection" width="55" />
|
||||||
|
<el-table-column label="应用信息" align="left" width="300">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<div class="flex items-center cursor-pointer relative left-[-10px]">
|
||||||
|
<el-image class="w-[54px] h-[54px] rounded-[5px]" :src="row.icon" fit="contain">
|
||||||
|
<template #error>
|
||||||
|
<div class="flex items-center w-full h-full rounded-[5px]">
|
||||||
|
<img class="max-w-full max-h-full" src="@/app/assets/images/icon-addon-one.png" alt="" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-image>
|
||||||
|
<div class="flex-1 w-0 flex flex-col justify-center pl-[20px] font-500 text-[13px]">
|
||||||
|
<div class="w-[236px] truncate leading-[18px]">{{ row.title }}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="编译结果" align="left">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<div class="flex items-center" v-if="errorAnalysis.error_addon && errorAnalysis.error_addon != row.key">
|
||||||
|
<el-icon class="text-success mr-1"><SuccessFilled /></el-icon> 编译成功
|
||||||
|
</div>
|
||||||
|
<div v-else class="flex items-center">
|
||||||
|
<el-icon class="text-error mr-1"><WarningFilled /></el-icon> 编译失败,请排除该插件后重新进行编译
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-end mt-[20px]">
|
||||||
|
<el-button @click="dialogCancel()" class="!w-[90px]">取消</el-button>
|
||||||
|
<el-button @click="active = 'error'" plain type="primary" class="!w-[90px]">上一步</el-button>
|
||||||
|
<el-button type="primary" @click="againBuild" :loading="loading" class="!w-[100px]">开始编译</el-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref, h, watch, computed } from 'vue'
|
import { ref, watch, computed } from 'vue'
|
||||||
import { t } from '@/lang'
|
import { t } from '@/lang'
|
||||||
import { getCloudBuildLog, getCloudBuildTask, cloudBuild, clearCloudBuildTask, preBuildCheck } from '@/app/api/cloud'
|
import { getCloudBuildLog, getCloudBuildTask, cloudBuild, clearCloudBuildTask, preBuildCheck } from '@/app/api/cloud'
|
||||||
|
import { getInstalledAddonList } from '@/app/api/addon'
|
||||||
import { Terminal, TerminalFlash } from 'vue-web-terminal'
|
import { Terminal, TerminalFlash } from 'vue-web-terminal'
|
||||||
import 'vue-web-terminal/lib/theme/dark.css'
|
import 'vue-web-terminal/lib/theme/dark.css'
|
||||||
import { AnyObject } from '@/types/global'
|
import { AnyObject } from '@/types/global'
|
||||||
import { ElNotification, ElMessageBox } from 'element-plus'
|
import {ElNotification, ElMessageBox, ElMessage} from 'element-plus'
|
||||||
|
|
||||||
const showDialog = ref<boolean>(false)
|
const showDialog = ref<boolean>(false)
|
||||||
const terminalId = ref(Date.now());
|
const terminalId = ref(Date.now())
|
||||||
const cloudBuildTask = ref<null | AnyObject>(null)
|
const cloudBuildTask = ref<null | AnyObject>(null)
|
||||||
const active = ref('build')
|
const active = ref('build')
|
||||||
const cloudBuildCheck = ref<null | AnyObject>(null)
|
const cloudBuildCheck = ref<null | AnyObject>(null)
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const terminalRef = ref(null)
|
const terminalRef = ref(null)
|
||||||
|
const selectAddon = ref([])
|
||||||
|
const installedAddonList = ref([])
|
||||||
|
const tableRef = ref(null)
|
||||||
|
|
||||||
|
getInstalledAddonList().then(({ data }) => {
|
||||||
|
installedAddonList.value = Object.values(data)
|
||||||
|
})
|
||||||
|
|
||||||
|
const handleSelectionChange = (rows) => {
|
||||||
|
selectAddon.value = rows.map(row => {
|
||||||
|
return row.key
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
let cloudBuildLog = []
|
let cloudBuildLog = []
|
||||||
|
|
||||||
@ -157,6 +226,7 @@ const getCloudBuildTaskFn = () => {
|
|||||||
getCloudBuildTaskFn()
|
getCloudBuildTaskFn()
|
||||||
const errorInfo = ref('')
|
const errorInfo = ref('')
|
||||||
const timeloading = ref(false)
|
const timeloading = ref(false)
|
||||||
|
const errorAnalysis = ref({})
|
||||||
const getCloudBuildLogFn = () => {
|
const getCloudBuildLogFn = () => {
|
||||||
timeloading.value = true
|
timeloading.value = true
|
||||||
getCloudBuildLog().then(res => {
|
getCloudBuildLog().then(res => {
|
||||||
@ -206,6 +276,7 @@ const getCloudBuildLogFn = () => {
|
|||||||
cloudBuildLog.push(item.action)
|
cloudBuildLog.push(item.action)
|
||||||
|
|
||||||
if (item.code == 0) {
|
if (item.code == 0) {
|
||||||
|
errorAnalysis.value = res.data.error_analysis || {}
|
||||||
error = item.msg
|
error = item.msg
|
||||||
terminalRef.value.pushMessage({ content: item.msg, class: 'error' })
|
terminalRef.value.pushMessage({ content: item.msg, class: 'error' })
|
||||||
timeloading.value = false
|
timeloading.value = false
|
||||||
@ -294,11 +365,59 @@ const open = async () => {
|
|||||||
cloudBuildCheck.value = data
|
cloudBuildCheck.value = data
|
||||||
showDialog.value = true
|
showDialog.value = true
|
||||||
}
|
}
|
||||||
|
}).catch((e) => {
|
||||||
|
loading.value = false
|
||||||
|
showDialog.value = false
|
||||||
|
if (e.code && e.code == 601) {
|
||||||
|
ElMessageBox.confirm(
|
||||||
|
'云编译服务未启动,必须在启动后进行云编译!',
|
||||||
|
'提示',
|
||||||
|
{
|
||||||
|
distinguishCancelAndClose: true,
|
||||||
|
confirmButtonText: '重新检测',
|
||||||
|
cancelButtonText: '查看操作手册',
|
||||||
|
type: 'warning'
|
||||||
|
}
|
||||||
|
).then(() => {
|
||||||
|
open()
|
||||||
|
}).catch((action) => {
|
||||||
|
action == 'cancel' && window.open('https://doc.press.niucloud.com/php/saas-framework/use/other/third-party-cloud-compilation.html', '_blank')
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
ElMessage({ message: e.msg, type: 'error' })
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
const againBuild = () => {
|
||||||
|
if (active.value != 'again_build') {
|
||||||
|
active.value = 'again_build'
|
||||||
|
selectAddon.value = installedAddonList.value.map((item) => {
|
||||||
|
tableRef.value.toggleRowSelection(item, true)
|
||||||
|
return item.key
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
loading.value = true
|
||||||
|
cloudBuild({
|
||||||
|
addon: selectAddon.value
|
||||||
|
}).then(({ data }) => {
|
||||||
|
active.value = 'build'
|
||||||
|
loading.value = false
|
||||||
|
cloudBuildTask.value = data
|
||||||
|
showDialog.value = true
|
||||||
|
localStorage.removeItem('cloud_build_start_time')
|
||||||
|
getCloudBuildLogFn()
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
showDialog.value = false
|
showDialog.value = false
|
||||||
|
loading.value = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const selectable = (row: any) => {
|
||||||
|
return selectAddon.value.includes(row.key)
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 升级进度动画
|
* 升级进度动画
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -438,7 +438,7 @@ const executeUpgradeFn = () => {
|
|||||||
executeUpgrade().then(() => {
|
executeUpgrade().then(() => {
|
||||||
getUpgradeTaskFn()
|
getUpgradeTaskFn()
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
if (err.message.indexOf('队列') != -1) {
|
if (err.msg.indexOf('队列') != -1) {
|
||||||
retrySecond.value = 30
|
retrySecond.value = 30
|
||||||
retrySecondInterval = setInterval(() => {
|
retrySecondInterval = setInterval(() => {
|
||||||
retrySecond.value--
|
retrySecond.value--
|
||||||
@ -447,6 +447,26 @@ const executeUpgradeFn = () => {
|
|||||||
}
|
}
|
||||||
}, 1000)
|
}, 1000)
|
||||||
cloudBuildErrorTipsShowDialog.value = true
|
cloudBuildErrorTipsShowDialog.value = true
|
||||||
|
} else if (err.code && err.code == 601) {
|
||||||
|
ElMessageBox.confirm(
|
||||||
|
'云编译服务未启动,必须在启动后进行云编译!',
|
||||||
|
'提示',
|
||||||
|
{
|
||||||
|
distinguishCancelAndClose: true,
|
||||||
|
confirmButtonText: '重新检测',
|
||||||
|
cancelButtonText: '查看操作手册',
|
||||||
|
type: 'warning'
|
||||||
|
}
|
||||||
|
).then(() => {
|
||||||
|
open()
|
||||||
|
}).catch((action) => {
|
||||||
|
action == 'cancel' && window.open('https://doc.press.niucloud.com/php/saas-framework/use/other/third-party-cloud-compilation.html', '_blank')
|
||||||
|
})
|
||||||
|
} else if (err.response && err.response.status && err.response.status == 502) {
|
||||||
|
ElMessage({ dangerouslyUseHTMLString: true, duration: 5000, message: '程序执行超时请先调整超时限制, 具体操作方法<a style="text-decoration: underline;" href="https://doc.press.niucloud.com/php/v6-shop/use/chang-jian-wen-ti-chu-li/er-shi-ba-3001-an-88c5-sheng-ji-guo-cheng-zhong-ti-shi-201c-502-bad-gateway-201d-wen-ti-jie-jue.html#%E5%AE%89%E8%A3%85-%E5%8D%87%E7%BA%A7%E5%AE%8C%E6%88%90%E5%90%8E-%E4%BA%91%E7%BC%96%E8%AF%91%E8%BF%87%E7%A8%8B%E4%B8%AD%E6%8F%90%E7%A4%BA-502-bad-gateway-%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3" target="blank">点击查看相关手册</a>', type: 'error' })
|
||||||
|
setTimeout(() => {
|
||||||
|
executeUpgradeFn()
|
||||||
|
}, 5000)
|
||||||
} else {
|
} else {
|
||||||
ElMessage({ message: err.message, type: 'error' })
|
ElMessage({ message: err.message, type: 'error' })
|
||||||
}
|
}
|
||||||
@ -526,8 +546,26 @@ const upgradeAddonFn = () => {
|
|||||||
|
|
||||||
upgradeAddon(appKey, upgradeOption.value).then(() => {
|
upgradeAddon(appKey, upgradeOption.value).then(() => {
|
||||||
getUpgradeTaskFn()
|
getUpgradeTaskFn()
|
||||||
}).catch(() => {
|
}).catch((res) => {
|
||||||
loading.value = false
|
loading.value = false
|
||||||
|
if (res.code && res.code == 601) {
|
||||||
|
ElMessageBox.confirm(
|
||||||
|
'云编译服务未启动,必须在启动后进行云编译!',
|
||||||
|
'提示',
|
||||||
|
{
|
||||||
|
distinguishCancelAndClose: true,
|
||||||
|
confirmButtonText: '重新检测',
|
||||||
|
cancelButtonText: '查看操作手册',
|
||||||
|
type: 'warning'
|
||||||
|
}
|
||||||
|
).then(() => {
|
||||||
|
upgradeAddonFn()
|
||||||
|
}).catch((action) => {
|
||||||
|
action == 'cancel' && window.open('https://doc.press.niucloud.com/php/saas-framework/use/other/third-party-cloud-compilation.html', '_blank')
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
ElMessage({ message: res.msg, type: 'error' })
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const dialogUpgradePrompt = ref(false)
|
const dialogUpgradePrompt = ref(false)
|
||||||
@ -625,6 +663,14 @@ const dialogClose = (done: () => {}) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window.addEventListener('beforeunload', function (event) {
|
||||||
|
if (showDialog.value && active.value == 'upgrade' && upgradeTask.value && ['upgradeComplete', 'restoreComplete'].includes(upgradeTask.value.step) === false && !isBack.value) {
|
||||||
|
event.preventDefault()
|
||||||
|
event.returnValue = ''
|
||||||
|
return t('upgrade.showDialogCloseTips')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => showDialog.value,
|
() => showDialog.value,
|
||||||
() => {
|
() => {
|
||||||
|
|||||||
@ -36,7 +36,7 @@
|
|||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-form :inline="true" :model="searchParam" ref="searchFormRef" class="search-form" v-if="!loading && !isShowDetail && (activeName == 'installed' || activeName == 'all' || activeName == 'uninstalled')">
|
<el-form :inline="true" :model="searchParam" ref="searchFormRef" class="search-form" v-if="!loading && !isShowDetail && (activeName == 'installed' || activeName == 'all' || activeName == 'uninstalled')">
|
||||||
<el-form-item prop="type">
|
<el-form-item prop="type">
|
||||||
<el-select v-model="searchParam.type" clearable :placeholder="t('应用类型')" class="input-width">
|
<el-select v-model="searchParam.type" clearable :placeholder="t('应用类型')" class="input-width">
|
||||||
@ -83,7 +83,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-button class="ml-[auto]" @click="updateInformationFn({ key: 'niucloud-admin' })">
|
<el-button class="ml-[auto]" @click="updateInformationFn({ key: 'niucloud-admin' })">
|
||||||
<el-icon class="mr-[5px]">
|
<el-icon class="mr-[5px]">
|
||||||
<DocumentCopy />
|
<DocumentCopy />
|
||||||
@ -139,7 +139,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="flex-1 w-0">
|
<div class="flex-1 w-0">
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<p class="text-[16px] text-[#374151] truncate leading-[20px]" :title="row.title">{{ row.title }}</p>
|
<p class="text-[16px] text-[#374151] truncate leading-[20px]" :title="row.title">{{ row.title }}</p>
|
||||||
<span :class="{'app-ident': row.type == 'app', 'addon-ident': row.type == 'addon'}">{{row.type == 'app' ? '应用' : '插件'}}</span>
|
<span :class="{'app-ident': row.type == 'app', 'addon-ident': row.type == 'addon'}">{{row.type == 'app' ? '应用' : '插件'}}</span>
|
||||||
</div>
|
</div>
|
||||||
<p class="text-xs text-[#4F516D] truncate mt-[2px] font-bold" :title="row.key">{{ row.key }}</p>
|
<p class="text-xs text-[#4F516D] truncate mt-[2px] font-bold" :title="row.key">{{ row.key }}</p>
|
||||||
@ -1442,6 +1442,24 @@ const handleCloudInstall = () => {
|
|||||||
})
|
})
|
||||||
.catch((res) => {
|
.catch((res) => {
|
||||||
cloudInstalling.value = false
|
cloudInstalling.value = false
|
||||||
|
if (res.code && res.code == 601) {
|
||||||
|
ElMessageBox.confirm(
|
||||||
|
'云编译服务未启动,必须在启动后进行云编译!',
|
||||||
|
'提示',
|
||||||
|
{
|
||||||
|
distinguishCancelAndClose: true,
|
||||||
|
confirmButtonText: '重新检测',
|
||||||
|
cancelButtonText: '查看操作手册',
|
||||||
|
type: 'warning'
|
||||||
|
}
|
||||||
|
).then(() => {
|
||||||
|
handleCloudInstall()
|
||||||
|
}).catch((action) => {
|
||||||
|
action == 'cancel' && window.open('https://doc.press.niucloud.com/php/saas-framework/use/other/third-party-cloud-compilation.html', '_blank')
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
ElMessage({ message: res.msg, type: 'error' })
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -101,46 +101,46 @@ getTransferSceneFn()
|
|||||||
|
|
||||||
// 更改场景值(最终修复版)
|
// 更改场景值(最终修复版)
|
||||||
const handleInput = (e: any, key: any, data: any) => {
|
const handleInput = (e: any, key: any, data: any) => {
|
||||||
const val = e.target.value?.trim() || ''
|
const val = e.target.value?.trim() || ''
|
||||||
const originalVal = originalValues.value[key] || ''
|
const originalVal = originalValues.value[key] || ''
|
||||||
|
|
||||||
// 有值 → 清空:必须提交接口置空
|
// 有值 → 清空:必须提交接口置空
|
||||||
if (val === '' && originalVal !== '') {
|
if (val === '' && originalVal !== '') {
|
||||||
data.error = false
|
data.error = false
|
||||||
setSceneId({
|
setSceneId({
|
||||||
scene: key,
|
scene: key,
|
||||||
scene_id: ''
|
scene_id: ''
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
data.disabled = true
|
data.disabled = true
|
||||||
getTransferSceneFn()
|
getTransferSceneFn()
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 本来就空:不提交
|
// 本来就空:不提交
|
||||||
if (val === '' && originalVal === '') {
|
if (val === '' && originalVal === '') {
|
||||||
data.error = false
|
data.error = false
|
||||||
data.disabled = true
|
data.disabled = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 有值但长度不够:提示,不提交
|
// 有值但长度不够:提示,不提交
|
||||||
if (val.length < 4) {
|
if (val.length < 4) {
|
||||||
data.error = true
|
data.error = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 合法 4-5 位:提交
|
// 合法 4-5 位:提交
|
||||||
if (val.length >= 4 && val.length <= 5) {
|
if (val.length >= 4 && val.length <= 5) {
|
||||||
data.error = false
|
data.error = false
|
||||||
setSceneId({
|
setSceneId({
|
||||||
scene: key,
|
scene: key,
|
||||||
scene_id: val
|
scene_id: val
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
data.disabled = true
|
data.disabled = true
|
||||||
getTransferSceneFn()
|
getTransferSceneFn()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const inputRefs = ref<any>({})
|
const inputRefs = ref<any>({})
|
||||||
|
|||||||
@ -14,67 +14,67 @@
|
|||||||
<el-button class="w-[98px] !h-[36px]" type="primary" @click="handleCloudBuild" :loading="cloudBuildRef?.loading">云编译</el-button>
|
<el-button class="w-[98px] !h-[36px]" type="primary" @click="handleCloudBuild" :loading="cloudBuildRef?.loading">云编译</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-title bg-[#F4F5F7] border-[#E6E6E6] border-solid border-b-[1px] h-[40px] flex items-center p-[10px]">
|
<!-- <div class="panel-title bg-[#F4F5F7] border-[#E6E6E6] border-solid border-b-[1px] h-[40px] flex items-center p-[10px]">-->
|
||||||
<span class="text-[16px] font-500 text-[#1D1F3A]">云编译</span>
|
<!-- <span class="text-[16px] font-500 text-[#1D1F3A]">云编译</span>-->
|
||||||
<span class="text-[12px] text-[#9699B6] ml-[10px]">云编译不需要本地安装node环境即可进行,针对使用者方便快捷</span>
|
<!-- <span class="text-[12px] text-[#9699B6] ml-[10px]">云编译不需要本地安装node环境即可进行,针对使用者方便快捷</span>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div class="mt-[20px] flex mb-[14px] items-center">
|
<!-- <div class="mt-[20px] flex mb-[14px] items-center">-->
|
||||||
<span class="flex ml-[20px] font-500 text-[16px] items-center text-[#1D1F3A]">
|
<!-- <span class="flex ml-[20px] font-500 text-[16px] items-center text-[#1D1F3A]">-->
|
||||||
<!-- <i class="w-[3px] h-[12px] bg-primary mr-[6px] block"></i> -->
|
<!-- <!– <i class="w-[3px] h-[12px] bg-primary mr-[6px] block"></i> –>-->
|
||||||
温馨提示
|
<!-- 温馨提示-->
|
||||||
</span>
|
<!-- </span>-->
|
||||||
<span class="text-[12px] text-[#9699B6] ml-[10px]"> 以下情况可以进行云编译</span>
|
<!-- <span class="text-[12px] text-[#9699B6] ml-[10px]"> 以下情况可以进行云编译</span>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
|
|
||||||
<!-- <div class="text-[14px] text-[#606266] ml-[13px] mb-[18px]">云编译不需要本地安装node环境即可进行,针对使用者方便快捷</div> -->
|
<!-- <!– <div class="text-[14px] text-[#606266] ml-[13px] mb-[18px]">云编译不需要本地安装node环境即可进行,针对使用者方便快捷</div> –>-->
|
||||||
<div class="ml-[40px] text-[14px] text-[#4F516D] mb-[18px]">1、系统或插件,每次安装或升级完成后,需要云编译</div>
|
<!-- <div class="ml-[40px] text-[14px] text-[#4F516D] mb-[18px]">1、系统或插件,每次安装或升级完成后,需要云编译</div>-->
|
||||||
<div class="ml-[40px] text-[14px] text-[#4F516D] mb-[18px]">2、开发者编写完前端代码之后,可以使用云编译进行源码编译</div>
|
<!-- <div class="ml-[40px] text-[14px] text-[#4F516D] mb-[18px]">2、开发者编写完前端代码之后,可以使用云编译进行源码编译</div>-->
|
||||||
<div class="ml-[40px] text-[14px] text-[#4F516D] mb-[18px]">3、由于云编译不是针对某个插件进行编译,而是系统整体编译,因此如果同时需要安装多个插件时,往往需要安装到最后一个插件才整体进行云编译</div>
|
<!-- <div class="ml-[40px] text-[14px] text-[#4F516D] mb-[18px]">3、由于云编译不是针对某个插件进行编译,而是系统整体编译,因此如果同时需要安装多个插件时,往往需要安装到最后一个插件才整体进行云编译</div>-->
|
||||||
<div class="mt-[21px] flex mb-[21px] text-[16px] text-[#1D1F3A] font-500 items-center">
|
<!-- <div class="mt-[21px] flex mb-[21px] text-[16px] text-[#1D1F3A] font-500 items-center">-->
|
||||||
<span class="flex ml-[20px] items-center">
|
<!-- <span class="flex ml-[20px] items-center">-->
|
||||||
<!-- <i class="w-[3px] h-[12px] bg-primary mr-[6px] block"></i> -->
|
<!-- <!– <i class="w-[3px] h-[12px] bg-primary mr-[6px] block"></i> –>-->
|
||||||
云编译流程
|
<!-- 云编译流程-->
|
||||||
</span>
|
<!-- </span>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div class="ml-[40px]">
|
<!-- <div class="ml-[40px]">-->
|
||||||
<el-timeline>
|
<!-- <el-timeline>-->
|
||||||
<el-timeline-item :hollow="true">
|
<!-- <el-timeline-item :hollow="true">-->
|
||||||
<!-- <template #dot>
|
<!-- <!– <template #dot>-->
|
||||||
<div class="w-[15px] h-[15px] bg-primary rounded-[50%] text-[9px] text-[#fff] flex items-center justify-center">1</div>
|
<!-- <div class="w-[15px] h-[15px] bg-primary rounded-[50%] text-[9px] text-[#fff] flex items-center justify-center">1</div>-->
|
||||||
</template> -->
|
<!-- </template> –>-->
|
||||||
<div class="text-[16px] text-[#1D1F3A]">编译admin代码</div>
|
<!-- <div class="text-[16px] text-[#1D1F3A]">编译admin代码</div>-->
|
||||||
<div class="p-[10px] bg-[#F9F9FB] mt-[10px] text-[#4F516D] text-[14px] w-[1085px] border-[#F1F1F8] border-solid border-[1px] h-[40px] flex items-center rounded-[4px]">
|
<!-- <div class="p-[10px] bg-[#F9F9FB] mt-[10px] text-[#4F516D] text-[14px] w-[1085px] border-[#F1F1F8] border-solid border-[1px] h-[40px] flex items-center rounded-[4px]">-->
|
||||||
<span>云编译会将admin端的vue代码编译为对应的html文件,同时将生成的代码下载到系统 niucloud 下的</span>
|
<!-- <span>云编译会将admin端的vue代码编译为对应的html文件,同时将生成的代码下载到系统 niucloud 下的</span>-->
|
||||||
<span class="text-[#F09000] mx-[3px] font-bold">public/admin</span>
|
<!-- <span class="text-[#F09000] mx-[3px] font-bold">public/admin</span>-->
|
||||||
<span>目录中。后台的访问路径将变为</span>
|
<!-- <span>目录中。后台的访问路径将变为</span>-->
|
||||||
<span class="text-primary ml-[3px] font-500">https://域名/admin</span>
|
<!-- <span class="text-primary ml-[3px] font-500">https://域名/admin</span>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</el-timeline-item>
|
<!-- </el-timeline-item>-->
|
||||||
<el-timeline-item :hollow="true">
|
<!-- <el-timeline-item :hollow="true">-->
|
||||||
<div class="text-[16px] text-[#1D1F3A]">编译uniapp代码</div>
|
<!-- <div class="text-[16px] text-[#1D1F3A]">编译uniapp代码</div>-->
|
||||||
<div class="p-[10px] bg-[#F9F9FB] mt-[10px] text-[#4F516D] text-[14px] w-[1085px] border-[#F1F1F8] border-solid border-[1px] h-[40px] flex items-center rounded-[4px]">
|
<!-- <div class="p-[10px] bg-[#F9F9FB] mt-[10px] text-[#4F516D] text-[14px] w-[1085px] border-[#F1F1F8] border-solid border-[1px] h-[40px] flex items-center rounded-[4px]">-->
|
||||||
<span>云编译会将uniapp端的vue代码编译为对应的html文件,同时将生成的代码下载到系统 niucloud下的</span>
|
<!-- <span>云编译会将uniapp端的vue代码编译为对应的html文件,同时将生成的代码下载到系统 niucloud下的</span>-->
|
||||||
<span class="text-[#F09000] mx-[3px] font-bold">public/wap</span>
|
<!-- <span class="text-[#F09000] mx-[3px] font-bold">public/wap</span>-->
|
||||||
<span>目录中,这样手机端网页的访问路径将变为</span>
|
<!-- <span>目录中,这样手机端网页的访问路径将变为</span>-->
|
||||||
<span class="text-primary ml-[3px] font-500"> https://域名/wap</span>
|
<!-- <span class="text-primary ml-[3px] font-500"> https://域名/wap</span>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</el-timeline-item>
|
<!-- </el-timeline-item>-->
|
||||||
<el-timeline-item :hollow="true">
|
<!-- <el-timeline-item :hollow="true">-->
|
||||||
<div class="text-[16px] text-[#1D1F3A]">编译web代码</div>
|
<!-- <div class="text-[16px] text-[#1D1F3A]">编译web代码</div>-->
|
||||||
<div class="p-[10px] bg-[#F9F9FB] mt-[10px] text-[#4F516D] text-[14px] w-[1085px] border-[#F1F1F8] border-solid border-[1px] h-[40px] flex items-center rounded-[4px]">
|
<!-- <div class="p-[10px] bg-[#F9F9FB] mt-[10px] text-[#4F516D] text-[14px] w-[1085px] border-[#F1F1F8] border-solid border-[1px] h-[40px] flex items-center rounded-[4px]">-->
|
||||||
<span>云编译会将web端的vue代码编译为对应的html文件,同时将生成的代码下载到系统 niucloud下的</span>
|
<!-- <span>云编译会将web端的vue代码编译为对应的html文件,同时将生成的代码下载到系统 niucloud下的</span>-->
|
||||||
<span class="text-[#F09000] mx-[3px] font-bold">public/web</span>
|
<!-- <span class="text-[#F09000] mx-[3px] font-bold">public/web</span>-->
|
||||||
<span>目录中,这样电脑端网页的访问路径将变为</span>
|
<!-- <span>目录中,这样电脑端网页的访问路径将变为</span>-->
|
||||||
<span class="text-primary ml-[3px] font-500"> https://域名/web</span>
|
<!-- <span class="text-primary ml-[3px] font-500"> https://域名/web</span>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</el-timeline-item>
|
<!-- </el-timeline-item>-->
|
||||||
</el-timeline>
|
<!-- </el-timeline>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-[10px]">
|
<div class="mt-[10px]">
|
||||||
<div class="panel-title bg-[#F4F5F7] border-[#E6E6E6] border-solid border-b-[1px] h-[40px] flex items-center p-[10px]">
|
<div class="panel-title bg-[#F4F5F7] border-[#E6E6E6] border-solid border-b-[1px] h-[40px] flex items-center p-[10px]">
|
||||||
<span class="text-[16px] font-500 text-[#1D1F3A]">第三方云编译</span>
|
<span class="text-[16px] font-500 text-[#1D1F3A]">第三方云编译</span>
|
||||||
<el-switch v-model="isCloudCompilation" :active-value="1" :inactive-value="0" class="ml-[10px]" @change="confirm" />
|
<!-- <el-switch v-model="isCloudCompilation" :active-value="1" :inactive-value="0" class="ml-[10px]" @change="confirm" />-->
|
||||||
<span class="ml-[10px] text-[#9699B6] text-[12px]">自己搭建第三方云编译服务器,无需等待</span>
|
<span class="ml-[10px] text-[#9699B6] text-[12px]">自己搭建第三方云编译服务器,无需等待</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-[20px] flex mb-[14px] text-[16px] items-center text-[#1D1F3A]">
|
<div class="mt-[20px] flex mb-[14px] text-[16px] items-center text-[#1D1F3A]">
|
||||||
|
|||||||
@ -1 +1,3 @@
|
|||||||
/* addon-iconfont.css */
|
@import "addon/home_service/iconfont.css";
|
||||||
|
@import "addon/o2o/iconfont.css";
|
||||||
|
@import "addon/tourism/iconfont.css";
|
||||||
|
|||||||
38
admin/src/styles/icon/addon/home_service/iconfont.css
Normal file
38
admin/src/styles/icon/addon/home_service/iconfont.css
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
@font-face {
|
||||||
|
font-family: "o2o"; /* Project id 4412516 */
|
||||||
|
src: url('//at.alicdn.com/t/c/font_4412516_cacqsbew46.woff2?t=1705720131974') format('woff2'),
|
||||||
|
url('//at.alicdn.com/t/c/font_4412516_cacqsbew46.woff?t=1705720131974') format('woff'),
|
||||||
|
url('//at.alicdn.com/t/c/font_4412516_cacqsbew46.ttf?t=1705720131974') format('truetype');
|
||||||
|
}
|
||||||
|
|
||||||
|
.o2o {
|
||||||
|
font-family: "o2o" !important;
|
||||||
|
font-size: 16px;
|
||||||
|
font-style: normal;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
}
|
||||||
|
|
||||||
|
.o2o-icon-danhanghuadong:before {
|
||||||
|
content: "\e66f";
|
||||||
|
}
|
||||||
|
|
||||||
|
.o2o-icon-yuanjiao:before {
|
||||||
|
content: "\e6c0";
|
||||||
|
}
|
||||||
|
|
||||||
|
.o2o-icon-gl-square:before {
|
||||||
|
content: "\ea92";
|
||||||
|
}
|
||||||
|
|
||||||
|
.o2o-icon-sousuo12:before {
|
||||||
|
content: "\e699";
|
||||||
|
}
|
||||||
|
|
||||||
|
.o2o-icon-sousuo11:before {
|
||||||
|
content: "\e6d4";
|
||||||
|
}
|
||||||
|
|
||||||
|
.o2o-icon-jishi:before {
|
||||||
|
content: "\e600";
|
||||||
|
}
|
||||||
51
admin/src/styles/icon/addon/home_service/iconfont.json
Normal file
51
admin/src/styles/icon/addon/home_service/iconfont.json
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
{
|
||||||
|
"id": "4412516",
|
||||||
|
"name": "上门服务",
|
||||||
|
"font_family": "o2o",
|
||||||
|
"css_prefix_text": "o2o-icon-",
|
||||||
|
"description": "",
|
||||||
|
"glyphs": [
|
||||||
|
{
|
||||||
|
"icon_id": "30621139",
|
||||||
|
"name": "单行滑动",
|
||||||
|
"font_class": "danhanghuadong",
|
||||||
|
"unicode": "e66f",
|
||||||
|
"unicode_decimal": 58991
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon_id": "7149037",
|
||||||
|
"name": "圆角",
|
||||||
|
"font_class": "yuanjiao",
|
||||||
|
"unicode": "e6c0",
|
||||||
|
"unicode_decimal": 59072
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon_id": "7594344",
|
||||||
|
"name": "20gl-square",
|
||||||
|
"font_class": "gl-square",
|
||||||
|
"unicode": "ea92",
|
||||||
|
"unicode_decimal": 60050
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon_id": "10133070",
|
||||||
|
"name": "搜索",
|
||||||
|
"font_class": "sousuo12",
|
||||||
|
"unicode": "e699",
|
||||||
|
"unicode_decimal": 59033
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon_id": "14652583",
|
||||||
|
"name": "搜索",
|
||||||
|
"font_class": "sousuo11",
|
||||||
|
"unicode": "e6d4",
|
||||||
|
"unicode_decimal": 59092
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon_id": "6818781",
|
||||||
|
"name": "技师",
|
||||||
|
"font_class": "jishi",
|
||||||
|
"unicode": "e600",
|
||||||
|
"unicode_decimal": 58880
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
38
admin/src/styles/icon/addon/o2o/iconfont.css
Normal file
38
admin/src/styles/icon/addon/o2o/iconfont.css
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
@font-face {
|
||||||
|
font-family: "o2o"; /* Project id 4412516 */
|
||||||
|
src: url('//at.alicdn.com/t/c/font_4412516_cacqsbew46.woff2?t=1705720131974') format('woff2'),
|
||||||
|
url('//at.alicdn.com/t/c/font_4412516_cacqsbew46.woff?t=1705720131974') format('woff'),
|
||||||
|
url('//at.alicdn.com/t/c/font_4412516_cacqsbew46.ttf?t=1705720131974') format('truetype');
|
||||||
|
}
|
||||||
|
|
||||||
|
.o2o {
|
||||||
|
font-family: "o2o" !important;
|
||||||
|
font-size: 16px;
|
||||||
|
font-style: normal;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
}
|
||||||
|
|
||||||
|
.o2o-icon-danhanghuadong:before {
|
||||||
|
content: "\e66f";
|
||||||
|
}
|
||||||
|
|
||||||
|
.o2o-icon-yuanjiao:before {
|
||||||
|
content: "\e6c0";
|
||||||
|
}
|
||||||
|
|
||||||
|
.o2o-icon-gl-square:before {
|
||||||
|
content: "\ea92";
|
||||||
|
}
|
||||||
|
|
||||||
|
.o2o-icon-sousuo12:before {
|
||||||
|
content: "\e699";
|
||||||
|
}
|
||||||
|
|
||||||
|
.o2o-icon-sousuo11:before {
|
||||||
|
content: "\e6d4";
|
||||||
|
}
|
||||||
|
|
||||||
|
.o2o-icon-jishi:before {
|
||||||
|
content: "\e600";
|
||||||
|
}
|
||||||
51
admin/src/styles/icon/addon/o2o/iconfont.json
Normal file
51
admin/src/styles/icon/addon/o2o/iconfont.json
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
{
|
||||||
|
"id": "4412516",
|
||||||
|
"name": "上门服务",
|
||||||
|
"font_family": "o2o",
|
||||||
|
"css_prefix_text": "o2o-icon-",
|
||||||
|
"description": "",
|
||||||
|
"glyphs": [
|
||||||
|
{
|
||||||
|
"icon_id": "30621139",
|
||||||
|
"name": "单行滑动",
|
||||||
|
"font_class": "danhanghuadong",
|
||||||
|
"unicode": "e66f",
|
||||||
|
"unicode_decimal": 58991
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon_id": "7149037",
|
||||||
|
"name": "圆角",
|
||||||
|
"font_class": "yuanjiao",
|
||||||
|
"unicode": "e6c0",
|
||||||
|
"unicode_decimal": 59072
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon_id": "7594344",
|
||||||
|
"name": "20gl-square",
|
||||||
|
"font_class": "gl-square",
|
||||||
|
"unicode": "ea92",
|
||||||
|
"unicode_decimal": 60050
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon_id": "10133070",
|
||||||
|
"name": "搜索",
|
||||||
|
"font_class": "sousuo12",
|
||||||
|
"unicode": "e699",
|
||||||
|
"unicode_decimal": 59033
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon_id": "14652583",
|
||||||
|
"name": "搜索",
|
||||||
|
"font_class": "sousuo11",
|
||||||
|
"unicode": "e6d4",
|
||||||
|
"unicode_decimal": 59092
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon_id": "6818781",
|
||||||
|
"name": "技师",
|
||||||
|
"font_class": "jishi",
|
||||||
|
"unicode": "e600",
|
||||||
|
"unicode_decimal": 58880
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
58
admin/src/styles/icon/addon/tourism/iconfont.css
Normal file
58
admin/src/styles/icon/addon/tourism/iconfont.css
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
@font-face {
|
||||||
|
font-family: "tourism"; /* Project id 4137250 */
|
||||||
|
src: url('//at.alicdn.com/t/c/font_4137250_st1ha9l0k1e.woff2?t=1687685028672') format('woff2'),
|
||||||
|
url('//at.alicdn.com/t/c/font_4137250_st1ha9l0k1e.woff?t=1687685028672') format('woff'),
|
||||||
|
url('//at.alicdn.com/t/c/font_4137250_st1ha9l0k1e.ttf?t=1687685028672') format('truetype');
|
||||||
|
}
|
||||||
|
|
||||||
|
.tourism {
|
||||||
|
font-family: "tourism" !important;
|
||||||
|
font-size: 16px;
|
||||||
|
font-style: normal;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tourism-icon-feiji:before {
|
||||||
|
content: "\e600";
|
||||||
|
}
|
||||||
|
|
||||||
|
.tourism-icon-lvyou:before {
|
||||||
|
content: "\e6a9";
|
||||||
|
}
|
||||||
|
|
||||||
|
.tourism-icon-lvyouchanpin:before {
|
||||||
|
content: "\e63b";
|
||||||
|
}
|
||||||
|
|
||||||
|
.tourism-icon-lvyou1:before {
|
||||||
|
content: "\e623";
|
||||||
|
}
|
||||||
|
|
||||||
|
.tourism-icon-lvyou2:before {
|
||||||
|
content: "\e601";
|
||||||
|
}
|
||||||
|
|
||||||
|
.tourism-icon-lvyou3:before {
|
||||||
|
content: "\e60c";
|
||||||
|
}
|
||||||
|
|
||||||
|
.tourism-icon-lvyoubaochedingdan:before {
|
||||||
|
content: "\e612";
|
||||||
|
}
|
||||||
|
|
||||||
|
.tourism-icon-lvyou4:before {
|
||||||
|
content: "\e653";
|
||||||
|
}
|
||||||
|
|
||||||
|
.tourism-icon-lvyou5:before {
|
||||||
|
content: "\e610";
|
||||||
|
}
|
||||||
|
|
||||||
|
.tourism-icon-lvyouguanguang:before {
|
||||||
|
content: "\e87e";
|
||||||
|
}
|
||||||
|
|
||||||
|
.tourism-icon-lvyou6:before {
|
||||||
|
content: "\e642";
|
||||||
|
}
|
||||||
86
admin/src/styles/icon/addon/tourism/iconfont.json
Normal file
86
admin/src/styles/icon/addon/tourism/iconfont.json
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
{
|
||||||
|
"id": "4137250",
|
||||||
|
"name": "旅游业",
|
||||||
|
"font_family": "tourism",
|
||||||
|
"css_prefix_text": "tourism-icon-",
|
||||||
|
"description": "",
|
||||||
|
"glyphs": [
|
||||||
|
{
|
||||||
|
"icon_id": "1443",
|
||||||
|
"name": "飞机",
|
||||||
|
"font_class": "feiji",
|
||||||
|
"unicode": "e600",
|
||||||
|
"unicode_decimal": 58880
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon_id": "446824",
|
||||||
|
"name": "旅游",
|
||||||
|
"font_class": "lvyou",
|
||||||
|
"unicode": "e6a9",
|
||||||
|
"unicode_decimal": 59049
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon_id": "1167173",
|
||||||
|
"name": "旅游产品",
|
||||||
|
"font_class": "lvyouchanpin",
|
||||||
|
"unicode": "e63b",
|
||||||
|
"unicode_decimal": 58939
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon_id": "1354920",
|
||||||
|
"name": "旅游",
|
||||||
|
"font_class": "lvyou1",
|
||||||
|
"unicode": "e623",
|
||||||
|
"unicode_decimal": 58915
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon_id": "1505555",
|
||||||
|
"name": "旅游",
|
||||||
|
"font_class": "lvyou2",
|
||||||
|
"unicode": "e601",
|
||||||
|
"unicode_decimal": 58881
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon_id": "2121726",
|
||||||
|
"name": "旅游",
|
||||||
|
"font_class": "lvyou3",
|
||||||
|
"unicode": "e60c",
|
||||||
|
"unicode_decimal": 58892
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon_id": "2357494",
|
||||||
|
"name": "旅游包车订单",
|
||||||
|
"font_class": "lvyoubaochedingdan",
|
||||||
|
"unicode": "e612",
|
||||||
|
"unicode_decimal": 58898
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon_id": "3944019",
|
||||||
|
"name": "旅游",
|
||||||
|
"font_class": "lvyou4",
|
||||||
|
"unicode": "e653",
|
||||||
|
"unicode_decimal": 58963
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon_id": "4838220",
|
||||||
|
"name": "旅游",
|
||||||
|
"font_class": "lvyou5",
|
||||||
|
"unicode": "e610",
|
||||||
|
"unicode_decimal": 58896
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon_id": "7444178",
|
||||||
|
"name": "旅游观光",
|
||||||
|
"font_class": "lvyouguanguang",
|
||||||
|
"unicode": "e87e",
|
||||||
|
"unicode_decimal": 59518
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon_id": "9748082",
|
||||||
|
"name": "旅游",
|
||||||
|
"font_class": "lvyou6",
|
||||||
|
"unicode": "e642",
|
||||||
|
"unicode_decimal": 58946
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@ -21,6 +21,27 @@ interface requestResponse extends AxiosResponse {
|
|||||||
config: InternalRequestConfig
|
config: InternalRequestConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class ErrorResponse {
|
||||||
|
msg: string = '';
|
||||||
|
code: number = 0;
|
||||||
|
response: any = null;
|
||||||
|
|
||||||
|
constructor(msg: string);
|
||||||
|
constructor(code: number, msg: string, response: any);
|
||||||
|
|
||||||
|
constructor(arg1?: string | number, arg2?: string, arg3?: any) {
|
||||||
|
if (typeof arg1 === 'number') {
|
||||||
|
this.code = arg1;
|
||||||
|
this.msg = arg2 || '';
|
||||||
|
this.response = arg3; // 修正点3:补上漏掉的赋值
|
||||||
|
} else {
|
||||||
|
this.msg = (arg1 as string) || '';
|
||||||
|
this.code = 0;
|
||||||
|
this.response = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class Request {
|
class Request {
|
||||||
private instance: AxiosInstance;
|
private instance: AxiosInstance;
|
||||||
|
|
||||||
@ -45,7 +66,7 @@ class Request {
|
|||||||
return config
|
return config
|
||||||
},
|
},
|
||||||
(err: any) => {
|
(err: any) => {
|
||||||
return Promise.reject(err)
|
return Promise.reject(new ErrorResponse(0, err.message, err.response))
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -57,7 +78,7 @@ class Request {
|
|||||||
if (res.code != 1) {
|
if (res.code != 1) {
|
||||||
this.handleAuthError(res.code)
|
this.handleAuthError(res.code)
|
||||||
if (res.code != 401 && response.config.showErrorMessage !== false) this.showElMessage({ message: res.msg, type: 'error', dangerouslyUseHTMLString: true, duration: 5000 })
|
if (res.code != 401 && response.config.showErrorMessage !== false) this.showElMessage({ message: res.msg, type: 'error', dangerouslyUseHTMLString: true, duration: 5000 })
|
||||||
return Promise.reject(new Error(res.msg || 'Error'))
|
return Promise.reject(res)
|
||||||
} else {
|
} else {
|
||||||
if (response.config.showSuccessMessage) ElMessage({ message: res.msg, type: 'success' })
|
if (response.config.showSuccessMessage) ElMessage({ message: res.msg, type: 'success' })
|
||||||
return res
|
return res
|
||||||
@ -67,7 +88,7 @@ class Request {
|
|||||||
},
|
},
|
||||||
(err: any) => {
|
(err: any) => {
|
||||||
this.handleNetworkError(err)
|
this.handleNetworkError(err)
|
||||||
return Promise.reject(err)
|
return Promise.reject(new ErrorResponse(0, err.message, err.response))
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -195,7 +216,7 @@ class Request {
|
|||||||
this.messageCache.set(cacheKey, { timestamp: now });
|
this.messageCache.set(cacheKey, { timestamp: now });
|
||||||
ElMessage(options)
|
ElMessage(options)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 定期清理过期缓存,防止内存泄漏
|
// 定期清理过期缓存,防止内存泄漏
|
||||||
if (this.messageCache.size > this.MAX_CACHE_SIZE) {
|
if (this.messageCache.size > this.MAX_CACHE_SIZE) {
|
||||||
for (const [key, value] of this.messageCache.entries()) {
|
for (const [key, value] of this.messageCache.entries()) {
|
||||||
|
|||||||
@ -108,7 +108,7 @@ class ExceptionHandle extends Handle
|
|||||||
} else if ($e instanceof RouteNotFoundException) {
|
} else if ($e instanceof RouteNotFoundException) {
|
||||||
return fail('当前访问路由未定义或不匹配 路由地址:' . request()->baseUrl());
|
return fail('当前访问路由未定义或不匹配 路由地址:' . request()->baseUrl());
|
||||||
} else if($e instanceof \RuntimeException){
|
} else if($e instanceof \RuntimeException){
|
||||||
return fail($e->getMessage(), $massageData);
|
return fail($e->getMessage(), $massageData, $e->getCode() ?: 0);
|
||||||
} else {
|
} else {
|
||||||
return $this->handleException($e);
|
return $this->handleException($e);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -30,7 +30,10 @@ class Cloud extends BaseAdminController
|
|||||||
* @return \think\Response
|
* @return \think\Response
|
||||||
*/
|
*/
|
||||||
public function build() {
|
public function build() {
|
||||||
return success(data:(new CoreCloudBuildService())->cloudBuild());
|
$data = $this->request->params([
|
||||||
|
[ 'addon', [] ]
|
||||||
|
]);
|
||||||
|
return success(data:(new CoreCloudBuildService())->cloudBuild($data['addon']));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -79,7 +82,7 @@ class Cloud extends BaseAdminController
|
|||||||
$data = $this->request->params([
|
$data = $this->request->params([
|
||||||
[ 'url', '' ],
|
[ 'url', '' ],
|
||||||
]);
|
]);
|
||||||
$is_connected = (new CloudService(true,$data['url']))->is_connected;
|
$is_connected = (new CloudService(true, $data['url']))->is_connected;
|
||||||
return success('SUCCESS',$is_connected);
|
return success('SUCCESS',$is_connected);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -92,7 +95,6 @@ class Cloud extends BaseAdminController
|
|||||||
{
|
{
|
||||||
$data = $this->request->params([
|
$data = $this->request->params([
|
||||||
[ 'url', '' ],
|
[ 'url', '' ],
|
||||||
[ 'is_open', 0 ],
|
|
||||||
]);
|
]);
|
||||||
return success('SUCCESS',(new NiucloudService())->setLocalCloudCompileConfig($data));
|
return success('SUCCESS',(new NiucloudService())->setLocalCloudCompileConfig($data));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -30,6 +30,7 @@ class Pay extends BaseApiController
|
|||||||
*/
|
*/
|
||||||
public function notify($site_id, $channel, $type, $action)
|
public function notify($site_id, $channel, $type, $action)
|
||||||
{
|
{
|
||||||
|
$this->request->siteId($site_id);
|
||||||
return (new PayService())->notify($channel, $type, $action);
|
return (new PayService())->notify($channel, $type, $action);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -26,6 +26,7 @@ Route::group('pay',function () {
|
|||||||
Route::get('friendspay/info/:trade_type/:trade_id', 'pay.Pay/friendspayInfo');
|
Route::get('friendspay/info/:trade_type/:trade_id', 'pay.Pay/friendspayInfo');
|
||||||
|
|
||||||
})->middleware(ApiChannel::class)
|
})->middleware(ApiChannel::class)
|
||||||
|
->middleware(ApiCheckToken::class, false)//表示验证登录
|
||||||
->middleware(ApiLog::class);
|
->middleware(ApiLog::class);
|
||||||
|
|
||||||
Route::group('pay',function () {
|
Route::group('pay',function () {
|
||||||
@ -50,4 +51,4 @@ Route::group('transfer',function () {
|
|||||||
|
|
||||||
})->middleware(ApiChannel::class)
|
})->middleware(ApiChannel::class)
|
||||||
->middleware(ApiCheckToken::class, true)//表示验证登录
|
->middleware(ApiCheckToken::class, true)//表示验证登录
|
||||||
->middleware(ApiLog::class);
|
->middleware(ApiLog::class);
|
||||||
|
|||||||
@ -56,9 +56,6 @@ class Index extends BaseInstall
|
|||||||
//sodium
|
//sodium
|
||||||
$sodium = extension_loaded('sodium');
|
$sodium = extension_loaded('sodium');
|
||||||
$system_variables[] = [ "name" => "sodium", "need" => "开启", "status" => $sodium ];
|
$system_variables[] = [ "name" => "sodium", "need" => "开启", "status" => $sodium ];
|
||||||
//imagick
|
|
||||||
$imagick = extension_loaded('imagick');
|
|
||||||
$system_variables[] = [ "name" => "imagick", "need" => "开启", "status" => $imagick ];
|
|
||||||
|
|
||||||
$root_path = str_replace("\\", DIRECTORY_SEPARATOR, dirname(__FILE__, 4));
|
$root_path = str_replace("\\", DIRECTORY_SEPARATOR, dirname(__FILE__, 4));
|
||||||
$root_path = str_replace("../", DIRECTORY_SEPARATOR, $root_path);
|
$root_path = str_replace("../", DIRECTORY_SEPARATOR, $root_path);
|
||||||
@ -91,7 +88,7 @@ class Index extends BaseInstall
|
|||||||
$this->assign("name", $name);
|
$this->assign("name", $name);
|
||||||
$this->assign("verison", $verison);
|
$this->assign("verison", $verison);
|
||||||
$this->assign("dirs_list", $dirs_list);
|
$this->assign("dirs_list", $dirs_list);
|
||||||
if ($verison && $pdo && $curl && $openssl && $gd && $fileinfo && $is_dir && $imagick) {
|
if ($verison && $pdo && $curl && $openssl && $gd && $fileinfo && $is_dir) {
|
||||||
$continue = true;
|
$continue = true;
|
||||||
} else {
|
} else {
|
||||||
$continue = false;
|
$continue = false;
|
||||||
@ -419,7 +416,7 @@ class Index extends BaseInstall
|
|||||||
}
|
}
|
||||||
|
|
||||||
//如果数据库不存在,我们就进行创建。
|
//如果数据库不存在,我们就进行创建。
|
||||||
$dbsql = "CREATE DATABASE `$dbname`";
|
$dbsql = "CREATE DATABASE `$dbname` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci";
|
||||||
$db_create = mysqli_query($conn, $dbsql);
|
$db_create = mysqli_query($conn, $dbsql);
|
||||||
if (!$db_create) {
|
if (!$db_create) {
|
||||||
return fail('创建数据库失败,请确认是否有足够的权限!');
|
return fail('创建数据库失败,请确认是否有足够的权限!');
|
||||||
|
|||||||
@ -79,7 +79,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="onetd">数据库编码:</td>
|
<td class="onetd">数据库编码:</td>
|
||||||
<td>
|
<td>
|
||||||
<label class="install-code">UTF8</label>
|
<label class="install-code">utf8mb4</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@ -320,7 +320,7 @@ return [
|
|||||||
'NEED_TO_AUTHORIZE_FIRST' => '使用云服务需先进行授权',
|
'NEED_TO_AUTHORIZE_FIRST' => '使用云服务需先进行授权',
|
||||||
'WEAPP_UPLOADING' => '小程序有正在上传的版本,请等待上一版本上传完毕后再进行操作',
|
'WEAPP_UPLOADING' => '小程序有正在上传的版本,请等待上一版本上传完毕后再进行操作',
|
||||||
'CLOUD_BUILD_TASK_EXIST' => '已有正在执行中的编译任务',
|
'CLOUD_BUILD_TASK_EXIST' => '已有正在执行中的编译任务',
|
||||||
'CONNECT_FAIL' => '连接失败',
|
'CONNECT_FAIL' => '云编译服务连接失败',
|
||||||
|
|
||||||
//核销相关
|
//核销相关
|
||||||
'VERIFY_TYPE_ERROR' => '核销类型错误',
|
'VERIFY_TYPE_ERROR' => '核销类型错误',
|
||||||
|
|||||||
@ -110,7 +110,11 @@ class AuthService extends BaseAdminService
|
|||||||
if (strpos($rule, $item) !== false) return;
|
if (strpos($rule, $item) !== false) return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$authinfo = (new CoreAuthService())->getAuthInfo()['data'] ?? [];;
|
$authinfo = [];
|
||||||
|
try {
|
||||||
|
$authinfo = (new CoreAuthService())->getAuthInfo()['data'] ?? [];;
|
||||||
|
} catch (Exception $e) {
|
||||||
|
}
|
||||||
if (empty($authinfo)) return;
|
if (empty($authinfo)) return;
|
||||||
|
|
||||||
if (!$this->isCheckDomain()) return;
|
if (!$this->isCheckDomain()) return;
|
||||||
|
|||||||
@ -99,7 +99,7 @@ class NiucloudService extends BaseAdminService
|
|||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'baseUri' => $data['url'],
|
'baseUri' => $data['url'],
|
||||||
'isOpen' => $data['is_open'],
|
'isOpen' => 1,
|
||||||
];
|
];
|
||||||
return $this->core_config_service->setConfig(0,'LOCAL_CLOUD_COMPILE_CONFIG', $data);
|
return $this->core_config_service->setConfig(0,'LOCAL_CLOUD_COMPILE_CONFIG', $data);
|
||||||
}
|
}
|
||||||
@ -113,7 +113,7 @@ class NiucloudService extends BaseAdminService
|
|||||||
$config = $this->core_config_service->getConfig(0,'LOCAL_CLOUD_COMPILE_CONFIG')['value'] ?? [];
|
$config = $this->core_config_service->getConfig(0,'LOCAL_CLOUD_COMPILE_CONFIG')['value'] ?? [];
|
||||||
return [
|
return [
|
||||||
'baseUri' => $config['baseUri'] ?? '',
|
'baseUri' => $config['baseUri'] ?? '',
|
||||||
'isOpen' => $config['isOpen'] ?? 0,
|
'isOpen' => 1,
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,6 +35,7 @@ use core\exception\CloudBuildException;
|
|||||||
use core\exception\CommonException;
|
use core\exception\CommonException;
|
||||||
use core\util\DbBackup;
|
use core\util\DbBackup;
|
||||||
use core\util\niucloud\BaseNiucloudClient;
|
use core\util\niucloud\BaseNiucloudClient;
|
||||||
|
use core\util\niucloud\CloudService;
|
||||||
use think\facade\Cache;
|
use think\facade\Cache;
|
||||||
use think\facade\Db;
|
use think\facade\Db;
|
||||||
use think\facade\Log;
|
use think\facade\Log;
|
||||||
@ -228,28 +229,31 @@ class UpgradeService extends BaseAdminService
|
|||||||
$response = ( new CoreAddonCloudService() )->upgradeAddon($upgrade);
|
$response = ( new CoreAddonCloudService() )->upgradeAddon($upgrade);
|
||||||
if (isset($response[ 'code' ]) && $response[ 'code' ] == 0) throw new CommonException($response[ 'msg' ]);
|
if (isset($response[ 'code' ]) && $response[ 'code' ] == 0) throw new CommonException($response[ 'msg' ]);
|
||||||
|
|
||||||
|
$key = uniqid();
|
||||||
|
$upgrade_dir = $this->upgrade_dir . $key . DIRECTORY_SEPARATOR;
|
||||||
|
|
||||||
|
if (!is_dir($upgrade_dir)) {
|
||||||
|
dir_mkdir($upgrade_dir);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 是否需要备份
|
||||||
|
$is_need_backup = $data['is_need_backup'] ?? true;
|
||||||
|
if (!$is_need_backup) {
|
||||||
|
unset($this->steps['backupCode']);
|
||||||
|
unset($this->steps['backupSql']);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 是否需要云编译
|
||||||
|
$is_need_cloudbuild = $data['is_need_cloudbuild'] ?? true;
|
||||||
|
if (!$is_need_cloudbuild) {
|
||||||
|
unset($this->steps['cloudBuild']);
|
||||||
|
unset($this->steps['gteCloudBuildLog']);
|
||||||
|
} else {
|
||||||
|
// 校验云编译服务
|
||||||
|
(new CloudService())->checkLocal();
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$key = uniqid();
|
|
||||||
$upgrade_dir = $this->upgrade_dir . $key . DIRECTORY_SEPARATOR;
|
|
||||||
|
|
||||||
if (!is_dir($upgrade_dir)) {
|
|
||||||
dir_mkdir($upgrade_dir);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 是否需要备份
|
|
||||||
$is_need_backup = $data['is_need_backup'] ?? true;
|
|
||||||
if (!$is_need_backup) {
|
|
||||||
unset($this->steps['backupCode']);
|
|
||||||
unset($this->steps['backupSql']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 是否需要云编译
|
|
||||||
$is_need_cloudbuild = $data['is_need_cloudbuild'] ?? true;
|
|
||||||
if (!$is_need_cloudbuild) {
|
|
||||||
unset($this->steps['cloudBuild']);
|
|
||||||
unset($this->steps['gteCloudBuildLog']);
|
|
||||||
}
|
|
||||||
|
|
||||||
$upgrade_task = [
|
$upgrade_task = [
|
||||||
'key' => $key,
|
'key' => $key,
|
||||||
'upgrade' => $upgrade,
|
'upgrade' => $upgrade,
|
||||||
@ -731,7 +735,15 @@ class UpgradeService extends BaseAdminService
|
|||||||
*/
|
*/
|
||||||
public function cloudBuild()
|
public function cloudBuild()
|
||||||
{
|
{
|
||||||
( new CoreCloudBuildService() )->cloudBuild();
|
try {
|
||||||
|
( new CoreCloudBuildService() )->cloudBuild();
|
||||||
|
} catch (CommonException $e) {
|
||||||
|
if ($e->getCode() == 601) {
|
||||||
|
( new CoreCloudBuildService() )->cloudBuild(['checkLocal' => false]);
|
||||||
|
} else {
|
||||||
|
throw new CommonException($e->getMessage(), $e->getCode());
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -13,6 +13,7 @@ namespace app\service\admin\weapp;
|
|||||||
|
|
||||||
use app\dict\common\CommonDict;
|
use app\dict\common\CommonDict;
|
||||||
use app\model\sys\SysConfig;
|
use app\model\sys\SysConfig;
|
||||||
|
use app\service\core\sys\CoreConfigService;
|
||||||
use app\service\core\weapp\CoreWeappConfigService;
|
use app\service\core\weapp\CoreWeappConfigService;
|
||||||
use app\service\core\wxoplatform\CoreOplatformService;
|
use app\service\core\wxoplatform\CoreOplatformService;
|
||||||
use core\base\BaseAdminService;
|
use core\base\BaseAdminService;
|
||||||
@ -80,6 +81,12 @@ class WeappConfigService extends BaseAdminService
|
|||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getWeappStaticInfo(){
|
public function getWeappStaticInfo(){
|
||||||
|
$local_cloud_compile_config = (new CoreConfigService())->getConfig(0, 'LOCAL_CLOUD_COMPILE_CONFIG')['value'] ?? [];
|
||||||
|
$baseUri = $local_cloud_compile_config['baseUri'] ?? '';
|
||||||
|
if (empty($baseUri)) $baseUri = 'oss.niucloud.com';
|
||||||
|
$baseUri = str_replace('http://', '', $baseUri);
|
||||||
|
$baseUri = str_replace('https://', '', $baseUri);
|
||||||
|
|
||||||
$domain = request()->domain();
|
$domain = request()->domain();
|
||||||
$domain = str_replace('http://', 'https://', $domain);
|
$domain = str_replace('http://', 'https://', $domain);
|
||||||
return [
|
return [
|
||||||
@ -88,7 +95,7 @@ class WeappConfigService extends BaseAdminService
|
|||||||
'socket_url' => "wss://".request()->host(),
|
'socket_url' => "wss://".request()->host(),
|
||||||
'upload_url' => $domain,
|
'upload_url' => $domain,
|
||||||
'download_url' => $domain,
|
'download_url' => $domain,
|
||||||
'upload_ip' => gethostbyname('oss.niucloud.com')
|
'upload_ip' => gethostbyname($baseUri)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -18,7 +18,9 @@ use app\service\core\menu\CoreMenuService;
|
|||||||
use app\service\core\schedule\CoreScheduleInstallService;
|
use app\service\core\schedule\CoreScheduleInstallService;
|
||||||
use core\exception\AddonException;
|
use core\exception\AddonException;
|
||||||
use core\exception\CommonException;
|
use core\exception\CommonException;
|
||||||
|
use core\util\niucloud\CloudService;
|
||||||
use core\util\Terminal;
|
use core\util\Terminal;
|
||||||
|
use EasyWeChat\Kernel\Exceptions\Exception;
|
||||||
use think\db\exception\DbException;
|
use think\db\exception\DbException;
|
||||||
use think\db\exception\PDOException;
|
use think\db\exception\PDOException;
|
||||||
use think\facade\Cache;
|
use think\facade\Cache;
|
||||||
@ -224,7 +226,16 @@ class CoreAddonInstallService extends CoreAddonBaseService
|
|||||||
$this->backupFrontend();
|
$this->backupFrontend();
|
||||||
|
|
||||||
$tips = [];
|
$tips = [];
|
||||||
if ($mode != 'cloud') $tips[] = get_lang('dict_addon.install_after_update');
|
if ($mode != 'cloud') {
|
||||||
|
$tips[] = get_lang('dict_addon.install_after_update');
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
(new CloudService())->checkLocal();
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
Cache::set('install_task', null);
|
||||||
|
throw new CommonException($e->getMessage(), $e->getCode());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($this->addon_list as $addon) {
|
foreach ($this->addon_list as $addon) {
|
||||||
$this->install_task['addon'] = $addon;
|
$this->install_task['addon'] = $addon;
|
||||||
@ -625,6 +636,7 @@ class CoreAddonInstallService extends CoreAddonBaseService
|
|||||||
$addon_info = $core_addon_service->getInfoByKey($this->addon);
|
$addon_info = $core_addon_service->getInfoByKey($this->addon);
|
||||||
if (empty($addon_info)) throw new AddonException('NOT_UNINSTALL');
|
if (empty($addon_info)) throw new AddonException('NOT_UNINSTALL');
|
||||||
if (!$this->uninstallSql()) throw new AddonException('ADDON_SQL_FAIL');
|
if (!$this->uninstallSql()) throw new AddonException('ADDON_SQL_FAIL');
|
||||||
|
if (!$this->uninstallDir()) throw new AddonException('ADDON_DIR_FAIL');
|
||||||
|
|
||||||
// 卸载菜单
|
// 卸载菜单
|
||||||
$this->uninstallMenu();
|
$this->uninstallMenu();
|
||||||
|
|||||||
@ -15,6 +15,7 @@ use app\dict\addon\AddonDict;
|
|||||||
use app\model\addon\Addon;
|
use app\model\addon\Addon;
|
||||||
use app\service\core\addon\CoreAddonBaseService;
|
use app\service\core\addon\CoreAddonBaseService;
|
||||||
use app\service\core\addon\CoreAddonDevelopDownloadService;
|
use app\service\core\addon\CoreAddonDevelopDownloadService;
|
||||||
|
use app\service\core\addon\CoreAddonService;
|
||||||
use app\service\core\addon\WapTrait;
|
use app\service\core\addon\WapTrait;
|
||||||
use core\base\BaseCoreService;
|
use core\base\BaseCoreService;
|
||||||
use core\exception\CloudBuildException;
|
use core\exception\CloudBuildException;
|
||||||
@ -105,6 +106,10 @@ class CoreCloudBuildService extends BaseCoreService
|
|||||||
|
|
||||||
// 是否通过校验
|
// 是否通过校验
|
||||||
$data[ 'is_pass' ] = !in_array(false, $check_res);
|
$data[ 'is_pass' ] = !in_array(false, $check_res);
|
||||||
|
|
||||||
|
// 校验云编译服务
|
||||||
|
(new CloudService())->checkLocal();
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -113,14 +118,25 @@ class CoreCloudBuildService extends BaseCoreService
|
|||||||
* @return array
|
* @return array
|
||||||
* @throws GuzzleException
|
* @throws GuzzleException
|
||||||
*/
|
*/
|
||||||
public function cloudBuild()
|
public function cloudBuild($param = [])
|
||||||
{
|
{
|
||||||
if (empty($this->auth_code)) {
|
if (empty($this->auth_code)) {
|
||||||
throw new CommonException('CLOUD_BUILD_AUTH_CODE_NOT_FOUND');
|
throw new CommonException('CLOUD_BUILD_AUTH_CODE_NOT_FOUND');
|
||||||
}
|
}
|
||||||
if ($this->build_task) throw new CommonException('CLOUD_BUILD_TASK_EXIST');
|
if ($this->build_task) throw new CommonException('CLOUD_BUILD_TASK_EXIST');
|
||||||
|
|
||||||
$action_token = ( new CoreModuleService() )->getActionToken('cloudbuild', [ 'data' => [ 'product_key' => BaseNiucloudClient::PRODUCT ] ]);
|
// 全部插件
|
||||||
|
$all_addon = array_keys((new CoreAddonService())->getInstallAddonList());
|
||||||
|
// 排除的插件
|
||||||
|
$exclude_addon = [];
|
||||||
|
if (isset($param['addon']) && !empty($param['addon'])) $exclude_addon = array_values(array_diff($all_addon, $param['addon']));
|
||||||
|
|
||||||
|
$action_token = [ 'data' => [] ];
|
||||||
|
|
||||||
|
try {
|
||||||
|
$action_token = ( new CoreModuleService() )->getActionToken('cloudbuild', [ 'data' => [ 'product_key' => BaseNiucloudClient::PRODUCT ] ]);
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
}
|
||||||
|
|
||||||
// 上传任务key
|
// 上传任务key
|
||||||
$task_key = uniqid();
|
$task_key = uniqid();
|
||||||
@ -134,18 +150,24 @@ class CoreCloudBuildService extends BaseCoreService
|
|||||||
// 拷贝手机端文件
|
// 拷贝手机端文件
|
||||||
$wap_is_compile = ( new Addon() )->where([ [ 'compile', 'like', '%wap%' ] ])->field('id')->findOrEmpty();
|
$wap_is_compile = ( new Addon() )->where([ [ 'compile', 'like', '%wap%' ] ])->field('id')->findOrEmpty();
|
||||||
if ($wap_is_compile->isEmpty()) {
|
if ($wap_is_compile->isEmpty()) {
|
||||||
dir_copy($this->root_path . 'uni-app', $package_dir . 'uni-app', exclude_dirs: [ 'node_modules', 'unpackage', 'dist', '.git' ]);
|
dir_copy($this->root_path . 'uni-app', $package_dir . 'uni-app', exclude_dirs: [ 'node_modules', 'unpackage', 'dist', '.git', ...$exclude_addon ]);
|
||||||
$this->handleUniapp($package_dir . 'uni-app');
|
// 如果有排除的插件
|
||||||
|
if (!empty($exclude_addon)) {
|
||||||
|
// 处理pages.json
|
||||||
|
$this->handlePageCode($package_dir . 'uni-app' . DIRECTORY_SEPARATOR .'src' . DIRECTORY_SEPARATOR, $param['addon']);
|
||||||
|
// 处理diy-group
|
||||||
|
$this->compileDiyComponentsCode($package_dir . 'uni-app'. DIRECTORY_SEPARATOR .'src' . DIRECTORY_SEPARATOR, $exclude_addon[0]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 拷贝admin端文件
|
// 拷贝admin端文件
|
||||||
$admin_is_compile = ( new Addon() )->where([ [ 'compile', 'like', '%admin%' ] ])->field('id')->findOrEmpty();
|
$admin_is_compile = ( new Addon() )->where([ [ 'compile', 'like', '%admin%' ] ])->field('id')->findOrEmpty();
|
||||||
if ($admin_is_compile->isEmpty()) {
|
if ($admin_is_compile->isEmpty()) {
|
||||||
dir_copy($this->root_path . 'admin', $package_dir . 'admin', exclude_dirs: [ 'node_modules', 'dist', '.vscode', '.idea', '.git' ]);
|
dir_copy($this->root_path . 'admin', $package_dir . 'admin', exclude_dirs: [ 'node_modules', 'dist', '.vscode', '.idea', '.git', ...$exclude_addon ]);
|
||||||
}
|
}
|
||||||
// 拷贝web端文件
|
// 拷贝web端文件
|
||||||
$web_is_compile = ( new Addon() )->where([ [ 'compile', 'like', '%web%' ] ])->field('id')->findOrEmpty();
|
$web_is_compile = ( new Addon() )->where([ [ 'compile', 'like', '%web%' ] ])->field('id')->findOrEmpty();
|
||||||
if ($web_is_compile->isEmpty()) {
|
if ($web_is_compile->isEmpty()) {
|
||||||
dir_copy($this->root_path . 'web', $package_dir . 'web', exclude_dirs: [ 'node_modules', '.output', '.nuxt', '.git' ]);
|
dir_copy($this->root_path . 'web', $package_dir . 'web', exclude_dirs: [ 'node_modules', '.output', '.nuxt', '.git', ...$exclude_addon ]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->handleCustomPort($package_dir);
|
$this->handleCustomPort($package_dir);
|
||||||
@ -159,7 +181,10 @@ class CoreCloudBuildService extends BaseCoreService
|
|||||||
'token' => $action_token[ 'data' ][ 'token' ] ?? ''
|
'token' => $action_token[ 'data' ][ 'token' ] ?? ''
|
||||||
];
|
];
|
||||||
set_time_limit(0);
|
set_time_limit(0);
|
||||||
$response = ( new CloudService(true) )->httpPost('cloud/build?' . http_build_query($query), [
|
|
||||||
|
$param['checkLocal'] = $param['checkLocal'] ?? true;
|
||||||
|
|
||||||
|
$response = ( new CloudService($param['checkLocal']) )->httpPost('cloud/build?' . http_build_query($query), [
|
||||||
'multipart' => [
|
'multipart' => [
|
||||||
[
|
[
|
||||||
'name' => 'file',
|
'name' => 'file',
|
||||||
@ -173,17 +198,44 @@ class CoreCloudBuildService extends BaseCoreService
|
|||||||
|
|
||||||
$this->build_task = [
|
$this->build_task = [
|
||||||
'task_key' => $task_key,
|
'task_key' => $task_key,
|
||||||
'timestamp' => $query[ 'timestamp' ]
|
'timestamp' => $query[ 'timestamp' ],
|
||||||
|
'checkLocal' => $param['checkLocal']
|
||||||
];
|
];
|
||||||
Cache::set($this->cache_key, $this->build_task);
|
Cache::set($this->cache_key, $this->build_task);
|
||||||
|
|
||||||
return $this->build_task;
|
return $this->build_task;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function handleUniapp(string $dir)
|
private function handlePageCode($compile_path, $addon_arr)
|
||||||
{
|
{
|
||||||
$addon = ( new Addon() )->where([ [ 'status', '=', AddonDict::ON ] ])->value('key', '');
|
$pages = [];
|
||||||
$this->compileDiyComponentsCode($dir . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR, $addon);
|
foreach ($addon_arr as $addon) {
|
||||||
|
if (!file_exists($this->geAddonPackagePath($addon) . 'uni-app-pages.php')) continue;
|
||||||
|
$uniapp_pages = require $this->geAddonPackagePath($addon) . 'uni-app-pages.php';
|
||||||
|
if (empty($uniapp_pages[ 'pages' ])) continue;
|
||||||
|
|
||||||
|
$page_begin = strtoupper($addon) . '_PAGE_BEGIN';
|
||||||
|
$page_end = strtoupper($addon) . '_PAGE_END';
|
||||||
|
|
||||||
|
// 对0.2.0之前的版本做处理
|
||||||
|
$uniapp_pages[ 'pages' ] = preg_replace_callback('/(.*)(\\r\\n.*\/\/ PAGE_END.*)/s', function ($match) {
|
||||||
|
return $match[ 1 ] . ( substr($match[ 1 ], -1) == ',' ? '' : ',' ) . $match[ 2 ];
|
||||||
|
}, $uniapp_pages[ 'pages' ]);
|
||||||
|
|
||||||
|
$uniapp_pages[ 'pages' ] = str_replace('PAGE_BEGIN', $page_begin, $uniapp_pages[ 'pages' ]);
|
||||||
|
$uniapp_pages[ 'pages' ] = str_replace('PAGE_END', $page_end, $uniapp_pages[ 'pages' ]);
|
||||||
|
$uniapp_pages[ 'pages' ] = str_replace('{{addon_name}}', $addon, $uniapp_pages[ 'pages' ]);
|
||||||
|
|
||||||
|
$pages[] = $uniapp_pages[ 'pages' ];
|
||||||
|
}
|
||||||
|
|
||||||
|
$content = @file_get_contents($compile_path . "pages.json");
|
||||||
|
$content = preg_replace_callback('/(.*\/\/ \{\{ PAGE_BEGAIN \}\})(.*)(\/\/ \{\{ PAGE_END \}\}.*)/s', function ($match) use ($pages) {
|
||||||
|
return $match[ 1 ] . PHP_EOL . implode(PHP_EOL, $pages) . PHP_EOL . $match[ 3 ];
|
||||||
|
}, $content);
|
||||||
|
|
||||||
|
// 找到页面路由文件 pages.json,写入内容
|
||||||
|
return file_put_contents($compile_path . "pages.json", $content);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function handleCustomPort(string $package_dir)
|
private function handleCustomPort(string $package_dir)
|
||||||
@ -226,10 +278,16 @@ class CoreCloudBuildService extends BaseCoreService
|
|||||||
'authorize_code' => $this->auth_code,
|
'authorize_code' => $this->auth_code,
|
||||||
'timestamp' => $this->build_task[ 'timestamp' ]
|
'timestamp' => $this->build_task[ 'timestamp' ]
|
||||||
];
|
];
|
||||||
$build_log = ( new CloudService(true) )->httpGet('cloud/get_build_logs?' . http_build_query($query));
|
$build_log = ( new CloudService($this->build_task['checkLocal'] ?? false) )->httpGet('cloud/get_build_logs?' . http_build_query($query));
|
||||||
|
|
||||||
if (isset($build_log[ 'data' ]) && isset($build_log[ 'data' ][ 0 ]) && is_array($build_log[ 'data' ][ 0 ])) {
|
if (isset($build_log[ 'data' ]) && isset($build_log[ 'data' ][ 0 ]) && is_array($build_log[ 'data' ][ 0 ])) {
|
||||||
$last = end($build_log[ 'data' ][ 0 ]);
|
$last = end($build_log[ 'data' ][ 0 ]);
|
||||||
|
foreach ($build_log[ 'data' ][ 0 ] as $item) {
|
||||||
|
if ($item['code'] == 0) {
|
||||||
|
$build_log[ 'error_analysis' ] = $this->buildResultAnalysis($item[ 'msg' ]);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
if ($last[ 'percent' ] == 100 && $last[ 'code' ] == 1) {
|
if ($last[ 'percent' ] == 100 && $last[ 'code' ] == 1) {
|
||||||
$build_log[ 'data' ][ 0 ] = $this->buildSuccess($build_log[ 'data' ][ 0 ]);
|
$build_log[ 'data' ][ 0 ] = $this->buildSuccess($build_log[ 'data' ][ 0 ]);
|
||||||
}
|
}
|
||||||
@ -237,6 +295,15 @@ class CoreCloudBuildService extends BaseCoreService
|
|||||||
return $build_log;
|
return $build_log;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编译异常分析
|
||||||
|
* @param $msg
|
||||||
|
* @return string[]
|
||||||
|
*/
|
||||||
|
public function buildResultAnalysis($msg) {
|
||||||
|
return ( new CoreModuleService() )->buildResultAnalysis($msg);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编译完成
|
* 编译完成
|
||||||
* @param array $log
|
* @param array $log
|
||||||
@ -253,7 +320,7 @@ class CoreCloudBuildService extends BaseCoreService
|
|||||||
$temp_dir = runtime_path() . 'backup' . DIRECTORY_SEPARATOR . 'cloud_build' . DIRECTORY_SEPARATOR . $this->build_task[ 'task_key' ] . DIRECTORY_SEPARATOR;
|
$temp_dir = runtime_path() . 'backup' . DIRECTORY_SEPARATOR . 'cloud_build' . DIRECTORY_SEPARATOR . $this->build_task[ 'task_key' ] . DIRECTORY_SEPARATOR;
|
||||||
|
|
||||||
if (!isset($this->build_task[ 'index' ])) {
|
if (!isset($this->build_task[ 'index' ])) {
|
||||||
$response = ( new CloudService(true) )->request('HEAD', 'cloud/build_download?' . http_build_query($query), [
|
$response = ( new CloudService($this->build_task['checkLocal'] ?? false) )->request('HEAD', 'cloud/build_download?' . http_build_query($query), [
|
||||||
'headers' => [ 'Range' => 'bytes=0-' ]
|
'headers' => [ 'Range' => 'bytes=0-' ]
|
||||||
]);
|
]);
|
||||||
$length = $response->getHeader('Content-range');
|
$length = $response->getHeader('Content-range');
|
||||||
@ -271,7 +338,7 @@ class CoreCloudBuildService extends BaseCoreService
|
|||||||
$end = ( $this->build_task[ 'index' ] + 1 ) * $chunk_size;
|
$end = ( $this->build_task[ 'index' ] + 1 ) * $chunk_size;
|
||||||
$end = min($end, $this->build_task[ 'length' ]);
|
$end = min($end, $this->build_task[ 'length' ]);
|
||||||
|
|
||||||
$response = ( new CloudService(true) )->request('GET', 'cloud/build_download?' . http_build_query($query), [
|
$response = ( new CloudService($this->build_task['checkLocal'] ?? false) )->request('GET', 'cloud/build_download?' . http_build_query($query), [
|
||||||
'headers' => [ 'Range' => "bytes={$start}-{$end}" ]
|
'headers' => [ 'Range' => "bytes={$start}-{$end}" ]
|
||||||
]);
|
]);
|
||||||
fwrite($zip_resource, $response->getBody());
|
fwrite($zip_resource, $response->getBody());
|
||||||
@ -290,9 +357,21 @@ class CoreCloudBuildService extends BaseCoreService
|
|||||||
$zip->extractTo($temp_dir . 'download');
|
$zip->extractTo($temp_dir . 'download');
|
||||||
$zip->close();
|
$zip->close();
|
||||||
|
|
||||||
|
if (is_dir($temp_dir . 'download' . DIRECTORY_SEPARATOR . 'public' . DIRECTORY_SEPARATOR . 'admin')) {
|
||||||
|
@del_target_dir(public_path() .'admin', true);
|
||||||
|
}
|
||||||
|
if (is_dir($temp_dir . 'download' . DIRECTORY_SEPARATOR . 'public' . DIRECTORY_SEPARATOR . 'web')) {
|
||||||
|
@del_target_dir(public_path() .'web', true);
|
||||||
|
}
|
||||||
|
if (is_dir($temp_dir . 'download' . DIRECTORY_SEPARATOR . 'public' . DIRECTORY_SEPARATOR . 'wap')) {
|
||||||
|
@del_target_dir(public_path() .'wap', true);
|
||||||
|
}
|
||||||
|
|
||||||
$exclude_files = ['favicon.ico', 'niucloud.ico'];
|
$exclude_files = ['favicon.ico', 'niucloud.ico'];
|
||||||
dir_copy($temp_dir . 'download', root_path(), exclude_files: $exclude_files);
|
dir_copy($temp_dir . 'download', root_path(), exclude_files: $exclude_files);
|
||||||
|
|
||||||
|
$this->buildResultAnalysis('success');
|
||||||
|
|
||||||
$this->clearTask();
|
$this->clearTask();
|
||||||
} else {
|
} else {
|
||||||
// 压缩包解压失败 尝试重新下载
|
// 压缩包解压失败 尝试重新下载
|
||||||
@ -304,6 +383,7 @@ class CoreCloudBuildService extends BaseCoreService
|
|||||||
$log[] = [ 'code' => 1, 'msg' => '编译包解压失败,尝试重新下载', 'action' => '编译包解压失败,尝试重新下载', 'percent' => '100' ];
|
$log[] = [ 'code' => 1, 'msg' => '编译包解压失败,尝试重新下载', 'action' => '编译包解压失败,尝试重新下载', 'percent' => '100' ];
|
||||||
} else {
|
} else {
|
||||||
$log[] = [ 'code' => 0, 'msg' => '编译包解压失败', 'action' => '编译包解压', 'percent' => '100' ];
|
$log[] = [ 'code' => 0, 'msg' => '编译包解压失败', 'action' => '编译包解压', 'percent' => '100' ];
|
||||||
|
$this->buildResultAnalysis('编译包解压失败');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -326,4 +406,14 @@ class CoreCloudBuildService extends BaseCoreService
|
|||||||
@del_target_dir($temp_dir, true);
|
@del_target_dir($temp_dir, true);
|
||||||
Cache::set($this->cache_key, null);
|
Cache::set($this->cache_key, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取插件定义的package目录
|
||||||
|
* @param string $addon
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function geAddonPackagePath(string $addon)
|
||||||
|
{
|
||||||
|
return root_path() . 'addon' . DIRECTORY_SEPARATOR . $addon . DIRECTORY_SEPARATOR . 'package' . DIRECTORY_SEPARATOR;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -164,4 +164,18 @@ class CoreModuleService extends BaseNiucloudClient
|
|||||||
{
|
{
|
||||||
return $this->httpGet('store/app_version/list', [ 'product_key' => self::PRODUCT, 'app_key' => $app_key ])[ 'data' ] ?? false;
|
return $this->httpGet('store/app_version/list', [ 'product_key' => self::PRODUCT, 'app_key' => $app_key ])[ 'data' ] ?? false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编译异常分析
|
||||||
|
* @param string $msg
|
||||||
|
* @return array|\core\util\niucloud\Response|object|ResponseInterface
|
||||||
|
* @throws GuzzleException
|
||||||
|
*/
|
||||||
|
public function buildResultAnalysis(string $msg)
|
||||||
|
{
|
||||||
|
$params = [
|
||||||
|
'msg' => $msg,
|
||||||
|
];
|
||||||
|
return $this->httpPost('build_error_analysis', $params)['data'] ?? [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -323,7 +323,17 @@ class CorePayService extends BaseCoreService
|
|||||||
public function createByTrade($site_id, $trade_type, $trade_id)
|
public function createByTrade($site_id, $trade_type, $trade_id)
|
||||||
{
|
{
|
||||||
//创建新的支付单据
|
//创建新的支付单据
|
||||||
$data = array_values(array_filter(event('PayCreate', [ 'site_id' => $site_id, 'trade_type' => $trade_type, 'trade_id' => $trade_id ])))[ 0 ] ?? [];
|
$event_result = event('PayCreate', [ 'site_id' => $site_id, 'trade_type' => $trade_type, 'trade_id' => $trade_id ]);
|
||||||
|
|
||||||
|
// PHP 8.0+ 兼容性处理:确保 event 返回值是数组
|
||||||
|
if (!is_array($event_result)) {
|
||||||
|
$event_result = [];
|
||||||
|
}
|
||||||
|
// 过滤掉 false/null 等无效值,只保留有效的数组元素
|
||||||
|
$filtered = array_values(array_filter($event_result, function($item) {
|
||||||
|
return is_array($item) && !empty($item);
|
||||||
|
}));
|
||||||
|
$data = !empty($filtered) ? $filtered[0] : [];
|
||||||
if (empty($data)) throw new PayException('PAY_NOT_FOUND_TRADE');//找不到可支付的交易
|
if (empty($data)) throw new PayException('PAY_NOT_FOUND_TRADE');//找不到可支付的交易
|
||||||
|
|
||||||
if (isset($data[ 'status' ]) && $data[ 'money' ] == 0) {
|
if (isset($data[ 'status' ]) && $data[ 'money' ] == 0) {
|
||||||
|
|||||||
@ -66,12 +66,18 @@ class CoreOplatformConfigService extends BaseCoreService
|
|||||||
public function getStaticInfo(){
|
public function getStaticInfo(){
|
||||||
$wap_domain = (new CoreSysConfigService())->getSceneDomain(0)['wap_url'] ?? '';
|
$wap_domain = (new CoreSysConfigService())->getSceneDomain(0)['wap_url'] ?? '';
|
||||||
|
|
||||||
|
$local_cloud_compile_config = (new CoreConfigService())->getConfig(0, 'LOCAL_CLOUD_COMPILE_CONFIG')['value'] ?? [];
|
||||||
|
$baseUri = $local_cloud_compile_config['baseUri'] ?? '';
|
||||||
|
if (empty($baseUri)) $baseUri = 'oss.niucloud.com';
|
||||||
|
$baseUri = str_replace('http://', '', $baseUri);
|
||||||
|
$baseUri = str_replace('https://', '', $baseUri);
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'auth_serve_url' => (string)url('/adminapi/wxoplatform/server',[],'', true), // 授权事件接收配置
|
'auth_serve_url' => (string)url('/adminapi/wxoplatform/server',[],'', true), // 授权事件接收配置
|
||||||
'message_serve_url' => (string)url('/adminapi/wxoplatform/message/$APPID$', [],'',true), // 消息与事件接收配置
|
'message_serve_url' => (string)url('/adminapi/wxoplatform/message/$APPID$', [],'',true), // 消息与事件接收配置
|
||||||
'auth_launch_domain' => parse_url(request()->domain())['host'] ?? '', // 授权发起页域名
|
'auth_launch_domain' => parse_url(request()->domain())['host'] ?? '', // 授权发起页域名
|
||||||
'wechat_auth_domain' => parse_url($wap_domain)['host'] ?? '', // 公众号开发域名
|
'wechat_auth_domain' => parse_url($wap_domain)['host'] ?? '', // 公众号开发域名
|
||||||
'upload_ip' => gethostbyname('oss.niucloud.com')
|
'upload_ip' => gethostbyname($baseUri)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'version' => '1.2.2',
|
'version' => '1.2.3',
|
||||||
'code' => '202604010001'
|
'code' => '202605060001'
|
||||||
];
|
];
|
||||||
|
|||||||
@ -24,31 +24,28 @@ class CloudService
|
|||||||
if ($checkLocal) $this->is_connected = $this->checkLocal($local_cloud_compile);
|
if ($checkLocal) $this->is_connected = $this->checkLocal($local_cloud_compile);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function checkLocal($local_cloud_compile) {
|
public function checkLocal($local_cloud_compile = '') {
|
||||||
$baseUri = $this->baseUri;
|
$baseUri = $this->baseUri;
|
||||||
|
|
||||||
$local_cloud_compile_config = (new CoreConfigService())->getConfig(0, 'LOCAL_CLOUD_COMPILE_CONFIG')['value'] ?? [];
|
|
||||||
if (!empty($local_cloud_compile_config) && isset($local_cloud_compile_config['isOpen']) && $local_cloud_compile_config['isOpen'] == 1){
|
|
||||||
$baseUri = $local_cloud_compile_config['baseUri'] ?? '';
|
|
||||||
if (empty($baseUri)){
|
|
||||||
throw new CommonException("已开启`第三方云编译`,但未配置云编译服务器地址,详情查看:平台端》云编译》第三方云编译");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($local_cloud_compile)){
|
if (!empty($local_cloud_compile)){
|
||||||
$baseUri = $local_cloud_compile;
|
$baseUri = $local_cloud_compile;
|
||||||
|
} else {
|
||||||
|
$local_cloud_compile_config = (new CoreConfigService())->getConfig(0, 'LOCAL_CLOUD_COMPILE_CONFIG')['value'] ?? [];
|
||||||
|
$baseUri = $local_cloud_compile_config['baseUri'] ?? '';
|
||||||
|
if (empty($baseUri)){
|
||||||
|
throw new CommonException('CONNECT_FAIL', 601);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$is_connected = false;
|
$is_connected = false;
|
||||||
try {
|
try {
|
||||||
$res = (new Client(['base_uri' => $baseUri ]))->request("GET", '', []);
|
$res = (new Client(['base_uri' => $baseUri ]))->request("GET", '', []);
|
||||||
// dd($res->getBody()->getContents());
|
|
||||||
if ($res->getStatusCode() == '200' && $res->getBody()->getContents() == '欢迎使用NiuCloud编译服务!') {
|
if ($res->getStatusCode() == '200' && $res->getBody()->getContents() == '欢迎使用NiuCloud编译服务!') {
|
||||||
$this->baseUri = $baseUri;
|
$this->baseUri = $baseUri;
|
||||||
$is_connected = true;
|
$is_connected = true;
|
||||||
}
|
}
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
throw new CommonException('CONNECT_FAIL');
|
throw new CommonException('CONNECT_FAIL', 601);
|
||||||
}
|
}
|
||||||
return $is_connected;
|
return $is_connected;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
import{d as l,r as d,u as i,o as p,c as u,a as t,b as m,e as x,w as v,f,E as h,p as b,g,h as I,i as w,t as S}from"./index-42af2821.js";/* empty css */import{_ as B}from"./_plugin-vue_export-helper-c27b6911.js";const k=""+new URL("error-ab7e4004.png",import.meta.url).href,o=e=>(b("data-v-4f4088b5"),e=e(),g(),e),y={class:"error"},C={class:"flex items-center"},E=o(()=>t("div",null,[t("img",{class:"w-[240px]",src:k})],-1)),N={class:"text-left ml-[100px]"},R=o(()=>t("div",{class:"error-text text-[28px] font-bold"},"404错误!",-1)),U=o(()=>t("div",{class:"text-[#222] text-[20px] mt-[15px]"},"哎呀,出错了!您访问的页面不存在...",-1)),V=o(()=>t("div",{class:"text-[#c4c2c2] text-[12px] mt-[5px]"},"尝试检查URL的错误,然后点击浏览器刷新按钮。",-1)),L={class:"mt-[40px]"},$=l({__name:"404",setup(e){let s=null;const a=d(5),n=i();return s=setInterval(()=>{a.value===0?(clearInterval(s),n.go(-1)):a.value--},1e3),p(()=>{s&&clearInterval(s)}),(r,c)=>{const _=h;return I(),u("div",y,[t("div",C,[m(r.$slots,"content",{},()=>[E],!0),t("div",N,[R,U,V,t("div",L,[x(_,{class:"bottom",onClick:c[0]||(c[0]=D=>f(n).go(-1))},{default:v(()=>[w(S(a.value)+" 秒后返回上一页",1)]),_:1})])])])])}}});const z=B($,[["__scopeId","data-v-4f4088b5"]]);export{z as default};
|
import{d as l,r as d,u as i,o as p,c as u,a as t,b as m,e as x,w as v,f,E as h,p as b,g,h as I,i as w,t as S}from"./index-9c445bb6.js";/* empty css */import{_ as B}from"./_plugin-vue_export-helper-c27b6911.js";const k=""+new URL("error-ab7e4004.png",import.meta.url).href,o=e=>(b("data-v-4f4088b5"),e=e(),g(),e),y={class:"error"},C={class:"flex items-center"},E=o(()=>t("div",null,[t("img",{class:"w-[240px]",src:k})],-1)),N={class:"text-left ml-[100px]"},R=o(()=>t("div",{class:"error-text text-[28px] font-bold"},"404错误!",-1)),U=o(()=>t("div",{class:"text-[#222] text-[20px] mt-[15px]"},"哎呀,出错了!您访问的页面不存在...",-1)),V=o(()=>t("div",{class:"text-[#c4c2c2] text-[12px] mt-[5px]"},"尝试检查URL的错误,然后点击浏览器刷新按钮。",-1)),L={class:"mt-[40px]"},$=l({__name:"404",setup(e){let s=null;const a=d(5),n=i();return s=setInterval(()=>{a.value===0?(clearInterval(s),n.go(-1)):a.value--},1e3),p(()=>{s&&clearInterval(s)}),(r,c)=>{const _=h;return I(),u("div",y,[t("div",C,[m(r.$slots,"content",{},()=>[E],!0),t("div",N,[R,U,V,t("div",L,[x(_,{class:"bottom",onClick:c[0]||(c[0]=D=>f(n).go(-1))},{default:v(()=>[w(S(a.value)+" 秒后返回上一页",1)]),_:1})])])])])}}});const z=B($,[["__scopeId","data-v-4f4088b5"]]);export{z as default};
|
||||||
1
niucloud/public/admin/assets/App-1fe29ae2.js
Normal file
1
niucloud/public/admin/assets/App-1fe29ae2.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
import{dD as f}from"./index-9c445bb6.js";export{f as default};
|
||||||
@ -1 +0,0 @@
|
|||||||
import{dD as f}from"./index-42af2821.js";export{f as default};
|
|
||||||
@ -1 +1 @@
|
|||||||
import z from"./VerifySlide-9050bdca.js";import g from"./VerifyPoints-796482d6.js";import{P as k,r as o,m as w,bb as T,Y as V,Z as B,h as p,c as u,a as c,i as N,C as y,y as d,v as C,bc as P,x as v}from"./index-42af2821.js";import{_ as j}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-7b692db8.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(m){const{captchaType:i,figure:e,arith:t,mode:n,vSpace:h,explain:f,imgSize:R,blockSize:W,barSize:Y}=k(m),a=o(!1),r=o(void 0),s=o(void 0),l=o({}),S=w(()=>n.value=="pop"?a.value:!0),b=()=>{l.value.refresh&&l.value.refresh()},x=()=>{a.value=!1,b()},_=()=>{n.value=="pop"&&(a.value=!0)};return T(()=>{switch(i.value){case"blockPuzzle":r.value="2",s.value="VerifySlide";break;case"clickWord":r.value="",s.value="VerifyPoints";break}}),{clickShow:a,verifyType:r,componentType:s,instance:l,showBox:S,closeBox:x,show:_}}},D={key:0,class:"verifybox-top"},E=c("i",{class:"iconfont icon-close"},null,-1),q=[E];function I(m,i,e,t,n,h){return V((p(),u("div",{class:v(e.mode=="pop"?"mask":"")},[c("div",{class:v(e.mode=="pop"?"verifybox":""),style:d({"max-width":parseInt(e.imgSize.width)+30+"px"})},[e.mode=="pop"?(p(),u("div",D,[N(" 请完成安全验证 "),c("span",{class:"verifybox-close",onClick:i[0]||(i[0]=(...f)=>t.closeBox&&t.closeBox(...f))},q)])):y("",!0),c("div",{class:"verifybox-bottom",style:d({padding:e.mode=="pop"?"15px":"0"})},[t.componentType?(p(),C(P(t.componentType),{key:0,captchaType:e.captchaType,type:t.verifyType,figure:e.figure,arith:e.arith,mode:e.mode,vSpace:e.vSpace,explain:e.explain,imgSize:e.imgSize,blockSize:e.blockSize,barSize:e.barSize,ref:"instance"},null,8,["captchaType","type","figure","arith","mode","vSpace","explain","imgSize","blockSize","barSize"])):y("",!0)],4)],6)],2)),[[B,t.showBox]])}const J=j(O,[["render",I]]);export{J as default};
|
import z from"./VerifySlide-81048fa6.js";import g from"./VerifyPoints-8c6fc7b1.js";import{P as k,r as o,m as w,bb as T,Y as V,Z as B,h as p,c as u,a as c,i as N,C as y,y as d,v as C,bc as P,x as v}from"./index-9c445bb6.js";import{_ as j}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-47d400bc.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(m){const{captchaType:i,figure:e,arith:t,mode:n,vSpace:h,explain:f,imgSize:R,blockSize:W,barSize:Y}=k(m),a=o(!1),r=o(void 0),s=o(void 0),l=o({}),S=w(()=>n.value=="pop"?a.value:!0),b=()=>{l.value.refresh&&l.value.refresh()},x=()=>{a.value=!1,b()},_=()=>{n.value=="pop"&&(a.value=!0)};return T(()=>{switch(i.value){case"blockPuzzle":r.value="2",s.value="VerifySlide";break;case"clickWord":r.value="",s.value="VerifyPoints";break}}),{clickShow:a,verifyType:r,componentType:s,instance:l,showBox:S,closeBox:x,show:_}}},D={key:0,class:"verifybox-top"},E=c("i",{class:"iconfont icon-close"},null,-1),q=[E];function I(m,i,e,t,n,h){return V((p(),u("div",{class:v(e.mode=="pop"?"mask":"")},[c("div",{class:v(e.mode=="pop"?"verifybox":""),style:d({"max-width":parseInt(e.imgSize.width)+30+"px"})},[e.mode=="pop"?(p(),u("div",D,[N(" 请完成安全验证 "),c("span",{class:"verifybox-close",onClick:i[0]||(i[0]=(...f)=>t.closeBox&&t.closeBox(...f))},q)])):y("",!0),c("div",{class:"verifybox-bottom",style:d({padding:e.mode=="pop"?"15px":"0"})},[t.componentType?(p(),C(P(t.componentType),{key:0,captchaType:e.captchaType,type:t.verifyType,figure:e.figure,arith:e.arith,mode:e.mode,vSpace:e.vSpace,explain:e.explain,imgSize:e.imgSize,blockSize:e.blockSize,barSize:e.barSize,ref:"instance"},null,8,["captchaType","type","figure","arith","mode","vSpace","explain","imgSize","blockSize","barSize"])):y("",!0)],4)],6)],2)),[[B,t.showBox]])}const J=j(O,[["render",I]]);export{J as default};
|
||||||
@ -1 +1 @@
|
|||||||
import{r as F,a as M,b as K,c as Y}from"./index-7b692db8.js";import{P as Z,bd as G,r as s,q as m,aZ as X,h as H,c as I,a as l,y as A,Y as Q,Z as U,F as $,V as ee,t as q,ax as te}from"./index-42af2821.js";import{_ as ae}from"./_plugin-vue_export-helper-c27b6911.js";const ie={name:"VerifyPoints",props:{mode:{type:String,default:"fixed"},captchaType:{type:String},vSpace:{type:Number,default:5},imgSize:{type:Object,default(){return{width:"310px",height:"155px"}}},barSize:{type:Object,default(){return{width:"310px",height:"40px"}}}},setup(N,f){const{mode:_,captchaType:e,vSpace:L,imgSize:R,barSize:c}=Z(N),{proxy:n}=G(),h=s(""),z=s(3),p=m([]),a=m([]),o=s(1),O=s(""),w=m([]),v=s(""),u=m({imgHeight:0,imgWidth:0,barHeight:0,barWidth:0}),y=m([]),d=s(""),b=s(void 0),x=s(void 0),j=s(!0),C=s(!0),V=()=>{p.splice(0,p.length),a.splice(0,a.length),o.value=1,B(),te(()=>{const{imgHeight:i,imgWidth:t,barHeight:g,barWidth:r}=F(n);u.imgHeight=i,u.imgWidth=t,u.barHeight=g,u.barWidth=r,n.$parent.$emit("ready",n)})};X(()=>{V(),n.$el.onselectstart=function(){return!1}});const S=s(null),D=i=>{if(a.push(k(S,i)),o.value==z.value){o.value=P(k(S,i));const t=J(a,u);a.length=0,a.push(...t),setTimeout(()=>{const g=h.value?M(v.value+"---"+JSON.stringify(a),h.value):v.value+"---"+JSON.stringify(a),r={captchaType:e.value,captcha_code:h.value?M(JSON.stringify(a),h.value):JSON.stringify(a),captcha_key:v.value};K(r).then(W=>{W.code==1?(b.value="#4cae4c",x.value="#5cb85c",d.value="验证成功",C.value=!1,_.value=="pop"&&setTimeout(()=>{n.$parent.clickShow=!1,T()},1500),n.$parent.$emit("success",{captchaVerification:g})):(n.$parent.$emit("error",n),b.value="#d9534f",x.value="#d9534f",d.value="验证失败",setTimeout(()=>{T()},700))})},400)}o.value<z.value&&(o.value=P(k(S,i)))},k=function(i,t){const g=t.offsetX,r=t.offsetY;return{x:g,y:r}},P=function(i){return y.push(Object.assign({},i)),o.value+1},T=function(){y.splice(0,y.length),b.value="#000",x.value="#ddd",C.value=!0,p.splice(0,p.length),a.splice(0,a.length),o.value=1,B(),d.value="验证失败",j.value=!0};function B(){const i={captchaType:e.value};Y(i).then(t=>{t.code==1?(O.value=t.data.originalImageBase64,v.value=t.data.token,h.value=t.data.secretKey,w.value=t.data.wordList,d.value="请依次点击【"+w.value.join(",")+"】"):d.value=t.msg})}const J=function(i,t){return i.map(r=>{const W=Math.round(310*r.x/parseInt(t.imgWidth)),E=Math.round(155*r.y/parseInt(t.imgHeight));return{x:W,y:E}})};return{secretKey:h,checkNum:z,fontPos:p,checkPosArr:a,num:o,pointBackImgBase:O,pointTextList:w,backToken:v,setSize:u,tempPoints:y,text:d,barAreaColor:b,barAreaBorderColor:x,showRefresh:j,bindingClick:C,init:V,canvas:S,canvasClick:D,getMousePos:k,createPoint:P,refresh:T,getPictrue:B,pointTransfrom:J}}},ne={style:{position:"relative"}},se={class:"verify-img-out"},oe=l("i",{class:"iconfont icon-refresh"},null,-1),re=[oe],ce=["src"],le={class:"verify-msg"};function he(N,f,_,e,L,R){return H(),I("div",ne,[l("div",se,[l("div",{class:"verify-img-panel",style:A({width:e.setSize.imgWidth,height:e.setSize.imgHeight,"background-size":e.setSize.imgWidth+" "+e.setSize.imgHeight,"margin-bottom":_.vSpace+"px"})},[Q(l("div",{class:"verify-refresh",style:{"z-index":"3"},onClick:f[0]||(f[0]=(...c)=>e.refresh&&e.refresh(...c))},re,512),[[U,e.showRefresh]]),l("img",{src:"data:image/png;base64,"+e.pointBackImgBase,ref:"canvas",alt:"",style:{width:"100%",height:"100%",display:"block"},onClick:f[1]||(f[1]=c=>e.bindingClick?e.canvasClick(c):void 0)},null,8,ce),(H(!0),I($,null,ee(e.tempPoints,(c,n)=>(H(),I("div",{key:n,class:"point-area",style:A({"background-color":"#1abd6c",color:"#fff","z-index":9999,width:"20px",height:"20px","text-align":"center","line-height":"20px","border-radius":"50%",position:"absolute",top:parseInt(c.y-10)+"px",left:parseInt(c.x-10)+"px"})},q(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,q(e.text),1)],4)])}const fe=ae(ie,[["render",he]]);export{fe as default};
|
import{r as F,a as M,b as K,c as Y}from"./index-47d400bc.js";import{P as Z,bd as G,r as s,q as m,aZ as X,h as H,c as I,a as l,y as A,Y as Q,Z as U,F as $,V as ee,t as q,ax as te}from"./index-9c445bb6.js";import{_ as ae}from"./_plugin-vue_export-helper-c27b6911.js";const ie={name:"VerifyPoints",props:{mode:{type:String,default:"fixed"},captchaType:{type:String},vSpace:{type:Number,default:5},imgSize:{type:Object,default(){return{width:"310px",height:"155px"}}},barSize:{type:Object,default(){return{width:"310px",height:"40px"}}}},setup(N,f){const{mode:_,captchaType:e,vSpace:L,imgSize:R,barSize:c}=Z(N),{proxy:n}=G(),h=s(""),z=s(3),p=m([]),a=m([]),o=s(1),O=s(""),w=m([]),v=s(""),u=m({imgHeight:0,imgWidth:0,barHeight:0,barWidth:0}),y=m([]),d=s(""),b=s(void 0),x=s(void 0),j=s(!0),C=s(!0),V=()=>{p.splice(0,p.length),a.splice(0,a.length),o.value=1,B(),te(()=>{const{imgHeight:i,imgWidth:t,barHeight:g,barWidth:r}=F(n);u.imgHeight=i,u.imgWidth=t,u.barHeight=g,u.barWidth=r,n.$parent.$emit("ready",n)})};X(()=>{V(),n.$el.onselectstart=function(){return!1}});const S=s(null),D=i=>{if(a.push(k(S,i)),o.value==z.value){o.value=P(k(S,i));const t=J(a,u);a.length=0,a.push(...t),setTimeout(()=>{const g=h.value?M(v.value+"---"+JSON.stringify(a),h.value):v.value+"---"+JSON.stringify(a),r={captchaType:e.value,captcha_code:h.value?M(JSON.stringify(a),h.value):JSON.stringify(a),captcha_key:v.value};K(r).then(W=>{W.code==1?(b.value="#4cae4c",x.value="#5cb85c",d.value="验证成功",C.value=!1,_.value=="pop"&&setTimeout(()=>{n.$parent.clickShow=!1,T()},1500),n.$parent.$emit("success",{captchaVerification:g})):(n.$parent.$emit("error",n),b.value="#d9534f",x.value="#d9534f",d.value="验证失败",setTimeout(()=>{T()},700))})},400)}o.value<z.value&&(o.value=P(k(S,i)))},k=function(i,t){const g=t.offsetX,r=t.offsetY;return{x:g,y:r}},P=function(i){return y.push(Object.assign({},i)),o.value+1},T=function(){y.splice(0,y.length),b.value="#000",x.value="#ddd",C.value=!0,p.splice(0,p.length),a.splice(0,a.length),o.value=1,B(),d.value="验证失败",j.value=!0};function B(){const i={captchaType:e.value};Y(i).then(t=>{t.code==1?(O.value=t.data.originalImageBase64,v.value=t.data.token,h.value=t.data.secretKey,w.value=t.data.wordList,d.value="请依次点击【"+w.value.join(",")+"】"):d.value=t.msg})}const J=function(i,t){return i.map(r=>{const W=Math.round(310*r.x/parseInt(t.imgWidth)),E=Math.round(155*r.y/parseInt(t.imgHeight));return{x:W,y:E}})};return{secretKey:h,checkNum:z,fontPos:p,checkPosArr:a,num:o,pointBackImgBase:O,pointTextList:w,backToken:v,setSize:u,tempPoints:y,text:d,barAreaColor:b,barAreaBorderColor:x,showRefresh:j,bindingClick:C,init:V,canvas:S,canvasClick:D,getMousePos:k,createPoint:P,refresh:T,getPictrue:B,pointTransfrom:J}}},ne={style:{position:"relative"}},se={class:"verify-img-out"},oe=l("i",{class:"iconfont icon-refresh"},null,-1),re=[oe],ce=["src"],le={class:"verify-msg"};function he(N,f,_,e,L,R){return H(),I("div",ne,[l("div",se,[l("div",{class:"verify-img-panel",style:A({width:e.setSize.imgWidth,height:e.setSize.imgHeight,"background-size":e.setSize.imgWidth+" "+e.setSize.imgHeight,"margin-bottom":_.vSpace+"px"})},[Q(l("div",{class:"verify-refresh",style:{"z-index":"3"},onClick:f[0]||(f[0]=(...c)=>e.refresh&&e.refresh(...c))},re,512),[[U,e.showRefresh]]),l("img",{src:"data:image/png;base64,"+e.pointBackImgBase,ref:"canvas",alt:"",style:{width:"100%",height:"100%",display:"block"},onClick:f[1]||(f[1]=c=>e.bindingClick?e.canvasClick(c):void 0)},null,8,ce),(H(!0),I($,null,ee(e.tempPoints,(c,n)=>(H(),I("div",{key:n,class:"point-area",style:A({"background-color":"#1abd6c",color:"#fff","z-index":9999,width:"20px",height:"20px","text-align":"center","line-height":"20px","border-radius":"50%",position:"absolute",top:parseInt(c.y-10)+"px",left:parseInt(c.x-10)+"px"})},q(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,q(e.text),1)],4)])}const fe=ae(ie,[["render",he]]);export{fe as default};
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
|||||||
import{d as B,k as T,u as $,r as c,aZ as I,b6 as M,o as R,h as W,c as q,e,w as t,a as s,t as o,f as n,s as a,i as u,aH as A,aI as L,E as U,a_ as j,a$ as D,b0 as F,b1 as G,a8 as H}from"./index-42af2821.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as P}from"./wechat-6fe57299.js";const Z={class:"main-container"},z={class:"flex justify-between items-center"},J={class:"text-page-title"},K={class:"p-[20px]"},O={class:"panel-title !text-sm"},Q={class:"text-[14px] font-[700]"},X={class:"text-[#999]"},Y={class:"mt-[20px] mb-[40px] h-[32px]"},tt={class:"text-[14px] font-[700]"},et={class:"mt-[20px] mb-[40px] h-[32px]"},nt={class:"text-[14px] font-[700]"},st={class:"mt-[20px] mb-[40px] h-[32px]"},dt=B({__name:"access",setup(at){const f=T(),_=$(),x=f.meta.title,r=c("/channel/app"),b=c(""),g=c({}),w=c({}),h=async()=>{await P().then(({data:l})=>{g.value=l,b.value=l.qr_code})};I(async()=>{await h(),await M().then(({data:l})=>{w.value=l}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&h()})}),R(()=>{document.removeEventListener("visibilitychange",()=>{})});const y=l=>{window.open(l,"_blank")},C=l=>{_.push({path:r.value})};return(l,i)=>{const v=A,E=L,d=U,m=j,k=D,V=F,S=G,N=H;return W(),q("div",Z,[e(N,{class:"card !border-none",shadow:"never"},{default:t(()=>[s("div",z,[s("span",J,o(n(x)),1)]),e(E,{modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=p=>r.value=p),class:"my-[20px]",onTabChange:C},{default:t(()=>[e(v,{label:n(a)("accessFlow"),name:"/channel/app"},null,8,["label"]),e(v,{label:n(a)("versionManage"),name:"/channel/app/version"},null,8,["label"])]),_:1},8,["modelValue"]),s("div",K,[s("h3",O,o(n(a)("appInlet")),1),e(S,null,{default:t(()=>[e(V,{span:20},{default:t(()=>[e(k,{class:"!mt-[10px]",active:3,direction:"vertical"},{default:t(()=>[e(m,null,{title:t(()=>[s("p",Q,o(n(a)("uniappApp")),1)]),description:t(()=>[s("span",X,o(n(a)("appAttestation1")),1),s("div",Y,[e(d,{type:"primary",onClick:i[1]||(i[1]=p=>y("https://dcloud.io/"))},{default:t(()=>[u(o(n(a)("toCreate")),1)]),_:1})])]),_:1}),e(m,null,{title:t(()=>[s("p",tt,o(n(a)("appSetting")),1)]),description:t(()=>[s("div",et,[e(d,{type:"primary",onClick:i[2]||(i[2]=p=>n(_).push("/channel/app/config"))},{default:t(()=>[u(o(n(a)("settingInfo")),1)]),_:1})])]),_:1}),e(m,null,{title:t(()=>[s("p",nt,o(n(a)("versionManage")),1)]),description:t(()=>[s("div",st,[e(d,{type:"primary",plain:"",onClick:i[3]||(i[3]=p=>n(_).push("/channel/app/version"))},{default:t(()=>[u(o(n(a)("releaseVersion")),1)]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1})])]),_:1})])}}});export{dt as default};
|
import{d as B,k as T,u as $,r as c,aZ as I,b6 as M,o as R,h as W,c as q,e,w as t,a as s,t as o,f as n,s as a,i as u,aH as A,aI as L,E as U,a_ as j,a$ as D,b0 as F,b1 as G,a8 as H}from"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as P}from"./wechat-7dace022.js";const Z={class:"main-container"},z={class:"flex justify-between items-center"},J={class:"text-page-title"},K={class:"p-[20px]"},O={class:"panel-title !text-sm"},Q={class:"text-[14px] font-[700]"},X={class:"text-[#999]"},Y={class:"mt-[20px] mb-[40px] h-[32px]"},tt={class:"text-[14px] font-[700]"},et={class:"mt-[20px] mb-[40px] h-[32px]"},nt={class:"text-[14px] font-[700]"},st={class:"mt-[20px] mb-[40px] h-[32px]"},dt=B({__name:"access",setup(at){const f=T(),_=$(),x=f.meta.title,r=c("/channel/app"),b=c(""),g=c({}),w=c({}),h=async()=>{await P().then(({data:l})=>{g.value=l,b.value=l.qr_code})};I(async()=>{await h(),await M().then(({data:l})=>{w.value=l}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&h()})}),R(()=>{document.removeEventListener("visibilitychange",()=>{})});const y=l=>{window.open(l,"_blank")},C=l=>{_.push({path:r.value})};return(l,i)=>{const v=A,E=L,d=U,m=j,k=D,V=F,S=G,N=H;return W(),q("div",Z,[e(N,{class:"card !border-none",shadow:"never"},{default:t(()=>[s("div",z,[s("span",J,o(n(x)),1)]),e(E,{modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=p=>r.value=p),class:"my-[20px]",onTabChange:C},{default:t(()=>[e(v,{label:n(a)("accessFlow"),name:"/channel/app"},null,8,["label"]),e(v,{label:n(a)("versionManage"),name:"/channel/app/version"},null,8,["label"])]),_:1},8,["modelValue"]),s("div",K,[s("h3",O,o(n(a)("appInlet")),1),e(S,null,{default:t(()=>[e(V,{span:20},{default:t(()=>[e(k,{class:"!mt-[10px]",active:3,direction:"vertical"},{default:t(()=>[e(m,null,{title:t(()=>[s("p",Q,o(n(a)("uniappApp")),1)]),description:t(()=>[s("span",X,o(n(a)("appAttestation1")),1),s("div",Y,[e(d,{type:"primary",onClick:i[1]||(i[1]=p=>y("https://dcloud.io/"))},{default:t(()=>[u(o(n(a)("toCreate")),1)]),_:1})])]),_:1}),e(m,null,{title:t(()=>[s("p",tt,o(n(a)("appSetting")),1)]),description:t(()=>[s("div",et,[e(d,{type:"primary",onClick:i[2]||(i[2]=p=>n(_).push("/channel/app/config"))},{default:t(()=>[u(o(n(a)("settingInfo")),1)]),_:1})])]),_:1}),e(m,null,{title:t(()=>[s("p",nt,o(n(a)("versionManage")),1)]),description:t(()=>[s("div",st,[e(d,{type:"primary",plain:"",onClick:i[3]||(i[3]=p=>n(_).push("/channel/app/version"))},{default:t(()=>[u(o(n(a)("releaseVersion")),1)]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1})])]),_:1})])}}});export{dt as default};
|
||||||
@ -1 +1 @@
|
|||||||
import{d as V,k as B,u as N,r as x,aZ as S,h as T,c as j,e as o,w as s,a as t,t as n,f as e,s as a,i as h,B as I,aH as R,aI as $,E as q,a_ as D,a$ as F,b0 as H,K,b1 as M,a8 as P}from"./index-42af2821.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as Q}from"./aliapp-f3406b1b.js";const U={class:"main-container"},Z={class:"flex justify-between items-center"},z={class:"text-page-title"},G={class:"p-[20px]"},J={class:"panel-title !text-sm"},L={class:"text-[14px] font-[700]"},O={class:"text-[#999]"},W={class:"mt-[20px] mb-[40px] h-[32px]"},X={class:"text-[14px] font-[700]"},Y={class:"text-[#999]"},tt={class:"mt-[20px] mb-[40px] h-[32px]"},et={class:"text-[14px] font-[700]"},st={class:"text-[#999]"},at=t("div",{class:"mt-[20px] mb-[40px] h-[32px]"},null,-1),ot={class:"text-[14px] font-[700]"},nt={class:"text-[#999]"},lt={class:"flex justify-center"},ct={class:"w-[100%] h-[100%] flex items-center justify-center bg-[#f5f7fa]"},pt={class:"mt-[22px] text-center"},it={class:"text-[12px]"},bt=V({__name:"access",setup(_t){const f=B(),d=N(),v=f.meta.title,_=x("/channel/aliapp"),p=x("");S(async()=>{const c=await Q();p.value=c.data.qr_code});const w=c=>{window.open(c,"_blank")},b=c=>{d.push({path:_.value})};return(c,l)=>{const g=R,C=$,m=q,i=D,E=F,u=H,y=K,k=M,A=P;return T(),j("div",U,[o(A,{class:"card !border-none",shadow:"never"},{default:s(()=>[t("div",Z,[t("span",z,n(e(v)),1)]),o(C,{modelValue:_.value,"onUpdate:modelValue":l[0]||(l[0]=r=>_.value=r),class:"my-[20px]",onTabChange:b},{default:s(()=>[o(g,{label:e(a)("weappAccessFlow"),name:"/channel/aliapp"},null,8,["label"])]),_:1},8,["modelValue"]),t("div",G,[t("h3",J,n(e(a)("weappInlet")),1),o(k,null,{default:s(()=>[o(u,{span:20},{default:s(()=>[o(E,{active:4,direction:"vertical"},{default:s(()=>[o(i,null,{title:s(()=>[t("p",L,n(e(a)("weappAttestation")),1)]),description:s(()=>[t("span",O,n(e(a)("weappAttest")),1),t("div",W,[o(m,{type:"primary",onClick:l[1]||(l[1]=r=>w("https://open.alipay.com/develop/manage"))},{default:s(()=>[h(n(e(a)("clickAccess")),1)]),_:1})])]),_:1}),o(i,null,{title:s(()=>[t("p",X,n(e(a)("weappSetting")),1)]),description:s(()=>[t("span",Y,n(e(a)("emplace")),1),t("div",tt,[o(m,{type:"primary",plain:"",onClick:l[2]||(l[2]=r=>e(d).push("/channel/aliapp/config"))},{default:s(()=>[h(n(e(a)("weappSettingBtn")),1)]),_:1})])]),_:1}),o(i,null,{title:s(()=>[t("p",et,n(e(a)("uploadVersion")),1)]),description:s(()=>[t("span",st,n(e(a)("releaseCourse")),1),at]),_:1}),o(i,null,{title:s(()=>[t("p",ot,n(e(a)("completeAccess")),1)]),description:s(()=>[t("span",nt,n(e(a)("releaseCourse")),1)]),_:1})]),_:1})]),_:1}),o(u,{span:4},{default:s(()=>[t("div",lt,[o(y,{class:"w-[180px] h-[180px]",src:p.value?e(I)(p.value):""},{error:s(()=>[t("div",ct,[t("span",null,n(p.value?e(a)("fileErr"):e(a)("emptyQrCode")),1)])]),_:1},8,["src"])]),t("div",pt,[t("p",it,n(e(a)("clickAccess2")),1)])]),_:1})]),_:1})])]),_:1})])}}});export{bt as default};
|
import{d as V,k as B,u as N,r as x,aZ as S,h as T,c as j,e as o,w as s,a as t,t as n,f as e,s as a,i as h,B as I,aH as R,aI as $,E as q,a_ as D,a$ as F,b0 as H,K,b1 as M,a8 as P}from"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as Q}from"./aliapp-a7785a47.js";const U={class:"main-container"},Z={class:"flex justify-between items-center"},z={class:"text-page-title"},G={class:"p-[20px]"},J={class:"panel-title !text-sm"},L={class:"text-[14px] font-[700]"},O={class:"text-[#999]"},W={class:"mt-[20px] mb-[40px] h-[32px]"},X={class:"text-[14px] font-[700]"},Y={class:"text-[#999]"},tt={class:"mt-[20px] mb-[40px] h-[32px]"},et={class:"text-[14px] font-[700]"},st={class:"text-[#999]"},at=t("div",{class:"mt-[20px] mb-[40px] h-[32px]"},null,-1),ot={class:"text-[14px] font-[700]"},nt={class:"text-[#999]"},lt={class:"flex justify-center"},ct={class:"w-[100%] h-[100%] flex items-center justify-center bg-[#f5f7fa]"},pt={class:"mt-[22px] text-center"},it={class:"text-[12px]"},bt=V({__name:"access",setup(_t){const f=B(),d=N(),v=f.meta.title,_=x("/channel/aliapp"),p=x("");S(async()=>{const c=await Q();p.value=c.data.qr_code});const w=c=>{window.open(c,"_blank")},b=c=>{d.push({path:_.value})};return(c,l)=>{const g=R,C=$,m=q,i=D,E=F,u=H,y=K,k=M,A=P;return T(),j("div",U,[o(A,{class:"card !border-none",shadow:"never"},{default:s(()=>[t("div",Z,[t("span",z,n(e(v)),1)]),o(C,{modelValue:_.value,"onUpdate:modelValue":l[0]||(l[0]=r=>_.value=r),class:"my-[20px]",onTabChange:b},{default:s(()=>[o(g,{label:e(a)("weappAccessFlow"),name:"/channel/aliapp"},null,8,["label"])]),_:1},8,["modelValue"]),t("div",G,[t("h3",J,n(e(a)("weappInlet")),1),o(k,null,{default:s(()=>[o(u,{span:20},{default:s(()=>[o(E,{active:4,direction:"vertical"},{default:s(()=>[o(i,null,{title:s(()=>[t("p",L,n(e(a)("weappAttestation")),1)]),description:s(()=>[t("span",O,n(e(a)("weappAttest")),1),t("div",W,[o(m,{type:"primary",onClick:l[1]||(l[1]=r=>w("https://open.alipay.com/develop/manage"))},{default:s(()=>[h(n(e(a)("clickAccess")),1)]),_:1})])]),_:1}),o(i,null,{title:s(()=>[t("p",X,n(e(a)("weappSetting")),1)]),description:s(()=>[t("span",Y,n(e(a)("emplace")),1),t("div",tt,[o(m,{type:"primary",plain:"",onClick:l[2]||(l[2]=r=>e(d).push("/channel/aliapp/config"))},{default:s(()=>[h(n(e(a)("weappSettingBtn")),1)]),_:1})])]),_:1}),o(i,null,{title:s(()=>[t("p",et,n(e(a)("uploadVersion")),1)]),description:s(()=>[t("span",st,n(e(a)("releaseCourse")),1),at]),_:1}),o(i,null,{title:s(()=>[t("p",ot,n(e(a)("completeAccess")),1)]),description:s(()=>[t("span",nt,n(e(a)("releaseCourse")),1)]),_:1})]),_:1})]),_:1}),o(u,{span:4},{default:s(()=>[t("div",lt,[o(y,{class:"w-[180px] h-[180px]",src:p.value?e(I)(p.value):""},{error:s(()=>[t("div",ct,[t("span",null,n(p.value?e(a)("fileErr"):e(a)("emptyQrCode")),1)])]),_:1},8,["src"])]),t("div",pt,[t("p",it,n(e(a)("clickAccess2")),1)])]),_:1})]),_:1})])]),_:1})])}}});export{bt as default};
|
||||||
@ -1 +1 @@
|
|||||||
import{d as $,k as q,u as j,r as u,aZ as F,b6 as I,o as R,h as w,c as y,e as a,w as s,a as n,t as o,f as e,s as t,i as r,F as U,v as z,B as L,aH as M,aI as D,E as G,a_ as H,a$ as K,b0 as P,K as Q,b1 as Z,a8 as J}from"./index-42af2821.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as O}from"./wechat-6fe57299.js";import{a as X}from"./wxoplatform-2136ae22.js";const Y={class:"main-container"},ee={class:"flex justify-between items-center"},te={class:"text-page-title"},ae={class:"p-[20px]"},se={class:"panel-title !text-sm"},ne={class:"text-[14px] font-[700]"},oe={class:"text-[#999]"},le={class:"mt-[20px] mb-[40px] h-[32px]"},ce={class:"text-[14px] font-[700]"},ie={class:"text-[#999]"},pe={class:"mt-[20px] mb-[40px] h-[32px]"},re={class:"text-[14px] font-[700]"},_e={class:"text-[#999]"},de={class:"mt-[20px] mb-[40px] h-[32px]"},me={class:"flex justify-center"},ue={class:"w-[100%] h-[100%] flex items-center justify-center bg-[#f5f7fa]"},he={class:"mt-[22px] text-center"},fe={class:"text-[12px]"},Be=$({__name:"access",setup(ve){const k=q(),_=j(),C=k.meta.title,h=u("/channel/wechat"),d=u(""),f=u({}),v=u({}),b=async()=>{await O().then(({data:l})=>{f.value=l,d.value=l.qr_code})};F(async()=>{await b(),await I().then(({data:l})=>{v.value=l}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&b()})}),R(()=>{document.removeEventListener("visibilitychange",()=>{})});const E=l=>{window.open(l,"_blank")},A=l=>{_.push({path:h.value})},S=()=>{X().then(({data:l})=>{window.open(l)})};return(l,c)=>{const m=M,B=D,i=G,x=H,V=K,g=P,N=Q,T=Z,W=J;return w(),y("div",Y,[a(W,{class:"card !border-none",shadow:"never"},{default:s(()=>[n("div",ee,[n("span",te,o(e(C)),1)]),a(B,{modelValue:h.value,"onUpdate:modelValue":c[0]||(c[0]=p=>h.value=p),class:"my-[20px]",onTabChange:A},{default:s(()=>[a(m,{label:e(t)("wechatAccessFlow"),name:"/channel/wechat"},null,8,["label"]),a(m,{label:e(t)("customMenu"),name:"/channel/wechat/menu"},null,8,["label"]),a(m,{label:e(t)("wechatTemplate"),name:"/channel/wechat/message"},null,8,["label"]),a(m,{label:e(t)("reply"),name:"/channel/wechat/reply"},null,8,["label"])]),_:1},8,["modelValue"]),n("div",ae,[n("h3",se,o(e(t)("wechatInlet")),1),a(T,null,{default:s(()=>[a(g,{span:20},{default:s(()=>[a(V,{class:"!mt-[10px]",active:3,direction:"vertical"},{default:s(()=>[a(x,null,{title:s(()=>[n("p",ne,o(e(t)("wechatAttestation")),1)]),description:s(()=>[n("span",oe,o(e(t)("wechatAttestation1")),1),n("div",le,[a(i,{type:"primary",onClick:c[1]||(c[1]=p=>E("https://mp.weixin.qq.com/"))},{default:s(()=>[r(o(e(t)("clickAccess")),1)]),_:1})])]),_:1}),a(x,null,{title:s(()=>[n("p",ce,o(e(t)("wechatSetting")),1)]),description:s(()=>[n("span",ie,o(e(t)("wechatSetting1")),1),n("div",pe,[v.value.app_id&&v.value.app_secret?(w(),y(U,{key:0},[a(i,{type:"primary",onClick:c[2]||(c[2]=p=>e(_).push("/channel/wechat/config"))},{default:s(()=>[r(o(f.value.app_id?e(t)("seeConfig"):e(t)("clickSetting")),1)]),_:1}),a(i,{type:"primary",plain:"",onClick:S},{default:s(()=>[r(o(f.value.is_authorization?e(t)("refreshAuth"):e(t)("authWechat")),1)]),_:1})],64)):(w(),z(i,{key:1,type:"primary",onClick:c[3]||(c[3]=p=>e(_).push("/channel/wechat/config"))},{default:s(()=>[r(o(e(t)("clickSetting")),1)]),_:1}))])]),_:1}),a(x,null,{title:s(()=>[n("p",re,o(e(t)("wechatAccess")),1)]),description:s(()=>[n("span",_e,o(e(t)("wechatAccess")),1),n("div",de,[a(i,{type:"primary",plain:"",onClick:c[4]||(c[4]=p=>e(_).push("/channel/wechat/course"))},{default:s(()=>[r(o(e(t)("releaseCourse")),1)]),_:1})])]),_:1})]),_:1})]),_:1}),a(g,{span:4},{default:s(()=>[n("div",me,[a(N,{class:"w-[180px] h-[180px]",src:d.value?e(L)(d.value):""},{error:s(()=>[n("div",ue,[n("span",null,o(d.value?e(t)("fileErr"):e(t)("emptyQrCode")),1)])]),_:1},8,["src"])]),n("div",he,[n("p",fe,o(e(t)("clickAccess2")),1)])]),_:1})]),_:1})])]),_:1})])}}});export{Be as default};
|
import{d as $,k as q,u as j,r as u,aZ as F,b6 as I,o as R,h as w,c as y,e as a,w as s,a as n,t as o,f as e,s as t,i as r,F as U,v as z,B as L,aH as M,aI as D,E as G,a_ as H,a$ as K,b0 as P,K as Q,b1 as Z,a8 as J}from"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as O}from"./wechat-7dace022.js";import{a as X}from"./wxoplatform-2ed6c17b.js";const Y={class:"main-container"},ee={class:"flex justify-between items-center"},te={class:"text-page-title"},ae={class:"p-[20px]"},se={class:"panel-title !text-sm"},ne={class:"text-[14px] font-[700]"},oe={class:"text-[#999]"},le={class:"mt-[20px] mb-[40px] h-[32px]"},ce={class:"text-[14px] font-[700]"},ie={class:"text-[#999]"},pe={class:"mt-[20px] mb-[40px] h-[32px]"},re={class:"text-[14px] font-[700]"},_e={class:"text-[#999]"},de={class:"mt-[20px] mb-[40px] h-[32px]"},me={class:"flex justify-center"},ue={class:"w-[100%] h-[100%] flex items-center justify-center bg-[#f5f7fa]"},he={class:"mt-[22px] text-center"},fe={class:"text-[12px]"},Be=$({__name:"access",setup(ve){const k=q(),_=j(),C=k.meta.title,h=u("/channel/wechat"),d=u(""),f=u({}),v=u({}),b=async()=>{await O().then(({data:l})=>{f.value=l,d.value=l.qr_code})};F(async()=>{await b(),await I().then(({data:l})=>{v.value=l}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&b()})}),R(()=>{document.removeEventListener("visibilitychange",()=>{})});const E=l=>{window.open(l,"_blank")},A=l=>{_.push({path:h.value})},S=()=>{X().then(({data:l})=>{window.open(l)})};return(l,c)=>{const m=M,B=D,i=G,x=H,V=K,g=P,N=Q,T=Z,W=J;return w(),y("div",Y,[a(W,{class:"card !border-none",shadow:"never"},{default:s(()=>[n("div",ee,[n("span",te,o(e(C)),1)]),a(B,{modelValue:h.value,"onUpdate:modelValue":c[0]||(c[0]=p=>h.value=p),class:"my-[20px]",onTabChange:A},{default:s(()=>[a(m,{label:e(t)("wechatAccessFlow"),name:"/channel/wechat"},null,8,["label"]),a(m,{label:e(t)("customMenu"),name:"/channel/wechat/menu"},null,8,["label"]),a(m,{label:e(t)("wechatTemplate"),name:"/channel/wechat/message"},null,8,["label"]),a(m,{label:e(t)("reply"),name:"/channel/wechat/reply"},null,8,["label"])]),_:1},8,["modelValue"]),n("div",ae,[n("h3",se,o(e(t)("wechatInlet")),1),a(T,null,{default:s(()=>[a(g,{span:20},{default:s(()=>[a(V,{class:"!mt-[10px]",active:3,direction:"vertical"},{default:s(()=>[a(x,null,{title:s(()=>[n("p",ne,o(e(t)("wechatAttestation")),1)]),description:s(()=>[n("span",oe,o(e(t)("wechatAttestation1")),1),n("div",le,[a(i,{type:"primary",onClick:c[1]||(c[1]=p=>E("https://mp.weixin.qq.com/"))},{default:s(()=>[r(o(e(t)("clickAccess")),1)]),_:1})])]),_:1}),a(x,null,{title:s(()=>[n("p",ce,o(e(t)("wechatSetting")),1)]),description:s(()=>[n("span",ie,o(e(t)("wechatSetting1")),1),n("div",pe,[v.value.app_id&&v.value.app_secret?(w(),y(U,{key:0},[a(i,{type:"primary",onClick:c[2]||(c[2]=p=>e(_).push("/channel/wechat/config"))},{default:s(()=>[r(o(f.value.app_id?e(t)("seeConfig"):e(t)("clickSetting")),1)]),_:1}),a(i,{type:"primary",plain:"",onClick:S},{default:s(()=>[r(o(f.value.is_authorization?e(t)("refreshAuth"):e(t)("authWechat")),1)]),_:1})],64)):(w(),z(i,{key:1,type:"primary",onClick:c[3]||(c[3]=p=>e(_).push("/channel/wechat/config"))},{default:s(()=>[r(o(e(t)("clickSetting")),1)]),_:1}))])]),_:1}),a(x,null,{title:s(()=>[n("p",re,o(e(t)("wechatAccess")),1)]),description:s(()=>[n("span",_e,o(e(t)("wechatAccess")),1),n("div",de,[a(i,{type:"primary",plain:"",onClick:c[4]||(c[4]=p=>e(_).push("/channel/wechat/course"))},{default:s(()=>[r(o(e(t)("releaseCourse")),1)]),_:1})])]),_:1})]),_:1})]),_:1}),a(g,{span:4},{default:s(()=>[n("div",me,[a(N,{class:"w-[180px] h-[180px]",src:d.value?e(L)(d.value):""},{error:s(()=>[n("div",ue,[n("span",null,o(d.value?e(t)("fileErr"):e(t)("emptyQrCode")),1)])]),_:1},8,["src"])]),n("div",he,[n("p",fe,o(e(t)("clickAccess2")),1)])]),_:1})]),_:1})])]),_:1})])}}});export{Be as default};
|
||||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
|||||||
import{_ as o}from"./add-member.vue_vue_type_script_setup_true_lang-53d61692.js";import"./index-42af2821.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css */import"./member-72d6c36e.js";export{o as default};
|
import{_ as o}from"./add-member.vue_vue_type_script_setup_true_lang-1bc15965.js";import"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css */import"./member-0fb4c483.js";export{o as default};
|
||||||
@ -1 +1 @@
|
|||||||
import{d as I,r as m,q as L,m as R,s as o,h as N,v as M,w as d,a as j,e as s,i as k,t as C,f as t,Y as z,bY as A,L as O,M as T,N as Y,E as K,U as S,a2 as Z}from"./index-42af2821.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css */import{p as G,z as J,A as Q}from"./member-72d6c36e.js";const W={class:"dialog-footer"},me=I({__name:"add-member",emits:["complete"],setup(X,{expose:$,emit:x}){const p=m(!1),i=m(!1),f=m(!1);let b="",c="";const w=m(!0),v=m(!0),g=m(!0),_={member_id:"",nickname:"",member_no:"",init_member_no:"",mobile:"",password:"",password_copy:""},r=L({..._}),y=m(),P=R(()=>({member_no:[{required:!0,message:o("memberNoPlaceholder"),trigger:"blur"},{validator:B,trigger:"blur"}],mobile:[{required:!0,message:o("mobilePlaceholder"),trigger:"blur"},{validator:D,trigger:"blur"}],password:[{required:!0,message:o("passwordPlaceholder"),trigger:"blur"}],password_copy:[{required:!0,message:o("passwordPlaceholder"),trigger:"blur"},{validator:E,trigger:"blur"}]})),D=(n,e,a)=>{e&&!/^1[3-9]\d{9}$/.test(e)?a(new Error(o("mobileHint"))):a()},E=(n,e,a)=>{e!=r.password?a(o("doubleCipherHint")):a()},B=(n,e,a)=>{e&&!/^[0-9a-zA-Z]*$/g.test(e)?a(new Error(o("memberNoHint"))):a()},U=async()=>{await J().then(n=>{c=n.data}).catch(()=>{})},q=async n=>{if(i.value||!n)return;const e=Q;await n.validate(async a=>{if(a){if(i.value=!0,f.value)return;f.value=!0,e(r).then(V=>{i.value=!1,f.value=!1,p.value=!1,x("complete")}).catch(()=>{i.value=!1,f.value=!1})}})};return $({showDialog:p,setFormData:async(n=null)=>{if(i.value=!0,Object.assign(r,_),b=o("addMember"),n){b=o("updateMember");const e=await(await G(n.member_id)).data;e&&Object.keys(r).forEach(a=>{e[a]!=null&&(r[a]=e[a])})}else await U(),r.member_no=c,r.init_member_no=c;i.value=!1}}),(n,e)=>{const a=O,u=T,V=Y,h=K,F=S,H=Z;return N(),M(F,{modelValue:p.value,"onUpdate:modelValue":e[14]||(e[14]=l=>p.value=l),title:t(b),width:"500px","destroy-on-close":!0},{footer:d(()=>[j("span",W,[s(h,{onClick:e[12]||(e[12]=l=>p.value=!1)},{default:d(()=>[k(C(t(o)("cancel")),1)]),_:1}),s(h,{type:"primary",loading:i.value,onClick:e[13]||(e[13]=l=>q(y.value))},{default:d(()=>[k(C(t(o)("confirm")),1)]),_:1},8,["loading"])])]),default:d(()=>[z((N(),M(V,{model:r,"label-width":"90px",ref_key:"formRef",ref:y,rules:t(P),class:"page-form"},{default:d(()=>[s(u,{label:t(o)("memberNo"),prop:"member_no"},{default:d(()=>[s(a,{modelValue:r.member_no,"onUpdate:modelValue":e[0]||(e[0]=l=>r.member_no=l),modelModifiers:{trim:!0},clearable:"",maxlength:"20",placeholder:t(o)("memberNoPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(u,{label:t(o)("mobile"),prop:"mobile"},{default:d(()=>[s(a,{modelValue:r.mobile,"onUpdate:modelValue":e[1]||(e[1]=l=>r.mobile=l),modelModifiers:{trim:!0},clearable:"",placeholder:t(o)("mobilePlaceholder"),maxlength:"11",onKeyup:e[2]||(e[2]=l=>t(A)(l)),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(u,{label:t(o)("nickname")},{default:d(()=>[s(a,{modelValue:r.nickname,"onUpdate:modelValue":e[3]||(e[3]=l=>r.nickname=l),modelModifiers:{trim:!0},clearable:"",placeholder:t(o)("nickNamePlaceholder"),class:"input-width",maxlength:"10","show-word-limit":"",readonly:w.value,onClick:e[4]||(e[4]=l=>w.value=!1),onBlur:e[5]||(e[5]=l=>w.value=!0)},null,8,["modelValue","placeholder","readonly"])]),_:1},8,["label"]),s(u,{label:t(o)("password"),prop:"password"},{default:d(()=>[s(a,{modelValue:r.password,"onUpdate:modelValue":e[6]||(e[6]=l=>r.password=l),modelModifiers:{trim:!0},type:"password",placeholder:t(o)("passwordPlaceholder"),clearable:"",class:"input-width","show-password":!0,readonly:v.value,onClick:e[7]||(e[7]=l=>v.value=!1),onBlur:e[8]||(e[8]=l=>v.value=!0)},null,8,["modelValue","placeholder","readonly"])]),_:1},8,["label"]),s(u,{label:t(o)("passwordCopy"),prop:"password_copy"},{default:d(()=>[s(a,{modelValue:r.password_copy,"onUpdate:modelValue":e[9]||(e[9]=l=>r.password_copy=l),modelModifiers:{trim:!0},type:"password",placeholder:t(o)("passwordPlaceholder"),clearable:"",class:"input-width","show-password":!0,readonly:g.value,onClick:e[10]||(e[10]=l=>g.value=!1),onBlur:e[11]||(e[11]=l=>g.value=!0)},null,8,["modelValue","placeholder","readonly"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[H,i.value]])]),_:1},8,["modelValue","title"])}}});export{me as _};
|
import{d as I,r as m,q as L,m as R,s as o,h as N,v as M,w as d,a as j,e as s,i as k,t as C,f as t,Y as z,bY as A,L as O,M as T,N as Y,E as K,U as S,a2 as Z}from"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css */import{p as G,z as J,A as Q}from"./member-0fb4c483.js";const W={class:"dialog-footer"},me=I({__name:"add-member",emits:["complete"],setup(X,{expose:$,emit:x}){const p=m(!1),i=m(!1),f=m(!1);let b="",c="";const w=m(!0),v=m(!0),g=m(!0),_={member_id:"",nickname:"",member_no:"",init_member_no:"",mobile:"",password:"",password_copy:""},r=L({..._}),y=m(),P=R(()=>({member_no:[{required:!0,message:o("memberNoPlaceholder"),trigger:"blur"},{validator:B,trigger:"blur"}],mobile:[{required:!0,message:o("mobilePlaceholder"),trigger:"blur"},{validator:D,trigger:"blur"}],password:[{required:!0,message:o("passwordPlaceholder"),trigger:"blur"}],password_copy:[{required:!0,message:o("passwordPlaceholder"),trigger:"blur"},{validator:E,trigger:"blur"}]})),D=(n,e,a)=>{e&&!/^1[3-9]\d{9}$/.test(e)?a(new Error(o("mobileHint"))):a()},E=(n,e,a)=>{e!=r.password?a(o("doubleCipherHint")):a()},B=(n,e,a)=>{e&&!/^[0-9a-zA-Z]*$/g.test(e)?a(new Error(o("memberNoHint"))):a()},U=async()=>{await J().then(n=>{c=n.data}).catch(()=>{})},q=async n=>{if(i.value||!n)return;const e=Q;await n.validate(async a=>{if(a){if(i.value=!0,f.value)return;f.value=!0,e(r).then(V=>{i.value=!1,f.value=!1,p.value=!1,x("complete")}).catch(()=>{i.value=!1,f.value=!1})}})};return $({showDialog:p,setFormData:async(n=null)=>{if(i.value=!0,Object.assign(r,_),b=o("addMember"),n){b=o("updateMember");const e=await(await G(n.member_id)).data;e&&Object.keys(r).forEach(a=>{e[a]!=null&&(r[a]=e[a])})}else await U(),r.member_no=c,r.init_member_no=c;i.value=!1}}),(n,e)=>{const a=O,u=T,V=Y,h=K,F=S,H=Z;return N(),M(F,{modelValue:p.value,"onUpdate:modelValue":e[14]||(e[14]=l=>p.value=l),title:t(b),width:"500px","destroy-on-close":!0},{footer:d(()=>[j("span",W,[s(h,{onClick:e[12]||(e[12]=l=>p.value=!1)},{default:d(()=>[k(C(t(o)("cancel")),1)]),_:1}),s(h,{type:"primary",loading:i.value,onClick:e[13]||(e[13]=l=>q(y.value))},{default:d(()=>[k(C(t(o)("confirm")),1)]),_:1},8,["loading"])])]),default:d(()=>[z((N(),M(V,{model:r,"label-width":"90px",ref_key:"formRef",ref:y,rules:t(P),class:"page-form"},{default:d(()=>[s(u,{label:t(o)("memberNo"),prop:"member_no"},{default:d(()=>[s(a,{modelValue:r.member_no,"onUpdate:modelValue":e[0]||(e[0]=l=>r.member_no=l),modelModifiers:{trim:!0},clearable:"",maxlength:"20",placeholder:t(o)("memberNoPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(u,{label:t(o)("mobile"),prop:"mobile"},{default:d(()=>[s(a,{modelValue:r.mobile,"onUpdate:modelValue":e[1]||(e[1]=l=>r.mobile=l),modelModifiers:{trim:!0},clearable:"",placeholder:t(o)("mobilePlaceholder"),maxlength:"11",onKeyup:e[2]||(e[2]=l=>t(A)(l)),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(u,{label:t(o)("nickname")},{default:d(()=>[s(a,{modelValue:r.nickname,"onUpdate:modelValue":e[3]||(e[3]=l=>r.nickname=l),modelModifiers:{trim:!0},clearable:"",placeholder:t(o)("nickNamePlaceholder"),class:"input-width",maxlength:"10","show-word-limit":"",readonly:w.value,onClick:e[4]||(e[4]=l=>w.value=!1),onBlur:e[5]||(e[5]=l=>w.value=!0)},null,8,["modelValue","placeholder","readonly"])]),_:1},8,["label"]),s(u,{label:t(o)("password"),prop:"password"},{default:d(()=>[s(a,{modelValue:r.password,"onUpdate:modelValue":e[6]||(e[6]=l=>r.password=l),modelModifiers:{trim:!0},type:"password",placeholder:t(o)("passwordPlaceholder"),clearable:"",class:"input-width","show-password":!0,readonly:v.value,onClick:e[7]||(e[7]=l=>v.value=!1),onBlur:e[8]||(e[8]=l=>v.value=!0)},null,8,["modelValue","placeholder","readonly"])]),_:1},8,["label"]),s(u,{label:t(o)("passwordCopy"),prop:"password_copy"},{default:d(()=>[s(a,{modelValue:r.password_copy,"onUpdate:modelValue":e[9]||(e[9]=l=>r.password_copy=l),modelModifiers:{trim:!0},type:"password",placeholder:t(o)("passwordPlaceholder"),clearable:"",class:"input-width","show-password":!0,readonly:g.value,onClick:e[10]||(e[10]=l=>g.value=!1),onBlur:e[11]||(e[11]=l=>g.value=!0)},null,8,["modelValue","placeholder","readonly"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[H,i.value]])]),_:1},8,["modelValue","title"])}}});export{me as _};
|
||||||
@ -1 +1 @@
|
|||||||
import{_ as o}from"./add-table.vue_vue_type_script_setup_true_lang-c30855a4.js";import"./index-42af2821.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./tools-cf72a110.js";export{o as default};
|
import{_ as o}from"./add-table.vue_vue_type_script_setup_true_lang-62bcb74b.js";import"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./tools-4c0eb235.js";export{o as default};
|
||||||
@ -1 +1 @@
|
|||||||
import{d as L,u as N,r as c,q as k,m as E,h as p,v as _,w as o,a as b,Y as x,f as t,t as f,s as n,e as d,i as B,aj as z,L as U,E as q,ak as F,U as P,a2 as j}from"./index-42af2821.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{k as G,l as I}from"./tools-cf72a110.js";const le=L({__name:"add-table",setup(M,{expose:h}){const g=N(),m=c(!1),s=c(""),e=k({loading:!0,data:[],searchParam:{table_name:"",table_content:""}}),v=E(()=>e.data.filter(a=>!s.value||a.Name.toLowerCase().includes(s.value.toLowerCase())||a.Comment.toLowerCase().includes(s.value.toLowerCase()))),u=()=>{e.loading=!0,G().then(a=>{e.loading=!1,e.data=a.data}).catch(()=>{e.loading=!1})};u();const w=a=>{const l=a.Name;e.loading=!0,I({table_name:l}).then(i=>{e.loading=!1,m.value=!1,g.push({path:"/tools/code/edit",query:{id:i.data.id}})}).catch(()=>{e.loading=!1})};return h({showDialog:m,setFormData:async(a=null)=>{u()}}),(a,l)=>{const i=z,C=U,D=q,V=F,y=P,T=j;return p(),_(y,{modelValue:m.value,"onUpdate:modelValue":l[1]||(l[1]=r=>m.value=r),title:t(n)("addCode"),width:"800px","destroy-on-close":!0},{default:o(()=>[b("div",null,[x((p(),_(V,{data:t(v),size:"large",height:"400"},{empty:o(()=>[b("span",null,f(e.loading?"":t(n)("emptyData")),1)]),default:o(()=>[d(i,{prop:"Name",label:t(n)("tableName"),"min-width":"150"},null,8,["label"]),d(i,{prop:"Comment",label:t(n)("tableComment"),"min-width":"120"},null,8,["label"]),d(i,{align:"right","min-width":"150"},{header:o(()=>[d(C,{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=r=>s.value=r),modelModifiers:{trim:!0},size:"small",placeholder:t(n)("searchPlaceholder")},null,8,["modelValue","placeholder"])]),default:o(r=>[d(D,{size:"small",type:"primary",onClick:S=>w(r.row)},{default:o(()=>[B(f(t(n)("addBtn")),1)]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[T,e.loading]])])]),_:1},8,["modelValue","title"])}}});export{le as _};
|
import{d as L,u as N,r as c,q as k,m as E,h as p,v as _,w as o,a as b,Y as x,f as t,t as f,s as n,e as d,i as B,aj as z,L as U,E as q,ak as F,U as P,a2 as j}from"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{k as G,l as I}from"./tools-4c0eb235.js";const le=L({__name:"add-table",setup(M,{expose:h}){const g=N(),m=c(!1),s=c(""),e=k({loading:!0,data:[],searchParam:{table_name:"",table_content:""}}),v=E(()=>e.data.filter(a=>!s.value||a.Name.toLowerCase().includes(s.value.toLowerCase())||a.Comment.toLowerCase().includes(s.value.toLowerCase()))),u=()=>{e.loading=!0,G().then(a=>{e.loading=!1,e.data=a.data}).catch(()=>{e.loading=!1})};u();const w=a=>{const l=a.Name;e.loading=!0,I({table_name:l}).then(i=>{e.loading=!1,m.value=!1,g.push({path:"/tools/code/edit",query:{id:i.data.id}})}).catch(()=>{e.loading=!1})};return h({showDialog:m,setFormData:async(a=null)=>{u()}}),(a,l)=>{const i=z,C=U,D=q,V=F,y=P,T=j;return p(),_(y,{modelValue:m.value,"onUpdate:modelValue":l[1]||(l[1]=r=>m.value=r),title:t(n)("addCode"),width:"800px","destroy-on-close":!0},{default:o(()=>[b("div",null,[x((p(),_(V,{data:t(v),size:"large",height:"400"},{empty:o(()=>[b("span",null,f(e.loading?"":t(n)("emptyData")),1)]),default:o(()=>[d(i,{prop:"Name",label:t(n)("tableName"),"min-width":"150"},null,8,["label"]),d(i,{prop:"Comment",label:t(n)("tableComment"),"min-width":"120"},null,8,["label"]),d(i,{align:"right","min-width":"150"},{header:o(()=>[d(C,{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=r=>s.value=r),modelModifiers:{trim:!0},size:"small",placeholder:t(n)("searchPlaceholder")},null,8,["modelValue","placeholder"])]),default:o(r=>[d(D,{size:"small",type:"primary",onClick:S=>w(r.row)},{default:o(()=>[B(f(t(n)("addBtn")),1)]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[T,e.loading]])])]),_:1},8,["modelValue","title"])}}});export{le as _};
|
||||||
@ -1 +1 @@
|
|||||||
import{_ as e}from"./add-theme.vue_vue_type_script_setup_true_lang-5ae1917b.js";const o=Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"}));export{o as _};
|
import{_ as e}from"./add-theme.vue_vue_type_script_setup_true_lang-dd6bd7a8.js";const o=Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"}));export{o as _};
|
||||||
@ -1 +1 @@
|
|||||||
import{d as D,r as d,q as h,m as q,h as B,v as N,w as n,a as R,e as o,i as v,f as _,a5 as F,L as O,M as $,bJ as j,N as A,E as I,U as S}from"./index-42af2821.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";import{u as T}from"./diy-583ace6e.js";const z={class:"dialog-footer"},X=D({__name:"add-theme",emits:["confirm"],setup(J,{expose:g,emit:y}){const V=T(),s=d(!1),i=d(!1),b={title:"",label:"",value:"",tip:""};let f=[];const m=d(""),l=h({...b}),k=r=>{f=r.key,m.value="";for(const e in l)l[e]="";r.data&&Object.keys(r.data).length&&(m.value="edit",Object.keys(l).forEach((e,t)=>{l[e]=r.data[e]?r.data[e]:""})),s.value=!0},p=d(),x=q(()=>({title:[{required:!0,message:"请输入颜色名称",trigger:"blur"}],value:[{required:!0,validator:(r,e,t)=>{e?t():t("请输入颜色value值")},trigger:["blur","change"]}],label:[{required:!0,message:"请输入颜色key值",trigger:"blur"},{validator:(r,e,t)=>{const u=/^[a-zA-Z0-9-]+$/;f.indexOf(e)!=-1&&t("新增颜色key值与已存在颜色key值命名重复,请修改命名"),u.test(e)?t():t("颜色key值只能输入字母、数字和连字符")},trigger:"blur"}]})),w=async r=>{var e;i.value||await((e=p.value)==null?void 0:e.validate(async t=>{i.value||(i.value=!0,t&&(i.value=!1,y("confirm",F(l)),s.value=!1))}))};return g({dialogThemeVisible:s,open:k}),(r,e)=>{const t=O,u=$,E=j,C=A,c=I,U=S;return B(),N(U,{modelValue:s.value,"onUpdate:modelValue":e[6]||(e[6]=a=>s.value=a),title:"新增颜色",width:"550px","align-center":""},{footer:n(()=>[R("div",z,[o(c,{onClick:e[4]||(e[4]=a=>s.value=!1)},{default:n(()=>[v("取消")]),_:1}),o(c,{type:"primary",onClick:e[5]||(e[5]=a=>w(p.value))},{default:n(()=>[v("保存")]),_:1})])]),default:n(()=>[o(C,{model:l,"label-width":"120px",ref_key:"formRef",ref:p,rules:_(x)},{default:n(()=>[o(u,{label:"名字",prop:"title"},{default:n(()=>[o(t,{modelValue:l.title,"onUpdate:modelValue":e[0]||(e[0]=a=>l.title=a),class:"!w-[250px]",maxlength:"7",placeholder:"请输入颜色名称"},null,8,["modelValue"])]),_:1}),o(u,{label:"颜色key值",prop:"label"},{default:n(()=>[o(t,{modelValue:l.label,"onUpdate:modelValue":e[1]||(e[1]=a=>l.label=a),class:"!w-[250px]",maxlength:"20",disabled:m.value=="edit",placeholder:"请输入颜色key值"},null,8,["modelValue","disabled"])]),_:1}),o(u,{label:"颜色value值",prop:"value"},{default:n(()=>[o(E,{modelValue:l.value,"onUpdate:modelValue":e[2]||(e[2]=a=>l.value=a),"show-alpha":"",predefine:_(V).predefineColors},null,8,["modelValue","predefine"])]),_:1}),o(u,{label:"颜色提示"},{default:n(()=>[o(t,{modelValue:l.tip,"onUpdate:modelValue":e[3]||(e[3]=a=>l.tip=a),class:"!w-[250px]",placeholder:"请输入颜色提示"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])}}});export{X as _};
|
import{d as D,r as d,q as h,m as q,h as B,v as N,w as n,a as R,e as o,i as v,f as _,a5 as F,L as O,M as $,bJ as j,N as A,E as I,U as S}from"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";import{u as T}from"./diy-fc54c488.js";const z={class:"dialog-footer"},X=D({__name:"add-theme",emits:["confirm"],setup(J,{expose:g,emit:y}){const V=T(),s=d(!1),i=d(!1),b={title:"",label:"",value:"",tip:""};let f=[];const m=d(""),l=h({...b}),k=r=>{f=r.key,m.value="";for(const e in l)l[e]="";r.data&&Object.keys(r.data).length&&(m.value="edit",Object.keys(l).forEach((e,t)=>{l[e]=r.data[e]?r.data[e]:""})),s.value=!0},p=d(),x=q(()=>({title:[{required:!0,message:"请输入颜色名称",trigger:"blur"}],value:[{required:!0,validator:(r,e,t)=>{e?t():t("请输入颜色value值")},trigger:["blur","change"]}],label:[{required:!0,message:"请输入颜色key值",trigger:"blur"},{validator:(r,e,t)=>{const u=/^[a-zA-Z0-9-]+$/;f.indexOf(e)!=-1&&t("新增颜色key值与已存在颜色key值命名重复,请修改命名"),u.test(e)?t():t("颜色key值只能输入字母、数字和连字符")},trigger:"blur"}]})),w=async r=>{var e;i.value||await((e=p.value)==null?void 0:e.validate(async t=>{i.value||(i.value=!0,t&&(i.value=!1,y("confirm",F(l)),s.value=!1))}))};return g({dialogThemeVisible:s,open:k}),(r,e)=>{const t=O,u=$,E=j,C=A,c=I,U=S;return B(),N(U,{modelValue:s.value,"onUpdate:modelValue":e[6]||(e[6]=a=>s.value=a),title:"新增颜色",width:"550px","align-center":""},{footer:n(()=>[R("div",z,[o(c,{onClick:e[4]||(e[4]=a=>s.value=!1)},{default:n(()=>[v("取消")]),_:1}),o(c,{type:"primary",onClick:e[5]||(e[5]=a=>w(p.value))},{default:n(()=>[v("保存")]),_:1})])]),default:n(()=>[o(C,{model:l,"label-width":"120px",ref_key:"formRef",ref:p,rules:_(x)},{default:n(()=>[o(u,{label:"名字",prop:"title"},{default:n(()=>[o(t,{modelValue:l.title,"onUpdate:modelValue":e[0]||(e[0]=a=>l.title=a),class:"!w-[250px]",maxlength:"7",placeholder:"请输入颜色名称"},null,8,["modelValue"])]),_:1}),o(u,{label:"颜色key值",prop:"label"},{default:n(()=>[o(t,{modelValue:l.label,"onUpdate:modelValue":e[1]||(e[1]=a=>l.label=a),class:"!w-[250px]",maxlength:"20",disabled:m.value=="edit",placeholder:"请输入颜色key值"},null,8,["modelValue","disabled"])]),_:1}),o(u,{label:"颜色value值",prop:"value"},{default:n(()=>[o(E,{modelValue:l.value,"onUpdate:modelValue":e[2]||(e[2]=a=>l.value=a),"show-alpha":"",predefine:_(V).predefineColors},null,8,["modelValue","predefine"])]),_:1}),o(u,{label:"颜色提示"},{default:n(()=>[o(t,{modelValue:l.tip,"onUpdate:modelValue":e[3]||(e[3]=a=>l.tip=a),class:"!w-[250px]",placeholder:"请输入颜色提示"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])}}});export{X as _};
|
||||||
@ -1 +0,0 @@
|
|||||||
import{b5 as t}from"./index-42af2821.js";function d(n){return t.get("addon/local",n)}function o(n){return t.post(`addon/install/${n.addon}`,n)}function a(n){return t.post(`addon/cloudinstall/${n.addon}`,n)}function s(n){return t.post(`addon/uninstall/${n.addon}`,n,{showSuccessMessage:!0})}function l(n){return t.get(`addon/install/check/${n}`)}function u(){return t.get("addon/installtask")}function i(n){return t.get(`addon/cloudinstall/${n}`)}function r(n){return t.get(`addon/uninstall/check/${n}`)}function c(n){return t.put(`addon/install/cancel/${n}`,{},{showErrorMessage:!1})}function g(){return t.get("addon/list/install")}function f(){return t.get("home/site/group/app_list")}function p(){return t.get("addon/init")}function A(){return t.get("app/index")}function h(){return t.get("index/adv_list")}export{g as a,A as b,h as c,p as d,d as e,u as f,f as g,a as h,o as i,i as j,r as k,c as l,l as p,s as u};
|
|
||||||
1
niucloud/public/admin/assets/addon-f95ced4c.js
Normal file
1
niucloud/public/admin/assets/addon-f95ced4c.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
import{b5 as t}from"./index-9c445bb6.js";function o(n){return t.get("addon/local",n)}function a(n){return t.post(`addon/install/${n.addon}`,n)}function s(n){return t.post(`addon/cloudinstall/${n.addon}`,n,{showErrorMessage:!1})}function d(n){return t.post(`addon/uninstall/${n.addon}`,n,{showSuccessMessage:!0})}function l(n){return t.get(`addon/install/check/${n}`)}function u(){return t.get("addon/installtask")}function i(n){return t.get(`addon/cloudinstall/${n}`)}function r(n){return t.get(`addon/uninstall/check/${n}`)}function c(n){return t.put(`addon/install/cancel/${n}`,{},{showErrorMessage:!1})}function g(){return t.get("addon/list/install")}function f(){return t.get("home/site/group/app_list")}function p(){return t.get("addon/init")}function A(){return t.get("app/index")}function h(){return t.get("index/adv_list")}export{g as a,A as b,h as c,p as d,o as e,u as f,f as g,s as h,a as i,i as j,r as k,c as l,l as p,d as u};
|
||||||
@ -1 +1 @@
|
|||||||
import{d as F,k as w,r as g,q as B,h as b,c as L,Y as C,v as D,w as n,e as o,a as s,t as r,f as a,s as l,i as I,ch as k,a5 as y,ci as U,b8 as N,M as T,a8 as R,N as S,E as j,a2 as q}from"./index-42af2821.js";/* empty css *//* empty css *//* empty css *//* empty css */import A from"./index-593a1d85.js";import"./el-form-item-4ed993c7.js";/* empty css *//* empty css */import"./index.vue_vue_type_style_index_0_lang-d555545c.js";/* empty css *//* empty css */import"./attachment-b87a9283.js";import"./index.vue_vue_type_script_setup_true_lang-44963142.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-3e626b56.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang-a982918a.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./sortable.esm-be94e56d.js";const M={class:"main-container"},O={class:"text-[16px] text-[#1D1F3A] font-bold mb-4"},Y={class:"panel-title !text-[14px] bg-[#F4F5F7] p-3 border-[#E6E6E6] border-solid border-b-[1px]"},$={class:"form-tip"},z={class:"box-card mt-[20px] !border-none"},G={class:"panel-title !text-[14px] bg-[#F4F5F7] p-3 border-[#E6E6E6] border-solid border-b-[1px]"},H={class:"form-tip"},J={class:"text-[12px] text-[#a9a9a9]"},K={class:"text-[12px] text-[#a9a9a9]"},P={class:"fixed-footer-wrap"},Q={class:"fixed-footer"},Ne=F({__name:"adminlogin",setup(W){const f=w().meta.title,d=g(!0),u=g(),t=B({is_captcha:0,is_site_captcha:0,bg:"",site_bg:"",site_login_logo:"",site_login_bg_img:""});(async()=>{const p=await(await k()).data;Object.keys(t).forEach(e=>{t[e]=p[e]}),d.value=!1})();const v=async p=>{d.value||!p||await p.validate(e=>{if(e){const _=y(t);U(_).then(()=>{d.value=!1}).catch(()=>{d.value=!1})}})};return(p,e)=>{const _=N,m=T,c=A,x=R,V=S,h=j,E=q;return b(),L("div",M,[C((b(),D(V,{class:"page-form",model:t,"label-width":"150px",ref_key:"ruleFormRef",ref:u},{default:n(()=>[o(x,{class:"box-card !border-none",shadow:"never"},{default:n(()=>[s("h3",O,r(a(f)),1),s("h3",Y,r(a(l)("admin")),1),o(m,{label:a(l)("isCaptcha")},{default:n(()=>[o(_,{modelValue:t.is_captcha,"onUpdate:modelValue":e[0]||(e[0]=i=>t.is_captcha=i),"active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1},8,["label"]),o(m,{label:a(l)("bgImg")},{default:n(()=>[o(c,{modelValue:t.bg,"onUpdate:modelValue":e[1]||(e[1]=i=>t.bg=i)},null,8,["modelValue"]),s("div",$,r(a(l)("adminBgImgTip")),1)]),_:1},8,["label"]),s("div",z,[s("h3",G,r(a(l)("site")),1),o(m,{label:a(l)("isCaptcha")},{default:n(()=>[o(_,{modelValue:t.is_site_captcha,"onUpdate:modelValue":e[2]||(e[2]=i=>t.is_site_captcha=i),"active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1},8,["label"]),o(m,{label:a(l)("bgImg")},{default:n(()=>[o(c,{modelValue:t.site_bg,"onUpdate:modelValue":e[3]||(e[3]=i=>t.site_bg=i)},null,8,["modelValue"]),s("div",H,r(a(l)("siteBgImgTip")),1)]),_:1},8,["label"]),o(m,{label:a(l)("siteLoginLogo")},{default:n(()=>[s("div",null,[o(c,{modelValue:t.site_login_logo,"onUpdate:modelValue":e[4]||(e[4]=i=>t.site_login_logo=i)},null,8,["modelValue"]),s("p",J,r(a(l)("siteLoginLogoTips")),1)])]),_:1},8,["label"]),o(m,{label:a(l)("siteLoginBgImg")},{default:n(()=>[s("div",null,[o(c,{modelValue:t.site_login_bg_img,"onUpdate:modelValue":e[5]||(e[5]=i=>t.site_login_bg_img=i)},null,8,["modelValue"]),s("p",K,r(a(l)("siteLoginBgImgTips")),1)])]),_:1},8,["label"])])]),_:1})]),_:1},8,["model"])),[[E,d.value]]),s("div",P,[s("div",Q,[o(h,{type:"primary",onClick:e[6]||(e[6]=i=>v(u.value))},{default:n(()=>[I(r(a(l)("save")),1)]),_:1})])])])}}});export{Ne as default};
|
import{d as F,k as w,r as g,q as B,h as b,c as L,Y as C,v as D,w as n,e as o,a as s,t as r,f as a,s as l,i as I,ch as k,a5 as y,ci as U,b8 as N,M as T,a8 as R,N as S,E as j,a2 as q}from"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css *//* empty css */import A from"./index-c09bd903.js";import"./el-form-item-4ed993c7.js";/* empty css *//* empty css */import"./index.vue_vue_type_style_index_0_lang-4f759009.js";/* empty css *//* empty css */import"./attachment-dc27e779.js";import"./index.vue_vue_type_script_setup_true_lang-bb171ed6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-19a40c5d.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang-11fc84c3.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./sortable.esm-be94e56d.js";const M={class:"main-container"},O={class:"text-[16px] text-[#1D1F3A] font-bold mb-4"},Y={class:"panel-title !text-[14px] bg-[#F4F5F7] p-3 border-[#E6E6E6] border-solid border-b-[1px]"},$={class:"form-tip"},z={class:"box-card mt-[20px] !border-none"},G={class:"panel-title !text-[14px] bg-[#F4F5F7] p-3 border-[#E6E6E6] border-solid border-b-[1px]"},H={class:"form-tip"},J={class:"text-[12px] text-[#a9a9a9]"},K={class:"text-[12px] text-[#a9a9a9]"},P={class:"fixed-footer-wrap"},Q={class:"fixed-footer"},Ne=F({__name:"adminlogin",setup(W){const f=w().meta.title,d=g(!0),u=g(),t=B({is_captcha:0,is_site_captcha:0,bg:"",site_bg:"",site_login_logo:"",site_login_bg_img:""});(async()=>{const p=await(await k()).data;Object.keys(t).forEach(e=>{t[e]=p[e]}),d.value=!1})();const v=async p=>{d.value||!p||await p.validate(e=>{if(e){const _=y(t);U(_).then(()=>{d.value=!1}).catch(()=>{d.value=!1})}})};return(p,e)=>{const _=N,m=T,c=A,x=R,V=S,h=j,E=q;return b(),L("div",M,[C((b(),D(V,{class:"page-form",model:t,"label-width":"150px",ref_key:"ruleFormRef",ref:u},{default:n(()=>[o(x,{class:"box-card !border-none",shadow:"never"},{default:n(()=>[s("h3",O,r(a(f)),1),s("h3",Y,r(a(l)("admin")),1),o(m,{label:a(l)("isCaptcha")},{default:n(()=>[o(_,{modelValue:t.is_captcha,"onUpdate:modelValue":e[0]||(e[0]=i=>t.is_captcha=i),"active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1},8,["label"]),o(m,{label:a(l)("bgImg")},{default:n(()=>[o(c,{modelValue:t.bg,"onUpdate:modelValue":e[1]||(e[1]=i=>t.bg=i)},null,8,["modelValue"]),s("div",$,r(a(l)("adminBgImgTip")),1)]),_:1},8,["label"]),s("div",z,[s("h3",G,r(a(l)("site")),1),o(m,{label:a(l)("isCaptcha")},{default:n(()=>[o(_,{modelValue:t.is_site_captcha,"onUpdate:modelValue":e[2]||(e[2]=i=>t.is_site_captcha=i),"active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1},8,["label"]),o(m,{label:a(l)("bgImg")},{default:n(()=>[o(c,{modelValue:t.site_bg,"onUpdate:modelValue":e[3]||(e[3]=i=>t.site_bg=i)},null,8,["modelValue"]),s("div",H,r(a(l)("siteBgImgTip")),1)]),_:1},8,["label"]),o(m,{label:a(l)("siteLoginLogo")},{default:n(()=>[s("div",null,[o(c,{modelValue:t.site_login_logo,"onUpdate:modelValue":e[4]||(e[4]=i=>t.site_login_logo=i)},null,8,["modelValue"]),s("p",J,r(a(l)("siteLoginLogoTips")),1)])]),_:1},8,["label"]),o(m,{label:a(l)("siteLoginBgImg")},{default:n(()=>[s("div",null,[o(c,{modelValue:t.site_login_bg_img,"onUpdate:modelValue":e[5]||(e[5]=i=>t.site_login_bg_img=i)},null,8,["modelValue"]),s("p",K,r(a(l)("siteLoginBgImgTips")),1)])]),_:1},8,["label"])])]),_:1})]),_:1},8,["model"])),[[E,d.value]]),s("div",P,[s("div",Q,[o(h,{type:"primary",onClick:e[6]||(e[6]=i=>v(u.value))},{default:n(()=>[I(r(a(l)("save")),1)]),_:1})])])])}}});export{Ne as default};
|
||||||
@ -1 +1 @@
|
|||||||
import{d as w,k,q as y,u as x,h as m,c as E,e as a,w as o,a as i,t as r,f as t,Y as C,v as B,s as n,i as p,cj as N,aj as T,E as j,ak as D,a8 as L,a2 as A}from"./index-42af2821.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */const V={class:"main-container"},R={class:"flex justify-between items-center"},$={class:"text-page-title"},q={class:"mt-[20px]"},X=w({__name:"agreement",setup(z){const _=k().meta.title,e=y({loading:!0,data:[]});(()=>{e.loading=!0,e.data=[],N().then(l=>{Object.keys(l.data).forEach(d=>e.data.push(l.data[d])),e.loading=!1}).catch(()=>{e.loading=!1})})();const u=x(),g=l=>{u.push(`/setting/agreement/edit?key=${l.agreement_key}`)};return(l,d)=>{const s=T,h=j,f=D,b=L,v=A;return m(),E("div",V,[a(b,{class:"box-card !border-none",shadow:"never"},{default:o(()=>[i("div",R,[i("span",$,r(t(_)),1)]),i("div",q,[C((m(),B(f,{data:e.data,size:"large"},{empty:o(()=>[i("span",null,r(e.loading?"":t(n)("emptyData")),1)]),default:o(()=>[a(s,{prop:"type_name",label:t(n)("typeName"),"min-width":"100","show-overflow-tooltip":!0},null,8,["label"]),a(s,{prop:"title",label:t(n)("title"),"min-width":"100","show-overflow-tooltip":!0},null,8,["label"]),a(s,{label:t(n)("updateTime"),"min-width":"180",align:"center"},{default:o(({row:c})=>[p(r(c.update_time||""),1)]),_:1},8,["label"]),a(s,{label:t(n)("operation"),align:"right",fixed:"right",width:"100"},{default:o(({row:c})=>[a(h,{type:"primary",link:"",onClick:Y=>g(c)},{default:o(()=>[p(r(t(n)("config")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[v,e.loading]])])]),_:1})])}}});export{X as default};
|
import{d as w,k,q as y,u as x,h as m,c as E,e as a,w as o,a as i,t as r,f as t,Y as C,v as B,s as n,i as p,cj as N,aj as T,E as j,ak as D,a8 as L,a2 as A}from"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */const V={class:"main-container"},R={class:"flex justify-between items-center"},$={class:"text-page-title"},q={class:"mt-[20px]"},X=w({__name:"agreement",setup(z){const _=k().meta.title,e=y({loading:!0,data:[]});(()=>{e.loading=!0,e.data=[],N().then(l=>{Object.keys(l.data).forEach(d=>e.data.push(l.data[d])),e.loading=!1}).catch(()=>{e.loading=!1})})();const u=x(),g=l=>{u.push(`/setting/agreement/edit?key=${l.agreement_key}`)};return(l,d)=>{const s=T,h=j,f=D,b=L,v=A;return m(),E("div",V,[a(b,{class:"box-card !border-none",shadow:"never"},{default:o(()=>[i("div",R,[i("span",$,r(t(_)),1)]),i("div",q,[C((m(),B(f,{data:e.data,size:"large"},{empty:o(()=>[i("span",null,r(e.loading?"":t(n)("emptyData")),1)]),default:o(()=>[a(s,{prop:"type_name",label:t(n)("typeName"),"min-width":"100","show-overflow-tooltip":!0},null,8,["label"]),a(s,{prop:"title",label:t(n)("title"),"min-width":"100","show-overflow-tooltip":!0},null,8,["label"]),a(s,{label:t(n)("updateTime"),"min-width":"180",align:"center"},{default:o(({row:c})=>[p(r(c.update_time||""),1)]),_:1},8,["label"]),a(s,{label:t(n)("operation"),align:"right",fixed:"right",width:"100"},{default:o(({row:c})=>[a(h,{type:"primary",link:"",onClick:Y=>g(c)},{default:o(()=>[p(r(t(n)("config")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[v,e.loading]])])]),_:1})])}}});export{X as default};
|
||||||
@ -1 +1 @@
|
|||||||
import{d as q,k as M,u as P,r as y,ck as S,q as T,m as $,s as r,h,c as I,e as a,w as s,f as n,b3 as U,Y as j,v as A,a as k,i as w,t as x,cl as L,cm as O,b4 as H,a8 as Y,L as z,M as G,N as J,E as K,a2 as Q}from"./index-42af2821.js";/* empty css *//* empty css *//* empty css */import{_ as W}from"./index.vue_vue_type_script_setup_true_lang-dc06f0b2.js";import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_style_index_0_lang-d555545c.js";/* empty css *//* empty css */import"./attachment-b87a9283.js";import"./index.vue_vue_type_script_setup_true_lang-44963142.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-3e626b56.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang-a982918a.js";import"./_plugin-vue_export-helper-c27b6911.js";const X={class:"main-container"},Z={class:"fixed-footer-wrap"},ee={class:"fixed-footer"},Se=q({__name:"agreement_edit",setup(te){const d=M(),V=P(),_=d.query.key||"",i=y(!1),E=S(),B=d.meta.title,f={agreement_key:"",content:"",title:"",agreement_key_name:""},t=T({...f});i.value=!0,_&&(async(m="")=>{Object.assign(t,f);const e=await(await L(m)).data;Object.keys(t).forEach(o=>{e[o]!=null&&(t[o]=e[o])}),i.value=!1})(_);const g=y(),D=$(()=>({title:[{required:!0,message:r("titlePlaceholder"),trigger:"blur"}],content:[{required:!0,trigger:["blur","change"],validator:(m,e,o)=>{if(e==="")o(new Error(r("contentPlaceholder")));else{if(e.length<5||e.length>1e5)return o(new Error(r("contentMaxTips"))),!1;o()}}}]})),C=async m=>{i.value||!m||await m.validate(async e=>{if(e){i.value=!0;const o=t;o.key=t.agreement_key,O(o).then(c=>{i.value=!1,p()}).catch(()=>{i.value=!1})}})},p=()=>{E.removeTab(d.path),V.push({path:"/setting/agreement"})};return(m,e)=>{const o=H,c=Y,v=z,u=G,F=W,N=J,b=K,R=Q;return h(),I("div",X,[a(c,{class:"card !border-none",shadow:"never"},{default:s(()=>[a(o,{content:n(B),icon:n(U),onBack:e[0]||(e[0]=l=>p())},null,8,["content","icon"])]),_:1}),j((h(),A(c,{class:"box-card mt-[15px] !border-none",shadow:"never"},{default:s(()=>[a(N,{model:t,"label-width":"90px",ref_key:"formRef",ref:g,rules:n(D),class:"page-form"},{default:s(()=>[a(u,{label:n(r)("type")},{default:s(()=>[a(v,{modelValue:t.agreement_key_name,"onUpdate:modelValue":e[1]||(e[1]=l=>t.agreement_key_name=l),modelModifiers:{trim:!0},readonly:"",class:"input-width"},null,8,["modelValue"])]),_:1},8,["label"]),a(u,{label:n(r)("title"),prop:"title"},{default:s(()=>[a(v,{modelValue:t.title,"onUpdate:modelValue":e[2]||(e[2]=l=>t.title=l),modelModifiers:{trim:!0},clearable:"",placeholder:n(r)("titlePlaceholder"),class:"input-width",maxlength:"20"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(u,{label:n(r)("content"),prop:"content"},{default:s(()=>[a(F,{modelValue:t.content,"onUpdate:modelValue":e[3]||(e[3]=l=>t.content=l)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1})),[[R,i.value]]),k("div",Z,[k("div",ee,[a(b,{type:"primary",onClick:e[4]||(e[4]=l=>C(g.value))},{default:s(()=>[w(x(n(r)("save")),1)]),_:1}),a(b,{onClick:e[5]||(e[5]=l=>p())},{default:s(()=>[w(x(n(r)("cancel")),1)]),_:1})])])])}}});export{Se as default};
|
import{d as q,k as M,u as P,r as y,ck as S,q as T,m as $,s as r,h,c as I,e as a,w as s,f as n,b3 as U,Y as j,v as A,a as k,i as w,t as x,cl as L,cm as O,b4 as H,a8 as Y,L as z,M as G,N as J,E as K,a2 as Q}from"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css */import{_ as W}from"./index.vue_vue_type_script_setup_true_lang-bf5e4c66.js";import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_style_index_0_lang-4f759009.js";/* empty css *//* empty css */import"./attachment-dc27e779.js";import"./index.vue_vue_type_script_setup_true_lang-bb171ed6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-19a40c5d.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang-11fc84c3.js";import"./_plugin-vue_export-helper-c27b6911.js";const X={class:"main-container"},Z={class:"fixed-footer-wrap"},ee={class:"fixed-footer"},Se=q({__name:"agreement_edit",setup(te){const d=M(),V=P(),_=d.query.key||"",i=y(!1),E=S(),B=d.meta.title,f={agreement_key:"",content:"",title:"",agreement_key_name:""},t=T({...f});i.value=!0,_&&(async(m="")=>{Object.assign(t,f);const e=await(await L(m)).data;Object.keys(t).forEach(o=>{e[o]!=null&&(t[o]=e[o])}),i.value=!1})(_);const g=y(),D=$(()=>({title:[{required:!0,message:r("titlePlaceholder"),trigger:"blur"}],content:[{required:!0,trigger:["blur","change"],validator:(m,e,o)=>{if(e==="")o(new Error(r("contentPlaceholder")));else{if(e.length<5||e.length>1e5)return o(new Error(r("contentMaxTips"))),!1;o()}}}]})),C=async m=>{i.value||!m||await m.validate(async e=>{if(e){i.value=!0;const o=t;o.key=t.agreement_key,O(o).then(c=>{i.value=!1,p()}).catch(()=>{i.value=!1})}})},p=()=>{E.removeTab(d.path),V.push({path:"/setting/agreement"})};return(m,e)=>{const o=H,c=Y,v=z,u=G,F=W,N=J,b=K,R=Q;return h(),I("div",X,[a(c,{class:"card !border-none",shadow:"never"},{default:s(()=>[a(o,{content:n(B),icon:n(U),onBack:e[0]||(e[0]=l=>p())},null,8,["content","icon"])]),_:1}),j((h(),A(c,{class:"box-card mt-[15px] !border-none",shadow:"never"},{default:s(()=>[a(N,{model:t,"label-width":"90px",ref_key:"formRef",ref:g,rules:n(D),class:"page-form"},{default:s(()=>[a(u,{label:n(r)("type")},{default:s(()=>[a(v,{modelValue:t.agreement_key_name,"onUpdate:modelValue":e[1]||(e[1]=l=>t.agreement_key_name=l),modelModifiers:{trim:!0},readonly:"",class:"input-width"},null,8,["modelValue"])]),_:1},8,["label"]),a(u,{label:n(r)("title"),prop:"title"},{default:s(()=>[a(v,{modelValue:t.title,"onUpdate:modelValue":e[2]||(e[2]=l=>t.title=l),modelModifiers:{trim:!0},clearable:"",placeholder:n(r)("titlePlaceholder"),class:"input-width",maxlength:"20"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(u,{label:n(r)("content"),prop:"content"},{default:s(()=>[a(F,{modelValue:t.content,"onUpdate:modelValue":e[3]||(e[3]=l=>t.content=l)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1})),[[R,i.value]]),k("div",Z,[k("div",ee,[a(b,{type:"primary",onClick:e[4]||(e[4]=l=>C(g.value))},{default:s(()=>[w(x(n(r)("save")),1)]),_:1}),a(b,{onClick:e[5]||(e[5]=l=>p())},{default:s(()=>[w(x(n(r)("cancel")),1)]),_:1})])])])}}});export{Se as default};
|
||||||
@ -1 +1 @@
|
|||||||
import{b5 as t}from"./index-42af2821.js";function e(){return t.get("aliapp/config")}function p(a){return t.put("aliapp/config",a,{showSuccessMessage:!0})}function n(){return t.get("aliapp/static")}export{n as a,e as g,p as s};
|
import{b5 as t}from"./index-9c445bb6.js";function e(){return t.get("aliapp/config")}function p(a){return t.put("aliapp/config",a,{showSuccessMessage:!0})}function n(){return t.get("aliapp/static")}export{n as a,e as g,p as s};
|
||||||
@ -1 +1 @@
|
|||||||
import{b5 as n}from"./index-42af2821.js";function t(){return n.get("channel/app/config")}function r(e){return n.put("channel/app/config",e,{showSuccessMessage:!0})}function a(e){return n.get("channel/app/version",{params:e})}function o(e){return n.get(`channel/app/version/${e}`)}function u(){return n.get("channel/app/platfrom")}function i(e){return n.post("channel/app/version",e,{showSuccessMessage:!0})}function c(e){return n.put(`channel/app/version/${e.id}`,e,{showSuccessMessage:!0})}function p(e){return n.delete(`channel/app/version/${e.id}`)}function g(e){return n.get(`channel/app/build/log/${e}`)}function f(e){return n.put(`channel/app/version/${e}/release`,{},{showSuccessMessage:!0})}function l(e){return n.post("channel/app/generate_sing_cert",e,{showSuccessMessage:!0})}export{a,g as b,u as c,p as d,c as e,i as f,t as g,o as h,l as i,f as r,r as s};
|
import{b5 as n}from"./index-9c445bb6.js";function t(){return n.get("channel/app/config")}function r(e){return n.put("channel/app/config",e,{showSuccessMessage:!0})}function a(e){return n.get("channel/app/version",{params:e})}function o(e){return n.get(`channel/app/version/${e}`)}function u(){return n.get("channel/app/platfrom")}function i(e){return n.post("channel/app/version",e,{showSuccessMessage:!0})}function c(e){return n.put(`channel/app/version/${e.id}`,e,{showSuccessMessage:!0})}function p(e){return n.delete(`channel/app/version/${e.id}`)}function g(e){return n.get(`channel/app/build/log/${e}`)}function f(e){return n.put(`channel/app/version/${e}/release`,{},{showSuccessMessage:!0})}function l(e){return n.post("channel/app/generate_sing_cert",e,{showSuccessMessage:!0})}export{a,g as b,u as c,p as d,c as e,i as f,t as g,o as h,l as i,f as r,r as s};
|
||||||
@ -1 +1 @@
|
|||||||
import{_ as o}from"./app-version-edit.vue_vue_type_style_index_0_lang-971d5a1e.js";import"./index-42af2821.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_style_index_0_lang-b9cbc7db.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";import"./app-e91bddf8.js";import"./generate-sing-cert.vue_vue_type_script_setup_true_lang-47bc4456.js";export{o as default};
|
import{_ as o}from"./app-version-edit.vue_vue_type_style_index_0_lang-eac675ea.js";import"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_style_index_0_lang-97b1b8f2.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";import"./app-de0accc3.js";import"./generate-sing-cert.vue_vue_type_script_setup_true_lang-5f1a1684.js";export{o as default};
|
||||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
|||||||
import{d as I,u as V,j as M,r as y,q as N,Y as R,h as l,c as x,a as e,t as s,f as a,s as o,e as u,w as c,F as j,V as D,B as T,v as $,i as q,C as k,ca as b,H as w,E as z,K as H,ba as K,cb as O,aa as P,a2 as U,p as Y,g as G}from"./index-42af2821.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as J}from"./apply_empty-cdca3e85.js";import{a as Q}from"./addon-503e1dc6.js";import{_ as W}from"./_plugin-vue_export-helper-c27b6911.js";const X=""+new URL("app_store_default-c0531792.png",import.meta.url).href,h=_=>(Y("data-v-8a156fb4"),_=_(),G(),_),Z={class:"box-border pt-[68px] px-[76px] overview-top"},ee={key:0},te={class:"flex justify-between items-center"},se={class:"font-[600] text-[26px] text-[#222] leading-[37px]"},ae={class:"font-[500] text-[14px] text-[#222] leading-[20px] mt-[12px]"},oe=h(()=>e("div",{class:"mr-[9px] text-[#3F3F3F] iconfont iconxiazai01"},null,-1)),ne={class:"font-[600] text-[14px] text-[#222] leading-[20px]"},pe={class:"flex flex-wrap mt-[40px]"},ce=["onClick"],ie={class:"bg-[#F7FAFB] py-[18px] px-[24px] flex items-center app-item-head"},re=h(()=>e("div",{class:"image-slot"},[e("img",{class:"w-[40px] h-[40px] rounded-[8px]",src:X})],-1)),le={class:"py-[18px] px-[24px]"},_e={class:"font-[600] leading-[1] text-[14px] text-[#222]"},de={class:"text-[13px] text-[#6D7278] leading-[18px] mt-[6px] truncate"},xe=h(()=>e("div",{class:"w-[230px] mx-auto"},[e("img",{src:J,class:"max-w-full",alt:""})],-1)),ue={class:"flex items-center"},me=I({__name:"app_manage",setup(_){const v=V(),m=M(),n=y(!0),d=N({appList:[]}),f=y({});(()=>{n.value=!0,Q().then(p=>{Object.values(p.data).forEach((t,i)=>{t.type=="app"&&d.appList.push(t)}),m.routers.forEach((t,i)=>{t.children&&t.children.length?(t.name=b(t.children),f.value[t.meta.app]=b(t.children)):f.value[t.meta.app]=t.name}),n.value=!1}).catch(()=>{n.value=!1})})();const L=p=>{w.set({key:"menuAppStorage",data:p.key}),w.set({key:"plugMenuTypeStorage",data:""});const t=m.appMenuList;t.push(p.key),m.setAppMenuList(t);const i=f.value[p.key];v.push({name:i})},g=()=>{v.push("/app_manage/app_store")};return(p,t)=>{const i=z,F=H,E=K,S=O,C=P,A=U;return R((l(),x("div",Z,[d.appList&&!n.value?(l(),x("div",ee,[e("div",te,[e("div",null,[e("div",se,s(a(o)("app")),1),e("div",ae,s(a(o)("versionInfo"))+" "+s(a(o)("currentVersion")),1)]),u(i,{onClick:g,class:"px-[15px]"},{default:c(()=>[oe,e("span",ne,s(a(o)("appStore")),1)]),_:1})]),e("div",pe,[(l(!0),x(j,null,D(d.appList,(r,B)=>(l(),x("div",{key:B,class:"app-item w-[280px] box-border !bg-[#fff] rounded-[6px] cursor-pointer mr-[20px] mb-[20px] overflow-hidden",onClick:he=>L(r)},[e("div",ie,[u(F,{class:"w-[44px] h-[44px] rounded-[8px]",src:a(T)(r.icon),fit:"contain"},{error:c(()=>[re]),_:2},1032,["src"])]),e("div",le,[e("div",_e,s(r.title),1),u(E,{class:"box-item",effect:"light",content:r.desc,placement:"bottom-start"},{default:c(()=>[e("div",de,s(r.desc),1)]),_:2},1032,["content"])])],8,ce))),128)),!d.appList.length&&!n.value?(l(),$(C,{key:0,class:"mx-auto overview-empty"},{image:c(()=>[xe]),description:c(()=>[e("p",ue,[e("span",null,s(a(o)("descriptionLeft")),1),u(S,{type:"primary",onClick:g,class:"mx-[5px]"},{default:c(()=>[q(s(a(o)("link")),1)]),_:1}),e("span",null,s(a(o)("descriptionRight")),1)])]),_:1})):k("",!0)])])):k("",!0)])),[[A,n.value]])}}});const Be=W(me,[["__scopeId","data-v-8a156fb4"]]);export{Be as default};
|
import{d as I,u as V,j as M,r as y,q as N,Y as R,h as l,c as x,a as e,t as s,f as a,s as o,e as u,w as c,F as j,V as D,B as T,v as $,i as q,C as k,ca as b,H as w,E as z,K as H,ba as K,cb as O,aa as P,a2 as U,p as Y,g as G}from"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as J}from"./apply_empty-cdca3e85.js";import{a as Q}from"./addon-f95ced4c.js";import{_ as W}from"./_plugin-vue_export-helper-c27b6911.js";const X=""+new URL("app_store_default-c0531792.png",import.meta.url).href,h=_=>(Y("data-v-8a156fb4"),_=_(),G(),_),Z={class:"box-border pt-[68px] px-[76px] overview-top"},ee={key:0},te={class:"flex justify-between items-center"},se={class:"font-[600] text-[26px] text-[#222] leading-[37px]"},ae={class:"font-[500] text-[14px] text-[#222] leading-[20px] mt-[12px]"},oe=h(()=>e("div",{class:"mr-[9px] text-[#3F3F3F] iconfont iconxiazai01"},null,-1)),ne={class:"font-[600] text-[14px] text-[#222] leading-[20px]"},pe={class:"flex flex-wrap mt-[40px]"},ce=["onClick"],ie={class:"bg-[#F7FAFB] py-[18px] px-[24px] flex items-center app-item-head"},re=h(()=>e("div",{class:"image-slot"},[e("img",{class:"w-[40px] h-[40px] rounded-[8px]",src:X})],-1)),le={class:"py-[18px] px-[24px]"},_e={class:"font-[600] leading-[1] text-[14px] text-[#222]"},de={class:"text-[13px] text-[#6D7278] leading-[18px] mt-[6px] truncate"},xe=h(()=>e("div",{class:"w-[230px] mx-auto"},[e("img",{src:J,class:"max-w-full",alt:""})],-1)),ue={class:"flex items-center"},me=I({__name:"app_manage",setup(_){const v=V(),m=M(),n=y(!0),d=N({appList:[]}),f=y({});(()=>{n.value=!0,Q().then(p=>{Object.values(p.data).forEach((t,i)=>{t.type=="app"&&d.appList.push(t)}),m.routers.forEach((t,i)=>{t.children&&t.children.length?(t.name=b(t.children),f.value[t.meta.app]=b(t.children)):f.value[t.meta.app]=t.name}),n.value=!1}).catch(()=>{n.value=!1})})();const L=p=>{w.set({key:"menuAppStorage",data:p.key}),w.set({key:"plugMenuTypeStorage",data:""});const t=m.appMenuList;t.push(p.key),m.setAppMenuList(t);const i=f.value[p.key];v.push({name:i})},g=()=>{v.push("/app_manage/app_store")};return(p,t)=>{const i=z,F=H,E=K,S=O,C=P,A=U;return R((l(),x("div",Z,[d.appList&&!n.value?(l(),x("div",ee,[e("div",te,[e("div",null,[e("div",se,s(a(o)("app")),1),e("div",ae,s(a(o)("versionInfo"))+" "+s(a(o)("currentVersion")),1)]),u(i,{onClick:g,class:"px-[15px]"},{default:c(()=>[oe,e("span",ne,s(a(o)("appStore")),1)]),_:1})]),e("div",pe,[(l(!0),x(j,null,D(d.appList,(r,B)=>(l(),x("div",{key:B,class:"app-item w-[280px] box-border !bg-[#fff] rounded-[6px] cursor-pointer mr-[20px] mb-[20px] overflow-hidden",onClick:he=>L(r)},[e("div",ie,[u(F,{class:"w-[44px] h-[44px] rounded-[8px]",src:a(T)(r.icon),fit:"contain"},{error:c(()=>[re]),_:2},1032,["src"])]),e("div",le,[e("div",_e,s(r.title),1),u(E,{class:"box-item",effect:"light",content:r.desc,placement:"bottom-start"},{default:c(()=>[e("div",de,s(r.desc),1)]),_:2},1032,["content"])])],8,ce))),128)),!d.appList.length&&!n.value?(l(),$(C,{key:0,class:"mx-auto overview-empty"},{image:c(()=>[xe]),description:c(()=>[e("p",ue,[e("span",null,s(a(o)("descriptionLeft")),1),u(S,{type:"primary",onClick:g,class:"mx-[5px]"},{default:c(()=>[q(s(a(o)("link")),1)]),_:1}),e("span",null,s(a(o)("descriptionRight")),1)])]),_:1})):k("",!0)])])):k("",!0)])),[[A,n.value]])}}});const Be=W(me,[["__scopeId","data-v-8a156fb4"]]);export{Be as default};
|
||||||
@ -1 +1 @@
|
|||||||
import{d as f,k as h,r as b,h as m,c as s,e,w as o,a as i,t as y,f as p,F as v,V as x,s as g,aH as V,aI as k,a8 as w}from"./index-42af2821.js";/* empty css *//* empty css */import E from"./attachment-b87a9283.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang-44963142.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-3e626b56.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang-a982918a.js";import"./_plugin-vue_export-helper-c27b6911.js";const B={class:"main-container attachment-container"},C={class:"flex justify-between items-center mb-[20px]"},N={class:"text-page-title"},it=f({__name:"attachment",setup(T){const l=h().meta.title,a=["image","video","icon"],n=b(a[0]);return(j,r)=>{const c=V,_=k,d=w;return m(),s("div",B,[e(d,{class:"box-card !border-none full-container",shadow:"never"},{default:o(()=>[i("div",C,[i("span",N,y(p(l)),1)]),e(_,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=t=>n.value=t),"tab-position":"top"},{default:o(()=>[(m(),s(v,null,x(a,(t,u)=>e(c,{label:p(g)(t),name:t,key:u},{default:o(()=>[e(E,{scene:"attachment",type:t},null,8,["type"])]),_:2},1032,["label","name"])),64))]),_:1},8,["modelValue"])]),_:1})])}}});export{it as default};
|
import{d as f,k as h,r as b,h as m,c as s,e,w as o,a as i,t as y,f as p,F as v,V as x,s as g,aH as V,aI as k,a8 as w}from"./index-9c445bb6.js";/* empty css *//* empty css */import E from"./attachment-dc27e779.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang-bb171ed6.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-19a40c5d.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang-11fc84c3.js";import"./_plugin-vue_export-helper-c27b6911.js";const B={class:"main-container attachment-container"},C={class:"flex justify-between items-center mb-[20px]"},N={class:"text-page-title"},it=f({__name:"attachment",setup(T){const l=h().meta.title,a=["image","video","icon"],n=b(a[0]);return(j,r)=>{const c=V,_=k,d=w;return m(),s("div",B,[e(d,{class:"box-card !border-none full-container",shadow:"never"},{default:o(()=>[i("div",C,[i("span",N,y(p(l)),1)]),e(_,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=t=>n.value=t),"tab-position":"top"},{default:o(()=>[(m(),s(v,null,x(a,(t,u)=>e(c,{label:p(g)(t),name:t,key:u},{default:o(()=>[e(E,{scene:"attachment",type:t},null,8,["type"])]),_:2},1032,["label","name"])),64))]),_:1},8,["modelValue"])]),_:1})])}}});export{it as default};
|
||||||
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/attachment-dc27e779.js
Normal file
1
niucloud/public/admin/assets/attachment-dc27e779.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
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
|||||||
import{d as b,r as d,q as w,I as m,m as g,Q as c,h as F,v as E,w as i,e as n,a,Y as N,i as j,Z as B,aF as C,L as I,M as O,N as R}from"./index-42af2821.js";/* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css */const k={class:"flex items-center"},D=a("span",{class:"ml-[10px] el-form-item__label"},"消费折扣",-1),M={class:"w-[120px]"},U=a("div",{class:"text-sm text-gray-400 mb-[5px]"},"会员购买产品默认折扣,需要商品设置参与会员折扣有效",-1),Y=b({__name:"benefits-discount",props:{modelValue:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(p,{expose:_,emit:v}){const f=p,e=d({is_use:0,discount:""}),r=d(null),x=w({discount:[{validator:(l,t,s)=>{e.value.is_use&&(m.empty(e.value.discount)&&s("请输入折扣"),m.decimal(e.value.discount,1)||s("折扣格式错误"),(parseFloat(e.value.discount)<0||parseFloat(e.value.discount)>9.9)&&s("折扣只能输入0~9.9之间的值"),e.value.discount<0&&s("折扣不能小于0")),s()}}]}),o=g({get(){return f.modelValue},set(l){v("update:modelValue",l)}});return c(()=>o.value,(l,t)=>{(!t||!Object.keys(t).length)&&Object.keys(l).length&&(e.value=o.value)},{immediate:!0}),c(()=>e.value,()=>{o.value=e.value},{deep:!0}),_({verify:async()=>{var t;let l=!0;return await((t=r.value)==null?void 0:t.validate(s=>{l=s})),l}}),(l,t)=>{const s=C,V=I,h=O,y=R;return F(),E(y,{ref_key:"formRef",ref:r,model:e.value,rules:x},{default:i(()=>[n(h,{label:"",prop:"discount",class:"!mb-[10px]"},{default:i(()=>[a("div",null,[a("div",k,[n(s,{modelValue:e.value.is_use,"onUpdate:modelValue":t[0]||(t[0]=u=>e.value.is_use=u),"true-label":1,"false-label":0,label:"",size:"large"},null,8,["modelValue"]),D,N(a("div",M,[n(V,{modelValue:e.value.discount,"onUpdate:modelValue":t[1]||(t[1]=u=>e.value.discount=u),modelModifiers:{trim:!0},clearable:""},{append:i(()=>[j("折")]),_:1},8,["modelValue"])],512),[[B,e.value.is_use]])]),U])]),_:1})]),_:1},8,["model","rules"])}}});export{Y as default};
|
import{d as b,r as d,q as w,I as m,m as g,Q as c,h as F,v as E,w as i,e as n,a,Y as N,i as j,Z as B,aF as C,L as I,M as O,N as R}from"./index-9c445bb6.js";/* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css */const k={class:"flex items-center"},D=a("span",{class:"ml-[10px] el-form-item__label"},"消费折扣",-1),M={class:"w-[120px]"},U=a("div",{class:"text-sm text-gray-400 mb-[5px]"},"会员购买产品默认折扣,需要商品设置参与会员折扣有效",-1),Y=b({__name:"benefits-discount",props:{modelValue:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(p,{expose:_,emit:v}){const f=p,e=d({is_use:0,discount:""}),r=d(null),x=w({discount:[{validator:(l,t,s)=>{e.value.is_use&&(m.empty(e.value.discount)&&s("请输入折扣"),m.decimal(e.value.discount,1)||s("折扣格式错误"),(parseFloat(e.value.discount)<0||parseFloat(e.value.discount)>9.9)&&s("折扣只能输入0~9.9之间的值"),e.value.discount<0&&s("折扣不能小于0")),s()}}]}),o=g({get(){return f.modelValue},set(l){v("update:modelValue",l)}});return c(()=>o.value,(l,t)=>{(!t||!Object.keys(t).length)&&Object.keys(l).length&&(e.value=o.value)},{immediate:!0}),c(()=>e.value,()=>{o.value=e.value},{deep:!0}),_({verify:async()=>{var t;let l=!0;return await((t=r.value)==null?void 0:t.validate(s=>{l=s})),l}}),(l,t)=>{const s=C,V=I,h=O,y=R;return F(),E(y,{ref_key:"formRef",ref:r,model:e.value,rules:x},{default:i(()=>[n(h,{label:"",prop:"discount",class:"!mb-[10px]"},{default:i(()=>[a("div",null,[a("div",k,[n(s,{modelValue:e.value.is_use,"onUpdate:modelValue":t[0]||(t[0]=u=>e.value.is_use=u),"true-label":1,"false-label":0,label:"",size:"large"},null,8,["modelValue"]),D,N(a("div",M,[n(V,{modelValue:e.value.discount,"onUpdate:modelValue":t[1]||(t[1]=u=>e.value.discount=u),modelModifiers:{trim:!0},clearable:""},{append:i(()=>[j("折")]),_:1},8,["modelValue"])],512),[[B,e.value.is_use]])]),U])]),_:1})]),_:1},8,["model","rules"])}}});export{Y as default};
|
||||||
@ -1 +1 @@
|
|||||||
import{d as W,k as O,r as b,q as V,h as u,c as E,e as n,w as s,a as i,t as m,f as o,Y as z,v as p,s as l,bW as k,C as f,i as v,F as L,V as S,b8 as j,M as G,L as H,aD as I,aE as K,aF as P,bE as q,a8 as X,N as Y,E as $,a2 as J}from"./index-42af2821.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css */import{d as Q,W as Z,X as ee}from"./member-72d6c36e.js";const te={class:"main-container"},ae={class:"flex justify-between items-center"},oe={class:"text-page-title"},se={class:"text-[12px] text-[#999] leading-[24px]"},le=i("span",{class:"ml-2"},"%",-1),ne={class:"text-[12px] text-[#999] leading-[24px]"},re={class:"fixed-footer-wrap"},ie={class:"fixed-footer"},Fe=W({__name:"cash_out",setup(de){const C=O().meta.title,c=b(!0),g=b(),t=V({is_auto_transfer:"0",is_auto_verify:"0",is_open:"0",min:"0",rate:"0",transfer_type:[]}),h=b([]);(async()=>{h.value=await(await Q()).data})(),(async()=>{const d=await(await Z()).data;Object.keys(t).forEach(e=>{d[e]!=null&&(t[e]=d[e])}),c.value=!1})();const R=V({min:[{validator:(d,e,r)=>{Number(e)<.01?r(new Error(l("cashWithdrawalAmountHint"))):r()},trigger:"blur"}],rate:[{validator:(d,e,r)=>{Number(e)>100||Number(e)<0?r(new Error(l("commissionRatioHint"))):r()},trigger:"blur"}]}),F=async d=>{c.value||!d||await d.validate(e=>{if(e){const r={...t};ee(r).then(()=>{c.value=!1}).catch(()=>{c.value=!1})}})};return(d,e)=>{const r=j,_=G,y=H,x=I,N=K,D=P,T=q,w=X,A=Y,B=$,M=J;return u(),E("div",te,[n(w,{class:"box-card !border-none",shadow:"never"},{default:s(()=>[i("div",ae,[i("span",oe,m(o(C)),1)]),z((u(),p(A,{class:"page-form mt-[20px]",model:t,"label-width":"150px",ref_key:"ruleFormRef",ref:g,rules:R},{default:s(()=>[n(w,{class:"box-card !border-none",shadow:"never"},{default:s(()=>[n(_,{label:o(l)("isOpen")},{default:s(()=>[n(r,{modelValue:t.is_open,"onUpdate:modelValue":e[0]||(e[0]=a=>t.is_open=a),"active-value":"1","inactive-value":"0"},null,8,["modelValue"])]),_:1},8,["label"]),t.is_open?(u(),p(_,{key:0,label:o(l)("cashWithdrawalAmount"),prop:"min"},{default:s(()=>[i("div",null,[n(y,{modelValue:t.min,"onUpdate:modelValue":e[1]||(e[1]=a=>t.min=a),modelModifiers:{trim:!0},onKeyup:e[2]||(e[2]=a=>o(k)(a)),class:"input-width",placeholder:o(l)("cashWithdrawalAmountPlaceholder")},null,8,["modelValue","placeholder"]),i("div",se,m(o(l)("minTips")),1)])]),_:1},8,["label"])):f("",!0),t.is_open?(u(),p(_,{key:1,label:o(l)("commissionRatio"),prop:"rate"},{default:s(()=>[n(y,{modelValue:t.rate,"onUpdate:modelValue":e[3]||(e[3]=a=>t.rate=a),modelModifiers:{trim:!0},onKeyup:e[4]||(e[4]=a=>o(k)(a)),class:"input-width",placeholder:o(l)("commissionRatioPlaceholder")},null,8,["modelValue","placeholder"]),le]),_:1},8,["label"])):f("",!0),t.is_open?(u(),p(_,{key:2,label:o(l)("audit"),class:"items-center"},{default:s(()=>[n(N,{modelValue:t.is_auto_verify,"onUpdate:modelValue":e[5]||(e[5]=a=>t.is_auto_verify=a)},{default:s(()=>[n(x,{label:"0",size:"large"},{default:s(()=>[v(m(o(l)("manualAudit")),1)]),_:1}),n(x,{label:"1",size:"large"},{default:s(()=>[v(m(o(l)("automaticAudit")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):f("",!0),t.is_open?(u(),p(_,{key:3,label:o(l)("transferMode"),class:"items-baseline"},{default:s(()=>[i("div",null,[n(T,{modelValue:t.transfer_type,"onUpdate:modelValue":e[6]||(e[6]=a=>t.transfer_type=a),size:"large"},{default:s(()=>[(u(!0),E(L,null,S(h.value,(a,U)=>(u(),p(D,{label:a.key,key:"a"+U},{default:s(()=>[v(m(a.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"]),i("div",ne,m(o(l)("transferModeTips")),1)])]),_:1},8,["label"])):f("",!0)]),_:1})]),_:1},8,["model","rules"])),[[M,c.value]])]),_:1}),i("div",re,[i("div",ie,[n(B,{type:"primary",onClick:e[7]||(e[7]=a=>F(g.value))},{default:s(()=>[v(m(o(l)("save")),1)]),_:1})])])])}}});export{Fe as default};
|
import{d as W,k as O,r as b,q as V,h as u,c as E,e as n,w as s,a as i,t as m,f as o,Y as z,v as p,s as l,bW as k,C as f,i as v,F as L,V as S,b8 as j,M as G,L as H,aD as I,aE as K,aF as P,bE as q,a8 as X,N as Y,E as $,a2 as J}from"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css */import{d as Q,W as Z,X as ee}from"./member-0fb4c483.js";const te={class:"main-container"},ae={class:"flex justify-between items-center"},oe={class:"text-page-title"},se={class:"text-[12px] text-[#999] leading-[24px]"},le=i("span",{class:"ml-2"},"%",-1),ne={class:"text-[12px] text-[#999] leading-[24px]"},re={class:"fixed-footer-wrap"},ie={class:"fixed-footer"},Fe=W({__name:"cash_out",setup(de){const C=O().meta.title,c=b(!0),g=b(),t=V({is_auto_transfer:"0",is_auto_verify:"0",is_open:"0",min:"0",rate:"0",transfer_type:[]}),h=b([]);(async()=>{h.value=await(await Q()).data})(),(async()=>{const d=await(await Z()).data;Object.keys(t).forEach(e=>{d[e]!=null&&(t[e]=d[e])}),c.value=!1})();const R=V({min:[{validator:(d,e,r)=>{Number(e)<.01?r(new Error(l("cashWithdrawalAmountHint"))):r()},trigger:"blur"}],rate:[{validator:(d,e,r)=>{Number(e)>100||Number(e)<0?r(new Error(l("commissionRatioHint"))):r()},trigger:"blur"}]}),F=async d=>{c.value||!d||await d.validate(e=>{if(e){const r={...t};ee(r).then(()=>{c.value=!1}).catch(()=>{c.value=!1})}})};return(d,e)=>{const r=j,_=G,y=H,x=I,N=K,D=P,T=q,w=X,A=Y,B=$,M=J;return u(),E("div",te,[n(w,{class:"box-card !border-none",shadow:"never"},{default:s(()=>[i("div",ae,[i("span",oe,m(o(C)),1)]),z((u(),p(A,{class:"page-form mt-[20px]",model:t,"label-width":"150px",ref_key:"ruleFormRef",ref:g,rules:R},{default:s(()=>[n(w,{class:"box-card !border-none",shadow:"never"},{default:s(()=>[n(_,{label:o(l)("isOpen")},{default:s(()=>[n(r,{modelValue:t.is_open,"onUpdate:modelValue":e[0]||(e[0]=a=>t.is_open=a),"active-value":"1","inactive-value":"0"},null,8,["modelValue"])]),_:1},8,["label"]),t.is_open?(u(),p(_,{key:0,label:o(l)("cashWithdrawalAmount"),prop:"min"},{default:s(()=>[i("div",null,[n(y,{modelValue:t.min,"onUpdate:modelValue":e[1]||(e[1]=a=>t.min=a),modelModifiers:{trim:!0},onKeyup:e[2]||(e[2]=a=>o(k)(a)),class:"input-width",placeholder:o(l)("cashWithdrawalAmountPlaceholder")},null,8,["modelValue","placeholder"]),i("div",se,m(o(l)("minTips")),1)])]),_:1},8,["label"])):f("",!0),t.is_open?(u(),p(_,{key:1,label:o(l)("commissionRatio"),prop:"rate"},{default:s(()=>[n(y,{modelValue:t.rate,"onUpdate:modelValue":e[3]||(e[3]=a=>t.rate=a),modelModifiers:{trim:!0},onKeyup:e[4]||(e[4]=a=>o(k)(a)),class:"input-width",placeholder:o(l)("commissionRatioPlaceholder")},null,8,["modelValue","placeholder"]),le]),_:1},8,["label"])):f("",!0),t.is_open?(u(),p(_,{key:2,label:o(l)("audit"),class:"items-center"},{default:s(()=>[n(N,{modelValue:t.is_auto_verify,"onUpdate:modelValue":e[5]||(e[5]=a=>t.is_auto_verify=a)},{default:s(()=>[n(x,{label:"0",size:"large"},{default:s(()=>[v(m(o(l)("manualAudit")),1)]),_:1}),n(x,{label:"1",size:"large"},{default:s(()=>[v(m(o(l)("automaticAudit")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):f("",!0),t.is_open?(u(),p(_,{key:3,label:o(l)("transferMode"),class:"items-baseline"},{default:s(()=>[i("div",null,[n(T,{modelValue:t.transfer_type,"onUpdate:modelValue":e[6]||(e[6]=a=>t.transfer_type=a),size:"large"},{default:s(()=>[(u(!0),E(L,null,S(h.value,(a,U)=>(u(),p(D,{label:a.key,key:"a"+U},{default:s(()=>[v(m(a.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"]),i("div",ne,m(o(l)("transferModeTips")),1)])]),_:1},8,["label"])):f("",!0)]),_:1})]),_:1},8,["model","rules"])),[[M,c.value]])]),_:1}),i("div",re,[i("div",ie,[n(B,{type:"primary",onClick:e[7]||(e[7]=a=>F(g.value))},{default:s(()=>[v(m(o(l)("save")),1)]),_:1})])])])}}});export{Fe as default};
|
||||||
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
|||||||
.btn-time[data-v-d03eaabf]{line-height:36px;text-align:center}[data-v-d03eaabf] .el-button{border-radius:4px!important}[data-v-d03eaabf] .el-timeline-item__node--normal{width:16px!important;height:16px!important}[data-v-d03eaabf] .el-timeline-item__tail{left:6px!important}[data-v-d03eaabf] .el-timeline-item__node.is-hollow{background:#9699B6!important;border-width:3px!important}
|
|
||||||
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/cloud_compile-66e85059.js
Normal file
1
niucloud/public/admin/assets/cloud_compile-66e85059.js
Normal file
File diff suppressed because one or more lines are too long
1
niucloud/public/admin/assets/cloud_compile-de938469.css
Normal file
1
niucloud/public/admin/assets/cloud_compile-de938469.css
Normal file
@ -0,0 +1 @@
|
|||||||
|
.btn-time[data-v-1cc0d949]{line-height:36px;text-align:center}[data-v-1cc0d949] .el-button{border-radius:4px!important}[data-v-1cc0d949] .el-timeline-item__node--normal{width:16px!important;height:16px!important}[data-v-1cc0d949] .el-timeline-item__tail{left:6px!important}[data-v-1cc0d949] .el-timeline-item__node.is-hollow{background:#9699B6!important;border-width:3px!important}
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
|||||||
import{b5 as b,d as S,k as B,r as v,q as D,b9 as F,b2 as I,Q as M,_ as g,s as o,h as R,c as j,e as a,w as l,a as r,t as u,f as i,i as H,b8 as O,M as U,L as $,N as L,a8 as Q,E as T}from"./index-42af2821.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css */import{_ as z}from"./_plugin-vue_export-helper-c27b6911.js";function A(){return b.get("channel/h5/config")}function G(_){return b.put("channel/h5/config",_,{showSuccessMessage:!0})}const J={class:"main-container"},K={class:"flex justify-between items-center"},P={class:"text-page-title"},W={class:"fixed-footer-wrap"},X={class:"fixed-footer"},Y=S({__name:"config",setup(_){const h=B().meta.title,n=v(!0),e=D({is_open:!0,request_url:""}),d=v();A().then(t=>{Object.assign(e,t.data),e.is_open=Boolean(Number(e.is_open)),n.value=!1}),F().then(t=>{e.request_url=t.data.wap_url+"/"});const{copy:y,isSupported:w,copied:m}=I(),x=t=>{if(!w.value){g({message:o("notSupportCopy"),type:"warning"});return}y(t)};M(m,()=>{m.value&&g({message:o("copySuccess"),type:"success"})});const C=()=>{window.open(e.request_url)},E=async t=>{n.value||!t||await t.validate(async s=>{if(s){n.value=!0;const c={...e};c.is_open=Number(c.is_open),G(c).then(()=>{n.value=!1}).catch(()=>{n.value=!1})}})};return(t,s)=>{const c=O,f=U,k=$,N=L,q=Q,V=T;return R(),j("div",J,[a(q,{class:"box-card !border-none",shadow:"never"},{default:l(()=>[r("div",K,[r("span",P,u(i(h)),1)]),a(N,{class:"page-form mt-[20px]",model:e,"label-width":"150px",ref_key:"formRef",ref:d},{default:l(()=>[a(f,{label:i(o)("isOpen")},{default:l(()=>[a(c,{modelValue:e.is_open,"onUpdate:modelValue":s[0]||(s[0]=p=>e.is_open=p)},null,8,["modelValue"])]),_:1},8,["label"]),a(f,{label:i(o)("h5DomainName")},{default:l(()=>[a(k,{"model-value":e.request_url,class:"input-width",readonly:!0},{append:l(()=>[r("div",{class:"cursor-pointer",onClick:s[1]||(s[1]=p=>x(e.request_url))},u(i(o)("copy")),1)]),_:1},8,["model-value"]),r("span",{class:"ml-2 cursor-pointer visit-btn",onClick:C},u(i(o)("clickVisit")),1)]),_:1},8,["label"])]),_:1},8,["model"])]),_:1}),r("div",W,[r("div",X,[a(V,{type:"primary",loading:n.value,onClick:s[2]||(s[2]=p=>E(d.value))},{default:l(()=>[H(u(i(o)("save")),1)]),_:1},8,["loading"])])])])}}});const ie=z(Y,[["__scopeId","data-v-8a5349bf"]]);export{ie as default};
|
import{b5 as b,d as S,k as B,r as v,q as D,b9 as F,b2 as I,Q as M,_ as g,s as o,h as R,c as j,e as a,w as l,a as r,t as u,f as i,i as H,b8 as O,M as U,L as $,N as L,a8 as Q,E as T}from"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css */import{_ as z}from"./_plugin-vue_export-helper-c27b6911.js";function A(){return b.get("channel/h5/config")}function G(_){return b.put("channel/h5/config",_,{showSuccessMessage:!0})}const J={class:"main-container"},K={class:"flex justify-between items-center"},P={class:"text-page-title"},W={class:"fixed-footer-wrap"},X={class:"fixed-footer"},Y=S({__name:"config",setup(_){const h=B().meta.title,n=v(!0),e=D({is_open:!0,request_url:""}),d=v();A().then(t=>{Object.assign(e,t.data),e.is_open=Boolean(Number(e.is_open)),n.value=!1}),F().then(t=>{e.request_url=t.data.wap_url+"/"});const{copy:y,isSupported:w,copied:m}=I(),x=t=>{if(!w.value){g({message:o("notSupportCopy"),type:"warning"});return}y(t)};M(m,()=>{m.value&&g({message:o("copySuccess"),type:"success"})});const C=()=>{window.open(e.request_url)},E=async t=>{n.value||!t||await t.validate(async s=>{if(s){n.value=!0;const c={...e};c.is_open=Number(c.is_open),G(c).then(()=>{n.value=!1}).catch(()=>{n.value=!1})}})};return(t,s)=>{const c=O,f=U,k=$,N=L,q=Q,V=T;return R(),j("div",J,[a(q,{class:"box-card !border-none",shadow:"never"},{default:l(()=>[r("div",K,[r("span",P,u(i(h)),1)]),a(N,{class:"page-form mt-[20px]",model:e,"label-width":"150px",ref_key:"formRef",ref:d},{default:l(()=>[a(f,{label:i(o)("isOpen")},{default:l(()=>[a(c,{modelValue:e.is_open,"onUpdate:modelValue":s[0]||(s[0]=p=>e.is_open=p)},null,8,["modelValue"])]),_:1},8,["label"]),a(f,{label:i(o)("h5DomainName")},{default:l(()=>[a(k,{"model-value":e.request_url,class:"input-width",readonly:!0},{append:l(()=>[r("div",{class:"cursor-pointer",onClick:s[1]||(s[1]=p=>x(e.request_url))},u(i(o)("copy")),1)]),_:1},8,["model-value"]),r("span",{class:"ml-2 cursor-pointer visit-btn",onClick:C},u(i(o)("clickVisit")),1)]),_:1},8,["label"])]),_:1},8,["model"])]),_:1}),r("div",W,[r("div",X,[a(V,{type:"primary",loading:n.value,onClick:s[2]||(s[2]=p=>E(d.value))},{default:l(()=>[H(u(i(o)("save")),1)]),_:1},8,["loading"])])])])}}});const ie=z(Y,[["__scopeId","data-v-8a5349bf"]]);export{ie as default};
|
||||||
@ -1 +1 @@
|
|||||||
import{b5 as b,d as S,k as B,r as v,q as D,b9 as F,b2 as I,Q as M,_ as g,s as a,h as R,c as j,e as n,w as l,a as r,t as u,f as i,i as O,b8 as P,M as U,L as $,N as L,a8 as Q,E as T}from"./index-42af2821.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css */import{_ as z}from"./_plugin-vue_export-helper-c27b6911.js";function A(){return b.get("channel/pc/config")}function G(_){return b.put("channel/pc/config",_,{showSuccessMessage:!0})}const H={class:"main-container"},J={class:"flex justify-between items-center"},K={class:"text-page-title"},W={class:"fixed-footer-wrap"},X={class:"fixed-footer"},Y=S({__name:"config",setup(_){const y=B().meta.title,o=v(!0),e=D({is_open:!1,request_url:""}),d=v();F().then(t=>{e.request_url=t.data.web_url+"/",o.value=!1}),A().then(t=>{Object.assign(e,t.data),e.is_open=Boolean(Number(e.is_open)),o.value=!1});const{copy:w,isSupported:h,copied:f}=I(),x=t=>{if(!h.value){g({message:a("notSupportCopy"),type:"warning"});return}w(t)};M(f,()=>{f.value&&g({message:a("copySuccess"),type:"success"})});const C=()=>{window.open(e.request_url)},E=async t=>{o.value||!t||await t.validate(async s=>{if(s){o.value=!0;const c={...e};c.is_open=Number(c.is_open),G(c).then(()=>{o.value=!1}).catch(()=>{o.value=!1})}})};return(t,s)=>{const c=P,m=U,k=$,N=L,q=Q,V=T;return R(),j("div",H,[n(q,{class:"box-card !border-none",shadow:"never"},{default:l(()=>[r("div",J,[r("span",K,u(i(y)),1)]),n(N,{class:"page-form mt-[20px]",model:e,"label-width":"150px",ref_key:"formRef",ref:d},{default:l(()=>[n(m,{label:i(a)("isOpen")},{default:l(()=>[n(c,{modelValue:e.is_open,"onUpdate:modelValue":s[0]||(s[0]=p=>e.is_open=p)},null,8,["modelValue"])]),_:1},8,["label"]),n(m,{label:i(a)("pCDomainName")},{default:l(()=>[n(k,{"model-value":e.request_url,class:"input-width",readonly:!0},{append:l(()=>[r("div",{class:"cursor-pointer",onClick:s[1]||(s[1]=p=>x(e.request_url))},u(i(a)("copy")),1)]),_:1},8,["model-value"]),r("span",{class:"ml-2 cursor-pointer visit-btn",onClick:C},u(i(a)("clickVisit")),1)]),_:1},8,["label"])]),_:1},8,["model"])]),_:1}),r("div",W,[r("div",X,[n(V,{type:"primary",loading:o.value,onClick:s[2]||(s[2]=p=>E(d.value))},{default:l(()=>[O(u(i(a)("save")),1)]),_:1},8,["loading"])])])])}}});const ie=z(Y,[["__scopeId","data-v-2f7e1e13"]]);export{ie as default};
|
import{b5 as b,d as S,k as B,r as v,q as D,b9 as F,b2 as I,Q as M,_ as g,s as a,h as R,c as j,e as n,w as l,a as r,t as u,f as i,i as O,b8 as P,M as U,L as $,N as L,a8 as Q,E as T}from"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css */import{_ as z}from"./_plugin-vue_export-helper-c27b6911.js";function A(){return b.get("channel/pc/config")}function G(_){return b.put("channel/pc/config",_,{showSuccessMessage:!0})}const H={class:"main-container"},J={class:"flex justify-between items-center"},K={class:"text-page-title"},W={class:"fixed-footer-wrap"},X={class:"fixed-footer"},Y=S({__name:"config",setup(_){const y=B().meta.title,o=v(!0),e=D({is_open:!1,request_url:""}),d=v();F().then(t=>{e.request_url=t.data.web_url+"/",o.value=!1}),A().then(t=>{Object.assign(e,t.data),e.is_open=Boolean(Number(e.is_open)),o.value=!1});const{copy:w,isSupported:h,copied:f}=I(),x=t=>{if(!h.value){g({message:a("notSupportCopy"),type:"warning"});return}w(t)};M(f,()=>{f.value&&g({message:a("copySuccess"),type:"success"})});const C=()=>{window.open(e.request_url)},E=async t=>{o.value||!t||await t.validate(async s=>{if(s){o.value=!0;const c={...e};c.is_open=Number(c.is_open),G(c).then(()=>{o.value=!1}).catch(()=>{o.value=!1})}})};return(t,s)=>{const c=P,m=U,k=$,N=L,q=Q,V=T;return R(),j("div",H,[n(q,{class:"box-card !border-none",shadow:"never"},{default:l(()=>[r("div",J,[r("span",K,u(i(y)),1)]),n(N,{class:"page-form mt-[20px]",model:e,"label-width":"150px",ref_key:"formRef",ref:d},{default:l(()=>[n(m,{label:i(a)("isOpen")},{default:l(()=>[n(c,{modelValue:e.is_open,"onUpdate:modelValue":s[0]||(s[0]=p=>e.is_open=p)},null,8,["modelValue"])]),_:1},8,["label"]),n(m,{label:i(a)("pCDomainName")},{default:l(()=>[n(k,{"model-value":e.request_url,class:"input-width",readonly:!0},{append:l(()=>[r("div",{class:"cursor-pointer",onClick:s[1]||(s[1]=p=>x(e.request_url))},u(i(a)("copy")),1)]),_:1},8,["model-value"]),r("span",{class:"ml-2 cursor-pointer visit-btn",onClick:C},u(i(a)("clickVisit")),1)]),_:1},8,["label"])]),_:1},8,["model"])]),_:1}),r("div",W,[r("div",X,[n(V,{type:"primary",loading:o.value,onClick:s[2]||(s[2]=p=>E(d.value))},{default:l(()=>[O(u(i(a)("save")),1)]),_:1},8,["loading"])])])])}}});const ie=z(Y,[["__scopeId","data-v-2f7e1e13"]]);export{ie as default};
|
||||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
|||||||
import{d as M,k as B,u as N,r as v,q as U,m as R,h as b,c as T,e as a,w as s,f as t,Y as D,v as $,a as n,t as d,s as l,i as m,b4 as L,a8 as P,L as F,E as K,M as O,N as S,a2 as j}from"./index-42af2821.js";/* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import{g as q,s as H}from"./app-e91bddf8.js";const Y={class:"main-container"},z={class:"panel-title !text-sm"},G={class:"form-tip flex items-center"},J={class:"form-tip"},Q={class:"form-tip"},W={class:"panel-title !text-sm"},X={class:"form-tip"},Z={class:"fixed-footer-wrap"},ee={class:"fixed-footer"},ce=M({__name:"config",setup(ae){const V=B(),k=N(),g=V.meta.title,r=v(!0),o=U({uni_app_id:"",app_name:"",android_app_key:"",application_id:"",wechat_app_id:"",wechat_app_secret:""}),f=v(),y=R(()=>({}));q().then(i=>{Object.assign(o,i.data),r.value=!1});const x=async i=>{r.value||!i||await i.validate(async e=>{e&&(r.value=!0,H(o).then(()=>{r.value=!1}).catch(()=>{r.value=!1}))})},h=i=>{window.open(i)},A=()=>{k.push("/channel/app")};return(i,e)=>{const C=L,_=P,c=F,w=K,u=O,I=S,E=j;return b(),T("div",Y,[a(_,{class:"card !border-none",shadow:"never"},{default:s(()=>[a(C,{content:t(g),icon:i.ArrowLeft,onBack:e[0]||(e[0]=p=>A())},null,8,["content","icon"])]),_:1}),D((b(),$(I,{class:"page-form mt-[15px]",model:o,"label-width":"170px",ref_key:"formRef",ref:f,rules:t(y)},{default:s(()=>[a(_,{class:"box-card !border-none mt-[15px]",shadow:"never"},{default:s(()=>[n("h3",z,d(t(l)("appInfo")),1),a(u,{label:t(l)("uniAppId"),prop:"uni_app_id"},{default:s(()=>[a(c,{modelValue:o.uni_app_id,"onUpdate:modelValue":e[1]||(e[1]=p=>o.uni_app_id=p),modelModifiers:{trim:!0},placeholder:"",class:"input-width",clearable:""},null,8,["modelValue"]),n("div",G,[m(d(t(l)("uniAppIdTips"))+" ",1),a(w,{link:"",type:"primary",onClick:e[2]||(e[2]=p=>h("https://www.dcloud.io/"))},{default:s(()=>[m(d(t(l)("toCreate")),1)]),_:1})])]),_:1},8,["label"]),a(u,{label:t(l)("appName"),prop:"app_name"},{default:s(()=>[a(c,{modelValue:o.app_name,"onUpdate:modelValue":e[3]||(e[3]=p=>o.app_name=p),modelModifiers:{trim:!0},placeholder:"",class:"input-width",clearable:""},null,8,["modelValue"])]),_:1},8,["label"]),a(u,{label:t(l)("androidAppKey"),prop:"android_app_key"},{default:s(()=>[a(c,{modelValue:o.android_app_key,"onUpdate:modelValue":e[4]||(e[4]=p=>o.android_app_key=p),modelModifiers:{trim:!0},placeholder:"",class:"input-width",clearable:""},null,8,["modelValue"]),n("div",J,[m(d(t(l)("androidAppKeyTips"))+" ",1),n("span",{class:"text-primary cursor-pointer",onClick:e[5]||(e[5]=p=>h("https://nativesupport.dcloud.net.cn/AppDocs/usesdk/appkey.html"))},"查看详情")])]),_:1},8,["label"]),a(u,{label:t(l)("applicationId"),prop:"application_id"},{default:s(()=>[a(c,{modelValue:o.application_id,"onUpdate:modelValue":e[6]||(e[6]=p=>o.application_id=p),modelModifiers:{trim:!0},placeholder:"",class:"input-width",clearable:""},null,8,["modelValue"]),n("div",Q,d(t(l)("applicationIdTips")),1)]),_:1},8,["label"])]),_:1}),a(_,{class:"box-card !border-none mt-[15px]",shadow:"never"},{default:s(()=>[n("h3",W,d(t(l)("wechatAppInfo")),1),a(u,{label:t(l)("wechatAppid"),prop:"app_id"},{default:s(()=>[a(c,{modelValue:o.wechat_app_id,"onUpdate:modelValue":e[7]||(e[7]=p=>o.wechat_app_id=p),modelModifiers:{trim:!0},placeholder:t(l)("appidPlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"]),n("div",X,d(t(l)("wechatAppidTips")),1)]),_:1},8,["label"]),a(u,{label:t(l)("wechatAppsecret"),prop:"app_secret"},{default:s(()=>[a(c,{modelValue:o.wechat_app_secret,"onUpdate:modelValue":e[8]||(e[8]=p=>o.wechat_app_secret=p),modelModifiers:{trim:!0},placeholder:t(l)("appSecretPlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model","rules"])),[[E,r.value]]),n("div",Z,[n("div",ee,[a(w,{type:"primary",loading:r.value,onClick:e[9]||(e[9]=p=>x(f.value))},{default:s(()=>[m(d(t(l)("save")),1)]),_:1},8,["loading"])])])])}}});export{ce as default};
|
import{d as M,k as B,u as N,r as v,q as U,m as R,h as b,c as T,e as a,w as s,f as t,Y as D,v as $,a as n,t as d,s as l,i as m,b4 as L,a8 as P,L as F,E as K,M as O,N as S,a2 as j}from"./index-9c445bb6.js";/* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import{g as q,s as H}from"./app-de0accc3.js";const Y={class:"main-container"},z={class:"panel-title !text-sm"},G={class:"form-tip flex items-center"},J={class:"form-tip"},Q={class:"form-tip"},W={class:"panel-title !text-sm"},X={class:"form-tip"},Z={class:"fixed-footer-wrap"},ee={class:"fixed-footer"},ce=M({__name:"config",setup(ae){const V=B(),k=N(),g=V.meta.title,r=v(!0),o=U({uni_app_id:"",app_name:"",android_app_key:"",application_id:"",wechat_app_id:"",wechat_app_secret:""}),f=v(),y=R(()=>({}));q().then(i=>{Object.assign(o,i.data),r.value=!1});const x=async i=>{r.value||!i||await i.validate(async e=>{e&&(r.value=!0,H(o).then(()=>{r.value=!1}).catch(()=>{r.value=!1}))})},h=i=>{window.open(i)},A=()=>{k.push("/channel/app")};return(i,e)=>{const C=L,_=P,c=F,w=K,u=O,I=S,E=j;return b(),T("div",Y,[a(_,{class:"card !border-none",shadow:"never"},{default:s(()=>[a(C,{content:t(g),icon:i.ArrowLeft,onBack:e[0]||(e[0]=p=>A())},null,8,["content","icon"])]),_:1}),D((b(),$(I,{class:"page-form mt-[15px]",model:o,"label-width":"170px",ref_key:"formRef",ref:f,rules:t(y)},{default:s(()=>[a(_,{class:"box-card !border-none mt-[15px]",shadow:"never"},{default:s(()=>[n("h3",z,d(t(l)("appInfo")),1),a(u,{label:t(l)("uniAppId"),prop:"uni_app_id"},{default:s(()=>[a(c,{modelValue:o.uni_app_id,"onUpdate:modelValue":e[1]||(e[1]=p=>o.uni_app_id=p),modelModifiers:{trim:!0},placeholder:"",class:"input-width",clearable:""},null,8,["modelValue"]),n("div",G,[m(d(t(l)("uniAppIdTips"))+" ",1),a(w,{link:"",type:"primary",onClick:e[2]||(e[2]=p=>h("https://www.dcloud.io/"))},{default:s(()=>[m(d(t(l)("toCreate")),1)]),_:1})])]),_:1},8,["label"]),a(u,{label:t(l)("appName"),prop:"app_name"},{default:s(()=>[a(c,{modelValue:o.app_name,"onUpdate:modelValue":e[3]||(e[3]=p=>o.app_name=p),modelModifiers:{trim:!0},placeholder:"",class:"input-width",clearable:""},null,8,["modelValue"])]),_:1},8,["label"]),a(u,{label:t(l)("androidAppKey"),prop:"android_app_key"},{default:s(()=>[a(c,{modelValue:o.android_app_key,"onUpdate:modelValue":e[4]||(e[4]=p=>o.android_app_key=p),modelModifiers:{trim:!0},placeholder:"",class:"input-width",clearable:""},null,8,["modelValue"]),n("div",J,[m(d(t(l)("androidAppKeyTips"))+" ",1),n("span",{class:"text-primary cursor-pointer",onClick:e[5]||(e[5]=p=>h("https://nativesupport.dcloud.net.cn/AppDocs/usesdk/appkey.html"))},"查看详情")])]),_:1},8,["label"]),a(u,{label:t(l)("applicationId"),prop:"application_id"},{default:s(()=>[a(c,{modelValue:o.application_id,"onUpdate:modelValue":e[6]||(e[6]=p=>o.application_id=p),modelModifiers:{trim:!0},placeholder:"",class:"input-width",clearable:""},null,8,["modelValue"]),n("div",Q,d(t(l)("applicationIdTips")),1)]),_:1},8,["label"])]),_:1}),a(_,{class:"box-card !border-none mt-[15px]",shadow:"never"},{default:s(()=>[n("h3",W,d(t(l)("wechatAppInfo")),1),a(u,{label:t(l)("wechatAppid"),prop:"app_id"},{default:s(()=>[a(c,{modelValue:o.wechat_app_id,"onUpdate:modelValue":e[7]||(e[7]=p=>o.wechat_app_id=p),modelModifiers:{trim:!0},placeholder:t(l)("appidPlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"]),n("div",X,d(t(l)("wechatAppidTips")),1)]),_:1},8,["label"]),a(u,{label:t(l)("wechatAppsecret"),prop:"app_secret"},{default:s(()=>[a(c,{modelValue:o.wechat_app_secret,"onUpdate:modelValue":e[8]||(e[8]=p=>o.wechat_app_secret=p),modelModifiers:{trim:!0},placeholder:t(l)("appSecretPlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model","rules"])),[[E,r.value]]),n("div",Z,[n("div",ee,[a(w,{type:"primary",loading:r.value,onClick:e[9]||(e[9]=p=>x(f.value))},{default:s(()=>[m(d(t(l)("save")),1)]),_:1},8,["loading"])])])])}}});export{ce as default};
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
|||||||
import{d as f,k as g,u as v,r as y,q as b,h as k,c as T,e as a,w as r,f as t,b3 as E,a as e,i as o,t as s,s as n,b4 as R,a8 as O,E as B}from"./index-42af2821.js";/* empty css *//* empty css *//* empty css */import{g as C}from"./wechat-6fe57299.js";const L=""+new URL("wechat_1-0a26d3a6.png",import.meta.url).href,U=""+new URL("wechat_4-94a271d5.png",import.meta.url).href,j=""+new URL("wechat_2-0513f476.png",import.meta.url).href,q=""+new URL("wechat_3-0a96f3fe.png",import.meta.url).href,N={class:"main-container"},V={class:"flex"},D=e("div",{class:"min-w-[60px]"},[e("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"1")],-1),S={class:"flex items-center text-[14px]"},A=e("span",{class:"text-primary"},"URL / Token / EncondingAESKey",-1),H=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:L})],-1),K={class:"flex items-center text-[14px] mt-[20px]"},P=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:U})],-1),W={class:"flex mt-[40px]"},$=e("div",{class:"min-w-[60px]"},[e("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"2")],-1),z={class:"flex items-center text-[14px]"},F=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:j})],-1),G={class:"flex mt-[40px]"},I=e("div",{class:"min-w-[60px]"},[e("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"3")],-1),J={class:"flex items-center text-[14px]"},M={class:"text-primary"},Q=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:q})],-1),ae=f({__name:"course",setup(X){const l=g().meta.title,_=v(),d=()=>{_.push("/channel/wechat")},m=y(!0),x=b({wechat_name:"",wechat_original:"",app_id:"",app_secret:"",qr_code:"",token:"",encoding_aes_key:"",encryption_type:"not_encrypt"});C().then(i=>{Object.assign(x,i.data),m.value=!1});const h=()=>{window.open("https://mp.weixin.qq.com/","_blank")};return(i,c)=>{const w=R,p=O,u=B;return k(),T("div",N,[a(p,{class:"card !border-none",shadow:"never"},{default:r(()=>[a(w,{content:t(l),icon:t(E),onBack:c[0]||(c[0]=Z=>d())},null,8,["content","icon"])]),_:1}),a(p,{class:"box-card mt-[15px] pt-[20px] !border-none",shadow:"never"},{default:r(()=>[e("div",V,[D,e("div",null,[e("p",S,[o(s(t(n)("writingTipsOne1"))+"--",1),a(u,{link:"",type:"primary",onClick:h},{default:r(()=>[o(s(t(n)("writingTipsOne2")),1)]),_:1}),o(", "+s(t(n)("writingTipsOne3")),1),A,o(s(t(n)("writingTipsOne4")),1)]),H,e("p",K,s(t(n)("writingTipsOne5")),1),P])]),e("div",W,[$,e("div",null,[e("p",z,s(t(n)("writingTipsTwo1")),1),F])]),e("div",G,[I,e("div",null,[e("p",J,[o(s(t(n)("writingTipsThree1")),1),e("span",M,s(t(n)("writingTipsThree2")),1)]),Q])])]),_:1})])}}});export{ae as default};
|
import{d as f,k as g,u as v,r as y,q as b,h as k,c as T,e as a,w as r,f as t,b3 as E,a as e,i as o,t as s,s as n,b4 as R,a8 as O,E as B}from"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css */import{g as C}from"./wechat-7dace022.js";const L=""+new URL("wechat_1-0a26d3a6.png",import.meta.url).href,U=""+new URL("wechat_4-94a271d5.png",import.meta.url).href,j=""+new URL("wechat_2-0513f476.png",import.meta.url).href,q=""+new URL("wechat_3-0a96f3fe.png",import.meta.url).href,N={class:"main-container"},V={class:"flex"},D=e("div",{class:"min-w-[60px]"},[e("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"1")],-1),S={class:"flex items-center text-[14px]"},A=e("span",{class:"text-primary"},"URL / Token / EncondingAESKey",-1),H=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:L})],-1),K={class:"flex items-center text-[14px] mt-[20px]"},P=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:U})],-1),W={class:"flex mt-[40px]"},$=e("div",{class:"min-w-[60px]"},[e("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"2")],-1),z={class:"flex items-center text-[14px]"},F=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:j})],-1),G={class:"flex mt-[40px]"},I=e("div",{class:"min-w-[60px]"},[e("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"3")],-1),J={class:"flex items-center text-[14px]"},M={class:"text-primary"},Q=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:q})],-1),ae=f({__name:"course",setup(X){const l=g().meta.title,_=v(),d=()=>{_.push("/channel/wechat")},m=y(!0),x=b({wechat_name:"",wechat_original:"",app_id:"",app_secret:"",qr_code:"",token:"",encoding_aes_key:"",encryption_type:"not_encrypt"});C().then(i=>{Object.assign(x,i.data),m.value=!1});const h=()=>{window.open("https://mp.weixin.qq.com/","_blank")};return(i,c)=>{const w=R,p=O,u=B;return k(),T("div",N,[a(p,{class:"card !border-none",shadow:"never"},{default:r(()=>[a(w,{content:t(l),icon:t(E),onBack:c[0]||(c[0]=Z=>d())},null,8,["content","icon"])]),_:1}),a(p,{class:"box-card mt-[15px] pt-[20px] !border-none",shadow:"never"},{default:r(()=>[e("div",V,[D,e("div",null,[e("p",S,[o(s(t(n)("writingTipsOne1"))+"--",1),a(u,{link:"",type:"primary",onClick:h},{default:r(()=>[o(s(t(n)("writingTipsOne2")),1)]),_:1}),o(", "+s(t(n)("writingTipsOne3")),1),A,o(s(t(n)("writingTipsOne4")),1)]),H,e("p",K,s(t(n)("writingTipsOne5")),1),P])]),e("div",W,[$,e("div",null,[e("p",z,s(t(n)("writingTipsTwo1")),1),F])]),e("div",G,[I,e("div",null,[e("p",J,[o(s(t(n)("writingTipsThree1")),1),e("span",M,s(t(n)("writingTipsThree2")),1)]),Q])])]),_:1})])}}});export{ae as default};
|
||||||
@ -1 +1 @@
|
|||||||
import{d as u,k as h,u as f,h as b,c as g,e as r,w as i,f as t,b3 as v,a as e,i as o,t as s,s as n,b4 as y,a8 as k,E as T}from"./index-42af2821.js";/* empty css *//* empty css *//* empty css */const E=""+new URL("weapp_1-7017a047.png",import.meta.url).href,R=""+new URL("weapp_2-8fac7fa5.png",import.meta.url).href,B=""+new URL("weapp_3-07a2249e.png",import.meta.url).href,L=""+new URL("weapp_4-d837a9b1.png",import.meta.url).href,U={class:"main-container"},j={class:"flex"},C=e("div",{class:"min-w-[60px]"},[e("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"1")],-1),N={class:"flex items-center text-[14px]"},O=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:E})],-1),V={class:"flex mt-[40px]"},q=e("div",{class:"min-w-[60px]"},[e("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"2")],-1),F={class:"flex items-center text-[14px]"},S=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:R})],-1),A={class:"flex mt-[40px]"},D=e("div",{class:"min-w-[60px]"},[e("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"3")],-1),H={class:"flex items-center text-[14px]"},K={class:"text-primary"},P=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:B})],-1),$={class:"flex mt-[40px]"},z=e("div",{class:"min-w-[60px]"},[e("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"4")],-1),G={class:"flex items-center text-[14px]"},I=e("span",{class:"text-primary"},"URL / Token / EncondingAESKey",-1),J=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:L})],-1),te=u({__name:"course",setup(M){const p=h(),l=f(),d=p.meta.title,_=()=>{l.push("/channel/weapp")},m=()=>{window.open("https://mp.weixin.qq.com/","_blank")};return(Q,a)=>{const x=y,c=k,w=T;return b(),g("div",U,[r(c,{class:"card !border-none",shadow:"never"},{default:i(()=>[r(x,{content:t(d),icon:t(v),onBack:a[0]||(a[0]=W=>_())},null,8,["content","icon"])]),_:1}),r(c,{class:"box-card mt-[15px] !border-none",shadow:"never"},{default:i(()=>[e("div",j,[C,e("div",null,[e("p",N,[o(s(t(n)("writingTipsOne1")),1),r(w,{link:"",type:"primary",onClick:m},{default:i(()=>[o(s(t(n)("writingTipsOne2")),1)]),_:1}),o(","+s(t(n)("writingTipsOne3")),1)]),O])]),e("div",V,[q,e("div",null,[e("p",F,s(t(n)("writingTipsTwo1")),1),S])]),e("div",A,[D,e("div",null,[e("p",H,[o(s(t(n)("writingTipsThree1")),1),e("span",K,s(t(n)("writingTipsThree2")),1)]),P])]),e("div",$,[z,e("div",null,[e("p",G,[o(s(t(n)("writingTipsFour1")),1),I,o(s(t(n)("writingTipsFour2")),1)]),J])])]),_:1})])}}});export{te as default};
|
import{d as u,k as h,u as f,h as b,c as g,e as r,w as i,f as t,b3 as v,a as e,i as o,t as s,s as n,b4 as y,a8 as k,E as T}from"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css */const E=""+new URL("weapp_1-7017a047.png",import.meta.url).href,R=""+new URL("weapp_2-8fac7fa5.png",import.meta.url).href,B=""+new URL("weapp_3-07a2249e.png",import.meta.url).href,L=""+new URL("weapp_4-d837a9b1.png",import.meta.url).href,U={class:"main-container"},j={class:"flex"},C=e("div",{class:"min-w-[60px]"},[e("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"1")],-1),N={class:"flex items-center text-[14px]"},O=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:E})],-1),V={class:"flex mt-[40px]"},q=e("div",{class:"min-w-[60px]"},[e("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"2")],-1),F={class:"flex items-center text-[14px]"},S=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:R})],-1),A={class:"flex mt-[40px]"},D=e("div",{class:"min-w-[60px]"},[e("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"3")],-1),H={class:"flex items-center text-[14px]"},K={class:"text-primary"},P=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:B})],-1),$={class:"flex mt-[40px]"},z=e("div",{class:"min-w-[60px]"},[e("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"4")],-1),G={class:"flex items-center text-[14px]"},I=e("span",{class:"text-primary"},"URL / Token / EncondingAESKey",-1),J=e("div",{class:"w-[100%] mt-[10px]"},[e("img",{class:"w-[100%]",src:L})],-1),te=u({__name:"course",setup(M){const p=h(),l=f(),d=p.meta.title,_=()=>{l.push("/channel/weapp")},m=()=>{window.open("https://mp.weixin.qq.com/","_blank")};return(Q,a)=>{const x=y,c=k,w=T;return b(),g("div",U,[r(c,{class:"card !border-none",shadow:"never"},{default:i(()=>[r(x,{content:t(d),icon:t(v),onBack:a[0]||(a[0]=W=>_())},null,8,["content","icon"])]),_:1}),r(c,{class:"box-card mt-[15px] !border-none",shadow:"never"},{default:i(()=>[e("div",j,[C,e("div",null,[e("p",N,[o(s(t(n)("writingTipsOne1")),1),r(w,{link:"",type:"primary",onClick:m},{default:i(()=>[o(s(t(n)("writingTipsOne2")),1)]),_:1}),o(","+s(t(n)("writingTipsOne3")),1)]),O])]),e("div",V,[q,e("div",null,[e("p",F,s(t(n)("writingTipsTwo1")),1),S])]),e("div",A,[D,e("div",null,[e("p",H,[o(s(t(n)("writingTipsThree1")),1),e("span",K,s(t(n)("writingTipsThree2")),1)]),P])]),e("div",$,[z,e("div",null,[e("p",G,[o(s(t(n)("writingTipsFour1")),1),I,o(s(t(n)("writingTipsFour2")),1)]),J])])]),_:1})])}}});export{te as default};
|
||||||
@ -1 +1 @@
|
|||||||
import{d as v,k as b,u as R,r as k,q as C,h as T,c as L,e as t,w as a,f as e,b3 as U,a as s,i as r,t as o,s as i,b4 as j,a8 as E,E as B,b0 as N,b1 as O}from"./index-42af2821.js";/* empty css *//* empty css *//* empty css *//* empty css */import{g as V}from"./wechat-6fe57299.js";const q=""+new URL("alipay1-029c00a2.png",import.meta.url).href,D=""+new URL("alipay2-f74219b9.png",import.meta.url).href,H=""+new URL("alipay3-0895ce6e.png",import.meta.url).href,P=""+new URL("alipay4-92fef352.png",import.meta.url).href,S=""+new URL("alipay4_1-ad9b08e3.jpg",import.meta.url).href,W=""+new URL("alipay4_2-cbaa820b.jpg",import.meta.url).href,$=""+new URL("alipay4_3-4a213289.jpg",import.meta.url).href,z=""+new URL("alipay4_4-7924cbdd.jpg",import.meta.url).href,A=""+new URL("alipay5-6dba1989.png",import.meta.url).href,F=""+new URL("alipay6-f1e18995.png",import.meta.url).href,G=""+new URL("alipay7-c805d7c0.png",import.meta.url).href,I=""+new URL("alipay8-3097d150.png",import.meta.url).href,J={class:"main-container"},K={class:"flex"},M=s("div",{class:"min-w-[60px]"},[s("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"1")],-1),Q={class:"flex items-center text-[14px]"},X=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:q})],-1),Y={class:"flex items-center text-[14px] mt-[20px]"},Z=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:D})],-1),ss=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:H})],-1),es={class:"flex mt-[40px]"},ts=s("div",{class:"min-w-[60px]"},[s("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"2")],-1),as={class:"flex items-center text-[14px]"},os={class:"w-[100%] mt-[10px] flex flex-wrap"},is=s("div",{class:"w-[100%]"},[s("img",{class:"w-[100%]",src:P})],-1),ns=s("div",{class:"w-[100%]"},[s("img",{class:"w-[100%]",src:S})],-1),rs=s("div",{class:"w-[100%]"},[s("img",{class:"w-[100%]",src:W})],-1),cs=s("div",{class:"w-[100%]"},[s("img",{class:"w-[100%]",src:$})],-1),ps=s("div",{class:"w-[100%]"},[s("img",{class:"w-[100%]",src:z})],-1),ls={class:"flex mt-[40px]"},_s=s("div",{class:"min-w-[60px]"},[s("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"3")],-1),ms={class:"flex items-center text-[14px]"},ds=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:A})],-1),xs=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:F})],-1),us={class:"flex items-center text-[14px] mt-[20px]"},ws=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:G})],-1),hs={class:"flex items-center text-[14px] mt-[20px]"},fs=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:I})],-1),Ls=v({__name:"course",setup(gs){const _=b(),m=R(),d=()=>{m.push("/channel/aliapp")},x=_.meta.title,u=k(!0),w=C({wechat_name:"",wechat_original:"",app_id:"",app_secret:"",qr_code:"",token:"",encoding_aes_key:"",encryption_type:"not_encrypt"});V().then(c=>{Object.assign(w,c.data),u.value=!1});const h=()=>{window.open("https://open.alipay.com/develop/manage","_blank")};return(c,p)=>{const f=j,l=E,g=B,n=N,y=O;return T(),L("div",J,[t(l,{class:"card !border-none",shadow:"never"},{default:a(()=>[t(f,{content:e(x),icon:e(U),onBack:p[0]||(p[0]=ys=>d())},null,8,["content","icon"])]),_:1}),t(l,{class:"box-card mt-[15px] !border-none",shadow:"never"},{default:a(()=>[s("div",K,[M,s("div",null,[s("p",Q,[r(o(e(i)("alipayCourseTipsOne1"))+"--",1),t(g,{link:"",type:"primary",onClick:h},{default:a(()=>[r(o(e(i)("alipayCourseTipsOne2")),1)]),_:1}),r(", "+o(e(i)("alipayCourseTipsOne3")),1)]),X,s("p",Y,o(e(i)("alipayCourseTipsTwo1")),1),Z,ss])]),s("div",es,[ts,s("div",null,[s("p",as,o(e(i)("alipayCourseTipsTwo2")),1),s("div",os,[is,s("div",null,[t(y,{gutter:20},{default:a(()=>[t(n,{span:6},{default:a(()=>[ns]),_:1}),t(n,{span:6},{default:a(()=>[rs]),_:1}),t(n,{span:6},{default:a(()=>[cs]),_:1}),t(n,{span:6},{default:a(()=>[ps]),_:1})]),_:1})])])])]),s("div",ls,[_s,s("div",null,[s("p",ms,o(e(i)("alipayCourseTipsThree1")),1),ds,xs,s("p",us,o(e(i)("alipayCourseTipsThree2")),1),ws,s("p",hs,o(e(i)("alipayCourseTipsThree3")),1),fs])])]),_:1})])}}});export{Ls as default};
|
import{d as v,k as b,u as R,r as k,q as C,h as T,c as L,e as t,w as a,f as e,b3 as U,a as s,i as r,t as o,s as i,b4 as j,a8 as E,E as B,b0 as N,b1 as O}from"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css *//* empty css */import{g as V}from"./wechat-7dace022.js";const q=""+new URL("alipay1-029c00a2.png",import.meta.url).href,D=""+new URL("alipay2-f74219b9.png",import.meta.url).href,H=""+new URL("alipay3-0895ce6e.png",import.meta.url).href,P=""+new URL("alipay4-92fef352.png",import.meta.url).href,S=""+new URL("alipay4_1-ad9b08e3.jpg",import.meta.url).href,W=""+new URL("alipay4_2-cbaa820b.jpg",import.meta.url).href,$=""+new URL("alipay4_3-4a213289.jpg",import.meta.url).href,z=""+new URL("alipay4_4-7924cbdd.jpg",import.meta.url).href,A=""+new URL("alipay5-6dba1989.png",import.meta.url).href,F=""+new URL("alipay6-f1e18995.png",import.meta.url).href,G=""+new URL("alipay7-c805d7c0.png",import.meta.url).href,I=""+new URL("alipay8-3097d150.png",import.meta.url).href,J={class:"main-container"},K={class:"flex"},M=s("div",{class:"min-w-[60px]"},[s("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"1")],-1),Q={class:"flex items-center text-[14px]"},X=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:q})],-1),Y={class:"flex items-center text-[14px] mt-[20px]"},Z=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:D})],-1),ss=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:H})],-1),es={class:"flex mt-[40px]"},ts=s("div",{class:"min-w-[60px]"},[s("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"2")],-1),as={class:"flex items-center text-[14px]"},os={class:"w-[100%] mt-[10px] flex flex-wrap"},is=s("div",{class:"w-[100%]"},[s("img",{class:"w-[100%]",src:P})],-1),ns=s("div",{class:"w-[100%]"},[s("img",{class:"w-[100%]",src:S})],-1),rs=s("div",{class:"w-[100%]"},[s("img",{class:"w-[100%]",src:W})],-1),cs=s("div",{class:"w-[100%]"},[s("img",{class:"w-[100%]",src:$})],-1),ps=s("div",{class:"w-[100%]"},[s("img",{class:"w-[100%]",src:z})],-1),ls={class:"flex mt-[40px]"},_s=s("div",{class:"min-w-[60px]"},[s("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"3")],-1),ms={class:"flex items-center text-[14px]"},ds=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:A})],-1),xs=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:F})],-1),us={class:"flex items-center text-[14px] mt-[20px]"},ws=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:G})],-1),hs={class:"flex items-center text-[14px] mt-[20px]"},fs=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:I})],-1),Ls=v({__name:"course",setup(gs){const _=b(),m=R(),d=()=>{m.push("/channel/aliapp")},x=_.meta.title,u=k(!0),w=C({wechat_name:"",wechat_original:"",app_id:"",app_secret:"",qr_code:"",token:"",encoding_aes_key:"",encryption_type:"not_encrypt"});V().then(c=>{Object.assign(w,c.data),u.value=!1});const h=()=>{window.open("https://open.alipay.com/develop/manage","_blank")};return(c,p)=>{const f=j,l=E,g=B,n=N,y=O;return T(),L("div",J,[t(l,{class:"card !border-none",shadow:"never"},{default:a(()=>[t(f,{content:e(x),icon:e(U),onBack:p[0]||(p[0]=ys=>d())},null,8,["content","icon"])]),_:1}),t(l,{class:"box-card mt-[15px] !border-none",shadow:"never"},{default:a(()=>[s("div",K,[M,s("div",null,[s("p",Q,[r(o(e(i)("alipayCourseTipsOne1"))+"--",1),t(g,{link:"",type:"primary",onClick:h},{default:a(()=>[r(o(e(i)("alipayCourseTipsOne2")),1)]),_:1}),r(", "+o(e(i)("alipayCourseTipsOne3")),1)]),X,s("p",Y,o(e(i)("alipayCourseTipsTwo1")),1),Z,ss])]),s("div",es,[ts,s("div",null,[s("p",as,o(e(i)("alipayCourseTipsTwo2")),1),s("div",os,[is,s("div",null,[t(y,{gutter:20},{default:a(()=>[t(n,{span:6},{default:a(()=>[ns]),_:1}),t(n,{span:6},{default:a(()=>[rs]),_:1}),t(n,{span:6},{default:a(()=>[cs]),_:1}),t(n,{span:6},{default:a(()=>[ps]),_:1})]),_:1})])])])]),s("div",ls,[_s,s("div",null,[s("p",ms,o(e(i)("alipayCourseTipsThree1")),1),ds,xs,s("p",us,o(e(i)("alipayCourseTipsThree2")),1),ws,s("p",hs,o(e(i)("alipayCourseTipsThree3")),1),fs])])]),_:1})])}}});export{Ls as default};
|
||||||
@ -1 +1 @@
|
|||||||
import{_ as o}from"./create-site-limit.vue_vue_type_script_setup_true_lang-d909e2ca.js";import"./index-42af2821.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./user-589065b7.js";export{o as default};
|
import{_ as o}from"./create-site-limit.vue_vue_type_script_setup_true_lang-b409ec1a.js";import"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./user-9f070b23.js";export{o as default};
|
||||||
@ -1 +1 @@
|
|||||||
import{d as B,r as f,m as F,s as o,Q as P,h as d,v,w as a,a as x,e as s,i as g,t as p,f as r,Y as q,c as C,F as I,V as M,C as R,a3 as O,a0 as T,M as Z,L as $,N as j,E as Q,U as Y,a2 as z}from"./index-42af2821.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{e as A,a as H,b as J}from"./user-589065b7.js";const K={key:0,class:"text-[12px] text-[#a9a9a9] leading-normal mt-[5px]"},W={class:"dialog-footer"},ce=B({__name:"create-site-limit",props:{siteGroup:{type:Object,default:()=>({})},uid:{type:Number,default:0}},emits:["complete"],setup(w,{expose:y,emit:L}){const c=w,u=f(!1),b=f(null),t=f({id:0,uid:c.uid,group_id:"",num:1,month:1}),m=f(!1),S=F(()=>({group_id:[{required:!0,message:o("siteGroupPlaceholder"),trigger:"blur"}],num:[{required:!0,message:o("numPlaceholder"),trigger:"blur"},{validator:(i,e,n)=>{e<=0&&n(o("numCannotLtZero")),n()}}],month:[{required:!0,message:o("monthPlaceholder"),trigger:"blur"},{validator:(i,e,n)=>{e<=0&&n(o("monthCannotLtZero")),n()}}]})),E=async i=>{m.value||!i||await i.validate(async e=>{e&&(m.value=!0,(t.value.id?A:H)(t.value).then(()=>{m.value=!1,u.value=!1,L("complete")}).catch(()=>{m.value=!1}))})},N=(i=0)=>{i?J(i).then(({data:e})=>{t.value=e,u.value=!0}):u.value=!0};return P(()=>u.value,()=>{u.value||(t.value={id:0,uid:c.uid,group_id:"",num:1,month:1})}),y({setFormData:N,loading:m}),(i,e)=>{const n=O,U=T,_=Z,V=$,D=j,h=Q,G=Y,k=z;return d(),v(G,{modelValue:u.value,"onUpdate:modelValue":e[5]||(e[5]=l=>u.value=l),title:r(o)("userCreateSiteLimit"),width:"700px","destroy-on-close":!0},{footer:a(()=>[x("span",W,[s(h,{onClick:e[3]||(e[3]=l=>u.value=!1)},{default:a(()=>[g(p(r(o)("cancel")),1)]),_:1}),s(h,{type:"primary",loading:m.value,onClick:e[4]||(e[4]=l=>E(b.value))},{default:a(()=>[g(p(r(o)("confirm")),1)]),_:1},8,["loading"])])]),default:a(()=>[q((d(),v(D,{model:t.value,"label-width":"130px",ref_key:"formRef",ref:b,rules:r(S),class:"page-form",autocomplete:"off"},{default:a(()=>[s(_,{label:r(o)("siteGroup"),prop:"group_id"},{default:a(()=>[s(U,{modelValue:t.value.group_id,"onUpdate:modelValue":e[0]||(e[0]=l=>t.value.group_id=l),placeholder:r(o)("siteGroupPlaceholder"),disabled:t.value.id},{default:a(()=>[(d(!0),C(I,null,M(c.siteGroup,l=>(d(),v(n,{label:l.group_name,value:l.group_id},null,8,["label","value"]))),256))]),_:1},8,["modelValue","placeholder","disabled"])]),_:1},8,["label"]),s(_,{label:r(o)("createSiteNum"),prop:"num"},{default:a(()=>[x("div",null,[s(V,{modelValue:t.value.num,"onUpdate:modelValue":e[1]||(e[1]=l=>t.value.num=l),modelModifiers:{number:!0,trim:!0},class:"!w-[150px]"},null,8,["modelValue"]),t.value.group_id?(d(),C("p",K,p(r(o)("createdSiteNum"))+":"+p(c.siteGroup[t.value.group_id].site_num),1)):R("",!0)])]),_:1},8,["label"]),s(_,{label:r(o)("createSiteTimeLimit"),prop:"month"},{default:a(()=>[s(V,{modelValue:t.value.month,"onUpdate:modelValue":e[2]||(e[2]=l=>t.value.month=l),modelModifiers:{number:!0,trim:!0},class:"!w-[150px]"},{append:a(()=>[g(p(r(o)("month")),1)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[k,m.value]])]),_:1},8,["modelValue","title"])}}});export{ce as _};
|
import{d as B,r as f,m as F,s as o,Q as P,h as d,v,w as a,a as x,e as s,i as g,t as p,f as r,Y as q,c as C,F as I,V as M,C as R,a3 as O,a0 as T,M as Z,L as $,N as j,E as Q,U as Y,a2 as z}from"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{e as A,a as H,b as J}from"./user-9f070b23.js";const K={key:0,class:"text-[12px] text-[#a9a9a9] leading-normal mt-[5px]"},W={class:"dialog-footer"},ce=B({__name:"create-site-limit",props:{siteGroup:{type:Object,default:()=>({})},uid:{type:Number,default:0}},emits:["complete"],setup(w,{expose:y,emit:L}){const c=w,u=f(!1),b=f(null),t=f({id:0,uid:c.uid,group_id:"",num:1,month:1}),m=f(!1),S=F(()=>({group_id:[{required:!0,message:o("siteGroupPlaceholder"),trigger:"blur"}],num:[{required:!0,message:o("numPlaceholder"),trigger:"blur"},{validator:(i,e,n)=>{e<=0&&n(o("numCannotLtZero")),n()}}],month:[{required:!0,message:o("monthPlaceholder"),trigger:"blur"},{validator:(i,e,n)=>{e<=0&&n(o("monthCannotLtZero")),n()}}]})),E=async i=>{m.value||!i||await i.validate(async e=>{e&&(m.value=!0,(t.value.id?A:H)(t.value).then(()=>{m.value=!1,u.value=!1,L("complete")}).catch(()=>{m.value=!1}))})},N=(i=0)=>{i?J(i).then(({data:e})=>{t.value=e,u.value=!0}):u.value=!0};return P(()=>u.value,()=>{u.value||(t.value={id:0,uid:c.uid,group_id:"",num:1,month:1})}),y({setFormData:N,loading:m}),(i,e)=>{const n=O,U=T,_=Z,V=$,D=j,h=Q,G=Y,k=z;return d(),v(G,{modelValue:u.value,"onUpdate:modelValue":e[5]||(e[5]=l=>u.value=l),title:r(o)("userCreateSiteLimit"),width:"700px","destroy-on-close":!0},{footer:a(()=>[x("span",W,[s(h,{onClick:e[3]||(e[3]=l=>u.value=!1)},{default:a(()=>[g(p(r(o)("cancel")),1)]),_:1}),s(h,{type:"primary",loading:m.value,onClick:e[4]||(e[4]=l=>E(b.value))},{default:a(()=>[g(p(r(o)("confirm")),1)]),_:1},8,["loading"])])]),default:a(()=>[q((d(),v(D,{model:t.value,"label-width":"130px",ref_key:"formRef",ref:b,rules:r(S),class:"page-form",autocomplete:"off"},{default:a(()=>[s(_,{label:r(o)("siteGroup"),prop:"group_id"},{default:a(()=>[s(U,{modelValue:t.value.group_id,"onUpdate:modelValue":e[0]||(e[0]=l=>t.value.group_id=l),placeholder:r(o)("siteGroupPlaceholder"),disabled:t.value.id},{default:a(()=>[(d(!0),C(I,null,M(c.siteGroup,l=>(d(),v(n,{label:l.group_name,value:l.group_id},null,8,["label","value"]))),256))]),_:1},8,["modelValue","placeholder","disabled"])]),_:1},8,["label"]),s(_,{label:r(o)("createSiteNum"),prop:"num"},{default:a(()=>[x("div",null,[s(V,{modelValue:t.value.num,"onUpdate:modelValue":e[1]||(e[1]=l=>t.value.num=l),modelModifiers:{number:!0,trim:!0},class:"!w-[150px]"},null,8,["modelValue"]),t.value.group_id?(d(),C("p",K,p(r(o)("createdSiteNum"))+":"+p(c.siteGroup[t.value.group_id].site_num),1)):R("",!0)])]),_:1},8,["label"]),s(_,{label:r(o)("createSiteTimeLimit"),prop:"month"},{default:a(()=>[s(V,{modelValue:t.value.month,"onUpdate:modelValue":e[2]||(e[2]=l=>t.value.month=l),modelModifiers:{number:!0,trim:!0},class:"!w-[150px]"},{append:a(()=>[g(p(r(o)("month")),1)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[k,m.value]])]),_:1},8,["modelValue","title"])}}});export{ce as _};
|
||||||
@ -1 +1 @@
|
|||||||
import{_ as o}from"./cron-info.vue_vue_type_script_setup_true_lang-15a37efb.js";import"./index-42af2821.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";export{o as default};
|
import{_ as o}from"./cron-info.vue_vue_type_script_setup_true_lang-9e408278.js";import"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";export{o as default};
|
||||||
@ -1 +1 @@
|
|||||||
import{d as E,r as u,q as N,m as V,h as r,v as h,w as e,a as n,e as o,i as B,t as l,f as a,s,Y as F,c as b,M as T,N as C,E as O,U as R,a2 as j}from"./index-42af2821.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";const I={class:"input-width"},S={class:"input-width"},U={key:0,class:"input-width"},q={key:1,class:"input-width"},J={class:"input-width"},L={class:"input-width"},M={class:"input-width"},Y={class:"input-width"},$={class:"input-width"},z={class:"input-width"},A={class:"input-width"},G={class:"dialog-footer"},at=E({__name:"cron-info",setup(H,{expose:v}){const c=u(!1),m=u(!0),p={count:0,create_time:"",crond_length:"",crond_type:"",crond_type_name:"",data:"",delete_time:"",last_time:"",next_time:"",status_desc:"",title:"",type:"",type_name:"",update_time:""},t=N({...p}),y=u(),w=V(()=>({}));return v({showDialog:c,setFormData:async(_=null)=>{m.value=!0,Object.assign(t,p),_&&Object.keys(t).forEach(d=>{_[d]!=null&&(t[d]=_[d])}),m.value=!1}}),(_,d)=>{const i=T,g=C,x=O,D=R,k=j;return r(),h(D,{modelValue:c.value,"onUpdate:modelValue":d[1]||(d[1]=f=>c.value=f),title:a(s)("cronInfo"),width:"550px","destroy-on-close":!0},{footer:e(()=>[n("span",G,[o(x,{type:"primary",onClick:d[0]||(d[0]=f=>c.value=!1)},{default:e(()=>[B(l(a(s)("confirm")),1)]),_:1})])]),default:e(()=>[F((r(),h(g,{model:t,"label-width":"110px",ref_key:"formRef",ref:y,rules:a(w),class:"page-form"},{default:e(()=>[o(i,{label:a(s)("title")},{default:e(()=>[n("div",I,l(t.title),1)]),_:1},8,["label"]),o(i,{label:a(s)("typeName")},{default:e(()=>[n("div",S,l(t.type_name),1)]),_:1},8,["label"]),o(i,{label:a(s)("crondType")},{default:e(()=>[t.type=="crond"?(r(),b("div",U,l(t.crond_length)+" "+l(t.crond_type_name),1)):(r(),b("div",q,l(a(s)("cron")),1))]),_:1},8,["label"]),o(i,{label:a(s)("count")},{default:e(()=>[n("div",J,l(t.count),1)]),_:1},8,["label"]),o(i,{label:a(s)("task")},{default:e(()=>[n("div",L,l(t.task),1)]),_:1},8,["label"]),o(i,{label:a(s)("data")},{default:e(()=>[n("div",M,l(JSON.stringify(t.data)),1)]),_:1},8,["label"]),o(i,{label:a(s)("statusDesc")},{default:e(()=>[n("div",Y,l(t.status_desc),1)]),_:1},8,["label"]),o(i,{label:a(s)("lastTime")},{default:e(()=>[n("div",$,l(t.last_time),1)]),_:1},8,["label"]),o(i,{label:a(s)("nextTime")},{default:e(()=>[n("div",z,l(t.next_time),1)]),_:1},8,["label"]),o(i,{label:a(s)("createTime")},{default:e(()=>[n("div",A,l(t.create_time),1)]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[k,m.value]])]),_:1},8,["modelValue","title"])}}});export{at as _};
|
import{d as E,r as u,q as N,m as V,h as r,v as h,w as e,a as n,e as o,i as B,t as l,f as a,s,Y as F,c as b,M as T,N as C,E as O,U as R,a2 as j}from"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";const I={class:"input-width"},S={class:"input-width"},U={key:0,class:"input-width"},q={key:1,class:"input-width"},J={class:"input-width"},L={class:"input-width"},M={class:"input-width"},Y={class:"input-width"},$={class:"input-width"},z={class:"input-width"},A={class:"input-width"},G={class:"dialog-footer"},at=E({__name:"cron-info",setup(H,{expose:v}){const c=u(!1),m=u(!0),p={count:0,create_time:"",crond_length:"",crond_type:"",crond_type_name:"",data:"",delete_time:"",last_time:"",next_time:"",status_desc:"",title:"",type:"",type_name:"",update_time:""},t=N({...p}),y=u(),w=V(()=>({}));return v({showDialog:c,setFormData:async(_=null)=>{m.value=!0,Object.assign(t,p),_&&Object.keys(t).forEach(d=>{_[d]!=null&&(t[d]=_[d])}),m.value=!1}}),(_,d)=>{const i=T,g=C,x=O,D=R,k=j;return r(),h(D,{modelValue:c.value,"onUpdate:modelValue":d[1]||(d[1]=f=>c.value=f),title:a(s)("cronInfo"),width:"550px","destroy-on-close":!0},{footer:e(()=>[n("span",G,[o(x,{type:"primary",onClick:d[0]||(d[0]=f=>c.value=!1)},{default:e(()=>[B(l(a(s)("confirm")),1)]),_:1})])]),default:e(()=>[F((r(),h(g,{model:t,"label-width":"110px",ref_key:"formRef",ref:y,rules:a(w),class:"page-form"},{default:e(()=>[o(i,{label:a(s)("title")},{default:e(()=>[n("div",I,l(t.title),1)]),_:1},8,["label"]),o(i,{label:a(s)("typeName")},{default:e(()=>[n("div",S,l(t.type_name),1)]),_:1},8,["label"]),o(i,{label:a(s)("crondType")},{default:e(()=>[t.type=="crond"?(r(),b("div",U,l(t.crond_length)+" "+l(t.crond_type_name),1)):(r(),b("div",q,l(a(s)("cron")),1))]),_:1},8,["label"]),o(i,{label:a(s)("count")},{default:e(()=>[n("div",J,l(t.count),1)]),_:1},8,["label"]),o(i,{label:a(s)("task")},{default:e(()=>[n("div",L,l(t.task),1)]),_:1},8,["label"]),o(i,{label:a(s)("data")},{default:e(()=>[n("div",M,l(JSON.stringify(t.data)),1)]),_:1},8,["label"]),o(i,{label:a(s)("statusDesc")},{default:e(()=>[n("div",Y,l(t.status_desc),1)]),_:1},8,["label"]),o(i,{label:a(s)("lastTime")},{default:e(()=>[n("div",$,l(t.last_time),1)]),_:1},8,["label"]),o(i,{label:a(s)("nextTime")},{default:e(()=>[n("div",z,l(t.next_time),1)]),_:1},8,["label"]),o(i,{label:a(s)("createTime")},{default:e(()=>[n("div",A,l(t.create_time),1)]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[k,m.value]])]),_:1},8,["modelValue","title"])}}});export{at as _};
|
||||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
|||||||
import{d as _,m as d,B as r,h as a,c as n,F as p,V as u,v as f,f as s,x as g,K as v}from"./index-42af2821.js";/* empty css *//* empty css */const h=_({__name:"detail-form-image",props:{data:{type:Object,default:()=>({})}},setup(i){const e=i,o=d(()=>e.data.handle_field_value.map(t=>r(t)));return(t,x)=>{const c=v;return a(),n("div",null,[(a(!0),n(p,null,u(e.data.handle_field_value,(m,l)=>(a(),f(c,{src:s(r)(m),class:g(["w-[70px] h-[70px]",{"mr-[5px]":l+1<e.data.handle_field_value.length}]),fit:"contain","preview-src-list":s(o),"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"initial-index":l,"hide-on-click-modal":!0},null,8,["src","class","preview-src-list","zoom-rate","min-scale","initial-index"]))),256))])}}}),B=Object.freeze(Object.defineProperty({__proto__:null,default:h},Symbol.toStringTag,{value:"Module"}));export{B as _};
|
import{d as _,m as d,B as r,h as a,c as n,F as p,V as u,v as f,f as s,x as g,K as v}from"./index-9c445bb6.js";/* empty css *//* empty css */const h=_({__name:"detail-form-image",props:{data:{type:Object,default:()=>({})}},setup(i){const e=i,o=d(()=>e.data.handle_field_value.map(t=>r(t)));return(t,x)=>{const c=v;return a(),n("div",null,[(a(!0),n(p,null,u(e.data.handle_field_value,(m,l)=>(a(),f(c,{src:s(r)(m),class:g(["w-[70px] h-[70px]",{"mr-[5px]":l+1<e.data.handle_field_value.length}]),fit:"contain","preview-src-list":s(o),"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"initial-index":l,"hide-on-click-modal":!0},null,8,["src","class","preview-src-list","zoom-rate","min-scale","initial-index"]))),256))])}}}),B=Object.freeze(Object.defineProperty({__proto__:null,default:h},Symbol.toStringTag,{value:"Module"}));export{B as _};
|
||||||
@ -1 +1 @@
|
|||||||
import{d as o,h as r,c as _,t as a}from"./index-42af2821.js";import{_ as n}from"./_plugin-vue_export-helper-c27b6911.js";const s={class:"form-render"},d=o({__name:"detail-form-render",props:{data:{type:Object,default:()=>({})}},setup(e){const t=e;return(l,p)=>(r(),_("div",s,a(t.data.render_value),1))}});const c=n(d,[["__scopeId","data-v-2b402684"]]),u=Object.freeze(Object.defineProperty({__proto__:null,default:c},Symbol.toStringTag,{value:"Module"}));export{u as _};
|
import{d as o,h as r,c as _,t as a}from"./index-9c445bb6.js";import{_ as n}from"./_plugin-vue_export-helper-c27b6911.js";const s={class:"form-render"},d=o({__name:"detail-form-render",props:{data:{type:Object,default:()=>({})}},setup(e){const t=e;return(l,p)=>(r(),_("div",s,a(t.data.render_value),1))}});const c=n(d,[["__scopeId","data-v-2b402684"]]),u=Object.freeze(Object.defineProperty({__proto__:null,default:c},Symbol.toStringTag,{value:"Module"}));export{u as _};
|
||||||
@ -1 +1 @@
|
|||||||
import{_ as o}from"./detail-member.vue_vue_type_script_setup_true_lang-31f95d6b.js";import"./index-42af2821.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css */import"./member_head-d9fd7b2c.js";import"./member-72d6c36e.js";import"./member-point-edit.vue_vue_type_script_setup_true_lang-5cbcb89c.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";import"./member-balance-edit.vue_vue_type_script_setup_true_lang-f8fc20bd.js";import"./edit-member.vue_vue_type_script_setup_true_lang-f471a7ee.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-593a1d85.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-d555545c.js";import"./attachment-b87a9283.js";import"./index.vue_vue_type_script_setup_true_lang-44963142.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-3e626b56.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang-a982918a.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./sortable.esm-be94e56d.js";export{o as default};
|
import{_ as o}from"./detail-member.vue_vue_type_script_setup_true_lang-c5a028b1.js";import"./index-9c445bb6.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css */import"./member_head-d9fd7b2c.js";import"./member-0fb4c483.js";import"./member-point-edit.vue_vue_type_script_setup_true_lang-ad50514a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";import"./member-balance-edit.vue_vue_type_script_setup_true_lang-2dfce2c0.js";import"./edit-member.vue_vue_type_script_setup_true_lang-7e921907.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-c09bd903.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-4f759009.js";import"./attachment-dc27e779.js";import"./index.vue_vue_type_script_setup_true_lang-bb171ed6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-19a40c5d.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang-11fc84c3.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./sortable.esm-be94e56d.js";export{o as default};
|
||||||
File diff suppressed because one or more lines are too long
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