Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
20ab7b5730 | ||
|
|
2b44a4e262 |
@@ -2,6 +2,7 @@ plugins {
|
||||
id 'com.android.application'
|
||||
id 'kotlin-android'
|
||||
id 'kotlin-kapt'
|
||||
id 'kotlin-android-extensions'
|
||||
id 'com.huawei.agconnect'
|
||||
}
|
||||
|
||||
|
||||
@@ -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) //对于只使用一次的弹窗,推荐设置这个
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.ui.test
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.R
|
||||
import com.kymjs.themvp.view.AppDelegate
|
||||
import kotlinx.android.synthetic.main.activity_get_shangchuan.*
|
||||
|
||||
/**
|
||||
* @ClassName SimpleDelegate
|
||||
* @Author 用户
|
||||
* @Date 2022/9/8 10:05
|
||||
* @Description TODO
|
||||
*/
|
||||
class SimpleDelegate : AppDelegate(){
|
||||
override fun getRootLayoutId() = R.layout.activity_get_shangchuan
|
||||
|
||||
override fun initWidget() {
|
||||
super.initWidget()
|
||||
|
||||
}
|
||||
|
||||
override fun getOptionsMenuId(): Int {
|
||||
image1
|
||||
return super.getOptionsMenuId()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.ui.test
|
||||
|
||||
import android.os.Bundle
|
||||
import com.arpa.hndahesudintocctmsdriver.R
|
||||
import com.dahe.mylibrary.base.BaseActivity
|
||||
import kotlinx.android.synthetic.main.activity_get_shangchuan.*
|
||||
|
||||
/**
|
||||
* @ClassName Texasdfa
|
||||
* @Author 用户
|
||||
* @Date 2022/9/8 10:33
|
||||
* @Description TODO
|
||||
*/
|
||||
class Texasdfa : BaseActivity() {
|
||||
override fun getLayout() = R.layout.activity_get_shangchuan
|
||||
|
||||
override fun initView(savedInstanceState: Bundle?) {
|
||||
img1
|
||||
}
|
||||
|
||||
override fun initDate() {
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.ui.test
|
||||
|
||||
import android.os.Bundle
|
||||
import android.os.PersistableBundle
|
||||
import com.kymjs.themvp.presenter.ActivityPresenter
|
||||
|
||||
/**
|
||||
* @ClassName TextMVPActivtity
|
||||
* @Author 用户
|
||||
* @Date 2022/9/8 10:04
|
||||
* @Description TODO
|
||||
*/
|
||||
class TextMVPActivtity : ActivityPresenter<SimpleDelegate>() {
|
||||
override fun getDelegateClass(): Class<SimpleDelegate> {
|
||||
return SimpleDelegate::class.java
|
||||
}
|
||||
|
||||
override fun bindEvenListener() {
|
||||
super.bindEvenListener()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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,"");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -55,6 +55,7 @@
|
||||
android:layout_width="@dimen/dp_90"
|
||||
android:layout_height="@dimen/dp_90"
|
||||
android:background="#EEEEEE">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img1"
|
||||
android:layout_width="match_parent"
|
||||
@@ -71,14 +72,14 @@
|
||||
android:layout_marginTop="@dimen/dp_7"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/name_one"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="卸货照片"
|
||||
android:textColor="#ff000000"
|
||||
android:textSize="@dimen/sp_13"
|
||||
/>
|
||||
android:textSize="@dimen/sp_13" />
|
||||
<TextView
|
||||
android:layout_alignParentRight="true"
|
||||
android:id="@+id/time_one"
|
||||
|
||||
@@ -78,6 +78,7 @@ dependencies {
|
||||
api rootProject.ext.dependencies["Location"]
|
||||
api rootProject.ext.dependencies["Search"]
|
||||
|
||||
api 'com.github.kymjs:themvp:2.0.0'
|
||||
|
||||
//友盟基础库(必须)
|
||||
// api 'com.umeng.umsdk:common:9.4.4'
|
||||
|
||||
Reference in New Issue
Block a user