|
|
@@ -231,7 +231,7 @@ define(['app/app'], function (app) {
|
|
|
*/
|
|
|
$scope.checkWeixin = function () {
|
|
|
var enWeixin = angular.element('.enWeixin').val();
|
|
|
- if (!/^[0-9a-zA-Z]+$/.test(enWeixin) && enWeixin) {
|
|
|
+ if (!/^[0-9a-zA-Z]{6,20}$/.test(enWeixin) && enWeixin) {
|
|
|
toaster.pop('error', '请输入正确的微信号');
|
|
|
return false;
|
|
|
}
|
|
|
@@ -288,7 +288,7 @@ define(['app/app'], function (app) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- if (!/^[0-9a-zA-Z]+$/.test(enWeixin) && enWeixin) {
|
|
|
+ if (!/^[0-9a-zA-Z]{6,20}$/.test(enWeixin) && enWeixin) {
|
|
|
toaster.pop('error', '请输入正确的微信号');
|
|
|
return false;
|
|
|
}
|
|
|
@@ -542,6 +542,10 @@ define(['app/app'], function (app) {
|
|
|
$scope.cancleProductEdit = cancleProductEdit;
|
|
|
|
|
|
function editRecommendProduct(module, status) {
|
|
|
+ if ($rootScope.userInfo.userUU != $rootScope.userInfo.enterprise.enAdminuu) {
|
|
|
+ toaster.pop('error', '您无该模块的编辑权限,请联系企业管理员进行编辑维护!');
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (module == 'BATCH_OPERATION') {
|
|
|
$scope.canBatchOperation = status;
|
|
|
return ;
|