From 833def112c107249e2cdac378d884932661aa22c Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Thu, 10 Aug 2023 16:17:27 +0800 Subject: [PATCH] =?UTF-8?q?8.10=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=20?= =?UTF-8?q?=E7=B3=96=E7=BB=84=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Pages/yishi/case/index.js | 5 +- Pages/yishi/case/index.json | 1 + Pages/yishi/case/index.wxml | 11 +- Pages/yishi/case/index.wxss | 17 ++ Pages/yishi/medince_list/index.js | 136 ++++++++++++++ Pages/yishi/medince_list/index.json | 9 + Pages/yishi/medince_list/index.wxml | 35 ++++ Pages/yishi/medince_list/index.wxss | 117 ++++++++++++ Pages/yishi/my/index.wxml | 7 +- Pages/yishi/my/index.wxss | 12 +- Pages/yishi/mycard/index.js | 2 + Pages/yishi/mycard/index.wxml | 2 +- Pages/yishi/onlinechufang/index.js | 21 ++- Pages/yishi/onlinechufang/index.wxml | 171 +++--------------- Pages/yishi/wenzhen_v2/wenzhen.js | 52 ++++-- Pages/yishi/wenzhen_v2/wenzhen.wxml | 58 +++++- .../MessageElements/CustomMessage/index.js | 34 ++++ .../MessageElements/CustomMessage/index.json | 3 +- .../MessageElements/CustomMessage/index.wxml | 31 +++- .../MessageElements/CustomMessage/index.wxss | 100 ++++++++++ .../TUIChat/components/MessageList/concat.wxs | 10 +- .../TUIChat/components/MessageList/index.js | 8 +- .../TUIChat/components/MessageList/index.wxml | 3 +- .../TUIChat/components/MessageList/index.wxss | 8 + TUIKit/static/images/back.png | Bin 0 -> 462 bytes TUIKit/static/images/patient_bg.png | Bin 0 -> 7969 bytes TUIKit/utils/constant.js | 2 + app.json | 3 +- .../images/yishi/tabbar_icon/medinceList.png | Bin 0 -> 27425 bytes static/images/yishi/tabbar_icon/ss.png | Bin 0 -> 1235 bytes static/images/yishi/tabbar_icon/zhiyao.png | Bin 0 -> 2673 bytes utils/debounce.js | 10 + utils/network/api.js | 10 + 33 files changed, 688 insertions(+), 190 deletions(-) create mode 100644 Pages/yishi/medince_list/index.js create mode 100644 Pages/yishi/medince_list/index.json create mode 100644 Pages/yishi/medince_list/index.wxml create mode 100644 Pages/yishi/medince_list/index.wxss create mode 100644 TUIKit/static/images/back.png create mode 100644 TUIKit/static/images/patient_bg.png create mode 100644 static/images/yishi/tabbar_icon/medinceList.png create mode 100644 static/images/yishi/tabbar_icon/ss.png create mode 100644 static/images/yishi/tabbar_icon/zhiyao.png create mode 100644 utils/debounce.js 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 @@ -