import common from '../../utils/util'; import main from '../../utils/main'; const COUNT_MAX=10; const app = getApp(); Page({ data: { IsShowAlert:false, Count:0, CountMax:COUNT_MAX, Words:[], IsShowExample:false, }, onLoad: function (options) { var that = this; let words=app.globalData.OCRWords; that.data.Words=[]; for(let i=0;i0){ this.setData({ IsShowAlert:false, }); } else{ this.setData({ IsShowAlert:true, }); } this.setData({ Words:list, Count:count, }); }, goto: function (e) { let that=this; var url=e.currentTarget.dataset.url; wx.navigateTo({ url: url, }); }, close:function(n){ if (!n) n=1; wx.navigateBack({ delta: n }) }, submit:function(){ if (this.data.Count==0){ this.setData({ IsShowAlert:true, }); } else{ let list=this.data.Words; for(let i=0;i