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 5b3cc591
authored
Jul 12, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
众筹
1 parent
468be9c7
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
81 additions
and
22 deletions
src/assets/seckillActivity/count-down.png
src/components/glsx-combi-form/index.vue
src/views/orderManage/orderDetail.vue
src/views/seckillActivity/crowdFundList.vue
src/views/seckillActivity/editActivity.vue
src/views/seckillActivity/editCrowdFund.vue
src/assets/seckillActivity/count-down.png
0 → 100644
View file @
5b3cc59
89.6 KB
src/components/glsx-combi-form/index.vue
View file @
5b3cc59
...
@@ -76,12 +76,12 @@
...
@@ -76,12 +76,12 @@
<slot
:name=
"item.suffixSlot"
:scope=
"item"
></slot>
<slot
:name=
"item.suffixSlot"
:scope=
"item"
></slot>
</template>
</template>
<!-- 图文编辑器 -->
<!-- 图文编辑器 -->
<textBox
v-else-if=
"item.type === 'textBox'"
:ref=
"item.name + 'TextBox'"
@
change=
"e => handleTextBoxChange(e, item)"
@
forbid=
"forbidEdit"
></textBox>
<textBox
v-else-if=
"item.type === 'textBox'"
:ref=
"item.name + 'TextBox'"
@
change=
"e => handleTextBoxChange(e, item)"
></textBox>
<!-- 地图 -->
<!-- 地图 -->
<div
v-else-if=
"item.type === 'map'"
class=
"flex"
>
<div
v-else-if=
"item.type === 'map'"
class=
"flex"
>
<Province
ref=
"provinceForm"
:subdistrict=
"subdistrict"
:isDisabled=
"item.isDisabled"
@
selectProvince=
"e => handleSelectProvince(e, item)"
@
selectCity=
"e => handleSelectCity(e, item)"
></Province>
<Province
ref=
"provinceForm"
:subdistrict=
"subdistrict"
:isDisabled=
"item.isDisabled"
@
selectProvince=
"e => handleSelectProvince(e, item)"
@
selectCity=
"e => handleSelectCity(e, item)"
></Province>
<el-input
class=
"input-width"
v-model=
"formObj[item.name]"
placeholder=
"请选择商户地址"
:disabled=
"item.isDisabled"
></el-input>
<el-input
class=
"input-width"
v-model=
"formObj[item.name]"
placeholder=
"请选择商户地址"
:disabled=
"item.isDisabled"
></el-input>
<el-button
v-show=
"!item.isDisabled"
@
click=
"handleSelectMap(item)"
type=
"primary"
>
选择地址
</el-button>
<el-button
class=
"m-l-10"
v-show=
"!item.isDisabled"
@
click=
"handleSelectMap(item)"
type=
"primary"
>
选择地址
</el-button>
</div>
</div>
</el-form-item>
</el-form-item>
</template>
</template>
...
...
src/views/orderManage/orderDetail.vue
View file @
5b3cc59
...
@@ -142,7 +142,9 @@ export default {
...
@@ -142,7 +142,9 @@ export default {
},
},
{
{
label
:
'其他信息'
,
label
:
'其他信息'
,
name
:
''
name
:
'formDescribe'
,
contentName
:
'formContent'
,
attrList
:
[
'First'
,
'Second'
,
'Third'
]
}
}
],
],
// 售后信息
// 售后信息
...
@@ -224,7 +226,6 @@ export default {
...
@@ -224,7 +226,6 @@ export default {
getInfo
()
{
getInfo
()
{
this
.
$apis
.
orderManage
.
getOrderDetailApi
({
orderCode
:
this
.
routeInfo
.
orderCode
}).
then
(
res
=>
{
this
.
$apis
.
orderManage
.
getOrderDetailApi
({
orderCode
:
this
.
routeInfo
.
orderCode
}).
then
(
res
=>
{
this
.
detailForm
=
res
this
.
detailForm
=
res
console
.
log
(
this
.
detailForm
)
this
.
orderRefund
=
res
.
orderRefund
||
null
this
.
orderRefund
=
res
.
orderRefund
||
null
this
.
detailForm
.
createdDateStr
=
dayjs
(
this
.
detailForm
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
this
.
detailForm
.
createdDateStr
=
dayjs
(
this
.
detailForm
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
if
(
this
.
orderRefund
)
{
if
(
this
.
orderRefund
)
{
...
@@ -245,6 +246,16 @@ export default {
...
@@ -245,6 +246,16 @@ export default {
var
takeFeeIdx
=
this
.
detailFormData
.
findIndex
(
item
=>
item
.
name
==
'takeFee'
)
var
takeFeeIdx
=
this
.
detailFormData
.
findIndex
(
item
=>
item
.
name
==
'takeFee'
)
this
.
detailFormData
.
splice
(
takeFeeIdx
,
1
)
this
.
detailFormData
.
splice
(
takeFeeIdx
,
1
)
}
}
// 其他信息
var
formDescribeObj
=
this
.
detailFormData
.
find
(
item
=>
item
.
name
==
'formDescribe'
)
this
.
detailForm
[
formDescribeObj
.
name
]
=
''
formDescribeObj
.
attrList
.
forEach
(
item
=>
{
let
label
=
this
.
detailForm
[
formDescribeObj
.
name
+
item
]
let
value
=
this
.
detailForm
[
formDescribeObj
.
contentName
+
item
]
if
(
label
)
{
this
.
detailForm
[
formDescribeObj
.
name
]
+=
label
+
':'
+
value
+
' '
}
})
this
.
formToRow
(
'detailFormData'
)
this
.
formToRow
(
'detailFormData'
)
})
})
},
},
...
...
src/views/seckillActivity/crowdFundList.vue
View file @
5b3cc59
...
@@ -153,9 +153,6 @@ export default {
...
@@ -153,9 +153,6 @@ export default {
attrs
:
{
attrs
:
{
type
:
'text'
type
:
'text'
},
},
condition
:
row
=>
{
return
row
.
activityStatus
==
'1'
||
row
.
activityStatus
==
'2'
},
listeners
:
{
listeners
:
{
click
:
this
.
handleShare
click
:
this
.
handleShare
}
}
...
...
src/views/seckillActivity/editActivity.vue
View file @
5b3cc59
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
<p
class=
"edit-title"
>
{{
title
}}
秒杀活动
</p>
<p
class=
"edit-title"
>
{{
title
}}
秒杀活动
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
:isEdit=
"true"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
:isEdit=
"true"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<div
slot=
"activityImg"
class=
"edit-tips m-t-8"
>
展示在首页的活动详情页
</div>
<div
slot=
"activityImg"
class=
"edit-tips m-t-8"
>
展示在首页的活动详情页
</div>
<template
slot=
"activityTimeHtml"
>
<template
slot=
"activityTimeHtml"
slot-scope=
"scope"
>
<el-date-picker
style=
"width: 474px"
v-model=
"editForm.activityTime"
type=
"datetimerange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
:picker-options=
"pickerOptions"
:default-time=
"['00:00:00', '23:59:59']"
:disabled=
"isDisabled"
:clearable=
"false
"
></el-date-picker>
<el-date-picker
style=
"width: 474px"
v-model=
"editForm.activityTime"
type=
"datetimerange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
:picker-options=
"pickerOptions"
:default-time=
"['00:00:00', '23:59:59']"
:disabled=
"isDisabled"
@
change=
"e => handleTimeChange(e, scope.scope)
"
></el-date-picker>
</
template
>
</
template
>
<div
slot=
"goodsHtml"
>
<div
slot=
"goodsHtml"
>
<el-button
type=
"default"
class=
"default-blue-btn el-icon-plus"
v-if=
"apear != 'see'"
@
click=
"handleRelateProClose"
>
选择商品
</el-button>
<el-button
type=
"default"
class=
"default-blue-btn el-icon-plus"
v-if=
"apear != 'see'"
@
click=
"handleRelateProClose"
>
选择商品
</el-button>
...
@@ -342,6 +342,10 @@ export default {
...
@@ -342,6 +342,10 @@ export default {
}
}
},
},
handleTimeChange
(
value
,
targetItem
)
{
!
value
&&
(
this
.
editForm
[
targetItem
.
name
]
=
[])
},
handleIsLimit
(
val
)
{
handleIsLimit
(
val
)
{
this
.
editForm
.
limitPurchaseNumber
=
val
==
1
?
''
:
'1'
this
.
editForm
.
limitPurchaseNumber
=
val
==
1
?
''
:
'1'
this
.
editRule
.
limitPurchaseNumber
[
0
].
required
=
val
!=
1
this
.
editRule
.
limitPurchaseNumber
[
0
].
required
=
val
!=
1
...
...
src/views/seckillActivity/editCrowdFund.vue
View file @
5b3cc59
...
@@ -6,11 +6,11 @@
...
@@ -6,11 +6,11 @@
<p
class=
"edit-title"
>
基本信息
</p>
<p
class=
"edit-title"
>
基本信息
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
:isEdit=
"true"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
:isEdit=
"true"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<div
slot=
"activityImg"
class=
"edit-tips m-t-8"
>
展示在首页的活动详情页
</div>
<div
slot=
"activityImg"
class=
"edit-tips m-t-8"
>
展示在首页的活动详情页
</div>
<template
slot=
"activityTimeHtml"
>
<template
slot=
"activityTimeHtml"
slot-scope=
"scope"
>
<el-date-picker
style=
"width: 474px"
v-model=
"editForm.activityTime"
type=
"datetimerange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
:picker-options=
"pickerOptions"
:default-time=
"['00:00:00', '23:59:59']"
:disabled=
"isDisabled"
:clearable=
"false
"
></el-date-picker>
<el-date-picker
style=
"width: 474px"
v-model=
"editForm.activityTime"
type=
"datetimerange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
:picker-options=
"pickerOptions"
:default-time=
"['00:00:00', '23:59:59']"
:disabled=
"isDisabled"
@
change=
"e => handleTimeChange(e, scope.scope)
"
></el-date-picker>
</
template
>
</
template
>
<div
slot=
"goodsHtml"
>
<div
slot=
"goodsHtml"
>
<el-button
type=
"default"
class=
"
default-blue-btn
el-icon-plus"
v-if=
"!isDisabled"
@
click=
"handleRelateProClose"
>
选择商品
</el-button>
<el-button
type=
"default"
class=
"el-icon-plus"
v-if=
"!isDisabled"
@
click=
"handleRelateProClose"
>
选择商品
</el-button>
<div
v-if=
"selectedProInfo.id && !specificationDetailList.length"
style=
"margin-top: 10px"
>
<div
v-if=
"selectedProInfo.id && !specificationDetailList.length"
style=
"margin-top: 10px"
>
<p>
<p>
<img
class=
"img-60"
:src=
"selectedProInfo.goodsImage"
/>
<img
class=
"img-60"
:src=
"selectedProInfo.goodsImage"
/>
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
</div>
</div>
</
template
>
</
template
>
<
template
slot=
"activityMusic"
slot-scope=
"scope"
>
<
template
slot=
"activityMusic"
slot-scope=
"scope"
>
<el-upload
v-show=
"!editForm[scope.scope.name]"
class=
"upload-demo"
action=
""
accept=
"audio/mp3, audio/m4a"
:show-file-list=
"false"
:http-request=
"handleMusicUpload"
:
on-change=
"e => handleMusicChange(e, scope.scope)"
:limit=
"1"
:on-exceed=
"handleExceed
"
>
<el-upload
v-show=
"!editForm[scope.scope.name]"
class=
"upload-demo"
action=
""
accept=
"audio/mp3, audio/m4a"
:show-file-list=
"false"
:http-request=
"handleMusicUpload"
:
before-upload=
"e => handleMusicBeforeUpload(e, scope.scope)"
:file-list=
"fileList"
:limit=
"1
"
>
<el-button
class=
"el-icon-plus"
size=
"small"
type=
"default"
>
背景音乐
</el-button>
<el-button
class=
"el-icon-plus"
size=
"small"
type=
"default"
>
背景音乐
</el-button>
</el-upload>
</el-upload>
<div
v-if=
"editForm[scope.scope.name]"
class=
"flex"
>
<div
v-if=
"editForm[scope.scope.name]"
class=
"flex"
>
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
</div>
</div>
</
template
>
</
template
>
<div
slot=
"activityBigImg"
class=
"edit-tips m-t-8"
>
建议尺寸750*1258
</div>
<div
slot=
"activityBigImg"
class=
"edit-tips m-t-8"
>
建议尺寸750*1258
</div>
<div
slot=
"activityVideos"
class=
"edit-tips m-t-8"
>
最多上传
六
个视频
</div>
<div
slot=
"activityVideos"
class=
"edit-tips m-t-8"
>
最多上传
6
个视频
</div>
<div
slot=
"posterImg"
class=
"edit-tips m-t-8"
>
建议尺寸640*1008
</div>
<div
slot=
"posterImg"
class=
"edit-tips m-t-8"
>
建议尺寸640*1008
</div>
<div
class=
"form-describe flex-default"
slot=
"formDescribe"
v-for=
"(item, index) in formDescribeList"
:key=
"index"
>
<div
class=
"form-describe flex-default"
slot=
"formDescribe"
v-for=
"(item, index) in formDescribeList"
:key=
"index"
>
<el-input
class=
"describe-input"
v-model=
"item.value"
placeholder=
"请输入"
maxlength=
"20"
clearable
></el-input>
<el-input
class=
"describe-input"
v-model=
"item.value"
placeholder=
"请输入"
maxlength=
"20"
clearable
></el-input>
...
@@ -134,22 +134,23 @@
...
@@ -134,22 +134,23 @@
<div>
<div>
<p
class=
"m-b-10"
>
{{ editForm.sponsorName }}
</p>
<p
class=
"m-b-10"
>
{{ editForm.sponsorName }}
</p>
<p
class=
"m-b-10 wechat-sub-addr"
>
{{ editForm.activityAddressDetailName }}
</p>
<p
class=
"m-b-10 wechat-sub-addr"
>
{{ editForm.activityAddressDetailName }}
</p>
<p
class=
"wechat-time"
v-if=
"editForm.activityTime.length"
>
活动时间:{{ editForm.activityTime[0].split(' ')[0] }}-{{ editForm.activityTime[1].split(' ')[0] }}
</p>
<p
class=
"wechat-time"
v-if=
"editForm.activityTime
&& editForm.activityTime
.length"
>
活动时间:{{ editForm.activityTime[0].split(' ')[0] }}-{{ editForm.activityTime[1].split(' ')[0] }}
</p>
</div>
</div>
<img
class=
"icon-addr"
src=
"@/assets/seckillActivity/icon-addr.png"
/>
<img
class=
"icon-addr"
src=
"@/assets/seckillActivity/icon-addr.png"
/>
</div>
</div>
</div>
</div>
<div
class=
"wechat-block"
>
<div
class=
"wechat-block"
>
<p
class=
"wechat-block-title"
>
距离活动开始
</p>
<p
class=
"wechat-block-title"
>
{{ countDownObj.typeTxt }}
</p>
<p
class=
"wechat-count-down m-b-10
"
>
<p
v-if=
"countDownObj.activityStatus != 3"
class=
"wechat-count-down
"
>
<span
v-if=
"editForm.activityTime.length"
>
{{ editForm.activityTime[0].split(' ')[0].split('-')[2] }}
</span>
<span
v-if=
"editForm.activityTime
&& editForm.activityTime
.length"
>
{{ editForm.activityTime[0].split(' ')[0].split('-')[2] }}
</span>
日开始活动,还差
日开始活动,还差
<span
class=
"wechat-txt"
>
{{ countDownObj.d }}
</span>
天
<span
class=
"wechat-txt"
>
{{ countDownObj.d }}
</span>
天
<span
class=
"wechat-txt"
>
{{ countDownObj.h }}
</span>
时
<span
class=
"wechat-txt"
>
{{ countDownObj.h }}
</span>
时
<span
class=
"wechat-txt"
>
{{ countDownObj.m }}
</span>
分
<span
class=
"wechat-txt"
>
{{ countDownObj.m }}
</span>
分
<span
class=
"wechat-txt"
>
{{ countDownObj.s }}
</span>
秒
<span
class=
"wechat-txt"
>
{{ countDownObj.s }}
</span>
秒
</p>
</p>
<img
v-else
class=
"count-down-img"
src=
"@/assets/seckillActivity/count-down.png"
/>
</div>
</div>
<div
class=
"w-100-percent txt-center"
>
<div
class=
"w-100-percent txt-center"
>
<img
class=
"crowd-jdt"
src=
"@/assets/seckillActivity/crowd-jdt.png"
/>
<img
class=
"crowd-jdt"
src=
"@/assets/seckillActivity/crowd-jdt.png"
/>
...
@@ -323,11 +324,14 @@ export default {
...
@@ -323,11 +324,14 @@ export default {
],
],
// 倒计时
// 倒计时
countDownObj
:
{
countDownObj
:
{
typeTxt
:
'距离活动开始'
,
activityStatus
:
1
,
d
:
''
,
d
:
''
,
h
:
''
,
h
:
''
,
m
:
''
,
m
:
''
,
s
:
''
s
:
''
},
},
fileList
:
[],
// 基本信息
// 基本信息
editFormData
:
[
editFormData
:
[
{
{
...
@@ -608,7 +612,7 @@ export default {
...
@@ -608,7 +612,7 @@ export default {
this
.
editForm
.
goodsStock
=
limitPrice
(
newValue
,
oldValue
,
5
,
0
,
0
)
this
.
editForm
.
goodsStock
=
limitPrice
(
newValue
,
oldValue
,
5
,
0
,
0
)
},
},
'editForm.activityTime'
(
newValue
)
{
'editForm.activityTime'
(
newValue
)
{
newValue
&&
this
.
countDown
()
newValue
&&
newValue
.
length
&&
this
.
countDown
()
},
},
'editForm.predictVolume'
(
newValue
,
oldValue
)
{
'editForm.predictVolume'
(
newValue
,
oldValue
)
{
this
.
editForm
.
predictVolume
=
limitPrice
(
newValue
,
oldValue
,
7
,
0
,
0
,
1000000
)
this
.
editForm
.
predictVolume
=
limitPrice
(
newValue
,
oldValue
,
7
,
0
,
0
,
1000000
)
...
@@ -659,8 +663,23 @@ export default {
...
@@ -659,8 +663,23 @@ export default {
return
i
<
10
?
`0
${
i
}
`
:
`
${
i
}
`
return
i
<
10
?
`0
${
i
}
`
:
`
${
i
}
`
},
},
findCountDownTime
()
{
let
startTime
=
new
Date
(
this
.
editForm
.
activityTime
[
0
])
let
endTime
=
new
Date
(
this
.
editForm
.
activityTime
[
1
])
let
currentTime
=
new
Date
()
// activityStatus 1:未开始,2进行中,3已结束
let
activityStatus
=
currentTime
<
startTime
?
1
:
endTime
<
currentTime
?
2
:
3
return
{
activityStatus
,
startTime
:
activityStatus
==
1
?
currentTime
:
activityStatus
==
2
?
currentTime
:
endTime
,
endTime
:
activityStatus
==
1
?
startTime
:
activityStatus
==
2
?
endTime
:
endTime
}
},
countDown
()
{
countDown
()
{
let
lefttime
=
parseInt
((
new
Date
(
this
.
editForm
.
activityTime
[
0
]).
getTime
()
-
new
Date
().
getTime
())
/
1000
)
if
(
this
.
editForm
.
activityTime
&&
this
.
editForm
.
activityTime
.
length
)
{
let
{
activityStatus
,
startTime
,
endTime
}
=
this
.
findCountDownTime
()
let
lefttime
=
parseInt
((
endTime
.
getTime
()
-
startTime
.
getTime
())
/
1000
)
let
d
=
parseInt
(
lefttime
/
(
24
*
60
*
60
))
let
d
=
parseInt
(
lefttime
/
(
24
*
60
*
60
))
let
h
=
parseInt
((
lefttime
/
(
60
*
60
))
%
24
)
let
h
=
parseInt
((
lefttime
/
(
60
*
60
))
%
24
)
let
m
=
parseInt
((
lefttime
/
60
)
%
60
)
let
m
=
parseInt
((
lefttime
/
60
)
%
60
)
...
@@ -668,10 +687,16 @@ export default {
...
@@ -668,10 +687,16 @@ export default {
h
=
this
.
addZero
(
h
)
h
=
this
.
addZero
(
h
)
m
=
this
.
addZero
(
m
)
m
=
this
.
addZero
(
m
)
s
=
this
.
addZero
(
s
)
s
=
this
.
addZero
(
s
)
let
typeTxt
=
{
1
:
'距离活动开始'
,
2
:
'距离活动结束'
,
3
:
'活动倒计时'
}[
activityStatus
]
if
(
this
.
time
)
clearTimeout
(
this
.
time
)
if
(
this
.
time
)
clearTimeout
(
this
.
time
)
this
.
time
=
setTimeout
(()
=>
{
this
.
time
=
setTimeout
(()
=>
{
if
(
d
>
0
)
d
=
this
.
addZero
(
d
)
if
(
d
>
0
)
d
=
this
.
addZero
(
d
)
this
.
countDownObj
=
{
this
.
countDownObj
=
{
typeTxt
:
typeTxt
,
d
:
d
,
d
:
d
,
h
:
h
,
h
:
h
,
m
:
m
,
m
:
m
,
...
@@ -679,6 +704,19 @@ export default {
...
@@ -679,6 +704,19 @@ export default {
}
}
this
.
countDown
()
this
.
countDown
()
},
1
*
1000
)
},
1
*
1000
)
}
else
{
this
.
countDownObj
=
{
typeTxt
:
'距离活动开始'
,
d
:
''
,
h
:
''
,
m
:
''
,
s
:
''
}
}
},
handleTimeChange
(
value
,
targetItem
)
{
!
value
&&
(
this
.
editForm
[
targetItem
.
name
]
=
[])
},
},
handleIsLimit
(
val
)
{
handleIsLimit
(
val
)
{
...
@@ -828,17 +866,19 @@ export default {
...
@@ -828,17 +866,19 @@ export default {
musicUpload
(
e
,
targetItem
)
{
musicUpload
(
e
,
targetItem
)
{
var
reader
=
new
FileReader
()
var
reader
=
new
FileReader
()
var
file
=
e
.
raw
var
file
=
e
// 默认1MB
// 默认1MB
const
limitSize
=
targetItem
.
limitSize
const
limitSize
=
targetItem
.
limitSize
const
isLt
=
file
.
size
/
1024
/
1024
<
limitSize
const
isLt
=
file
.
size
/
1024
/
1024
<
limitSize
const
isType
=
[
'audio/mp3'
,
'audio/m4a'
]
const
isType
=
[
'audio/mp3'
,
'audio/m4a'
]
if
(
!
isType
)
{
if
(
!
isType
)
{
this
.
$message
.
error
(
'上传文件不是jpg、jpeg或png的格式!'
)
this
.
$message
.
error
(
'上传文件不是jpg、jpeg或png的格式!'
)
this
.
fileList
=
[]
return
true
return
true
}
}
if
(
!
isLt
)
{
if
(
!
isLt
)
{
this
.
$message
.
error
(
'上传的文件大小不能超过'
+
limitSize
+
'MB!'
)
this
.
$message
.
error
(
'上传的文件大小不能超过'
+
limitSize
+
'MB!'
)
this
.
fileList
=
[]
return
true
return
true
}
}
reader
.
readAsDataURL
(
file
)
reader
.
readAsDataURL
(
file
)
...
@@ -851,12 +891,13 @@ export default {
...
@@ -851,12 +891,13 @@ export default {
}
}
},
},
handleMusic
Change
(
file
,
targetItem
)
{
handleMusic
BeforeUpload
(
file
,
targetItem
)
{
this
.
musicUpload
(
file
,
targetItem
)
this
.
musicUpload
(
file
,
targetItem
)
},
},
handleMusicDelete
(
targetItem
)
{
handleMusicDelete
(
targetItem
)
{
this
.
$set
(
this
.
editForm
,
targetItem
.
name
,
''
)
this
.
$set
(
this
.
editForm
,
targetItem
.
name
,
''
)
this
.
fileList
=
[]
},
},
// 表单设置
// 表单设置
...
@@ -1198,6 +1239,7 @@ export default {
...
@@ -1198,6 +1239,7 @@ export default {
line-height
:
22px
;
line-height
:
22px
;
padding
:
15px
;
padding
:
15px
;
border
:
1px
dotted
#e3e3e3
;
border
:
1px
dotted
#e3e3e3
;
margin-top
:
10px
;
}
}
.wechat-txt
{
.wechat-txt
{
color
:
#f13c3d
;
color
:
#f13c3d
;
...
@@ -1205,6 +1247,11 @@ export default {
...
@@ -1205,6 +1247,11 @@ export default {
padding
:
4px
;
padding
:
4px
;
margin
:
0
4px
;
margin
:
0
4px
;
}
}
.count-down-img
{
margin-top
:
10px
;
width
:
180px
;
height
:
188px
;
}
}
}
}
}
.edit-activity
.wechat-box
.wechat-banner-img
.crowd-jdt
{
.edit-activity
.wechat-box
.wechat-banner-img
.crowd-jdt
{
...
...
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