Commit 7c091797 by haojie

1

parent 8df38d9c
export const tabPanels = [
{
value: "first",
label: "登录",
value: 'first',
label: '登录',
panel: () => <div>1</div>,
},
{
value: "second",
label: "注册",
value: 'second',
label: '注册',
panel: () => <div>2</div>,
},
];
// 网站名称
export const Web_name = "SILKR";
/**
* 各个页面的手续费接口type参数
*/
//提现
export const config_type_withDrawal = 1;
// 现货
export const config_type_shop_trading = 2;
// 合约
export const config_type_contract_trading = 3;
// 预售
export const config_type_sale_trading = 4;
// 赚币宝
export const config_type_pledge_trading = 5;
// 矿机
export const config_type_mining_trading = 6;
export const Web_name = 'SILKR';
// 邮箱正则
export const emailReg = /^\w{3,}(\.\w+)*@[A-z0-9]+(\.[A-z]{2,8}){1,2}$/;
// 邀请码
let dddcode = "79o0";
// 用户余额保留几位小数
export const user_ba_decimal_places = 4;
// sessionStorage-key-现货交易当前展示买或者卖
export const TRADE_TYPE = "trade_type";
export const TRADE_TYPE = 'trade_type';
// 记住密码存入本地的key--
export const remember_password_phone = "remember_phone";
export const remember_password_email = "remember_email";
// 客服
export const CustomerServiceLink =
"https://api.whatsapp.com/send/?phone=639054988009&text&type=phone_number&app_absent=0";
export const remember_password_phone = 'remember_phone';
export const remember_password_email = 'remember_email';
// 自动化任务类型
export const TASK_TYPE = {
'1': '视频发布',
'2': '挂链接',
'3': '个人简介',
'4': '修改头像',
'5': '修改名称',
'6': '隐藏视频',
'7': '养号',
};
// 任务内容翻译
export const TASK_CONTENT = {
video_url: '视频链接',
title: '标题',
introduction: '简介',
url: '链接',
avatar_url: '修改头像',
account_name: '修改名称',
hide_video: '隐藏视频',
dwell_interval: '停留时长',
raise_duration: '养号时长',
like_interval: '视频点赞间隔',
startTime: '开始时间',
};
......@@ -57,6 +57,8 @@ const logout = async () => {
let res: any = await useLogout();
if (res.code == 0) {
store.commit('user/removeToken');
// 清空账户列表
store.commit('user/setOptions', []);
MessagePlugin.success('退出成功');
router.replace({
path: '/',
......
.custom-change-Introduction-page {
.custom-change-Introduction-page-child {
width: 1270px;
margin: 0 auto;
background: white;
min-height: 300px;
margin-top: 72px;
padding: 30px 60px;
.submit-btn {
margin-top: 20px;
background: #ebebeb;
border-radius: 8px;
color: #9a9a9a;
width: 164px;
height: 46px;
border: none;
--ripple-color: none !important;
cursor: not-allowed;
}
.active {
background: #fd1753;
color: #ffffff;
cursor: pointer;
}
}
}
import { defineComponent, ref, watch } from 'vue';
import './index.less';
import SelectAccount from '@/pages/upload/compontent/selectAccount';
import Animation from '@/components/Animation.vue';
import { useSubmitIntrod } from '@/utils/api/userApi';
import { MessagePlugin } from 'tdesign-vue-next';
export default defineComponent({
setup() {
const accountId = ref(null);
const textValue = ref('');
const BtnStatus = ref(false);
const loading = ref(false);
const textareaChange = (value: string) => {
BtnStatus.value = true;
};
const submit = async () => {
if (!accountId.value || !textValue.value || !BtnStatus.value) {
return;
}
// 通过
try {
loading.value = true;
let obj = {
introduction: textValue.value,
};
let res: any = await useSubmitIntrod({
account_id: accountId.value,
parameters: [obj],
});
if (res.code == 0) {
BtnStatus.value = false;
MessagePlugin.success('提交成功');
}
loading.value = false;
} catch (e) {
console.log(e);
loading.value = false;
}
};
watch(
() => accountId.value,
(v) => {
if (v && textValue.value) {
BtnStatus.value = true;
}
}
);
return () => (
<div class="custom-change-Introduction-page">
<div class="custom-change-Introduction-page-child">
<SelectAccount
record={[]}
v-model:accountId={accountId.value}
></SelectAccount>
<div class="change-Introduction-box">
<div class="label">简介</div>
<div class="value">
<t-textarea
placeholder="请输入内容"
class="upload-textarea"
autosize={{ minRows: 3, maxRows: 5 }}
v-model={textValue.value}
onChange={textareaChange}
/>
</div>
</div>
<t-button
class={[
'submit-btn',
accountId.value && textValue.value && BtnStatus.value
? 'active'
: '',
]}
onClick={submit}
>
确认
</t-button>
<Animation
v-show={loading.value}
poistion="fixed"
background="rgba(200,200,200,0.2)"
></Animation>
</div>
</div>
);
},
});
......@@ -84,11 +84,21 @@ export default defineComponent({
raise_duration.value = 1000 * 60 * 5;
dwell_interval.value = '';
};
const ModuleTypes = [
{
label: '发布任务',
value: 'upload',
},
{
label: '发布记录',
value: 'record',
},
];
return () => (
<div class="custom-raise-number narrow-scrollbar">
<div class="custom-upload-link-page-child">
<SelectAccount
record={['发布记录', '发布任务']}
record={ModuleTypes}
hideAll={false}
v-model={defaultType.value}
v-model:accountId={accountId.value}
......
.custom-video-players-table {
margin-top: 40px;
table {
thead {
tr {
& > :first-child {
border-radius: 8px 0 0 8px;
}
& > :last-child {
border-radius: 0 8px 8px 0;
}
th {
border-bottom: none;
font-weight: 400;
font-size: 18px;
color: #000000;
background: #f7f7f7;
}
}
}
tbody {
tr {
.td-account-name {
font-weight: 400;
font-size: 16px;
}
.td-title {
font-weight: 400;
font-size: 18px;
}
.td-plays {
font-weight: 400;
font-size: 16px;
color: #fd1753;
}
}
}
}
.custom-pagination-box {
padding: 20px 20px 0 20px;
.t-pagination {
.t-is-current {
background: #fe2c55;
border: none;
}
}
}
}
import { defineComponent, onMounted, ref, computed, watch } from 'vue';
import { getVideoPlayCount } from '@/utils/api/userApi';
import './index.less';
import { useStore } from 'vuex';
export default defineComponent({
setup(props) {
const store = useStore();
const data = ref([]);
const pageNum = ref(1);
const pageSize = ref(10);
const total = ref(0);
const loading = ref(false);
const userAccount = computed(() => store.getters['user/getAccount']);
const getList = async () => {
try {
loading.value = true;
let res: any = await getVideoPlayCount({
limit: pageSize.value,
page: pageNum.value,
account_id: userAccount.value ? userAccount.value : undefined,
});
if (res.code == 0) {
res.data.data.forEach((item: any) => {
item.account_name = item.account.name;
});
data.value = res.data.data;
total.value = res.data.total;
}
loading.value = false;
} catch (e) {
console.log(e);
loading.value = false;
}
};
watch(
() => userAccount.value,
(v) => {
pageNum.value = 1;
getList();
}
);
watch(
() => pageSize.value,
(v) => {
// 页数变化重新请求
getList();
}
);
onMounted(() => {
// 请求表格
getList();
});
const onPageChange = (value: number) => {
pageNum.value = value;
getList();
};
const columns: any = [
{
title: '账号',
colKey: 'account_name',
className: 'td-account-name',
},
{
title: '内容',
colKey: 'title',
className: 'td-title',
},
{
title: '播放量',
colKey: 'plays',
align: 'center',
className: 'td-plays',
},
{
title: '点赞',
colKey: 'likes',
align: 'center',
className: 'td-plays',
},
{
title: '评论',
colKey: 'comments',
align: 'center',
className: 'td-plays',
},
{
title: '发布时间',
colKey: 'create_time',
align: 'center',
className: 'td-account-name',
},
];
return () => (
<div class="custom-video-players-table">
<t-table
data={data.value}
row-key="index"
columns={columns}
hover
ShowJumper
loading={loading.value}
></t-table>
<div class="custom-pagination-box">
<t-pagination
v-model:pageNum={pageNum.value}
v-model:pageSize={pageSize.value}
total={total.value}
onCurrentChange={onPageChange}
></t-pagination>
</div>
</div>
);
},
});
.custom-account-popup {
.t-select-option {
height: auto;
& > span {
display: block;
width: 100%;
}
}
}
.custom-chose-account {
display: flex;
justify-content: space-between;
......
import {
computed,
defineComponent,
onMounted,
ref,
watch,
PropType,
} from 'vue';
import './index.less';
import { useStore } from 'vuex';
import CustomOption from './option.vue';
export default defineComponent({
props: {
modelValue: String,
record: {
type: Array as PropType<string[]>,
type: Array as PropType<any[]>,
},
videopublishrecord: {
type: Object as any,
default: null,
},
hideAll: {
type: Boolean,
......@@ -22,74 +23,67 @@ export default defineComponent({
emits: ['update:modelValue', 'update:accountId'],
setup(props, { emit }) {
const store = useStore();
// 选择列表
const AccountOptions = computed(() => store.getters['user/getOptions']);
watch(
() => AccountOptions.value,
(v) => {}
);
const AccountOptions_after = computed(() => {
let list = JSON.parse(JSON.stringify(AccountOptions.value));
if (!props.hideAll) {
// 增加一个all
list.unshift({
label: '所有账号',
value: 'all',
});
}
return list;
});
const value = ref('');
const handleBlur = ({ value, e }: any) => {
console.log('handleBlur: ', value, e);
};
const handleFocus = ({ value, e }: any) => {
console.log('handleFocus: ', value, e);
};
const handleChange = (value: number) => {
const onAccountIdChange = (value: number) => {
store.commit('user/setUserChoseAccount', value);
emit('update:accountId', value);
};
const handleEnter = ({ value, e, inputValue }: any) => {
console.log('handleEnter: ', value, e, inputValue);
};
// 切换展示的内容
const onChangeType = () => {
const { modelValue } = props;
if (modelValue == 'upload') {
emit('update:modelValue', 'table');
} else {
emit('update:modelValue', 'upload');
const onChangeType = (value: string = '') => {
const { modelValue, record } = props;
if (value) {
// 打开视频记录模块
emit('update:modelValue', value);
return;
}
if (record) {
for (let i = 0; i < record.length; i++) {
const item = record[i];
if (item.value != modelValue) {
emit('update:modelValue', item.value);
return;
}
}
}
};
onMounted(() => {
if (!AccountOptions.value.length) {
store.dispatch('user/AcountOptions');
// 当前按钮要显示的文本
const getButtonText = () => {
const { modelValue, record } = props;
if (record) {
// 取反
for (let i = 0; i < record.length; i++) {
const item = record[i];
if (item.value != modelValue) {
return item.label;
}
}
});
}
};
return () => (
<div class="custom-chose-account">
<div class="chose-account-left">
<div class="chose-account-title">选择账户</div>
<t-select
class="chose-account-select"
v-model={value.value}
placeholder={'选择一个账户'}
options={AccountOptions_after.value}
style="width: 200px; display: inline-block;"
filterable
onblur={handleBlur}
onfocus={handleFocus}
onenter={handleEnter}
onChange={handleChange}
/>
<CustomOption
hideAll={props.hideAll}
onAccountIdChange={onAccountIdChange}
></CustomOption>
</div>
<div class="choose-account-right">
{props.videopublishrecord ? (
<t-button
onClick={onChangeType.bind(this, props.videopublishrecord.value)}
>
{props.videopublishrecord.label}
</t-button>
) : (
''
)}
{props.record ? (
<t-button onClick={onChangeType}>
{props.modelValue == 'upload' ? props.record[0] : props.record[1]}
<t-button
style="marginLeft:12px"
onClick={onChangeType.bind(this, '')}
>
{getButtonText()}
</t-button>
) : (
''
......
<template>
<t-select
class="chose-account-select"
v-model="value"
placeholder="选择一个账户"
style="width: 200px; display: inline-block"
:popupProps="{
overlayClassName: 'custom-account-popup',
}"
filterable
@blur="handleBlur"
@focus="handleFocus"
@enter="handleEnter"
@Change="handleChange"
>
<t-option
v-for="item in AccountOptions_after"
:key="item.value"
:value="item.value"
:label="item.label"
>
<div class="custom__user-option">
<div class="custom__user-option-info">
<div>{{ item.label }}</div>
<div class="custom__user-option-desc">
发布:
<span class="user-video-publish_num">
{{ item.video_publish_num }}
</span>
</div>
</div>
</div>
</t-option>
</t-select>
</template>
<script lang="ts" setup>
import { watch, ref, computed, onMounted } from 'vue';
import { useStore } from 'vuex';
const props = withDefaults(
defineProps<{
hideAll: boolean;
}>(),
{}
);
const emit = defineEmits(['AccountIdChange']);
const store = useStore();
const AccountOptions = computed(() => store.getters['user/getOptions']);
const AccountOptions_after = computed(() => {
let list = AccountOptions.value;
if (!props.hideAll) {
// 增加一个all
list.unshift({
label: '所有账号',
value: 'all',
});
}
return list;
});
const value = ref('');
const handleBlur = ({ value, e }: any) => {
// console.log('handleBlur: ', value, e);
};
const handleFocus = ({ value, e }: any) => {
// console.log('handleFocus: ', value, e);
};
const handleEnter = ({ value, e, inputValue }: any) => {
// console.log('handleEnter: ', value, e, inputValue);
};
const handleChange = (value: number) => {
emit('AccountIdChange', value);
};
onMounted(() => {
if (!AccountOptions.value.length) {
store.dispatch('user/AcountOptions');
}
});
</script>
<style lang="less">
.custom__user-option {
padding: 6px 0;
.custom__user-option-info {
display: flex;
justify-content: space-between;
.custom__user-option-desc {
margin-right: 12px;
.user-video-publish_num {
color: #fd1753;
}
}
}
}
</style>
......@@ -2,6 +2,7 @@ import { defineComponent, onMounted, ref, computed, watch } from 'vue';
import { getSubmitTableList } from '@/utils/api/userApi';
import './index.less';
import { useStore } from 'vuex';
import { TASK_TYPE, TASK_CONTENT } from '@/constants/token';
export default defineComponent({
props: {
type: Number,
......@@ -64,8 +65,13 @@ export default defineComponent({
colKey: 'account_name',
},
{
title: '任务类型',
colKey: 'type',
align: 'center',
},
{
title: '内容',
colKey: 'n_title',
colKey: 'content',
},
{
title: '发布',
......@@ -76,6 +82,48 @@ export default defineComponent({
colKey: 'publish_time',
},
];
// 任务类型 TASK_TYPE
const getTaskType = ({ row }: any) => {
switch (row.type) {
case 1:
return TASK_TYPE['1'];
case 2:
return TASK_TYPE['2'];
case 3:
return TASK_TYPE['3'];
case 4:
return TASK_TYPE['4'];
case 5:
return TASK_TYPE['5'];
case 6:
return TASK_TYPE['6'];
case 7:
return TASK_TYPE['7'];
}
};
// 获取任务内容
const getContent = ({ row }: any) => {
if (row.parameters) {
const list = Object.keys(row.parameters);
if (list) {
return (
<div>
{list.map((item: string) => (
<div>
<span>
{TASK_CONTENT[item as keyof typeof TASK_CONTENT] ?? item}
</span>
<span>{row.parameters[item]}</span>
</div>
))}
</div>
);
}
} else {
return '没有内容';
}
};
return () => (
<div class="custom-submit-table">
<t-table
......@@ -85,6 +133,10 @@ export default defineComponent({
hover
ShowJumper
loading={loading.value}
v-slots={{
type: getTaskType,
content: getContent,
}}
></t-table>
<div class="custom-pagination-box">
<t-pagination
......
......@@ -8,6 +8,7 @@ import { UserUploadVideo } from '@/utils/api/userApi';
import { MessagePlugin } from 'tdesign-vue-next';
import Animation from '@/components/Animation.vue';
import UploadTable from './compontent/uploadTable';
import VideoPlayers from './compontent/VideoPlayers';
export default defineComponent({
setup() {
const store = useStore();
......@@ -177,6 +178,22 @@ export default defineComponent({
</div>
);
};
// 模块名
const ModuleTypes = [
{
label: '发布视频',
value: 'upload',
},
{
label: '发布记录',
value: 'record',
},
];
// 视频发布
const VideoPublish = {
label: '视频播放量',
value: 'videopublish',
};
return () => (
<div class="custom-upload-page narrow-scrollbar">
<div class="custom-upload-page-child">
......@@ -184,14 +201,20 @@ export default defineComponent({
<SelectAccount
v-model={defaultType.value}
v-model:accountId={accountId.value}
record={['发布记录', '发布视频']}
record={ModuleTypes}
videopublishrecord={VideoPublish}
></SelectAccount>
{uploadVideoHtml()}
{defaultType.value != 'upload' ? (
{defaultType.value == 'record' ? (
<UploadTable type={1}></UploadTable>
) : (
''
)}
{defaultType.value == 'videopublish' ? (
<VideoPlayers></VideoPlayers>
) : (
''
)}
</div>
</div>
<Animation
......
......@@ -145,12 +145,22 @@ export default defineComponent({
BtnStatus.value = false;
video_is_hide.value = false;
};
const ModuleTypes = [
{
label: '发布任务',
value: 'upload',
},
{
label: '发布记录',
value: 'record',
},
];
return () => (
<div class="custom-upload-link-page narrow-scrollbar">
<div class="custom-upload-link-page-child">
<SelectAccount
v-model={defaultType.value}
record={['发布记录', '发布任务']}
record={ModuleTypes}
v-model:accountId={accountId.value}
></SelectAccount>
{defaultType.value != 'upload' ? (
......
......@@ -20,6 +20,7 @@ export default [
header: true,
},
},
// 个人修改
{
path: '/uploadlink',
name: 'uploadlink',
......@@ -28,15 +29,6 @@ export default [
header: true,
},
},
// Introduction--旧的修改简介
// {
// path: '/Introduction',
// name: 'Introduction',
// component: () => import('@/pages/Introduction/index'),
// meta: {
// header: true,
// },
// },
// 养号--RaiseNumber
{
path: '/RaiseNumber',
......
......@@ -6,7 +6,7 @@ body {
-webkit-font-smoothing: antialiased;
padding: 0;
margin: 0;
user-select: none;
// user-select: none;
}
ul,
......
......@@ -16,6 +16,7 @@ import {
DatePicker as TDatePicker,
TimePicker as TTimePicker,
InputNumber as TInputNumber,
Option as TOption,
} from 'tdesign-vue-next';
const components: any[] = [
TSelect,
......@@ -31,6 +32,7 @@ const components: any[] = [
TDatePicker,
TTimePicker,
TInputNumber,
TOption,
];
export default {
install(app: any) {
......
......@@ -73,6 +73,17 @@ export const getSubmitTableList = (data: any) => {
});
};
// 获取视频播放量
export const getVideoPlayCount = (data: any) => {
let token = getUserCookie();
return request.get(`/api/users/video/play-count`, {
params: data,
headers: {
authorization: `Bearer ${token}`,
},
});
};
// 上传链接
export const SubmitLink = (data: any) => {
let token = getUserCookie();
......
import{d as t,K as a,L as l,U as e,X as s,E as o,Y as i,Z as d}from"./vue-bb074a25.js";import{_ as u}from"./_plugin-vue_export-helper-1b428a4d.js";const n=t=>(i("data-v-60ab0cfe"),t=t(),d(),t),p=[n((()=>l("div",null,null,-1))),n((()=>l("div",null,null,-1))),n((()=>l("div",null,null,-1)))],b=u(t({__name:"Animation",props:{background:{default:""},position:{default:"absolute"},width:{default:"100%"},left:{default:"0px"},height:{default:"100%"},top:{default:"0px"},isTable:{type:Boolean,default:!1}},setup:t=>(i,d)=>(o(),a("div",{class:e(["custom-loading-box",{"custom-is-table-box":!t.isTable}]),style:s({width:t.width,height:t.height,background:t.background,position:t.position})},[l("div",{class:e(["ball-beat",{"custom-is-table-child":!t.isTable}]),style:s({top:t.top,left:t.left})},p,6)],6))}),[["__scopeId","data-v-60ab0cfe"]]);export{b as A};
System.register(["./vue-legacy-69141e23.js","./_plugin-vue_export-helper-legacy-762b7923.js"],(function(t,e){"use strict";var l,a,i,s,u,o,d,n,c;return{setters:[t=>{l=t.d,a=t.K,i=t.L,s=t.U,u=t.X,o=t.E,d=t.Y,n=t.Z},t=>{c=t._}],execute:function(){const e=t=>(d("data-v-60ab0cfe"),t=t(),n(),t),p=[e((()=>i("div",null,null,-1))),e((()=>i("div",null,null,-1))),e((()=>i("div",null,null,-1)))],b=l({__name:"Animation",props:{background:{default:""},position:{default:"absolute"},width:{default:"100%"},left:{default:"0px"},height:{default:"100%"},top:{default:"0px"},isTable:{type:Boolean,default:!1}},setup:t=>(e,l)=>(o(),a("div",{class:s(["custom-loading-box",{"custom-is-table-box":!t.isTable}]),style:u({width:t.width,height:t.height,background:t.background,position:t.position})},[i("div",{class:s(["ball-beat",{"custom-is-table-child":!t.isTable}]),style:u({top:t.top,left:t.left})},p,6)],6))});t("A",c(b,[["__scopeId","data-v-60ab0cfe"]]))}}}));
const o=(o,t)=>{const c=o.__vccOpts||o;for(const[s,n]of t)c[s]=n;return c};export{o as _};
System.register([],(function(t,e){"use strict";return{execute:function(){t("_",((t,e)=>{const c=t.__vccOpts||t;for(const[n,r]of e)c[n]=r;return c}))}}}));
import{E as a,K as t,L as l,d as s,M as e,c,N as n,O as o,r as u,G as r,b as h,P as i,F as p,Q as d,D as v,R as m,z as f,S as w,U as g,V as y,W as k}from"./vue-bb074a25.js";import{aM as F,aN as b}from"./index-ed4f56aa.js";const M={width:"35",height:"35",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_=[l("path",{d:"M29.64 14.146c-2.49 0-4.913-.817-6.905-2.33v10.545c0 5.384-4.11 9.744-9.18 9.744-5.07 0-9.18-4.36-9.18-9.744 0-5.384 4.11-9.746 9.18-9.746.508 0 1 .043 1.479.128v5.585a3.905 3.905 0 0 0-1.44-.277c-2.263 0-4.099 1.947-4.099 4.35 0 2.4 1.836 4.348 4.098 4.348 2.26 0 4.095-1.949 4.095-4.348V1.458h5.12c0 4.025 3.076 7.288 6.87 7.288v5.396l-.037.002",fill:"#03FBFF"},null,-1),l("path",{d:"M30.59 15.58c-2.495 0-4.92-.818-6.907-2.327v10.544c0 5.384-4.11 9.745-9.18 9.745-5.069 0-9.179-4.36-9.179-9.745 0-5.384 4.11-9.745 9.18-9.745.507 0 1 .044 1.48.129v5.585a3.903 3.903 0 0 0-1.441-.277c-2.262 0-4.098 1.947-4.098 4.35 0 2.4 1.836 4.35 4.098 4.35 2.26 0 4.095-1.95 4.095-4.35V2.895h5.12c0 4.025 3.075 7.287 6.869 7.287v5.396l-.037.003Z",fill:"#FD1753"},null,-1)];const x={render:function(l,s){return a(),t("svg",M,_)}},V={width:"45",height:"45",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C=[l("circle",{cx:"22.5",cy:"22.5",r:"22.5",fill:"#393939"},null,-1),l("path",{d:"M34.64 19.146c-2.49 0-4.913-.817-6.905-2.33v10.545c0 5.384-4.11 9.744-9.18 9.744-5.07 0-9.18-4.36-9.18-9.744 0-5.384 4.11-9.746 9.18-9.746.508 0 1 .043 1.479.128v5.585a3.905 3.905 0 0 0-1.44-.277c-2.263 0-4.099 1.947-4.099 4.35 0 2.4 1.836 4.348 4.098 4.348 2.26 0 4.095-1.949 4.095-4.348V6.458h5.12c0 4.025 3.076 7.288 6.87 7.288v5.396l-.037.002",fill:"#03FBFF"},null,-1),l("path",{d:"M35.59 20.58c-2.495 0-4.92-.817-6.907-2.327v10.544c0 5.384-4.11 9.745-9.18 9.745-5.069 0-9.178-4.36-9.178-9.745 0-5.384 4.109-9.745 9.178-9.745.508 0 1 .044 1.48.129v5.585a3.902 3.902 0 0 0-1.44-.277c-2.262 0-4.098 1.947-4.098 4.35 0 2.4 1.836 4.35 4.098 4.35 2.26 0 4.095-1.95 4.095-4.35V7.895h5.12c0 4.025 3.075 7.287 6.869 7.287v5.396l-.037.003Z",fill:"#FD1753"},null,-1)];const D={render:function(l,s){return a(),t("svg",V,C)}},N={class:"custom-layout-head"},T={class:"layout-head-left"},j=l("span",null,"TikToK视频上传",-1),B=["onClick"],K={class:"layout-head-right"},R=s({__name:"header",setup(s){const k=e(),M=c((()=>k.getters["user/token"])),_=n(),V=o(),C=u(_.path),R=[{label:"上传视频",path:"/upload"},{label:"个人修改",path:"/uploadlink"},{label:"养号功能",path:"/RaiseNumber"}],Z=async()=>{try{0==(await F()).code&&(k.commit("user/removeToken"),b.success("退出成功"),V.replace({path:"/"}))}catch(a){}};return(s,e)=>{const c=r("t-button");return a(),t("div",N,[l("div",T,[h(i(x)),j,(a(),t(p,null,d(R,(a=>l("div",{class:g(["layout-chose-button",{active:a.path===i(C)}]),key:a.path,onClick:t=>(a=>{C.value=a.path,V.replace({path:a.path})})(a)},y(a.label),11,B))),64))]),l("div",K,[i(M)?(a(),v(c,{key:0,class:"logout",onClick:Z},{default:m((()=>[f(" 退出 ")])),_:1})):w("",!0),h(i(D))])])}}}),Z={class:"custom-layout"},z=s({__name:"content",setup(l){const s=n();return(l,e)=>{const c=r("router-view");return a(),t("div",Z,[i(s).meta.header?(a(),v(R,{key:0})):w("",!0),h(c,null,{default:m((({Component:t})=>[(a(),v(k(t)))])),_:1})])}}});export{z as default};
System.register(["./vue-legacy-69141e23.js","./index-legacy-01eea9e6.js"],(function(t,e){"use strict";var l,a,c,n,s,u,r,o,i,h,v,d,p,f,g,y,m,w,k,F,b,M,_;return{setters:[t=>{l=t.E,a=t.K,c=t.L,n=t.d,s=t.M,u=t.c,r=t.N,o=t.O,i=t.r,h=t.G,v=t.b,d=t.P,p=t.F,f=t.Q,g=t.D,y=t.R,m=t.z,w=t.S,k=t.U,F=t.V,b=t.W},t=>{M=t.aM,_=t.aN}],execute:function(){const e={width:"35",height:"35",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x=[c("path",{d:"M29.64 14.146c-2.49 0-4.913-.817-6.905-2.33v10.545c0 5.384-4.11 9.744-9.18 9.744-5.07 0-9.18-4.36-9.18-9.744 0-5.384 4.11-9.746 9.18-9.746.508 0 1 .043 1.479.128v5.585a3.905 3.905 0 0 0-1.44-.277c-2.263 0-4.099 1.947-4.099 4.35 0 2.4 1.836 4.348 4.098 4.348 2.26 0 4.095-1.949 4.095-4.348V1.458h5.12c0 4.025 3.076 7.288 6.87 7.288v5.396l-.037.002",fill:"#03FBFF"},null,-1),c("path",{d:"M30.59 15.58c-2.495 0-4.92-.818-6.907-2.327v10.544c0 5.384-4.11 9.745-9.18 9.745-5.069 0-9.179-4.36-9.179-9.745 0-5.384 4.11-9.745 9.18-9.745.507 0 1 .044 1.48.129v5.585a3.903 3.903 0 0 0-1.441-.277c-2.262 0-4.098 1.947-4.098 4.35 0 2.4 1.836 4.35 4.098 4.35 2.26 0 4.095-1.95 4.095-4.35V2.895h5.12c0 4.025 3.075 7.287 6.869 7.287v5.396l-.037.003Z",fill:"#FD1753"},null,-1)],V={render:function(t,c){return l(),a("svg",e,x)}},C={width:"45",height:"45",fill:"none",xmlns:"http://www.w3.org/2000/svg"},D=[c("circle",{cx:"22.5",cy:"22.5",r:"22.5",fill:"#393939"},null,-1),c("path",{d:"M34.64 19.146c-2.49 0-4.913-.817-6.905-2.33v10.545c0 5.384-4.11 9.744-9.18 9.744-5.07 0-9.18-4.36-9.18-9.744 0-5.384 4.11-9.746 9.18-9.746.508 0 1 .043 1.479.128v5.585a3.905 3.905 0 0 0-1.44-.277c-2.263 0-4.099 1.947-4.099 4.35 0 2.4 1.836 4.348 4.098 4.348 2.26 0 4.095-1.949 4.095-4.348V6.458h5.12c0 4.025 3.076 7.288 6.87 7.288v5.396l-.037.002",fill:"#03FBFF"},null,-1),c("path",{d:"M35.59 20.58c-2.495 0-4.92-.817-6.907-2.327v10.544c0 5.384-4.11 9.745-9.18 9.745-5.069 0-9.178-4.36-9.178-9.745 0-5.384 4.109-9.745 9.178-9.745.508 0 1 .044 1.48.129v5.585a3.902 3.902 0 0 0-1.44-.277c-2.262 0-4.098 1.947-4.098 4.35 0 2.4 1.836 4.35 4.098 4.35 2.26 0 4.095-1.95 4.095-4.35V7.895h5.12c0 4.025 3.075 7.287 6.869 7.287v5.396l-.037.003Z",fill:"#FD1753"},null,-1)],N={render:function(t,e){return l(),a("svg",C,D)}},T={class:"custom-layout-head"},j={class:"layout-head-left"},B=c("span",null,"TikToK视频上传",-1),K=["onClick"],R={class:"layout-head-right"},S=n({__name:"header",setup(t){const e=s(),n=u((()=>e.getters["user/token"])),b=r(),x=o(),C=i(b.path),D=[{label:"上传视频",path:"/upload"},{label:"个人修改",path:"/uploadlink"},{label:"养号功能",path:"/RaiseNumber"}],S=async()=>{try{0==(await M()).code&&(e.commit("user/removeToken"),_.success("退出成功"),x.replace({path:"/"}))}catch(t){}};return(t,e)=>{const s=h("t-button");return l(),a("div",T,[c("div",j,[v(d(V)),B,(l(),a(p,null,f(D,(t=>c("div",{class:k(["layout-chose-button",{active:t.path===d(C)}]),key:t.path,onClick:e=>(t=>{C.value=t.path,x.replace({path:t.path})})(t)},F(t.label),11,K))),64))]),c("div",R,[d(n)?(l(),g(s,{key:0,class:"logout",onClick:S},{default:y((()=>[m(" 退出 ")])),_:1})):w("",!0),v(d(N))])])}}}),Z={class:"custom-layout"};t("default",n({__name:"content",setup(t){const e=r();return(t,c)=>{const n=h("router-view");return l(),a("div",Z,[d(e).meta.header?(l(),g(S,{key:0})):w("",!0),v(n,null,{default:y((({Component:t})=>[(l(),g(b(t)))])),_:1})])}}}))}}}));
This source diff could not be displayed because it is too large. You can view the blob instead.
import{d as e,r as a,x as l,w as u,o as t,b as s,z as o,G as d,M as n,s as i,v as c}from"./vue-bb074a25.js";import{S as p,U as r}from"./index-d8eb426d.js";import{aT as v,aP as m,aN as V,aU as h}from"./index-ed4f56aa.js";import{A as g}from"./Animation-9f506a38.js";import{U as f,v as b,i as y}from"./v4-48075bb2.js";import"./_plugin-vue_export-helper-1b428a4d.js";const w=e({props:{accountId:Number,modelValue:String},emits:["update:modelValue"],setup(e,{emit:i}){n();const c=a([]);let p=null;const r=a({}),h=a(0),g=l({url:"",status:0,uploadStatus:!1}),w=a=>a.size<=102400?(V.warning("文件不能小于100KB"),!1):!!e.accountId||(V.warning("请先选择一个账户"),!1);u((()=>e.modelValue),((e="")=>{g.url=e,e||(g.status=0,g.uploadStatus=!1)}));const U=(e,a)=>(h.value=0,p=setInterval((()=>{99!=h.value&&(h.value+=1)}),100),new Promise((l=>{let u=b();g.status=1;let t="";t="https://"+a.host,setTimeout((()=>{let s=e[0].type.replace("image/","."),o=new FormData;o.append("key",a.dir+u+s),o.append("policy",a.policy),o.append("OSSAccessKeyId",a.accessid),o.append("success_action_status","200"),o.append("callback",a.callback),o.append("signature",a.signature),o.append("file",e[0].raw),y.post(t,o,{headers:{"Content-Type":"multipart/form-data;charset=utf-8"}}).then((e=>{if(200==e){((e,a)=>{window.clearInterval(p),V.success("上传成功"),g.url=a,g.status=2,i("update:modelValue",g.url)})(0,a.domain+a.dir+u+s),g.uploadStatus=!0,l({status:"success",response:{url:g.url}})}else window.clearInterval(p),g.url="",g.status=0,i("update:modelValue",g.url),V.warning("上传失败"),g.uploadStatus=!1,l({status:"fail",error:"上传失败,请检查文件是否符合规范"})})).catch((e=>{}))}),1e3)}))),x=({file:e})=>{V.error(`文件 ${e.name} 上传失败`)},k=async e=>(await U(e,r.value),{status:"success",response:{url:g.url}}),S=()=>0==g.status?I():1==g.status?s("div",{class:"custom-uploading-stauts"},[s(d("t-progress"),{theme:"circle",percentage:h.value,size:"small"},null),s("div",{class:"uploading-title"},[o("正在上传")])]):s("div",{class:"custom-uploading-stauts"},[s("img",{class:"img",src:g.url,alt:""},null)]);t((()=>{(async()=>{try{let e=await v({id:2});0==e.code&&(r.value=e.data)}catch(e){}})()}));const I=()=>s(d("t-upload"),{modelValue:c.value,"onUpdate:modelValue":e=>c.value=e,method:"PUT",requestMethod:k,headers:{authorization:`Bearer ${m()}`},accept:"image/*",theme:"custom","before-upload":w,multiple:!0,max:1,draggable:!0,onfail:x},{default:()=>[s("div",{class:"custom-upload-click-box"},[s("div",{class:"title"},[o("选择照片")]),s("div",{class:"title2"},[o("或拖照片到此处上传")]),s("div",{class:"title3"},[o("!注意照片不得小于100KB")]),s("div",null,[s(f,null,null)]),s(d("t-button"),{class:"custom-chose-file"},{default:()=>[o("选择照片")]})])]});return()=>s("div",{class:"custom-upload-avatar"},[s("div",{class:"custom-upload-label"},[o("上传头像")]),s("div",{class:"upload-avatar-box"},[s("div",{class:"upload-avatar-box-child"},[S(),s("div",{class:"tips"},[o("如果只需要修改其中某个选项,其他默认留空即可。")])])])])}}),U=e({props:{modelValue:String},emits:["update:modelValue"],setup(e,{emit:l}){const t=a(e.modelValue),n=e=>{l("update:modelValue",e)};return u((()=>e.modelValue),(e=>{t.value=e})),()=>s("div",{class:"custom-change-name"},[s("div",{class:"custom-upload-label"},[o("修改名称")]),s("div",{class:"change-name-input"},[s(d("t-input"),{modelValue:t.value,"onUpdate:modelValue":e=>t.value=e,onChange:n},null)])])}}),x=e({props:{modelValue:String},emits:["update:modelValue"],setup(e,{emit:l}){const t=a(e.modelValue),n=e=>{l("update:modelValue",e)};return u((()=>e.modelValue),(e=>{t.value=e})),()=>s("div",{class:"custom-up-link"},[s("div",{class:"custom-upload-label"},[o("上传链接")]),s("div",{class:"change-name-input"},[s(d("t-input"),{modelValue:t.value,"onUpdate:modelValue":e=>t.value=e,onChange:n},null)])])}}),k=e({props:{modelValue:String},emits:["update:modelValue"],setup(e,{emit:l}){const t=a(""),n=e=>{l("update:modelValue",e)};return u((()=>e.modelValue),((e="")=>{t.value=e})),()=>s("div",{class:"change-Introduction-box"},[s("div",{class:"label"},[o("简介")]),s("div",{class:"value"},[s(d("t-textarea"),{placeholder:"请输入内容",class:"upload-textarea",autosize:{minRows:3,maxRows:5},modelValue:t.value,"onUpdate:modelValue":e=>t.value=e,onChange:n},null)])])}}),S=e({props:{modelValue:Boolean,options:Array},emits:["update:modelValue"],setup(e,{emit:l}){const t=a(e.modelValue),n=e=>{l("update:modelValue",e)};return u((()=>e.modelValue),(e=>{t.value=e})),()=>s("div",{class:"custom-hide-video"},[s("div",{class:"custom-upload-label"},[o("隐藏视频")]),s("div",{class:"change-check"},[s(d("t-radio-group"),{modelValue:t.value,"onUpdate:modelValue":e=>t.value=e,options:e.options,onChange:n},null)])])}}),I=e({setup(e){const l=a(null),t=a(!1),n=a(!1),v=a(""),m=a(""),f=a("upload"),b=a(""),y=a(""),I=a(!1),_=[{label:"否",value:!1},{label:"是",value:!0}],C=()=>!!((v.value||m.value||b.value||I.value||y.value)&&l.value&&t.value);u((()=>[v.value,m.value,b.value,y.value,I.value]),(e=>{for(let a=0;a<e.length;a++)if(e[a])return void(t.value=!0)}));const j=async()=>{if(C())try{n.value=!0;let e=(()=>{let e=[];if(y.value){let a={};a.url=y.value,a.type=2,e.push(a)}if(b.value){let a={};a.introduction=b.value,a.type=3,e.push(a)}if(v.value){let a={};a.avatar_url=v.value,a.type=4,e.push(a)}if(m.value){let a={};a.account_name=m.value,a.type=5,e.push(a)}if(I.value){let a={};a.hide_video=I.value,a.type=6,e.push(a)}return e})();0==(await h({account_id:l.value,parameters:e})).code&&(t.value=!1,V.success("上传成功")),n.value=!1}catch(e){n.value=!1}},z=()=>{v.value="",m.value="",b.value="",y.value="",t.value=!1,I.value=!1};return()=>{var e;return s("div",{class:"custom-upload-link-page narrow-scrollbar"},[s("div",{class:"custom-upload-link-page-child"},[s(p,{modelValue:f.value,"onUpdate:modelValue":e=>f.value=e,record:["发布记录","发布任务"],accountId:l.value,"onUpdate:accountId":e=>l.value=e},null),"upload"!=f.value?s(r,{type:0},null):"",i(s("div",{class:"upload-link-box"},[s(w,{accountId:null!=(e=l.value)?e:0,modelValue:v.value,"onUpdate:modelValue":e=>v.value=e},null),s(U,{modelValue:m.value,"onUpdate:modelValue":e=>m.value=e},null),s(x,{modelValue:y.value,"onUpdate:modelValue":e=>y.value=e},null),s(k,{modelValue:b.value,"onUpdate:modelValue":e=>b.value=e},null),s(S,{modelValue:I.value,"onUpdate:modelValue":e=>I.value=e,options:_},null),s(d("t-button"),{class:["submit-btn",C()?"active":""],onClick:j},{default:()=>[o("确认")]}),s(d("t-button"),{class:"on-reset",onClick:z},{default:()=>[o("重置")]})]),[[c,"upload"==f.value]]),i(s(g,{poistion:"fixed",background:"rgba(200,200,200,0.2)"},null),[[c,n.value]])])])}}});export{I as default};
import{d as e,c as a,w as t,r as l,o as u,b as o,z as s,G as c,M as n}from"./vue-bb074a25.js";import{aS as i}from"./index-ed4f56aa.js";const d=e({props:{modelValue:String,record:{type:Array},hideAll:{type:Boolean,default:!0}},emits:["update:modelValue","update:accountId"],setup(e,{emit:i}){const d=n(),r=a((()=>d.getters["user/getOptions"]));t((()=>r.value),(e=>{}));const p=a((()=>{let a=JSON.parse(JSON.stringify(r.value));return e.hideAll||a.unshift({label:"所有账号",value:"all"}),a})),v=l(""),m=({value:e,e:a})=>{},h=({value:e,e:a})=>{},g=e=>{d.commit("user/setUserChoseAccount",e),i("update:accountId",e)},y=({value:e,e:a,inputValue:t})=>{},b=()=>{const{modelValue:a}=e;i("update:modelValue","upload"==a?"table":"upload")};return u((()=>{r.value.length||d.dispatch("user/AcountOptions")})),()=>o("div",{class:"custom-chose-account"},[o("div",{class:"chose-account-left"},[o("div",{class:"chose-account-title"},[s("选择账户")]),o(c("t-select"),{class:"chose-account-select",modelValue:v.value,"onUpdate:modelValue":e=>v.value=e,placeholder:"选择一个账户",options:p.value,style:"width: 200px; display: inline-block;",filterable:!0,onblur:m,onfocus:h,onenter:y,onChange:g},null)]),o("div",{class:"choose-account-right"},[e.record?o(c("t-button"),{onClick:b},{default:()=>["upload"==e.modelValue?e.record[0]:e.record[1]]}):""])])}}),r=e({props:{type:Number},setup(e){const s=n(),d=l([]),r=l(1),p=l(10),v=l(0),m=l(!1),h=a((()=>s.getters["user/getAccount"])),g=async()=>{try{m.value=!0;let a=await i({limit:p.value,page:r.value,account_id:h.value?h.value:void 0,type:e.type});0==a.code&&(a.data.data.forEach((e=>{e.n_title=e.parameters.title})),d.value=a.data.data,v.value=a.data.total),m.value=!1}catch(a){m.value=!1}};t((()=>h.value),(e=>{r.value=1,g()})),t((()=>p.value),(e=>{g()})),u((()=>{g()}));const y=e=>{r.value=e,g()},b=[{title:"账号",colKey:"account_name"},{title:"内容",colKey:"n_title"},{title:"发布",colKey:"status_label"},{title:"发布时间",colKey:"publish_time"}];return()=>o("div",{class:"custom-submit-table"},[o(c("t-table"),{data:d.value,"row-key":"index",columns:b,hover:!0,ShowJumper:!0,loading:m.value},null),o("div",{class:"custom-pagination-box"},[o(c("t-pagination"),{pageNum:r.value,"onUpdate:pageNum":e=>r.value=e,pageSize:p.value,"onUpdate:pageSize":e=>p.value=e,total:v.value,onCurrentChange:y},null)])])}});export{d as S,r as U};
import{d as e,r as t,w as n,b as a,z as u,G as r,s as i,v as s}from"./vue-bb074a25.js";import{A as l}from"./Animation-9f506a38.js";import{S as o,U as d}from"./index-d8eb426d.js";import{aV as c,aN as h,aW as f}from"./index-ed4f56aa.js";import"./_plugin-vue_export-helper-1b428a4d.js";var v={exports:{}};const m=v.exports=function(){var e=1e3,t=6e4,n=36e5,a="millisecond",u="second",r="minute",i="hour",s="day",l="week",o="month",d="quarter",c="year",h="date",f="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},$=function(e,t,n){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(n)+e},g={s:$,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),a=Math.floor(n/60),u=n%60;return(t<=0?"+":"-")+$(a,2,"0")+":"+$(u,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var a=12*(n.year()-t.year())+(n.month()-t.month()),u=t.clone().add(a,o),r=n-u<0,i=t.clone().add(a+(r?-1:1),o);return+(-(a+(n-u)/(r?u-i:i-u))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:o,y:c,w:l,d:s,D:h,h:i,m:r,s:u,ms:a,Q:d}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",M={};M[y]=p;var D=function(e){return e instanceof _},S=function e(t,n,a){var u;if(!t)return y;if("string"==typeof t){var r=t.toLowerCase();M[r]&&(u=r),n&&(M[r]=n,u=r);var i=t.split("-");if(!u&&i.length>1)return e(i[0])}else{var s=t.name;M[s]=t,u=s}return!a&&u&&(y=u),u||!a&&y},b=function(e,t){if(D(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new _(n)},w=g;w.l=S,w.i=D,w.w=function(e,t){return b(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var _=function(){function p(e){this.$L=S(e.locale,null,!0),this.parse(e)}var $=p.prototype;return $.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(w.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var a=t.match(v);if(a){var u=a[2]-1||0,r=(a[7]||"0").substring(0,3);return n?new Date(Date.UTC(a[1],u,a[3]||1,a[4]||0,a[5]||0,a[6]||0,r)):new Date(a[1],u,a[3]||1,a[4]||0,a[5]||0,a[6]||0,r)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},$.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},$.$utils=function(){return w},$.isValid=function(){return!(this.$d.toString()===f)},$.isSame=function(e,t){var n=b(e);return this.startOf(t)<=n&&n<=this.endOf(t)},$.isAfter=function(e,t){return b(e)<this.startOf(t)},$.isBefore=function(e,t){return this.endOf(t)<b(e)},$.$g=function(e,t,n){return w.u(e)?this[t]:this.set(n,e)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(e,t){var n=this,a=!!w.u(t)||t,d=w.p(e),f=function(e,t){var u=w.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return a?u:u.endOf(s)},v=function(e,t){return w.w(n.toDate()[e].apply(n.toDate("s"),(a?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,p=this.$M,$=this.$D,g="set"+(this.$u?"UTC":"");switch(d){case c:return a?f(1,0):f(31,11);case o:return a?f(1,p):f(0,p+1);case l:var y=this.$locale().weekStart||0,M=(m<y?m+7:m)-y;return f(a?$-M:$+(6-M),p);case s:case h:return v(g+"Hours",0);case i:return v(g+"Minutes",1);case r:return v(g+"Seconds",2);case u:return v(g+"Milliseconds",3);default:return this.clone()}},$.endOf=function(e){return this.startOf(e,!1)},$.$set=function(e,t){var n,l=w.p(e),d="set"+(this.$u?"UTC":""),f=(n={},n[s]=d+"Date",n[h]=d+"Date",n[o]=d+"Month",n[c]=d+"FullYear",n[i]=d+"Hours",n[r]=d+"Minutes",n[u]=d+"Seconds",n[a]=d+"Milliseconds",n)[l],v=l===s?this.$D+(t-this.$W):t;if(l===o||l===c){var m=this.clone().set(h,1);m.$d[f](v),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](v);return this.init(),this},$.set=function(e,t){return this.clone().$set(e,t)},$.get=function(e){return this[w.p(e)]()},$.add=function(a,d){var h,f=this;a=Number(a);var v=w.p(d),m=function(e){var t=b(f);return w.w(t.date(t.date()+Math.round(e*a)),f)};if(v===o)return this.set(o,this.$M+a);if(v===c)return this.set(c,this.$y+a);if(v===s)return m(1);if(v===l)return m(7);var p=(h={},h[r]=t,h[i]=n,h[u]=e,h)[v]||1,$=this.$d.getTime()+a*p;return w.w($,this)},$.subtract=function(e,t){return this.add(-1*e,t)},$.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var a=e||"YYYY-MM-DDTHH:mm:ssZ",u=w.z(this),r=this.$H,i=this.$m,s=this.$M,l=n.weekdays,o=n.months,d=function(e,n,u,r){return e&&(e[n]||e(t,a))||u[n].slice(0,r)},c=function(e){return w.s(r%12||12,e,"0")},h=n.meridiem||function(e,t,n){var a=e<12?"AM":"PM";return n?a.toLowerCase():a},v={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:w.s(s+1,2,"0"),MMM:d(n.monthsShort,s,o,3),MMMM:d(o,s),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:d(n.weekdaysMin,this.$W,l,2),ddd:d(n.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(r),HH:w.s(r,2,"0"),h:c(1),hh:c(2),a:h(r,i,!0),A:h(r,i,!1),m:String(i),mm:w.s(i,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:u};return a.replace(m,(function(e,t){return t||v[e]||u.replace(":","")}))},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(a,h,f){var v,m=w.p(h),p=b(a),$=(p.utcOffset()-this.utcOffset())*t,g=this-p,y=w.m(this,p);return y=(v={},v[c]=y/12,v[o]=y,v[d]=y/3,v[l]=(g-$)/6048e5,v[s]=(g-$)/864e5,v[i]=g/n,v[r]=g/t,v[u]=g/e,v)[m]||g,f?y:w.a(y)},$.daysInMonth=function(){return this.endOf(o).$D},$.$locale=function(){return M[this.$L]},$.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),a=S(e,t,!0);return a&&(n.$L=a),n},$.clone=function(){return w.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},p}(),V=_.prototype;return b.prototype=V,[["$ms",a],["$s",u],["$m",r],["$H",i],["$W",s],["$M",o],["$y",c],["$D",h]].forEach((function(e){V[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),b.extend=function(e,t){return e.$i||(e(t,_,b),e.$i=!0),b},b.locale=S,b.isDayjs=D,b.unix=function(e){return b(1e3*e)},b.en=M[y],b.Ls=M,b.p={},b}(),p=e({props:{modelValue:Number,raise_duration:Number},emits:["update:modelValue","update:raise_duration"],setup(e,{emit:i}){const s=t(""),l=t(""),o=t(e.raise_duration),d=[{label:"5分钟",value:3e5},{label:"10分钟",value:6e5},{label:"15分钟",value:9e5},{label:"20分钟",value:12e5},{label:"25分钟",value:15e5},{label:"30分钟",value:18e5}];return n((()=>[s.value,l.value]),(([e,t])=>{if(e&&t){let n=m(e+" "+t).valueOf();n/=1e3,i("update:modelValue",n)}})),n((()=>e.modelValue),(e=>{e||(s.value="",l.value="")})),n((()=>o.value),(e=>{i("update:raise_duration",e)})),n((()=>e.raise_duration),(e=>{o.value=e})),()=>a("div",{class:"custom-chose-raise"},[a("div",{class:"custom-upload-label"},[u("定时养号")]),a("div",{class:"chose-time"},[a(r("t-date-picker"),{modelValue:s.value,"onUpdate:modelValue":e=>s.value=e},null),a(r("t-timePicker"),{modelValue:l.value,"onUpdate:modelValue":e=>l.value=e},null),a(r("t-select"),{popupProps:{overlayClassName:"select-raise-time"},modelValue:o.value,"onUpdate:modelValue":e=>o.value=e,options:d,placeholder:"时长"},null)])])}}),$=e({props:{modelValue:String},emits:["update:modelValue"],setup(e,{emit:i}){const s=t(null),l=t(null);return n((()=>e.modelValue),(e=>{e||(s.value=null,l.value=null)})),n((()=>[s.value,l.value]),(([e,t])=>{e&&t&&i("update:modelValue",e+"-"+t)})),()=>a("div",{class:"custom-random-stop"},[a("div",{class:"custom-upload-label"},[u("停留时长")]),a("div",{class:"value"},[a(r("t-input-number"),{placeholder:"最小停留时间",modelValue:s.value,"onUpdate:modelValue":e=>s.value=e},null),a("div",{class:"line"},[u("-")]),a(r("t-input-number"),{placeholder:"最大停留时间",modelValue:l.value,"onUpdate:modelValue":e=>l.value=e},null)])])}}),g=e({setup(e,c){const v=t(!1),m=t(null),g=t(0),y=t(3e5),M=t(""),D=t(!1),S=t("upload");n((()=>[g.value,y.value,M.value]),(e=>{for(let t=0;t<e.length;t++)if(e[t]){D.value=!0;break}}));const b=async()=>{if(D.value){if(!m.value)return h.closeAll(),void h.warning("请选择账户");if(!g.value)return h.closeAll(),void h.warning("请选择养号开始时间");try{let e=[{startTime:g.value,raise_duration:y.value,dwell_interval:M.value}];v.value=!0,0==(await f({account_id:m.value,parameters:e,type:7})).code&&(h.success("上传成功"),D.value=!1),v.value=!1}catch(e){v.value=!1}}},w=()=>{g.value=0,y.value=3e5,M.value=""};return()=>a("div",{class:"custom-raise-number narrow-scrollbar"},[a("div",{class:"custom-upload-link-page-child"},[a(o,{record:["发布记录","发布任务"],hideAll:!1,modelValue:S.value,"onUpdate:modelValue":e=>S.value=e,accountId:m.value,"onUpdate:accountId":e=>m.value=e},null),"upload"!=S.value?a(d,{type:7},null):"",i(a("div",null,[a(p,{modelValue:g.value,"onUpdate:modelValue":e=>g.value=e,raise_duration:y.value,raise_durationModifiers:{duration:!0},"onUpdate:raise_duration":e=>y.value=e},null),a($,{modelValue:M.value,"onUpdate:modelValue":e=>M.value=e},null),a(r("t-button"),{class:["submit-btn",D.value?"active":""],onClick:b},{default:()=>[u("确认")]}),a(r("t-button"),{class:"on-reset",onClick:w},{default:()=>[u("重置")]})]),[[s,"upload"==S.value]]),i(a(l,{poistion:"fixed",background:"rgba(200,200,200,0.2)"},null),[[s,v.value]])])])}});export{g as default};
import{d as e,c as t,r,x as a,E as o,K as s,b as l,R as n,P as c,z as i,s as u,v as p,L as d,O as v,M as m,G as f}from"./vue-bb074a25.js";import{C as y,D as O,F as h,aN as b,aO as g}from"./index-ed4f56aa.js";import{A as w}from"./Animation-9f506a38.js";import"./_plugin-vue_export-helper-1b428a4d.js";function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var P={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.5 11h5v2H3v1h10v-1H8.5v-2h5a1 1 0 001-1V3a1 1 0 00-1-1h-11a1 1 0 00-1 1v7a1 1 0 001 1zm0-8h11v7h-11V3z",fillOpacity:.9}}]},_=e({name:"DesktopIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,r){var{attrs:a}=r,o=t((()=>e.size)),{className:s,style:l}=y(o),n=t((()=>["t-icon","t-icon-desktop",s.value])),c=t((()=>k(k({},l.value),a.style))),i=t((()=>({class:n.value,style:c.value,onClick:t=>{var r;return null===(r=e.onClick)||void 0===r?void 0:r.call(e,{e:t})}})));return()=>O(P,i.value)}});function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var V={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M6 10v1h4v-1H6z",fillOpacity:.9}},{tag:"path",attrs:{fill:"currentColor",d:"M4.5 5v1H3a.5.5 0 00-.5.5v7c0 .28.22.5.5.5h10a.5.5 0 00.5-.5v-7A.5.5 0 0013 6h-1.5V5a3.5 3.5 0 00-7 0zm6 1h-5V5a2.5 2.5 0 015 0v1zm-7 1h9v6h-9V7z",fillOpacity:.9}}]},C=e({name:"LockOnIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,r){var{attrs:a}=r,o=t((()=>e.size)),{className:s,style:l}=y(o),n=t((()=>["t-icon","t-icon-lock-on",s.value])),c=t((()=>z(z({},l.value),a.style))),i=t((()=>({class:n.value,style:c.value,onClick:t=>{var r;return null===(r=e.onClick)||void 0===r?void 0:r.call(e,{e:t})}})));return()=>O(V,i.value)}});const D={class:"custom-login"},S=d("div",{class:"custom-login-title"},"登录",-1),E=e({__name:"login",setup(e){const d=v(),y=m(),O=r(!1),h=a({account:"",password:""}),j=t((()=>({account:[{required:!0,messgae:"账号不能为空",type:"error"}],password:[{required:!0,message:"密码不能为空",type:"error"}]}))),k=()=>{b.success("重置成功")},P=async({validateResult:e,firstError:t})=>{if(!0===e)try{O.value=!0;let e=await g({email:h.account,password:h.password});0==e.code&&(b.success("登录成功"),y.commit("user/setToken",{token:e.data.access_token,time:e.data.expires_in}),d.replace({path:"/upload"})),O.value=!1}catch(r){O.value=!1}else b.closeAll(),b.warning(t)};return(e,t)=>{const r=f("t-input"),a=f("t-form-item"),d=f("t-button"),v=f("t-form");return o(),s("div",D,[S,l(v,{ref:"form",class:"custom-login-form",data:h,rules:c(j),colon:!0,"label-width":0,onReset:k,onSubmit:P},{default:n((()=>[l(a,{name:"account"},{default:n((()=>[l(r,{modelValue:h.account,"onUpdate:modelValue":t[0]||(t[0]=e=>h.account=e),clearable:"",placeholder:"请输入账户名"},{"prefix-icon":n((()=>[l(c(_))])),_:1},8,["modelValue"])])),_:1}),l(a,{name:"password"},{default:n((()=>[l(r,{modelValue:h.password,"onUpdate:modelValue":t[1]||(t[1]=e=>h.password=e),type:"password",clearable:"",placeholder:"请输入密码"},{"prefix-icon":n((()=>[l(c(C))])),_:1},8,["modelValue"])])),_:1}),l(a,null,{default:n((()=>[l(d,{theme:"primary",type:"submit",block:""},{default:n((()=>[i("登录")])),_:1})])),_:1})])),_:1},8,["data","rules"]),u(l(w,{poistion:"fixed",background:"rgba(200,200,200,0.2)"},null,512),[[p,O.value]])])}}}),A={class:"custom-home-page-login"},H=e({__name:"index",setup:e=>(e,t)=>(o(),s("div",A,[l(E)]))});export{H as default};
This source diff could not be displayed because it is too large. You can view the blob instead.
System.register(["./vue-legacy-69141e23.js","./index-legacy-5a561c9e.js","./index-legacy-01eea9e6.js","./Animation-legacy-b8979f4f.js","./v4-legacy-812d82cf.js","./_plugin-vue_export-helper-legacy-762b7923.js"],(function(e,l){"use strict";var a,u,t,s,o,d,n,c,i,p,v,r,m,V,g,h,b,y,f,w,U;return{setters:[e=>{a=e.d,u=e.r,t=e.x,s=e.w,o=e.o,d=e.b,n=e.z,c=e.G,i=e.M,p=e.s,v=e.v},e=>{r=e.S,m=e.U},e=>{V=e.aT,g=e.aP,h=e.aN,b=e.aU},e=>{y=e.A},e=>{f=e.U,w=e.v,U=e.i},null],execute:function(){const l=a({props:{accountId:Number,modelValue:String},emits:["update:modelValue"],setup(e,{emit:l}){i();const a=u([]);let p=null;// 图片上传策略
const v=u({}),r=u(0),m=t({url:"",status:0,// 当前上传模块提交的状态
uploadStatus:!1}),b=l=>l.size<=102400?(h.warning("文件不能小于100KB"),!1):!!e.accountId||(h.warning("请先选择一个账户"),!1);// 上传进度条
s((()=>e.modelValue),((e="")=>{m.url=e,e||(m.status=0,m.uploadStatus=!1)}));// 上传进度定时器
const y=(e,a)=>(// 开启一个定时器,模拟上传进度
r.value=0,p=setInterval((()=>{99!=r.value&&(r.value+=1)}),100),new Promise((u=>{let t=w();// 上传中状态
m.status=1;let s="";// 线上
s="https://"+a.host,setTimeout((()=>{let o=e[0].type.replace("image/","."),d=new FormData;d.append("key",a.dir+t+o),d.append("policy",a.policy),d.append("OSSAccessKeyId",a.accessid),d.append("success_action_status","200"),d.append("callback",a.callback),d.append("signature",a.signature),d.append("file",e[0].raw),U.post(s,d,{headers:{"Content-Type":"multipart/form-data;charset=utf-8"}}).then((e=>{// resolve 参数为关键代码
200==e?(((e,a)=>{// 关闭定时器
window.clearInterval(p),h.success("上传成功"),// 将将完整url传给父组件
m.url=a,// 成功2
m.status=2,l("update:modelValue",m.url)})(0,a.domain+a.dir+t+o),m.uploadStatus=!0,u({status:"success",response:{url:m.url}})):(// 关闭定时器
window.clearInterval(p),m.url="",// 失败0
m.status=0,l("update:modelValue",m.url),h.warning("上传失败"),m.uploadStatus=!1,u({status:"fail",error:"上传失败,请检查文件是否符合规范"}))})).catch((e=>{}))}),1e3)}))),x=({file:e})=>{h.error(`文件 ${e.name} 上传失败`)},k=async e=>(await y(e,v.value),{status:"success",response:{url:m.url}}),S=()=>0==m.status?I():1==m.status?d("div",{class:"custom-uploading-stauts"},[d(c("t-progress"),{theme:"circle",percentage:r.value,size:"small"},null),d("div",{class:"uploading-title"},[n("正在上传")])]):d("div",{class:"custom-uploading-stauts"},[d("img",{class:"img",src:m.url,alt:""},null)]);// 上传成功回调
o((()=>{(async()=>{try{let e=await V({id:2});0==e.code&&(v.value=e.data)}catch(e){}})()}));// 未上传
const I=()=>d(c("t-upload"),{modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,method:"PUT",requestMethod:k,headers:{authorization:`Bearer ${g()}`},accept:"image/*",theme:"custom","before-upload":b,multiple:!0,max:1,draggable:!0,onfail:x},{default:()=>[d("div",{class:"custom-upload-click-box"},[d("div",{class:"title"},[n("选择照片")]),d("div",{class:"title2"},[n("或拖照片到此处上传")]),d("div",{class:"title3"},[n("!注意照片不得小于100KB")]),d("div",null,[d(f,null,null)]),d(c("t-button"),{class:"custom-chose-file"},{default:()=>[n("选择照片")]})])]});return()=>d("div",{class:"custom-upload-avatar"},[d("div",{class:"custom-upload-label"},[n("上传头像")]),d("div",{class:"upload-avatar-box"},[d("div",{class:"upload-avatar-box-child"},[S(),d("div",{class:"tips"},[n("如果只需要修改其中某个选项,其他默认留空即可。")])])])])}}),x=a({props:{modelValue:String},emits:["update:modelValue"],setup(e,{emit:l}){const a=u(e.modelValue),t=e=>{l("update:modelValue",e)};return s((()=>e.modelValue),(e=>{a.value=e})),()=>d("div",{class:"custom-change-name"},[d("div",{class:"custom-upload-label"},[n("修改名称")]),d("div",{class:"change-name-input"},[d(c("t-input"),{modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,onChange:t},null)])])}}),k=a({props:{modelValue:String},emits:["update:modelValue"],setup(e,{emit:l}){const a=u(e.modelValue),t=e=>{l("update:modelValue",e)};return s((()=>e.modelValue),(e=>{a.value=e})),()=>d("div",{class:"custom-up-link"},[d("div",{class:"custom-upload-label"},[n("上传链接")]),d("div",{class:"change-name-input"},[d(c("t-input"),{modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,onChange:t},null)])])}}),S=a({props:{modelValue:String},emits:["update:modelValue"],setup(e,{emit:l}){const a=u(""),t=e=>{l("update:modelValue",e)};return s((()=>e.modelValue),((e="")=>{a.value=e})),()=>d("div",{class:"change-Introduction-box"},[d("div",{class:"label"},[n("简介")]),d("div",{class:"value"},[d(c("t-textarea"),{placeholder:"请输入内容",class:"upload-textarea",autosize:{minRows:3,maxRows:5},modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,onChange:t},null)])])}}),I=a({props:{modelValue:Boolean,options:Array},emits:["update:modelValue"],setup(e,{emit:l}){const a=u(e.modelValue),t=e=>{l("update:modelValue",e)};return s((()=>e.modelValue),(e=>{a.value=e})),()=>d("div",{class:"custom-hide-video"},[d("div",{class:"custom-upload-label"},[n("隐藏视频")]),d("div",{class:"change-check"},[d(c("t-radio-group"),{modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,options:e.options,onChange:t},null)])])}});e("default",a({setup(e){const a=u(null),t=u(!1),o=u(!1),i=u(""),V=u(""),g=u("upload"),f=u(""),w=u(""),U=u(!1),_=[{label:"否",value:!1},{label:"是",value:!0}],C=()=>!!((i.value||V.value||f.value||U.value||w.value)&&a.value&&t.value);s((()=>[i.value,V.value,f.value,w.value,U.value]),(e=>{for(let l=0;l<e.length;l++)if(e[l])return void(t.value=!0)}));// 过滤出任务列表
const j=async()=>{if(C())// 通过
try{o.value=!0;// 要传递的数组
let e=(()=>{let e=[];if(w.value){// 上传链接
let l={};l.url=w.value,l.type=2,e.push(l)}if(f.value){// 修改简介
let l={};l.introduction=f.value,l.type=3,e.push(l)}if(i.value){// 上传头像
let l={};l.avatar_url=i.value,l.type=4,e.push(l)}if(V.value){// 修改名称
let l={};l.account_name=V.value,l.type=5,e.push(l)}if(U.value){// 隐藏视频
let l={};l.hide_video=U.value,l.type=6,e.push(l)}return e})();0==(await b({account_id:a.value,parameters:e})).code&&(// 成功-将提交按钮置灰
t.value=!1,h.success("上传成功")),o.value=!1}catch(e){o.value=!1}},z=()=>{i.value="",V.value="",f.value="",w.value="",t.value=!1,U.value=!1};return()=>d("div",{class:"custom-upload-link-page narrow-scrollbar"},[d("div",{class:"custom-upload-link-page-child"},[d(r,{modelValue:g.value,"onUpdate:modelValue":e=>g.value=e,record:["发布记录","发布任务"],accountId:a.value,"onUpdate:accountId":e=>a.value=e},null),"upload"!=g.value?d(m,{type:0},null):"",p(d("div",{class:"upload-link-box"},[d(l,{accountId:a.value??0,modelValue:i.value,"onUpdate:modelValue":e=>i.value=e},null),d(x,{modelValue:V.value,"onUpdate:modelValue":e=>V.value=e},null),d(k,{modelValue:w.value,"onUpdate:modelValue":e=>w.value=e},null),d(S,{modelValue:f.value,"onUpdate:modelValue":e=>f.value=e},null),d(I,{modelValue:U.value,"onUpdate:modelValue":e=>U.value=e,options:_},null),d(c("t-button"),{class:["submit-btn",C()?"active":""],onClick:j},{default:()=>[n("确认")]}),d(c("t-button"),{class:"on-reset",onClick:z},{default:()=>[n("重置")]})]),[[v,"upload"==g.value]]),p(d(y,{poistion:"fixed",background:"rgba(200,200,200,0.2)"},null),[[v,o.value]])])])}}))}}}));
System.register(["./vue-legacy-69141e23.js","./index-legacy-01eea9e6.js"],(function(e,t){"use strict";var a,l,u,o,c,s,n,i,r,d;return{setters:[e=>{a=e.d,l=e.c,u=e.w,o=e.r,c=e.o,s=e.b,n=e.z,i=e.G,r=e.M},e=>{d=e.aS}],execute:function(){e("S",a({props:{modelValue:String,record:{type:Array},hideAll:{type:Boolean,default:!0}},emits:["update:modelValue","update:accountId"],setup(e,{emit:t}){const a=r(),d=l((()=>a.getters["user/getOptions"]));// 选择列表
u((()=>d.value),(e=>{}));const p=l((()=>{let t=JSON.parse(JSON.stringify(d.value));return e.hideAll||// 增加一个all
t.unshift({label:"所有账号",value:"all"}),t})),v=o(""),m=({value:e,e:t})=>{},g=({value:e,e:t})=>{},h=e=>{a.commit("user/setUserChoseAccount",e),t("update:accountId",e)},y=({value:e,e:t,inputValue:a})=>{},b=()=>{const{modelValue:a}=e;t("update:modelValue","upload"==a?"table":"upload")};return c((()=>{d.value.length||a.dispatch("user/AcountOptions")})),()=>s("div",{class:"custom-chose-account"},[s("div",{class:"chose-account-left"},[s("div",{class:"chose-account-title"},[n("选择账户")]),s(i("t-select"),{class:"chose-account-select",modelValue:v.value,"onUpdate:modelValue":e=>v.value=e,placeholder:"选择一个账户",options:p.value,style:"width: 200px; display: inline-block;",filterable:!0,onblur:m,onfocus:g,onenter:y,onChange:h},null)]),s("div",{class:"choose-account-right"},[e.record?s(i("t-button"),{onClick:b},{default:()=>["upload"==e.modelValue?e.record[0]:e.record[1]]}):""])])}})),e("U",a({props:{type:Number},setup(e){const t=r(),a=o([]),n=o(1),p=o(10),v=o(0),m=o(!1),g=l((()=>t.getters["user/getAccount"])),h=async()=>{try{m.value=!0;let t=await d({limit:p.value,page:n.value,account_id:g.value?g.value:void 0,type:e.type});0==t.code&&(t.data.data.forEach((e=>{e.n_title=e.parameters.title})),a.value=t.data.data,v.value=t.data.total),m.value=!1}catch(t){m.value=!1}};u((()=>g.value),(e=>{n.value=1,h()})),u((()=>p.value),(e=>{// 页数变化重新请求
h()})),c((()=>{// 请求表格
h()}));const y=e=>{n.value=e,h()},b=[{title:"账号",colKey:"account_name"},{title:"内容",colKey:"n_title"},{title:"发布",colKey:"status_label"},{title:"发布时间",colKey:"publish_time"}];return()=>s("div",{class:"custom-submit-table"},[s(i("t-table"),{data:a.value,"row-key":"index",columns:b,hover:!0,ShowJumper:!0,loading:m.value},null),s("div",{class:"custom-pagination-box"},[s(i("t-pagination"),{pageNum:n.value,"onUpdate:pageNum":e=>n.value=e,pageSize:p.value,"onUpdate:pageSize":e=>p.value=e,total:v.value,onCurrentChange:y},null)])])}}))}}}));
This source diff could not be displayed because it is too large. You can view the blob instead.
System.register(["./vue-legacy-69141e23.js","./index-legacy-01eea9e6.js","./Animation-legacy-b8979f4f.js","./_plugin-vue_export-helper-legacy-762b7923.js"],(function(e,t){"use strict";var r,a,o,l,n,c,s,i,u,p,d,v,f,m,y,g,O,h,b,w,j,k;return{setters:[e=>{r=e.d,a=e.c,o=e.r,l=e.x,n=e.E,c=e.K,s=e.b,i=e.R,u=e.P,p=e.z,d=e.s,v=e.v,f=e.L,m=e.O,y=e.M,g=e.G},e=>{O=e.C,h=e.D,b=e.F,w=e.aN,j=e.aO},e=>{k=e.A},null],execute:function(){function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function P(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?t(Object(a),!0).forEach((function(t){b(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var _={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.5 11h5v2H3v1h10v-1H8.5v-2h5a1 1 0 001-1V3a1 1 0 00-1-1h-11a1 1 0 00-1 1v7a1 1 0 001 1zm0-8h11v7h-11V3z",fillOpacity:.9}}]},x=r({name:"DesktopIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:r}=t,o=a((()=>e.size)),{className:l,style:n}=O(o),c=a((()=>["t-icon","t-icon-desktop",l.value])),s=a((()=>P(P({},n.value),r.style))),i=a((()=>({class:c.value,style:s.value,onClick:t=>{var r;return null===(r=e.onClick)||void 0===r?void 0:r.call(e,{e:t})}})));return()=>h(_,i.value)}});function z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function V(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?z(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var C={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M6 10v1h4v-1H6z",fillOpacity:.9}},{tag:"path",attrs:{fill:"currentColor",d:"M4.5 5v1H3a.5.5 0 00-.5.5v7c0 .28.22.5.5.5h10a.5.5 0 00.5-.5v-7A.5.5 0 0013 6h-1.5V5a3.5 3.5 0 00-7 0zm6 1h-5V5a2.5 2.5 0 015 0v1zm-7 1h9v6h-9V7z",fillOpacity:.9}}]},D=r({name:"LockOnIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,t){var{attrs:r}=t,o=a((()=>e.size)),{className:l,style:n}=O(o),c=a((()=>["t-icon","t-icon-lock-on",l.value])),s=a((()=>V(V({},n.value),r.style))),i=a((()=>({class:c.value,style:s.value,onClick:t=>{var r;return null===(r=e.onClick)||void 0===r?void 0:r.call(e,{e:t})}})));return()=>h(C,i.value)}});const S={class:"custom-login"},E=f("div",{class:"custom-login-title"},"登录",-1),A=r({__name:"login",setup(e){const t=m(),r=y(),f=o(!1),O=l({account:"",password:""}),h=a((()=>({account:[{required:!0,messgae:"账号不能为空",type:"error"}],password:[{required:!0,message:"密码不能为空",type:"error"}]}))),b=()=>{w.success("重置成功")},P=async({validateResult:e,firstError:a})=>{if(!0===e)try{f.value=!0;let e=await j({email:O.account,password:O.password});0==e.code&&(w.success("登录成功"),r.commit("user/setToken",{token:e.data.access_token,time:e.data.expires_in}),t.replace({path:"/upload"})),f.value=!1}catch(o){f.value=!1}else w.closeAll(),w.warning(a)};return(e,t)=>{const r=g("t-input"),a=g("t-form-item"),o=g("t-button"),l=g("t-form");return n(),c("div",S,[E,s(l,{ref:"form",class:"custom-login-form",data:O,rules:u(h),colon:!0,"label-width":0,onReset:b,onSubmit:P},{default:i((()=>[s(a,{name:"account"},{default:i((()=>[s(r,{modelValue:O.account,"onUpdate:modelValue":t[0]||(t[0]=e=>O.account=e),clearable:"",placeholder:"请输入账户名"},{"prefix-icon":i((()=>[s(u(x))])),_:1},8,["modelValue"])])),_:1}),s(a,{name:"password"},{default:i((()=>[s(r,{modelValue:O.password,"onUpdate:modelValue":t[1]||(t[1]=e=>O.password=e),type:"password",clearable:"",placeholder:"请输入密码"},{"prefix-icon":i((()=>[s(u(D))])),_:1},8,["modelValue"])])),_:1}),s(a,null,{default:i((()=>[s(o,{theme:"primary",type:"submit",block:""},{default:i((()=>[p("登录")])),_:1})])),_:1})])),_:1},8,["data","rules"]),d(s(k,{poistion:"fixed",background:"rgba(200,200,200,0.2)"},null,512),[[v,f.value]])])}}}),H={class:"custom-home-page-login"};e("default",r({__name:"index",setup:e=>(e,t)=>(n(),c("div",H,[s(A)]))}))}}}));
This source diff could not be displayed because it is too large. You can view the blob instead.
import{E as e,K as r,L as t}from"./vue-bb074a25.js";import{aQ as o,aN as n}from"./index-ed4f56aa.js";const s={width:"40",height:"30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c=[t("path",{d:"M22.125 20.833v4.584h8.333c2.917-.417 5.209-3.125 5.209-6.25 0-3.542-2.709-6.25-6.25-6.25-.834 0-1.459.208-2.084.416v-.416c0-4.584-3.75-8.334-8.333-8.334s-8.333 3.75-8.333 8.334c0 .833.208 1.458.208 2.291C10.458 15 10.042 15 9.625 15c-2.917 0-5.208 2.292-5.208 5.208 0 2.917 2.291 5.209 5.208 5.209h8.333v-4.584l-2.291 2.292-2.917-2.917 7.292-7.291 7.291 7.291-2.916 2.917-2.292-2.292Zm0 4.584v4.166h-4.167v-4.166h-2.083v4.166h-6.25A9.336 9.336 0 0 1 .25 20.208c0-4.166 2.708-7.708 6.25-8.958C7.333 5.208 12.542.417 19 .417c5.417 0 10.208 3.541 11.875 8.333 5 .625 8.958 5 8.958 10.417 0 5.416-4.166 9.791-9.375 10.416h-6.25v-4.166h-2.083Z",fill:"#999"},null,-1),t("path",{d:"M22.125 20.833v4.584h8.333c2.917-.417 5.209-3.125 5.209-6.25 0-3.542-2.709-6.25-6.25-6.25-.834 0-1.459.208-2.084.416v-.416c0-4.584-3.75-8.334-8.333-8.334s-8.333 3.75-8.333 8.334c0 .833.208 1.458.208 2.291C10.458 15 10.042 15 9.625 15c-2.917 0-5.208 2.292-5.208 5.208 0 2.917 2.291 5.209 5.208 5.209h8.333v-4.584l-2.291 2.292-2.917-2.917 7.292-7.291 7.291 7.291-2.916 2.917-2.292-2.292Zm0 4.584v4.166h-4.167v-4.166h-2.083v4.166h-6.25A9.336 9.336 0 0 1 .25 20.208c0-4.166 2.708-7.708 6.25-8.958C7.333 5.208 12.542.417 19 .417c5.417 0 10.208 3.541 11.875 8.333 5 .625 8.958 5 8.958 10.417 0 5.416-4.166 9.791-9.375 10.416h-6.25v-4.166h-2.083Z",fill:"#999"},null,-1)];const a={render:function(t,o){return e(),r("svg",s,c)}},i=o.create({timeout:6e6,withCredentials:!1});let u;i.interceptors.request.use((e=>e)),i.interceptors.response.use((e=>{const{data:r,status:t}=e;return 201==t||200==t?t:0===r.code?r:(n.error(r.msg||"请求错误"),Promise.reject(r.msg))}),(e=>{if("response"in e){const{message:r}=e.response.data;return-1!==e.response.data.indexOf("<Code>UserDisable</Code>")?n.error("阿里云可能欠费"):n.error(r||"请求错误"),e.response}}));const d=new Uint8Array(16);function p(){if(!u&&(u="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!u))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return u(d)}const h=[];for(let f=0;f<256;++f)h.push((f+256).toString(16).slice(1));const l={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function m(e,r,t){if(l.randomUUID&&!r&&!e)return l.randomUUID();const o=(e=e||{}).random||(e.rng||p)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,r){t=t||0;for(let e=0;e<16;++e)r[t+e]=o[e];return r}return function(e,r=0){return(h[e[r+0]]+h[e[r+1]]+h[e[r+2]]+h[e[r+3]]+"-"+h[e[r+4]]+h[e[r+5]]+"-"+h[e[r+6]]+h[e[r+7]]+"-"+h[e[r+8]]+h[e[r+9]]+"-"+h[e[r+10]]+h[e[r+11]]+h[e[r+12]]+h[e[r+13]]+h[e[r+14]]+h[e[r+15]]).toLowerCase()}(o)}export{a as U,i,m as v};
System.register(["./vue-legacy-69141e23.js","./index-legacy-01eea9e6.js"],(function(e,t){"use strict";var r,n,o,s,c;return{setters:[e=>{r=e.E,n=e.K,o=e.L},e=>{s=e.aQ,c=e.aN}],execute:function(){e("v",(function(e,t,r){if(l.randomUUID&&!t&&!e)return l.randomUUID();const n=(e=e||{}).random||(e.rng||p)();// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
// Copy bytes to buffer, if provided
if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return function(e,t=0){// Note: Be careful editing this code! It's been tuned for performance
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
return(h[e[t+0]]+h[e[t+1]]+h[e[t+2]]+h[e[t+3]]+"-"+h[e[t+4]]+h[e[t+5]]+"-"+h[e[t+6]]+h[e[t+7]]+"-"+h[e[t+8]]+h[e[t+9]]+"-"+h[e[t+10]]+h[e[t+11]]+h[e[t+12]]+h[e[t+13]]+h[e[t+14]]+h[e[t+15]]).toLowerCase()}(n)}));const t={width:"40",height:"30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u=[o("path",{d:"M22.125 20.833v4.584h8.333c2.917-.417 5.209-3.125 5.209-6.25 0-3.542-2.709-6.25-6.25-6.25-.834 0-1.459.208-2.084.416v-.416c0-4.584-3.75-8.334-8.333-8.334s-8.333 3.75-8.333 8.334c0 .833.208 1.458.208 2.291C10.458 15 10.042 15 9.625 15c-2.917 0-5.208 2.292-5.208 5.208 0 2.917 2.291 5.209 5.208 5.209h8.333v-4.584l-2.291 2.292-2.917-2.917 7.292-7.291 7.291 7.291-2.916 2.917-2.292-2.292Zm0 4.584v4.166h-4.167v-4.166h-2.083v4.166h-6.25A9.336 9.336 0 0 1 .25 20.208c0-4.166 2.708-7.708 6.25-8.958C7.333 5.208 12.542.417 19 .417c5.417 0 10.208 3.541 11.875 8.333 5 .625 8.958 5 8.958 10.417 0 5.416-4.166 9.791-9.375 10.416h-6.25v-4.166h-2.083Z",fill:"#999"},null,-1),o("path",{d:"M22.125 20.833v4.584h8.333c2.917-.417 5.209-3.125 5.209-6.25 0-3.542-2.709-6.25-6.25-6.25-.834 0-1.459.208-2.084.416v-.416c0-4.584-3.75-8.334-8.333-8.334s-8.333 3.75-8.333 8.334c0 .833.208 1.458.208 2.291C10.458 15 10.042 15 9.625 15c-2.917 0-5.208 2.292-5.208 5.208 0 2.917 2.291 5.209 5.208 5.209h8.333v-4.584l-2.291 2.292-2.917-2.917 7.292-7.291 7.291 7.291-2.916 2.917-2.292-2.292Zm0 4.584v4.166h-4.167v-4.166h-2.083v4.166h-6.25A9.336 9.336 0 0 1 .25 20.208c0-4.166 2.708-7.708 6.25-8.958C7.333 5.208 12.542.417 19 .417c5.417 0 10.208 3.541 11.875 8.333 5 .625 8.958 5 8.958 10.417 0 5.416-4.166 9.791-9.375 10.416h-6.25v-4.166h-2.083Z",fill:"#999"},null,-1)];e("U",{render:function(e,o){return r(),n("svg",t,u)}});const i=e("i",s.create({timeout:6e6,withCredentials:!1}));// Unique ID creation requires a high quality random # generator. In the browser we therefore
// require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()).
let a;i.interceptors.request.use((e=>e)),i.interceptors.response.use((e=>{const{data:t,status:r}=e;return 201==r||200==r?r:0===t.code?t:(c.error(t.msg||"请求错误"),Promise.reject(t.msg))}),(e=>{if("response"in e){const{message:t}=e.response.data;return-1!==e.response.data.indexOf("<Code>UserDisable</Code>")?c.error("阿里云可能欠费"):c.error(t||"请求错误"),e.response}}));const d=new Uint8Array(16);function p(){// lazy load so that environments that need to polyfill have a chance to do so
if(!a&&(// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
a="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!a))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(d)}
/**
* Convert array of 16 byte values to UUID string format of the form:
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
*/const h=[];for(let e=0;e<256;++e)h.push((e+256).toString(16).slice(1));const l={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}}}}));
This source diff could not be displayed because it is too large. You can view the blob instead.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
/>
<title>TikTok-upload</title>
<script type="module" crossorigin src="/assets/index-597a35e6.js"></script>
<link rel="modulepreload" crossorigin href="/assets/vue-bb074a25.js">
<link rel="modulepreload" crossorigin href="/assets/index-ed4f56aa.js">
<link rel="modulepreload" crossorigin href="/assets/_plugin-vue_export-helper-1b428a4d.js">
<link rel="stylesheet" href="/assets/style-a8b60254.css">
<script type="module">try{import.meta.url;import("_").catch(()=>1);}catch(e){}window.__vite_is_modern_browser=true;</script>
<script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy build because dynamic import or import.meta.url is unsupported, syntax error above should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
</head>
<body>
<div id="app"></div>
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
<script nomodule crossorigin id="vite-legacy-polyfill" src="/assets/polyfills-legacy-b7b22370.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="/assets/index-legacy-7dc10ef0.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>
</html>
192.168.1.1:3000
\ No newline at end of file
<svg width="23" height="26" viewBox="0 0 23 26" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.5919 0.5C11.9687 0.5 12.2741 0.800513 12.2741 1.17121V5.57183L14.6679 3.2164C14.9342 2.95427 15.3662 2.95427 15.6325 3.2164C15.8989 3.47853 15.8989 3.90352 15.6325 4.16564L12.2741 7.47031V11.8362L16.1225 9.64986L17.3502 5.14146C17.4477 4.78339 17.8218 4.5709 18.1857 4.66684C18.5496 4.76279 18.7655 5.13084 18.668 5.48891L17.7934 8.70062L21.6627 6.50246C21.989 6.31711 22.4062 6.4271 22.5946 6.74814C22.7829 7.06918 22.6711 7.47969 22.3449 7.66504L18.4718 9.86535L21.7417 10.7275C22.1056 10.8234 22.3216 11.1915 22.2241 11.5496C22.1266 11.9076 21.7525 12.1201 21.3886 12.0242L16.8009 10.8146L12.9584 12.9975L16.8069 15.1838L21.3886 13.9758C21.7525 13.8799 22.1266 14.0924 22.2241 14.4504C22.3216 14.8085 22.1056 15.1766 21.7417 15.2725L18.4778 16.1331L22.3471 18.3312C22.6733 18.5166 22.7851 18.9271 22.5967 19.2481C22.4084 19.5692 21.9912 19.6792 21.6649 19.4938L17.7918 17.2935L18.668 20.5111C18.7655 20.8692 18.5496 21.2372 18.1857 21.3332C17.8218 21.4291 17.4477 21.2166 17.3502 20.8585L16.1209 16.3443L12.2741 14.1589V18.5407L15.6325 21.8454C15.8989 22.1075 15.8989 22.5325 15.6325 22.7946C15.3662 23.0567 14.9342 23.0567 14.6679 22.7946L12.2741 20.4392V24.8288C12.2741 25.1995 11.9687 25.5 11.5919 25.5C11.2152 25.5 10.9098 25.1995 10.9098 24.8288V20.4435L8.52039 22.7946C8.254 23.0567 7.82209 23.0567 7.5557 22.7946C7.28931 22.5325 7.28931 22.1075 7.5557 21.8454L10.9098 18.545V14.1613L7.05762 16.3498L5.82833 20.864C5.73083 21.2221 5.35678 21.4346 4.99288 21.3387C4.62899 21.2427 4.41303 20.8747 4.51054 20.5166L5.38672 17.299L1.52332 19.4938C1.19706 19.6792 0.779871 19.5692 0.591504 19.2481C0.403136 18.9271 0.514921 18.5166 0.841184 18.3312L4.7008 16.1386L1.43681 15.278C1.07291 15.1821 0.856957 14.814 0.954464 14.4559C1.05197 14.0979 1.42601 13.8854 1.78991 13.9813L6.3717 15.1893L10.2298 12.9975L6.37765 10.8091L1.78991 12.0187C1.42601 12.1146 1.05197 11.9021 0.95446 11.5441C0.856953 11.186 1.07291 10.8179 1.43681 10.722L4.70676 9.85984L0.843363 7.66504C0.517099 7.47969 0.405314 7.06918 0.593682 6.74814C0.78205 6.4271 1.19924 6.31711 1.5255 6.50246L5.38512 8.69512L4.51054 5.4834C4.41303 5.12533 4.62898 4.75728 4.99288 4.66134C5.35678 4.56539 5.73083 4.77789 5.82833 5.13596L7.05602 9.64436L10.9098 11.8337V7.46602L7.5557 4.16564C7.28931 3.90352 7.28931 3.47853 7.5557 3.2164C7.82209 2.95427 8.254 2.95427 8.52039 3.2164L10.9098 5.56754V1.17121C10.9098 0.800513 11.2152 0.5 11.5919 0.5Z" fill="#2962FF"/>
</svg>
\ No newline at end of file
const path = require('path');
const express = require('express');
const { createProxyMiddleware } = require('http-proxy-middleware');
// const history = require('connect-history-api-fallback');
const app = express();
// 处理单页应用路由
// app.use(history());
// 代理对象地址
// 读取本地配置的ip
app.use(
'/video',
createProxyMiddleware({
target: 'http://192.168.1.19:5000',
changeOrigin: true,
// pathRewrite: {
// '^api': '',
// },
})
);
// 加载静态资源
app.use(express.static('./dist'));
// 启动服务
app.listen(3001, () => {
console.log('success => http://localhost:3001');
});
......@@ -12,7 +12,9 @@ export default defineConfig(({ command, mode }) => {
let newDate = `${date.getFullYear()}-${
date.getMonth() + 1
}-${date.getDate()}--${date.getHours()}.${date.getMinutes()}`;
let api = 0 ? 'http://42.194.143.229:90' : 'http://videopublish.test';
// tiktok.upload.com
// http://videopublish.test
let api = 0 ? 'http://42.194.143.229:90' : 'http://tiktok.upload.com';
return {
base: '/',
resolve: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment