|
@@ -548,11 +548,13 @@
|
548
|
548
|
<div style="text-align:center;padding-bottom:20px;">
|
549
|
549
|
</div>
|
550
|
550
|
</el-dialog>
|
|
551
|
+ <div id="hiddenRule" style="display:none;"></div>
|
551
|
552
|
</div>
|
552
|
553
|
</template>
|
553
|
554
|
<script>
|
554
|
555
|
import { mapState, createNamespacedHelpers } from 'vuex'
|
555
|
556
|
import { quillEditor } from 'vue-quill-editor'
|
|
557
|
+import uploadImage from 'quill-plugin-image'
|
556
|
558
|
const { mapState: mapActivityLuckDrawState, mapActions: mapActivityLuckDrawActions } = createNamespacedHelpers('activityLuckDraw')
|
557
|
559
|
const { mapActions: mapCardActions } = createNamespacedHelpers('card')
|
558
|
560
|
const { mapActions: mapCouponActions } = createNamespacedHelpers('coupon')
|
|
@@ -655,6 +657,15 @@ export default {
|
655
|
657
|
components: {
|
656
|
658
|
quillEditor,
|
657
|
659
|
},
|
|
660
|
+ mounted () {
|
|
661
|
+ uploadImage(this.$refs.myQuillEditor.quill, file => {
|
|
662
|
+ console.log(file)
|
|
663
|
+ return this.toolClass.upload(file).then(data => {
|
|
664
|
+ const url = data.result.url
|
|
665
|
+ return { src: url, alt: '' }
|
|
666
|
+ })
|
|
667
|
+ })
|
|
668
|
+ },
|
658
|
669
|
created () {
|
659
|
670
|
if (this.$route.query.isread) {
|
660
|
671
|
this.isread = true
|
|
@@ -848,6 +859,9 @@ export default {
|
848
|
859
|
this.$router.push({ name: 'listOfLotteryActivities' })
|
849
|
860
|
},
|
850
|
861
|
submitLuckdrawData () { // 提交活动信息
|
|
862
|
+ // document.getElementById('hiddenRule').innerHTML = this.postData.LuckdrawRule
|
|
863
|
+ // var imgArr = document.getElementById('hiddenRule').getElementsByTagName('img')
|
|
864
|
+ // console.log(imgArr)
|
851
|
865
|
if (!this.checkData()) {
|
852
|
866
|
return false
|
853
|
867
|
}
|