|
|
@@ -1,85 +1,74 @@
|
|
|
<template>
|
|
|
- <CommonRoot>
|
|
|
- <FlexCol :innerStyle="{
|
|
|
- backgroundImage: 'url(https://xy.wenlvti.net/app_static/images/dig/TopBanner.png)',
|
|
|
- backgroundSize: '100% auto',
|
|
|
- backgroundRepeat: 'no-repeat',
|
|
|
- backgroundPosition: 'top center',
|
|
|
- minHeight: '100vh',
|
|
|
- }">
|
|
|
- <StatusBarSpace />
|
|
|
- <NavBar title="发布微信贴图" leftButton="back" rightButton="add" />
|
|
|
- <FlexCol padding="space.lg">
|
|
|
- <ProvideVar
|
|
|
- :vars="{
|
|
|
- FieldBackgroundColor: 'transparent',
|
|
|
- UploaderListAddItemBackgroundImage: 'url(https://xy.wenlvti.net/app_static/images/village/ButtonUpload.png)',
|
|
|
- UploaderAddIcon: '',
|
|
|
- }"
|
|
|
- >
|
|
|
- <BackgroundBox
|
|
|
- backgroundImage="https://xy.wenlvti.net/app_static/images/village/BoxLarge.png"
|
|
|
- :backgroundCutBorder="[50,50,50,50]"
|
|
|
- :backgroundCutBorderSize="[50,50,50,50]"
|
|
|
- direction="column"
|
|
|
- gap="gap.md"
|
|
|
- :padding="[40, 30]"
|
|
|
- >
|
|
|
- <Uploader
|
|
|
- ref="uploader"
|
|
|
- listType="grid"
|
|
|
- :maxUploadCount="9"
|
|
|
- :upload="uploadImage"
|
|
|
- @updateList="onUpdateList"
|
|
|
- />
|
|
|
- <Field v-model="title" type="text" placeholder="输入标题(可选)" :maxLength="30" showWordLimit />
|
|
|
- <Field
|
|
|
- v-model="content"
|
|
|
- type="text"
|
|
|
- multiline
|
|
|
- placeholder="请输入内容(可选)"
|
|
|
- :maxLength="1000"
|
|
|
- rows="20"
|
|
|
- :inputStyle="{
|
|
|
- height: '600rpx',
|
|
|
- }"
|
|
|
- showWordLimit
|
|
|
- />
|
|
|
- </BackgroundBox>
|
|
|
- </ProvideVar>
|
|
|
- <Height :height="50" />
|
|
|
- <ImageButton
|
|
|
- src="https://xy.wenlvti.net/app_static/images/village/ButtonPrimary.png"
|
|
|
- text="发布"
|
|
|
- width="500rpx"
|
|
|
- height="80rpx"
|
|
|
- @click="publish"
|
|
|
- />
|
|
|
- </FlexCol>
|
|
|
-
|
|
|
- <BackgroundBox
|
|
|
- position="fixed" :inset="{ b: 0, l: 0, r: 0 }"
|
|
|
- backgroundImage="https://xy.wenlvti.net/app_static/images/village/BoxLarge.png"
|
|
|
- :backgroundCutBorder="[50,50,0,50]"
|
|
|
- :backgroundCutBorderSize="[50,50,0,50]"
|
|
|
- direction="column"
|
|
|
- :padding="[20, 10]"
|
|
|
+ <CommonTopBanner title="发布微信贴图">
|
|
|
+ <FlexCol padding="space.lg">
|
|
|
+ <ProvideVar
|
|
|
+ :vars="{
|
|
|
+ FieldBackgroundColor: 'transparent',
|
|
|
+ UploaderListAddItemBackgroundImage: 'url(https://xy.wenlvti.net/app_static/images/village/ButtonUpload.png)',
|
|
|
+ UploaderAddIcon: '',
|
|
|
+ }"
|
|
|
>
|
|
|
- <FlexRow padding="space.md" align="center" justify="space-between">
|
|
|
- <FlexRow align="center" justify="center">
|
|
|
- <Button icon="https://xy.wenlvti.net/app_static/images/village/IconAi.png" @click="showAgentPopup = true">AI伴写</Button>
|
|
|
- </FlexRow>
|
|
|
- <FlexRow align="center" justify="center">
|
|
|
- <IconButton
|
|
|
- icon="setting"
|
|
|
- width="40rpx"
|
|
|
- height="40rpx"
|
|
|
- />
|
|
|
- </FlexRow>
|
|
|
- </FlexRow>
|
|
|
- <XBarSpace />
|
|
|
- </BackgroundBox>
|
|
|
+ <BackgroundBox
|
|
|
+ backgroundImage="https://xy.wenlvti.net/app_static/images/village/BoxLarge.png"
|
|
|
+ :backgroundCutBorder="[50,50,50,50]"
|
|
|
+ :backgroundCutBorderSize="[50,50,50,50]"
|
|
|
+ direction="column"
|
|
|
+ gap="gap.md"
|
|
|
+ :padding="[40, 30]"
|
|
|
+ >
|
|
|
+ <Uploader
|
|
|
+ ref="uploader"
|
|
|
+ listType="grid"
|
|
|
+ :maxUploadCount="9"
|
|
|
+ :upload="uploadImage"
|
|
|
+ @updateList="onUpdateList"
|
|
|
+ />
|
|
|
+ <Field v-model="title" type="text" placeholder="输入标题(可选)" :maxLength="30" showWordLimit />
|
|
|
+ <Field
|
|
|
+ v-model="content"
|
|
|
+ type="text"
|
|
|
+ multiline
|
|
|
+ placeholder="请输入内容(可选)"
|
|
|
+ :maxLength="1000"
|
|
|
+ rows="20"
|
|
|
+ :inputStyle="{
|
|
|
+ height: '600rpx',
|
|
|
+ }"
|
|
|
+ showWordLimit
|
|
|
+ />
|
|
|
+ </BackgroundBox>
|
|
|
+ </ProvideVar>
|
|
|
+ <Height :height="50" />
|
|
|
+ <ImageButton
|
|
|
+ src="https://xy.wenlvti.net/app_static/images/village/ButtonPrimary.png"
|
|
|
+ text="发布"
|
|
|
+ width="500rpx"
|
|
|
+ height="80rpx"
|
|
|
+ @click="publish"
|
|
|
+ />
|
|
|
</FlexCol>
|
|
|
+ <BackgroundBox
|
|
|
+ position="fixed" :inset="{ b: 0, l: 0, r: 0 }"
|
|
|
+ backgroundImage="https://xy.wenlvti.net/app_static/images/village/BoxLarge.png"
|
|
|
+ :backgroundCutBorder="[50,50,0,50]"
|
|
|
+ :backgroundCutBorderSize="[50,50,0,50]"
|
|
|
+ direction="column"
|
|
|
+ :padding="[20, 10]"
|
|
|
+ >
|
|
|
+ <FlexRow padding="space.md" align="center" justify="space-between">
|
|
|
+ <FlexRow align="center" justify="center">
|
|
|
+ <Button icon="https://xy.wenlvti.net/app_static/images/village/IconAi.png" @click="showAgentPopup = true">AI伴写</Button>
|
|
|
+ </FlexRow>
|
|
|
+ <FlexRow align="center" justify="center">
|
|
|
+ <IconButton
|
|
|
+ icon="setting"
|
|
|
+ width="40rpx"
|
|
|
+ height="40rpx"
|
|
|
+ />
|
|
|
+ </FlexRow>
|
|
|
+ </FlexRow>
|
|
|
+ <XBarSpace />
|
|
|
+ </BackgroundBox>
|
|
|
<Popup v-model:show="showAgentPopup" position="bottom" closeable :closeIcon="false" size="60vh" round>
|
|
|
<Agent
|
|
|
v-model:title="title"
|
|
|
@@ -89,7 +78,7 @@
|
|
|
@close="showAgentPopup = false"
|
|
|
/>
|
|
|
</Popup>
|
|
|
- </CommonRoot>
|
|
|
+ </CommonTopBanner>
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
@@ -100,15 +89,11 @@ import { confirm, toast } from '@/components/dialog/CommonRoot';
|
|
|
import { useAuthStore } from '@/store/auth';
|
|
|
import { envVersion } from '@/common/config/AppCofig';
|
|
|
import CommonContent from '@/api/CommonContent';
|
|
|
-import CommonRoot from '@/components/dialog/CommonRoot.vue';
|
|
|
import BackgroundBox from '@/components/display/block/BackgroundBox.vue';
|
|
|
import Field from '@/components/form/Field.vue';
|
|
|
import Uploader, { type UploaderInstance } from '@/components/form/Uploader.vue';
|
|
|
import FlexCol from '@/components/layout/FlexCol.vue';
|
|
|
-import StatusBarSpace from '@/components/layout/space/StatusBarSpace.vue';
|
|
|
-import NavBar from '@/components/nav/NavBar.vue';
|
|
|
import ProvideVar from '@/components/theme/ProvideVar.vue';
|
|
|
-import type { UploaderAction, UploaderItem } from '@/components/form/Uploader';
|
|
|
import Height from '@/components/layout/space/Height.vue';
|
|
|
import ImageButton from '@/components/basic/ImageButton.vue';
|
|
|
import FlexRow from '@/components/layout/FlexRow.vue';
|
|
|
@@ -118,6 +103,8 @@ import IconButton from '@/components/basic/IconButton.vue';
|
|
|
import Popup from '@/components/dialog/Popup.vue';
|
|
|
import Agent from './agent.vue';
|
|
|
import LightVillageApi, { PostMessage } from '@/api/light/LightVillageApi';
|
|
|
+import CommonTopBanner from '@/common/components/CommonTopBanner.vue';
|
|
|
+import type { UploaderAction, UploaderItem } from '@/components/form/Uploader';
|
|
|
|
|
|
const { querys } = useLoadQuerys({
|
|
|
tag: '',
|