Commit 0bf4e38c by crushh

update: dist

parent e34fd9a1
...@@ -2,20 +2,21 @@ ...@@ -2,20 +2,21 @@
<div> <div>
<div class="warp"> <div class="warp">
<h2>加好友配置</h2> <h2>加好友配置</h2>
<span class="echoData" v-show="friendSettingType && friendSettingType != 4">{{ friendSettingTypeOption[friendSettingType] }}</span> <span class="echoData" v-show="friendSettingType && friendSettingType != 4">{{ echoFriendData }}</span>
<el-button type="text" style="margin-left: 20px;" @click="openDialog">去配置</el-button> <el-button type="text" style="margin-left: 20px;" @click="openDialog">去配置</el-button>
</div> </div>
<div class="daily-set-wrap"> <div class="daily-set-wrap">
<div class="daily-set-content border-box"> <div class="daily-set-content border-box">
<div class="admin-tip-body"> <div class="admin-tip-body">
<div role="alert" class="el-alert el-alert--info"> <div role="alert" class="el-alert el-alert--info" style="width: 860px;">
<i class="el-alert__icon el-icon-info"></i> <i class="el-alert__icon el-icon-info"></i>
<div class="el-alert__content"> <div class="el-alert__content">
<p class="el-alert__title"> <p class="el-alert__title">
1. 因企业微信接口限制,若在企微管理端为相关人员配置欢迎语,好办设置欢迎语不会生效;<br /> 1. 因企业微信接口限制,若在企微管理后台为门店人员配置了欢迎语,此处好办配置的欢迎语不会生效;<br />
2. 若使用好办欢迎语,请关闭其他企业自建应用/第三方应用的欢迎语配置; <br /> 2. 若使用好办欢迎语,请关闭其他企业自建应用/第三方应用的欢迎语配置; <br />
3. 在此处所自定义配置的欢迎语基础上,系统将默认包含“带参会员小程序卡片”,以便门店员工添加客户好友后,引导客户进入带参会员小程序页面授权微信信息,进而使得系统将企业客户与GIC后台某客户对应起来;<br /> 3. 只有关联了好办导购账号的企微员工在添加好友后才能触发欢迎语,否则无法发送好办欢迎语;<br />
4. 如果导购没有绑定导购code,没有主门店信息,则无法发送好办欢迎语; 4. 支持按照企微不同的组织架构来分别配置不同的欢迎语,也即“多部门多欢迎语”;<br />
5.好办欢迎语支持“文案+带参小程序卡片/带参公众号二维码”,请根据需要进行配置(“带参公众号二维码”仅有30天有效期,超期失效);
</p> </p>
</div> </div>
</div> </div>
...@@ -55,7 +56,7 @@ ...@@ -55,7 +56,7 @@
<el-table-column label="操作" width="180"> <el-table-column label="操作" width="180">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<el-button type="text" @click="changeRoute(row)">编辑</el-button> <el-button type="text" @click="changeRoute(row)">编辑</el-button>
<el-button type="text" @click="remove(row)">删除</el-button> <el-button type="text" @click="remove(row)" v-if="row.defaultWelcomeFlag != 1">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -66,8 +67,8 @@ ...@@ -66,8 +67,8 @@
<el-form label-width="100px" style="margin-top:20px"> <el-form label-width="100px" style="margin-top:20px">
<el-form-item label="加好友配置"> <el-form-item label="加好友配置">
<div v-for="(val, key) in friendSettingTypeOption" :key="key"> <div v-for="(val, key) in friendSettingTypeOption" :key="key">
<el-radio :label="Number(key)" v-model="type">{{ val }}</el-radio> <el-radio :label="val.label" v-model="type">{{ val.content }}</el-radio>
<el-tag size="small" v-show="key == 1">推荐使用</el-tag> <el-tag size="small" v-show="val.label == 2">推荐使用</el-tag>
</div> </div>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -85,11 +86,11 @@ export default { ...@@ -85,11 +86,11 @@ export default {
props: {}, props: {},
data() { data() {
return { return {
friendSettingTypeOption: { friendSettingTypeOption: [
1: '发送【好办欢迎语】+【带导购参数的会员小程序卡片】', { label: 2, content: '发送【好办欢迎语】+【带导购参数的公众号二维码】' },
2: '发送【好办欢迎语】+【带导购参数的公众号二维码】', { label: 1, content: '发送【好办欢迎语】+【带导购参数的会员小程序卡片】' },
3: '发送【好办欢迎语】' { label: 3, content: '发送【好办欢迎语】' }
}, ],
title: '', title: '',
wxEnterpriseId: localStorage.getItem('userInfos') ? JSON.parse(localStorage.getItem('userInfos')).wxEnterpriseId : '', wxEnterpriseId: localStorage.getItem('userInfos') ? JSON.parse(localStorage.getItem('userInfos')).wxEnterpriseId : '',
friendSettingType: '', friendSettingType: '',
...@@ -116,6 +117,15 @@ export default { ...@@ -116,6 +117,15 @@ export default {
destroyed() { destroyed() {
document.documentElement.style.backgroundColor = '#fff'; document.documentElement.style.backgroundColor = '#fff';
}, },
computed: {
echoFriendData() {
let content = '';
if (this.friendSettingType) {
content = this.friendSettingTypeOption.filter(item => item.label == this.friendSettingType)[0].content;
}
return content;
}
},
methods: { methods: {
/** /**
* 输入 * 输入
......
...@@ -193,7 +193,7 @@ export default { ...@@ -193,7 +193,7 @@ export default {
label: 'departmentName' label: 'departmentName'
}, },
form: { form: {
title: '系统默认', title: '',
welcomeContent: '你好,<微信昵称>', welcomeContent: '你好,<微信昵称>',
welcomeMediaList: [], welcomeMediaList: [],
suitDepartmentAddList: [], suitDepartmentAddList: [],
......
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