Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
9633dd14
提交
9633dd14
authored
10月 26, 2019
作者:
zhengfg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
完善用户模块
上级
cbdea021
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
31 行增加
和
21 行删除
+31
-21
common.js
platform-admin/src/main/webapp/js/common.js
+22
-12
tbcfcontact.js
platform-admin/src/main/webapp/js/sys/tbcfcontact.js
+1
-1
tbcfuserinfo.js
platform-admin/src/main/webapp/js/sys/tbcfuserinfo.js
+8
-8
没有找到文件。
platform-admin/src/main/webapp/js/common.js
浏览文件 @
9633dd14
...
...
@@ -487,17 +487,27 @@ linkFormat = function (cellvalue, options, rowObject) {
* @returns {string}
*/
sexFormat
=
function
(
cellvalue
)
{
var
returnStr
=
"未知"
;
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
cellvalue
==
'
1
'
)
{
/*
var returnStr = "未知";
if (!!cellvalue) {
if (cellvalue == '
0
') {
returnStr = "男";
}
else
if
(
cellvalue
==
'
2
'
)
{
} else if (cellvalue == '
1
') {
returnStr = "女";
}
else
if
(
cellvalue
==
'0'
)
{
returnStr
=
"未知"
;
}
}
return
returnStr
;
}*/
return
cellvalue
==
0
?
'男'
:
'女'
;
};
moneyFormat
=
function
(
cellvalue
)
{
/* var returnStr = "未知";
if (!!cellvalue) {
if (cellvalue == '0') {
returnStr = "男";
} else if (cellvalue == '1') {
returnStr = "女";
}
}*/
return
'$'
+
cellvalue
;
};
/**
* 有效无效过期翻译
...
...
@@ -581,14 +591,14 @@ userTypeFormat = function (cellvalue) {
* @param cellvalue
*/
yesOrNoFormat
=
function
(
cellvalue
)
{
var
returnStr
=
"空"
;
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
var
returnStr
;
if
(
cellvalue
==
'1'
)
{
returnStr
=
"是"
;
}
else
if
(
cellvalue
==
'0'
)
{
}
else
{
returnStr
=
"否"
;
}
}
return
returnStr
;
};
/**
...
...
platform-admin/src/main/webapp/js/sys/tbcfcontact.js
浏览文件 @
9633dd14
...
...
@@ -5,7 +5,7 @@ $(function () {
{
label
:
'contactId'
,
name
:
'contactId'
,
index
:
'contact_id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'联系方式'
,
name
:
'contactWay'
,
index
:
'contact_way'
,
width
:
80
},
{
label
:
'联系详情'
,
name
:
'contactDetail'
,
index
:
'contact_detail'
,
width
:
80
},
{
label
:
'是否有效'
,
name
:
'enableFlag'
,
index
:
'enable_flag'
,
width
:
80
}]
{
label
:
'是否有效'
,
name
:
'enableFlag'
,
index
:
'enable_flag'
,
width
:
80
,
formatter
:
yesOrNoFormat
}]
});
});
...
...
platform-admin/src/main/webapp/js/sys/tbcfuserinfo.js
浏览文件 @
9633dd14
...
...
@@ -3,27 +3,27 @@ $(function () {
url
:
'../tbcfuserinfo/list'
,
colModel
:
[
{
label
:
'userId'
,
name
:
'userId'
,
index
:
'user_id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'用户编号'
,
name
:
'userNo'
,
index
:
'user_no'
,
width
:
1
2
0
},
{
label
:
'用户编号'
,
name
:
'userNo'
,
index
:
'user_no'
,
width
:
1
6
0
},
{
label
:
'用户类型'
,
name
:
'userType'
,
index
:
'user_type'
,
width
:
80
,
formatter
:
userTypeFormat
},
{
label
:
'账号'
,
name
:
'account'
,
index
:
'account'
,
width
:
120
},
{
label
:
'用户头像地址'
,
name
:
'avatar'
,
index
:
'avatar'
,
width
:
100
,
formatter
:
imageFormat
},
{
label
:
'用户名'
,
name
:
'nick'
,
index
:
'nick'
,
width
:
80
},
{
label
:
'下单次数'
,
name
:
'count'
,
index
:
'count'
,
width
:
80
},
{
label
:
'总金额'
,
name
:
'total'
,
index
:
'total'
,
width
:
80
},
{
label
:
'使用优惠券次数'
,
name
:
'num'
,
index
:
'num'
,
width
:
10
0
},
{
label
:
'总金额'
,
name
:
'total'
,
index
:
'total'
,
width
:
80
,
formatter
:
moneyFormat
},
{
label
:
'使用优惠券次数'
,
name
:
'num'
,
index
:
'num'
,
width
:
8
0
},
{
label
:
'电话号码'
,
name
:
'phone'
,
index
:
'phone'
,
width
:
100
},
{
label
:
'是否绑定手机'
,
name
:
'phoneFlag'
,
index
:
'phone_flag'
,
width
:
80
,
formatter
:
yesOrNoFormat
},
{
label
:
'密码'
,
name
:
'password'
,
index
:
'password'
,
width
:
80
,
hidden
:
true
},
{
label
:
'上一次登录时间'
,
name
:
'lastLoginTime'
,
index
:
'last_login_time'
,
width
:
120
},
{
label
:
'上一次登录IP'
,
name
:
'lastLoginIp'
,
index
:
'last_login_ip'
,
width
:
80
},
{
label
:
'登录次数'
,
name
:
'loginCount'
,
index
:
'login_count'
,
width
:
60
},
{
label
:
'邮箱'
,
name
:
'email'
,
index
:
'email'
,
width
:
8
0
},
{
label
:
'邮箱'
,
name
:
'email'
,
index
:
'email'
,
width
:
12
0
},
{
label
:
'facebook账号'
,
name
:
'facebook'
,
index
:
'facebook'
,
width
:
120
},
{
label
:
'创建时间'
,
name
:
'createTime'
,
index
:
'create_time'
,
width
:
120
},
{
label
:
'性别'
,
name
:
'sex'
,
index
:
'sex'
,
width
:
12
0
,
formatter
:
sexFormat
},
{
label
:
'默认地址id'
,
name
:
'defaultAddressId'
,
index
:
'default_address_id'
,
width
:
12
0
},
{
label
:
'
发出邀请的
用户'
,
name
:
'invitedUserId'
,
index
:
'invited_user_id'
,
width
:
120
},
{
label
:
'
总共邀请数量
'
,
name
:
'invitedCount'
,
index
:
'invited_count'
,
width
:
80
},
{
label
:
'性别'
,
name
:
'sex'
,
index
:
'sex'
,
width
:
8
0
,
formatter
:
sexFormat
},
{
label
:
'默认地址id'
,
name
:
'defaultAddressId'
,
index
:
'default_address_id'
,
width
:
20
0
},
{
label
:
'
邀请
用户'
,
name
:
'invitedUserId'
,
index
:
'invited_user_id'
,
width
:
120
},
{
label
:
'
邀请人数
'
,
name
:
'invitedCount'
,
index
:
'invited_count'
,
width
:
80
},
{
label
:
'是否有效'
,
name
:
'enableFlag'
,
index
:
'enable_flag'
,
width
:
60
,
formatter
:
yesOrNoFormat
},
{
label
:
'邮箱是否已经验证'
,
name
:
'emailFlag'
,
index
:
'email_flag'
,
width
:
80
,
formatter
:
yesOrNoFormat
}]
});
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论