Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_vedio
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
uniapp_vedio
Commits
5b8deb53
Commit
5b8deb53
authored
Jul 26, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开通vip更新我的页面状态
parent
26c71fb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
30 deletions
+44
-30
home.vue
vedio/pages/home.vue
+38
-29
vipPay.vue
vedio/pagesA/vipPay/vipPay.vue
+6
-1
No files found.
vedio/pages/home.vue
View file @
5b8deb53
<
template
>
<
template
>
<view
v-if=
"localActiviteFlag==1"
class=
"body"
>
<view
v-if=
"localActiviteFlag==1"
class=
"body"
>
<view
style=
"height: 92%;"
>
<view
style=
"height: 92%;"
>
<bookshelf
v-show=
"currentPage==0"
ref=
"index"
/>
<bookshelf
v-show=
"currentPage==0"
ref=
"index"
/>
<warehouse
v-show=
"currentPage==1"
ref=
"recommend"
/>
<warehouse
v-show=
"currentPage==1"
ref=
"recommend"
/>
...
@@ -35,22 +35,22 @@
...
@@ -35,22 +35,22 @@
我的
我的
</view>
</view>
</view>
</view>
</view>
</view>
<view
v-else
class=
"body"
>
<view
v-else
class=
"body"
>
<view
<view
:style=
"'display: flex;flex-direction: row;align-items: center;margin: 20rpx;padding-left: 10rpx;margin-top:'+10+'px;'"
>
:style=
"'display: flex;flex-direction: row;align-items: center;margin: 20rpx;padding-left: 10rpx;margin-top:'+10+'px;'"
>
<image
class=
"avatar"
src=
"@/static/logo-about.png"
></image>
<image
class=
"avatar"
src=
"@/static/logo-about.png"
></image>
<view>
<view>
<view
style=
"font-size: 34rpx;color: black;margin-left: 30rpx;"
>
用户ID:
{{
localIdcode
}}
</view>
<view
style=
"font-size: 34rpx;color: black;margin-left: 30rpx;"
>
用户ID:
{{
localIdcode
}}
</view>
<view
style=
"font-size: 26rpx;color: #b5b5b5;margin-left: 30rpx;margin-top: 10rpx;"
>
<view
style=
"font-size: 26rpx;color: #b5b5b5;margin-left: 30rpx;margin-top: 10rpx;"
>
书中自有颜如玉,书中自有黄金屋,书中自有千钟黍
</view>
书中自有颜如玉,书中自有黄金屋,书中自有千钟黍
</view>
</view>
</view>
</view>
</view>
<view
style=
"height: 92%;"
>
<view
style=
"height: 92%;"
>
<warehouse
v-show=
"currentPage==1"
ref=
"recommend"
/>
<warehouse
v-show=
"currentPage==1"
ref=
"recommend"
/>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -77,13 +77,13 @@
...
@@ -77,13 +77,13 @@
data
()
{
data
()
{
return
{
return
{
currentPage
:
1
,
currentPage
:
1
,
localActiviteFlag
:
0
,
localActiviteFlag
:
0
,
localIdcode
:
0
,
localIdcode
:
0
,
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
let
index
=
options
.
index
??
''
let
index
=
options
.
index
??
''
this
.
localActiviteFlag
=
options
.
activiteFlag
;
this
.
localActiviteFlag
=
options
.
activiteFlag
;
this
.
localIdcode
=
options
.
idcode
;
this
.
localIdcode
=
options
.
idcode
;
if
(
index
!=
''
&&
index
!=
undefined
)
{
if
(
index
!=
''
&&
index
!=
undefined
)
{
this
.
currentPage
=
index
this
.
currentPage
=
index
...
@@ -106,14 +106,23 @@
...
@@ -106,14 +106,23 @@
mounted
()
{
mounted
()
{
// 渲染完成 初始化首页数据
// 渲染完成 初始化首页数据
this
.
loadComponentData
();
this
.
loadComponentData
();
let
that
=
this
if
(
this
.
localActiviteFlag
==
1
)
{
if
(
this
.
localActiviteFlag
==
1
)
{
let
that
=
this
uni
.
$on
(
'goWareHouse'
,
function
(
data
)
{
uni
.
$on
(
'goWareHouse'
,
function
(
data
)
{
that
.
tabChange
(
1
)
that
.
tabChange
(
1
)
})
})
}
}
uni
.
$on
(
'refreshPreviousPage'
,
(
data
)
=>
{
if
(
data
.
vipFlag
==
'1'
)
{
// 开通vip刷新状态
if
(
that
.
currentPage
==
2
)
{
that
.
$refs
.
user
.
show
();
}
}
});
},
},
methods
:
{
methods
:
{
tabChange
(
index
)
{
tabChange
(
index
)
{
...
@@ -144,14 +153,14 @@
...
@@ -144,14 +153,14 @@
.body
{
.body
{
height
:
100%
;
height
:
100%
;
background-color
:
whitesmoke
;
background-color
:
whitesmoke
;
}
}
.avatar
{
.avatar
{
background-color
:
#d8d8d8
;
background-color
:
#d8d8d8
;
width
:
100rpx
;
width
:
100rpx
;
height
:
100rpx
;
height
:
100rpx
;
border-radius
:
50%
;
border-radius
:
50%
;
overflow
:
hidden
;
overflow
:
hidden
;
//box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1)
//box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1)
}
}
</
style
>
</
style
>
\ No newline at end of file
vedio/pagesA/vipPay/vipPay.vue
View file @
5b8deb53
...
@@ -209,7 +209,12 @@
...
@@ -209,7 +209,12 @@
message
.
notify
(
'支付成功'
)
message
.
notify
(
'支付成功'
)
setTimeout
(()
=>
{
setTimeout
(()
=>
{
navigateBack
();
uni
.
$emit
(
'refreshPreviousPage'
,
{
vipFlag
:
'1'
});
uni
.
navigateBack
({
delta
:
1
,
});
},
1000
);
},
1000
);
},
},
fail
(
res
)
{
fail
(
res
)
{
...
...
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