欢迎来到懒人模板!我们专注移动互联网,所有模板永久免费下载!
  • 首 页
  • 当前位置:主页 > 小程序教程 >

    微信小程序账户管理页面设置教程下载

    2018-06-25 10:24 来源/作者:懒人模板 分类:小程序教程  « »
    本文给大家带来的是微信小程序账户管理页面设置教程,制作好以后效果图如下:
    一、wxml页面代码如下:
    <import src="../common/head.wxml" />
    <import src="../common/foot.wxml" />
    
    <view class="container">
      <template is="head" data="{{title: UI[index].title}}"/>
    
      <view  class="userinfo">
          <image class="userinfo-avatar" src="{{userInfo.avatarUrl}}" background-size="cover"></image>
          <!--<text class="userinfo-nickname">{{UI[uindex].greeting}}\n{{userInfo.nickName}}</text>-->
          <text class="userinfo-nickname" wx:if="{{user !== null}}">You are logged in as, {{user.username}}</text>
          <text class="userinfo-nickname" wx:if="{{user == null}}">Please bind with your Employee ID</text>
      </view>
    
      <view class="page-section">
        
        <view class="weui-cells__title">{{UI[index].accountMg}}</view>
        <navigator wx:if="{{user == null}}" url="../user/user" class="navigator user">{{UI[index].bind}}</navigator>
        <navigator wx:if="{{user !== null}}" bindtap="unbind" class="navigator user">{{UI[index].unbind}}</navigator>
    
          <view class="weui-cells__title">{{UI[index].language}}</view>
          <view class="weui-cells weui-cells_after-title">
            <view class="weui-cell weui-cell_input">
              <view class="weui-cell__hd">
                <view class="weui-label">{{UI[index].currentLan}}</view>
              </view>
              <view class="weui-cell__bd">
                <picker bindchange="bindPickerChange" value="{{index}}" range="{{languages}}">
                  <view class="weui-input">{{languages[index]}}</view>
                </picker>
              </view>
            </view>
          </view>
        <!--</view>-->
    
        <view class="btn-area" id="buttonContainer">
          <button bindtap="save" type="primary">{{UI[index].save}}</button>
        </view>
      </view>    
      <!--<template is="foot" />-->
    </view>

    点击扫描效果预览免费下载免登陆网盘下载
    标签:
    * 懒人模板承诺:本站所有资源免费下载,无病毒,无弹窗,无干扰链接! 提点建议