14 changed files with 221 additions and 4 deletions
After Width: | Height: | Size: 65 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 925 B |
After Width: | Height: | Size: 878 B |
@ -0,0 +1,72 @@ |
|||
// subpages/OCRCard/pages/deposit/deposit.js
|
|||
Page({ |
|||
|
|||
/** |
|||
* 页面的初始数据 |
|||
*/ |
|||
data: { |
|||
show: true, |
|||
status: 2 |
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面加载 |
|||
*/ |
|||
onLoad(options) { |
|||
|
|||
}, |
|||
goback() { |
|||
wx.switchTab({ |
|||
url: '/pages/index/index', |
|||
}) |
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面初次渲染完成 |
|||
*/ |
|||
onReady() { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面显示 |
|||
*/ |
|||
onShow() { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面隐藏 |
|||
*/ |
|||
onHide() { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面卸载 |
|||
*/ |
|||
onUnload() { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 页面相关事件处理函数--监听用户下拉动作 |
|||
*/ |
|||
onPullDownRefresh() { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 页面上拉触底事件的处理函数 |
|||
*/ |
|||
onReachBottom() { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 用户点击右上角分享 |
|||
*/ |
|||
onShareAppMessage() { |
|||
|
|||
} |
|||
}) |
@ -0,0 +1,11 @@ |
|||
{ |
|||
"usingComponents": { |
|||
"navigationBar": "/components/navigationBar/navigationBar", |
|||
"van-image": "@vant/weapp/image/index", |
|||
"van-divider": "@vant/weapp/divider/index", |
|||
"van-icon": "@vant/weapp/icon/index", |
|||
"van-button": "@vant/weapp/button/index", |
|||
"van-popup": "@vant/weapp/popup/index" |
|||
}, |
|||
"navigationStyle": "custom" |
|||
} |
@ -0,0 +1,55 @@ |
|||
<!--subpages/OCRCard/pages/deposit/deposit.wxml--> |
|||
<navigationBar title="履约保证金" isSowArrow titleAlign="center"></navigationBar> |
|||
<view class="container-app"> |
|||
<view class="card m-20"> |
|||
<view class="flex flex-y items-center "> |
|||
<van-image width="115" height="100" src="/subpages/OCRCard/image/icon01.png" /> |
|||
<view class="mt-24">履约保证金<text class="txt px-20">500</text>元</view> |
|||
<view class="line-dash"></view> |
|||
</view> |
|||
|
|||
<view class="tit">支付方式</view> |
|||
<view class="item flex flex-sb flex-center-j items-center p20 mt-24"> |
|||
<view class=" flex flex-center-j items-center"> |
|||
<van-icon name="/subpages/OCRCard/image/wx_pay.png" size="20px" /> |
|||
<view class="p10">微信支付</view> |
|||
</view> |
|||
<van-icon name="/subpages/OCRCard/image/ze-checked.png" size="20px" /> |
|||
</view> |
|||
</view> |
|||
<view class="btn"> |
|||
<van-button slot="button" block type="primary" round color="linear-gradient(to right, #0DC6C6 , #46DBD5)" bind:tap="submit"> |
|||
确定支付 |
|||
</van-button> |
|||
</view> |
|||
<van-popup show="{{ show }}" round bind:close="onClose" custom-style="background-image: url('../../../OCRCard/image/bg1.png')"> |
|||
<view class="diag flex flex-y flex-center-j items-center"> |
|||
<van-image width="94" height="94" src="/subpages/OCRCard/image/icon02.png" /> |
|||
<view wx:if="{{status==1}}" class=" flex flex-y flex-center-j items-center"> |
|||
<view class="tit">支付失败</view> |
|||
<view class="remk">您尚未完成支付,请尽快前往 |
|||
“我的-入住记录”完成支付。</view> |
|||
<view class="butn"> |
|||
<van-button slot="button" custom-style="height:70rpx;" block type="primary" round color="linear-gradient(to right, #0DC6C6 , #46DBD5)" bind:tap="submit"> |
|||
前往支付 |
|||
</van-button> |
|||
|
|||
</view> |
|||
|
|||
</view> |
|||
<view wx:if="{{status!=1}}" class=" flex flex-y flex-center-j items-center"> |
|||
<view class="tit">您已完成入住办理</view> |
|||
<view class="remk">祝您居住愉快~</view> |
|||
<view class="butn"> |
|||
<van-button slot="button" custom-style="height:70rpx;" block type="primary" round color="linear-gradient(to right, #0DC6C6 , #46DBD5)" bind:tap="goback"> |
|||
返回首页 |
|||
</van-button> |
|||
</view> |
|||
|
|||
|
|||
|
|||
</view> |
|||
|
|||
</view> |
|||
</van-popup> |
|||
</view> |
@ -0,0 +1,63 @@ |
|||
/* subpages/OCRCard/pages/deposit/deposit.wxss */ |
|||
page { |
|||
position: relative; |
|||
background-color: #f8f8f8; |
|||
|
|||
} |
|||
|
|||
.container-app { |
|||
background-color: #f8f8f8; |
|||
height: 80vh; |
|||
} |
|||
|
|||
.txt { |
|||
color: #FF5757; |
|||
font-size: 68rpx; |
|||
font-weight: 600; |
|||
} |
|||
|
|||
.line-dash { |
|||
border-bottom: 1px dashed #BBBBBB; |
|||
width: 100%; |
|||
margin: 48rpx 0; |
|||
} |
|||
|
|||
.item { |
|||
height: 60rpx; |
|||
background-color: #F7F8FC; |
|||
border-radius: 10rpx; |
|||
} |
|||
|
|||
.btn { |
|||
position: absolute; |
|||
bottom: 48rpx; |
|||
left: 0; |
|||
right: 0; |
|||
max-width: 440rpx; |
|||
width: calc(100% - 10rpx); |
|||
height: 80rpx; |
|||
margin: auto; |
|||
} |
|||
|
|||
.diag { |
|||
|
|||
padding: 30rpx; |
|||
width: 440rpx; |
|||
|
|||
} |
|||
|
|||
.tit { |
|||
font-weight: 600; |
|||
} |
|||
|
|||
.remk { |
|||
color: rgba(102, 102, 102, 1); |
|||
font-size: 30rpx; |
|||
padding: 40rpx 0; |
|||
line-height: 40rpx; |
|||
} |
|||
|
|||
.butn { |
|||
max-width: 220rpx; |
|||
width: calc(100% - 10rpx); |
|||
} |
Loading…
Reference in new issue