add file
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
navbarData: {
|
||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||
title: '系统通知', //导航栏 中间的标题
|
||||
},
|
||||
height: app.globalData.height,
|
||||
visible: false,
|
||||
},
|
||||
go(e){
|
||||
wx.navigateTo({
|
||||
url: e.currentTarget.dataset.url,
|
||||
events: {
|
||||
// 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
|
||||
acceptDataFromOpenedPage: function(data) {
|
||||
console.log(data)
|
||||
},
|
||||
someEvent: function(data) {
|
||||
console.log(data)
|
||||
}
|
||||
},
|
||||
success: function(res) {
|
||||
// 通过 eventChannel 向被打开页面传送数据
|
||||
res.eventChannel.emit('acceptDataFromOpenerPage', { data: 'test' })
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"te-nav-bar": "/commpents/te_navbar",
|
||||
"t-image": "tdesign-miniprogram/image/image"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||
<view class="list">
|
||||
|
||||
<view class="item" bindtap="go" data-url="/Pages/yishi/notice_deatil/index">
|
||||
<view class="item_top">
|
||||
<view class="item_img">
|
||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" mode="heightFix" height="54rpx" aria-label="qrcode" />
|
||||
</view>
|
||||
<view class="item_content">9月份的服务费结算通知</view>
|
||||
</view>
|
||||
<view class="hongdian">
|
||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/honhdian.png" mode="heightFix" height="20rpx" aria-label="qrcode" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="item" bindtap="go" data-url="/Pages/yishi/notice_deatil/index">
|
||||
<view class="item_top">
|
||||
<view class="item_img">
|
||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" mode="heightFix" height="54rpx" aria-label="qrcode" />
|
||||
</view>
|
||||
<view class="item_content">8月份的服务费结算通知</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="item" bindtap="go" data-url="/Pages/yishi/notice_deatil/index">
|
||||
<view class="item_top">
|
||||
<view class="item_img">
|
||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" mode="heightFix" height="54rpx" aria-label="qrcode" />
|
||||
</view>
|
||||
<view class="item_content">7月份的服务费结算通知</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="item" bindtap="go" data-url="/Pages/yishi/notice_deatil/index">
|
||||
<view class="item_top">
|
||||
<view class="item_img">
|
||||
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" mode="heightFix" height="54rpx" aria-label="qrcode" />
|
||||
</view>
|
||||
<view class="item_content">6月份的服务费结算通知</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
@@ -0,0 +1,33 @@
|
||||
.container{
|
||||
background-color: #F4F4F4;
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
}
|
||||
.list{
|
||||
width: 92vw;
|
||||
margin: 20rpx auto;
|
||||
}
|
||||
.item{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
background-color: #fff;
|
||||
padding: 20rpx;
|
||||
border-radius: 10rpx;
|
||||
margin-bottom: 20rpx;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.item_top{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.item_content{
|
||||
font-size: 34rpx;
|
||||
color: #333333;
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
.hongdian{
|
||||
height: 50rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
Reference in New Issue
Block a user