koua
koua
  • 发布:2020-08-17 09:28
  • 更新:2020-08-19 18:18
  • 阅读:1546

renderjs 下使用 uni.showLoading

分类:uni-app

Tip : uni.showLoading is not a function at view.umd.min.js:1

2020-08-17 09:28 负责人:无 分享
已邀请:
koua

koua (作者)

<template>
<view>
测试跳转
</view>
</template>

<script>
export default {
data() {
return {

        }  
    },  
    methods: {  

    }  
}  

</script>

<script module="esrimap1" lang="renderjs">
export default {
mounted: function() {
this.arcgisInit("viewDiv");
},
methods: {
arcgisInit(div) {
uni.showLoading({
title: '加载中...'
});
setTimeout(function() {
uni.hideLoading();
}, 3000);
}
}
}
</script>

TypeError: uni.showLoading is not a function at view.umd.min.js:1

DCloud_UNI_GSQ

DCloud_UNI_GSQ

renderjs 运行在 view 层不支持直接调用 uni 相关 API(可以通过和逻辑层通迅实现)

该问题目前已经被锁定, 无法添加新回复