记得上下班打卡 | 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
71359808
Commit
71359808
authored
Oct 13, 2021
by
dongchun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改创建券时的bug
parent
90e7e870
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
22 deletions
+64
-22
add1.html
...n/resources/templates/zhengzai/candy/coupon/mgt/add1.html
+20
-7
add2.html
...n/resources/templates/zhengzai/candy/coupon/mgt/add2.html
+16
-4
add3.html
...n/resources/templates/zhengzai/candy/coupon/mgt/add3.html
+26
-9
add4.html
...n/resources/templates/zhengzai/candy/coupon/mgt/add4.html
+2
-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 @
71359808
...
@@ -171,10 +171,10 @@
...
@@ -171,10 +171,10 @@
<input
type=
"text"
id=
"searchIpt"
autocomplete=
"off"
class=
"layui-input"
placeholder=
"全部"
>
<input
type=
"text"
id=
"searchIpt"
autocomplete=
"off"
class=
"layui-input"
placeholder=
"全部"
>
<ul
id=
"dataList"
style=
"position: absolute;"
></ul>
<ul
id=
"dataList"
style=
"position: absolute;"
></ul>
</div>
</div>
<select
name=
"bindType"
id=
"selectTwo"
>
<select
name=
"bindType"
id=
"selectTwo"
placeholder=
"请选择场次"
>
<option
value=
""
>
所有
</option>
<option
value=
""
>
所有
111
</option>
</select>
</select>
<select
name=
"bindType"
id=
"selectThree"
>
<select
name=
"bindType"
id=
"selectThree"
placeholder=
"请选择票种"
>
<option
value=
""
>
所有
</option>
<option
value=
""
>
所有
</option>
</select>
</select>
</div>
</div>
...
@@ -271,10 +271,15 @@
...
@@ -271,10 +271,15 @@
let
str
=
''
;
let
str
=
''
;
promiseMethods
(
ctx
+
'kylin/base/performance/status'
,
'get'
,
data
,
'application/x-www-form-urlencoded'
).
then
(
res
=>
{
promiseMethods
(
ctx
+
'kylin/base/performance/status'
,
'get'
,
data
,
'application/x-www-form-urlencoded'
).
then
(
res
=>
{
if
(
res
.
value
.
length
>
0
)
{
if
(
res
.
value
.
length
>
0
)
{
let
filterData
=
[];
searchData
=
res
.
value
;
searchData
=
res
.
value
;
searchData
.
forEach
((
item
,
index
)
=>
{
let
obj
=
{};
str
+=
`<li class="selectData" onclick="selectOne('
${
item
.
performancesId
}
','
${
item
.
title
}
')">
${
item
.
title
}
</li>`
searchData
.
reduce
((
cur
,
next
)
=>
{
})
if
(
!
obj
[
next
.
performancesId
])
{
obj
[
next
.
performancesId
]
=
true
str
+=
`<li class="selectData" onclick="selectOne('
${
next
.
performancesId
}
','
${
next
.
title
}
')">
${
next
.
title
}
</li>`
}
},[])
//设置cur默认类型为数组,并且初始值为空的数组
$
(
'#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>'
);
...
@@ -313,11 +318,19 @@
...
@@ -313,11 +318,19 @@
return
return
}
}
let
str
=
`<option value="0" label="">所有</option>`
;
let
str
=
`<option value="0" label="">所有</option>`
;
let
obj
=
{};
let
filterData
=
[];
searchData
.
forEach
(
item
=>
{
searchData
.
forEach
(
item
=>
{
if
(
item
.
performancesId
==
id
)
{
if
(
item
.
performancesId
==
id
)
{
str
+=
`<option value='
${
item
.
timeId
}
' label=
${
item
.
timeTitle
}
>
${
item
.
timeTitle
}
</option>`
filterData
.
push
(
item
)
}
}
})
})
filterData
.
reduce
((
cur
,
next
)
=>
{
if
(
!
obj
[
next
.
timeId
])
{
obj
[
next
.
timeId
]
=
true
str
+=
`<option value='
${
next
.
timeId
}
' label=
${
next
.
timeTitle
}
>
${
next
.
timeTitle
}
</option>`
}
},
[])
selectTwoId
=
''
;
// 选中演出下级的ID
selectTwoId
=
''
;
// 选中演出下级的ID
selectThreeId
=
''
;
// 选中演出三级的ID
selectThreeId
=
''
;
// 选中演出三级的ID
$
(
'#selectTwo'
).
empty
().
append
(
str
);
$
(
'#selectTwo'
).
empty
().
append
(
str
);
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/candy/coupon/mgt/add2.html
View file @
71359808
...
@@ -275,9 +275,13 @@
...
@@ -275,9 +275,13 @@
promiseMethods
(
ctx
+
'kylin/base/performance/status'
,
'get'
,
data
,
'application/x-www-form-urlencoded'
).
then
(
res
=>
{
promiseMethods
(
ctx
+
'kylin/base/performance/status'
,
'get'
,
data
,
'application/x-www-form-urlencoded'
).
then
(
res
=>
{
if
(
res
.
value
.
length
>
0
)
{
if
(
res
.
value
.
length
>
0
)
{
searchData
=
res
.
value
;
searchData
=
res
.
value
;
searchData
.
forEach
((
item
,
index
)
=>
{
let
obj
=
{};
str
+=
`<li class="selectData" onclick="selectOne('
${
item
.
performancesId
}
','
${
item
.
title
}
')">
${
item
.
title
}
</li>`
searchData
.
reduce
((
cur
,
next
)
=>
{
})
if
(
!
obj
[
next
.
performancesId
])
{
obj
[
next
.
performancesId
]
=
true
str
+=
`<li class="selectData" onclick="selectOne('
${
next
.
performancesId
}
','
${
next
.
title
}
')">
${
next
.
title
}
</li>`
}
},[])
//设置cur默认类型为数组,并且初始值为空的数组
$
(
'#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>'
);
...
@@ -315,11 +319,19 @@
...
@@ -315,11 +319,19 @@
return
return
}
}
let
str
=
`<option value="0" label="">所有</option>`
;
let
str
=
`<option value="0" label="">所有</option>`
;
let
obj
=
{};
let
filterData
=
[];
searchData
.
forEach
(
item
=>
{
searchData
.
forEach
(
item
=>
{
if
(
item
.
performancesId
==
id
)
{
if
(
item
.
performancesId
==
id
)
{
str
+=
`<option value='
${
item
.
timeId
}
' label=
${
item
.
timeTitle
}
>
${
item
.
timeTitle
}
</option>`
filterData
.
push
(
item
)
}
}
})
})
filterData
.
reduce
((
cur
,
next
)
=>
{
if
(
!
obj
[
next
.
timeId
])
{
obj
[
next
.
timeId
]
=
true
str
+=
`<option value='
${
next
.
timeId
}
' label=
${
next
.
timeTitle
}
>
${
next
.
timeTitle
}
</option>`
}
},
[])
selectTwoId
=
''
;
// 选中演出下级的ID
selectTwoId
=
''
;
// 选中演出下级的ID
selectThreeId
=
''
;
// 选中演出三级的ID
selectThreeId
=
''
;
// 选中演出三级的ID
$
(
'#selectTwo'
).
empty
().
append
(
str
);
$
(
'#selectTwo'
).
empty
().
append
(
str
);
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/candy/coupon/mgt/add3.html
View file @
71359808
...
@@ -162,10 +162,10 @@
...
@@ -162,10 +162,10 @@
<select
name=
"bindType"
id=
"selectThree"
>
<select
name=
"bindType"
id=
"selectThree"
>
<option
value=
""
>
所有
</option>
<option
value=
""
>
所有
</option>
</select>
</select>
<span
style=
"margin-left: 12px;color: #ccc;"
id=
"showNum"
>
<
!-- <
span style="margin-left: 12px;color: #ccc;" id="showNum">
演出库存:<span id="totalGeneral"></span>
演出库存:<span id="totalGeneral"></span>
兑换库存:<span id="totalExchange"></span>
兑换库存:<span id="totalExchange"></span>
</span>
</span>
-->
</div>
</div>
<div
class=
"changeData"
>
<div
class=
"changeData"
>
<div
id=
"modalOne"
>
<div
id=
"modalOne"
>
...
@@ -219,9 +219,13 @@
...
@@ -219,9 +219,13 @@
promiseMethods
(
ctx
+
'kylin/base/performance/status'
,
'get'
,
data
,
'application/x-www-form-urlencoded'
).
then
(
res
=>
{
promiseMethods
(
ctx
+
'kylin/base/performance/status'
,
'get'
,
data
,
'application/x-www-form-urlencoded'
).
then
(
res
=>
{
if
(
res
.
value
.
length
>
0
)
{
if
(
res
.
value
.
length
>
0
)
{
searchData
=
res
.
value
;
searchData
=
res
.
value
;
searchData
.
forEach
((
item
,
index
)
=>
{
let
obj
=
{};
str
+=
`<li class="selectData" onclick="selectOne('
${
item
.
performancesId
}
','
${
item
.
title
}
')">
${
item
.
title
}
</li>`
searchData
.
reduce
((
cur
,
next
)
=>
{
})
if
(
!
obj
[
next
.
performancesId
])
{
obj
[
next
.
performancesId
]
=
true
str
+=
`<li class="selectData" onclick="selectOne('
${
next
.
performancesId
}
','
${
next
.
title
}
')">
${
next
.
title
}
</li>`
}
},[])
//设置cur默认类型为数组,并且初始值为空的数组
$
(
'#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>'
);
...
@@ -232,14 +236,19 @@
...
@@ -232,14 +236,19 @@
$
(
"#searchIpt"
).
val
(
name
);
$
(
"#searchIpt"
).
val
(
name
);
showId
=
id
;
showId
=
id
;
let
str
=
`<option value="0" label="">所有</option>`
;
let
str
=
`<option value="0" label="">所有</option>`
;
let
obj
=
{};
let
filterData
=
[];
searchData
.
forEach
(
item
=>
{
searchData
.
forEach
(
item
=>
{
if
(
item
.
performancesId
==
id
)
{
if
(
item
.
performancesId
==
id
)
{
$
(
'#showNum'
).
show
();
filterData
.
push
(
item
)
$
(
'#totalExchange'
).
text
(
item
.
totalExchange
);
$
(
'#totalGeneral'
).
text
(
item
.
totalGeneral
);
str
+=
`<option value='
${
item
.
timeId
}
' label=
${
item
.
timeTitle
}
>
${
item
.
timeTitle
}
</option>`
;
}
}
})
})
filterData
.
reduce
((
cur
,
next
)
=>
{
if
(
!
obj
[
next
.
timeId
])
{
obj
[
next
.
timeId
]
=
true
str
+=
`<option value='
${
next
.
timeId
}
' label=
${
next
.
timeTitle
}
>
${
next
.
timeTitle
}
</option>`
}
},
[])
selectTwoId
=
''
;
// 选中演出下级的ID
selectTwoId
=
''
;
// 选中演出下级的ID
selectThreeId
=
''
;
// 选中演出三级的ID
selectThreeId
=
''
;
// 选中演出三级的ID
$
(
'#selectTwo'
).
empty
().
append
(
str
);
$
(
'#selectTwo'
).
empty
().
append
(
str
);
...
@@ -325,6 +334,14 @@
...
@@ -325,6 +334,14 @@
}
}
promiseMethods
(
'/candy/coupon/mgt/add'
,
'post'
,
JSON
.
stringify
(
data
),
'application/json'
).
then
(
res
=>
{
promiseMethods
(
'/candy/coupon/mgt/add'
,
'post'
,
JSON
.
stringify
(
data
),
'application/json'
).
then
(
res
=>
{
layer
.
msg
(
'创建成功!'
);
layer
.
msg
(
'创建成功!'
);
let
data
=
{
pageSize
:
10
,
pageNum
:
1
,
orderByColumn
:
'createdAt'
,
isAsc
:
'desc'
,
couType
:
3
}
$
.
operate
.
save
(
prefix
+
"/list"
,
data
);
closeItem
();
closeItem
();
})
})
}
}
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/candy/coupon/mgt/add4.html
View file @
71359808
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
let
sendTimeType
=
''
;
let
sendTimeType
=
''
;
function
getMallList
()
{
function
getMallList
()
{
let
data
=
{
let
data
=
{
title
:
''
title
:
$
(
'#searchIpt'
).
val
()
}
}
let
str
=
''
;
let
str
=
''
;
promiseMethods
(
phpMallUrl
+
'/admin/goodListForQuick'
,
'get'
,
data
,
'application/x-www-form-urlencoded'
).
then
(
res
=>
{
promiseMethods
(
phpMallUrl
+
'/admin/goodListForQuick'
,
'get'
,
data
,
'application/x-www-form-urlencoded'
).
then
(
res
=>
{
...
@@ -285,7 +285,7 @@
...
@@ -285,7 +285,7 @@
});
});
$
(
"#searchIpt"
).
keyup
(
function
(){
$
(
"#searchIpt"
).
keyup
(
function
(){
searchVal
=
$
(
"#searchIpt"
).
val
()
searchVal
=
$
(
"#searchIpt"
).
val
()
search
()
getMallList
()
});
});
$
(
"input[name=sendType]"
).
change
(
function
(
e
){
$
(
"input[name=sendType]"
).
change
(
function
(
e
){
sendType
=
e
.
target
.
value
;
sendType
=
e
.
target
.
value
;
...
...
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