小程序
小游戏
企业微信
微信支付
扫描小程序码分享
1 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
问题未复现。麻烦提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
const patient = wx.getStorageSync('patient');
if (patient) {
console.log("已经登录了");
this.setData({
patient: JSON.parse(patient)
})
} else {
console.log("未登录,需要跳转到登录页");
wx.navigateTo({
url: '../../login/login',
}
这边没有复现问题哦,麻烦提供一下这种格式的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
我可以给你拍个小视频吗
设计到两个页面
提供一下代码片段哈,不需要的逻辑代码可以省略掉,就是最简单的能复现问题就行
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
问题未复现。麻烦提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
const patient = wx.getStorageSync('patient');
if (patient) {
console.log("已经登录了");
this.setData({
patient: JSON.parse(patient)
})
} else {
console.log("未登录,需要跳转到登录页");
wx.navigateTo({
url: '../../login/login',
})
}
这边没有复现问题哦,麻烦提供一下这种格式的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
我可以给你拍个小视频吗
设计到两个页面
提供一下代码片段哈,不需要的逻辑代码可以省略掉,就是最简单的能复现问题就行