记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
c0839a52
Commit
c0839a52
authored
Oct 20, 2021
by
dongchun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改创建券的时候部分名字有""导致无法选中问题
parent
01e073de
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
32 deletions
+36
-32
add1.html
...n/resources/templates/zhengzai/candy/coupon/mgt/add1.html
+10
-12
add101.html
...resources/templates/zhengzai/candy/coupon/mgt/add101.html
+7
-6
add2.html
...n/resources/templates/zhengzai/candy/coupon/mgt/add2.html
+7
-10
add3.html
...n/resources/templates/zhengzai/candy/coupon/mgt/add3.html
+6
-2
add4.html
...n/resources/templates/zhengzai/candy/coupon/mgt/add4.html
+6
-2
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/candy/coupon/mgt/add1.html
View file @
c0839a52
...
@@ -239,7 +239,7 @@
...
@@ -239,7 +239,7 @@
</div>
</div>
<div
class=
"bottom_btn"
>
<div
class=
"bottom_btn"
>
<!-- <button type="button" class="layui-btn btn btn-primary" lay-filter="formDemo" onclick="create()">创建代金券</button> -->
<!-- <button type="button" class="layui-btn btn btn-primary" lay-filter="formDemo" onclick="create()">创建代金券</button> -->
<button
type=
"button"
class=
"btn btn-primary"
onclick=
"create()"
>
创建代金券
</button>
<button
type=
"button"
class=
"btn btn-primary"
onclick=
"create()"
>
创建代金券
111
</button>
</div>
</div>
</div>
</div>
</form>
</form>
...
@@ -277,7 +277,7 @@
...
@@ -277,7 +277,7 @@
searchData
.
reduce
((
cur
,
next
)
=>
{
searchData
.
reduce
((
cur
,
next
)
=>
{
if
(
!
obj
[
next
.
performancesId
])
{
if
(
!
obj
[
next
.
performancesId
])
{
obj
[
next
.
performancesId
]
=
true
obj
[
next
.
performancesId
]
=
true
str
+=
`<li class="selectData" onclick="selectOne('
${
next
.
performancesId
}
',
'
${
next
.
title
}
')">
${
next
.
title
}
</li>`
str
+=
`<li class="selectData" onclick="selectOne('
${
next
.
performancesId
}
',
'performancesId
')">
${
next
.
title
}
</li>`
}
}
},[])
//设置cur默认类型为数组,并且初始值为空的数组
},[])
//设置cur默认类型为数组,并且初始值为空的数组
$
(
'#dataList'
).
html
(
str
);
$
(
'#dataList'
).
html
(
str
);
...
@@ -295,23 +295,21 @@
...
@@ -295,23 +295,21 @@
if
(
res
.
data
.
length
>
0
)
{
if
(
res
.
data
.
length
>
0
)
{
searchData
=
res
.
data
;
searchData
=
res
.
data
;
searchData
.
forEach
((
item
,
index
)
=>
{
searchData
.
forEach
((
item
,
index
)
=>
{
str
+=
`<li class="selectData" onclick="selectOne('
${
item
.
id
}
',
'
${
item
.
title
}
')">
${
item
.
title
}
</li>`
str
+=
`<li class="selectData" onclick="selectOne('
${
item
.
id
}
',
'id
')">
${
item
.
title
}
</li>`
})
})
$
(
'#dataList'
).
html
(
str
);
$
(
'#dataList'
).
html
(
str
);
}
else
{
}
else
{
$
(
'#dataList'
).
html
(
'<li style="width:100%;text-align:center;color:#ccc;">--- 暂无数据 ---</li>'
);
$
(
'#dataList'
).
html
(
'<li style="width:100%;text-align:center;color:#ccc;">--- 暂无数据 ---</li>'
);
}
}
})
})
// $.ajax({
// type:'get',
// url:phpMallUrl + '/admin/goodListForQuick',
// success:function(e){
// console.log(e)
// }
// });
};
};
function
selectOne
(
id
,
name
)
{
function
selectOne
(
id
,
name
)
{
$
(
"#searchIpt"
).
val
(
name
);
searchData
.
some
(
item
=>
{
if
(
item
[
name
]
==
id
)
{
return
$
(
"#searchIpt"
).
val
(
item
.
title
);
}
}
)
// $("#searchIpt").val(name);
showId
=
id
;
showId
=
id
;
if
(
typeOne
==
2
)
{
if
(
typeOne
==
2
)
{
return
return
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/candy/coupon/mgt/add101.html
View file @
c0839a52
...
@@ -271,12 +271,9 @@
...
@@ -271,12 +271,9 @@
searchData
.
reduce
((
cur
,
next
)
=>
{
searchData
.
reduce
((
cur
,
next
)
=>
{
if
(
!
obj
[
next
.
performancesId
])
{
if
(
!
obj
[
next
.
performancesId
])
{
obj
[
next
.
performancesId
]
=
true
obj
[
next
.
performancesId
]
=
true
str
+=
`<li class="selectData" onclick="selectOne('
${
next
.
performancesId
}
','
${
next
.
title
}
')">
${
next
.
title
}
</li>`
str
+=
`<li class="selectData" onclick="selectOne('
${
next
.
performancesId
}
','
performancesId
')">
${
next
.
title
}
</li>`
}
}
},[])
//设置cur默认类型为数组,并且初始值为空的数组
},[])
//设置cur默认类型为数组,并且初始值为空的数组
// searchData.forEach((item,index)=>{
// str+= `
<
li
class
=
"selectData"
onclick
=
"selectOne('${item.performancesId}','${item.title}')"
>
$
{
item
.
title
}
<
/li>
`
// })
$
(
'#dataList'
).
html
(
str
);
$
(
'#dataList'
).
html
(
str
);
}
else
{
}
else
{
$
(
'#dataList'
).
html
(
'<li style="width:100%;text-align:center;color:#ccc;">--- 暂无数据 ---</li>'
);
$
(
'#dataList'
).
html
(
'<li style="width:100%;text-align:center;color:#ccc;">--- 暂无数据 ---</li>'
);
...
@@ -292,7 +289,7 @@
...
@@ -292,7 +289,7 @@
if
(
res
.
data
.
length
>
0
)
{
if
(
res
.
data
.
length
>
0
)
{
searchData
=
res
.
data
;
searchData
=
res
.
data
;
searchData
.
forEach
((
item
,
index
)
=>
{
searchData
.
forEach
((
item
,
index
)
=>
{
str
+=
`<li class="selectData" onclick="selectOne('
${
item
.
id
}
','
${
item
.
title
}
')">
${
item
.
title
}
</li>`
str
+=
`<li class="selectData" onclick="selectOne('
${
item
.
id
}
','
id
')">
${
item
.
title
}
</li>`
})
})
$
(
'#dataList'
).
html
(
str
);
$
(
'#dataList'
).
html
(
str
);
}
else
{
}
else
{
...
@@ -301,7 +298,11 @@
...
@@ -301,7 +298,11 @@
})
})
};
};
function
selectOne
(
id
,
name
)
{
function
selectOne
(
id
,
name
)
{
$
(
"#searchIpt"
).
val
(
name
);
searchData
.
some
(
item
=>
{
if
(
item
[
name
]
==
id
)
{
return
$
(
"#searchIpt"
).
val
(
item
.
title
);
}
})
showId
=
id
;
showId
=
id
;
if
(
typeOne
==
2
)
{
if
(
typeOne
==
2
)
{
return
return
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/candy/coupon/mgt/add2.html
View file @
c0839a52
...
@@ -279,7 +279,7 @@
...
@@ -279,7 +279,7 @@
searchData
.
reduce
((
cur
,
next
)
=>
{
searchData
.
reduce
((
cur
,
next
)
=>
{
if
(
!
obj
[
next
.
performancesId
])
{
if
(
!
obj
[
next
.
performancesId
])
{
obj
[
next
.
performancesId
]
=
true
obj
[
next
.
performancesId
]
=
true
str
+=
`<li class="selectData" onclick="selectOne('
${
next
.
performancesId
}
','
${
next
.
title
}
')">
${
next
.
title
}
</li>`
str
+=
`<li class="selectData" onclick="selectOne('
${
next
.
performancesId
}
','
performancesId
')">
${
next
.
title
}
</li>`
}
}
},[])
//设置cur默认类型为数组,并且初始值为空的数组
},[])
//设置cur默认类型为数组,并且初始值为空的数组
$
(
'#dataList'
).
html
(
str
);
$
(
'#dataList'
).
html
(
str
);
...
@@ -297,23 +297,20 @@
...
@@ -297,23 +297,20 @@
if
(
res
.
data
.
length
>
0
)
{
if
(
res
.
data
.
length
>
0
)
{
searchData
=
res
.
data
;
searchData
=
res
.
data
;
searchData
.
forEach
((
item
,
index
)
=>
{
searchData
.
forEach
((
item
,
index
)
=>
{
str
+=
`<li class="selectData" onclick="selectOne('
${
item
.
id
}
','
${
item
.
title
}
')">
${
item
.
title
}
</li>`
str
+=
`<li class="selectData" onclick="selectOne('
${
item
.
id
}
','
id
')">
${
item
.
title
}
</li>`
})
})
$
(
'#dataList'
).
html
(
str
);
$
(
'#dataList'
).
html
(
str
);
}
else
{
}
else
{
$
(
'#dataList'
).
html
(
'<li style="width:100%;text-align:center;color:#ccc;">--- 暂无数据 ---</li>'
);
$
(
'#dataList'
).
html
(
'<li style="width:100%;text-align:center;color:#ccc;">--- 暂无数据 ---</li>'
);
}
}
})
})
// $.ajax({
// type:'get',
// url:phpMallUrl + '/admin/goodListForQuick',
// success:function(e){
// console.log(e)
// }
// });
};
};
function
selectOne
(
id
,
name
)
{
function
selectOne
(
id
,
name
)
{
$
(
"#searchIpt"
).
val
(
name
);
searchData
.
some
(
item
=>
{
if
(
item
[
name
]
==
id
)
{
return
$
(
"#searchIpt"
).
val
(
item
.
title
);
}
}
)
showId
=
id
;
showId
=
id
;
if
(
typeOne
==
2
)
{
if
(
typeOne
==
2
)
{
return
return
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/candy/coupon/mgt/add3.html
View file @
c0839a52
...
@@ -223,7 +223,7 @@
...
@@ -223,7 +223,7 @@
searchData
.
reduce
((
cur
,
next
)
=>
{
searchData
.
reduce
((
cur
,
next
)
=>
{
if
(
!
obj
[
next
.
performancesId
])
{
if
(
!
obj
[
next
.
performancesId
])
{
obj
[
next
.
performancesId
]
=
true
obj
[
next
.
performancesId
]
=
true
str
+=
`<li class="selectData" onclick="selectOne('
${
next
.
performancesId
}
','
${
next
.
title
}
')">
${
next
.
title
}
</li>`
str
+=
`<li class="selectData" onclick="selectOne('
${
next
.
performancesId
}
','
performancesId
')">
${
next
.
title
}
</li>`
}
}
},[])
//设置cur默认类型为数组,并且初始值为空的数组
},[])
//设置cur默认类型为数组,并且初始值为空的数组
$
(
'#dataList'
).
html
(
str
);
$
(
'#dataList'
).
html
(
str
);
...
@@ -233,7 +233,11 @@
...
@@ -233,7 +233,11 @@
})
})
};
};
function
selectOne
(
id
,
name
)
{
function
selectOne
(
id
,
name
)
{
$
(
"#searchIpt"
).
val
(
name
);
searchData
.
some
(
item
=>
{
if
(
item
[
name
]
==
id
)
{
return
$
(
"#searchIpt"
).
val
(
item
.
title
);
}
})
showId
=
id
;
showId
=
id
;
let
str
=
`<option value="" label="">所有</option>`
;
let
str
=
`<option value="" label="">所有</option>`
;
let
obj
=
{};
let
obj
=
{};
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/candy/coupon/mgt/add4.html
View file @
c0839a52
...
@@ -243,7 +243,7 @@
...
@@ -243,7 +243,7 @@
if
(
res
.
data
.
length
>
0
)
{
if
(
res
.
data
.
length
>
0
)
{
searchData
=
res
.
data
;
searchData
=
res
.
data
;
searchData
.
forEach
((
item
,
index
)
=>
{
searchData
.
forEach
((
item
,
index
)
=>
{
str
+=
`<li class="selectData" onclick="selectOne('
${
item
.
id
}
','
${
item
.
title
}
')">
${
item
.
title
}
</li>`
str
+=
`<li class="selectData" onclick="selectOne('
${
item
.
id
}
','
id
')">
${
item
.
title
}
</li>`
})
})
$
(
'#dataList'
).
html
(
str
);
$
(
'#dataList'
).
html
(
str
);
}
else
{
}
else
{
...
@@ -252,7 +252,11 @@
...
@@ -252,7 +252,11 @@
})
})
};
};
function
selectOne
(
id
,
name
)
{
function
selectOne
(
id
,
name
)
{
$
(
"#searchIpt"
).
val
(
name
);
searchData
.
some
(
item
=>
{
if
(
item
[
name
]
==
id
)
{
return
$
(
"#searchIpt"
).
val
(
item
.
title
);
}
})
showId
=
id
;
showId
=
id
;
};
};
$
(
"input[name=typeTwo]"
).
change
(
function
(
e
){
$
(
"input[name=typeTwo]"
).
change
(
function
(
e
){
...
...
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