Commit 1b008b58 authored by hewenhao's avatar hewenhao

feat: 文案

parent 79b2e798
......@@ -34,7 +34,7 @@ export enum ErrCode {
USER_UP_LIMIT = "USER_UP_LIMIT", // 用户上限
SYSTEM_UP_LIMIT = "SYSTEM_UP_LIMIT", // 系统上限
STUDENT_WITHDRAWING = "STUDENT_WITHDRAWING", // 学生提现中
BALANCE_NOT_ENOUGH = "BALANCE_NOT_ENOUGH", // 余额不足
BALANCE_NOT_ENOUGH = "BALANCE_NOT_ENOUGH" // 余额不足
}
// 提现记录状态
......
import axios, { AxiosRequestConfig } from "axios";
import Cookies from 'js-cookie';
import Cookies from "js-cookie";
import { unref } from "vue";
import router from "../router";
const instance = axios.create({
headers: {
'content-type': 'application/json;charset=UTF-8',
'Authorization': `Bearer ${Cookies.get('token')}`
"content-type": "application/json;charset=UTF-8",
Authorization: `Bearer ${Cookies.get("token")}`
},
baseURL: "",
timeout: 10000,
......
import { ErrCode } from "@/model/bonus/constant";
export function formatBonusTipTxt(errCode: string): string {
let tip = '';
let tip = "";
switch (errCode) {
case ErrCode.NOT_BIND:
tip = '绑定微信后,才可进行提现!';
tip = "绑定微信后,才可进行提现!";
break;
case ErrCode.USER_FREEZE:
case ErrCode.ACCOUNT_FREEZE:
tip = '当前账号存在风险,无法进行提现操作!如需帮助请联系:400-8777389';
tip = "当前账号存在风险,无法进行提现操作!如需帮助请联系:400-8777389";
break;
case ErrCode.USER_UP_LIMIT:
case ErrCode.SYSTEM_UP_LIMIT:
tip = '今日已达到提现次数/提现金额上限,无法进行提现操作,请明日进行提现操作!如需帮助请联系:400-8777389';
tip =
"今日已达到提现次数/提现金额上限,无法进行提现操作,请明日进行提现操作!如需帮助请联系:400-8777389";
break;
case ErrCode.STUDENT_WITHDRAWING:
tip = '您当前有一笔资金处于提现中,待该笔资金完成提现后,再进行提现操作!如需帮助请联系:400-8777389';
tip =
"您当前有一笔资金处于提现中,待该笔资金完成提现后,再进行提现操作!如需帮助请联系:400-8777389";
break;
case ErrCode.BALANCE_NOT_ENOUGH:
tip = '提现金额至少为:1.00元。今日可提现金额不足,烦请明日再来提现!如需帮助请联系:400-8777389';
tip = "提现金额至少为:1.00元。当前可提现金额不足!如需帮助请联系:400-8777389!";
break;
default:
tip = ''
tip = "";
}
return tip;
}
......@@ -43,7 +43,7 @@ function install(Vue: App) {
const event_bus = mitt();
// eslint-disable-next-line func-names
window.$geek_excuteJS = function (args) {
window.$geek_excuteJS = function(args) {
try {
const params = JSON.parse(args);
event_bus.emit(GEEK_NATVIE_NAME, params);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment