From c8e251e7dc1a06cad8fdcebad831e81bf208794e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=E5=A4=8F=E6=97=A5?= <1241133727@qq.com> Date: Thu, 28 Dec 2023 10:30:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=8F=90=E7=8E=B0-=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E5=AE=9D=E8=B4=A6=E6=88=B7=E6=8F=90=E7=8E=B0=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=86=85=E5=AE=B9=E7=9A=84=E6=B7=BB=E5=8A=A0=E5=8F=8A?= =?UTF-8?q?=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/account-opened/account-opened.js | 127 +++++++++++ pages/account-opened/account-opened.json | 6 + pages/account-opened/account-opened.wxml | 40 ++++ pages/account-opened/account-opened.wxss | 201 ++++++++++++++++++ .../withdrawal-management.json | 2 +- .../withdrawal-management.wxml | 3 + 7 files changed, 380 insertions(+), 2 deletions(-) create mode 100644 pages/account-opened/account-opened.js create mode 100644 pages/account-opened/account-opened.json create mode 100644 pages/account-opened/account-opened.wxml create mode 100644 pages/account-opened/account-opened.wxss diff --git a/app.json b/app.json index 31add24..9ebc55b 100644 --- a/app.json +++ b/app.json @@ -3,7 +3,8 @@ "pages/merchant-login/merchant-login", "pages/home-page/home-page", "pages/user-orders/user-orders", - "pages/withdrawal-management/withdrawal-management" + "pages/withdrawal-management/withdrawal-management", + "pages/account-opened/account-opened" ], "requiredPrivateInfos": [ "chooseAddress" diff --git a/pages/account-opened/account-opened.js b/pages/account-opened/account-opened.js new file mode 100644 index 0000000..a38581c --- /dev/null +++ b/pages/account-opened/account-opened.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/account-opened/account-opened.json b/pages/account-opened/account-opened.json new file mode 100644 index 0000000..dc8cfbb --- /dev/null +++ b/pages/account-opened/account-opened.json @@ -0,0 +1,6 @@ +{ + "navigationBarTitleText": "用户提现", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#fff", + "navigationBarTextStyle": "black" +} \ No newline at end of file diff --git a/pages/account-opened/account-opened.wxml b/pages/account-opened/account-opened.wxml new file mode 100644 index 0000000..901177a --- /dev/null +++ b/pages/account-opened/account-opened.wxml @@ -0,0 +1,40 @@ + + + + + + + + + 458.00 + + 可提现 + + + + 总提现:¥500.00 + + 待入账:¥200.00 + + 提现中:458元 + + + + + + + + + + + + + + + + ¥458.00 + + + + + diff --git a/pages/account-opened/account-opened.wxss b/pages/account-opened/account-opened.wxss new file mode 100644 index 0000000..6e0beba --- /dev/null +++ b/pages/account-opened/account-opened.wxss @@ -0,0 +1,201 @@ +page{ + background: #F7F7F7; +} +.user-withdrawal-bg{ + width: 750rpx; + height: 414rpx; + background: url("https://common-1257637852.cos.ap-guangzhou.myqcloud.com/paidui-pay/user-withdrawal-bg.png") no-repeat center center; + background-size:cover; + padding: 0 30rpx; +} +.withdrawal-management{ + position: absolute; + top: 0; + right: 0; +} +button.withdrawal-button{ + width: 160rpx; + height: 60rpx; + line-height: 60rpx; + font-family: "Microsoft YaHei"; + font-size: 24rpx; + color: #fff; + background: #FCC565; + margin: 0; + border-top-left-radius: 0; + border-top-right-radius: 0; + border-bottom-right-radius: 0; + border-bottom-left-radius: 30rpx; +} +button::after{ + border: none; +} +.withdrawal-limit{ + display: flex; + justify-content: center; + align-items: baseline; + padding-top: 40rpx; + text-align: center; +} +.limit-symbol{ + font-family: "Microsoft YaHei"; + font-size: 30rpx; + color: #fff; +} +.withdrawal-volume{ + font-family: "Din"; + font-size: 60rpx; + color: #fff; + font-weight: bold; + margin-left: 10rpx; +} +.Withdrawable-text{ + font-family: "Microsoft YaHei"; + font-size: 30rpx; + color: #fff; + text-align: center; + margin-top: 30rpx; +} +.withdrawal-content{ + display: flex; + justify-content: center; + align-items: center; + padding: 30rpx 0; +} +image.withdrawal-line{ + text-align: center; + width: 200rpx; + height: 1rpx; + background-size: cover; +} +.to-be-credited{ + display: flex; + justify-content: center; + align-items: center; + font-family: "Microsoft YaHei"; + font-size: 30rpx; + color: #fff; + text-align: center; + margin-top: 30rpx; +} +.total-withdrawal{ + font-family: "Microsoft YaHei"; + font-size: 30rpx; + color: #fff; + text-align: center; + border-bottom: 1rpx solid #F75965; + padding-bottom: 30rpx; +} +.credited-text{ + font-family: "Microsoft YaHei"; + font-size: 28rpx; + color: #fff; +} +.credited-line{ + width: 1rpx; + height: 40rpx; + background: #F75965; + margin: 0 60rpx; +} +.withdrawal-in-progress{ + font-family: "Microsoft YaHei"; + font-size: rpx; + color: #fff; +} +.withdrawal-account{ + display: flex; + justify-content: space-between; + align-items: center; + background: #fff; + padding: 30rpx; +} +.withdrawal-account-left{ + display: flex; + justify-content: left; + align-items: center; +} +image.alipay-account{ + width: 40rpx; + height: 40rpx; + background-size: cover; +} +.account-left-text{ + font-family: "Microsoft YaHei"; + font-size: 28rpx; + color: #454545; + font-weight: bold; + margin-left: 20rpx; +} +.account-information-item{ + background: #fff; + padding: 30rpx; + padding-top: 0; +} +.withdrawal-account-content{ + display: flex; + justify-content: space-between; + align-items: center; + background: #fff; + padding: 30rpx 0; + border-top: 1rpx solid #eee; +} +.border-line-style{ + border-top: none; + border-bottom: 1rpx solid #eee; + padding-top: 0; +} +.account-content-left{ + display: flex; + justify-content: space-between; + align-items: center; + background: #fff; +} +span.style-text{ + color: #32A2FC; + margin-left: 20rpx; +} +.right-withdrawal-amount{ + font-family: "Microsoft YaHei"; + font-size: 30rpx; + color: #454545; + font-weight: bold; +} +.button-content{ + display: flex; + justify-content: space-evenly; + align-items: center; +} +button.withdrawal-button-style{ + width: 120rpx; + height: 48rpx; + line-height: 48rpx; + font-family: "Microsoft YaHei"; + font-size: 24rpx; + color: #fff; + border-radius: 100rpx; + background: #F52F3E; + margin: 0; + margin-top: 30rpx; + margin-left: 580rpx; +} +button::atter{ + border:none; +} + + + + + + + + + + + + + + + + + + diff --git a/pages/withdrawal-management/withdrawal-management.json b/pages/withdrawal-management/withdrawal-management.json index dc8cfbb..6e126b5 100644 --- a/pages/withdrawal-management/withdrawal-management.json +++ b/pages/withdrawal-management/withdrawal-management.json @@ -1,5 +1,5 @@ { - "navigationBarTitleText": "用户提现", + "navigationBarTitleText": "开通提现账户", "enablePullDownRefresh": false, "navigationBarBackgroundColor": "#fff", "navigationBarTextStyle": "black" diff --git a/pages/withdrawal-management/withdrawal-management.wxml b/pages/withdrawal-management/withdrawal-management.wxml index 36bcd74..5388351 100644 --- a/pages/withdrawal-management/withdrawal-management.wxml +++ b/pages/withdrawal-management/withdrawal-management.wxml @@ -24,8 +24,11 @@ 支付宝账户 + + +