init version kelfy-mini for new gitea
This commit is contained in:
84
pages/czMsg/czMsg.js
Normal file
84
pages/czMsg/czMsg.js
Normal file
@@ -0,0 +1,84 @@
|
||||
// pages/czMsg/czMsg.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
cardno: "",
|
||||
cardtype: "",
|
||||
fph: "",
|
||||
hzxm: "",
|
||||
jyje: '',
|
||||
lrrq: "",
|
||||
lsh: "",
|
||||
sex: "",
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
this.setData({
|
||||
cardno: options.cardno,
|
||||
cardtype: options.cardtype,
|
||||
fph: options.fph,
|
||||
hzxm: options.hzxm,
|
||||
jyje: options.jyje,
|
||||
lrrq:options.lrrq,
|
||||
lsh: options.lsh,
|
||||
sex:options.sex,
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
wx.setNavigationBarTitle({
|
||||
title: '充值详情'
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
||||
3
pages/czMsg/czMsg.json
Normal file
3
pages/czMsg/czMsg.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
41
pages/czMsg/czMsg.wxml
Normal file
41
pages/czMsg/czMsg.wxml
Normal file
@@ -0,0 +1,41 @@
|
||||
<!--pages/czMsg/czMsg.wxml-->
|
||||
<view class="main">
|
||||
<view class="wrap">
|
||||
<view class="item">
|
||||
<view class="left">姓名</view>
|
||||
<view class="right">{{hzxm}}</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="left">性别</view>
|
||||
<view class="right">{{sex}}</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="left">卡类型</view>
|
||||
<view class="right" wx:if="{{cardtype==1}}">就诊卡</view>
|
||||
<view class="right" wx:elif="{{cardtype==2}}">保障卡</view>
|
||||
<view class="right" wx:elif="{{cardtype==3}}">IC卡</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="left">卡号</view>
|
||||
<view class="right">{{cardno}}</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="left">金额</view>
|
||||
<view class="right">{{jyje}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="wrap">
|
||||
<view class="item">
|
||||
<view class="left">流水号</view>
|
||||
<view class="right">{{lsh}}</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="left">发票号</view>
|
||||
<view class="right">{{fph}}</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="left">交易日期</view>
|
||||
<view class="right">{{lrrq}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
57
pages/czMsg/czMsg.wxss
Normal file
57
pages/czMsg/czMsg.wxss
Normal file
@@ -0,0 +1,57 @@
|
||||
/* pages/czMsg/czMsg.wxss */
|
||||
.main{
|
||||
margin: 30rpx 0;
|
||||
width: 750rpx;
|
||||
height: 100vh;
|
||||
}
|
||||
.wrap{
|
||||
width: 90%;
|
||||
border-radius: 5rpx;
|
||||
margin: 40rpx auto;
|
||||
box-shadow:0px 0px 15rpx #e2e2e2;
|
||||
padding:0 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.title{
|
||||
height: 200rpx;
|
||||
width: 100%;
|
||||
}
|
||||
.text{
|
||||
height: 40rpx;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
line-height: 40rpx;
|
||||
font-size: 35rpx;
|
||||
letter-spacing: 2rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
|
||||
.wrap :last-child{
|
||||
border: none;
|
||||
}
|
||||
.item{
|
||||
height: 120rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border-bottom: 2rpx solid #e2e2e2;
|
||||
}
|
||||
.left{
|
||||
width: 25%;
|
||||
font-size: 35rpx;
|
||||
color: #666;
|
||||
text-align-last:justify;
|
||||
text-align:justify;
|
||||
text-justify:distribute-all-lines;
|
||||
}
|
||||
.right{
|
||||
width: 70%;
|
||||
height: 100%;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user