123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <template>
- <view class="gg-container">
- <view class="gg-tit">
- <view class="gg-title">
- 我的吉农宝
- </view>
- <view>
- <image class="userinfo-avatar" :src="userInfo.avatarUrl" mode="cover"></image>
- <text class="userinfo-nickname">{{userInfo.nickName}}</text>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- components: {
- },
- data() {
- return {
- userInfo: {}
- }
- },
- onLoad() {
- this.userInfo = getApp().globalData.userInfo
- },
- methods: {
- }
- }
- </script>
- <style scoped lang="scss">
- .gg-container {
- background-color: #fff;
- display: flex;
- flex-direction: column;
- }
- .gg-tit {
- width: 100%;
- position: relative;
- top: 0;
- height: 40vh;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .gg-body {
- display: flex;
- position: absolute;
- bottom: 25rpx;
- width: 728rpx;
- height: 80rpx;
- background: linear-gradient(0deg, #90BDFF, #3F93FD, #20B9D5);
- border-radius: 40rpx;
- justify-content: center;
- align-items: center;
- .gg-body-tt {
- text-align: left;
- margin-left: 5px;
- width: 25%;
- display: flex;
- align-items: center;
- color: #FFFFFF;
- font-weight: bold;
- font-size: 30rpx;
- }
- }
- .content {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- }
- .background {
- border: 15px solid hsla(0, 0%, 100%, .5);
- background: white;
- background-clip: padding-box;
- /*从padding开始往外面裁剪背景*/
- }
- .container {
- display: flex;
- margin-left: 10px;
- margin-top: 10px;
- margin-right: 10px;
- align-items: flex-start;
- justify-content: space-between;
- }
- .gg-title {
- width: 100%;
- position: absolute;
- z-index: 1;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: 40rpx;
- font-weight: bold;
- color: #FFFFFF;
- }
- .notice {
- margin: 20rpx;
- padding: 20rpx;
- background: #FFFFFF;
- box-shadow: 0rpx 8rpx 17rpx 0rpx rgba(0, 0, 0, 0.04);
- border-radius: 10rpx;
- }
- .text {
- border-left: 15rpx solid #3857F3;
- padding-left: 20rpx;
- }
- </style>
|