添加订单页及第三方组件vant
This commit is contained in:
parent
25f6fd13ed
commit
18c070db92
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
/node_modules/
|
||||
/miniprogram/miniprogram_npm/
|
@ -4,7 +4,8 @@
|
||||
"pages/personal/personal",
|
||||
"pages/sign/index",
|
||||
"pages/user/login",
|
||||
"pages/logs/logs"
|
||||
"pages/logs/logs",
|
||||
"pages/order/index"
|
||||
],
|
||||
"window": {
|
||||
"backgroundTextStyle": "light",
|
||||
@ -16,18 +17,28 @@
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "pages/index/index",
|
||||
"iconPath":"assets/images/icon_home.png",
|
||||
"selectedIconPath":"assets/images/icon_home_selected.png",
|
||||
"iconPath": "assets/images/icon_home.png",
|
||||
"selectedIconPath": "assets/images/icon_home_selected.png",
|
||||
"text": "首页"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/order/index",
|
||||
"iconPath": "assets/images/icon_order.png",
|
||||
"selectedIconPath": "assets/images/icon_order_selected.png",
|
||||
"text": "订单"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/personal/personal",
|
||||
"iconPath":"assets/images/icon_user.png",
|
||||
"selectedIconPath":"assets/images/icon_user_selected.png",
|
||||
"iconPath": "assets/images/icon_user.png",
|
||||
"selectedIconPath": "assets/images/icon_user_selected.png",
|
||||
"text": "个人中心"
|
||||
}
|
||||
]
|
||||
},
|
||||
"style": "v2",
|
||||
"sitemapLocation": "sitemap.json"
|
||||
"sitemapLocation": "sitemap.json",
|
||||
"usingComponents": {
|
||||
"v-button": "@vant/weapp/button/index",
|
||||
"v-tab": "@vant/weapp/tab/index",
|
||||
"v-tabs": "@vant/weapp/tabs/index"
|
||||
}
|
||||
}
|
BIN
miniprogram/assets/images/icon_order.png
Normal file
BIN
miniprogram/assets/images/icon_order.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
BIN
miniprogram/assets/images/icon_order_selected.png
Normal file
BIN
miniprogram/assets/images/icon_order_selected.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
4
miniprogram/pages/order/index.json
Normal file
4
miniprogram/pages/order/index.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
}
|
||||
}
|
20
miniprogram/pages/order/index.less
Normal file
20
miniprogram/pages/order/index.less
Normal file
@ -0,0 +1,20 @@
|
||||
/* pages/order/index.wxss */
|
||||
.header-wrapper{
|
||||
height: 50px;
|
||||
}
|
||||
.header{
|
||||
position: fixed;
|
||||
left:0;
|
||||
top:0;
|
||||
right:0;
|
||||
height: 50px;
|
||||
}
|
||||
.item{
|
||||
height: 300px;
|
||||
background-color: red;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.item1{
|
||||
background-color: royalblue;
|
||||
height: 1px;
|
||||
}
|
66
miniprogram/pages/order/index.ts
Normal file
66
miniprogram/pages/order/index.ts
Normal file
@ -0,0 +1,66 @@
|
||||
// pages/order/index.ts
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
23
miniprogram/pages/order/index.wxml
Normal file
23
miniprogram/pages/order/index.wxml
Normal file
@ -0,0 +1,23 @@
|
||||
<!--pages/order/index.wxml-->
|
||||
<view>
|
||||
<view class="header-wrapper">
|
||||
<view class="header">
|
||||
头部
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<v-button type="default">默认按钮</v-button>
|
||||
<v-button type="primary">主要按钮</v-button>
|
||||
<v-button type="info">信息按钮</v-button>
|
||||
<v-button type="warning">警告按钮</v-button>
|
||||
<v-button type="danger">危险按钮</v-button>
|
||||
</view>
|
||||
<v-tabs>
|
||||
<v-tab title="xxxx1">xxx1xxx</v-tab>
|
||||
<v-tab title="xxxx2">xxx2xxx</v-tab>
|
||||
<v-tab title="xxxx3">xxx3xxx</v-tab>
|
||||
</v-tabs>
|
||||
<view class="order-list-wrapper">
|
||||
<view class="order-item"></view>
|
||||
</view>
|
||||
</view>
|
27
package-lock.json
generated
27
package-lock.json
generated
@ -7,9 +7,12 @@
|
||||
"": {
|
||||
"name": "miniprogram-ts-less-quickstart",
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"@vant/weapp": "^1.10.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^18.11.9",
|
||||
"miniprogram-api-typings": "^2.12.0"
|
||||
"miniprogram-api-typings": "^3.6.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
@ -18,10 +21,15 @@
|
||||
"integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@vant/weapp": {
|
||||
"version": "1.10.8",
|
||||
"resolved": "https://registry.npmmirror.com/@vant/weapp/-/weapp-1.10.8.tgz",
|
||||
"integrity": "sha512-/6w9U5UclF50ORqM2C9vo+oB5+PCOuLGpNI3cxYL1z0xWqPYratitLRhQx53Qo6k1I45Ri8DYGCb7C0qSKB/xg=="
|
||||
},
|
||||
"node_modules/miniprogram-api-typings": {
|
||||
"version": "2.12.0",
|
||||
"resolved": "https://registry.npmmirror.com/miniprogram-api-typings/-/miniprogram-api-typings-2.12.0.tgz",
|
||||
"integrity": "sha512-ibvbqeslVFur0IAvTxLMvsbtvVcMo6gwvOnj0YZHV7aeDLu091VQRrETT2QuiG9P6aZWRcxeNGJChRKVPCp9VQ==",
|
||||
"version": "3.6.0",
|
||||
"resolved": "https://registry.npmmirror.com/miniprogram-api-typings/-/miniprogram-api-typings-3.6.0.tgz",
|
||||
"integrity": "sha512-xwK3PzhhxnfWqDfBikHLdAbj7Wy4F887nBcQrzwuF758Fw2qC4ivpKPL9t0uJZk5QYnU28+NqA7Q3lzYGMHQnA==",
|
||||
"dev": true
|
||||
}
|
||||
},
|
||||
@ -32,10 +40,15 @@
|
||||
"integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==",
|
||||
"dev": true
|
||||
},
|
||||
"@vant/weapp": {
|
||||
"version": "1.10.8",
|
||||
"resolved": "https://registry.npmmirror.com/@vant/weapp/-/weapp-1.10.8.tgz",
|
||||
"integrity": "sha512-/6w9U5UclF50ORqM2C9vo+oB5+PCOuLGpNI3cxYL1z0xWqPYratitLRhQx53Qo6k1I45Ri8DYGCb7C0qSKB/xg=="
|
||||
},
|
||||
"miniprogram-api-typings": {
|
||||
"version": "2.12.0",
|
||||
"resolved": "https://registry.npmmirror.com/miniprogram-api-typings/-/miniprogram-api-typings-2.12.0.tgz",
|
||||
"integrity": "sha512-ibvbqeslVFur0IAvTxLMvsbtvVcMo6gwvOnj0YZHV7aeDLu091VQRrETT2QuiG9P6aZWRcxeNGJChRKVPCp9VQ==",
|
||||
"version": "3.6.0",
|
||||
"resolved": "https://registry.npmmirror.com/miniprogram-api-typings/-/miniprogram-api-typings-3.6.0.tgz",
|
||||
"integrity": "sha512-xwK3PzhhxnfWqDfBikHLdAbj7Wy4F887nBcQrzwuF758Fw2qC4ivpKPL9t0uJZk5QYnU28+NqA7Q3lzYGMHQnA==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
|
@ -9,5 +9,8 @@
|
||||
"devDependencies": {
|
||||
"@types/node": "^18.11.9",
|
||||
"miniprogram-api-typings": "^3.6.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vant/weapp": "^1.10.8"
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,14 @@
|
||||
"outputPath": ""
|
||||
},
|
||||
"minified": true,
|
||||
"ignoreUploadUnusedFiles": true
|
||||
"ignoreUploadUnusedFiles": true,
|
||||
"packNpmManually": true,
|
||||
"packNpmRelationList": [
|
||||
{
|
||||
"packageJsonPath": "./package.json",
|
||||
"miniprogramNpmDistDir": "./miniprogram/"
|
||||
}
|
||||
]
|
||||
},
|
||||
"simulatorType": "wechat",
|
||||
"simulatorPluginLibVersion": {},
|
||||
|
Loading…
x
Reference in New Issue
Block a user