Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
b7e90c1c
Commit
b7e90c1c
authored
Aug 18, 2025
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed
parent
e33a0ada
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
394 additions
and
256 deletions
+394
-256
babyClass.vue
components/pointRightsCom/babyClass.vue
+20
-15
monthGift.vue
components/pointRightsCom/monthGift.vue
+371
-240
syWebview.vue
pages/syWebview/syWebview.vue
+3
-1
No files found.
components/pointRightsCom/babyClass.vue
View file @
b7e90c1c
...
@@ -14,7 +14,8 @@
...
@@ -14,7 +14,8 @@
<image
class=
"diamondips4"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.DIAMOND.IPS4}`" mode="aspectFit">
<image
class=
"diamondips4"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.DIAMOND.IPS4}`" mode="aspectFit">
</image>
</image>
</view>
</view>
<image
class=
"diamondbtn"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.DIAMOND.BTN}`" mode="aspectFit" @click="jump('diamond')">
</image>
<image
class=
"diamondbtn"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.DIAMOND.BTN}`" mode="aspectFit"
@click="jump('diamond')">
</image>
<image
class=
"diamonddesc"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.DIAMOND.DESC}`" mode="aspectFit">
</image>
<image
class=
"diamonddesc"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.DIAMOND.DESC}`" mode="aspectFit">
</image>
</view>
</view>
...
@@ -32,7 +33,8 @@
...
@@ -32,7 +33,8 @@
<image
class=
"starshineips4"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.STARSHINE.IPS4}`" mode="aspectFit">
<image
class=
"starshineips4"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.STARSHINE.IPS4}`" mode="aspectFit">
</image>
</image>
</view>
</view>
<image
class=
"starshinebtn"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.STARSHINE.BTN}`" mode="aspectFit" @click="jump('starshine')">
</image>
<image
class=
"starshinebtn"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.STARSHINE.BTN}`" mode="aspectFit"
@click="jump('starshine')">
</image>
<image
class=
"starshinedesc"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.STARSHINE.DESC}`" mode="aspectFit">
<image
class=
"starshinedesc"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.STARSHINE.DESC}`" mode="aspectFit">
</image>
</image>
</view>
</view>
...
@@ -51,7 +53,8 @@
...
@@ -51,7 +53,8 @@
<image
class=
"starlightips4"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.STARLIGHT.IPS4}`" mode="aspectFit">
<image
class=
"starlightips4"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.STARLIGHT.IPS4}`" mode="aspectFit">
</image>
</image>
</view>
</view>
<image
class=
"starlightbtn"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.STARLIGHT.BTN}`" mode="aspectFit" @click="jump('starlight')">
</image>
<image
class=
"starlightbtn"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.STARLIGHT.BTN}`" mode="aspectFit"
@click="jump('starlight')">
</image>
<image
class=
"starlightdesc"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.STARLIGHT.DESC}`" mode="aspectFit">
<image
class=
"starlightdesc"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.STARLIGHT.DESC}`" mode="aspectFit">
</image>
</image>
</view>
</view>
...
@@ -65,7 +68,8 @@
...
@@ -65,7 +68,8 @@
<image
class=
"goldips3"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.GOLD.IPS3}`" mode="aspectFit">
</image>
<image
class=
"goldips3"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.GOLD.IPS3}`" mode="aspectFit">
</image>
<image
class=
"goldips4"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.GOLD.IPS4}`" mode="aspectFit">
</image>
<image
class=
"goldips4"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.GOLD.IPS4}`" mode="aspectFit">
</image>
</view>
</view>
<image
class=
"goldbtn"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.GOLD.BTN}`" mode="aspectFit" @click="jump('gold')">
</image>
<image
class=
"goldbtn"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.GOLD.BTN}`" mode="aspectFit"
@click="jump('gold')">
</image>
<image
class=
"golddesc"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.GOLD.DESC}`" mode="aspectFit">
</image>
<image
class=
"golddesc"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.GOLD.DESC}`" mode="aspectFit">
</image>
</view>
</view>
...
@@ -83,7 +87,8 @@
...
@@ -83,7 +87,8 @@
<image
class=
"platinumips4"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.PLATINUM.IPS4}`" mode="aspectFit">
<image
class=
"platinumips4"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.PLATINUM.IPS4}`" mode="aspectFit">
</image>
</image>
</view>
</view>
<image
class=
"platinumbtn"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.PLATINUM.BTN}`" mode="aspectFit" @click="jump('platinum')">
</image>
<image
class=
"platinumbtn"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.PLATINUM.BTN}`" mode="aspectFit"
@click="jump('platinum')">
</image>
<image
class=
"platinumdesc"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.PLATINUM.DESC}`" mode="aspectFit">
</image>
<image
class=
"platinumdesc"
:src=
"`$
{$baseUrl}${BABY_CLASS_IMAGES.PLATINUM.DESC}`" mode="aspectFit">
</image>
</view>
</view>
...
@@ -116,7 +121,7 @@ const props = defineProps({
...
@@ -116,7 +121,7 @@ const props = defineProps({
// 等级映射常量
// 等级映射常量
const
LEVEL_MAP
=
{
const
LEVEL_MAP
=
{
0
:
'gold'
,
0
:
'gold'
,
1
:
'platinum'
,
1
:
'platinum'
,
2
:
'diamond'
,
2
:
'diamond'
,
3
:
'starlight'
,
3
:
'starlight'
,
4
:
'starshine'
4
:
'starshine'
...
@@ -131,12 +136,12 @@ const userLevelName = computed(() => LEVEL_MAP[props.userLevel])
...
@@ -131,12 +136,12 @@ const userLevelName = computed(() => LEVEL_MAP[props.userLevel])
// 跳转方法
// 跳转方法
const
jump
=
(
level
)
=>
{
const
jump
=
(
level
)
=>
{
console
.
log
(
`跳转到
${
level
}
等级页面`
)
console
.
log
(
`跳转到
${
level
}
等级页面`
)
// 检查用户等级是否符合要求
// 检查用户等级是否符合要求
const
levelOrder
=
[
0
,
1
,
2
,
3
,
4
];
// gold, platinum, diamond, starlight, starshine
const
levelOrder
=
[
0
,
1
,
2
,
3
,
4
];
// gold, platinum, diamond, starlight, starshine
const
userLevelIndex
=
levelOrder
.
indexOf
(
props
.
userLevel
);
const
userLevelIndex
=
levelOrder
.
indexOf
(
props
.
userLevel
);
const
requiredLevelIndex
=
levelOrder
.
indexOf
(
props
.
currentLevel
);
const
requiredLevelIndex
=
levelOrder
.
indexOf
(
props
.
currentLevel
);
if
(
userLevelIndex
<
requiredLevelIndex
)
{
if
(
userLevelIndex
<
requiredLevelIndex
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'等级不够,无法访问'
,
title
:
'等级不够,无法访问'
,
...
@@ -145,11 +150,11 @@ const jump = (level) => {
...
@@ -145,11 +150,11 @@ const jump = (level) => {
})
})
return
;
return
;
}
}
// 跳转到 H5 页面,地址暂时默认 https://www.baidu.com
// 跳转到 H5 页面,地址暂时默认 https://www.baidu.com
// 可以根据不同等级跳转到不同的地址
// 可以根据不同等级跳转到不同的地址
const
url
=
'https://member.feihe.com/memberH5/#/courses'
const
url
=
'https://member.feihe.com/memberH5/#/courses'
// 使用 uni.navigateTo 跳转到 webview 页面
// 使用 uni.navigateTo 跳转到 webview 页面
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/webview/webview?url=
${
encodeURIComponent
(
url
)}
&title=
${
level
}
等级页面`
url
:
`/pages/webview/webview?url=
${
encodeURIComponent
(
url
)}
&title=
${
level
}
等级页面`
...
@@ -239,7 +244,7 @@ const jump = (level) => {
...
@@ -239,7 +244,7 @@ const jump = (level) => {
position: absolute;
position: absolute;
cursor: pointer;
cursor: pointer;
transition: transform 0.2s ease;
transition: transform 0.2s ease;
&:active {
&:active {
transform: scale(0.95);
transform: scale(0.95);
}
}
...
@@ -326,7 +331,7 @@ const jump = (level) => {
...
@@ -326,7 +331,7 @@ const jump = (level) => {
position: absolute;
position: absolute;
cursor: pointer;
cursor: pointer;
transition: transform 0.2s ease;
transition: transform 0.2s ease;
&:active {
&:active {
transform: scale(0.95);
transform: scale(0.95);
}
}
...
@@ -413,7 +418,7 @@ const jump = (level) => {
...
@@ -413,7 +418,7 @@ const jump = (level) => {
position: absolute;
position: absolute;
cursor: pointer;
cursor: pointer;
transition: transform 0.2s ease;
transition: transform 0.2s ease;
&:active {
&:active {
transform: scale(0.95);
transform: scale(0.95);
}
}
...
@@ -500,7 +505,7 @@ const jump = (level) => {
...
@@ -500,7 +505,7 @@ const jump = (level) => {
position: absolute;
position: absolute;
cursor: pointer;
cursor: pointer;
transition: transform 0.2s ease;
transition: transform 0.2s ease;
&:active {
&:active {
transform: scale(0.95);
transform: scale(0.95);
}
}
...
@@ -587,7 +592,7 @@ const jump = (level) => {
...
@@ -587,7 +592,7 @@ const jump = (level) => {
position: absolute;
position: absolute;
cursor: pointer;
cursor: pointer;
transition: transform 0.2s ease;
transition: transform 0.2s ease;
&:active {
&:active {
transform: scale(0.95);
transform: scale(0.95);
}
}
...
...
components/pointRightsCom/monthGift.vue
View file @
b7e90c1c
This diff is collapsed.
Click to expand it.
pages/syWebview/syWebview.vue
View file @
b7e90c1c
...
@@ -52,7 +52,9 @@ const globalStore = useGlobalStore()
...
@@ -52,7 +52,9 @@ const globalStore = useGlobalStore()
// 登录获取 cuk
// 登录获取 cuk
const
wxAutoLogin
=
async
()
=>
{
const
wxAutoLogin
=
async
()
=>
{
await
userStore
.
wxAutoLogin
()
await
new
Promise
(
resolve
=>
{
userStore
.
wxAutoLogin
(
resolve
)
})
}
}
// 接收webview消息
// 接收webview消息
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment