Commit 920a1086 authored by chris.yang's avatar chris.yang

reactor:优化代码

parent 812ae707
<template>
<view class="normal-image">
<BasicText :elementInfo="elementInfo.option.title"></BasicText>
<BasicText :elementInfo="elementInfo"></BasicText>
<u-empty
v-if="!elementInfo.option.images.list.length"></u-empty>
<u-image class="uimage"
......
<template>
<view class="remoteView">
<BasicText :elementInfo="elementInfo"></BasicText>
<u-image
class="remoteImage"
:src="imageUrl"
......@@ -10,18 +11,27 @@
</template>
<script>
import uniEcCanvas from '@/components/uni-ec-canvas/uni-ec-canvas'
import * as echarts from '@/components/uni-ec-canvas/echarts'
import echartElementData from '@/mixins/echartElementData.js'
let chart = null
export default {
name:"RemoteImage",
mixins: [echartElementData],
data() {
return {
ec: {
lazyLoad: true
},
imageUrl:"",
windowWidth: 0, //屏幕宽度
imageHeight:0 //图片高度
};
},
components: {
uniEcCanvas
},
computed:{
},
methods:{
......
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