本文给大家带来的是微信小程序快递运单备注信息填写页面设计制作开发教程,制作好以后效果图如下:
一、wxml页面代码如下:
<!--pages/remarkWaybillTrans/remarkWaybillTrans.wxml-->
<view class="remark">
<view class="re-left">备注</view>
<view class="re-right">
<textarea class="textarea" placeholder="请把您运单的特殊要求写下来吧" placeholder-style="color:#6a6a6a;" />
</view>
</view>
<view class="submit">
<button type="primary" style="background-color: #f9364f;">
确定
</button>
</view>
|
二、wxss样式文件代码如下:
/* pages/remarkWaybillTrans/remarkWaybillTrans.wxss */
.remark{
display:flex;
margin-top:10px;
padding:10px 20px;
background-color:#ffffff;
}
.re-left{
width:12%;
color:#6a6a6a;
position: relative;
top: 10px;
}
.re-right{
width:80%;
}
.textarea{
height:80px;
border:1px solid #6e6e6e;
padding:10px;
width:100%;
font-size:12px;
}
.submit{
margin-top:20px;
padding:0 20px;
margin-bottom:40px;
}
|
三、js页面代码如下:
// pages/remarkWaybillTrans/remarkWaybillTrans.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
|