From b1a9279924689c73ba5ee2024ad58adff9d1d237 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?W=E5=A4=8F=E6=97=A5?= <1241133727@qq.com>
Date: Wed, 27 Dec 2023 18:20:26 +0800
Subject: [PATCH] =?UTF-8?q?=E5=95=86=E6=88=B7=E4=B8=BB=E9=A1=B5=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E5=86=85=E5=AE=B9=E7=9A=84=E6=B7=BB=E5=8A=A0=E5=8F=8A?=
=?UTF-8?q?=E5=B8=83=E5=B1=80=E8=B0=83=E6=95=B4=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app.json | 3 +-
pages/home-page/home-page.js | 127 ++++++++++++++
pages/home-page/home-page.json | 6 +
pages/home-page/home-page.wxml | 94 +++++++++++
pages/home-page/home-page.wxss | 201 +++++++++++++++++++++++
pages/merchant-login/merchant-login.wxml | 4 +-
6 files changed, 433 insertions(+), 2 deletions(-)
create mode 100644 pages/home-page/home-page.js
create mode 100644 pages/home-page/home-page.json
create mode 100644 pages/home-page/home-page.wxml
create mode 100644 pages/home-page/home-page.wxss
diff --git a/app.json b/app.json
index b60231d..2c8c358 100644
--- a/app.json
+++ b/app.json
@@ -1,6 +1,7 @@
{
"pages": [
- "pages/merchant-login/merchant-login"
+ "pages/merchant-login/merchant-login",
+ "pages/home-page/home-page"
],
"requiredPrivateInfos": [
"chooseAddress"
diff --git a/pages/home-page/home-page.js b/pages/home-page/home-page.js
new file mode 100644
index 0000000..a38581c
--- /dev/null
+++ b/pages/home-page/home-page.js
@@ -0,0 +1,127 @@
+// pages/pregnant-mother/pregnant-mother.js
+
+
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ background: ['demo-text-1', 'demo-text-2', 'demo-text-3'],
+ indicatorDots: true,
+ vertical: false,
+ autoplay: true,
+ interval: 2000,
+ duration: 500,
+ nvabarData: {
+ title: '', //导航栏 中间的标题
+ keyWord: '',
+ search: true
+ },
+ height: ''
+ },
+
+
+ changeIndicatorDots() {
+ this.setData({
+ indicatorDots: !this.data.indicatorDots
+ })
+ },
+
+ changeAutoplay() {
+ this.setData({
+ autoplay: !this.data.autoplay
+ })
+ },
+
+ intervalChange(e) {
+ this.setData({
+ interval: e.detail.value
+ })
+ },
+
+ durationChange(e) {
+ this.setData({
+ duration: e.detail.value
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ // 清除搜索框 调用子组件的清空函数
+ this.selectComponent('#bar').clearInput();
+ // 每个机型的尺寸不一致
+ // 在app.js中获取到的 statusBarHeight 用于控制头部的高度
+
+ this.setData({
+ // height: app.globalData.height,
+ })
+ this.setData({
+ 'nvabarData.inputValue': ''
+ })
+
+ if (typeof this.getTabBar === 'function' &&
+ this.getTabBar()) {
+ this.getTabBar().setData({
+ selected: 1
+ })
+ }
+ },
+
+ search: function(e) {
+ this.getTask(e.detail);
+},
+
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/home-page/home-page.json b/pages/home-page/home-page.json
new file mode 100644
index 0000000..1c94262
--- /dev/null
+++ b/pages/home-page/home-page.json
@@ -0,0 +1,6 @@
+{
+ "navigationBarTitleText": "商户主页",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#F52F3E",
+ "navigationBarTextStyle": "white"
+}
\ No newline at end of file
diff --git a/pages/home-page/home-page.wxml b/pages/home-page/home-page.wxml
new file mode 100644
index 0000000..feb0840
--- /dev/null
+++ b/pages/home-page/home-page.wxml
@@ -0,0 +1,94 @@
+
+
+
+
+ 李姐烧烤
+ 地址:广西南宁市江南区波尔多庄园2-109号商铺
+
+
+
+
+
+ ¥
+ 394.00
+
+
+ 预计到账收益
+
+
+
+
+
+
+
+ ¥
+ 5000.00
+
+
+ 总到账收益
+
+
+
+
+
+
+
+
+ 最近订单
+
+
+ 订单编号 22398983498
+
+
+
+
+
+ 李姐烧烤(普罗旺斯店)
+ 金额:¥450.00
+ 订单时间:2023-10-24 20:39:56
+
+
+
+
+
+
+
+
+ 订单编号 22398983498
+
+
+
+
+
+ 李姐烧烤(普罗旺斯店)
+ 金额:¥450.00
+ 订单时间:2023-10-24 20:39:56
+
+
+
+
+
+
+
+
+ 订单编号 22398983498
+
+
+
+
+
+ 李姐烧烤(普罗旺斯店)
+ 金额:¥450.00
+ 订单时间:2023-10-24 20:39:56
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/home-page/home-page.wxss b/pages/home-page/home-page.wxss
new file mode 100644
index 0000000..ec8ef7b
--- /dev/null
+++ b/pages/home-page/home-page.wxss
@@ -0,0 +1,201 @@
+page{
+ background: #fff;
+}
+.page-bg{
+ width: 750rpx;
+ height: 1492rpx;
+ background: url("https://common-1257637852.cos.ap-guangzhou.myqcloud.com/paidui-pay/homepage-bg.png") no-repeat center center;
+ background-size:cover;
+ padding: 0 30rpx;
+}
+.merchant-information{
+ display: flex;
+ justify-content: left;
+ align-items: center;
+ padding: 50rpx 0;
+}
+image.default-avatar{
+ width: 110rpx;
+ height: 110rpx;
+ background-size: cover;
+}
+.information-content{
+ margin-left: 30rpx;
+}
+.information-name{
+ font-family: "Microsoft YaHei";
+ font-size: 32rpx;
+ color: #fff;
+ font-weight: bold;
+}
+.address-text{
+ font-family: "Microsoft YaHei";
+ font-size: 24rpx;
+ color: #fff;
+ margin-top: 15rpx;
+}
+.revenue-information{
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ width: 691rpx;
+ height: 200rpx;
+ background: url("https://common-1257637852.cos.ap-guangzhou.myqcloud.com/paidui-pay/income-bg.png") no-repeat center center;
+ background-size:cover;
+ padding: 0 60rpx;
+}
+.projected-revenue-content{
+ text-align: center;
+}
+.projected-revenue-item{
+ display: flex;
+ justify-content: left;
+ align-items: baseline;
+}
+.character-style{
+ font-family: "Microsoft YaHei";
+ font-size: 30rpx;
+ color: #454545;
+}
+.character-price{
+ font-family: "Microsoft YaHei";
+ font-size: 50rpx;
+ color: #454545;
+ font-weight: bold;
+ margin-left: 10rpx;
+}
+.character-text{
+ font-family: "Microsoft YaHei";
+ font-size: 28rpx;
+ color: #454545;
+ font-weight: bold;
+}
+image.help-icon{
+ width: 30rpx;
+ height: 30rpx;
+ background-size: cover;
+ margin-left: 10rpx;
+}
+.revenue-item-text{
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ margin-top: 10rpx;
+}
+.segmentation{
+ width: 1rpx;
+ height: 90rpx;
+ background: #E6E3E3;
+}
+.recent-orders-content{
+ background: #fff;
+ margin-top: -1rpx;
+}
+.recent-orders-title{
+ display: flex;
+ justify-content: left;
+ align-items: center;
+ padding: 30rpx;
+}
+image.title-stlye{
+ width: 15rpx;
+ height: 19rpx;
+ background-size: cover;
+ margin-right: 20rpx;
+}
+.title-text{
+ font-family: "Microsoft YaHei";
+ font-size: 30rpx;
+ color: #454545;
+ font-weight: bold;
+}
+.ordering-information{
+ padding-bottom: 30rpx;
+}
+.order-number{
+ font-family: "Microsoft YaHei";
+ font-size: 26rpx;
+ color: #454545;
+ padding: 0 30rpx;
+}
+.ordering-information-item{
+ display: flex;
+ justify-content: left;
+ align-items: center;
+ padding: 30rpx;
+}
+.ordering-pic{
+ width: 120rpx;
+ height: 120rpx;
+ background-size: cover;
+ border-radius: 15rpx;
+}
+image.order-chart{
+ width: 120rpx;
+ height: 120rpx;
+ background-size: cover;
+ border-radius: 15rpx;
+}
+.ordering-text{
+ margin-left: 30rpx;
+}
+.ordering-text-title{
+ font-family: "Microsoft YaHei";
+ font-size: 30rpx;
+ color: #454545;
+ font-weight: bold;
+}
+.amount-of-money{
+ font-family: "Microsoft YaHei";
+ font-size: 24rpx;
+ color: #999;
+ padding: 10rpx 0;
+}
+span.price-style{
+ font-family: "Microsoft YaHei";
+ font-size: 24rpx;
+ color: #F52F3E;
+}
+.order-time{
+ font-family: "Microsoft YaHei";
+ font-size: 24rpx;
+ color: #999;
+}
+.order-status{
+ display: flex;
+ justify-content: space-around;
+ align-items: center;
+ padding: 30rpx 0;
+ border-top: 1rpx solid #eeeeee;
+}
+button.refund-button{
+ width: 120rpx;
+ height: 48rpx;
+ line-height: 48rpx;
+ font-family: "Microsoft YaHei";
+ font-size: 24rpx;
+ color: #454545;
+ border-color: #E5E5E5;
+ background: #fff;
+ border-radius: 100rpx;
+ margin: 0;
+ margin-left: 500rpx;
+}
+button.refunded-button-style{
+ width: 130rpx;
+ height: 48rpx;
+ line-height: 48rpx;
+ font-family: "Microsoft YaHei";
+ font-size: 24rpx;
+ color: #454545;
+ border-color: #E5E5E5;
+ background: #fff;
+ border-radius: 100rpx;
+ margin: 0;
+ margin-left: 500rpx;
+}
+.divider-style{
+ width: 690rpx;
+ height: 10rpx;
+ background: #f7f7f7;
+}
\ No newline at end of file
diff --git a/pages/merchant-login/merchant-login.wxml b/pages/merchant-login/merchant-login.wxml
index bedec5c..9cb1300 100644
--- a/pages/merchant-login/merchant-login.wxml
+++ b/pages/merchant-login/merchant-login.wxml
@@ -9,7 +9,9 @@
-
+
+
+