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
4c149dff
Commit
4c149dff
authored
Oct 13, 2025
by
劳琪峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 修改1015活动页测试入口
parent
eeec8ba5
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
208 additions
and
194 deletions
+208
-194
home.vue
activities/1015/home.vue
+0
-4
ruleModal.vue
activities/1015/lottery/components/ruleModal/ruleModal.vue
+54
-47
rulemodal.less
activities/1015/lottery/components/ruleModal/rulemodal.less
+4
-0
config.js
activities/1015/lottery/config.js
+2
-1
Integral.vue
views/Integral.vue
+148
-142
No files found.
activities/1015/home.vue
View file @
4c149dff
...
...
@@ -22,9 +22,6 @@
:debug-mode=
"true"
/>
</
template
>
<GotPrizeModal
:visible=
"showGotPrizeModal"
:award-name=
"currentAwardName"
:award-image-url=
"currentAwardImageUrl"
@
close=
"handleGotPrizeModalClose"
@
happy-get=
"handleHappyGet"
/>
</view>
</template>
...
...
@@ -34,7 +31,6 @@ import {ref, onMounted, computed, getCurrentInstance, provide} from 'vue'
import
{
fetchPageConfig
}
from
'./api.ts'
import
{
useHomeStore
}
from
'@/stores/home'
;
// Assuming homeStore path
import
{
useUserStore
}
from
'@/stores/user'
;
// Import userStore
import
GotPrizeModal
from
'./components/GotPrizeModal.vue'
;
// Import GotPrizeModal if needed
import
ClickArea
from
"./components/ClickArea.vue"
;
import
ImageSwiper
from
"./components/ImageSwiper.vue"
;
import
InviteTask
from
"./components/InviteTask.vue"
;
...
...
activities/1015/lottery/components/ruleModal/ruleModal.vue
View file @
4c149dff
<
template
>
<view
class=
"rulemodal"
v-if=
"visible"
>
<!-- 蒙层 -->
<view
class=
"rulemodal-mask"
@
click=
"handleCloseClick"
></view>
<!-- 弹窗内容 -->
<view
class=
"rulemodal-content"
>
<view
class=
"rulemodal"
v-if=
"visible"
>
<!-- 蒙层 -->
<view
class=
"rulemodal-mask"
@
click=
"handleCloseClick"
></view>
<!-- 弹窗内容 -->
<view
class=
"rulemodal-content"
>
<p
class=
"rulemodal-title"
>
活动规则
</p>
<!-- 规则内容区域 - 支持滚动 -->
<view
class=
"rulemodal-text-container"
>
<image
class=
"rulemodaltextimg"
:src=
"`$
{$baseUrl}${getRuleImgUrl()}`"
mode="widthFix"
@load="console.log('规则图片加载成功')"
@error="console.log('规则图片加载失败')">
</image>
</view>
<!-- 规则内容区域 - 支持滚动 -->
<view
class=
"rulemodal-text-container"
>
<!--
<image
class=
"rulemodaltextimg"
:src=
"`$
{$baseUrl}${getRuleImgUrl()}`"
mode="widthFix"
@load="console.log('规则图片加载成功')"
@error="console.log('规则图片加载失败')">
</image>
-->
<view
class=
"rulemodal-text"
>
<p
v-for=
"(item, index) in ruleLines"
:key=
"index"
>
{{
item
}}
</p>
</view>
</view>
<span
class=
"rulemodalclosebtn"
:style=
"
{ backgroundImage: `url(${getImageUrl(config.images.closeBtn)})` }"
@click="handleCloseClick">
</span>
</view>
</view>
<span
class=
"rulemodalclosebtn"
:style=
"
{ backgroundImage: `url(${getImageUrl(config.images.closeBtn)})` }"
@click="handleCloseClick">
</span>
</view>
</view>
</
template
>
<
script
setup
>
import
{
act1015RuleModalConfig
,
getImageUrl
}
from
'./config.js'
import
{
getCurrentInstance
}
from
'vue'
import
{
act1015RuleModalConfig
,
getImageUrl
}
from
'./config.js'
import
{
getCurrentInstance
,
computed
}
from
'vue'
// 组件名称
defineOptions
({
name
:
'RuleModal'
name
:
'RuleModal'
})
// 获取全局属性
const
{
proxy
}
=
getCurrentInstance
()
const
{
proxy
}
=
getCurrentInstance
()
const
$baseUrl
=
proxy
.
$baseUrl
// Props
const
props
=
defineProps
({
visible
:
{
type
:
Boolean
,
default
:
false
},
rules
:
{
type
:
String
,
default
:
''
},
config
:
{
type
:
Object
,
default
:
()
=>
({})
}
visible
:
{
type
:
Boolean
,
default
:
false
},
rules
:
{
type
:
String
,
default
:
''
},
config
:
{
type
:
Object
,
default
:
()
=>
({})
}
})
// Emits
const
emit
=
defineEmits
([
'close'
])
const
ruleLines
=
computed
(()
=>
{
return
props
.
rules
.
split
(
'
\
n'
)
})
// 配置对象
const
config
=
act1015RuleModalConfig
// 获取规则图片URL
const
getRuleImgUrl
=
()
=>
{
// 优先使用接口返回的 ruleImg
if
(
props
.
config
&&
props
.
config
.
ruleImg
)
{
console
.
log
(
'使用接口返回的 ruleImg:'
,
props
.
config
.
ruleImg
)
return
props
.
config
.
ruleImg
}
// 回退到默认配置
console
.
log
(
'使用默认配置的 textImg:'
,
config
.
images
.
textImg
)
const
defaultUrl
=
getImageUrl
(
config
.
images
.
textImg
)
console
.
log
(
'默认图片URL:'
,
defaultUrl
)
return
defaultUrl
// 优先使用接口返回的 ruleImg
if
(
props
.
config
&&
props
.
config
.
ruleImg
)
{
console
.
log
(
'使用接口返回的 ruleImg:'
,
props
.
config
.
ruleImg
)
return
props
.
config
.
ruleImg
}
// 回退到默认配置
console
.
log
(
'使用默认配置的 textImg:'
,
config
.
images
.
textImg
)
const
defaultUrl
=
getImageUrl
(
config
.
images
.
textImg
)
console
.
log
(
'默认图片URL:'
,
defaultUrl
)
return
defaultUrl
}
// 关闭按钮点击处理
const
handleCloseClick
=
()
=>
{
console
.
log
(
'关闭规则弹窗'
)
emit
(
'close'
)
console
.
log
(
'关闭规则弹窗'
)
emit
(
'close'
)
}
</
script
>
...
...
activities/1015/lottery/components/ruleModal/rulemodal.less
View file @
4c149dff
...
...
@@ -81,6 +81,10 @@
object-fit: contain;
display: block;
}
.rulemodal-text{
padding: 40rpx;
}
}
.rulemodalclosebtn {
...
...
activities/1015/lottery/config.js
View file @
4c149dff
const
version
=
'v1'
const
baseUrl
=
'http://127.0.0.1:8080/activity/1015'
//const baseUrl = 'http://127.0.0.1:8080/activity/1015'
const
baseUrl
=
'https://course.feihe.com/momclub-picture/activity/1015'
function
getCdnUrl
(
path
){
return
`
${
baseUrl
}
/
${
version
}
/
${
path
}
`
...
...
views/Integral.vue
View file @
4c149dff
This diff is collapsed.
Click to expand it.
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