|
|
@@ -84,6 +84,7 @@ import com.sheep.gamegroup.view.activity.ActGiftDetail;
|
|
|
import com.sheep.gamegroup.view.activity.ActGuide;
|
|
|
import com.sheep.gamegroup.view.activity.ActGuideDeblocked;
|
|
|
import com.sheep.gamegroup.view.activity.ActGuideOnHook;
|
|
|
+import com.sheep.gamegroup.view.activity.ActImg;
|
|
|
import com.sheep.gamegroup.view.activity.ActInputAndPickerImg;
|
|
|
import com.sheep.gamegroup.view.activity.ActInvitation;
|
|
|
import com.sheep.gamegroup.view.activity.ActLoadH5;
|
|
|
@@ -994,6 +995,13 @@ public class Jump2View {
|
|
|
}
|
|
|
}
|
|
|
webParams.setUrl(url);
|
|
|
+ if(StringUtils.isImageUrl(url)){
|
|
|
+ showImg(context, webParams);
|
|
|
+ return;
|
|
|
+ } else if(StringUtils.isVideoUrl(url)){
|
|
|
+ goActPlayVideo(url, true);
|
|
|
+ return;
|
|
|
+ }
|
|
|
Intent intent = new Intent(context, ActWebX5.class);
|
|
|
intent.putExtra(WebParams.class.getSimpleName(), webParams);
|
|
|
if(webParams.isForResult()){
|
|
|
@@ -1165,6 +1173,17 @@ public class Jump2View {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 显示一张图片
|
|
|
+ *
|
|
|
+ * @param context
|
|
|
+ * @param webParams
|
|
|
+ */
|
|
|
+ public void showImg(Context context, WebParams webParams) {
|
|
|
+ Intent intent = new Intent(context, ActImg.class);
|
|
|
+ intent.putExtra(WebParams.class.getSimpleName(), webParams);
|
|
|
+ context.startActivity(intent);
|
|
|
+ }
|
|
|
+ /**
|
|
|
* 显示多张图片
|
|
|
*
|
|
|
* @param activity
|