添加组件及页面
This commit is contained in:
6
miniprogram/pages/orders/orderSort/orderSort.json
Normal file
6
miniprogram/pages/orders/orderSort/orderSort.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"card-plugin": "/pages/components/card-plugin/card-plugin"
|
||||
},
|
||||
"navigationBarTitleText": "订单排序"
|
||||
}
|
||||
51
miniprogram/pages/orders/orderSort/orderSort.ts
Normal file
51
miniprogram/pages/orders/orderSort/orderSort.ts
Normal file
@@ -0,0 +1,51 @@
|
||||
Page({
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
list: [1, 2],
|
||||
},
|
||||
|
||||
getList() {
|
||||
// Orders/getLiteOrders
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {},
|
||||
});
|
||||
7
miniprogram/pages/orders/orderSort/orderSort.wxml
Normal file
7
miniprogram/pages/orders/orderSort/orderSort.wxml
Normal file
@@ -0,0 +1,7 @@
|
||||
<block wx:for="{{list}}" wx:key="index">
|
||||
<card-plugin>
|
||||
<view slot="header">{{item}}</view>
|
||||
<view slot="content">{{item}}</view>
|
||||
<view slot="footer">{{item}}</view>
|
||||
</card-plugin>
|
||||
</block>
|
||||
0
miniprogram/pages/orders/orderSort/orderSort.wxss
Normal file
0
miniprogram/pages/orders/orderSort/orderSort.wxss
Normal file
Reference in New Issue
Block a user