Commit 88320304 by 李长胜

增加会员中心提示面板出现的接口

1 parent d1674966
import { http } from '@/main' import { http } from '@/main'
// const defaultPath = 'scrm.api.live.' // const defaultPath = 'scrm.api.live.'
//计算提示面板出现的次数,第一次显示,之后不显示
const getLoginCount =params=>{
params.method='org.ore.api.common.findLoginCount'
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
const getServiceListApi = params => { const getServiceListApi = params => {
params.method = `scrm.api.coupon.list.merchant` params.method = `scrm.api.coupon.list.merchant`
...@@ -71,4 +81,4 @@ const updateService = params => { ...@@ -71,4 +81,4 @@ const updateService = params => {
}) })
} }
export { getServiceListApi,effectiveService, deleteService,createService,detailService,updateService}
\ No newline at end of file \ No newline at end of file
export { getServiceListApi,effectiveService, deleteService,createService,detailService,updateService,getLoginCount}
\ No newline at end of file \ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<!-- //提示面板组件 --> <!-- //提示面板组件 -->
<tip-panel panelWidth="616px" panelMinHeight="60px" :panelContent="panelContent" v-if="isFirstShow" @closePanel="closePanel"></tip-panel> <tip-panel panelWidth="616px" panelMinHeight="60px" :panelContent="panelContent" v-if="isFirstShow" @closePanel="closePanel"></tip-panel>
<div class="live-room container"> <div class="live-room container">
<el-form :inline="true" style="width:100%" :model="searchForm" label-width="100px" label-position="right"> <el-form :inline="true" style="width: 100%" :model="searchForm" label-width="100px" label-position="right">
<el-row> <el-row>
<el-form-item size="small"> <el-form-item size="small">
<el-button :size="size" type="primary" icon="el-icon-plus" @click="handleCreate">创建服务</el-button> <el-button :size="size" type="primary" icon="el-icon-plus" @click="handleCreate">创建服务</el-button>
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<el-input :size="size" v-model="searchForm.couponName" placeholder="请输入服务名称" clearable></el-input> <el-input :size="size" v-model="searchForm.couponName" placeholder="请输入服务名称" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item size="small" style="float:right"> <el-form-item size="small" style="float: right">
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<el-button :size="size" @click="handleReset">重置</el-button> <el-button :size="size" @click="handleReset">重置</el-button>
</el-form-item> </el-form-item>
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</template> </template>
<script> <script>
import { getServiceListApi, effectiveService, deleteService } from '@/api/modules/service' import { getServiceListApi, effectiveService, deleteService, getLoginCount } from '@/api/modules/service'
import { serviceStatusList } from '@/common/constant' import { serviceStatusList } from '@/common/constant'
import tipPanel from '@/components/tipPanel/index.vue' import tipPanel from '@/components/tipPanel/index.vue'
export default { export default {
...@@ -56,7 +56,7 @@ export default { ...@@ -56,7 +56,7 @@ export default {
}, },
data() { data() {
return { return {
isFirstShow: true, isFirstShow: false,
panelContent: '会员服务:是由门店根据自店服务项目创建的线上服务券,如“一年十二次洗车券”、“陶瓷镀膜”等,客户购买后可到店出示服务券享受服务,门店扫码进行次数核销。', panelContent: '会员服务:是由门店根据自店服务项目创建的线上服务券,如“一年十二次洗车券”、“陶瓷镀膜”等,客户购买后可到店出示服务券享受服务,门店扫码进行次数核销。',
size: 'small', size: 'small',
getListApi: getServiceListApi, getListApi: getServiceListApi,
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
{ {
label: '创建时间', label: '创建时间',
prop: 'createdDate', prop: 'createdDate',
width:95 width: 95
} }
] ]
}, },
...@@ -125,8 +125,16 @@ export default { ...@@ -125,8 +125,16 @@ export default {
//运行在qiankun容器中 //运行在qiankun容器中
this.merchantId = this.$globalState.session.merchantId this.merchantId = this.$globalState.session.merchantId
} }
this.getLoginCountFun()
}, },
methods: { methods: {
getLoginCountFun() {
//loginType:4是查会员服务浏览次数
getLoginCount({ loginType: 4 }).then(res => {
//获取是否第一次点击该页面
this.isFirstShow = res
})
},
closePanel() { closePanel() {
this.isFirstShow = false this.isFirstShow = false
}, },
......
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
<script> <script>
import glsxDialog from '@/components/glsx-dialog' import glsxDialog from '@/components/glsx-dialog'
import { getSetMealListApi, deleteSetMeal, upDownPackage } from '@/api/modules/setmeal' import { getSetMealListApi, deleteSetMeal, upDownPackage } from '@/api/modules/setmeal'
import { getLoginCount } from '@/api/modules/service'
import { stateList } from '@/common/constant' import { stateList } from '@/common/constant'
import tipPanel from '@/components/tipPanel/index.vue' import tipPanel from '@/components/tipPanel/index.vue'
export default { export default {
...@@ -62,7 +63,7 @@ export default { ...@@ -62,7 +63,7 @@ export default {
}, },
data() { data() {
return { return {
isFirstShow: true, isFirstShow: false,
panelContent: '会员套餐:将已经创建好的会员服务打包成一个套餐售卖给客户。', panelContent: '会员套餐:将已经创建好的会员服务打包成一个套餐售卖给客户。',
size: 'small', size: 'small',
getListApi: getSetMealListApi, getListApi: getSetMealListApi,
...@@ -117,7 +118,17 @@ export default { ...@@ -117,7 +118,17 @@ export default {
isDialogVisible: false isDialogVisible: false
} }
}, },
created () {
this.getLoginCountFun()
},
methods: { methods: {
getLoginCountFun() {
//loginType:5是查会员套餐浏览次数
getLoginCount({ loginType: 5 }).then(res => {
//获取是否第一次点击该页面
this.isFirstShow = res
})
},
closePanel() { closePanel() {
this.isFirstShow = false this.isFirstShow = false
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!