|
|
@@ -31,6 +31,31 @@ Page({
|
|
|
name:"哆啦A梦"
|
|
|
})
|
|
|
},
|
|
|
+ handleRead() {
|
|
|
+ console.log(wx.getStorageSync('username'))
|
|
|
+ },
|
|
|
+ handleShow() {
|
|
|
+ // wx.showToast({
|
|
|
+ // title: '你好',
|
|
|
+ // icon:'error'
|
|
|
+ // })
|
|
|
+ wx.setStorageSync('username', '小强')
|
|
|
+ },
|
|
|
+ handleJump() {
|
|
|
+ console.log("你好")
|
|
|
+ // wx.navigateTo({
|
|
|
+ // url: '/pages/detail/detail',
|
|
|
+ // })
|
|
|
+ // wx.redirectTo({
|
|
|
+ // url: '/pages/detail/detail',
|
|
|
+ // })
|
|
|
+ // wx.switchTab({
|
|
|
+ // url: '/pages/list/list',
|
|
|
+ // })
|
|
|
+ wx.reLaunch({
|
|
|
+ url: '/pages/list/list',
|
|
|
+ })
|
|
|
+ },
|
|
|
handleInput(e) {
|
|
|
// console.log(e,'eeee')
|
|
|
const key = e.detail.value;
|