Commit cf4f8faf by 前端

Merge branch 'v3.12.0' into 'master'

V3.12.0

See merge request !11
2 parents f2d2a38a fb4cced3
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
"no-console": "off", "no-console": "off",
"no-unused-vars": "off", "no-unused-vars": "off",
"prettier.endOfLine": "crlf", "prettier.endOfLine": "crlf",
"endOfLine": "auto" "endOfLine": "auto",
"vue/no-v-for-template-key": "off"
}, },
"parserOptions": { "parserOptions": {
"parser": "babel-eslint" "parser": "babel-eslint"
......
...@@ -1878,6 +1878,11 @@ ...@@ -1878,6 +1878,11 @@
"integrity": "sha512-aT6camzM4xEA54YVJYSqxz1kv4IHnQZRtThJJHhUMRExaU5spC7jX5ugSwTaTgJliIgs4VhZOk7htClvQ/LmRA==", "integrity": "sha512-aT6camzM4xEA54YVJYSqxz1kv4IHnQZRtThJJHhUMRExaU5spC7jX5ugSwTaTgJliIgs4VhZOk7htClvQ/LmRA==",
"dev": true "dev": true
}, },
"adler-32": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/adler-32/-/adler-32-1.3.1.tgz",
"integrity": "sha512-ynZ4w/nUUv5rrsR8UUGoe1VC9hZj6V5hU9Qw1HlMDJGEJw5S7TfTErWTjMys6M7vr0YWcPqs3qAr4ss0nDfP+A=="
},
"agent-base": { "agent-base": {
"version": "6.0.2", "version": "6.0.2",
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
...@@ -2978,6 +2983,15 @@ ...@@ -2978,6 +2983,15 @@
"integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=",
"dev": true "dev": true
}, },
"cfb": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/cfb/-/cfb-1.2.2.tgz",
"integrity": "sha512-KfdUZsSOw19/ObEWasvBP/Ac4reZvAGauZhs6S/gqNhXhI7cKwvlH7ulj+dOEYnca4bm4SGo8C1bTAQvnTjgQA==",
"requires": {
"adler-32": "~1.3.0",
"crc-32": "~1.2.0"
}
},
"chalk": { "chalk": {
"version": "2.4.2", "version": "2.4.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
...@@ -3284,6 +3298,11 @@ ...@@ -3284,6 +3298,11 @@
"integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=",
"dev": true "dev": true
}, },
"codepage": {
"version": "1.15.0",
"resolved": "https://registry.npmjs.org/codepage/-/codepage-1.15.0.tgz",
"integrity": "sha512-3g6NUTPd/YtuuGrhMnOMRjFc+LJw/bnMp3+0r/Wcz3IXUuCosKRJvMphm5+Q+bvTVGcJJuRvVLuYba+WojaFaA=="
},
"collection-visit": { "collection-visit": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz",
...@@ -3615,6 +3634,11 @@ ...@@ -3615,6 +3634,11 @@
"parse-json": "^4.0.0" "parse-json": "^4.0.0"
} }
}, },
"crc-32": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz",
"integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ=="
},
"create-ecdh": { "create-ecdh": {
"version": "4.0.3", "version": "4.0.3",
"resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.3.tgz", "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.3.tgz",
...@@ -5374,6 +5398,11 @@ ...@@ -5374,6 +5398,11 @@
"integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=", "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=",
"dev": true "dev": true
}, },
"frac": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/frac/-/frac-1.1.2.tgz",
"integrity": "sha512-w/XBfkibaTl3YDqASwfDUqkna4Z2p9cFSr1aHDt0WoMTECnRfBOv2WArlZILlqgWlmdIlALXGpM2AOhEk5W3IA=="
},
"fragment-cache": { "fragment-cache": {
"version": "0.2.1", "version": "0.2.1",
"resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz",
...@@ -11281,6 +11310,14 @@ ...@@ -11281,6 +11310,14 @@
"integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=",
"dev": true "dev": true
}, },
"ssf": {
"version": "0.11.2",
"resolved": "https://registry.npmjs.org/ssf/-/ssf-0.11.2.tgz",
"integrity": "sha512-+idbmIXoYET47hH+d7dfm2epdOMUDjqcB4648sTZ+t2JwoyBFL/insLfB/racrDmsKB3diwsDA696pZMieAC5g==",
"requires": {
"frac": "~1.1.2"
}
},
"sshpk": { "sshpk": {
"version": "1.16.1", "version": "1.16.1",
"resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz",
...@@ -12818,6 +12855,16 @@ ...@@ -12818,6 +12855,16 @@
"string-width": "^1.0.2 || 2" "string-width": "^1.0.2 || 2"
} }
}, },
"wmf": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/wmf/-/wmf-1.0.2.tgz",
"integrity": "sha512-/p9K7bEh0Dj6WbXg4JG0xvLQmIadrner1bi45VMJTfnbVHsc7yIajZyoSoK60/dtVBs12Fm6WkUI5/3WAVsNMw=="
},
"word": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/word/-/word-0.3.0.tgz",
"integrity": "sha512-OELeY0Q61OXpdUfTp+oweA/vtLVg5VDOXh+3he3PNzLGG/y0oylSOC1xRVj0+l4vQ3tj/bB1HVHv1ocXkQceFA=="
},
"word-wrap": { "word-wrap": {
"version": "1.2.3", "version": "1.2.3",
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",
...@@ -12935,6 +12982,20 @@ ...@@ -12935,6 +12982,20 @@
"async-limiter": "~1.0.0" "async-limiter": "~1.0.0"
} }
}, },
"xlsx": {
"version": "0.18.5",
"resolved": "https://registry.npmjs.org/xlsx/-/xlsx-0.18.5.tgz",
"integrity": "sha512-dmg3LCjBPHZnQp5/F/+nnTa+miPJxUXB6vtk42YjBBKayDNagxGEeIdWApkYPOf3Z3pm3k62Knjzp7lMeTEtFQ==",
"requires": {
"adler-32": "~1.3.0",
"cfb": "~1.2.1",
"codepage": "~1.15.0",
"crc-32": "~1.2.1",
"ssf": "~0.11.2",
"wmf": "~1.0.1",
"word": "~0.3.0"
}
},
"xml-name-validator": { "xml-name-validator": {
"version": "4.0.0", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz",
......
...@@ -17,7 +17,8 @@ ...@@ -17,7 +17,8 @@
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.5.2", "glsx-components": "^1.5.2",
"glsx-table": "^1.0.9", "glsx-table": "^1.0.9",
"work-calendar": "^1.0.0" "work-calendar": "^1.0.0",
"xlsx": "^0.18.5"
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0", "@vue/cli-plugin-babel": "^4.1.0",
......
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-07 10:11:22
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-06-07 15:49:57
* @FilePath: \scrm-micro-home\src\api\modules\aiCall.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { http } from '@/main'
const url = '/rop-scrm-entmicro/router'
//门店任务创建内容回显
const contentEcho = params => {
params.method = 'entmicro.api.outbound.call.merchant.task.create.content.echo'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
//AI外呼任务详情-客户列表多条件分页导出
const conditionExpost = params => {
params.method = 'entmicro.api.outbound.task.customer.condition.export'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
//AI外呼任务详情-客户列表多条件分页
const conditionPage = params => {
params.method = 'entmicro.api.outbound.task.customer.condition.page'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
//智能外呼任务分页
const taskPage = params => {
params.method = 'entmicro.api.outbound.task.page'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
//门店创建外呼任务
const createTask = params => {
params.method = 'entmicro.api.outbound.call.merchant.create.task'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
//更改门店外呼任务
const updateTask = params => {
params.method = 'entmicro.api.outbound.call.merchant.task.create.content.update'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
//门店外呼任务分页
const merchantTaskPage = params => {
params.method = 'entmicro.api.outbound.call.merchant.task.page'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
//门店删除外呼任务
const merchantTaskDelete = params => {
params.method = 'entmicro.api.outbound.call.merchant.task.delete'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
//创建外呼任务校验客户手机号接口
const phoneCheck = params => {
params.method = 'entmicro.api.outbound.call.phone.check'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
//创建外呼任务校验客户手机号接口
const robotList = params => {
params.method = 'entmicro.api.outbound.call.robot.list.query'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
export default {
contentEcho,
conditionExpost,
conditionPage,
taskPage,
createTask,
merchantTaskPage,
merchantTaskDelete,
phoneCheck,
robotList,
updateTask
}
img { img {
width: 100%; max-width: 100%;
height: 100%; max-height: 100%;
vertical-align: top; vertical-align: top;
} }
...@@ -110,7 +110,10 @@ img { ...@@ -110,7 +110,10 @@ img {
.scrm-box-f { .scrm-box-f {
background: #ffffff; background: #ffffff;
} }
.scrm-box-panel {
background: #ffffff;
padding: 20px;
}
.count-item-question { .count-item-question {
width: 14px; width: 14px;
height: 14px; height: 14px;
...@@ -138,7 +141,10 @@ img { ...@@ -138,7 +141,10 @@ img {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.flex-row-between {
display: flex;
justify-content: space-between;
}
.glsx-table .line-ellipsis { .glsx-table .line-ellipsis {
display: inline; display: inline;
} }
...@@ -268,8 +274,6 @@ img { ...@@ -268,8 +274,6 @@ img {
text-align: center; text-align: center;
} }
.weight-6 { .weight-6 {
font-weight: 600; font-weight: 600;
} }
...@@ -278,7 +282,6 @@ img { ...@@ -278,7 +282,6 @@ img {
font-weight: 500; font-weight: 500;
} }
.flex-default { .flex-default {
display: flex; display: flex;
} }
...@@ -319,10 +322,7 @@ img { ...@@ -319,10 +322,7 @@ img {
flex: 1; flex: 1;
} }
.pointer {
.pointer{
cursor: pointer; cursor: pointer;
} }
...@@ -337,14 +337,14 @@ img { ...@@ -337,14 +337,14 @@ img {
-webkit-line-clamp: 1; -webkit-line-clamp: 1;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
.toastui-calendar-grid-cell-date .toastui-calendar-weekday-grid-date.toastui-calendar-weekday-grid-date-decorator{ .toastui-calendar-grid-cell-date .toastui-calendar-weekday-grid-date.toastui-calendar-weekday-grid-date-decorator {
background: #5850ff!important; background: #5850ff !important;
} }
.toastui-calendar-weekday-event-block:hover { .toastui-calendar-weekday-event-block:hover {
border: 1px solid #fff; border: 1px solid #fff;
} }
.toastui-calendar-see-more { .toastui-calendar-see-more {
box-shadow: 0 6px 20px 0 #7a7a7a33 !important; box-shadow: 0 6px 20px 0 #7a7a7a33 !important;
border-radius: 4px; border-radius: 4px;
border: 0 !important; border: 0 !important;
}
\ No newline at end of file \ No newline at end of file
}

527 Bytes | W: | H:

731 Bytes | W: | H:

src/assets/img/question.png
src/assets/img/question.png
src/assets/img/question.png
src/assets/img/question.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: limin * @Author: limin
* @Date: 2021-06-07 14:12:32 * @Date: 2021-06-07 14:12:32
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-31 21:19:26 * @LastEditTime: 2023-06-13 13:57:26
*/ */
// 根据环境引入不同配置 process.env.VUE_APP_ENV // 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js') // let request = require('@/http/request.js')
......
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-09 15:18:29
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-06-09 15:37:32
* @FilePath: \scrm-micro-home\src\mixins\tabel.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*
*/
import * as XLSX from 'xlsx'
export default {
data() {
return {
tabelHeaderModel: ''
}
},
methods: {
// 从网络上读取某个excel文件,url必须同域,否则报错
async readWorkbookFromRemoteFile(url) {
console.log(url)
try {
this.tabelHeaderModel = await this.getTabelHeaderModel(url)
} catch (error) {
this.$message.error('读取失败')
}
},
getTabelHeaderModel(model_url) {
const _this = this
return new Promise((resolve, reject) => {
var xhr = new XMLHttpRequest()
xhr.open('get', model_url, true)
xhr.responseType = 'arraybuffer'
xhr.onload = function(e) {
if (xhr.status == 200) {
var datat = new Uint8Array(xhr.response)
var workbook = XLSX.read(datat, { type: 'array' })
const wsname = workbook.SheetNames[0]
const ws = workbook.Sheets[wsname]
/* 数组转换 */
const data = _this.getHeaderRow(ws)
resolve(data)
} else {
reject()
}
}
xhr.send()
})
},
getHeaderRow(sheet) {
const headers = []
/* sheet['!ref']表示所有单元格的范围,例如从A1到F8则记录为 A1:F8*/
const range = XLSX.utils.decode_range(sheet['!ref'])
let C,
R = range.s.r /* 从第一行开始 */
/* 按列进行数据遍历 */
for (C = range.s.c; C <= range.e.c; ++C) {
/* 查找第一行中的单元格 */
const cell = sheet[XLSX.utils.encode_cell({ c: C, r: R })]
let hdr = 'UNKNOWN ' + C // <-- 进行默认值设置
if (cell && cell.t) hdr = XLSX.utils.format_cell(cell)
if (!hdr.includes('UNKNOWN')) {
headers.push(hdr)
}
}
return headers
},
getArrayIsSubset(arr2, arr1) {
const filterArr = arr2.map(item => item.replace(/\s/g, ''))
return arr1.every(item => {
return filterArr.includes(item.replace(/\s/g, ''))
})
},
compareHeader(file) {
return new Promise(resolve => {
const reader = new FileReader()
reader.onload = event => {
/* 解析数据 */
const bstr = event.target.result
const wb = XLSX.read(bstr, { type: 'binary' })
/* 获取文件的第一个工作表(WorkSheet) */
const wsname = wb.SheetNames[0]
const ws = wb.Sheets[wsname]
if (!ws['!ref']) {
this.$message.error('格式错误')
this.loading = false
return
}
const data = this.getHeaderRow(ws)
if (this.getArrayIsSubset(data, this.tabelHeaderModel)) {
resolve()
} else {
this.$message.error('格式错误')
}
}
reader.readAsBinaryString(file)
})
}
}
}
...@@ -395,8 +395,8 @@ export default { ...@@ -395,8 +395,8 @@ export default {
//折线图数据 //折线图数据
async getChart() { async getChart() {
this.$apis.home.getChart({ day: 30, date: this.summaryTime }).then(res => { this.$apis.home.getChart({ day: 30, date: this.summaryTime }).then(res => {
if (res.custAddList && res.custAddList.length) { if (res && res.custAddList && res.custAddList.length) {
const { custAddList, custEntmicroAdds, custLoseList } = res const { custAddList = [], custEntmicroAdds, custLoseList } = res
let custAddListData = custAddList.map(item => { let custAddListData = custAddList.map(item => {
return item.customerCount return item.customerCount
}) })
......
<template>
<div class="ai-main">
<div class="ai-main-header">
<div class="ai-main-title">
AI续保提醒
<el-popover placement="top" title="说明" width="400" trigger="hover" content="系统将通过AI机器人,使用门店的福利官企微号自动添加客户,并自动发放客户福利权益。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
</div>
</div>
<div class="ai-main-guidance scrm-box-f">
<div class="ai-main-item" v-for="(item, index) in stepItem" :key="index">
<div class="ai-main-guidance-item">
<div class="ai-main-guidance-item-head">
<img :src="require(`@/assets/img/ai/${item.icon}.png`)" />
<div class="ai-main-guidance-item-title">导入待添加客户手机号</div>
</div>
<div class="ai-main-guidance-item-info">提供完善的客户信息,有助于提升好友通过率</div>
</div>
<div class="ai-arrow" v-if="index < 2">
<img src="@/assets/img/ai/arrow.png" />
</div>
</div>
</div>
<div class="form-panel">
<div class="form-header">
<div class="forom-title">任务列表</div>
<el-button type="primary" icon="el-icon-plus" size="small" @click="handleAdd()">创建任务</el-button>
</div>
<div class="help-tabel">
<GLTable v-show="taskNum != 0" @setTableFinishFun="setTableFinishFun" :noDataImg="url" ref="taskForm" :searchForm="searchForm" :getListApi="getListApi" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDel(scope.scope)" v-if="scope.scope.taskStatus == 1">删除</el-button>
<el-button type="text" @click="goDetail(scope.scope)" v-if="scope.scope.taskStatus != 1">详情</el-button>
<el-button type="text" @click="handleAdd(scope.scope)" v-if="scope.scope.taskStatus == 1">编辑</el-button>
</div>
<template slot="taskStatus" slot-scope="scope">
<div :class="['task_icon', `task_icon${scope.scope.taskStatus}`]">{{ findStatus(scope.scope.taskStatus) }}</div>
</template>
</GLTable>
<div class="tabel-null" v-show="taskNum == 0">
<div class="tabel-null-panel">
<div class="null-image"><img src="@/assets/img/empty.png" /></div>
<div class="null-desc">
暂无数据,
<label @click="handleAdd()">添加数据</label>
</div>
</div>
</div>
</div>
</div>
<GLDialog title="提示" @onOk="handleDelSure" @onCancel="dialogVisibleDel = false" type="error" content="是否删除?" :visible.sync="dialogVisibleDel" mode="small"></GLDialog>
<add-task v-if="dialogVisibleTask" :editTaskId="editTaskId" :isEdit="isEdit" :dialogVisibleTask="dialogVisibleTask" @dialogClose="dialogClose" @dialogSure="dialogSure"></add-task>
</div>
</template>
<script>
const TASK_STATUS = [
{
label: '待执行',
value: 1
},
{
label: '执行中',
value: 2
},
{
label: '执行中',
value: 3
},
{
label: '已完成',
value: 4
}
]
import AddTask from './components/ai/AddTask'
export default {
name: 'aiCard',
components: {
AddTask
},
data() {
return {
getListApi: this.$apis.aiCall.merchantTaskPage,
stepItem: [
{ title: '导入待添加客户手机号', content: '提供完善的客户信息,有助于提升好友通过率。', icon: 'edit' },
{ title: '平台专员全程操作添加', content: '需授权平台专员登录您企微账号,以便让客户添加至您的企微。', icon: 'add' },
{ title: '查看添加好友结果', content: '系统将对执行结果进行自动分类,并提供报表直观呈现。', icon: 'text' }
],
tableParams: {
tableOption: false,
checkSelectKey: 'id',
checkSelectVal: [],
hasNum: false,
listName: 'data',
tableColumns: [
{
label: '批次号',
prop: 'taskName',
line: 1
},
{
label: '服务状态',
prop: 'taskStatus',
width: 140,
addHtml: 'taskStatus'
},
{
label: '执行总数',
prop: 'phoneCount'
},
{
label: '已执行数',
prop: 'executedCount'
},
{
label: '创建时间',
prop: 'createdTime',
minWidth: 160
},
{
label: '执行时间',
prop: 'aiStartTime',
minWidth: 160
},
{
label: '操作',
prop: 'optionBtns',
width: '180px',
addHtml: 'optionBtns',
fixed: 'right'
}
]
},
searchForm: {
businessType: 1
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
isRedeem: true,
isEdit: false,
editTaskId: '',
loading: false,
taskStatus: false,
fileStatus: false,
staffStatus: false,
activeIndex: 1,
taskId: '',
dialogVisibleTask: false,
dialogVisibleDel: false,
autoSend: true,
taskName: '',
taskNum: 1,
url: '',
fileName: ''
}
},
methods: {
findStatus(status) {
return TASK_STATUS.find(item => item.value == status).label
},
//删除
handleDel(scope) {
this.taskId = scope.id
this.dialogVisibleDel = true
},
handleDelSure() {
const { taskId } = this
this.$apis.aiCall.merchantTaskDelete({ taskId, deleteType: 1 }).then(res => {
this.dialogVisibleDel = false
this.handleSeach()
})
},
handleSeach() {
this.$refs.taskForm.refreshTable()
},
beforeSearchFn() {
return new Promise(resolve => {
resolve()
})
},
setTableFinishFun(val = []) {
this.taskNum = val.length
this.$refs.taskForm.data.length ? (this.$refs.taskForm.tableHeightValues = '') : this.$refs.taskForm.setTableHeightFun()
},
goDetail(scope) {
this.$router.push('/home/ai/detail?id=' + scope.id)
},
handleAdd(scope) {
this.isEdit = !!scope
console.log(this.isEdit)
this.editTaskId = scope && scope.id
this.dialogVisibleTask = true
},
dialogClose() {
this.dialogVisibleTask = false
},
dialogSure() {
this.dialogVisibleTask = false
this.handleSeach()
}
}
}
</script>
<style lang="scss" scoped>
.form-panel {
background: #fff;
.help-tabel {
padding: 20px;
}
}
.ai-main-title {
font-size: 20px;
color: #333333;
font-weight: 600;
.count-item-question {
width: 17px;
height: 17px;
}
}
.form-header {
display: flex;
align-items: center;
height: 56px;
font-size: 16px;
color: #333333;
justify-content: space-between;
border-bottom: 1px solid #e5e5e5;
padding-left: 20px;
}
.ai-main-guidance {
display: flex;
padding: 20px;
box-sizing: border-box;
align-items: center;
margin: 16px 0px;
width: 100%;
.ai-main-item {
display: flex;
align-items: center;
flex: 1;
}
.ai-main-guidance-item {
flex: 1;
height: 112px;
background: linear-gradient(180deg, #f3f2f8 0%, #f9f9fc 100%);
padding: 16px 20px;
box-sizing: border-box;
&-head {
display: flex;
align-items: center;
margin-bottom: 8px;
img {
width: 22px;
height: 22px;
margin-right: 10px;
}
}
&-title {
font-size: 16px;
font-weight: 600;
color: #333333;
line-height: 22px;
}
&-info {
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 20px;
}
}
.ai-arrow {
margin: 0 16px;
width: 20px;
height: 15px;
img {
width: 100%;
}
}
}
.tabel-null {
min-height: calc(100vh - 390px);
display: flex;
justify-content: center;
align-items: center;
&-panel {
.null-image {
margin: 5px auto;
width: 64px;
}
.null-desc {
font-size: 14px;
font-weight: 400;
color: #666666;
line-height: 22px;
label {
color: #5850ff;
cursor: pointer;
}
}
}
}
.task_icon {
position: relative;
&::after {
content: '';
position: absolute;
top: 4px;
left: -10px;
width: 6px;
height: 6px;
border-radius: 4px;
}
&.task_icon1 {
&::after {
background: #fdb757;
}
}
&.task_icon2 {
&::after {
background: #5850ff;
}
}
&.task_icon3 {
&::after {
background: #5850ff;
}
}
&.task_icon4 {
&::after {
background: #2cca74;
}
}
}
</style>
...@@ -332,7 +332,7 @@ export default { ...@@ -332,7 +332,7 @@ export default {
this.staffInfo.splice(index, 1) this.staffInfo.splice(index, 1)
}, },
phoneCheck(fileName, url) { phoneCheck(fileName, url) {
this.$apis.aiCard.phoneCheck({ url }).then(res => { this.$apis.aiCard.phoneCheck({ url, businessType: 0 }).then(res => {
if (res) { if (res) {
this.ImportResult = res this.ImportResult = res
if (res.error > 0) { if (res.error > 0) {
...@@ -380,7 +380,7 @@ export default { ...@@ -380,7 +380,7 @@ export default {
if (item.attType == 1) { if (item.attType == 1) {
item.attContent = item.attContent.replace(/\[(@昵称|#兑换码)\]/g, '$1') item.attContent = item.attContent.replace(/\[(@昵称|#兑换码)\]/g, '$1')
item.attContent = item.attContent.replace(/(@昵称|#兑换码)/g, '[$1]') item.attContent = item.attContent.replace(/(@昵称|#兑换码)/g, '[$1]')
if (item.attContent.match(/\[#兑换码\]/g)&&item.attContent.match(/\[#兑换码\]/g).length > 10) { if (item.attContent.match(/\[#兑换码\]/g) && item.attContent.match(/\[#兑换码\]/g).length > 10) {
this.$message({ this.$message({
message: '最多输入10个兑换码', message: '最多输入10个兑换码',
type: 'error' type: 'error'
...@@ -403,7 +403,8 @@ export default { ...@@ -403,7 +403,8 @@ export default {
taskName, taskName,
staffIds, staffIds,
attachmentList, attachmentList,
autoSend autoSend,
businessType: 0
} }
if (this.isEdit) params.taskId = this.taskId if (this.isEdit) params.taskId = this.taskId
if (!this.isRedeem) return if (!this.isRedeem) return
...@@ -425,7 +426,7 @@ export default { ...@@ -425,7 +426,7 @@ export default {
} }
}, },
created() { created() {
if(!util.isShowBtn(null,'兑换码')) { if (!util.isShowBtn(null, '兑换码')) {
this.btnList.splice(-1) this.btnList.splice(-1)
} }
} }
...@@ -656,8 +657,8 @@ export default { ...@@ -656,8 +657,8 @@ export default {
.gl-form-page .el-form { .gl-form-page .el-form {
padding-left: 0px !important; padding-left: 0px !important;
} }
.code-body-form /deep/ .w-textarea_input{ .code-body-form /deep/ .w-textarea_input {
height:230px; height: 230px;
overflow-y: auto; overflow-y: auto;
} }
</style> </style>
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div class="table-btns" slot="optionBtns" slot-scope="scope"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDel(scope.scope)" :disabled="scope.scope.taskStatus == 2 || scope.scope.taskStatus == 3">删除</el-button> <el-button type="text" @click="handleDel(scope.scope)" :disabled="scope.scope.taskStatus == 2 || scope.scope.taskStatus == 3">删除</el-button>
<el-button type="text" @click="goDetail(scope.scope)" v-if="activeIndex == 2">数据详情</el-button> <el-button type="text" @click="goDetail(scope.scope)" v-if="activeIndex == 2">数据详情</el-button>
<el-button type="text" @click="goEdit(scope.scope)">编辑</el-button> <el-button type="text" @click="goEdit(scope.scope)">编辑</el-button>
</div> </div>
<template slot="taskStatus" slot-scope="scope"> <template slot="taskStatus" slot-scope="scope">
<div :class="['task_icon', `task_icon${scope.scope.taskStatus}`]">{{ taskStatus(scope.scope.taskStatus) }}</div> <div :class="['task_icon', `task_icon${scope.scope.taskStatus}`]">{{ taskStatus(scope.scope.taskStatus) }}</div>
...@@ -214,6 +214,7 @@ export default { ...@@ -214,6 +214,7 @@ export default {
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
this.tableSearchForm.taskStatus = this.activeIndex == 1 ? 1 : 4 this.tableSearchForm.taskStatus = this.activeIndex == 1 ? 1 : 4
this.tableSearchForm.businessType = 0
resolve() resolve()
}) })
}, },
...@@ -224,8 +225,8 @@ export default { ...@@ -224,8 +225,8 @@ export default {
goDetail(scope) { goDetail(scope) {
this.$router.push('/home/taskDetail?id=' + scope.id) this.$router.push('/home/taskDetail?id=' + scope.id)
}, },
goEdit(data){ goEdit(data) {
this.$emit('update',data) this.$emit('update', data)
} }
} }
} }
......
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-07 14:22:41
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-06-14 15:33:20
* @FilePath: \scrm-micro-home\src\views\home\components\ai\addTask.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<GLDialog :title="!isEdit ? '创建任务' : '编辑任务'" okText="保存" class="gl-form-page gl-form-min" @onOk="handleSure" :before-close="handleClose" @onCancel="handleClose" :visible.sync="dialogVisibleTask">
<el-form v-loading="loading" ref="addForm" :model="addForm" class="code-body-form" label-width="154px" :rules="addRules">
<el-form-item label="选择AI:" size="small" prop="robotId">
<el-select v-model="addForm.robotId" placeholder="请选择" @change="selectAI">
<el-option v-for="item in aiOptions" :key="item.robotId" :label="item.robotName" :value="item.robotId"></el-option>
</el-select>
</el-form-item>
<el-form-item label="话术示意:">
<div class="word-content">{{ addForm.messageContent }}</div>
</el-form-item>
<div class="el-form-item is-required el-form-item--small">
<label for="remark" class="el-form-item__label" style="width: 154px">导入客户:</label>
<div class="el-form-item__content" style="margin-left: 154px">
<div class="import-link">
<div class="upload-btn">
<el-button size="small">
<i class="el-icon-plus"></i>
{{ url ? '更换文件' : '选择文件' }}
</el-button>
<input type="file" style="opacity: 0" ref="file" accept="*" @change="uploadFile" />
</div>
<a :href="modelUrl">下载模板</a>
</div>
<div class="file-tips" v-if="!addForm.fileName && !ImportResult.error">
支持扩展名:xls,xlsx
</div>
<div class="file-tips" v-if="addForm.fileName">
<i class="el-icon-success"></i>
文件已上传({{ addForm.fileName }})
</div>
<div class="file-tips" v-if="ImportResult.error">
<i class="el-icon-error"></i>
检测到导入的号码格式错误,请修改后重新上传
</div>
</div>
</div>
<el-form-item label="门店名称:" size="small" prop="merchantNameParam">
<el-input v-model="addForm.merchantNameParam"></el-input>
<div class="file-tips">
若话术中有提及门店,将自动替换该名称
</div>
</el-form-item>
<el-form-item label="外呼启动时间:" size="small" prop="aiStartTime">
<el-date-picker v-model="addForm.aiStartTime" type="datetime" placeholder="选择日期时间" value-format="yyyy-MM-dd HH:mm:ss" :picker-options="pickerOption"></el-date-picker>
<div class="file-tips">
仅支持9:00-20:00设置AI外呼
</div>
</el-form-item>
</el-form>
<GLDialog :appendToBody="true" title="导入数据失败" :hasFooter="true" mode="small" :visible.sync="importVisible">
<div class="dialog-body-panel">
<div class="import-result">
<label>{{ ImportResult.error }}</label>
条数据异常
</div>
<div class="import-tips">数据异常的可能原因:</div>
<div class="import-reason">
<div class="import-reason-content">1、存在不正确的手机号格式数据</div>
<div class="import-reason-content">2、存在重复的手机号数据</div>
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="importVisible = false">取消</el-button>
<el-button size="small" type="primary" @click="handleImport">导出错误数据</el-button>
</span>
</GLDialog>
</GLDialog>
</template>
<script>
import * as dayjs from 'dayjs'
import tabel from '@/mixins/tabel'
import util from '@/utils/util'
const validateTime = (rule, value, callback) => {
const o = +value.match(/\s(\d+):/)[1]
if (o < 9 || o > 20) {
callback(new Error('请选择9:00-20:00时间段'))
} else {
callback()
}
}
export default {
mixins: [tabel],
props: {
isEdit: Boolean,
editTaskId: Number,
dialogVisibleTask: {
type: Boolean,
default: false
}
},
data() {
return {
pickerOption: {
disabledDate: time => {
return new Date().getTime() - 24 * 60 * 60 * 1e3 > new Date(time).getTime()
}
},
loading: false,
aiOptions: [],
importVisible: false,
ImportResult: {},
modelUrl: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/xlsx/AI续保提醒 - 模板.xlsx',
url: '',
excelUrl: '',
addForm: {
autoSend: 0,
businessType: 1,
messageContent: '选择AI后展示',
fileName: '',
merchantNameParam: this.$globalState.session.merchantName
},
addRules: {
robotId: [{ required: true, message: '请选择AI', trigger: 'change' }],
merchantNameParam: [{ required: true, message: '请输入门店名称', trigger: 'blur' }],
aiStartTime: [
{ required: true, message: '请选择外呼启动时间', trigger: 'change' },
{ validator: validateTime, trigger: 'change' }
]
}
}
},
mounted() {
this.robotList()
// this.readWorkbookFromRemoteFile(this.modelUrl)
if (this.isEdit) {
this.conditionPage(this.editTaskId)
}
},
methods: {
handleImport() {
util.openUrl(this.ImportResult.errUrl.replace(/https?:/, ''))
},
//获取详情
conditionPage(id) {
this.$apis.aiCall.contentEcho({ id }).then(res => {
const { id, messageContent, robotId, aiStartTime, merchantNameParam, excelUrl, excelName } = res
this.addForm = { fileName: excelName, autoSend: 0, taskId: id, messageContent, robotId, merchantNameParam, aiStartTime: dayjs(+aiStartTime).format('YYYY-MM-DD HH:mm:ss') }
this.excelUrl = this.url = excelUrl
})
},
//选择ai
selectAI(i) {
this.addForm.messageContent = this.aiOptions.find(item => item.robotId == i).messageContent
},
handleClose() {
this.$emit('dialogClose')
},
handleSure() {
if(this.loading) return
this.$refs.addForm.validate(async valid => {
if (valid) {
this.loading = true
if (this.excelUrl && this.excelUrl != this.url) {
await this.$apis.aiCall.merchantTaskDelete({ taskId: this.addForm.taskId, deleteType: 1 })
this.addForm.taskId = null
}
let apiVal = 'createTask'
if (this.addForm.taskId) {
apiVal = 'updateTask'
}
this.$apis.aiCall[apiVal]({ ...this.addForm, url: this.url, businessType: 1 }).then(res => {
this.loading = false
if (res) this.$emit('dialogSure')
})
}
})
},
// AI列表
robotList() {
this.$apis.aiCall.robotList({}).then(res => {
this.aiOptions = (res || []).filter(item => item.messageContent)
})
},
async uploadFile(e) {
const file = e.srcElement.files[0]
let AllImgExt = '.xls|.xlsx'
let extName = file.name.substring(file.name.lastIndexOf('.')).toLowerCase()
if (AllImgExt.indexOf(extName) === -1) {
this.$message.error('上传格式不正确')
return false
}
// const size = file.size / 1024 / 1024
// await this.compareHeader(file)
const reader = new FileReader()
reader.readAsDataURL(file)
reader.onload = event => {
const imgFile = event.target.result
const arrBase64 = imgFile.split(',')
const splitStr = file.name.split('.')
const fileUrl = splitStr[splitStr.length - 1] + '@' + arrBase64[1]
this.$apis.common.pictureUpload({ file: fileUrl }).then(res => {
if (res) {
this.phoneCheck(file.name, res)
}
this.$refs.file.value = ''
})
}
},
//检查手机号
phoneCheck(fileName, url) {
this.$apis.aiCard.phoneCheck({ url, businessType: 1 }).then(res => {
if (res) {
this.ImportResult = res
if (res.error > 0) {
this.importVisible = true
} else {
this.addForm.fileName = fileName
this.url = url
}
}
})
}
}
}
</script>
<style lang="scss" scoped>
.dialog-body-panel {
.import-result {
font-size: 16px;
font-weight: 600;
color: #333333;
line-height: 22px;
label {
color: #eb4e4e;
}
}
.import-tips {
font-size: 14px;
font-weight: 400;
color: #666666;
line-height: 20px;
margin: 6px 0px;
}
.import-reason {
height: 92px;
background: #f5f5f5;
padding: 16px;
box-sizing: border-box;
&-content {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
}
}
}
.word-content {
width: 402px;
min-height: 80px;
background: #f0f0f2;
border: 1px solid #e8e8ea;
border-radius: 4px;
padding-left: 10px;
font-size: 14px;
color: #c6c6c6;
}
.import-link {
display: flex;
cursor: pointer;
margin-bottom: 8px;
.upload-btn {
position: relative;
display: inline-block;
input {
cursor: pointer;
position: absolute;
height: 100%;
width: 100%;
top: 0px;
left: 0px;
font-size: 0px;
}
}
a {
margin-left: 6px;
color: #5850ff;
}
}
.file-tips {
font-size: 14px;
color: #999999;
.el-icon-success {
color: #67c23a; //
}
.el-icon-error {
color: #f56c6c;
}
}
</style>
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
{{ citem }} {{ citem }}
</div> </div>
</div> </div>
<div class="use-flex" v-if="item.isGPT"> <div class="use-flex" v-if="item.num == 1">
<div class="use-operation" @click="useHandleGPT()">立即使用</div> <div class="use-operation" @click="handleJump(item.path)">立即使用</div>
</div> </div>
<div class="use-flex" v-else> <div class="use-flex" v-else>
<div class="use-operation" @click="useHandle(item.type)">立即使用</div> <div class="use-operation" @click="useHandle(item.type)">立即使用</div>
...@@ -36,20 +36,56 @@ ...@@ -36,20 +36,56 @@
</div> </div>
</div> </div>
</div> </div>
<GLDialog title="提示" :hasFooter="true" :visible.sync="dialogVisible">
<div class="dialog-body-panel">
<div class="dialog-header">
<i class="el-icon-warning"></i>
<span>AI续保提醒为付费订阅功能</span>
</div>
<div class="dialog-tips">
试用期内您有
<i>500</i>
个通话的体验额度。若需开通订阅请扫码申请开通,将有运营人员与您对接。
</div>
<div class="dialog-qrcode">
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/aicode.png" alt="" />
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="dialogVisible = false">取消</el-button>
<el-button size="small" type="primary" @click="handleJump('/home/aiCall')">已知晓,并开启试用</el-button>
</span>
</GLDialog>
</div> </div>
</template> </template>
<script> <script>
const sceneData = [ const sceneData = [
{ title: 'ChatGPT超级营销', content: '场景营销结合对话机器人ChatGPT,通过ChatGPT与丰富的节假日场景库预设动态,生成营销主题内容,更快为门店创建适用的活动落地页。', config: ['ChatGPT结合', '丰富的预设场景', '平台免费提供优惠券'], icon: 'ChatGPT', isGPT: true }, {
{ title: '续保招揽', content: '平台可将店内续保套餐线上化,链接化。员工可通过企微、微信等渠道的分发。并提供了二次线索跟进功能,进一步提高对意向客户的跟进能力。', config: [' 续保线索二次跟进', '续保套餐线上化', '套餐灵活打包'], icon: 'renewal', type: 6, isShow: false }, title: 'AI续保提醒',
content: '通过AI外呼机器人,实现续保报价尚未确定前,对续保客户的批量AI电话提醒。系统会基于外呼的效果将客户进行分层,后续门店可对高意向客户优先招揽。',
config: ['AI高效触达', '续保意向捕捉', '客户分层展示'],
icon: 'ChatGPT',
num: 1,
path: '/home/aiCall'
},
{
title: 'ChatGPT超级营销',
content: '场景营销结合对话机器人ChatGPT,通过ChatGPT与丰富的节假日场景库预设动态,生成营销主题内容,更快为门店创建适用的活动落地页。',
config: ['ChatGPT结合', '丰富的预设场景', '平台免费提供优惠券'],
icon: 'ChatGPT',
num: 1,
path: '/home/marketing'
},
{ title: '续保招揽', content: '平台可将店内续保套餐线上化,链接化。员工可通过企微、微信等渠道的分发。并提供了二次线索跟进功能,进一步提高对意向客户的跟进能力。', config: [' 续保线索二次跟进', '续保套餐线上化', '套餐灵活打包'], icon: 'renewal', type: 5, isShow: false },
{ title: '定保招揽', content: '基于店内定保业务场景, 平台通过整合第三方的福利卡券,为门店带来异业联盟的新契机,让定保套餐在销售路径上更丰富,提高对消费者的吸引力。', config: [' 提高定保场景营销能力', ' 拓宽营销触点', '活动效果数据化'], icon: 'bail', type: 2, isShow: false }, { title: '定保招揽', content: '基于店内定保业务场景, 平台通过整合第三方的福利卡券,为门店带来异业联盟的新契机,让定保套餐在销售路径上更丰富,提高对消费者的吸引力。', config: [' 提高定保场景营销能力', ' 拓宽营销触点', '活动效果数据化'], icon: 'bail', type: 2, isShow: false },
{ title: '节假日关怀', content: '通过节日为契机,推送节日关怀链接并吸引用户购买相关服务。平台将提供贴合节日气氛的活动落地页,门店可根据业务需要整合服务或产品。', config: [' 促进门店节假日产值转化', '增加客户关怀', '实现软性营销'], icon: 'festivals', type: 5, isShow: false } { title: '节假日关怀', content: '通过节日为契机,推送节日关怀链接并吸引用户购买相关服务。平台将提供贴合节日气氛的活动落地页,门店可根据业务需要整合服务或产品。', config: [' 促进门店节假日产值转化', '增加客户关怀', '实现软性营销'], icon: 'festivals', type: 6, isShow: false }
] ]
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
export default { export default {
data() { data() {
return { return {
sceneData sceneData,
dialogVisible: false
} }
}, },
computed: { computed: {
...@@ -62,10 +98,21 @@ export default { ...@@ -62,10 +98,21 @@ export default {
useHandle(value) { useHandle(value) {
this.$history.push(`/link/activityLink/editActivity?addOrEdit=add&subscribe=${value}&$title=新建活动`) this.$history.push(`/link/activityLink/editActivity?addOrEdit=add&subscribe=${value}&$title=新建活动`)
}, },
useHandleGPT() { handleJump(path) {
if (path == '/home/aiCall') {
const userName = this.$globalState.session.userName,
ai_user = localStorage.getItem('isClick_AI_USER')
if (!(ai_user && ai_user.includes(userName))) {
this.dialogVisible = true
localStorage.setItem('isClick_AI_USER', ai_user + ',' + userName)
return
}
this.$router.push(path)
return
}
const { purchaseCustomerCount, entmicroAddCustomerCount, entmicroNotAddCustomerCount } = this.marketing.customDetail const { purchaseCustomerCount, entmicroAddCustomerCount, entmicroNotAddCustomerCount } = this.marketing.customDetail
this.$router.push({ this.$router.push({
path: '/home/marketing', path,
query: { query: {
purchaseCustomerCount, purchaseCustomerCount,
entmicroAddCustomerCount, entmicroAddCustomerCount,
...@@ -77,6 +124,38 @@ export default { ...@@ -77,6 +124,38 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.dialog-body-panel {
padding: 10px;
.dialog-header {
line-height: 40px;
i {
font-size: 32px;
color: #5850ff;
vertical-align: sub;
}
span {
font-weight: 600;
font-size: 20px;
color: #333333;
}
}
.dialog-tips {
padding: 10px 20px;
color: #333333ff;
font-size: 16px;
line-height: 24px;
i {
color: #5850ff;
}
}
.dialog-qrcode {
width: 160px;
height: 160px;
margin: 10px auto;
padding: 2px;
border: 1px dashed #999;
}
}
.subscript-wrap { .subscript-wrap {
margin-bottom: 16px; margin-bottom: 16px;
padding: 17px 20px 15px; padding: 17px 20px 15px;
...@@ -89,17 +168,18 @@ export default { ...@@ -89,17 +168,18 @@ export default {
margin-bottom: 16px; margin-bottom: 16px;
} }
.home-use-box { .home-use-box {
display: flex; display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 20px;
.home-use-item { .home-use-item {
position: relative; position: relative;
padding: 1vw; padding: 1vw;
box-sizing: border-box; box-sizing: border-box;
flex: 1;
border: 1px solid #e5e5e5; border: 1px solid #e5e5e5;
} }
.home-use-item + .home-use-item { // .home-use-item + .home-use-item {
margin-left: 20px; // margin-left: 20px;
} // }
.use-item-icon { .use-item-icon {
width: 80px; width: 80px;
height: 80px; height: 80px;
...@@ -123,6 +203,8 @@ export default { ...@@ -123,6 +203,8 @@ export default {
} }
.use-item-config { .use-item-config {
height: 60px; height: 60px;
display: flex;
flex-wrap: wrap;
.use-config-item { .use-config-item {
margin-top: 14px; margin-top: 14px;
font-size: 16px; font-size: 16px;
...@@ -130,6 +212,7 @@ export default { ...@@ -130,6 +212,7 @@ export default {
letter-spacing: 0; letter-spacing: 0;
font-weight: 400; font-weight: 400;
display: flex; display: flex;
width: 50%;
i { i {
font-size: 16px; font-size: 16px;
color: #5850ff; color: #5850ff;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!