diff --git a/Pages/yishi/case/index.js b/Pages/yishi/case/index.js index 6ba2470..84ebf13 100644 --- a/Pages/yishi/case/index.js +++ b/Pages/yishi/case/index.js @@ -19,8 +19,11 @@ Page({ }) }, + goReport(event){ + const url=event.currentTarget.dataset.url; + }, formatImgList(){ - let diagnose_images = this.data.case_detail.diagnose_images; + let diagnose_images = this.data.case_detail.diagnose_images?this.data.case_detail.diagnose_images:[]; let img_list = []; diagnose_images.forEach(item => { let img = {}; diff --git a/Pages/yishi/case/index.json b/Pages/yishi/case/index.json index 3e38f1a..a00e82d 100644 --- a/Pages/yishi/case/index.json +++ b/Pages/yishi/case/index.json @@ -2,6 +2,7 @@ "component": true, "usingComponents": { "te-nav-bar": "/commpents/te_navbar", + "van-icon": "@vant/weapp/icon/index", "van-uploader": "@vant/weapp/uploader/index" } } \ No newline at end of file diff --git a/Pages/yishi/case/index.wxml b/Pages/yishi/case/index.wxml index baac024..56cf2e2 100644 --- a/Pages/yishi/case/index.wxml +++ b/Pages/yishi/case/index.wxml @@ -58,7 +58,16 @@ - + + {{case_detail.detection_project_name}} + + + 糖组检测 + {{case_detail.detection_time}} + + + + 其他信息 diff --git a/Pages/yishi/case/index.wxss b/Pages/yishi/case/index.wxss index 811db02..e416964 100644 --- a/Pages/yishi/case/index.wxss +++ b/Pages/yishi/case/index.wxss @@ -100,3 +100,20 @@ page{ margin-bottom: 50rpx; } +.sugar{ + display: flex; + align-items: center; + justify-content:space-between ; +} +.sugar .name{ + color:#333; + + font-size: 30rpx; +} +.sugar .date{ + margin-top: 12rpx; + font-size: 24rpx; + font-weight: 400; + color: rgba(0,0,0,0.45); + +} \ No newline at end of file diff --git a/Pages/yishi/medince_list/index.js b/Pages/yishi/medince_list/index.js new file mode 100644 index 0000000..b3c975b --- /dev/null +++ b/Pages/yishi/medince_list/index.js @@ -0,0 +1,136 @@ +// Pages/yishi/medince_list/index.js +import { API } from './../../../utils/network/api' +import debounce from "./../../../utils/debounce" +let api = new API() +Page({ + + /** + * 页面的初始数据 + */ + data: { + navbarData: { + + showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示 + title: '药品清单', //导航栏 中间的标题 + }, + page:1, + list:[], + isLock:false, + per_page:10, + keyword:'', + }, + changeInput:debounce(function(event){ + const { value }= event.detail; + this.setData({ + isLock:false, + page:1, + list:[], + keyword:value + }) + this.handleGetList(); + },600), + goSearch(){ + this.setData({ + isLock:false, + list:[], + page:1 + }) + this.handleGetList(); + }, + confirmSearch(event){ + const { value }= event.detail; + this.setData({ + isLock:false, + list:[], + page:1, + keyword:value + }) + this.handleGetList(); + }, + lower(){ + console.log('===触底了!!==='); + let {page,isLock}=this.data; + if(!isLock){ + page++; + this.setData({ + page:page + }); + this.handleGetList(); + } + }, + /** + * 生命周期函数--监听页面加载 + */ + handleGetList(){ + const {page,per_page,keyword}=this.data; + api.getMedinceList({ + page, + per_page, + keyword, + + }).then(data=>{ + let result=data.data.data; + if(result.length==0){ + this.setData({ + isLock:true + }); + return false; + } + this.setData({ + list:this.data.list.concat(result) + }); + }).catch(errors => {console.error(errors);}) + }, + onLoad(options) { + this.handleGetList(); + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/Pages/yishi/medince_list/index.json b/Pages/yishi/medince_list/index.json new file mode 100644 index 0000000..152dd7f --- /dev/null +++ b/Pages/yishi/medince_list/index.json @@ -0,0 +1,9 @@ +{ + "component": true, + "usingComponents": { + "te-nav-bar": "/commpents/te_navbar", + "van-image": "@vant/weapp/image/index", + "van-divider": "@vant/weapp/divider/index", + "van-empty": "@vant/weapp/empty/index" + } +} \ No newline at end of file diff --git a/Pages/yishi/medince_list/index.wxml b/Pages/yishi/medince_list/index.wxml new file mode 100644 index 0000000..3e27bea --- /dev/null +++ b/Pages/yishi/medince_list/index.wxml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + 处方药品 + 依据法规不展示包装 + + + + + + + {{item.product_name}}/{{item.packaging_unit}} + {{item.manufacturer}} + + + ¥ {{item.product_price}} + 库存:{{item.stock}} + + + + 到底了~ + + + + \ No newline at end of file diff --git a/Pages/yishi/medince_list/index.wxss b/Pages/yishi/medince_list/index.wxss new file mode 100644 index 0000000..baefab1 --- /dev/null +++ b/Pages/yishi/medince_list/index.wxss @@ -0,0 +1,117 @@ +/* Pages/yishi/medince_list/index.wxss */ +page{ + height:100vh; + background-color: #F6F6F6; +} + .container{ + height:calc(100vh - 135rpx); + display: flex; + overflow: hidden; + /* overflow-y: scroll; */ + /* -webkit-overflow-scrolling: touch; */ + flex-direction: column; +} +.searchCon{ + width:100%; + + background:#fff; +} +.searchbox{ + display: flex; + margin:32rpx; + align-items: center; + height: 80rpx; +background: #FFFFFF; +border-radius: 40rpx; +border: 2rpx solid #3CC7C0; + +} +.searchIpt{ + flex:1; + margin-left: 32px; +} +.searchImg{ + width: 40rpx; + height:40rpx; + padding:30rpx; +} +.tips{ + display: flex; + flex-direction: column; + justify-content: center; + position: absolute; + width: 200rpx; + height:200rpx; + font-size: 22rpx; +font-weight: 400; +color: #666666; +} +.desc{ + text-align: center; +} +.medimgbox{ + position: relative; + width: 200rpx; + height:200rpx; + margin-left: 30rpx; + display: flex; + justify-content: center; + align-items: center; + border-radius:5rpx; +} +.medImg{ + width:120rpx; + height:128rpx; + +} +.cell{ + padding:20rpx 0; + background: #FFFFFF; +box-shadow: 0rpx 2rpx 16rpx 2rpx rgba(0,0,0,0.02); +border-radius: 12rpx; + margin:0 32rpx 20rpx; + display: flex; +} +.rightbox{ + flex:1; + margin-left: 24rpx; + margin-right: 20rpx; +} +.scrollbox{ + margin-top: 20rpx; + flex:1; + overflow-y: scroll; + -webkit-overflow-scrolling: touch; +} +.bottombox{ + display: flex; + align-items: center; + justify-content: space-between; +} +.info .name{ + word-break: break-all; +font-size: 32rpx; + font-weight: 600; +color: rgba(0,0,0,0.85); +} +.company{ + margin-top: 5rpx; + font-size: 26rpx; +font-weight: 400; +color: rgba(0,0,0,0.45); +} +.price{ + font-size: 28rpx; +color: #EF4F20; +} +.rightbox{ + display: flex; + flex-direction: column; + justify-content: space-between; + +} +.num{ + font-size: 28rpx; +font-weight: 400; +color: rgba(0,0,0,0.65); +} \ No newline at end of file diff --git a/Pages/yishi/my/index.wxml b/Pages/yishi/my/index.wxml index 2b15b8f..f264281 100644 --- a/Pages/yishi/my/index.wxml +++ b/Pages/yishi/my/index.wxml @@ -1,7 +1,7 @@ {{ title }} - + @@ -18,7 +18,7 @@ -