Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7a6beec9
authored
Jul 09, 2025
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
4f1beab4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
96 additions
and
97 deletions
assets/css/sprite.scss
assets/images/sprite.png
components/HomeFrame/components/LeftSide.vue
components/HomeFrame/index.vue
components/SwiperComponent.vue
pages/boutique/index.vue
pages/common/components/Scene.vue
pages/equity/detail/components/MediaComponent.vue
pages/equity/detail/components/Reception.vue
uni.scss
assets/css/sprite.scss
View file @
7a6beec
This diff is collapsed.
Click to expand it.
assets/images/sprite.png
View file @
7a6beec
2.42 MB
|
W:
|
H:
2.42 MB
|
W:
|
H:
2-up
Swipe
Onion skin
components/HomeFrame/components/LeftSide.vue
View file @
7a6beec
...
...
@@ -48,15 +48,12 @@
v-if="messageTotal > 0"
></view>
</view> -->
<
template
v-if=
"showSceneChange"
>
<view
class=
"btn"
@
click=
"$refs.sceneTypeRef.open()"
>
<view
class=
"sprite-icon icon-scene-change"
></view>
</view>
</
template
>
<view
class=
"btn"
@
click=
"$refs.sceneTypeRef.open()"
>
<view
class=
"sprite-icon icon-scene-change"
></view>
</view>
<view
class=
"btn"
@
click=
"handleSetting"
...
...
@@ -138,21 +135,6 @@ export default {
hasPerson
:
false
,
messageType
:
'study'
,
sopCount
:
0
,
sceneTypeList
:
Object
.
freeze
([
{
title
:
'轻改'
,
describe
:
'太阳膜升级转化'
,
icon
:
'icon-scene-1'
,
zoom
:
2.91
,
id
:
1
},
{
title
:
'会员权益/升级'
,
describe
:
'权益延保'
,
icon
:
'icon-scene-0'
,
zoom
:
2.91
,
id
:
0
}
])
}
},
watch
:
{
...
...
@@ -169,21 +151,39 @@ export default {
perRecordNumber
()
{
return
this
.
$store
.
state
.
audio
.
perRecordNumber
},
showSceneChange
()
{
const
{
openSceneArr
}
=
uni
.
$storage
.
get
(
"userInfo"
)
sceneTypeList
()
{
const
sceneTypeObject
=
{
1
:
{
title
:
'轻改'
,
describe
:
'太阳膜升级转化'
,
icon
:
'icon-scene-1'
,
zoom
:
2.91
,
},
0
:
{
title
:
'会员权益/升级'
,
describe
:
'权益延保'
,
icon
:
'icon-scene-0'
,
zoom
:
2.91
,
}
}
let
{
openSceneArr
}
=
uni
.
$storage
.
get
(
"userInfo"
)
let
result
=
[]
if
(
openSceneArr
&&
openSceneArr
.
length
>
1
)
{
if
(
openSceneArr
&&
openSceneArr
.
length
)
{
openSceneArr
.
map
(
e
=>
{
if
(
e
==
1
||
e
==
0
)
result
.
push
(
e
)
if
(
e
==
1
||
e
==
0
)
{
result
.
push
({
...
sceneTypeObject
[
e
],
id
:
e
})
}
})
}
return
result
.
length
>
1
return
result
}
},
created
()
{
// 监听自定义事件
uni
.
$on
(
'pageBack'
,
()
=>
{
console
.
log
(
'pageBack'
)
this
.
getMessageInfo
();
});
uni
.
$on
(
'studyCenter'
,
()
=>
{
...
...
@@ -226,7 +226,6 @@ export default {
leaveTrack
()
{
if
(
!
this
.
trackId
)
return
uni
.
$api
.
commonApi
.
dynamicrecordLeave
({
id
:
this
.
trackId
}).
then
(
res
=>
{
console
.
log
(
res
)
})
},
startTrack
()
{
...
...
@@ -247,7 +246,6 @@ export default {
return
new
Promise
(
resolve
=>
{
const
url
=
'https%3A%2F%2Fcloud.italent.cn%2FPageHome%2FIndex%3Fproduct%3DLearning%26keyName%3DNusion%26pageCode%3DLearningNewHomepage%26appCode%3DLearning%26_qsrcapp%3DLearning%26_qrt%3Dhtml%26quark_s%3D5102bff371c00da5b19968ee53a8c3f1499ecd2447a19f72f3e3ba2390cc9617%23%2FviewDynamic%3Fshadow_context%3D%257BappModel%253A%2522italent%2522%252Cuppid%253A%25221%2522%257D%26quark_s%3D028930f1066f8ef8d28790940d53ae64337f44bde3a44cf89a290e4a3611e3e2'
uni
.
$api
.
commonApi
.
findBeiSenSSOToken
({}).
then
(
res
=>
{
console
.
log
(
res
,
'res'
)
uni
.
$storage
.
set
(
'beisenToken'
,
res
.
data
)
const
studyUrl
=
res
.
data
?
`
${
res
.
data
}
&return_url=
${
url
}
`
:
''
resolve
(
studyUrl
)
...
...
@@ -255,7 +253,6 @@ export default {
})
},
async
changeIndex
(
index
,
item
)
{
console
.
log
(
index
,
'changeIndex'
)
// if (this.tabIndex == index) return;
// 点击学习中心要跳从北森回后台配置的学习中心,学习中心为3
if
(
this
.
tabIndex
==
index
&&
!
item
.
isTrack
)
return
;
...
...
@@ -266,7 +263,6 @@ export default {
jumpUrl
=
await
this
.
findBeiSenSSOToken
()
this
.
jumpUrl
=
jumpUrl
}
catch
(
error
)
{
console
.
log
(
error
)
}
if
(
jumpUrl
)
{
this
.
addTrack
()
...
...
@@ -310,7 +306,6 @@ export default {
},
// 获取话术未读列表
async
getMessage
()
{
console
.
log
(
'获取话术'
,
uni
.
$storage
.
get
(
"userInfo"
))
const
{
sceneType
,
uuid
}
=
uni
.
$storage
.
get
(
"userInfo"
)
const
res
=
await
uni
.
$api
.
commonApi
.
getUnreadRecord
({
businessType
:
sceneType
,
...
...
@@ -329,7 +324,6 @@ export default {
status
:
0
,
// 待查看,未读
businessType
:
sceneType
})
console
.
log
(
res
)
this
.
messageTotal
=
res
},
// 学习中心消息弹窗,优先级高于有修改话术弹窗
...
...
@@ -350,9 +344,7 @@ export default {
return
}
const
res
=
await
uni
.
$api
.
commonApi
.
getMessagePop
({})
console
.
log
(
res
,
'res111'
)
if
(
res
.
ids
&&
res
.
ids
.
length
>
0
)
{
console
.
log
(
res
.
contentType
,
res
.
contentType
==
5
,
'res'
)
if
(
res
.
contentType
==
5
)
{
const
_token
=
uni
.
$storage
.
get
(
'beisenToken'
)
if
(
_token
)
{
...
...
@@ -394,8 +386,10 @@ export default {
}
},
chooseSceneType
(
index
)
{
let
{
userInfo
,
sceneTypeList
}
=
this
userInfo
.
sceneType
=
sceneTypeList
[
index
].
id
let
{
userInfo
,
sceneTypeList
}
=
this
,
sceneType
=
sceneTypeList
[
index
].
id
if
(
sceneType
==
userInfo
.
sceneType
)
return
userInfo
.
sceneType
=
sceneType
uni
.
showLoading
({
title
:
'切换中'
,
mask
:
true
...
...
components/HomeFrame/index.vue
View file @
7a6beec
...
...
@@ -35,6 +35,7 @@
:moduleList=
"moduleList"
@
click=
"swiperClick"
:stopAutoPlay=
"previewOff"
:imgKey=
"bannerKey"
></swiper-component>
</view>
</view>
...
...
@@ -186,7 +187,8 @@ export default {
moduleList
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
bannerKey
:
String
},
data
()
{
return
{
...
...
@@ -397,6 +399,7 @@ export default {
height
:
100vh
;
background-image
:
url('@/assets/images/common/home-bg-1.webp')
;
background-size
:
100%
100%
;
z-index
:
1
;
}
.home
,
.detail
{
...
...
@@ -407,6 +410,7 @@ export default {
top
:
0
;
left
:
0
;
visibility
:
hidden
;
opacity
:
0
;
}
.point-page
{
position
:
fixed
;
...
...
@@ -458,8 +462,9 @@ export default {
}
}
.show
{
opacity
:
1
;
position
:
absolute
;
z-index
:
1
;
z-index
:
2
;
visibility
:
visible
;
animation
:
show-content-left
0.15s
forwards
;
}
...
...
components/SwiperComponent.vue
View file @
7a6beec
...
...
@@ -14,6 +14,7 @@
@
change=
"change"
:disabled=
"item.class != 'block-center'"
:x=
"item.class != 'block-center' ? 0 : viewX"
:data-index=
"item.isIndex"
>
<image
class=
"image-block"
...
...
@@ -32,15 +33,15 @@
</movable-area>
<view
class=
"module-title flex"
>
{{moduleTitle}}
<view
class=
"module-dots flex"
>
<
template
v-for=
"(i,index) in moduleList
"
>
<div
:class=
"['dot',
{'active': index == currentIndex}]"
:key="index
"
>
</div
>
</
template
>
</
view
>
</view
>
<view
class=
"module-dots flex
"
>
<
template
v-for=
"(i,index) in moduleList"
>
<div
:class=
"['dot',
{'active': index == currentIndex}]
"
:key="index"
>
</
div
>
</
template
>
</view>
</view>
</template>
...
...
@@ -150,8 +151,9 @@ export default {
item
.
isIndex
=
dataIndex
item
.
isToor
=
index
item
.
imgKey
=
datalist
[
dataIndex
]?.[
this
.
imgKey
]
||
''
item
.
x
=
1
0
item
.
x
=
0
})
console
.
log
(
this
.
imagelist
)
if
(
autoplay
)
this
.
autoPlayFunction
()
},
autoPlayFunction
()
{
...
...
@@ -179,7 +181,6 @@ export default {
updateCarouselPositions
(
direction
=
'left'
)
{
let
{
imagelist
,
datalist
}
=
this
,
len
=
datalist
.
length
-
1
,
index
=
direction
==
'left'
?
0
:
2
,
list
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
style_object
))
this
.
imagelist
.
forEach
(
item
=>
{
let
toor
=
direction
==
'left'
?
...
...
@@ -188,14 +189,22 @@ export default {
item
.
isToor
=
toor
item
.
class
=
list
[
toor
].
class
item
.
x
=
0
if
(
item
.
index
==
index
)
{
let
isIndex
=
item
.
isIndex
+
3
if
(
isIndex
==
len
+
3
)
isIndex
=
2
if
(
isIndex
==
len
+
1
)
isIndex
=
0
if
(
isIndex
>
len
)
isIndex
=
1
item
.
isIndex
=
isIndex
i
tem
.
imgKey
=
datalist
[
isIndex
][
this
.
imgKey
]
||
''
let
isIndex
=
item
.
isIndex
if
(
direction
==
'left'
&&
item
.
class
==
'block-right'
)
{
if
(
isIndex
==
len
)
isIndex
=
2
else
if
(
isIndex
==
len
-
1
)
isIndex
=
1
else
isIndex
+=
3
i
f
(
isIndex
>
len
)
isIndex
=
0
}
if
(
direction
==
'right'
&&
item
.
class
==
'block-left'
)
{
if
(
isIndex
==
1
)
isIndex
=
len
-
1
else
if
(
isIndex
==
0
)
isIndex
=
len
-
2
else
isIndex
-=
3
if
(
isIndex
<
0
)
isIndex
=
len
}
item
.
isIndex
=
isIndex
item
.
imgKey
=
datalist
[
isIndex
][
this
.
imgKey
]
||
''
item
.
index
=
list
[
toor
].
index
})
let
currentIndex
=
this
.
imagelist
.
findIndex
(
item
=>
item
.
index
==
1
)
...
...
@@ -247,7 +256,7 @@ export default {
<
style
lang=
"scss"
scoped
>
.swiper-carousel
{
width
:
100%
;
height
:
toRpx
(
4
28
);
height
:
toRpx
(
4
40
);
position
:
relative
;
overflow
:
hidden
;
.carousel-block
{
...
...
@@ -290,14 +299,16 @@ export default {
top
:
toRpx
(
68
);
height
:
toRpx
(
306
);
width
:
toRpx
(
468
);
z-index
:
15
;
transition
:
all
0.1s
;
}
.block-left
{
left
:
toRpx
(
150
);
z-index
:
10
;
}
.block-right
{
left
:
toRpx
(
592
);
z-index
:
15
;
}
.block-center
{
left
:
toRpx
(
294
);
...
...
@@ -314,22 +325,21 @@ export default {
margin-top
:
toRpx
(
24
);
justify-content
:
center
;
position
:
relative
;
.module-dots
{
position
:
absolute
;
top
:
50%
;
right
:
toRpx
(
48
);
transform
:
translateY
(
-50%
);
gap
:
toRpx
(
12
);
.dot
{
width
:
toRpx
(
12
);
height
:
toRpx
(
12
);
opacity
:
1
;
background
:
#0007400
d
;
border-radius
:
100%
;
}
.active
{
background
:
#fff
;
}
}
.module-dots
{
position
:
absolute
;
bottom
:
56
rpx
;
right
:
toRpx
(
48
);
gap
:
toRpx
(
12
);
.dot
{
width
:
toRpx
(
12
);
height
:
toRpx
(
12
);
opacity
:
1
;
background
:
#0007400
d
;
border-radius
:
100%
;
}
.active
{
background
:
#fff
;
}
}
</
style
>
pages/boutique/index.vue
View file @
7a6beec
...
...
@@ -12,6 +12,7 @@
class=
"container"
:moduleList=
"moduleList"
@
swiperClick=
"toDetail"
bannerKey=
"bannerImg"
>
<template
slot=
"detail"
>
<detail
...
...
@@ -113,9 +114,7 @@ export default {
},
onLoad
()
{
this
.
init
();
uni
.
$api
.
systemApi
.
getMockData
(
true
).
then
(
res
=>
{
console
.
log
(
res
)
})
uni
.
$api
.
systemApi
.
getMockData
(
true
)
},
onShow
()
{
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
)
...
...
@@ -221,7 +220,6 @@ export default {
this
.
moduleList
=
moduleList
this
.
toolList
=
toolList
this
.
defaultCarId
=
defaultCarId
// this.getInviteRecordCount()
},
toDetail
(
index
)
{
let
item
=
this
.
moduleList
[
index
]
...
...
@@ -376,17 +374,6 @@ export default {
if
(
index
!=
0
&&
item
.
seriesId
==
carBannerList
[
index
-
1
].
seriesId
)
result
=
false
return
result
},
async
getInviteRecordCount
()
{
const
{
moduleList
}
=
this
,
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
{
shopMerchantId
:
merchantId
}
=
userInfo
,
{
notInvitedCount
}
=
await
uni
.
$api
.
boutiqueApi
.
getInviteRecordCount
({
merchantIds
:
[
merchantId
]
})
moduleList
.
map
(
e
=>
{
if
(
e
.
id
==
3
)
e
.
count
=
notInvitedCount
?
notInvitedCount
>
99
?
99
:
notInvitedCount
:
0
})
}
}
}
</
script
>
...
...
pages/common/components/Scene.vue
View file @
7a6beec
...
...
@@ -55,6 +55,7 @@ export default {
uni
.
$logger
.
local
.
info
(
`进入选择场景页!`
)
},
getSceneArr
()
{
this
.
openSceneArr
=
[]
uni
.
showLoading
({
mask
:
true
})
...
...
pages/equity/detail/components/MediaComponent.vue
View file @
7a6beec
...
...
@@ -7,7 +7,7 @@
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<
template
>
<view
class=
"layout
"
>
<view
:class=
"['layout',
{ 'byd-layout': isByd }]
">
<wnCanvas
:drawStatus=
"penSwitch"
:canvasId=
"`c-$
{madiaId}`"
...
...
pages/equity/detail/components/Reception.vue
View file @
7a6beec
<
template
>
<view
:class=
"['layout']"
>
<view
:class=
"['layout'
,
{ 'byd-layout': isByd }
]">
<wnCanvas
saveImageType=
"3"
canvasId=
"c-1"
...
...
@@ -90,7 +90,8 @@ export default {
show
:
Boolean
,
title
:
String
,
views
:
[
Array
,
Object
],
aitoCarModelIds
:
Array
aitoCarModelIds
:
Array
,
isByd
:
Boolean
},
name
:
'Reception'
,
data
()
{
...
...
uni.scss
View file @
7a6beec
...
...
@@ -96,7 +96,8 @@ $margin: 0 calc((100vmax - #{$detailVW}) / 2);
}
.byd-layout
{
background-image
:
url("@/assets/images/media/byd-media-bg.webp")
;
background
:
url("@/assets/images/media/byd-media-bg.webp")
no-repeat
;
background-size
:
100%
100%
;
}
@media
screen
and
(
min-width
:
500px
)
{
...
...
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