#
whycq
2022-12-12 a61831cae4b9f6d1b20ac16a44a28d995bf9f057
#
2个文件已修改
46 ■■■■■ 已修改文件
pages/login/login.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/user/user.vue 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/login/login.vue
@@ -65,7 +65,7 @@
            onLogin() {
                let that = this
                uni.request({
                    url: 'http://localhost:9528/login.action',
                    url: 'http://192.168.50.101:9528/login.action',
                    fail(result) {
                        uni.showToast({title: '请求失败'})
                    },
pages/user/user.vue
@@ -1,8 +1,52 @@
<template>
    <view>
        <view class="user">
            <!-- 头像 -->
            <view class="user-avatar">
                <img src="../../static/image/头像.jpg" alt="">
                <!-- <image src="" mode="aspectFit"></image> -->
            </view>
            <!-- 信息 -->
            <view class="user-info">
                <view class="user-name">陈鹏
                </view>
            </view>
            <!-- 更多 -->
            <view></view>
        </view>
    </view>
</template>
<script>
</script>
<style>
    .user {
        width: 100%;
        height: 200rpx;
        background-color: #f8f8f8;
        display: grid;
        grid-template-columns: 1fr 4fr 1fr;
    }
    .user-avatar {
        height: 200rpx;
        width: 200rpx;
        /* background-color: aquamarine; */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .user-avatar img {
        height: 100rpx;
        border-radius: 20rpx;
    }
    .user-info {
        height: 200rpx;
        display: grid;
        grid-template-rows: 2fr 2fr;
        align-items: end;
        /* background-color: aqua; */
    }
</style>