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) { let that = this; that.setData({ Containnerheight: main.getWindowHeight(), }); }, onShow:function(e){ let that = this; let words=app.globalData.OCRWords; that.data.Words=[]; let list=app.globalData.SelectedWords; let count=0; for(let i=0;i=this.data.CountMax){ wx.showToast({ title: '本次最多'+this.data.CountMax+"个", icon:"none" }); return ; } let word=e.currentTarget.dataset.word; let list=this.data.Words; let count=0; for(let i=0;i