Commit 07be67dd authored by Mac's avatar Mac

1

parent ad855a9c
......@@ -31,11 +31,16 @@
<el-form-item label="讲师国籍" prop="Nationality" class="is-required" size="small">
<el-input v-model="addMsg.Nationality" />
</el-form-item>
<el-form-item label="是否外国人" size="small">
<el-switch v-model="addMsg.IsForeigners" active-color="#409EFF" :active-value="1"
:inactive-value="0">
</el-switch>
<el-form-item label="国旗" class="is-required" size="small">
<el-button @click="openChangeDig(2)" size="small">选择文件</el-button>
<div class="app-gallery-item" style="position: relative;width: 100px;margin-top: 10px;">
<img v-if="!addMsg.ForeignersUrl || addMsg.ForeignersUrl==''"
src="../../assets/img/default.png" style="width:80px;height:80px" alt="">
<img v-else style="width:80px;height:80px" :src="addMsg.ForeignersUrl"
alt="">
</div>
</el-form-item>
<el-form-item label="上架状态" size="small">
<el-switch v-model="addMsg.TeacherStatus" active-color="#409EFF" :active-value="1"
:inactive-value="2">
......@@ -100,8 +105,8 @@
WorkYears:'',
TeacherStatus:2,
LableNameList:'',
IsForeigners:0,//是否外国人0-否,1-是
Nationality:'',//老师国籍
ForeignersUrl:'',//国家图片
},
dynamicTags: [],
inputVisible: false,
......@@ -165,6 +170,10 @@
let url = this.getIconLink(msg.url)
this.addMsg.TeacherLogo = url
}
if(this.imgType==2){
let url = this.getIconLink(msg.url)
this.addMsg.ForeignersUrl = url
}
this.changeState = false;
},
......@@ -180,6 +189,10 @@
this.Error('请上传品牌Logo')
return false
}
if(this.addMsg.ForeignersUrl==''){
this.Error('请上传国家国旗')
return false
}
this.addMsg.LableNameList = this.dynamicTags
let content = this.$refs.ue.getUEContent();
......@@ -328,5 +341,7 @@
margin-left: 10px;
vertical-align: bottom;
}
.addLecturer .el-form-item__content{
line-height: 0;
}
</style>
......@@ -19,14 +19,14 @@
<el-form-item label="是否开启">
<el-switch v-model="addMsg.IsShow" :active-value="1" :inactive-value="0"></el-switch>
</el-form-item>
<el-form-item label="是否开启">
<el-form-item label="音频时间">
<el-input placeholder="请输入内容" v-model="addMsg.Seconds" size="small" type="number" :min="0" style="max-width:600px">
<template slot="append"></template>
</el-input>
</el-form-item>
<el-form-item label="商品视频">
<el-form-item label="音频地址">
<el-input v-model="addMsg.MusicUrl" size="small" placeholder="请输入内容" style="max-width:600px">
<el-button @click="changevideo = true" slot="append">添加</el-button>
<el-button @click="changevideo = true" slot="append">添加</el-button>
</el-input>
</el-form-item>
......
......@@ -1446,7 +1446,7 @@
PaddingBottom:0, //下边距
PaddingLeft:0, //左边距
PaddingRight:0, //右边距
list: [], //商品列表
TeacherList: [], //商品列表
}
}
this.dataList.push(lsObj);
......
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