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 12250b5e
authored
Jan 13, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
第二轮提测bug修复
1 parent
e6ba6ba3
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
25 additions
and
22 deletions
src/components/activity-model/index.vue
src/components/preview/index.vue
src/config/index.js
src/store/modules/channel.js
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/components/activity-model/index.vue
View file @
12250b5
...
@@ -149,12 +149,12 @@ export default {
...
@@ -149,12 +149,12 @@ export default {
},
},
methods
:
{
methods
:
{
handleSelectItem
(
item
)
{
handleSelectItem
(
item
)
{
console
.
log
(
item
,
'item'
)
//
console.log(item, 'item')
this
.
selectItem
=
item
this
.
selectItem
=
item
if
(
item
.
equityClassId
)
{
if
(
item
.
equityClassId
)
{
this
.
selectItem
.
id
=
item
.
equityClassId
this
.
selectItem
.
id
=
item
.
equityClassId
}
}
console
.
log
(
this
.
selectItem
)
//
console.log(this.selectItem)
},
},
handleSelect
()
{
handleSelect
()
{
if
(
!
this
.
selectItem
.
id
)
{
if
(
!
this
.
selectItem
.
id
)
{
...
@@ -213,7 +213,7 @@ export default {
...
@@ -213,7 +213,7 @@ export default {
}
}
const
activityChecked
=
this
.
activityList
.
find
(
act
=>
act
.
itemValue
==
this
.
activeName
)
const
activityChecked
=
this
.
activityList
.
find
(
act
=>
act
.
itemValue
==
this
.
activeName
)
if
(
activityChecked
&&
activityChecked
.
params
&&
activityChecked
.
params
.
currentPage
)
{
if
(
activityChecked
&&
activityChecked
.
params
&&
activityChecked
.
params
.
currentPage
)
{
console
.
log
(
activityChecked
.
params
.
currentPage
)
//
console.log(activityChecked.params.currentPage)
activityChecked
.
params
.
currentPage
=
this
.
pageNum
activityChecked
.
params
.
currentPage
=
this
.
pageNum
}
}
Object
.
assign
(
params
,
activityChecked
.
params
)
Object
.
assign
(
params
,
activityChecked
.
params
)
...
@@ -240,7 +240,6 @@ export default {
...
@@ -240,7 +240,6 @@ export default {
})
})
},
},
init
()
{
init
()
{
console
.
log
(
111111
)
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
this
.
getModelList
()
this
.
getModelList
()
this
.
selectItem
=
{}
this
.
selectItem
=
{}
...
...
src/components/preview/index.vue
View file @
12250b5
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
</div>
</div>
</div>
</div>
</template>
</template>
<
template
v-if=
"(imageUrlArr && imageUrlArr.length < 9 && limit > 1) || (imageUrlArr.length == 0 && limit == 1)"
>
<
template
v-if=
"(imageUrlArr && imageUrlArr.length < 9 && limit > 1) || (imageUrlArr
&&imageUrlArr
.length == 0 && limit == 1)"
>
<div
class=
"upload-img"
>
<div
class=
"upload-img"
>
<i
class=
"el-icon-plus avatar-uploader-desc-icon"
></i>
<i
class=
"el-icon-plus avatar-uploader-desc-icon"
></i>
<div
class=
"avatar-uploader-desc-word"
>
上传照片
</div>
<div
class=
"avatar-uploader-desc-word"
>
上传照片
</div>
...
@@ -117,7 +117,6 @@ export default {
...
@@ -117,7 +117,6 @@ export default {
break
break
case
'img'
:
case
'img'
:
this
.
imageUrlArr
.
splice
(
index
,
1
)
this
.
imageUrlArr
.
splice
(
index
,
1
)
console
.
log
(
this
.
imageUrlArr
)
this
.
$emit
(
'change'
,
{
arr
:
this
.
imageUrlArr
,
key
:
this
.
picOptions
.
key
,
id
:
1
,
index
:
this
.
index
})
this
.
$emit
(
'change'
,
{
arr
:
this
.
imageUrlArr
,
key
:
this
.
picOptions
.
key
,
id
:
1
,
index
:
this
.
index
})
break
break
default
:
default
:
...
...
src/config/index.js
View file @
12250b5
...
@@ -17,7 +17,9 @@ export const fetchConfig = function (isEnv = true) {
...
@@ -17,7 +17,9 @@ export const fetchConfig = function (isEnv = true) {
// Object.assign(request, { timeout })
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// return Promise.resolve(cfg)
// }
// }
return
new
Http
().
get
(
'https://oss-config.dev.glsx.com.cn/mock/63b39b3e606e962c5e174afb/discover/config'
)
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/63b39b3e606e962c5e174afb/discover/config')
return
new
Http
().
get
(
'https://oss-config.glsx.com.cn/mock/63c12a6b28a427953783403e/discover/config'
)
}
}
export
const
config
=
{
export
const
config
=
{
install
(
vue
,
cfg
)
{
install
(
vue
,
cfg
)
{
...
...
src/store/modules/channel.js
View file @
12250b5
...
@@ -26,16 +26,12 @@ export default {
...
@@ -26,16 +26,12 @@ export default {
state
.
channelStyle
=
payload
.
channelStyle
state
.
channelStyle
=
payload
.
channelStyle
},
},
[
'SET_CHANNEL_TYPE'
](
state
,
payload
)
{
[
'SET_CHANNEL_TYPE'
](
state
,
payload
)
{
// console.log(payload)
// localStorage.setItem('channelType', payload.channelType)
// console.log(localStorage.getItem('channelType'))
state
.
channelType
=
payload
.
channelType
state
.
channelType
=
payload
.
channelType
}
}
},
},
actions
:
{
actions
:
{
// 获取视频列表
// 获取视频列表
getTencentcloudmedialist
(
conText
,
payload
)
{
getTencentcloudmedialist
(
conText
,
payload
)
{
console
.
log
(
apis
)
apis
.
store
.
getTencentcloudmedialist
({}).
then
(
res
=>
{
apis
.
store
.
getTencentcloudmedialist
({}).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
conText
.
commit
(
'SET_VIDEO_LIST'
,
{
videoList
:
res
.
data
})
conText
.
commit
(
'SET_VIDEO_LIST'
,
{
videoList
:
res
.
data
})
...
@@ -48,7 +44,6 @@ export default {
...
@@ -48,7 +44,6 @@ export default {
//频道主题详情
//频道主题详情
getTopicDetail
(
conText
,
payload
)
{
getTopicDetail
(
conText
,
payload
)
{
apis
.
store
.
getTopicDetail
(
payload
).
then
(
res
=>
{
apis
.
store
.
getTopicDetail
(
payload
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
conText
.
commit
(
'SET_TOPIC_DETAIL'
,
{
topicDetail
:
res
.
data
})
conText
.
commit
(
'SET_TOPIC_DETAIL'
,
{
topicDetail
:
res
.
data
})
}
}
...
...
src/views/store/add.vue
View file @
12250b5
...
@@ -99,7 +99,7 @@ export default {
...
@@ -99,7 +99,7 @@ export default {
})
})
},
},
handleCheckedChannelChange
(
val
)
{
handleCheckedChannelChange
(
val
)
{
console
.
log
(
this
.
editForm
.
channelIds
)
//
console.log(this.editForm.channelIds)
},
},
// 选择门店
// 选择门店
handleRelateStoreClose
()
{
handleRelateStoreClose
()
{
...
...
src/views/store/components/activity.vue
View file @
12250b5
...
@@ -67,14 +67,16 @@ export default {
...
@@ -67,14 +67,16 @@ export default {
data
()
{
data
()
{
return
{
return
{
activityForm
:
{
activityForm
:
{
pagePathContent
:
''
,
pagePathContent
:
''
,
pagePathType
:
''
,
pagePathType
:
''
,
mediaUrl
:
''
,
mediaUrl
:
''
,
activityDetails
:
''
,
activityDetails
:
''
,
backgroundImgArr
:
''
,
backgroundImgArr
:
''
,
mediaUrlArr
:
[],
mediaUrlArr
:
[],
backgroundType
:
1
,
backgroundType
:
1
,
backgroundImg
:
''
backgroundImg
:
''
,
activityPrice
:
''
,
productPrice
:
''
},
},
bgOptions
:
{
bgOptions
:
{
width
:
'233px'
,
width
:
'233px'
,
...
@@ -162,11 +164,12 @@ export default {
...
@@ -162,11 +164,12 @@ export default {
data
.
contentList
[
0
].
mediaList
.
forEach
(
item
=>
{
data
.
contentList
[
0
].
mediaList
.
forEach
(
item
=>
{
this
.
activityForm
.
mediaUrlArr
.
push
(
item
.
mediaUrl
)
this
.
activityForm
.
mediaUrlArr
.
push
(
item
.
mediaUrl
)
})
})
this
.
activityForm
.
activityPrice
=
Number
(
this
.
activityForm
.
activityDetails
.
activityPrice
)
/
100
this
.
activityForm
.
activityPrice
=
Number
(
this
.
activityForm
.
activityDetails
.
activityPrice
)
/
100
this
.
activityForm
.
productPrice
=
Number
(
this
.
activityForm
.
activityDetails
.
contentPrice
)
/
100
this
.
activityForm
.
productPrice
=
Number
(
this
.
activityForm
.
activityDetails
.
contentPrice
)
/
100
}
}
},
},
immediate
:
true
,
//
immediate: true,
deep
:
true
deep
:
true
}
}
},
},
...
...
src/views/store/components/carChannel.vue
View file @
12250b5
...
@@ -207,7 +207,7 @@ const url = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/glsx/discover/
...
@@ -207,7 +207,7 @@ const url = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/glsx/discover/
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
isFlag
:
tru
e
,
isFlag
:
fals
e
,
dialogVisibleImg
:
false
,
dialogVisibleImg
:
false
,
publicPraiseFlag
:
false
,
publicPraiseFlag
:
false
,
dialogType
:
''
,
dialogType
:
''
,
...
@@ -228,7 +228,7 @@ export default {
...
@@ -228,7 +228,7 @@ export default {
mediaUrlArr
:
[],
mediaUrlArr
:
[],
mediaUrl
:
''
,
mediaUrl
:
''
,
pagePathType
:
''
,
pagePathType
:
''
,
pagePathContent
:
''
,
pagePathContent
:
''
,
contentList
:
[
contentList
:
[
{
{
mediaType
:
''
,
mediaType
:
''
,
...
@@ -452,7 +452,7 @@ export default {
...
@@ -452,7 +452,7 @@ export default {
let
publicPraiseArr
=
[]
let
publicPraiseArr
=
[]
let
mediaUrlArr
=
[]
let
mediaUrlArr
=
[]
if
(
data1
)
{
if
(
data1
)
{
data1
.
contentList
.
length
&&
data1
.
contentList
&&
data1
.
contentList
.
forEach
(
item
=>
{
data1
.
contentList
.
forEach
(
item
=>
{
item
.
publicPraise
&&
item
.
publicPraise
&&
item
.
publicPraise
.
split
(
'|'
).
forEach
(
text
=>
{
item
.
publicPraise
.
split
(
'|'
).
forEach
(
text
=>
{
...
@@ -489,14 +489,16 @@ export default {
...
@@ -489,14 +489,16 @@ export default {
this
.
editForm
.
mediaUrlArr
.
push
(
item
.
mediaUrl
)
this
.
editForm
.
mediaUrlArr
.
push
(
item
.
mediaUrl
)
this
.
editForm
.
productUrl
=
item
.
mediaUrl
this
.
editForm
.
productUrl
=
item
.
mediaUrl
})
})
this
.
editForm
.
productPrice
=
this
.
editForm
.
pagePathType
==
2
?
this
.
editForm
.
activityDetails
.
contentPrice
:
Number
(
this
.
editForm
.
activityDetails
.
contentPrice
)
/
100
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
.
editForm
.
activityPrice
=
this
.
editForm
.
pagePathType
==
2
?
this
.
editForm
.
activityDetails
.
activityPrice
:
Number
(
this
.
editForm
.
activityDetails
.
activityPrice
)
/
100
this
.
isFlag
=
true
this
.
isFlag
=
true
this
.
initParams
()
this
.
initParams
()
this
.
diffChannelStyle
()
this
.
diffChannelStyle
()
}
}
},
},
immediate
:
true
,
//
immediate: true,
deep
:
true
deep
:
true
}
}
},
},
...
...
src/views/store/components/certificate.vue
View file @
12250b5
...
@@ -127,6 +127,9 @@ export default {
...
@@ -127,6 +127,9 @@ export default {
getCouponconfig
()
{
getCouponconfig
()
{
this
.
$apis
.
store
.
getCouponconfig
({
topicId
:
this
.
topicId
}).
then
(
res
=>
{
this
.
$apis
.
store
.
getCouponconfig
({
topicId
:
this
.
topicId
}).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
res
.
data
.
coupons
.
forEach
(
item
=>
{
item
.
couponAnticipatedCost
=
(
item
.
couponAnticipatedCost
/
100
).
toFixed
(
2
)
})
this
.
tableData
=
res
.
data
.
coupons
this
.
tableData
=
res
.
data
.
coupons
}
}
})
})
...
@@ -151,7 +154,7 @@ export default {
...
@@ -151,7 +154,7 @@ export default {
},
},
getData
()
{
getData
()
{
this
.
orderShow
.
forEach
(
item
=>
{
this
.
orderShow
.
forEach
(
item
=>
{
if
(
this
.
couponObj
[
item
].
list
.
length
)
{
if
(
this
.
couponObj
[
item
].
list
&&
this
.
couponObj
[
item
].
list
.
length
)
{
this
.
tableData
=
this
.
couponObj
[
item
].
list
this
.
tableData
=
this
.
couponObj
[
item
].
list
}
}
})
})
...
...
src/views/store/components/membrane.vue
View file @
12250b5
...
@@ -96,7 +96,7 @@ export default {
...
@@ -96,7 +96,7 @@ export default {
this
.
membraneForm
.
picUrl
=
this
.
membraneForm
.
mediaUrlArr
[
0
]
this
.
membraneForm
.
picUrl
=
this
.
membraneForm
.
mediaUrlArr
[
0
]
}
}
},
},
immediate
:
true
,
//
immediate: true,
deep
:
true
deep
:
true
}
}
},
},
...
...
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