本文给大家带来的是微信小程序提现结果申请成功页面设计制作开发教程,制作好以后效果图如下:
一、wxml页面代码如下:
<!--pages/salesCommission/withdrawResult.wxml-->
<view class="container">
<view class="result">
<image class="imgsize" src="/assets/images/buy_sucess@2x.png"></image>
<view class="font-color-c24e4e margin-top-30">申请成功</view>
<view class="font-color-999 margin-top-30">提现金额:¥{{withdrawalAmount}}</view>
<view class="margin-top-30 font-color-333">收款银行卡:工商银行(2245)</view>
</view>
<view class="butbox" style="margin-top:40rpx;">
<view bindtap="backMine" class="but bg-color-c24e4e font-color-white" >返回我的主页</view>
</view>
</view>
|
二、wxss样式文件代码如下:
/* pages/salesCommission/withdrawResult.wxss */
.imgsize{
width: 200rpx;
height: 200rpx;
}
.result{
margin-top: 120rpx;
display:flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.margin-top-30{
margin-top: 30rpx;
}
|
三、js页面代码如下:
// pages/salesCommission/withdrawResult.js
Page({
data:{},
onLoad:function(options){
// 页面初始化 options为页面跳转所带来的参数
this.setData({
withdrawalAmount:220
})
},
onReady:function(){
// 页面渲染完成
},
onShow:function(){
// 页面显示
},
onHide:function(){
// 页面隐藏
},
onUnload:function(){
// 页面关闭
},
backMine(){
wx.navigateBack({
delta: 3, // 回退前 delta(默认为1) 页面
})
}
})
|