Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
M
magicbox
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
magicbox
Commits
84b0466c
Commit
84b0466c
authored
Mar 10, 2022
by
王雪伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
c8c518d2
22b04806
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
242 additions
and
72 deletions
+242
-72
build.gradle
app/build.gradle
+4
-3
MainActivity.java
...ain/java/com/zhangxin/magicbox/activity/MainActivity.java
+0
-25
RounterApi.kt
cms/src/main/java/com/zxhl/cms/router/RounterApi.kt
+3
-0
JumpUtils.java
cms/src/main/java/com/zxhl/cms/utils/JumpUtils.java
+9
-0
WeChatUtils.kt
cms/src/main/java/com/zxhl/cms/utils/WeChatUtils.kt
+21
-4
AndroidManifest.xml
moduleMain/src/main/AndroidManifest.xml
+9
-0
GoodsDetailActivity.kt
...n/java/com/zxhl/main/page/activity/GoodsDetailActivity.kt
+4
-2
NewBoxGoodsDetailActivity.kt
.../com/zxhl/main/page/activity/NewBoxGoodsDetailActivity.kt
+4
-2
ThirdpartyLoginActivity.kt
...va/com/zxhl/main/page/activity/ThirdpartyLoginActivity.kt
+47
-0
TobePickUpFragment.kt
...in/java/com/zxhl/main/page/fragment/TobePickUpFragment.kt
+2
-1
RecycleDialog.kt
...in/src/main/java/com/zxhl/main/page/view/RecycleDialog.kt
+14
-5
bj_login.png
moduleMain/src/main/res/drawable-xhdpi/bj_login.png
+0
-0
icon_facebook.png
moduleMain/src/main/res/drawable-xhdpi/icon_facebook.png
+0
-0
icon_google.png
moduleMain/src/main/res/drawable-xhdpi/icon_google.png
+0
-0
shape_ffffff_r5_d3d3d3.xml
moduleMain/src/main/res/drawable/shape_ffffff_r5_d3d3d3.xml
+10
-0
activity_layout_third_party_login.xml
...src/main/res/layout/activity_layout_third_party_login.xml
+85
-0
dialog_layout_recycle.xml
moduleMain/src/main/res/layout/dialog_layout_recycle.xml
+27
-27
item_layout_recover.xml
moduleMain/src/main/res/layout/item_layout_recover.xml
+1
-1
RecomendAdapter.kt
...rc/main/java/com/zxhl/uc/page/fragment/RecomendAdapter.kt
+2
-2
No files found.
app/build.gradle
View file @
84b0466c
...
...
@@ -72,18 +72,19 @@ android {
Facebook
{
id
8
sortId
8
appKey
"
1412473428822331
"
appKey
"
305929098113554
"
appSecret
"a42f4f3f867dc947b9ed6020c2e93558"
callbackUri
"https://www.baidu.com"
officialVersion
"default"
faceBookLoginProtocolScheme
"fb
1412473428822331
"
faceBookLoginProtocolScheme
"fb
662970168312513
"
shareByAppClient
true
enable
true
}
GooglePlus
{
id
21
sortId
21
appId
"
236300675100-am5pm8km7md1memjevq8rl9pg5c4s4b8
.apps.googleusercontent.com"
appId
"
535211515800-9b6op28etopmltck4s09420h8shbr1cf
.apps.googleusercontent.com"
callbackUri
"http://localhost"
officialVersion
"default"
shareByAppClient
true
...
...
app/src/main/java/com/zhangxin/magicbox/activity/MainActivity.java
View file @
84b0466c
...
...
@@ -13,7 +13,6 @@ import androidx.annotation.Nullable;
import
androidx.fragment.app.Fragment
;
import
androidx.fragment.app.FragmentTransaction
;
import
com.mob.MobSDK
;
import
com.umeng.socialize.UMShareAPI
;
import
com.zhangxin.magicbox.R
;
import
com.umeng.analytics.MobclickAgent
;
...
...
@@ -45,11 +44,6 @@ import java.util.ArrayList;
import
java.util.HashMap
;
import
java.util.List
;
import
cn.sharesdk.facebook.Facebook
;
import
cn.sharesdk.framework.Platform
;
import
cn.sharesdk.framework.PlatformActionListener
;
import
cn.sharesdk.framework.ShareSDK
;
import
cn.sharesdk.google.GooglePlus
;
import
io.reactivex.Observable
;
import
io.reactivex.android.schedulers.AndroidSchedulers
;
import
io.reactivex.functions.Consumer
;
...
...
@@ -377,24 +371,5 @@ public class MainActivity extends BaseActivity implements NavigationBottomView.N
// super.onSaveInstanceState(outState);
}
private
void
facelogin
()
{
MobSDK
.
submitPolicyGrantResult
(
true
,
null
);
Platform
plat
=
ShareSDK
.
getPlatform
(
Facebook
.
NAME
);
//授权回调监听,监听oncomplete,onerror,oncancel三种状态
plat
.
setPlatformActionListener
(
new
PlatformActionListener
()
{
public
void
onError
(
Platform
arg0
,
int
arg1
,
Throwable
arg2
)
{
//失败的回调,arg:平台对象,arg1:表示当前的动作(8:有用户信息登录, 1:无用户信息登录),arg2:异常信息
}
public
void
onComplete
(
Platform
arg0
,
int
arg1
,
HashMap
arg2
)
{
//分享成功的回调
}
public
void
onCancel
(
Platform
arg0
,
int
arg1
)
{
//取消分享的回调
}
});
//ShareSDK.setActivity(this);//抖音登录适配安卓9.0
plat
.
authorize
();
}
}
cms/src/main/java/com/zxhl/cms/router/RounterApi.kt
View file @
84b0466c
...
...
@@ -165,6 +165,9 @@ interface RounterApi {
@RounterUri
(
Constant
.
scheme
+
"://submit"
)
fun
getIntentActivitySubmit
():
Intent
@RounterUri
(
Constant
.
scheme
+
"://thirdparty"
)
fun
getIntentActivityThirdPartLogin
():
Intent
@RounterUri
(
Constant
.
scheme
+
"://video_result"
)
fun
getIntentActivityVideoResult
(
@RounterParam
(
"url"
)
str
:
String
):
Intent
...
...
cms/src/main/java/com/zxhl/cms/utils/JumpUtils.java
View file @
84b0466c
...
...
@@ -204,6 +204,15 @@ public class JumpUtils {
Utils
.
showToast
(
AppContext
.
get
(),
"该版本暂不支持,请更新版本!"
);
}
}
public
static
void
ThirdPardLoginJump
()
{
try
{
Intent
intent
=
RounterBus
.
getRounter
(
RounterApi
.
class
).
getIntentActivityThirdPartLogin
();
intent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
AppContext
.
get
().
startActivity
(
intent
);
}
catch
(
Exception
e
)
{
Utils
.
showToast
(
AppContext
.
get
(),
"该版本暂不支持,请更新版本!"
);
}
}
public
static
void
videoResultJump
(
String
url
)
{
try
{
...
...
cms/src/main/java/com/zxhl/cms/utils/WeChatUtils.kt
View file @
84b0466c
...
...
@@ -196,36 +196,53 @@ class WeChatUtils {
//授权回调监听,监听oncomplete,onerror,oncancel三种状态
plat
.
platformActionListener
=
object
:
PlatformActionListener
{
override
fun
onComplete
(
p0
:
Platform
?,
p1
:
Int
,
p2
:
HashMap
<
String
,
Any
>?)
{
Log
.
e
(
"MXL"
,
"FaceBook:onComplete"
)
}
override
fun
onError
(
arg0
:
Platform
,
arg1
:
Int
,
arg2
:
Throwable
)
{
//失败的回调,arg:平台对象,arg1:表示当前的动作(8:有用户信息登录, 1:无用户信息登录),arg2:异常信息
Log
.
e
(
"MXL"
,
"FaceBook:onError"
+
arg2
.
printStackTrace
())
}
override
fun
onCancel
(
arg0
:
Platform
,
arg1
:
Int
)
{
//取消分享的回调
Log
.
e
(
"MXL"
,
"FaceBook:onCancel"
)
}
}
plat
.
authorize
()
// plat.authorize()
if
(
plat
.
isAuthValid
())
{
plat
.
removeAccount
(
true
)
return
}
plat
.
showUser
(
null
)
}
fun
GoogleLogin
(){
fun
GoogleLogin
()
{
MobSDK
.
submitPolicyGrantResult
(
true
,
null
)
val
plat
=
ShareSDK
.
getPlatform
(
GooglePlus
.
NAME
)
ShareSDK
.
setActivity
(
mContext
as
Activity
)
//授权回调监听,监听oncomplete,onerror,oncancel三种状态
plat
.
platformActionListener
=
object
:
PlatformActionListener
{
override
fun
onComplete
(
p0
:
Platform
?,
p1
:
Int
,
p2
:
HashMap
<
String
,
Any
>?)
{
Log
.
e
(
"MXL"
,
"onComplete"
)
Log
.
e
(
"MXL"
,
"Data:"
+
p0
?.
db
?.
exportData
())
}
override
fun
onError
(
arg0
:
Platform
,
arg1
:
Int
,
arg2
:
Throwable
)
{
//失败的回调,arg:平台对象,arg1:表示当前的动作(8:有用户信息登录, 1:无用户信息登录),arg2:异常信息
Log
.
e
(
"MXL"
,
"onError"
+
arg2
.
printStackTrace
())
}
override
fun
onCancel
(
arg0
:
Platform
,
arg1
:
Int
)
{
//取消分享的回调
Log
.
e
(
"MXL"
,
"onCancel"
)
}
}
plat
.
authorize
()
// plat.authorize()
plat
.
showUser
(
null
)
}
}
\ No newline at end of file
moduleMain/src/main/AndroidManifest.xml
View file @
84b0466c
...
...
@@ -175,6 +175,15 @@
android:scheme=
"magicbox"
/>
</intent-filter>
</activity>
<activity
android:name=
".page.activity.ThirdpartyLoginActivity"
>
<intent-filter>
<action
android:name=
"android.intent.action.VIEW"
/>
<category
android:name=
"android.intent.category.DEFAULT"
/>
<data
android:host=
"thirdparty"
android:scheme=
"magicbox"
/>
</intent-filter>
</activity>
<activity
android:name=
"com.zxhl.main.page.activity.SplashActivity"
android:screenOrientation=
"portrait"
...
...
moduleMain/src/main/java/com/zxhl/main/page/activity/GoodsDetailActivity.kt
View file @
84b0466c
...
...
@@ -125,7 +125,8 @@ class GoodsDetailActivity : BaseActivity(), GoodsDetailContract.View,
if
(
wechatutil
!!
.
isWechatLogin
()
==
true
)
{
JumpUtils
.
lotteryBoxJump
(
boxid
,
Constant
.
Key
.
FIVE_LOTTERY
,
price
)
}
else
{
wechatutil
!!
.
wechatLogin
(
this
,
Constant
.
Key
.
FIVE_LOTTERY
)
JumpUtils
.
ThirdPardLoginJump
()
// wechatutil!!.wechatLogin(this, Constant.Key.FIVE_LOTTERY)
}
// JumpUtils.lotteryBoxJump(boxid, Constant.Key.FIVE_LOTTERY)
}
else
{
...
...
@@ -170,7 +171,8 @@ class GoodsDetailActivity : BaseActivity(), GoodsDetailContract.View,
}
else
{
Log
.
e
(
"MXL"
,
"未登录"
)
// onWxLogin()
wechatutil
!!
.
wechatLogin
(
this
,
Constant
.
Key
.
ONE_LOTTERY
)
JumpUtils
.
ThirdPardLoginJump
()
// wechatutil!!.wechatLogin(this, Constant.Key.ONE_LOTTERY)
}
// JumpUtils.lotteryBoxJump(boxid, Constant.Key.ONE_LOTTERY)
}
else
{
...
...
moduleMain/src/main/java/com/zxhl/main/page/activity/NewBoxGoodsDetailActivity.kt
View file @
84b0466c
...
...
@@ -124,7 +124,8 @@ class NewBoxGoodsDetailActivity : BaseActivity(), GoodsDetailContract.View,
fiveSellCoin
)
}
else
{
wechatutil
!!
.
wechatLogin
(
this
,
Constant
.
Key
.
FIVE_LOTTERY
)
JumpUtils
.
ThirdPardLoginJump
()
// wechatutil!!.wechatLogin(this, Constant.Key.FIVE_LOTTERY)
}
}
else
{
needPrice
=
fiveSellCoin
.
toString
()
...
...
@@ -173,7 +174,8 @@ class NewBoxGoodsDetailActivity : BaseActivity(), GoodsDetailContract.View,
}
else
{
Log
.
e
(
"MXL"
,
"未登录"
)
// onWxLogin()
wechatutil
!!
.
wechatLogin
(
this
,
Constant
.
Key
.
ONE_LOTTERY
)
JumpUtils
.
ThirdPardLoginJump
()
// wechatutil!!.wechatLogin(this, Constant.Key.ONE_LOTTERY)
}
}
else
{
needPrice
=
oneSellCoin
.
toString
()
...
...
moduleMain/src/main/java/com/zxhl/main/page/activity/ThirdpartyLoginActivity.kt
0 → 100644
View file @
84b0466c
package
com.zxhl.main.page.activity
import
android.view.View
import
com.zxhl.cms.AppContext
import
com.zxhl.cms.common.base.BaseActivity
import
com.zxhl.cms.utils.NoDoubleClickListener
import
com.zxhl.cms.utils.WeChatLoginSuccessCallBall
import
com.zxhl.cms.utils.WeChatUtils
import
com.zxhl.main.R
import
kotlinx.android.synthetic.main.activity_layout_third_party_login.*
class
ThirdpartyLoginActivity
:
BaseActivity
(),
WeChatLoginSuccessCallBall
{
private
var
wechatutil
:
WeChatUtils
?
=
null
override
fun
onClick
(
v
:
View
?)
{
}
override
fun
before
()
{
super
.
before
()
setStatusBarBackground
(
AppContext
.
get
().
resources
.
getColor
(
R
.
color
.
transparent
))
}
override
fun
layoutID
():
Int
{
return
R
.
layout
.
activity_layout_third_party_login
}
override
fun
init
()
{
wechatutil
=
WeChatUtils
(
this
,
this
)
id_ll_google_login
?.
setOnClickListener
(
object
:
NoDoubleClickListener
(){
override
fun
onNoDoubleClick
(
v
:
View
?)
{
//WeChatUtils.
wechatutil
?.
GoogleLogin
()
}
})
id_ll_facebook_login
?.
setOnClickListener
(
object
:
NoDoubleClickListener
(){
override
fun
onNoDoubleClick
(
v
:
View
?)
{
wechatutil
?.
FackBooklogin
()
}
})
}
override
fun
loginSuccess
(
lottery
:
String
?)
{
}
}
\ No newline at end of file
moduleMain/src/main/java/com/zxhl/main/page/fragment/TobePickUpFragment.kt
View file @
84b0466c
...
...
@@ -152,7 +152,8 @@ class TobePickUpFragment : BaseFragment(), WareHouseContract.View,
)
startActivity
(
intent
)
}
else
{
wechatutil
!!
.
wechatLogin
(
mActivity
,
Constant
.
Key
.
FIVE_LOTTERY
)
JumpUtils
.
ThirdPardLoginJump
()
// wechatutil!!.wechatLogin(mActivity, Constant.Key.FIVE_LOTTERY)
}
}
...
...
moduleMain/src/main/java/com/zxhl/main/page/view/RecycleDialog.kt
View file @
84b0466c
...
...
@@ -7,11 +7,15 @@ import android.view.Gravity
import
android.view.View
import
android.widget.ImageView
import
android.widget.TextView
import
com.zxhl.cms.AppContext
import
com.zxhl.cms.common.Constant
import
com.zxhl.cms.utils.NoDoubleClickListener
import
com.zxhl.cms.utils.Utils
import
com.zxhl.main.R
import
com.zxhl.main.page.*
import
com.zxhl.main.page.`interface`.PopupWidowCloseCallBack
import
java.text.DecimalFormat
object
RecycleDialog
:
RecoverPopupContract
.
View
{
...
...
@@ -52,17 +56,22 @@ object RecycleDialog : RecoverPopupContract.View {
mDialogView
?.
findViewById
<
ImageView
>(
R
.
id
.
id_img_dialog_close
).
setOnClickListener
{
mDialog
?.
dismiss
()
}
val
df
=
DecimalFormat
(
"#.00"
)
if
(
type
.
equals
(
Constant
.
Key
.
ONE_LOTTERY
))
{
tv_recycle_price
?.
text
=
recoverPrice
tv_recycle_price
?.
text
=
"${df.format(recoverPrice.toDoubleOrNull())}"
}
else
if
(
type
.
equals
(
Constant
.
Key
.
FIVE_LOTTERY
))
{
tv_recycle_price
?.
text
=
recoverPrice
.
toDoubleOrNull
()
?.
times
(
5
)
?.
toInt
().
toString
()
tv_recycle_price
?.
text
=
"${recoverPrice.toDoubleOrNull()?.times(
5
)
?.
toString
()}
"
}
else
{
tv_recycle_price
?.
text
=
recoverPrice
.
toDoubleOrNull
()
?.
toInt
().
toString
()
tv_recycle_price
?.
text
=
"${df.format(recoverPrice.toDoubleOrNull())}"
}
mDialogView
.
findViewById
<
TextView
>(
R
.
id
.
id_tv_sure_recycle
).
setOnClickListener
(
object
:
NoDoubleClickListener
(){
mDialogView
.
findViewById
<
TextView
>(
R
.
id
.
id_tv_sure_recycle
).
setOnClickListener
(
object
:
NoDoubleClickListener
()
{
override
fun
onNoDoubleClick
(
v
:
View
?)
{
if
(!
TextUtils
.
isEmpty
(
ids
))
{
mPresenter
?.
recoverGoods
(
ids
,
recovetype
)
mPresenter
?.
recoverGoods
(
ids
,
recovetype
)
}
}
...
...
moduleMain/src/main/res/drawable-xhdpi/bj_login.png
0 → 100644
View file @
84b0466c
66.5 KB
moduleMain/src/main/res/drawable-xhdpi/icon_facebook.png
0 → 100644
View file @
84b0466c
2.82 KB
moduleMain/src/main/res/drawable-xhdpi/icon_google.png
0 → 100644
View file @
84b0466c
2.68 KB
moduleMain/src/main/res/drawable/shape_ffffff_r5_d3d3d3.xml
0 → 100644
View file @
84b0466c
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<stroke
android:width=
"1dp"
android:color=
"#ffd3d3d3"
/>
<solid
android:color=
"#ffffffff"
/>
<corners
android:radius=
"5dp"
/>
</shape>
\ No newline at end of file
moduleMain/src/main/res/layout/activity_layout_third_party_login.xml
0 → 100644
View file @
84b0466c
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@drawable/bj_login"
>
<ImageView
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:adjustViewBounds=
"true"
android:src=
"@drawable/bj_login"
android:visibility=
"gone"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Welcome to Magic Box"
android:textColor=
"@color/color_333333"
android:textSize=
"22sp"
android:textStyle=
"bold"
/>
<LinearLayout
android:id=
"@+id/id_ll_google_login"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginLeft=
"55dp"
android:layout_marginTop=
"40dp"
android:layout_marginRight=
"55dp"
android:layout_marginBottom=
"20dp"
android:background=
"@drawable/shape_ffffff_r5_d3d3d3"
android:gravity=
"center_horizontal"
android:paddingTop=
"12.5dp"
android:paddingBottom=
"12.5dp"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/icon_google"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"5dp"
android:text=
"Continue with Google"
android:textColor=
"@color/color_333333"
android:textSize=
"20sp"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/id_ll_facebook_login"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginLeft=
"55dp"
android:layout_marginRight=
"55dp"
android:background=
"@drawable/shape_ffffff_r5_d3d3d3"
android:gravity=
"center_horizontal"
android:paddingTop=
"12.5dp"
android:paddingBottom=
"12.5dp"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/icon_facebook"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"5dp"
android:text=
"Continue with Facebook"
android:textColor=
"@color/color_333333"
android:textSize=
"20sp"
/>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
moduleMain/src/main/res/layout/dialog_layout_recycle.xml
View file @
84b0466c
...
...
@@ -5,7 +5,7 @@
android:gravity=
"center"
>
<LinearLayout
android:layout_width=
"3
0
0dp"
android:layout_width=
"3
4
0dp"
android:layout_height=
"wrap_content"
android:background=
"@drawable/shape_ffffff_r15"
android:orientation=
"vertical"
>
...
...
@@ -18,40 +18,40 @@
android:padding=
"10dp"
android:src=
"@drawable/dialog_icon_guanbi"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"5dp"
android:gravity=
"center_horizontal"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/recycle_desc"
android:textColor=
"@color/color_333333"
android:textSize=
"18sp"
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/id_tv_recycle_price"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"5dp"
android:drawableLeft=
"@drawable/icon_mobi"
android:drawablePadding=
"5dp"
android:text=
"0"
android:textColor=
"@color/color_333333"
android:textSize=
"18sp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:text=
"@string/recycle_desc"
android:layout_marginLeft=
"10dp"
android:layout_marginRight=
"10dp"
android:textColor=
"@color/color_333333"
android:textSize=
"18sp"
android:textStyle=
"bold"
android:visibility=
"visible"
/>
</LinearLayout>
<TextView
android:id=
"@+id/id_tv_recycle_price"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:drawableLeft=
"@drawable/icon_mobi"
android:drawablePadding=
"5dp"
android:layout_margin=
"5dp"
android:text=
"0"
android:textColor=
"@color/color_333333"
android:textSize=
"18sp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginLeft=
"10dp"
android:layout_marginRight=
"10dp"
android:gravity=
"center"
android:text=
"@string/recycle_desc2"
android:textColor=
"@color/color_333333"
android:textSize=
"18sp"
...
...
moduleMain/src/main/res/layout/item_layout_recover.xml
View file @
84b0466c
...
...
@@ -79,7 +79,7 @@
android:drawableLeft=
"@drawable/icon_jinbi"
android:drawablePadding=
"5dp"
android:includeFontPadding=
"false"
android:textColor=
"
#FF2E31
"
android:textColor=
"
@color/color_4c84ff
"
android:textSize=
"18sp"
android:textStyle=
"bold"
/>
</RelativeLayout>
moduleUc/src/main/java/com/zxhl/uc/page/fragment/RecomendAdapter.kt
View file @
84b0466c
...
...
@@ -28,8 +28,8 @@ class RecomendAdapter : BaseRecyclerAdapter<HomeBoxListEntity, RecomendAdapter.V
var
bean
=
mList
[
position
]
holder
.
id_img_goods
?.
setLoadImageUrl
(
bean
.
mainImage
,
false
)
holder
.
id_tv_goods_name
?.
text
=
bean
.
boxName
holder
.
id_tv_pay_price
?.
text
=
"
¥
${bean.onePriceStr}"
holder
.
id_tv_goods_nums
?.
text
=
"已开${bean.totalSalesVolume}次"
holder
.
id_tv_pay_price
?.
text
=
"
$
${bean.onePriceStr}"
holder
.
id_tv_goods_nums
?.
text
=
AppContext
.
get
().
getString
(
R
.
string
.
box_detail_open_box_num
,
"${bean.totalSalesVolume}"
)
holder
.
id_ll_item
?.
setOnClickListener
(
object
:
NoDoubleClickListener
(){
override
fun
onNoDoubleClick
(
v
:
View
?)
{
JumpUtils
.
goodsDetailJump
(
bean
?.
boxId
)
...
...
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