Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
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_goodmoney
Commits
6e2cd387
Commit
6e2cd387
authored
Nov 09, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
变现猫优化
parent
ea18cb22
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
87 additions
and
41 deletions
+87
-41
proguard-rules.pro
GoodMoney/app/proguard-rules.pro
+0
-2
AndroidManifest.xml
GoodMoney/app/src/main/AndroidManifest.xml
+5
-9
MintsApplication.java
...p/src/main/java/com/mints/goodmoney/MintsApplication.java
+8
-3
Constant.kt
.../app/src/main/java/com/mints/goodmoney/common/Constant.kt
+1
-0
BxmManager.kt
...p/src/main/java/com/mints/goodmoney/manager/BxmManager.kt
+3
-3
TtCsjAdManager.java
...main/java/com/mints/goodmoney/manager/TtCsjAdManager.java
+4
-0
MyPresenter.kt
...in/java/com/mints/goodmoney/mvp/presenters/MyPresenter.kt
+1
-2
PanPresenter.kt
...n/java/com/mints/goodmoney/mvp/presenters/PanPresenter.kt
+2
-1
PanView.kt
...pp/src/main/java/com/mints/goodmoney/mvp/views/PanView.kt
+1
-0
LoginActivity.kt
...in/java/com/mints/goodmoney/ui/activitys/LoginActivity.kt
+1
-1
GvMyAdapter.java
...main/java/com/mints/goodmoney/ui/adapter/GvMyAdapter.java
+18
-2
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+22
-9
PanFragment.kt
.../main/java/com/mints/goodmoney/ui/fragment/PanFragment.kt
+11
-4
item_list_my.xml
GoodMoney/app/src/main/res/layout/item_list_my.xml
+10
-5
No files found.
GoodMoney/app/proguard-rules.pro
View file @
6e2cd387
...
@@ -432,8 +432,6 @@
...
@@ -432,8 +432,6 @@
# ===================== 变现猫 START ================
# ===================== 变现猫 START ================
-keep class com.bytedance.sdk.openadsdk.
*
* { *; }
-keep public interface com.bytedance.sdk.openadsdk.downloadnew.
*
* {*;}
-keep class com.ss.android.* {*;}
-keep class com.ss.android.* {*;}
-keep class com.pgl.* {*;}
-keep class com.pgl.* {*;}
...
...
GoodMoney/app/src/main/AndroidManifest.xml
View file @
6e2cd387
...
@@ -7,31 +7,26 @@
...
@@ -7,31 +7,26 @@
<uses-permission
android:name=
"android.permission.READ_PHONE_STATE"
/>
<uses-permission
android:name=
"android.permission.READ_PHONE_STATE"
/>
<uses-permission
android:name=
"android.permission.ACCESS_WIFI_STATE"
/>
<uses-permission
android:name=
"android.permission.ACCESS_WIFI_STATE"
/>
<uses-permission
android:name=
"android.permission.ACCESS_NETWORK_STATE"
/>
<uses-permission
android:name=
"android.permission.ACCESS_NETWORK_STATE"
/>
<uses-permission
android:name=
"android.permission.ACCESS_COARSE_LOCATION"
/>
<uses-permission
android:name=
"android.permission.ACCESS_FINE_LOCATION"
/>
<uses-permission
android:name=
"android.permission.REQUEST_INSTALL_PACKAGES"
/>
<uses-permission
android:name=
"android.permission.REQUEST_INSTALL_PACKAGES"
/>
<uses-permission
android:name=
"android.permission.GET_TASKS"
/>
<uses-permission
android:name=
"android.permission.GET_TASKS"
/>
<uses-permission
android:name=
"android.permission.WAKE_LOCK"
/>
<uses-permission
android:name=
"android.permission.WAKE_LOCK"
/>
<uses-permission
android:name=
"android.permission.WRITE_SETTINGS"
/>
<uses-permission
android:name=
"android.permission.WRITE_SETTINGS"
/>
<uses-permission
android:name=
"android.permission.READ_CONTACTS"
/>
<uses-permission
android:name=
"android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"
/>
<uses-permission
android:name=
"android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"
/>
<uses-permission
<uses-permission
android:name=
"android.permission.PACKAGE_USAGE_STATS"
android:name=
"android.permission.PACKAGE_USAGE_STATS"
tools:ignore=
"ProtectedPermissions"
/>
tools:ignore=
"ProtectedPermissions"
/>
<permission
<permission
android:name=
"
com.mints.goodmoney
.permission.JPUSH_MESSAGE"
android:name=
"
${applicationId}
.permission.JPUSH_MESSAGE"
android:protectionLevel=
"signature"
/>
android:protectionLevel=
"signature"
/>
<uses-permission
android:name=
"android.permission.FOREGROUND_SERVICE"
/>
<uses-permission
android:name=
"android.permission.FOREGROUND_SERVICE"
/>
<uses-permission
android:name=
"
com.mints.goodmoney
.permission.JPUSH_MESSAGE"
/>
<uses-permission
android:name=
"
${applicationId}
.permission.JPUSH_MESSAGE"
/>
<uses-permission
android:name=
"android.permission.RECEIVE_USER_PRESENT"
/>
<uses-permission
android:name=
"android.permission.RECEIVE_USER_PRESENT"
/>
<uses-permission
android:name=
"android.permission.VIBRATE"
/>
<uses-permission
android:name=
"android.permission.VIBRATE"
/>
<uses-permission
android:name=
"android.permission.MOUNT_UNMOUNT_FILESYSTEMS"
/>
<uses-permission
android:name=
"android.permission.MOUNT_UNMOUNT_FILESYSTEMS"
/>
<uses-permission
android:name=
"android.permission.SYSTEM_ALERT_WINDOW"
/>
<uses-permission
android:name=
"android.permission.SYSTEM_ALERT_WINDOW"
/>
<uses-permission
android:name=
"android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"
/>
<uses-permission
android:name=
"android.permission.CHANGE_NETWORK_STATE"
/>
<uses-permission
android:name=
"android.permission.CHANGE_NETWORK_STATE"
/>
<uses-permission
android:name=
"android.permission.ACCESS_BACKGROUND_LOCATION"
/>
<application
<application
android:name=
".MintsApplication"
android:name=
".MintsApplication"
...
@@ -160,7 +155,7 @@
...
@@ -160,7 +155,7 @@
<action
android:name=
"cn.jpush.android.intent.NOTIFICATION_OPENED"
/>
<!-- Required 用户打开自定义通知栏的intent -->
<action
android:name=
"cn.jpush.android.intent.NOTIFICATION_OPENED"
/>
<!-- Required 用户打开自定义通知栏的intent -->
<action
android:name=
"cn.jpush.android.intent.ACTION_RICHPUSH_CALLBACK"
/>
<!-- Optional 用户接受Rich Push Javascript 回调函数的intent -->
<action
android:name=
"cn.jpush.android.intent.ACTION_RICHPUSH_CALLBACK"
/>
<!-- Optional 用户接受Rich Push Javascript 回调函数的intent -->
<action
android:name=
"cn.jpush.android.intent.CONNECTION"
/>
<!-- 接收网络变化 连接/断开 since 1.6.3 -->
<action
android:name=
"cn.jpush.android.intent.CONNECTION"
/>
<!-- 接收网络变化 连接/断开 since 1.6.3 -->
<category
android:name=
"
com.mints.goodmoney
"
/>
<category
android:name=
"
${applicationId}
"
/>
</intent-filter>
</intent-filter>
</receiver>
</receiver>
<!--since 3.3.0 接收JPush相关事件-->
<!--since 3.3.0 接收JPush相关事件-->
...
@@ -203,7 +198,7 @@
...
@@ -203,7 +198,7 @@
<provider
<provider
android:name=
"androidx.core.content.FileProvider"
android:name=
"androidx.core.content.FileProvider"
android:authorities=
"
com.mints.goodmoney
.fileprovider"
android:authorities=
"
${applicationId}
.fileprovider"
android:exported=
"false"
android:exported=
"false"
android:grantUriPermissions=
"true"
android:grantUriPermissions=
"true"
tools:replace=
"android:authorities"
>
tools:replace=
"android:authorities"
>
...
@@ -230,6 +225,7 @@
...
@@ -230,6 +225,7 @@
android:resource=
"@xml/ywsdk_file_paths"
/>
android:resource=
"@xml/ywsdk_file_paths"
/>
</provider>
</provider>
<!-- 穿山甲广告 -->
<!-- 穿山甲广告 -->
<provider
<provider
android:name=
"com.bytedance.sdk.openadsdk.TTFileProvider"
android:name=
"com.bytedance.sdk.openadsdk.TTFileProvider"
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/MintsApplication.java
View file @
6e2cd387
...
@@ -11,6 +11,7 @@ import androidx.multidex.MultiDexApplication;
...
@@ -11,6 +11,7 @@ import androidx.multidex.MultiDexApplication;
import
com.bun.miitmdid.core.JLibrary
;
import
com.bun.miitmdid.core.JLibrary
;
import
com.component.dly.xzzq_ywsdk.YwSDK
;
import
com.component.dly.xzzq_ywsdk.YwSDK
;
import
com.mints.goodmoney.manager.BxmManager
;
import
com.mints.goodmoney.manager.LiebaoManager
;
import
com.mints.goodmoney.manager.LiebaoManager
;
import
com.mints.goodmoney.manager.OaidManager
;
import
com.mints.goodmoney.manager.OaidManager
;
import
com.mints.goodmoney.manager.TtCsjAdManager
;
import
com.mints.goodmoney.manager.TtCsjAdManager
;
...
@@ -104,7 +105,7 @@ public class MintsApplication extends MultiDexApplication {
...
@@ -104,7 +105,7 @@ public class MintsApplication extends MultiDexApplication {
}
}
// 优量汇
// 优量汇
//
initYlh();
initYlh
();
// 穿山甲
// 穿山甲
initCsj
();
initCsj
();
...
@@ -113,13 +114,16 @@ public class MintsApplication extends MultiDexApplication {
...
@@ -113,13 +114,16 @@ public class MintsApplication extends MultiDexApplication {
initYL
();
initYL
();
// 鱼丸盒子
// 鱼丸盒子
//
initYwhz();
initYwhz
();
// 猎豹游戏初始化
// 猎豹游戏初始化
//
LiebaoManager.getInstance().initCmGameSdk();
LiebaoManager
.
getInstance
().
initCmGameSdk
();
// 掌阅书城
// 掌阅书城
ZhangyueManager
.
INSTANCE
.
onCreateIreader
(
this
);
ZhangyueManager
.
INSTANCE
.
onCreateIreader
(
this
);
// 变现猫
BxmManager
.
INSTANCE
.
initBxm
(
this
);
}
}
/**
/**
...
@@ -150,6 +154,7 @@ public class MintsApplication extends MultiDexApplication {
...
@@ -150,6 +154,7 @@ public class MintsApplication extends MultiDexApplication {
* 穿山甲
* 穿山甲
*/
*/
private
void
initCsj
()
{
private
void
initCsj
()
{
// LogUtil.d("csjcsj",TtCsjAdManager.getVersion());
TtCsjAdManager
.
init
(
this
);
TtCsjAdManager
.
init
(
this
);
}
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/common/Constant.kt
View file @
6e2cd387
...
@@ -140,6 +140,7 @@ object Constant {
...
@@ -140,6 +140,7 @@ object Constant {
const
val
HOT_ACTIVITY_WATER
=
"water"
const
val
HOT_ACTIVITY_WATER
=
"water"
const
val
HOT_ACTIVITY_WALK
=
"walk"
const
val
HOT_ACTIVITY_WALK
=
"walk"
const
val
HOT_ACTIVITY_CARD
=
"card"
const
val
HOT_ACTIVITY_CARD
=
"card"
const
val
HOT_ACTIVITY_BXM
=
"bianxianmao"
const
val
HOT_ACTIVITY_H5
=
"h5"
const
val
HOT_ACTIVITY_H5
=
"h5"
// 打开激活
// 打开激活
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/BxmManager.kt
View file @
6e2cd387
...
@@ -15,11 +15,11 @@ import com.mints.goodmoney.common.Constant
...
@@ -15,11 +15,11 @@ import com.mints.goodmoney.common.Constant
*/
*/
object
BxmManager
{
object
BxmManager
{
const
val
APP_ID
=
""
const
val
APP_ID
=
"
3b08a06c36a04eb7ad31ee31547b9e69
"
const
val
BUTTON_AD_SPOT_ID
=
""
const
val
BUTTON_AD_SPOT_ID
=
"
807020001003
"
var
bdAdvanceButtonAd
:
BDAdvanceButtonAd
?
=
null
private
var
bdAdvanceButtonAd
:
BDAdvanceButtonAd
?
=
null
/**
/**
* 初始化
* 初始化
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/TtCsjAdManager.java
View file @
6e2cd387
...
@@ -59,6 +59,10 @@ public class TtCsjAdManager {
...
@@ -59,6 +59,10 @@ public class TtCsjAdManager {
}
}
}
}
public
static
String
getVersion
(){
return
TTAdSdk
.
getAdManager
().
getSDKVersion
();
}
private
static
TTAdConfig
buildConfig
(
Context
context
)
{
private
static
TTAdConfig
buildConfig
(
Context
context
)
{
boolean
logFlag
;
boolean
logFlag
;
if
(
BuildConfig
.
DEBUG
)
{
if
(
BuildConfig
.
DEBUG
)
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/mvp/presenters/MyPresenter.kt
View file @
6e2cd387
...
@@ -100,7 +100,6 @@ class MyPresenter : BasePresenter<MyView>() {
...
@@ -100,7 +100,6 @@ class MyPresenter : BasePresenter<MyView>() {
when
(
code
)
{
when
(
code
)
{
200
->
{
200
->
{
view
.
getUserTaskMsgSuc
(
baseResponse
.
data
)
view
.
getUserTaskMsgSuc
(
baseResponse
.
data
)
myHotActivity
()
}
}
401
->
view
.
getUserTaskMsgFail
()
401
->
view
.
getUserTaskMsgFail
()
else
->
{
else
->
{
...
@@ -125,7 +124,7 @@ class MyPresenter : BasePresenter<MyView>() {
...
@@ -125,7 +124,7 @@ class MyPresenter : BasePresenter<MyView>() {
/**
/**
* 热门活动接口
* 热门活动接口
*/
*/
private
fun
myHotActivity
()
{
fun
myHotActivity
()
{
val
vo
=
HashMap
<
String
,
Any
>()
val
vo
=
HashMap
<
String
,
Any
>()
vo
[
"os"
]
=
"android"
vo
[
"os"
]
=
"android"
vo
[
"isShowYwhzGame"
]
=
true
vo
[
"isShowYwhzGame"
]
=
true
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/mvp/presenters/PanPresenter.kt
View file @
6e2cd387
...
@@ -42,6 +42,7 @@ class PanPresenter : BasePresenter<PanView>() {
...
@@ -42,6 +42,7 @@ class PanPresenter : BasePresenter<PanView>() {
200
->
if
(
data
!=
null
)
{
200
->
if
(
data
!=
null
)
{
UserManager
.
getInstance
().
saveUserInfo
(
data
)
UserManager
.
getInstance
().
saveUserInfo
(
data
)
saveTerminalInfo
()
saveTerminalInfo
()
view
.
loginSuc
()
}
}
else
->
view
.
showToast
(
message
)
else
->
view
.
showToast
(
message
)
}
}
...
@@ -85,7 +86,7 @@ class PanPresenter : BasePresenter<PanView>() {
...
@@ -85,7 +86,7 @@ class PanPresenter : BasePresenter<PanView>() {
if
(
isLinkView
)
return
if
(
isLinkView
)
return
val
code
=
baseResponse
.
status
val
code
=
baseResponse
.
status
when
(
code
)
{
when
(
code
)
{
// 200 -> baseMsg()
}
}
}
}
})
})
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/mvp/views/PanView.kt
View file @
6e2cd387
package
com.mints.goodmoney.mvp.views
package
com.mints.goodmoney.mvp.views
interface
PanView
:
BaseView
{
interface
PanView
:
BaseView
{
fun
loginSuc
()
}
}
\ No newline at end of file
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/LoginActivity.kt
View file @
6e2cd387
...
@@ -157,7 +157,7 @@ class LoginActivity : BaseActivity()
...
@@ -157,7 +157,7 @@ class LoginActivity : BaseActivity()
override
fun
loginSuc
()
{
override
fun
loginSuc
()
{
try
{
try
{
// 登录成功初始化鱼玩盒子userid
// 登录成功初始化鱼玩盒子userid
//
baseApplication.initYwSdk()
baseApplication
.
initYwSdk
()
}
catch
(
e
:
Exception
)
{
}
catch
(
e
:
Exception
)
{
}
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/adapter/GvMyAdapter.java
View file @
6e2cd387
package
com
.
mints
.
goodmoney
.
ui
.
adapter
;
package
com
.
mints
.
goodmoney
.
ui
.
adapter
;
import
android.annotation.SuppressLint
;
import
android.app.Activity
;
import
android.content.Context
;
import
android.content.Context
;
import
android.text.TextUtils
;
import
android.view.LayoutInflater
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
import
android.widget.BaseAdapter
;
import
android.widget.BaseAdapter
;
import
android.widget.FrameLayout
;
import
android.widget.ImageView
;
import
android.widget.ImageView
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.mints.goodmoney.R
;
import
com.mints.goodmoney.R
;
import
com.mints.goodmoney.common.Constant
;
import
com.mints.goodmoney.manager.BxmManager
;
import
com.mints.goodmoney.mvp.model.BannerBean
;
import
com.mints.goodmoney.mvp.model.BannerBean
;
import
com.mints.goodmoney.utils.ForegroundOrBackground
;
import
com.mints.library.utils.GlideUtils
;
import
com.mints.library.utils.GlideUtils
;
import
java.util.List
;
import
java.util.List
;
...
@@ -25,10 +32,12 @@ public class GvMyAdapter extends BaseAdapter {
...
@@ -25,10 +32,12 @@ public class GvMyAdapter extends BaseAdapter {
private
List
<
BannerBean
.
ListBean
>
orders
;
private
List
<
BannerBean
.
ListBean
>
orders
;
private
Context
context
;
private
Context
context
;
private
Activity
activity
;
public
GvMyAdapter
(
Context
context
,
List
<
BannerBean
.
ListBean
>
orders
)
{
public
GvMyAdapter
(
Context
context
,
Activity
activity
,
List
<
BannerBean
.
ListBean
>
orders
)
{
this
.
orders
=
orders
;
this
.
orders
=
orders
;
this
.
context
=
context
;
this
.
context
=
context
;
this
.
activity
=
activity
;
}
}
@Override
@Override
...
@@ -46,6 +55,7 @@ public class GvMyAdapter extends BaseAdapter {
...
@@ -46,6 +55,7 @@ public class GvMyAdapter extends BaseAdapter {
return
position
;
return
position
;
}
}
@SuppressLint
(
"WrongViewCast"
)
@Override
@Override
public
View
getView
(
int
position
,
View
convertView
,
ViewGroup
parent
)
{
public
View
getView
(
int
position
,
View
convertView
,
ViewGroup
parent
)
{
...
@@ -56,6 +66,7 @@ public class GvMyAdapter extends BaseAdapter {
...
@@ -56,6 +66,7 @@ public class GvMyAdapter extends BaseAdapter {
convertView
=
inflater
.
inflate
(
R
.
layout
.
item_list_my
,
null
);
convertView
=
inflater
.
inflate
(
R
.
layout
.
item_list_my
,
null
);
viewHolder
=
new
ViewHolder
();
viewHolder
=
new
ViewHolder
();
viewHolder
.
fl_my_icon
=
(
FrameLayout
)
convertView
.
findViewById
(
R
.
id
.
fl_my_icon
);
viewHolder
.
ic_my_icon
=
(
ImageView
)
convertView
.
findViewById
(
R
.
id
.
ic_my_icon
);
viewHolder
.
ic_my_icon
=
(
ImageView
)
convertView
.
findViewById
(
R
.
id
.
ic_my_icon
);
viewHolder
.
tv_my_title
=
(
TextView
)
convertView
.
findViewById
(
R
.
id
.
tv_my_title
);
viewHolder
.
tv_my_title
=
(
TextView
)
convertView
.
findViewById
(
R
.
id
.
tv_my_title
);
...
@@ -65,14 +76,19 @@ public class GvMyAdapter extends BaseAdapter {
...
@@ -65,14 +76,19 @@ public class GvMyAdapter extends BaseAdapter {
}
}
BannerBean
.
ListBean
data
=
orders
.
get
(
position
);
BannerBean
.
ListBean
data
=
orders
.
get
(
position
);
if
(
data
!=
null
)
{
if
(
data
!=
null
)
{
GlideUtils
.
loadImageView
Loding
(
context
,
data
.
getImgUrl
(),
viewHolder
.
ic_my_icon
,
R
.
mipmap
.
ic_my_gury
,
R
.
mipmap
.
ic_my_gury
);
GlideUtils
.
loadImageView
GifUrl
(
context
,
viewHolder
.
ic_my_icon
,
data
.
getImgUrl
()
);
viewHolder
.
tv_my_title
.
setText
(
data
.
getTitle
());
viewHolder
.
tv_my_title
.
setText
(
data
.
getTitle
());
if
(
TextUtils
.
equals
(
data
.
getToUrl
(),
Constant
.
HOT_ACTIVITY_BXM
))
{
BxmManager
.
INSTANCE
.
loadButtonAd
(
activity
,
viewHolder
.
fl_my_icon
);
}
}
}
return
convertView
;
return
convertView
;
}
}
class
ViewHolder
{
class
ViewHolder
{
public
ImageView
ic_my_icon
;
public
ImageView
ic_my_icon
;
public
FrameLayout
fl_my_icon
;
public
TextView
tv_my_title
;
public
TextView
tv_my_title
;
}
}
}
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
6e2cd387
...
@@ -8,6 +8,7 @@ import android.content.Context
...
@@ -8,6 +8,7 @@ import android.content.Context
import
android.os.Bundle
import
android.os.Bundle
import
android.text.TextUtils
import
android.text.TextUtils
import
android.view.View
import
android.view.View
import
android.view.ViewGroup
import
android.widget.AdapterView
import
android.widget.AdapterView
import
androidx.core.content.ContextCompat
import
androidx.core.content.ContextCompat
import
androidx.recyclerview.widget.DividerItemDecoration
import
androidx.recyclerview.widget.DividerItemDecoration
...
@@ -16,20 +17,22 @@ import cn.sharesdk.framework.Platform.ShareParams
...
@@ -16,20 +17,22 @@ import cn.sharesdk.framework.Platform.ShareParams
import
cn.sharesdk.framework.ShareSDK
import
cn.sharesdk.framework.ShareSDK
import
cn.sharesdk.wechat.friends.Wechat
import
cn.sharesdk.wechat.friends.Wechat
import
com.component.dly.xzzq_ywsdk.YwSDK_WebActivity.Companion.open
import
com.component.dly.xzzq_ywsdk.YwSDK_WebActivity.Companion.open
import
com.ireader.ireadersdk.IreaderApi
import
com.mints.goodmoney.BuildConfig
import
com.mints.goodmoney.BuildConfig
import
com.mints.goodmoney.R
import
com.mints.goodmoney.R
import
com.mints.goodmoney.ad.VedioAdingManager
import
com.mints.goodmoney.ad.VedioAdingManager
import
com.mints.goodmoney.common.AppConfig
import
com.mints.goodmoney.common.AppConfig
import
com.mints.goodmoney.common.Constant
import
com.mints.goodmoney.common.Constant
import
com.mints.goodmoney.manager.BxmManager
import
com.mints.goodmoney.manager.UserManager
import
com.mints.goodmoney.manager.UserManager
import
com.mints.goodmoney.mvp.model.*
import
com.mints.goodmoney.mvp.model.*
import
com.mints.goodmoney.mvp.presenters.MyPresenter
import
com.mints.goodmoney.mvp.presenters.MyPresenter
import
com.mints.goodmoney.mvp.views.MyView
import
com.mints.goodmoney.mvp.views.MyView
import
com.mints.goodmoney.ui.activitys.*
import
com.mints.goodmoney.ui.activitys.*
import
com.mints.goodmoney.ui.adapter.GvMyAdapter
import
com.mints.goodmoney.ui.adapter.MainMyAdapter
import
com.mints.goodmoney.ui.adapter.MainMyAdapter
import
com.mints.goodmoney.ui.adapter.listener.OnItemChildClickListener
import
com.mints.goodmoney.ui.adapter.listener.OnItemChildClickListener
import
com.mints.goodmoney.ui.fragment.base.BaseFragment
import
com.mints.goodmoney.ui.fragment.base.BaseFragment
import
com.mints.goodmoney.utils.ForegroundOrBackground
import
com.mints.goodmoney.utils.ImageUtil
import
com.mints.goodmoney.utils.ImageUtil
import
com.mints.goodmoney.utils.SpanUtils
import
com.mints.goodmoney.utils.SpanUtils
import
com.mints.library.net.netstatus.NetUtils
import
com.mints.library.net.netstatus.NetUtils
...
@@ -74,6 +77,9 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
...
@@ -74,6 +77,9 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
private
val
dataList
:
MutableList
<
TaskBean
>
=
mutableListOf
()
private
val
dataList
:
MutableList
<
TaskBean
>
=
mutableListOf
()
private
var
mainMyAdapter
:
MainMyAdapter
?
=
null
private
var
mainMyAdapter
:
MainMyAdapter
?
=
null
// 轮播图只展示一次
private
var
bannerFlag
=
false
override
fun
getContentViewLayoutID
()
=
R
.
layout
.
fragment_main_my
override
fun
getContentViewLayoutID
()
=
R
.
layout
.
fragment_main_my
override
fun
initViewsAndEvents
()
{
override
fun
initViewsAndEvents
()
{
...
@@ -157,6 +163,11 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
...
@@ -157,6 +163,11 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
myPresenter
.
getSignInHomePageMsg
()
myPresenter
.
getSignInHomePageMsg
()
if
(!
bannerFlag
)
{
bannerFlag
=
true
myPresenter
.
myHotActivity
()
}
userConfig
=
data
userConfig
=
data
handleRecyData
()
handleRecyData
()
setUserLoginStatus
()
setUserLoginStatus
()
...
@@ -171,13 +182,13 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
...
@@ -171,13 +182,13 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
}
}
override
fun
getMyHotActivitySuc
(
data
:
BannerBean
?)
{
override
fun
getMyHotActivitySuc
(
data
:
BannerBean
?)
{
item_promotions_egv
.
visibility
=
View
.
GONE
//
item_promotions_egv.visibility = View.GONE
//
data?.let {
data
?.
let
{
//
item_promotions_egv.visibility = View.VISIBLE
item_promotions_egv
.
visibility
=
View
.
VISIBLE
//
hotList = it.list
hotList
=
it
.
list
// item_promotions_egv.adapter = GvMyAdapter(mContext
, hotList)
item_promotions_egv
.
adapter
=
GvMyAdapter
(
mContext
,
activity
!!
,
hotList
)
//
}
}
}
}
override
fun
getSignInHomePageMsgSuc
(
signBean
:
SignCardBean
?)
{
override
fun
getSignInHomePageMsgSuc
(
signBean
:
SignCardBean
?)
{
...
@@ -496,7 +507,7 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
...
@@ -496,7 +507,7 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
try
{
try
{
activity
?.
let
{
open
(
it
)
}
activity
?.
let
{
open
(
it
)
}
}
catch
(
e
:
Exception
)
{
}
catch
(
e
:
Exception
)
{
e
.
printStackTrace
()
e
.
printStackTrace
()
showToast
(
"请重新退出账号登录"
)
showToast
(
"请重新退出账号登录"
)
}
}
...
@@ -560,7 +571,7 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
...
@@ -560,7 +571,7 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
}
}
}
}
override
fun
onItemClick
(
parent
:
AdapterView
<
*
>
?,
view
:
View
?
,
position
:
Int
,
id
:
Long
)
{
override
fun
onItemClick
(
parent
:
AdapterView
<
*
>
,
view
:
View
,
position
:
Int
,
id
:
Long
)
{
if
(
hotList
!!
.
isNotEmpty
())
{
if
(
hotList
!!
.
isNotEmpty
())
{
val
hotBean
:
BannerBean
.
ListBean
=
hotList
!!
[
position
]
val
hotBean
:
BannerBean
.
ListBean
=
hotList
!!
[
position
]
val
hotTourl
:
String
=
hotBean
.
toUrl
val
hotTourl
:
String
=
hotBean
.
toUrl
...
@@ -576,6 +587,8 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
...
@@ -576,6 +587,8 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
Constant
.
HOT_ACTIVITY_CARD
->
{
Constant
.
HOT_ACTIVITY_CARD
->
{
readyGo
(
EraseActivity
::
class
.
java
)
readyGo
(
EraseActivity
::
class
.
java
)
}
}
Constant
.
HOT_ACTIVITY_BXM
->
{
}
else
->
{
else
->
{
val
bundle
=
Bundle
()
val
bundle
=
Bundle
()
bundle
.
putString
(
WebActivity
.
WEB_TITLE
,
hotBean
.
title
)
bundle
.
putString
(
WebActivity
.
WEB_TITLE
,
hotBean
.
title
)
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/PanFragment.kt
View file @
6e2cd387
...
@@ -52,19 +52,24 @@ class PanFragment : BaseFragment(), PanView {
...
@@ -52,19 +52,24 @@ class PanFragment : BaseFragment(), PanView {
if
(
TextUtils
.
isEmpty
(
userManager
?.
userID
))
{
if
(
TextUtils
.
isEmpty
(
userManager
?.
userID
))
{
// 游客登录
// 游客登录
panPresenter
.
userLogin
()
panPresenter
.
userLogin
()
}
}
else
{
if
(!
isLoadPanSuc
&&
NetUtils
.
isNetworkConnected
(
getContext
()))
{
if
(!
isLoadPanSuc
&&
NetUtils
.
isNetworkConnected
(
getContext
()))
{
loadTurnUrl
()
loadTurnUrl
()
}
}
}
}
}
}
}
override
fun
onDestroy
()
{
override
fun
onDestroy
()
{
super
.
onDestroy
()
super
.
onDestroy
()
panPresenter
.
detachView
()
panPresenter
.
detachView
()
}
}
override
fun
loginSuc
()
{
if
(!
isLoadPanSuc
&&
NetUtils
.
isNetworkConnected
(
getContext
()))
{
loadTurnUrl
()
}
}
/**
/**
* 加载转盘url
* 加载转盘url
...
@@ -121,4 +126,6 @@ class PanFragment : BaseFragment(), PanView {
...
@@ -121,4 +126,6 @@ class PanFragment : BaseFragment(), PanView {
// 调用js中的方法(必须和js中的handlerName想同)
// 调用js中的方法(必须和js中的handlerName想同)
blTurntableWebview
.
callHandler
(
"cancelTurnTable"
,
""
)
{}
blTurntableWebview
.
callHandler
(
"cancelTurnTable"
,
""
)
{}
}
}
}
}
\ No newline at end of file
GoodMoney/app/src/main/res/layout/item_list_my.xml
View file @
6e2cd387
...
@@ -5,13 +5,18 @@
...
@@ -5,13 +5,18 @@
android:orientation=
"vertical"
android:orientation=
"vertical"
android:paddingTop=
"10dp"
>
android:paddingTop=
"10dp"
>
<FrameLayout
android:id=
"@+id/fl_my_icon"
android:layout_width=
"38dp"
android:layout_gravity=
"center_horizontal"
android:layout_height=
"38dp"
>
<ImageView
<ImageView
android:id=
"@+id/ic_my_icon"
android:id=
"@+id/ic_my_icon"
android:layout_width=
"38dp"
android:layout_width=
"38dp"
android:layout_height=
"38dp"
android:layout_height=
"38dp"
android:layout_gravity=
"center_horizontal"
android:scaleType=
"fitXY"
/>
android:scaleType=
"fitXY"
</FrameLayout>
android:src=
"@mipmap/ic_my_gury"
/>
<TextView
<TextView
android:id=
"@+id/tv_my_title"
android:id=
"@+id/tv_my_title"
...
...
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