记得上下班打卡 | 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
d3147b3d
Commit
d3147b3d
authored
Sep 24, 2021
by
liuran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改会员基础信息
parent
05021eb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
138 additions
and
64 deletions
+138
-64
info.html
...c/main/resources/templates/zhengzai/adam/member/info.html
+138
-64
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/adam/member/info.html
View file @
d3147b3d
...
@@ -322,7 +322,17 @@
...
@@ -322,7 +322,17 @@
<ul
th:each=
"mrc:${couponMemberDtoListMap.get(mr.mrightsId)}"
>
<ul
th:each=
"mrc:${couponMemberDtoListMap.get(mr.mrightsId)}"
>
<div
class=
"member-coupes-inner"
>
<div
class=
"member-coupes-inner"
>
<div
class=
"member-coupes-detail"
>
<div
class=
"member-coupes-detail"
>
<input
type=
"hidden"
th:value=
"${mrc.mcouponId}"
/>
<input
type=
"hidden"
id=
"mrcmcouponId"
th:value=
"${mrc.mcouponId}"
/>
<input
type=
"hidden"
id=
"mrccouponId"
th:value=
"${mrc.couponId}"
/>
<input
type=
"hidden"
id=
"mrcbusiType"
th:value=
"${mrc.busiType}"
/>
<input
type=
"hidden"
id=
"mrccouType"
th:value=
"${mrc.couType}"
/>
<input
type=
"hidden"
id=
"mrctitle"
th:value=
"${mrc.title}"
/>
<input
type=
"hidden"
id=
"mrceventAmt"
th:value=
"${mrc.eventAmt}"
/>
<input
type=
"hidden"
id=
"mrcdays"
th:value=
"${memberPrice.days}"
/>
<input
type=
"hidden"
id=
"mrvalFace"
th:value=
"${mrc.valFace}"
/>
<input
type=
"hidden"
id=
"mrcoverlay"
th:value=
"${mrc.overlay}"
/>
<input
type=
"hidden"
id=
"mrcvalMinus"
th:value=
"${mrc.valMinus}"
/>
<input
type=
"hidden"
id=
"mrcvalOver"
th:value=
"${mrc.valOver}"
/>
<span
class=
"member-coupes-mcouponId"
th:text=
"${mrc.mcouponId}"
hidden
></span>
<span
class=
"member-coupes-mcouponId"
th:text=
"${mrc.mcouponId}"
hidden
></span>
<span
class=
"member-coupes-busiType"
th:if=
"${mrc.busiType == 0}"
>
全场
</span>
<span
class=
"member-coupes-busiType"
th:if=
"${mrc.busiType == 0}"
>
全场
</span>
<span
class=
"member-coupes-busiType"
th:if=
"${mrc.busiType == 1}"
>
演出
</span>
<span
class=
"member-coupes-busiType"
th:if=
"${mrc.busiType == 1}"
>
演出
</span>
...
@@ -455,21 +465,21 @@
...
@@ -455,21 +465,21 @@
<input
type=
"text"
id=
"eventAmt"
value=
"1"
/>
张
<input
type=
"text"
id=
"eventAmt"
value=
"1"
/>
张
</div>
</div>
</div>
</div>
<div
class=
"form-group alltrack_limit"
>
<!-- <div class="form-group alltrack_limit">--
>
<label
class=
"col-sm-2 control-label"
>
使用限制:
</label
>
<!-- <label class="col-sm-2 control-label">使用限制:</label>--
>
<div
class=
"col-sm-10"
>
<!-- <div class="col-sm-10">--
>
<div
class=
"radio-box"
>
<!-- <div class="radio-box">--
>
<label
for=
"radio1"
onclick=
"limitType(this)"
>
<!-- <label for="radio1" onclick="limitType(this)">--
>
<input
type=
"radio"
id=
"limittypr1"
name=
"limit_type"
value=
"0"
/>
叠加
<!-- <input type="radio" id="limittypr1" name="limit_type" value="0"/> 叠加-->
</label
>
<!-- </label>--
>
</div
>
<!-- </div>--
>
<div
class=
"radio-box"
>
<!-- <div class="radio-box">--
>
<label
for=
"radio2"
onclick=
"limitType(this)"
>
<!-- <label for="radio2" onclick="limitType(this)">--
>
<input
type=
"radio"
id=
"limittypr2"
name=
"limit_type"
value=
"1"
/>
限制
<!-- <input type="radio" id="limittypr2" name="limit_type" value="1"/> 限制-->
</label
>
<!-- </label>--
>
</div
>
<!-- </div>--
>
</div
>
<!-- </div>--
>
</div
>
<!-- </div>--
>
<div
class=
"pop_btns"
>
<div
class=
"pop_btns"
>
<div
class=
"confirm_btn"
onclick=
"popBtn(1)"
>
确认
</div>
<div
class=
"confirm_btn"
onclick=
"popBtn(1)"
>
确认
</div>
<div
class=
"confirm_btn confirm_cancel"
onclick=
"popBtn(0)"
>
取消
</div>
<div
class=
"confirm_btn confirm_cancel"
onclick=
"popBtn(0)"
>
取消
</div>
...
@@ -570,16 +580,19 @@
...
@@ -570,16 +580,19 @@
label
:
"标注"
,
label
:
"标注"
,
memberId
:
member
.
memberId
,
memberId
:
member
.
memberId
,
mrightsId
:
memberRightsList
[
itemIndex
].
mrightsId
?
memberRightsList
[
itemIndex
].
mrightsId
:
'string'
,
mrightsId
:
memberRightsList
[
itemIndex
].
mrightsId
?
memberRightsList
[
itemIndex
].
mrightsId
:
'string'
,
overlay
:
overlay
?
overlay
:
0
,
// overlay: overlay ? overlay : 0,
overlay
:
1
,
title
:
coupeTitle
,
title
:
coupeTitle
,
valFace
:
valFace
?
valFace
:
1
,
valFace
:
valFace
?
valFace
:
1
,
valOver
:
valOver
?
valOver
:
1
,
valOver
:
valOver
?
valOver
:
1
,
valMinus
:
valMinus
?
valMinus
:
1
,
valMinus
:
valMinus
?
valMinus
:
1
,
state
:
1
state
:
1
};
};
console
.
log
(
MembercoupenData
);
$
.
operate
.
saveModalBody
(
prefix
+
"/edit_coupon"
,
JSON
.
stringify
(
MembercoupenData
),
function
()
{
$
.
operate
.
saveModalBody
(
prefix
+
"/edit_coupon"
,
JSON
.
stringify
(
MembercoupenData
));
$
(
'.coupe_pop'
).
hide
();
$
(
'.cover_pop'
).
hide
();
$
(
'.cover_pop'
).
hide
();
window
.
location
.
reload
();
});
}
}
}
}
...
@@ -613,6 +626,7 @@
...
@@ -613,6 +626,7 @@
}
}
}
}
// 权益图片上传
function
icon
(
obj
,
num
)
{
function
icon
(
obj
,
num
)
{
$
(
'.coverFunNum'
).
val
(
num
);
$
(
'.coverFunNum'
).
val
(
num
);
var
addIconIndex
=
$
(
'.vip_icon'
).
index
(
$
(
obj
));
var
addIconIndex
=
$
(
'.vip_icon'
).
index
(
$
(
obj
));
...
@@ -620,29 +634,127 @@
...
@@ -620,29 +634,127 @@
$
(
'.cover_pop'
).
show
();
$
(
'.cover_pop'
).
show
();
}
}
// 删除券
function
delCoupes
(
obj
)
{
function
delCoupes
(
obj
)
{
if
(
$
(
obj
).
parents
(
'.member-coupes-item'
).
find
(
'.member-coupes-inner'
).
length
>
1
)
{
var
thisVal
=
$
(
obj
).
parents
(
'ul'
);
$
(
obj
).
parents
(
'.member-coupes-inner'
).
remove
();
var
busiType
=
Number
(
thisVal
.
find
(
'#mrcbusiType'
).
val
());
var
couType
=
Number
(
thisVal
.
find
(
'#mrccouType'
).
val
());
var
couponId
=
thisVal
.
find
(
'#mrccouponId'
).
val
();
var
mrightsId
=
thisVal
.
find
(
'#mrcmcouponId'
).
val
();
var
eventAmt
=
thisVal
.
find
(
'#mrceventAmt'
).
val
();
var
memberId
=
member
.
memberId
;
// var overlay = thisVal.find('#mrcoverlay').val();
var
titleDel
=
thisVal
.
find
(
'#mrctitle'
).
val
();
var
valFace
=
thisVal
.
find
(
'#mrvalFace'
).
val
();
var
valOver
=
thisVal
.
find
(
'#mrcvalOver'
).
val
();
var
valMinus
=
thisVal
.
find
(
'#mrcvalMinus'
).
val
();
// var mrightsId =
if
(
busiType
==
0
||
busiType
==
1
||
busiType
==
3
)
{
var
couponRuleList
=
[{
useScope
:
100
,
busiName
:
'全部演出'
}]
}
else
{
var
couponRuleList
=
[{
useScope
:
100
,
busiName
:
'全部商品'
}]
}
}
}
var
MembercoupenData
=
{
busiType
:
busiType
,
couType
:
couType
==
3
?
101
:
couType
,
couponId
:
couponId
,
couponRuleList
:
couponRuleList
,
eventAmt
:
eventAmt
,
label
:
"标注"
,
memberId
:
memberId
,
mrightsId
:
mrightsId
,
// overlay: overlay ? overlay : 0,
overlay
:
1
,
title
:
titleDel
,
valFace
:
valFace
?
valFace
:
1
,
valOver
:
valOver
?
valOver
:
1
,
valMinus
:
valMinus
?
valMinus
:
1
,
state
:
2
};
$
.
operate
.
saveModalBody
(
prefix
+
"/edit_coupon"
,
JSON
.
stringify
(
MembercoupenData
));
thisVal
.
remove
();
}
// 添加券
function
addCoupes
(
obj
)
{
function
addCoupes
(
obj
)
{
var
addItemIndex
=
$
(
'.member-coupes'
).
index
(
$
(
obj
));
var
addItemIndex
=
$
(
'.member-coupes'
).
index
(
$
(
obj
));
$
(
'.parentsIndex'
).
val
(
addItemIndex
);
$
(
'.parentsIndex'
).
val
(
addItemIndex
);
$
(
'.coupe_pop'
).
show
();
$
(
'.coupe_pop'
).
show
();
}
}
// 编辑券
function
editCoupes
(
obj
,
dataObj
)
{
function
editCoupes
(
obj
,
dataObj
)
{
var
coupenObj
=
dataObj
;
var
coupenObj
=
dataObj
;
$
(
'.coupe_pop'
).
show
();
$
(
'.coupe_pop'
).
show
();
}
}
// 添加权益
function
addColumn
(
obj
)
{
function
addColumn
(
obj
)
{
let
appendDom
=
$
(
obj
).
parents
(
'.interests_column'
);
let
appendDom
=
$
(
obj
).
parents
(
'.interests_column
:last
'
);
appendDom
.
append
(
appendDom
.
find
(
'.interests_item'
).
prop
(
'outerHTML'
));
appendDom
.
append
(
appendDom
.
find
(
'.interests_item'
).
prop
(
'outerHTML'
));
let
newDom
=
$
(
'.interests_item:last'
);
newDom
.
find
(
'.interestsIcon'
).
attr
(
'src'
,
''
);
newDom
.
find
(
'#interestsTitle'
).
val
(
''
);
newDom
.
find
(
'#interestsSubTitle'
).
val
(
''
);
newDom
.
find
(
'#interestsDesc'
).
val
(
''
);
newDom
.
find
(
'.member-coupes-item'
).
html
(
''
);
// $.operate.save(prefix + "/create", data);
// $.operate.save(prefix + "/create", data);
}
}
// 保存权益/删除权益
function
saveColumn
(
obj
,
num
)
{
var
objDom
=
$
(
obj
).
parent
().
parent
();
var
domIndex
=
$
(
'.interests_item'
).
index
(
objDom
);
var
postData
=
[];
postData
.
push
({
"name"
:
"cover"
,
"value"
:
objDom
.
find
(
'#interestsIcon'
).
attr
(
'src'
)
},
{
"name"
:
"detail"
,
"value"
:
objDom
.
find
(
'#interestsDesc'
).
val
()
},
{
"name"
:
"memberId"
,
"value"
:
member
.
memberId
},
{
"name"
:
"seqNo"
,
"value"
:
domIndex
},
{
"name"
:
"state"
,
"value"
:
num
},
{
"name"
:
"subTitle"
,
"value"
:
objDom
.
find
(
'#interestsSubTitle'
).
val
()
},
{
"name"
:
"title"
,
"value"
:
objDom
.
find
(
'#interestsTitle'
).
val
()
});
if
(
num
==
2
)
{
if
(
objDom
.
parent
().
prop
(
"className"
).
indexOf
(
'interests_inner'
)
!=
-
1
)
{
postData
.
push
({
"name"
:
"mrightsId"
,
"value"
:
memberRightsList
[
domIndex
].
mrightsId
});
objDom
.
remove
();
$
.
operate
.
saveModal
(
prefix
+
"/edit_rights"
,
postData
,
function
()
{
window
.
location
.
reload
();
});
}
else
{
objDom
.
remove
();
}
}
else
{
if
(
memberRightsList
[
domIndex
])
{
postData
.
push
({
"name"
:
"mrightsId"
,
"value"
:
memberRightsList
[
domIndex
].
mrightsId
});
}
$
.
operate
.
saveModal
(
prefix
+
"/edit_rights"
,
postData
,
function
()
{
window
.
location
.
reload
();
});
}
}
/*基础信息-修改*/
/*基础信息-修改*/
$
(
"#form-member-edit"
).
validate
({
$
(
"#form-member-edit"
).
validate
({
onkeyup
:
false
,
onkeyup
:
false
,
...
@@ -683,7 +795,7 @@
...
@@ -683,7 +795,7 @@
required
:
"请选择是否限购"
,
required
:
"请选择是否限购"
,
},
},
"onsale"
:
{
"onsale"
:
{
required
:
"请选择是否
限购
"
,
required
:
"请选择是否
开售
"
,
},
},
},
},
focusCleanup
:
true
focusCleanup
:
true
...
@@ -708,45 +820,7 @@
...
@@ -708,45 +820,7 @@
$
.
operate
.
saveModal
(
prefix
+
"/edit_price"
,
MemberShipData
);
$
.
operate
.
saveModal
(
prefix
+
"/edit_price"
,
MemberShipData
);
}
}
// 保存权益
function
saveColumn
(
obj
,
num
)
{
var
objDom
=
$
(
obj
).
parent
().
parent
();
var
domIndex
=
$
(
'.interests_item'
).
index
(
objDom
);
var
postData
=
[];
postData
.
push
({
"name"
:
"cover"
,
"value"
:
objDom
.
find
(
'#interestsIcon'
).
attr
(
'src'
)
},
{
"name"
:
"detail"
,
"value"
:
objDom
.
find
(
'#interestsDesc'
).
val
()
},
{
"name"
:
"memberId"
,
"value"
:
member
.
memberId
},
{
"name"
:
"seqNo"
,
"value"
:
domIndex
},
{
"name"
:
"state"
,
"value"
:
num
},
{
"name"
:
"subTitle"
,
"value"
:
objDom
.
find
(
'#interestsSubTitle'
).
val
()
},
{
"name"
:
"title"
,
"value"
:
objDom
.
find
(
'#interestsTitle'
).
val
()
});
if
(
num
==
2
)
{
postData
.
push
({
"name"
:
"mrightsId"
,
"value"
:
memberRightsList
[
domIndex
].
mrightsId
});
objDom
.
remove
();
}
else
{
if
(
memberRightsList
[
domIndex
])
{
postData
.
push
({
"name"
:
"mrightsId"
,
"value"
:
memberRightsList
[
domIndex
].
mrightsId
});
}
}
console
.
log
(
postData
)
$
.
operate
.
saveModal
(
prefix
+
"/edit_rights"
,
postData
);
}
</script>
</script>
</body>
</body>
</html>
</html>
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