This commit is contained in:
asd 2020-10-30 15:48:29 +08:00
parent 9c65b84bed
commit ecc3b735a7
11 changed files with 385 additions and 51 deletions

View File

@ -139,7 +139,7 @@ export default defineComponent({
if(uinfo.value.name){ if(uinfo.value.name){
addcomment(toRaw(data.value)) addcomment(toRaw(data.value))
}else{ }else{
message.error("请先选择回复的学生") message.error(lan.$t('xuanzehuifuxuesheng'))
} }
// addcomment(toRaw(data.value)) // addcomment(toRaw(data.value))

View File

@ -1,3 +1,295 @@
export default { export default {
zhiboguanli: "直播管理",
shipinguanli: "视频管理",
dingyuezheguanli: "订阅者管理",
gerenzhongxin: "个人中心",
rili: "日历",
quanbuzhibo: "全部直播",
weikaishi: "未开始",
yijieshu: "已结束",
zhibosousuo: "请输入想要搜索的直播标题",
haiweikaishi: "还未开始",
yijueshi: "已结束",
jinruzhibo: "进入直播",
chakanhuifang:"查看回放",
quanbushipin: "全部视频",
shenhezhong: "审核中",
weitongguo: "未通过",
yifabu: "已发布",
shipinsousuo: "请输入想要搜索的直播标题",
wodedingyuezhe: "我的订阅者",
xingming: "姓名",
suozaiguojia: "所在国家",
nianling: "年龄",
xueshengmuyu: "学生母语",
xingqudian: "兴趣点",
yuyandengji: "语言等级",
canyupingtaishichang: "参与平台直播总时长",
sousuoxuesheng: "请输入想要搜索的学生姓名",
huanying:"您好,欢迎来到",
beelink:"Beelink",
meiyouzhanghao:"还没有账号?",
yiyouzhanghao:"已有账号?",
qudenglu:"去登录",
chengweilaoshi:"成为一名Beelink老师",
shoujidenglu:"手机号登录",
mimadenglu:"账号密码登录",
shoujihao:"手机号",
yanzhengma:"验证码",
dianjihuoquyzm:"点击获取验证码",
lijidenglu:"立即登录",
shurushouji:"请输入您的手机号",
shuruyzm:"请输入您的验证码",
banquan:"Beelink公司版权所有 2019—2022",
zhanghao:"帐号",
shuruzhanghao:"请输入您的邮箱或者手机号",
mima:"密码",
shurumima:"请输入您的密码",
wangjimima:"忘记密码?",
yiwanxinlai:"亿万人的信赖和见证",
kaiqishenghuo:"Beelink 开启您的美好学习生活",
guanyubeelink:"关于 Beelink",
guanyuneirong:" Beelink平台拥有数千名优秀老师丰富的教育经验和有趣的课堂环境一对一辅导平台的教务管理、线上课堂、线下课堂、助学互动课程回放等多项教学功能让您利用碎片时间轻轻松松学会各种语言。",
liaojiegengduo:"了解更多",
xiayibu:"下一步",
tongyixieyi:"勾选表示同意 《用户注册协议和隐私政策》",
shezhimima:"设置密码",
shurumimatwo:"请再次输入您的密码",
shuruxingming:"请输入您的姓名",
youxiang:"邮箱",
shuruyouxiang:"请输入您的邮箱",
muyu:"母语",
shurumuyu:"请输入您的母语",
jiaoshou:"教授",
xuanzejiaoshou:"请选择您的教授",
lijizhuce:"立刻注册",
wanchengzhuce:"您已完成注册",
qudangan:"恭喜您注册成功,点击跳转到我的档案页面",
yanzhengshouji:"验证手机号",
tianxiexinxi:"填写帐号信息",
fanhuishangyibu:"返回上一步",
zhucewancheng:"帐号注册完成",
mimachongzhi:"密码重置",
xiangqimima:"想起密码?",
zhanghuming:"账户名",
chongzhimima:"重置密码",
chongzhishurumima:"请输入您要设置的密码",
querenmima:"确认密码",
querenchongzhi:"确认重置",
wanchengchongzhi:"您已完成密码重置",
chongzhichenggong:"恭喜您重置密码成功,点击跳转到登录页面",
shibiezhanghao:"识别账号",
yanzhengxinxi:"验证账号信息,重置密码",
chongzhiwancheng:"密码重置完成",
xiugaitouxiang:"修改头像",
xiugai:"修改",
shuruxinnicheng:"请输入新的昵称",
jibenxinxi:"基本信息",
laiziguojia:"来自国家",
juzhudi:"居住地",
shurujuzhudi:"输入居住地",
wohaihuishuo:"我还会说",
shuliandu:"熟练度",
jixutianjia:"继续添加",
xindemuyu:"请输入新的母语",
duanshipin:"短视频",
shipinyaoqiu:"视频要求:",
shipinyaoqiu1:"上传视频时间要求为30s之内",
shipinyaoqiu2:"支持文件大小100M",
shipinyaoqiu3:"文件扩展名fiv、mp4…",
ziwojieshao:"自我介绍",
lianxifangshi:"联系方式",
genghuanshoujihao:"更换手机号",
xitongshezhi:"系统设置",
shiqu:"时区",
huobi:"货币",
yuyan:"语言",
wanchengrenzheng:"请完成以下认证",
shuru:"请输入",
shoudaodeyzm:"收到的验证短信码",
shoujiyanzhengma:"手机验证码",
huoquyanzhengma:"获取验证码",
bangdingxinhaoma:"完成以下操作,绑定新号码",
bangdingshouji:"绑定手机",
xiugaizhanghaomima:"完成以下操作,修改账号密码",
yuanmima:"原密码",
xinmima:"新密码",
xinmimatwo:"确认新密码",
xiugaimima:"修改密码",
baocun:"保存信息",
gerenjieshao:"请输入个人介绍",
shangchuanshipin:"上传视频",
shipinbiaoti:"视频标题",
shurushipinbiaoti:"请输入您的视频标题",
shipinfengmian:"视频封面",
xuanzeshipin:"选择视频",
shipinjianjie:"视频简介",
shurushipinjianjie:"请输入您的视频简介",
zhiboxinxi:"直播信息",
zhibobiaoti:"直播标题",
shuruzhibobiaoti:"请输入您的直播标题",
zhibofengmian:"直播封面",
shipinjieshao:"视频介绍",
kaishishijian:"开始时间",
shezhikaishishijian:"请设置您的开始时间",
zhiboshichang:"直播时长",
shuruzhiboshijian:"请输入直播时间",
fenzhong:"分钟",
zhiborenshu:"直播人数",
shuruzhiborenshu:"请输入直播人数",
zhibojianjie:"直播简介",
shuruzhibojianjie:"请输入您的直播简介",
fabuzhibo:"发布直播",
wuzhibozige:"您尚未获得直播资格",
yijianfankui:"意见反馈",
fen:"分",
shipinshuju:"视频数据",
shangchuanshijian:"上传时间:",
bofangliang:"播放量",
zhuanfaliang:"转发量",
zhuangtai:"状态",
shenheing:"正在审核中,情耐心等待",
shenheweitongguo:"审核未通过",
yuanyin:"原因",
yuanyintext:"您的视频中含有大量敏感词汇请修改后再次上传感谢您对Beelink的技术支持",
xiugaishipin:"修改该视频",
shanchushipin:"删除该视频",
querenshanchu:"您确认删除该视频吗?",
shipinpingjia:"该视频评价",
fabiaoliuyan:"发表留言",
shuruliuyan:"请输入您的看法和见解",
suoyouhuifu:"查看所有回复",
huifu:"回复",
shanchu:"删除",
xiabanyayu:"西班牙语",
bianjixinxi:"编辑信息",
kaishizhibo:"开始直播",
shangkexuesheng:"上课学生",
chakanxiangqing:"查看详情",
canjiashichang:"参加时长",
quxiaozhibo:"取消直播",
yijujue:"已拒绝",
jujueyuanyintext:"请输入您拒绝该学生参与直播的原因",
juejueyuanyin:"拒绝原因",
querenjujue:"确认拒绝",
zhiboyemian:"直播页面",
querenguanbi:"您确认关闭直播吗",
dingyuezhe:"我的订阅者",
sousuodingyue:"请输入想要搜索的学生姓名",
wodeqianbao:"我的钱包",
lijitixian:"立即提现",
tixianjilu:"提现记录",
bangdingyonghu:"绑定用户",
zhanghuyue:"账户余额",
tianjiazhanghu:"添加新的账户",
yinhangka:"银行卡",
zhifubao:"支付宝",
weixin:"微信",
zhanghao0:"帐号",
tixianzhanghu:"提现到指定账户",
yue:"余额",
xuanzezhanghu:"选择账户",
tixianjine:"提现金额",
quanbujine:"全部金额",
tixianzhu:"注每笔提现收取0.1%服务费最低¥0.1",
yueshu:"您的余额只有",
zuiditixian:"最低提现金额¥100",
mingxichaxun:"明细查询",
kaishiriqi:"请选择开始日期",
jieshuriqi:"请选择结束日期",
zhanghu:"账户",
tijiaoriqi:"提交日期",
jine:"金额",
caozuo:"操作",
jiaoyimingxixiangqing:"交易明细详情",
leixing:"类型",
zhiboshouru:"直播收入",
tixian:"提现",
houtaichongzhi:"后台充值",
liushuihao:"流水号",
riqi:"日期",
laiyuan:"来源",
fanhui:"返回",
tixianjiluxiangqing:"提现记录详情",
daozhangjine:"到帐金额",
shouxufei:"手续费",
tixianzhuangtai:"提现状态",
yuanyinmiaoshu:"原因描述",
mingcheng:"名称",
shoukuanzhanghu:"收款账户",
quanbu:"全部",
shouru:"收入",
zhichu:"支出",
xinzengzhanghu:"新增账户",
shurukahao:"请输入收款人储蓄卡号",
kahao:"卡号",
kaihuhang:"开户行",
shurukaihuhang:"请输入开户行",
shuruzhifubao:"请输入支付宝账号/密码",
saomabangding:"扫码绑定",
zhu:"注",
weixinbangding:"打开手机微信扫描左侧二维码 进行微信账户绑定",
yinhangzhanghu:"银行账户",
yinhangbic:"银行BIC码",
tijiao:"提交",
zhiboliebiao:"直播列表",
zhibokecheng:"直播课程",
canyurenshu:"参与人数",
kechengpingfen:"课程评分",
shipinliebiao:'视频列表',
fabushipin:"发布视频",
zongguankanshu:"总观看数",
pingjundefen:"平均得分",
dingyueliebiao:"订阅列表",
dingyuerenshu:"订阅人数",
fuwutiaokuan:"服务条款",
yinsizhengce:"隐私政策",
shurufankui:"请输入您的意见反馈",
tijiaofankui:"提交反馈",
tuichu:"帐号退出",
wodedangan:"我的档案",
liebiaotongji:"列表统计",
guanyu:"关于Beelink",
xuanzehuifuxuesheng:"请先选择回复的学生",
shoujihaoweikong:"手机号不能为空",
zhanghaoweikong:"帐号不能为空",
mimaweikong:"密码不能为空",
shoujihaoyouwu:"手机号码有误,请重填",
yanzhengmaweikong:"验证码不能为空",
yonghubucunzai:"用户不存在",
wanshanxinxi:"请先完善相关信息",
mimabuyizhi:"两次密码输入不一致,请重新输入",
yanzhengmayouwu:"验证码有误,请重新输入",
xingmingweikong:"姓名不能为空",
youxiangweikong:"邮箱不能为空",
muyuweikong:"母语不能为空",
jiaoshouweikong:"请选择教授语言",
weitongyixieyi:"请同意用户协议",
yuanmimaweikong:"原密码不能为空",
youxiangcuowu:"邮箱格式有误",
kongzhanghaoliebiao:"您的账户列表为空,请先添加",
yuebuzu:"余额不足",
wenjiangeshi:"文件必须是视频格式",
biaotiweikong:"标题不能为空",
fengmianweikong:"封面不能为空",
wenjianweikong:"视频文件不能为空",
jianjieweikong:"视频简介不能为空",
fengmiangeshi:"上传封面文件必须是图片格式",
zhibobiaotiweikong:"直播标题不能为空",
zhibofengmianweikong:"直播封面不能为空",
shipinjieshaoweikong:"视频介绍不能为空",
kaishishijianweikong:"开始时间不能为空",
zhiboshichangweikong:"直播时长不能为空",
zhiborenshuweikong:"直播人数不能为空",
zhibojianjieweikong:"直播简介不能为空",
wuzhibozigeale:"您尚未获得直播资格",
shipinjieshaoccuowu:"视频介绍的文件格式错误",
buzhichitonghua:"您的浏览器不支持视频通话请下载新版chrome浏览器"
bendiliushibai:"本地流发布失败",
bendiliuchenggong:"本地流发布成功",
chushihuachenggong:"初始化本地流成功",
chushihuashibai:"初始化本地流失败",
buzhichifenxiang:"您的浏览器不支持屏幕分享请下载新版chrome",
xuanzefenxiangneirong:"请选择分享的内容",
guanbishibai:"关闭失败"
} }

View File

@ -249,5 +249,47 @@ export default {
tuichu:"帐号退出", tuichu:"帐号退出",
wodedangan:"我的档案", wodedangan:"我的档案",
liebiaotongji:"列表统计", liebiaotongji:"列表统计",
guanyu:"关于Beelink" guanyu:"关于Beelink",
xuanzehuifuxuesheng:"请先选择回复的学生",
shoujihaoweikong:"手机号不能为空",
zhanghaoweikong:"帐号不能为空",
mimaweikong:"密码不能为空",
shoujihaoyouwu:"手机号码有误,请重填",
yanzhengmaweikong:"验证码不能为空",
yonghubucunzai:"用户不存在",
wanshanxinxi:"请先完善相关信息",
mimabuyizhi:"两次密码输入不一致,请重新输入",
yanzhengmayouwu:"验证码有误,请重新输入",
xingmingweikong:"姓名不能为空",
youxiangweikong:"邮箱不能为空",
muyuweikong:"母语不能为空",
jiaoshouweikong:"请选择教授语言",
weitongyixieyi:"请同意用户协议",
yuanmimaweikong:"原密码不能为空",
youxiangcuowu:"邮箱格式有误",
kongzhanghaoliebiao:"您的账户列表为空,请先添加",
yuebuzu:"余额不足",
wenjiangeshi:"文件必须是视频格式",
biaotiweikong:"标题不能为空",
fengmianweikong:"封面不能为空",
wenjianweikong:"视频文件不能为空",
jianjieweikong:"视频简介不能为空",
fengmiangeshi:"上传封面文件必须是图片格式",
zhibobiaotiweikong:"直播标题不能为空",
zhibofengmianweikong:"直播封面不能为空",
shipinjieshaoweikong:"视频介绍不能为空",
kaishishijianweikong:"开始时间不能为空",
zhiboshichangweikong:"直播时长不能为空",
zhiborenshuweikong:"直播人数不能为空",
zhibojianjieweikong:"直播简介不能为空",
wuzhibozigeale:"您尚未获得直播资格",
shipinjieshaoccuowu:"视频介绍的文件格式错误",
buzhichitonghua:"您的浏览器不支持视频通话请下载新版chrome浏览器"
bendiliushibai:"本地流发布失败",
bendiliuchenggong:"本地流发布成功",
chushihuachenggong:"初始化本地流成功",
chushihuashibai:"初始化本地流失败",
buzhichifenxiang:"您的浏览器不支持屏幕分享请下载新版chrome",
xuanzefenxiangneirong:"请选择分享的内容",
guanbishibai:"关闭失败"
} }

View File

@ -183,7 +183,7 @@ export default defineComponent({
return; return;
} }
if (phone.value == "") { if (phone.value == "") {
message.error("手机号不能为空"); message.error(lan.$t('shoujihaoweikong'));
return; return;
} }
lock = true; lock = true;
@ -211,9 +211,9 @@ export default defineComponent({
function login(): void { function login(): void {
console.log(userinfo.phone,userinfo.password) console.log(userinfo.phone,userinfo.password)
if(userinfo.phone==''){ if(userinfo.phone==''){
message.error("帐号不能为空") message.error(lan.$t('zhanghaoweikong'))
} else if(userinfo.password==""){ } else if(userinfo.password==""){
message.error("密码不能为空") message.error(lan.$t('mimaweikong'))
}else{ }else{
loginpass(userinfo.phone,userinfo.password) loginpass(userinfo.phone,userinfo.password)
} }
@ -224,15 +224,15 @@ export default defineComponent({
function sublogin(){ function sublogin(){
console.log(11) console.log(11)
if(phone.value==''){ if(phone.value==''){
message.error("手机号不能为空") message.error(lan.$t('shoujihaoweikong'))
return return
}else if(!(/^1[3-9]\d{9}$/.test(phone.value))){ }else if(!(/^1[3-9]\d{9}$/.test(phone.value))){
message.error("手机号码有误,请重填"); message.error(lan.$t('shoujihaoyouwu'));
return return
} else if(code.value==""){ } else if(code.value==""){
// console.log(phone.value) // console.log(phone.value)
console.log((/^1[3-9]\d{9}$/.test(phone.value))) console.log((/^1[3-9]\d{9}$/.test(phone.value)))
message.error("验证码不能为空") message.error(lan.$t('yanzhengmaweikong'))
return return
}else{ }else{
loginpass(phone.value,'',1,code.value) loginpass(phone.value,'',1,code.value)

View File

@ -134,7 +134,7 @@ export default defineComponent({
return; return;
} }
if (uinfo.value.phone == "") { if (uinfo.value.phone == "") {
message.error("手机号不能为空"); message.error(lan.$t('shoujihaoweikong'));
return; return;
} }
lock = true; lock = true;
@ -179,16 +179,16 @@ export default defineComponent({
console.log(uinfo) console.log(uinfo)
stepnow.value=e stepnow.value=e
}else{ }else{
message.error("用户不存在") message.error(lan.$t('yonghubucunzai'))
} }
}else if(e==3){ }else if(e==3){
if(uinfo.value.phone==""|| uinfo.value.code==""|| uinfo.value.password==""|| uinfo.value.repassword==""){ if(uinfo.value.phone==""|| uinfo.value.code==""|| uinfo.value.password==""|| uinfo.value.repassword==""){
message.error("请先完善相关信息") message.error(lan.$t('wanshanxinxi'))
return return
}else if(uinfo.value.password!=uinfo.value.repassword){ }else if(uinfo.value.password!=uinfo.value.repassword){
message.error("两次密码输入不一致,请重新输入") message.error(lan.$t('mimabuyizhi'))
return return
} }
@ -202,7 +202,7 @@ export default defineComponent({
router.push("/") router.push("/")
} }
}else{ }else{
message.error("验证码有误,请重新输入") message.error(lan.$t("yanzhengmayouwu"))
} }
} }

View File

@ -280,7 +280,7 @@ export default defineComponent({
return; return;
} }
if (phone.value.phone == "") { if (phone.value.phone == "") {
message.error("手机号不能为空"); message.error(lan.$t('shoujihaoweikong'));
return; return;
} }
lock = true; lock = true;
@ -310,31 +310,31 @@ export default defineComponent({
function yanzheng() { function yanzheng() {
if (userinfo.value.pass == "") { if (userinfo.value.pass == "") {
message.error("密码不能为空"); message.error(lan.$t("mimaweikong"));
return false; return false;
} }
if (userinfo.value.passtow == "") { if (userinfo.value.passtow == "") {
message.error("密码不能为空"); message.error(lan.$t("mimaweikong"));
return false; return false;
} }
if (userinfo.value.pass != userinfo.value.passtow) { if (userinfo.value.pass != userinfo.value.passtow) {
message.error("两次密码输入不一致"); message.error(lan.$t('mimabuyizhi'));
return; return;
} }
if (userinfo.value.name == "") { if (userinfo.value.name == "") {
message.error("姓名不能为空"); message.error(lan.$t("xingmingweikong"));
return false; return false;
} }
if (userinfo.value.emil == "") { if (userinfo.value.emil == "") {
message.error("邮箱不能为空"); message.error(lan.$t('youxiangweikong'));
return false; return false;
} }
if (userinfo.value.muyu == "") { if (userinfo.value.muyu == "") {
message.error("母语不能为空"); message.error(lan.$t('muyuweikong'));
return false; return false;
} }
if (userinfo.value.jiaoshou == "") { if (userinfo.value.jiaoshou == "") {
message.error("请选择教授语言"); message.error(lan.$t('jiaoshouweikong'));
return false; return false;
} }
return true; return true;
@ -346,7 +346,7 @@ export default defineComponent({
async function next(e: number) { async function next(e: number) {
if (!ifagree.value) { if (!ifagree.value) {
message.error("请同意用户协议"); message.error(lan.$t('weitongyixieyi'));
return; return;
} }
if (stepnow.value > e) { if (stepnow.value > e) {
@ -357,10 +357,10 @@ export default defineComponent({
case 2: { case 2: {
console.log(e); console.log(e);
if (phone.value.phone == "") { if (phone.value.phone == "") {
message.error("手机号不能为空"); message.error(lan.$t('shoujihaoweikong'));
return; return;
} else if (phone.value.code == "") { } else if (phone.value.code == "") {
message.error("验证码不能为空"); message.error(lan.$t('yanzhengmaweikong'));
return; return;
} }
const res = await checksmscode( const res = await checksmscode(

View File

@ -763,10 +763,10 @@ export default defineComponent({
editpassword(toRaw(passwordForm)); editpassword(toRaw(passwordForm));
togglePasswordModal(false); togglePasswordModal(false);
} else { } else {
message.error("原密码不能为空"); message.error(lan.$t('yuanmimaweikong'));
} }
} else { } else {
message.error("两次密码输入不一致"); message.error(lan.$t('mimabuyizhi'));
} }
} }
/** /**
@ -822,7 +822,7 @@ export default defineComponent({
if (reg.test(userinfo.value.email)) { if (reg.test(userinfo.value.email)) {
putmember(uesrinfo); putmember(uesrinfo);
} else { } else {
message.error("邮箱格式有误"); message.error(lan.$t('youxiangcuowu'));
} }
} }

View File

@ -177,13 +177,13 @@ export default defineComponent({
payinfo.value.money = Number(payinfo.value.money); payinfo.value.money = Number(payinfo.value.money);
console.log(toRaw(payinfo.value)); console.log(toRaw(payinfo.value));
if (accountlist.value.length == 0) { if (accountlist.value.length == 0) {
message.error("您的账户列表为空,请先添加"); message.error(lan.$t('kongzhanghaoliebiao'));
return; return;
} else if (payinfo.value.money < 100) { } else if (payinfo.value.money < 100) {
message.error("最低提现金额为100"); message.error(lan.$t('zuiditixian'));
return; return;
} else if (payinfo.value.money > yue.value) { } else if (payinfo.value.money > yue.value) {
message.error("余额不足"); message.error(lan.$t('yuebuzu'));
} else { } else {
cashout( cashout(
toRaw(payinfo.value), toRaw(payinfo.value),

View File

@ -245,7 +245,7 @@ export default defineComponent({
console.log(info) console.log(info)
if(info.type.split("/")[0]!="video"){ if(info.type.split("/")[0]!="video"){
ifallowvideo.value ifallowvideo.value
message.error("文件必须是视频格式") message.error(lan.$t('wenjiangeshi'))
}else{ }else{
ifallowvideo.value=true ifallowvideo.value=true
@ -265,15 +265,15 @@ export default defineComponent({
console.log(routes.query,"adsadsa") console.log(routes.query,"adsadsa")
const subdata=toRaw(form.value) const subdata=toRaw(form.value)
if(subdata.title==""){ if(subdata.title==""){
message.error("标题不能为空") message.error(lan.$t('biaotiweikong'))
return return
}else if(subdata.img==""){ }else if(subdata.img==""){
message.error("封面不能为空") message.error(lan.$t('fengmianweikong'))
return return
}else if(subdata.fileurl==""){ }else if(subdata.fileurl==""){
message.error("视频文件不能为空") message.error(lan.$t('wenjianweikong'))
}else if(subdata.desc==""){ }else if(subdata.desc==""){
message.error("视频简介不能为空") message.error(lan.$t('jianjieweikong'))
} }
else{ else{
@ -293,7 +293,7 @@ export default defineComponent({
function beforeUpload(info?: any){ function beforeUpload(info?: any){
console.log(info.type) console.log(info.type)
if(info.type.split('/')[0]!="image"){ if(info.type.split('/')[0]!="image"){
message.error("上传文件必须是图片格式") message.error(lan.$t('fengmiangeshi'))
ifalowupload.value=false ifalowupload.value=false
return return
}else{ }else{

View File

@ -328,25 +328,25 @@ export default defineComponent({
console.log(toRaw(form), 111); console.log(toRaw(form), 111);
const subdata: any = toRaw(form.value); const subdata: any = toRaw(form.value);
if (subdata.title == "") { if (subdata.title == "") {
message.error("直播标题不能为空"); message.error(lan.$t('zhibobiaotiweikong'));
return; return;
} else if (subdata.img == "") { } else if (subdata.img == "") {
message.error("直播封面不能为空"); message.error(lan.$t('zhibofengmianweikong'));
return; return;
} else if (subdata.fileurl == "") { } else if (subdata.fileurl == "") {
message.error("视频介绍不能为空"); message.error(lan.$t('shipinjieshaoweikong'));
return; return;
} else if (subdata.dateline == "") { } else if (subdata.dateline == "") {
message.error("开始时间不能为空"); message.error(lan.$t('kaishishijianweikong'));
return; return;
} else if (subdata.livetime == "") { } else if (subdata.livetime == "") {
message.error("直播时长不能为空"); message.error(lan.$t('zhiboshichangweikong'));
return; return;
} else if (subdata.livenumber == "") { } else if (subdata.livenumber == "") {
message.error("直播人数不能为空"); message.error(lan.$t('zhiborenshuweikong'));
return; return;
} else if (subdata.desc == "") { } else if (subdata.desc == "") {
message.error("直播简介不能为空"); message.error(lan.$t('zhibojianjieweikong'));
return; return;
} else { } else {
@ -364,7 +364,7 @@ export default defineComponent({
liveadd(subdata); liveadd(subdata);
} }
} else { } else {
message.error("您尚未获得直播资格"); message.error(lan.$t('wuzhibozigeale'));
} }
} }
}) })
@ -425,7 +425,7 @@ export default defineComponent({
console.log(info); console.log(info);
if (info.type.split("/")[0] != "video") { if (info.type.split("/")[0] != "video") {
ifallowupload.value = false; ifallowupload.value = false;
message.error("视频介绍的文件格式错误"); message.error(lan.$t('shipinjieshaoccuowu'));
return; return;
} else { } else {
ifallowupload.value = true; ifallowupload.value = true;
@ -473,7 +473,7 @@ export default defineComponent({
function beforeUploadpic(info?: any) { function beforeUploadpic(info?: any) {
console.log(info); console.log(info);
if (info.type.split("/")[0] != "image") { if (info.type.split("/")[0] != "image") {
message.error("封面必须是图片文件"); message.error(lan.$t('fengmiangeshi'));
ifallowpic.value = false; ifallowpic.value = false;
return; return;
} else { } else {

View File

@ -219,7 +219,7 @@ export default defineComponent({
const id = useRoute().query.id; const id = useRoute().query.id;
TRTC.checkSystemRequirements().then((result: any) => { TRTC.checkSystemRequirements().then((result: any) => {
if(!result) { if(!result) {
message.error("您的浏览器不支持视频通话请下载新版chrome浏览器") message.error(lan.$t('buzhichitonghua'))
} }
}) })
async function qiehuan(){ async function qiehuan(){
@ -272,7 +272,7 @@ export default defineComponent({
const result = await TRTC.checkSystemRequirements() const result = await TRTC.checkSystemRequirements()
console.log(result,11111) console.log(result,11111)
if(!result) { if(!result) {
message.error("您的浏览器不支持屏幕分享请下载新版chrome"); message.error(lan.$t('buzhichifenxiang'));
shexiang() shexiang()
return ; return ;
} }
@ -283,7 +283,7 @@ export default defineComponent({
.initialize() .initialize()
.catch((error: string) => { .catch((error: string) => {
console.error('初始化本地流失败 ' + error); console.error('初始化本地流失败 ' + error);
message.error("请选择分享的内容") message.error(lan.$t('xuanzefenxiangneirong'))
setTimeout(()=>{ setTimeout(()=>{
pingmu() pingmu()
@ -378,7 +378,7 @@ export default defineComponent({
visible.value = false; visible.value = false;
}).catch((error: string) => { }).catch((error: string) => {
message.error('关闭失败: ' + error); message.error(lan.$t('guanbishibai')+':' + error);
}); });
} }