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 { ...@@ -139,7 +139,8 @@ export default {
this.$message({ this.$message({
message: '请选择关联门店', message: '请选择关联门店',
type: 'warning', type: 'warning',
showClose: true showClose: true,
customClass: 'message-Z-zinde'
}) })
return true return true
} }
......
...@@ -100,7 +100,11 @@ export default { ...@@ -100,7 +100,11 @@ export default {
}, },
handleSingleSelectConfirm() { handleSingleSelectConfirm() {
if (!this.infoId) { if (!this.infoId) {
this.$message.error('请选择商品') this.$message({
message: '请选择商品',
type: 'error',
customClass: 'message-Z-zinde'
})
return true return true
} }
var selectInfo = this.productList.find(item => item.id === this.infoId) var selectInfo = this.productList.find(item => item.id === this.infoId)
......
...@@ -185,7 +185,7 @@ export default { ...@@ -185,7 +185,7 @@ export default {
editForm: { editForm: {
merchantQrcode: '', merchantQrcode: '',
noticeContent: '', noticeContent: '',
preferentialPolicy: '', // preferentialPolicy: '',
customerServerUserId: '', customerServerUserId: '',
bannerList: [] bannerList: []
}, },
...@@ -249,19 +249,19 @@ export default { ...@@ -249,19 +249,19 @@ export default {
} }
] ]
}, },
{ // {
title: '新车优惠政策', // title: '新车优惠政策',
editFormData: [ // editFormData: [
{ // {
label: '优惠政策', // label: '优惠政策',
name: 'preferentialPolicy', // name: 'preferentialPolicy',
type: 'input', // type: 'input',
rows: '4', // rows: '4',
inputType: 'textarea', // inputType: 'textarea',
maxlength: '300' // maxlength: '300'
} // }
] // ]
}, // },
{ {
title: '在线客服', title: '在线客服',
editFormData: [ editFormData: [
...@@ -324,7 +324,7 @@ export default { ...@@ -324,7 +324,7 @@ export default {
this.editForm.bannerList = [] this.editForm.bannerList = []
this.editForm.noticeContent = res.noticeContent this.editForm.noticeContent = res.noticeContent
this.editForm.merchantQrcode = res.merchantQrcode this.editForm.merchantQrcode = res.merchantQrcode
this.editForm.preferentialPolicy = res.preferentialPolicy // this.editForm.preferentialPolicy = res.preferentialPolicy
this.editForm.customerServerUserId = '' this.editForm.customerServerUserId = ''
// 在线客服 // 在线客服
this.customerServerList = [] this.customerServerList = []
...@@ -397,9 +397,9 @@ export default { ...@@ -397,9 +397,9 @@ export default {
} }
}, },
handleBannerAdd() { handleBannerAdd() {
if (this.editForm.bannerList.length >= 4) { if (this.editForm.bannerList.length >= 6) {
this.$message({ this.$message({
message: '最多只能新增4个banner', message: '最多只能新增6个banner',
type: 'error' type: 'error'
}) })
return true return true
...@@ -446,7 +446,6 @@ export default { ...@@ -446,7 +446,6 @@ export default {
case '2': case '2':
break; break;
case '3': case '3':
console.log('视频介绍')
break; break;
} }
}, },
...@@ -528,9 +527,9 @@ export default { ...@@ -528,9 +527,9 @@ export default {
// }, // },
getConsultant() { getConsultant() {
this.$apis.homeSet.getConsultantListApi({ merchantId: this.userInfo.merchantId, followTypes: [3] }).then(res => { this.$apis.homeSet.getConsultantListApi({ merchantId: this.userInfo.merchantId, followTypes: [3] }).then(res => {
// console.log(res)
this.baseData.consultantList = 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 // 在线客服-end
...@@ -576,27 +575,10 @@ export default { ...@@ -576,27 +575,10 @@ export default {
} }
</script> </script>
<style> <style>
/* .home-set .container {
padding: 20px 24px 20px 0;
} */
.home-set .home-img-w-h { .home-set .home-img-w-h {
width: 264px; width: 264px;
height: 108px; 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 { .home-set .wechat-container .wechat-box .wechant-back {
width: 252px; width: 252px;
box-sizing: border-box; box-sizing: border-box;
...@@ -648,7 +630,6 @@ export default { ...@@ -648,7 +630,6 @@ export default {
.home-set .img-56 { .home-set .img-56 {
width: 56px; width: 56px;
height: 56px; height: 56px;
/* margin-right: 12px; */
} }
.home-set .m-t-8 { .home-set .m-t-8 {
margin-top: 8px; margin-top: 8px;
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </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"> <span slot="accountName" slot-scope="scope">
<div>{{ scope.scope.accountName }}</div> <div>{{ scope.scope.accountName }}</div>
<div>{{ scope.scope.mobile }}</div> <div>{{ scope.scope.mobile }}</div>
...@@ -142,7 +142,6 @@ export default { ...@@ -142,7 +142,6 @@ export default {
// }, 1000) // }, 1000)
} }
return { return {
isReload: true,
pickerOptions: { pickerOptions: {
disabledDate(time) { disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime() return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
...@@ -361,20 +360,20 @@ mounted () { ...@@ -361,20 +360,20 @@ mounted () {
}) })
}, },
handleReset() { handleReset() {
this.isReload = false
this.searchForm = {} this.searchForm = {}
this.$nextTick(() => { this.handleSearch()
this.isReload = true
})
}, },
handleSearch() { handleSearch() {
this.$refs.memberCenterRef.refreshTable() this.$refs.memberCenterRef.refreshTable()
}, },
setTableFinishFun() { setTableFinishFun() {
//接收到的数据为空 //接收到的数据为空
if (!this.$refs.memberCenterRef.data.length) { // if (!this.$refs.memberCenterRef.data.length) {
this.$refs.memberCenterRef.setTableHeightFun() // this.$refs.memberCenterRef.setTableHeightFun()
} // }
this.$refs.memberCenterRef.data.length ? (this.$refs.memberCenterRef.tableHeightValues = '') : this.$refs.memberCenterRef.setTableHeightFun()
}, },
handleClose() { handleClose() {
this.isDialogVisible = !this.isDialogVisible this.isDialogVisible = !this.isDialogVisible
......
...@@ -180,7 +180,7 @@ export default { ...@@ -180,7 +180,7 @@ export default {
.midMsgContent { .midMsgContent {
padding-left: 50px; padding-left: 50px;
display: flex; display: flex;
height: 150px; min-height: 150px;
.item { .item {
padding-top: 20px; padding-top: 20px;
font-size: 14px; font-size: 14px;
......
...@@ -265,8 +265,8 @@ export default { ...@@ -265,8 +265,8 @@ export default {
padding-bottom: 20px; padding-bottom: 20px;
} }
/deep/ .el-dialog__body { /deep/ .el-dialog__body {
border-bottom: 1px solid #e6e6e6; // border-bottom: 1px solid #e6e6e6;
border-top: 1px solid #e6e6e6; // border-top: 1px solid #e6e6e6;
padding: 30px 20px; padding: 30px 20px;
.content-body { .content-body {
......
...@@ -184,9 +184,10 @@ export default { ...@@ -184,9 +184,10 @@ export default {
setTableFinishFun(content) { setTableFinishFun(content) {
// console.log(content, this.$refs.memberServiceRef.data.length, '获取数据') // console.log(content, this.$refs.memberServiceRef.data.length, '获取数据')
//接收到的数据为空 //接收到的数据为空
if (!this.$refs.memberServiceRef.data.length) { // if (!this.$refs.memberServiceRef.data.length) {
this.$refs.memberServiceRef.setTableHeightFun() // this.$refs.memberServiceRef.setTableHeightFun()
} // }
this.$refs.memberServiceRef.data.length ? (this.$refs.memberServiceRef.tableHeightValues = '') : this.$refs.memberServiceRef.setTableHeightFun()
}, },
//创建服务 //创建服务
handleCreate() { handleCreate() {
......
...@@ -362,7 +362,6 @@ export default { ...@@ -362,7 +362,6 @@ export default {
params.merchantName = this.merchantName params.merchantName = this.merchantName
createService(params).then(res => { createService(params).then(res => {
if (res.code == 0) { if (res.code == 0) {
// console.log(res, '提交内容')
this.$message.success('创建服务成功') this.$message.success('创建服务成功')
this.$router.push('/memberCenter/service') this.$router.push('/memberCenter/service')
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<el-button :size="size" type="primary" @click="handleCreate" icon="el-icon-plus">创建套餐</el-button> <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> --> <!-- <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-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> </div>
<GLTable ref="memberSetMealRef" :noDataImg="url" @setTableFinishFun="setTableFinishFun" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="memberSetMealRef" :noDataImg="url" @setTableFinishFun="setTableFinishFun" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<span slot="list" slot-scope="scope"> <span slot="list" slot-scope="scope">
...@@ -293,4 +293,14 @@ export default { ...@@ -293,4 +293,14 @@ export default {
text-align: center; text-align: center;
padding: 20px; 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> </style>
...@@ -157,7 +157,7 @@ export default { ...@@ -157,7 +157,7 @@ export default {
if (action == 'confirm') { if (action == 'confirm') {
this.$apis[apiModule][apiName](apiParams).then(res => { this.$apis[apiModule][apiName](apiParams).then(res => {
this.$message({ this.$message({
message: res.code == '0' ? '操作成功' : res.message, message: res.code == '0' ? '操作成功' : '操作失败',
type: res.code == '0' ? 'success' : 'error' type: res.code == '0' ? 'success' : 'error'
}) })
if (res.code == '0') { if (res.code == '0') {
......
...@@ -191,7 +191,7 @@ export default { ...@@ -191,7 +191,7 @@ export default {
merchantAccountLevel: item.merchantAccountLevel merchantAccountLevel: item.merchantAccountLevel
}) })
}) })
console.log(params) // console.log(params)
this.$apis.zoneList.insertZoneApi(params).then(res => { this.$apis.zoneList.insertZoneApi(params).then(res => {
this.$message({ this.$message({
message: res.code == '0' ? '操作成功' : '操作失败', 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!