kun 19 1112 18:14

This commit is contained in:
沈学坤
2019-11-12 18:14:10 +08:00
parent ef39693c10
commit 1929087e9c
2 changed files with 8 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ var phoneEditor, _this
export default { export default {
components: {}, components: {},
props: { props: {
initialText: { initialTextVal: {
type: String, type: String,
required: false required: false
} }
@@ -18,7 +18,7 @@ export default {
data () { data () {
return {} return {}
}, },
created () { }, created () {},
mounted () { mounted () {
_this = this _this = this
phoneEditor = new E('websiteEditorElem') phoneEditor = new E('websiteEditorElem')
@@ -32,15 +32,15 @@ export default {
methods: {}, methods: {},
computed: {}, computed: {},
watch: { watch: {
initialText (val) { initialTextVal (val) {
// console.log(val) // console.log(val)
phoneEditor.$txt.html(_this.initialText) phoneEditor.$txt.html(_this.initialTextVal)
} }
} }
} }
</script> </script>
<style lang='scss' scoped> <style lang="scss" scoped>
#websiteEditorElem { #websiteEditorElem {
width: 100%; width: 100%;
height: 250px; height: 250px;

View File

@@ -549,7 +549,7 @@
<div id="rich"> <div id="rich">
<rich-text-one <rich-text-one
@quillVal="quillVal" @quillVal="quillVal"
:initialText="initialText" :initialTextVal="initialTextVal"
></rich-text-one> ></rich-text-one>
</div> </div>
</div> </div>
@@ -633,6 +633,7 @@ export default {
index_num: 2, index_num: 2,
sub: 0, sub: 0,
bgData: null, bgData: null,
initialTextVal: "",
initialText: "", initialText: "",
thff: false, thff: false,
imgUrl: { imgUrl: {
@@ -1080,6 +1081,7 @@ export default {
this.prodemofg = data.prodemofg; this.prodemofg = data.prodemofg;
this.prodemotwo = data.prodemotwo; this.prodemotwo = data.prodemotwo;
this.prodemojc = data.prodemojc; this.prodemojc = data.prodemojc;
this.initialTextVal = data.funds;
this.initialText = data.funds; this.initialText = data.funds;
let imgs = JSON.parse(data.proimages); let imgs = JSON.parse(data.proimages);