Commit f2a3d8dd by 胡悦
2 parents 96313c87 34d0e94b
import { http } from '@/main'
// 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 => {
params.method = `scrm.api.coupon.list.merchant`
......@@ -71,4 +81,4 @@ const updateService = params => {
})
}
export { getServiceListApi,effectiveService, deleteService,createService,detailService,updateService}
\ No newline at end of file
export { getServiceListApi,effectiveService, deleteService,createService,detailService,updateService,getLoginCount}
\ No newline at end of file
......@@ -13,6 +13,45 @@ body,html {
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 {
width: 375px;
margin-right: 45px;
......@@ -89,6 +128,11 @@ body,html {
margin-top: 20px;
}
.marketing.p-t-20,
.marketing .p-t-20 {
padding-top: 20px;
}
.marketing .txt-center {
text-align: center;
}
......
......@@ -2,17 +2,20 @@
<template>
<div>
<el-dialog :title="title" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false" :width="width">
<span slot="title">
{{ title }}
<span class="dialog-sub-title">
<slot name="sub-title"></slot>
<el-scrollbar>
<span slot="title">
{{ title }}
<span class="dialog-sub-title">
<slot name="sub-title"></slot>
</span>
</span>
</span>
<slot></slot>
<slot></slot>
</el-scrollbar>
<div slot="footer">
<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 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>
</div>
</el-dialog>
......@@ -54,6 +57,10 @@ export default {
type: Boolean,
default: false
},
noClose: {
type: Boolean,
default: true
},
width: {
type: String,
default: '580px'
......@@ -74,9 +81,14 @@ export default {
}
}
</script>
<style scoped>
<style lang="scss" scoped>
.dialog-sub-title {
font-size: 12px;
color: #666666;
}
// ::v-deep .el-dialog__body {
// border-top: 1px solid #e6e6e6;
// border-bottom: 1px solid #e6e6e6;
// padding: 20px 25px;
// }
</style>
......@@ -37,7 +37,7 @@ export default {
<style lang="scss" scoped>
.initPanel {
margin-left: 40px;
// margin-left: 40px;
position: relative;
margin-top: 20px;
......
......@@ -8,7 +8,7 @@
*/
// 本地环境配置
module.exports = {
title: 'scrm-sub-blog',
title: 'scrm-sub-marketing',
response: {
data_key: 'data',
message_key: 'message',
......@@ -18,9 +18,7 @@ module.exports = {
code_message_map: {}
},
request: {
// baseURL: 'http://192.168.3.171:7300/mock/6136bea6ceeb5a5c2bec6950/',
baseURL: 'http://scrm.test.glsx.com.cn/',
// baseURL: 'http://192.168.2.94:8115/rop-scrm-live/router',
// 设置超时时间
timeout: 180000,
// 携带凭证
......
module.exports = {
title: 'scrm-sub-blog',
title: 'scrm-sub-marketing',
response: {
data_key: 'data',
message_key: 'message',
......@@ -9,7 +9,7 @@ module.exports = {
code_message_map: {}
},
request: {
baseURL: 'http://192.168.3.171:7300/mock/6136bea6ceeb5a5c2bec6950/',
baseURL: 'http://scrm.test.glsx.com.cn/',
// 设置超时时间
timeout: 180000,
// 携带凭证
......@@ -18,7 +18,7 @@ module.exports = {
responseType: 'json'
},
sign: {
app_key: '48e5e13229b82c1b4e6e8c96151f0637',
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
v: '1.0.0',
format: 'json',
source: ''
......
<!-- 编辑分类 -->
<template>
<div class="edit-classify marketing">
<div class="edit-classify marketing p-t-20">
<div class="container edit-container">
<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">
......
<!-- 分类管理 -->
<template>
<div class="marketing">
<div class="marketing p-t-20">
<div class="m-b-20">
<el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新增分类</el-button>
</div>
......
<!-- 首页设置 -->
<template>
<div class="home-set marketing">
<div class="home-set marketing p-t-20">
<div class="container edit-container flex">
<div class="wechat-container">
<div class="wechat-box">
<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-head.png" />
<img class="w-100-per" src="./images/home-set-footer.png" />
</div>
</div>
<div class="home-set-form flex-grow">
......@@ -55,7 +55,7 @@
<el-button v-show="subItem.goodsId" type="text" class="btn-link" @click="handleProDelete(subIndex)">删除</el-button>
</div>
<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>
</div>
</div>
......
......@@ -30,7 +30,7 @@
<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-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 label="售价" size="small" prop="price" style="width:300px">
<el-input v-model="ruleForm.price" size="small" placeholder="请输入合理价格" @keyup.native="ruleForm.price = oninput(ruleForm.price)">
......@@ -79,7 +79,7 @@
</el-form>
<GLTable ref="memberCenterRef" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"></GLTable>
</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>
<div class="modal-body">
<div class="equity-name">汽车权益</div>
......@@ -261,7 +261,9 @@ export default {
if (len1 == '-') {
str = ''
} //限制只能输入一个小数点
if(Number(value)>=99999){
return str=99999
}
if (str.indexOf('.') != -1) {
let str_ = str.substr(str.indexOf('.') + 1)
if (str_.indexOf('.') != -1) {
......@@ -351,7 +353,7 @@ export default {
background-color: #fff;
height: 173px;
box-sizing: border-box;
margin: 20px 40px;
margin: 20px 0px;
padding: 15px 20px;
box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.1);
.cardBoxWrap {
......@@ -427,7 +429,7 @@ export default {
.pageTitle {
position: relative;
padding: 0 40px;
padding: 0 0px;
height: 20px;
font-size: 20px;
font-weight: 700;
......
......@@ -2,7 +2,7 @@
<div class="live-room">
<div class="live-room container">
<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-form-item size="small" label="订单编号">
<el-input :size="size" v-model="searchForm.orderCode" placeholder="请输入订单编号" clearable></el-input>
......@@ -32,9 +32,6 @@
</el-form>
</div>
<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">
<el-button type="text" @click="handleDetail(scope.scope)">详情</el-button>
</span>
......
......@@ -3,7 +3,7 @@
<!-- //提示面板组件 -->
<tip-panel panelWidth="616px" panelMinHeight="60px" :panelContent="panelContent" v-if="isFirstShow" @closePanel="closePanel"></tip-panel>
<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-form-item size="small">
<el-button :size="size" type="primary" icon="el-icon-plus" @click="handleCreate">创建服务</el-button>
......@@ -12,7 +12,7 @@
<el-input :size="size" v-model="searchForm.couponName" placeholder="请输入服务名称" clearable></el-input>
</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" @click="handleReset">重置</el-button>
</el-form-item>
......@@ -47,7 +47,7 @@
</template>
<script>
import { getServiceListApi, effectiveService, deleteService } from '@/api/modules/service'
import { getServiceListApi, effectiveService, deleteService, getLoginCount } from '@/api/modules/service'
import { serviceStatusList } from '@/common/constant'
import tipPanel from '@/components/tipPanel/index.vue'
export default {
......@@ -56,7 +56,7 @@ export default {
},
data() {
return {
isFirstShow: true,
isFirstShow: false,
panelContent: '会员服务:是由门店根据自店服务项目创建的线上服务券,如“一年十二次洗车券”、“陶瓷镀膜”等,客户购买后可到店出示服务券享受服务,门店扫码进行次数核销。',
size: 'small',
getListApi: getServiceListApi,
......@@ -69,9 +69,9 @@ export default {
tableParams: {
listName: 'list',
// 行数据的key
mutiSelectUniqueKey: 'id',
// mutiSelectUniqueKey: 'id',
// 多选ref的名称
mutiSelectName: 'list',
// mutiSelectName: 'list',
tableOption: true,
tableColumns: [
{
......@@ -110,7 +110,7 @@ export default {
{
label: '创建时间',
prop: 'createdDate',
width:95
width: 95
}
]
},
......@@ -125,8 +125,16 @@ export default {
//运行在qiankun容器中
this.merchantId = this.$globalState.session.merchantId
}
this.getLoginCountFun()
},
methods: {
getLoginCountFun() {
//loginType:4是查会员服务浏览次数
getLoginCount({ loginType: 4 }).then(res => {
//获取是否第一次点击该页面
this.isFirstShow = res
})
},
closePanel() {
this.isFirstShow = false
},
......
......@@ -7,7 +7,7 @@
<div class="live-room container">
<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-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 size="small" label="有效期" prop="effectiveType">
......@@ -33,7 +33,7 @@
</el-radio>
<!-- effectiveStartTime effectiveEndTime +具体时间 -->
<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-group>
</div>
......@@ -93,15 +93,14 @@
<div class="serviceCard">
<div class="cardtop">
<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="timeRange">{{ effectiveRangeText }}</span>
<div class="grayLine"></div>
</div>
<div class="cardbottom">
<div class="desc">使用说明:</div>
<div class="desc">使用说明:</div>
<span class="detailDesc">{{ ruleForm.useDescription }}</span>
</div>
</div>
</div>
<div
......@@ -165,7 +164,7 @@ export default {
limitDays: '30',
limitTime2: 5,
rules: {
couponName: [{ required: true, message: '请输入活动名称', trigger: 'blur' }],
couponName: [{ required: true, message: '请输入服务名称', trigger: 'blur' }],
// region: [{ required: true, message: '请选择活动区域', trigger: 'change' }],
// date1: [{ type: 'date', required: true, message: '请选择日期', trigger: 'change' }],
// date2: [{ type: 'date', required: true, message: '请选择时间', trigger: 'change' }],
......@@ -380,7 +379,9 @@ export default {
if (len1 == '-') {
str = ''
} //限制只能输入一个小数点
if(Number(value)>=99999){
return str=99999
}
if (str.indexOf('.') != -1) {
let str_ = str.substr(str.indexOf('.') + 1)
if (str_.indexOf('.') != -1) {
......@@ -418,7 +419,7 @@ export default {
<style lang="scss" scoped>
.live-room {
.topMsg {
margin: 20px 40px 0;
margin: 20px 0px 0;
padding: 0 20px;
background-color: #fff;
height: 56px;
......@@ -438,7 +439,7 @@ export default {
}
}
.container {
margin: 0 40px 100px;
margin: 0 0px 100px;
position: relative;
/deep/ .el-form-item__content {
.radioGroupWrap {
......@@ -477,6 +478,7 @@ export default {
position: absolute;
padding: 10px;
box-sizing: border-box;
top: 136px;
right: 78px;
width: 343px;
......@@ -492,13 +494,12 @@ export default {
color: #999999;
}
.cardtop {
padding-bottom: 10px;
// border-bottom: 1px solid #979797;
position: relative;
.serviceName {
position: absolute;
left: 88px;
top: 5px;
width: 230px;
font-size: 14px;
font-weight: 600;
......@@ -523,19 +524,17 @@ export default {
opacity: 0.14;
background-color: #979797;
}
}
.cardbottom {
position: relative;
.desc {
position: absolute;
top: 10px;
left: 88px;
margin-top: 20px;
margin-left: 88px;
color: #333;
}
.detailDesc {
position: absolute;
left: 88px;
top: 35px;
display: inline-block;
margin-left: 88px;
margin-top: 10px;
width: 230px;
word-wrap: break-word;
}
}
}
......
......@@ -26,7 +26,7 @@
</span>
</GLTable>
</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-item col1">
<div class="subTitle">
......@@ -53,6 +53,7 @@
<script>
import glsxDialog from '@/components/glsx-dialog'
import { getSetMealListApi, deleteSetMeal, upDownPackage } from '@/api/modules/setmeal'
import { getLoginCount } from '@/api/modules/service'
import { stateList } from '@/common/constant'
import tipPanel from '@/components/tipPanel/index.vue'
export default {
......@@ -62,7 +63,7 @@ export default {
},
data() {
return {
isFirstShow: true,
isFirstShow: false,
panelContent: '会员套餐:将已经创建好的会员服务打包成一个套餐售卖给客户。',
size: 'small',
getListApi: getSetMealListApi,
......@@ -117,7 +118,17 @@ export default {
isDialogVisible: false
}
},
created () {
this.getLoginCountFun()
},
methods: {
getLoginCountFun() {
//loginType:5是查会员套餐浏览次数
getLoginCount({ loginType: 5 }).then(res => {
//获取是否第一次点击该页面
this.isFirstShow = res
})
},
closePanel() {
this.isFirstShow = false
},
......
......@@ -339,7 +339,9 @@ export default {
if (len1 == '-') {
str = ''
} //限制只能输入一个小数点
if(Number(value)>=99999){
return str=99999
}
if (str.indexOf('.') != -1) {
let str_ = str.substr(str.indexOf('.') + 1)
if (str_.indexOf('.') != -1) {
......@@ -388,7 +390,7 @@ export default {
<style lang="scss" scoped>
.live-room {
.topMsg {
margin: 20px 40px 0;
margin: 20px 0px 0;
padding: 0 20px;
background-color: #fff;
height: 56px;
......@@ -408,7 +410,7 @@ export default {
}
}
.container {
margin: 0 40px 20px;
margin: 0 0px 20px;
position: relative;
min-height: calc(100vh - 300px);
.allChoseWrap {
......
<!-- 编辑商品 -->
<template>
<div class="edit-pro marketing">
<div class="edit-pro marketing p-t-20">
<div class="container edit-container">
<p class="edit-title">{{ title }}</p>
<div class="flex m-t-20">
......
<!-- 商品管理-集团 -->
<template>
<div class="marketing pro-group">
<div class="marketing pro-group p-t-20">
<div class="m-b-20">
<el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新建商品</el-button>
</div>
......
<!-- 商品编辑 - 带货 -->
<template>
<div class="edit-product-dh marketing">
<div class="edit-product-dh marketing p-t-20">
<div class="container edit-container">
<p class="edit-title">{{ title }}</p>
<div class="flex" style="margin-top: 20px;">
......
<!-- 商品管理-门店 -->
<template>
<div class="marketing pro-group">
<div class="marketing pro-group p-t-20">
<div class="m-b-20">
<el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新建商品</el-button>
</div>
......
<!-- 带货管理 -->
<template>
<div class="marketing">
<div class="marketing p-t-20">
<div class="m-b-20">
<el-button :size="size" type="primary" @click="handleTakeGood()">一键带货</el-button>
</div>
......
<!-- 带货详情 -->
<!-- 商品编辑 - 带货 -->
<template>
<div class="edit-product-dh marketing">
<div class="edit-product-dh marketing p-t-20">
<div class="container edit-container">
<p class="edit-title">{{ title }}</p>
<div class="flex" style="margin-top: 20px;">
......
<!-- 编辑专区 -->
<template>
<div class="edit-zone marketing">
<div class="edit-zone marketing p-t-20">
<div class="container edit-container">
<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">
......
<!-- 专区管理 -->
<template>
<div class="marketing">
<div class="marketing p-t-20">
<div class="m-b-20">
<el-button :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新建专区</el-button>
</div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!