微信小程序开发示例:仿写饿了么个人中心页面

  2017年7月13日,微信小程序开发实例讲解之微信小程序饿了么小程序案例,很多人都想问微信小程序饿了么案例怎么做?下面从多个方面来谈谈微信小程序饿了么代码示例。

  7月16日开始,阿里巴巴国际站将实施重复铺货处罚新规。对于重复铺货商品占“审核通过且已上架”商品量≥10%且重复铺货商品数≥100的商家,或者,店铺重复铺货产品数≥1000的商家,阿里巴巴国际站将根据规则进行处罚和通知。

 




附带2个技能:
  • 经典列表页样式
  • grid网络

WXML文件:

[mw_shl_code=html,true]
<view class="summary">
        
                <image src="/images/default-avatar.png" class="avatar" />
        
                <view class="nickname">黄秀杰view>
view>

<view class="account">
        <view class="item">
                <view class="value balance">0.00view>
                <view class="caption">余额view>
        view>
        <view class="item">
                <view class="value coupon">0view>
                <view class="caption">优惠view>
        view>
        <view class="item">
                <view class="value credit">0view>
                <view class="caption">积分view>
        view>
view>

<view class="listview">
        <view class="item">
                <image class="hd" src="/images/address.png" />
                <view class="bd">收货地址view>
                <view class="ft">view>
        view>
view>


<view class="logout">
        退出登录
view>[/mw_shl_code]

WXSS文件:

[mw_shl_code=css,true]/*会员中心*/

page {
        background: #eee;
}

/*个人信息*/
.summary {
        background: #0097ff;
        display: flex;
        flex-direction: row;
        align-items: center;
}

/*头像*/
.summary .avatar {
        width: 80px;
        height: 80px;
        margin: 20px;
}

/*昵称*/
.summary .nickname {
        color: white;
        font-size: 22px;
}

/*.个人信息*/

/*账户信息*/
.account {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        margin-top: 10px;
        background: white;
}

/*每一项*/
.account .item {
        display: flex;
        flex-direction: column;
        text-align: center;
        margin-left: 0;
        flex: 1;
        border-right: 1px solid #eee;
}

.account .item:last-child {
        border-right: 0;
}

/*数值*/
.account .item .value {
        font-size: 18px;
        padding-top: 10px;
}

/*after通用样式*/
.account .item .value:after {
        font-size: 12px;
        margin-left: 5px;
}

/*余额*/
.account .item .balance {
        color: #fd9900;
}

/*单位*/
.account .item .balance:after {
        content: '元';
}

/*优惠*/
.account .item .coupon {
        color: #ff5f3e;
}

/*单位*/
.account .item .coupon:after {
        content: '个';
}

/*积分*/
.account .item .credit {
        color: #6ac20b;
}

/*单位*/
.account .item .credit:after {
        content: '分';
}

/*标签*/
.account .item .caption {
        margin-top: -10px;
        color: #666;
        font-size: 14px;
}
/*.账户信息*/

/*通用列表*/
.listview {
        margin-top: 10px;
}

/*列表项*/
.listview .item {
        background: white;
        display: flex;
        flex-direction: row;
        align-items: center;
        position: relative;
        margin-left: 0;
        height: 50px;
}

/*箭头*/
.listview .item:after {
        content: " ";
        height: 8px;
        width: 8px;
        border-width: 2px 2px 0 0;
        border-color: #ccc;
        border-style: solid;
        transform:rotate(45deg);
        position: absolute;
        margin-top: -4px;
        top: 50%;
        right: 22px;
}

.listview .item .hd {
        width: 25px;
        height: 25px;
        margin: 5px 0;
        padding-left: 20px;
}

.listview .item .bd {
        font-size: 16px;
        margin-left: 10px;
}
/*.通用列表*/

/*退出登录*/
.logout {
        background: white;
        padding: 2px 0;
        margin-top: 20px;
        margin-bottom: 20px;
        color: #f23030;
        text-align: center;
        font-size: 18px;
        line-height: 220%;
}[/mw_shl_code]
 


  想了解更多关于微信小程序开发实例教程内容,可以点击阅读微信小程序开发教程。


【本站声明】
  1、本站文章中所选用的图片及文字来源于网络以及用户投稿,由于未联系到知识产权人或未发现有关知识产权的登记,如有知识产权人并不愿意我们使用,如果有侵权请立即联系。
  2、本网站不对文章中所涉及的内容真实性、准确性、可靠性负责,仅系客观性描述,如您需要了解该类商品/服务详细的资讯,请您直接与该类商品/服务的提供者联系。


KESION 科汛软件

KESION 科汛软件是国内领先的在线教育软件及私域社交电商软件服务提供商,长期专注于为企业提供在线教育软件及社交电商SaaS平台解决方案。
公司核心产品云开店SaaS社交电商服务平台、在线教育SaaS服务平台、教育企业数字化SaaS云平台、企微营销助手、私有化独立部署品牌网校和在线教育咨询等。

KESION 不断通过技术创新,提供产品和服务,助力企业向数字化转型,通过科技驱动商业革新,让商业变得更智慧!



▼点击进入科汛官网了解更多



上/下篇
  • 微信小程序赋能商业 还需第三方服务商hishop

  • 微信小程序开发教程实例代码:变量值共用小技

换一换相关推荐
精选内容
热点精选