Commit 503b2f4c authored by maxiaoliang's avatar maxiaoliang

修改bug

parent 957d729e
package com.ym.xync.wxapi;
import com.umeng.socialize.weixin.view.WXCallbackActivity;
public class WXEntryActivity extends WXCallbackActivity {
}
...@@ -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
)
} }
} }
......
...@@ -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
...@@ -38,10 +38,10 @@ interface IUserApi { ...@@ -38,10 +38,10 @@ interface IUserApi {
* @return * @return
*/ */
@GET(NetConfig.User.URL_USER_WITHDRAW_BIND_WX) @POST(NetConfig.User.URL_USER_WITHDRAW_BIND_WX)
fun bindWx( fun bindWx(
@Query("openId") oppenid: String, @Query("openid") oppenid: String,
@Query("token") token: String @Query("accessToken") token: String
): Observable<Response<WxBindEntity>> ): Observable<Response<WxBindEntity>>
/** /**
......
...@@ -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";// 兑换接口
......
...@@ -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<ImageView>(R.id.btn_get_drop_happy_accept).setOnClickListener { mDialogView.findViewById<TextView>(R.id.btn_get_drop_happy_accept).setOnClickListener {
mWebView?.loadUrl("javascript:onResume()") mWebView?.loadUrl("javascript:onResume()")
mDialog?.dismiss() mDialog?.dismiss()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment