Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-discover
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 e6ba6ba3
authored
Jan 13, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
881aef6f
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
4 additions
and
32 deletions
src/views/channel/add.vue
src/views/store/add.vue
src/views/store/components/activity.vue
src/views/store/components/carChannel.vue
src/views/store/components/certificate.vue
src/views/store/components/membrane.vue
src/views/store/components/selectStore.vue
src/views/store/index.vue
src/views/channel/add.vue
View file @
e6ba6ba
...
...
@@ -37,7 +37,6 @@
<el-form
ref=
"ruleForm"
:model=
"channelForm"
label-width=
"154px"
:rules=
"rules"
>
<el-form-item
label=
"频道分享预览图:"
prop=
"publicityImg"
>
<glsx-preview
:picOptions=
"shareOptions"
:imageUrlArr=
"channelForm.publicityImgArr"
@
change=
"changeChannelImg"
></glsx-preview>
<!--
<div
class=
"el-form-item__error"
v-if=
"publicityImgFlag"
>
请上传频道分享预览图
</div>
-->
</el-form-item>
<div
class=
"text-tip"
>
建议尺寸:520*416
</div>
<el-form-item
label=
"频道分享文案:"
prop=
"promotion"
>
...
...
src/views/store/add.vue
View file @
e6ba6ba
...
...
@@ -65,14 +65,9 @@ export default {
}
},
created
()
{
// this.getconfigMerchant()
},
methods
:
{
// getconfigMerchant() {
// this.$apis.store.getconfigMerchant({}).then(res => {
// console.log(res)
// })
// },
handleCancel
()
{
this
.
$router
.
go
(
-
1
)
},
...
...
src/views/store/components/activity.vue
View file @
e6ba6ba
...
...
@@ -67,6 +67,7 @@ export default {
data
()
{
return
{
activityForm
:
{
pagePathContent
:
''
,
pagePathType
:
''
,
mediaUrl
:
''
,
activityDetails
:
''
,
...
...
@@ -163,7 +164,6 @@ export default {
})
this
.
activityForm
.
activityPrice
=
Number
(
this
.
activityForm
.
activityDetails
.
activityPrice
)
/
100
this
.
activityForm
.
productPrice
=
Number
(
this
.
activityForm
.
activityDetails
.
contentPrice
)
/
100
console
.
log
(
this
.
activityForm
)
}
},
immediate
:
true
,
...
...
@@ -203,7 +203,6 @@ export default {
contentName
:
data
.
marketingName
}
this
.
activityForm
.
pagePathContent
=
data
.
marketingId
console
.
log
(
this
.
activityForm
.
activityDetails
)
if
(
this
.
activityForm
.
activityDetails
.
selectType
==
'goods'
)
{
this
.
activityForm
.
pagePathType
=
2
this
.
activityForm
.
productPrice
=
this
.
activityForm
.
activityDetails
.
originalPrice
...
...
@@ -228,12 +227,10 @@ export default {
this
.
$router
.
go
(
-
1
)
},
changeChannelImg
(
val
)
{
this
[
val
.
key
+
'Flag'
]
=
false
this
.
activityForm
[
val
.
key
]
=
val
.
arr
[
0
]
this
.
$refs
.
ruleForm
.
clearValidate
(
val
.
key
)
},
handleSave
()
{
console
.
log
(
this
.
activityForm
)
this
.
$refs
.
ruleForm
.
validate
(
valid
=>
{
let
mediaList
=
[]
if
(
this
.
activityForm
.
backgroundType
==
1
)
{
...
...
src/views/store/components/carChannel.vue
View file @
e6ba6ba
...
...
@@ -228,6 +228,7 @@ export default {
mediaUrlArr
:
[],
mediaUrl
:
''
,
pagePathType
:
''
,
pagePathContent
:
''
,
contentList
:
[
{
mediaType
:
''
,
...
...
@@ -451,7 +452,6 @@ export default {
let
publicPraiseArr
=
[]
let
mediaUrlArr
=
[]
if
(
data1
)
{
console
.
log
(
data1
.
contentList
,
'99999'
)
data1
.
contentList
.
length
&&
data1
.
contentList
.
forEach
(
item
=>
{
item
.
publicPraise
&&
...
...
@@ -492,7 +492,6 @@ export default {
this
.
editForm
.
productPrice
=
this
.
editForm
.
pagePathType
==
2
?
this
.
editForm
.
activityDetails
.
contentPrice
:
Number
(
this
.
editForm
.
activityDetails
.
contentPrice
)
/
100
this
.
editForm
.
activityPrice
=
this
.
editForm
.
pagePathType
==
2
?
this
.
editForm
.
activityDetails
.
activityPrice
:
Number
(
this
.
editForm
.
activityDetails
.
activityPrice
)
/
100
this
.
isFlag
=
true
console
.
log
(
this
.
editForm
)
this
.
initParams
()
this
.
diffChannelStyle
()
}
...
...
@@ -649,7 +648,6 @@ export default {
backgroundType
:
1
,
contentList
}
console
.
log
(
params
)
if
(
this
.
topicId
)
params
.
id
=
this
.
topicId
this
.
loading
=
true
this
.
addChannelTopic
({
...
...
src/views/store/components/certificate.vue
View file @
e6ba6ba
...
...
@@ -140,7 +140,7 @@ export default {
this
.
isSelectGiftVisible
=
!
this
.
isSelectGiftVisible
},
handleGiftConfirm
(
selectedData
,
type
)
{
console
.
log
(
selectedData
,
'selectedData'
)
//
console.log(selectedData, 'selectedData')
if
(
type
!=
'group'
)
{
this
.
handleGiftClose
()
}
...
...
@@ -150,13 +150,11 @@ export default {
this
.
getData
()
},
getData
()
{
console
.
log
(
this
.
couponObj
)
this
.
orderShow
.
forEach
(
item
=>
{
if
(
this
.
couponObj
[
item
].
list
.
length
)
{
this
.
tableData
=
this
.
couponObj
[
item
].
list
}
})
console
.
log
(
this
.
tableData
)
},
// 计算预估成本
recoveryTotalPrice
()
{
...
...
@@ -203,7 +201,6 @@ export default {
couponIds
,
couponNames
:
this
.
tableData
[
0
].
couponName
}
console
.
log
(
this
.
tableData
)
this
.
$apis
.
store
.
configCoupons
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
this
.
$router
.
go
(
-
1
)
...
...
src/views/store/components/membrane.vue
View file @
e6ba6ba
...
...
@@ -123,12 +123,10 @@ export default {
this
.
dialogSrc
=
this
.
membraneForm
.
mediaUrl
},
changeChannelImg
(
val
)
{
this
[
val
.
key
+
'Flag'
]
=
false
this
.
membraneForm
[
val
.
key
]
=
val
.
arr
[
0
]
this
.
$refs
.
ruleForm
.
clearValidate
(
val
.
key
)
},
changeMediaType
(
val
)
{
console
.
log
(
val
)
if
(
val
==
2
)
{
this
.
membraneForm
.
mediaUrlArr
=
[]
this
.
membraneForm
.
mediaName
=
''
...
...
@@ -158,12 +156,7 @@ export default {
this
.
$router
.
go
(
-
1
)
},
handleSave
()
{
console
.
log
(
this
.
membraneForm
)
this
.
$refs
.
ruleForm
.
validate
(
valid
=>
{
// if (!this.channelForm.channelImg) {
// this.channelImgFlag = true
// return
// }
let
mediaList
=
[]
if
(
this
.
membraneForm
.
mediaType
==
1
)
{
mediaList
=
[
...
...
src/views/store/components/selectStore.vue
View file @
e6ba6ba
...
...
@@ -163,7 +163,6 @@ export default {
methods
:
{
getList
(
pageCon
)
{
console
.
log
(
pageCon
,
'pageCon'
)
pageCon
&&
(
this
.
pageConfig
=
pageCon
)
var
params
=
{
merchantId
:
this
.
merchantId
,
...
...
@@ -171,10 +170,8 @@ export default {
...
this
.
pageConfig
// merchantId: '44209390',
}
console
.
log
(
params
)
this
.
$apis
.
common
.
getMerchantList
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
storeList
=
res
.
list
this
.
total
=
res
.
total
...
...
@@ -183,11 +180,9 @@ export default {
// // // 添加序号
// pageConfig
let
nowIndex
=
this
.
pageConfig
.
pageSize
*
(
this
.
pageConfig
.
currentPage
-
1
)
console
.
log
(
nowIndex
)
this
.
storeList
.
forEach
((
item
,
index
)
=>
{
item
.
idx
=
index
+
1
+
nowIndex
})
console
.
log
(
this
.
storeList
)
// this.$refs.staffRef.tableHeightValues = '460px'
// })
})
...
...
@@ -205,7 +200,6 @@ export default {
},
handleClick
(
val
)
{
console
.
log
(
val
)
// let { merchantId, merchantName } =val
this
.
merchantId
=
val
.
merchantNo
this
.
merchantName
=
val
.
merchantName
...
...
src/views/store/index.vue
View file @
e6ba6ba
...
...
@@ -251,7 +251,6 @@ export default {
document
.
body
.
removeChild
(
input
)
},
handleAdd
(
scope
)
{
// let editParams = scope ? '?$title=编辑活动&id=' + scope.id : ''
this
.
$router
.
push
(
'/store/add'
)
},
handleSearch
()
{
...
...
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