wxPano 接口无法访问 config
<pano :panolist="panolist" :entryname="entrypanoname" style="width: 320px;height: 240px;" :autoinit="autoinit">
<cover-view style="position: fixed;top:80%;width:100%;text-align:center;">
</pano>
// autoinit:false,entrypanoname:'xindamen',
wxPano = requirePlugin("wxPano")
console.log("wxPano:",wxPano)
// 全景展示平台加载完成事件
wxPano.onReady = function (e) { //wxPano初始化完成后会触发此事件
console.log("onReady",e)
}
wxPano.config({
panolist:[{
name:"xindamen",
src: "https://www.aiotforest.com/pano2048-1024.jpg",
infospots:[ //信息标记
{
type: "modal",
modal: {
title: "wxPano",
content: "欢迎使用wxPano"
},
position: { x: 0.092, y: 0.434 },
size: 1,
icon: "info",
bindcamera:true,
bindsize: 0.5,
bindicon: "info",
bindopacity:0.75,
bindposition: { x: 0.5, y: 0.75 }
},
{
type: "page",
page: function(){
wx.navigateTo({url: "ar",
success(evt) {
console.log(evt);
}
})
},
position: { x: 0.437, y: 0.447 },
size: 1,
icon: "info"
}
]
}],
request:wx.request,
loader:"GLLoader",
entryname:"xindamen"
})