Commit 58a8db4e by 无尘

build: 打包发布

parent 4c3eab60
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.f008bee91bd1ee40cd02e0901ce71706.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.92b643f3cd61c6a39bee.js></script><script type=text/javascript src=./static/js/vendor.edfe69b49db0b6363a08.js></script><script type=text/javascript src=./static/js/app.ce90fbf8f9be10c7c537.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.4ee3f19f799dc0df143484ea184c4fe6.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.a078056776f73e53c541.js></script><script type=text/javascript src=./static/js/vendor.edfe69b49db0b6363a08.js></script><script type=text/javascript src=./static/js/app.ce90fbf8f9be10c7c537.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},f={82:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"b0bdf8454c398d47ec5b",1:"0ebe3ead93207dc78a78",2:"d3c62c00c91d9891f916",3:"a43577b9e52a5719a124",4:"1acc2c4a7bb860e0e47d",5:"baa22d481d8bbd83425c",6:"a9e21ac53fc1057bdb02",7:"8f462a353a2ce9c0c116",8:"02a56d5a1c19341c7206",9:"860dbe8cf83334f9e3c0",10:"a2aa031ae677b8acbf17",11:"e34a64dea1b7a059dcfd",12:"bdcf26a1bcccf7e0239b",13:"6c87f5cefdf77374932d",14:"8a2d85b6cc3b95b868d9",15:"8426665237a3b321c3e0",16:"c4ebe5ae46670e5c0754",17:"43a28ed857836d70649f",18:"da89c6419effe11ad50c",19:"bb83681e388a0b07f240",20:"f2c4b24780f832941cf4",21:"c29952477e255e5f2429",22:"e17d69da2370932a7713",23:"9efbbc6dd315a676ce09",24:"4637a4566383d6e864cf",25:"a579fe9e82eab9ece806",26:"8f0bb144b5e757399727",27:"b5f0e5bd5920771b58af",28:"140ad99228544036c969",29:"36261093da9264fa5f33",30:"0d4999d53befa8fd9eaa",31:"8baa6bca929d1c9a38f6",32:"836f4d0e323c721473e9",33:"7b62b2ff369669fe322c",34:"f9d53c31059aaff9b360",35:"c75699cc6fe47597f200",36:"031f3a5aae4656aba067",37:"8016d3ac07df8acaf73d",38:"23b83bd7920693bc35c6",39:"d17e2c61f3cc8d6972fa",40:"56797b378549955e7f19",41:"78d64ae1581e8ea232cc",42:"61ae052e4f4fc3284000",43:"9d05f4d2f06b9c6bba0e",44:"96d0b6e88fc87f60bac7",45:"9ed8480e1b598c7a098d",46:"98fb716c1e5a99ebdcf8",47:"de0e290ed4c878d0c8c3",48:"6d564387f233c08c800d",49:"057719749403ae33178b",50:"331006123edd2049b7d9",51:"244dc6f576a64b7c174b",52:"43d3ca00e0c9087e4956",53:"9dce74b07cc47cdf56db",54:"1503b643475934e2b5e1",55:"c423570fcbf037d349d9",56:"94bbfa32e0086c5f0bbc",57:"a5308ec502fd9436e4d8",58:"78fea9e14de750887bf1",59:"e232c753f68c56d9e59c",60:"2a9bebb0261ef9a7a939",61:"8833a156f1e38036fb28",62:"44d1241f8d57451d0c10",63:"25cb3ac91e9616a47dde",64:"ebc341a9017c4b2c1112",65:"afcb60484e7a9ec39f28",66:"0c2656f4decfecb59972",67:"d7e3675c4b4931db738d",68:"13404d9aa7a460952885",69:"ff1445c96fd757245229",70:"3720d31e136a7f99a873",71:"458af30d30795059cdbe",72:"cba3aa56f0a846445e33",73:"dc84bab89c2090b47673",74:"a9dae9c87c825ba65aa1",75:"29e0d3d537fd9fa5eabc",76:"e24f155e1168c927ee44",77:"9f7ea81c191a5e1bbaa2",78:"51dbc832d510b2a1c0a3",81:"b70a353b3c794793e525"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]); !function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},f={82:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"bdc6a357964d9c447690",1:"0ebe3ead93207dc78a78",2:"d3c62c00c91d9891f916",3:"a43577b9e52a5719a124",4:"1acc2c4a7bb860e0e47d",5:"baa22d481d8bbd83425c",6:"a9e21ac53fc1057bdb02",7:"8f462a353a2ce9c0c116",8:"02a56d5a1c19341c7206",9:"860dbe8cf83334f9e3c0",10:"a2aa031ae677b8acbf17",11:"e34a64dea1b7a059dcfd",12:"bdcf26a1bcccf7e0239b",13:"6c87f5cefdf77374932d",14:"8a2d85b6cc3b95b868d9",15:"8426665237a3b321c3e0",16:"c4ebe5ae46670e5c0754",17:"43a28ed857836d70649f",18:"da89c6419effe11ad50c",19:"bb83681e388a0b07f240",20:"f2c4b24780f832941cf4",21:"c29952477e255e5f2429",22:"e17d69da2370932a7713",23:"9efbbc6dd315a676ce09",24:"4637a4566383d6e864cf",25:"a579fe9e82eab9ece806",26:"8f0bb144b5e757399727",27:"b5f0e5bd5920771b58af",28:"140ad99228544036c969",29:"36261093da9264fa5f33",30:"0d4999d53befa8fd9eaa",31:"8baa6bca929d1c9a38f6",32:"836f4d0e323c721473e9",33:"7b62b2ff369669fe322c",34:"f9d53c31059aaff9b360",35:"c75699cc6fe47597f200",36:"031f3a5aae4656aba067",37:"8016d3ac07df8acaf73d",38:"23b83bd7920693bc35c6",39:"d17e2c61f3cc8d6972fa",40:"56797b378549955e7f19",41:"78d64ae1581e8ea232cc",42:"61ae052e4f4fc3284000",43:"9d05f4d2f06b9c6bba0e",44:"96d0b6e88fc87f60bac7",45:"9ed8480e1b598c7a098d",46:"98fb716c1e5a99ebdcf8",47:"de0e290ed4c878d0c8c3",48:"6d564387f233c08c800d",49:"057719749403ae33178b",50:"331006123edd2049b7d9",51:"244dc6f576a64b7c174b",52:"43d3ca00e0c9087e4956",53:"9dce74b07cc47cdf56db",54:"1503b643475934e2b5e1",55:"c423570fcbf037d349d9",56:"94bbfa32e0086c5f0bbc",57:"a5308ec502fd9436e4d8",58:"78fea9e14de750887bf1",59:"e232c753f68c56d9e59c",60:"2a9bebb0261ef9a7a939",61:"8833a156f1e38036fb28",62:"44d1241f8d57451d0c10",63:"25cb3ac91e9616a47dde",64:"ebc341a9017c4b2c1112",65:"afcb60484e7a9ec39f28",66:"0c2656f4decfecb59972",67:"d7e3675c4b4931db738d",68:"13404d9aa7a460952885",69:"ff1445c96fd757245229",70:"3720d31e136a7f99a873",71:"458af30d30795059cdbe",72:"cba3aa56f0a846445e33",73:"dc84bab89c2090b47673",74:"a9dae9c87c825ba65aa1",75:"29e0d3d537fd9fa5eabc",76:"e24f155e1168c927ee44",77:"9f7ea81c191a5e1bbaa2",78:"51dbc832d510b2a1c0a3",81:"b70a353b3c794793e525"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file \ No newline at end of file
<!-- <!--
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2019-09-24 16:47:18
-->
<!--
我的顾客应用: 我的顾客应用:
<app-detail ></app-detail> <app-detail ></app-detail>
--> -->
...@@ -103,8 +112,18 @@ ...@@ -103,8 +112,18 @@
</el-table-column> </el-table-column>
<el-table-column> <el-table-column>
<template slot="header" slot-scope="scope"> <template slot="header" slot-scope="scope">
<el-tooltip class="item" effect="dark" content="<前提:开启模板消息开关。仅支持专属导购对<我的顾客-会员分组>中的分组下会员发送模板消息>" placement="right">
<span style="cursor: pointer">模板消息设置<i class="el-icon-info font-12 color-606266"></i></span>
</el-tooltip>
</template>
<template slot-scope="scope">
<el-switch v-model="scope.row.isSendTemplate" active-text="" inactive-text="" @change="toChangeTemp($event, scope.$index, scope.row)"> </el-switch>
</template>
</el-table-column>
<el-table-column>
<template slot="header" slot-scope="scope">
<el-tooltip class="item" effect="dark" content="仅可编辑能在好办展示的分组" placement="right"> <el-tooltip class="item" effect="dark" content="仅可编辑能在好办展示的分组" placement="right">
<span>操作<i class="el-icon-info font-12 color-606266"></i></span> <span style="cursor: pointer">操作<i class="el-icon-info font-12 color-606266"></i></span>
</el-tooltip> </el-tooltip>
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -407,6 +426,35 @@ export default { ...@@ -407,6 +426,35 @@ export default {
}); });
}); });
}, },
/**
* 模板消息设置
*/
toChangeTemp(e, index, row) {
const that = this;
console.log(e, index, row)
let para = {
brandId: that.brandId,
memberTagGroupId: row.memberTagGroupId,
isSendTemplate: row.isSendTemplate == true ? 1 : 0
}
postRequest('/haoban-app-member-web/memberGroup/save-member-group-is-template-message', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
showMsg.showmsg('操作成功', 'success');
that.pageNum = 1;
that.getGroupList(that.brandId)
return;
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
},
/** /**
* 分页---页码变化 * 分页---页码变化
...@@ -443,6 +491,11 @@ export default { ...@@ -443,6 +491,11 @@ export default {
.then(res => { .then(res => {
let resData = res.data; let resData = res.data;
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
if(resData.result.list && resData.result.list.length) {
resData.result.list.forEach((ele) => {
ele.isSendTemplate = ele.isSendTemplate == 1? true: false;
})
}
that.groupListData = resData.result.list || []; that.groupListData = resData.result.list || [];
that.total = resData.result.pageInfo.total; that.total = resData.result.pageInfo.total;
return; return;
...@@ -490,6 +543,13 @@ export default { ...@@ -490,6 +543,13 @@ export default {
para['allowGuideMobile'] = !!that.myCustomData['allowGuideMobile'] ? 1 : 0; para['allowGuideMobile'] = !!that.myCustomData['allowGuideMobile'] ? 1 : 0;
para['allowGuideMessage'] = !!that.myCustomData['allowGuideMessage'] ? 1 : 0; para['allowGuideMessage'] = !!that.myCustomData['allowGuideMessage'] ? 1 : 0;
para['allowGuideOnlineChat'] = !!that.myCustomData['allowGuideOnlineChat'] ? 1 : 0; para['allowGuideOnlineChat'] = !!that.myCustomData['allowGuideOnlineChat'] ? 1 : 0;
para.chatFlag = that.myCustomData.chatFlag; // 总的
para.isMessageRemind = that.myCustomData.isMessageRemind; // 短信
para.messageRemindTime = that.myCustomData.messageRemindTime;
para.isTemplateMessage = that.myCustomData.isTemplateMessage; // 模板消息
para.isImgMessage = that.myCustomData.isImgMessage; // 图文
para.isGoodMessage = that.myCustomData.isGoodMessage;
para.isIntegralGoodMessage = that.myCustomData.isIntegralGoodMessage;
url = '/haoban-app-member-web/customer/save-member-show-setting'; url = '/haoban-app-member-web/customer/save-member-show-setting';
} }
...@@ -558,14 +618,16 @@ export default { ...@@ -558,14 +618,16 @@ export default {
let resData = res.data; let resData = res.data;
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
if (!!resData.result) { if (!!resData.result) {
that.myCustomData.mainStoreFlag = resData.result.mainStoreFlag == 1 ? true : false; resData.result.mainStoreFlag = resData.result.mainStoreFlag == 1 ? true : false;
that.myCustomData.minorStoreFlag = resData.result.minorStoreFlag == 1 ? true : false; resData.result.minorStoreFlag = resData.result.minorStoreFlag == 1 ? true : false;
that.myCustomData.openCardStoreFlag = resData.result.openCardStoreFlag == 1 ? true : false; resData.result.openCardStoreFlag = resData.result.openCardStoreFlag == 1 ? true : false;
that.myCustomData.clerkSeeOtherFlag = resData.result.clerkSeeOtherFlag == 1 ? true : false; resData.result.clerkSeeOtherFlag = resData.result.clerkSeeOtherFlag == 1 ? true : false;
that.myCustomData.allowGuideContact = resData.result.allowGuideContact == 1 ? true : false; resData.result.allowGuideContact = resData.result.allowGuideContact == 1 ? true : false;
that.myCustomData.allowGuideMobile = resData.result.allowGuideMobile == 1 ? true : false; resData.result.allowGuideMobile = resData.result.allowGuideMobile == 1 ? true : false;
that.myCustomData.allowGuideMessage = resData.result.allowGuideMessage == 1 ? true : false; resData.result.allowGuideMessage = resData.result.allowGuideMessage == 1 ? true : false;
that.myCustomData.allowGuideOnlineChat = resData.result.allowGuideOnlineChat == 1 ? true : false; resData.result.allowGuideOnlineChat = resData.result.allowGuideOnlineChat == 1 ? true : false;
resData.result.searchFlag = resData.result.searchFlag == 1 ? true : false;
that.myCustomData = resData.result;
} }
return; return;
} }
......
<!-- <!--
<chat-log-list :brandId="brandId" :showFlag='showFlag' @hideDetail="hideDetail"></chat-log-list> <chat-log-list :brandId="brandId" :itemRow="itemRow" :showFlag='showFlag' @hideDetail="hideDetail"></chat-log-list>
import chatLogList from '@/components/app/chat-log-list.vue'; import chatLogList from '@/components/app/chat-log-list.vue';
components: { components: {
chatLogList chatLogList
...@@ -8,31 +8,34 @@ components: { ...@@ -8,31 +8,34 @@ components: {
<template> <template>
<div :class="['chat-log-detail', !showFlag ? 'hide-detail' : '']"> <div :class="['chat-log-detail', !showFlag ? 'hide-detail' : '']">
<div class="chat-log-detail_top border-box" @click="hideLog"> <div v-if="showFlag" class="log-mask" @click="hideLog"></div>
<i class="iconfont icon-zhankai"></i> <div class="chat-log-wrap">
</div> <div class="chat-log-detail_top border-box" @click="hideLog">
<ul class="chat-log-list border-box" v-infinite-scroll="load"> <i class="iconfont icon-zhankai"></i>
<li v-for="(item, index) in chatDetailData" class="infinite-list-item" :key="index"> </div>
<div v-if="item.type == 1" class="chat-list-cell flex"> <ul class="chat-log-list border-box" v-infinite-scroll="load">
<div class="chat-list-cell_img"><img :src="item.headPic" alt="" /></div> <li v-for="(item, index) in chatDetailData" class="infinite-list-item" :key="index">
<div class="chat-list-right flex flex-column flex-space-between"> <div v-if="item.type == 1" class="chat-list-cell flex">
<div class="chat-list-user font-12 color-909399"> <div class="chat-list-cell_img"><img :src="item.headPic" alt="" /></div>
<span>{{ item.name }} </span> <span>{{ item.createTime | formatTimeYmdHms }}</span> <div class="chat-list-right flex flex-column flex-space-between">
<div class="chat-list-user font-12 color-909399">
<span>{{ item.name }} </span> <span>{{ item.createTime | formatTimeYmdHms }}</span>
</div>
<div class="chat-list-msg font-14 color-303133"></div>
</div> </div>
<div class="chat-list-msg font-14 color-303133"></div>
</div> </div>
</div> <div v-if="item.type == 1" class="chat-list-cell flex">
<div v-if="item.type == 1" class="chat-list-cell flex"> <div class="chat-list-cell_img"><img :src="item.headPic" alt="" /></div>
<div class="chat-list-cell_img"><img :src="item.headPic" alt="" /></div> <div class="chat-list-right flex flex-column flex-space-between">
<div class="chat-list-right flex flex-column flex-space-between"> <div class="chat-list-user font-12 color-909399">
<div class="chat-list-user font-12 color-909399"> <span>{{ item.name }} </span> <span>{{ item.createTime | formatTimeYmdHms }}</span>
<span>{{ item.name }} </span> <span>{{ item.createTime | formatTimeYmdHms }}</span> </div>
<div class="chat-list-msg font-14 color-303133"></div>
</div> </div>
<div class="chat-list-msg font-14 color-303133"></div>
</div> </div>
</div> </li>
</li> </ul>
</ul> </div>
</div> </div>
</template> </template>
<script> <script>
...@@ -59,10 +62,10 @@ export default { ...@@ -59,10 +62,10 @@ export default {
return false; return false;
} }
}, },
msgId: { itemRow: {
type: String, type: Object,
default() { default() {
return ''; return {};
} }
} }
}, },
...@@ -95,12 +98,14 @@ export default { ...@@ -95,12 +98,14 @@ export default {
/** /**
* 获取消息详情 * 获取消息详情
*/ */
getData(lastId) { getData(obj) {
const that = this; const that = this;
let para = { let para = {
brandId: that.brandId, brandId: that.brandId,
pageSize: that.pageSize, size: that.pageSize,
pageNum: that.pageNum messageId: obj.messageId,
userMessageId: obj.userMessageId,
userId: obj.userId
}; };
postRequest('/haoban-app-member-web/customer/find_message_detail', para) postRequest('/haoban-app-member-web/customer/find_message_detail', para)
.then(res => { .then(res => {
...@@ -139,12 +144,24 @@ export default { ...@@ -139,12 +144,24 @@ export default {
that.activeGroup = newData; that.activeGroup = newData;
} }
}, },
showFlag: function(newData, oldData) { // showFlag: function(newData, oldData) {
// const that = this;
// if (!!newData) {
// // that.getData();
// }
// },
itemRow: function(newData, oldData) {
const that = this; const that = this;
if (!!newData) { if (Object.keys(newData).length) {
that.getData(); that.getData(newData);
} }
} }
},
mounted() {
const that = this;
if (Object.keys(that.itemRow).length) {
that.getData(that.itemRow);
}
} }
}; };
</script> </script>
...@@ -162,9 +179,26 @@ export default { ...@@ -162,9 +179,26 @@ export default {
overflow: hidden; overflow: hidden;
z-index: 100; z-index: 100;
background: #fff; background: #fff;
.log-mask {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: auto;
margin: 0;
opacity: 0.5;
background: #000;
z-index: 9;
}
&.hide-detail { &.hide-detail {
right: -399px; right: -399px;
} }
.chat-log-wrap {
position: relative;
background: #fff;
z-index: 101;
}
.chat-log-detail_top { .chat-log-detail_top {
width: 100%; width: 100%;
height: 50px; height: 50px;
......
...@@ -59,7 +59,7 @@ components: { ...@@ -59,7 +59,7 @@ components: {
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[20, 40, 60, 80]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="total"> </el-pagination> <el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[20, 40, 60, 80]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="total"> </el-pagination>
</div> </div>
</div> </div>
<chat-log-list :brandId="brandId" :showFlag="showFlag" @hideDetail="hideDetail"></chat-log-list> <chat-log-list :brandId="brandId" :itemRow="itemRow" :showFlag="showFlag" @hideDetail="hideDetail"></chat-log-list>
<vue-select-store ref="storeSelector" :currentBrand="activeGroup" :appScene="appScene" :treeSet="storeTreeSet" :selectType="'all'" :defaultList="defaultStoreList" @handleSelectedList="handleSelectedList"> </vue-select-store> <vue-select-store ref="storeSelector" :currentBrand="activeGroup" :appScene="appScene" :treeSet="storeTreeSet" :selectType="'all'" :defaultList="defaultStoreList" @handleSelectedList="handleSelectedList"> </vue-select-store>
</div> </div>
</template> </template>
...@@ -168,7 +168,8 @@ export default { ...@@ -168,7 +168,8 @@ export default {
currentPage: 1, currentPage: 1,
pageSize: 20, pageSize: 20,
total: 0, total: 0,
showFlag: false showFlag: false,
itemRow: {}
}; };
}, },
methods: { methods: {
...@@ -212,11 +213,13 @@ export default { ...@@ -212,11 +213,13 @@ export default {
showDetail(index, row) { showDetail(index, row) {
const that = this; const that = this;
that.showFlag = true; that.showFlag = true;
that.itemRow = row;
}, },
hideDetail() { hideDetail() {
const that = this; const that = this;
that.showFlag = false; that.showFlag = false;
that.itemRow = {};
}, },
/** /**
......
<!-- <!--
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-09-18 15:24:50
* @LastEditors: 无尘
* @LastEditTime: 2019-09-24 17:27:08
-->
<!--
<online-chat :brandId="brandId"></online-chat> <online-chat :brandId="brandId"></online-chat>
import onlineChat from '@/components/app/online-chat.vue'; import onlineChat from '@/components/app/online-chat.vue';
components: { components: {
...@@ -49,6 +58,7 @@ components: { ...@@ -49,6 +58,7 @@ components: {
<div class="el-alert__content"><span class="el-alert__title color-606266 font-14">配置说明:导购可主动发起聊天,发送形式为模板消息,请配置模板消息内容。频繁使用模板消息,可能导致微信封闭模板消息及会员取关率增加,请谨慎使用。</span></div> <div class="el-alert__content"><span class="el-alert__title color-606266 font-14">配置说明:导购可主动发起聊天,发送形式为模板消息,请配置模板消息内容。频繁使用模板消息,可能导致微信封闭模板消息及会员取关率增加,请谨慎使用。</span></div>
</div> </div>
<div class="m-t-23"><span class="font-14 color-303133">模板消息</span><el-switch class="m-l-20" v-model="chatData.isTemplateMessage" active-text="" inactive-text="" @change="postSave(brandId)"> </el-switch><span class="font-14 color-909399 p-l-24">仅支持专属导购对会员发送模板消息,每个会员每个自然月模板消息发送次数不超过三次。设置后次日生效。</span></div> <div class="m-t-23"><span class="font-14 color-303133">模板消息</span><el-switch class="m-l-20" v-model="chatData.isTemplateMessage" active-text="" inactive-text="" @change="postSave(brandId)"> </el-switch><span class="font-14 color-909399 p-l-24">仅支持专属导购对会员发送模板消息,每个会员每个自然月模板消息发送次数不超过三次。设置后次日生效。</span></div>
<div class="m-t-23"><span class="font-14 color-303133">模板名字:</span>{{ templateName }}</div>
</div> </div>
<!--图文--> <!--图文-->
<div v-if="activeTab == 3" class="online-chat-article"> <div v-if="activeTab == 3" class="online-chat-article">
...@@ -109,7 +119,7 @@ components: { ...@@ -109,7 +119,7 @@ components: {
</div> </div>
<div class="article-title flex flex-column"> <div class="article-title flex flex-column">
<p class="font-14 color-606266">{{ scope.row.goodName }}</p> <p class="font-14 color-606266">{{ scope.row.goodName }}</p>
<p class="font-12 color-909399">{{ scope.row.goodPrice }}</p> <p class="font-12 color-909399">{{ scope.row.goodCode }}</p>
</div> </div>
</div> </div>
</template> </template>
...@@ -151,16 +161,16 @@ components: { ...@@ -151,16 +161,16 @@ components: {
</div> </div>
<div class="article-title flex flex-column"> <div class="article-title flex flex-column">
<p class="font-14 color-606266">{{ scope.row.goodName }}</p> <p class="font-14 color-606266">{{ scope.row.goodName }}</p>
<p class="font-12 color-909399">{{ scope.row.goodName }}</p> <p class="font-12 color-909399">{{ scope.row.goodCode }}</p>
</div> </div>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="" label="积分费用"> <el-table-column prop="" label="积分费用">
<template slot-scope="scope">{{ scope.row.goodPrice }}</template> <template slot-scope="scope">{{ scope.row.integral }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="" label="现金费用"> <el-table-column prop="" label="现金费用">
<template slot-scope="scope">{{ scope.row.integal }}</template> <template slot-scope="scope">{{ scope.row.goodPrice }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="" label="创建时间"> <el-table-column prop="" label="创建时间">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -240,6 +250,8 @@ export default { ...@@ -240,6 +250,8 @@ export default {
rules: { rules: {
messageRemindTime: [{ required: true, message: '请选择时间', trigger: 'blur' }] messageRemindTime: [{ required: true, message: '请选择时间', trigger: 'blur' }]
}, },
// 模板
templateName: '',
// 图文 // 图文
articleList: [], articleList: [],
pageSize: 4, pageSize: 4,
...@@ -299,7 +311,15 @@ export default { ...@@ -299,7 +311,15 @@ export default {
isTemplateMessage: that.chatData.isTemplateMessage ? 1 : 0, // 模板消息 isTemplateMessage: that.chatData.isTemplateMessage ? 1 : 0, // 模板消息
isImgMessage: that.chatData.isImgMessage ? 1 : 0, // 图文 isImgMessage: that.chatData.isImgMessage ? 1 : 0, // 图文
isGoodMessage: that.chatData.isGoodMessage ? 1 : 0, isGoodMessage: that.chatData.isGoodMessage ? 1 : 0,
isIntegralGoodMessage: that.chatData.isIntegralGoodMessage ? 1 : 0 isIntegralGoodMessage: that.chatData.isIntegralGoodMessage ? 1 : 0,
mainStoreFlag: that.chatData.mainStoreFlag,
minorStoreFlag: that.chatData.minorStoreFlag,
openCardStoreFlag: that.chatData.openCardStoreFlag,
clerkSeeOtherFlag: that.chatData.clerkSeeOtherFlag,
allowGuideContact: that.chatData.allowGuideContact,
allowGuideMobile: that.chatData.allowGuideMobile,
allowGuideMessage: that.chatData.allowGuideMessage,
allowGuideOnlineChat: that.chatData.allowGuideOnlineChat
}; };
postRequest('/haoban-app-member-web/customer/save-member-show-setting', para) postRequest('/haoban-app-member-web/customer/save-member-show-setting', para)
.then(res => { .then(res => {
...@@ -353,6 +373,30 @@ export default { ...@@ -353,6 +373,30 @@ export default {
} }
}, },
/** /**
* 获取模板名字
*/
getTemplate(brandId) {
const that = this;
let para = {
brandId: brandId
};
postRequest('/haoban-app-member-web/customer/find_message_template', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
that.templateName = resData;
return;
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
},
/**
* 获取商品列表 * 获取商品列表
*/ */
getGoodsList(brandId) { getGoodsList(brandId) {
...@@ -460,6 +504,9 @@ export default { ...@@ -460,6 +504,9 @@ export default {
resData.result.isGoodMessage = resData.result.isGoodMessage == 1 ? true : false; resData.result.isGoodMessage = resData.result.isGoodMessage == 1 ? true : false;
resData.result.isIntegralGoodMessage = resData.result.isIntegralGoodMessage == 1 ? true : false; resData.result.isIntegralGoodMessage = resData.result.isIntegralGoodMessage == 1 ? true : false;
that.chatData = resData.result; that.chatData = resData.result;
if (that.activeTab == 2) {
that.getTemplate(brandId);
}
if (that.activeTab == 3 && resData.result.isImgMessage) { if (that.activeTab == 3 && resData.result.isImgMessage) {
that.getArticleList(brandId); that.getArticleList(brandId);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment