#
whycq
2022-12-28 cce6dc1eb47dbb08c7cc243a22f967977c0d856a
#
2个文件已修改
18 ■■■■■ 已修改文件
pages/login/login.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/user/user_detail/userDetail.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/login/login.vue
@@ -49,6 +49,7 @@
        },
        onLoad:function(){
            this.user.userName = uni.getStorageSync('userName')
            this.user.password = uni.getStorageSync('password')
            // #ifdef APP-PLUS
            var that=this
            plus.runtime.getProperty( plus.runtime.appid, function ( wgtinfo ) {
@@ -87,6 +88,7 @@
                            that.load.btnText = '登录中';
                            uni.setStorageSync('token', res.data.token);
                            uni.setStorageSync('userName', that.user.userName);
                            uni.setStorageSync('password', that.user.password);
                            setTimeout(()=> {
                                uni.showToast({title: '登录成功'})
                                setTimeout(()=> {
pages/user/user_detail/userDetail.vue
@@ -50,6 +50,9 @@
                </view>
            </view>
        </view>
        <view class="logOut" @click="logOut()">
            退出登录
        </view>
    </view>
</template>
@@ -76,7 +79,11 @@
                        console.log(res.data);
                    }
                })
            },
            logOut() {
            }
        }
    }
</script>
@@ -96,9 +103,16 @@
    }
    .item-right {
        text-align: end;
        color: #afafaf;
        color: #6f6f6f;
    }
    .user-icons {
        text-align: center;
    }
    .logOut {
        height: 90rpx;
        line-height: 90rpx;
        text-align: center;
        background-color: #fff;
        margin-top: 30rpx;
    }
</style>