添加组件及页面

This commit is contained in:
zhengw
2026-01-21 17:05:30 +08:00
parent a89e69c381
commit 7ff1a911dd
54 changed files with 1078 additions and 1009 deletions

View File

@@ -0,0 +1,6 @@
{
"usingComponents": {
"card-plugin": "/pages/components/card-plugin/card-plugin"
},
"navigationBarTitleText": "订单排序"
}

View File

@@ -0,0 +1,51 @@
Page({
/**
* 页面的初始数据
*/
data: {
list: [1, 2],
},
getList() {
// Orders/getLiteOrders
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {},
/**
* 生命周期函数--监听页面显示
*/
onShow() {},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {},
});

View 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>