Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ShenghuoquanBusiness
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
bp
ShenghuoquanBusiness
Commits
32d72954
Commit
32d72954
authored
May 26, 2021
by
lidawei1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add 创建生活号页面
parent
547ee9a2
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
175 additions
and
2 deletions
+175
-2
WXEntryActivity.kt
.../src/main/java/com/yidian/common/wxapi/WXEntryActivity.kt
+1
-1
CreateAccountActivity.kt
...dian/shenghuoquan/newscontent/ui/CreateAccountActivity.kt
+18
-0
TempListActivity.kt
...om/yidian/shenghuoquan/newscontent/ui/TempListActivity.kt
+3
-0
account_btn_gradient_bg.xml
...content/src/main/res/drawable/account_btn_gradient_bg.xml
+7
-0
activity_create_account.xml
...wscontent/src/main/res/layout/activity_create_account.xml
+128
-0
activity_temp_list.xml
...ts/newscontent/src/main/res/layout/activity_temp_list.xml
+9
-1
colors.xml
Components/newscontent/src/main/res/values/colors.xml
+2
-0
strings.xml
Components/newscontent/src/main/res/values/strings.xml
+7
-0
No files found.
CommonLib/Common/src/main/java/com/yidian/common/wxapi/WXEntryActivity.kt
View file @
32d72954
package
com.yidian.common.wxapi
package
com.yidian.common.wxapi
import
com.umeng.socialize.weixin.view.WXCallbackActivity
//
import com.umeng.socialize.weixin.view.WXCallbackActivity
class
WXEntryActivity
:
WXCallbackActivity
()
class
WXEntryActivity
:
WXCallbackActivity
()
\ No newline at end of file
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/CreateAccountActivity.kt
0 → 100644
View file @
32d72954
package
com.yidian.shenghuoquan.newscontent.ui
import
com.yidian.common.base.BaseActivity
import
com.yidian.shenghuoquan.newscontent.databinding.ActivityCreateAccountBinding
class
CreateAccountActivity
:
BaseActivity
<
ActivityCreateAccountBinding
>(){
override
fun
createViewBinding
():
ActivityCreateAccountBinding
{
return
ActivityCreateAccountBinding
.
inflate
(
layoutInflater
)
}
override
fun
getXPageName
():
String
{
return
"create_account"
}
}
\ No newline at end of file
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/TempListActivity.kt
View file @
32d72954
...
@@ -34,5 +34,8 @@ class TempListActivity : BaseActivity<ActivityTempListBinding>() {
...
@@ -34,5 +34,8 @@ class TempListActivity : BaseActivity<ActivityTempListBinding>() {
viewBind
.
btBusinessLicense
.
setOnClickListener
{
viewBind
.
btBusinessLicense
.
setOnClickListener
{
startActivity
(
Intent
(
this
@TempListActivity
,
LifeAccountEnterpriseCertificationActivity
::
class
.
java
))
startActivity
(
Intent
(
this
@TempListActivity
,
LifeAccountEnterpriseCertificationActivity
::
class
.
java
))
}
}
viewBind
.
btCreateAccount
.
setOnClickListener
{
startActivity
(
Intent
(
this
@TempListActivity
,
CreateAccountActivity
::
class
.
java
))
}
}
}
}
}
\ No newline at end of file
Components/newscontent/src/main/res/drawable/account_btn_gradient_bg.xml
0 → 100644
View file @
32d72954
<?xml version="1.0" encoding="utf-8"?>
<shape
android:shape=
"rectangle"
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<gradient
android:type=
"linear"
android:startColor=
"#FF1751F1"
android:endColor=
"#FF3693FF"
android:angle=
"0"
/>
<corners
android:radius=
"22dp"
/>
</shape>
\ No newline at end of file
Components/newscontent/src/main/res/layout/activity_create_account.xml
0 → 100644
View file @
32d72954
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/white"
android:fitsSystemWindows=
"true"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"44dp"
android:fitsSystemWindows=
"true"
>
<ImageView
android:id=
"@+id/iv_back"
android:layout_width=
"28dp"
android:layout_height=
"28dp"
android:layout_gravity=
"center_vertical"
android:layout_marginStart=
"20dp"
android:scaleType=
"centerCrop"
android:src=
"@drawable/big_back"
/>
<TextView
android:id=
"@+id/tv_title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:text=
"@string/account_title"
android:textColor=
"@color/gray_333"
android:textSize=
"18sp"
android:textStyle=
"bold"
/>
</FrameLayout>
<TextView
android:layout_width=
"match_parent"
android:layout_height=
"60dp"
android:gravity=
"center_vertical"
android:paddingStart=
"20dp"
android:text=
"@string/account_name"
android:textColor=
"@color/gray_333"
android:textSize=
"16sp"
tools:ignore=
"RtlSymmetry"
/>
<androidx.appcompat.widget.AppCompatEditText
android:id=
"@+id/et_account"
android:layout_width=
"match_parent"
android:layout_height=
"60dp"
android:layout_marginEnd=
"20dp"
android:layout_marginStart=
"20dp"
android:gravity=
"center_vertical"
android:hint=
"@string/account_create_tips"
/>
<View
android:id=
"@+id/v_divider"
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:layout_marginEnd=
"20dp"
android:layout_marginStart=
"20dp"
android:background=
"@color/divider_white"
/>
<TextView
android:id=
"@+id/tv_error_tips"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"20dp"
android:paddingBottom=
"6dp"
android:paddingTop=
"6dp"
android:text=
"@string/account_error_tips"
android:textColor=
"#FF3A3A"
android:textSize=
"12sp"
android:visibility=
"gone"
tools:visibility=
"visible"
/>
<TextView
android:id=
"@+id/tv_post_name"
android:layout_width=
"match_parent"
android:layout_height=
"60dp"
android:gravity=
"center_vertical"
android:paddingStart=
"20dp"
android:text=
"@string/account_manager"
android:textColor=
"@color/gray_333"
android:textSize=
"16sp"
tools:ignore=
"RtlSymmetry"
/>
<TextView
android:id=
"@+id/tv_user_name"
android:layout_width=
"match_parent"
android:layout_height=
"60dp"
android:gravity=
"center_vertical"
android:paddingStart=
"20dp"
android:text=
"@string/account_manager"
android:textColor=
"@color/gray_333"
android:textSize=
"16sp"
android:textStyle=
"bold"
tools:ignore=
"RtlSymmetry"
/>
<View
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:layout_marginEnd=
"20dp"
android:layout_marginStart=
"20dp"
android:background=
"@color/divider_white"
/>
<TextView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
android:gravity=
"center_vertical"
android:paddingEnd=
"20dp"
android:paddingStart=
"20dp"
android:text=
"@string/account_create_desc"
android:textColor=
"@color/content_other_text"
android:textSize=
"12sp"
tools:ignore=
"RtlSymmetry"
/>
</LinearLayout>
<androidx.appcompat.widget.AppCompatButton
android:id=
"@+id/btn_create_account"
android:layout_marginBottom=
"34dp"
android:textSize=
"18sp"
android:gravity=
"center"
android:alpha=
"0.68"
android:textColor=
"@color/white"
android:text=
"@string/create_account"
android:layout_gravity=
"center_horizontal|bottom"
android:background=
"@drawable/account_btn_gradient_bg"
android:layout_width=
"315dp"
android:layout_height=
"44dp"
/>
</FrameLayout>
\ No newline at end of file
Components/newscontent/src/main/res/layout/activity_temp_list.xml
View file @
32d72954
...
@@ -34,6 +34,14 @@
...
@@ -34,6 +34,14 @@
android:text=
"执照采集"
android:text=
"执照采集"
android:textColor=
"@android:color/black"
android:textColor=
"@android:color/black"
android:textSize=
"20sp"
/>
android:textSize=
"20sp"
/>
<Button
android:id=
"@+id/bt_create_account"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginTop=
"50dp"
android:text=
"创建生活号"
android:textColor=
"@android:color/black"
android:textSize=
"20sp"
/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
Components/newscontent/src/main/res/values/colors.xml
View file @
32d72954
...
@@ -32,4 +32,6 @@
...
@@ -32,4 +32,6 @@
<color
name=
"subscribed_gray"
>
#A8ABB1
</color>
<color
name=
"subscribed_gray"
>
#A8ABB1
</color>
<color
name=
"thumb_up_gray"
>
#8C8F96
</color>
<color
name=
"thumb_up_gray"
>
#8C8F96
</color>
<color
name=
"progress_d8d8d8_transparent"
>
#bfd8d8d8
</color>
<color
name=
"progress_d8d8d8_transparent"
>
#bfd8d8d8
</color>
<color
name=
"gray_333"
>
#333333
</color>
<color
name=
"divider_white"
>
#FFF2F2F2
</color>
</resources>
</resources>
\ No newline at end of file
Components/newscontent/src/main/res/values/strings.xml
View file @
32d72954
...
@@ -49,6 +49,13 @@
...
@@ -49,6 +49,13 @@
<!--生活圈B端-->
<!--生活圈B端-->
<string
name=
"life_account_identity_select"
>
生活号身份选择
</string>
<string
name=
"life_account_identity_select"
>
生活号身份选择
</string>
<string
name=
"enter_life_account"
>
进入生活号
</string>
<string
name=
"enter_life_account"
>
进入生活号
</string>
<string
name=
"create_account"
>
确认创建
</string>
<string
name=
"account_create_tips"
>
同企业下生活号名称不可复用
</string>
<string
name=
"account_create_desc"
>
生活号作为企业服务管理载体,请正确使用生活号权益,新申请生活号默认当前申请人作为默认管理员,申请成功 后可在销售APP内进行更改
</string>
<string
name=
"account_error_tips"
>
名称超限,最多40个字符
</string>
<string
name=
"account_manager"
>
管理员
</string>
<string
name=
"account_name"
>
生活号名称
</string>
<string
name=
"account_title"
>
创建生活号
</string>
<string
name=
"submitted_successfully"
>
提交成功
</string>
<string
name=
"submitted_successfully"
>
提交成功
</string>
<string
name=
"mobile_phone_number_notification_information"
>
已成功提交企业号审核,请留意注册手机号通知信息
</string>
<string
name=
"mobile_phone_number_notification_information"
>
已成功提交企业号审核,请留意注册手机号通知信息
</string>
<string
name=
"enterprise_certification"
>
企业认证
</string>
<string
name=
"enterprise_certification"
>
企业认证
</string>
...
...
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