添加订单页及第三方组件vant

This commit is contained in:
LittleBoy 2022-12-09 16:56:43 +08:00
parent 25f6fd13ed
commit 18c070db92
11 changed files with 163 additions and 15 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/node_modules/ /node_modules/
/miniprogram/miniprogram_npm/

View File

@ -4,7 +4,8 @@
"pages/personal/personal", "pages/personal/personal",
"pages/sign/index", "pages/sign/index",
"pages/user/login", "pages/user/login",
"pages/logs/logs" "pages/logs/logs",
"pages/order/index"
], ],
"window": { "window": {
"backgroundTextStyle": "light", "backgroundTextStyle": "light",
@ -16,18 +17,28 @@
"list": [ "list": [
{ {
"pagePath": "pages/index/index", "pagePath": "pages/index/index",
"iconPath":"assets/images/icon_home.png", "iconPath": "assets/images/icon_home.png",
"selectedIconPath":"assets/images/icon_home_selected.png", "selectedIconPath": "assets/images/icon_home_selected.png",
"text": "首页" "text": "首页"
}, },
{
"pagePath": "pages/order/index",
"iconPath": "assets/images/icon_order.png",
"selectedIconPath": "assets/images/icon_order_selected.png",
"text": "订单"
},
{ {
"pagePath": "pages/personal/personal", "pagePath": "pages/personal/personal",
"iconPath":"assets/images/icon_user.png", "iconPath": "assets/images/icon_user.png",
"selectedIconPath":"assets/images/icon_user_selected.png", "selectedIconPath": "assets/images/icon_user_selected.png",
"text": "个人中心" "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"
}
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1,4 @@
{
"usingComponents": {
}
}

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

View File

@ -0,0 +1,66 @@
// pages/order/index.ts
Page({
/**
*
*/
data: {
},
/**
* --
*/
onLoad() {
},
/**
* --
*/
onReady() {
},
/**
* --
*/
onShow() {
},
/**
* --
*/
onHide() {
},
/**
* --
*/
onUnload() {
},
/**
* --
*/
onPullDownRefresh() {
},
/**
*
*/
onReachBottom() {
},
/**
*
*/
onShareAppMessage() {
}
})

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

@ -7,9 +7,12 @@
"": { "": {
"name": "miniprogram-ts-less-quickstart", "name": "miniprogram-ts-less-quickstart",
"version": "1.0.0", "version": "1.0.0",
"dependencies": {
"@vant/weapp": "^1.10.8"
},
"devDependencies": { "devDependencies": {
"@types/node": "^18.11.9", "@types/node": "^18.11.9",
"miniprogram-api-typings": "^2.12.0" "miniprogram-api-typings": "^3.6.0"
} }
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
@ -18,10 +21,15 @@
"integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==", "integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==",
"dev": true "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": { "node_modules/miniprogram-api-typings": {
"version": "2.12.0", "version": "3.6.0",
"resolved": "https://registry.npmmirror.com/miniprogram-api-typings/-/miniprogram-api-typings-2.12.0.tgz", "resolved": "https://registry.npmmirror.com/miniprogram-api-typings/-/miniprogram-api-typings-3.6.0.tgz",
"integrity": "sha512-ibvbqeslVFur0IAvTxLMvsbtvVcMo6gwvOnj0YZHV7aeDLu091VQRrETT2QuiG9P6aZWRcxeNGJChRKVPCp9VQ==", "integrity": "sha512-xwK3PzhhxnfWqDfBikHLdAbj7Wy4F887nBcQrzwuF758Fw2qC4ivpKPL9t0uJZk5QYnU28+NqA7Q3lzYGMHQnA==",
"dev": true "dev": true
} }
}, },
@ -32,10 +40,15 @@
"integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==", "integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==",
"dev": true "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": { "miniprogram-api-typings": {
"version": "2.12.0", "version": "3.6.0",
"resolved": "https://registry.npmmirror.com/miniprogram-api-typings/-/miniprogram-api-typings-2.12.0.tgz", "resolved": "https://registry.npmmirror.com/miniprogram-api-typings/-/miniprogram-api-typings-3.6.0.tgz",
"integrity": "sha512-ibvbqeslVFur0IAvTxLMvsbtvVcMo6gwvOnj0YZHV7aeDLu091VQRrETT2QuiG9P6aZWRcxeNGJChRKVPCp9VQ==", "integrity": "sha512-xwK3PzhhxnfWqDfBikHLdAbj7Wy4F887nBcQrzwuF758Fw2qC4ivpKPL9t0uJZk5QYnU28+NqA7Q3lzYGMHQnA==",
"dev": true "dev": true
} }
} }

View File

@ -9,5 +9,8 @@
"devDependencies": { "devDependencies": {
"@types/node": "^18.11.9", "@types/node": "^18.11.9",
"miniprogram-api-typings": "^3.6.0" "miniprogram-api-typings": "^3.6.0"
},
"dependencies": {
"@vant/weapp": "^1.10.8"
} }
} }

View File

@ -18,7 +18,14 @@
"outputPath": "" "outputPath": ""
}, },
"minified": true, "minified": true,
"ignoreUploadUnusedFiles": true "ignoreUploadUnusedFiles": true,
"packNpmManually": true,
"packNpmRelationList": [
{
"packageJsonPath": "./package.json",
"miniprogramNpmDistDir": "./miniprogram/"
}
]
}, },
"simulatorType": "wechat", "simulatorType": "wechat",
"simulatorPluginLibVersion": {}, "simulatorPluginLibVersion": {},