Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
460a4fa0
提交
460a4fa0
authored
12月 19, 2019
作者:
zgy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改首页轮播图功能
上级
e39f8c78
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
64 行增加
和
48 行删除
+64
-48
tbcfhomepage.html
...-admin/src/main/webapp/WEB-INF/page/sys/tbcfhomepage.html
+2
-2
common.js
platform-admin/src/main/webapp/js/common.js
+61
-45
tbcfhomepage.js
platform-admin/src/main/webapp/js/sys/tbcfhomepage.js
+1
-1
没有找到文件。
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcfhomepage.html
浏览文件 @
460a4fa0
...
@@ -57,8 +57,8 @@
...
@@ -57,8 +57,8 @@
<Form-item
label=
"是否支持浏览"
prop=
"scanFlag"
>
<Form-item
label=
"是否支持浏览"
prop=
"scanFlag"
>
<i-input
v-model=
"tbCfHomePage.scanFlag"
placeholder=
"是否支持浏览"
/>
<i-input
v-model=
"tbCfHomePage.scanFlag"
placeholder=
"是否支持浏览"
/>
</Form-item>
</Form-item>
<Form-item
label=
"
是否跳转
"
prop=
"redirectFlag"
>
<Form-item
label=
"
跳转页面
"
prop=
"redirectFlag"
>
<i-input
v-model=
"tbCfHomePage.redirectFlag"
placeholder=
"
是否跳转
"
/>
<i-input
v-model=
"tbCfHomePage.redirectFlag"
placeholder=
"
跳转页面
"
/>
</Form-item>
</Form-item>
<Form-item
label=
"是否可用"
prop=
"enableFlag"
>
<Form-item
label=
"是否可用"
prop=
"enableFlag"
>
<i-input
v-model=
"tbCfHomePage.enableFlag"
placeholder=
"是否可用"
/>
<i-input
v-model=
"tbCfHomePage.enableFlag"
placeholder=
"是否可用"
/>
...
...
platform-admin/src/main/webapp/js/common.js
浏览文件 @
460a4fa0
...
@@ -495,7 +495,7 @@ sexFormat = function (cellvalue) {
...
@@ -495,7 +495,7 @@ sexFormat = function (cellvalue) {
returnStr = "女";
returnStr = "女";
}
}
}*/
}*/
return
cellvalue
==
0
?
'男'
:
'女'
;
return
cellvalue
==
0
?
'男'
:
'女'
;
};
};
moneyFormat
=
function
(
cellvalue
)
{
moneyFormat
=
function
(
cellvalue
)
{
...
@@ -507,25 +507,25 @@ moneyFormat = function (cellvalue) {
...
@@ -507,25 +507,25 @@ moneyFormat = function (cellvalue) {
returnStr = "女";
returnStr = "女";
}
}
}*/
}*/
return
'$'
+
cellvalue
;
return
'$'
+
cellvalue
;
};
};
/**
/**
* 优惠券类型翻译
* 优惠券类型翻译
* @param cellvalue
* @param cellvalue
*/
*/
couponFormat
=
function
(
cellvalue
){
couponFormat
=
function
(
cellvalue
)
{
var
returnStr
=
"未知"
var
returnStr
=
"未知"
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
cellvalue
==
'10'
)
{
if
(
cellvalue
==
'10'
)
{
returnStr
=
"购物返券"
;
returnStr
=
"购物返券"
;
}
else
if
(
cellvalue
==
'20'
)
{
}
else
if
(
cellvalue
==
'20'
)
{
returnStr
=
"注册返券"
;
returnStr
=
"注册返券"
;
}
else
if
(
cellvalue
==
'30'
)
{
}
else
if
(
cellvalue
==
'30'
)
{
returnStr
=
"邀请返券"
;
returnStr
=
"邀请返券"
;
}
else
if
(
cellvalue
==
'40'
)
{
}
else
if
(
cellvalue
==
'40'
)
{
returnStr
=
"用户领券"
;
returnStr
=
"用户领券"
;
}
else
if
(
cellvalue
==
'50'
)
{
}
else
if
(
cellvalue
==
'50'
)
{
returnStr
=
"发放优惠券"
;
returnStr
=
"发放优惠券"
;
}
}
}
}
return
returnStr
;
return
returnStr
;
...
@@ -537,7 +537,7 @@ couponFormat = function (cellvalue){
...
@@ -537,7 +537,7 @@ couponFormat = function (cellvalue){
*/
*/
stateFormat
=
function
(
cellvalue
)
{
stateFormat
=
function
(
cellvalue
)
{
var
returnStr
=
"未知"
;
var
returnStr
=
"未知"
;
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
cellvalue
==
'0'
)
{
if
(
cellvalue
==
'0'
)
{
returnStr
=
"无效"
;
returnStr
=
"无效"
;
}
else
if
(
cellvalue
==
'1'
)
{
}
else
if
(
cellvalue
==
'1'
)
{
...
@@ -564,7 +564,7 @@ statusFormat = function (cellvalue) {
...
@@ -564,7 +564,7 @@ statusFormat = function (cellvalue) {
*/
*/
validFormat
=
function
(
cellvalue
)
{
validFormat
=
function
(
cellvalue
)
{
let
returnStr
=
"未知"
let
returnStr
=
"未知"
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
cellvalue
==
'0'
)
{
if
(
cellvalue
==
'0'
)
{
returnStr
=
"否"
;
returnStr
=
"否"
;
}
else
if
(
cellvalue
==
'1'
)
{
}
else
if
(
cellvalue
==
'1'
)
{
...
@@ -576,7 +576,7 @@ validFormat = function (cellvalue) {
...
@@ -576,7 +576,7 @@ validFormat = function (cellvalue) {
sortFormat
=
function
(
cellvalue
)
{
sortFormat
=
function
(
cellvalue
)
{
let
returnStr
=
"未知"
let
returnStr
=
"未知"
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
cellvalue
==
'0'
)
{
if
(
cellvalue
==
'0'
)
{
returnStr
=
"安卓"
;
returnStr
=
"安卓"
;
}
else
if
(
cellvalue
==
'1'
)
{
}
else
if
(
cellvalue
==
'1'
)
{
...
@@ -593,7 +593,7 @@ sortFormat = function (cellvalue) {
...
@@ -593,7 +593,7 @@ sortFormat = function (cellvalue) {
*/
*/
enableFormat
=
function
(
cellvalue
)
{
enableFormat
=
function
(
cellvalue
)
{
let
returnStr
=
"未知"
let
returnStr
=
"未知"
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
cellvalue
==
'1'
)
{
if
(
cellvalue
==
'1'
)
{
returnStr
=
"发放"
;
returnStr
=
"发放"
;
}
else
if
(
cellvalue
==
'2'
)
{
}
else
if
(
cellvalue
==
'2'
)
{
...
@@ -621,7 +621,7 @@ useFormat = function (cellvalue) {
...
@@ -621,7 +621,7 @@ useFormat = function (cellvalue) {
*/
*/
orderStatusFormat
=
function
(
cellvalue
)
{
orderStatusFormat
=
function
(
cellvalue
)
{
var
returnStr
=
"未知"
;
var
returnStr
=
"未知"
;
if
(
!!
cellvalue
)
{
if
(
!!
cellvalue
)
{
if
(
cellvalue
==
'0'
)
{
if
(
cellvalue
==
'0'
)
{
returnStr
=
"取消"
;
returnStr
=
"取消"
;
}
else
if
(
cellvalue
==
'10'
)
{
}
else
if
(
cellvalue
==
'10'
)
{
...
@@ -647,7 +647,7 @@ orderStatusFormat = function (cellvalue) {
...
@@ -647,7 +647,7 @@ orderStatusFormat = function (cellvalue) {
*/
*/
payStatusFormat
=
function
(
cellvalue
)
{
payStatusFormat
=
function
(
cellvalue
)
{
var
returnStr
=
"未支付"
;
var
returnStr
=
"未支付"
;
if
(
!!
cellvalue
||
cellvalue
==
'10'
)
{
if
(
!!
cellvalue
||
cellvalue
==
'10'
)
{
if
(
cellvalue
==
'20'
)
{
if
(
cellvalue
==
'20'
)
{
returnStr
=
"已支付"
;
returnStr
=
"已支付"
;
}
}
...
@@ -660,15 +660,15 @@ payStatusFormat = function (cellvalue) {
...
@@ -660,15 +660,15 @@ payStatusFormat = function (cellvalue) {
* @returns {string}
* @returns {string}
*/
*/
deliveryFlagFormat
=
function
(
cellvalue
)
{
deliveryFlagFormat
=
function
(
cellvalue
)
{
var
returnStr
=
"待采购"
var
returnStr
=
"待采购"
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
cellvalue
==
'10'
)
{
if
(
cellvalue
==
'10'
)
{
returnStr
=
"已代购"
;
returnStr
=
"已代购"
;
}
else
if
(
cellvalue
==
'20'
)
{
}
else
if
(
cellvalue
==
'20'
)
{
returnStr
=
"已到达中国仓"
;
returnStr
=
"已到达中国仓"
;
}
else
if
(
cellvalue
==
'40'
)
{
}
else
if
(
cellvalue
==
'40'
)
{
returnStr
=
"已到达非洲仓"
;
returnStr
=
"已到达非洲仓"
;
}
else
if
(
cellvalue
==
'50'
)
{
}
else
if
(
cellvalue
==
'50'
)
{
returnStr
=
"买家已签收"
;
returnStr
=
"买家已签收"
;
}
}
}
}
...
@@ -681,7 +681,7 @@ deliveryFlagFormat = function (cellvalue) {
...
@@ -681,7 +681,7 @@ deliveryFlagFormat = function (cellvalue) {
*/
*/
userTypeFormat
=
function
(
cellvalue
)
{
userTypeFormat
=
function
(
cellvalue
)
{
var
returnStr
=
"未知"
;
var
returnStr
=
"未知"
;
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
cellvalue
==
'1'
)
{
if
(
cellvalue
==
'1'
)
{
returnStr
=
"邮箱"
;
returnStr
=
"邮箱"
;
}
else
if
(
cellvalue
==
'2'
)
{
}
else
if
(
cellvalue
==
'2'
)
{
...
@@ -708,13 +708,29 @@ yesOrNoFormat = function (cellvalue) {
...
@@ -708,13 +708,29 @@ yesOrNoFormat = function (cellvalue) {
return
returnStr
;
return
returnStr
;
};
};
/**
* 跳转页面
* @param cellvalue
*/
pageFormat
=
function
(
cellvalue
)
{
var
returnStr
=
"未知"
;
if
(
cellvalue
==
'0'
)
{
returnStr
=
"无"
;
}
else
if
(
cellvalue
==
'1'
)
{
returnStr
=
"购物网站页面"
;
}
else
if
(
cellvalue
==
'2'
)
{
returnStr
=
"外链"
;
}
return
returnStr
;
};
/**
/**
* 代购翻译
* 代购翻译
* @param cellvalue
* @param cellvalue
*/
*/
agentFormat
=
function
(
cellvalue
)
{
agentFormat
=
function
(
cellvalue
)
{
var
returnStr
=
"未代购"
;
var
returnStr
=
"未代购"
;
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
cellvalue
==
'10'
)
{
if
(
cellvalue
==
'10'
)
{
returnStr
=
"已代购"
;
returnStr
=
"已代购"
;
}
}
...
@@ -735,7 +751,7 @@ contentFormat = function (cellvalue, options, rowObject) {
...
@@ -735,7 +751,7 @@ contentFormat = function (cellvalue, options, rowObject) {
*/
*/
userStatusFormat
=
function
(
cellvalue
,
options
,
rowObject
)
{
userStatusFormat
=
function
(
cellvalue
,
options
,
rowObject
)
{
var
returnStr
=
"未知"
;
var
returnStr
=
"未知"
;
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
cellvalue
==
'10'
)
{
if
(
cellvalue
==
'10'
)
{
returnStr
=
"未下单的用户"
;
returnStr
=
"未下单的用户"
;
}
else
if
(
cellvalue
==
'20'
)
{
}
else
if
(
cellvalue
==
'20'
)
{
...
@@ -750,14 +766,14 @@ userStatusFormat = function (cellvalue, options, rowObject) {
...
@@ -750,14 +766,14 @@ userStatusFormat = function (cellvalue, options, rowObject) {
};
};
userLevelFormat
=
function
(
cellvalue
,
options
,
rowObject
)
{
userLevelFormat
=
function
(
cellvalue
,
options
,
rowObject
)
{
var
returnStr
=
"未知"
;
var
returnStr
=
"未知"
;
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
cellvalue
==
'10'
)
{
if
(
cellvalue
==
'10'
)
{
returnStr
=
"1"
;
returnStr
=
"1"
;
}
else
if
(
cellvalue
==
'20'
)
{
}
else
if
(
cellvalue
==
'20'
)
{
returnStr
=
"2"
;
returnStr
=
"2"
;
}
else
if
(
cellvalue
==
'30'
)
{
}
else
if
(
cellvalue
==
'30'
)
{
returnStr
=
"3"
;
returnStr
=
"3"
;
}
else
if
(
cellvalue
==
'40'
)
{
}
else
if
(
cellvalue
==
'40'
)
{
returnStr
=
"4"
;
returnStr
=
"4"
;
}
}
}
}
...
...
platform-admin/src/main/webapp/js/sys/tbcfhomepage.js
浏览文件 @
460a4fa0
...
@@ -8,7 +8,7 @@ $(function () {
...
@@ -8,7 +8,7 @@ $(function () {
{
label
:
'跳转链接'
,
name
:
'linkUrl'
,
index
:
'link_url'
,
width
:
100
,
formatter
:
linkFormat
},
{
label
:
'跳转链接'
,
name
:
'linkUrl'
,
index
:
'link_url'
,
width
:
100
,
formatter
:
linkFormat
},
{
label
:
'图片'
,
name
:
'imgUrl'
,
index
:
'img_url'
,
width
:
80
,
formatter
:
imageFormat
},
{
label
:
'图片'
,
name
:
'imgUrl'
,
index
:
'img_url'
,
width
:
80
,
formatter
:
imageFormat
},
{
label
:
'是否支持浏览'
,
name
:
'scanFlag'
,
index
:
'scan_flag'
,
width
:
80
,
formatter
:
yesOrNoFormat
},
{
label
:
'是否支持浏览'
,
name
:
'scanFlag'
,
index
:
'scan_flag'
,
width
:
80
,
formatter
:
yesOrNoFormat
},
{
label
:
'
是否跳转'
,
name
:
'redirectFlag'
,
index
:
'redirect_flag'
,
width
:
80
,
formatter
:
yesOrNo
Format
},
{
label
:
'
跳转页面'
,
name
:
'redirectFlag'
,
index
:
'redirect_flag'
,
width
:
80
,
formatter
:
page
Format
},
{
label
:
'是否可用'
,
name
:
'enableFlag'
,
index
:
'enable_flag'
,
width
:
80
,
formatter
:
yesOrNoFormat
}]
{
label
:
'是否可用'
,
name
:
'enableFlag'
,
index
:
'enable_flag'
,
width
:
80
,
formatter
:
yesOrNoFormat
}]
});
});
});
});
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论