Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beyond-clouds-front
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
beyond-clouds-front
Commits
8f5830c2
Commit
8f5830c2
authored
Feb 10, 2020
by
xuebiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
博客发布页面完善
parent
0ba564f5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
11 deletions
+42
-11
components/common/cropper/src/cropper.vue
+1
-1
components/pc/select/selectCard.vue
+1
-2
pages/answer/release/index.vue
+40
-8
pages/blog/release/index.vue
+0
-0
No files found.
components/common/cropper/src/cropper.vue
View file @
8f5830c2
...
...
@@ -123,7 +123,7 @@
let
that
=
this
;
// this.addImg(this.img)
this
.
$refs
.
cropper
.
getCropData
((
e
)
=>
{
this
.
loading
=
true
this
.
loading
=
true
;
let
bytes
=
window
.
atob
(
e
.
split
(
','
)[
1
]);
let
array
=
[];
for
(
let
i
=
0
;
i
<
bytes
.
length
;
i
++
){
...
...
components/pc/select/selectCard.vue
View file @
8f5830c2
...
...
@@ -129,7 +129,6 @@ export default {
async
handleSearch
(){
this
.
isShow
=
true
;
this
.
isShow2
=
true
;
console
.
log
(
111
);
if
(
this
.
value
.
tag
!==
""
)
{
let
tagSearch
=
await
this
.
$axios
.
$get
(
config
.
api
.
get
.
Tag
.
search
,
{
params
:
{
...
...
@@ -138,7 +137,7 @@ export default {
size
:
12
}
});
console
.
log
(
tagSearch
);
//
console.log(tagSearch);
this
.
isSearch
=
true
;
// 用于 有无搜索结果
this
.
searchList
=
[];
if
(
tagSearch
.
data
.
dataList
.
length
!==
0
)
{
...
...
pages/answer/release/index.vue
View file @
8f5830c2
...
...
@@ -22,13 +22,13 @@
<div
class=
"answer-release"
>
<div
class=
"answer-release__header"
>
<span>
*
</span>
<input
type=
"text"
placeholder=
"请一句话说明问题,并以问号结尾"
>
<input
type=
"text"
v-model=
"questionDetail"
placeholder=
"请一句话说明问题,并以问号结尾"
>
</div>
<div
class=
"answer-release__content"
>
<span>
*
</span>
<div
class=
"editor-container"
>
<mavon-editor
v-model=
"
value
"
v-model=
"
questionDetail
"
:toolbars=
"markdownOption"
class=
"editor"
placeholder=
"问题详情...."
...
...
@@ -46,7 +46,7 @@
<span>
*
</span>
<select-card
selectType=
"1"
></select-card>
</div>
<select-card
selectType=
"2"
:class-list=
"classList"
placeholder=
"请选择问题分类"
></select-card>
<select-card
selectType=
"2"
:class-list=
"classList"
@
handleClass=
"handleBlogClass"
placeholder=
"请选择问题分类"
></select-card>
</div>
<div
class=
"answer-release__footer"
>
<p>
已自动存为草稿
</p>
...
...
@@ -60,10 +60,10 @@
</
template
>
<
script
>
import
CardContainer
from
"../../../components/pc/cardContainer"
;
import
SelectCard
from
"../../../components/pc/select/selectCard"
;
export
default
{
import
CardContainer
from
"../../../components/pc/cardContainer"
;
import
SelectCard
from
"../../../components/pc/select/selectCard"
;
import
config
from
"../../../action/config"
;
export
default
{
components
:
{
SelectCard
,
CardContainer
},
data
()
{
return
{
...
...
@@ -103,6 +103,38 @@ export default {
}
},
methods
:
{
handleBlogClass
(
value
)
{
this
.
blogClass
=
value
;
if
(
value
==
"web"
){
this
.
blogClass
=
1
}
else
if
(
value
==
"java"
){
this
.
blogClass
=
2
}
else
if
(
value
==
"javascript"
){
this
.
blogClass
=
3
}
console
.
log
(
this
.
blogClass
);
},
postQuestion
(){
this
.
$axios
.
$post
(
config
.
api
.
post
.
question
.
release
,{
categoryId
:
this
.
blogClass
,
questionAbstract
:
"摘要"
,
//摘要
questionDetail
:
this
.
questionDetail
,
questionTitle
:
this
.
questionTitle
,
tagIds
:
[
//标签id
"java"
],
topicIds
:
[
//话题id
"话题id"
]
}).
then
((
response
)
=>
{
//处理response
})
},
imgAdd
(
pos
,
file
)
{
//添加图片,pos为位置
// 第一步.将图片上传到服务器.
...
...
@@ -141,7 +173,7 @@ export default {
boolean
=
true
;
}
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
pages/blog/release/index.vue
View file @
8f5830c2
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