Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-link
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 3aba261d
authored
Mar 23, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
7231be84
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
18 deletions
src/main.js
src/views/activityLink/components/selectModel.vue
src/views/activityLink/editActivity.vue
src/views/activityLink/index.vue
src/main.js
View file @
3aba261
...
...
@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-03-2
2 17:08:52
* @LastEditTime: 2023-03-2
3 15:25:53
* @FilePath: \scrm\scrm-sub-blog\src\main.js
*/
import
Vue
from
'vue'
...
...
src/views/activityLink/components/selectModel.vue
View file @
3aba261
...
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-03-18 18:47:05
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-03-2
2 17:24:42
* @LastEditTime: 2023-03-2
3 13:46:46
* @FilePath: \scrm-micro-link\src\views\activityLink\components\selectModel.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%A
-->
...
...
@@ -11,8 +11,8 @@
<GLDialog
title=
"选择模板"
width=
"1080px"
:visible
.
sync=
"dialogVisible"
:before-close=
"handleClose"
:close-on-click-modal=
"false"
@
onOk=
"handleConfirm"
@
onCancel=
"handleClose"
>
<div
class=
"model-panel"
>
<div
class=
"model-item"
v-for=
"item in modelList"
:key=
"item.value"
>
<img
:src=
"item.imgUrl"
alt=
""
@
click=
"modelValue = item"
/>
<img
src=
"@/assets/seckillActivity/check.png"
v-if=
"modelValue
.value
== item.value"
class=
"checked"
/>
<img
:src=
"item.imgUrl"
alt=
""
/>
<img
src=
"@/assets/seckillActivity/check.png"
v-if=
"modelValue == item.value"
class=
"checked"
/>
<div
class=
"model-title"
>
{{
item
.
name
}}
</div>
</div>
</div>
...
...
@@ -41,16 +41,17 @@ export default {
name
:
'续保招揽'
,
imgUrl
:
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/activity-3.png'
}
],
modelValue
:
{
value
:
1
}
]
}
},
props
:
{
dialogVisible
:
{
type
:
Boolean
,
default
:
false
},
modelValue
:
{
type
:
Number
,
default
:
1
}
},
methods
:
{
...
...
src/views/activityLink/editActivity.vue
View file @
3aba261
...
...
@@ -113,7 +113,7 @@
<!-- 活动配置 -->
<div
class=
"container edit-container crowd-config"
v-show=
"step == 3"
>
<p
class=
"edit-title"
id=
"config"
>
配物料
</p>
<div
class=
"config-right"
>
<div
class=
"config-right"
v-if=
"editForm.subscribe == 2 || editForm.subscribe == 5 || editForm.subscribe == 6"
>
<div
class=
"config-right-box"
>
<div
class=
"config-box-title"
>
{{ editForm.activityName }}
</div>
<img
class=
"config-box-bg"
:src=
"activityModelImg"
v-if=
"activityModelImg"
/>
...
...
@@ -352,7 +352,7 @@
<select-gift-dialog
:merchantId=
"editForm.merchantId"
v-if=
"isSelectGiftVisible"
:isSelectGiftVisible=
"isSelectGiftVisible"
:selectedGiftList=
"selectedMealList"
@
handleGiftConfirm=
"handleGiftConfirm"
@
handleGiftClose=
"handleGiftClose"
></select-gift-dialog>
<select-goods-dialog
v-if=
"isSelectGoodsVisible"
:isSelectGoodsVisible=
"isSelectGoodsVisible"
:selectedGoodsLists=
"selectedGoodsList"
@
handleGoodsConfirm=
"handleGoodsConfirm"
@
handleGoodsClose=
"handleGoodsClose"
></select-goods-dialog>
<select-store
v-if=
"relateStoreVisible"
ref=
"relateStore"
:dialogVisible=
"relateStoreVisible"
:storeSelected=
"selectedList"
:merchantInfo=
"editForm.merchantId"
@
handleRelateStoreConfirm=
"handleRelateStoreConfirm"
@
handleRelateStoreClose=
"handleRelateStoreClose"
></select-store>
<select-model
v-if=
"relateModelVisible"
:dialogVisible=
"relateModelVisible"
:model
Selected=
"modelSelected
"
@
handleRelateModelConfirm=
"handleRelateModelConfirm"
@
handleRelateModelClose=
"handleRelateModelClose"
></select-model>
<select-model
v-if=
"relateModelVisible"
:dialogVisible=
"relateModelVisible"
:model
Value=
"editForm.pageStyle
"
@
handleRelateModelConfirm=
"handleRelateModelConfirm"
@
handleRelateModelClose=
"handleRelateModelClose"
></select-model>
</div>
</div>
</template>
...
...
@@ -951,7 +951,8 @@ export default {
{
label
:
'页面样式'
,
name
:
'pageStyle'
,
addHtml
:
'selectGoodsBtn'
addHtml
:
'selectGoodsBtn'
,
isHide
:
true
},
{
label
:
'活动名称'
,
...
...
@@ -1185,6 +1186,19 @@ export default {
this
.
recoveryTotalPrice
()
this
.
hasCouponBlock
(
false
)
},
'editForm.subscribe'
(
val
)
{
if
(
this
.
routeInfo
.
addOrEdit
!=
'add'
)
return
this
.
configEditFormData
[
0
].
isHide
=
false
if
(
val
==
6
)
{
this
.
handleRelateModelConfirm
(
1
,
false
)
}
else
if
(
val
==
2
)
{
this
.
handleRelateModelConfirm
(
2
,
false
)
}
else
if
(
val
==
5
)
{
this
.
handleRelateModelConfirm
(
3
,
false
)
}
else
{
this
.
configEditFormData
[
0
].
isHide
=
true
}
},
'editForm.playingType'
(
val
)
{
if
(
val
==
2
)
{
this
.
editRule
.
couponList
[
0
].
required
=
true
...
...
@@ -1483,13 +1497,13 @@ export default {
this
.
relateModelVisible
=
!
this
.
relateModelVisible
console
.
log
(
this
.
relateModelVisible
)
},
handleRelateModelConfirm
(
val
)
{
handleRelateModelConfirm
(
val
,
status
=
true
)
{
this
.
$refs
.
configEditFormRef
.
$refs
[
this
.
editChildRef
].
clearValidate
(
'pageStyle'
)
this
.
editForm
.
pageStyle
=
val
.
value
this
.
handleRelateModelClose
()
this
.
editForm
.
pageStyle
=
val
status
&&
this
.
handleRelateModelClose
()
this
.
editForm
.
activityBigImg
=
`
${
this
.
staticImgUrl
}
model-main-
${
val
.
value
}
.png`
const
html
=
`<p><img src="
${
this
.
staticImgUrl
}
model-detail-
${
val
.
value
}
.png" style="max-width:100%;" contenteditable="false"/></p>`
this
.
editForm
.
activityBigImg
=
`
${
this
.
staticImgUrl
}
model-main-
${
val
}
.png`
const
html
=
`<p><img src="
${
this
.
staticImgUrl
}
model-detail-
${
val
}
.png" style="max-width:100%;" contenteditable="false"/></p>`
this
.
editForm
.
activityDetail
=
html
this
.
$refs
.
configEditFormRef
.
$refs
.
activityDetailTextBox
[
0
].
setEdit
(
html
)
},
...
...
@@ -1735,6 +1749,9 @@ export default {
if
(
info
.
predictVolume
)
{
this
.
editForm
.
predictVolume
=
(
info
.
predictVolume
/
100
).
toFixed
(
2
)
}
if
(
info
.
verificationEncourage
)
{
this
.
editForm
.
verificationEncourage
=
(
info
.
verificationEncourage
/
100
).
toFixed
(
2
)
}
// 地图
if
(
info
.
activityAddressProvinceName
||
info
.
activityAddressCityName
)
{
this
.
$refs
.
configEditFormRef
.
$refs
.
provinceForm
[
0
].
init
(
info
.
activityAddressProvinceName
,
info
.
activityAddressCityName
)
...
...
@@ -1903,6 +1920,9 @@ export default {
if
(
this
.
editForm
.
predictVolume
)
{
param
.
predictVolume
=
(
this
.
editForm
.
predictVolume
*
100
).
toFixed
(
0
)
}
if
(
this
.
editForm
.
verificationEncourage
)
{
param
.
verificationEncourage
=
(
this
.
editForm
.
verificationEncourage
*
100
).
toFixed
(
0
)
}
// 活动详情
if
(
this
.
editForm
.
activityDetail
)
{
param
.
activityDetail
=
encodeURIComponent
(
this
.
editForm
.
activityDetail
)
...
...
@@ -1932,7 +1952,8 @@ export default {
couponAnticipatedCost
:
item
.
denomination
}
})
param
.
couponCreateRequests
=
couponLists
.
concat
(
selectedGoodsList
)
param
.
couponCreateRequests
=
couponLists
.
concat
(
selectedGoodsList
)
||
[]
console
.
log
(
param
.
couponCreateRequests
)
delete
param
.
couponList
// 标杆门店总产值/元(已结束战报)
if
(
param
.
activityActionReport
.
signMerchantProduceCount
)
{
...
...
src/views/activityLink/index.vue
View file @
3aba261
...
...
@@ -7,7 +7,7 @@
<!-- 表格区域 开始 -->
<div
class=
"live-table-header"
>
<h2>
活动列表
</h2>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleEdit('add')"
>
创建活动链接
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleEdit('add')"
v-if=
"loginpath"
>
创建活动链接
</el-button>
</div>
<GLTable
ref=
"classifyRef"
:getListApi=
"getListApi"
:hasNum=
"false"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
class=
"sub-tabel"
slot=
"giftInfo"
slot-scope=
"scope"
>
...
...
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