Commit 7d72605e by 胡悦

Merge branch 'v1.0.1' of http://192.168.3.233:8090/saas/scrm-micro-marketing into v1.0.1

2 parents 1ce06d61 b2956a0b
......@@ -139,7 +139,8 @@ export default {
this.$message({
message: '请选择关联门店',
type: 'warning',
showClose: true
showClose: true,
customClass: 'message-Z-zinde'
})
return true
}
......
......@@ -100,7 +100,11 @@ export default {
},
handleSingleSelectConfirm() {
if (!this.infoId) {
this.$message.error('请选择商品')
this.$message({
message: '请选择商品',
type: 'error',
customClass: 'message-Z-zinde'
})
return true
}
var selectInfo = this.productList.find(item => item.id === this.infoId)
......
......@@ -185,7 +185,7 @@ export default {
editForm: {
merchantQrcode: '',
noticeContent: '',
preferentialPolicy: '',
// preferentialPolicy: '',
customerServerUserId: '',
bannerList: []
},
......@@ -249,19 +249,19 @@ export default {
}
]
},
{
title: '新车优惠政策',
editFormData: [
{
label: '优惠政策',
name: 'preferentialPolicy',
type: 'input',
rows: '4',
inputType: 'textarea',
maxlength: '300'
}
]
},
// {
// title: '新车优惠政策',
// editFormData: [
// {
// label: '优惠政策',
// name: 'preferentialPolicy',
// type: 'input',
// rows: '4',
// inputType: 'textarea',
// maxlength: '300'
// }
// ]
// },
{
title: '在线客服',
editFormData: [
......@@ -324,7 +324,7 @@ export default {
this.editForm.bannerList = []
this.editForm.noticeContent = res.noticeContent
this.editForm.merchantQrcode = res.merchantQrcode
this.editForm.preferentialPolicy = res.preferentialPolicy
// this.editForm.preferentialPolicy = res.preferentialPolicy
this.editForm.customerServerUserId = ''
// 在线客服
this.customerServerList = []
......@@ -397,9 +397,9 @@ export default {
}
},
handleBannerAdd() {
if (this.editForm.bannerList.length >= 4) {
if (this.editForm.bannerList.length >= 6) {
this.$message({
message: '最多只能新增4个banner',
message: '最多只能新增6个banner',
type: 'error'
})
return true
......@@ -446,7 +446,6 @@ export default {
case '2':
break;
case '3':
console.log('视频介绍')
break;
}
},
......@@ -528,9 +527,9 @@ export default {
// },
getConsultant() {
this.$apis.homeSet.getConsultantListApi({ merchantId: this.userInfo.merchantId, followTypes: [3] }).then(res => {
// console.log(res)
this.baseData.consultantList = res
this.externalFormList[4].editFormData[0].optionList = res
var idx = this.externalFormList.findIndex(item => item.title == '在线客服')
this.externalFormList[idx].editFormData[0].optionList = res
})
},
// 在线客服-end
......@@ -576,27 +575,10 @@ export default {
}
</script>
<style>
/* .home-set .container {
padding: 20px 24px 20px 0;
} */
.home-set .home-img-w-h {
width: 264px;
height: 108px;
}
/* .wechat-container {
width: 375px;
margin-right: 45px;
background: #ffffff;
position: relative;
}
.wechat-container .w-100-per {
width: 100%;
}
.wechat-container .wechat-box {
border: 1px solid #cecece;
width: 100%;
border-radius: 2px;
} */
.home-set .wechat-container .wechat-box .wechant-back {
width: 252px;
box-sizing: border-box;
......@@ -648,7 +630,6 @@ export default {
.home-set .img-56 {
width: 56px;
height: 56px;
/* margin-right: 12px; */
}
.home-set .m-t-8 {
margin-top: 8px;
......
......@@ -82,7 +82,7 @@
</el-form-item>
</el-row>
</el-form>
<GLTable ref="memberCenterRef" v-if="isReload" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<GLTable ref="memberCenterRef" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<span slot="accountName" slot-scope="scope">
<div>{{ scope.scope.accountName }}</div>
<div>{{ scope.scope.mobile }}</div>
......@@ -142,7 +142,6 @@ export default {
// }, 1000)
}
return {
isReload: true,
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
......@@ -361,20 +360,20 @@ mounted () {
})
},
handleReset() {
this.isReload = false
this.searchForm = {}
this.$nextTick(() => {
this.isReload = true
})
this.handleSearch()
},
handleSearch() {
this.$refs.memberCenterRef.refreshTable()
},
setTableFinishFun() {
//接收到的数据为空
if (!this.$refs.memberCenterRef.data.length) {
this.$refs.memberCenterRef.setTableHeightFun()
}
// if (!this.$refs.memberCenterRef.data.length) {
// this.$refs.memberCenterRef.setTableHeightFun()
// }
this.$refs.memberCenterRef.data.length ? (this.$refs.memberCenterRef.tableHeightValues = '') : this.$refs.memberCenterRef.setTableHeightFun()
},
handleClose() {
this.isDialogVisible = !this.isDialogVisible
......
......@@ -180,7 +180,7 @@ export default {
.midMsgContent {
padding-left: 50px;
display: flex;
height: 150px;
min-height: 150px;
.item {
padding-top: 20px;
font-size: 14px;
......
......@@ -265,8 +265,8 @@ export default {
padding-bottom: 20px;
}
/deep/ .el-dialog__body {
border-bottom: 1px solid #e6e6e6;
border-top: 1px solid #e6e6e6;
// border-bottom: 1px solid #e6e6e6;
// border-top: 1px solid #e6e6e6;
padding: 30px 20px;
.content-body {
......
......@@ -184,9 +184,10 @@ export default {
setTableFinishFun(content) {
// console.log(content, this.$refs.memberServiceRef.data.length, '获取数据')
//接收到的数据为空
if (!this.$refs.memberServiceRef.data.length) {
this.$refs.memberServiceRef.setTableHeightFun()
}
// if (!this.$refs.memberServiceRef.data.length) {
// this.$refs.memberServiceRef.setTableHeightFun()
// }
this.$refs.memberServiceRef.data.length ? (this.$refs.memberServiceRef.tableHeightValues = '') : this.$refs.memberServiceRef.setTableHeightFun()
},
//创建服务
handleCreate() {
......
......@@ -362,7 +362,6 @@ export default {
params.merchantName = this.merchantName
createService(params).then(res => {
if (res.code == 0) {
// console.log(res, '提交内容')
this.$message.success('创建服务成功')
this.$router.push('/memberCenter/service')
......
......@@ -6,7 +6,7 @@
<el-button :size="size" type="primary" @click="handleCreate" icon="el-icon-plus">创建套餐</el-button>
<!-- <GLButton type="primary" @click="handleCreate" size="small" icon="el-icon-plus" fn="创建套餐" mode="el-button">创建套餐</GLButton> -->
<el-button :size="size" @click="showViewer=true">查看示例效果</el-button>
<el-image-viewer v-if="showViewer" :on-close="()=>{showViewer=false}" :url-list="srcList"/>
<el-image-viewer v-if="showViewer" :on-close="()=>{showViewer=false}" :url-list="srcList" style="padding:4%;"/>
</div>
<GLTable ref="memberSetMealRef" :noDataImg="url" @setTableFinishFun="setTableFinishFun" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<span slot="list" slot-scope="scope">
......@@ -293,4 +293,14 @@ export default {
text-align: center;
padding: 20px;
}
/* 大图预览的关闭图标 改为大一点的白色 */
/deep/.el-image-viewer__btn.el-image-viewer__close {
color: #5850ff;
opacity: unset;
top: 50px;
right: 50px;
width: 40px;
height: 40px;
font-size: 40px;
}
</style>
......@@ -157,7 +157,7 @@ export default {
if (action == 'confirm') {
this.$apis[apiModule][apiName](apiParams).then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
message: res.code == '0' ? '操作成功' : '操作失败',
type: res.code == '0' ? 'success' : 'error'
})
if (res.code == '0') {
......
......@@ -191,7 +191,7 @@ export default {
merchantAccountLevel: item.merchantAccountLevel
})
})
console.log(params)
// console.log(params)
this.$apis.zoneList.insertZoneApi(params).then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : '操作失败',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!