|
@@ -1,19 +1,9 @@
|
|
|
<script setup lang="ts">
|
|
|
import TabbarEvo from '@/components/tabbar-evo.vue'
|
|
|
-import { iconCamera, iconWallet } from '../core/libs/pngs'
|
|
|
-import {
|
|
|
- home,
|
|
|
- homeActive,
|
|
|
- material,
|
|
|
- materialActive,
|
|
|
- message,
|
|
|
- messageActive,
|
|
|
- mine,
|
|
|
- mineActive,
|
|
|
- publish,
|
|
|
-} from '../core/libs/svgs'
|
|
|
+import { home, homeActive, mine, mineActive, publish } from '../core/libs/svgs'
|
|
|
import { currRoute } from '../utils'
|
|
|
import { defaultThemeVars } from '../core/themes/default'
|
|
|
+import DataForm from '@designer-hub/app/src/components/data-form.vue'
|
|
|
|
|
|
const publishState = ref(false)
|
|
|
const items = [
|
|
@@ -23,12 +13,6 @@ const items = [
|
|
|
selectedIconPath: homeActive,
|
|
|
path: '/pages/home/index',
|
|
|
},
|
|
|
- // {
|
|
|
- // title: '材料',
|
|
|
- // iconPath: material,
|
|
|
- // selectedIconPath: materialActive,
|
|
|
- // path: '/pages/material/index',
|
|
|
- // },
|
|
|
{
|
|
|
title: '发布',
|
|
|
iconPath: publish,
|
|
@@ -36,12 +20,6 @@ const items = [
|
|
|
path: '/pages/publish/index',
|
|
|
hiddenTitle: true,
|
|
|
},
|
|
|
- // {
|
|
|
- // title: '消息',
|
|
|
- // iconPath: message,
|
|
|
- // selectedIconPath: messageActive,
|
|
|
- // path: '/pages/messages/index',
|
|
|
- // },
|
|
|
{
|
|
|
title: '我的',
|
|
|
iconPath: mine,
|
|
@@ -49,6 +27,33 @@ const items = [
|
|
|
path: '/pages/mine/index',
|
|
|
},
|
|
|
]
|
|
|
+const schema = ref({
|
|
|
+ user: {
|
|
|
+ type: 'TextField',
|
|
|
+ label: '设计师',
|
|
|
+ },
|
|
|
+ dateTime: {
|
|
|
+ type: 'TextField',
|
|
|
+ label: '时间',
|
|
|
+ },
|
|
|
+ type: {
|
|
|
+ type: 'TextField',
|
|
|
+ label: '类型',
|
|
|
+ },
|
|
|
+ remark: {
|
|
|
+ type: 'TextField',
|
|
|
+ label: '备注',
|
|
|
+ },
|
|
|
+ location: {
|
|
|
+ type: 'TextField',
|
|
|
+ label: '地址',
|
|
|
+ },
|
|
|
+ images: {
|
|
|
+ type: 'ImageUploader',
|
|
|
+ label: '图片',
|
|
|
+ max: 9,
|
|
|
+ },
|
|
|
+})
|
|
|
const handleTabbarItemClick = (path: string) => {
|
|
|
if (path === '/pages/publish/index') {
|
|
|
publishState.value = true
|
|
@@ -79,7 +84,13 @@ const toPublishCase = () => {
|
|
|
:current-path="currRoute().path"
|
|
|
@click="handleTabbarItemClick"
|
|
|
/>
|
|
|
- <div
|
|
|
+ <wd-action-sheet v-model="publishState" title="创建跟进" @close="publishState = false">
|
|
|
+ <view class="flex flex-col p-4">
|
|
|
+ <div><DataForm :schema="schema" direction="horizontal"></DataForm></div>
|
|
|
+ <div><wd-button block :round="false">提交</wd-button></div>
|
|
|
+ </view>
|
|
|
+ </wd-action-sheet>
|
|
|
+ <!-- <div
|
|
|
v-if="publishState"
|
|
|
class="bg-white/80 backdrop-blur-[100px] fixed top-0 left-0 right-0 bottom-0 z-1"
|
|
|
>
|
|
@@ -112,7 +123,7 @@ const toPublishCase = () => {
|
|
|
></wd-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<wd-toast />
|
|
|
<wd-message-box />
|
|
|
</wd-config-provider>
|