国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

微信小程序個人中心頁面 案例

這篇具有很好參考價值的文章主要介紹了微信小程序個人中心頁面 案例。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

微信小程序 開發(fā),經(jīng)常會遇到個人中心頁面 的需求,為了方便大家使用,決定將個人總想頁面進(jìn)行開源,以供大家參考交流。

一、效果預(yù)覽

? ? ?微信小程序個人中心頁面 案例

?二、源代碼

abouthe.json文件

{
  "usingComponents": {},
  "navigationBarBackgroundColor": "#F2F2F2",
  "backgroundTextStyle": "light",
  "disableScroll":true,
  "navigationStyle": "custom"
}

abouthe.wxml文件

<!-- 用戶列表選項 -->
<scroll-view class='scbg' scroll-y='true'>
  <view class="parent_catainer">
    <!-- 頭部 -->
    <!-- style="background-image: url('/images/persons/mind_head_bg.jpg');" -->
    <view class="container_head">
      <image class="head_img" src="/images/mind_head_bg.jpg"></image>
      <view class="head_pers_info" bindtap="head_pers_info">
        <view class="head_pic">
          <image class="head_pic_content" mode="aspectFit" src="/images/lemon.png"></image>
        </view>
        <view class="inf_content">
          <text class="user_info">李大錘</text>
          <text class="family_info_ct_phone">聯(lián)系電話:17365963369</text>
          <text class="family_info_ct">關(guān)聯(lián)賬號:王老師  </text>
        </view>
      </view>
    </view>

    <view class="userItemListView">
      <view class="my_priview_md" bindtap="myappointpage">
        <image class="my_priview" src="/images/mine_fiend.png"></image>
        <text>我的預(yù)約</text>
        <view class="arrow"></view>
      </view>
      <view class="my_priview_md" bindtap="openmyorder">
        <image class="my_priview" src="/images/mine_fiend.png"></image>
        <text>我的訂單</text>
        <view class="arrow"></view>
      </view>
      <view class="my_priview_md" bindtap="myaid">
        <image class="my_priview" src="/images/mine_fiend.png"></image>
        <text>我的救助</text>
        <view class="arrow"></view>
      </view>
      <view class="my_priview_md" bindtap="myfriend">
        <image class="my_priview" src="/images/mine_fiend.png"></image>
        <text>我的親友</text>
        <view class="arrow"></view>
      </view>
      <view class="my_priview_md" bindtap="mycollection">
        <image class="my_priview" src="/images/mine_fiend.png"></image>
        <text>我的收藏</text>
        <view class="arrow"></view>
      </view>
    </view>

    <view class="userItemListView">
      <view class="my_priview_md" bindtap="bind">
        <image class="my_priview" src="/images/mine_fiend.png"></image>
        <text>個人資料</text>
        <view class="arrow"></view>
      </view>
      <view class="my_priview_md" bindtap="updatepassword">
        <image class="my_priview" src="/images/mine_fiend.png"></image>
        <text>修改密碼</text>
        <view class="arrow"></view>
      </view>
      <view class="my_priview_md" bindtap="aboutus" hidden="true">
        <image class="my_priview" src="/images/mine_fiend.png"></image>
        <text>關(guān)于我們</text>
        <view class="arrow"></view>
      </view>
      <view class="my_priview_md" bindtap="logout">
        <image class="my_priview" src="/images/mine_fiend.png"></image>
        <text>退出登錄</text>
        <view class="arrow"></view>
      </view>
    </view>

    <view class="last_view"></view>
  </view>
</scroll-view>

abouthe.wxss文件

/* 用戶列表選項樣式 */
page {
  width: 100%;
  height: 100%;
  background:#f0f0f0;
}
.parent_catainer{
  background:#f0f0f0;
}

