Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
pptist
Commits
8d2b568a
Commit
8d2b568a
authored
Feb 19, 2024
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.2.0' of
http://gitlab.oytour.com/viitto/pptist
into 1.2.0
parents
f9f2e874
883a220a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
349 additions
and
13 deletions
+349
-13
common.css
src/assets/styles/common.css
+17
-0
icon.ts
src/plugins/icon.ts
+2
-0
common.ts
src/utils/common.ts
+7
-6
Index.vue
src/views/Market/Index.vue
+1
-1
SellTemplate.vue
src/views/SellTemplate/SellTemplate.vue
+1
-1
Workspace.vue
src/views/SellTemplate/Workspace.vue
+37
-5
journeyAds.vue
src/views/SellTemplate/components/journeyAds.vue
+284
-0
No files found.
src/assets/styles/common.css
View file @
8d2b568a
...
@@ -288,6 +288,9 @@ page {
...
@@ -288,6 +288,9 @@ page {
padding-left
:
10px
;
padding-left
:
10px
;
padding-right
:
10px
;
padding-right
:
10px
;
}
}
.q-pl-md
{
padding-left
:
10px
;
}
.q-pl-lg
{
.q-pl-lg
{
padding-left
:
20px
;
padding-left
:
20px
;
}
}
...
@@ -295,6 +298,14 @@ page {
...
@@ -295,6 +298,14 @@ page {
padding-top
:
20px
;
padding-top
:
20px
;
padding-bottom
:
20px
;
padding-bottom
:
20px
;
}
}
.q-my-sm
{
margin-top
:
5px
;
margin-bottom
:
5px
;
}
.q-my-md
{
margin-top
:
10px
;
margin-bottom
:
10px
;
}
.q-my-lg
{
.q-my-lg
{
margin-top
:
20px
;
margin-top
:
20px
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
...
@@ -310,6 +321,9 @@ page {
...
@@ -310,6 +321,9 @@ page {
.q-pt-lg
{
.q-pt-lg
{
padding-top
:
20px
;
padding-top
:
20px
;
}
}
.q-pt-sm
{
padding-top
:
8px
;
}
.q-pt-md
{
.q-pt-md
{
padding-top
:
12px
;
padding-top
:
12px
;
}
}
...
@@ -385,4 +399,7 @@ page {
...
@@ -385,4 +399,7 @@ page {
}
}
.pointer
{
.pointer
{
cursor
:
pointer
;
cursor
:
pointer
;
}
.wrap
{
white-space
:
wrap
;
}
}
\ No newline at end of file
src/plugins/icon.ts
View file @
8d2b568a
...
@@ -129,6 +129,7 @@ import {
...
@@ -129,6 +129,7 @@ import {
AssemblyLine
,
AssemblyLine
,
More
,
More
,
Setting
,
Setting
,
Refresh
,
}
from
'@icon-park/vue-next'
}
from
'@icon-park/vue-next'
export
interface
Icons
{
export
interface
Icons
{
...
@@ -262,6 +263,7 @@ export const icons: Icons = {
...
@@ -262,6 +263,7 @@ export const icons: Icons = {
IconAssemblyLine
:
AssemblyLine
,
IconAssemblyLine
:
AssemblyLine
,
IconMore
:
More
,
IconMore
:
More
,
IconSetting
:
Setting
,
IconSetting
:
Setting
,
IconRefresh
:
Refresh
,
}
}
export
default
{
export
default
{
...
...
src/utils/common.ts
View file @
8d2b568a
...
@@ -51,11 +51,12 @@ export const getHtmlPlainText = (html_str:string) => {
...
@@ -51,11 +51,12 @@ export const getHtmlPlainText = (html_str:string) => {
}
}
}
}
export
const
recentTime
=
(
date1
:
string
,
date2
:
string
)
=>
{
// 计算距离当前多少天
const
oneDay
=
24
*
60
*
60
*
1000
;
// 一天的毫秒数
export
const
getDaysBetween
=
(
date1
:
any
,
date2
:
any
)
=>
{
const
firstDate
=
new
Date
(
date1
);
// 第一个日期对象
const
ONE_DAY
=
1000
*
60
*
60
*
24
;
// 一天的毫秒数
const
secondDate
=
new
Date
(
date2
);
// 第二个日期对象
const
date1Time
=
date1
.
getTime
();
// 获取时间戳
// const diffDays = Math.round(Math.abs((firstDate - secondDate) / oneDay)); // 差异天数的绝对值,取整
const
date2Time
=
date2
.
getTime
();
// return diffDays;
const
difference
=
Math
.
abs
(
date1Time
-
date2Time
);
// 获取时间差
return
Math
.
round
(
difference
/
ONE_DAY
);
// 两个日期之间的天数
}
}
\ No newline at end of file
src/views/Market/Index.vue
View file @
8d2b568a
...
@@ -218,7 +218,7 @@
...
@@ -218,7 +218,7 @@
<el-empty
description=
"暂无数据"
/>
<el-empty
description=
"暂无数据"
/>
</div>
</div>
<el-divider
class=
"no-bg q-mt-lg"
v-if=
'queryObj.pageCount == queryObj.pageIndex && !loading'
>
<el-divider
class=
"no-bg q-mt-lg"
v-if=
'queryObj.pageCount == queryObj.pageIndex && !loading'
>
<span
class=
"text-s
am
ll"
style=
"background: #f3f6fb;padding: 0 10px;color:#a3a3a3"
>
已加载完成所有数据
</span>
<span
class=
"text-s
ma
ll"
style=
"background: #f3f6fb;padding: 0 10px;color:#a3a3a3"
>
已加载完成所有数据
</span>
</el-divider>
</el-divider>
<div
style=
"height:40px;"
class=
"q-mt-md no-bg"
background=
"transparent"
v-loading=
"loading"
element-loading-text=
"正在加载中"
></div>
<div
style=
"height:40px;"
class=
"q-mt-md no-bg"
background=
"transparent"
v-loading=
"loading"
element-loading-text=
"正在加载中"
></div>
</div>
</div>
...
...
src/views/SellTemplate/SellTemplate.vue
View file @
8d2b568a
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
<el-empty
description=
"暂无数据"
/>
<el-empty
description=
"暂无数据"
/>
</div>
</div>
<el-divider
class=
"no-bg q-mt-lg"
v-if=
'queryObj.pageCount == queryObj.pageIndex && !loading'
>
<el-divider
class=
"no-bg q-mt-lg"
v-if=
'queryObj.pageCount == queryObj.pageIndex && !loading'
>
<span
class=
"text-s
am
ll bg-white"
style=
"background: #f3f6fb;padding: 0 10px;color:#a3a3a3"
>
已加载完成所有数据
</span>
<span
class=
"text-s
ma
ll bg-white"
style=
"background: #f3f6fb;padding: 0 10px;color:#a3a3a3"
>
已加载完成所有数据
</span>
</el-divider>
</el-divider>
<div
style=
"height:40px;"
class=
"q-mt-md no-bg"
background=
"transparent"
v-loading=
"loading"
element-loading-text=
"正在加载中"
></div>
<div
style=
"height:40px;"
class=
"q-mt-md no-bg"
background=
"transparent"
v-loading=
"loading"
element-loading-text=
"正在加载中"
></div>
</div>
</div>
...
...
src/views/SellTemplate/Workspace.vue
View file @
8d2b568a
...
@@ -76,7 +76,27 @@
...
@@ -76,7 +76,27 @@
</div>
</div>
</div>
</div>
<div
class=
"col"
>
<div
class=
"col"
>
<Example></Example>
<div
class=
"q-px-md q-pt-lg"
>
<div
class=
"q-pl-lg row q-pb-sm"
>
<h5
class=
"q-pl-md"
>
<
template
v-if=
"!currentMenu"
>
最近
</
template
>
<
template
v-else-if=
"currentMenu==1"
>
星标
</
template
>
<
template
v-else-if=
"currentMenu==2"
>
共享
</
template
>
<
template
v-else-if=
"currentMenu==3"
>
行程文档
</
template
>
<
template
v-else-if=
"currentMenu==4"
>
广告图
</
template
>
<
template
v-else-if=
"currentMenu==-1"
>
回收站
</
template
>
</h5>
<div
class=
"select-btn row items-center q-pl-lg pointer"
>
<el-icon>
<RefreshRight
v-if=
"!datas.journeyAds.RefreshLoading"
@
click=
"datas.journeyAds.RefreshLoading=true"
/>
<Refresh
v-else
/>
</el-icon>
</div>
</div>
</div>
<!-- <Example></Example> -->
<journeyAds
v-if=
"currentMenu==3||currentMenu==4"
></journeyAds>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -88,7 +108,8 @@ import { storeToRefs } from 'pinia';
...
@@ -88,7 +108,8 @@ import { storeToRefs } from 'pinia';
import
{
ref
,
reactive
,
provide
,
inject
}
from
'vue'
;
import
{
ref
,
reactive
,
provide
,
inject
}
from
'vue'
;
import
SearchDocument
from
'./components/SearchDocument.vue'
import
SearchDocument
from
'./components/SearchDocument.vue'
import
Example
from
'./components/Example.vue'
import
Example
from
'./components/Example.vue'
import
{
Plus
,
ArrowDown
,
Clock
,
Star
,
Share
,
Picture
,
Management
,
Delete
}
from
'@element-plus/icons-vue'
;
import
journeyAds
from
'./components/journeyAds.vue'
import
{
Plus
,
ArrowDown
,
Clock
,
Star
,
Share
,
Picture
,
Management
,
Delete
,
RefreshRight
,
Refresh
}
from
'@element-plus/icons-vue'
;
import
{
injectKeyTemplate
}
from
'@/types/injectKey'
import
{
injectKeyTemplate
}
from
'@/types/injectKey'
import
{
useSellTemplateStore
,
useScreenStore
,
useSlidesStore
}
from
'@/store'
import
{
useSellTemplateStore
,
useScreenStore
,
useSlidesStore
}
from
'@/store'
...
@@ -97,14 +118,21 @@ const {userInfo} = storeToRefs(userStore())
...
@@ -97,14 +118,21 @@ const {userInfo} = storeToRefs(userStore())
const
currentMenu
=
ref
<
number
>
(
0
)
const
currentMenu
=
ref
<
number
>
(
0
)
const
datas
=
reactive
({
const
datas
=
reactive
({
SellData
s
:{
journeyAd
s
:{
currentMenu
:
3
,
RefreshLoading
:
false
}
}
})
})
provide
(
'
SellDatas'
,
datas
.
SellData
s
)
provide
(
'
journeyAds'
,
datas
.
journeyAd
s
)
const
searchData
=
ref
({}
as
any
)
const
searchData
=
ref
({}
as
any
)
searchData
.
value
=
inject
(
injectKeyTemplate
)
searchData
.
value
=
inject
(
injectKeyTemplate
)
if
(
searchData
.
value
.
SellTemplateType
){
let
current
=
0
if
(
searchData
.
value
.
SellTemplateType
==
1
)
current
=
3
if
(
searchData
.
value
.
SellTemplateType
==
2
)
current
=
4
currentMenu
.
value
=
current
}
const
SalesEditorStore
=
useSellTemplateStore
()
const
SalesEditorStore
=
useSellTemplateStore
()
const
marketStore
=
useScreenStore
()
const
marketStore
=
useScreenStore
()
...
@@ -117,6 +145,10 @@ const sellAdd = (type:number) =>{
...
@@ -117,6 +145,10 @@ const sellAdd = (type:number) =>{
const
setCurrentMenuHandler
=
(
i
:
number
)
=>
{
const
setCurrentMenuHandler
=
(
i
:
number
)
=>
{
currentMenu
.
value
=
i
currentMenu
.
value
=
i
let
TemplateType
=
1
if
(
i
==
3
)
TemplateType
=
1
if
(
i
==
4
)
TemplateType
=
2
if
(
TemplateType
)
searchData
.
value
.
SellTemplateType
=
TemplateType
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
...
...
src/views/SellTemplate/components/journeyAds.vue
0 → 100644
View file @
8d2b568a
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment