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 02afa87a
authored
Aug 16, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
2794eb73
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
23 deletions
src/assets/css/crowdfunding.scss
src/utils/util.js
src/views/crowdfunding/carBrands.vue
src/views/crowdfunding/components/PayModal.vue
src/views/crowdfunding/index.vue
src/views/crowdfunding/orderList.vue
src/assets/css/crowdfunding.scss
View file @
02afa87
...
...
@@ -12,23 +12,23 @@
10
%
,
90
%
{
transform
:
translate
3d
(
-1px
,
0
,
0
);
transform
:
translate
X
(
-1px
);
}
20
%
,
80
%
{
transform
:
translate
3d
(
2px
,
0
,
0
);
transform
:
translate
X
(
2px
);
}
30
%
,
50
%
,
70
%
{
transform
:
translate
3d
(
-4px
,
0
,
0
);
transform
:
translate
X
(
-4px
);
}
40
%
,
60
%
{
transform
:
translate
3d
(
4px
,
0
,
0
);
transform
:
translate
X
(
4px
);
}
}
...
...
src/utils/util.js
View file @
02afa87
...
...
@@ -177,16 +177,12 @@ const refreshPage = (message = '系统异常') => {
confirmButtonColor
:
'#f13c3d'
})
}
const
toTop
=
()
=>
{
let
bodySrcollTop
=
document
.
body
.
scrollTop
if
(
bodySrcollTop
!==
0
)
{
document
.
body
.
scrollTop
=
0
return
}
let
docSrcollTop
=
document
.
documentElement
.
scrollTop
if
(
docSrcollTop
!==
0
)
{
document
.
documentElement
.
scrollTop
=
0
}
const
toTop
=
(
top
=
0
)
=>
{
window
.
scrollTo
({
top
,
left
:
0
,
behavior
:
'smooth'
})
}
const
getParams
=
()
=>
{
return
window
.
vm
.
$route
.
params
...
...
src/views/crowdfunding/carBrands.vue
View file @
02afa87
...
...
@@ -6,6 +6,8 @@
<van-index-bar
highlight-color=
"#FC5B32"
:index-list=
"indexList"
@
change=
"indexNumber = $event"
ref=
"indexBar"
>
<template
v-for=
"(item,index) in brandList"
>
<div
:key=
"index"
>
...
...
@@ -39,10 +41,11 @@ export default {
return
{
brandList
:
[],
upData
:
Date
.
now
(),
indexList
:
[]
indexList
:
[],
indexNumber
:
'A'
}
},
moun
ted
()
{
crea
ted
()
{
let
data
=
this
.
getLocalStorage
(
'wx_scrm_car_brand_list'
)
if
(
data
)
this
.
formatData
(
data
)
else
carLifeApi
.
getCarBrandList
().
then
(
carInfo
=>
{
...
...
@@ -50,10 +53,18 @@ export default {
this
.
formatData
(
carInfo
)
})
},
activated
()
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
indexBar
.
scrollTo
(
this
.
indexNumber
)
})
},
deactivated
()
{
},
methods
:
{
formatData
(
data
)
{
let
letterList
=
Array
.
from
(
new
Set
([...
data
.
map
(
e
=>
e
.
letter
)])),
indexList
=
[]
let
letterList
=
Array
.
from
(
new
Set
([...
data
.
map
(
e
=>
e
.
letter
)])),
indexList
=
[]
let
brandList
=
letterList
.
map
(
e
=>
{
let
list
=
[]
data
.
map
(
i
=>
{
...
...
src/views/crowdfunding/components/PayModal.vue
View file @
02afa87
...
...
@@ -102,11 +102,11 @@ export default {
}
}
},
payStatus
(
n
)
{
payStatus
()
{
this
.
payLoading
=
false
},
carInfo
(
n
)
{
console
.
log
(
n
)
console
.
table
([
JSON
.
parse
(
JSON
.
stringify
(
n
))]
)
this
.
params
.
carBrandsText
=
`
${
n
.
vehicleBrandName
}
${
n
.
vehicleSubBrandName
}
`
this
.
params
.
carTypeText
=
`
${
n
.
vehicleSeriesName
}
${
n
.
vehicleShapeName
}
`
}
...
...
src/views/crowdfunding/index.vue
View file @
02afa87
...
...
@@ -381,8 +381,10 @@ export default {
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
}
`
if
(
userInfo
.
loginList
.
length
&&
userInfo
.
loginList
[
0
].
phone
)
link
=
`${link
}
&userPhone=${userInfo.loginList[0].phone
}
`
let
{
corpId
,
agentId
}
=
this
.
getLocalStorage
(
'dj_scrm_corpId'
)
link
=
`${link
}
&corpId=${corpId || userInfo.entmicroId
}
`
if
(
agentId
)
link
+=
`&agentId=${agentId
}
`
if
(
userInfo
.
loginList
&&
userInfo
.
loginList
.
length
&&
userInfo
.
loginList
[
0
].
phone
)
link
=
`${link
}
&userPhone=${userInfo.loginList[0].phone
}
`
}
if
(
params
&&
params
.
shareStaffUuid
)
link
=
`${link
}
&shareStaffUuid=${params.shareStaffUuid
}
`
if
(
params
&&
params
.
merchantId
)
link
=
`${link
}
&merchantId=${params.merchantId
}
`
...
...
src/views/crowdfunding/orderList.vue
View file @
02afa87
...
...
@@ -70,6 +70,9 @@ export default {
activated
()
{
this
.
getOrderList
()
},
deactivated
(){
this
.
imgList
=
[]
},
methods
:
{
end
()
{
let
{
swipe
}
=
this
.
$refs
...
...
@@ -92,7 +95,7 @@ export default {
getOrderList
()
{
let
{
id
}
=
this
.
getLocalStorage
(
'wx_scrm_link_params'
)
shopmallApi
.
getOrderList
(
id
).
then
(
data
=>
{
console
.
log
(
data
)
console
.
table
(
data
)
data
&&
data
.
length
&&
data
.
map
(
e
=>
{
e
.
createdDate
=
new
Date
(
this
.
iosTimeFormat
(
e
.
payDate
))
})
...
...
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