1. let _that = this;
    2. document.addEventListener("plusready", function () {
    3. plus.runtime.getProperty(plus.runtime.appid, function (wgtinfo) {
    4. console.log(wgtinfo.version);
    5. _that.myVersion = wgtinfo.version;
    6. _that.checkupdate()//调用检查版本号的函数
    7. });
    8. });
    9. checkupdate(){
    10. axios({
    11. url: "",
    12. method: "",
    13. })
    14. .then((res) => {
    15. if (res.data.status === 200) {
    16. if(把获取的版本号与当前手机app判断){
    17. this.tipsShow = true //弹窗显示
    18. }
    19. }
    20. });
    21. },