现在,准备好体验更聪明的销售方式了吗?
立即咨询立即咨询语音识别技术
武汉赛思云科技有限公司 地址:武汉市东湖新技术开发区武大航域二区A3栋 电话:4001800719 商务邮箱:business@saisiyun.com
友情链接:销售赋能平台 销售过程管理 销售培训管理
关注我们
嘟嘟拓客微信公众号
武汉赛思云科技有限公司©COPYRIGHT2019-2020鄂ICP备16013894号-5
(function () { //使用匿名函数 setTimeout(function () { var head = document.getElementsByTagName('head')[0]; var link = document.createElement('link'); link.type = 'text/css'; link.rel = 'stylesheet'; link.href = 'font/font.css'; head.appendChild(link); }, 3000); })(); // var host = 'http://159.75.218.101:37007'; var host = 'https://api-new.dudutalk.com/backend'; var category = getUrlParam('category') || '' var tagId = getUrlParam('tag') || '' var tags = [] base() function base() { $.ajax({ url: host + '/v1/front/base', type: 'post', async: false, dataType: 'json', json: 'callback', contentType: "application/json", data: JSON.stringify({}), success: function (res) { tags = res.data.tags getList() if (tagId != '') { var tagName = tags.filter(item => item.id === tagId)[0].name $('title').text(tagName + '-嘟嘟拓客智能对话分析和销售赋能平台') $("meta[name='keywords']").attr('content', tagName + '、嘟嘟拓客' + tagName); $("meta[name='description']").attr('content', '嘟嘟拓客智能对话分析和销售赋能平台通过' + tagName + '来帮助销售团队快速了解与客户的每一次沟通并进行分析,量化销售的表现和能力,批量复制优秀销售的成单模式和策略。'); } let tabs = res.data.category var tag = `` var tab = `` tags.forEach((item, index) => { if (index < 9) { tag += `${item.name}` } }) tabs.forEach((item, index) => { tab += `
${item.name}
` }) $('.box2').append(`
${tag}
`) hot() if (tagId != '') { $('.banner .l .t1').html(`

${tagName}

`) $('.tabs').html(`

文章列表

`) } else { $('.tabs').html(tab) } if (category === '' && tagId === '') { $('.tabs div').eq(0).addClass('active') category = tabs[0].id } } }) } function changeTab(val, index) { if (category != val) { category = val $('.tabs div').eq(index).addClass('active').siblings('div').removeClass('active') getList() } } function hot() { $.ajax({ url: host + '/v1/front/hot', type: 'post', async: false, dataType: 'json', json: 'callback', contentType: "application/json", data: JSON.stringify({}), success: function (res) { var box = `` res.data.forEach(item => { box += `
${item.title}
${parseTime(item.publishTime)}
` }) $('.boxs3').append(`
${box}
`) } }) } function getList() { $.ajax({ url: host + '/v1/front/list', type: 'post', async: false, dataType: 'json', json: 'callback', contentType: "application/json", data: JSON.stringify({ page: 1, size: 5, category: category, tagId: tagId }), success: function (res) { let list = ``; var tagName = '' if (tagId != '') { tagName = tags.filter(item => item.id === tagId)[0].name } res.data.forEach(item => { if (tagId != '') { tagName = tags.filter(item => item.id === tagId)[0].name list += ` ${tagName}
${item.title}
${item.intro}
${item.createName} | ${parseTime(item.publishTime)}
` } else { list += ` ${item.title}
${item.title}
${item.intro}
${item.createName} | ${parseTime(item.publishTime)}
` } }) $('.list').html(list) $('#pagination').pagination({ // 当前页 currentPage: 1, // 总页数 totalPage: Math.ceil(res.total / 5), // 当前最多显示多少页 count: 7, // 是否显示首位页按钮 isShow: true, homePageText: "首页", endPageText: "尾页", prevPageText: "上一页", nextPageText: "下一页", callback: current => { getList2(current) } }) }, error: function (err) {} }); } function getList2(page) { $.ajax({ url: host + '/v1/front/list', type: 'post', async: false, dataType: 'json', json: 'callback', contentType: "application/json", data: JSON.stringify({ category: category, tagId: tagId, page: page, size: 5 }), success: function (res) { let list = ``; res.data.forEach(item => { list += `
${item.title}
${item.intro}
${item.createName} | ${parseTime(item.publishTime)}
` }) $('.list').html(list) }, error: function (err) {} }); } function parseTime(time, cFormat) { if (arguments.length === 0) { return null } const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}' let date if (typeof time === 'object') { date = time } else { if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) { time = parseInt(time) } if ((typeof time === 'number') && (time.toString().length === 10)) { time = time * 1000 } date = new Date(time) } const formatObj = { y: date.getFullYear(), m: date.getMonth() + 1, d: date.getDate(), h: date.getHours(), i: date.getMinutes(), s: date.getSeconds(), a: date.getDay() } const time_str = format.replace(/{([ymdhisa])+}/g, (result, key) => { const value = formatObj[key] // Note: getDay() returns 0 on Sunday if (key === 'a') { return ['日', '一', '二', '三', '四', '五', '六'][value] } return value.toString().padStart(2, '0') }) return time_str }