欢迎页优化
This commit is contained in:
parent
377be1b7c7
commit
2b44a4e262
@ -34,6 +34,7 @@ import com.arpa.hndahesudintocctmsdriver.parts.ConfigParts;
|
||||
import com.arpa.hndahesudintocctmsdriver.report.JTTProcess;
|
||||
import com.arpa.hndahesudintocctmsdriver.request.UserRequset;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.business.BusinessActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.SPUtils;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.cache.CacheGroup;
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.esign.esignsdk.EsignSdk;
|
||||
@ -143,6 +144,12 @@ public class WelcomeActivity extends BaseAppCompatActivity {
|
||||
"http://agreement.dahehuoyun.com/#/user", hd))
|
||||
.show();
|
||||
}
|
||||
Glide.with(con)
|
||||
.load(SPUtils.getPreWelPic(this))
|
||||
.placeholder(startImageUrl.getDrawable())
|
||||
.error(R.drawable.welcome_bg_default)
|
||||
.into(startImageUrl);
|
||||
|
||||
//SystemUtil.get
|
||||
}
|
||||
|
||||
@ -275,8 +282,12 @@ public class WelcomeActivity extends BaseAppCompatActivity {
|
||||
|
||||
public void cdWelcome(String url) {
|
||||
if (!"".equals(url)) {
|
||||
Glide.with(con).load(url).into(startImageUrl);
|
||||
Glide.with(con).load(url)
|
||||
.placeholder(startImageUrl.getDrawable())
|
||||
.error(R.drawable.welcome_bg_default)
|
||||
.into(startImageUrl);
|
||||
}
|
||||
SPUtils.setPreWelPic(this, url);
|
||||
cd_view.setVisibility(View.VISIBLE);
|
||||
new CountDownTimer(cd * 1000, 1000) {
|
||||
@Override
|
||||
|
@ -237,8 +237,8 @@ public class MyFragment extends BaseFragment {
|
||||
serviceMobile=ConfigParts.getConfigParts(con).getData().getServiceMobile();
|
||||
serviceMobile=StringUtil.isNull(serviceMobile,"");
|
||||
}
|
||||
String[] title={"平台客服:"+serviceMobile,"银行客服:95528","技术咨询:13460042961"};
|
||||
String[] value={serviceMobile,"95528","13460042961"};
|
||||
String[] title={"平台客服:"+serviceMobile};
|
||||
String[] value={serviceMobile};
|
||||
new XPopup.Builder(con)
|
||||
.isDarkTheme(false)
|
||||
.isDestroyOnDismiss(true) //对于只使用一次的弹窗,推荐设置这个
|
||||
|
@ -9,6 +9,8 @@ import com.dahe.mylibrary.utils.BaseSPUtils;
|
||||
|
||||
public class SPUtils extends BaseSPUtils {
|
||||
|
||||
private static final String PRE_WEL_PIC = "PRE_WEL_PIC";
|
||||
|
||||
/**
|
||||
* 存用户信息
|
||||
*
|
||||
@ -111,4 +113,22 @@ public class SPUtils extends BaseSPUtils {
|
||||
return b;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存欢迎页网络地址
|
||||
* @param context
|
||||
* @param url
|
||||
*/
|
||||
public static void setPreWelPic(Context context, String url){
|
||||
put(context,PRE_WEL_PIC,url);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取欢迎页地址
|
||||
* @param context
|
||||
* @return
|
||||
*/
|
||||
public static String getPreWelPic(Context context){
|
||||
return (String) get(context,PRE_WEL_PIC,"");
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user