温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

微信小程序开发中如何仿写饿了么个人中心页面

发布时间:2022-02-24 09:54:58 阅读:209 作者:小新 栏目:开发技术
开发者测试专用服务器限时活动,0元免费领,库存有限,领完即止! 点击查看>>

这篇文章主要介绍微信小程序开发中如何仿写饿了么个人中心页面,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!

附带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 {width80px;height80px;margin20px;
}/*昵称*/.summary .nickname {color: white;font-size22px;
}/*.个人信息*//*账户信息*/.account {display: flex;flex-direction: row;justify-content: space-around;margin-top10px;background: white;
}/*每一项*/.account .item {display: flex;flex-direction: column;text-align: center;margin-left0;flex1;border-right1px solid #eee;
}.account .item:last-child {border-right0;
}/*数值*/.account .item .value {font-size18px;padding-top10px;
}/*after通用样式*/.account .item .value:after {font-size12px;margin-left5px;
}/*余额*/.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-size14px;
}/*.账户信息*//*通用列表*/.listview {margin-top10px;
}/*列表项*/.listview .item {background: white;display: flex;flex-direction: row;align-items: center;position: relative;margin-left0;height50px;
}/*箭头*/.listview .item:after {content" ";height8px;width8px;border-width2px 2px 0 0;border-color#ccc;border-style: solid;transform:rotate(45deg);position: absolute;margin-top: -4px;top50%;right22px;
}.listview .item .hd {width25px;height25px;margin5px 0;padding-left20px;
}.listview .item .bd {font-size16px;margin-left10px;
}/*.通用列表*//*退出登录*/.logout {background: white;padding2px 0;margin-top20px;margin-bottom20px;color#f23030;text-align: center;font-size18px;line-height220%;
}[/mw_shl_code]

以上是“微信小程序开发中如何仿写饿了么个人中心页面”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注亿速云行业资讯频道!

亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI

开发者交流群×