Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vediosocial
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_vediosocial
Commits
8ca14cf2
Commit
8ca14cf2
authored
Jan 17, 2025
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分享页面
parent
bca0c164
Changes
44
Hide whitespace changes
Inline
Side-by-side
Showing
44 changed files
with
1192 additions
and
206 deletions
+1192
-206
AndroidManifest.xml
video/app/src/main/AndroidManifest.xml
+4
-0
CashException.java
...in/java/com/duben/library/net/neterror/CashException.java
+2
-2
UserHelper.kt
...src/main/java/com/duben/roseplaylet/manager/UserHelper.kt
+1
-3
UserManager.java
.../main/java/com/duben/roseplaylet/manager/UserManager.java
+4
-10
ShareRank.kt
...rc/main/java/com/duben/roseplaylet/mvp/model/ShareRank.kt
+20
-0
UserBean.java
...c/main/java/com/duben/roseplaylet/mvp/model/UserBean.java
+8
-0
UserProfileData.kt
...n/java/com/duben/roseplaylet/mvp/model/UserProfileData.kt
+4
-5
BasicUserProfilePresenter.kt
...n/roseplaylet/mvp/presenters/BasicUserProfilePresenter.kt
+1
-1
EditProfilePresenter.kt
.../duben/roseplaylet/mvp/presenters/EditProfilePresenter.kt
+3
-2
InvitePresenter.kt
...a/com/duben/roseplaylet/mvp/presenters/InvitePresenter.kt
+142
-0
UserProfilePresenter.kt
.../duben/roseplaylet/mvp/presenters/UserProfilePresenter.kt
+1
-1
EditProfileView.kt
...n/java/com/duben/roseplaylet/mvp/views/EditProfileView.kt
+2
-2
InviteView.kt
...c/main/java/com/duben/roseplaylet/mvp/views/InviteView.kt
+14
-0
LoanService.java
.../src/main/java/com/duben/roseplaylet/net/LoanService.java
+21
-1
BasicUserProfileActivity.kt
...uben/roseplaylet/ui/activitys/BasicUserProfileActivity.kt
+7
-10
EditProfileActivity.kt
...com/duben/roseplaylet/ui/activitys/EditProfileActivity.kt
+64
-41
MainActivity.kt
...n/java/com/duben/roseplaylet/ui/activitys/MainActivity.kt
+10
-8
RealAuthActivity.kt
...va/com/duben/roseplaylet/ui/activitys/RealAuthActivity.kt
+15
-10
ShareActivity.kt
.../java/com/duben/roseplaylet/ui/activitys/ShareActivity.kt
+155
-0
UserLabelActivity.kt
...a/com/duben/roseplaylet/ui/activitys/UserLabelActivity.kt
+30
-19
UserProfileActivity.kt
...com/duben/roseplaylet/ui/activitys/UserProfileActivity.kt
+9
-8
BaseActivity.java
...com/duben/roseplaylet/ui/activitys/base/BaseActivity.java
+1
-0
ProfileLabelAdapter.kt
...a/com/duben/roseplaylet/ui/adapter/ProfileLabelAdapter.kt
+13
-0
ShareInviteAdapter.kt
...va/com/duben/roseplaylet/ui/adapter/ShareInviteAdapter.kt
+20
-0
ShareRankAdapter.kt
...java/com/duben/roseplaylet/ui/adapter/ShareRankAdapter.kt
+20
-0
InviteFragment.kt
.../java/com/duben/roseplaylet/ui/fragment/InviteFragment.kt
+12
-17
MyFragment.kt
...main/java/com/duben/roseplaylet/ui/fragment/MyFragment.kt
+1
-3
RealAuthDialog.kt
...n/java/com/duben/roseplaylet/ui/widgets/RealAuthDialog.kt
+3
-3
ShareDialog.kt
...main/java/com/duben/roseplaylet/ui/widgets/ShareDialog.kt
+12
-6
UnlockChatDialog.kt
...java/com/duben/roseplaylet/ui/widgets/UnlockChatDialog.kt
+4
-0
activity_edit_profile.xml
video/app/src/main/res/layout/activity_edit_profile.xml
+2
-1
activity_real_auth.xml
video/app/src/main/res/layout/activity_real_auth.xml
+5
-4
activity_share.xml
video/app/src/main/res/layout/activity_share.xml
+374
-0
activity_user_profile.xml
video/app/src/main/res/layout/activity_user_profile.xml
+2
-1
dialog_profile_count.xml
video/app/src/main/res/layout/dialog_profile_count.xml
+1
-1
dialog_see_wechat.xml
video/app/src/main/res/layout/dialog_see_wechat.xml
+1
-1
dialog_unlock_wechat.xml
video/app/src/main/res/layout/dialog_unlock_wechat.xml
+2
-1
fragment_main.xml
video/app/src/main/res/layout/fragment_main.xml
+4
-4
fragment_main_invite.xml
video/app/src/main/res/layout/fragment_main_invite.xml
+5
-5
item_profile_label.xml
video/app/src/main/res/layout/item_profile_label.xml
+15
-0
item_share_invite.xml
video/app/src/main/res/layout/item_share_invite.xml
+58
-0
item_share_rank.xml
video/app/src/main/res/layout/item_share_rank.xml
+70
-0
layout_basic_text.xml
video/app/src/main/res/layout/layout_basic_text.xml
+48
-34
gradle.properties
video/gradle.properties
+2
-2
No files found.
video/app/src/main/AndroidManifest.xml
View file @
8ca14cf2
...
...
@@ -264,6 +264,10 @@
android:name=
".ui.preview.ImagePreviewActivity"
android:exported=
"false"
android:screenOrientation=
"portrait"
/>
<activity
android:name=
".ui.activitys.ShareActivity"
android:exported=
"false"
android:screenOrientation=
"portrait"
/>
<activity
android:name=
".ui.activitys.IMActivity"
...
...
video/app/src/main/java/com/duben/library/net/neterror/CashException.java
View file @
8ca14cf2
...
...
@@ -127,8 +127,8 @@ public class CashException {
ex
.
setMessage
(
resultException
.
message
);
return
ex
;
}
else
{
LogUtil
.
d
(
"
XXXXXXXXXX
"
);
LogUtil
.
d
(
e
.
getMessage
());
LogUtil
.
d
(
"
AAAAAAAAAA
"
);
LogUtil
.
d
(
"AAAAAAAAAA"
+
e
.
getMessage
());
ex
=
new
Throwable
(
e
,
ERROR
.
UNKNOWN
);
ex
.
setMessage
(
"系统异常,请退出app重新打开"
);
return
ex
;
...
...
video/app/src/main/java/com/duben/roseplaylet/manager/UserHelper.kt
View file @
8ca14cf2
...
...
@@ -3,7 +3,6 @@ package com.duben.roseplaylet.manager
import
android.content.Intent
import
com.duben.roseplaylet.MintsApplication
import
com.duben.roseplaylet.ui.activitys.BasicUserProfileActivity
import
com.duben.roseplaylet.ui.activitys.RealAuthActivity
import
com.duben.roseplaylet.ui.activitys.VipActivity
import
com.duben.roseplaylet.ui.widgets.RealAuthDialog
import
com.duben.roseplaylet.utils.ToastUtil
...
...
@@ -46,8 +45,7 @@ class UserHelper private constructor() {
}
fun
showRealAuthDialog
()
{
RealAuthDialog
(
MintsApplication
.
getContext
())
.
show
()
RealAuthDialog
(
ActivityPageManager
.
getInstance
().
currentActivity
).
show
()
}
fun
receiveErrorCode
(
code
:
Int
)
{
...
...
video/app/src/main/java/com/duben/roseplaylet/manager/UserManager.java
View file @
8ca14cf2
...
...
@@ -146,6 +146,7 @@ public class UserManager {
ps
.
put
(
WX_OPENID
,
openid
);
ps
.
put
(
CODE_ID
,
user
.
getIdcode
());
ps
.
put
(
NEW_FLAG
,
user
.
getActiviteFlag
()
==
1
);
ps
.
put
(
USER_SEX
,
user
.
getSex
());
ps
.
put
(
HAS_BASE
,
user
.
isHasBase
());
...
...
@@ -306,18 +307,11 @@ public class UserManager {
return
ps
.
getInt
(
LAST_IM_LOGIN_CODE
,
BaseConstants
.
ERR_SUCC
);
}
public
void
setUserSex
(
String
userSex
)
{
public
int
getUserSex
(
)
{
if
(
ps
==
null
)
{
return
;
}
ps
.
put
(
USER_SEX
,
userSex
);
}
public
String
getUserSex
()
{
if
(
ps
==
null
)
{
return
"1"
;
return
1
;
}
return
ps
.
get
String
(
USER_SEX
,
"1"
);
return
ps
.
get
Int
(
USER_SEX
,
1
);
}
public
void
userLogout
()
{
...
...
video/app/src/main/java/com/duben/roseplaylet/mvp/model/ShareRank.kt
0 → 100644
View file @
8ca14cf2
package
com.duben.roseplaylet.mvp.model
data class
ShareRankList
(
val
list
:
ArrayList
<
ShareRank
>
)
:
java
.
io
.
Serializable
data class
ShareRank
(
val
head
:
String
,
val
nick
:
String
,
val
rewardCash
:
String
,
val
share
:
Int
)
:
java
.
io
.
Serializable
data class
ShareInvite
(
val
nickName
:
String
,
val
head
:
String
,
val
status
:
String
,
val
sex
:
String
,
val
cash
:
Int
)
:
java
.
io
.
Serializable
\ No newline at end of file
video/app/src/main/java/com/duben/roseplaylet/mvp/model/UserBean.java
View file @
8ca14cf2
...
...
@@ -23,6 +23,7 @@ public class UserBean implements Serializable {
private
long
createTime
;
// 用户id
private
int
sex
;
// 性别
private
String
shareCode
;
// 分享码
private
boolean
hasBase
;
// 是否填写基础资料
private
int
idcardStatus
;
//认证状态,1 已认证
...
...
@@ -33,6 +34,13 @@ public class UserBean implements Serializable {
private
String
headerUrl
;
//头像
private
boolean
alipaySet
;
//提现支付宝账号 是否设置了,计划采用竞品方案,现在openid 不唯一了,没有uid
public
int
getSex
()
{
return
sex
;
}
public
void
setSex
(
int
sex
)
{
this
.
sex
=
sex
;
}
public
boolean
isHasBase
()
{
return
hasBase
;
...
...
video/app/src/main/java/com/duben/roseplaylet/mvp/model/UserProfileData.kt
View file @
8ca14cf2
package
com.duben.roseplaylet.mvp.model
/**
* @author Assen
* @date 2025/1/15
* @desc
*/
data class
UserProfileDataInfo
(
val
info
:
UserProfileData
)
:
java
.
io
.
Serializable
data class
UserProfileData
(
var
age
:
String
?
=
null
,
var
appearance
:
String
?
=
null
,
...
...
video/app/src/main/java/com/duben/roseplaylet/mvp/presenters/BasicUserProfilePresenter.kt
View file @
8ca14cf2
...
...
@@ -10,7 +10,7 @@ import java.util.HashMap
class
BasicUserProfilePresenter
:
BasePresenter
<
BasicUserProfileView
>()
{
fun
initBasicInfo
(
birthday
:
String
,
nickName
:
String
,
sex
:
String
,
headerUrl
:
String
)
{
fun
initBasicInfo
(
birthday
:
String
,
nickName
:
String
,
sex
:
Int
,
headerUrl
:
String
)
{
val
vo
=
HashMap
<
String
,
Any
>()
vo
[
"birthday"
]
=
birthday
vo
[
"nickName"
]
=
nickName
...
...
video/app/src/main/java/com/duben/roseplaylet/mvp/presenters/EditProfilePresenter.kt
View file @
8ca14cf2
...
...
@@ -5,6 +5,7 @@ import com.duben.library.net.neterror.Throwable
import
com.duben.roseplaylet.manager.AppHttpManager
import
com.duben.roseplaylet.mvp.model.BaseResponse
import
com.duben.roseplaylet.mvp.model.UserProfileData
import
com.duben.roseplaylet.mvp.model.UserProfileDataInfo
import
com.duben.roseplaylet.mvp.views.EditProfileView
import
java.util.HashMap
...
...
@@ -13,13 +14,13 @@ class EditProfilePresenter : BasePresenter<EditProfileView>() {
fun
getUserInfo
()
{
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
userInfo
,
object
:
BaseSubscriber
<
BaseResponse
<
UserProfileData
>>()
{
object
:
BaseSubscriber
<
BaseResponse
<
UserProfileData
Info
>>()
{
override
fun
onCompleted
()
{
if
(
isLinkView
)
return
view
.
hideLoading
()
}
override
fun
onNext
(
baseResponse
:
BaseResponse
<
UserProfileData
>)
{
override
fun
onNext
(
baseResponse
:
BaseResponse
<
UserProfileData
Info
>)
{
if
(
isLinkView
)
return
view
.
hideLoading
()
...
...
video/app/src/main/java/com/duben/roseplaylet/mvp/presenters/InvitePresenter.kt
View file @
8ca14cf2
package
com.duben.roseplaylet.mvp.presenters
import
com.duben.library.net.neterror.BaseSubscriber
import
com.duben.library.net.neterror.Throwable
import
com.duben.roseplaylet.manager.AppHttpManager
import
com.duben.roseplaylet.mvp.model.BaseResponse
import
com.duben.roseplaylet.mvp.model.ShareRankList
import
com.duben.roseplaylet.mvp.views.InviteView
import
com.google.gson.JsonObject
class
InvitePresenter
:
BasePresenter
<
InviteView
>()
{
fun
getSharePageMsg
()
{
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
sharePageMsg
,
object
:
BaseSubscriber
<
BaseResponse
<
JsonObject
>>()
{
override
fun
onCompleted
()
{
if
(
isLinkView
)
return
}
override
fun
onError
(
e
:
Throwable
)
{
if
(
isLinkView
)
return
view
.
showToast
(
e
.
message
)
view
.
getSharePageMsgFail
()
}
override
fun
onNext
(
baseResponse
:
BaseResponse
<
JsonObject
>)
{
if
(
isLinkView
)
return
val
code
=
baseResponse
.
status
val
message
=
baseResponse
.
message
when
(
code
)
{
200
->
{
view
.
getSharePageMsgSuc
(
baseResponse
.
data
.
get
(
"shareCode"
).
asString
,
baseResponse
.
data
.
get
(
"rUserShareCode"
).
asString
)
}
else
->
{
view
.
showToast
(
message
)
view
.
getSharePageMsgFail
()
}
}
}
})
}
fun
getShareOrders
()
{
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
shareOrders
,
object
:
BaseSubscriber
<
BaseResponse
<
ShareRankList
>>()
{
override
fun
onCompleted
()
{
if
(
isLinkView
)
return
}
override
fun
onError
(
e
:
Throwable
)
{
if
(
isLinkView
)
return
view
.
showToast
(
e
.
message
)
view
.
getShareOrderFail
()
}
override
fun
onNext
(
baseResponse
:
BaseResponse
<
ShareRankList
>)
{
if
(
isLinkView
)
return
val
code
=
baseResponse
.
status
val
message
=
baseResponse
.
message
when
(
code
)
{
200
->
{
view
.
getShareOrderSuc
(
baseResponse
.
data
)
}
else
->
{
view
.
showToast
(
message
)
view
.
getShareOrderFail
()
}
}
}
})
}
fun
getShareUrl
()
{
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
shareUrl
,
object
:
BaseSubscriber
<
BaseResponse
<
JsonObject
>>()
{
override
fun
onCompleted
()
{
if
(
isLinkView
)
return
}
override
fun
onError
(
e
:
Throwable
)
{
if
(
isLinkView
)
return
view
.
showToast
(
e
.
message
)
view
.
getShareUrlSucFail
()
}
override
fun
onNext
(
baseResponse
:
BaseResponse
<
JsonObject
>)
{
if
(
isLinkView
)
return
val
code
=
baseResponse
.
status
val
message
=
baseResponse
.
message
when
(
code
)
{
200
->
{
view
.
getShareUrlSuc
(
baseResponse
.
data
.
get
(
"url"
).
asString
)
}
else
->
{
view
.
showToast
(
message
)
view
.
getShareUrlSucFail
()
}
}
}
})
}
fun
getRuserShareCode
()
{
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
ruserShareCode
,
object
:
BaseSubscriber
<
BaseResponse
<
JsonObject
>>()
{
override
fun
onCompleted
()
{
if
(
isLinkView
)
return
}
override
fun
onError
(
e
:
Throwable
)
{
if
(
isLinkView
)
return
view
.
showToast
(
e
.
message
)
view
.
getShareUrlSucFail
()
}
override
fun
onNext
(
baseResponse
:
BaseResponse
<
JsonObject
>)
{
if
(
isLinkView
)
return
val
code
=
baseResponse
.
status
val
message
=
baseResponse
.
message
when
(
code
)
{
200
->
{
// view.getShareUrlSuc(baseResponse.data)
}
else
->
{
view
.
showToast
(
message
)
view
.
getShareUrlSucFail
()
}
}
}
})
}
}
\ No newline at end of file
video/app/src/main/java/com/duben/roseplaylet/mvp/presenters/UserProfilePresenter.kt
View file @
8ca14cf2
...
...
@@ -126,7 +126,7 @@ class UserProfilePresenter : BasePresenter<UserProfileView>() {
val
vo
=
hashMapOf
<
String
,
Any
>()
vo
[
"toUid"
]
=
toUid
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
seeWechat
(
vo
),
.
call
(
loanService
.
unlockInfoByCoin
(
vo
),
object
:
BaseSubscriber
<
BaseResponse
<
JsonObject
>>()
{
override
fun
onCompleted
()
{
if
(
isLinkView
)
return
...
...
video/app/src/main/java/com/duben/roseplaylet/mvp/views/EditProfileView.kt
View file @
8ca14cf2
package
com.duben.roseplaylet.mvp.views
import
com.duben.roseplaylet.mvp.model.UserProfileData
import
com.duben.roseplaylet.mvp.model.UserProfileData
Info
interface
EditProfileView
:
BaseView
{
fun
getUserInfoSuc
(
data
:
UserProfileData
)
fun
getUserInfoSuc
(
data
:
UserProfileData
Info
)
fun
getUserInfoFail
()
fun
setUserInfoSuc
()
...
...
video/app/src/main/java/com/duben/roseplaylet/mvp/views/InviteView.kt
View file @
8ca14cf2
package
com.duben.roseplaylet.mvp.views
import
com.duben.roseplaylet.mvp.model.ShareRankList
interface
InviteView
:
BaseView
{
fun
getSharePageMsgSuc
(
shareCode
:
String
,
rUserShareCode
:
String
?)
fun
getSharePageMsgFail
()
fun
getShareOrderSuc
(
data
:
ShareRankList
)
fun
getShareOrderFail
()
fun
getShareUrlSuc
(
data
:
String
)
fun
getShareUrlSucFail
()
fun
getRuserShareCodeSuc
(
data
:
Any
)
fun
getRuserShareCodeSucFail
()
}
\ No newline at end of file
video/app/src/main/java/com/duben/roseplaylet/net/LoanService.java
View file @
8ca14cf2
...
...
@@ -7,7 +7,9 @@ import com.duben.roseplaylet.mvp.model.FaceParam;
import
com.duben.roseplaylet.mvp.model.HallList
;
import
com.duben.roseplaylet.mvp.model.RecommendBannerList
;
import
com.duben.roseplaylet.mvp.model.SeeWechat
;
import
com.duben.roseplaylet.mvp.model.ShareRankList
;
import
com.duben.roseplaylet.mvp.model.UserProfileData
;
import
com.duben.roseplaylet.mvp.model.UserProfileDataInfo
;
import
com.google.gson.JsonObject
;
import
com.duben.roseplaylet.BuildConfig
;
import
com.duben.roseplaylet.mvp.model.BannerList
;
...
...
@@ -422,7 +424,7 @@ public interface LoanService {
* 查看资料
*/
@POST
(
"roseApi/user/info"
)
Observable
<
BaseResponse
<
UserProfileData
>>
getUserInfo
();
Observable
<
BaseResponse
<
UserProfileData
Info
>>
getUserInfo
();
/**
* 编辑资料
...
...
@@ -484,6 +486,24 @@ public interface LoanService {
@POST
(
"roseApi/share/sharePageMsg"
)
Observable
<
BaseResponse
<
JsonObject
>>
getSharePageMsg
();
/**
* 邀请页排行榜
*/
@POST
(
"roseApi/share/orders"
)
Observable
<
BaseResponse
<
ShareRankList
>>
getShareOrders
();
/**
* 修改邀请我的分享码
*/
@POST
(
"roseApi/user/updateRuserShareCode"
)
Observable
<
BaseResponse
<
JsonObject
>>
updateRuserShareCode
(
@Body
Object
obj
);
/**
* 是否已经绑定分享码
*/
@POST
(
"roseApi/user/getRuserShareCode"
)
Observable
<
BaseResponse
<
JsonObject
>>
getRuserShareCode
();
/**
* 查看图片
*/
...
...
video/app/src/main/java/com/duben/roseplaylet/ui/activitys/BasicUserProfileActivity.kt
View file @
8ca14cf2
...
...
@@ -20,7 +20,6 @@ import com.duben.roseplaylet.mvp.presenters.BasicUserProfilePresenter
import
com.duben.roseplaylet.mvp.views.BasicUserProfileView
import
com.duben.roseplaylet.ui.widgets.pick.SinglePickDialog
import
com.duben.roseplaylet.utils.GlideEngine
import
com.duben.roseplaylet.utils.ToastUtil
import
com.duben.roseplaylet.utils.UcropUtils
import
com.luck.picture.lib.PictureSelector
import
com.luck.picture.lib.compress.Luban
...
...
@@ -47,7 +46,7 @@ class BasicUserProfileActivity : BaseActivity(), View.OnClickListener, BasicUser
private
var
avatarUrl
:
String
?
=
null
private
var
sex
:
String
?
=
null
private
var
sex
:
Int
=
-
1
private
val
basicUserProfilePresenter
by
lazy
{
BasicUserProfilePresenter
()
}
...
...
@@ -74,9 +73,9 @@ class BasicUserProfileActivity : BaseActivity(), View.OnClickListener, BasicUser
private
fun
initView
()
{
rg_sex
.
setOnCheckedChangeListener
{
_
,
checkedId
->
sex
=
if
(
checkedId
==
rb_female
.
id
)
{
"2"
2
}
else
{
"1"
1
}
}
}
...
...
@@ -107,12 +106,12 @@ class BasicUserProfileActivity : BaseActivity(), View.OnClickListener, BasicUser
showToast
(
"请输入年龄!"
)
return
}
if
(
TextUtils
.
isEmpty
(
sex
)
)
{
if
(
sex
==
1
||
sex
==
2
)
{
showToast
(
"请选择性别!"
)
return
}
basicUserProfilePresenter
.
initBasicInfo
(
"$age-1-1"
,
nickname
,
sex
!!
,
avatarUrl
!!
)
basicUserProfilePresenter
.
initBasicInfo
(
"$age-1-1"
,
nickname
,
sex
,
avatarUrl
!!
)
}
}
}
...
...
@@ -156,12 +155,10 @@ class BasicUserProfileActivity : BaseActivity(), View.OnClickListener, BasicUser
}
override
fun
initBasicSuc
()
{
ToastUtil
.
show
(
this
,
"initBasicSuc"
)
finish
(
)
}
override
fun
initBasicFail
()
{
ToastUtil
.
show
(
this
,
"initBasicFail"
)
}
override
fun
initBasicFail
()
{}
private
fun
showAlbum
()
{
val
windowAnimationStyle
=
PictureWindowAnimationStyle
()
...
...
video/app/src/main/java/com/duben/roseplaylet/ui/activitys/EditProfileActivity.kt
View file @
8ca14cf2
...
...
@@ -11,24 +11,27 @@ import android.view.View
import
android.widget.EditText
import
android.widget.ImageView
import
android.widget.TextView
import
androidx.recyclerview.widget.LinearLayoutManager
import
androidx.recyclerview.widget.RecyclerView
import
com.bigkoo.pickerview.builder.OptionsPickerBuilder
import
com.duben.library.utils.GlideUtils
import
com.duben.roseplaylet.R
import
com.duben.roseplaylet.ui.activitys.base.BaseActivity
import
com.duben.library.utils.nodoubleclick.AntiShake
import
com.duben.roseplaylet.R
import
com.duben.roseplaylet.common.Constant
import
com.duben.roseplaylet.common.OssType
import
com.duben.roseplaylet.common.UserProfile
import
com.duben.roseplaylet.manager.OssManager
import
com.duben.roseplaylet.manager.UserManager
import
com.duben.roseplaylet.mvp.model.*
import
com.duben.roseplaylet.mvp.presenters.EditProfilePresenter
import
com.duben.roseplaylet.mvp.views.EditProfileView
import
com.duben.roseplaylet.ui.activitys.base.BaseActivity
import
com.duben.roseplaylet.ui.adapter.ProfileLabelAdapter
import
com.duben.roseplaylet.ui.widgets.pick.SinglePickDialog
import
com.duben.roseplaylet.utils.AddressData
import
com.duben.roseplaylet.utils.GlideEngine
import
com.duben.roseplaylet.utils.JobData
import
com.duben.roseplaylet.utils.UcropUtils
import
com.google.gson.Gson
import
com.luck.picture.lib.PictureSelector
import
com.luck.picture.lib.compress.Luban
import
com.luck.picture.lib.config.PictureConfig
...
...
@@ -47,7 +50,6 @@ import kotlinx.coroutines.MainScope
import
kotlinx.coroutines.launch
import
kotlinx.coroutines.withContext
import
java.io.File
import
java.util.ArrayList
class
EditProfileActivity
:
BaseActivity
(),
View
.
OnClickListener
,
EditProfileView
{
...
...
@@ -74,14 +76,17 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
private
var
addressOptions1Items
:
MutableList
<
JsonBean
>?
=
mutableListOf
()
private
var
addressOptions2Items
:
MutableList
<
ArrayList
<
String
>>?
=
mutableListOf
()
private
var
gxbqAdapter
:
ProfileLabelAdapter
?
=
null
private
var
xhdnstzAdapter
:
ProfileLabelAdapter
?
=
null
private
var
avatarUrl
=
""
private
var
toUid
=
""
private
var
userProfileData
:
UserProfileData
?
=
null
private
val
editProfilePresenter
by
lazy
{
EditProfilePresenter
()
}
private
val
gson
by
lazy
{
Gson
()
}
private
val
userManager
by
lazy
{
UserManager
.
getInstance
()
}
private
val
editProfilePresenter
by
lazy
{
EditProfilePresenter
()
}
override
fun
getContentViewLayoutID
()
=
R
.
layout
.
activity_edit_profile
...
...
@@ -120,7 +125,6 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
}
}
private
fun
initAddressData
()
{
MainScope
().
launch
{
withContext
(
Dispatchers
.
IO
)
{
...
...
@@ -144,21 +148,29 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
private
fun
initData
()
{
userProfileData
?.
let
{
if
(
it
.
sex
==
1
)
{
initMale
()
tvJyjm
.
text
=
it
.
interest
if
(!
TextUtils
.
isEmpty
(
it
.
tagsCommon
))
{
val
tagsList
=
gson
.
fromJson
(
it
.
tagsCommon
,
Array
<
String
>
::
class
.
java
)
gxbqAdapter
?.
setNewInstance
(
tagsList
.
toCollection
(
ArrayList
()))
}
}
else
{
initFemale
()
}
if
(!
TextUtils
.
isEmpty
(
it
.
findDescribe
))
{
val
tagsList
=
gson
.
fromJson
(
it
.
findDescribe
,
Array
<
String
>
::
class
.
java
)
xhdnstzAdapter
?.
setNewInstance
(
tagsList
.
toCollection
(
ArrayList
()))
}
GlideUtils
.
loadImageView
(
this
@EditProfileActivity
,
it
.
headerUrl
,
ivAvatar
)
tvNickname
.
setText
(
""
+
it
.
nickName
)
tvSign
.
text
=
it
.
introduce
tvJyjm
.
text
=
it
.
interest
tvAge
.
text
=
it
.
birthday
tvJob
.
text
=
it
.
career
tvHeight
.
text
=
it
.
userHeight
tvWeight
.
text
=
it
.
bodyWeight
tvJyfw
.
text
=
it
.
findCity
if
(
userManager
.
userSex
==
"1"
)
{
initMale
()
}
else
{
initFemale
()
}
}
}
...
...
@@ -191,23 +203,36 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
layout_jyjm
.
visibility
=
View
.
VISIBLE
layout_jyjm
.
findViewById
<
TextView
>(
R
.
id
.
label_start
).
text
=
UserProfile
.
PROFILE_JYJM
.
str
tvJyjm
=
layout_jyjm
.
findViewById
(
R
.
id
.
label_tv
)
if
(!
TextUtils
.
isEmpty
(
""
))
{
tvJyjm
.
text
=
""
}
else
{
tvJyjm
.
text
=
"不详"
}
layout_jyjm
.
setOnClickListener
(
this
)
// 喜欢的女生特质
layout_xhdnstz
.
visibility
=
View
.
VISIBLE
layout_xhdnstz
.
findViewById
<
TextView
>(
R
.
id
.
label_start
).
text
=
UserProfile
.
SPECIAL_LIKE_FEMALE
.
str
tvXhdnstz
=
layout_xhdnstz
.
findViewById
(
R
.
id
.
label_tv
)
if
(!
TextUtils
.
isEmpty
(
""
))
{
tvXhdnstz
.
text
=
""
}
else
{
tvXhdnstz
.
text
=
"不详"
}
layout_xhdnstz
.
setOnClickListener
(
this
)
initXhdnstzRcy
()
}
private
fun
initGxbqRcy
()
{
val
recyclerView
=
layout_gxbq
.
findViewById
<
RecyclerView
>(
R
.
id
.
rv_basic
)
gxbqAdapter
=
ProfileLabelAdapter
()
val
linearLayoutManager
=
LinearLayoutManager
(
this
)
linearLayoutManager
.
orientation
=
RecyclerView
.
HORIZONTAL
recyclerView
.
visibility
=
View
.
VISIBLE
recyclerView
.
layoutManager
=
linearLayoutManager
recyclerView
.
adapter
=
gxbqAdapter
}
private
fun
initXhdnstzRcy
()
{
val
recyclerView
=
layout_xhdnstz
.
findViewById
<
RecyclerView
>(
R
.
id
.
rv_basic
)
xhdnstzAdapter
=
ProfileLabelAdapter
()
val
linearLayoutManager
=
LinearLayoutManager
(
this
)
linearLayoutManager
.
orientation
=
RecyclerView
.
HORIZONTAL
recyclerView
.
visibility
=
View
.
VISIBLE
recyclerView
.
layoutManager
=
linearLayoutManager
recyclerView
.
adapter
=
xhdnstzAdapter
}
private
fun
initView
()
{
...
...
@@ -289,19 +314,8 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
// 个性标签
layout_gxbq
.
findViewById
<
TextView
>(
R
.
id
.
label_start
).
text
=
UserProfile
.
PROFILE_GXBQ
.
str
val
gxbqTv
=
layout_gxbq
.
findViewById
<
TextView
>(
R
.
id
.
label_tv
)
if
(!
TextUtils
.
isEmpty
(
""
))
{
gxbqTv
.
text
=
""
}
else
{
gxbqTv
.
text
=
"不详"
}
layout_gxbq
.
setOnClickListener
(
this
)
// if (userManager.userSex == "1") {
// initMale()
// } else {
// initFemale()
// }
initGxbqRcy
()
}
private
fun
getPickerData
(
pickerType
:
String
):
MutableList
<
PickBean
>
{
...
...
@@ -674,24 +688,32 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
}
Constant
.
USER_LABEL_REQUEST_CODE
->
{
val
sbLabel
=
data
?.
getStringExtra
(
Constant
.
USER_LABEL_DATA
)
showToast
(
sbLabel
)
userProfileData
?.
tagsCommon
=
sbLabel
if
(!
TextUtils
.
isEmpty
(
userProfileData
?.
tagsCommon
))
{
val
tagsList
=
gson
.
fromJson
(
userProfileData
?.
tagsCommon
,
Array
<
String
>
::
class
.
java
)
gxbqAdapter
?.
setNewInstance
(
tagsList
.
toCollection
(
ArrayList
()))
}
}
Constant
.
LIKE_FEMALE_LABEL_REQUEST_CODE
->
{
val
sbLabel
=
data
?.
getStringExtra
(
Constant
.
USER_LABEL_DATA
)
showToast
(
sbLabel
)
userProfileData
?.
findDescribe
=
sbLabel
if
(!
TextUtils
.
isEmpty
(
userProfileData
?.
findDescribe
))
{
val
tagsList
=
gson
.
fromJson
(
userProfileData
?.
findDescribe
,
Array
<
String
>
::
class
.
java
)
xhdnstzAdapter
?.
setNewInstance
(
tagsList
.
toCollection
(
ArrayList
()))
}
}
Constant
.
EDIT_PROFILE_CODE
->
{
val
signature
=
data
?.
getStringExtra
(
Constant
.
EDIT_PROFILE_SIGNATURE_STR
)
userProfileData
?.
int
erest
=
signature
userProfileData
?.
int
roduce
=
signature
tvSign
.
text
=
signature
}
}
}
override
fun
getUserInfoSuc
(
data
:
UserProfileData
)
{
this
.
userProfileData
=
data
override
fun
getUserInfoSuc
(
data
:
UserProfileData
Info
)
{
this
.
userProfileData
=
data
.
info
initData
()
}
...
...
@@ -700,6 +722,7 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
override
fun
setUserInfoSuc
()
{
showToast
(
"资料保存成功!"
)
finish
()
}
override
fun
setUserInfoFail
()
{}
...
...
video/app/src/main/java/com/duben/roseplaylet/ui/activitys/MainActivity.kt
View file @
8ca14cf2
...
...
@@ -120,9 +120,7 @@ class MainActivity : BaseActivity(), View.OnClickListener {
when
(
view
.
id
)
{
R
.
id
.
tab_rl_video
->
clickTab1Layout
()
R
.
id
.
tab_rl_square
->
{
clickTab2Layout
()
}
R
.
id
.
tab_rl_square
->
clickTab2Layout
()
R
.
id
.
tab_rl_invite
->
clickTab3Layout
()
R
.
id
.
tab_rl_msg
->
clickTab4Layout
()
R
.
id
.
tab_rl_my
->
clickTab5Layout
()
...
...
@@ -175,11 +173,15 @@ class MainActivity : BaseActivity(), View.OnClickListener {
* 点击第三个tab
*/
fun
clickTab3Layout
()
{
AppConfig
.
fragmentClickFlag
=
Constant
.
FRAGMENT_CLICK_THREE
if
(
inviteFragment
==
null
)
{
inviteFragment
=
InviteFragment
()
}
addOrShowFragment
(
supportFragmentManager
.
beginTransaction
(),
inviteFragment
!!
)
// AppConfig.fragmentClickFlag = Constant.FRAGMENT_CLICK_THREE
// if (inviteFragment == null) {
// inviteFragment = InviteFragment()
// }
// addOrShowFragment(supportFragmentManager.beginTransaction(), inviteFragment!!)
readyGo
(
ShareActivity
::
class
.
java
)
tab_iv_video
.
isSelected
=
false
tab_tv_video
.
isSelected
=
false
tab_iv_square
.
isSelected
=
false
...
...
video/app/src/main/java/com/duben/roseplaylet/ui/activitys/RealAuthActivity.kt
View file @
8ca14cf2
...
...
@@ -12,6 +12,7 @@ import com.duben.library.utils.GlideUtils
import
com.duben.roseplaylet.R
import
com.duben.roseplaylet.ui.activitys.base.BaseActivity
import
com.duben.library.utils.nodoubleclick.AntiShake
import
com.duben.roseplaylet.common.Constant
import
com.duben.roseplaylet.common.OssType
import
com.duben.roseplaylet.common.UserProfile
import
com.duben.roseplaylet.manager.FaceVerifyHelper
...
...
@@ -24,6 +25,7 @@ import com.duben.roseplaylet.mvp.views.RealAuthView
import
com.duben.roseplaylet.ui.widgets.pick.MultiPickDialog
import
com.duben.roseplaylet.ui.widgets.pick.SinglePickDialog
import
com.duben.roseplaylet.utils.GlideEngine
import
com.duben.roseplaylet.utils.LogUtil
import
com.duben.roseplaylet.utils.UcropUtils
import
com.luck.picture.lib.PictureSelector
import
com.luck.picture.lib.compress.Luban
...
...
@@ -42,11 +44,6 @@ import java.io.File
class
RealAuthActivity
:
BaseActivity
(),
View
.
OnClickListener
,
RealAuthView
{
companion
object
{
const
val
USER_LABEL_REQUEST_CODE
=
0
x00003234
const
val
USER_LABEL_DATA
=
"USER_LABEL_DATA"
}
private
val
realAuthPresenter
by
lazy
{
RealAuthPresenter
()
}
private
var
mStep
=
1
...
...
@@ -147,7 +144,7 @@ class RealAuthActivity : BaseActivity(), View.OnClickListener, RealAuthView {
showPickDialog
(
UserProfile
.
PROFILE_ZY
.
str
,
""
)
}
R
.
id
.
layout_gxbq
->
{
readyGoForResult
(
UserLabelActivity
::
class
.
java
,
USER_LABEL_REQUEST_CODE
)
readyGoForResult
(
UserLabelActivity
::
class
.
java
,
Constant
.
USER_LABEL_REQUEST_CODE
)
}
}
}
...
...
@@ -160,6 +157,8 @@ class RealAuthActivity : BaseActivity(), View.OnClickListener, RealAuthView {
tv_step_2
.
setBackgroundResource
(
R
.
drawable
.
shape_bg_market
)
tv_step_3
.
setBackgroundResource
(
R
.
drawable
.
shape_bg_market
)
tv_step_4
.
setBackgroundResource
(
R
.
drawable
.
shape_bg_market
)
isWechatQrCodeUrl
=
false
// ll_step1.visibility = View.VISIBLE
// ll_step3.visibility = View.GONE
// ll_step4.visibility = View.GONE
...
...
@@ -210,8 +209,6 @@ class RealAuthActivity : BaseActivity(), View.OnClickListener, RealAuthView {
return
}
}
}
4
->
{
if
(
TextUtils
.
isEmpty
(
wechatQrCodeUrl
))
{
...
...
@@ -464,6 +461,14 @@ class RealAuthActivity : BaseActivity(), View.OnClickListener, RealAuthView {
readAuthImageUrl
=
imgPath
!!
}
LogUtil
.
d
(
"AAAAAAA"
+
readAuthImageUrl
)
GlideUtils
.
loadImageViewNoAnim2
(
this
@RealAuthActivity
,
readAuthImageUrl
,
iv_auth
)
}
}
})
...
...
@@ -523,8 +528,8 @@ class RealAuthActivity : BaseActivity(), View.OnClickListener, RealAuthView {
}
}
else
if
(
resultCode
==
UCrop
.
RESULT_ERROR
)
{
showToast
(
"裁剪失败,请再试一下"
)
}
else
if
(
resultCode
==
USER_LABEL_REQUEST_CODE
)
{
val
arrayExtra
=
data
?.
getStringArrayExtra
(
USER_LABEL_DATA
)
}
else
if
(
resultCode
==
Constant
.
USER_LABEL_REQUEST_CODE
)
{
val
arrayExtra
=
data
?.
getStringArrayExtra
(
Constant
.
USER_LABEL_DATA
)
}
}
...
...
video/app/src/main/java/com/duben/roseplaylet/ui/activitys/ShareActivity.kt
0 → 100644
View file @
8ca14cf2
package
com.duben.roseplaylet.ui.activitys
import
android.graphics.Color
import
android.text.TextUtils
import
android.view.LayoutInflater
import
android.view.View
import
com.duben.roseplaylet.R
import
com.duben.roseplaylet.ui.activitys.base.BaseActivity
import
com.duben.library.utils.nodoubleclick.AntiShake
import
com.duben.roseplaylet.manager.UserManager
import
com.duben.roseplaylet.mvp.model.ShareRankList
import
com.duben.roseplaylet.mvp.presenters.InvitePresenter
import
com.duben.roseplaylet.mvp.views.InviteView
import
com.duben.roseplaylet.ui.adapter.ShareInviteAdapter
import
com.duben.roseplaylet.ui.adapter.ShareRankAdapter
import
com.duben.roseplaylet.ui.widgets.ShareDialog
import
com.duben.roseplaylet.utils.SpanUtils
import
com.duben.roseplaylet.utils.UcropUtils
import
kotlinx.android.synthetic.main.activity_share.*
import
kotlinx.android.synthetic.main.header_layout.*
class
ShareActivity
:
BaseActivity
(),
View
.
OnClickListener
,
InviteView
{
private
var
myShareUrl
=
""
private
val
userManager
by
lazy
{
UserManager
.
getInstance
()
}
private
val
invitePresenter
by
lazy
{
InvitePresenter
()
}
private
lateinit
var
mShareRankAdapter
:
ShareRankAdapter
private
lateinit
var
mShareInviteAdapter
:
ShareInviteAdapter
override
fun
getContentViewLayoutID
()
=
R
.
layout
.
activity_share
override
fun
isApplyKitKatTranslucency
()
=
false
override
fun
initViewsAndEvents
()
{
invitePresenter
.
attachView
(
this
)
tv_title
.
text
=
"分享有奖"
tv_title
.
setTextColor
(
Color
.
WHITE
)
iv_left_icon
.
visibility
=
View
.
VISIBLE
line
.
visibility
=
View
.
GONE
iv_left_icon
.
setImageResource
(
R
.
mipmap
.
ic_arrow_white
)
invitePresenter
.
getSharePageMsg
()
invitePresenter
.
getShareOrders
()
invitePresenter
.
getShareUrl
()
invitePresenter
.
getRuserShareCode
()
initView
()
initListener
()
}
private
fun
initView
()
{
tv_my_code
.
text
=
userManager
.
shareCode
// rcy_my_invite.adapter =
// tv_share_cash.text = SpanUtils()
// .append()
// .create()
mShareRankAdapter
=
ShareRankAdapter
()
mShareRankAdapter
.
animationEnable
=
false
val
emptyView
=
LayoutInflater
.
from
(
this
).
inflate
(
R
.
layout
.
item_empty_data
,
null
)
mShareRankAdapter
.
setEmptyView
(
emptyView
)
rcy_invite_top
.
adapter
=
mShareRankAdapter
mShareInviteAdapter
=
ShareInviteAdapter
()
mShareInviteAdapter
.
animationEnable
=
false
val
emptyView2
=
LayoutInflater
.
from
(
this
).
inflate
(
R
.
layout
.
item_empty_data
,
null
)
mShareInviteAdapter
.
setEmptyView
(
emptyView2
)
rcy_my_invite
.
adapter
=
mShareInviteAdapter
}
override
fun
onClick
(
v
:
View
?)
{
if
(
AntiShake
.
check
(
v
?.
id
))
return
when
(
v
?.
id
)
{
R
.
id
.
iv_left_icon
->
finish
()
R
.
id
.
tv_copy
->
{
showToast
(
"邀请码已复制到剪切板!"
)
UcropUtils
.
clipData
(
userManager
.
shareCode
)
}
}
}
private
fun
initListener
()
{
iv_left_icon
.
setOnClickListener
(
this
)
tv_copy
.
setOnClickListener
(
this
)
}
/**
* 图片分享
*/
private
fun
shareImgDialog
()
{
val
shareDialog
=
ShareDialog
(
this
,
myShareUrl
)
shareDialog
.
setOnShareOKListener
(
object
:
ShareDialog
.
OnShareOKListener
{
override
fun
onShareOk
()
{
}
})
val
content
=
"送你一个赚钱的新模式,\r\n快点加入跟我一起赚钱吧"
shareDialog
.
setShareAvatar
(
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_my_coin.png"
)
shareDialog
.
setShareTitle
(
"Hi,我是用户"
+
userManager
.
name
)
shareDialog
.
setShareContent
(
content
)
shareDialog
.
show
()
}
override
fun
onDestroy
()
{
super
.
onDestroy
()
invitePresenter
.
detachView
()
}
override
fun
getSharePageMsgSuc
(
shareCode
:
String
,
rUserShareCode
:
String
?,
)
{
tv_my_code
.
text
=
shareCode
if
(
TextUtils
.
isEmpty
(
rUserShareCode
))
{
et_code
.
isEnabled
=
true
}
else
{
et_code
.
isEnabled
=
false
et_code
.
setText
(
rUserShareCode
!!
)
}
}
override
fun
getSharePageMsgFail
()
{
}
override
fun
getShareOrderSuc
(
data
:
ShareRankList
)
{
mShareRankAdapter
.
setNewInstance
(
data
.
list
)
}
override
fun
getShareOrderFail
()
{
}
override
fun
getShareUrlSuc
(
url
:
String
)
{
myShareUrl
=
url
}
override
fun
getShareUrlSucFail
()
{
}
override
fun
getRuserShareCodeSuc
(
data
:
Any
)
{
}
override
fun
getRuserShareCodeSucFail
()
{
}
}
video/app/src/main/java/com/duben/roseplaylet/ui/activitys/UserLabelActivity.kt
View file @
8ca14cf2
...
...
@@ -3,7 +3,6 @@ package com.duben.roseplaylet.ui.activitys
import
android.content.Intent
import
android.graphics.Color
import
android.os.Bundle
import
android.text.TextUtils
import
android.view.View
import
com.duben.library.utils.nodoubleclick.AntiShake
import
com.duben.roseplaylet.R
...
...
@@ -12,11 +11,14 @@ import com.duben.roseplaylet.common.UserProfile
import
com.duben.roseplaylet.manager.UserManager
import
com.duben.roseplaylet.ui.activitys.base.BaseActivity
import
com.duben.roseplaylet.ui.adapter.FlowTagAdapter
import
com.google.gson.Gson
import
kotlinx.android.synthetic.main.activity_user_label.*
import
kotlinx.android.synthetic.main.header_layout.*
class
UserLabelActivity
:
BaseActivity
(),
View
.
OnClickListener
{
private
val
gson
by
lazy
{
Gson
()
}
private
var
userSex
=
UserManager
.
getInstance
().
userSex
companion
object
{
...
...
@@ -71,7 +73,7 @@ class UserLabelActivity : BaseActivity(), View.OnClickListener {
}
else
{
tv_title
.
text
=
"个性标签"
if
(
TextUtils
.
equals
(
userSex
,
"1"
)
)
{
if
(
userSex
==
1
)
{
initMale
()
}
else
{
initFeMale
()
...
...
@@ -161,30 +163,39 @@ class UserLabelActivity : BaseActivity(), View.OnClickListener {
R
.
id
.
tv_right
->
{
val
labelData
=
arrayListOf
<
String
>()
for
(
i
in
0
until
usualData
.
size
)
{
for
(
j
in
flowlayout_usual
.
selectedList
)
{
if
(
i
==
j
)
{
labelData
.
add
(
usualData
[
i
])
if
(!
isLikeFemale
)
{
for
(
i
in
0
until
usualData
.
size
)
{
for
(
j
in
flowlayout_usual
.
selectedList
)
{
if
(
i
==
j
)
{
labelData
.
add
(
usualData
[
i
])
}
}
}
}
for
(
i
in
0
until
specialData
.
size
)
{
for
(
j
in
flowlayout_special
.
selectedList
)
{
if
(
i
==
j
)
{
labelData
.
add
(
specialData
[
i
])
for
(
i
in
0
until
specialData
.
size
)
{
for
(
j
in
flowlayout_special
.
selectedList
)
{
if
(
i
==
j
)
{
labelData
.
add
(
specialData
[
i
])
}
}
}
}
else
{
for
(
i
in
0
until
likeData
.
size
)
{
for
(
j
in
flowlayout_usual
.
selectedList
)
{
if
(
i
==
j
)
{
labelData
.
add
(
likeData
[
i
])
}
}
}
}
val
sb
=
StringBuilder
()
for
(
label
in
labelData
)
{
sb
.
append
(
"$label,"
)
}
val
resultIntent
=
Intent
()
resultIntent
.
putExtra
(
RealAuthActivity
.
USER_LABEL_DATA
,
sb
.
toString
())
setResult
(
RealAuthActivity
.
USER_LABEL_REQUEST_CODE
,
resultIntent
)
onBackPressed
()
resultIntent
.
putExtra
(
Constant
.
USER_LABEL_DATA
,
gson
.
toJson
(
labelData
))
if
(
isLikeFemale
)
{
setResult
(
Constant
.
LIKE_FEMALE_LABEL_REQUEST_CODE
,
resultIntent
)
}
else
{
setResult
(
Constant
.
USER_LABEL_REQUEST_CODE
,
resultIntent
)
}
finish
()
}
}
}
...
...
video/app/src/main/java/com/duben/roseplaylet/ui/activitys/UserProfileActivity.kt
View file @
8ca14cf2
...
...
@@ -29,6 +29,7 @@ import com.duben.roseplaylet.ui.adapter.UserProfileAlbumAdapter
import
com.duben.roseplaylet.ui.adapter.base.OnItemClickListener
import
com.duben.roseplaylet.ui.preview.ImagePreviewActivity
import
com.duben.roseplaylet.ui.widgets.*
import
com.duben.roseplaylet.utils.LogUtil
import
com.duben.roseplaylet.utils.ToastUtil
import
com.duben.roseplaylet.utils.UcropUtils
import
com.google.android.material.appbar.AppBarLayout
...
...
@@ -95,8 +96,8 @@ class UserProfileActivity : BaseActivity(), View.OnClickListener, UserProfileVie
}
else
{
// 女性
view_male
.
visibility
=
View
.
GONE
tv_like_male
.
visibility
=
View
.
VISIBL
E
tv_wechat
.
visibility
=
View
.
GON
E
tv_like_male
.
visibility
=
View
.
GON
E
tv_wechat
.
visibility
=
View
.
VISIBL
E
rl_top_female
.
visibility
=
View
.
VISIBLE
fl_head_male
.
visibility
=
View
.
GONE
tv_days
.
visibility
=
View
.
GONE
...
...
@@ -132,7 +133,8 @@ class UserProfileActivity : BaseActivity(), View.OnClickListener, UserProfileVie
IMHelper
.
instance
.
startChatActivity
(
""
+
it
.
uid
)
return
}
if
(
userIsMale
)
{
// 自己是不是男性
if
(
UserManager
.
getInstance
().
userSex
==
1
)
{
// 男性 非VIP 弹解锁聊天弹框
showUnlockChatDialog
()
}
else
{
...
...
@@ -340,7 +342,7 @@ class UserProfileActivity : BaseActivity(), View.OnClickListener, UserProfileVie
override
fun
unlockInfoByCoinSuc
()
{
// 解锁金币资料后刷新页面
userProfilePresenter
.
getMorePage
(
toUid
)
//
userProfilePresenter.getMorePage(toUid)
}
override
fun
unlockWechatSuc
()
{
...
...
@@ -385,7 +387,6 @@ class UserProfileActivity : BaseActivity(), View.OnClickListener, UserProfileVie
when
(
v
?.
id
)
{
R
.
id
.
tv_send_btn
->
{
//
}
R
.
id
.
tv_copy
->
{
ToastUtil
.
show
(
MintsApplication
.
getContext
(),
"微信已复制到剪切板!"
)
...
...
@@ -393,7 +394,7 @@ class UserProfileActivity : BaseActivity(), View.OnClickListener, UserProfileVie
}
}
}
})
})
.
show
()
}
}
...
...
@@ -413,7 +414,7 @@ class UserProfileActivity : BaseActivity(), View.OnClickListener, UserProfileVie
else
->
{}
}
}
})
})
.
show
()
}
}
...
...
@@ -433,7 +434,7 @@ class UserProfileActivity : BaseActivity(), View.OnClickListener, UserProfileVie
else
->
{}
}
}
})
})
.
show
()
}
}
...
...
video/app/src/main/java/com/duben/roseplaylet/ui/activitys/base/BaseActivity.java
View file @
8ca14cf2
...
...
@@ -58,6 +58,7 @@ public abstract class BaseActivity extends BaseAppCompatActivity implements Base
||
TextUtils
.
equals
(
getClass
().
getSimpleName
(),
"UserProfileActivity"
)
||
TextUtils
.
equals
(
getClass
().
getSimpleName
(),
"MainActivity"
)
||
TextUtils
.
equals
(
getClass
().
getSimpleName
(),
"AlbumActivity"
)
||
TextUtils
.
equals
(
getClass
().
getSimpleName
(),
"ShareActivity"
)
)
{
setDarkStatusBar
();
}
else
{
...
...
video/app/src/main/java/com/duben/roseplaylet/ui/adapter/ProfileLabelAdapter.kt
0 → 100644
View file @
8ca14cf2
package
com.duben.roseplaylet.ui.adapter
import
android.widget.TextView
import
com.chad.library.adapter.base.BaseQuickAdapter
import
com.chad.library.adapter.base.viewholder.BaseViewHolder
import
com.duben.roseplaylet.R
class
ProfileLabelAdapter
:
BaseQuickAdapter
<
String
,
BaseViewHolder
>(
R
.
layout
.
item_profile_label
)
{
override
fun
convert
(
holder
:
BaseViewHolder
,
item
:
String
)
{
holder
.
getView
<
TextView
>(
R
.
id
.
tv_label
).
text
=
item
}
}
\ No newline at end of file
video/app/src/main/java/com/duben/roseplaylet/ui/adapter/ShareInviteAdapter.kt
0 → 100644
View file @
8ca14cf2
package
com.duben.roseplaylet.ui.adapter
import
android.widget.TextView
import
com.chad.library.adapter.base.BaseQuickAdapter
import
com.chad.library.adapter.base.viewholder.BaseViewHolder
import
com.duben.library.utils.GlideUtils
import
com.duben.roseplaylet.R
import
com.duben.roseplaylet.mvp.model.*
class
ShareInviteAdapter
:
BaseQuickAdapter
<
ShareInvite
,
BaseViewHolder
>(
R
.
layout
.
item_share_invite
)
{
override
fun
convert
(
holder
:
BaseViewHolder
,
item
:
ShareInvite
)
{
holder
.
getView
<
TextView
>(
R
.
id
.
tv_name
).
text
=
item
.
nickName
holder
.
getView
<
TextView
>(
R
.
id
.
tv_sex
).
text
=
""
+
item
.
sex
holder
.
getView
<
TextView
>(
R
.
id
.
tv_status
).
text
=
""
+
item
.
status
holder
.
getView
<
TextView
>(
R
.
id
.
tv_reward
).
text
=
""
+
item
.
cash
GlideUtils
.
loadImageView
(
context
,
item
.
head
,
holder
.
getView
(
R
.
id
.
iv_avatar
))
}
}
\ No newline at end of file
video/app/src/main/java/com/duben/roseplaylet/ui/adapter/ShareRankAdapter.kt
0 → 100644
View file @
8ca14cf2
package
com.duben.roseplaylet.ui.adapter
import
android.widget.TextView
import
com.chad.library.adapter.base.BaseQuickAdapter
import
com.chad.library.adapter.base.viewholder.BaseViewHolder
import
com.duben.library.utils.GlideUtils
import
com.duben.roseplaylet.R
import
com.duben.roseplaylet.mvp.model.*
class
ShareRankAdapter
:
BaseQuickAdapter
<
ShareRank
,
BaseViewHolder
>(
R
.
layout
.
item_share_rank
)
{
override
fun
convert
(
holder
:
BaseViewHolder
,
item
:
ShareRank
)
{
holder
.
getView
<
TextView
>(
R
.
id
.
tv_nickname
).
text
=
item
.
nick
holder
.
getView
<
TextView
>(
R
.
id
.
tv_invite_count
).
text
=
""
+
item
.
share
holder
.
getView
<
TextView
>(
R
.
id
.
tv_reward
).
text
=
""
+
item
.
rewardCash
holder
.
getView
<
TextView
>(
R
.
id
.
tv_rank_count
).
text
=
""
+
holder
.
adapterPosition
GlideUtils
.
loadImageView
(
context
,
item
.
head
,
holder
.
getView
(
R
.
id
.
iv_avatar
))
}
}
\ No newline at end of file
video/app/src/main/java/com/duben/roseplaylet/ui/fragment/InviteFragment.kt
View file @
8ca14cf2
...
...
@@ -7,8 +7,6 @@ import com.duben.roseplaylet.common.AppConfig
import
com.duben.roseplaylet.common.Constant
import
com.duben.roseplaylet.manager.UserManager
import
com.duben.roseplaylet.mvp.model.VedioBean
import
com.duben.roseplaylet.mvp.presenters.InvitePresenter
import
com.duben.roseplaylet.mvp.views.InviteView
import
com.duben.roseplaylet.ui.adapter.InviteAdapter
import
com.duben.roseplaylet.ui.fragment.base.LazyLoadBaseFragment
import
com.duben.roseplaylet.ui.widgets.ShareDialog
...
...
@@ -19,9 +17,7 @@ import kotlinx.android.synthetic.main.fragment_main_invite.*
* 作者:孟崔广
* 时间:2023/12/27 11:30
*/
class
InviteFragment
:
LazyLoadBaseFragment
(),
InviteView
,
View
.
OnClickListener
{
private
val
invitePresenter
by
lazy
{
InvitePresenter
()
}
class
InviteFragment
:
LazyLoadBaseFragment
(),
View
.
OnClickListener
{
private
val
userManager
by
lazy
{
UserManager
.
getInstance
()
}
private
var
inviteAdapter
:
InviteAdapter
?
=
null
...
...
@@ -30,7 +26,6 @@ class InviteFragment : LazyLoadBaseFragment(), InviteView, View.OnClickListener
override
fun
getContentViewLayoutID
()
=
R
.
layout
.
fragment_main_invite
override
fun
initViewsAndEvents
()
{
invitePresenter
.
attachView
(
this
)
btn_invite
.
setOnClickListener
(
this
)
}
...
...
@@ -43,7 +38,6 @@ class InviteFragment : LazyLoadBaseFragment(), InviteView, View.OnClickListener
override
fun
onDestroy
()
{
super
.
onDestroy
()
invitePresenter
.
detachView
()
}
override
fun
onFragmentResume
()
{
...
...
@@ -73,15 +67,16 @@ class InviteFragment : LazyLoadBaseFragment(), InviteView, View.OnClickListener
* 图片分享
*/
private
fun
shareImgDialog
()
{
val
shareDialog
=
ShareDialog
(
requireActivity
()
)
shareDialog
.
setOnShareOKListener
(
object
:
ShareDialog
.
OnShareOKListener
{
override
fun
onShareOk
()
{
}
})
val
content
=
"送你一个赚钱的新模式,\r\n快点加入跟我一起赚钱吧"
shareDialog
.
setShareAvatar
(
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_my_coin.png"
)
shareDialog
.
setShareTitle
(
"Hi,我是用户"
+
userManager
.
codeId
)
shareDialog
.
setShareContent
(
content
)
shareDialog
.
show
()
// val shareDialog = ShareDialog(requireActivity(),
)
//
shareDialog.setOnShareOKListener(object : ShareDialog.OnShareOKListener {
//
override fun onShareOk() {
//
}
//
})
//
val content = "送你一个赚钱的新模式,\r\n快点加入跟我一起赚钱吧"
//
shareDialog.setShareAvatar("https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_my_coin.png")
//
shareDialog.setShareTitle("Hi,我是用户" + userManager.codeId)
//
shareDialog.setShareContent(content)
//
shareDialog.show()
}
}
\ No newline at end of file
video/app/src/main/java/com/duben/roseplaylet/ui/fragment/MyFragment.kt
View file @
8ca14cf2
...
...
@@ -91,9 +91,7 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
}
R
.
id
.
ll_my_setting
->
{
// readyGo(SettingsActivity::class.java)
// readyGo(RealAuthActivity::class.java)
// readyGo(BasicUserProfileActivity::class.java)
readyGo
(
AlbumActivity
::
class
.
java
)
readyGo
(
RealAuthActivity
::
class
.
java
)
}
R
.
id
.
tv_my_account
,
R
.
id
.
ll_my_login
->
{
if
(!
userManager
.
userIsLogin
())
{
...
...
video/app/src/main/java/com/duben/roseplaylet/ui/widgets/RealAuthDialog.kt
View file @
8ca14cf2
...
...
@@ -15,7 +15,7 @@ class RealAuthDialog(private val context: Context) : Dialog(
context
,
R
.
style
.
dialog
)
{
private
val
lp
:
WindowManager
.
LayoutParams
private
val
iv_
phone_dialog_quit
:
ImageView
private
val
iv_
close
:
ImageView
private
val
tv_to_auth
:
TextView
init
{
...
...
@@ -34,9 +34,9 @@ class RealAuthDialog(private val context: Context) : Dialog(
// 查找View
iv_
phone_dialog_quit
=
findViewById
(
R
.
id
.
iv_phone_dialog_quit
)
iv_
close
=
findViewById
(
R
.
id
.
iv_close
)
tv_to_auth
=
findViewById
(
R
.
id
.
tv_to_auth
)
iv_
phone_dialog_quit
.
setOnClickListener
{
iv_
close
.
setOnClickListener
{
dismiss
()
}
tv_to_auth
.
setOnClickListener
{
...
...
video/app/src/main/java/com/duben/roseplaylet/ui/widgets/ShareDialog.kt
View file @
8ca14cf2
...
...
@@ -30,7 +30,10 @@ import com.duben.roseplaylet.utils.ToastUtil
import
java.util.*
import
kotlin.concurrent.schedule
class
ShareDialog
(
context
:
Context
)
:
Dialog
(
context
,
R
.
style
.
dialog
)
{
class
ShareDialog
(
context
:
Context
,
shareUrl
:
String
)
:
Dialog
(
context
,
R
.
style
.
dialog
)
{
private
val
llDialogShareWx
:
LinearLayout
private
val
llDialogShareQq
:
LinearLayout
...
...
@@ -74,8 +77,7 @@ class ShareDialog(context: Context) : Dialog(context, R.style.dialog) {
viewPager
=
findViewById
(
R
.
id
.
view_pager
)
viewPager
.
pageMargin
=
BubbleUtils
.
dp2px
(
30
)
val
SHARE_URL
:
String
=
BuildConfig
.
MainIp
+
"share/relh.html?rcode="
+
UserManager
.
getInstance
().
shareCode
val
QRCode
=
QRCodeUtil
.
createQRCode
(
SHARE_URL
,
50
)
val
QRCode
=
QRCodeUtil
.
createQRCode
(
shareUrl
,
50
)
val
inflater
=
LayoutInflater
.
from
(
context
)
val
view1
=
inflater
.
inflate
(
R
.
layout
.
item_share_view
,
null
)
val
view2
=
inflater
.
inflate
(
R
.
layout
.
item_share_view
,
null
)
...
...
@@ -96,7 +98,11 @@ class ShareDialog(context: Context) : Dialog(context, R.style.dialog) {
cb1
.
isChecked
=
true
viewPager
.
addOnPageChangeListener
(
object
:
ViewPager
.
OnPageChangeListener
{
override
fun
onPageScrolled
(
position
:
Int
,
positionOffset
:
Float
,
positionOffsetPixels
:
Int
)
{
override
fun
onPageScrolled
(
position
:
Int
,
positionOffset
:
Float
,
positionOffsetPixels
:
Int
)
{
}
override
fun
onPageSelected
(
position
:
Int
)
{
...
...
@@ -192,7 +198,7 @@ class ShareDialog(context: Context) : Dialog(context, R.style.dialog) {
wechatSp
.
shareType
=
Platform
.
SHARE_IMAGE
wechatSp
.
imageData
=
bitmap
if
(
ConstantUtil
.
isInstall
(
context
,
"com.tencent.mm"
))
{
if
(
ConstantUtil
.
isInstall
(
context
,
"com.tencent.mm"
))
{
wechat
.
platformActionListener
=
object
:
PlatformActionListener
{
override
fun
onComplete
(
p0
:
Platform
?,
p1
:
Int
,
p2
:
HashMap
<
String
,
Any
>?)
{
mOnShareCompleteListener
?.
onShareComplete
()
...
...
@@ -228,7 +234,7 @@ class ShareDialog(context: Context) : Dialog(context, R.style.dialog) {
wechatSp
.
shareType
=
Platform
.
SHARE_IMAGE
wechatSp
.
imageData
=
bitmap
if
(
ConstantUtil
.
isInstall
(
context
,
"com.tencent.mm"
))
{
if
(
ConstantUtil
.
isInstall
(
context
,
"com.tencent.mm"
))
{
wechatMoments
.
platformActionListener
=
object
:
PlatformActionListener
{
override
fun
onComplete
(
p0
:
Platform
?,
p1
:
Int
,
p2
:
HashMap
<
String
,
Any
>?)
{
mOnShareCompleteListener
?.
onShareComplete
()
...
...
video/app/src/main/java/com/duben/roseplaylet/ui/widgets/UnlockChatDialog.kt
View file @
8ca14cf2
...
...
@@ -19,6 +19,7 @@ class UnlockChatDialog(
Dialog
(
context
,
R
.
style
.
dialog
)
{
private
val
lp
:
WindowManager
.
LayoutParams
private
val
tv_unlock
:
TextView
private
val
tv_vip_btn
:
TextView
private
val
tv_vip_coin
:
TextView
private
val
iv_close
:
ImageView
...
...
@@ -38,11 +39,14 @@ class UnlockChatDialog(
setCanceledOnTouchOutside
(
false
)
setOnKeyListener
{
_
,
i
,
_
->
i
==
KeyEvent
.
KEYCODE_BACK
}
tv_unlock
=
findViewById
<
View
>(
R
.
id
.
tv_unlock
)
as
TextView
tv_vip_btn
=
findViewById
<
View
>(
R
.
id
.
tv_vip_btn
)
as
TextView
tv_vip_coin
=
findViewById
<
View
>(
R
.
id
.
tv_vip_coin
)
as
TextView
iv_close
=
findViewById
<
View
>(
R
.
id
.
iv_close
)
as
ImageView
iv_avatar
=
findViewById
<
View
>(
R
.
id
.
iv_avatar
)
as
ImageView
tv_unlock
.
text
=
"解锁私聊"
GlideUtils
.
loadImageView
(
context
,
headUrl
,
iv_avatar
)
iv_close
.
setOnClickListener
{
...
...
video/app/src/main/res/layout/activity_edit_profile.xml
View file @
8ca14cf2
...
...
@@ -70,7 +70,8 @@
<include
android:id=
"@+id/layout_jyjm"
layout=
"@layout/layout_basic_text"
/>
layout=
"@layout/layout_basic_text"
android:visibility=
"gone"
/>
<include
android:id=
"@+id/layout_gxbq"
...
...
video/app/src/main/res/layout/activity_real_auth.xml
View file @
8ca14cf2
...
...
@@ -97,7 +97,7 @@
android:layout_height=
"wrap_content"
android:layout_below=
"@id/ll_step_progress"
android:orientation=
"vertical"
android:visibility=
"
gon
e"
>
android:visibility=
"
visibl
e"
>
<TextView
android:id=
"@+id/tv_photo"
...
...
@@ -113,7 +113,7 @@
android:id=
"@+id/iv_auth"
android:layout_width=
"100dp"
android:layout_height=
"100dp"
android:layout_
marginStart=
"30dp
"
android:layout_
gravity=
"center_horizontal
"
android:layout_marginTop=
"10dp"
android:src=
"@drawable/iv_add_images_add"
/>
...
...
@@ -122,7 +122,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"30dp"
android:layout_marginTop=
"
2
0dp"
android:layout_marginTop=
"
5
0dp"
android:text=
"头像规范"
android:textColor=
"@color/white"
android:textSize=
"16sp"
/>
...
...
@@ -133,6 +133,7 @@
android:layout_height=
"wrap_content"
android:layout_marginStart=
"30dp"
android:layout_marginTop=
"10dp"
android:layout_marginEnd=
"30dp"
android:src=
"@mipmap/bg_manage_order_content"
/>
</LinearLayout>
...
...
@@ -143,7 +144,7 @@
android:layout_height=
"match_parent"
android:layout_below=
"@id/ll_step_progress"
android:orientation=
"vertical"
android:visibility=
"
visibl
e"
>
android:visibility=
"
gon
e"
>
<LinearLayout
android:layout_width=
"match_parent"
...
...
video/app/src/main/res/layout/activity_share.xml
0 → 100644
View file @
8ca14cf2
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/color_232122"
android:orientation=
"vertical"
>
<include
layout=
"@layout/header_layout"
/>
<com.duben.roseplaylet.ui.widgets.ElasticScrollView
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:fillViewport=
"true"
android:overScrollMode=
"never"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
<ImageView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:scaleType=
"fitXY"
android:src=
"@mipmap/bg_vip_1"
android:visibility=
"gone"
/>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"20dp"
android:gravity=
"center_vertical"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"我的邀请码"
android:textColor=
"@color/white"
android:textSize=
"16sp"
/>
<TextView
android:id=
"@+id/tv_my_code"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"10dp"
android:layout_marginEnd=
"10dp"
android:textColor=
"@color/color_DB6572"
android:textSize=
"16sp"
/>
<TextView
android:id=
"@+id/tv_copy"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/shape_green"
android:paddingStart=
"15dp"
android:paddingTop=
"6dp"
android:paddingEnd=
"15dp"
android:paddingBottom=
"6dp"
android:text=
"复制"
android:textColor=
"@color/white"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"45dp"
android:layout_marginStart=
"15dp"
android:layout_marginTop=
"20dp"
android:layout_marginEnd=
"15dp"
>
<TextView
android:id=
"@+id/tv_share_img"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_marginEnd=
"10dp"
android:layout_weight=
"1"
android:background=
"@drawable/shape_profile_chat"
android:gravity=
"center"
android:text=
"分享海报"
android:textSize=
"16sp"
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/tv_share_url"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_marginStart=
"10dp"
android:layout_weight=
"1"
android:background=
"@drawable/shape_profile_chat"
android:gravity=
"center"
android:text=
"分享链接"
android:textSize=
"16sp"
android:textStyle=
"bold"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
android:layout_marginStart=
"15dp"
android:layout_marginTop=
"20dp"
android:layout_marginEnd=
"15dp"
android:background=
"@drawable/shape_bg_write"
android:gravity=
"center_vertical"
android:paddingStart=
"15dp"
android:paddingEnd=
"10dp"
>
<EditText
android:id=
"@+id/et_code"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:background=
"@null"
android:hint=
"填写邀请码 (非必填)"
android:textSize=
"14sp"
/>
<TextView
android:id=
"@+id/tv_bind"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"10dp"
android:layout_marginEnd=
"10dp"
android:text=
"绑定"
android:textColor=
"@color/color_DB6572"
android:textSize=
"16sp"
/>
</LinearLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"15dp"
android:layout_marginTop=
"20dp"
android:layout_marginEnd=
"15dp"
android:background=
"@drawable/shape_bg_write"
android:paddingTop=
"20dp"
android:paddingBottom=
"30dp"
>
<TextView
android:id=
"@+id/tv_reward"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"我的奖励"
android:textColor=
"@color/black"
android:textSize=
"16sp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
android:id=
"@+id/tv_label_count"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
android:text=
"分享人数"
android:textColor=
"@color/gray"
android:textSize=
"14sp"
app:layout_constraintEnd_toStartOf=
"@id/tv_label_reward"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/tv_reward"
/>
<TextView
android:id=
"@+id/tv_label_reward"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
android:text=
"奖励"
android:textColor=
"@color/gray"
android:textSize=
"14sp"
app:layout_constraintEnd_toStartOf=
"@id/tv_label_cash"
app:layout_constraintStart_toEndOf=
"@id/tv_label_count"
app:layout_constraintTop_toBottomOf=
"@id/tv_reward"
/>
<TextView
android:id=
"@+id/tv_label_cash"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
android:text=
"可提取"
android:textColor=
"@color/gray"
android:textSize=
"14sp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@id/tv_label_reward"
app:layout_constraintTop_toBottomOf=
"@id/tv_reward"
/>
<TextView
android:id=
"@+id/tv_share_count"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
android:text=
"1人"
android:textColor=
"@color/gray"
android:textSize=
"10sp"
app:layout_constraintEnd_toStartOf=
"@id/tv_share_reward"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/tv_label_count"
/>
<TextView
android:id=
"@+id/tv_share_reward"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
android:text=
"0元"
android:textColor=
"@color/gray"
android:textSize=
"10sp"
app:layout_constraintEnd_toStartOf=
"@id/tv_share_cash"
app:layout_constraintStart_toEndOf=
"@id/tv_share_count"
app:layout_constraintTop_toBottomOf=
"@id/tv_label_count"
/>
<TextView
android:id=
"@+id/tv_share_cash"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
android:text=
"0元"
android:textColor=
"@color/gray"
android:textSize=
"10sp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@id/tv_share_reward"
app:layout_constraintTop_toBottomOf=
"@id/tv_label_count"
/>
<View
android:layout_width=
"1dp"
android:layout_height=
"50dp"
android:background=
"@color/color_F1F2F8"
app:layout_constraintBottom_toBottomOf=
"@id/tv_share_count"
app:layout_constraintEnd_toStartOf=
"@id/tv_label_reward"
app:layout_constraintStart_toEndOf=
"@id/tv_label_count"
app:layout_constraintTop_toTopOf=
"@id/tv_label_count"
/>
<View
android:layout_width=
"1dp"
android:layout_height=
"50dp"
android:background=
"@color/color_F1F2F8"
app:layout_constraintBottom_toBottomOf=
"@id/tv_share_cash"
app:layout_constraintEnd_toStartOf=
"@id/tv_label_cash"
app:layout_constraintStart_toEndOf=
"@id/tv_label_reward"
app:layout_constraintTop_toTopOf=
"@id/tv_label_cash"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"15dp"
android:layout_marginTop=
"20dp"
android:layout_marginEnd=
"15dp"
android:background=
"@drawable/shape_bg_write"
android:orientation=
"vertical"
android:paddingTop=
"20dp"
android:paddingBottom=
"30dp"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:text=
"我的邀请"
android:textColor=
"@color/black"
android:textSize=
"16sp"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"40dp"
android:layout_marginTop=
"20dp"
android:background=
"@color/color_D2D2D2"
android:gravity=
"center_vertical"
android:paddingStart=
"10dp"
>
<TextView
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1.5"
android:text=
"已邀请好友"
android:textColor=
"@color/gray"
android:textSize=
"14sp"
/>
<TextView
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
android:text=
"性别"
android:textColor=
"@color/gray"
android:textSize=
"14sp"
/>
<TextView
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
android:text=
"邀请状态"
android:textColor=
"@color/gray"
android:textSize=
"14sp"
/>
<TextView
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
android:text=
"提成(元)"
android:textColor=
"@color/gray"
android:textSize=
"14sp"
/>
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rcy_my_invite"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
android:overScrollMode=
"never"
app:layoutManager=
"androidx.recyclerview.widget.LinearLayoutManager"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"15dp"
android:layout_marginTop=
"20dp"
android:layout_marginEnd=
"15dp"
android:background=
"@drawable/shape_bg_write"
android:orientation=
"vertical"
android:paddingTop=
"10dp"
android:paddingBottom=
"30dp"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"40dp"
android:gravity=
"center_vertical"
>
<TextView
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
android:text=
"用户"
android:textColor=
"@color/gray"
android:textSize=
"14sp"
/>
<TextView
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
android:text=
"邀请人数(人)"
android:textColor=
"@color/gray"
android:textSize=
"14sp"
/>
<TextView
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
android:text=
"奖励金额(元)"
android:textColor=
"@color/gray"
android:textSize=
"14sp"
/>
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rcy_invite_top"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
android:overScrollMode=
"never"
app:layoutManager=
"androidx.recyclerview.widget.LinearLayoutManager"
/>
</LinearLayout>
</LinearLayout>
</com.duben.roseplaylet.ui.widgets.ElasticScrollView>
</LinearLayout>
video/app/src/main/res/layout/activity_user_profile.xml
View file @
8ca14cf2
...
...
@@ -12,7 +12,8 @@
android:id=
"@+id/appbar"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:theme=
"@style/ThemeOverlay.AppCompat.Dark.ActionBar"
>
android:theme=
"@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:layout_behavior=
".ui.widgets.AppBarLayoutBehavior"
>
<com.google.android.material.appbar.CollapsingToolbarLayout
android:id=
"@+id/toolbar_layout"
...
...
video/app/src/main/res/layout/dialog_profile_count.xml
View file @
8ca14cf2
...
...
@@ -72,7 +72,7 @@
android:layout_below=
"@id/ll_content"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"30dp"
android:src=
"@mipmap/ic_
clos
e"
/>
android:src=
"@mipmap/ic_
quit_whit
e"
/>
</RelativeLayout>
...
...
video/app/src/main/res/layout/dialog_see_wechat.xml
View file @
8ca14cf2
...
...
@@ -109,7 +109,7 @@
android:layout_below=
"@id/ll_content"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"30dp"
android:src=
"@mipmap/ic_
clos
e"
/>
android:src=
"@mipmap/ic_
quit_whit
e"
/>
</RelativeLayout>
...
...
video/app/src/main/res/layout/dialog_unlock_wechat.xml
View file @
8ca14cf2
...
...
@@ -22,6 +22,7 @@
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/tv_unlock"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"80dp"
...
...
@@ -81,7 +82,7 @@
android:layout_below=
"@id/ll_content"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"30dp"
android:src=
"@mipmap/ic_
clos
e"
/>
android:src=
"@mipmap/ic_
quit_whit
e"
/>
</RelativeLayout>
...
...
video/app/src/main/res/layout/fragment_main.xml
View file @
8ca14cf2
...
...
@@ -250,11 +250,11 @@
android:layout_marginEnd=
"5dp"
android:layout_marginBottom=
"120dp"
android:visibility=
"gone"
app:lottie_fileName=
"main_alipay.json"
app:lottie_autoPlay=
"true"
app:lottie_loop=
"true"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
/>
app:layout_constraintEnd_toEndOf=
"parent"
app:lottie_autoPlay=
"true"
app:lottie_fileName=
"main_alipay.json"
app:lottie_loop=
"true"
/>
<LinearLayout
...
...
video/app/src/main/res/layout/fragment_main_invite.xml
View file @
8ca14cf2
...
...
@@ -2,7 +2,8 @@
<androidx.core.widget.NestedScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
android:background=
"@color/color_232122"
>
<LinearLayout
android:layout_width=
"match_parent"
...
...
@@ -21,7 +22,7 @@
android:id=
"@+id/btn_invite"
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
android:text=
"海报分享"
></Button
>
android:text=
"海报分享"
/
>
</LinearLayout>
<LinearLayout
...
...
@@ -52,21 +53,20 @@
android:layout_height=
"match_parent"
android:layout_weight=
"1"
android:gravity=
"center"
android:text=
"邀请人数\n(人)"
></TextView
>
android:text=
"邀请人数\n(人)"
/
>
<TextView
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
android:gravity=
"center"
android:text=
"奖励金额\n(元)"
></TextView
>
android:text=
"奖励金额\n(元)"
/
>
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/recy_invite"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@color/color_F1F2F8"
android:overScrollMode=
"never"
app:layoutManager=
"androidx.recyclerview.widget.LinearLayoutManager"
/>
...
...
video/app/src/main/res/layout/item_profile_label.xml
0 → 100755
View file @
8ca14cf2
<?xml version="1.0" encoding="utf-8"?>
<TextView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/tv_label"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"5dp"
android:background=
"@drawable/shape_chat_tips"
android:gravity=
"center"
android:paddingStart=
"15dp"
android:paddingTop=
"2dp"
android:paddingEnd=
"15dp"
android:paddingBottom=
"2dp"
android:text=
"1"
android:textColor=
"@color/black"
android:textSize=
"12sp"
/>
\ No newline at end of file
video/app/src/main/res/layout/item_share_invite.xml
0 → 100755
View file @
8ca14cf2
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"40dp"
android:layout_marginBottom=
"10dp"
android:gravity=
"center_vertical"
>
<LinearLayout
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"10dp"
android:layout_weight=
"1.5"
android:gravity=
"center_vertical"
>
<com.duben.roseplaylet.ui.widgets.CircleImageView
android:id=
"@+id/iv_avatar"
android:layout_width=
"30dp"
android:layout_height=
"30dp"
android:layout_marginStart=
"6dp"
android:src=
"@mipmap/ic_my_avat"
/>
<TextView
android:id=
"@+id/tv_name"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"6dp"
android:textColor=
"@color/black"
android:textSize=
"14sp"
/>
</LinearLayout>
<TextView
android:id=
"@+id/tv_sex"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
android:textColor=
"@color/black"
android:textSize=
"14sp"
/>
<TextView
android:id=
"@+id/tv_status"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
android:textColor=
"@color/black"
android:textSize=
"14sp"
/>
<TextView
android:id=
"@+id/tv_reward"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
android:textColor=
"@color/black"
android:textSize=
"14sp"
/>
</LinearLayout>
\ No newline at end of file
video/app/src/main/res/layout/item_share_rank.xml
0 → 100755
View file @
8ca14cf2
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
>
<LinearLayout
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center_vertical"
>
<ImageView
android:id=
"@+id/iv_rank_count"
android:layout_width=
"30dp"
android:layout_height=
"30dp"
android:layout_marginStart=
"10dp"
android:src=
"@mipmap/ic_call_wx"
android:visibility=
"gone"
/>
<TextView
android:id=
"@+id/tv_rank_count"
android:layout_width=
"30dp"
android:layout_height=
"30dp"
android:gravity=
"center"
android:text=
"1"
android:textColor=
"@color/black"
android:textSize=
"14sp"
android:textStyle=
"bold"
/>
<com.duben.roseplaylet.ui.widgets.CircleImageView
android:id=
"@+id/iv_avatar"
android:layout_width=
"30dp"
android:layout_height=
"30dp"
android:layout_marginStart=
"6dp"
android:src=
"@mipmap/ic_my_avat"
/>
<TextView
android:id=
"@+id/tv_nickname"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"6dp"
android:gravity=
"center"
android:text=
"@string/app_name"
android:textColor=
"@color/black"
android:textSize=
"14sp"
/>
</LinearLayout>
<TextView
android:id=
"@+id/tv_invite_count"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
android:text=
"1000"
android:textColor=
"@color/black"
android:textSize=
"14sp"
/>
<TextView
android:id=
"@+id/tv_reward"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
android:text=
"1000"
android:textColor=
"@color/black"
android:textSize=
"14sp"
/>
</LinearLayout>
\ No newline at end of file
video/app/src/main/res/layout/layout_basic_text.xml
View file @
8ca14cf2
<?xml version="1.0" encoding="utf-8"?>
<
Relative
Layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<
Linear
Layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"60dp"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:paddingStart=
"15dp"
android:paddingEnd=
"15dp"
>
<TextView
android:id=
"@+id/label_start"
android:layout_width=
"100dp"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:text=
"QQ"
android:textColor=
"@color/gray"
android:textSize=
"18sp"
/>
<TextView
android:id=
"@+id/label_start2"
android:layout_width=
"100dp"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/label_start"
android:text=
"QQ"
android:textColor=
"@color/gray"
android:textSize=
"10sp"
android:visibility=
"gone"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"60dp"
>
<TextView
android:id=
"@+id/label_start"
android:layout_width=
"120dp"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:text=
"QQ"
android:textColor=
"@color/gray"
android:textSize=
"18sp"
/>
<TextView
android:id=
"@+id/label_start2"
android:layout_width=
"120dp"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/label_start"
android:text=
"QQ"
android:textColor=
"@color/gray"
android:textSize=
"10sp"
android:visibility=
"gone"
/>
<TextView
android:id=
"@+id/label_tv"
<TextView
android:id=
"@+id/label_tv"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_toEndOf=
"@id/label_start"
android:drawableEnd=
"@mipmap/ic_label_right"
android:gravity=
"end"
android:textColor=
"@color/white"
android:textSize=
"18sp"
/>
<View
style=
"@style/view_line_E6E6E6"
android:layout_alignParentBottom=
"true"
/>
</RelativeLayout>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rv_basic"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_toEndOf=
"@id/label_start"
android:drawableEnd=
"@mipmap/ic_label_right"
android:gravity=
"end"
android:textColor=
"@color/white"
android:textSize=
"18sp"
/>
<View
style=
"@style/view_line_E6E6E6"
android:layout_alignParentBottom=
"true"
/>
</RelativeLayout>
\ No newline at end of file
android:layout_marginTop=
"5dp"
android:visibility=
"gone"
/>
</LinearLayout>
\ No newline at end of file
video/gradle.properties
View file @
8ca14cf2
...
...
@@ -23,8 +23,8 @@ android.nonTransitiveRClass=true
#DEBUG_URL="https://test.mints-id.com/camera-api/"
#DEBUG_URL="http://cui.mints-id.com/"
#
DEBUG_URL="http://47.95.116.182:9886/"
DEBUG_URL
=
"https://api.mints-tech.cn/camera-api/"
DEBUG_URL
=
"http://47.95.116.182:9886/"
#
DEBUG_URL="https://api.mints-tech.cn/camera-api/"
RELEASE_URL="https://api.mints-tech.cn/camera-api/"
RELEASE_KEY_PASSWORD
=
mintsroseplaylet
...
...
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