Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
L
LuckyFarm
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
LuckyFarm
Commits
503b2f4c
Commit
503b2f4c
authored
Oct 20, 2020
by
maxiaoliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
957d729e
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
34 additions
and
13 deletions
+34
-13
WXEntryActivity.java
app/src/main/java/com/ym/xync/wxapi/WXEntryActivity.java
+7
-0
JavaInterface.kt
...ry/src/main/java/com/ym/library/activity/JavaInterface.kt
+15
-7
NewWebActivity.kt
...y/src/main/java/com/ym/library/activity/NewWebActivity.kt
+5
-0
IUserApi.kt
library/src/main/java/com/ym/library/net/IUserApi.kt
+3
-3
NetConfig.java
library/src/main/java/com/ym/library/net/NetConfig.java
+2
-1
CenterDialog.kt
library/src/main/java/com/ym/library/utils/CenterDialog.kt
+2
-2
home_cotent_bg.png
library/src/main/res/drawable-xhdpi/home_cotent_bg.png
+0
-0
icon_coin.png
library/src/main/res/drawable-xhdpi/icon_coin.png
+0
-0
icon_content_bg.png
library/src/main/res/drawable-xhdpi/icon_content_bg.png
+0
-0
icon_main_dialog_get_drops_bg.png
...main/res/drawable-xhdpi/icon_main_dialog_get_drops_bg.png
+0
-0
icon_main_popup_close.png
...ary/src/main/res/drawable-xhdpi/icon_main_popup_close.png
+0
-0
icon_press.png
library/src/main/res/drawable-xhdpi/icon_press.png
+0
-0
icon_shouxia_bg.png
library/src/main/res/drawable-xhdpi/icon_shouxia_bg.png
+0
-0
icon_top_bg.png
library/src/main/res/drawable-xhdpi/icon_top_bg.png
+0
-0
icon_setting_copy_btn.png
...nfo/src/main/res/drawable-xhdpi/icon_setting_copy_btn.png
+0
-0
No files found.
app/src/main/java/com/ym/xync/wxapi/WXEntryActivity.java
0 → 100644
View file @
503b2f4c
package
com
.
ym
.
xync
.
wxapi
;
import
com.umeng.socialize.weixin.view.WXCallbackActivity
;
public
class
WXEntryActivity
extends
WXCallbackActivity
{
}
library/src/main/java/com/ym/library/activity/JavaInterface.kt
View file @
503b2f4c
...
@@ -880,12 +880,14 @@ abstract class JavaInterface {
...
@@ -880,12 +880,14 @@ abstract class JavaInterface {
fun
eventUtils
(
action
:
String
)
{
fun
eventUtils
(
action
:
String
)
{
EventUtils
.
onEvent
(
action
)
EventUtils
.
onEvent
(
action
)
}
}
/**
/**
* h5跳h5
* h5跳h5
*/
*/
@JavascriptInterface
@JavascriptInterface
fun
h5Jump
(
h5
:
String
)
{
fun
h5Jump
(
h5
:
String
)
{
mWebView
?.
loadUrl
(
h5
)
JumpUtils
.
h5Jump
(
""
,
h5
,
false
)
// mWebView?.loadUrl(h5)
}
}
/**
/**
...
@@ -895,13 +897,19 @@ abstract class JavaInterface {
...
@@ -895,13 +897,19 @@ abstract class JavaInterface {
@JavascriptInterface
@JavascriptInterface
fun
showDialog
(
waterDropCount
:
Int
,
type
:
Int
)
{
fun
showDialog
(
waterDropCount
:
Int
,
type
:
Int
)
{
mWebView
.
context
.
runOnUiThread
{
mWebView
.
context
.
runOnUiThread
{
CenterDialog
.
showgetWaterDrop
(
mWebView
.
context
,
type
,
waterDropCount
,
object
:
DialogInterface
.
OnCancelListener
{
CenterDialog
.
showgetWaterDrop
(
override
fun
onCancel
(
p0
:
DialogInterface
?)
{
mWebView
.
context
,
mWebView
.
context
.
runOnUiThread
{
type
,
mWebView
?.
loadUrl
(
"javascript:onResume()"
)
waterDropCount
,
object
:
DialogInterface
.
OnCancelListener
{
override
fun
onCancel
(
p0
:
DialogInterface
?)
{
mWebView
.
context
.
runOnUiThread
{
mWebView
?.
loadUrl
(
"javascript:onResume()"
)
}
}
}
}
},
},
mWebView
)
mWebView
)
}
}
}
}
...
...
library/src/main/java/com/ym/library/activity/NewWebActivity.kt
View file @
503b2f4c
...
@@ -2,6 +2,7 @@ package com.ym.library.activity
...
@@ -2,6 +2,7 @@ package com.ym.library.activity
import
android.app.Dialog
import
android.app.Dialog
import
android.content.Context
import
android.content.Context
import
android.content.Intent
import
android.graphics.Bitmap
import
android.graphics.Bitmap
import
android.graphics.Color
import
android.graphics.Color
import
android.net.http.SslError
import
android.net.http.SslError
...
@@ -375,4 +376,8 @@ class NewWebActivity : BaseActivity(), NewWebContract.View, ScrollWebView.OnScro
...
@@ -375,4 +376,8 @@ class NewWebActivity : BaseActivity(), NewWebContract.View, ScrollWebView.OnScro
// webview?.loadUrl("javascript:onPause()")
// webview?.loadUrl("javascript:onPause()")
}
}
}
}
override
fun
onActivityResult
(
requestCode
:
Int
,
resultCode
:
Int
,
data
:
Intent
?)
{
super
.
onActivityResult
(
requestCode
,
resultCode
,
data
)
}
}
}
\ No newline at end of file
library/src/main/java/com/ym/library/net/IUserApi.kt
View file @
503b2f4c
...
@@ -38,10 +38,10 @@ interface IUserApi {
...
@@ -38,10 +38,10 @@ interface IUserApi {
* @return
* @return
*/
*/
@
GE
T
(
NetConfig
.
User
.
URL_USER_WITHDRAW_BIND_WX
)
@
POS
T
(
NetConfig
.
User
.
URL_USER_WITHDRAW_BIND_WX
)
fun
bindWx
(
fun
bindWx
(
@Query
(
"open
I
d"
)
oppenid
:
String
,
@Query
(
"open
i
d"
)
oppenid
:
String
,
@Query
(
"
t
oken"
)
token
:
String
@Query
(
"
accessT
oken"
)
token
:
String
):
Observable
<
Response
<
WxBindEntity
>>
):
Observable
<
Response
<
WxBindEntity
>>
/**
/**
...
...
library/src/main/java/com/ym/library/net/NetConfig.java
View file @
503b2f4c
...
@@ -175,7 +175,8 @@ public class NetConfig {
...
@@ -175,7 +175,8 @@ public class NetConfig {
public
static
final
String
URL_DEVEICE_LOGIN_
=
"app/v1/auth/tourist-login"
;
//
public
static
final
String
URL_DEVEICE_LOGIN_
=
"app/v1/auth/tourist-login"
;
//
public
static
final
String
URL_USER_GET_USERINFO_
=
"app/v1/location/user/info"
;
public
static
final
String
URL_USER_GET_USERINFO_
=
"app/v1/location/user/info"
;
public
static
final
String
URL_TASK_ADD_COINS
=
"app/v2/novel/storeCoin"
;
public
static
final
String
URL_TASK_ADD_COINS
=
"app/v2/novel/storeCoin"
;
public
static
final
String
URL_USER_WITHDRAW_BIND_WX
=
"app/v2/novel/setWithdrawWx"
;
// 微信绑定
//public static final String URL_USER_WITHDRAW_BIND_WX = "app/v2/novel/setWithdrawWx";// 微信绑定
public
static
final
String
URL_USER_WITHDRAW_BIND_WX
=
"app/v1/auth/wxLogin"
;
// 微信绑定
public
static
final
String
URL_USER_ISBINDWITHDRAWWX
=
"/app/v1/novel/isBindWithdrawWx"
;
// 微信是否绑定
public
static
final
String
URL_USER_ISBINDWITHDRAWWX
=
"/app/v1/novel/isBindWithdrawWx"
;
// 微信是否绑定
public
static
final
String
URL_USER_MIND
=
"app/v1/gs/mind"
;
// 注意事项
public
static
final
String
URL_USER_MIND
=
"app/v1/gs/mind"
;
// 注意事项
public
static
final
String
URL_USER_COIN2CASH_CHECK
=
"app/v1/gs/coin2cash_check"
;
// 兑换接口
public
static
final
String
URL_USER_COIN2CASH_CHECK
=
"app/v1/gs/coin2cash_check"
;
// 兑换接口
...
...
library/src/main/java/com/ym/library/utils/CenterDialog.kt
View file @
503b2f4c
...
@@ -361,7 +361,7 @@ object CenterDialog : BaseDialog() {
...
@@ -361,7 +361,7 @@ object CenterDialog : BaseDialog() {
val
tvGetDropCount
=
mDialogView
?.
findViewById
<
TextView
>(
R
.
id
.
tv_get_drop_count
)
val
tvGetDropCount
=
mDialogView
?.
findViewById
<
TextView
>(
R
.
id
.
tv_get_drop_count
)
val
layoutAd
=
mDialogView
?.
findViewById
<
FrameLayout
>(
R
.
id
.
layout_get_drop_ad
)
val
layoutAd
=
mDialogView
?.
findViewById
<
FrameLayout
>(
R
.
id
.
layout_get_drop_ad
)
ivGetDropLoght
.
animation
=
AnimationUtils
.
loadAnimation
(
context
,
R
.
anim
.
rotate_anim_lib
)
//
ivGetDropLoght.animation = AnimationUtils.loadAnimation(context, R.anim.rotate_anim_lib)
if
(
type
==
1
)
{
if
(
type
==
1
)
{
tvGetDropCount
.
text
=
"+${rewardCount}g"
tvGetDropCount
.
text
=
"+${rewardCount}g"
...
@@ -394,7 +394,7 @@ object CenterDialog : BaseDialog() {
...
@@ -394,7 +394,7 @@ object CenterDialog : BaseDialog() {
},
AdID
.
mPlacementId_Reward_video_luck_farm
)
},
AdID
.
mPlacementId_Reward_video_luck_farm
)
mDialogView
.
findViewById
<
Image
View
>(
R
.
id
.
btn_get_drop_happy_accept
).
setOnClickListener
{
mDialogView
.
findViewById
<
Text
View
>(
R
.
id
.
btn_get_drop_happy_accept
).
setOnClickListener
{
mWebView
?.
loadUrl
(
"javascript:onResume()"
)
mWebView
?.
loadUrl
(
"javascript:onResume()"
)
mDialog
?.
dismiss
()
mDialog
?.
dismiss
()
}
}
...
...
library/src/main/res/drawable-xhdpi/home_cotent_bg.png
0 → 100644
View file @
503b2f4c
23.5 KB
library/src/main/res/drawable-xhdpi/icon_coin.png
0 → 100644
View file @
503b2f4c
27.1 KB
library/src/main/res/drawable-xhdpi/icon_content_bg.png
0 → 100644
View file @
503b2f4c
32.2 KB
library/src/main/res/drawable-xhdpi/icon_main_dialog_get_drops_bg.png
0 → 100644
View file @
503b2f4c
75 KB
library/src/main/res/drawable-xhdpi/icon_main_popup_close.png
0 → 100644
View file @
503b2f4c
10.3 KB
library/src/main/res/drawable-xhdpi/icon_press.png
0 → 100644
View file @
503b2f4c
5.8 KB
library/src/main/res/drawable-xhdpi/icon_shouxia_bg.png
0 → 100644
View file @
503b2f4c
33.8 KB
library/src/main/res/drawable-xhdpi/icon_top_bg.png
0 → 100644
View file @
503b2f4c
152 KB
userinfo/src/main/res/drawable-xhdpi/icon_setting_copy_btn.png
0 → 100644
View file @
503b2f4c
5.51 KB
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