Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
marketing-web
marketing
Commits
1b05ee89
Commit
1b05ee89
authored
Nov 05, 2018
by
zhangmeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复卡券投放不能选取营销场景的bug
parent
dd76e782
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
14 deletions
+27
-14
index.html
dist/index.html
+2
-2
app.43b0b43b0c9faa908da8.js
dist/static/js/app.43b0b43b0c9faa908da8.js
+0
-0
group-send.vue
src/views/card/group-send.vue
+25
-12
No files found.
dist/index.html
View file @
1b05ee89
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><link
rel=
"shortcut icon"
href=
./static/img/favicon.ico
><title>
GIC后台
</title><link
rel=
stylesheet
type=
text/css
href=
static/css/iconfont.css
><link
rel=
stylesheet
type=
text/css
href=
static/css/common.css
><link
href=
/marketing/static/css/app.1d82a5a6816bc5796024ca95599baea5.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
/marketing/static/js/manifest.0a85049e489e85ac5f0a.js
></script><script
type=
text/javascript
src=
/marketing/static/js/vendor.ad484ea676beca0f8899.js
></script><script
type=
text/javascript
src=
/marketing/static/js/app.05267bb329e39d34a71f.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><link
rel=
"shortcut icon"
href=
./static/img/favicon.ico
><title>
GIC后台
</title><link
rel=
stylesheet
type=
text/css
href=
static/css/iconfont.css
><link
rel=
stylesheet
type=
text/css
href=
static/css/common.css
><link
href=
/marketing/static/css/app.1d82a5a6816bc5796024ca95599baea5.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
/marketing/static/js/manifest.0a85049e489e85ac5f0a.js
></script><script
type=
text/javascript
src=
/marketing/static/js/vendor.ad484ea676beca0f8899.js
></script><script
type=
text/javascript
src=
/marketing/static/js/app.43b0b43b0c9faa908da8.js
></script></body></html>
\ No newline at end of file
dist/static/js/app.
05267bb329e39d34a71f
.js
→
dist/static/js/app.
43b0b43b0c9faa908da8
.js
View file @
1b05ee89
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/views/card/group-send.vue
View file @
1b05ee89
...
...
@@ -3,27 +3,29 @@
<div
class=
"dm-form__wrap"
>
<h3
class=
"dm-title__label"
>
基础设置
</h3>
<el-form-item
label=
"活动名称"
prop=
"putOnName"
>
<dm-input
class=
"w250"
v-model=
"info.putOnName"
:maxlength=
"9"
:disabled=
"i
nfoFlag
"
></dm-input>
<dm-input
class=
"w250"
v-model=
"info.putOnName"
:maxlength=
"9"
:disabled=
"i
sInfo
"
></dm-input>
</el-form-item>
<el-form-item
label=
"投放卡券"
>
<el-input
class=
"w250"
v-model=
"info.cardName"
disabled
></el-input>
</el-form-item>
<el-form-item
label=
"发送时间"
>
<el-select
class=
"w250"
v-model=
"info.putOnType"
:disabled=
"i
nfoFlag
"
>
<el-select
class=
"w250"
v-model=
"info.putOnType"
:disabled=
"i
sInfo
"
>
<el-option
v-for=
"(v,i) in putOnTypeOptions"
:key=
"i"
:value=
"v.value"
:label=
"v.label"
></el-option>
</el-select>
<el-date-picker
:disabled=
"i
nfoFlag
"
class=
"w250"
v-if=
"info.putOnType"
v-model=
"info.putOnTime"
type=
"datetime"
placeholder=
"选择日期时间"
align=
"right"
:picker-options=
"pickerOptions"
></el-date-picker>
<el-date-picker
:disabled=
"i
sInfo
"
class=
"w250"
v-if=
"info.putOnType"
v-model=
"info.putOnTime"
type=
"datetime"
placeholder=
"选择日期时间"
align=
"right"
:picker-options=
"pickerOptions"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"营销场景"
>
<span>
{{
info
.
sceneSettingName
||
'--'
}}
</span>
<el-select
class=
"w250"
v-model=
"info.sceneSettingId"
:disabled=
"isInfo"
>
<el-option
v-for=
"(v,i) in sceneSettingOptions"
:key=
"i"
:value=
"v.sceneSettingId"
:label=
"v.sceneName"
></el-option>
</el-select>
</el-form-item>
</div>
<div
class=
"dm-form__wrap"
>
<h3
class=
"dm-title__label"
>
会员设置
</h3>
<div
class=
"pb20"
>
<span
class=
"dm-input_label pr10"
>
选择会员
</span>
<el-radio
:disabled=
"i
nfoFlag
"
v-model=
"info.memberType"
:label=
"0"
>
会员筛选
</el-radio>
<el-radio
:disabled=
"i
nfoFlag
"
v-model=
"info.memberType"
:label=
"1"
>
指定会员
</el-radio>
<el-radio
:disabled=
"i
sInfo
"
v-model=
"info.memberType"
:label=
"0"
>
会员筛选
</el-radio>
<el-radio
:disabled=
"i
sInfo
"
v-model=
"info.memberType"
:label=
"1"
>
指定会员
</el-radio>
</div>
<div
v-show=
"!info.memberType"
>
<vue-gic-people
:projectName=
"projectName"
:useId=
"useId"
:hasSearchData=
"hasSearchData"
:sceneValue=
"sceneValue"
ref=
"peopleFilter"
@
findFilter=
"findFilter"
@
getBackData=
"getBackData"
@
editHide=
"editHide"
@
editShow=
"editShow"
@
hideBtn=
"hideBtn"
/>
...
...
@@ -35,15 +37,15 @@
<vue-gic-confirm-people
v-show=
"info.memberType"
idType=
"memberId"
@
get-data=
"getConfirmData"
:list=
"memberList"
></vue-gic-confirm-people>
</div>
<div
class=
"btn-wrap_fixed"
:class=
"
{'on':asideShow}">
<el-button
v-if=
"!i
nfoFlag
"
type=
"primary"
@
click=
"submit('info')"
>
提 交
</el-button>
<el-button
v-if=
"!i
sInfo
"
type=
"primary"
@
click=
"submit('info')"
>
提 交
</el-button>
<el-button
@
click=
"$router.go(-1)"
>
返回
</el-button>
</div>
</el-form>
</
template
>
<
script
>
import
{
checkPutonMemberIds
,
saveUpdatePutonCard
,
getCardPutonDetail
}
from
'@/service/api/cardApi.js'
import
{
sceneSettingList
}
from
'@/service/api/wechatApi.js'
import
{
formateDateTimeByType
}
from
'@/utils/index.js'
import
{
checkPutonMemberIds
,
saveUpdatePutonCard
,
getCardPutonDetail
}
from
'@/service/api/cardApi.js'
;
import
{
formateDateTimeByType
}
from
'@/utils/index.js'
;
import
{
sceneSettingList
}
from
'@/service/api/commonApi.js'
;
export
default
{
name
:
'card-group'
,
data
()
{
...
...
@@ -78,9 +80,10 @@ export default {
rules
:{
putOnName
:{
required
:
true
,
message
:
'活动名称不能为空'
,
trigger
:
'blur'
}
},
sceneSettingOptions
:[],
memberList
:[],
editFlag
:
this
.
$route
.
meta
.
type
===
'edit'
,
i
nfoFlag
:
this
.
$route
.
meta
.
type
===
'info'
,
i
sInfo
:
this
.
$route
.
meta
.
type
===
'info'
,
}
},
computed
:
{
...
...
@@ -90,9 +93,12 @@ export default {
},
created
()
{
console
.
log
(
this
.
$route
.
meta
.
type
)
if
(
this
.
editFlag
||
this
.
i
nfoFlag
)
{
if
(
this
.
editFlag
||
this
.
i
sInfo
)
{
this
.
getCardPutonDetail
();
}
// if (this.isInfo) {
this
.
sceneSettingList
();
// }
this
.
$store
.
commit
(
'mutations_breadcrumb'
,[{
name
:
'营销管理'
,
path
:
''
},{
name
:
'卡券营销'
,
path
:
'/card'
},{
name
:
'卡券库'
,
path
:
'/card/list'
},{
name
:
'卡券群发'
,
path
:
''
}])
},
methods
:{
...
...
@@ -255,7 +261,14 @@ export default {
}
}
})
},
async
sceneSettingList
()
{
let
res
=
await
sceneSettingList
();
if
(
res
.
errorCode
===
0
)
{
this
.
sceneSettingOptions
=
res
.
result
||
[];
}
}
},
}
</
script
>
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