Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Palmwms
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
Palmwms
Commits
633804e3
Commit
633804e3
authored
Oct 17, 2016
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
835b83fa
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
58 additions
and
34 deletions
+58
-34
project.pbxproj
Palmwms.xcodeproj/project.pbxproj
+6
-6
BaseViewController.h
Palmwms/BaseViewController.h
+2
-0
BaseViewController.m
Palmwms/BaseViewController.m
+39
-22
LoginViewController.m
Palmwms/Class/Login/LoginViewController.m
+0
-1
DeliveryTrackingViewController.h
...ass/Main/Map/Contrillers/DeliveryTrackingViewController.h
+2
-0
MainViewController.m
Palmwms/Class/Main/Map/Contrillers/MainViewController.m
+2
-0
OrderListViewController.m
Palmwms/Class/Main/Map/Contrillers/OrderListViewController.m
+1
-1
OfflineMapsManager.h
Palmwms/Class/OfflineMapsHelp/OfflineMapsManager.h
+6
-0
urlInformation.h
Palmwms/Tools/Macro/urlInformation.h
+0
-4
No files found.
Palmwms.xcodeproj/project.pbxproj
View file @
633804e3
...
@@ -756,8 +756,8 @@
...
@@ -756,8 +756,8 @@
baseConfigurationReference
=
2A3092547F488EFD2FBE5F24
/* Pods.debug.xcconfig */
;
baseConfigurationReference
=
2A3092547F488EFD2FBE5F24
/* Pods.debug.xcconfig */
;
buildSettings
=
{
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CODE_SIGN_IDENTITY
=
"iPhone Developer
: 云霄 曹 (WM8ZU7YY98)
"
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer
: 云霄 曹 (WM8ZU7YY98)
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
GCC_PREFIX_HEADER
=
"$(SRCROOT)/Palmwms/Tools/Macro/PrefixHeader.pch"
;
GCC_PREFIX_HEADER
=
"$(SRCROOT)/Palmwms/Tools/Macro/PrefixHeader.pch"
;
HEADER_SEARCH_PATHS
=
(
HEADER_SEARCH_PATHS
=
(
...
@@ -780,7 +780,7 @@
...
@@ -780,7 +780,7 @@
);
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomore.palmwms
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomore.palmwms
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
"
e922dce2-c5d3-497c-8fa8-132e12cff6c0
"
;
PROVISIONING_PROFILE
=
""
;
TARGETED_DEVICE_FAMILY
=
1
;
TARGETED_DEVICE_FAMILY
=
1
;
USER_HEADER_SEARCH_PATHS
=
"$(PODS_ROOT)/**"
;
USER_HEADER_SEARCH_PATHS
=
"$(PODS_ROOT)/**"
;
};
};
...
@@ -791,8 +791,8 @@
...
@@ -791,8 +791,8 @@
baseConfigurationReference
=
B94AB6672F835AEC7D22B9F4
/* Pods.release.xcconfig */
;
baseConfigurationReference
=
B94AB6672F835AEC7D22B9F4
/* Pods.release.xcconfig */
;
buildSettings
=
{
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CODE_SIGN_IDENTITY
=
"iPhone Developer
: 云霄 曹 (WM8ZU7YY98)
"
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer
: 云霄 曹 (WM8ZU7YY98)
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
GCC_PREFIX_HEADER
=
"$(SRCROOT)/Palmwms/Tools/Macro/PrefixHeader.pch"
;
GCC_PREFIX_HEADER
=
"$(SRCROOT)/Palmwms/Tools/Macro/PrefixHeader.pch"
;
HEADER_SEARCH_PATHS
=
(
HEADER_SEARCH_PATHS
=
(
...
@@ -815,7 +815,7 @@
...
@@ -815,7 +815,7 @@
);
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomore.palmwms
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomore.palmwms
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
"
e922dce2-c5d3-497c-8fa8-132e12cff6c0
"
;
PROVISIONING_PROFILE
=
""
;
TARGETED_DEVICE_FAMILY
=
1
;
TARGETED_DEVICE_FAMILY
=
1
;
USER_HEADER_SEARCH_PATHS
=
"$(PODS_ROOT)/**"
;
USER_HEADER_SEARCH_PATHS
=
"$(PODS_ROOT)/**"
;
};
};
...
...
Palmwms/BaseViewController.h
View file @
633804e3
...
@@ -13,6 +13,8 @@
...
@@ -13,6 +13,8 @@
@interface
BaseViewController
:
UIViewController
@interface
BaseViewController
:
UIViewController
/**
/**
* 自定义返回按钮
* 自定义返回按钮
*
*
...
...
Palmwms/BaseViewController.m
View file @
633804e3
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#import "OfflineMapsManager.h"
#import "OfflineMapsManager.h"
#import "AppDelegate.h"
#import "AppDelegate.h"
#define DOWNLOAD_MAP @"MAP"
NSString
*
const
DOWNLOAD_MAP
=
@"MAP"
;
@interface
BaseViewController
()
<
OfflineMapsManagerDelegate
>
@interface
BaseViewController
()
<
OfflineMapsManagerDelegate
>
...
@@ -33,11 +33,25 @@
...
@@ -33,11 +33,25 @@
-
(
MBProgressHUD
*
)
hud
-
(
MBProgressHUD
*
)
hud
{
{
if
(
!
_hud
)
{
if
(
!
_hud
)
{
_hud
=
[
MBProgressHUD
showHUDAddedTo
:
SHARED_APPDELEGATE
.
window
animated
:
YES
];
_hud
=
[
MBProgressHUD
showHUDAddedTo
:
[[
self
class
]
hudShowWindow
]
animated
:
YES
];
}
}
return
_hud
;
return
_hud
;
}
}
#pragma mark - 获取显示window
+
(
UIWindow
*
)
hudShowWindow
{
UIWindow
*
showWindow
=
nil
;
NSArray
*
windows
=
[[
UIApplication
sharedApplication
]
windows
];
if
([
windows
count
]
>=
2
)
{
showWindow
=
[
windows
objectAtIndex
:
1
];
}
else
{
showWindow
=
[[
UIApplication
sharedApplication
]
keyWindow
];
}
return
showWindow
;
}
-
(
OfflineMapsManager
*
)
offline
-
(
OfflineMapsManager
*
)
offline
{
{
_offline
=
[
OfflineMapsManager
manager
];
_offline
=
[
OfflineMapsManager
manager
];
...
@@ -77,28 +91,31 @@
...
@@ -77,28 +91,31 @@
if
([
self
.
offline
isDownloadMaps
])
{
if
([
self
.
offline
isDownloadMaps
])
{
if
(
SHARED_APPDELEGATE
.
isWIFI
)
{
if
(
SHARED_APPDELEGATE
.
isWIFI
)
{
if
(
!
[[
NSUserDefaults
standardUserDefaults
]
boolForKey
:
DOWNLOAD_MAP
])
{
if
(
!
[[
NSUserDefaults
standardUserDefaults
]
boolForKey
:
DOWNLOAD_MAP
])
{
UIAlertController
*
alertVC
=
[
UIAlertController
alertControllerWithTitle
:
nil
message
:
@"是否下载当前城市离线地图以节省流量?"
preferredStyle
:
UIAlertControllerStyleActionSheet
];
if
(
self
.
offline
.
downLoadState
!=
1
&&
self
.
offline
.
downLoadState
!=
2
)
{
[
alertVC
addAction
:[
UIAlertAction
actionWithTitle
:
@"取消"
style
:
UIAlertActionStyleCancel
handler
:
nil
]];
UIAlertController
*
alertVC
=
[
UIAlertController
alertControllerWithTitle
:
nil
message
:
@"是否下载当前城市离线地图以节省流量?"
preferredStyle
:
UIAlertControllerStyleActionSheet
];
[
alertVC
addAction
:[
UIAlertAction
actionWithTitle
:
@"确认"
style
:
UIAlertActionStyleDefault
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{
[
alertVC
addAction
:[
UIAlertAction
actionWithTitle
:
@"取消"
style
:
UIAlertActionStyleCancel
handler
:
nil
]];
[
self
.
offline
startDownloadOfflineMaps
:
^
(
BOOL
boolValue
)
{
[
alertVC
addAction
:[
UIAlertAction
actionWithTitle
:
@"确认"
style
:
UIAlertActionStyleDefault
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{
}];
[
self
.
offline
startDownloadOfflineMaps
:
^
(
BOOL
boolValue
)
{
}]];
}];
[
alertVC
addAction
:[
UIAlertAction
actionWithTitle
:
@"不再提示"
style
:
UIAlertActionStyleDestructive
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{
}]];
[[
NSUserDefaults
standardUserDefaults
]
setBool
:
YES
forKey
:
DOWNLOAD_MAP
];
[
alertVC
addAction
:[
UIAlertAction
actionWithTitle
:
@"不再提示"
style
:
UIAlertActionStyleDestructive
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{
[[
NSUserDefaults
standardUserDefaults
]
synchronize
];
[[
NSUserDefaults
standardUserDefaults
]
setBool
:
YES
forKey
:
DOWNLOAD_MAP
];
}]];
[[
NSUserDefaults
standardUserDefaults
]
synchronize
];
[
self
presentViewController
:
alertVC
animated
:
YES
completion
:
nil
];
}]];
[
self
presentViewController
:
alertVC
animated
:
YES
completion
:
nil
];
}
}
}
}
}
}
}
}
}
#pragma mark - 下载进度回调
#pragma mark - 下载进度回调
-
(
void
)
offlineMapsDownloadProgress
:
(
double
)
progress
-
(
void
)
offlineMapsDownloadProgress
:
(
double
)
progress
{
{
[
self
ShowProgressView
:
progress
withTitle
:
@"正在下载离线地图"
];
if
(
self
.
offline
.
downLoadState
!=
4
)
{
[
self
ShowProgressView
:
progress
withTitle
:
@"正在下载离线地图"
];
}
}
}
#pragma mark - 下载状态
#pragma mark - 下载状态
...
@@ -107,12 +124,12 @@
...
@@ -107,12 +124,12 @@
switch
(
state
)
{
switch
(
state
)
{
case
1
:
//正在下载
case
1
:
//正在下载
{
{
self
.
offline
.
downLoadState
=
1
;
}
}
break
;
break
;
case
2
:
//等待下载
case
2
:
//等待下载
{
{
self
.
offline
.
downLoadState
=
2
;
}
}
break
;
break
;
case
3
:
//已暂停
case
3
:
//已暂停
...
@@ -177,7 +194,7 @@
...
@@ -177,7 +194,7 @@
#pragma mark -渐隐提示框回调
#pragma mark -渐隐提示框回调
-
(
void
)
SHOWPrompttext
:
(
NSString
*
)
Text
ComcpleteBlock
:
(
void
(
^
)())
completed
-
(
void
)
SHOWPrompttext
:
(
NSString
*
)
Text
ComcpleteBlock
:
(
void
(
^
)())
completed
{
{
MBProgressHUD
*
hud
=
[
MBProgressHUD
showHUDAddedTo
:
SHARED_APPDELEGATE
.
window
animated
:
YES
];
MBProgressHUD
*
hud
=
[
MBProgressHUD
showHUDAddedTo
:
[[
self
class
]
hudShowWindow
]
animated
:
YES
];
hud
.
label
.
text
=
Text
;
hud
.
label
.
text
=
Text
;
hud
.
contentColor
=
MainColor
;
hud
.
contentColor
=
MainColor
;
hud
.
label
.
font
=
[
UIFont
systemFontOfSize
:
18
];
hud
.
label
.
font
=
[
UIFont
systemFontOfSize
:
18
];
...
@@ -203,7 +220,6 @@
...
@@ -203,7 +220,6 @@
self
.
hud
.
removeFromSuperViewOnHide
=
YES
;
self
.
hud
.
removeFromSuperViewOnHide
=
YES
;
}
}
#pragma mark -进度条
#pragma mark -进度条
-
(
void
)
ShowProgressView
:
(
double
)
progress
withTitle
:
(
NSString
*
)
message
-
(
void
)
ShowProgressView
:
(
double
)
progress
withTitle
:
(
NSString
*
)
message
{
{
...
@@ -222,6 +238,7 @@
...
@@ -222,6 +238,7 @@
{
{
NSLog
(
@"取消下载"
);
NSLog
(
@"取消下载"
);
[
self
.
offline
pauseDownloadOfflineMaps
];
[
self
.
offline
pauseDownloadOfflineMaps
];
// [self RemoveMBProgressHUDLoding];
}
}
#pragma mark -移除MBProgressHUD等待视图
#pragma mark -移除MBProgressHUD等待视图
...
@@ -235,7 +252,7 @@
...
@@ -235,7 +252,7 @@
#pragma mark -显示成功的提示框
#pragma mark -显示成功的提示框
-
(
void
)
SuccessMBProgressView
:
(
NSString
*
)
successString
timeDelay
:
(
NSTimeInterval
)
time
finish
:
(
void
(
^
)())
complete
-
(
void
)
SuccessMBProgressView
:
(
NSString
*
)
successString
timeDelay
:
(
NSTimeInterval
)
time
finish
:
(
void
(
^
)())
complete
{
{
MBProgressHUD
*
hud
=
[
MBProgressHUD
showHUDAddedTo
:
SHARED_APPDELEGATE
.
window
animated
:
YES
];
MBProgressHUD
*
hud
=
[
MBProgressHUD
showHUDAddedTo
:
[[
self
class
]
hudShowWindow
]
animated
:
YES
];
UIImage
*
image
=
[[
UIImage
imageNamed
:
@"Checkmark"
]
imageWithRenderingMode
:
UIImageRenderingModeAlwaysTemplate
];
UIImage
*
image
=
[[
UIImage
imageNamed
:
@"Checkmark"
]
imageWithRenderingMode
:
UIImageRenderingModeAlwaysTemplate
];
UIImageView
*
imageView
=
[[
UIImageView
alloc
]
initWithImage
:
image
];
UIImageView
*
imageView
=
[[
UIImageView
alloc
]
initWithImage
:
image
];
hud
.
customView
=
imageView
;
hud
.
customView
=
imageView
;
...
@@ -254,7 +271,7 @@
...
@@ -254,7 +271,7 @@
#pragma mark -显示信息的提示框
#pragma mark -显示信息的提示框
-
(
void
)
ErrorMBProgressView
:
(
NSString
*
)
errorString
-
(
void
)
ErrorMBProgressView
:
(
NSString
*
)
errorString
{
{
MBProgressHUD
*
hud
=
[
MBProgressHUD
showHUDAddedTo
:
SHARED_APPDELEGATE
.
window
animated
:
YES
];
MBProgressHUD
*
hud
=
[
MBProgressHUD
showHUDAddedTo
:
[[
self
class
]
hudShowWindow
]
animated
:
YES
];
UIImage
*
image
=
[[
UIImage
imageNamed
:
@"Checkmark"
]
imageWithRenderingMode
:
UIImageRenderingModeAlwaysTemplate
];
UIImage
*
image
=
[[
UIImage
imageNamed
:
@"Checkmark"
]
imageWithRenderingMode
:
UIImageRenderingModeAlwaysTemplate
];
UIImageView
*
imageView
=
[[
UIImageView
alloc
]
initWithImage
:
image
];
UIImageView
*
imageView
=
[[
UIImageView
alloc
]
initWithImage
:
image
];
hud
.
customView
=
imageView
;
hud
.
customView
=
imageView
;
...
@@ -269,7 +286,7 @@
...
@@ -269,7 +286,7 @@
-
(
void
)
SHOWPrompttext
:
(
NSString
*
)
Text
-
(
void
)
SHOWPrompttext
:
(
NSString
*
)
Text
{
{
MBProgressHUD
*
hud
=
[
MBProgressHUD
showHUDAddedTo
:
SHARED_APPDELEGATE
.
window
animated
:
YES
];
MBProgressHUD
*
hud
=
[
MBProgressHUD
showHUDAddedTo
:
[[
self
class
]
hudShowWindow
]
animated
:
YES
];
hud
.
mode
=
MBProgressHUDModeText
;
hud
.
mode
=
MBProgressHUDModeText
;
hud
.
label
.
text
=
Text
;
hud
.
label
.
text
=
Text
;
hud
.
contentColor
=
MainColor
;
hud
.
contentColor
=
MainColor
;
...
...
Palmwms/Class/Login/LoginViewController.m
View file @
633804e3
...
@@ -95,7 +95,6 @@
...
@@ -95,7 +95,6 @@
#pragma mark - 确认登陆
#pragma mark - 确认登陆
-
(
void
)
loginButtonClickAction
:
(
UIButton
*
)
sender
-
(
void
)
loginButtonClickAction
:
(
UIButton
*
)
sender
{
{
[
self
CreateMBProgressHUDLoding
:
@"登录中"
];
[
self
CreateMBProgressHUDLoding
:
@"登录中"
];
NSDictionary
*
dict
=
[
NSDictionary
dictionaryWithObjectsAndKeys
:
self
.
userNameTextField
.
text
,
@"username"
,
self
.
passWordTextField
.
text
,
@"password"
,
nil
];
NSDictionary
*
dict
=
[
NSDictionary
dictionaryWithObjectsAndKeys
:
self
.
userNameTextField
.
text
,
@"username"
,
self
.
passWordTextField
.
text
,
@"password"
,
nil
];
WS
(
weakSelf
);
WS
(
weakSelf
);
...
...
Palmwms/Class/Main/Map/Contrillers/DeliveryTrackingViewController.h
View file @
633804e3
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
#import "BaseViewController.h"
#import "BaseViewController.h"
@interface
DeliveryTrackingViewController
:
BaseViewController
@interface
DeliveryTrackingViewController
:
BaseViewController
@end
@end
Palmwms/Class/Main/Map/Contrillers/MainViewController.m
View file @
633804e3
...
@@ -17,6 +17,8 @@
...
@@ -17,6 +17,8 @@
* 当前控制器
* 当前控制器
*/
*/
@property
(
nonatomic
,
strong
)
BaseViewController
*
currentVC
;
@property
(
nonatomic
,
strong
)
BaseViewController
*
currentVC
;
@property
(
nonatomic
,
strong
)
CoordinateAcquisitionViewController
*
coordinateVC
;
@property
(
nonatomic
,
strong
)
CoordinateAcquisitionViewController
*
coordinateVC
;
@property
(
nonatomic
,
strong
)
DeliveryTrackingViewController
*
DeliveryVC
;
@property
(
nonatomic
,
strong
)
DeliveryTrackingViewController
*
DeliveryVC
;
...
...
Palmwms/Class/Main/Map/Contrillers/OrderListViewController.m
View file @
633804e3
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
-
(
void
)
viewDidLoad
{
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
super
viewDidLoad
];
self
.
orderTableView
.
tableFooterView
=
[
UIView
new
];
self
.
orderTableView
.
tableFooterView
=
[
UIView
new
];
[
self
uiConfigAction
];
[
self
uiConfigAction
];
}
}
...
@@ -50,7 +51,6 @@
...
@@ -50,7 +51,6 @@
cell
.
orderBillStateLabel
.
text
=
model
.
state
;
cell
.
orderBillStateLabel
.
text
=
model
.
state
;
cell
.
orderBillStateLabel
.
textColor
=
[
self
returnColorFromOrderBillState
:
model
.
state
];
cell
.
orderBillStateLabel
.
textColor
=
[
self
returnColorFromOrderBillState
:
model
.
state
];
cell
.
orderTitleLabel
.
text
=
[
NSString
stringWithFormat
:
@"单号:%@"
,
model
.
billNumber
];
cell
.
orderTitleLabel
.
text
=
[
NSString
stringWithFormat
:
@"单号:%@"
,
model
.
billNumber
];
return
cell
;
return
cell
;
}
}
...
...
Palmwms/Class/OfflineMapsHelp/OfflineMapsManager.h
View file @
633804e3
...
@@ -33,6 +33,12 @@
...
@@ -33,6 +33,12 @@
@property
(
nonatomic
,
strong
)
BMKOfflineMap
*
offlineMap
;
@property
(
nonatomic
,
strong
)
BMKOfflineMap
*
offlineMap
;
@property
(
nonatomic
,
assign
)
int
locationCityId
;
@property
(
nonatomic
,
assign
)
int
locationCityId
;
/**
* 下载状态
*/
@property
(
nonatomic
,
assign
)
int
downLoadState
;
+
(
instancetype
)
manager
;
+
(
instancetype
)
manager
;
/**
/**
...
...
Palmwms/Tools/Macro/urlInformation.h
View file @
633804e3
...
@@ -26,13 +26,11 @@
...
@@ -26,13 +26,11 @@
*/
*/
#define CHANGEPASSWORD @"driver/modifyPassword"
#define CHANGEPASSWORD @"driver/modifyPassword"
/**
/**
* 更新版本通知
* 更新版本通知
*/
*/
#define UPLOADVERSION @"uploadVersion"
#define UPLOADVERSION @"uploadVersion"
/**
/**
* 查询配送单
* 查询配送单
*/
*/
...
@@ -48,13 +46,11 @@
...
@@ -48,13 +46,11 @@
*/
*/
#define QUERYDEPOT @"depot/getByCode?code="
#define QUERYDEPOT @"depot/getByCode?code="
/**
/**
* 更新送货单详情店铺状态
* 更新送货单详情店铺状态
*/
*/
#define ORDERDETAILSSTATE @"busbillDtl/updateState?id=%@&state=%@"
#define ORDERDETAILSSTATE @"busbillDtl/updateState?id=%@&state=%@"
/**
/**
* 上传店铺坐标
* 上传店铺坐标
*/
*/
...
...
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