|
@@ -43,5 +43,14 @@ Page({
|
|
|
]
|
|
|
|
|
|
this.setData({ slides, categories })
|
|
|
+ },
|
|
|
+ mySomeFunc:function(){
|
|
|
+ wx.scanCode({ onlyFromCamera:false, success:scanOK, fail:scanFail});
|
|
|
+ },
|
|
|
+ scanOK:function(){
|
|
|
+ wx.showToast({title:"签到成功!"});
|
|
|
+ },
|
|
|
+ scanFail: function () {
|
|
|
+ wx.showToast({ title: "请重新尝试!" });
|
|
|
}
|
|
|
})
|