ai-css/static/templates/setting_bottom.html
2026-02-12 08:50:11 +00:00

329 lines
12 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{define "setting_bottom"}}
<script>
if (typeof ACTION=="undefined"){
ACTION="{{.action}}";
}
</script>
<script>
var app=new Vue({
el: '#app',
delimiters:["<{","}>"],
data: {
host:getBaseUrl(),
kefuInfo:{},
account: {
username: "",
password: "",
},
kefuForm:{
id:"",
name:"",
password:"",
avator:"",
nickname:"",
role_name:"",
role_id:"",
},
avatarUrl:"",
chatEndpoint: "",
configList:[
{
"conf_name": "公告",
"conf_key": "AllNotice",
"conf_value":"",
},
{
"conf_name": "离线提示语",
"conf_key": "OfflineMessage",
"conf_value":"",
},
{
"conf_name": "欢迎语",
"conf_key": "WelcomeMessage",
"conf_value":"",
},
{
"conf_name": "邮箱地址",
"conf_key": "NoticeEmailSmtp",
"conf_value":"",
},
{
"conf_name": "邮箱帐号",
"conf_key": "NoticeEmailAddress",
"conf_value":"",
},
{
"conf_name": "邮箱密码",
"conf_key": "NoticeEmailPassword",
"conf_value":"",
},
{
"conf_name": "AI提示词设置",
"conf_key": "AIPrompt",
"conf_value":"You are an AI customer support assistant.\n\nYour primary goal is to help users resolve their issues accurately, politely, and efficiently.\nYou represent the official customer service of the product or platform.\n\nGeneral rules:\n- Always be polite, calm, and professional.\n- Use clear, concise, and user-friendly language.\n- Focus on solving the users problem step by step.\n- Do NOT fabricate information. If you are unsure or lack relevant knowledge, say so clearly.\n- Do NOT guess product policies, prices, or technical behaviors.\n- If a question cannot be resolved based on available information, guide the user to human support.\n\nKnowledge usage:\n- Only answer questions based on the provided knowledge, FAQs, or conversation context.\n- If the users question is outside the supported scope, respond with a brief explanation and suggest contacting a human agent.\n\nEscalation rules:\n- If the user explicitly requests a human agent, immediately stop responding and indicate the transfer.\n- If the user expresses frustration, repeated confusion, or dissatisfaction, suggest escalating to a human agent.\n\nSafety and compliance:\n- Do not provide sensitive, confidential, or internal information.\n- Do not provide legal, medical, or financial advice.\n- Avoid any harmful, abusive, or inappropriate content.\n\nResponse style:\n- Keep answers concise but helpful.\n- Prefer bullet points or numbered steps when explaining procedures.\n- Ask clarifying questions only when necessary to move forward.",
},
{
"conf_name": "常见问答FAQ\n(提升ai回答精准度)",
"conf_key": "FrequentlyAskedQuestions",
"conf_value": `【账号与登录】
Q: 登录提示账号或密码错误?
A: 请确认手机号或密码是否正确;如忘记密码,在登录页选择【普通登录】→【忘记密码】通过验证码重置。
Q: 如何注册账号?
A: 在登录页或首页点击【注册账号】,使用有效手机号注册,手机号可直接作为登录账号。
Q: 收不到验证码?
A: 请确认信号正常,可每 23 分钟重试或更换地点。
【支付密码】
Q: 如何修改或找回支付密码?
A: 需先登录账号。
手机端:【我的】→【忘记支付密码】→验证码重置。
电脑端:右上角【资金/头像】→【找回支付密码】。
【充值】
Q: 如何充值?
A: 首页点击【存款/充值】,选择充值方式并按通道指引完成。
Q: 充值成功未到账?
A: 通常 10 分钟内到账;超时请联系人工客服并提供含收款人及时间的转账凭证。
Q: 支持哪些充值货币?
A: 支持人民币及 USDT仅 TRC-20USDT 将按汇率换算为人民币到账。
Q: 充值是否收手续费?
A: 平台不收取USDT 手续费由交易所或钱包收取。
【提现 / 取款】
Q: 如何提现?
A:
手机端:【我的】→【钱包管理】;
电脑端:右上角【取款】→【钱包管理】。
Q: 提现提示打码量不足?
A: 表示流水未达要求,具体数值可在取款页底部查看。
Q: 提现手续费?
A: 每日前 5 笔免手续费,第 6 笔起收取 1%,次日 0 点重置。
Q: 提现多久到账?
A: 银行卡约 530 分钟;虚拟币钱包可秒到账。
Q: 提现限制?
A: 最低 100 元,无上限;虚拟币取款需钱包 KYC 且实名与账号一致。
【资金转账】
Q: 充值后余额为 0
A: 需转入游戏:点击【转账/资金】→选择游戏→【转入/闪入】。
Q: 如何转出游戏余额?
A: 在【转账/资金】页面点击【一键转出】。
【流水 / 打码量】
Q: 什么是打码量?
A: 投注结算的输赢金额,取较小值计算;和局、走水不计入。
Q: 提现需要多少流水?
A: 通常为充值金额 1 倍;参与优惠则以活动规则为准。
【优惠与返水】
Q: 返水如何领取?
A: 无需申请,系统按账号等级自动计算,次日凌晨派送,最迟不超过早上 8 点。
Q: 返水比例?
A: 与账号等级及游戏有关,详见【优惠】页面。
Q: 如何申请彩金?
A: 登录后进入【优惠】查看活动规则并按要求申请。
【游戏问题】
Q: 游戏无法打开或加载?
A: 请确认网络及是否维护中;仍异常请联系人工客服并提供截图。
【客服与安全】
Q: 什么是专属客服?
A: 除 24 小时人工客服外提供线下专属客服68Chat/QQ/微信),服务时间 10:0020:00。
Q: 个人信息安全吗?
A: 用户信息均经加密保护。
【体育相关】
Q: 体育注单未结算?
A: 赛事结束后结算;如有争议将延迟,最长不超过 36 小时。
Q: 赛事中断或腰斩?
A: 36 小时内无法继续或无重赛则取消注单并退还本金(除非已有官方结果)。
Q: 盈利消失或余额为负?
A: 因二次结算导致,系统将按最终结果扣回或补发。`}
],
},
methods: {
//跳转
openUrl(url){
//window.location.href=url;
this.iframeUrl=url;
},
//初始化数据
initInfo(){
this.getConfigList();
},
sendAjax(url,method,params,callback){
let _this=this;
$.ajax({
type: method,
url: url,
data:params,
headers: {
"aicss-token": localStorage.getItem("aicss-token")
},
success: function(data) {
if(data.code!=200){
_this.$message({
message: data.msg,
type: 'error'
});
}else if(data.result!=null){
callback(data.result);
}else{
callback(data);
}
_this.fullscreenLoading=false
}
});
},
getConfigList(){
let _this=this;
this.sendAjax("/configs","get",{},function(result){
for(let index in _this.configList){
for(let item of result){
if(_this.configList[index]['conf_key']==item['conf_key']){
_this.configList[index]["conf_value"]=item["conf_value"];
}
}
}
});
},
//设置配置项
setConfigItem(key,value){
let _this=this;
this.sendAjax("/config","POST",{key:key,value:value},function(result){
_this.getConfigList();
_this.$message({
message: "success",
type: 'success'
});
});
},
setUser(){
let _this=this;
this.sendAjax("/kefuinfo","POST",{
id:_this.kefuInfo.uid,
name:_this.kefuInfo.username,
nickname:_this.kefuInfo.nickname,
avator:_this.kefuInfo.avator,
password:_this.kefuInfo.password,
},function(result){
_this.$message({
message: "success",
type: 'success'
});
});
},
handleAvatarSuccess(res, file) {
console.log(res,file);
if(res.code!=200){
_this.$message({
message: res.msg,
type: 'error'
});
return;
}
this.kefuInfo.avator = '/'+res.result.path;
},
beforeAvatarUpload(file) {
var isLt2M = file.size / 1024 / 1024 < 1;
if (!isLt2M) {
this.$message.error('上传头像图片大小不能超过 1MB!');
}
return isLt2M;
},
GetRequest() {
var str = location.href
var num = str.indexOf("#");
if(num <0){
return "";
}
str = str.substr(num + 1);
return str;
},
copyText(text){
copyText(text);
this.$message({
message: "success",
type: 'success'
});
},
//获取客服信息
getKefuInfo(){
let _this=this;
$.ajax({
type:"get",
url:"/kefuinfo",
headers:{
"aicss-token":localStorage.getItem("aicss-token")
},
success: function(data) {
if(data.result.username==""){
window.location.href="/login";
}
if(data.code==200 && data.result!=null){
_this.kefuInfo=data.result;
_this.chatEndpoint=window.location.origin + '/livechat?kefu_id='+data.result.username;
}
}
});
},
},
mounted:function(){
var urlParam=this.GetRequest();
if(urlParam!=""){
this.iframeUrl=urlParam;
}
this.getKefuInfo();
this.initInfo();
},
created: function () {
}
})
</script>
</html>
{{end}}