瀏覽代碼

添加弹出框

zengjiebin 7 年之前
父節點
當前提交
bbc4ff78af

+ 1 - 1
app/src/main/java/com/sheep/gamegroup/util/CommonUtil.java

@@ -2686,7 +2686,7 @@ public class CommonUtil {
             closeListener.onClick(null);
             ViewUtil.showMsgDialog(SheepApp.getInstance().getCurrentActivity(), new DialogConfig().setMsg("你有一个拼单邀请,是否立即前往?")
                     .setBtnLeftText("取消").setBtnRightText("前往")
-                    .setBtnRightOnClickListener(view -> Jump2View.getInstance().goWeb(SheepApp.getInstance().getCurrentActivity(), new WebParams(url).setTitle("爱奇艺VIP会员卡"))));
+                    .setBtnRightOnClickListener(view -> Jump2View.getInstance().goWeb(SheepApp.getInstance().getCurrentActivity(), new WebParams(url).setTitle("爱奇艺会员VIP"))));
             return true;
         }
         return false;

+ 7 - 1
app/src/main/java/com/sheep/gamegroup/view/activity/MiddleSchemeAct.java

@@ -10,14 +10,17 @@ import android.text.TextUtils;
 
 import com.alibaba.fastjson.JSONObject;
 import com.sheep.gamegroup.model.api.BaseMessageConverter;
+import com.sheep.gamegroup.model.entity.DialogConfig;
 import com.sheep.gamegroup.model.entity.HomeListEntity;
 import com.sheep.gamegroup.model.entity.SlideshowEty;
+import com.sheep.gamegroup.model.entity.WebParams;
 import com.sheep.gamegroup.module.home.api.MainAction;
 import com.sheep.gamegroup.util.ActionUtil;
 import com.sheep.gamegroup.util.CommonUtil;
 import com.sheep.gamegroup.util.Jump2View;
 import com.sheep.gamegroup.util.LogUtil;
 import com.sheep.gamegroup.util.TestUtil;
+import com.sheep.gamegroup.util.ViewUtil;
 import com.sheep.jiuyan.samllsheep.BuildConfig;
 import com.sheep.jiuyan.samllsheep.R;
 import com.sheep.jiuyan.samllsheep.SheepApp;
@@ -143,7 +146,10 @@ public class MiddleSchemeAct extends Activity {
             case "po":
                 String order_no = uri.getQueryParameter("a");
                 String merchandise_id = uri.getQueryParameter("b");
-                Jump2View.getInstance().goWeb(activity, String.format(Locale.CHINA, "http://%s/#/placing-orders/%s?merchandise_id=%s", TextUtils.equals("sheep", BuildConfig.FLAVOR) ? "smallstation.kfzs.com/iqiyi_vip_member" : "10.8.220.248:8080", order_no, merchandise_id));
+                String url = String.format(Locale.CHINA, "http://%s/#/placing-orders/%s?merchandise_id=%s", TextUtils.equals("sheep", BuildConfig.FLAVOR) ? "smallstation.kfzs.com/iqiyi_vip_member" : "10.8.220.248:8080", order_no, merchandise_id);
+                ViewUtil.showMsgDialog(activity, new DialogConfig().setMsg("你有一个拼单邀请,是否立即前往?")
+                        .setBtnLeftText("取消").setBtnRightText("前往")
+                        .setBtnRightOnClickListener(view -> Jump2View.getInstance().goWeb(SheepApp.getInstance().getCurrentActivity(), new WebParams(url).setTitle("爱奇艺会员VIP"))));
                 break;
         }
 //                    LogUtil.println("ActMain", "checkScheme","url: " + url);