Commit f2a3d8dd by 胡悦
2 parents 96313c87 34d0e94b
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
...@@ -13,6 +13,45 @@ body,html { ...@@ -13,6 +13,45 @@ body,html {
padding: 20px; padding: 20px;
} }
.live-room .container {
background: #FFFFFF;
margin: 20px 0px;
padding: 15px 20px;
box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.10);
}
// 单行省略
.ellipsis-1 {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
/* for Opera */
}
// 我这里以两行为例,该方法基本兼容市场上面所有主流浏览器。
.ellipsis-2 {
overflow: hidden;
height: 40px;
line-height: 20px;
position: relative;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
/*显示的行数*/
}
.ellipsis-2-text:after {
content: "...";
position: absolute;
bottom: 0;
right: 15px;
padding-left: 20px;
background: -webkit-linear-gradient(left, transparent, #fff 55%);
/*我在Safari上测试时发现透明到白色中间会有一个黑色的过渡后来我就写成-webkit-linear-gradient(left,rgba(255,255,255,0),rgba(255,255,255,1) 55%)*/
background: -o-linear-gradient(left, transparent, #fff 55%);
background: -moz-linear-gradient(left, transparent, #fff 55%);
background: linear-gradient(to right, transparent, #fff 55%);
}
.marketing .wechat-container { .marketing .wechat-container {
width: 375px; width: 375px;
margin-right: 45px; margin-right: 45px;
...@@ -89,6 +128,11 @@ body,html { ...@@ -89,6 +128,11 @@ body,html {
margin-top: 20px; margin-top: 20px;
} }
.marketing.p-t-20,
.marketing .p-t-20 {
padding-top: 20px;
}
.marketing .txt-center { .marketing .txt-center {
text-align: center; text-align: center;
} }
......
...@@ -2,17 +2,20 @@ ...@@ -2,17 +2,20 @@
<template> <template>
<div> <div>
<el-dialog :title="title" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false" :width="width"> <el-dialog :title="title" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false" :width="width">
<span slot="title"> <el-scrollbar>
{{ title }} <span slot="title">
<span class="dialog-sub-title"> {{ title }}
<slot name="sub-title"></slot> <span class="dialog-sub-title">
<slot name="sub-title"></slot>
</span>
</span> </span>
</span> <slot></slot>
<slot></slot> </el-scrollbar>
<div slot="footer"> <div slot="footer">
<slot name="btn-start"></slot> <slot name="btn-start"></slot>
<el-button type="primary" v-if="!noClose" :size="btnSize" @click="handleClose">关闭</el-button>
<el-button type="primary" v-if="!noBtnOk" :size="btnSize" @click="handleConfirm">{{ btnOkLabel }}</el-button> <el-button type="primary" v-if="!noBtnOk" :size="btnSize" @click="handleConfirm">{{ btnOkLabel }}</el-button>
<el-button v-if="!noCancel" :size="btnSize" @click="handleClose">{{ btnCancelLabel }}</el-button> <el-button v-if="!noCancel" type="primary" :size="btnSize" @click="handleClose">{{ btnCancelLabel }}</el-button>
<slot name="btn-middle"></slot> <slot name="btn-middle"></slot>
</div> </div>
</el-dialog> </el-dialog>
...@@ -54,6 +57,10 @@ export default { ...@@ -54,6 +57,10 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
noClose: {
type: Boolean,
default: true
},
width: { width: {
type: String, type: String,
default: '580px' default: '580px'
...@@ -74,9 +81,14 @@ export default { ...@@ -74,9 +81,14 @@ export default {
} }
} }
</script> </script>
<style scoped> <style lang="scss" scoped>
.dialog-sub-title { .dialog-sub-title {
font-size: 12px; font-size: 12px;
color: #666666; color: #666666;
} }
// ::v-deep .el-dialog__body {
// border-top: 1px solid #e6e6e6;
// border-bottom: 1px solid #e6e6e6;
// padding: 20px 25px;
// }
</style> </style>
...@@ -37,7 +37,7 @@ export default { ...@@ -37,7 +37,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.initPanel { .initPanel {
margin-left: 40px; // margin-left: 40px;
position: relative; position: relative;
margin-top: 20px; margin-top: 20px;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
*/ */
// 本地环境配置 // 本地环境配置
module.exports = { module.exports = {
title: 'scrm-sub-blog', title: 'scrm-sub-marketing',
response: { response: {
data_key: 'data', data_key: 'data',
message_key: 'message', message_key: 'message',
...@@ -18,9 +18,7 @@ module.exports = { ...@@ -18,9 +18,7 @@ module.exports = {
code_message_map: {} code_message_map: {}
}, },
request: { request: {
// baseURL: 'http://192.168.3.171:7300/mock/6136bea6ceeb5a5c2bec6950/',
baseURL: 'http://scrm.test.glsx.com.cn/', baseURL: 'http://scrm.test.glsx.com.cn/',
// baseURL: 'http://192.168.2.94:8115/rop-scrm-live/router',
// 设置超时时间 // 设置超时时间
timeout: 180000, timeout: 180000,
// 携带凭证 // 携带凭证
......
module.exports = { module.exports = {
title: 'scrm-sub-blog', title: 'scrm-sub-marketing',
response: { response: {
data_key: 'data', data_key: 'data',
message_key: 'message', message_key: 'message',
...@@ -9,7 +9,7 @@ module.exports = { ...@@ -9,7 +9,7 @@ module.exports = {
code_message_map: {} code_message_map: {}
}, },
request: { request: {
baseURL: 'http://192.168.3.171:7300/mock/6136bea6ceeb5a5c2bec6950/', baseURL: 'http://scrm.test.glsx.com.cn/',
// 设置超时时间 // 设置超时时间
timeout: 180000, timeout: 180000,
// 携带凭证 // 携带凭证
...@@ -18,7 +18,7 @@ module.exports = { ...@@ -18,7 +18,7 @@ module.exports = {
responseType: 'json' responseType: 'json'
}, },
sign: { sign: {
app_key: '48e5e13229b82c1b4e6e8c96151f0637', appKey: '48e5e13229b82c1b4e6e8c96151f0637',
v: '1.0.0', v: '1.0.0',
format: 'json', format: 'json',
source: '' source: ''
......
<!-- 编辑分类 --> <!-- 编辑分类 -->
<template> <template>
<div class="edit-classify marketing"> <div class="edit-classify marketing p-t-20">
<div class="container edit-container"> <div class="container edit-container">
<p class="edit-title">{{ title }}</p> <p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
......
<!-- 分类管理 --> <!-- 分类管理 -->
<template> <template>
<div class="marketing"> <div class="marketing p-t-20">
<div class="m-b-20"> <div class="m-b-20">
<el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新增分类</el-button> <el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新增分类</el-button>
</div> </div>
......
<!-- 首页设置 --> <!-- 首页设置 -->
<template> <template>
<div class="home-set marketing"> <div class="home-set marketing p-t-20">
<div class="container edit-container flex"> <div class="container edit-container flex">
<div class="wechat-container"> <div class="wechat-container">
<div class="wechat-box"> <div class="wechat-box">
<img class="w-100-per" src="./images/home-set-head.png"/> <img class="w-100-per" src="./images/home-set-head.png" />
<img class="w-100-per" src="./images/home-set-footer.png"/> <img class="w-100-per" src="./images/home-set-footer.png" />
</div> </div>
</div> </div>
<div class="home-set-form flex-grow"> <div class="home-set-form flex-grow">
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<el-button v-show="subItem.goodsId" type="text" class="btn-link" @click="handleProDelete(subIndex)">删除</el-button> <el-button v-show="subItem.goodsId" type="text" class="btn-link" @click="handleProDelete(subIndex)">删除</el-button>
</div> </div>
<div class="show-pro-box flex" v-if="subItem.goodsId"> <div class="show-pro-box flex" v-if="subItem.goodsId">
<img class="img-60" :src="subItem.goods.goodsImage"> <img class="img-60" :src="subItem.goods.goodsImage" />
<p class="pro-txt flex-grow one-line-ellipsis">{{ subItem.goods.goodsName }}</p> <p class="pro-txt flex-grow one-line-ellipsis">{{ subItem.goods.goodsName }}</p>
</div> </div>
</div> </div>
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<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"> <el-form-item label="会员卡名" prop="cardName" size="small">
<el-input v-model="ruleForm.cardName" size="small" placeholder="请输入会员卡名" maxlength="10"></el-input> <el-input v-model="ruleForm.cardName" size="small" placeholder="请输入会员卡名" maxlength="15"></el-input>
</el-form-item> </el-form-item>
<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)">
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
</el-form> </el-form>
<GLTable ref="memberCenterRef" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"></GLTable> <GLTable ref="memberCenterRef" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"></GLTable>
</div> </div>
<glsx-dialog title="权益详情" width="712px" :noBtnOk="true" btnCancelLabel="关闭" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleClose"> <glsx-dialog title="权益详情" width="712px" :noBtnOk="true" :noCancel="true" :noClose="false" btnCancelLabel="关闭" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleClose">
<el-scrollbar> <el-scrollbar>
<div class="modal-body"> <div class="modal-body">
<div class="equity-name">汽车权益</div> <div class="equity-name">汽车权益</div>
...@@ -261,7 +261,9 @@ export default { ...@@ -261,7 +261,9 @@ export default {
if (len1 == '-') { if (len1 == '-') {
str = '' str = ''
} //限制只能输入一个小数点 } //限制只能输入一个小数点
if(Number(value)>=99999){
return str=99999
}
if (str.indexOf('.') != -1) { if (str.indexOf('.') != -1) {
let str_ = str.substr(str.indexOf('.') + 1) let str_ = str.substr(str.indexOf('.') + 1)
if (str_.indexOf('.') != -1) { if (str_.indexOf('.') != -1) {
...@@ -351,7 +353,7 @@ export default { ...@@ -351,7 +353,7 @@ export default {
background-color: #fff; background-color: #fff;
height: 173px; height: 173px;
box-sizing: border-box; box-sizing: border-box;
margin: 20px 40px; margin: 20px 0px;
padding: 15px 20px; padding: 15px 20px;
box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.1); box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.1);
.cardBoxWrap { .cardBoxWrap {
...@@ -427,7 +429,7 @@ export default { ...@@ -427,7 +429,7 @@ export default {
.pageTitle { .pageTitle {
position: relative; position: relative;
padding: 0 40px; padding: 0 0px;
height: 20px; height: 20px;
font-size: 20px; font-size: 20px;
font-weight: 700; font-weight: 700;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="live-room"> <div class="live-room">
<div class="live-room container"> <div class="live-room container">
<div class="flex"> <div class="flex">
<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="70px" label-position="left">
<el-row> <el-row>
<el-form-item size="small" label="订单编号"> <el-form-item size="small" label="订单编号">
<el-input :size="size" v-model="searchForm.orderCode" placeholder="请输入订单编号" clearable></el-input> <el-input :size="size" v-model="searchForm.orderCode" placeholder="请输入订单编号" clearable></el-input>
...@@ -32,9 +32,6 @@ ...@@ -32,9 +32,6 @@
</el-form> </el-form>
</div> </div>
<GLTable ref="memberOrderRef" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="memberOrderRef" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<!-- <span slot="shareImgUrl" slot-scope="scope">
<img class="img-60" :src="scope.scope.shareImgUrl" />
</span> -->
<span class="table-btns" slot="auth-button" slot-scope="scope" :data="scope.scope"> <span class="table-btns" slot="auth-button" slot-scope="scope" :data="scope.scope">
<el-button type="text" @click="handleDetail(scope.scope)">详情</el-button> <el-button type="text" @click="handleDetail(scope.scope)">详情</el-button>
</span> </span>
......
...@@ -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,
...@@ -69,9 +69,9 @@ export default { ...@@ -69,9 +69,9 @@ export default {
tableParams: { tableParams: {
listName: 'list', listName: 'list',
// 行数据的key // 行数据的key
mutiSelectUniqueKey: 'id', // mutiSelectUniqueKey: 'id',
// 多选ref的名称 // 多选ref的名称
mutiSelectName: 'list', // mutiSelectName: 'list',
tableOption: true, tableOption: true,
tableColumns: [ tableColumns: [
{ {
...@@ -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
}, },
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<div class="live-room container"> <div class="live-room container">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px" class="demo-ruleForm"> <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px" class="demo-ruleForm">
<el-form-item size="small" label="服务名称" prop="couponName" style="width: 420px"> <el-form-item size="small" label="服务名称" prop="couponName" style="width: 420px">
<el-input size="small" :disabled="disabledContent" v-model="ruleForm.couponName" placeholder="请输入服务名称,如“精洗轿车”"></el-input> <el-input size="small" :disabled="disabledContent" v-model="ruleForm.couponName" maxlength="20" placeholder="请输入服务名称,如“精洗轿车”"></el-input>
</el-form-item> </el-form-item>
<el-form-item size="small" label="有效期" prop="effectiveType"> <el-form-item size="small" label="有效期" prop="effectiveType">
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</el-radio> </el-radio>
<!-- effectiveStartTime effectiveEndTime +具体时间 --> <!-- effectiveStartTime effectiveEndTime +具体时间 -->
<el-radio :label="2"> <el-radio :label="2">
<el-date-picker :size="small" :disabled="disabledContent" style="width: 215px" v-model="ruleForm.daterange" type="daterange" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker> <el-date-picker :size="small" :disabled="disabledContent" style="width: 230px" v-model="ruleForm.daterange" type="daterange" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
</div> </div>
...@@ -93,15 +93,14 @@ ...@@ -93,15 +93,14 @@
<div class="serviceCard"> <div class="serviceCard">
<div class="cardtop"> <div class="cardtop">
<img src="@/assets/serviceMemberCard.png" alt="" /> <img src="@/assets/serviceMemberCard.png" alt="" />
<span class="serviceName">{{ ruleForm.couponName || '-' }}</span> <span class="serviceName ellipsis-1" :title="couponName">{{ ruleForm.couponName || '-' }}</span>
<span class="effectiveRange">{{ limitText }}</span> <span class="effectiveRange">{{ limitText }}</span>
<span class="timeRange">{{ effectiveRangeText }}</span> <span class="timeRange">{{ effectiveRangeText }}</span>
<div class="grayLine"></div> <div class="grayLine"></div>
</div> <div class="desc">使用说明:</div>
<div class="cardbottom">
<div class="desc">使用说明:</div>
<span class="detailDesc">{{ ruleForm.useDescription }}</span> <span class="detailDesc">{{ ruleForm.useDescription }}</span>
</div> </div>
</div> </div>
</div> </div>
<div <div
...@@ -165,7 +164,7 @@ export default { ...@@ -165,7 +164,7 @@ export default {
limitDays: '30', limitDays: '30',
limitTime2: 5, limitTime2: 5,
rules: { rules: {
couponName: [{ required: true, message: '请输入活动名称', trigger: 'blur' }], couponName: [{ required: true, message: '请输入服务名称', trigger: 'blur' }],
// region: [{ required: true, message: '请选择活动区域', trigger: 'change' }], // region: [{ required: true, message: '请选择活动区域', trigger: 'change' }],
// date1: [{ type: 'date', required: true, message: '请选择日期', trigger: 'change' }], // date1: [{ type: 'date', required: true, message: '请选择日期', trigger: 'change' }],
// date2: [{ type: 'date', required: true, message: '请选择时间', trigger: 'change' }], // date2: [{ type: 'date', required: true, message: '请选择时间', trigger: 'change' }],
...@@ -380,7 +379,9 @@ export default { ...@@ -380,7 +379,9 @@ export default {
if (len1 == '-') { if (len1 == '-') {
str = '' str = ''
} //限制只能输入一个小数点 } //限制只能输入一个小数点
if(Number(value)>=99999){
return str=99999
}
if (str.indexOf('.') != -1) { if (str.indexOf('.') != -1) {
let str_ = str.substr(str.indexOf('.') + 1) let str_ = str.substr(str.indexOf('.') + 1)
if (str_.indexOf('.') != -1) { if (str_.indexOf('.') != -1) {
...@@ -418,7 +419,7 @@ export default { ...@@ -418,7 +419,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.live-room { .live-room {
.topMsg { .topMsg {
margin: 20px 40px 0; margin: 20px 0px 0;
padding: 0 20px; padding: 0 20px;
background-color: #fff; background-color: #fff;
height: 56px; height: 56px;
...@@ -438,7 +439,7 @@ export default { ...@@ -438,7 +439,7 @@ export default {
} }
} }
.container { .container {
margin: 0 40px 100px; margin: 0 0px 100px;
position: relative; position: relative;
/deep/ .el-form-item__content { /deep/ .el-form-item__content {
.radioGroupWrap { .radioGroupWrap {
...@@ -477,6 +478,7 @@ export default { ...@@ -477,6 +478,7 @@ export default {
position: absolute; position: absolute;
padding: 10px; padding: 10px;
box-sizing: border-box; box-sizing: border-box;
top: 136px; top: 136px;
right: 78px; right: 78px;
width: 343px; width: 343px;
...@@ -492,13 +494,12 @@ export default { ...@@ -492,13 +494,12 @@ export default {
color: #999999; color: #999999;
} }
.cardtop { .cardtop {
padding-bottom: 10px;
// border-bottom: 1px solid #979797;
position: relative; position: relative;
.serviceName { .serviceName {
position: absolute; position: absolute;
left: 88px; left: 88px;
top: 5px; top: 5px;
width: 230px;
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 600;
...@@ -523,19 +524,17 @@ export default { ...@@ -523,19 +524,17 @@ export default {
opacity: 0.14; opacity: 0.14;
background-color: #979797; background-color: #979797;
} }
}
.cardbottom {
position: relative;
.desc { .desc {
position: absolute; margin-top: 20px;
top: 10px; margin-left: 88px;
left: 88px;
color: #333; color: #333;
} }
.detailDesc { .detailDesc {
position: absolute; display: inline-block;
left: 88px; margin-left: 88px;
top: 35px; margin-top: 10px;
width: 230px;
word-wrap: break-word;
} }
} }
} }
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</span> </span>
</GLTable> </GLTable>
</div> </div>
<glsx-dialog title="示例效果" width="1142px" :noBtnOk="true" btnCancelLabel="关闭" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleClose"> <glsx-dialog title="示例效果" width="1142px" :noBtnOk="true" :noCancel="true" :noClose="false" btnCancelLabel="关闭" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleClose">
<div class="content-body"> <div class="content-body">
<div class="content-item col1"> <div class="content-item col1">
<div class="subTitle"> <div class="subTitle">
...@@ -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
}, },
......
...@@ -339,7 +339,9 @@ export default { ...@@ -339,7 +339,9 @@ export default {
if (len1 == '-') { if (len1 == '-') {
str = '' str = ''
} //限制只能输入一个小数点 } //限制只能输入一个小数点
if(Number(value)>=99999){
return str=99999
}
if (str.indexOf('.') != -1) { if (str.indexOf('.') != -1) {
let str_ = str.substr(str.indexOf('.') + 1) let str_ = str.substr(str.indexOf('.') + 1)
if (str_.indexOf('.') != -1) { if (str_.indexOf('.') != -1) {
...@@ -388,7 +390,7 @@ export default { ...@@ -388,7 +390,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.live-room { .live-room {
.topMsg { .topMsg {
margin: 20px 40px 0; margin: 20px 0px 0;
padding: 0 20px; padding: 0 20px;
background-color: #fff; background-color: #fff;
height: 56px; height: 56px;
...@@ -408,7 +410,7 @@ export default { ...@@ -408,7 +410,7 @@ export default {
} }
} }
.container { .container {
margin: 0 40px 20px; margin: 0 0px 20px;
position: relative; position: relative;
min-height: calc(100vh - 300px); min-height: calc(100vh - 300px);
.allChoseWrap { .allChoseWrap {
......
<!-- 编辑商品 --> <!-- 编辑商品 -->
<template> <template>
<div class="edit-pro marketing"> <div class="edit-pro marketing p-t-20">
<div class="container edit-container"> <div class="container edit-container">
<p class="edit-title">{{ title }}</p> <p class="edit-title">{{ title }}</p>
<div class="flex m-t-20"> <div class="flex m-t-20">
......
<!-- 商品管理-集团 --> <!-- 商品管理-集团 -->
<template> <template>
<div class="marketing pro-group"> <div class="marketing pro-group p-t-20">
<div class="m-b-20"> <div class="m-b-20">
<el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新建商品</el-button> <el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新建商品</el-button>
</div> </div>
......
<!-- 商品编辑 - 带货 --> <!-- 商品编辑 - 带货 -->
<template> <template>
<div class="edit-product-dh marketing"> <div class="edit-product-dh marketing p-t-20">
<div class="container edit-container"> <div class="container edit-container">
<p class="edit-title">{{ title }}</p> <p class="edit-title">{{ title }}</p>
<div class="flex" style="margin-top: 20px;"> <div class="flex" style="margin-top: 20px;">
......
<!-- 商品管理-门店 --> <!-- 商品管理-门店 -->
<template> <template>
<div class="marketing pro-group"> <div class="marketing pro-group p-t-20">
<div class="m-b-20"> <div class="m-b-20">
<el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新建商品</el-button> <el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新建商品</el-button>
</div> </div>
......
<!-- 带货管理 --> <!-- 带货管理 -->
<template> <template>
<div class="marketing"> <div class="marketing p-t-20">
<div class="m-b-20"> <div class="m-b-20">
<el-button :size="size" type="primary" @click="handleTakeGood()">一键带货</el-button> <el-button :size="size" type="primary" @click="handleTakeGood()">一键带货</el-button>
</div> </div>
......
<!-- 带货详情 --> <!-- 带货详情 -->
<!-- 商品编辑 - 带货 --> <!-- 商品编辑 - 带货 -->
<template> <template>
<div class="edit-product-dh marketing"> <div class="edit-product-dh marketing p-t-20">
<div class="container edit-container"> <div class="container edit-container">
<p class="edit-title">{{ title }}</p> <p class="edit-title">{{ title }}</p>
<div class="flex" style="margin-top: 20px;"> <div class="flex" style="margin-top: 20px;">
......
<!-- 编辑专区 --> <!-- 编辑专区 -->
<template> <template>
<div class="edit-zone marketing"> <div class="edit-zone marketing p-t-20">
<div class="container edit-container"> <div class="container edit-container">
<p class="edit-title">{{ title }}</p> <p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
......
<!-- 专区管理 --> <!-- 专区管理 -->
<template> <template>
<div class="marketing"> <div class="marketing p-t-20">
<div class="m-b-20"> <div class="m-b-20">
<el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新建专区</el-button> <el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新建专区</el-button>
</div> </div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!