记得上下班打卡 | 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
74984ee1
Commit
74984ee1
authored
Dec 14, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_draw_change' into dev_draw_change
parents
bf7591b9
c53e0936
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
4 deletions
+51
-4
integralStore.html
...ain/resources/templates/zhengzai/stone/integralStore.html
+28
-0
integralStoreEdit.html
...resources/templates/zhengzai/stone/integralStoreEdit.html
+23
-4
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/stone/integralStore.html
View file @
74984ee1
...
@@ -58,6 +58,19 @@
...
@@ -58,6 +58,19 @@
var
prefix
=
ctx
+
"stone/item"
;
var
prefix
=
ctx
+
"stone/item"
;
var
prefix2
=
ctx
;
var
prefix2
=
ctx
;
var
couType
=
[[
$
{
couType
}]];
var
couType
=
[[
$
{
couType
}]];
var
simpleTypeDataList
=
[{
id
:
1
,
simpleName
:
'5元'
},
{
id
:
2
,
simpleName
:
'10元'
},
{
id
:
3
,
simpleName
:
'25元'
},
{
id
:
4
,
simpleName
:
'35元'
}]
$
(
function
()
{
$
(
function
()
{
var
options
=
{
var
options
=
{
url
:
prefix2
+
"stone/item/list"
,
url
:
prefix2
+
"stone/item/list"
,
...
@@ -94,6 +107,21 @@
...
@@ -94,6 +107,21 @@
}
}
}
}
},
},
{
field
:
'simpleType'
,
title
:
'优惠券分类'
,
formatter
:
function
(
value
,
row
,
index
)
{
if
(
value
==
0
)
{
return
'无条件'
;
}
else
{
for
(
var
i
in
simpleTypeDataList
)
{
if
(
simpleTypeDataList
[
i
].
id
==
value
)
{
return
simpleTypeDataList
[
i
].
simpleName
;
}
}
}
}
},
{
{
field
:
'busiType'
,
field
:
'busiType'
,
title
:
'类型'
,
title
:
'类型'
,
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/stone/integralStoreEdit.html
View file @
74984ee1
...
@@ -155,6 +155,16 @@
...
@@ -155,6 +155,16 @@
<input
type=
"radio"
value=
"3"
name=
"typeOne"
><span>
优先购
</span>
<input
type=
"radio"
value=
"3"
name=
"typeOne"
><span>
优先购
</span>
</div>
</div>
</div>
</div>
<div
class=
"labelSelect main_type"
>
<span
class=
"labelName"
>
优惠券分类:
</span>
<select
name=
"labelSelect"
id=
"labelSelectType"
>
<option
value=
"0"
>
请选择优惠券分类
</option>
<option
value=
"1"
>
5元
</option>
<option
value=
"2"
>
10元
</option>
<option
value=
"3"
>
25元
</option>
<option
value=
"4"
>
35元
</option>
</select>
</div>
<div
id=
"scoreType"
class=
"main_type"
>
<div
id=
"scoreType"
class=
"main_type"
>
<span
class=
"labelName"
><i
class=
"required"
>
*
</i>
类别:
</span>
<span
class=
"labelName"
><i
class=
"required"
>
*
</i>
类别:
</span>
<div
class=
"layui-input-block"
style=
"display: flex"
>
<div
class=
"layui-input-block"
style=
"display: flex"
>
...
@@ -172,7 +182,6 @@
...
@@ -172,7 +182,6 @@
</div>
</div>
<div
class=
"main_type"
>
<div
class=
"main_type"
>
<span
class=
"labelName"
><i
class=
"required"
>
*
</i>
展示图:
</span>
<span
class=
"labelName"
><i
class=
"required"
>
*
</i>
展示图:
</span>
<div
class=
"layui-input-block"
style=
"display: flex;flex-direction: column;"
>
<div
class=
"layui-input-block"
style=
"display: flex;flex-direction: column;"
>
<img
id=
"viewImg"
src=
""
alt=
""
style=
"max-height:242px;"
>
<img
id=
"viewImg"
src=
""
alt=
""
style=
"max-height:242px;"
>
<div
class=
"ibox-content"
>
<div
class=
"ibox-content"
>
...
@@ -280,7 +289,8 @@
...
@@ -280,7 +289,8 @@
let
itemId
=
''
;
//
let
itemId
=
''
;
//
let
selectType
=
'1'
let
selectType
=
'1'
let
type
=
''
;
let
type
=
''
;
console
.
log
(
'检测'
)
let
simpleType
=
''
;
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
var
$summernote
=
$
(
'#summernote'
).
summernote
({
var
$summernote
=
$
(
'#summernote'
).
summernote
({
height
:
300
,
height
:
300
,
...
@@ -367,6 +377,12 @@
...
@@ -367,6 +377,12 @@
$
(
"#startTime"
).
val
(
data
.
startTime
);
$
(
"#startTime"
).
val
(
data
.
startTime
);
$
(
"input[name='sex'][value='2']"
).
attr
(
"checked"
,
"checked"
).
siblings
().
removeAttr
(
'checked'
);
$
(
"input[name='sex'][value='2']"
).
attr
(
"checked"
,
"checked"
).
siblings
().
removeAttr
(
'checked'
);
}
}
if
(
data
.
simpleType
==
0
)
{
$
(
"#labelSelectType"
).
find
(
"option[value='0']"
).
attr
(
"selected"
,
true
);
}
else
{
var
simpleTypeData
=
data
.
simpleType
.
toString
();
$
(
"#labelSelectType"
).
find
(
"option[value="
+
simpleTypeData
+
"]"
).
attr
(
"selected"
,
true
);
}
}
}
})
})
}
}
...
@@ -527,6 +543,7 @@
...
@@ -527,6 +543,7 @@
endTime
=
$
(
"#endTime"
).
val
();
endTime
=
$
(
"#endTime"
).
val
();
}
}
}
}
let
data
=
{
let
data
=
{
details
:
$
(
'#summernote'
).
summernote
(
'code'
),
// 商品详情
details
:
$
(
'#summernote'
).
summernote
(
'code'
),
// 商品详情
endTime
:
$
.
common
.
dateFormat
(
endTime
,
'yyyy-MM-dd HH:mm:ss'
),
// 下架时间(status = 2 必传)
endTime
:
$
.
common
.
dateFormat
(
endTime
,
'yyyy-MM-dd HH:mm:ss'
),
// 下架时间(status = 2 必传)
...
@@ -539,7 +556,8 @@
...
@@ -539,7 +556,8 @@
startTime
:
$
.
common
.
dateFormat
(
startTime
,
'yyyy-MM-dd HH:mm:ss'
),
// 上架时间status = 2 必传)
startTime
:
$
.
common
.
dateFormat
(
startTime
,
'yyyy-MM-dd HH:mm:ss'
),
// 上架时间status = 2 必传)
status
:
Number
(
shelves
),
// 上架状态[1-不限|2-定时|7-下线]
status
:
Number
(
shelves
),
// 上架状态[1-不限|2-定时|7-下线]
targetId
:
showId
,
// 目标物品id
targetId
:
showId
,
// 目标物品id
targetTitle
:
$
(
'#searchIpt'
).
val
()
||
$
(
"#searchIptMall"
).
val
()
// 目标物品标题
targetTitle
:
$
(
'#searchIpt'
).
val
()
||
$
(
"#searchIptMall"
).
val
(),
// 目标物品标题
simpleType
:
$
(
'#labelSelectType option:selected'
).
val
()
}
}
let
type
=
'post'
;
let
type
=
'post'
;
if
(
!
itemId
)
{
if
(
!
itemId
)
{
...
@@ -557,7 +575,8 @@
...
@@ -557,7 +575,8 @@
}
else
{
}
else
{
data
[
'type'
]
=
11
data
[
'type'
]
=
11
}
}
promiseMethods
(
ctx
+
'stone/item'
,
type
,
data
).
then
(
res
=>
{
promiseMethods
(
ctx
+
'stone/item'
,
type
,
data
).
then
(
res
=>
{
console
.
log
(
res
);
layer
.
msg
(
''
+
res
);
layer
.
msg
(
''
+
res
);
if
(
res
.
code
!=
undefined
&&
res
.
code
!=
web_status
.
SUCCESS
)
{
if
(
res
.
code
!=
undefined
&&
res
.
code
!=
web_status
.
SUCCESS
)
{
$
.
modal
.
alertWarning
(
res
.
msg
);
$
.
modal
.
alertWarning
(
res
.
msg
);
...
...
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