Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_xunmi
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_xunmi
Commits
8cf12630
Commit
8cf12630
authored
Aug 10, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
21e3c4c4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
11 deletions
+17
-11
Constant.java
...on/app/src/main/java/com/mints/xunmi/common/Constant.java
+4
-2
UserManager.java
...pp/src/main/java/com/mints/xunmi/manager/UserManager.java
+11
-9
fragment_main_my.xml
position/app/src/main/res/layout/fragment_main_my.xml
+2
-0
No files found.
position/app/src/main/java/com/mints/xunmi/common/Constant.java
View file @
8cf12630
...
...
@@ -7,6 +7,8 @@ import com.mints.xunmi.utils.CommonUtils;
import
com.mints.xunmi.manager.UserManager
;
public
interface
Constant
{
String
XUNMI_NAME
=
"xunmi"
;
/**
* 获取TAGNAME
*/
...
...
@@ -84,8 +86,8 @@ public interface Constant {
String
FIRST_DEVICE_FLAG
=
"first_device_flag"
;
// 固定套餐onePrice 多价格套餐fourPrice
String
PAY_PAGE_TYPE
=
"pay_page_type"
;
String
PRICE_TYPE
=
"priceType"
;
String
PAY_PAGE_TYPE
=
XUNMI_NAME
+
"pay_page_type"
;
String
PRICE_TYPE
=
XUNMI_NAME
+
"priceType"
;
String
SMS_CONTENT
=
"您的好友"
+
UserManager
.
getInstance
().
getMobile
()
+
",要添加你为【寻蜜】的紧急联系人,立即下载查看吧"
+
BuildConfig
.
MainIp
+
"share/shareFriend.html?channel="
+
CommonUtils
.
getAppMetaData
(
MintsApplication
.
getContext
(),
"CHANNEL_NAME"
);
String
SHARE_TITLE
=
"寻蜜"
;
...
...
position/app/src/main/java/com/mints/xunmi/manager/UserManager.java
View file @
8cf12630
...
...
@@ -18,38 +18,40 @@ public class UserManager {
private
static
UserManager
_inst
;
private
AppPreferences
ps
;
public
static
final
String
tempName
=
"xunmi"
;
/**
* 游客 or 登录用户
*/
private
static
final
String
IS_TEMP_USER
=
"is_temp_user"
;
private
static
final
String
IS_TEMP_USER
=
tempName
+
"is_temp_user"
;
/**
* 用户ID
*/
private
static
final
String
USER_ID
=
"userId"
;
private
static
final
String
USER_ID
=
tempName
+
"userId"
;
/**
* 登陆状态ID
*/
private
static
final
String
TOKEN_ID
=
"tokenId"
;
private
static
final
String
TOKEN_ID
=
tempName
+
"tokenId"
;
/**
* 手机号
*/
private
static
final
String
MOBILE
=
"mobile"
;
private
static
final
String
MOBILE
=
tempName
+
"mobile"
;
/**
* 姓名
*/
private
static
final
String
REAL_NAME
=
"realName"
;
private
static
final
String
REAL_NAME
=
tempName
+
"realName"
;
/**
* vip是否有效
*/
private
static
final
String
VIP_FLAG
=
"vipFlag"
;
private
static
final
String
VIP_FLAG
=
tempName
+
"vipFlag"
;
/**
* vip是否永久
*/
private
static
final
String
VIP_FOREVER
=
"VIP_FOREVER"
;
private
static
final
String
VIP_FOREVER
=
tempName
+
"VIP_FOREVER"
;
private
static
final
String
CDK
=
"CDK"
;
private
static
final
String
CDK
=
tempName
+
"CDK"
;
private
static
final
String
CREATE_TIME
=
"CREATE_TIME"
;
private
static
final
String
CREATE_TIME
=
tempName
+
"CREATE_TIME"
;
public
static
UserManager
getInstance
()
{
...
...
position/app/src/main/res/layout/fragment_main_my.xml
View file @
8cf12630
...
...
@@ -282,6 +282,7 @@
android:background=
"#E1E1E1"
/>
<RelativeLayout
android:visibility=
"gone"
android:id=
"@+id/rlMyLegalright"
android:layout_width=
"match_parent"
android:layout_height=
"96pt"
...
...
@@ -309,6 +310,7 @@
</RelativeLayout>
<View
android:visibility=
"gone"
android:layout_width=
"match_parent"
android:layout_height=
"1px"
android:layout_marginLeft=
"100pt"
...
...
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