/* 頭部背景圖片 */
.container_head{
  height: 370rpx;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.head_img {
  position: absolute;
  width: 100%;
  height: 370rpx;
}

.head_pers_info{
   height: 200rpx;
   width: 100%;
   margin-bottom: 50rpx;
   justify-content: left;
   display: flex;
   align-items: center;
   flex-direction: row;
   position: absolute;
}

.head_pic{
  width: 120rpx;
  height: 120rpx;
  border-radius: 60rpx;
  background-color: #08cbb0;
  color: #ffffff;
  align-items: center;
  display: flex;
  justify-content: center;
}
.head_pic_content{
  position: absolute;
  width: 110rpx;
  height: 110rpx;
  border-radius: 55rpx;
  background-color: white;
}

.head_pic{
  margin-left: 5%;
}

.inf_content{
  display: flex;
  flex-direction: column;
  margin-left: 10rpx;
  align-items: flex-start;
  justify-content: center;
   color: #ffffff;
   padding-bottom: 5rpx;
}

.user_info{
  text-align: left;
  font-size: 32rpx;
  font-weight: bold;
  margin-bottom: 8rpx;
}

.family_info_ct_phone{
  text-align: center;
  justify-content: center;
  font-size: 28rpx;
  margin-bottom: 2rpx;
}

.family_info_ct{
  text-align: center;
  justify-content: center;
  font-size: 28rpx;
  margin-bottom: 2rpx;
  width: 500rpx;
  overflow: hidden;
  white-space: nowrap;
  text-align: left;
  text-overflow: ellipsis;
}

.userItemListView{
  background: #fff;
  padding: 0 0rpx;
  margin: 24rpx 0;
}
 
.userItemListView > view{
  height: 94rpx;
  line-height: 94rpx;
  padding-left: 50rpx;
  border-bottom: 1rpx solid #F1F1F1;
  position: relative;
}
 
/* 移除最后一個元素的下邊框 */
.userItemListView > view:last-child{
  border: none;
}

.my_priview_md{
  display: flex;
  align-items: center;
}

.my_priview{
  width: 50rpx;
  height: 50rpx;
  margin-right: 10rpx;
}
 
.arrow{
  width: 16rpx;
  height: 16rpx;
  border-top: 4rpx solid #999;
  border-right: 4rpx solid #999;
  /* 旋轉(zhuǎn)45度 */
  transform: rotate(45deg);
  /* 調(diào)整位置 */
  position: absolute;
  right: 30rpx;
  top: 38rpx;
}
 
.userItemListView text{
  font-size: 30rpx;
}

.last_view{
   background:#f0f0f0;
   width: 100%;
   height:1200rpx;
}

abouthe.ts文件文章來源地址http://www.zghlxwxcb.cn/news/detail-503946.html

// pages/personal/myinfo.ts
Page({

  /**
   * 頁面的初始數(shù)據(jù)
   */
  data: {

  },

  /**
   * 生命周期函數(shù)--監(jiān)聽頁面加載
   */
  onLoad() {

    var that = this;
  },

  /**
   * 生命周期函數(shù)--監(jiān)聽頁面初次渲染完成
   */
  onReady() {

  },

  // 退出登錄
  logout: function () {

    wx.showModal({
      content: '確定退出登錄嗎?',
      cancelColor: '#666666',//666666
      confirmColor: '#666666',
      success(res) {
        if (res.confirm) {
          wx.reLaunch({
            url: '/pages/login/login'
          })
          console.log('用戶點擊確定')
        } else if (res.cancel) {
          console.log('用戶點擊取消')
        }
      },
      fail: function (res) { },//接口調(diào)用失敗的回調(diào)函數(shù)
      complete: function (res) { },//接口調(diào)用結(jié)束的回調(diào)函數(shù)(調(diào)用成功、失敗都會執(zhí)行
    })

  },
  /**
   * 生命周期函數(shù)--監(jiān)聽頁面顯示
   */
  onShow() {
    wx.hideHomeButton();
    wx.hideShareMenu();
  },

  /**
   * 生命周期函數(shù)--監(jiān)聽頁面隱藏
   */
  onHide() {

  },

  /**
   * 生命周期函數(shù)--監(jiān)聽頁面卸載
   */
  onUnload() {

  },

  /**
   * 頁面相關(guān)事件處理函數(shù)--監(jiān)聽用戶下拉動作
   */
  onPullDownRefresh() {

  },

  /**
   * 頁面上拉觸底事件的處理函數(shù)
   */
  onReachBottom() {

  },

  /**
   * 用戶點擊右上角分享
   */
  onShareAppMessage() {

  }
})

到了這里,關(guān)于微信小程序個人中心頁面 案例的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進(jìn)行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • 微信小程序進(jìn)階——后臺交互個人中心授權(quán)登錄

    微信小程序進(jìn)階——后臺交互個人中心授權(quán)登錄

    目錄 一、小程序登錄微信登錄接口演示 1.1 項目導(dǎo)入 1.2 method1? 1.3 method2 二、小程序授權(quán)登錄 2.1 登錄過程 2.1.1 詳解 2.1.2 圖解 2.2 后端代碼導(dǎo)入 2.3 前端代碼導(dǎo)入 ?編輯 2.4 案例演示 前端代碼如下: 2.4.1 前端調(diào)用接口地址 2.4.2 個人中心 后端代碼如下: 2.5 效果演示? ? 然后

    2024年02月02日
    瀏覽(26)
  • 微信小程序個人中心、我的界面(示例二)

    微信小程序個人中心、我的界面(示例二)

    微信小程序個人中心、我的界面,自定義頂部狀態(tài)欄,實現(xiàn)滾動隱藏顯示狀態(tài)信息,界面簡單,代碼粘貼即用。更多微信小程序界面示例,請進(jìn)入我的主頁哦! 1、js代碼 2、wxml代碼 3、wxss代碼 4、json代碼 更多微信小程序示例的分享,請進(jìn)入我的主頁查看哦。。。

    2024年02月11日
    瀏覽(26)
  • 微信小程序之會議OA個人中心后臺交互

    微信小程序之會議OA個人中心后臺交互

    目錄 獲取用戶昵稱頭像和昵稱 小程序登錄 登錄-小程序 wx.checkSession wx.login wx.request 后臺 準(zhǔn)備數(shù)據(jù)表 反向生成工具生成 準(zhǔn)備封裝前端傳過來的數(shù)據(jù) 小程序服器配置 導(dǎo)入微信小程序SDK application.yml WxProperties WxConfig WxAuthController 登錄-小程序 login.js user.js util.js emoji wx.getUserProfi

    2024年02月22日
    瀏覽(32)
  • 【微信小程序】個人信息頁面/我的頁面

    【微信小程序】個人信息頁面/我的頁面

    hello,小伙伴們大家好,小編是后端開發(fā),沒有系統(tǒng)接觸過前端學(xué)習(xí),最近公司要求開發(fā)小程序,斗膽承接,其中有個人信息頁面比較常用,現(xiàn)記錄下來,供初學(xué)者參考,有不符合規(guī)范的地方,希望各位大佬包含,評論區(qū)指點!廢話不多說,直接上代碼。 樣式使用了flex布局

    2024年02月11日
    瀏覽(24)
  • 【小白專用】微信小程序個人中心、我的界面(示例一)23.11.04

    【小白專用】微信小程序個人中心、我的界面(示例一)23.11.04

    微信小程序使用button按鈕實現(xiàn)個人中心、我的界面(示例一) 微信小程序個人中心、我的界面,使用button按鈕實現(xiàn)界面布局,更好的將分享好友、獲取頭像等功能展現(xiàn)出來,更多示例界面,請前往我的主頁哦。 1、js代碼: 2、wxml代碼 3、wxss代碼 4、json代碼

    2024年02月05日
    瀏覽(25)
  • 【微信小程序獨立開發(fā) 3】個人資料頁面編寫

    【微信小程序獨立開發(fā) 3】個人資料頁面編寫

    ?這一節(jié)完成用戶個人信息昵稱的填寫和獲取 上節(jié)編寫完成后的頁面如下所示: 首先進(jìn)行用戶昵稱編輯功能的編寫,鏟屎官昵稱采用了navigator標(biāo)簽,當(dāng)點擊昵稱時會自動跳轉(zhuǎn)到昵稱編輯頁面。 首先輸入昵稱編輯界面的導(dǎo)航欄名稱 基本頁面編寫 當(dāng)在個人信息頁面點擊昵稱時,

    2024年03月09日
    瀏覽(22)
  • 微信小程序個人訂單,微信頭像用戶名信息獲取頁面

    微信小程序個人訂單,微信頭像用戶名信息獲取頁面

    這里先做一個簡單的展示,這個頁面是我參加比賽做的小程序,分享給大家,不是很好看哈哈哈哈 話不多說,先上代碼。首先是前端頁面 .wxml ? 接下來是美化一下頁面.wxss 最后就是js頁面啦,這里涉及到微信頭像昵稱的獲取,還有一些button的實現(xiàn),我這里其他頁面沒有附著,

    2024年02月11日
    瀏覽(22)
  • 【微信小程序】基礎(chǔ)篇 -- 案例 - 本地生活(列表頁面)(三十)

    【微信小程序】基礎(chǔ)篇 -- 案例 - 本地生活(列表頁面)(三十)

    ?? 所屬專欄:【微信小程序開發(fā)教程】 ?? 作??者:我是夜闌的狗?? ?? 個人簡介:一個正在努力學(xué)技術(shù)的CV工程師,專注基礎(chǔ)和實戰(zhàn)分享 ,歡迎咨詢! ?? 歡迎大家:這里是CSDN,我總結(jié)知識的地方,喜歡的話請三連,有問題請私信 ?? ?? ?? 您的點贊、關(guān)注、收藏、

    2024年04月28日
    瀏覽(36)
  • 案例125:基于微信小程序的個人健康數(shù)據(jù)管理系統(tǒng)的設(shè)計與實現(xiàn)

    案例125:基于微信小程序的個人健康數(shù)據(jù)管理系統(tǒng)的設(shè)計與實現(xiàn)

    文末獲取源碼 開發(fā)語言:Java 框架:SSM JDK版本:JDK1.8 數(shù)據(jù)庫:mysql 5.7 開發(fā)軟件:eclipse/myeclipse/idea Maven包:Maven3.5.4 小程序框架:uniapp 小程序開發(fā)軟件:HBuilder X 小程序運(yùn)行軟件:微信開發(fā)者 目錄 前言 系統(tǒng)展示 管理員模塊的實現(xiàn) 用戶管理 知識科普管理 健康信息共享管理

    2024年02月02日
    瀏覽(27)
  • 萬能的微信小程序個人主頁:商城系統(tǒng)個人主頁、外賣系統(tǒng)個人主頁、購票系統(tǒng)個人主頁等等【全部源代碼分享+頁面效果展示+直接復(fù)制粘貼編譯即可】

    萬能的微信小程序個人主頁:商城系統(tǒng)個人主頁、外賣系統(tǒng)個人主頁、購票系統(tǒng)個人主頁等等【全部源代碼分享+頁面效果展示+直接復(fù)制粘貼編譯即可】

    ????????以下給出來四個常見的小程序個人主頁,分別是商城系統(tǒng)個人主頁,外賣系統(tǒng)個人主頁,掛號系統(tǒng)個人主頁,電影購票系統(tǒng)個人主頁。包括完整的頁面布局代碼,完整的樣式代碼。使用的時候,只需要將頁面代碼和樣式代碼復(fù)制到自己項目對應(yīng)的頁面即可。而且可

    2024年02月11日
    瀏覽(33)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包