Commit 1afacd0f authored by 黄奎's avatar 黄奎

页面修改

parent 19c63f2a
......@@ -364,8 +364,7 @@
submitForm(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
//let content = this.$refs.UeEditor1.getUEContent();
//this.addMsg.MaterialInfo = content;
this.apipost("/api/Share/SetShareFriend", this.addMsg,
res => {
this.loading = false;
......
......@@ -219,7 +219,6 @@
this.getData()
}
this.getgradeList();
},
methods: {
input(){},
......
......@@ -187,7 +187,7 @@
<li class="menu_item" :class="{'Fchecked':isChecked=='/educationOrder'}" @click="isChecked='/educationOrder',CommonJump('educationOrder')">
<i class="el-icon-menu"></i><span>课程订单</span>
</li>
<li class="menu_item" :class="{'Fchecked':isChecked=='/uploadKCSet'}" @click="isChecked='/uploadKCSet',CommonJump('uploadKCSet')">
<!-- <li class="menu_item" :class="{'Fchecked':isChecked=='/uploadKCSet'}" @click="isChecked='/uploadKCSet',CommonJump('uploadKCSet')">
<i class="el-icon-menu"></i><span>上传配置</span>
</li>
<li class="menu_item" :class="{'Fchecked':isChecked=='/activityList'}" @click="isChecked='/activityList',CommonJump('activityList')">
......@@ -195,7 +195,7 @@
</li>
<li class="menu_item" :class="{'Fchecked':isChecked=='/resultPageList'}" @click="isChecked='/resultPageList',CommonJump('resultPageList')">
<i class="el-icon-menu"></i><span>调查列表</span>
</li>
</li> -->
</ul>
</div>
</div>
......
......@@ -75,7 +75,10 @@
this.changeState = false;
},
getUEContent() { // 获取内容方法
return this.editor.getContent()
if (this.editor) {
return this.editor.getContent();
}
return "";
},
loadUe() {
const _this = this;
......@@ -102,11 +105,11 @@
}
});
this.editor.addListener('keyup', editor => {
this.isInputChange = false;
this.isInputChange = true;
_this.$emit('input', _this.editor.getContent());
});
this.editor.addListener('contentChange', editor => {
this.isInputChange = false;
this.isInputChange = true;
_this.$emit('input', _this.editor.getContent());
});
}
......
......@@ -33,7 +33,7 @@
</div>
</div>
<div class="diy-component-edit imgVisible" :class="{'visibleA':imageData.isCked}">
<UE :defaultMsg="data.content" :config="config" ref="ue" @input="input"></UE>
<UE v-model="data.content" :defaultMsg="data.content" :config="config" ref="ue" :IsMultiple="true"></UE>
</div>
</div>
</div>
......@@ -47,15 +47,19 @@
},
data() {
return {
data: this.imageData.data,
data: {
content: ''
},
config: {
initialFrameWidth: null,
initialFrameHeight: 350,
},
content: ''
};
},
created() {},
created() {
var content = this.imageData.data.content;
this.data.content = content;
},
methods: {
//向父组件传值 并调用排序
resetSord(IsUp) {
......@@ -65,16 +69,23 @@
delPlugin() {
this.$emit('comDelPlugin', this.index);
},
input(obj) {
this.data.content = obj
getContent() {
return this.$refs.ue.getUEContent();
},
},
computed: {},
mounted() {
this.$refs.ue.InitData();
this.$refs.ue.loadUe();
},
watch: {
data: {
deep: true,
handler(newVal, oldVal) {
let newContent = newVal.content;
this.data.content = newContent;
this.imageData.data.content = newContent;
},
}
}
};
......
......@@ -280,22 +280,22 @@
@comDelPlugin="comDelPlugin" :index="index" :dataLeng="dataList.length"></imageText>
<topic v-if="item.Id=='topic'" :topicData="item" @getSord="getSord" @comDelPlugin="comDelPlugin"
:index="index" :dataLeng="dataList.length"></topic>
<shopinfo v-if="item.Id=='shop-info'" :shopinfoData="item" @getSord="getSord" @comDelPlugin="comDelPlugin"
:index="index" :dataLeng="dataList.length"></shopinfo>
<shopinfo v-if="item.Id=='shop-info'" :shopinfoData="item" @getSord="getSord"
@comDelPlugin="comDelPlugin" :index="index" :dataLeng="dataList.length"></shopinfo>
<sidao v-if="item.Id=='drive-guide'" :sidaoData="item" @getSord="getSord" @comDelPlugin="comDelPlugin"
:index="index" :dataLeng="dataList.length"></sidao>
<education v-if="item.Id=='education'" :eduData="item" @getSord="getSord" @comDelPlugin="comDelPlugin"
:index="index" :dataLeng="dataList.length"></education>
<educationArticle v-if="item.Id=='educationArticle'" :zxData="item" @getSord="getSord" @comDelPlugin="comDelPlugin"
:index="index" :dataLeng="dataList.length"></educationArticle>
<educationCustom v-if="item.Id=='educationCustom'" :cusData="item" @getSord="getSord" @comDelPlugin="comDelPlugin"
:index="index" :dataLeng="dataList.length"></educationCustom>
<reservestore v-if="item.Id=='reservestore'" :reserData="item" @getSord="getSord" @comDelPlugin="comDelPlugin"
:index="index" :dataLeng="dataList.length"></reservestore>
<storeGoods v-if="item.Id=='storeGoods'" :storeData="item" @getSord="getSord" @comDelPlugin="comDelPlugin"
:index="index" :dataLeng="dataList.length"></storeGoods>
<educationteacher v-if="item.Id=='educationteacher'" :lsData="item" @getSord="getSord" @comDelPlugin="comDelPlugin"
:index="index" :dataLeng="dataList.length"></educationteacher>
<educationArticle v-if="item.Id=='educationArticle'" :zxData="item" @getSord="getSord"
@comDelPlugin="comDelPlugin" :index="index" :dataLeng="dataList.length"></educationArticle>
<educationCustom v-if="item.Id=='educationCustom'" :cusData="item" @getSord="getSord"
@comDelPlugin="comDelPlugin" :index="index" :dataLeng="dataList.length"></educationCustom>
<reservestore v-if="item.Id=='reservestore'" :reserData="item" @getSord="getSord"
@comDelPlugin="comDelPlugin" :index="index" :dataLeng="dataList.length"></reservestore>
<storeGoods v-if="item.Id=='storeGoods'" :storeData="item" @getSord="getSord"
@comDelPlugin="comDelPlugin" :index="index" :dataLeng="dataList.length"></storeGoods>
<educationteacher v-if="item.Id=='educationteacher'" :lsData="item" @getSord="getSord"
@comDelPlugin="comDelPlugin" :index="index" :dataLeng="dataList.length"></educationteacher>
</div>
</div>
</div>
......@@ -575,7 +575,7 @@
right: 0, //右边距
bottom: 0, //下边距
left: 0, //左边距
searchPosition:0,//搜索框位置(0-默认,1-顶部)
searchPosition: 0, //搜索框位置(0-默认,1-顶部)
}
}
this.dataList.push(searchObj);
......@@ -1281,11 +1281,11 @@
headInfo: "赞美生活,样样满意", //用户介绍
backgroundPicUrl: '', //背景图片
backgroundColor: '#ffffff', //背景颜色
bottonImg:"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/1598255454000_522.png",//按钮图片
fontColor:"",//字体颜色
fontName:"",//字体
fontSize:12,//字体大小
isBold:"true",//是否加粗
bottonImg: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/1598255454000_522.png", //按钮图片
fontColor: "", //字体颜色
fontName: "", //字体
fontSize: 12, //字体大小
isBold: "true", //是否加粗
}
};
this.dataList.push(shopInfoObj);
......@@ -1295,7 +1295,7 @@
let driveObj = {
Id: 'drive-guide',
isCked: false,
data:{
data: {
SearchBackground: '', //搜索背景
SearchTips: '', //搜索框文字
Tips: '每辆车都会配备一名专业导游,方便游客出行', // 按钮上面的文字提示
......@@ -1311,10 +1311,10 @@
IsShowCarClass: 1, //是否显示车辆类型筛选0-否,1-是
IsShowTravelGuestNum: 1, //是否显示出行人数筛选0-否,1-是
ButtonFilletPX: 0, // 按钮圆角像素
PaddingTop:0, //上边距
PaddingBottom:0, //下边距
PaddingLeft:0, //左边距
PaddingRight:0 //右边距
PaddingTop: 0, //上边距
PaddingBottom: 0, //下边距
PaddingLeft: 0, //左边距
PaddingRight: 0 //右边距
}
}
this.dataList.push(driveObj);
......@@ -1324,15 +1324,15 @@
let eduObj = {
Id: 'education',
isCked: false,
data:{
Cover:'', //封面图
Name:'', //课程名称
showProgress:0, //显示进度
PaddingTop:0, //上边距
PaddingBottom:0, //下边距
PaddingLeft:0, //左边距
PaddingRight:0, //右边距
BtnPosition:0 //按钮位置
data: {
Cover: '', //封面图
Name: '', //课程名称
showProgress: 0, //显示进度
PaddingTop: 0, //上边距
PaddingBottom: 0, //下边距
PaddingLeft: 0, //左边距
PaddingRight: 0, //右边距
BtnPosition: 0 //按钮位置
}
}
this.dataList.push(eduObj);
......@@ -1341,17 +1341,17 @@
case 'educationArticle':
let zxObj = {
Id: 'educationArticle',
isCked:false,
data:{
goodsLength:10, //商品数量
addGoodsType:0, //商品添加方式【0-自定义,1-最新】
listStyle:-1, //列表样式[-1-列表模式,0-左右滑动,1-一行一个]
isCked: false,
data: {
goodsLength: 10, //商品数量
addGoodsType: 0, //商品添加方式【0-自定义,1-最新】
listStyle: -1, //列表样式[-1-列表模式,0-左右滑动,1-一行一个]
backgroundColor: '#fff', //背景颜色
SearchFilletPX:0,//圆角
PaddingTop:0, //上边距
PaddingBottom:0, //下边距
PaddingLeft:0, //左边距
PaddingRight:0, //右边距
SearchFilletPX: 0, //圆角
PaddingTop: 0, //上边距
PaddingBottom: 0, //下边距
PaddingLeft: 0, //左边距
PaddingRight: 0, //右边距
list: [], //商品列表
}
}
......@@ -1360,42 +1360,42 @@
//自定义列表
case 'educationCustom':
let customObj = {
Id:'educationCustom',
isCked:false,
data:{
goodsLength:10, //商品数量
listStyle:-1, //列表样式[-1-列表模式,0-左右滑动,1-一行一个,2-一行两个3-一行三个]
backgroundColor:'#fff',//背景颜色
PaddingTop:0, //上边距
PaddingBottom:0, //下边距
PaddingLeft:0, //左边距
PaddingRight:0, //右边距
SearchFilletPX:0, //组件圆角
list:[] //自定义列表
Id: 'educationCustom',
isCked: false,
data: {
goodsLength: 10, //商品数量
listStyle: -1, //列表样式[-1-列表模式,0-左右滑动,1-一行一个,2-一行两个3-一行三个]
backgroundColor: '#fff', //背景颜色
PaddingTop: 0, //上边距
PaddingBottom: 0, //下边距
PaddingLeft: 0, //左边距
PaddingRight: 0, //右边距
SearchFilletPX: 0, //组件圆角
list: [] //自定义列表
}
}
this.dataList.push(customObj);
break;
case 'reservestore':
let reserObj = {
Id:'reservestore',
isCked:false,
data:{
PaddingTop:0, //上边距
PaddingBottom:0, //下边距
PaddingLeft:0, //左边距
PaddingRight:0, //右边距
IsShowStoreImg:true, //是否显示商店图片
SearchFilletPX:0 //圆角像素
Id: 'reservestore',
isCked: false,
data: {
PaddingTop: 0, //上边距
PaddingBottom: 0, //下边距
PaddingLeft: 0, //左边距
PaddingRight: 0, //右边距
IsShowStoreImg: true, //是否显示商店图片
SearchFilletPX: 0 //圆角像素
}
}
this.dataList.push(reserObj);
break;
case 'storeGoods':
let storeGoodObj = {
Id:'storeGoods',
isCked:false,
data:{
Id: 'storeGoods',
isCked: false,
data: {
showCat: false, //显示分类
catPosition: 'top', //分类栏位置
catStyle: 1, //分类样式
......@@ -1435,16 +1435,16 @@
case 'educationteacher':
let lsObj = {
Id: 'educationteacher',
isCked:false,
data:{
addGoodsType:0, //商品添加方式【0-自定义,1-最新】
listStyle:0, //列表样式[-1-列表模式,0-左右滑动,1-一行一个]
isCked: false,
data: {
addGoodsType: 0, //商品添加方式【0-自定义,1-最新】
listStyle: 0, //列表样式[-1-列表模式,0-左右滑动,1-一行一个]
backgroundColor: '#fff', //背景颜色
SearchFilletPX:0,//圆角
PaddingTop:0, //上边距
PaddingBottom:0, //下边距
PaddingLeft:0, //左边距
PaddingRight:0, //右边距
SearchFilletPX: 0, //圆角
PaddingTop: 0, //上边距
PaddingBottom: 0, //下边距
PaddingLeft: 0, //左边距
PaddingRight: 0, //右边距
TeacherList: [], //商品列表
}
}
......@@ -1477,7 +1477,6 @@
getItem(item) {
this.dataList.forEach(x => {
x.isCked = false;
})
if (item.Id == "rubik") {
if (item.data.list && item.data.list.length > 0) {
......
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