Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
android
/
dayu
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2e65a48e
authored
7 years ago
by
罗翻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加演示环境
parent
61d71ead
master
…
dev
dev_xx
dev_xx_241116
dev_xx_250108_toast
dev_xx_250224_report
dev_xx_250414_sop
dev_xx_web
test
v2.7.2
v2.7.1
v2.7.0
v2.6.9
v2.6.7
v2.6.6
v2.6.5
v2.6.4
v2.6.3
v2.6.2
v2.6.1
v2.6.0
v2.5.9
v2.5.7
v2.5.5
v2.5.4
v2.5.3
v2.5.2
v2.5.0
v2.4.6
v2.4.5
v2.4.0
v_2.4.0
v2.3.2
v2.3.1
dev20230405
android_v1.6.0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
15 deletions
app/src/main/AndroidManifest.xml
app/src/main/java/com/dayu/bigfish/ui/MainActivity.java
baseSDK/build.gradle
baseSDK/src/main/java/com/dayu/common/BaseApplication.java
baseSDK/src/main/java/com/dayu/common/Constants.java
baseSDK/src/main/java/com/dayu/widgets/LRecyclerView.java
app/src/main/AndroidManifest.xml
View file @
2e65a48e
...
...
@@ -131,7 +131,6 @@
android:name=
".ui.MainActivity"
android:launchMode=
"singleTask"
android:screenOrientation=
"portrait"
/>
</application>
</manifest>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/src/main/java/com/dayu/bigfish/ui/MainActivity.java
View file @
2e65a48e
...
...
@@ -29,12 +29,12 @@ import com.dayu.bigfish.presenter.main.MainPresenter;
import
com.dayu.bigfish.ui.fragment.HomeFirstTabFragment
;
import
com.dayu.common.Constants
;
import
com.dayu.event.DownloadBean
;
import
com.dayu.provider.event.RefreshReceivingNum
;
import
com.dayu.location.base.LocationUtils
;
import
com.dayu.message.ui.fragment.HomeMessageFragment
;
import
com.dayu.provider.event.SwtichFragment
;
import
com.dayu.order.ui.activity.ReceivingActivity
;
import
com.dayu.order.ui.fragment.HomeOrderFragment
;
import
com.dayu.provider.event.RefreshReceivingNum
;
import
com.dayu.provider.event.SwtichFragment
;
import
com.dayu.provider.router.RouterPath
;
import
com.dayu.usercenter.ui.fragment.HomePersonFragment
;
import
com.dayu.widgets.CustomDialog
;
...
...
This diff is collapsed.
Click to expand it.
baseSDK/build.gradle
View file @
2e65a48e
...
...
@@ -13,6 +13,9 @@ android {
versionName
verson_name
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
// ndk {
// abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
// }
}
buildTypes
{
...
...
This diff is collapsed.
Click to expand it.
baseSDK/src/main/java/com/dayu/common/BaseApplication.java
View file @
2e65a48e
...
...
@@ -32,7 +32,6 @@ public class BaseApplication extends MultiDexApplication {
ARouter
.
init
(
this
);
}
public
static
Context
getContext
()
{
return
mContext
;
}
...
...
This diff is collapsed.
Click to expand it.
baseSDK/src/main/java/com/dayu/common/Constants.java
View file @
2e65a48e
...
...
@@ -22,24 +22,34 @@ public class Constants {
/**
* uat环境配置.
*/
public
static
final
int
LOG_LEVEL
=
LogUtils
.
LEVEL_ALL
;
public
static
final
String
BASE_URL
=
"http://47.95.223.6:3112"
;
public
final
static
String
UP_PHOTO
=
"/file/uploadMore?targetPath=test/sp/mobile/android/business/checkApply"
;
public
final
static
String
WEB_SOP
=
"http://47.95.223.6:9004/#/sop"
;
public
final
static
String
WEB_ZHI_SHI
=
"http://47.95.223.6:9004/#/detail"
;
public
static
final
boolean
IS_DEBUG
=
true
;
//
public static final int LOG_LEVEL = LogUtils.LEVEL_ALL;
//
public static final String BASE_URL = "http://47.95.223.6:3112";
//
public final static String UP_PHOTO = "/file/uploadMore?targetPath=test/sp/mobile/android/business/checkApply";
//
public final static String WEB_SOP = "http://47.95.223.6:9004/#/sop";
//
public final static String WEB_ZHI_SHI = "http://47.95.223.6:9004/#/detail";
//
public static final boolean IS_DEBUG = true;
/**
* 正式环境.
*/
// public static final int LOG_LEVEL = LogUtils.LEVEL_OFF;
// public static final String BASE_URL = "https://mobile.
dayu
.ai";
// public static final String BASE_URL = "https://mobile.
kf
.ai";
// public final static String UP_PHOTO = "/file/uploadMore?targetPath=online/sp/mobile/android/business/checkApply";
// public final static String WEB_SOP = "https://sop.kf.ai/#/sop";
// public final static String WEB_ZHI_SHI = "https://sop.kf.ai/#/detail";
// public static final boolean IS_DEBUG = false;
/**
* 演示环境
*/
public
final
static
int
LOG_LEVEL
=
LogUtils
.
LEVEL_OFF
;
public
final
static
String
BASE_URL
=
"https://test.mobile.dayu.ai"
;
public
final
static
String
UP_PHOTO
=
"/file/uploadMore?targetPath=online/sp/mobile/android/business/checkApply"
;
public
final
static
String
WEB_SOP
=
"https://test.sop.dayu.ai/#/sop"
;
public
final
static
String
WEB_ZHI_SHI
=
"https://test.sop.dayu.ai/#/detail"
;
public
final
static
boolean
IS_DEBUG
=
false
;
/**
* 登录.
*/
public
static
final
String
LOGIN_URL
=
"/check"
;
...
...
This diff is collapsed.
Click to expand it.
baseSDK/src/main/java/com/dayu/widgets/LRecyclerView.java
View file @
2e65a48e
...
...
@@ -27,7 +27,8 @@ import com.dayu.widgets.listener.onLoadMoreListener;
import
java.util.List
;
/**
* Created by luofan on 2017/12/9.
* Created by luofan
* on 2017/12/9.
*/
public
class
LRecyclerView
<
M
,
B
>
extends
FrameLayout
{
...
...
@@ -210,7 +211,7 @@ public class LRecyclerView<M, B> extends FrameLayout {
public
void
setData
(
List
<
M
>
data
)
{
swipeRefresh
.
setRefreshing
(
false
);
mCoreAdapter
.
isHasMore
=
false
;
if
(
data
==
null
||
(
data
!=
null
&&
data
.
size
()
==
0
)
)
{
if
(
data
==
null
||
data
.
size
()
==
0
)
{
// ToastUtils.showShortToast("暂无数据");
setEmpty
();
return
;
...
...
@@ -232,7 +233,7 @@ public class LRecyclerView<M, B> extends FrameLayout {
mCoreAdapter
.
isLoadFial
=
false
;
swipeRefresh
.
setRefreshing
(
false
);
if
(
isRefresh
)
{
if
(
data
==
null
||
(
data
!=
null
&&
data
.
getData
().
size
()
==
0
)
)
{
if
(
data
==
null
||
data
.
getData
().
size
()
==
0
)
{
// ToastUtils.showShortToast("暂无数据");
setEmpty
();
return
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment