Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RvApp
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
1
Merge Requests
1
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
lify
RvApp
Commits
00389b74
Commit
00389b74
authored
Nov 18, 2019
by
jianglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加邀请码手动输入的功能
parent
23ab3ea7
Changes
16
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
395 additions
and
183 deletions
+395
-183
WakeUpActivity.java
RvClient/src/main/java/com/xxfc/rv/WakeUpActivity.java
+4
-4
strings.xml
RvClient/src/sit/res/values/strings.xml
+2
-2
Cookie.java
...nt_utils/src/main/java/com/rv/component/utils/Cookie.java
+3
-0
ShareUtils.java
...tils/src/main/java/com/rv/component/utils/ShareUtils.java
+2
-0
ConfirmPwdActivity.java
...va/com/rv/home/rv/module/ui/login/ConfirmPwdActivity.java
+46
-28
LoginRvActivity.java
.../java/com/rv/home/rv/module/ui/login/LoginRvActivity.java
+13
-19
RegisteredActivity.java
...va/com/rv/home/rv/module/ui/login/RegisteredActivity.java
+29
-21
rv_act_bing_phone.xml
module_home/src/main/res/layout/rv_act_bing_phone.xml
+62
-37
rv_act_confirm_pwd.xml
module_home/src/main/res/layout/rv_act_confirm_pwd.xml
+57
-25
rv_act_registered.xml
module_home/src/main/res/layout/rv_act_registered.xml
+94
-37
strings.xml
module_home/src/main/res/values/strings.xml
+3
-3
ReceiptManager.java
plugin_im/src/main/java/com/rv/im/xmpp/ReceiptManager.java
+2
-2
MemberCenterActivity.java
...ber/src/main/java/com/rv.member/MemberCenterActivity.java
+0
-2
ShareActivity.java
plugin_share/src/main/java/com/rv/share/ShareActivity.java
+17
-1
share_bg_button_copy.xml
plugin_share/src/main/res/drawable/share_bg_button_copy.xml
+8
-0
activity_share.xml
plugin_share/src/main/res/layout/activity_share.xml
+53
-2
No files found.
RvClient/src/main/java/com/xxfc/rv/WakeUpActivity.java
View file @
00389b74
...
...
@@ -39,10 +39,10 @@ public class WakeUpActivity extends AppCompatActivity {
if
(
info
.
contains
(
"code"
))
try
{
JSONObject
object
=
new
JSONObject
(
info
);
String
inviteCode
=
object
.
optString
(
"code"
);
if
(!
TextUtils
.
isEmpty
(
inviteCode
))
{
AppCookie
.
save
(
"code"
,
inviteCode
);
}
//
String inviteCode = object.optString("code");
//
if (!TextUtils.isEmpty(inviteCode)) {
//
AppCookie.save("code", inviteCode);
//
}
String
url
=
object
.
optString
(
"url"
);
LogUtil
.
d
(
"唤醒传过来的url="
+
url
);
String
title
=
URLDecoder
.
decode
(
object
.
optString
(
"title"
),
"UTF-8"
);
...
...
RvClient/src/sit/res/values/strings.xml
View file @
00389b74
<resources>
<string
name=
"app_name"
>
滴房车(测试)
</string>
<string
name=
"share_install_key"
>
7ABKE7BEK62K22
</string>
<string
name=
"share_install_scheme"
>
pcbd5965
</string>
<string
name=
"share_install_key"
>
A7BKEFH2KFFAHE
</string>
<string
name=
"share_install_scheme"
>
fbac5442
</string>
</resources>
component_utils/src/main/java/com/rv/component/utils/Cookie.java
View file @
00389b74
...
...
@@ -5,6 +5,9 @@ import android.content.SharedPreferences;
import
java.lang.ref.WeakReference
;
/*********
* 缓存数据,账号级别的
*/
public
class
Cookie
{
private
final
static
String
COOKIE_FILE
=
"cookie"
;
...
...
component_utils/src/main/java/com/rv/component/utils/ShareUtils.java
View file @
00389b74
...
...
@@ -7,6 +7,7 @@ import android.graphics.Bitmap;
import
android.graphics.Canvas
;
import
android.graphics.Color
;
import
android.net.Uri
;
import
android.text.TextUtils
;
import
android.view.View
;
import
android.widget.ScrollView
;
import
android.widget.Toast
;
...
...
@@ -24,6 +25,7 @@ public class ShareUtils {
* @param url
*/
public
static
void
copy
(
Context
context
,
String
url
)
{
if
(
TextUtils
.
isEmpty
(
url
))
return
;
ClipboardManager
cm
=
(
ClipboardManager
)
context
.
getSystemService
(
Context
.
CLIPBOARD_SERVICE
);
ClipData
mClipData
=
ClipData
.
newRawUri
(
"Label"
,
Uri
.
parse
(
url
));
cm
.
setPrimaryClip
(
mClipData
);
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/login/ConfirmPwdActivity.java
View file @
00389b74
...
...
@@ -6,6 +6,7 @@ import android.os.Bundle;
import
android.text.Editable
;
import
android.text.SpannableStringBuilder
;
import
android.text.TextPaint
;
import
android.text.TextUtils
;
import
android.text.method.HideReturnsTransformationMethod
;
import
android.text.method.LinkMovementMethod
;
import
android.text.method.PasswordTransformationMethod
;
...
...
@@ -23,6 +24,7 @@ import com.ruiwenliu.wrapper.base.presenter.CommonPresenter;
import
com.ruiwenliu.wrapper.bean.BeanUserInfo
;
import
com.ruiwenliu.wrapper.util.listener.TextChangedListener
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.rv.component.utils.AppCookie
;
import
com.rv.home.R
;
import
com.rv.home.R2
;
import
com.rv.home.rv.module.ApiConfig
;
...
...
@@ -30,6 +32,7 @@ import com.rv.home.rv.module.basic.BaseLoginActivity;
import
com.rv.home.rv.module.ui.login.bean.RegisteredBean
;
import
com.umeng.socialize.bean.SHARE_MEDIA
;
import
java.util.LinkedHashMap
;
import
java.util.Map
;
import
butterknife.BindView
;
...
...
@@ -47,10 +50,8 @@ public class ConfirmPwdActivity extends BaseLoginActivity<CommonPresenter> {
EditText
etPwd
;
@BindView
(
R2
.
id
.
iv_clear_pwd
)
ImageView
ivClearPwd
;
@BindView
(
R2
.
id
.
et_again_pwd
)
EditText
etAgainPwd
;
@BindView
(
R2
.
id
.
iv_clear_again_pwd
)
ImageView
ivClearAgainPwd
;
@BindView
(
R2
.
id
.
et_invite_code
)
EditText
etInviteCode
;
@BindView
(
R2
.
id
.
cb_annotations
)
CheckBox
cbAnnotations
;
@BindView
(
R2
.
id
.
tv_registered
)
...
...
@@ -90,7 +91,6 @@ public class ConfirmPwdActivity extends BaseLoginActivity<CommonPresenter> {
super
.
initView
(
savedInstanceState
,
titleView
,
intent
);
titleView
.
setTitle
(
mActivity
.
getString
(
R
.
string
.
rv_edit_pwd
));
editListener
(
etPwd
);
editListener
(
etAgainPwd
);
mOpenid
=
intent
.
getStringExtra
(
"openid"
);
mHeadImg
=
intent
.
getStringExtra
(
"headImg"
);
mName
=
intent
.
getStringExtra
(
"name"
);
...
...
@@ -98,6 +98,12 @@ public class ConfirmPwdActivity extends BaseLoginActivity<CommonPresenter> {
mCode
=
intent
.
getStringExtra
(
"code"
);
mPhone
=
intent
.
getStringExtra
(
"phone"
);
mUnionid
=
intent
.
getStringExtra
(
"uid"
);
String
inviteCode
=
AppCookie
.
getStringValue
(
"code"
);
if
(!
TextUtils
.
isEmpty
(
inviteCode
))
{
etInviteCode
.
setText
(
inviteCode
);
etInviteCode
.
setEnabled
(
false
);
}
initData
();
}
...
...
@@ -165,7 +171,6 @@ public class ConfirmPwdActivity extends BaseLoginActivity<CommonPresenter> {
}
@Override
protected
void
loadData
(
Bundle
savedInstanceState
,
Intent
intent
)
{
...
...
@@ -195,19 +200,10 @@ public class ConfirmPwdActivity extends BaseLoginActivity<CommonPresenter> {
return
etPwd
.
getText
().
toString
().
trim
();
}
;
/**
* 获得再次输入密码
*
* @return
*/
private
String
getAgainPwd
()
{
return
etPwd
.
getText
().
toString
().
trim
();
private
String
getInviteCode
()
{
return
etInviteCode
.
getText
().
toString
().
trim
();
}
;
/**
* 清除编辑数据
*/
...
...
@@ -215,16 +211,12 @@ public class ConfirmPwdActivity extends BaseLoginActivity<CommonPresenter> {
text
.
setText
(
""
);
}
@OnClick
({
R2
.
id
.
iv_clear_pwd
,
R2
.
id
.
iv_clear_again_pwd
,
R2
.
id
.
tv_agreement
,
R2
.
id
.
tv_registered
})
@OnClick
({
R2
.
id
.
iv_clear_pwd
,
R2
.
id
.
tv_agreement
,
R2
.
id
.
tv_registered
})
public
void
onViewClicked
(
View
view
)
{
if
(
view
.
getId
()
==
R
.
id
.
iv_clear_pwd
)
{
pwdShow
=
!
pwdShow
;
ivClearPwd
.
setSelected
(
pwdShow
);
etPwd
.
setTransformationMethod
(
pwdShow
?
HideReturnsTransformationMethod
.
getInstance
()
:
PasswordTransformationMethod
.
getInstance
());
}
else
if
(
view
.
getId
()
==
R
.
id
.
iv_clear_again_pwd
)
{
confirmShow
=
!
confirmShow
;
ivClearAgainPwd
.
setSelected
(
confirmShow
);
etAgainPwd
.
setTransformationMethod
(
confirmShow
?
HideReturnsTransformationMethod
.
getInstance
()
:
PasswordTransformationMethod
.
getInstance
());
}
else
if
(
view
.
getId
()
==
R
.
id
.
tv_agreement
)
{
}
else
if
(
view
.
getId
()
==
R
.
id
.
tv_registered
)
{
...
...
@@ -232,16 +224,42 @@ public class ConfirmPwdActivity extends BaseLoginActivity<CommonPresenter> {
showToast
(
mActivity
.
getString
(
R
.
string
.
rv_pwd_length
));
return
;
}
if
(!
getPwd
().
equals
(
getAgainPwd
()))
{
showToast
(
mActivity
.
getString
(
R
.
string
.
rv_pwd_same
));
return
;
}
if
(
cbAnnotations
.
isChecked
()
==
false
)
{
showToast
(
mActivity
.
getString
(
R
.
string
.
rv_confirm_agreement
));
return
;
}
otherLoginBind
(
mPhone
,
mCode
,
getPwd
(),
mName
,
mHeadImg
,
mOpenid
,
2
,
mIsQQ
,
mUnionid
);
loginBind
(
mPhone
,
mCode
,
getPwd
(),
mName
,
mHeadImg
,
mOpenid
,
2
,
mIsQQ
,
mUnionid
);
}
}
/**
* 第三方登录
*
* @param username
* @param mobilecode
* @param password
* @param nickname
* @param headimgurl
* @param openid
* @param type
*/
private
void
loginBind
(
String
username
,
String
mobilecode
,
String
password
,
String
nickname
,
String
headimgurl
,
String
openid
,
int
type
,
int
isQQ
,
String
uid
)
{
Map
<
String
,
Object
>
map
=
new
LinkedHashMap
<>();
map
.
put
(
"username"
,
username
);
map
.
put
(
"mobilecode"
,
mobilecode
);
map
.
put
(
"password"
,
password
);
map
.
put
(
"nickname"
,
nickname
);
map
.
put
(
"headimgurl"
,
headimgurl
);
map
.
put
(
"openid"
,
openid
);
map
.
put
(
"type"
,
type
);
map
.
put
(
"isQQ"
,
isQQ
);
if
(
isQQ
==
0
)
{
map
.
put
(
"unionid"
,
uid
);
}
map
.
put
(
"code"
,
getInviteCode
());
mPresenter
.
postData
(
2
,
ApiConfig
.
HTTP_URL_OTHER_LOGIN_BIND
,
RegisteredBean
.
class
,
map
,
true
);
}
/**
...
...
@@ -263,7 +281,7 @@ public class ConfirmPwdActivity extends BaseLoginActivity<CommonPresenter> {
// ivClearAgainPwd.setVisibility(getAgainPwd().length() > 0 ? View.VISIBLE : View.GONE);
// break;
// }
if
(
etPwd
.
length
()
>
0
&&
etAgainPwd
.
length
()
>
0
)
{
if
(
etPwd
.
length
()
>
0
)
{
tvRegistered
.
setEnabled
(
true
);
tvRegistered
.
setSelected
(
true
);
}
else
{
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/login/LoginRvActivity.java
View file @
00389b74
...
...
@@ -21,7 +21,6 @@ import com.ruiwenliu.wrapper.util.listener.TextChangedListener;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.rv.component.utils.AppCookie
;
import
com.rv.component.utils.Cookie
;
import
com.rv.component.utils.IsAppInstall
;
import
com.rv.component.utils.LogUtil
;
import
com.rv.home.R
;
...
...
@@ -34,7 +33,6 @@ import com.ruiwenliu.wrapper.base.presenter.CommonPresenter;
import
com.rv.home.rv.module.ui.login.bean.RegisteredBean
;
import
com.rv.home.rv.module.ui.login.bean.SendCodeBean
;
import
com.sh.sdk.shareinstall.ShareInstall
;
import
com.sh.sdk.shareinstall.listener.AppGetInfoListener
;
import
com.umeng.socialize.bean.SHARE_MEDIA
;
import
com.umeng.socialize.utils.SocializeUtils
;
...
...
@@ -97,23 +95,19 @@ public class LoginRvActivity extends BaseLoginActivity<CommonPresenter> {
jumptype
=
intent
.
getIntExtra
(
"jumptype"
,
0
);
// etPhone.setText(""+mActivity.getPackageName());
initRxbus
();
ShareInstall
.
getInstance
().
getInfo
(
getIntent
(),
new
AppGetInfoListener
()
{
@Override
public
void
onGetInfoFinish
(
String
info
)
{
ShareInstall
.
getInstance
().
getInfo
(
getIntent
(),
info
->
{
// 客户端获取到的参数是json字符串格式
LogUtil
.
d
(
"ShareInstall"
,
"info = "
+
info
);
// info ="{\"from\":\"singlemessage\",\"code\":\"qRj5igja_P0101\"}";
if
(
info
.
contains
(
"code"
))
JSONObject
object
=
null
;
try
{
JSONObject
object
=
new
JSONObject
(
info
);
object
=
new
JSONObject
(
info
);
String
inviteCode
=
object
.
optString
(
"code"
);
if
(!
TextUtils
.
isEmpty
(
inviteCode
))
{
AppCookie
.
save
(
"code"
,
inviteCode
);
AppCookie
.
save
(
"code"
,
inviteCode
);
}
}
catch
(
JSONException
e
)
{
e
.
printStackTrace
();
}
}
});
}
...
...
@@ -226,7 +220,7 @@ public class LoginRvActivity extends BaseLoginActivity<CommonPresenter> {
Map
<
String
,
Object
>
map
=
new
LinkedHashMap
<>();
map
.
put
(
"username"
,
getPhone
());
map
.
put
(
"type"
,
4
);
map
.
put
(
"code"
,
AppCookie
.
getStringValue
(
"code"
));
map
.
put
(
"code"
,
AppCookie
.
getStringValue
(
"code"
));
mPresenter
.
postData
(
0
,
ApiConfig
.
HTTP_URL_SEND_CODE
,
SendCodeBean
.
class
,
map
,
true
);
}
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/login/RegisteredActivity.java
View file @
00389b74
...
...
@@ -60,10 +60,8 @@ public class RegisteredActivity extends BaseLoginActivity<CommonPresenter> {
EditText
etPwd
;
@BindView
(
R2
.
id
.
iv_clear_pwd
)
ImageView
ivClearPwd
;
@BindView
(
R2
.
id
.
et_again_pwd
)
EditText
etAgainPwd
;
@BindView
(
R2
.
id
.
iv_clear_again_pwd
)
ImageView
ivClearAgainPwd
;
@BindView
(
R2
.
id
.
et_invite_code
)
EditText
etInviteCode
;
@BindView
(
R2
.
id
.
cb_annotations
)
CheckBox
cbAnnotations
;
@BindView
(
R2
.
id
.
tv_registered
)
...
...
@@ -102,10 +100,19 @@ public class RegisteredActivity extends BaseLoginActivity<CommonPresenter> {
tvRegistered
.
setText
(
mActivity
.
getString
(
mType
==
0
?
R
.
string
.
rv_registered
:
R
.
string
.
rv_reset_pwd
));
cbAnnotations
.
setVisibility
(
mType
==
0
?
View
.
VISIBLE
:
View
.
GONE
);
tvAgreement
.
setVisibility
(
mType
==
0
?
View
.
VISIBLE
:
View
.
GONE
);
((
View
)
etInviteCode
.
getParent
()).
setVisibility
(
mType
==
0
?
View
.
VISIBLE
:
View
.
GONE
);
if
(
mType
==
0
)
{
String
inviteCode
=
AppCookie
.
getStringValue
(
"code"
);
if
(!
TextUtils
.
isEmpty
(
inviteCode
))
{
etInviteCode
.
setText
(
inviteCode
);
etInviteCode
.
setEnabled
(
false
);
}
}
editListener
(
etPhone
);
editListener
(
etPhoneCode
);
editListener
(
etPwd
);
editListener
(
et
AgainPwd
);
editListener
(
et
InviteCode
);
initData
();
}
...
...
@@ -191,7 +198,7 @@ public class RegisteredActivity extends BaseLoginActivity<CommonPresenter> {
}
}
@OnClick
({
R2
.
id
.
iv_clear_phone
,
R2
.
id
.
iv_clear_code
,
R2
.
id
.
tv_get_code
,
R2
.
id
.
iv_clear_pwd
,
R2
.
id
.
iv_clear_again_pwd
,
R2
.
id
.
tv_agreement
,
R2
.
id
.
tv_registered
})
@OnClick
({
R2
.
id
.
iv_clear_phone
,
R2
.
id
.
iv_clear_code
,
R2
.
id
.
tv_get_code
,
R2
.
id
.
iv_clear_pwd
,
R2
.
id
.
tv_agreement
,
R2
.
id
.
tv_registered
})
public
void
onViewClicked
(
View
view
)
{
if
(
view
.
getId
()
==
R
.
id
.
iv_clear_phone
)
{
clearEditData
(
etPhone
);
...
...
@@ -218,11 +225,12 @@ public class RegisteredActivity extends BaseLoginActivity<CommonPresenter> {
ivClearPwd
.
setSelected
(
confirmShow
);
etPwd
.
setTransformationMethod
(
confirmShow
?
HideReturnsTransformationMethod
.
getInstance
()
:
PasswordTransformationMethod
.
getInstance
());
}
else
if
(
view
.
getId
()
==
R
.
id
.
iv_clear_again_pwd
)
{
confirmShow
=
!
confirmShow
;
ivClearAgainPwd
.
setSelected
(
confirmShow
);
etAgainPwd
.
setTransformationMethod
(
confirmShow
?
HideReturnsTransformationMethod
.
getInstance
()
:
PasswordTransformationMethod
.
getInstance
());
}
// else if (view.getId() == R.id.iv_clear_again_pwd) {
// confirmShow = !confirmShow;
// ivClearAgainPwd.setSelected(confirmShow);
// etAgainPwd.setTransformationMethod(confirmShow ? HideReturnsTransformationMethod.getInstance() : PasswordTransformationMethod.getInstance());
// }
// else if (view.getId() == R.id.tv_agreement) {
// ARouter.getInstance().build(Constance.ACTIVITY_URL_WEBVIEW)
// .withString("title", "用户协议")
...
...
@@ -235,10 +243,10 @@ public class RegisteredActivity extends BaseLoginActivity<CommonPresenter> {
showToast
(
mActivity
.
getString
(
R
.
string
.
rv_pwd_length
));
return
;
}
if
(!
getPwd
().
equals
(
getAgainPwd
()))
{
showToast
(
mActivity
.
getString
(
R
.
string
.
rv_pwd_same
));
return
;
}
//
if (!getPwd().equals(getAgainPwd())) {
//
showToast(mActivity.getString(R.string.rv_pwd_same));
//
return;
//
}
if
(
mType
==
1
)
{
resetPwd
();
...
...
@@ -284,7 +292,7 @@ public class RegisteredActivity extends BaseLoginActivity<CommonPresenter> {
map
.
put
(
"username"
,
getPhone
());
map
.
put
(
"mobilecode"
,
getCode
());
map
.
put
(
"password"
,
getPwd
());
map
.
put
(
"code"
,
AppCookie
.
getStringValue
(
"code"
));
map
.
put
(
"code"
,
getInviteCode
(
));
mPresenter
.
postData
(
RvFrameConfig
.
AUTH_POST
,
1
,
ApiConfig
.
HTTP_URL_USER_REGISTER
,
RegisteredBean
.
class
,
map
,
headMap
,
true
);
}
...
...
@@ -334,8 +342,8 @@ public class RegisteredActivity extends BaseLoginActivity<CommonPresenter> {
*
* @return
*/
private
String
get
AgainPwd
()
{
return
et
AgainPwd
.
getText
().
toString
().
trim
();
private
String
get
InviteCode
()
{
return
et
InviteCode
.
getText
().
toString
().
trim
();
}
;
...
...
@@ -362,9 +370,9 @@ public class RegisteredActivity extends BaseLoginActivity<CommonPresenter> {
}
else
if
(
editText
.
getId
()
==
R
.
id
.
et_phone_code
)
{
ivClearCode
.
setVisibility
(
getCode
().
length
()
>
0
?
View
.
VISIBLE
:
View
.
GONE
);
}
else
if
(
editText
.
getId
()
==
R
.
id
.
et_pwd
)
{
ivClearPwd
.
setVisibility
(
getPwd
().
length
()
>
0
?
View
.
VISIBLE
:
View
.
GONE
);
}
else
if
(
editText
.
getId
()
==
R
.
id
.
et_
again_pwd
)
{
ivClearAgainPwd
.
setVisibility
(
getAgainPwd
().
length
()
>
0
?
View
.
VISIBLE
:
View
.
GONE
);
//
ivClearPwd.setVisibility(getPwd().length() > 0 ? View.VISIBLE : View.GONE);
}
else
if
(
editText
.
getId
()
==
R
.
id
.
et_
invite_code
)
{
//
ivClearAgainPwd.setVisibility(getAgainPwd().length() > 0 ? View.VISIBLE : View.GONE);
}
// switch (editText.getId()) {
// case R.id.et_phone:
...
...
@@ -380,7 +388,7 @@ public class RegisteredActivity extends BaseLoginActivity<CommonPresenter> {
// ivClearAgainPwd.setVisibility(getAgainPwd().length() > 0 ? View.VISIBLE : View.GONE);
// break;
// }
if
(
etPhone
.
length
()
>
0
&&
etPhoneCode
.
length
()
>
0
&&
etPwd
.
length
()
>
0
&&
etAgainPwd
.
length
()
>
0
)
{
if
(
etPhone
.
length
()
>
0
&&
etPhoneCode
.
length
()
>
0
&&
etPwd
.
length
()
>
0
)
{
tvRegistered
.
setEnabled
(
true
);
tvRegistered
.
setSelected
(
true
);
}
else
{
...
...
module_home/src/main/res/layout/rv_act_bing_phone.xml
View file @
00389b74
...
...
@@ -5,12 +5,13 @@
android:layout_height=
"match_parent"
android:orientation=
"vertical"
tools:context=
".rv.module.ui.login.BingPhoneActivity"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_50"
android:layout_marginLeft=
"@dimen/size_
3
0"
android:layout_margin
Right
=
"@dimen/size_30"
android:layout_margin
Top=
"@dimen/size_5
0"
android:layout_marginLeft=
"@dimen/size_
2
0"
android:layout_margin
Top
=
"@dimen/size_30"
android:layout_margin
Right=
"@dimen/size_2
0"
android:background=
"@drawable/shape_rv_input"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
...
...
@@ -19,80 +20,105 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginLeft=
"@dimen/dp_10"
android:text=
"*"
android:textColor=
"@color/colorAuxiliaryRed"
android:textSize=
"@dimen/text_14"
android:visibility=
"visible"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:text=
"手机号"
android:textColor=
"@color/text_Main"
android:text=
"@string/rv_phone_type"
android:textSize=
"@dimen/text_16"
/>
<View
android:layout_width=
"@dimen/size_half"
android:layout_height=
"@dimen/size_30"
android:layout_marginLeft=
"@dimen/size_8"
android:background=
"@color/colorMain"
/>
<EditText
android:id=
"@+id/et_phone"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@null"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_weight=
"1"
android:background=
"@null"
android:gravity=
"center_vertical"
android:hint=
"@string/rv_phone_hint"
android:inputType=
"phone"
android:maxLength=
"11"
android:id=
"@+id/et_phone"
android:layout_weight=
"1"
android:maxLines=
"1"
android:textColorHint=
"@color/colorGray"
android:textSize=
"@dimen/text_16"
/>
<ImageView
android:id=
"@+id/iv_clear_phone"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:id=
"@+id/iv_clear_phone"
android:visibility=
"gone"
android:padding=
"@dimen/size_15"
android:src=
"@drawable/comment_publisher_clear"
/>
android:visibility=
"gone"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_50"
android:layout_marginLeft=
"@dimen/size_
3
0"
android:layout_margin
Right=
"@dimen/size_30
"
android:layout_margin
Top=
"@dimen/size_3
0"
android:layout_marginLeft=
"@dimen/size_
2
0"
android:layout_margin
Top=
"13dp
"
android:layout_margin
Right=
"@dimen/size_2
0"
android:background=
"@drawable/shape_rv_input"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"@dimen/dp_10"
android:text=
"*"
android:textColor=
"@color/colorAuxiliaryRed"
android:textSize=
"@dimen/text_14"
android:visibility=
"visible"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:text=
"验证码"
android:textColor=
"@color/text_Main"
android:textSize=
"@dimen/text_16"
/>
<EditText
android:id=
"@+id/et_phone_code"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@null"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_weight=
"1"
android:background=
"@null"
android:gravity=
"center_vertical"
android:hint=
"@string/rv_phone_code"
android:maxLength=
"6"
android:id=
"@+id/et_phone_code"
android:inputType=
"number"
android:
layout_weight=
"1
"
android:
maxLength=
"6
"
android:maxLines=
"1"
android:textColorHint=
"@color/colorGray"
android:textSize=
"@dimen/text_16"
/>
<ImageView
android:id=
"@+id/iv_clear_code"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:id=
"@+id/iv_clear_code"
android:padding=
"@dimen/size_15"
android:visibility=
"gone"
android:src=
"@drawable/comment_publisher_clear"
/>
android:visibility=
"gone"
/>
<View
android:layout_width=
"@dimen/size_half"
android:layout_height=
"@dimen/size_30"
android:layout_marginRight=
"@dimen/size_8"
android:background=
"@color/colorMain"
/>
<TextView
android:id=
"@+id/tv_get_code"
android:layout_width=
"@dimen/size_100"
android:layout_height=
"match_parent"
android:id=
"@+id/tv_get_code"
android:layout_centerVertical=
"true"
android:gravity=
"center"
...
...
@@ -102,18 +128,17 @@
</LinearLayout>
<TextView
android:id=
"@+id/tv_bind"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_50"
android:layout_marginLeft=
"@dimen/size_30"
android:layout_marginTop=
"27dp"
android:layout_marginRight=
"@dimen/size_30"
android:layout_height=
"@dimen/size_50"
android:textColor=
"@color/colorWrite"
android:text=
"@string/rv_bind"
android:textSize=
"@dimen/size_16"
android:id=
"@+id/tv_bind"
android:gravity=
"center"
android:enabled=
"false"
android:background=
"@drawable/selector_rv_button"
android:layout_marginTop=
"@dimen/size_40"
/>
android:enabled=
"false"
android:gravity=
"center"
android:text=
"@string/rv_bind"
android:textColor=
"@color/colorWrite"
android:textSize=
"@dimen/size_16"
/>
</LinearLayout>
module_home/src/main/res/layout/rv_act_confirm_pwd.xml
View file @
00389b74
...
...
@@ -9,18 +9,36 @@
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_50"
android:layout_marginLeft=
"@dimen/size_
3
0"
android:layout_marginTop=
"@dimen/size_
2
0"
android:layout_marginRight=
"@dimen/size_
3
0"
android:layout_marginLeft=
"@dimen/size_
2
0"
android:layout_marginTop=
"@dimen/size_
3
0"
android:layout_marginRight=
"@dimen/size_
2
0"
android:background=
"@drawable/shape_rv_input"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"@dimen/dp_10"
android:text=
"*"
android:textColor=
"@color/colorAuxiliaryRed"
android:textSize=
"@dimen/text_14"
android:visibility=
"visible"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:text=
"密码 "
android:textColor=
"@color/text_Main"
android:textSize=
"@dimen/text_16"
/>
<EditText
android:id=
"@+id/et_pwd"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"
@dimen/size_15
"
android:layout_marginLeft=
"
13dp
"
android:layout_weight=
"1"
android:background=
"@null"
android:gravity=
"center_vertical"
...
...
@@ -33,9 +51,12 @@
<ImageView
android:id=
"@+id/iv_clear_pwd"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:padding=
"@dimen/size_15"
android:layout_width=
"41dp"
android:layout_height=
"wrap_content"
android:paddingLeft=
"@dimen/dp_10"
android:paddingTop=
"@dimen/dp_10"
android:paddingRight=
"@dimen/size_18"
android:paddingBottom=
"@dimen/dp_10"
android:src=
"@drawable/selector_rv_pwd"
/>
</LinearLayout>
...
...
@@ -43,43 +64,54 @@
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_50"
android:layout_marginLeft=
"@dimen/size_
3
0"
android:layout_marginTop=
"
@dimen/size_20
"
android:layout_marginRight=
"@dimen/size_
3
0"
android:layout_marginLeft=
"@dimen/size_
2
0"
android:layout_marginTop=
"
13dp
"
android:layout_marginRight=
"@dimen/size_
2
0"
android:background=
"@drawable/shape_rv_input"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"@dimen/dp_10"
android:text=
"*"
android:textColor=
"@color/colorAuxiliaryRed"
android:textSize=
"@dimen/text_14"
android:visibility=
"invisible"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:text=
"邀请码"
android:textColor=
"@color/text_Main"
android:textSize=
"@dimen/text_16"
/>
<EditText
android:id=
"@+id/et_again_pwd"
android:digits=
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
android:id=
"@+id/et_invite_code"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"
@dimen/size_15
"
android:layout_marginLeft=
"
13dp
"
android:layout_weight=
"1"
android:background=
"@null"
android:gravity=
"center_vertical"
android:hint=
"@string/rv_pwd_again_hint"
android:inputType=
"textPassword"
android:hint=
"请输入邀请码(选填)"
android:maxLength=
"16"
android:maxLines=
"1"
android:textColorHint=
"@color/colorGray"
android:textSize=
"@dimen/text_16"
/>
<ImageView
android:id=
"@+id/iv_clear_again_pwd"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:padding=
"@dimen/size_15"
android:src=
"@drawable/selector_rv_pwd"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_20"
android:layout_marginTop=
"13dp"
android:layout_marginRight=
"@dimen/size_20"
android:gravity=
"center_vertical"
android:layout_marginLeft=
"@dimen/size_30"
android:layout_marginTop=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/size_30"
android:orientation=
"horizontal"
>
<CheckBox
...
...
@@ -104,7 +136,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_50"
android:layout_marginLeft=
"@dimen/size_30"
android:layout_marginTop=
"
@dimen/size_40
"
android:layout_marginTop=
"
27dp
"
android:layout_marginRight=
"@dimen/size_30"
android:background=
"@drawable/selector_rv_button"
android:enabled=
"false"
...
...
module_home/src/main/res/layout/rv_act_registered.xml
View file @
00389b74
...
...
@@ -9,9 +9,9 @@
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_50"
android:layout_marginLeft=
"@dimen/size_
3
0"
android:layout_marginLeft=
"@dimen/size_
2
0"
android:layout_marginTop=
"@dimen/size_50"
android:layout_marginRight=
"@dimen/size_
3
0"
android:layout_marginRight=
"@dimen/size_
2
0"
android:background=
"@drawable/shape_rv_input"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
...
...
@@ -20,22 +20,25 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"@dimen/size_15"
android:text=
"@string/rv_phone_type"
android:layout_marginLeft=
"@dimen/dp_10"
android:text=
"*"
android:textColor=
"@color/colorAuxiliaryRed"
android:textSize=
"@dimen/text_14"
android:visibility=
"visible"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:text=
"手机号"
android:textColor=
"@color/text_Main"
android:textSize=
"@dimen/text_16"
/>
<View
android:layout_width=
"@dimen/size_half"
android:layout_height=
"@dimen/size_30"
android:layout_marginLeft=
"@dimen/size_8"
android:background=
"@color/colorMain"
/>
<EditText
android:id=
"@+id/et_phone"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"
@dimen/size_15
"
android:layout_marginLeft=
"
13dp
"
android:layout_weight=
"1"
android:background=
"@null"
android:gravity=
"center_vertical"
...
...
@@ -58,18 +61,36 @@
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_50"
android:layout_marginLeft=
"@dimen/size_
3
0"
android:layout_marginLeft=
"@dimen/size_
2
0"
android:layout_marginTop=
"@dimen/size_20"
android:layout_marginRight=
"@dimen/size_
3
0"
android:layout_marginRight=
"@dimen/size_
2
0"
android:background=
"@drawable/shape_rv_input"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"@dimen/dp_10"
android:text=
"*"
android:textColor=
"@color/colorAuxiliaryRed"
android:textSize=
"@dimen/text_14"
android:visibility=
"visible"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:text=
"验证码"
android:textColor=
"@color/text_Main"
android:textSize=
"@dimen/text_16"
/>
<EditText
android:id=
"@+id/et_phone_code"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"
@dimen/size_15
"
android:layout_marginLeft=
"
13dp
"
android:layout_weight=
"1"
android:background=
"@null"
android:gravity=
"center_vertical"
...
...
@@ -89,10 +110,12 @@
android:visibility=
"gone"
/>
<View
android:layout_marginBottom=
"@dimen/dp_10"
android:layout_marginTop=
"@dimen/dp_10"
android:layout_width=
"@dimen/size_half"
android:layout_height=
"
@dimen/size_30
"
android:layout_height=
"
wrap_content
"
android:layout_marginRight=
"@dimen/size_8"
android:background=
"@color/
colorMain
"
/>
android:background=
"@color/
textGray
"
/>
<TextView
android:id=
"@+id/tv_get_code"
...
...
@@ -109,18 +132,36 @@
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_50"
android:layout_marginLeft=
"@dimen/size_
3
0"
android:layout_marginLeft=
"@dimen/size_
2
0"
android:layout_marginTop=
"@dimen/size_20"
android:layout_marginRight=
"@dimen/size_
3
0"
android:layout_marginRight=
"@dimen/size_
2
0"
android:background=
"@drawable/shape_rv_input"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"@dimen/dp_10"
android:text=
"*"
android:textColor=
"@color/colorAuxiliaryRed"
android:textSize=
"@dimen/text_14"
android:visibility=
"visible"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:text=
"密码 "
android:textColor=
"@color/text_Main"
android:textSize=
"@dimen/text_16"
/>
<EditText
android:id=
"@+id/et_pwd"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"
@dimen/size_15
"
android:layout_marginLeft=
"
13dp
"
android:layout_weight=
"1"
android:background=
"@null"
android:gravity=
"center_vertical"
...
...
@@ -133,9 +174,12 @@
<ImageView
android:id=
"@+id/iv_clear_pwd"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:padding=
"@dimen/size_15"
android:layout_width=
"41dp"
android:layout_height=
"wrap_content"
android:paddingLeft=
"@dimen/dp_10"
android:paddingTop=
"@dimen/dp_10"
android:paddingRight=
"@dimen/size_18"
android:paddingBottom=
"@dimen/dp_10"
android:src=
"@drawable/selector_rv_pwd"
/>
</LinearLayout>
...
...
@@ -143,44 +187,57 @@
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_50"
android:layout_marginLeft=
"@dimen/size_
3
0"
android:layout_marginLeft=
"@dimen/size_
2
0"
android:layout_marginTop=
"@dimen/size_20"
android:layout_marginRight=
"@dimen/size_
3
0"
android:layout_marginRight=
"@dimen/size_
2
0"
android:background=
"@drawable/shape_rv_input"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"@dimen/dp_10"
android:text=
"*"
android:textColor=
"@color/colorAuxiliaryRed"
android:textSize=
"@dimen/text_14"
android:visibility=
"invisible"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:text=
"邀请码"
android:textColor=
"@color/text_Main"
android:textSize=
"@dimen/text_16"
/>
<EditText
android:id=
"@+id/et_again_pwd"
android:digits=
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
android:id=
"@+id/et_invite_code"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"
@dimen/size_15
"
android:layout_marginLeft=
"
13dp
"
android:layout_weight=
"1"
android:background=
"@null"
android:gravity=
"center_vertical"
android:hint=
"@string/rv_pwd_again_hint"
android:inputType=
"textPassword"
android:hint=
"请输入邀请码(非必填)"
android:maxLength=
"16"
android:maxLines=
"1"
android:textColorHint=
"@color/colorGray"
android:textSize=
"@dimen/text_16"
/>
<ImageView
android:id=
"@+id/iv_clear_again_pwd"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:padding=
"@dimen/size_15"
android:src=
"@drawable/selector_rv_pwd"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
android:layout_marginLeft=
"@dimen/size_30"
android:layout_marginLeft=
"@dimen/size_20"
android:layout_marginTop=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/size_30"
android:layout_marginRight=
"@dimen/size_20"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<CheckBox
...
...
module_home/src/main/res/values/strings.xml
View file @
00389b74
...
...
@@ -5,8 +5,8 @@
<string
name=
"take_photo"
>
拍照
</string>
<string
name=
"album"
>
手机相册
</string>
<string
name=
"rv_phone_login"
>
手机登录
</string>
<string
name=
"rv_phone_hint"
>
请输入
手机号
</string>
<string
name=
"rv_phone_code"
>
请输入验证码
</string>
<string
name=
"rv_phone_hint"
>
请输入
11数字的手机号码
</string>
<string
name=
"rv_phone_code"
>
请输入
短信
验证码
</string>
<string
name=
"rv_phone_type"
>
+86
</string>
<string
name=
"rv_get_code"
>
获取验证码
</string>
<string
name=
"rv_login"
>
登录
</string>
...
...
@@ -17,7 +17,7 @@
<string
name=
"rv_login_rest"
>
重新获取
</string>
<string
name=
"rv_login_authorization_failure"
>
第三方登录失败
</string>
<string
name=
"rv_login_success"
>
登录成功
</string>
<string
name=
"rv_pwd_hint"
>
请输入密码,
至少8位数字或字母
</string>
<string
name=
"rv_pwd_hint"
>
至少8位数字或字母
</string>
<string
name=
"rv_pwd_again_hint"
>
请再次输入密码
</string>
<string
name=
"rv_registered"
>
注册
</string>
<string
name=
"rv_registered_annotations"
>
注册即表示同意滴房车
</string>
...
...
plugin_im/src/main/java/com/rv/im/xmpp/ReceiptManager.java
View file @
00389b74
...
...
@@ -42,7 +42,7 @@ public class ReceiptManager {
}
ReceiptObj
obj
=
mReceiptMap
.
get
(
packetId
);
// 接收到message先从map中去除对应键值的消息
if
(
obj
==
null
||
obj
.
msg
==
null
)
{
// 没有取出表示没有该消息
if
(
obj
==
null
||
obj
.
msg
==
null
)
{
// 没有取出表示没有该消息
return
;
}
...
...
@@ -81,7 +81,7 @@ public class ReceiptManager {
obj
.
msg
=
xmppMessage
;
obj
.
sendType
=
sendType
;
obj
.
Read_msg_pid
=
content
;
mReceiptMap
.
put
(
xmppMessage
.
getPackId
(),
obj
);
// 记录一条新发送出去的消息(还没有接收到回执)
mReceiptMap
.
put
(
xmppMessage
.
getPackId
(),
obj
);
// 记录一条新发送出去的消息(还没有接收到回执)
android
.
os
.
Message
handlerMsg
=
mReceiptMapHandler
.
obtainMessage
(
RECEIPT_NO
);
// 默认先标记没有接收到回执
handlerMsg
.
obj
=
xmppMessage
.
getPackId
();
...
...
plugin_member/src/main/java/com/rv.member/MemberCenterActivity.java
View file @
00389b74
...
...
@@ -8,7 +8,6 @@ import android.support.annotation.Nullable;
import
android.text.TextUtils
;
import
android.util.Log
;
import
android.view.View
;
import
android.widget.LinearLayout
;
import
android.widget.TextView
;
import
com.alibaba.android.arouter.launcher.ARouter
;
...
...
@@ -38,7 +37,6 @@ import com.rv.member.presenter.MemberPresenter;
import
com.rv.component.utils.RvCache
;
import
com.rv.component.utils.CacheEnum
;
import
com.rv.member.view.MemberCompareView
;
import
com.rv.member.view.MemberItemView
;
import
com.rv.member.view.MemberTopView
;
import
com.rv.tourism.bean.BeanTourOrderAliPay
;
import
com.tencent.mm.opensdk.openapi.IWXAPI
;
...
...
plugin_share/src/main/java/com/rv/share/ShareActivity.java
View file @
00389b74
...
...
@@ -10,6 +10,7 @@ import android.text.Spanned;
import
android.text.TextUtils
;
import
android.text.style.TextAppearanceSpan
;
import
android.view.View
;
import
android.widget.Button
;
import
android.widget.ImageView
;
import
android.widget.TextView
;
...
...
@@ -20,8 +21,10 @@ import com.ruiwenliu.wrapper.base.BaseBean;
import
com.ruiwenliu.wrapper.base.BaseStatusActivity
;
import
com.ruiwenliu.wrapper.util.glide.GlideManager
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.rv.component.utils.AppCookie
;
import
com.rv.component.utils.Cookie
;
import
com.rv.component.utils.DisplayUtil
;
import
com.rv.component.utils.ShareUtils
;
import
com.rv.home.rv.module.ApiConfig
;
import
com.rv.share.bean.PersonShareBean
;
import
com.rv.share.presenter.SharePresenter
;
...
...
@@ -55,6 +58,10 @@ public class ShareActivity extends BaseStatusActivity<SharePresenter> {
TextView
tvParentPhone
;
@BindView
(
R2
.
id
.
tv_ruler
)
TextView
tvRuler
;
@BindView
(
R2
.
id
.
tv_share_code
)
TextView
tvShareCode
;
@BindView
(
R2
.
id
.
btn_code_copy
)
Button
btnCodeCopy
;
@BindView
(
R2
.
id
.
tv_more_detail
)
TextView
tvMoreDetail
;
...
...
@@ -116,6 +123,13 @@ public class ShareActivity extends BaseStatusActivity<SharePresenter> {
@Override
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
titleView
.
setTitle
(
"推广有奖"
);
String
userCode
=
Cookie
.
getStringValue
(
this
,
SPConstance
.
USER_JSON_CODE
);
if
(
TextUtils
.
isEmpty
(
userCode
))
{
((
View
)
(
tvShareCode
.
getParent
().
getParent
())).
setVisibility
(
View
.
GONE
);
}
else
{
((
View
)
(
tvShareCode
.
getParent
().
getParent
())).
setVisibility
(
View
.
VISIBLE
);
tvShareCode
.
setText
(
userCode
);
}
}
private
void
getPersonShareInfo
()
{
...
...
@@ -127,7 +141,7 @@ public class ShareActivity extends BaseStatusActivity<SharePresenter> {
}
@OnClick
({
R2
.
id
.
tv_weixin
,
R2
.
id
.
tv_weixin_circle
,
R2
.
id
.
tv_bill
,
R2
.
id
.
tv_more
,
R2
.
id
.
tv_more_detail
,
R2
.
id
.
ll_activation
,
R2
.
id
.
ll_comein
,
R2
.
id
.
ll_invite
,
R2
.
id
.
tv_ruler
})
@OnClick
({
R2
.
id
.
tv_weixin
,
R2
.
id
.
tv_weixin_circle
,
R2
.
id
.
tv_bill
,
R2
.
id
.
tv_more
,
R2
.
id
.
tv_more_detail
,
R2
.
id
.
ll_activation
,
R2
.
id
.
ll_comein
,
R2
.
id
.
ll_invite
,
R2
.
id
.
tv_ruler
,
R2
.
id
.
btn_code_copy
})
public
void
onViewClicked
(
View
view
)
{
int
id
=
view
.
getId
();
if
(
TextUtils
.
isEmpty
(
shareUrl
))
{
...
...
@@ -153,6 +167,8 @@ public class ShareActivity extends BaseStatusActivity<SharePresenter> {
}
else
if
(
id
==
R
.
id
.
tv_ruler
)
{
String
url
=
RvFrameConfig
.
HOST_H5_DETAIL
+
"/h5/appHtml/view/promotionAward.html"
;
startActivity
(
WebViewActivity
.
getIntent
(
this
,
url
,
"推广有奖规则"
));
}
else
if
(
id
==
R
.
id
.
btn_code_copy
)
{
ShareUtils
.
copy
(
getApplicationContext
(),
tvShareCode
.
getText
().
toString
().
trim
());
}
}
...
...
plugin_share/src/main/res/drawable/share_bg_button_copy.xml
0 → 100644
View file @
00389b74
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"30dp"
/>
<solid
android:color=
"@color/white"
/>
<stroke
android:width=
"@dimen/size_1"
android:color=
"@color/gray_FFB74B"
/>
</shape>
\ No newline at end of file
plugin_share/src/main/res/layout/activity_share.xml
View file @
00389b74
...
...
@@ -46,7 +46,59 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_10"
android:layout_marginTop=
"@dimen/dp_10"
android:layout_marginRight=
"@dimen/size_10"
android:layout_marginBottom=
"@dimen/dp_10"
app:cardCornerRadius=
"5dp"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:layout_marginLeft=
"@dimen/dp_10"
android:layout_marginTop=
"@dimen/size_16"
android:layout_marginBottom=
"@dimen/size_16"
android:text=
"我的邀请码"
android:textColor=
"@color/textMain"
android:textSize=
"@dimen/sp_14"
/>
<TextView
android:id=
"@+id/tv_share_code"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_toLeftOf=
"@id/btn_code_copy"
android:text=
"TJKLLDS"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_12"
/>
<Button
android:id=
"@+id/btn_code_copy"
android:layout_width=
"53dp"
android:layout_height=
"23dp"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"@dimen/dp_10"
android:layout_marginRight=
"@dimen/dp_10"
android:background=
"@drawable/share_bg_button_copy"
android:gravity=
"center"
android:text=
"复制"
android:textColor=
"@color/gray_FFB74B"
android:textSize=
"@dimen/sp_12"
/>
</RelativeLayout>
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_10"
android:layout_marginRight=
"@dimen/size_10"
android:layout_marginBottom=
"@dimen/size_10"
android:background=
"@color/white"
...
...
@@ -216,8 +268,7 @@
android:id=
"@+id/tv_person_inval"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center"
/>
android:gravity=
"center"
/>
<TextView
android:layout_width=
"wrap_content"
...
...
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