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 667ff0ac
authored
Jul 18, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'chenwq_dev_v2.6.0' into 'v2.6.0'
Chenwq dev v2.6.0 See merge request
!248
2 parents
fa71c897
6890fb76
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
16 deletions
src/views/seckillActivity/editCrowdFund.vue
src/views/seckillActivity/editCrowdFund.vue
View file @
667ff0a
<!-- 众筹活动 -->
<!-- 众筹活动 -->
<
template
>
<
template
>
<div
class=
"edit-share marketing p-t-20 edit-box edit-activity"
>
<div
class=
"edit-share marketing p-t-20 edit-box edit-activity"
v-loading=
"loading"
>
<div
class=
"container edit-container"
>
<div
class=
"container edit-container"
>
<!-- 基本信息 -->
<!-- 基本信息 -->
<p
class=
"edit-title"
>
基本信息
</p>
<p
class=
"edit-title"
>
基本信息
</p>
...
@@ -94,10 +94,10 @@
...
@@ -94,10 +94,10 @@
<el-form-item
label=
"参团:"
prop=
"fictitiousGroupQuantity"
labelWidth=
"60px"
>
<el-form-item
label=
"参团:"
prop=
"fictitiousGroupQuantity"
labelWidth=
"60px"
>
<el-input
v-model=
"editForm.fictitiousGroupQuantity"
style=
"width: 90px"
maxlength=
"50"
placeholder=
"参团人数"
></el-input>
<el-input
v-model=
"editForm.fictitiousGroupQuantity"
style=
"width: 90px"
maxlength=
"50"
placeholder=
"参团人数"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"阶梯人数:"
prop=
"fictitiousLadderQuantity"
labelWidth=
"90px"
>
<el-form-item
id=
"fictitiousLadderQuantity"
label=
"阶梯人数:"
prop=
"fictitiousLadderQuantity"
labelWidth=
"90px"
>
<el-input
v-model=
"editForm.fictitiousLadderQuantity"
style=
"width: 90px"
maxlength=
"50"
placeholder=
"阶梯人数"
></el-input>
<el-input
v-model=
"editForm.fictitiousLadderQuantity"
style=
"width: 90px"
maxlength=
"50"
placeholder=
"阶梯人数"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"浏览:"
prop=
"fictitiousViewQuantity"
labelWidth=
"60px"
>
<el-form-item
id=
"fictitiousViewQuantity"
label=
"浏览:"
prop=
"fictitiousViewQuantity"
labelWidth=
"60px"
>
<el-input
v-model=
"editForm.fictitiousViewQuantity"
style=
"width: 90px"
maxlength=
"50"
placeholder=
"浏览人数"
></el-input>
<el-input
v-model=
"editForm.fictitiousViewQuantity"
style=
"width: 90px"
maxlength=
"50"
placeholder=
"浏览人数"
></el-input>
</el-form-item>
</el-form-item>
</div>
</div>
...
@@ -191,6 +191,7 @@ export default {
...
@@ -191,6 +191,7 @@ export default {
footerLeft
:
'0'
,
footerLeft
:
'0'
,
footerWidth
:
'0'
,
footerWidth
:
'0'
,
editChildRef
:
'editChildRef'
,
editChildRef
:
'editChildRef'
,
loading
:
false
,
userInfo
:
{},
userInfo
:
{},
pickerOptions
:
{
pickerOptions
:
{
disabledDate
(
v
)
{
disabledDate
(
v
)
{
...
@@ -245,6 +246,9 @@ export default {
...
@@ -245,6 +246,9 @@ export default {
activityBigImg
:
''
,
activityBigImg
:
''
,
activityVideos
:
[],
activityVideos
:
[],
activityDetail
:
''
,
activityDetail
:
''
,
fictitiousGroupQuantity
:
''
,
fictitiousLadderQuantity
:
30
,
fictitiousViewQuantity
:
''
,
forwardTitle
:
''
,
forwardTitle
:
''
,
posterImg
:
''
posterImg
:
''
// formDescribeFirst: '',
// formDescribeFirst: '',
...
@@ -289,15 +293,7 @@ export default {
...
@@ -289,15 +293,7 @@ export default {
trigger
:
'change'
trigger
:
'change'
}
}
],
],
goodsStock
:
[
goodsStock
:
[{
required
:
true
,
message
:
'请设置活动库存'
,
trigger
:
'change'
}],
{
required
:
true
,
message
:
'请设置活动库存'
,
trigger
:
'change'
}
// {
// validator: (rule, value, callback) => {
// return value > this.selectedProInfo.goodsStock ? callback(new Error('活动库存不能大于商品库存')) : callback()
// },
// trigger: 'change'
// }
],
goodsId
:
[{
required
:
true
,
message
:
'请选择商品'
,
trigger
:
[
'change'
,
'blur'
]
}],
goodsId
:
[{
required
:
true
,
message
:
'请选择商品'
,
trigger
:
[
'change'
,
'blur'
]
}],
limitPurchaseFlag
:
[{
required
:
true
,
message
:
'请选择是否限购'
,
trigger
:
'change'
}],
limitPurchaseFlag
:
[{
required
:
true
,
message
:
'请选择是否限购'
,
trigger
:
'change'
}],
limitPurchaseNumber
:
[
limitPurchaseNumber
:
[
...
@@ -314,6 +310,7 @@ export default {
...
@@ -314,6 +310,7 @@ export default {
],
],
// 活动配置
// 活动配置
customerServicePhone
:
{
required
:
false
,
validator
:
validatorPhone
,
trigger
:
'change'
},
customerServicePhone
:
{
required
:
false
,
validator
:
validatorPhone
,
trigger
:
'change'
},
fictitiousLadderQuantity
:
[{
required
:
true
,
message
:
'请输入阶梯人数'
,
trigger
:
'change'
}],
fictitiousViewQuantity
:
[
fictitiousViewQuantity
:
[
{
{
validator
:
(
rule
,
value
,
callback
)
=>
{
validator
:
(
rule
,
value
,
callback
)
=>
{
...
@@ -938,8 +935,11 @@ export default {
...
@@ -938,8 +935,11 @@ export default {
},
},
getMerchantInfo
()
{
getMerchantInfo
()
{
this
.
loading
=
true
let
merchantId
=
this
.
$globalState
.
session
.
merchantId
let
merchantId
=
this
.
$globalState
.
session
.
merchantId
this
.
$apis
.
common
.
getMerchantInfoApi
({
merchantId
:
merchantId
}).
then
(
res
=>
{
this
.
$apis
.
common
.
getMerchantInfoApi
({
merchantId
:
merchantId
})
.
then
(
res
=>
{
this
.
userInfo
=
res
this
.
userInfo
=
res
this
.
editForm
.
sponsorName
=
res
.
merchantName
this
.
editForm
.
sponsorName
=
res
.
merchantName
// 地图
// 地图
...
@@ -958,10 +958,16 @@ export default {
...
@@ -958,10 +958,16 @@ export default {
this
.
editStatus
=
false
this
.
editStatus
=
false
})
})
})
})
.
finally
(()
=>
{
this
.
loading
=
false
})
},
},
getInfo
()
{
getInfo
()
{
this
.
$apis
.
seckillActivity
.
getActivityDetailApi
({
id
:
this
.
routeInfo
.
id
}).
then
(
res
=>
{
this
.
loading
=
true
this
.
$apis
.
seckillActivity
.
getActivityDetailApi
({
id
:
this
.
routeInfo
.
id
})
.
then
(
res
=>
{
var
info
=
res
var
info
=
res
this
.
editForm
=
this
.
$common
.
utils
.
deepClone
(
res
)
this
.
editForm
=
this
.
$common
.
utils
.
deepClone
(
res
)
this
.
activityInfo
=
info
this
.
activityInfo
=
info
...
@@ -1002,6 +1008,9 @@ export default {
...
@@ -1002,6 +1008,9 @@ export default {
this
.
editStatus
=
false
this
.
editStatus
=
false
})
})
})
})
.
finally
(()
=>
{
this
.
loading
=
false
})
},
},
validateRules
()
{
validateRules
()
{
...
@@ -1078,9 +1087,12 @@ export default {
...
@@ -1078,9 +1087,12 @@ export default {
},
},
addOrUpdate
()
{
addOrUpdate
()
{
this
.
loading
=
true
var
params
=
this
.
getCouponInfoParams
()
var
params
=
this
.
getCouponInfoParams
()
this
.
$apis
.
seckillActivity
.
addOrUpdateActivityApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
seckillActivity
.
addOrUpdateActivityApi
(
params
)
.
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
?
res
.
message
:
'操作失败'
,
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
?
res
.
message
:
'操作失败'
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
type
:
res
.
code
==
'0'
?
'success'
:
'error'
...
@@ -1089,6 +1101,9 @@ export default {
...
@@ -1089,6 +1101,9 @@ export default {
this
.
cancelJump
()
this
.
cancelJump
()
}
}
})
})
.
finally
(()
=>
{
this
.
loading
=
false
})
},
},
handleConfirm
()
{
handleConfirm
()
{
...
@@ -1346,13 +1361,17 @@ export default {
...
@@ -1346,13 +1361,17 @@ export default {
}
}
.edit-activity
.form-describe
{
.edit-activity
.form-describe
{
width
:
560px
;
width
:
560px
;
padding
:
20px
;
padding
:
0
20px
20px
;
background
:
#f9f9f9
;
background
:
#f9f9f9
;
}
}
.edit-activity
.form-describe
:first-child
{
padding
:
20px
;
}
.edit-activity
.describe-input
{
.edit-activity
.describe-input
{
width
:
474px
;
width
:
474px
;
}
}
.edit-activity
.describe-delete
{
.edit-activity
.describe-delete
{
color
:
#999999
;
margin-left
:
8px
;
margin-left
:
8px
;
}
}
.edit-activity
.describe-plus
{
.edit-activity
.describe-plus
{
...
...
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