Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
scrm-wx-merchant-activity
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 905a41c1
authored
Aug 04, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
a4a49bcf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
39 deletions
src/views/crowdfunding/components/MoveGroup.vue
src/views/crowdfunding/components/PayModal.vue
src/views/crowdfunding/index.vue
src/views/crowdfunding/success.vue
src/views/crowdfunding/components/MoveGroup.vue
View file @
905a41c
...
...
@@ -55,7 +55,7 @@ export default {
}`
let
sheet
=
document
.
styleSheets
[
0
]
sheet
.
insertRule
(
rule
,
0
)
let
duration
=
speed
*
list
.
length
+
(
boxHeight
/
itemHeight
*
speed
)
let
duration
=
this
.
decimal
(
speed
*
list
.
length
+
(
boxHeight
/
itemHeight
*
speed
),
2
)
this
.
$refs
.
move
.
style
.
animation
=
`
${
duration
}
s rowup linear infinite normal`
})
}
...
...
src/views/crowdfunding/components/PayModal.vue
View file @
905a41c
...
...
@@ -7,7 +7,7 @@
<template
v-for=
"(i,index) in items"
>
<template
v-if=
"i.name"
>
<div
class=
"item"
class=
"item
flex
"
:key=
"index"
>
<div
class=
"label"
>
...
...
@@ -20,6 +20,7 @@
:placeholder=
"`请填写您的$
{i.name}`"
:maxlength="i.maxlength"
:type="i.type"
clearable
/>
</div>
</div>
...
...
@@ -146,22 +147,23 @@ export default {
<
style
scoped
lang=
'scss'
>
.box
{
padding
:
2
6px
;
padding
:
8px
16px
1
6px
;
.item
{
margin-bottom
:
15px
;
border-bottom
:
1px
solid
#f1f1f1
;
height
:
49px
;
color
:
#282829
;
.label
{
font-size
:
16px
;
font-weight
:
500
;
color
:
#282829
;
font-size
:
12px
;
width
:
86px
;
span
{
color
:
#f13c3d
;
}
}
.value
{
border-bottom
:
1px
solid
#e3e3e6
;
width
:
calc
(
100%
-
86px
)
;
/deep/.van-field
{
padding
:
8px
0
;
font-size
:
1
4
px
;
padding
:
0
;
font-size
:
1
2
px
;
}
}
}
...
...
@@ -170,12 +172,12 @@ export default {
font-size
:
16px
;
font-weight
:
600
;
color
:
#ffffff
;
width
:
310px
;
width
:
100%
;
height
:
44px
;
box-shadow
:
0px
2px
6px
2px
rgba
(
241
,
60
,
61
,
0.1
);
border-radius
:
4px
;
border
:
1px
solid
#f13c3d
;
margin
:
0
auto
;
margin
:
16px
auto
0
;
}
.disabled
{
box-shadow
:
0px
2px
6px
2px
rgba
(
177
,
177
,
177
,
0.1
);
...
...
src/views/crowdfunding/index.vue
View file @
905a41c
...
...
@@ -229,25 +229,19 @@ export default {
distanceKey
:
Date
.
now
(),
noAuthAddress
:
false
,
showKf
:
false
,
shareInfo
:
{
}
,
viewFlag
:
false
,
audio
:
null
,
audioFlag
:
false
,
videoUrl
:
''
}
}
,
// activated ()
{
// let jsApiList = ['getLocation', 'openLocation', 'getNetworkType', 'onMenuShareAppMessage', 'launchMiniprogram', 'updateAppMessageShareData']
// wxConfig.init(jsApiList).then(() =>
{
// wxConfig.ready(() =>
{
// this.getActivityDetail()
//
}
)
//
}
)
//
}
,
created
()
{
this
.
watchPageBack
().
then
(()
=>
{
window
.
location
.
reload
()
beforeRouteEnter
(
to
,
from
,
next
)
{
if
(
from
.
name
==
'crowdfunding.success'
)
window
.
location
.
reload
()
else
next
(
vm
=>
{
}
)
}
,
created
()
{
let
_this
=
this
let
jsApiList
=
[
'getLocation'
,
'openLocation'
,
'getNetworkType'
,
'onMenuShareAppMessage'
]
wxConfig
.
init
(
jsApiList
).
then
(()
=>
{
...
...
@@ -260,12 +254,8 @@ export default {
}
,
1
e3
/
2
))
}
,
beforeDestroy
()
{
window
.
$AUDIO
.
stopVideo
()
if
(
window
.
$AUDIO
)
window
.
$AUDIO
.
stopVideo
()
}
,
// deactivated ()
{
// window.$AUDIO.stopVideo()
//
}
,
mounted
()
{
}
,
...
...
@@ -295,16 +285,16 @@ export default {
}
}
this
.
showLoading
()
this
.
id
=
id
bigdatautilApi
.
reportTrack
(
id
)
shopmallApi
.
getActivityDetail
(
id
).
then
(
data
=>
{
this
.
hideLoading
()
this
.
viewFlag
=
true
console
.
log
(
JSON
.
parse
(
JSON
.
stringify
(
data
)))
data
.
s_time
=
new
Date
(
this
.
iosTimeFormat
(
data
.
startTime
)).
format
(
'yyyy年M月d日'
)
data
.
e_time
=
new
Date
(
this
.
iosTimeFormat
(
data
.
endTime
)).
format
(
'yyyy年M月d日'
)
document
.
title
=
data
.
activityName
this
.
setLocalStorage
(
'wx_scrm_page_title'
,
data
.
activityName
)
this
.
hideLoading
()
this
.
viewFlag
=
true
this
.
id
=
id
this
.
getActivityGroup
()
let
[
redirectUrl
]
=
window
.
location
.
href
.
split
(
'?'
)
if
(
data
.
activityVideos
&&
data
.
activityVideos
.
length
)
{
...
...
@@ -326,7 +316,8 @@ export default {
}
)
}
this
.
detail
=
data
let
link
=
`${redirectUrl
}
?id=${id
}
&shareStaffType=${this.ISWXWORK ? 2 : 1
}
&shareStaffName=${this.toUnicode(userInfo.nickName || userInfo.userName)
}
&shareStaffImageUrl=${encodeURIComponent(userInfo.logo || userInfo.staffAvatar)
}
&openId=${userInfo.openid || userInfo.uuid
}
`
let
name
=
userInfo
.
nickName
||
userInfo
.
userName
||
''
let
link
=
`${redirectUrl
}
?id=${id
}
&shareStaffType=${this.ISWXWORK ? 2 : 1
}
&shareStaffName=${this.toUnicode(name)
}
&shareStaffImageUrl=${encodeURIComponent(userInfo.logo || userInfo.staffAvatar)
}
&openId=${userInfo.openid || userInfo.uuid
}
`
if
(
userInfo
.
phone
)
link
=
`${link
}
&userPhone=${userInfo.phone
}
`
if
(
this
.
ISWXWORK
)
{
link
=
`${link
}
&corpId=${userInfo.entmicroId
}
`
...
...
@@ -334,13 +325,13 @@ export default {
}
if
(
params
&&
params
.
shareStaffUuid
)
link
=
`${link
}
&shareStaffUuid=${params.shareStaffUuid
}
`
if
(
params
&&
params
.
merchantId
)
link
=
`${link
}
&merchantId=${params.merchantId
}
`
this
.
shareInfo
=
{
title
:
`${
userInfo.nickName || userInfo.userName || ''
}
邀请您参加${data.merchantName
}
店的${data.activityName
}
众筹活动`
,
let
shareInfo
=
{
title
:
`${
name
}
邀请您参加${data.merchantName
}
店的${data.activityName
}
众筹活动`
,
desc
:
`限时大型众筹,活动时间${data.s_time
}
-${data.e_time
}
`
,
link
,
imgUrl
:
data
.
posterImg
||
data
.
activityImg
imgUrl
:
data
.
posterImg
||
data
.
activityImg
,
link
}
wxConfig
.
onMenuShareAppMessage
(
this
.
shareInfo
).
then
(()
=>
{
wxConfig
.
onMenuShareAppMessage
(
shareInfo
).
then
(()
=>
{
console
.
log
(
'------------------分享----------------------'
)
bigdatautilApi
.
reportTrack
(
id
,
false
)
}
)
...
...
src/views/crowdfunding/success.vue
View file @
905a41c
...
...
@@ -39,7 +39,6 @@ export default {
}
},
mounted
()
{
window
.
$back
=
true
wxConfig
.
init
()
let
params
=
this
.
getLocalStorage
(
'wx_scrm_link_params'
)
||
{}
const
{
miniprogramInfo
}
=
window
.
$fetchConfig
...
...
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