kefu/wechathook/templates/setting_wechat.html

46 lines
1.9 KiB
HTML

<html lang="cn">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title></title>
<{template "common" }>
</head>
<body>
<div id="app">
<template>
<div class="detailBox">
<el-form ref="form" :model="form" label-width="180px" style="width: 900px">
<el-form-item label="AI接口回复开关">
<el-checkbox v-model="form.groupAIStatus">群聊</el-checkbox>
<el-checkbox v-model="form.personAIStatus">私聊</el-checkbox>
</el-form-item>
<el-form-item label="关键词回复开关">
<el-checkbox v-model="form.groupKeywordStatus">群聊</el-checkbox>
<el-checkbox v-model="form.personKeywordStatus">私聊</el-checkbox>
</el-form-item>
<el-form-item>
<el-button type="primary" size="small" @click="wechatAIStatus()">保存开关</el-button>
</el-form-item>
<el-form-item label="微信回调">
<el-button type="text" size="small" @click="wechatHook()">微信消息Hook</el-button>
(Hook后才能拿到微信回调的消息)
</el-form-item>
<el-form-item label="白名单">
<el-select v-model="wechatWhiteList" filterable multiple placeholder="请选择" style="width: 500px">
<el-option
v-for="item in contacts"
:label="item.nickname"
:value="item.wxid">
</el-option>
</el-select>
<el-button type="primary" size="small" @click="saveWhite()">保存白名单</el-button>
</el-form-item>
</el-form>
</div>
</template>
</div>
<{template "setting_bottom" .}>
</body>