Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8048f481
authored
Sep 08, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
c505fe28
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
22 deletions
src/views/seckillActivity/crowdEditWechat.vue
src/views/seckillActivity/editCrowdFund.vue
src/views/seckillActivity/crowdEditWechat.vue
View file @
8048f48
...
...
@@ -79,17 +79,19 @@
</div>
</div>
<div
class=
"line"
></div>
<div
class=
"flex m-b-10"
v-if=
"editForm.activityCommoditys.length"
>
<div>
商品答疑({{ editForm.activityCommoditys.length }})
</div>
<div
class=
"sprite-icon icon-arrow"
></div>
</div>
<div
class=
"m-b-10"
>
<span
class=
"icon-question"
>
问
</span>
<span>
{{ editForm.activityCommoditys[0].question }}
</span>
</div>
<div>
<span
class=
"icon-answer"
>
答
</span>
<span>
{{ editForm.activityCommoditys[0].answer }}
</span>
<div
v-if=
"editForm.activityCommoditys.length"
>
<div
class=
"flex m-b-10"
>
<div>
商品答疑({{ editForm.activityCommoditys.length }})
</div>
<div
class=
"sprite-icon icon-arrow"
></div>
</div>
<div
class=
"m-b-10"
>
<span
class=
"icon-question"
>
问
</span>
<span>
{{ editForm.activityCommoditys[0].question }}
</span>
</div>
<div>
<span
class=
"icon-answer"
>
答
</span>
<span>
{{ editForm.activityCommoditys[0].answer }}
</span>
</div>
</div>
</div>
...
...
@@ -100,7 +102,6 @@
</div>
<div>
<img
class=
"wechat-footer"
src=
"@/assets/seckillActivity/crowd-footer.png"
/>
<div
class=
"sprite-icon icon-arrow"
></div>
</div>
</div>
</div>
...
...
src/views/seckillActivity/editCrowdFund.vue
View file @
8048f48
...
...
@@ -465,10 +465,16 @@ export default {
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
editForm
[
targetItem
.
name
]
=
res
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
targetItem
.
name
)
})
this
.
loading
=
true
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
})
.
then
(
res
=>
{
this
.
editForm
[
targetItem
.
name
]
=
res
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
targetItem
.
name
)
})
.
finally
(()
=>
{
this
.
loading
=
false
})
}
},
{
...
...
@@ -541,10 +547,16 @@ export default {
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
editForm
[
targetItem
.
name
]
=
res
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
targetItem
.
name
)
})
this
.
loading
=
true
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
})
.
then
(
res
=>
{
this
.
editForm
[
targetItem
.
name
]
=
res
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
targetItem
.
name
)
})
.
finally
(()
=>
{
this
.
loading
=
false
})
}
}
],
...
...
@@ -750,7 +762,7 @@ export default {
label
:
'活动分享语'
,
name
:
'activitySharingWords'
,
type
:
'input'
,
maxlength
:
2
0
maxlength
:
3
0
},
{
label
:
'活动视频'
,
...
...
@@ -1827,7 +1839,7 @@ export default {
cursor
:
pointer
;
}
.form-open
{
max-height
:
25
00px
;
max-height
:
40
00px
;
transition
:
max-height
0.5s
ease
;
}
.form-close
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment