This commit is contained in:
1692762430 2024-02-28 13:44:01 +08:00
commit 6005897321
10 changed files with 143 additions and 6 deletions

View File

@ -55,7 +55,8 @@
"pages/meeting/meetingRoom/meetingFacilities/meetingFacilities",
"pages/meeting/meetingRoom/meetingOrder/meetingOrder",
"pages/meeting/meetingRoom/meetingProtocol/meetingProtocol",
"pages/meeting/meetingRoom/meetingCoupon/meetingCoupon"
"pages/meeting/meetingRoom/meetingCoupon/meetingCoupon",
"pages/meeting/meetingRoom/meetingWaitPay/meetingWaitPay"
],
"window": {
"backgroundTextStyle": "light",

View File

@ -85,7 +85,7 @@ Page({
},
*/
{
name: "会议约",
name: "会议约",
img: "/profile/static/index/menu-hyyy.png",
path: "/pages/meeting/meetingReservation/meetingReservation"
},
@ -95,7 +95,7 @@ Page({
path: ""
},
{
name: "访客约",
name: "访客约",
img: "/profile/static/index/menu-fkyy.png",
path: "/pages/meeting/visitorIinvitation/visitorIinvitation"
},

View File

@ -24,6 +24,14 @@ Page({
});
},
// 点击-选择优惠卷
couponSelect(e) {
console.log('couponSelect', e);
this.setData({
couponId: e.currentTarget.dataset.id,
});
},
/**
* 生命周期函数--监听页面初次渲染完成
*/

View File

@ -2,8 +2,8 @@
<!-- 优惠卷列表 -->
<view class="couponView">
<van-radio-group value="{{ couponId }}" bind:change="couponChange">
<view class="item" wx:for="{{3}}" wx:for-index="idx">
<van-radio-group value="{{ couponId }}">
<view class="item" wx:for="{{3}}" wx:for-index="idx" data-id="{{idx}}" bind:tap="couponSelect">
<view class="imgView">
<view class="img"></view>
<view class="timeView">

View File

@ -58,6 +58,13 @@ Page({
})
},
// 提交订单
submitCase() {
wx.redirectTo({
url: "/pages/meeting/meetingRoom/meetingWaitPay/meetingWaitPay",
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/

View File

@ -81,6 +81,6 @@
<view class="title">合计:</view>
<view class="price">¥ 200.00</view>
</view>
<view class="caseBtn">提交订单</view>
<view class="caseBtn" bind:tap="submitCase">提交订单</view>
</view>
</view>

View File

@ -0,0 +1,66 @@
// pages/meeting/meetingRoom/meetingWaitPay.js
Page({
/**
* 页面的初始数据
*/
data: {
countdownTime : 5 * 60 * 1000 // 单位毫秒
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@ -0,0 +1,6 @@
{
"usingComponents": {
"van-count-down": "@vant/weapp/count-down/index"
},
"navigationBarTitleText": "支付订单"
}

View File

@ -0,0 +1,13 @@
<view class="containerView public">
<!-- 订单信息 -->
<view class="msgView">
<van-count-down class="time" time="{{ countdownTime }}" format="支付剩余时间: mm分ss秒" />
<view class="price">¥200.00</view>
<view class="title">支付金额</view>
</view>
<!-- 确认支付 -->
<view class="submitBtn">确认支付</view>
</view>

View File

@ -0,0 +1,36 @@
.msgView {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 150rpx;
}
.msgView .time .van-count-down {
font-size: 28rpx;
}
.msgView .price {
margin: 20rpx 0;
font-size: 70rpx;
}
.msgView .title {
font-size: 28rpx;
color: gray;
}
.submitBtn{
box-sizing: border-box;
position: absolute;
width: 600rpx;
left: 50%;
margin-left: -300rpx;
bottom: 120rpx;
border-radius: 10rpx;
padding: 20rpx;
background: #4e96f8;
color: white;
font-size: 30rpx;
text-align: center;
}