欢迎页优化
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.report.JTTProcess;
|
||||||
import com.arpa.hndahesudintocctmsdriver.request.UserRequset;
|
import com.arpa.hndahesudintocctmsdriver.request.UserRequset;
|
||||||
import com.arpa.hndahesudintocctmsdriver.ui.business.BusinessActivity;
|
import com.arpa.hndahesudintocctmsdriver.ui.business.BusinessActivity;
|
||||||
|
import com.arpa.hndahesudintocctmsdriver.util.SPUtils;
|
||||||
import com.arpa.hndahesudintocctmsdriver.util.cache.CacheGroup;
|
import com.arpa.hndahesudintocctmsdriver.util.cache.CacheGroup;
|
||||||
import com.bumptech.glide.Glide;
|
import com.bumptech.glide.Glide;
|
||||||
import com.esign.esignsdk.EsignSdk;
|
import com.esign.esignsdk.EsignSdk;
|
||||||
@ -143,6 +144,12 @@ public class WelcomeActivity extends BaseAppCompatActivity {
|
|||||||
"http://agreement.dahehuoyun.com/#/user", hd))
|
"http://agreement.dahehuoyun.com/#/user", hd))
|
||||||
.show();
|
.show();
|
||||||
}
|
}
|
||||||
|
Glide.with(con)
|
||||||
|
.load(SPUtils.getPreWelPic(this))
|
||||||
|
.placeholder(startImageUrl.getDrawable())
|
||||||
|
.error(R.drawable.welcome_bg_default)
|
||||||
|
.into(startImageUrl);
|
||||||
|
|
||||||
//SystemUtil.get
|
//SystemUtil.get
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -275,8 +282,12 @@ public class WelcomeActivity extends BaseAppCompatActivity {
|
|||||||
|
|
||||||
public void cdWelcome(String url) {
|
public void cdWelcome(String url) {
|
||||||
if (!"".equals(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);
|
cd_view.setVisibility(View.VISIBLE);
|
||||||
new CountDownTimer(cd * 1000, 1000) {
|
new CountDownTimer(cd * 1000, 1000) {
|
||||||
@Override
|
@Override
|
||||||
|
@ -237,8 +237,8 @@ public class MyFragment extends BaseFragment {
|
|||||||
serviceMobile=ConfigParts.getConfigParts(con).getData().getServiceMobile();
|
serviceMobile=ConfigParts.getConfigParts(con).getData().getServiceMobile();
|
||||||
serviceMobile=StringUtil.isNull(serviceMobile,"");
|
serviceMobile=StringUtil.isNull(serviceMobile,"");
|
||||||
}
|
}
|
||||||
String[] title={"平台客服:"+serviceMobile,"银行客服:95528","技术咨询:13460042961"};
|
String[] title={"平台客服:"+serviceMobile};
|
||||||
String[] value={serviceMobile,"95528","13460042961"};
|
String[] value={serviceMobile};
|
||||||
new XPopup.Builder(con)
|
new XPopup.Builder(con)
|
||||||
.isDarkTheme(false)
|
.isDarkTheme(false)
|
||||||
.isDestroyOnDismiss(true) //对于只使用一次的弹窗,推荐设置这个
|
.isDestroyOnDismiss(true) //对于只使用一次的弹窗,推荐设置这个
|
||||||
|
@ -9,6 +9,8 @@ import com.dahe.mylibrary.utils.BaseSPUtils;
|
|||||||
|
|
||||||
public class SPUtils extends 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;
|
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