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 c9fe57d3
authored
May 30, 2022
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:会员中心bug修改
1 parent
be08afc5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
52 deletions
src/api/modules/center.js
src/views/memberCenter/center.vue
src/views/memberCenter/order.vue
src/views/memberCenter/setmealAddUpdate.vue
src/api/modules/center.js
View file @
c9fe57d
...
@@ -62,10 +62,22 @@ const memberExportApi = params => {
...
@@ -62,10 +62,22 @@ const memberExportApi = params => {
const
getQrUrl
=
params
=>
{
const
getQrUrl
=
params
=>
{
params
.
method
=
'scrm.api.equity.card.class.generate.try.url'
params
.
method
=
'scrm.api.equity.card.class.generate.try.url'
return
http
({
return
http
({
url
:
'rop-scrm-equity/router'
,
url
:
'
/
rop-scrm-equity/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
returnAll
:
true
returnAll
:
true
})
})
}
}
export
{
getCenterListApi
,
getMoreMerchant
,
updateCardContent
,
getCardContent
,
memberExportApi
,
getQrUrl
}
//门店会员开通方式
const
getCardtypeList
=
params
=>
{
params
.
method
=
'scrm.api.equity.card.active.type.list'
return
http
({
url
:
'/rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
returnAll
:
true
})
}
export
{
getCenterListApi
,
getMoreMerchant
,
updateCardContent
,
getCardContent
,
memberExportApi
,
getQrUrl
,
getCardtypeList
}
src/views/memberCenter/center.vue
View file @
c9fe57d
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"开通方式"
style=
"margin-left: -10px"
>
<el-form-item
size=
"small"
label=
"开通方式"
style=
"margin-left: -10px"
>
<el-select
size=
"small"
v-model=
"searchForm.activeType"
placeholder=
"请选择"
>
<el-select
size=
"small"
v-model=
"searchForm.activeType"
placeholder=
"请选择"
>
<el-option
v-for=
"item in openModeLists"
:key=
"item.
dictValue"
:label=
"item.dictLabel"
:value=
"item.dictValu
e"
></el-option>
<el-option
v-for=
"item in openModeLists"
:key=
"item.
activeType"
:label=
"item.activeTypeDesc"
:value=
"item.activeTyp
e"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
class=
"fr-mr0"
>
<el-form-item
size=
"small"
class=
"fr-mr0"
>
...
@@ -193,7 +193,7 @@ const cloneText = message => {
...
@@ -193,7 +193,7 @@ const cloneText = message => {
document
.
body
.
removeChild
(
input
)
document
.
body
.
removeChild
(
input
)
}
}
import
glsxDialog
from
'@/components/glsx-dialog'
import
glsxDialog
from
'@/components/glsx-dialog'
import
{
getCenterListApi
,
getMoreMerchant
,
getCardContent
,
updateCardContent
,
memberExportApi
,
getQrUrl
}
from
'@/api/modules/center'
import
{
getCenterListApi
,
getMoreMerchant
,
getCardContent
,
updateCardContent
,
memberExportApi
,
getQrUrl
,
getCardtypeList
}
from
'@/api/modules/center'
import
{
statusList
,
memberTypeList
,
exportFn
}
from
'@/common/constant'
import
{
statusList
,
memberTypeList
,
exportFn
}
from
'@/common/constant'
export
default
{
export
default
{
filters
:
{
filters
:
{
...
@@ -386,9 +386,18 @@ export default {
...
@@ -386,9 +386,18 @@ export default {
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
}
}
this
.
getCardContentFun
()
this
.
getCardContentFun
()
this
.
getCardtypeList
()
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
//门店会员开通方式
getCardtypeList
()
{
getCardtypeList
({}).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
this
.
openModeLists
=
res
.
data
}
})
},
// 复制链接按钮
// 复制链接按钮
closeText
(
val
)
{
closeText
(
val
)
{
cloneText
(
val
)
cloneText
(
val
)
...
@@ -396,7 +405,7 @@ export default {
...
@@ -396,7 +405,7 @@ export default {
},
},
// 查看小程序推广码
// 查看小程序推广码
extensionQR
()
{
extensionQR
()
{
console
.
log
(
this
.
ruleForm
.
equityId
)
//
console.log(this.ruleForm.equityId)
const
params
=
{
const
params
=
{
id
:
this
.
ruleForm
.
equityId
id
:
this
.
ruleForm
.
equityId
...
@@ -425,7 +434,7 @@ export default {
...
@@ -425,7 +434,7 @@ export default {
}
//限制只能输入一个小数点
}
//限制只能输入一个小数点
if
(
value
!==
''
&&
value
==
0
)
{
if
(
value
!==
''
&&
value
==
0
)
{
// return (str = 1)
// return (str = 1)
return
(
str
=
0.01
)
return
(
str
=
0.01
)
}
}
if
(
Number
(
value
)
>=
99999
)
{
if
(
Number
(
value
)
>=
99999
)
{
return
(
str
=
99999
)
return
(
str
=
99999
)
...
@@ -727,7 +736,7 @@ export default {
...
@@ -727,7 +736,7 @@ export default {
line-height
:
28px
;
line-height
:
28px
;
border-bottom
:
1px
solid
#d8d8d8
;
border-bottom
:
1px
solid
#d8d8d8
;
background-color
:
#fff
;
background-color
:
#fff
;
margin-top
:
20px
;
margin-top
:
20px
;
}
}
.export
{
.export
{
height
:
32px
;
height
:
32px
;
...
@@ -739,6 +748,7 @@ export default {
...
@@ -739,6 +748,7 @@ export default {
line-height
:
14px
;
line-height
:
14px
;
padding
:
9px
20px
;
padding
:
9px
20px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
cursor
:
pointer
;
}
}
.el-form-item
{
.el-form-item
{
...
...
src/views/memberCenter/order.vue
View file @
c9fe57d
...
@@ -227,6 +227,7 @@ export default {
...
@@ -227,6 +227,7 @@ export default {
},
},
handleRefund
(
data
)
{
handleRefund
(
data
)
{
this
.
orderCode
=
data
.
orderCode
this
.
orderCode
=
data
.
orderCode
this
.
refund
=
''
this
.
refundVisible
=
!
this
.
refundVisible
this
.
refundVisible
=
!
this
.
refundVisible
},
},
refundConfirmDialog
()
{
refundConfirmDialog
()
{
...
...
src/views/memberCenter/setmealAddUpdate.vue
View file @
c9fe57d
...
@@ -71,51 +71,6 @@
...
@@ -71,51 +71,6 @@
<el-button
@
click=
"goBack"
size=
"medium"
>
取消
</el-button>
<el-button
@
click=
"goBack"
size=
"medium"
>
取消
</el-button>
</div>
</div>
</div>
</div>
<!-- :modalAppendToBody="false" -->
<!-- <glsx-dialog title="套餐服务" class="setmealServiceDialog" width="1142px" :noCancel="true" :noClose="false" btnSize="small" :isVisible="setmealDialogVisible" @closeDialog="handleClose" @confirmDialog="handleConfirm">
<div class="content-body">
<div class="subTitle">
<span>请选择套餐服务:</span>
<span @click="$router.push('/memberCenter/serviceAddUpdateLook')">没有服务?去新建</span>
</div>
<el-scrollbar>
<div class="itemWrap">
<div class="item" v-for="(item, index) in allItemList" :key="index">
<div class="itemBox" :class="{ 's-checkd': item.serviceQuantity > 0 }" @click="handlePackage(item, index)">
<div class="name">{{ item.couponName }}</div>
<div class="price">
<span>¥</span>
{{ item.vipPrice }}
</div>
<div class="effectiveRange" v-if="item.effectiveType == 3">有效期:无有效期</div>
<div class="effectiveRange" v-if="item.effectiveType == 1">有效期:{{ item.effectiveDays }}天</div>
<div class="effectiveRange" v-if="item.effectiveType == 2">有效期:{{ item.effectiveStartTime.split(' ')[0] }} - {{ item.effectiveEndTime.split(' ')[0] }}</div>
<div class="useTime" v-if="item.useType == 0">有效期内无限制</div>
<div class="useTime" v-if="item.useType == 1">有效期内可使用{{ item.useAmount }}次</div>
<div class="useTime" v-if="item.useType == 2">每{{ item.useLimitDays }}天可以使用{{ item.useAmount }}次</div>
</div>
<div class="optionBtns" v-if="item.serviceQuantity > 0">
<el-button @click="cutPackage(item, index)" class="addsubBtn">-</el-button>
<span class="numWrap">{{ item.serviceQuantity }}</span>
<el-button @click="addPackage(item, index)" class="addsubBtn">+</el-button>
</div>
</div>
</div>
</el-scrollbar>
<div class="amountTo" v-if="selectNum">
<span class="bottomText">
已选
<span class="redText">{{ selectNum }}</span>
项
</span>
<span class="bottomText" style="margin-left: 20px">合计:</span>
<span class="smallRedText">¥</span>
<span class="redText">{{ totalPrice }}</span>
</div>
</div>
</glsx-dialog> -->
<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"
>
<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"
>
<div
class=
"content-body"
>
<div
class=
"content-body"
>
<img
src=
"@/assets/icon-warning.png"
alt=
""
/>
<img
src=
"@/assets/icon-warning.png"
alt=
""
/>
...
...
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