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
7d6e315a
Commit
7d6e315a
authored
Nov 17, 2021
by
liuchenxi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/11月迭代' of
http://git.gicdev.com/marketing-web/marketing
into feature/11月迭代
parents
1f8916d7
cf39bdd1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
107 additions
and
3 deletions
+107
-3
ecmApi.js
src/service/api/ecmApi.js
+2
-0
form.js
src/views/card/form.js
+43
-1
form.vue
src/views/card/form.vue
+5
-0
item-wxa.vue
src/views/ecm/marketing-event/components/item-wxa.vue
+57
-2
No files found.
src/service/api/ecmApi.js
View file @
7d6e315a
...
...
@@ -77,3 +77,5 @@ export const getUseStoredFalg = params => requests(PREFIX + 'get-ecm-store-flag'
export
const
getXsxsFalg
=
params
=>
requests
(
PREFIX
+
'get-xsxs-open-flag'
,
params
);
export
const
getEcmLog
=
params
=>
requests
(
PREFIX
+
'get-ecm-operator_log'
,
params
);
export
const
getLinkResourceStatus
=
params
=>
requests
(
'api-admin/get-link-resource-status'
,
params
);
src/views/card/form.js
View file @
7d6e315a
...
...
@@ -11,6 +11,7 @@ import xxSysp_mix from '@/mixins/selector.js'; // 商品选择器方法
import
{
listEntepriseWeimobShop
,
listEntepriseWeimobCoupon
}
from
'@/service/api/commonApi.js'
;
import
{
getCardDetail
,
saveUpdateCard
,
copyCardDetailService
,
getCardManualSetting
,
getCategoryList
,
getPropertyList
,
getLatestReptileTime
,
getPropertyValueList
,
getWeimobCouponBindCount
,
getCardEffectiveMode
}
from
'@/service/api/cardApi.js'
;
import
dmGoodsInput
from
'@/components/goods-input/index.vue'
;
import
{
getLinkResourceStatus
}
from
'@/service/api/ecmApi.js'
;
const
initForm
=
{
auditingStatus
:
''
,
cardType
:
0
,
// 1.卡券类型: 抵金券: 0; 折扣券: 1; 兑换券: 2
...
...
@@ -253,7 +254,8 @@ export default {
code
:
'015f1e5a-3b2f-42f5-b638-6a29c17e8f7e'
,
imgUrl
:
'https://pic01-10001430.image.myqcloud.com/015f1e5a-3b2f-42f5-b638-6a29c17e8f7e'
},
showWeimobDemoSelector
:
false
showWeimobDemoSelector
:
false
,
statusText
:
''
};
},
watch
:
{
...
...
@@ -392,6 +394,45 @@ export default {
}
},
methods
:
{
getLinkResourceStatus
(
v
)
{
let
result
=
JSON
.
parse
(
v
);
const
params
=
{
id
:
result
.
id
,
params
:
''
};
switch
(
result
.
id
)
{
case
'product_category_link'
:
case
'mall_costomize_page'
:
case
'28'
:
case
28
:
case
'17'
:
case
17
:
case
'coup'
:
case
'gift'
:
result
.
params
&&
(
params
.
params
=
JSON
.
stringify
(
result
.
params
));
break
;
case
'yueshi-intergral_mall'
:
params
.
params
=
''
;
break
;
case
'35'
:
case
35
:
params
.
params
=
result
.
appid
;
break
;
case
'GAME_LINK_DZP'
:
case
'GAME_LINK_GGK'
:
case
'GAME_LINK_PTYX'
:
case
'GAME_LINK_KLFL'
:
case
'GAME_LINK_ZNM'
:
params
.
params
=
result
.
tagid
;
break
;
default
:
return
;
}
const
statusMap
=
{
1
:
'已删除'
,
2
:
'已失效'
};
getLinkResourceStatus
(
params
).
then
(
res
=>
{
this
.
statusText
=
statusMap
[
res
.
result
]
||
''
;
});
},
onChangeNumber
(
val
)
{
if
(
!
val
)
{
this
.
$nextTick
(()
=>
{
...
...
@@ -753,6 +794,7 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$refs
.
form
.
clearValidate
();
});
card
.
jumpFlag
==
1
&&
this
.
getLinkResourceStatus
(
card
.
jumpLink
);
}
}
else
{
this
.
$tips
({
type
:
'error'
,
message
:
'初始化数据失败'
});
...
...
src/views/card/form.vue
View file @
7d6e315a
...
...
@@ -302,6 +302,7 @@
<!-- 可以编辑链接 -->
<el-button
@
click=
"linkToolsVisible = true"
type=
"text"
class=
"ml10"
>
{{
JSON
.
stringify
(
form
.
jumpLink
)
==
'{
}
'
?
'设置链接'
:
'修改链接'
}}
<
/el-button
>
<
span
class
=
"gray ml10"
>
{{
form
.
jumpLink
.
name
}}
<
/span
>
<
span
class
=
"link-status"
>
{{
statusText
}}
<
/span
>
<
/template
>
<
div
class
=
"gray fz13"
>*
开启后小程序卡券详情将对应路径的跳转按钮
<
/div
>
<
/el-form-item
>
...
...
@@ -397,6 +398,10 @@ export default cardForm;
<
/script
>
<
style
lang
=
"scss"
scoped
>
.
link
-
status
{
margin
-
left
:
20
px
;
color
:
#
f5222d
;
}
.
f
-
alert
{
width
:
900
px
!
important
;
/deep/
.
el
-
alert__content
{
...
...
src/views/ecm/marketing-event/components/item-wxa.vue
View file @
7d6e315a
...
...
@@ -8,19 +8,23 @@
</div>
<p
class=
"ellipsis-l2"
>
{{
item
.
title
}}
</p>
<img
:src=
"item.imageUrl || loadErrorImg"
alt=
""
srcset=
""
/>
<p
class=
"dm-wxa__item--bottom"
><img
src=
"../assets/img/wxa-circle.svg"
alt=
""
srcset=
""
/><span>
小程序
</span></p>
<p
class=
"dm-wxa__item--bottom"
>
<img
src=
"../assets/img/wxa-circle.svg"
alt=
""
srcset=
""
/><span>
小程序
</span><span
class=
"wxa-status"
>
{{
statusText
}}
</span>
</p>
</div>
</div>
</
template
>
<
script
>
import
{
getLinkResourceStatus
}
from
'@/service/api/ecmApi.js'
;
export
default
{
name
:
'item-wxa'
,
data
()
{
return
{
maskShow
:
false
,
// eslint-disable-next-line
loadErrorImg
:
require
(
'../assets/img/loaderror.png'
)
loadErrorImg
:
require
(
'../assets/img/loaderror.png'
),
statusText
:
''
};
},
props
:
{
...
...
@@ -30,6 +34,57 @@ export default {
return
{};
}
}
},
mounted
()
{
this
.
getLinkResourceStatus
(
this
.
item
.
pagePath
);
},
methods
:
{
getLinkResourceStatus
(
v
)
{
let
result
=
JSON
.
parse
(
v
);
const
params
=
{
id
:
result
.
type
,
params
:
''
};
switch
(
result
.
type
)
{
case
'product_category_link'
:
case
'mall_costomize_page'
:
case
'28'
:
case
28
:
case
'17'
:
case
17
:
case
'coup'
:
case
'gift'
:
result
.
params
&&
(
params
.
params
=
JSON
.
stringify
(
result
.
params
));
break
;
case
'yueshi_integral_mall'
:
params
.
params
=
''
;
break
;
case
'35'
:
case
35
:
params
.
params
=
result
.
appid
;
break
;
case
'GAME_LINK_DZP'
:
case
'GAME_LINK_GGK'
:
case
'GAME_LINK_PTYX'
:
case
'GAME_LINK_KLFL'
:
case
'GAME_LINK_ZNM'
:
params
.
params
=
result
.
tagid
;
break
;
default
:
return
;
}
const
statusMap
=
{
1
:
'已删除'
,
2
:
'已失效'
};
getLinkResourceStatus
(
params
).
then
(
res
=>
{
this
.
statusText
=
statusMap
[
res
.
result
]
||
''
;
});
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
.wxa-status
{
margin-left
:
20px
;
color
:
#f5222d
;
}
</
style
>
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