|
|
|
@ -10,8 +10,8 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<el-row :gutter="20" class="info">
|
|
|
|
<el-row :gutter="20" class="info">
|
|
|
|
<el-col :span="8">帐户余额:¥<el-text class="mx-1" >{{ userBalance }}</el-text></el-col>
|
|
|
|
<el-col :span="8">帐户余额:¥<el-text class="mx-1" >{{ NumFilter(userBalance) }}</el-text></el-col>
|
|
|
|
<el-col :span="8">本月消费:¥<el-text class="mx-1" >{{ userBalanceMonth }}</el-text></el-col>
|
|
|
|
<el-col :span="8">本月消费:¥<el-text class="mx-1" >{{ NumFilter(userBalanceMonth) }}</el-text></el-col>
|
|
|
|
<el-col :span="8">帐户等级:<el-tag class="ml-2" type="success">1</el-tag></el-col>
|
|
|
|
<el-col :span="8">帐户等级:<el-tag class="ml-2" type="success">1</el-tag></el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
@ -22,11 +22,13 @@
|
|
|
|
<span>推荐计划</span>
|
|
|
|
<span>推荐计划</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<p class="info">推荐用户首次充值成功后将获得佣金奖励:{{ rewardDesc }},奖励可在充值记录中查看</p>
|
|
|
|
<el-input v-model="pushUrl" size="large" readonly @click.stop="handleCopy(pushUrl)">
|
|
|
|
<el-input v-model="pushUrl" size="large" readonly>
|
|
|
|
<template #append>
|
|
|
|
<template #prepend>推广链接:</template>
|
|
|
|
<el-button @click="handleCopy(pushUrl)">复制链接</el-button>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</el-input>
|
|
|
|
</el-input>
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
<el-alert :title="'推荐用户首次充值成功后将获得佣金奖励:' + rewardDesc+',奖励可在充值记录中查看'" type="success" :closable="false" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="main2">
|
|
|
|
<div class="main2">
|
|
|
|
<el-card class="box-card">
|
|
|
|
<el-card class="box-card">
|
|
|
|
@ -35,24 +37,33 @@
|
|
|
|
<span>服务信息</span>
|
|
|
|
<span>服务信息</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<el-space direction="vertical" alignment="start" :size="30">
|
|
|
|
<div style="margin-top: 10px; margin-bottom: 10px;">
|
|
|
|
<div>
|
|
|
|
<el-input v-model="serverUrl" size="large" readonly @click.stop="handleCopy(serverUrl)">
|
|
|
|
<el-input v-model="serverUrl" size="large" style="width:500px" readonly>
|
|
|
|
<template #prepend>Api Server:</template>
|
|
|
|
<template #prepend>Api Server:</template>
|
|
|
|
<template #append>
|
|
|
|
</el-input>
|
|
|
|
<el-button @click="handleCopy(serverUrl)">复制</el-button>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<div>
|
|
|
|
</el-input>
|
|
|
|
<el-input v-model="userKey" size="large" style="width:500px" readonly>
|
|
|
|
</div>
|
|
|
|
<template #prepend>Api Key:</template>
|
|
|
|
<div style="margin-top: 10px; margin-bottom: 10px;">
|
|
|
|
</el-input>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<el-input v-model="userKey" size="large" readonly @click.stop="handleCopy(userKey)">
|
|
|
|
<div>
|
|
|
|
<template #prepend>Api Key:</template>
|
|
|
|
<el-input v-model="serverUrl2" size="large" style="width:500px" readonly>
|
|
|
|
<template #append>
|
|
|
|
<template #prepend>Api Server备用:</template>
|
|
|
|
<el-button @click="handleCopy(userKey)">复制</el-button>
|
|
|
|
</el-input>
|
|
|
|
</template>
|
|
|
|
</div>
|
|
|
|
</el-input>
|
|
|
|
</el-space>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div style="margin-top: 10px; margin-bottom: 10px;">
|
|
|
|
|
|
|
|
<el-input v-model="serverUrl2" size="large" type="password" readonly @click.stop="handleCopy(serverUrl2)">
|
|
|
|
|
|
|
|
<template #prepend>Api Server备用:</template>
|
|
|
|
|
|
|
|
<template #append>
|
|
|
|
|
|
|
|
<el-button @click="handleCopy(serverUrl2)">复制</el-button>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
<el-alert title="点击输入框或按钮可直接复制" type="success" :closable="false" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="main2">
|
|
|
|
<div class="main2">
|
|
|
|
<el-card class="box-card">
|
|
|
|
<el-card class="box-card">
|
|
|
|
@ -61,20 +72,26 @@
|
|
|
|
<span>模型定价</span>
|
|
|
|
<span>模型定价</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<div style="margin-bottom: 10px;">
|
|
|
|
|
|
|
|
<el-alert title="注意:模型价格中的计费单位为每1000个token,而不是字数。算法基本和官方保持一致,一个中文字符大致消耗2个token, 用英文提问回复更省token" type="warning" :closable="false"/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<el-table :data="modelList" height="250" style="width: 100%">
|
|
|
|
<el-table :data="modelList" height="250" style="width: 100%">
|
|
|
|
<el-table-column prop="modelName" label="模型" />
|
|
|
|
<el-table-column prop="modelName" label="模型" />
|
|
|
|
<el-table-column prop="modelPrice" label="提问价格" width="180" >
|
|
|
|
<el-table-column prop="modelPrice" label="提问价格" width="180" >
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
¥{{scope.row.modelPrice*1000}}/k
|
|
|
|
¥{{NumFilter4(scope.row.modelPrice*1000)}}/k
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="modelPrice" label="回答价格" width="180">
|
|
|
|
<el-table-column prop="modelPrice" label="回答价格" width="180">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
¥{{scope.row.modelPrice*1000}}/k
|
|
|
|
¥{{NumFilter4(scope.row.modelPrice*1000)}}/k
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="remark" label="备注" />
|
|
|
|
<el-table-column prop="remark" label="备注" />
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<el-alert title="GPT4接口暂未上线,尽请期待" type="error" :closable="false"/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -85,6 +102,7 @@ import { getCertIndex } from '@/api/cert/index'
|
|
|
|
import { getConfigKey } from "@/api/system/config";
|
|
|
|
import { getConfigKey } from "@/api/system/config";
|
|
|
|
import { ref } from 'vue';
|
|
|
|
import { ref } from 'vue';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
const modelList = ref([]);
|
|
|
|
const modelList = ref([]);
|
|
|
|
const serverUrl = ref("");
|
|
|
|
const serverUrl = ref("");
|
|
|
|
const serverUrl2 = ref("");
|
|
|
|
const serverUrl2 = ref("");
|
|
|
|
@ -122,6 +140,32 @@ function getIndex() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function handleCopy(id){
|
|
|
|
|
|
|
|
// 获取需要复制的元素以及元素内的文本内容
|
|
|
|
|
|
|
|
const text = id;
|
|
|
|
|
|
|
|
// 添加一个input元素放置需要的文本内容
|
|
|
|
|
|
|
|
const input = document.createElement("input");
|
|
|
|
|
|
|
|
input.value = text;
|
|
|
|
|
|
|
|
document.body.appendChild(input);
|
|
|
|
|
|
|
|
// 选中并复制文本到剪切板
|
|
|
|
|
|
|
|
input.select();
|
|
|
|
|
|
|
|
document.execCommand("copy");
|
|
|
|
|
|
|
|
// 移除input元素
|
|
|
|
|
|
|
|
document.body.removeChild(input);
|
|
|
|
|
|
|
|
proxy.$modal.msgSuccess("复制成功");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function NumFilter (value) {
|
|
|
|
|
|
|
|
// 截取当前数据到小数点后两位
|
|
|
|
|
|
|
|
let realVal = parseFloat(value).toFixed(2)
|
|
|
|
|
|
|
|
return realVal
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function NumFilter4 (value) {
|
|
|
|
|
|
|
|
// 截取当前数据到小数点后两位
|
|
|
|
|
|
|
|
let realVal = parseFloat(value).toFixed(4)
|
|
|
|
|
|
|
|
return realVal
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
getIndex()
|
|
|
|
getIndex()
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
@ -148,7 +192,6 @@ getIndex()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.info {
|
|
|
|
.info {
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
font-size: 15px;
|
|
|
|
font-size: 15px;
|
|
|
|
color: #606266;
|
|
|
|
color: #606266;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|