Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_book
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_book
Commits
c76658d4
Commit
c76658d4
authored
Nov 15, 2024
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加微信支付
parent
2a45c2f4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
37 deletions
+46
-37
build.gradle
book/app/build.gradle
+3
-2
VipPresenter.kt
...a/com/duben/infinitefunjia/mvp/presenters/VipPresenter.kt
+4
-4
VipActivity.kt
...java/com/duben/infinitefunjia/ui/activitys/VipActivity.kt
+34
-26
gradle.properties
book/gradle.properties
+3
-3
ShareSDK.xml
book/tmpmob/ShareSDK/assets/ShareSDK.xml
+2
-2
No files found.
book/app/build.gradle
View file @
c76658d4
...
@@ -13,8 +13,8 @@ android {
...
@@ -13,8 +13,8 @@ android {
applicationId
"com.duben.infinitefunjia"
applicationId
"com.duben.infinitefunjia"
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
2
versionCode
3
versionName
"1.0.
1
"
versionName
"1.0.
2
"
flavorDimensions
"default"
flavorDimensions
"default"
// dex突破65535的限制
// dex突破65535的限制
...
@@ -119,6 +119,7 @@ android {
...
@@ -119,6 +119,7 @@ android {
productFlavors
{
productFlavors
{
facai
{}
facai
{}
home
{}
home
{}
yingyongbao
{}
}
}
productFlavors
.
all
{
productFlavors
.
all
{
...
...
book/app/src/main/java/com/duben/infinitefunjia/mvp/presenters/VipPresenter.kt
View file @
c76658d4
...
@@ -184,8 +184,8 @@ class VipPresenter : BasePresenter<VipView>() {
...
@@ -184,8 +184,8 @@ class VipPresenter : BasePresenter<VipView>() {
fun
getVipPayParams
(
payChannel
:
String
,
pid
:
String
,
isInstallAlipay
:
Boolean
)
{
fun
getVipPayParams
(
payChannel
:
String
,
pid
:
String
,
isInstallAlipay
:
Boolean
)
{
val
vo
=
HashMap
<
String
,
Any
>()
val
vo
=
HashMap
<
String
,
Any
>()
//
vo["payChannel"] = payChannel
vo
[
"payChannel"
]
=
payChannel
vo
[
"payChannel"
]
=
"ALIPAY"
//
vo["payChannel"] = "ALIPAY"
vo
[
"pid"
]
=
pid
vo
[
"pid"
]
=
pid
vo
[
"isInstallAlipay"
]
=
isInstallAlipay
vo
[
"isInstallAlipay"
]
=
isInstallAlipay
AppHttpManager
.
getInstance
(
loanApplication
)
AppHttpManager
.
getInstance
(
loanApplication
)
...
@@ -207,8 +207,8 @@ class VipPresenter : BasePresenter<VipView>() {
...
@@ -207,8 +207,8 @@ class VipPresenter : BasePresenter<VipView>() {
val
code
:
Int
=
baseResponse
.
getStatus
()
val
code
:
Int
=
baseResponse
.
getStatus
()
when
(
code
)
{
when
(
code
)
{
200
->
{
200
->
{
//
view.getVipPayParamsSuc(payChannel, baseResponse.data)
view
.
getVipPayParamsSuc
(
payChannel
,
baseResponse
.
data
)
view
.
getVipPayParamsSuc
(
"ALIPAY"
,
baseResponse
.
data
)
//
view.getVipPayParamsSuc("ALIPAY", baseResponse.data)
}
}
else
->
{
else
->
{
view
.
showToast
(
baseResponse
.
getMessage
())
view
.
showToast
(
baseResponse
.
getMessage
())
...
...
book/app/src/main/java/com/duben/infinitefunjia/ui/activitys/VipActivity.kt
View file @
c76658d4
...
@@ -160,30 +160,30 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
...
@@ -160,30 +160,30 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
* 设置content样式
* 设置content样式
*/
*/
private
fun
setVipContent
(
bean
:
VipBean
.
ListBean
)
{
private
fun
setVipContent
(
bean
:
VipBean
.
ListBean
)
{
// if (bean.isAlipay && bean.isWeixin) {
if
(
bean
.
isAlipay
&&
bean
.
isWeixin
)
{
// ll_vip_alipay.visibility = View.VISIBLE
ll_vip_alipay
.
visibility
=
View
.
VISIBLE
// ll_vip_wx.visibility = View.VISIBLE
ll_vip_wx
.
visibility
=
View
.
VISIBLE
// payType = WEIXIN_PAY
payType
=
WEIXIN_PAY
// iv_vip_wx.setImageResource(R.mipmap.ic_vip_enable_blue)
iv_vip_wx
.
setImageResource
(
R
.
mipmap
.
ic_vip_enable_blue
)
// iv_vip_alipay.setImageResource(R.mipmap.ic_vip_none)
iv_vip_alipay
.
setImageResource
(
R
.
mipmap
.
ic_vip_none
)
// } else if (bean.isAlipay && !bean.isWeixin) {
}
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)
// }
ll_vip_alipay
.
visibility
=
View
.
VISIBLE
ll_vip_alipay
.
visibility
=
View
.
VISIBLE
ll_vip_wx
.
visibility
=
View
.
GONE
ll_vip_wx
.
visibility
=
View
.
GONE
payType
=
ALIPAY
payType
=
ALIPAY
iv_vip_alipay
.
setImageResource
(
R
.
mipmap
.
ic_vip_enable_blue
)
iv_vip_alipay
.
setImageResource
(
R
.
mipmap
.
ic_vip_enable_blue
)
iv_vip_wx
.
setImageResource
(
R
.
mipmap
.
ic_vip_none
)
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
)
}
// 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
(!
TextUtils
.
isEmpty
(
bean
.
remarks
))
{
if
(!
TextUtils
.
isEmpty
(
bean
.
remarks
))
{
...
@@ -681,8 +681,16 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
...
@@ -681,8 +681,16 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
}
}
override
fun
onPageSelected
(
position
:
Int
)
{
override
fun
onPageSelected
(
position
:
Int
)
{
if
(
data
!=
null
&&
data
.
size
>
0
){
if
(!
TextUtils
.
isEmpty
(
data
[
position
].
avatar
)){
GlideUtils
.
loadBlurImageView
(
mContext
,
data
[
position
].
avatar
,
iv_blur
)
GlideUtils
.
loadBlurImageView
(
mContext
,
data
[
position
].
avatar
,
iv_blur
)
}
if
(!
TextUtils
.
isEmpty
(
data
[
position
].
title
)){
tv_banner_title
.
text
=
String
.
format
(
"《%1s》"
,
data
[
position
].
title
)
tv_banner_title
.
text
=
String
.
format
(
"《%1s》"
,
data
[
position
].
title
)
}
}
}
}
override
fun
onPageScrollStateChanged
(
state
:
Int
)
{}
override
fun
onPageScrollStateChanged
(
state
:
Int
)
{}
...
...
book/gradle.properties
View file @
c76658d4
...
@@ -35,9 +35,9 @@ RELEASE_SHARESDK_KEY=396ef0a56a387
...
@@ -35,9 +35,9 @@ RELEASE_SHARESDK_KEY=396ef0a56a387
RELEASE_SHARESDK_SECRET
=
87ccb6a70ed788f7cdaa88f5a4ace07e
RELEASE_SHARESDK_SECRET
=
87ccb6a70ed788f7cdaa88f5a4ace07e
#weixin
#weixin
WEIXIN_APP_PAY_ID
=
"wx
7412076ce1c5b1bb
"
WEIXIN_APP_PAY_ID
=
"wx
bf4f8779563887e0
"
WEIXIN_APP_ID =wx
7412076ce1c5b1bb
WEIXIN_APP_ID =wx
bf4f8779563887e0
WEIXIN_APP_SECRET
=
a0f1b31059dc4127282a0468ef349b21
WEIXIN_APP_SECRET
=
392f6c2baec1bef3e07d4e5304392ebf
#ditu
#ditu
RELEASE_MAP_KEY
=
e43edf1fc38bd7695e36516048830cef
RELEASE_MAP_KEY
=
e43edf1fc38bd7695e36516048830cef
...
...
book/tmpmob/ShareSDK/assets/ShareSDK.xml
View file @
c76658d4
...
@@ -16,8 +16,8 @@
...
@@ -16,8 +16,8 @@
<Tumblr
Enable=
"false"
/>
<Tumblr
Enable=
"false"
/>
<Email
Enable=
"false"
/>
<Email
Enable=
"false"
/>
<ShortMessage
Enable=
"false"
/>
<ShortMessage
Enable=
"false"
/>
<Wechat
AppId=
"wx
7412076ce1c5b1bb"
AppSecret=
"a0f1b31059dc4127282a0468ef349b21
"
userName=
"gh_afb25ac019c9"
path=
"pages/index/index.html?id=1"
WithShareTicket=
"true"
MiniprogramType=
"0"
/>
<Wechat
AppId=
"wx
bf4f8779563887e0"
AppSecret=
"392f6c2baec1bef3e07d4e5304392ebf
"
userName=
"gh_afb25ac019c9"
path=
"pages/index/index.html?id=1"
WithShareTicket=
"true"
MiniprogramType=
"0"
/>
<WechatMoments
AppId=
"wx
7412076ce1c5b1bb"
AppSecret=
"a0f1b31059dc4127282a0468ef349b21
"
/>
<WechatMoments
AppId=
"wx
bf4f8779563887e0"
AppSecret=
"392f6c2baec1bef3e07d4e5304392ebf
"
/>
<QQ
Enable=
"false"
/>
<QQ
Enable=
"false"
/>
<Instapaper
Enable=
"false"
/>
<Instapaper
Enable=
"false"
/>
<Pocket
Enable=
"false"
/>
<Pocket
Enable=
"false"
/>
...
...
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