当前位置: 首页 > Web前端 > HTML5

花半天时间写了个估计不会有人用的小程序,竟然还审核通过了

时间:2023-04-05 20:08:12 HTML5

花了半天时间写了一个没人会用的小程序,通过了审核。卡注册。估计没人会用?,只是作为练习,熟悉小程序的整个开发流程哈哈。没想到提交截图第二天就通过了。这个想法比较简单。只有一页。1.你可以选择一副或两副牌。2.点击相应的卡片,减少相应卡片的数量。撤销,撤销操作只保留最后100次点击操作4.重置操作会清除所有操作记录。开发者选择了mpvuehttp://mpvue.com/然后直接使用网格布局来排列卡片

操作方法//点击操作handleHase(obj){//这个用来记录操作历史this.updateHistory.push(JSON.parse(JSON.stringify(this.pokers)))if(this.pokers[obj.index][obj.huase]>0){this.pokers[obj.index][obj.huase]-=1this.pokers[obj.index].count-=1}else{this.pokers[obj.index][obj.huase]=this.defaultCountthis.pokers[obj.index].count+=1}}//undorollback(){letpokers=this.updateHistory[this.updateHistory.length-1]this.pokers=pokersthis.updateHistory.pop(this.updateHistory.length-1)}git地址https://github.com/jinggoing/...小程序代码