当前位置: 首页 > article >正文

简单的微信小程序个人 个人详情页

一、示例

1.个人页面

2.个人详情页面

二、示例代码

1.wxml页面

<!--pages/user/user.wxml-->
<view class="mine-wrapper">
  <view class="avatar-wrapper">
    <view>
      <view class="avatar">
      
        <image style="border-radius:50%;" src="{{pic}}"></image>
      </view>
      <view class="text">
        <text wx:if="{{username}}">{{username}}</text>
        <text wx:else bindtap="toLogin">注册 / 登录</text>
      </view>
    </view>
  </view>
  <view class="list-wrapper">
  <view>
    <view bindtap="my" class="lists">
        <view class='content'> 
          <view class="listimg">
            <image src="/images/用户.png"></image>
          </view>
          <view class="listtext">个人资料</view>
          <view class="listicon">{{item.tips}}</view>
          <view class="arrows">
            <image src="/images/右_right.png"></image>
          </view>
        </view>
    </view>
        <!-- 分割线 -->
        <view class="divLine"></view>
  </view>

    <view class="alllists">
      <block wx:for="{{menuitems}}" wx:key="menu_for">
        <navigator url="{{item.url}}" class="lists">
        <view class='content'> 
          <view class="listimg">
            <image src="{{item.icon}}"></image>
          </view>
          <view class="listtext">{{item.text}}</view>
          <view class="listicon">{{item.tips}}</view>
          <view class="arrows">
            <image src="{{item.arrows}}"></image>
          </view>
        </view>
        </navigator>
        <!-- 分割线 -->
        <view class="divLine"></view>
      </block>
    </view>
  </view>

  <view class="btn" >
    <button style="color: rgb(8, 8, 8); background-color: rgb(11, 247, 70); "  bind:tap="lout">退出登录</button>
    </view> 
</view>

2.scss页面 部分

.banner{
  width: 100%;
  height: 460rpx;
  .pic{
    width: 100%;
    height: 100%;
  }
}
.content{
  .body{
    padding:50rpx 30rpx;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    .box{
      width: 330rpx;     
      margin-bottom:30rpx; 
    }
  }

http://www.kler.cn/news/329385.html

相关文章:

  • WebUI密码被锁定
  • NCU-机器学习-作业3:基于SVM的手写字识别
  • linux ip命令使用
  • 大数据毕业设计选题推荐-热门微博数据可视化分析系统-Hive-Hadoop-Spark
  • C动态内存管理
  • 【在Linux世界中追寻伟大的One Piece】System V共享内存
  • Spring DI 笔记
  • 使用rust写一个Web服务器——单线程版本
  • 基于SSM+VUE的学生宿舍管理系统
  • 单链表的增删改查(数据结构)
  • OpenAI o1:使用限额提高,o1 模型解析
  • 基于STM32的智能家居语音控制系统:集成LD3320、ESP8266设计流程
  • 【优选算法】(第八篇)
  • 【已解决】【Hadoop】【./bin的使用】bash: ./bin/hdfs: 没有那个文件或目录
  • 基于 Transformer 的中英文翻译项目
  • .NET CORE程序发布IIS后报错误 500.19
  • 网络通信——OSPF协议(基础篇)
  • c++primer第十三章 类继承
  • 第一弹:C++ 的基本知识概述
  • 【深海王国】初中生也能画的电路板?目录合集
  • 巡检机器人室内配电室应用
  • web - RequestResponse
  • LeetCode[中等] 739. 每日温度
  • E. Tree Pruning Codeforces Round 975 (Div. 2)
  • EEditor中的redo/uodo机制
  • React 组件命名规范
  • 【Java】六大设计原则和23种设计模式
  • 【RabbitMQ——具体使用场景】
  • leetcode69--x的平方根
  • Python编程和开发过程中让人编程效率和舒适度很高的工具Anaconda