Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vediosocial
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
android_vediosocial
Commits
a18b73e4
Commit
a18b73e4
authored
Feb 19, 2025
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加微信支付
parent
3d260eea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
11 deletions
+23
-11
build.gradle
video/app/build.gradle
+2
-2
VipActivity.kt
...n/java/com/duben/loveplayletd/ui/activitys/VipActivity.kt
+19
-5
activity_new_vip.xml
video/app/src/main/res/layout/activity_new_vip.xml
+2
-4
No files found.
video/app/build.gradle
View file @
a18b73e4
...
...
@@ -15,8 +15,8 @@ android {
applicationId
"com.duben.loveplayletd"
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
80
7
versionName
"8.0.
7
"
versionCode
80
8
versionName
"8.0.
8
"
flavorDimensions
"default"
// dex突破65535的限制
...
...
video/app/src/main/java/com/duben/loveplayletd/ui/activitys/VipActivity.kt
View file @
a18b73e4
...
...
@@ -287,11 +287,25 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener, VipAdapter.On
* 设置content样式
*/
private
fun
setVipContent
(
bean
:
VipBean
.
ListBean
)
{
ll_vip_alipay
.
visibility
=
View
.
VISIBLE
ll_vip_wx
.
visibility
=
View
.
GONE
payType
=
ALIPAY
iv_vip_alipay
.
setImageResource
(
R
.
mipmap
.
ic_vip_enable_blue
)
iv_vip_wx
.
setImageResource
(
R
.
mipmap
.
ic_vip_none
)
if
(
bean
.
isAlipay
&&
bean
.
isWeixin
)
{
ll_vip_alipay
.
visibility
=
View
.
VISIBLE
ll_vip_wx
.
visibility
=
View
.
VISIBLE
payType
=
WEIXIN_PAY
iv_vip_wx
.
setImageResource
(
R
.
mipmap
.
ic_vip_enable_blue
)
iv_vip_alipay
.
setImageResource
(
R
.
mipmap
.
ic_vip_none
)
}
else
if
(
bean
.
isAlipay
&&
!
bean
.
isWeixin
)
{
ll_vip_alipay
.
visibility
=
View
.
VISIBLE
ll_vip_wx
.
visibility
=
View
.
GONE
payType
=
ALIPAY
iv_vip_alipay
.
setImageResource
(
R
.
mipmap
.
ic_vip_enable_blue
)
iv_vip_wx
.
setImageResource
(
R
.
mipmap
.
ic_vip_none
)
}
else
if
(!
bean
.
isAlipay
&&
bean
.
isWeixin
)
{
ll_vip_alipay
.
visibility
=
View
.
GONE
ll_vip_wx
.
visibility
=
View
.
VISIBLE
payType
=
WEIXIN_PAY
iv_vip_wx
.
setImageResource
(
R
.
mipmap
.
ic_vip_enable_blue
)
iv_vip_alipay
.
setImageResource
(
R
.
mipmap
.
ic_vip_none
)
}
if
(!
TextUtils
.
isEmpty
(
bean
.
remarks
))
{
tv_vip_hint
.
text
=
bean
.
remarks
...
...
video/app/src/main/res/layout/activity_new_vip.xml
View file @
a18b73e4
...
...
@@ -167,8 +167,7 @@
android:layout_weight=
"1"
android:gravity=
"center"
android:orientation=
"horizontal"
android:paddingLeft=
"20dp"
android:visibility=
"gone"
>
android:paddingLeft=
"20dp"
>
<TextView
android:layout_width=
"wrap_content"
...
...
@@ -196,8 +195,7 @@
android:layout_weight=
"1"
android:gravity=
"center"
android:orientation=
"horizontal"
android:paddingRight=
"20dp"
android:visibility=
"gone"
>
android:paddingRight=
"20dp"
>
<TextView
android:layout_width=
"wrap_content"
...
...
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