Commit e498260f by crushh

update: dist

parent 984fbc81
......@@ -11,7 +11,7 @@ module.exports = {
assetsPublicPath: '/marketing/',
proxyTable: {
'/dmApi/': {
target: 'http://gicdev.demogic.com',
target: 'http://www.gicdev.com',
changeOrigin: true,
pathRewrite: {
'^/dmApi': ''
......
......@@ -32,7 +32,7 @@
(function() {
var src = '/component/static/import-component.js?timestrap=' + new Date().getTime();
var host = window.location.host;
host = host.indexOf('localhost') > -1 || host.indexOf('192.168') > -1 ? 'gicdev.demogic.com' : host;
host = host.indexOf('localhost') > -1 || host.indexOf('192.168') > -1 ? 'www.gicdev.com' : host;
document.write('<script src="//' + host + src + '"><\/script>');
})();
</script>
......
......@@ -60,7 +60,7 @@ export default {
var host = window.location.origin;
// console.log("当前host:",host)
if (host.indexOf('localhost') != '-1') {
that.baseUrl = 'http://gicdev.demogic.com';
that.baseUrl = 'http://www.gicdev.com';
} else {
that.baseUrl = host;
}
......
......@@ -132,7 +132,7 @@ export default {
return row.readyStatus == 1 && this.realTimeType.includes(row.isRealTime);
},
addGroup() {
let str = window.location.host.includes('localhost') ? 'http://gicdev.demogic.com' : '';
let str = window.location.host.includes('localhost') ? 'http://www.gicdev.com' : '';
window.open(`${str}/member-tag/#/memberGroupEdit?refresh`, '_blank');
},
selectRow(row) {
......
......@@ -130,7 +130,7 @@ export default {
created() {
const host = window.location.origin;
this.baseUrl = host.indexOf('localhost') > -1 ? 'http://gicdev.demogic.com' : host;
this.baseUrl = host.indexOf('localhost') > -1 ? 'http://www.gicdev.com' : host;
},
mounted() {
......
......@@ -69,7 +69,7 @@ export default {
created() {
const host = window.location.origin;
this.baseUrl = host.indexOf('localhost') > -1 ? 'http://gicdev.demogic.com' : host;
this.baseUrl = host.indexOf('localhost') > -1 ? 'http://www.gicdev.com' : host;
},
methods: {
......
......@@ -7,7 +7,7 @@
<linktools :showType="showType" :linkToolsVisible="linkToolsVisible" @linkSelect="linkSelect"/>
// 直播间
// http://gicdev.demogic.com/api-plug/list-wx-lives?requestProject=gic-web&type=0
// http://www.gicdev.com/api-plug/list-wx-lives?requestProject=gic-web&type=0
this.axios.get(`${this.baseUrl}/api-plug/list-wx-lives?requestProject=gic-web&type=0`).the()
import Linktools from 'components/linktools/linktools.vue'
......@@ -731,7 +731,7 @@ export default {
this.giftFlag = false;
var that = this
var host = window.location.origin;
this.baseUrl = host.indexOf('localhost') > -1 ? 'http://gicdev.demogic.com' : host;
this.baseUrl = host.indexOf('localhost') > -1 ? 'http://www.gicdev.com' : host;
},
methods: {
// H5对接文档
......
......@@ -688,7 +688,7 @@ export default {
this.giftFlag = false;
var that = this
var host = window.location.origin;
this.baseUrl = host.indexOf('localhost') != '-1' ? 'http://gicdev.demogic.com' : host;
this.baseUrl = host.indexOf('localhost') != '-1' ? 'http://www.gicdev.com' : host;
},
methods: {
getMore() {
......
......@@ -601,7 +601,7 @@ export default {
this.giftFlag = false;
var that = this
var host = window.location.origin;
this.baseUrl = host.indexOf('localhost') > -1 ? 'http://gicdev.demogic.com' : host;
this.baseUrl = host.indexOf('localhost') > -1 ? 'http://www.gicdev.com' : host;
},
methods: {
getMore() {
......
......@@ -355,7 +355,7 @@ export default {
var host = window.location.origin;
console.log('当前host:', host);
if (host.indexOf('localhost') != '-1') {
that.baseUrl = 'http://gicdev.demogic.com';
that.baseUrl = 'http://www.gicdev.com';
} else {
that.baseUrl = host;
}
......
......@@ -386,7 +386,7 @@ export default {
let host = window.location.origin;
console.log('当前host:', host);
if (host.indexOf('localhost') != '-1') {
that.baseUrl = 'http://gicdev.demogic.com';
that.baseUrl = 'http://www.gicdev.com';
} else {
that.baseUrl = host;
}
......
......@@ -54,7 +54,7 @@
<script>
/* eslint-disable */
const host = window.location.origin;
export const baseUrl = host.indexOf('localhost') !== -1 ? 'http://gicdev.demogic.com/' : host;
export const baseUrl = host.indexOf('localhost') !== -1 ? 'http://www.gicdev.com/' : host;
export default {
name: 'vue-gic-member-info',
props: {
......
export default {
// eslint-disable-next-line
api: process.env['NODE_ENV'] === 'development' ? 'http://gicdev.demogic.com/' : window.location.protocol + '//' + window.location.host + '/' || ''
api: process.env['NODE_ENV'] === 'development' ? 'http://www.gicdev.com/' : window.location.protocol + '//' + window.location.host + '/' || ''
// /dmApi/
// http://gicdev.demogic.com/
// http://www.gicdev.com/
// http://192.168.1.154:86/
};
......
......@@ -27,5 +27,5 @@ export const removePopupPlan = params => requests(PREFIX + 'remove-popup-plan',
export const stopPopup = params => requests(PREFIX + 'stop-popup', params);
// 投放页面-获取自定义页面
// http://gicdev.demogic.com/api-admin/list-page
// http://www.gicdev.com/api-admin/list-page
export const customPageList = params => requests(`${config.api}api-admin/list-page`, params);
......@@ -73,14 +73,14 @@
<div slot="content">
查看记录
</div>
<el-button size="small" type="text" @click="handleRecord(row)" v-if="row.aiTelRecordText"><i class="iconfont fz14 icon-chakanxiangqing-copy"></i> </el-button>
<el-button size="small" type="text" @click="handleRecord(row)" :disabled="!row.aiTelRecordText"><i class="iconfont fz14 icon-chakanxiangqing-copy"></i> </el-button>
</el-tooltip>
<el-tooltip placement="top">
<el-tooltip placement="top" :disabled="!row.aiTelRecordText">
<div slot="content">
{{ row.aiTelRecordText && !row.aiTelRecordUrl ? '录音已过期' : '播放录音' }}
</div>
<el-button size="small" type="text" @click="handleListen(row)" v-if="row.aiTelRecordText" :disabled="row.aiTelRecordText && !row.aiTelRecordUrl">
<el-button size="small" type="text" @click="handleListen(row)" :disabled="!row.aiTelRecordText || (row.aiTelRecordText && !row.aiTelRecordUrl)">
<i :class="['iconfont fz14', row.isPlay ? 'icon-zanting' : 'icon-kaiqi']"></i>
</el-button>
</el-tooltip>
......@@ -130,7 +130,6 @@ export default {
this.analyseFlag = this.$route.query.analyseFlag == 1;
this.scene = this.$route.query.scene;
this.getData();
console.log('mounted3');
},
mounted() {
music.addEventListener('ended', () => {
......@@ -139,6 +138,16 @@ export default {
item.isPlay = false;
});
this.tableData = this.tableData.splice(0);
console.log(this.tableData);
});
document.addEventListener('visibilitychange', () => {
this.tableData
.filter(item => item.isPlay == true)
.forEach(item => {
item.isPlay = false;
});
this.tableData = this.tableData.splice(0);
music.pause();
});
},
methods: {
......@@ -207,39 +216,18 @@ export default {
item.isPlay = false;
item.id = index;
// if (index % 2) {
// item.aiTelRecordUrl = 'https://byrobot-prod.oss-cn-hangzhou.aliyuncs.com/RobotPhoneCommunicate/20220725/20220725TFuFsG8136020144q.mp3';
// } else {
// item.aiTelRecordUrl = 'https://byrobot-prod.oss-cn-hangzhou.aliyuncs.com/RobotPhoneCommunicate/20220725/20220725TFuFsG8136020144.mp3';
// } else {
// item.aiTelRecordUrl = 'https://byrobot-prod.oss-cn-hangzhou.aliyuncs.com/RobotPhoneCommunicate/20220725/20220725TFuFsG8136020144.mp3';
// }
// item.aiTelRecordUrl = null;
// item.aiTelRecordText = 'AI:你出行了吗<br><br用户:<br><br>AI:好的,这边不打扰了<br><br用户:<br><br>AI:抱歉,暂时没听清您的问题<br><br您刚刚说什么来着?<br><brAI:你出行了吗<br><br用户:<br><br>AI:好的,这边不打扰了<br>用户:<br><br>';
});
// this.tableData = [
// {
// smsSendTime: 1647852104000, //短信发送时间
// aiStatus: 2, //AI状态1已提交2已删除3已接通4线路问题5被叫问题
// aiThirdStatus: 5, //第三方:已完成通话状态 0:已接听,1:拒接,2:无法接通,3:外呼失败,4:空号,5:关机,6:占线,7:停机,8:未接,9:主叫欠费,10:呼损,11:黑名单,12:天盾拦截,22:线路盲区,23呼出拦截,25:无可用线路(可选线路为空、线路超频等)
// aiTime: 1647852101000, //外呼时间
// aiDuration: 2, //'时长分钟(计费)
// aiDurationSec: 66, //时长秒
// aiLabel: 'A级(有明确意向)', //ai回调会员标签
// orderPayAmount: 0, //订单实付总金额
// memberImage: '', //会员头像
// memberName: '', //会员姓名
// memberNick: '', //会员Nick
// memberMobile: '18368612362', //会员手机号
// memberCard: '', //会员卡号
// memberGradeName: '', //等级名称
// mainStoreName: '', //主门店名称
// mainStoreCode: '',
// aiTelRecordText: 'AI:你出行了吗<br><br用户:<br><br>AI:好的,这边不打扰了<br><br用户:<br><br>AI:抱歉,暂时没听清您的问题<br><br您刚刚说什么来着?<br><brAI:你出行了吗<br><br用户:<br><br>AI:好的,这边不打扰了<br>用户:<br><br>',
// aiTelRecordUrl: 'https://byrobot-prod.oss-cn-hangzhou.aliyuncs.com/RobotPhoneCommunicate/20220725/20220725TFuFsG8136020144.mp3', //用户通话录音链接
// isNewMember: '0 //是否是本次开卡的新会员 0-否 1-是'
// }
// ];
})
.finally(() => (this.loading = false));
.finally(() => {
this.loading = false;
music.pause();
});
},
handleCurrentChange(pageNum) {
this.search.pageNum = pageNum;
......@@ -271,6 +259,9 @@ export default {
};
return status[state] || '--';
}
},
destroyed() {
music.pause();
}
};
</script>
......
......@@ -545,7 +545,7 @@ export default {
planName,
aiEventId,
eventId,
phoneList,
phoneList: [],
fileName,
fileSize
};
......@@ -569,7 +569,8 @@ export default {
};
this.form = Object.assign(obj, this.form);
}
if (scene == 5) {
if (scene == 5 && this.isEdit) {
this.form.phoneList = phoneList;
this.fileEcho = [
{
name: fileName,
......@@ -856,6 +857,9 @@ export default {
},
handleFileChange({ files }) {
console.log(files);
if (!files.length) {
return;
}
const file = files[0];
const formData = new FormData();
formData.append('file', file);
......
......@@ -55,7 +55,7 @@
<dm-sub-title type="line">外呼规则配置</dm-sub-title>
<div class="section">
<!--根据客户意向打标标签-->
<div class="card">
<div class="card" v-if="form.scene != 5">
<div class="title">根据客户意向打标标签:{{ form.labelFlag ? '开启' : '未开启' }}</div>
<div class="content" v-show="form.labelFlag">
<table>
......
......@@ -129,8 +129,11 @@ export default {
},
{
text: '暂停',
props: {
limitCode: this.$buttonCode.marketingAiStart
},
visible: row => {
return row.activityPlanStatus == 2;
return row.activityPlanStatus == 2 && this.$getButtonLimit(this.$buttonCode.marketingAiStart);
},
handler: row => this.handleSuspend(row)
},
......@@ -510,7 +513,7 @@ export default {
});
},
handleSuspend({ planId }) {
this.$confirm('任务正在进行中,暂停任务后,计划将暂停', '提示', {
this.$confirm('任务正在进行中,暂停任务后,计划将暂停', '确定暂停任务?', {
confirmButtonText: '暂停',
cancelButtonText: '取消',
type: 'warning'
......@@ -561,7 +564,7 @@ export default {
});
});
} else if (this.money <= 0) {
this.$confirm(`本次外呼预计营销人数${row.peopleCount}人,费用预计需要消费${row.fee.toLocaleString()}元,当前余额不足,请充值。`, '提示', {
this.$confirm(`本次外呼预计营销人数${row.peopleCount}人,费用预计需要消费${row.fee.toLocaleString()}元,当前账户余额不足,请充值。`, '当前账户余额不足', {
confirmButtonText: '充值',
cancelButtonText: '取消',
type: 'warning'
......
......@@ -73,7 +73,7 @@
</el-form>
<vue-gic-card appendToBody :showCardDialog.sync="showCardDialog" @selectCard="selectCard" :cardLimit="-1" :cardType="null"></vue-gic-card>
<vue-gic-export-excel :dialogVisible.sync="dialogVisible" :dataArr="[1, 2, 3]" :type="2" :excelUrl="excelUrl" :params="params" :projectName="projectName"></vue-gic-export-excel>
<!-- <form action="http://gicdev.demogic.com/api-marketing/cdkey-fail-export" target="_blank" enctype="multipart/form-data">
<!-- <form action="http://www.gicdev.com/api-marketing/cdkey-fail-export" target="_blank" enctype="multipart/form-data">
<input type="text" name="requestProject" value="gic-web" />
<input type="file"/>
<button type="submit">submit</button>
......
......@@ -12,7 +12,7 @@ const MINI_TIME = 300;
let TIME_OUT_MAX = 20000;
// 环境value
// 请求接口host
let _apiHost = host.indexOf('localhost') !== -1 ? 'http://gicdev.demogic.com' : host;
let _apiHost = host.indexOf('localhost') !== -1 ? 'http://www.gicdev.com' : host;
// 请求组(判断当前请求数)
let _requests = [];
......
......@@ -461,7 +461,6 @@ export default {
delete gameExt.mpUrlView;
}
data.gameExt = gameExt;
resolve(true);
this.$emit('nextStep', data, noNext);
} else {
......
......@@ -329,7 +329,7 @@ export default {
getHost() {
const host = window.location.origin;
if (host.indexOf('localhost') != '-1') {
return 'http://gicdev.demogic.com';
return 'http://www.gicdev.com';
} else {
return host;
}
......
......@@ -11,7 +11,7 @@ const MINI_TIME = 300;
let TIME_OUT_MAX = 20000;
// 环境value
// 请求接口host
let _apiHost = host.indexOf('localhost') !== -1 ? 'http://gicdev.demogic.com' : host;
let _apiHost = host.indexOf('localhost') !== -1 ? 'http://www.gicdev.com' : host;
// 请求组(判断当前请求数)
let _requests = [];
......
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