Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6f4bf242
authored
Jul 21, 2022
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
ce7297a2
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
112 additions
and
301 deletions
package.json
src/assets/css/public.scss
src/assets/gold.png
src/views/memberCenter/center.vue
src/views/memberCenter/order.vue
src/views/memberCenter/record.vue
src/views/memberCenter/selectGiftDialog.vue
src/views/memberCenter/serviceAddUpdateLook.vue
src/views/memberCenter/setmealAddUpdate.vue
package.json
View file @
6f4bf24
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
"el-tree-transfer"
:
"^2.2.6"
,
"el-tree-transfer"
:
"^2.2.6"
,
"element-ui"
:
"^2.4.5"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.4.
2
"
,
"glsx-components"
:
"^1.4.
4
"
,
"lodash"
:
"^4.17.21"
,
"lodash"
:
"^4.17.21"
,
"node-sass"
:
"^4.0.0"
,
"node-sass"
:
"^4.0.0"
,
"vue"
:
"^2.6.10"
,
"vue"
:
"^2.6.10"
,
...
...
src/assets/css/public.scss
View file @
6f4bf24
...
@@ -578,12 +578,18 @@ html {
...
@@ -578,12 +578,18 @@ html {
.marketing
.line-20
{
.marketing
.line-20
{
line-height
:
20px
;
line-height
:
20px
;
}
}
.marketing
.weight-6
{
font-weight
:
600
;
}
.marketing
.weight-5
{
.marketing
.weight-5
{
font-weight
:
500
;
font-weight
:
500
;
}
}
.marketing
.weight-4
{
.marketing
.weight-4
{
font-weight
:
400
;
font-weight
:
400
;
}
}
.marketing
.mt-10
{
margin-top
:
10px
;
}
.el-tooltip__popper.is-light
{
.el-tooltip__popper.is-light
{
background
:
#ffffff
;
background
:
#ffffff
;
box-shadow
:
0px
4px
12px
0px
rgba
(
0
,
0
,
0
,
0
.08
);
box-shadow
:
0px
4px
12px
0px
rgba
(
0
,
0
,
0
,
0
.08
);
...
...
src/assets/gold.png
0 → 100644
View file @
6f4bf24
3.12 KB
src/views/memberCenter/center.vue
View file @
6f4bf24
...
@@ -7,14 +7,26 @@
...
@@ -7,14 +7,26 @@
</div>
</div>
<div
class=
"cardDetail"
v-if=
"!isShowEditWrap"
>
<div
class=
"cardDetail"
v-if=
"!isShowEditWrap"
>
<div
class=
"flex-1"
>
<div
class=
"flex-1"
>
<p>
<p
class=
"text-16 weight-6"
>
{{
ruleForm
.
cardName
}}
{{
ruleForm
.
cardName
}}
<el-tooltip
content=
"会员已包含基础权益:生活权益、商城折扣"
effect=
"light"
placement=
"top"
>
<
!--
<
el-tooltip
content=
"会员已包含基础权益:生活权益、商城折扣"
effect=
"light"
placement=
"top"
>
<img
class=
"icon-circle-question"
src=
"@/assets/icon-circle-question.png"
alt=
""
@
click=
"isshow = true"
/>
<img
class=
"icon-circle-question"
src=
"@/assets/icon-circle-question.png"
alt=
""
@
click=
"isshow = true"
/>
</el-tooltip>
</el-tooltip>
-->
</p>
</p>
<template
v-if=
"showGh"
>
<div
class=
"member-card"
><img
src=
"@/assets/silver.png"
alt=
""
/></div>
</
template
>
<GLButton
@
click=
"openEditWrap"
fn=
"编辑"
mode=
"div"
><img
src=
"@/assets/editBlue.png"
class=
"editIcon"
@
click=
"openEditWrap"
alt=
""
/></GLButton>
<GLButton
@
click=
"openEditWrap"
fn=
"编辑"
mode=
"div"
><img
src=
"@/assets/editBlue.png"
class=
"editIcon"
@
click=
"openEditWrap"
alt=
""
/></GLButton>
</div>
</div>
<
template
v-if=
"showGh"
>
<div
class=
"flex-1 mt-10 line-20"
>
<p
class=
"text-14 weight-5"
>
<!--
{{
ruleForm
.
cardName
?
ruleForm
.
cardName
:
'--'
}}
-->
--
</p>
<div
class=
"member-card"
><img
src=
"@/assets/gold.png"
alt=
""
/></div>
</div>
</
template
>
<div
class=
"row"
>
<div
class=
"row"
>
<span>
售价:
</span>
<span>
售价:
</span>
...
@@ -34,9 +46,20 @@
...
@@ -34,9 +46,20 @@
</div>
</div>
<div
class=
"cardDetail editForm"
v-else
>
<div
class=
"cardDetail editForm"
v-else
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"90px"
class=
"demo-ruleForm"
style=
"width: 500px"
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"90px"
class=
"demo-ruleForm"
style=
"width: 500px"
>
<el-form-item
label=
"会员卡名"
prop=
"cardName"
size=
"small"
>
<
template
v-if=
"!showGh"
>
<el-input
v-model
.
trim=
"ruleForm.cardName"
size=
"small"
class=
"cardNameInput"
show-word-limit
placeholder=
"请输入会员卡名"
maxlength=
"15"
></el-input>
<el-form-item
label=
"会员卡名"
prop=
"cardName"
size=
"small"
>
</el-form-item>
<el-input
v-model
.
trim=
"ruleForm.cardName"
size=
"small"
class=
"cardNameInput"
show-word-limit
placeholder=
"请输入会员卡名"
maxlength=
"15"
></el-input>
</el-form-item>
</
template
>
<
template
v-else
>
<el-form-item
label=
"银卡"
prop=
"cardName"
size=
"small"
>
<el-input
v-model
.
trim=
"ruleForm.cardName"
size=
"small"
class=
"cardNameInput"
show-word-limit
placeholder=
"请输入银卡名称"
maxlength=
"15"
></el-input>
</el-form-item>
<el-form-item
label=
"金卡"
prop=
"cardName"
size=
"small"
>
<el-input
v-model
.
trim=
"ruleForm.cardName"
size=
"small"
class=
"cardNameInput"
show-word-limit
placeholder=
"请输入金卡名称"
maxlength=
"15"
></el-input>
</el-form-item>
</
template
>
<div
class=
"pricesMerge"
>
<div
class=
"pricesMerge"
>
<el-form-item
label=
"售价"
size=
"small"
prop=
"price"
style=
"width: 300px"
>
<el-form-item
label=
"售价"
size=
"small"
prop=
"price"
style=
"width: 300px"
>
<el-input
v-model=
"ruleForm.price"
size=
"small"
placeholder=
"请输入售价"
@
keyup
.
native=
"ruleForm.price = oninput(ruleForm.price)"
>
<el-input
v-model=
"ruleForm.price"
size=
"small"
placeholder=
"请输入售价"
@
keyup
.
native=
"ruleForm.price = oninput(ruleForm.price)"
>
...
@@ -70,7 +93,6 @@
...
@@ -70,7 +93,6 @@
</div>
</div>
</div>
</div>
</div>
</div>
<!--
<div
class=
"pageTitle"
v-if=
"!(merchantModel == 2 && accountLevel == 1)"
>
会员用户
</div>
-->
<div
class=
"pageTitle"
>
会员用户
</div>
<div
class=
"pageTitle"
>
会员用户
</div>
<div
class=
"live-room container p-t-20 "
>
<div
class=
"live-room container p-t-20 "
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
...
@@ -89,8 +111,7 @@
...
@@ -89,8 +111,7 @@
</span>
</span>
</GLTable>
</GLTable>
</div>
</div>
<glsx-dialog
title=
"权益详情"
width=
"712px"
:noBtnOk=
"true"
:noCancel=
"true"
:noClose=
"false"
typeName=
"primary"
btnCancelLabel=
"关闭"
btnSize=
"small"
:isVisible=
"isDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
>
<GLDialog
:mode=
"mode"
title=
"权益详情"
:type=
"'error'"
okText=
"关闭"
@
onOk=
"handleClose"
@
onCancel=
"handleClose"
:visible
.
sync=
"isDialogVisible"
>
<!--
<el-scrollbar>
-->
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
<div
class=
"equity-name"
>
汽车权益
</div>
<div
class=
"equity-name"
>
汽车权益
</div>
<div
class=
"equity-panel"
>
<div
class=
"equity-panel"
>
...
@@ -111,10 +132,12 @@
...
@@ -111,10 +132,12 @@
</div>
</div>
</div>
</div>
</div>
</div>
<!--
</el-scrollbar>
-->
</GLDialog>
</glsx-dialog>
<!-- <glsx-dialog title="权益详情" width="712px" :noBtnOk="true" :noCancel="true" :noClose="false" typeName="primary" btnCancelLabel="关闭" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleClose">
</glsx-dialog> -->
<!-- 推广弹窗 -->
<!-- 推广弹窗 -->
<
el-dialog
title=
"试用推广"
:visible
.
sync=
"isQRVisible"
:before-close=
"handleQRClose"
:close-on-click-modal=
"false"
width=
"547px"
class=
"addCardsDialog
"
>
<
GLDialog
:mode=
"mode"
title=
"试用推广"
:hasFooter=
"hasFooter"
:type=
"'error'"
@
onOk=
"handleQRConfirm"
@
onCancel=
"handleQRClose"
:visible
.
sync=
"isQRVisible
"
>
<el-form
class=
"proForm"
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"68px"
>
<el-form
class=
"proForm"
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"68px"
>
<div
class=
"form"
>
<div
class=
"form"
>
<div
class=
"main-qrcode"
>
<div
class=
"main-qrcode"
>
...
@@ -129,11 +152,7 @@
...
@@ -129,11 +152,7 @@
</el-form-item>
</el-form-item>
</div>
</div>
</el-form>
</el-form>
<div
slot=
"footer"
style=
"margin-left: 360px"
>
</GLDialog>
<el-button
size=
"small"
@
click=
"handleQRClose"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleQRConfirm"
size=
"small"
>
确定
</el-button>
</div>
</el-dialog>
</div>
</div>
</template>
</template>
...
@@ -156,10 +175,13 @@ export default {
...
@@ -156,10 +175,13 @@ export default {
}
}
},
},
components
:
{
components
:
{
glsxDialog
//
glsxDialog
},
},
data
()
{
data
()
{
return
{
return
{
mode
:
'mid'
,
hasFooter
:
true
,
showGh
:
false
,
promotionForm
:
{
promotionForm
:
{
QRurl
:
''
,
QRurl
:
''
,
QRcode
:
''
QRcode
:
''
...
@@ -224,7 +246,7 @@ export default {
...
@@ -224,7 +246,7 @@ export default {
optionId
:
'dictValue'
,
optionId
:
'dictValue'
,
optionLabel
:
'dictLabel'
,
optionLabel
:
'dictLabel'
,
optionsName
:
'openModeList'
optionsName
:
'openModeList'
}
,
}
],
],
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
// 表格参数
// 表格参数
...
@@ -351,6 +373,7 @@ export default {
...
@@ -351,6 +373,7 @@ export default {
this
.
merchantModel
=
this
.
$globalState
.
session
.
merchantModel
this
.
merchantModel
=
this
.
$globalState
.
session
.
merchantModel
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
}
}
// this.showGh = window.location.host.indexOf('cgacar') != -1
this
.
getCardContentFun
()
this
.
getCardContentFun
()
this
.
getCardtypeList
()
this
.
getCardtypeList
()
},
},
...
@@ -560,6 +583,9 @@ export default {
...
@@ -560,6 +583,9 @@ export default {
width
:
53px
;
width
:
53px
;
margin
:
0
3px
;
margin
:
0
3px
;
}
}
/
deep
/
.btn-three
{
display
:
none
;
}
.lineCtn
{
.lineCtn
{
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
...
@@ -640,7 +666,14 @@ export default {
...
@@ -640,7 +666,14 @@ export default {
width
:
16px
;
width
:
16px
;
height
:
16px
;
height
:
16px
;
}
}
.member-card
{
width
:
30px
;
height
:
16px
;
margin-left
:
4px
;
img
{
width
:
100%
;
}
}
.seeEquity
{
.seeEquity
{
position
:
absolute
;
position
:
absolute
;
right
:
0
;
right
:
0
;
...
@@ -673,9 +706,7 @@ export default {
...
@@ -673,9 +706,7 @@ export default {
display
:
flex
;
display
:
flex
;
p
{
p
{
display
:
inline-block
;
display
:
inline-block
;
font-weight
:
600
;
color
:
#333333
;
color
:
#333333
;
font-size
:
16px
;
margin
:
0
;
margin
:
0
;
}
}
}
}
...
...
src/views/memberCenter/order.vue
View file @
6f4bf24
...
@@ -68,33 +68,33 @@
...
@@ -68,33 +68,33 @@
</span>
</span>
</GLTable>
</GLTable>
</div>
</div>
<
glsx-dialog
class=
"refund-fill-boxss"
:width=
"'576px'"
title=
"提示"
:show-close=
"true"
:isVisible=
"isShow"
@
confirmDialog=
"isShow = false"
@
closeDialog=
"isShow = false"
:noCancel=
"true
"
>
<
GLDialog
class=
"refund-fill-boxss"
mode=
"small"
okText=
"确定"
title=
"提示"
:hasFooter=
"hasFooter"
:type=
"'error'"
@
onOk=
"isShow = false"
@
onCancel=
"isShow = false"
:visible
.
sync=
"isShow
"
>
<div
class=
"dialog-refund"
>
<div
class=
"dialog-refund"
>
<img
class=
"img"
src=
"../../images/warn.png"
/>
<img
class=
"img"
src=
"../../images/warn.png"
/>
<div>
该会员在升级黑卡会员期间,已购买过生活权益
</div>
<div>
该会员在升级黑卡会员期间,已购买过生活权益
</div>
<div
style=
"color: #FF4D4F;padding: 6px 0;"
>
(时间:{{orderDate}} 金额:{{orderPrice
}}元)
</div>
<div
style=
"color: #FF4D4F;padding: 6px 0;"
>
(时间:{{ orderDate }} 金额:{{ orderPrice
}}元)
</div>
<div>
暂不支持退款
</div>
<div>
暂不支持退款
</div>
</div>
</div>
</
glsx-d
ialog>
</
GLD
ialog>
<
glsx-dialog
class=
"refund-fill-box"
:width=
"'720px'"
title=
"退款确认"
:isVisible=
"refundVisible"
@
confirmDialog=
"refundConfirmDialog"
@
closeDialog=
"refundVisible = false"
:isShowCloseBtn=
"tru
e"
>
<
GLDialog
class=
"refund-fill-box"
mode=
"mid"
title=
"退款确认"
:hasFooter=
"hasFooter"
:type=
"'error'"
@
onOk=
"refundConfirmDialog"
@
onCancel=
"refundVisible = false"
:visible
.
sync=
"refundVisibl
e"
>
<div
class=
"dialog-form"
>
<div
class=
"dialog-form"
>
<label>
说明:
</label>
<label>
说明:
</label>
<el-input
v-model
.
trim=
"refund"
type=
"textarea"
:rows=
"3"
placeholder=
"请输入退款说明"
></el-input>
<el-input
v-model
.
trim=
"refund"
type=
"textarea"
:rows=
"3"
placeholder=
"请输入退款说明"
></el-input>
</div>
</div>
</
glsx-d
ialog>
</
GLD
ialog>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
orderTypesList
,
orderStatusList
,
exportFn
}
from
'@/common/constant'
import
{
orderTypesList
,
orderStatusList
,
exportFn
}
from
'@/common/constant'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
{
getOrderListApi
,
orderExportApi
,
orderRefund
,
ordeRefundApi
}
from
'@/api/modules/order'
import
{
getOrderListApi
,
orderExportApi
,
orderRefund
,
ordeRefundApi
}
from
'@/api/modules/order'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
isShow
:
false
,
isShow
:
false
,
orderPrice
:
''
,
orderPrice
:
''
,
orderDate
:
''
,
orderDate
:
''
,
orderCode
:
''
,
orderCode
:
''
,
refund
:
''
,
refund
:
''
,
refundVisible
:
false
,
refundVisible
:
false
,
...
@@ -180,7 +180,7 @@ export default {
...
@@ -180,7 +180,7 @@ export default {
fn
:
'退款'
fn
:
'退款'
},
},
condition
:
row
=>
{
condition
:
row
=>
{
if
(
row
.
packageType
==
2
)
{
if
(
row
.
packageType
==
2
)
{
return
row
.
refundFlag
==
1
&&
row
.
show
return
row
.
refundFlag
==
1
&&
row
.
show
}
else
{
}
else
{
return
row
.
refundFlag
==
1
return
row
.
refundFlag
==
1
...
@@ -274,7 +274,7 @@ export default {
...
@@ -274,7 +274,7 @@ export default {
dictValue
:
2
,
dictValue
:
2
,
dictLabel
:
'会员卡'
dictLabel
:
'会员卡'
}
}
]
,
]
}
}
}
}
},
},
...
@@ -366,21 +366,21 @@ export default {
...
@@ -366,21 +366,21 @@ export default {
})
})
},
},
ordeRefund
(
orderCode
)
{
ordeRefund
(
orderCode
)
{
ordeRefundApi
({
orderCode
}).
then
(
res
=>
{
ordeRefundApi
({
orderCode
}).
then
(
res
=>
{
if
(
res
!=
null
)
{
if
(
res
!=
null
)
{
this
.
orderDate
=
res
.
orderDate
this
.
orderDate
=
res
.
orderDate
this
.
orderPrice
=
res
.
orderPrice
this
.
orderPrice
=
res
.
orderPrice
this
.
isShow
=
true
this
.
isShow
=
true
}
else
{
}
else
{
this
.
refundVisible
=
true
this
.
refundVisible
=
true
}
}
})
})
},
},
handleRefund
(
data
)
{
handleRefund
(
data
)
{
this
.
orderCode
=
data
.
orderCode
this
.
orderCode
=
data
.
orderCode
this
.
refund
=
''
this
.
refund
=
''
// this.refundVisible = !this.refundVisible
// this.refundVisible = !this.refundVisible
if
(
data
.
packageType
==
2
)
{
if
(
data
.
packageType
==
2
)
{
this
.
ordeRefund
(
data
.
orderCode
)
this
.
ordeRefund
(
data
.
orderCode
)
}
else
{
}
else
{
this
.
refundVisible
=
true
this
.
refundVisible
=
true
...
@@ -433,12 +433,12 @@ export default {
...
@@ -433,12 +433,12 @@ export default {
//接收到的数据为空
//接收到的数据为空
this
.
$refs
.
memberOrderRef
.
data
.
length
?
(
this
.
$refs
.
memberOrderRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
memberOrderRef
.
setTableHeightFun
()
this
.
$refs
.
memberOrderRef
.
data
.
length
?
(
this
.
$refs
.
memberOrderRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
memberOrderRef
.
setTableHeightFun
()
let
arr
=
this
.
$refs
.
memberOrderRef
.
data
let
arr
=
this
.
$refs
.
memberOrderRef
.
data
if
(
arr
.
length
>
0
)
{
if
(
arr
.
length
>
0
)
{
arr
.
map
(
e
=>
{
arr
.
map
(
e
=>
{
if
(
e
.
refundFlag
==
1
&&
e
.
packageType
==
2
)
{
if
(
e
.
refundFlag
==
1
&&
e
.
packageType
==
2
)
{
let
time
=
new
Date
(
`
${
e
.
createDate
}
`
)
let
time
=
new
Date
(
`
${
e
.
createDate
}
`
)
let
timer
=
new
Date
()
let
timer
=
new
Date
()
if
(
timer
.
getTime
()
<
time
.
getTime
()
+
604800000
)
{
if
(
timer
.
getTime
()
<
time
.
getTime
()
+
604800000
)
{
e
.
show
=
true
e
.
show
=
true
}
}
}
}
...
@@ -508,7 +508,6 @@ export default {
...
@@ -508,7 +508,6 @@ export default {
}
}
}
}
.refund-fill-box
{
.refund-fill-box
{
height
:
320px
;
.dialog-form
{
.dialog-form
{
padding
:
26px
36px
46px
36px
;
padding
:
26px
36px
46px
36px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
...
@@ -519,7 +518,9 @@ export default {
...
@@ -519,7 +518,9 @@ export default {
}
}
}
}
.refund-fill-boxss
{
.refund-fill-boxss
{
height
:
320px
;
/deep/
.btn-three
{
display
:
none
;
}
.dialog-refund
{
.dialog-refund
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
display
:
flex
;
display
:
flex
;
...
@@ -532,7 +533,7 @@ export default {
...
@@ -532,7 +533,7 @@ export default {
padding-bottom
:
12px
;
padding-bottom
:
12px
;
}
}
}
}
::v-deep
.el-dialog__footer
{
::v-deep
.el-dialog__footer
{
text-align
:
center
;
text-align
:
center
;
}
}
}
}
...
...
src/views/memberCenter/record.vue
View file @
6f4bf24
...
@@ -48,8 +48,8 @@
...
@@ -48,8 +48,8 @@
<span>
{{
dateFormatFun
(
scope
.
scope
.
verificationTime
)
}}
</span>
<span>
{{
dateFormatFun
(
scope
.
scope
.
verificationTime
)
}}
</span>
</span>
</span>
</GLTable>
</GLTable>
<glsx-dialog
title=
"优惠券核销(请确保用户到店后核销,避免引起不必要问题)"
:hasScroll=
"false"
width=
"580px"
btnCloseLabel=
"取消"
:noClose=
"false"
:noCancel=
"true"
btnSize=
"small"
:isVisible=
"isDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm
"
>
<GLDialog
mode=
"mid"
title=
"优惠券核销(请确保用户到店后核销,避免引起不必要问题)"
:hasFooter=
"hasFooter"
:type=
"'error'"
@
onOk=
"handleConfirm"
@
onCancel=
"handleClose"
:visible
.
sync=
"isDialogVisible
"
>
<div
class=
"content-body"
>
<div
class=
"content-body"
>
<el-form
:rules=
"rules"
ref=
"ruleForm"
:model=
"ruleForm"
label-width=
"80px"
>
<el-form
:rules=
"rules"
ref=
"ruleForm"
:model=
"ruleForm"
label-width=
"80px"
>
<!-- style="width: 440px" -->
<!-- style="width: 440px" -->
<el-form-item
size=
"small"
label=
"核销码"
prop=
"verficationCode"
style=
"width: 380px"
>
<el-form-item
size=
"small"
label=
"核销码"
prop=
"verficationCode"
style=
"width: 380px"
>
...
@@ -57,22 +57,19 @@
...
@@ -57,22 +57,19 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
</glsx-dialog>
</GLDialog>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
glsxDialog
from
'@/components/glsx-dialog'
// import { getRecordListApi, getVerificationCode, verificationExportApi } from '@/api/modules/record'
// import { getRecordListApi, getVerificationCode, verificationExportApi } from '@/api/modules/record'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
{
dateFormat
}
from
'@/utils/index.js'
import
{
dateFormat
}
from
'@/utils/index.js'
import
{
exportFn
}
from
'@/common/constant'
import
{
exportFn
}
from
'@/common/constant'
export
default
{
export
default
{
name
:
'record'
,
name
:
'record'
,
components
:
{
glsxDialog
},
data
()
{
data
()
{
return
{
return
{
ruleForm
:
{
ruleForm
:
{
...
...
src/views/memberCenter/selectGiftDialog.vue
View file @
6f4bf24
<!-- 选择礼包弹窗 -->
<!-- 选择礼包弹窗 -->
<
template
>
<
template
>
<glsx-dialog
class=
"muti-gift"
title=
"选择套餐内容"
:isVisible
.
sync=
"isSelectGiftVisible"
width=
"70%"
@
confirmDialog=
"handleGiftConfirm"
@
closeDialog=
"handleGiftClose"
v-loading=
"loading"
>
<GLDialog
mode=
"big"
class=
"muti-gift"
bigTitle=
"选择套餐内容"
:hasFooter=
"hasFooter"
@
onOk=
"handleGiftConfirm"
@
onCancel=
"handleGiftClose"
:visible
.
sync=
"isSelectGiftVisible"
>
<!--
<div
class=
"nogiftDiv"
v-show=
"!giftList.length && fnCallBack"
>
<img
src=
"@/assets/noPro.png"
/>
<p
class=
"nogiftP"
>
系统暂无已创建的礼包
</p>
</div>
-->
<div
class=
"flex-default"
>
<div
class=
"flex-default"
>
<div
class=
"gift-table"
>
<div
class=
"gift-table"
>
<el-tabs
class=
"gift-tabs"
v-model=
"activeName"
@
tab-click=
"handleTabClick"
>
<el-tabs
class=
"gift-tabs"
v-model=
"activeName"
@
tab-click=
"handleTabClick"
>
...
@@ -91,12 +87,12 @@
...
@@ -91,12 +87,12 @@
</div>
</div>
</div>
</div>
</div>
</div>
</
glsx-d
ialog>
</
GLD
ialog>
</
template
>
</
template
>
<
script
>
<
script
>
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
glsxDialog
from
'@/components/glsx-dialog'
//
import glsxDialog from '@/components/glsx-dialog'
export
default
{
export
default
{
name
:
'selectGiftDialog'
,
name
:
'selectGiftDialog'
,
data
()
{
data
()
{
...
@@ -223,9 +219,9 @@ export default {
...
@@ -223,9 +219,9 @@ export default {
}
}
},
},
components
:
{
//
components: {
glsxDialog
//
glsxDialog
},
//
},
mounted
()
{
mounted
()
{
this
.
userInfo
=
this
.
$globalState
.
session
this
.
userInfo
=
this
.
$globalState
.
session
...
...
src/views/memberCenter/serviceAddUpdateLook.vue
View file @
6f4bf24
...
@@ -174,23 +174,17 @@
...
@@ -174,23 +174,17 @@
<el-button
type=
"primary"
@
click=
"submitForm('ruleForm')"
size=
"medium"
:loading=
"sloading"
v-if=
"showSubmit"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm('ruleForm')"
size=
"medium"
:loading=
"sloading"
v-if=
"showSubmit"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"goBack"
size=
"medium"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"goBack"
size=
"medium"
>
取消
</el-button>
</div>
</div>
<!-- :hasScroll="false" :noBtnOk="true" :noCancel="true" :noClose="false" -->
<GLDialog
mode=
"small"
:hasFooter=
"hasFooter"
type=
"warning"
content=
"当前有内容信息未保存,是否继续返回?"
@
onOk=
"handleConfirm"
@
onCancel=
"handleClose"
:visible
.
sync=
"isDialogVisible"
>
<glsx-dialog
title=
""
top=
"30vh"
:hasScroll=
"false"
width=
"547px"
btnCloseLabel=
"取消"
:noClose=
"false"
:noCancel=
"true"
btnSize=
"small"
:isVisible=
"isDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
</GLDialog>
<div
class=
"content-body"
>
<img
src=
"@/assets/icon-warning.png"
alt=
""
/>
<div>
当前有内容信息未保存,是否继续返回?
</div>
</div>
</glsx-dialog>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
glsxDialog
from
'@/components/glsx-dialog'
import
{
limitPrice
}
from
'@/common/constant'
import
{
limitPrice
}
from
'@/common/constant'
import
{
createService
,
detailService
,
updateService
}
from
'@/api/modules/service'
import
{
createService
,
detailService
,
updateService
}
from
'@/api/modules/service'
export
default
{
export
default
{
components
:
{
components
:
{
glsxDialog
//
glsxDialog
},
},
data
()
{
data
()
{
var
checkZero
=
(
rule
,
value
,
callback
)
=>
{
var
checkZero
=
(
rule
,
value
,
callback
)
=>
{
...
@@ -566,6 +560,9 @@ export default {
...
@@ -566,6 +560,9 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.live-room
{
.live-room
{
/deep/
.el-icon-warning{
color
:
#5850ff
!important
;
}
.topMsg
{
.topMsg
{
margin
:
20px
0px
0
;
margin
:
20px
0px
0
;
padding
:
0
20px
;
padding
:
0
20px
;
...
@@ -700,34 +697,7 @@ export default {
...
@@ -700,34 +697,7 @@ export default {
z-index
:
999
;
z-index
:
999
;
box-shadow
:
0px
-1px
1px
0px
rgba
(
88
,
80
,
255
,
0.1
);
box-shadow
:
0px
-1px
1px
0px
rgba
(
88
,
80
,
255
,
0.1
);
}
}
/
deep
/
.el-dialog__header
{
border
:
0
;
}
/
deep
/
.el-dialog__body
{
border-bottom
:
1px
solid
#e6e6e6
;
padding
:
20px
25px
;
.content-body
{
text-align
:
center
;
height
:
98px
;
line-height
:
26px
;
div
{
font-size
:
16px
;
color
:
#333333
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#333333
;
}
}
}
/
deep
/
.el-dialog__footer
{
border
:
0
;
text-align
:
center
;
padding-top
:
15px
;
padding-bottom
:
15px
;
.el-button--small
{
padding
:
8px
26px
;
}
}
}
}
.right_show
{
.right_show
{
position
:
absolute
;
position
:
absolute
;
...
...
src/views/memberCenter/setmealAddUpdate.vue
View file @
6f4bf24
...
@@ -71,24 +71,17 @@
...
@@ -71,24 +71,17 @@
<el-button
@
click=
"goBack"
size=
"medium"
>
取消
</el-button>
<el-button
@
click=
"goBack"
size=
"medium"
>
取消
</el-button>
</div>
</div>
</div>
</div>
<glsx-dialog
title=
""
top=
"30vh"
:hasScroll=
"false"
class=
"tipDialog"
width=
"547px"
btnCloseLabel=
"取消"
:noClose=
"false"
:noCancel=
"true"
btnSize=
"small"
:isVisible=
"isTipDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleTipClose"
@
confirmDialog=
"handleTipConfirm"
>
<GLDialog
mode=
"small"
type=
"warning"
@
onOk=
"handleTipConfirm"
content=
"当前有内容信息未保存,是否继续返回?"
@
onCancel=
"handleTipClose"
:visible
.
sync=
"isTipDialogVisible"
></GLDialog>
<div
class=
"content-body"
>
<img
src=
"@/assets/icon-warning.png"
alt=
""
/>
<div>
当前有内容信息未保存,是否继续返回?
</div>
</div>
</glsx-dialog>
<select-gift-dialog
v-if=
"isSelectGiftVisible"
:isSelectGiftVisible=
"isSelectGiftVisible"
:selectedGiftList=
"selectedMealList"
@
handleGiftConfirm=
"handleGiftConfirm"
@
handleGiftClose=
"handleGiftClose"
></select-gift-dialog>
<select-gift-dialog
v-if=
"isSelectGiftVisible"
:isSelectGiftVisible=
"isSelectGiftVisible"
:selectedGiftList=
"selectedMealList"
@
handleGiftConfirm=
"handleGiftConfirm"
@
handleGiftClose=
"handleGiftClose"
></select-gift-dialog>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
glsxDialog
from
'@/components/glsx-dialog'
import
{
getSetmealService
,
createSetMeal
,
getServiceInfo
,
updateSetMeal
,
configSetMeal
}
from
'@/api/modules/setmeal'
import
{
getSetmealService
,
createSetMeal
,
getServiceInfo
,
updateSetMeal
,
configSetMeal
}
from
'@/api/modules/setmeal'
import
{
getCardContent
}
from
'@/api/modules/center'
import
{
getCardContent
}
from
'@/api/modules/center'
import
selectGiftDialog
from
'./selectGiftDialog.vue'
import
selectGiftDialog
from
'./selectGiftDialog.vue'
export
default
{
export
default
{
components
:
{
components
:
{
glsxDialog
,
selectGiftDialog
selectGiftDialog
},
},
data
()
{
data
()
{
...
@@ -467,6 +460,9 @@ export default {
...
@@ -467,6 +460,9 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.live-room
{
.live-room
{
/deep/
.el-icon-warning{
color
:
#5850ff
!important
;
}
.topMsg
{
.topMsg
{
margin
:
20px
0px
0
;
margin
:
20px
0px
0
;
padding
:
0
20px
;
padding
:
0
20px
;
...
@@ -684,191 +680,5 @@ export default {
...
@@ -684,191 +680,5 @@ export default {
margin-left
:
-110px
;
margin-left
:
-110px
;
}
}
}
}
.setmealServiceDialog
{
/deep/.el-dialog__headerbtn
{
background-color
:
#d9e0f5
;
width
:
25px
;
height
:
25px
;
border-radius
:
50%
;
.el-dialog__close
{
color
:
#5850ff
;
font-weight
:
bold
;
}
}
/
deep
/
.el-dialog__header
.el-dialog__title
{
font-size
:
16px
;
font-weight
:
700
;
color
:
#000000
;
}
/
deep
/
.el-dialog__body
{
position
:
relative
;
border-top
:
1px
solid
#e6e6e6
;
border-bottom
:
1px
solid
#e6e6e6
;
padding
:
0px
25px
;
.content-body
{
height
:
450px
;
//
max-height
:
446px
;
//
min-height
:
446px
;
//
padding-bottom
:
28px
;
.subTitle
{
margin-top
:
20px
;
margin-bottom
:
20px
;
span
:
first-child
{
font-size
:
16px
;
font-weight
:
400
;
color
:
#000000
;
}
span
:last-child
{
font-size
:
14px
;
font-weight
:
500
;
color
:
#5850ff
;
cursor
:
pointer
;
}
}
.itemWrap
{
max-height
:
340px
;
min-height
:
340px
;
display
:
grid
;
grid-template-columns
:
repeat
(
4
,
1
fr
);
.item
{
.itemBox
{
margin-bottom
:
10px
;
width
:
240px
;
height
:
132px
;
border-radius
:
4px
;
border
:
2px
solid
#e6e6e6
;
&:hover
{
border
:
2px
solid
#5850ff
;
cursor
:
pointer
;
}
div
{
text-align
:
center
;
margin-bottom
:
5px
;
}
.name
{
margin-top
:
15px
;
margin-bottom
:
10px
;
font-size
:
18px
;
font-weight
:
700
;
color
:
#333333
;
}
.price
{
font-size
:
24px
;
margin-bottom
:
14px
;
font-weight
:
700
;
color
:
#ff5151
;
>
span
{
font-size
:
16px
;
}
}
.effectiveRange
{
margin-bottom
:
10px
;
}
.effectiveRange
,
.useTime
{
font-size
:
12px
;
font-weight
:
400
;
color
:
#666666
;
}
}
.s-checkd
{
border
:
2px
solid
#5850ff
;
}
.optionBtns
{
text-align
:
center
;
margin
:
0
0
25px
;
width
:
240px
;
.numWrap
{
display
:
inline-block
;
background-color
:
#fff
;
border-radius
:
3px
;
border
:
1px
solid
#e8e8ea
;
min-width
:
34px
;
height
:
22px
;
text-align
:
center
;
line-height
:
22px
;
margin
:
0
2px
;
padding
:
1px
0
;
}
.addsubBtn
{
background-color
:
#fff
;
color
:
#5850ff
;
padding
:
5px
9px
;
}
}
}
}
.amountTo
{
position
:
absolute
;
bottom
:
28px
;
left
:
50%
;
transform
:
translateX
(
-50%
);
//
margin-top
:
17px
;
//
margin-bottom
:
28px
;
text-align
:
center
;
.bottomText
{
font-size
:
16px
;
font-weight
:
400
;
color
:
#000000
;
}
.smallRedText
{
font-size
:
16px
;
color
:
#ff5151
;
}
.redText
{
font-size
:
24px
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#ff5151
;
}
}
}
}
/
deep
/
.el-dialog__footer
{
text-align
:
center
;
padding-top
:
15px
;
padding-bottom
:
15px
;
.el-button
+
.el-button
{
margin-left
:
40px
;
}
}
}
.tipDialog
{
/deep/
.el-dialog__header
{
border
:
0
;
}
/
deep
/
.el-dialog__body
{
border-bottom
:
1px
solid
#e6e6e6
;
padding
:
20px
25px
;
.content-body
{
text-align
:
center
;
height
:
98px
;
line-height
:
26px
;
div
{
font-size
:
16px
;
color
:
#333333
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#333333
;
}
}
}
/
deep
/
.el-dialog__footer
{
border
:
0
;
text-align
:
center
;
padding-top
:
15px
;
padding-bottom
:
15px
;
.el-button--small
{
padding
:
8px
26px
;
}
}
}
}
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment