| | |
| | | </block> |
| | | <!-- #endif --> |
| | | <!-- 其他小程序通过vue渲染图表 --> |
| | | <!-- #ifdef MP-360 || MP-BAIDU || MP-QQ || MP-TOUTIAO || MP-WEIXIN || MP-KUAISHOU || MP-LARK || MP-JD --> |
| | | <!-- #ifdef MP-WEIXIN || MP-BAIDU || MP-QQ || MP-TOUTIAO || MP-KUAISHOU || MP-LARK || MP-JD || MP-360 --> |
| | | <block v-if="type2d"> |
| | | <view v-if="ontouch" @tap="_tap"> |
| | | <canvas |
| | |
| | | script.src = './uni_modules/qiun-data-charts/static/app-plus/echarts.min.js' |
| | | // #endif |
| | | // #ifdef H5 |
| | | const { origin } = window.location |
| | | const rooturl = origin + process.env.BASE_URL |
| | | script.src = rooturl + 'uni_modules/qiun-data-charts/static/h5/echarts.min.js' |
| | | const rooturl = window.location.origin |
| | | const directory = instance.getDataset().directory |
| | | script.src = rooturl + directory + 'uni_modules/qiun-data-charts/static/h5/echarts.min.js' |
| | | // #endif |
| | | script.onload = this.newEChart |
| | | document.head.appendChild(script) |