Commit 3f8d4d0c authored by 宋永孟's avatar 宋永孟

add 添加门店管理

parent d92e87ef
...@@ -15,6 +15,7 @@ class XRouterPathConstants { ...@@ -15,6 +15,7 @@ class XRouterPathConstants {
const val FLASH = "/flash" const val FLASH = "/flash"
const val LOGIN_LIFE_CIRCLE = "/loginLifeCircle" const val LOGIN_LIFE_CIRCLE = "/loginLifeCircle"
const val STORE_MANAGEMENT = "/storeManagement"
const val LIFE_ACCOUNT_IDENTITY = "/lifeAccountIdentity" const val LIFE_ACCOUNT_IDENTITY = "/lifeAccountIdentity"
const val LIFE_ACCOUNT_AUTH = "/lifeAccountAuth" const val LIFE_ACCOUNT_AUTH = "/lifeAccountAuth"
const val ID_CARD_TEST = "/idCardTest" const val ID_CARD_TEST = "/idCardTest"
......
...@@ -71,6 +71,10 @@ ...@@ -71,6 +71,10 @@
<activity <activity
android:name=".ui.LoginLifeCircleActivity" /> android:name=".ui.LoginLifeCircleActivity" />
<activity
android:name=".ui.StoreManagementActivity"
android:theme="@style/Transparent" />
<activity <activity
android:name=".ui.auth.LifeAccountIdentityActivity" android:name=".ui.auth.LifeAccountIdentityActivity"
android:theme="@style/Transparent" /> android:theme="@style/Transparent" />
......
...@@ -29,6 +29,7 @@ import com.yidian.common.XRouterPathConstants.Companion.PERSONAL_MY_STAFF ...@@ -29,6 +29,7 @@ import com.yidian.common.XRouterPathConstants.Companion.PERSONAL_MY_STAFF
import com.yidian.common.XRouterPathConstants.Companion.PERSONAL_STAFF_INFO import com.yidian.common.XRouterPathConstants.Companion.PERSONAL_STAFF_INFO
import com.yidian.common.XRouterPathConstants.Companion.PERSONAL_STAFF_MANAGE import com.yidian.common.XRouterPathConstants.Companion.PERSONAL_STAFF_MANAGE
import com.yidian.common.XRouterPathConstants.Companion.PROTOCOL import com.yidian.common.XRouterPathConstants.Companion.PROTOCOL
import com.yidian.common.XRouterPathConstants.Companion.STORE_MANAGEMENT
import com.yidian.common.XRouterPathConstants.Companion.SUPPORT import com.yidian.common.XRouterPathConstants.Companion.SUPPORT
import com.yidian.common.XRouterPathConstants.Companion.SYSTEM_SETTING import com.yidian.common.XRouterPathConstants.Companion.SYSTEM_SETTING
import com.yidian.common.YdBaseApplication import com.yidian.common.YdBaseApplication
...@@ -105,6 +106,18 @@ class NewsContentApplication : YdBaseApplication() { ...@@ -105,6 +106,18 @@ class NewsContentApplication : YdBaseApplication() {
} }
}), }),
XPageNode(STORE_MANAGEMENT, XPageNodePageType.NATIVE, object : XPageHandler {
override fun handler(params: Map<String, Any?>?) {
val intent = Intent()
if (params != null) {
intent.putExtra(XRouterPathConstants.ParamsKey, params as HashMap)
}
intent.setClass(context, StoreManagementActivity::class.java)
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
context.startActivity(intent)
}
}),
XPageNode(LIFE_ACCOUNT_IDENTITY, XPageNodePageType.NATIVE, object : XPageHandler { XPageNode(LIFE_ACCOUNT_IDENTITY, XPageNodePageType.NATIVE, object : XPageHandler {
override fun handler(params: Map<String, Any?>?) { override fun handler(params: Map<String, Any?>?) {
val intent = Intent() val intent = Intent()
......
package com.yidian.shenghuoquan.newscontent.ui
import com.yidian.common.XRouterPathConstants.Companion.STORE_MANAGEMENT
import com.yidian.common.base.BaseActivity
import com.yidian.shenghuoquan.newscontent.databinding.ActivityStoreManagementBinding
/**
* Author: sym
* Date: 2021/6/22 10:25 AM
* Describe:
*/
class StoreManagementActivity : BaseActivity<ActivityStoreManagementBinding>() {
override fun createViewBinding(): ActivityStoreManagementBinding {
return ActivityStoreManagementBinding.inflate(layoutInflater)
}
override fun getXPageName(): String {
return STORE_MANAGEMENT
}
}
...@@ -152,7 +152,8 @@ class MerchantCenterActivity : BaseActivity<ActivityMerchantCenterBinding>(), ...@@ -152,7 +152,8 @@ class MerchantCenterActivity : BaseActivity<ActivityMerchantCenterBinding>(),
// 其他服务-职位管理 // 其他服务-职位管理
functionPageMap[data.merchant_manager_center.items[2].functions[1].function_id] = null functionPageMap[data.merchant_manager_center.items[2].functions[1].function_id] = null
// 其他服务-门店管理 // 其他服务-门店管理
functionPageMap[data.merchant_manager_center.items[2].functions[2].function_id] = null functionPageMap[data.merchant_manager_center.items[2].functions[2].function_id] =
XRouterPathConstants.STORE_MANAGEMENT
// 其他服务-系统设置 // 其他服务-系统设置
functionPageMap[data.merchant_manager_center.items[2].functions[3].function_id] = functionPageMap[data.merchant_manager_center.items[2].functions[3].function_id] =
XRouterPathConstants.SYSTEM_SETTING XRouterPathConstants.SYSTEM_SETTING
...@@ -208,6 +209,7 @@ class MerchantCenterActivity : BaseActivity<ActivityMerchantCenterBinding>(), ...@@ -208,6 +209,7 @@ class MerchantCenterActivity : BaseActivity<ActivityMerchantCenterBinding>(),
// 我要发布-招聘 其他服务-职位管理 其他服务-系统设置 // 我要发布-招聘 其他服务-职位管理 其他服务-系统设置
functionPermissionList.add(data.merchant_manager_center.items[0].functions[1].function_id) functionPermissionList.add(data.merchant_manager_center.items[0].functions[1].function_id)
functionPermissionList.add(data.merchant_manager_center.items[2].functions[1].function_id) functionPermissionList.add(data.merchant_manager_center.items[2].functions[1].function_id)
functionPermissionList.add(data.merchant_manager_center.items[2].functions[2].function_id)
functionPermissionList.add(data.merchant_manager_center.items[2].functions[3].function_id) functionPermissionList.add(data.merchant_manager_center.items[2].functions[3].function_id)
} }
Constant.LIFE_ACCOUNT_TAG_AUTH_REJECT -> { Constant.LIFE_ACCOUNT_TAG_AUTH_REJECT -> {
......
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:fitsSystemWindows="true">
<com.yidian.shenghuoquan.newscontent.widget.CommonTopBarView
android:id="@+id/bv_top_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:CommonTopBarView_title_text="@string/store_management_title"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
...@@ -158,6 +158,7 @@ ...@@ -158,6 +158,7 @@
<string name="immediate_auth">立刻认证</string> <string name="immediate_auth">立刻认证</string>
<string name="basic_info">基本信息</string> <string name="basic_info">基本信息</string>
<string name="modify_life_account_name">修改名称</string> <string name="modify_life_account_name">修改名称</string>
<string name="store_management_title">门店管理</string>
<string name="save_life_account_name">保存</string> <string name="save_life_account_name">保存</string>
<string name="life_account_name_already_exist">该名称已存在</string> <string name="life_account_name_already_exist">该名称已存在</string>
<string name="audit_reject">审核驳回</string> <string name="audit_reject">审核驳回</string>
......
...@@ -4,7 +4,7 @@ ext { ...@@ -4,7 +4,7 @@ ext {
versionCode : 100, versionCode : 100,
versionName : "1.0.0", versionName : "1.0.0",
serviceVersion : '"000100"', // 上线前需要和服务端确认并更新 serviceVersion : '"000100"', // 上线前需要和服务端确认并更新
isEncrypt : 'true', // 上线前需要开启加密 isEncrypt : 'false', // 上线前需要开启加密
isEncryptDebugKey: 'true', // 上线前需要使用正式加密key 置为false isEncryptDebugKey: 'true', // 上线前需要使用正式加密key 置为false
isApplication : false isApplication : false
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment