微信小程序開(kāi)發(fā)示例:仿寫(xiě)?zhàn)I了么個(gè)人中心頁(yè)面
2017-07-13
導(dǎo)讀:微信小程序開(kāi)發(fā)實(shí)例講解之微信小程序餓了么小程序案例,很多人都想問(wèn)微信小程序餓了么案例怎么做?下面從多個(gè)方面來(lái)談?wù)勎⑿判〕绦蝠I了么代碼示例。...
2017年7月13日,微信小程序開(kāi)發(fā)實(shí)例講解之微信小程序餓了么小程序案例,很多人都想問(wèn)微信小程序餓了么案例怎么做?下面從多個(gè)方面來(lái)談?wù)勎⑿判〕绦蝠I了么代碼示例。
7月16日開(kāi)始,阿里巴巴國(guó)際站將實(shí)施重復(fù)鋪貨處罰新規(guī)。對(duì)于重復(fù)鋪貨商品占“審核通過(guò)且已上架”商品量≥10%且重復(fù)鋪貨商品數(shù)≥100的商家,或者,店鋪重復(fù)鋪貨產(chǎn)品數(shù)≥1000的商家,阿里巴巴國(guó)際站將根據(jù)規(guī)則進(jìn)行處罰和通知。
附帶2個(gè)技能:
- 經(jīng)典列表頁(yè)樣式
- grid網(wǎng)絡(luò)
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">優(yōu)惠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]/*會(huì)員中心*/
page {
background: #eee;
}
/*個(gè)人信息*/
.summary {
background: #0097ff;
display: flex;
flex-direction: row;
align-items: center;
}
/*頭像*/
.summary .avatar {
width: 80px;
height: 80px;
margin: 20px;
}
/*昵稱(chēng)*/
.summary .nickname {
color: white;
font-size: 22px;
}
/*.個(gè)人信息*/
/*賬戶(hù)信息*/
.account {
display: flex;
flex-direction: row;
justify-content: space-around;
margin-top: 10px;
background: white;
}
/*每一項(xiàng)*/
.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;
}
/*數(shù)值*/
.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: '元';
}
/*優(yōu)惠*/
.account .item .coupon {
color: #ff5f3e;
}
/*單位*/
.account .item .coupon:after {
content: '個(gè)';
}
/*積分*/
.account .item .credit {
color: #6ac20b;
}
/*單位*/
.account .item .credit:after {
content: '分';
}
/*標(biāo)簽*/
.account .item .caption {
margin-top: -10px;
color: #666;
font-size: 14px;
}
/*.賬戶(hù)信息*/
/*通用列表*/
.listview {
margin-top: 10px;
}
/*列表項(xiàng)*/
.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]
想了解更多關(guān)于微信小程序開(kāi)發(fā)實(shí)例教程內(nèi)容,可以點(diǎn)擊閱讀微信小程序開(kāi)發(fā)教程。
第二部分:如何開(kāi)通一個(gè)小商店