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
2e350bb5
Commit
2e350bb5
authored
Nov 04, 2025
by
jt
Browse files
Options
Browse Files
Download
Plain Diff
x
parents
7a17cd24
e3c797a5
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
39 additions
and
15 deletions
+39
-15
request.js
api/request.js
+2
-0
InviteGift.less
components/integralArea/InviteGift.less
+3
-3
InviteGift.vue
components/integralArea/InviteGift.vue
+1
-1
md.js
md.js
+1
-1
index.vue
pages/index/index.vue
+12
-1
sharepage.vue
pages/invate/sharepage.vue
+4
-4
settlementCenter.vue
v3/settlementCenter/settlementCenter.vue
+0
-1
Integral.vue
views/Integral.vue
+16
-4
No files found.
api/request.js
View file @
2e350bb5
...
...
@@ -107,6 +107,8 @@ const post = async (url, data, options = {}) => {
options
.
data
=
data
;
options
.
url
=
url
;
console
.
log
(
'post options1111111:'
,
options
);
try
{
return
await
request
(
options
);
}
catch
(
error
)
{
...
...
components/integralArea/InviteGift.less
View file @
2e350bb5
...
...
@@ -60,13 +60,13 @@
width: 220rpx;
height: 62rpx;
background: linear-gradient(to right, #D1AF82 0%, #E6C7A3 100%); // itemIndex = 0
border-radius:
3
0rpx;
border-radius:
8
0rpx;
display: flex;
margin-top: 3
0
rpx;
margin-top: 3
1
rpx;
margin-left: 0rpx;
align-items: center;
justify-content: center;
box-shadow: 0 2rpx 8rpx rgba(160, 123, 77, 0.3);
//
box-shadow: 0 2rpx 8rpx rgba(160, 123, 77, 0.3);
transition: transform 0.2s ease;
.invite_button_text {
...
...
components/integralArea/InviteGift.vue
View file @
2e350bb5
...
...
@@ -22,7 +22,7 @@
<view
class=
"star_character"
>
<image
class=
"star_img"
:src=
"$baseUrl +
'integral/1023/invate_star_character1023.png'
"
:src=
"$baseUrl +
(itemIndex != 4 ? 'integral/1023/invate_star_character1023.png' : 'integral/1023/invate_star_character102302.png')
"
mode=
"aspectFit"
/>
</view>
...
...
md.js
View file @
2e350bb5
...
...
@@ -6,7 +6,7 @@ const init = (SENSORS_URL) => {
sensors
.
setPara
({
name
:
"sensors"
,
server_url
:
SENSORS_URL
,
show_log
:
fals
e
,
show_log
:
tru
e
,
autoTrack
:
{
appLaunch
:
true
,
// 默认为 true,false 则关闭 $MPLaunch 事件采集
appShow
:
true
,
// 默认为 true,false 则关闭 $MPShow 事件采集
...
...
pages/index/index.vue
View file @
2e350bb5
...
...
@@ -67,7 +67,7 @@
</
template
>
<
script
setup
>
import
{
ref
,
getCurrentInstance
,
onMounted
}
from
"vue"
;
import
{
ref
,
getCurrentInstance
,
onMounted
,
nextTick
}
from
"vue"
;
import
{
onLoad
,
onShareAppMessage
,
onShareTimeline
,
onPageScroll
,
onShow
}
from
"@dcloudio/uni-app"
;
import
TabBar
from
"@/components/TabBar.vue"
;
import
Home
from
"@/views/Home.vue"
;
...
...
@@ -148,6 +148,17 @@ const handleLaunchAppError = (e) => {
function
handleTabClick
({
index
})
{
globalStore
.
setCurTabIndex
(
index
);
// tab切换时,如果授权手机号模块显示,触发曝光埋点
if
(
!
userStore
.
memberInfo
?.
mobile
)
{
nextTick
(()
=>
{
md
.
sensorComponentLogTake
({
xcxComponentExposure
:
"true"
,
pageName
:
`
${[
'首页'
,
'品牌'
,
'积分'
,
'我的'
][
index
]}
`
,
componentName
:
"去授权手机号引导"
,
componentContent
:
"去授权手机号引导"
});
});
}
}
// 处理授权手机号按钮点击
...
...
pages/invate/sharepage.vue
View file @
2e350bb5
...
...
@@ -227,7 +227,7 @@ const onGetPhoneNumber = async (e) => {
// 重新获取用户信息(登录后)getphonenumber
await
Promise
.
all
([
userStore
.
loadUserInfo
(),
userStore
.
loadMemberInfo
(),
//
userStore.loadMemberInfo(),
])
console
.
warn
(
'授权后重新获取用户信息'
)
...
...
@@ -353,9 +353,9 @@ const handleClaim = () => {
};
const
gotoIntegral
=
()
=>
{
jump
({
url
:
'/pages/index/index?pageType=integral'
,
type
:
JumpType
.
INNER
uni
.
redirectTo
({
url
:
'/pages/index/index?pageType=integral'
});
};
...
...
v3/settlementCenter/settlementCenter.vue
View file @
2e350bb5
...
...
@@ -828,7 +828,6 @@ export default {
.address-text.no-address
{
color
:
#999
;
font-style
:
italic
;
font-weight
:
500
;
}
...
...
views/Integral.vue
View file @
2e350bb5
...
...
@@ -546,7 +546,7 @@
// 轮播图数据可在此定义(当前使用静态路径)
// "rgba(255,255,255,0.5)"
import
{
ref
,
onMounted
,
onBeforeMount
,
computed
,
watch
}
from
'vue'
;
import
{
ref
,
onMounted
,
onBeforeMount
,
onBeforeUnmount
,
computed
,
watch
}
from
'vue'
;
import
{
onShareAppMessage
}
from
'@dcloudio/uni-app'
;
import
{
jump
,
JumpType
}
from
'@/utils/index.js'
import
{
useUserStore
}
from
"@/stores/user"
;
...
...
@@ -1905,14 +1905,26 @@ onBeforeMount(async () => {
}
)
onShow
(
async
()
=>
{
console
.
log
(
'onShow'
);
console
.
log
(
'onShow
111111111111
'
);
if
(
needReinit
.
value
)
{
needReinit
.
value
=
false
initNetData
()
}
}
)
// 使用 watch 监听控制积分页面显示/隐藏的状态
// 这样可以更精确地知道页面何时显示和隐藏
watch
(
()
=>
globalStore
.
curTabIndex
===
2
&&
!
globalStore
.
isWxFriendCircle
,
(
isVisible
)
=>
{
if
(
isVisible
)
{
}
)
}
console
.
log
(
'isVisible:'
,
isVisible
);
}
,
{
immediate
:
true
}
);
onMounted
(
async
()
=>
{
// showSignedTips.value = true;
...
...
@@ -1931,7 +1943,7 @@ onMounted(async () => {
}
);
mdMap
.
value
.
push
(
'积分服务页-首屏'
);
}
}
md
.
sensorComponentLogTake
({
xcxComponentExposure
:
"true"
,
...
...
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