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
6862d0d9
authored
Feb 26, 2024
by
han xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui调整
parent
6003e671
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
20 deletions
baseSDK/src/main/java/com/dayu/common/Constants.java
userCenter/src/main/java/com/dayu/usercenter/adapter/SelfLicenceAdapter.java
userCenter/src/main/java/com/dayu/usercenter/adapter/UserLicenceAdapter.java
userCenter/src/main/res/layout/item_user_licence.xml
baseSDK/src/main/java/com/dayu/common/Constants.java
View file @
6862d0d9
...
...
@@ -85,21 +85,21 @@ public class Constants {
/**
* 正式环境.
*/
//
public static String ENVIROMENT = "release";
//
public static String PHOTO = "online";
//
public static int LOG_LEVEL = LogUtils.LEVEL_OFF;
//
public static String BASE_URL = "https://mobile.dayuspm.com";
//
public static String WEB_SOP = "https://sop.kf.ai/#/sop";
//
public static String WEB_SOP_DETAIL = "https://sop.kf.ai/#/sopdetail";
//
public static String WEB_ZHI_SHI = "https://sop.kf.ai/#/detail";
//
public static String CHECK_MULTI_WEB_SOP = "https://sop.kf.ai/#/manyServiceResult";
//
public static String MULTI_WEB_SOP = "https://sop.kf.ai/#/manySop";
//
public static final String UP_PHOTO = "/file/uploadMore?targetPath=online/sp/mobile/android/business/checkApply";
//
public static final String UP_VIDEO = "/file/uploadVideoOne?targetPath=online/video";
//
public static boolean IS_DEBUG = false;
//
public static String VIDEO_SHARE_URL = "http://app.dl.kf.ai/ext/#/shareVideo?type=_type&id="; //学习视频分享链接 type(课程: course 直播: live)
//
public static int XLR_PID = 1936; //小绿人商家id
//
public static String SCHEME_9099 = "http://app.dl.kf.ai/ext/#/";
public
static
String
ENVIROMENT
=
"release"
;
public
static
String
PHOTO
=
"online"
;
public
static
int
LOG_LEVEL
=
LogUtils
.
LEVEL_OFF
;
public
static
String
BASE_URL
=
"https://mobile.dayuspm.com"
;
public
static
String
WEB_SOP
=
"https://sop.kf.ai/#/sop"
;
public
static
String
WEB_SOP_DETAIL
=
"https://sop.kf.ai/#/sopdetail"
;
public
static
String
WEB_ZHI_SHI
=
"https://sop.kf.ai/#/detail"
;
public
static
String
CHECK_MULTI_WEB_SOP
=
"https://sop.kf.ai/#/manyServiceResult"
;
public
static
String
MULTI_WEB_SOP
=
"https://sop.kf.ai/#/manySop"
;
public
static
final
String
UP_PHOTO
=
"/file/uploadMore?targetPath=online/sp/mobile/android/business/checkApply"
;
public
static
final
String
UP_VIDEO
=
"/file/uploadVideoOne?targetPath=online/video"
;
public
static
boolean
IS_DEBUG
=
false
;
public
static
String
VIDEO_SHARE_URL
=
"http://app.dl.kf.ai/ext/#/shareVideo?type=_type&id="
;
//学习视频分享链接 type(课程: course 直播: live)
public
static
int
XLR_PID
=
1936
;
//小绿人商家id
public
static
String
SCHEME_9099
=
"http://app.dl.kf.ai/ext/#/"
;
/**
...
...
userCenter/src/main/java/com/dayu/usercenter/adapter/SelfLicenceAdapter.java
View file @
6862d0d9
...
...
@@ -21,7 +21,7 @@ public class SelfLicenceAdapter extends CoreAdapter<SelfLicenceBean, ItemUserLic
@Override
protected
void
onBind
(
ItemUserLicenceBinding
holder
,
SelfLicenceBean
item
,
int
position
)
{
super
.
onBind
(
holder
,
item
,
position
);
GlideImageLoader
.
load
(
mContext
,
holder
.
ivImg
,
item
.
getUrl
(),
R
.
drawable
.
icon_img_default
);
GlideImageLoader
.
load
Fit
(
mContext
,
holder
.
ivImg
,
item
.
getUrl
(),
R
.
drawable
.
icon_img_default
);
holder
.
tvTitle
.
setText
(
item
.
getName
());
holder
.
tvCompany
.
setText
(
getStatusDesc
(
item
.
getStatus
()));
if
(
item
.
getStatus
()
==
3
)
{
...
...
userCenter/src/main/java/com/dayu/usercenter/adapter/UserLicenceAdapter.java
View file @
6862d0d9
...
...
@@ -19,9 +19,11 @@ public class UserLicenceAdapter extends CoreAdapter<UserLicenceBean,ItemUserLice
@Override
protected
void
onBind
(
ItemUserLicenceBinding
holder
,
UserLicenceBean
item
,
int
position
)
{
super
.
onBind
(
holder
,
item
,
position
);
GlideImageLoader
.
load
(
mContext
,
holder
.
ivImg
,
item
.
getUrl
(),
R
.
drawable
.
icon_img_default
);
GlideImageLoader
.
load
Fit
(
mContext
,
holder
.
ivImg
,
item
.
getUrl
(),
R
.
drawable
.
icon_img_default
);
holder
.
tvTitle
.
setText
(
item
.
getLicenceAuthorityName
());
holder
.
tvTitle
.
setMaxLines
(
2
);
holder
.
tvCompany
.
setText
(
item
.
getDetail
());
holder
.
tvCompany
.
setMaxLines
(
3
);
}
public
void
setPresent
(
UserLicencePresent
mPresent
)
{
...
...
userCenter/src/main/res/layout/item_user_licence.xml
View file @
6862d0d9
...
...
@@ -15,9 +15,9 @@
<ImageView
android:id=
"@+id/iv_img"
android:layout_width=
"1
2
0dp"
android:layout_height=
"1
2
0dp"
android:scaleType=
"centerCrop"
android:layout_width=
"1
0
0dp"
android:layout_height=
"1
0
0dp"
android:src=
"@drawable/icon_img_default"
/>
<LinearLayout
...
...
@@ -36,6 +36,7 @@
<TextView
android:id=
"@+id/tv_company"
android:layout_marginTop=
"10dp"
style=
"@style/sale_item_text"
android:text=
""
/>
...
...
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