init version kelfy-mini for new gitea
This commit is contained in:
138
pages/QA/QA.js
Normal file
138
pages/QA/QA.js
Normal file
@@ -0,0 +1,138 @@
|
||||
// pages/QA/QA.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
questions: [],
|
||||
showQuestions: [],
|
||||
},
|
||||
chooseYes(e) {
|
||||
var departmentname = e.currentTarget.dataset.departmentname
|
||||
wx.navigateTo({
|
||||
url: '/pages/QAresult/Qaresult?departmentname=' + departmentname,
|
||||
})
|
||||
// console.log()
|
||||
},
|
||||
chooseNo(e) {
|
||||
var tempList = this.data.showQuestions;
|
||||
let a = tempList[tempList.length-1]
|
||||
if(a.isLaseted=="1"){
|
||||
var departmentname = e.currentTarget.dataset.departmentname
|
||||
wx.navigateTo({
|
||||
url: '/pages/QAresult/Qaresult?departmentname=' + departmentname,
|
||||
})
|
||||
return
|
||||
}
|
||||
for (var i = 0; i < tempList.length; i++) {
|
||||
tempList[i]['isChoose'] = '1'
|
||||
}
|
||||
var tempData = this.data.questions.slice(tempList.length, tempList.length + 1)
|
||||
console.log(tempData)
|
||||
if (this.data.questions.length - tempList.length == 1) { //最后一个
|
||||
console.log(tempData[0])
|
||||
tempData[0]['isChoose'] = "0"
|
||||
tempData[0]['isLaseted'] = "1"
|
||||
} else {
|
||||
tempData[0]['isChoose'] = '0';
|
||||
tempData[0]['isLaseted'] = '0';
|
||||
}
|
||||
tempList.push(tempData[0])
|
||||
console.log(tempList)
|
||||
this.setData({
|
||||
showQuestions: tempList
|
||||
})
|
||||
console.log("选择了否")
|
||||
},
|
||||
getQuestions(childid) {
|
||||
// var childid = e.currentTarget.dataset.childid
|
||||
wx.request({
|
||||
url: 'https://fy.btlsoln.com:8443/IntelligentGuidance/getQuestions',
|
||||
method: "GET",
|
||||
data: {
|
||||
childId: childid,
|
||||
},
|
||||
success: res => {
|
||||
this.setData({
|
||||
questions: JSON.parse(res.data.data)
|
||||
})
|
||||
var temp = this.data.questions.slice(0, 1)
|
||||
if (this.data.questions.length == 1) {
|
||||
// 新增是否被选择过的状态,新增最后一个数组的状态
|
||||
temp[0]['isChoose'] = "0"
|
||||
temp[0]['isLaseted'] = "1"
|
||||
console.log(temp)
|
||||
} else {
|
||||
temp[0]['isChoose'] = "0"
|
||||
temp[0]['isLaseted'] = "0"
|
||||
}
|
||||
console.log(temp[0])
|
||||
this.setData({
|
||||
showQuestions: temp
|
||||
})
|
||||
console.log(this.data.showQuestions)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
var childid = options.childid
|
||||
// console.log(options.childid)
|
||||
this.getQuestions(childid)
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
wx.setNavigationBarTitle({
|
||||
title: '自测分诊'
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
||||
3
pages/QA/QA.json
Normal file
3
pages/QA/QA.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
30
pages/QA/QA.wxml
Normal file
30
pages/QA/QA.wxml
Normal file
@@ -0,0 +1,30 @@
|
||||
<view class="chat_container">
|
||||
<view class="qa_container" wx:for="{{showQuestions}}" wx:key="index">
|
||||
<!-- 问题区 -->
|
||||
<view class="q_container">
|
||||
<view class="q_arrange">
|
||||
<!-- 图片和问题横向排列 -->
|
||||
<!-- 图片 -->
|
||||
<view class="q_icon_class q_icon"></view>
|
||||
<!-- 问题 和选项竖向排列-->
|
||||
<view class="q_question_row">
|
||||
<view class="q_content">{{item.question}}</view>
|
||||
<!-- 选项 -->
|
||||
<view class="q_radio">
|
||||
<view class="q_radio_y {{item.isChoose=='1'?'answer-active':''}}" data-departmentName="{{item.departmentName}}" bindtap="chooseYes">是</view>
|
||||
<!-- <view wx:if="{{item.isLaseted!='1'}}" class="q_radio_n {{item.isChoose=='1'?'answer-active':''}}" bindtap="chooseNo">否</view> -->
|
||||
<view class="q_radio_n {{item.isChoose=='1'?'answer-active':''}}" data-departmentName="{{item.departmentName}}" bindtap="chooseNo">否</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 回答 -->
|
||||
<view class="answer_container" wx:if="{{item.isChoose=='1'}}">
|
||||
<!-- 否和头像横向排列 -->
|
||||
<view class="answer_arrange">
|
||||
<view class="answer_no">否</view>
|
||||
<view class="answer_icon_class answer_icon"> </view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
129
pages/QA/QA.wxss
Normal file
129
pages/QA/QA.wxss
Normal file
@@ -0,0 +1,129 @@
|
||||
.chat_container {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: #f6f6f6;
|
||||
}
|
||||
|
||||
.qa_container {
|
||||
width: 100vw;
|
||||
height: 35vh;
|
||||
/* background-color: #ffffff; */
|
||||
}
|
||||
|
||||
.q_container {
|
||||
width: 100vw;
|
||||
}
|
||||
|
||||
.q_arrange {
|
||||
/* height: 10vh; */
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
border-radius: 20rpx;
|
||||
margin: 20rpx 20rpx 20rpx 20rpx;
|
||||
padding: 10rpx 10rpx 10rpx 10rpx;
|
||||
}
|
||||
|
||||
.q_question_row {
|
||||
width: 90vw;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: #ffffff;
|
||||
border-radius: 3%;
|
||||
}
|
||||
|
||||
.q_content {
|
||||
text-align: center;
|
||||
font-size: small;
|
||||
padding: 10rpx 10rpx 10rpx 10rpx;
|
||||
}
|
||||
|
||||
.q_radio {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
height: 10vh;
|
||||
font-size: small;
|
||||
text-align: center;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
}
|
||||
|
||||
.q_radio_y {
|
||||
width: 8vw;
|
||||
height: 4vh;
|
||||
border: solid 1rpx #69a4cc;
|
||||
border-radius: 40%;
|
||||
display: flex;
|
||||
margin-right: 10vw;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #6883ec;
|
||||
/* width: ; */
|
||||
}
|
||||
|
||||
.q_radio_n {
|
||||
width: 8vw;
|
||||
height: 4vh;
|
||||
border: solid 1rpx #69a4cc;
|
||||
border-radius: 40%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #6883ec;
|
||||
/* width: ; */
|
||||
}
|
||||
|
||||
.q_icon_class {
|
||||
width: 10vw;
|
||||
height: 6vh;
|
||||
margin: 10rpx 10rpx 10rpx 10rpx;
|
||||
padding: 5rpx 5rpx 5rpx 5rpx;
|
||||
/* background-color: green; */
|
||||
}
|
||||
|
||||
.q_icon {
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAACvNJREFUaEPtmglUU1cax7/7Xl72AAFRCIsYEkCiiLJYbd3aWm1tT9VTbTvtsa1tLaNtZ8QutnNa7XScbtY6Kt2G9kxXap1qRxllSi1aFzgQFNCgQMIiYQcTCGR7y51JbCIgWwCd6Tlzz+Ec3rvfvd//d7/v3XfvfUHwKy/oV64f/g/w347guEZgbYQ4GTj2AZIgVRzm/AEAA7iijDoxhrc+bbDljzfwuAE8HiZYBgT6REjxGAyoTMSjWhDgFRzgFoyhxcnQAgfNHsk02reOJ8T4AYQL63gEESIVCvgWmq4XUsIOl1AK2AAAiHL9b2eYyoxqS+z/HMBjEYIlBEY5tEBirPaPcDCA/SROW4NLqEUgTRRzTkOEo7NxAtujdmK8K6PS9MZ4QYw5AhtjA5faMPHXUrEifFJP21k/hwUojpnZWyBHkBe6+RLcKgoKj2E6W/xYa/a7leb08YAYE8CmGPk3XaQwtYIvb1VerpOTmI1xiUIIWYUUT0wSiMEYXcAYk3aGwRzHaZqlk/JAIEqMsbV0kiw9e7uhu3UsIKMG2Kj2V9oJQX4DR14ItpkWDCSCADjHp3iNQopa4qpnMddjdzL5FiDlLfLwpBnWJkBCvnR7WUvPaCFGDbApRo4LxWHGmHZ9uMe5iKJOcIBDMQaO5TgHx2F/DDiSQHBczBdKeSRKctliDCfbaTYCSfy5YLq7Ynul6c4bCrApNrC2lh/gLzO31JOYnS7m87V2mk5GAPtlIuHK3mIYljPYWaaBZtgkKV9QRfGIRFc9w3E1lYIgNp42qTCLIncYLtePBmJUEUiPkTtqsKA00GZOkQgFhRRBpDpoJt/G0EqZUFBCIsKdMn1AOK61x+HEYj6/hSKJBHdKIVTXxJNNDmO6zuyoMLmj42vxGWBjnHx6O8/vB8rcSvsJKBtJkr88uGDtsjkqOQ4b/cXCuwcTYrE7GgU8noHPI+e5bNpo7AimkODdSpPPWtwThq/Ej8WHbW8G/uooa1u3mE9N7dXesf79TOM769ZiCUVsBQxfDta31els4JM8CY8kAjrtjm6LbOLZvbra+b5qGRXAw5qIk9BjiQrm4XaCIGZ4nKbcefex+194ZeGlqov64p9+PJTzt8zZMqFg7mCiOA53EgTydzCcsSBQLdBqtRNvCMDyBJV2grkh1l8olHocCsSSqs1f7FPLAoO8GvK+26vL+ewTxmE2B/NIpBhK3AmZEgqLi33OhlFFIDk5uTSprTxWKhAIXB1QAkHOH7K+XyqVBw6osam6GpprDUVnco+015SV2u3W7qkcxnEEuqq3VKyAH0t0NwzAmtJ+USTmUzAxasrHix7fsO5MQQFMmDgRZqTOBlVc3IAg2lOnrLnZB9v0Oh3P1N4WFMDZqgNFoniXcZVwAhwsq7oxAIsXLzYxHc0BKfbmC3/6Z97Uw9/9HSYpFFBSWAhdnWYIUShgzfqn+0DUGfTw/jtvFUQpo8U3zVsYGjcjIfjw3qySnA93xfqLhSKdKORyOyW5zDDM4pKSklpfngWfqJOTk7eGhYVtaWhogDuENu22vQeSPc4aG42gUHhfyoNqKDmrhcSZV5qdPnww/9M/boktnTTVnX8IocyioqInrwtAampqDMdxFQqFAhobG2FVpLz0hd0ZM/JPHYc9O9+G5qZGuHn+InhkbRpEq9yvhj7leF4ufPrxHjDWX4KExFmwctVDMG/BrfDyfXd15dIBfr2MZ2m12rMjhRhxBBITE6N4PF6NB+D+qMCy5/6yJ2Hj04/DzFkpcM/yVXD0xyPQ3tICac9susb/Ky+lw+TJU+CJtGcgNycbfj7+E7z+xg4oP37I8MiOrGhPA4yxpLi42DruAK4Ok5KSVoWGhn7b3NwMTyco2h95ffuE/d9+DStX/8br79usz2H1g2uu8f9Rxnvw1IaN3vvFRQWQlHITdFYWNNz+/K4wVwXDMJ/RNB2t0+ncb+mRlBFHwNPZnDlz3pgdG5G6efm8yEkpS1QjcTKoDUsDYzx35ncZ+3oKK+pKtFrtsy5bjUaDdbqRTas+A3jEMKezVpCTk3YDgHv0+hdM2wFRwiH5sKW9mIib650IPMbx8fFbCILQnD9/fvVwAzRqAFfHuLFiM2A04P4WAwY03FILwUNIEfN1f5EajWY9Qmjh9QfQ6aQg5xcAxpprItBtBnDaAUn8AQSiAQYSnUNhaveyegCAFozxpvLy8kEXhJ42Y4rAlShUpgGGD4YL9TX1CL2EFOo3BxD/LgCkX/dnoLdj3FC1BwBv8Nxj65vAfugHwA4nYIsVJGtXAxEeerUJgn1IEdMnvzUazYsA4AYaqXiX7Zgj4FGFGyq+B0D3eq9tNmAuGoCaOQ2O5J3Qb8vI7HbVSSRCaUNT60X3mRfAHADwvsQwxqvLy8v3+RLNcQNwp9OlsnwghTf1F1BeZdA9ufk1J+IYZO6xmQHAtd75gmGYooqKCosvgvvbjitAZ2ne76V01xoUECFAIql7pekG6+noZk3N9U5x4FeS6Qu2jUXwdQNgjT+ktfESXvQ3aq08R1c8kFQZIgg/jLkeYGiNUxz0j25F4lSO45aEhob6tOIcCnhcIoDrDqyzkoq1Ft7k2S5n/kZtuRuiV+mIvtV9RXCO3GC25DkUcW/ZeERiTABKpVI9JyV26ZdvP7WrixdVayND3KfQriLuNJaKOipNtDAwoEuR6Nr8u3dwCFjdREeR5pWd32m/zi54rbqqKnssID4DKGNibgGOW4EA7gCAaZ9vT8ubO1O1CCMSWqkkKyBC7BHE5/OPMwwj4zhulueejL10Wsw0zsUYM6krtjhMFisfAE5g1x/L7q+pqfEpMiMCUKvVSozxcozxCkDoFo+YlASlIeu99a5RJ133OiUpdXaGnOweaYRKgoODE51O50mz2exuwyOgNshW4I1SWaXx1Mrf7ry5dwQwwCFA6ACw7P7q6urO4aIzJIBSrb4bYfwwACz3pEDvDvO+ePlYhCJwofeeTGm4jMMaaJqeHxAQcJ7P509DCJlbW1sRSZL6ILGzAtoKr669ASBz77ETb36cPdDyuREDHKjW6/vuT/sRDQoQGRkppyjqDCDkHbHebW+bqyn56PXH3Oec3sIPADxpPphMJp1cLveuj0wmU6VcLo9BFv0hMJff07uJrsqYc2/azqWDjjRCuw1VVe5l9kBlUACVSnUfBhjyrbhvz7MXZ06N7HMMgUMWngXKr88HDq/j9qKTyNbkTUEAqF/86FsVNfVttw+RKnqDXq/2GSA6OvpDQOipoXIwIjQQDn6U3iyTCEO8dpLwWhw4a4CoYQsyZhOAscRje/Cns9+kb/vqgeHyHDC+y2AwHPEpAtEqVRUADLvjWpAaZ8r88xNihK5Mk66CQxfXAk/UF8JpPoNafvbORt1W5+nEe152HWNEDgswRBoNmEJqtTqRw3jEJwPrHlhU9sKTy66u7WVTLuOA6X2O6pC5vBYsejcUy3EdD6d/0Fl0rkY5rPgrBoOm0YAASpVqMwLw6Uvi7lfXHLtzQYJ3RsIhi6qBkl0RyDkvoaajkcDR7svn38yqO5Bb7J5uR1oQwFK9Xv+v/vYDAkSrVHkAcHV6HMZLxtZHjy6ZN+223maYktsgZJ57K4ZMJTXQfWmKp57F2Prqzv0de7PzI0YK8J9P/lur9frXRgrg+onAiErag4sqn3ti2bUnWa5nYUJKKRDCNtR2gte/M4bheBu2fiY9elrXdyoezCvGhw0Gw7L+1f8Gi6JtbeKcZdoAAAAASUVORK5CYII=);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.answer_icon_class {
|
||||
width: 10vw;
|
||||
height: 6vh;
|
||||
margin: 10rpx 10rpx 10rpx 10rpx;
|
||||
padding: 5rpx 5rpx 5rpx 5rpx;
|
||||
}
|
||||
|
||||
.answer_icon {
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAACFVJREFUaEO1WQt0VMUZ/uZusncuhC0J4eQhBwKJpZW0IRzKIwGCxQCVSjkKLY2ERmJDxRYRTQ0lWgqIgdp6rJ4iPYhAjwqkKEWkKKSlhoRnwsMIhiAYShKIkV0Tkr13H3fq3SQLyb5mVphz9uzZne///v+bmTt3/n8IbkNzOBzpuq5PJISMAvAdxthYP7RnAVwghJxmjB2WZbmMEOL4pu5JuASapqUyxnIJIQWMsf5h8pQSQt6SZXlXmPYQFtDR0ZEpSdJSAA+G69SP3QUAL1JKN4hycgtgjMVqmlYCIF/UCS+eEFLFGCumlO7jtuEBapo2+2sBrwKI48HfBsyfKKVP8/CEnAFN055jjP2Bh+w2Yw64XK55UVFR14LxBhWgquorAH7NG9i56lpUHzqNNmsbWrs+ZmqGJbofvhVjQUpqMtLGp3p+c7Y6ADMopca33xZQAG/wTocTuzbtwQel/0ZT/VWuuMZNGY1ZC36M740dwYOvY4xlK4pS7w/sVwDvsjlb9Sk2rHoDF2ou8gTig3no0ZlYUJQb0pYQcsRsNk8ghLh7g30EdHR0zJYkqTQU69mqWhT+rDgULGR/9ux7saRkUUgcIWSLLMt5QQV0bZU1PLvNyoVrcbTsREjHPIBVm4sxakJaSChj7JeKomy8FdhjBux2+0ZCCNc+n5tRgOvN1pBOeQC/em4BHpj/Ix6o1eFw3G2xWL7sBnsFdL1hD/GwGJgZKXN4oSFxOYvn4OHFPw2J6wK8TCld4iNAVdWdIseDQAL6WRQ8sXQqVq/4J29AEBQAxtgQRVEuGw48M9B1MPuY22OAGUhM7I+lz0xH2sjB2P72MWx87SAXZRgC1iiKstwrQFXVtQB+y+WtC9R7BsZlJCO/YBKShg700pw+dRnv7DiBygrjrBa4hSHgqqIoCbfOgFX0SHyrgLz8iXh4/viAETZfa8XRIxdx9PAFHD3s+84QFdDlaBql9EPSlYxUi4x+90M8d14mfjhlOIYOixUyb2yw4soVKxobbGhtVaGb+yKn8FEhDgAvUUqXElVVFwN4WdTaeb4CffuaRc384t39EuG23CXKVUUpHU3sdvsWQsh8UWtzw3FRk4D4MAVAluVIomnakQA5rF+HzO0CabsGc3ujp994UJ9+YpsXO2fuGBQ8NtmvbXbWOs//ihKJ7Gmp+M2T2Z7fLkmGOyoBpN/NDYBndAghqcYSYjzgboz7YiXQYYMSLeYsmA8XMcN5vQHSoJEg/RNFwpkuLEA/tx/M7ewh4MzFRnxQcRLfH5aAaZlGYcJ/a7a1472KGkS4buAXP5niBbkQAae1CVLiCJCYIdwCCCE/Fxfwv5NgXzVBiYkDmO5xtr70APZVVGNYfH+8VFQQMIA95dXYfehjNF6+hD3rV3hxTl2CW+uANHQsYOLfGCRJyhMWYHjVG85ANjEQd2dZZ3/lSWzZdQD3Z/0AOTP8r38Dd/7zBqz861tI/24ynnrkZlFDc7pBElIBOYp79A0gISQ3LAGGceQXZ0Ec7UIOA4Gd8WlgAiPvfR7d7lnGLlTDGOPK7W4NwGSrh6m9+RsLMAI3BITTJEkaa8yAcWycKUpw+fQZpMRqgc3aCBiTATDA5ATp2/m89G5NLRoGpE0Qde/By7Ica7zIVn6daz4rylD2jzKkJ+mIT/CtKrIWF/SLNiDCBBhxu90gydGQYk0+bl79y0EUrC0UdW/g6ymlScYMGKnQXlGG11/YiuuXLmD57x/wa2rbXYUbtQ2ePiU5DgMe9K33nq+9iscLtmJrxQYMiIsRCoEx9raiKDmEMWbWNC3IWvDPayT0RmKfm5eB+Y+IL4HWr+woXrYT5z5pRMmbK3hLLN5gGGP5iqJs8iQ0qqruACCUI956nBYV0damYt2a93Gk8jNPQLlPzsXcxx8SmgGHwzHQYrG0dGdksxhj7/Iy1NV8hiWzinrAJ2YNx8LHJiEuIToozUcHa/H3zZX4/NIXXpxRkTAqEwKtlFLqSaK9Sb2qqkb5LoWHZN+2A3il2LcSvmb1dKSNSoJkioAp0gxiigDTdei6G8zthu5yYl7OZlht9h5uZGrGOzVv8rj2YEwm09TIyMj9vQUsBPAaD0vJ4j+jfO9hH6ghIDXVk+kFbAsX7URTY6tP//bqzYiy9OVxX0Ypva8b2KMupKpqFYDAp7Euq0AViT+umIrhI4MnJiuX7cWJc74F5+L1hRifPSakAMbYfYqilAUSMB3Av0KxWFtsuH7Nik9Pnce7r78H/UsrctIGIWNEAuQZ3w5oTprbIX1Uj5LyOpTXX8forHRMvD8DcYM6j+Ycxd6/UUqNleJtPrVRh8Pxoq7rT4USYfSzDjsc5cfgqDiOflKnBbtnIPR7fHMF0qpBOnIFaO3csatVglHP5APR3NdrdTabLT0+Pr7HAcxvdVpVVeMB8a4zHzFOF3DiFHDsFGC1+XTrmYPBEm6eLHsH323A+iggw1OAwYmA8d1HCThujLHJiqL8tzfAr4AbN27ERURElAO424fx+CnA+DS3BJ0klhQNFkMBCZDOtQDtzuCTGhsDZI4B0lN9cIyxPEVRtvgjCHbBYQT/vldE1RnA+DTyXWLwLEG/AQ1PBps0DrjLu5stopSuD8QX9IrJbrcPkSRpG9uxexw+qQ03pvDsJmeAZY0POPJ+dyF/nuxFq98ggM/FQnhRiVnpJgzq83xx54kwQAt+ybdszUwwnb/MLBZfSDQBNsklxUHvK4ILKHr+EMAyQ3q6owA2jZY8+6HwDLDCdfGaydF0R2PjICcgv5NLlr8gLKC9aGW6CZJw0ZcjJiEIA7YrJcVzhQXYi1ZNJiD/EfJ2Z8AHaUnxvYGo/w81xSvdD+KsRwAAAABJRU5ErkJggg==);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
border-radius: 50%;
|
||||
|
||||
}
|
||||
|
||||
.answer_no {
|
||||
width: 10vw;
|
||||
background-color: #ffffff;
|
||||
text-align: center;
|
||||
font-size: small;
|
||||
padding: 10rpx 10rpx 10rpx 10rpx;
|
||||
}
|
||||
|
||||
.answer_arrange {
|
||||
display: flex;
|
||||
float: right;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
border-radius: 20rpx;
|
||||
margin: 20rpx 20rpx 20rpx 20rpx;
|
||||
padding: 10rpx 10rpx 10rpx 10rpx;
|
||||
|
||||
}
|
||||
.answer-active {
|
||||
background-color: grey;
|
||||
color: grey;
|
||||
pointer-events: none;
|
||||
}
|
||||
70
pages/QAresult/Qaresult.js
Normal file
70
pages/QAresult/Qaresult.js
Normal file
@@ -0,0 +1,70 @@
|
||||
// pages/QAresult/Qaresult.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
departmentnameList: []
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
var departmentnames = options.departmentname
|
||||
console.log(departmentnames)
|
||||
this.setData({
|
||||
departmentnameList: departmentnames.split(',')
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
||||
4
pages/QAresult/Qaresult.json
Normal file
4
pages/QAresult/Qaresult.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
}
|
||||
}
|
||||
18
pages/QAresult/Qaresult.wxml
Normal file
18
pages/QAresult/Qaresult.wxml
Normal file
@@ -0,0 +1,18 @@
|
||||
<view class="result_container">
|
||||
<view class="suggestion_container">
|
||||
<view class="suggestion_class">就诊建议</view>
|
||||
<view class="suggestion_font_class">请选择下面推荐科室挂号就诊</view>
|
||||
</view>
|
||||
<view class="department_container">
|
||||
<view class="suggestion_department">推荐科室</view>
|
||||
<!-- 科室列表 -->
|
||||
<view class="department_list" wx:for="{{departmentnameList}}"wx:key="index">
|
||||
<view class="department_content">{{item}}</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="ps_container">
|
||||
<view class="question_tips">温馨提示:</view>
|
||||
<view class="tips">以上推荐科室仅供参考</view>
|
||||
</view>
|
||||
</view>
|
||||
65
pages/QAresult/Qaresult.wxss
Normal file
65
pages/QAresult/Qaresult.wxss
Normal file
@@ -0,0 +1,65 @@
|
||||
/* pages/QAresult/Qaresult.wxss */
|
||||
|
||||
.result_container {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: #f6f6f6;
|
||||
padding: 3rpx 3rpx 3rpx 3rpx;
|
||||
/* margin: 10rpx 10rpx 10rpx 10rpx; */
|
||||
}
|
||||
|
||||
.suggestion_container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 3rpx 3rpx 3rpx 3rpx;
|
||||
/* margin: 10rpx 10rpx 10rpx 10rpx; */
|
||||
}
|
||||
|
||||
.suggestion_class {
|
||||
padding: 3rpx 3rpx 3rpx 3rpx;
|
||||
font-size: x-small;
|
||||
}
|
||||
|
||||
.suggestion_font_class {
|
||||
height: 6vh;
|
||||
display: flex;
|
||||
font-size: small;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
background-color: #ffffff;
|
||||
padding: 3rpx 3rpx 3rpx 3rpx;
|
||||
}
|
||||
|
||||
.department_container{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 10rpx 10rpx 10rpx 10rpx;
|
||||
/* margin: 10rpx 10rpx 10rpx 10rpx; */
|
||||
}
|
||||
.suggestion_department{
|
||||
font-size: x-small;
|
||||
padding: 3rpx 3rpx 3rpx 3rpx;
|
||||
}
|
||||
.department_list{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.department_content{
|
||||
height: 6vh;
|
||||
display: flex;
|
||||
font-size: small;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
background-color: #ffffff;
|
||||
padding: 3rpx 3rpx 3rpx 3rpx;
|
||||
}
|
||||
.ps_container{
|
||||
display: flex;
|
||||
}
|
||||
.question_tips{
|
||||
font-size: x-small;
|
||||
color: red;
|
||||
}
|
||||
.tips{
|
||||
font-size: x-small;
|
||||
}
|
||||
142
pages/addUserMessage/addUserMessage.js
Normal file
142
pages/addUserMessage/addUserMessage.js
Normal file
@@ -0,0 +1,142 @@
|
||||
// pages/addUserMessage/addUserMessage.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
trueName:'',
|
||||
carNum:'',
|
||||
phoneNumber:""
|
||||
},
|
||||
getname(e) {
|
||||
this.setData({
|
||||
trueName: e.detail.value
|
||||
})
|
||||
},
|
||||
getnum(e) {
|
||||
this.setData({
|
||||
carNum: e.detail.value
|
||||
})
|
||||
},
|
||||
getnumber(e) {
|
||||
this.setData({
|
||||
phoneNumber: e.detail.value
|
||||
})
|
||||
},
|
||||
saveUserMessage(){
|
||||
if(this.data.trueName ==''||this.data.carNum ==''||this.data.phoneNumber ==''){
|
||||
wx.showModal({
|
||||
content: '请填写完整信息',
|
||||
showCancel: false,
|
||||
})
|
||||
}else{
|
||||
let reg =/^(((13[0-9]{1})|(14[0-9]{1})|(17[0-9]{1})|(15[0-3]{1})|(15[4-9]{1})|(18[0-9]{1})|(199))+\d{8})$/;;
|
||||
let reg2 = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
|
||||
if(!reg.test(this.data.phoneNumber)){
|
||||
wx.showToast({
|
||||
title: '请输入正确的手机号!',
|
||||
icon:'none'
|
||||
})
|
||||
}else if(!reg2.test(this.data.carNum)){
|
||||
wx.showToast({
|
||||
title: '请输入正确的身份证号码!',
|
||||
icon:'none'
|
||||
})
|
||||
}else{
|
||||
wx.request({
|
||||
url:'https://fy.btlsoln.com:8443/his/addUser?hzxm&sfzh',
|
||||
method:"GET",
|
||||
data:{
|
||||
hzxm:this.data.trueName,
|
||||
sfzh:this.data.carNum,
|
||||
lxdh:this.data.phoneNumber
|
||||
},
|
||||
header: {
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
success: (res)=> {
|
||||
if(res.data.errCode ==0){
|
||||
wx.showToast({
|
||||
title: '建档成功',
|
||||
icon:'success'
|
||||
})
|
||||
setTimeout(item => {
|
||||
wx.navigateBack({
|
||||
delta: 1 //返回上一级页面
|
||||
})
|
||||
},1000)
|
||||
}else{
|
||||
wx.showToast({
|
||||
title: res.data.errMsg,
|
||||
icon:'error'
|
||||
})
|
||||
setTimeout(item => {
|
||||
wx.navigateBack({
|
||||
delta: 1 //返回上一级页面
|
||||
})
|
||||
},1000)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
wx.setNavigationBarTitle({
|
||||
title: '建立档案',
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
||||
3
pages/addUserMessage/addUserMessage.json
Normal file
3
pages/addUserMessage/addUserMessage.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
34
pages/addUserMessage/addUserMessage.wxml
Normal file
34
pages/addUserMessage/addUserMessage.wxml
Normal file
@@ -0,0 +1,34 @@
|
||||
<!--pages/userMsgDel/userMsgDel.wxml-->
|
||||
<view class="main">
|
||||
<view class="content">
|
||||
<view class="title">请认真填写档案信息信息</view>
|
||||
<view class="form">
|
||||
<view class="item" >
|
||||
<view class="left">姓名</view>
|
||||
<view class="input">
|
||||
<input class="sr" bindinput="getname" value="{{ trueName }}" placeholder-class="placeholder" placeholder="请输入真实姓名"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item" >
|
||||
<view class="left">手机号</view>
|
||||
<view class="input">
|
||||
<input class="sr" bindinput="getnumber" value="{{ phoneNumber }}" placeholder-class="placeholder" placeholder="请输入手机号码"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item" >
|
||||
<view class="left">身份证</view>
|
||||
<view class="input">
|
||||
<input class="sr" bindinput="getnum" value="{{ carNum }}" placeholder-class="placeholder" placeholder="请输入身份证号码"></input>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="item">
|
||||
<view class="left1">设为默认就诊人 </view>
|
||||
<view class="switch">
|
||||
<van-switch class="sw" checked="{{ checked }}" bind:change="onChange" size="25px" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="msgDes">初次添加就诊人请绑定本院就诊卡号,未持有本院就诊卡的患者需到本院自助机或窗口办理就诊卡后方可进行添加。</view> -->
|
||||
<view class="btn" bindtap="saveUserMessage">保存</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
172
pages/addUserMessage/addUserMessage.wxss
Normal file
172
pages/addUserMessage/addUserMessage.wxss
Normal file
@@ -0,0 +1,172 @@
|
||||
/* pages/addUserMessage/addUserMessage.wxss *//* pages/userMsgDel/userMsgDel.wxss */
|
||||
.main{
|
||||
margin: 30rpx 0;
|
||||
width: 750rpx;
|
||||
}
|
||||
.content{
|
||||
height: 100%;
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.title{
|
||||
height: 120rpx;
|
||||
width: 100%;
|
||||
font-size: 33rpx;
|
||||
color: #666;
|
||||
line-height: 120rpx;
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
}
|
||||
.item{
|
||||
height: 120rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
}
|
||||
.left{
|
||||
height: 100%;
|
||||
width: 180rpx;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
line-height: 120rpx;
|
||||
}
|
||||
.input{
|
||||
flex: 1;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
line-height: 120rpx;
|
||||
}
|
||||
.input2{
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
font-size: 30rpx;
|
||||
color: #666;
|
||||
line-height: 120rpx;
|
||||
}
|
||||
.input3{
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
line-height: 120rpx;
|
||||
}
|
||||
.sr{
|
||||
border: 0;
|
||||
}
|
||||
.placeholder{
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.popWrap{
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 10rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.popWrap :last-child{
|
||||
border: none;
|
||||
}
|
||||
.title1{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
font-size: 33rpx;
|
||||
color: #666;
|
||||
line-height: 80rpx;
|
||||
text-align: center
|
||||
}
|
||||
.msgItem1{
|
||||
height: 160rpx;
|
||||
width: 80%;
|
||||
margin: 0 auto;
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
}
|
||||
.kUp{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
}
|
||||
.k1{
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
}
|
||||
.k2{
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
font-size: 35rpx;
|
||||
color: #666;
|
||||
margin-left: 50rpx;
|
||||
}
|
||||
.KDown{
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
font-size: 35rpx;
|
||||
color: #666;
|
||||
}
|
||||
.msgItem{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
text-align: center;
|
||||
line-height: 80rpx;
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
}
|
||||
.left1{
|
||||
height: 100%;
|
||||
width: 300rpx;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
line-height: 120rpx;
|
||||
}
|
||||
.left1{
|
||||
height: 100%;
|
||||
width: 400rpx;
|
||||
}
|
||||
.switch{
|
||||
height: 100%;
|
||||
width: 100rpx;
|
||||
display:flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.msgDes{
|
||||
height: 180rpx;
|
||||
width: 100%;
|
||||
padding: 20rpx 15rpx;
|
||||
box-sizing: border-box;
|
||||
border-radius: 10rpx;
|
||||
margin-top: 10rpx;
|
||||
background: rgba(247,247,248);
|
||||
font-size: 30rpx;
|
||||
color: #666;
|
||||
line-height: 50rpx;
|
||||
}
|
||||
.btn{
|
||||
height: 100rpx;
|
||||
margin-top: 50rpx;
|
||||
width: 100%;
|
||||
background: rgba(0,110,255);
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
line-height: 100rpx;
|
||||
border-radius: 10rpx;
|
||||
font-size: 35rpx;
|
||||
letter-spacing: 5rpx;
|
||||
}
|
||||
.btn2{
|
||||
height: 100rpx;
|
||||
margin-top: 30rpx;
|
||||
margin-bottom: 20rpx;
|
||||
width: 100%;
|
||||
background: rgba(228,240,255);
|
||||
color: rgba(3,112,255);
|
||||
text-align: center;
|
||||
line-height: 100rpx;
|
||||
border-radius: 10rpx;
|
||||
font-size: 35rpx;
|
||||
letter-spacing: 5rpx;
|
||||
}
|
||||
104
pages/articleDetails/articleDetails.js
Normal file
104
pages/articleDetails/articleDetails.js
Normal file
@@ -0,0 +1,104 @@
|
||||
// pages/articleDetails/articleDetails.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
hosId:'',
|
||||
msgList:[]
|
||||
},
|
||||
|
||||
getList(){
|
||||
wx.request({
|
||||
url:'https://fy.btlsoln.com:8443/findHospitalArticle?hos_article_id=',
|
||||
// url:'http://sayetest.f3322.org:5000/findHospitalArticle?hos_article_id',
|
||||
method:"GET",
|
||||
data:{
|
||||
hos_article_id:this.data.hosId
|
||||
},
|
||||
header: {
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
success: (res)=> {
|
||||
console.log(res,"百科明细")
|
||||
let data = res.data
|
||||
data.map((item,index) => {
|
||||
let str = item.IMG
|
||||
let str2 = item.CONTENT
|
||||
|
||||
var html2 = str2.replaceAll("/showFile",'https://fy.btlsoln.com:8443/showFile')
|
||||
var html3 = html2.replaceAll("<img",'<img class="img"')
|
||||
|
||||
var html = str.replace("/showFile",'https://fy.btlsoln.com:8443/showFile')
|
||||
item.IMG = html
|
||||
item.CONTENT = html3
|
||||
return data
|
||||
})
|
||||
console.log(data,"新")
|
||||
this.setData({
|
||||
msgList:data
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
this.setData({
|
||||
hosId:options.hosId
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
wx.setNavigationBarTitle({
|
||||
title: '文章详情'
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
this.getList()
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
||||
6
pages/articleDetails/articleDetails.json
Normal file
6
pages/articleDetails/articleDetails.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"htmltowxml" : "plugin://htmltowxml/view",
|
||||
"wxparser": "plugin://wxparserPlugin/wxparser"
|
||||
}
|
||||
}
|
||||
18
pages/articleDetails/articleDetails.wxml
Normal file
18
pages/articleDetails/articleDetails.wxml
Normal file
@@ -0,0 +1,18 @@
|
||||
<!--pages/articleDetails/articleDetails.wxml-->
|
||||
<view class="banner">
|
||||
<view wx:for="{{msgList}}" wx:key="item">
|
||||
<view class="titleWrap">
|
||||
<view class="title">{{item.TITLE}}</view>
|
||||
<!-- <view class="dateWrap">
|
||||
<view>王敏</view>
|
||||
<view class="ml">2020/09/09</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="imgWrap">
|
||||
<image src="{{item.IMG}}"/>
|
||||
</view>
|
||||
<view class="msgWrap">
|
||||
<rich-text nodes="{{item.CONTENT}}"></rich-text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
57
pages/articleDetails/articleDetails.wxss
Normal file
57
pages/articleDetails/articleDetails.wxss
Normal file
@@ -0,0 +1,57 @@
|
||||
/* pages/articleDetails/articleDetails.wxss */
|
||||
.banner{
|
||||
margin: 30rpx 0;
|
||||
width: 750rpx;
|
||||
padding: 0 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.titleWrap{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.title{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
font-size: 38rpx;
|
||||
line-height: 80rpx;
|
||||
color: #333;
|
||||
}
|
||||
.dateWrap{
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
font-size: 30rpx;
|
||||
color: #666;
|
||||
}
|
||||
.ml{
|
||||
margin-left: 30rpx;
|
||||
}
|
||||
.imgWrap{
|
||||
height: 350rpx;
|
||||
width: 100%;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.img{
|
||||
height: 350rpx;
|
||||
border-radius: 15rpx;
|
||||
}
|
||||
.imgWrap image{
|
||||
height: 100%;
|
||||
width:100%;
|
||||
border-radius: 15rpx;
|
||||
background-size: 100%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.msgWrap{
|
||||
width: 100%;
|
||||
margin-top: 20rpx;
|
||||
color: #555;
|
||||
font-size: 35rpx;
|
||||
line-height: 180%
|
||||
}
|
||||
330
pages/bgMsg/bgMsg.js
Normal file
330
pages/bgMsg/bgMsg.js
Normal file
@@ -0,0 +1,330 @@
|
||||
// pages/bgMsg/bgMsg.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
date: '',
|
||||
show: false,
|
||||
list:'',
|
||||
minDate: new Date(2010, 0, 1).getTime(),
|
||||
maxDate: new Date().getTime(),
|
||||
currentDate: new Date().getTime(),
|
||||
ksrq:'',
|
||||
jsrq:'',
|
||||
date1:'',//弹框开始日期
|
||||
date2:"",//弹框结束日期
|
||||
date3:"",//按钮显示开始日期
|
||||
date4:"",//按钮显示结束日期
|
||||
isSel:"0",
|
||||
cardNum:'',
|
||||
flag:'',
|
||||
loadingHidden:true,
|
||||
rqList:[
|
||||
{name:'近一周',id:"0"},
|
||||
{name:'近一月',id:"1"},
|
||||
{name:'近半年',id:"2"},
|
||||
{name:'近一年',id:"3"},
|
||||
],
|
||||
curId:0,
|
||||
},
|
||||
daySGone(p_count){
|
||||
var dd = new Date();
|
||||
var tt = new Date();
|
||||
dd.setDate(dd.getDate() - p_count);//获取p_count天后的日期
|
||||
var y = dd.getFullYear();
|
||||
var yy = tt.getFullYear();
|
||||
var m = dd.getMonth() + 1;//获取当前月份的日期
|
||||
var mm = tt.getMonth() + 1;//获取当前月份的日期
|
||||
if( m <10){
|
||||
m = '0'+m;
|
||||
}
|
||||
if( mm <10){
|
||||
mm = '0'+mm;
|
||||
}
|
||||
var d = dd.getDate();
|
||||
var dd = tt.getDate();
|
||||
if( d <10){
|
||||
d = '0'+d;
|
||||
}
|
||||
if( dd <10){
|
||||
dd = '0'+dd;
|
||||
}
|
||||
console.log( y + "-" + m + "-" + d,"前面日期")
|
||||
console.log( yy + "-" + mm + "-" + dd,"当前日期")
|
||||
let ago = y + "-" + m + "-" + d
|
||||
let agoStr = ago.replace(/-/g,'')
|
||||
let today = yy + "-" + mm + "-" + dd
|
||||
let todayStr = today.replace(/-/g,'')
|
||||
this.setData({
|
||||
date3:ago,
|
||||
date4:today
|
||||
})
|
||||
this.getList(agoStr,todayStr)
|
||||
},
|
||||
rqSel(e){
|
||||
console.log(e.currentTarget.dataset.item.id)
|
||||
let id = e.currentTarget.dataset.item.id
|
||||
this.setData({
|
||||
curId:id,
|
||||
loadingHidden:false
|
||||
})
|
||||
if(id == 0){
|
||||
this.daySGone(7)
|
||||
}else if(id == 1){
|
||||
this.daySGone(30)
|
||||
}else if(id == 2){
|
||||
this.daySGone(180)
|
||||
}else{
|
||||
this.daySGone(365)
|
||||
}
|
||||
},
|
||||
// 初始化弹框以及接口时间
|
||||
InitDays() {
|
||||
var dd = new Date();
|
||||
var tt = new Date();
|
||||
var d7 = new Date();
|
||||
dd.setDate(dd.getDate() - 30);//获取p_count天后的日期
|
||||
d7.setDate(d7.getDate() - 7);//获取p_count天后的日期
|
||||
var y = dd.getFullYear();
|
||||
var yy = tt.getFullYear();
|
||||
var yyy = d7.getFullYear();
|
||||
var m = dd.getMonth() + 1;//获取当前月份的日期
|
||||
var mm = tt.getMonth() + 1;//获取当前月份的日期
|
||||
var mmm = d7.getMonth() + 1;//获取当前月份的日期
|
||||
if( m <10){
|
||||
m = '0'+m;
|
||||
}
|
||||
if( mm <10){
|
||||
mm = '0'+mm;
|
||||
}
|
||||
if( mmm <10){
|
||||
mmm = '0'+mmm;
|
||||
}
|
||||
var d = dd.getDate();
|
||||
var dd = tt.getDate();
|
||||
var ddd = d7.getDate();
|
||||
if( d <10){
|
||||
d = '0'+d;
|
||||
}
|
||||
if( dd <10){
|
||||
dd = '0'+dd;
|
||||
}
|
||||
if( ddd <10){
|
||||
ddd = '0'+ddd;
|
||||
}
|
||||
//前一月
|
||||
let ago = y + "-" + m + "-" + d
|
||||
let agoStr = ago.replace(/-/g,'')
|
||||
//前一周
|
||||
let DS = yyy + "-" + mmm + "-" + ddd
|
||||
let dsStr = DS.replace(/-/g,'')
|
||||
let today = yy + "-" + mm + "-" + dd
|
||||
let todayStr = today.replace(/-/g,'')
|
||||
var cur = Date.parse(ago);
|
||||
this.setData({
|
||||
date1:ago,//弹框时间
|
||||
date2:today,//弹框时间
|
||||
date3:DS,
|
||||
date4:today,
|
||||
currentDate:cur,//当前激活时间
|
||||
ksrq:dsStr,
|
||||
jsrq:todayStr,
|
||||
})
|
||||
},
|
||||
dateSel() {
|
||||
this.setData({ show: true });
|
||||
},
|
||||
onClose() {
|
||||
this.setData({ show: false });
|
||||
},
|
||||
onConfirm() {
|
||||
let ksrq = this.data.ksrq
|
||||
let jsrq = this.data.jsrq
|
||||
if(ksrq == '' || jsrq ==''){
|
||||
wx.showToast({
|
||||
title: '日期不完整',
|
||||
icon:"error"
|
||||
})
|
||||
}else{
|
||||
// 开始日期小于结束日期
|
||||
if(Number(ksrq) <= Number(jsrq)){
|
||||
this.setData({
|
||||
show: false,
|
||||
loadingHidden: false,
|
||||
curId:'',
|
||||
date3:this.data.date1,
|
||||
date4:this.data.date2
|
||||
});
|
||||
this.getList(ksrq,jsrq)
|
||||
}else{
|
||||
wx.showToast({
|
||||
title: '日期格式错误',
|
||||
icon:"error"
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
onInput(event){
|
||||
var timestamp = event.detail;
|
||||
var d = new Date(timestamp * 1);
|
||||
var y = d.getFullYear()
|
||||
var m = d.getMonth() + 1
|
||||
var t = d.getDate()
|
||||
var date = y+ "-" +(m > 9 ? m : "0" + m) +"-" +(t > 9 ? t : "0" + t)
|
||||
let date2 = date.replace(/-/g,'')
|
||||
console.log(date2)
|
||||
if(this.data.isSel == 0){
|
||||
this.setData({
|
||||
date1:date,
|
||||
ksrq:date2
|
||||
})
|
||||
}else if(this.data.isSel == 1){
|
||||
this.setData({
|
||||
date2:date,
|
||||
jsrq:date2
|
||||
})
|
||||
}
|
||||
},
|
||||
date1Sel(e){
|
||||
console.log(e.currentTarget.dataset.id)
|
||||
let id = e.currentTarget.dataset.id
|
||||
this.setData({
|
||||
isSel:id
|
||||
})
|
||||
},
|
||||
date2Sel(e){
|
||||
console.log(e.currentTarget.dataset.id)
|
||||
let id = e.currentTarget.dataset.id
|
||||
this.setData({
|
||||
isSel:id
|
||||
})
|
||||
},
|
||||
getList(ksrq,jsrq){
|
||||
wx.request({
|
||||
url:'https://fy.btlsoln.com:8443/his/getInspectReport?cardno&ksrq&jsrq&lb&brlx&bglx',
|
||||
method:"GET",
|
||||
data:{
|
||||
ksrq:ksrq,
|
||||
jsrq:jsrq,
|
||||
cardno:this.data.cardNum,
|
||||
bglx:this.data.id,
|
||||
lb:'0',
|
||||
brlx:"1",
|
||||
id:''
|
||||
},
|
||||
header: {
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
success: (res)=> {
|
||||
let that = this
|
||||
setTimeout(function(){
|
||||
console.log(11111)
|
||||
let data = res.data.list
|
||||
data.map((item,index) => {
|
||||
let num = item.reprq
|
||||
var year = String(num).substr(0,4)
|
||||
var month = String(num).substr(4,5).substr(0,2)
|
||||
var date = String(num).substr(6,7).substr(0,2)
|
||||
var time = String(num).substr(8,14)
|
||||
var result2 = year+'-'+ month +'-'+date+'-'+time
|
||||
item.reprq = result2
|
||||
return data
|
||||
})
|
||||
if(data == ''){
|
||||
that.setData({
|
||||
flag:false,
|
||||
})
|
||||
}else{
|
||||
that.setData({
|
||||
flag:true,
|
||||
list:res.data.list
|
||||
})
|
||||
}
|
||||
that.setData({
|
||||
loadingHidden: true
|
||||
});
|
||||
}, 500);
|
||||
console.log(this.data.list,"报告")
|
||||
}
|
||||
})
|
||||
},
|
||||
navitoMsg(e){
|
||||
console.log(e.currentTarget.dataset.item)
|
||||
let item = e.currentTarget.dataset.item
|
||||
let name = item.hzxm
|
||||
let sex = item.sex
|
||||
let age = item.age
|
||||
let HisOrderName = item.HisOrderName
|
||||
let repno = item.repno
|
||||
let reprq = item.reprq
|
||||
let cardno = item.cardno
|
||||
let id = this.data.id
|
||||
wx.navigateTo({
|
||||
url: '/pages/bgXq/bgXq?name='+name+'&sex='+sex+'&age='+age+'&HisOrderName='+HisOrderName+'&repno='+repno+'&reprq='+reprq+'&cardno='+cardno+'&id='+id
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
console.log(options,'options')
|
||||
this.setData({
|
||||
cardNum:options.cardNum,
|
||||
id:options.id,
|
||||
loadingHidden: false,
|
||||
})
|
||||
this.getList()
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
this.InitDays()
|
||||
wx.setNavigationBarTitle({
|
||||
title: '报告查询',
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
||||
6
pages/bgMsg/bgMsg.json
Normal file
6
pages/bgMsg/bgMsg.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"van-popup": "@vant/weapp/popup/index",
|
||||
"van-datetime-picker": "@vant/weapp/datetime-picker/index"
|
||||
}
|
||||
}
|
||||
55
pages/bgMsg/bgMsg.wxml
Normal file
55
pages/bgMsg/bgMsg.wxml
Normal file
@@ -0,0 +1,55 @@
|
||||
<!--pages/bgMsg/bgMsg.wxml-->
|
||||
<view class="main">
|
||||
<view class="content">
|
||||
<view class="btnWrap">
|
||||
<view class="gdrq">
|
||||
<view class="btn1 {{curId == item.id ? 'ac':'mr'}}" wx:for="{{rqList}}" wx:key="item" data-item="{{item}}" bindtap="rqSel">{{item.name}}</view>
|
||||
</view>
|
||||
<view class="dtrq">
|
||||
<view class="timeMsg">
|
||||
<view class="itemTi">{{date3}}</view>
|
||||
<view class="itemT">至</view>
|
||||
<view class="itemTi">{{date4}}</view>
|
||||
</view>
|
||||
<view class="btn2" bindtap="dateSel">
|
||||
<view>选择时间</view>
|
||||
<view class="icon2"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<loading hidden="{{loadingHidden}}">加载中...</loading>
|
||||
<view wx:if="{{loadingHidden}}">
|
||||
<view wx:if="{{flag == true}}">
|
||||
<view class="item" wx:for="{{list}}" wx:key="item" data-item="{{item}}" bindtap="navitoMsg">
|
||||
<view class="title">{{item.sjksmc}}</view>
|
||||
<view class="msgWrap">
|
||||
<view class="msgLeft">
|
||||
<view class="text">{{item.jcksmc}} {{item.HisOrderName}}</view>
|
||||
<view class="text">{{item.reprq}}</view>
|
||||
</view>
|
||||
<view class="msgRight">查看详情</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item zw" wx:else>暂无数据</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<van-popup
|
||||
show="{{ show }}"
|
||||
round
|
||||
position="bottom">
|
||||
<view class="dateWrap">
|
||||
<view class="dateItem {{isSel == 0 ? 'dateActive':''}}" bindtap="date1Sel" data-id="0">{{date1}}</view>
|
||||
<view>至</view>
|
||||
<view class="dateItem {{isSel == 1 ? 'dateActive':''}} " bindtap="date2Sel" data-id="1">{{date2}}</view>
|
||||
</view>
|
||||
<van-datetime-picker
|
||||
type="date"
|
||||
value="{{ currentDate }}"
|
||||
bind:input="onInput"
|
||||
min-date="{{ minDate }}"
|
||||
bind:confirm="onConfirm"
|
||||
bind:cancel="onClose"
|
||||
/>
|
||||
</van-popup>
|
||||
172
pages/bgMsg/bgMsg.wxss
Normal file
172
pages/bgMsg/bgMsg.wxss
Normal file
@@ -0,0 +1,172 @@
|
||||
/* pages/bgMsg/bgMsg.wxss */
|
||||
.main{
|
||||
margin: 30rpx 0;
|
||||
width: 750rpx;
|
||||
}
|
||||
.content{
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.btnWrap{
|
||||
height: 160rpx;
|
||||
width: 100%;
|
||||
}
|
||||
.gdrq{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.dtrq{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.timeMsg{
|
||||
height: 60rpx;
|
||||
width: 450rpx;
|
||||
font-size: 30rpx;
|
||||
border-radius: 30rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
color: rgba(0,110,255);
|
||||
background: rgba(226,237,254);
|
||||
}
|
||||
.itemTi{
|
||||
height: 100%;
|
||||
width: 45%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.itemT{
|
||||
height: 100%;
|
||||
width: 10%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.btn1{
|
||||
height: 60rpx;
|
||||
width: 160rpx;
|
||||
border-radius: 30rpx;
|
||||
text-align: center;
|
||||
line-height: 60rpx;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
.mr{
|
||||
color: rgba(0,110,255);
|
||||
background: rgba(226,237,254);
|
||||
}
|
||||
.ac{
|
||||
color: #fff;
|
||||
background: rgba(0,110,255);
|
||||
}
|
||||
.btn2{
|
||||
height: 60rpx;
|
||||
width: 220rpx;
|
||||
margin-left: 50rpx;
|
||||
background: rgba(228,240,255);
|
||||
border-radius: 30rpx;
|
||||
text-align: center;
|
||||
line-height: 60rpx;
|
||||
color: rgba(0,110,255);
|
||||
font-size: 32rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.icon2{
|
||||
height: 30rpx;
|
||||
width: 30rpx;
|
||||
margin-left: 10rpx;
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAUhJREFUWEftlT1SwzAQhd9zQx+VdEDMEeiSO0AHJ3DIJBUcAiqYEJ8AOrhD0nEEHKCjVHoaL2NBZhKwLf8oCYXV2nr7zUrfitjy4pbrowFoOtB04P90QIWvAxHpb2IukBzp4OA2qbXSgdY4ugJ4sV4IuZ73/MtFjT9HoMazewFO1wFB4EH32mfL2al3oBXOJhB0nEIQ03nQ7v7OTAVQ4cuuiDcFsOcI4p2MOzo4/CgEkPykRtERPE4E2KkDQeATsXR1339Oy8nVUN29HQvjx1oA4p3o8/2nrAzrHPjR86YKBMnhQrfKAMnGanqu6lYLwNyJEnqm6VYbwHSiiJ4ZujkBKKBnpm5OAPL0tOnmDMBApOhJi25OAQxEGA1EaPQkZagD37xuZZd1DuQFfusJLL9uGwUoW6z0KHZRwJZR6whs4UW+NwBNB74ADGh0IdudMasAAAAASUVORK5CYII=);
|
||||
background-size: 100%;
|
||||
}
|
||||
.item{
|
||||
height: 220rpx;
|
||||
width: 100%;
|
||||
border-radius: 5rpx;
|
||||
margin: 40rpx auto;
|
||||
box-shadow:0px 0px 15rpx #e2e2e2;
|
||||
padding:0 30rpx;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.zw{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 33rpx;
|
||||
color: #666;
|
||||
}
|
||||
.title{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
}
|
||||
.msgWrap{
|
||||
flex: 1;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.msgLeft{
|
||||
height: 100%;
|
||||
width: 70%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
.text{
|
||||
height: 50%;
|
||||
width: 100%;
|
||||
font-size: 30rpx;
|
||||
color: #666;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.msgRight{
|
||||
height: 100%;
|
||||
width: 30%;
|
||||
font-size: 33rpx;
|
||||
color: rgba(0,110,255);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.dateWrap{
|
||||
height: 80rpx;
|
||||
width: 80%;
|
||||
margin: 50rpx auto;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.dateItem{
|
||||
height: 100%;
|
||||
width: 40%;
|
||||
font-size: 30rpx;
|
||||
color: rgba(0,110,255);
|
||||
background: rgba(230,241,255);
|
||||
border-radius: 15rpx;
|
||||
text-align: center;
|
||||
line-height: 80rpx;
|
||||
}
|
||||
.dateActive{
|
||||
height: 100%;
|
||||
width: 40%;
|
||||
font-size: 30rpx;
|
||||
color: #fff;
|
||||
background: rgba(0,110,255);
|
||||
border-radius: 15rpx;
|
||||
text-align: center;
|
||||
line-height: 80rpx;
|
||||
}
|
||||
105
pages/bgXq/bgXq.js
Normal file
105
pages/bgXq/bgXq.js
Normal file
@@ -0,0 +1,105 @@
|
||||
// pages/bgXq/bgXq.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
name:'',
|
||||
sex:'',
|
||||
age:'',
|
||||
reprq:'',
|
||||
HisOrderName:'',
|
||||
list:[]
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
console.log(options,"接受")
|
||||
this.setData({
|
||||
name:options.name,
|
||||
sex:options.sex,
|
||||
age:options.age,
|
||||
reprq:options.reprq,
|
||||
HisOrderName:options.HisOrderName,
|
||||
id:options.id
|
||||
})
|
||||
let repno = options.repno
|
||||
let cardno = options.cardno
|
||||
wx.request({
|
||||
url:'https://fy.btlsoln.com:8443/his/getInspectReport?cardno&ksrq&repno&jsrq&lb&brlx',
|
||||
method:"GET",
|
||||
data:{
|
||||
ksrq:'',
|
||||
jsrq:'',
|
||||
repno:repno,
|
||||
cardno:cardno,
|
||||
lb:'1',
|
||||
brlx:"1"
|
||||
},
|
||||
header: {
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
success: (res)=> {
|
||||
console.log(res,"报告详情")
|
||||
this.setData({
|
||||
list:res.data.list
|
||||
})
|
||||
}
|
||||
})
|
||||
wx.setNavigationBarTitle({
|
||||
title: '报告详情',
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
||||
3
pages/bgXq/bgXq.json
Normal file
3
pages/bgXq/bgXq.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
34
pages/bgXq/bgXq.wxml
Normal file
34
pages/bgXq/bgXq.wxml
Normal file
@@ -0,0 +1,34 @@
|
||||
<!--pages/bgXq/bgXq.wxml-->
|
||||
<view class="main">
|
||||
<view class="content">
|
||||
<view class="item1">
|
||||
<view class="up">
|
||||
<view>姓名:{{name}}</view>
|
||||
<view>性别:{{sex}}</view>
|
||||
<view>年龄:{{age}}</view>
|
||||
</view>
|
||||
<view class="down">报告日期:{{reprq}}</view>
|
||||
</view>
|
||||
<view class="item2" wx:if="{{id == 2}}">
|
||||
<view class="msgItem" wx:for="{{list}}" wx:key="item">
|
||||
<view>{{item.xmdm}}:{{item.xmjg}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item3" wx:if="{{id == 1}}">
|
||||
<view class="xmTitle">
|
||||
<view>名称</view>
|
||||
<view>代码</view>
|
||||
<view>结果</view>
|
||||
<view>单位</view>
|
||||
<view>参考值</view>
|
||||
</view>
|
||||
<view class="xmMsg"wx:for="{{list}}" wx:key="item">
|
||||
<view>{{item.xmmc}}</view>
|
||||
<view>{{item.xmdm}}</view>
|
||||
<view>{{item.xmjg}}</view>
|
||||
<view>{{item.xmdw}}</view>
|
||||
<view>{{item.jgckz}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
102
pages/bgXq/bgXq.wxss
Normal file
102
pages/bgXq/bgXq.wxss
Normal file
@@ -0,0 +1,102 @@
|
||||
/* pages/bgXq/bgXq.wxss */
|
||||
.main{
|
||||
margin: 30rpx 0;
|
||||
width: 750rpx;
|
||||
}
|
||||
.content{
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.item1{
|
||||
height: 200rpx;
|
||||
width: 100%;
|
||||
padding: 10rpx;
|
||||
box-sizing: border-box;
|
||||
border-radius: 10rpx;
|
||||
background: rgba(245,249,255);
|
||||
box-shadow:0px 0px 15rpx #e2e2e2;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.up{
|
||||
height: 50%;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.down{
|
||||
height: 50%;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 30rpx;
|
||||
color: #666;
|
||||
}
|
||||
.item2{
|
||||
width: 100%;
|
||||
margin-top: 50rpx;
|
||||
padding: 10rpx 20rpx;
|
||||
box-sizing: border-box;
|
||||
border-radius: 10rpx;
|
||||
background: #fff;
|
||||
box-shadow:0px 0px 15rpx #e2e2e2;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.msgItem{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
padding: 20rpx 0;
|
||||
font-size: 33rpx;
|
||||
color: #666;
|
||||
}
|
||||
.item3{
|
||||
width: 100%;
|
||||
margin-top: 50rpx;
|
||||
border-radius: 10rpx;
|
||||
background: #fff;
|
||||
box-shadow:0px 0px 15rpx #e2e2e2;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.xmTitle{
|
||||
height: 100rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-bottom: 1rpx solid #e2e2e2;
|
||||
}
|
||||
.xmMsg{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
padding: 0 20rpx;
|
||||
box-sizing: border-box;
|
||||
align-items: center;
|
||||
border-bottom: 1rpx solid #e2e2e2;
|
||||
}
|
||||
.xmMsg view{
|
||||
width: 20%;
|
||||
padding: 20rpx 0;
|
||||
word-wrap:break-word;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.xmTitle view{
|
||||
height: 100rpx;
|
||||
width: 20%;
|
||||
font-size: 30rpx;
|
||||
color: #666;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
135
pages/bookingDetails/bookingDetails.js
Normal file
135
pages/bookingDetails/bookingDetails.js
Normal file
@@ -0,0 +1,135 @@
|
||||
// pages/bookingDetails/bookingDetails.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
showData: {},
|
||||
showDatas: [],
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
console.log(options)
|
||||
this.setData({
|
||||
showData: JSON.parse(options.item)
|
||||
})
|
||||
this.getShowDataPlugs()
|
||||
},
|
||||
getShowDataPlugs() {
|
||||
wx.request({
|
||||
url: 'https://fy.btlsoln.com:8443/booking/getDoctorScheduling?selectDate&selectKmdm',
|
||||
method: "GET",
|
||||
data: {
|
||||
selectDate: this.data.showData.selectDate,
|
||||
selectKmdm: this.data.showData.ysdm
|
||||
},
|
||||
header: {
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
success: (res) => {
|
||||
console.log(res, "获取号源")
|
||||
this.setData({
|
||||
showDatas: res.data.list
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
naviToyy(e) { //调用预约接口,成功后跳转到预约成功页面
|
||||
const bookIngDate =e.currentTarget.dataset.item.kssj;
|
||||
let pbmxid = e.currentTarget.dataset.item.pbmxid
|
||||
wx.request({
|
||||
url: 'https://fy.btlsoln.com:8443/his/order?patid&pbmxid&czyh&yyhx&ksmc&ksdm&sjdjl&cardNo&patientName',
|
||||
method: "GET",
|
||||
data: {
|
||||
pbmxid: pbmxid,
|
||||
patid: wx.getStorageSync("painId"),
|
||||
czyh: '01',
|
||||
yyhx: "0",
|
||||
ksmc: this.data.showData.ksmc,
|
||||
ksdm: this.data.showData.ksdm,
|
||||
sjdjl: bookIngDate,
|
||||
jssj: e.currentTarget.dataset.item.jssj,
|
||||
zxrq: e.currentTarget.dataset.item.zxrq,
|
||||
cardNo: wx.getStorageSync('cardNo'),
|
||||
patientName: wx.getStorageSync('trueName'),
|
||||
},
|
||||
header: {
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
success: (res) => {
|
||||
if (res.data.errCode == 0) {
|
||||
wx.setStorageSync('ksmc', this.data.showData.ksmc)
|
||||
wx.setStorageSync('day', e.currentTarget.dataset.item.zxrq)
|
||||
wx.setStorageSync('date', bookIngDate)
|
||||
wx.setStorageSync('sjd', bookIngDate + '-' + e.currentTarget.dataset.item.jssj)
|
||||
wx.setStorageSync('today', bookIngDate)
|
||||
wx.setStorageSync('money', e.currentTarget.dataset.item.ghf)
|
||||
wx.setStorageSync('sfId', wx.getStorageSync('sfId1'))
|
||||
wx.setStorageSync('name', wx.getStorageSync('trueName'))
|
||||
wx.setStorageSync('xh', res.data.list[0].xh)
|
||||
wx.navigateTo({
|
||||
url: '/pages/resInformation/resInformation',
|
||||
})
|
||||
} else {
|
||||
wx.showToast({
|
||||
title: res.data.errMsg,
|
||||
icon: "none"
|
||||
})
|
||||
}
|
||||
},
|
||||
fail(err) {}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
||||
3
pages/bookingDetails/bookingDetails.json
Normal file
3
pages/bookingDetails/bookingDetails.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
27
pages/bookingDetails/bookingDetails.wxml
Normal file
27
pages/bookingDetails/bookingDetails.wxml
Normal file
@@ -0,0 +1,27 @@
|
||||
<view class="main">
|
||||
<view class="container">
|
||||
<van-cell-group inset class="booking_confirm">
|
||||
<van-cell value="{{showData.doctorzc}}" center>
|
||||
<view slot="title" class="name_title">
|
||||
<van-image width='50' height='60' round src="{{showData.imageUrl}}"></van-image>
|
||||
<view>{{showData.ysmc}}</view>
|
||||
</view>
|
||||
</van-cell>
|
||||
<van-cell title-class="details_class">
|
||||
<view slot="title">
|
||||
<view>{{showData.introduction}}</view>
|
||||
</view>
|
||||
</van-cell>
|
||||
<van-cell title="科室" value="{{showData.ksmc}}" />
|
||||
<!-- <van-cell title="职位" value="{{showData.zcMc}}" /> -->
|
||||
</van-cell-group>
|
||||
<van-cell-group inset class="booking_confirm" wx:for="{{showDatas}}">
|
||||
<van-divider borderColor="#1989fa" />
|
||||
<van-cell title="可预约时间" value="{{item.kssj}}-{{item.jssj}}" />
|
||||
<van-cell title="已预约" value="{{item.yyzs-item.kyys}}" />
|
||||
<van-cell title="剩余号源" value="{{item.kyys}}" />
|
||||
<van-cell title="预约费用" value="{{item.ghf}}" />
|
||||
<van-button type="info" data-item="{{item}}" bindtap="naviToyy">预约</van-button>
|
||||
</van-cell-group>
|
||||
</view>
|
||||
</view>
|
||||
17
pages/bookingDetails/bookingDetails.wxss
Normal file
17
pages/bookingDetails/bookingDetails.wxss
Normal file
@@ -0,0 +1,17 @@
|
||||
/* pages/bookingDetails/bookingDetails.wxss */
|
||||
.booking_confirm .van-button{
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 1vh;
|
||||
}
|
||||
.name_title {
|
||||
width: 35vw;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.details_class{
|
||||
width: 30vw;
|
||||
}
|
||||
234
pages/callnumber/callnumbers.js
Normal file
234
pages/callnumber/callnumbers.js
Normal file
@@ -0,0 +1,234 @@
|
||||
// pages/callnumber/callnumbers.js
|
||||
import Dialog from '../../miniprogram_npm/@vant/weapp/dialog/dialog';
|
||||
var app = getApp()
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
callNumberList: [],
|
||||
show: false,
|
||||
list: [],
|
||||
name: '',
|
||||
painId: '',
|
||||
relate: '',
|
||||
card: '', //sfz
|
||||
cardNum: '', //jzk
|
||||
cardType: '',
|
||||
loadingHidden: true,
|
||||
|
||||
},
|
||||
showPop() {
|
||||
this.setData({
|
||||
show: true
|
||||
});
|
||||
},
|
||||
onClose() {
|
||||
this.setData({
|
||||
show: false
|
||||
});
|
||||
},
|
||||
async confirm(e) {
|
||||
let user = e.currentTarget.dataset.item
|
||||
this.setData({
|
||||
name: user.TRUE_NAME,
|
||||
painId: user.PATIENT_ID,
|
||||
relate: user.RELATE,
|
||||
card: user.ID_CARD,
|
||||
cardNum: user.MEDICAL_CARD,
|
||||
cardType: user.CARD_TYPE,
|
||||
show: false,
|
||||
loadingHidden: false,
|
||||
});
|
||||
await this.getCallNumbers()
|
||||
},
|
||||
getPerList() {
|
||||
return new Promise((resolve, reject) => {
|
||||
wx.request({
|
||||
url: 'https://fy.btlsoln.com:8443/getPatientByOpenid?openid',
|
||||
method: "GET",
|
||||
data: {
|
||||
openid: app.globalData.openId
|
||||
},
|
||||
header: {
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
success: (res) => {
|
||||
let data = res.data
|
||||
console.log(data)
|
||||
data.map((item, index) => {
|
||||
if (item.TYPE == 0) {
|
||||
this.setData({
|
||||
name: item.TRUE_NAME,
|
||||
painId: item.PATIENT_ID,
|
||||
relate: item.RELATE,
|
||||
cardNum: item.MEDICAL_CARD,
|
||||
cardType: item.CARD_TYPE,
|
||||
card: item.ID_CARD
|
||||
})
|
||||
}
|
||||
})
|
||||
if (res.data.length > 0) {
|
||||
this.setData({
|
||||
list: data
|
||||
})
|
||||
} else {
|
||||
wx.showModal({
|
||||
title: '',
|
||||
content: '您还未绑定就诊人,请先绑定就诊人信息!',
|
||||
cancelText: "否",
|
||||
confirmText: '是',
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
wx.navigateTo({
|
||||
url: '/pages/userMsgDel/userMsgDel?state=0',
|
||||
})
|
||||
} else {
|
||||
wx.switchTab({
|
||||
url: '/pages/index/index',
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
resolve("ok");
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
getCallNumbers() {
|
||||
if (this.data.card && this.data.name) {
|
||||
|
||||
this.setData({
|
||||
loadingHidden: false,
|
||||
})
|
||||
return new Promise((resolve, reject) => {
|
||||
wx.request({
|
||||
url: 'https://fy.btlsoln.com:8443/callNumbers/getCallNumberByIdentity',
|
||||
method: "GET",
|
||||
data: {
|
||||
identity: this.data.cardNum,
|
||||
sfzh: this.data.card,
|
||||
// identity: wx.getStorageSync('cardNo'),
|
||||
// sfzh: wx.getStorageSync("sfId1")
|
||||
},
|
||||
success: res => {
|
||||
if (res.data.data == null) {
|
||||
this.setData({
|
||||
loadingHidden: true,
|
||||
callNumberList: [],
|
||||
})
|
||||
// this.setData({
|
||||
|
||||
// })
|
||||
wx.showToast({
|
||||
title: '未获取到信息',
|
||||
icon: 'error'
|
||||
})
|
||||
// Dialog.alert({
|
||||
// title: '提示',
|
||||
// message: '未查询到数据,请将当前就诊人设为默认就诊人,再进行查询',
|
||||
// }).then(() => {
|
||||
// wx.navigateTo({
|
||||
// url: '/pages/userMgr/userMgr',
|
||||
// })
|
||||
// // on close
|
||||
// });
|
||||
} else {
|
||||
// this.setData({
|
||||
|
||||
// })
|
||||
this.setData({
|
||||
loadingHidden: true,
|
||||
callNumberList: JSON.parse(res.data.data)
|
||||
})
|
||||
}
|
||||
resolve("ok")
|
||||
}
|
||||
})
|
||||
})
|
||||
} else {
|
||||
wx.showModal({
|
||||
title: '',
|
||||
content: '您还未绑定就诊人,请先绑定就诊人信息!',
|
||||
cancelText: "否",
|
||||
confirmText: '是',
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
wx.navigateTo({
|
||||
url: '/pages/userMsgDel/userMsgDel?state=0',
|
||||
})
|
||||
} else {
|
||||
wx.switchTab({
|
||||
url: '/pages/index/index',
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
async getInitData() {
|
||||
await this.getPerList()
|
||||
await this.getCallNumbers()
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
this.getInitData()
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
wx.setNavigationBarTitle({
|
||||
title: '门诊排队查询'
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
||||
5
pages/callnumber/callnumbers.json
Normal file
5
pages/callnumber/callnumbers.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"van-dialog": "@vant/weapp/dialog/index"
|
||||
}
|
||||
}
|
||||
82
pages/callnumber/callnumbers.wxml
Normal file
82
pages/callnumber/callnumbers.wxml
Normal file
@@ -0,0 +1,82 @@
|
||||
<view class="main">
|
||||
<view class="content">
|
||||
|
||||
<view class="item">
|
||||
<view class="up">
|
||||
<view class="name">{{name}}</view>
|
||||
<view class="msg">
|
||||
<view wx:if="{{relate == 0}}" class="t1">本人</view>
|
||||
<view wx:elif="{{relate == 1}}" class="t1">子女</view>
|
||||
<view wx:elif="{{relate == 2}}" class="t1">夫妻 </view>
|
||||
<view wx:elif="{{relate == 3}}" class="t1">父母 </view>
|
||||
<view wx:elif="{{relate == 4}}" class="t1">朋友 </view>
|
||||
<view class="icon" bindlongtap="qiehuan" bindtap="showPop"></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="down">
|
||||
<view>{{cardNum}}</view>
|
||||
<view>切换就诊人</view>
|
||||
</view>
|
||||
</view>
|
||||
<loading hidden="{{loadingHidden}}">加载中...</loading>
|
||||
<view wx:if="{{loadingHidden}}">
|
||||
<view class="callNumbersClass" wx:for="{{callNumberList}}" wx:key="index">
|
||||
|
||||
<!-- <view class="callNumbers">
|
||||
<view class="callNumbersHeader">叫号序号:</view>
|
||||
<view class="callNumbersEnd">{{item.callNo}}</view>
|
||||
</view> -->
|
||||
|
||||
<view class="callNumbers">
|
||||
<view class="callNumbersHeader">排队序号:</view>
|
||||
<view class="callNumbersEnd">{{item.diagnosticNO}}</view>
|
||||
</view>
|
||||
|
||||
<view class="callNumbers">
|
||||
<view class="callNumbersHeader">科室名称:</view>
|
||||
<view class="callNumbersEnd">{{item.keshimc}}</view>
|
||||
</view>
|
||||
|
||||
<view class="callNumbers">
|
||||
<view class="callNumbersHeader">医生姓名:</view>
|
||||
<view class="callNumbersEnd">{{item.doctorName}}</view>
|
||||
</view>
|
||||
|
||||
<!-- <view class="callNumbers">
|
||||
<view class="callNumbersHeader">科室代码:</view>
|
||||
<view class="callNumbersEnd">妇科诊室1</view>
|
||||
</view> -->
|
||||
|
||||
<view class="callNumbers">
|
||||
<view class="callNumbersHeader">排队状态:</view>
|
||||
<view class="callNumbersEnd">{{item.adiagnosticStatus}}</view>
|
||||
</view>
|
||||
<view class="callNumbers">
|
||||
<view class="callNumbersHeader">剩余等待人数:</view>
|
||||
<view class="callNumbersEnd">{{item.callNo-item.minCallNo}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<van-popup show="{{ show }}" round closeable position="bottom" bind:close="onClose">
|
||||
<view class="popWrap">
|
||||
<view class="title1">选择就诊人</view>
|
||||
<view class="userWrap">
|
||||
<view class="userItem" wx:for="{{list}}" wx:key="item" data-item="{{item}}" bindtap="confirm">
|
||||
<view class="msg1">
|
||||
<view class="up1">
|
||||
<view class="name1">{{item.TRUE_NAME}}</view>
|
||||
<view wx:if="{{item.RELATE == 0}}" class="guanxi1">本人</view>
|
||||
<view wx:elif="{{item.RELATE == 1}}" class="guanxi1">子女</view>
|
||||
<view wx:elif="{{item.RELATE == 2}}" class="guanxi1">夫妻 </view>
|
||||
<view wx:elif="{{item.RELATE == 3}}" class="guanxi1">父母 </view>
|
||||
<view wx:elif="{{item.RELATE == 4}}" class="guanxi1">朋友 </view>
|
||||
</view>
|
||||
<view class="down1">{{item.MEDICAL_CARD}}</view>
|
||||
</view>
|
||||
<view class="icon1">></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</van-popup>
|
||||
</view>
|
||||
167
pages/callnumber/callnumbers.wxss
Normal file
167
pages/callnumber/callnumbers.wxss
Normal file
@@ -0,0 +1,167 @@
|
||||
.main{
|
||||
margin: 30rpx 0;
|
||||
width: 750rpx;
|
||||
}
|
||||
.content{
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.callNumbersClass {
|
||||
width: 95vw;
|
||||
background-color: #ffffff;
|
||||
margin: 2vw 2vw 2vw 2vw;
|
||||
padding: 5rpx 5rpx 5rpx 5rpx;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
.callNumbers {
|
||||
display: flex;
|
||||
width: 94vw;
|
||||
/* justify-content: center; */
|
||||
/* align-items: center; */
|
||||
}
|
||||
.callNumbersHeader {
|
||||
width: 47vw;
|
||||
height: 5vh;
|
||||
font-size: small;
|
||||
}
|
||||
|
||||
.callNumbersEnd {
|
||||
width: 47vw;
|
||||
height: 5vh;
|
||||
font-size: small;
|
||||
}
|
||||
.item{
|
||||
height: 200rpx;
|
||||
width: 100%;
|
||||
border-radius: 5rpx;
|
||||
margin: 40rpx auto;
|
||||
box-shadow:0px 0px 5rpx #e2e2e2;
|
||||
background: rgba(245,249,255);
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.up{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.name{
|
||||
font-size: 30rpx;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
color: #333;
|
||||
}
|
||||
.t1{
|
||||
height: 50rpx;
|
||||
width: 130rpx;
|
||||
text-align: center;
|
||||
line-height: 50rpx;
|
||||
font-size:33rpx;
|
||||
border-radius: 25rpx;
|
||||
color: rgba(45,135,255);
|
||||
background: rgba(226,237,254);
|
||||
}
|
||||
.msg{
|
||||
flex: 1;
|
||||
height: 70rpx;
|
||||
line-height: 80rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.icon{
|
||||
height: 50rpx;
|
||||
width: 50rpx;
|
||||
padding: 10rpx;
|
||||
box-sizing: border-box;
|
||||
margin-right: 50rpx;
|
||||
border-radius: 50%;
|
||||
background-color: rgba(0,110,255);
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAZpJREFUaEPtV7tKBEEQrIoEf8Bc/AFzES8yEMFEEMFEBD9AMFVjwdhEzBTMhItMVMz9ATH3BwSzkoWLltu9me7hZlZnk022uuvRM80SA384cP6oAnInWBOoCTgdqCPkNNAN/98JSNoCsEfywG2lsYA5AUnrAF4nfa9Inhg5uGAmAZJWAby3Ol+QPHexMYCjBUhaAfBRAvmGQ5QASUsAvkohHyVA0iKA75LIBwuQtADgp0X+xTCyZgjJ0TTwzBGStAzg09w5EZDkVK69AiStAXhLxMFVJlqApF0AD66uCcFRAiRtTJ03cq5zH6J/5hkIKZLzmyogp/vBeyA3yb7+f3eEJKkg509JXkZt4oIEHJK87TKzc4QKEbBNcmw6A5Ke5zxC7eU5YsDizH6IJTV/cWctszZJPoUYmFVAB/kdko8h5LPugQ7y+yTvQ8lnE9BB/ojkTQz5bAKaxpKuARxPCPdelaZbKNYJy/eS7gCMSTZv05P1EJsYt0BVQAoXPTVqAh73UmBrAilc9NSoCXjcS4GtCaRw0VNj8An8AqTHZDFDvpKtAAAAAElFTkSuQmCC);
|
||||
background-size:100%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
.down{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
line-height: 80rpx;
|
||||
font-size: 30rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.popWrap{
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 10rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.title1{
|
||||
height: 100rpx;
|
||||
width: 100%;
|
||||
line-height: 100rpx;
|
||||
text-align: center;
|
||||
font-size: 33rpx;
|
||||
color: #333;
|
||||
}
|
||||
.userWrap{
|
||||
height: 100%;
|
||||
width: 95%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.userWrap :last-child{
|
||||
border-bottom: none;
|
||||
}
|
||||
.userItem{
|
||||
height: 160rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
}
|
||||
.msg1{
|
||||
height: 160rpx;
|
||||
width: 500rpx;
|
||||
}
|
||||
.up1{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center
|
||||
}
|
||||
.name1{
|
||||
font-size: 33rpx;
|
||||
height: 80rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
}
|
||||
.guanxi1{
|
||||
height: 60rpx;
|
||||
width: 120rpx;
|
||||
margin-left: 20rpx;
|
||||
background: rgba(228,240,255);
|
||||
border-radius: 30rpx;
|
||||
text-align: center;
|
||||
line-height: 80rpx;
|
||||
color: rgba(0,110,255);
|
||||
font-size: 32rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.down1{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
font-size: 33rpx;
|
||||
color: rgb(158, 154, 154);
|
||||
line-height: 80rpx;
|
||||
}
|
||||
.icon1{
|
||||
color: rgb(180, 179, 179);
|
||||
padding-right:15rpx ;
|
||||
}
|
||||
226
pages/category/category.js
Normal file
226
pages/category/category.js
Normal file
@@ -0,0 +1,226 @@
|
||||
var util = require('../../utils/util.js');
|
||||
var api = require('../../config/api.js');
|
||||
|
||||
var app = getApp();
|
||||
Page({
|
||||
data: {
|
||||
//已选的项目
|
||||
disablecheck : true,
|
||||
//上一个页面带来的信息
|
||||
selectName: '',
|
||||
selectNationId: '',
|
||||
selectClassName: '',
|
||||
selectSchoolName: '',
|
||||
selectPatid: '',
|
||||
|
||||
//学生信息
|
||||
studentlist:[],
|
||||
studentSwitch: false,
|
||||
|
||||
standardList: [],
|
||||
smStandardList: [],
|
||||
smStandardContent: '',
|
||||
addtionList: [],
|
||||
smAddtionList: [],
|
||||
id: 0,
|
||||
currentCategory: {},
|
||||
scrollLeft: 0,
|
||||
scrollTop: 0,
|
||||
scrollHeight: 0,
|
||||
page: 1,
|
||||
limit: 10
|
||||
},
|
||||
onLoad: function(options) {
|
||||
// 页面初始化 options为页面跳转所带来的参数
|
||||
this.setData({
|
||||
selectName:options.name,
|
||||
selectNationId:options.nationid,
|
||||
selectClassName:options.classname,
|
||||
selectSchoolName:options.schoolname,
|
||||
selectPatid: options.patid
|
||||
})
|
||||
|
||||
var that = this;
|
||||
wx.getSystemInfo({
|
||||
success: function(res) {
|
||||
that.setData({
|
||||
scrollHeight: res.windowHeight
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
//checkbox status
|
||||
onCheckOptionChange(event) {
|
||||
let itemIndex = event.target.dataset.itemIndex;
|
||||
let that = this;
|
||||
// console.log(itemIndex);
|
||||
// console.log(event);
|
||||
|
||||
//编辑状态
|
||||
let tmpCartData = this.data.smAddtionList.map(function(element, index, array) {
|
||||
if (index == itemIndex) {
|
||||
element.checked = !element.checked;
|
||||
}
|
||||
|
||||
return element;
|
||||
});
|
||||
that.setData({
|
||||
smAddtionList: tmpCartData
|
||||
});
|
||||
},
|
||||
//checkbox status
|
||||
onCheckStandardChange(event) {
|
||||
let itemIndex = event.target.dataset.itemIndex;
|
||||
let that = this;
|
||||
// console.log(itemIndex);
|
||||
// console.log(event);
|
||||
|
||||
//编辑状态
|
||||
let tmpCartData = this.data.smStandardList.map(function(element, index, array) {
|
||||
if (index == itemIndex) {
|
||||
element.checked = !element.checked;
|
||||
}
|
||||
|
||||
return element;
|
||||
});
|
||||
that.setData({
|
||||
smStandardList: tmpCartData
|
||||
});
|
||||
},
|
||||
|
||||
numFilter(value){
|
||||
console.log(value);
|
||||
const realVal = parseFloat(value).toFixed(2);//表示保留一位函数
|
||||
return realVal;
|
||||
},
|
||||
|
||||
onReady: function() {
|
||||
// 页面渲染完成
|
||||
},
|
||||
onShow: function() {
|
||||
// 页面显示
|
||||
console.log("category onshow");
|
||||
this.getstandardList();
|
||||
this.getaddtionList();
|
||||
|
||||
//this.getPerList();
|
||||
|
||||
},
|
||||
onHide: function() {
|
||||
// 页面隐藏
|
||||
},
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
},
|
||||
getstandardList: function() {
|
||||
var that = this;
|
||||
|
||||
util.request(api.iteminfo, {
|
||||
packageno: '666',
|
||||
patid: this.data.selectPatid
|
||||
})
|
||||
.then(function(res) {
|
||||
console.log(res.data);
|
||||
that.setData({
|
||||
standardList: res.data,
|
||||
});
|
||||
|
||||
// 将后台返回的 res 数组数据进行新增一个字段
|
||||
if(res.data != null){
|
||||
res.data.forEach(function(item) {
|
||||
// 获取图片数组length范围内的随机 index
|
||||
//var randomIndex = Math.floor(Math.random() * that.data.srcList.length);
|
||||
item.checked = 0;
|
||||
});
|
||||
that.setData({
|
||||
smStandardList: res.data,
|
||||
smStandardContent: res.data[0].itemno
|
||||
})
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
},
|
||||
getaddtionList: function() {
|
||||
var that = this;
|
||||
|
||||
util.request(api.iteminfo, {
|
||||
packageno: '0',
|
||||
patid: this.data.selectPatid
|
||||
})
|
||||
.then(function(res) {
|
||||
console.log(res.data);
|
||||
that.setData({
|
||||
addtionList: res.data,
|
||||
});
|
||||
|
||||
if(res.data != null){
|
||||
// 将后台返回的 res 数组数据进行新增一个字段
|
||||
res.data.forEach(function(item) {
|
||||
// 获取图片数组length范围内的随机 index
|
||||
//var randomIndex = Math.floor(Math.random() * that.data.srcList.length);
|
||||
item.checked = 0;
|
||||
});
|
||||
that.setData({
|
||||
smAddtionList: res.data
|
||||
})
|
||||
}
|
||||
|
||||
});
|
||||
console.log(this.data.smAddtionList.length, "smAddtionList length");
|
||||
|
||||
},
|
||||
addFast: function(){
|
||||
var filterNum = this.data.smStandardList.filter(function(person,index,arrs){
|
||||
return person.checked==true
|
||||
});
|
||||
|
||||
var filterNum1 = this.data.smAddtionList.filter(function(person,index,arrs){
|
||||
return person.checked==true
|
||||
});
|
||||
|
||||
if( (filterNum.length == 0) && (filterNum1.length == 0)){
|
||||
wx.showToast({
|
||||
title: '没有选择项目',
|
||||
})
|
||||
}else{
|
||||
app.globalData.gStandardList = this.data.smStandardList;
|
||||
app.globalData.gAddtionList = this.data.smAddtionList;
|
||||
app.globalData.gStandardContent = this.data.smStandardContent;
|
||||
|
||||
// 设置好list,转到结算页面
|
||||
try {
|
||||
// wx.setStorageSync('cartId', res.data);
|
||||
// wx.setStorageSync('grouponRulesId', checkedGroupon.id);
|
||||
// wx.setStorageSync('grouponLinkId', that.data.grouponLink.id);
|
||||
|
||||
wx.navigateTo({
|
||||
url: '/pages/checkout/checkout?name=' + this.data.selectName + '&nationid=' + this.data.selectNationId + '&classname=' + this.data.selectClassName + '&schoolname=' + this.data.selectSchoolName + '&patid=' + this.data.selectPatid,
|
||||
})
|
||||
|
||||
} catch (e) {}
|
||||
}
|
||||
},
|
||||
onTabItemTap(item) {
|
||||
// 判断是否要阻止切换
|
||||
console.log("切换tab");
|
||||
if (app.globalData.hasXyrw == false) {
|
||||
// 阻止切换
|
||||
wx.switchTab({
|
||||
url: '/pages/index/index'
|
||||
})
|
||||
return false;
|
||||
}
|
||||
// 允许切换
|
||||
return true;
|
||||
},
|
||||
onUnload: function() {
|
||||
// 页面关闭
|
||||
}
|
||||
|
||||
})
|
||||
3
pages/category/category.json
Normal file
3
pages/category/category.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
146
pages/category/category.wxml
Normal file
146
pages/category/category.wxml
Normal file
@@ -0,0 +1,146 @@
|
||||
|
||||
<!-- <view class="cart-bottom">
|
||||
<van-checkbox value="checked" bind:change="checkedAll">全选(5)</van-checkbox>
|
||||
|
||||
</view> -->
|
||||
|
||||
|
||||
<view class="container">
|
||||
<!-- <view class="item">
|
||||
<view class="item-header">
|
||||
<view class="item-header-cont">
|
||||
项目列表
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<view class="form">
|
||||
<!-- <view class="tjb-info-right" >
|
||||
<view class="tjb-info-content">
|
||||
<van-button round type="info" icon="exchange" bind:click="chgDefault" size="small">切换体检人</van-button>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<van-popup
|
||||
show="{{ studentSwitch }}"
|
||||
position="bottom"
|
||||
custom-style="height: 50%"
|
||||
bind:close="studentShutdown"
|
||||
>
|
||||
<view class = "pickempty" wx:if = "{{ studentlist.length == 0 }}">无数据</view>
|
||||
<view wx:if = "{{ studentlist != 0 }}">
|
||||
<van-picker
|
||||
show-toolbar
|
||||
title="请选择"
|
||||
columns="{{ studentlist }}"
|
||||
value-key="name"
|
||||
bind:cancel="studentShutdown"
|
||||
bind:confirm="studentIdentification"
|
||||
/>
|
||||
</view>
|
||||
</van-popup>
|
||||
|
||||
<view class="container">请核对项目后,选择开单!开单后请及时缴费,超过开单当天24:00后,订单自动取消,如需缴费,请重新选择项目并开单!</view>
|
||||
<view class="tjinfo" >
|
||||
<!-- 默认160rpx 最多只能放6个汉字 -->
|
||||
<view class="tjinfo-left">学校:</view>
|
||||
<view class="tjinfo-middle">{{ selectSchoolName }}</view>
|
||||
</view>
|
||||
<view class="tjinfo" >
|
||||
<view class="tjinfo-left">班级:</view>
|
||||
<view class="tjinfo-middle">{{ selectClassName }}</view>
|
||||
</view>
|
||||
<view class="tjinfo" >
|
||||
<view class="tjinfo-left">姓名:</view>
|
||||
<view class="tjinfo-middle">{{ selectName }}</view>
|
||||
</view>
|
||||
|
||||
<!-- 分割线 -->
|
||||
<view class="view_fengexian">
|
||||
<view ></view>
|
||||
<!-- <text class="text_fengexian"></text> -->
|
||||
<view ></view>
|
||||
</view>
|
||||
|
||||
<view class="tjitem" wx:if = "{{smStandardList.length != 0}}" >
|
||||
<!-- <view class="tjitem-left-header">基础项目</view>
|
||||
<view class="tjitem-right">¥80</view> -->
|
||||
<view class="tjitem-list-wrap {{(iindex + 1) % 2 == 0 ? 'item-b' : ''}}" url="/pages/goods/goods?id={{iitem.id}}"
|
||||
wx:for="{{smStandardList}}" wx:key="id" wx:for-item="iitem" wx:for-index="iindex">
|
||||
<view class="tjitem-check">
|
||||
<view class="tjitem-check-wrap" wx:if = "{{iitem.showflag == 0}}" >
|
||||
<van-checkbox value="{{ iitem.checked }}" bind:change="onCheckStandardChange" checked-color="#07c160" data-item-index="{{iindex}}"/>
|
||||
</view>
|
||||
<view class="tjitem-check-wrap" wx:if = "{{iitem.showflag == 1}}" >
|
||||
<van-checkbox disabled value="{{ disablecheck }}" bind:change="onCheckStandardChange" checked-color="#07c160" data-item-index="{{iindex}}"/>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="tjitem-list-big" wx:if = "{{iitem.showflag == 0}}" >{{iitem.itemname}}</view>
|
||||
<view class="tjitem-right" wx:if = "{{iitem.showflag == 0}}" >¥{{iitem.itemprice}}</view>
|
||||
|
||||
<view class="tjitem-list-big-disable" wx:if = "{{iitem.showflag == 1}}" >{{iitem.itemname}}</view>
|
||||
<view class="tjitem-right-disable" wx:if = "{{iitem.showflag == 1}}" >¥{{iitem.itemprice}}</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="tjitem" >
|
||||
<view class="tjitem-content" >{{ smStandardContent }}</view>
|
||||
</view>
|
||||
|
||||
|
||||
<!-- 分割线 -->
|
||||
<view class="view_fengexian" wx:if = "{{smStandardList.length != 0}}">
|
||||
<view ></view>
|
||||
<!-- <text class="text_fengexian"></text> -->
|
||||
<view ></view>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="tjitem" wx:if = "{{smAddtionList.length != 0}}" >
|
||||
<view class="tjitem-left-header">可选项目</view>
|
||||
</view>
|
||||
<view class="tjitem" wx:if = "{{smAddtionList.length == 0 && smStandardList.length == 0 }}" >
|
||||
<view class="tjitem-left-header">无项目</view>
|
||||
</view>
|
||||
<!-- <view class="tjitem" >
|
||||
<view class="tjitem-list">静态心电图</view>
|
||||
<view class="tjitem-right">¥80</view>
|
||||
|
||||
</view> -->
|
||||
<view class="tjitem-list-wrap {{(iindex + 1) % 2 == 0 ? 'item-b' : ''}}" url="/pages/goods/goods?id={{iitem.id}}"
|
||||
wx:for="{{smAddtionList}}" wx:key="id" wx:for-item="iitem" wx:for-index="iindex">
|
||||
<view class="tjitem-check">
|
||||
<view class="tjitem-check-wrap" wx:if = "{{iitem.showflag == 0}}" >
|
||||
<van-checkbox value="{{ iitem.checked }}" bind:change="onCheckOptionChange" checked-color="#07c160" data-item-index="{{iindex}}"/>
|
||||
</view>
|
||||
<view class="tjitem-check-wrap" wx:if = "{{iitem.showflag == 1}}" >
|
||||
<van-checkbox disabled value="{{ disablecheck }}" bind:change="onCheckOptionChange" checked-color="#07c160" data-item-index="{{iindex}}"/>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="tjitem-list" wx:if = "{{iitem.showflag == 0}}">{{iitem.itemname}}</view>
|
||||
<view class="tjitem-list-disable" wx:if = "{{iitem.showflag == 1}}">{{iitem.itemname}}</view>
|
||||
|
||||
<view class="tjitem-right" wx:if = "{{iitem.showflag == 0}}" >¥{{iitem.itemprice}}</view>
|
||||
<view class="tjitem-right-disable" wx:if = "{{iitem.showflag == 1}}" >¥{{iitem.itemprice}}</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
<!-- 确保信息显示 -->
|
||||
<view class="area">
|
||||
<view class="area-header">
|
||||
<view class="area-header-cont">
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottom-btn">
|
||||
|
||||
<view class="c" bindtap="addFast" >提交订单</view>
|
||||
</view>
|
||||
554
pages/category/category.wxss
Normal file
554
pages/category/category.wxss
Normal file
@@ -0,0 +1,554 @@
|
||||
.container {
|
||||
background: #f9f9f9;
|
||||
}
|
||||
|
||||
.tjb-info-right{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
/* border: 1rpx solid #0e0af1; */
|
||||
|
||||
}
|
||||
.tjb-info-content{
|
||||
width: 220rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
margin-left: 50rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
|
||||
.tjinfo{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
/* border: 1rpx solid #0e0af1; */
|
||||
|
||||
}
|
||||
|
||||
.tjinfo-left{
|
||||
width: 160rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
margin-left: 50rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
.tjinfo-middle{
|
||||
flex: auto;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
|
||||
|
||||
.tjitem{
|
||||
height: 120rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
|
||||
}
|
||||
.tjitem-left-header{
|
||||
height: 100%;
|
||||
width: 300rpx;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
margin-left: 100rpx;
|
||||
line-height: 120rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
|
||||
.tjitem-left{
|
||||
height: 100%;
|
||||
width: 160rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
margin-left: 20rpx;
|
||||
line-height: 120rpx;
|
||||
/* border: 1rpx solid #85f10a; */
|
||||
}
|
||||
.tjitem-right{
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
margin-right: 50rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
.tjitem-right-disable{
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
margin-right: 50rpx;
|
||||
/* text-decoration:line-through; */
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
|
||||
.tjitem-content{
|
||||
height: 200rpx;
|
||||
width: 100%;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 50rpx;
|
||||
margin-left: 30rpx;
|
||||
margin-right: 50rpx;
|
||||
margin-top: 10rpx;
|
||||
/* border: 1rpx solid #340af1; */
|
||||
}
|
||||
.tjitem-content-disable{
|
||||
height: 200rpx;
|
||||
width: 100%;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 50rpx;
|
||||
margin-left: 30rpx;
|
||||
margin-right: 50rpx;
|
||||
margin-top: 10rpx;
|
||||
/* text-decoration:line-through; */
|
||||
|
||||
/* border: 1rpx solid #340af1; */
|
||||
}
|
||||
|
||||
.container{
|
||||
font-size: 24rpx;
|
||||
color:#000;
|
||||
line-height: 40rpx;
|
||||
background-color: #f2f0f4;
|
||||
}
|
||||
|
||||
.view_fengexian {
|
||||
width: 96%;
|
||||
height: 20rpx;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0rpx 2% 0rpx 2%;
|
||||
}
|
||||
|
||||
/* 两个view的样式 */
|
||||
.view_fengexian view {
|
||||
width: 100%;
|
||||
height: 2rpx;
|
||||
/* background: linear-gradient(to right, #ead6ee, #a0f1ea); */
|
||||
background: rgb(241, 237, 237);
|
||||
}
|
||||
|
||||
/* 字体的样式 */
|
||||
.text_fengexian {
|
||||
font-size: 25rpx;
|
||||
color: rgb(253, 143, 143);
|
||||
margin: 0rpx 2% 0rpx 2%;
|
||||
}
|
||||
|
||||
|
||||
.tjitem-line{
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 10rpx;
|
||||
margin-left: 30rpx;
|
||||
/* border: 1rpx solid #340af1; */
|
||||
}
|
||||
|
||||
.tjitem-list-wrap{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
|
||||
}
|
||||
.tjitem-list{
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
width: 200rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
/* border: 1rpx solid #85f10a; */
|
||||
}
|
||||
|
||||
.tjitem-list-disable{
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
width: 200rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
/* text-decoration:line-through; */
|
||||
/* border: 1rpx solid #85f10a; */
|
||||
}
|
||||
|
||||
.tjitem-list-big{
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
width: 200rpx;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
/* border: 1rpx solid #85f10a; */
|
||||
}
|
||||
.tjitem-list-big-disable{
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
width: 200rpx;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
/* text-decoration:line-through; */
|
||||
/* border: 1rpx solid #85f10a; */
|
||||
}
|
||||
|
||||
.tjitem-check{
|
||||
height: 100%;
|
||||
width: 50rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
margin-left: 50rpx;
|
||||
line-height: 80rpx;
|
||||
/* border: 1rpx solid #85f10a; */
|
||||
}
|
||||
.tjitem-check-wrap{
|
||||
width: 50rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
margin-top: 20rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
|
||||
.tjitem-input{
|
||||
flex: 1;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 120rpx;
|
||||
margin-left: 30rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
.tjitem-inputf{
|
||||
flex: 1;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 120rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
.tjitem-inputs{
|
||||
display: flex !important;
|
||||
|
||||
}
|
||||
.tjitem-sr{
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.cart-bottom {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
height: 100rpx;
|
||||
width: 100%;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
}
|
||||
.item{
|
||||
height: 100rpx;
|
||||
margin-bottom: 100rpx;
|
||||
position: relative;
|
||||
background: #fff;
|
||||
}
|
||||
.item-header{
|
||||
height: 120px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
background-color: rgba(52,120,247);
|
||||
border-radius: 15rpx;
|
||||
}
|
||||
.item-header .item-header-cont {
|
||||
font-size: 35rpx;
|
||||
font-weight: bold;
|
||||
justify-content: center;
|
||||
width: 95%;
|
||||
margin: 60rpx auto;
|
||||
height: 80rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.area{
|
||||
height: 100rpx;
|
||||
margin-bottom: 100rpx;
|
||||
position: relative;
|
||||
background: #f4f4f4;
|
||||
}
|
||||
|
||||
.service{
|
||||
font-size: 35rpx;
|
||||
font-weight: bold;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 80rpx;
|
||||
}
|
||||
.service icon{
|
||||
width: 40rpx;
|
||||
height: 15rpx;
|
||||
margin-right: 20rpx;
|
||||
background-color: #50CEBB;
|
||||
border-radius: 15rpx;
|
||||
}
|
||||
.wrap{
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 0 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.cate-nav {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.cate-nav-body {
|
||||
height: 84rpx;
|
||||
white-space: nowrap;
|
||||
background: #fff;
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.15);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cate-nav .item {
|
||||
display: inline-block;
|
||||
height: 84rpx;
|
||||
min-width: 130rpx;
|
||||
padding: 0 15rpx;
|
||||
}
|
||||
|
||||
.cate-nav .item .name {
|
||||
display: block;
|
||||
height: 84rpx;
|
||||
padding: 0 20rpx;
|
||||
line-height: 84rpx;
|
||||
color: #333;
|
||||
font-size: 30rpx;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.cate-nav .item.active .name {
|
||||
color: #ab956d;
|
||||
border-bottom: 2px solid #ab956d;
|
||||
}
|
||||
|
||||
.cate-item {
|
||||
margin-top: 94rpx;
|
||||
margin-left: 25rpx;
|
||||
height: auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cate-item .h {
|
||||
height: 145rpx;
|
||||
width: 750rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.cate-item .h .name {
|
||||
display: block;
|
||||
height: 35rpx;
|
||||
margin-bottom: 18rpx;
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.cate-item .h .desc {
|
||||
display: block;
|
||||
height: 24rpx;
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.cate-item .b {
|
||||
width: 750rpx;
|
||||
padding: 0 6.25rpx;
|
||||
height: auto;
|
||||
overflow: hidden;
|
||||
|
||||
}
|
||||
|
||||
.cate-item .b .item {
|
||||
float: left;
|
||||
background: #fff;
|
||||
width: 165rpx;
|
||||
margin-bottom: 6.25rpx;
|
||||
padding-bottom: 33.333rpx;
|
||||
height: auto;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
/* border: 2px solid #ab956d; */
|
||||
|
||||
}
|
||||
|
||||
.cate-item .b .item-b {
|
||||
margin-left: 10.25rpx;
|
||||
}
|
||||
.cate-item .b .item {
|
||||
margin-left: 10.25rpx;
|
||||
}
|
||||
|
||||
.cate-item .item .img {
|
||||
width: 82rpx;
|
||||
height: 82rpx;
|
||||
}
|
||||
|
||||
.cate-item .item .name {
|
||||
display: block;
|
||||
width: 165.625rpx;
|
||||
height: 70rpx;
|
||||
margin: 11.5rpx 0 22rpx 0;
|
||||
text-align: center;
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
|
||||
/* text-overflow: -o-ellipsis-lastline;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
align-content: center; */
|
||||
|
||||
}
|
||||
|
||||
.cate-item .item .price {
|
||||
display: block;
|
||||
width: 165.625rpx;
|
||||
height: 30rpx;
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
color: #ab956d;
|
||||
}
|
||||
|
||||
|
||||
.bottom-btn {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
z-index: 10;
|
||||
width: 750rpx;
|
||||
height: 100rpx;
|
||||
display: flex;
|
||||
background: #fff;
|
||||
margin-bottom: 0rpx;
|
||||
margin-right: 100rpx;
|
||||
|
||||
}
|
||||
|
||||
.bottom-btn .l {
|
||||
float: left;
|
||||
height: 100rpx;
|
||||
width: 162rpx;
|
||||
border: 1px solid #f4f4f4;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.bottom-btn .l.l-collect {
|
||||
border-right: none;
|
||||
border-left: none;
|
||||
text-align: center;
|
||||
width: 90rpx;
|
||||
}
|
||||
|
||||
.bottom-btn .l.l-collect .icon {
|
||||
position: absolute;
|
||||
top: 28rpx;
|
||||
left: 20rpx;
|
||||
font-size: 44rpx;
|
||||
}
|
||||
|
||||
.bottom-btn .l.l-kefu {
|
||||
position: relative;
|
||||
height: 54rpx;
|
||||
width: 63rpx;
|
||||
}
|
||||
|
||||
.bottom-btn .l.l-cart .box {
|
||||
position: relative;
|
||||
height: 60rpx;
|
||||
width: 60rpx;
|
||||
|
||||
}
|
||||
|
||||
.bottom-btn .l.l-cart .cart-count {
|
||||
height: 28rpx;
|
||||
width: 28rpx;
|
||||
z-index: 10;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
background: #7232dd;
|
||||
text-align: center;
|
||||
font-size: 18rpx;
|
||||
color: #fff;
|
||||
line-height: 28rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.bottom-btn .l.l-cart .icon {
|
||||
position: absolute;
|
||||
top: 10rpx;
|
||||
left: 0;
|
||||
font-size: 44rpx;
|
||||
}
|
||||
|
||||
.bottom-btn .c {
|
||||
float: left;
|
||||
background: #7232dd;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
border-radius: 30px 30px 30px 30px;
|
||||
margin-top: 5rpx;
|
||||
margin-bottom: 5rpx;
|
||||
margin-right: 10rpx;
|
||||
margin-left: 500rpx;
|
||||
|
||||
}
|
||||
|
||||
.bottom-btn .r {
|
||||
border: 1px solid #CCB5F2;
|
||||
background: #CCB5F2;
|
||||
float: left;
|
||||
height: 100rpx;
|
||||
line-height: 96rpx;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
border-radius: 15px 0px 0px 15px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
221
pages/categorykf/categorykf.js
Normal file
221
pages/categorykf/categorykf.js
Normal file
@@ -0,0 +1,221 @@
|
||||
var util = require('../../utils/util.js');
|
||||
var api = require('../../config/api.js');
|
||||
|
||||
var app = getApp();
|
||||
Page({
|
||||
data: {
|
||||
//已选的项目
|
||||
disablecheck : true,
|
||||
//上一个页面带来的信息
|
||||
selectName: '',
|
||||
selectNationId: '',
|
||||
selectClassName: '',
|
||||
selectSchoolName: '',
|
||||
selectPatid: '',
|
||||
|
||||
//学生信息
|
||||
studentlist:[],
|
||||
studentSwitch: false,
|
||||
|
||||
standardList: [],
|
||||
smStandardList: [],
|
||||
smStandardContent: '',
|
||||
addtionList: [],
|
||||
smAddtionList: [],
|
||||
id: 0,
|
||||
currentCategory: {},
|
||||
scrollLeft: 0,
|
||||
scrollTop: 0,
|
||||
scrollHeight: 0,
|
||||
page: 1,
|
||||
limit: 10
|
||||
},
|
||||
onLoad: function(options) {
|
||||
// 页面初始化 options为页面跳转所带来的参数
|
||||
this.setData({
|
||||
selectName:options.name,
|
||||
selectNationId:options.nationid,
|
||||
selectClassName:options.classname,
|
||||
selectSchoolName:options.schoolname,
|
||||
selectPatid: options.patid
|
||||
})
|
||||
|
||||
var that = this;
|
||||
wx.getSystemInfo({
|
||||
success: function(res) {
|
||||
that.setData({
|
||||
scrollHeight: res.windowHeight
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
//checkbox status
|
||||
onCheckOptionChange(event) {
|
||||
let itemIndex = event.target.dataset.itemIndex;
|
||||
let that = this;
|
||||
// console.log(itemIndex);
|
||||
// console.log(event);
|
||||
|
||||
//编辑状态
|
||||
let tmpCartData = this.data.smAddtionList.map(function(element, index, array) {
|
||||
if (index == itemIndex) {
|
||||
element.checked = !element.checked;
|
||||
}
|
||||
|
||||
return element;
|
||||
});
|
||||
that.setData({
|
||||
smAddtionList: tmpCartData
|
||||
});
|
||||
},
|
||||
//checkbox status
|
||||
onCheckStandardChange(event) {
|
||||
let itemIndex = event.target.dataset.itemIndex;
|
||||
let that = this;
|
||||
// console.log(itemIndex);
|
||||
// console.log(event);
|
||||
|
||||
//编辑状态
|
||||
let tmpCartData = this.data.smStandardList.map(function(element, index, array) {
|
||||
if (index == itemIndex) {
|
||||
element.checked = !element.checked;
|
||||
}
|
||||
|
||||
return element;
|
||||
});
|
||||
that.setData({
|
||||
smStandardList: tmpCartData
|
||||
});
|
||||
},
|
||||
|
||||
numFilter(value){
|
||||
console.log(value);
|
||||
const realVal = parseFloat(value).toFixed(2);//表示保留一位函数
|
||||
return realVal;
|
||||
},
|
||||
|
||||
onReady: function() {
|
||||
// 页面渲染完成
|
||||
},
|
||||
onShow: function() {
|
||||
// 页面显示
|
||||
console.log("category onshow");
|
||||
this.getstandardList();
|
||||
this.getaddtionList();
|
||||
|
||||
//this.getPerList();
|
||||
|
||||
},
|
||||
onHide: function() {
|
||||
// 页面隐藏
|
||||
},
|
||||
|
||||
getstandardList: function() {
|
||||
var that = this;
|
||||
|
||||
util.request(api.kfiteminfo, {
|
||||
packageno: '666',
|
||||
patid: this.data.selectPatid
|
||||
})
|
||||
.then(function(res) {
|
||||
console.log(res.data);
|
||||
that.setData({
|
||||
standardList: res.data,
|
||||
});
|
||||
|
||||
// 将后台返回的 res 数组数据进行新增一个字段
|
||||
if(res.data != null){
|
||||
res.data.forEach(function(item) {
|
||||
// 获取图片数组length范围内的随机 index
|
||||
//var randomIndex = Math.floor(Math.random() * that.data.srcList.length);
|
||||
item.checked = 0;
|
||||
});
|
||||
that.setData({
|
||||
smStandardList: res.data,
|
||||
smStandardContent: res.data[0].itemno
|
||||
})
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
},
|
||||
getaddtionList: function() {
|
||||
var that = this;
|
||||
|
||||
util.request(api.kfiteminfo, {
|
||||
packageno: '0',
|
||||
patid: this.data.selectPatid
|
||||
})
|
||||
.then(function(res) {
|
||||
console.log(res.data);
|
||||
that.setData({
|
||||
addtionList: res.data,
|
||||
});
|
||||
|
||||
if(res.data != null){
|
||||
// 将后台返回的 res 数组数据进行新增一个字段
|
||||
res.data.forEach(function(item) {
|
||||
// 获取图片数组length范围内的随机 index
|
||||
//var randomIndex = Math.floor(Math.random() * that.data.srcList.length);
|
||||
item.checked = 0;
|
||||
});
|
||||
that.setData({
|
||||
smAddtionList: res.data
|
||||
})
|
||||
}
|
||||
|
||||
});
|
||||
console.log(this.data.smAddtionList.length, "smAddtionList length");
|
||||
|
||||
},
|
||||
addFast: function(){
|
||||
var filterNum = this.data.smStandardList.filter(function(person,index,arrs){
|
||||
return person.checked==true
|
||||
});
|
||||
|
||||
var filterNum1 = this.data.smAddtionList.filter(function(person,index,arrs){
|
||||
return person.checked==true
|
||||
});
|
||||
|
||||
if( (filterNum.length == 0) && (filterNum1.length == 0)){
|
||||
wx.showToast({
|
||||
title: '没有选择项目',
|
||||
})
|
||||
}else{
|
||||
app.globalData.gStandardList = this.data.smStandardList;
|
||||
app.globalData.gAddtionList = this.data.smAddtionList;
|
||||
app.globalData.gStandardContent = this.data.smStandardContent;
|
||||
|
||||
// 设置好list,转到结算页面
|
||||
try {
|
||||
// wx.setStorageSync('cartId', res.data);
|
||||
// wx.setStorageSync('grouponRulesId', checkedGroupon.id);
|
||||
// wx.setStorageSync('grouponLinkId', that.data.grouponLink.id);
|
||||
|
||||
wx.navigateTo({
|
||||
url: '/pages/checkoutkf/checkoutkf?name=' + this.data.selectName + '&nationid=' + this.data.selectNationId + '&classname=' + this.data.selectClassName + '&schoolname=' + this.data.selectSchoolName + '&patid=' + this.data.selectPatid,
|
||||
})
|
||||
|
||||
} catch (e) {}
|
||||
}
|
||||
},
|
||||
onTabItemTap(item) {
|
||||
// 判断是否要阻止切换
|
||||
console.log("切换tab");
|
||||
if (app.globalData.hasXyrw == false) {
|
||||
// 阻止切换
|
||||
wx.switchTab({
|
||||
url: '/pages/index/index'
|
||||
})
|
||||
return false;
|
||||
}
|
||||
// 允许切换
|
||||
return true;
|
||||
},
|
||||
onUnload: function() {
|
||||
// 页面关闭
|
||||
}
|
||||
|
||||
})
|
||||
3
pages/categorykf/categorykf.json
Normal file
3
pages/categorykf/categorykf.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
110
pages/categorykf/categorykf.wxml
Normal file
110
pages/categorykf/categorykf.wxml
Normal file
@@ -0,0 +1,110 @@
|
||||
|
||||
<!-- <view class="cart-bottom">
|
||||
<van-checkbox value="checked" bind:change="checkedAll">全选(5)</van-checkbox>
|
||||
|
||||
</view> -->
|
||||
|
||||
|
||||
<view class="container">
|
||||
<!-- <view class="item">
|
||||
<view class="item-header">
|
||||
<view class="item-header-cont">
|
||||
项目列表
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<view class="form">
|
||||
<!-- <view class="tjb-info-right" >
|
||||
<view class="tjb-info-content">
|
||||
<van-button round type="info" icon="exchange" bind:click="chgDefault" size="small">切换体检人</van-button>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<van-popup
|
||||
show="{{ studentSwitch }}"
|
||||
position="bottom"
|
||||
custom-style="height: 50%"
|
||||
bind:close="studentShutdown"
|
||||
>
|
||||
<view class = "pickempty" wx:if = "{{ studentlist.length == 0 }}">无数据</view>
|
||||
<view wx:if = "{{ studentlist != 0 }}">
|
||||
<van-picker
|
||||
show-toolbar
|
||||
title="请选择"
|
||||
columns="{{ studentlist }}"
|
||||
value-key="name"
|
||||
bind:cancel="studentShutdown"
|
||||
bind:confirm="studentIdentification"
|
||||
/>
|
||||
</view>
|
||||
</van-popup>
|
||||
|
||||
<view class="container">请核对项目后,选择开单!开单后请及时缴费,超过开单当天24:00后,订单自动取消,如需缴费,请重新选择项目并开单!</view>
|
||||
<view class="tjinfo" >
|
||||
<!-- 默认160rpx 最多只能放6个汉字 -->
|
||||
<view class="tjinfo-left">住址:</view>
|
||||
<view class="tjinfo-middle">{{ selectSchoolName }}</view>
|
||||
</view>
|
||||
<!-- <view class="tjinfo" >
|
||||
<view class="tjinfo-left">班级:</view>
|
||||
<view class="tjinfo-middle">{{ selectClassName }}</view>
|
||||
</view> -->
|
||||
<view class="tjinfo" >
|
||||
<view class="tjinfo-left">姓名:</view>
|
||||
<view class="tjinfo-middle">{{ selectName }}</view>
|
||||
</view>
|
||||
|
||||
<!-- 分割线 -->
|
||||
<view class="view_fengexian">
|
||||
<view ></view>
|
||||
<view ></view>
|
||||
</view>
|
||||
|
||||
<view class="tjitem" wx:if = "{{smAddtionList.length != 0}}" >
|
||||
<view class="tjitem-left-header">康复项目</view>
|
||||
</view>
|
||||
<view class="tjitem" wx:if = "{{smAddtionList.length == 0 && smStandardList.length == 0 }}" >
|
||||
<view class="tjitem-left-header">无项目</view>
|
||||
</view>
|
||||
<!-- <view class="tjitem" >
|
||||
<view class="tjitem-list">静态心电图</view>
|
||||
<view class="tjitem-right">¥80</view>
|
||||
|
||||
</view> -->
|
||||
<view class="tjitem-list-wrap {{(iindex + 1) % 2 == 0 ? 'item-b' : ''}}" url="/pages/goods/goods?id={{iitem.id}}"
|
||||
wx:for="{{smAddtionList}}" wx:key="id" wx:for-item="iitem" wx:for-index="iindex">
|
||||
<view class="tjitem-check">
|
||||
<view class="tjitem-check-wrap" wx:if = "{{iitem.showflag == 0}}" >
|
||||
<van-checkbox value="{{ iitem.checked }}" bind:change="onCheckOptionChange" checked-color="#07c160" data-item-index="{{iindex}}"/>
|
||||
</view>
|
||||
<view class="tjitem-check-wrap" wx:if = "{{iitem.showflag == 1}}" >
|
||||
<van-checkbox disabled value="{{ disablecheck }}" bind:change="onCheckOptionChange" checked-color="#07c160" data-item-index="{{iindex}}"/>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="tjitem-list" wx:if = "{{iitem.showflag == 0}}">{{iitem.itemname}}</view>
|
||||
<view class="tjitem-list-disable" wx:if = "{{iitem.showflag == 1}}">{{iitem.itemname}}</view>
|
||||
|
||||
<view class="tjitem-right" wx:if = "{{iitem.showflag == 0}}" >¥{{iitem.itemprice}}</view>
|
||||
<view class="tjitem-right-disable" wx:if = "{{iitem.showflag == 1}}" >¥{{iitem.itemprice}}</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
<!-- 确保信息显示 -->
|
||||
<view class="area">
|
||||
<view class="area-header">
|
||||
<view class="area-header-cont">
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottom-btn">
|
||||
|
||||
<view class="c" bindtap="addFast" >提交订单</view>
|
||||
</view>
|
||||
554
pages/categorykf/categorykf.wxss
Normal file
554
pages/categorykf/categorykf.wxss
Normal file
@@ -0,0 +1,554 @@
|
||||
.container {
|
||||
background: #f9f9f9;
|
||||
}
|
||||
|
||||
.tjb-info-right{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
/* border: 1rpx solid #0e0af1; */
|
||||
|
||||
}
|
||||
.tjb-info-content{
|
||||
width: 220rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
margin-left: 50rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
|
||||
.tjinfo{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
/* border: 1rpx solid #0e0af1; */
|
||||
|
||||
}
|
||||
|
||||
.tjinfo-left{
|
||||
width: 160rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
margin-left: 50rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
.tjinfo-middle{
|
||||
flex: auto;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
|
||||
|
||||
.tjitem{
|
||||
height: 120rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
|
||||
}
|
||||
.tjitem-left-header{
|
||||
height: 100%;
|
||||
width: 300rpx;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
margin-left: 100rpx;
|
||||
line-height: 120rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
|
||||
.tjitem-left{
|
||||
height: 100%;
|
||||
width: 160rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
margin-left: 20rpx;
|
||||
line-height: 120rpx;
|
||||
/* border: 1rpx solid #85f10a; */
|
||||
}
|
||||
.tjitem-right{
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
margin-right: 50rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
.tjitem-right-disable{
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
margin-right: 50rpx;
|
||||
/* text-decoration:line-through; */
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
|
||||
.tjitem-content{
|
||||
height: 200rpx;
|
||||
width: 100%;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 50rpx;
|
||||
margin-left: 30rpx;
|
||||
margin-right: 50rpx;
|
||||
margin-top: 10rpx;
|
||||
/* border: 1rpx solid #340af1; */
|
||||
}
|
||||
.tjitem-content-disable{
|
||||
height: 200rpx;
|
||||
width: 100%;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 50rpx;
|
||||
margin-left: 30rpx;
|
||||
margin-right: 50rpx;
|
||||
margin-top: 10rpx;
|
||||
/* text-decoration:line-through; */
|
||||
|
||||
/* border: 1rpx solid #340af1; */
|
||||
}
|
||||
|
||||
.container{
|
||||
font-size: 24rpx;
|
||||
color:#000;
|
||||
line-height: 40rpx;
|
||||
background-color: #f2f0f4;
|
||||
}
|
||||
|
||||
.view_fengexian {
|
||||
width: 96%;
|
||||
height: 20rpx;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0rpx 2% 0rpx 2%;
|
||||
}
|
||||
|
||||
/* 两个view的样式 */
|
||||
.view_fengexian view {
|
||||
width: 100%;
|
||||
height: 2rpx;
|
||||
/* background: linear-gradient(to right, #ead6ee, #a0f1ea); */
|
||||
background: rgb(241, 237, 237);
|
||||
}
|
||||
|
||||
/* 字体的样式 */
|
||||
.text_fengexian {
|
||||
font-size: 25rpx;
|
||||
color: rgb(253, 143, 143);
|
||||
margin: 0rpx 2% 0rpx 2%;
|
||||
}
|
||||
|
||||
|
||||
.tjitem-line{
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 10rpx;
|
||||
margin-left: 30rpx;
|
||||
/* border: 1rpx solid #340af1; */
|
||||
}
|
||||
|
||||
.tjitem-list-wrap{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
|
||||
}
|
||||
.tjitem-list{
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
width: 200rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
/* border: 1rpx solid #85f10a; */
|
||||
}
|
||||
|
||||
.tjitem-list-disable{
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
width: 200rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
/* text-decoration:line-through; */
|
||||
/* border: 1rpx solid #85f10a; */
|
||||
}
|
||||
|
||||
.tjitem-list-big{
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
width: 200rpx;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
/* border: 1rpx solid #85f10a; */
|
||||
}
|
||||
.tjitem-list-big-disable{
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
width: 200rpx;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
/* text-decoration:line-through; */
|
||||
/* border: 1rpx solid #85f10a; */
|
||||
}
|
||||
|
||||
.tjitem-check{
|
||||
height: 100%;
|
||||
width: 50rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
margin-left: 50rpx;
|
||||
line-height: 80rpx;
|
||||
/* border: 1rpx solid #85f10a; */
|
||||
}
|
||||
.tjitem-check-wrap{
|
||||
width: 50rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
margin-top: 20rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
|
||||
.tjitem-input{
|
||||
flex: 1;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 120rpx;
|
||||
margin-left: 30rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
.tjitem-inputf{
|
||||
flex: 1;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 120rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
.tjitem-inputs{
|
||||
display: flex !important;
|
||||
|
||||
}
|
||||
.tjitem-sr{
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.cart-bottom {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
height: 100rpx;
|
||||
width: 100%;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
}
|
||||
.item{
|
||||
height: 100rpx;
|
||||
margin-bottom: 100rpx;
|
||||
position: relative;
|
||||
background: #fff;
|
||||
}
|
||||
.item-header{
|
||||
height: 120px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
background-color: rgba(52,120,247);
|
||||
border-radius: 15rpx;
|
||||
}
|
||||
.item-header .item-header-cont {
|
||||
font-size: 35rpx;
|
||||
font-weight: bold;
|
||||
justify-content: center;
|
||||
width: 95%;
|
||||
margin: 60rpx auto;
|
||||
height: 80rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.area{
|
||||
height: 100rpx;
|
||||
margin-bottom: 100rpx;
|
||||
position: relative;
|
||||
background: #f4f4f4;
|
||||
}
|
||||
|
||||
.service{
|
||||
font-size: 35rpx;
|
||||
font-weight: bold;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 80rpx;
|
||||
}
|
||||
.service icon{
|
||||
width: 40rpx;
|
||||
height: 15rpx;
|
||||
margin-right: 20rpx;
|
||||
background-color: #50CEBB;
|
||||
border-radius: 15rpx;
|
||||
}
|
||||
.wrap{
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 0 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.cate-nav {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.cate-nav-body {
|
||||
height: 84rpx;
|
||||
white-space: nowrap;
|
||||
background: #fff;
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.15);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cate-nav .item {
|
||||
display: inline-block;
|
||||
height: 84rpx;
|
||||
min-width: 130rpx;
|
||||
padding: 0 15rpx;
|
||||
}
|
||||
|
||||
.cate-nav .item .name {
|
||||
display: block;
|
||||
height: 84rpx;
|
||||
padding: 0 20rpx;
|
||||
line-height: 84rpx;
|
||||
color: #333;
|
||||
font-size: 30rpx;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.cate-nav .item.active .name {
|
||||
color: #ab956d;
|
||||
border-bottom: 2px solid #ab956d;
|
||||
}
|
||||
|
||||
.cate-item {
|
||||
margin-top: 94rpx;
|
||||
margin-left: 25rpx;
|
||||
height: auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cate-item .h {
|
||||
height: 145rpx;
|
||||
width: 750rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.cate-item .h .name {
|
||||
display: block;
|
||||
height: 35rpx;
|
||||
margin-bottom: 18rpx;
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.cate-item .h .desc {
|
||||
display: block;
|
||||
height: 24rpx;
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.cate-item .b {
|
||||
width: 750rpx;
|
||||
padding: 0 6.25rpx;
|
||||
height: auto;
|
||||
overflow: hidden;
|
||||
|
||||
}
|
||||
|
||||
.cate-item .b .item {
|
||||
float: left;
|
||||
background: #fff;
|
||||
width: 165rpx;
|
||||
margin-bottom: 6.25rpx;
|
||||
padding-bottom: 33.333rpx;
|
||||
height: auto;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
/* border: 2px solid #ab956d; */
|
||||
|
||||
}
|
||||
|
||||
.cate-item .b .item-b {
|
||||
margin-left: 10.25rpx;
|
||||
}
|
||||
.cate-item .b .item {
|
||||
margin-left: 10.25rpx;
|
||||
}
|
||||
|
||||
.cate-item .item .img {
|
||||
width: 82rpx;
|
||||
height: 82rpx;
|
||||
}
|
||||
|
||||
.cate-item .item .name {
|
||||
display: block;
|
||||
width: 165.625rpx;
|
||||
height: 70rpx;
|
||||
margin: 11.5rpx 0 22rpx 0;
|
||||
text-align: center;
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
|
||||
/* text-overflow: -o-ellipsis-lastline;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
align-content: center; */
|
||||
|
||||
}
|
||||
|
||||
.cate-item .item .price {
|
||||
display: block;
|
||||
width: 165.625rpx;
|
||||
height: 30rpx;
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
color: #ab956d;
|
||||
}
|
||||
|
||||
|
||||
.bottom-btn {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
z-index: 10;
|
||||
width: 750rpx;
|
||||
height: 100rpx;
|
||||
display: flex;
|
||||
background: #fff;
|
||||
margin-bottom: 0rpx;
|
||||
margin-right: 100rpx;
|
||||
|
||||
}
|
||||
|
||||
.bottom-btn .l {
|
||||
float: left;
|
||||
height: 100rpx;
|
||||
width: 162rpx;
|
||||
border: 1px solid #f4f4f4;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.bottom-btn .l.l-collect {
|
||||
border-right: none;
|
||||
border-left: none;
|
||||
text-align: center;
|
||||
width: 90rpx;
|
||||
}
|
||||
|
||||
.bottom-btn .l.l-collect .icon {
|
||||
position: absolute;
|
||||
top: 28rpx;
|
||||
left: 20rpx;
|
||||
font-size: 44rpx;
|
||||
}
|
||||
|
||||
.bottom-btn .l.l-kefu {
|
||||
position: relative;
|
||||
height: 54rpx;
|
||||
width: 63rpx;
|
||||
}
|
||||
|
||||
.bottom-btn .l.l-cart .box {
|
||||
position: relative;
|
||||
height: 60rpx;
|
||||
width: 60rpx;
|
||||
|
||||
}
|
||||
|
||||
.bottom-btn .l.l-cart .cart-count {
|
||||
height: 28rpx;
|
||||
width: 28rpx;
|
||||
z-index: 10;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
background: #7232dd;
|
||||
text-align: center;
|
||||
font-size: 18rpx;
|
||||
color: #fff;
|
||||
line-height: 28rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.bottom-btn .l.l-cart .icon {
|
||||
position: absolute;
|
||||
top: 10rpx;
|
||||
left: 0;
|
||||
font-size: 44rpx;
|
||||
}
|
||||
|
||||
.bottom-btn .c {
|
||||
float: left;
|
||||
background: #7232dd;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
border-radius: 30px 30px 30px 30px;
|
||||
margin-top: 5rpx;
|
||||
margin-bottom: 5rpx;
|
||||
margin-right: 10rpx;
|
||||
margin-left: 500rpx;
|
||||
|
||||
}
|
||||
|
||||
.bottom-btn .r {
|
||||
border: 1px solid #CCB5F2;
|
||||
background: #CCB5F2;
|
||||
float: left;
|
||||
height: 100rpx;
|
||||
line-height: 96rpx;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
border-radius: 15px 0px 0px 15px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
74
pages/chat/chat.js
Normal file
74
pages/chat/chat.js
Normal file
@@ -0,0 +1,74 @@
|
||||
// pages/chat/chat.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
pay(){
|
||||
wx.navigateTo({
|
||||
url: '/pages/chatDetail/chatDetail',
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
wx.setNavigationBarTitle({
|
||||
title: '待支付订单'
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
||||
4
pages/chat/chat.json
Normal file
4
pages/chat/chat.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarBackgroundColor": "#f9f9fa"
|
||||
}
|
||||
24
pages/chat/chat.wxml
Normal file
24
pages/chat/chat.wxml
Normal file
@@ -0,0 +1,24 @@
|
||||
<!--pages/chat/chat.wxml-->
|
||||
<view class="chat">
|
||||
<view class="list">
|
||||
<view class='center'>
|
||||
<view>未知标题</view>
|
||||
<view>未知标题.医保支付</view>
|
||||
<view class="money">¥1.31</view>
|
||||
<view class="btn" bindtap='pay'>立即支付</view>
|
||||
</view>
|
||||
<view class="flex">
|
||||
<text>总金额</text>
|
||||
<text>1.77</text>
|
||||
</view>
|
||||
<view class="flex">
|
||||
<text>医保支付</text>
|
||||
<text>-1.77</text>
|
||||
</view>
|
||||
<view class="second">
|
||||
<text>合计待支付</text>
|
||||
<text>100</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
54
pages/chat/chat.wxss
Normal file
54
pages/chat/chat.wxss
Normal file
@@ -0,0 +1,54 @@
|
||||
/* pages/chat/chat.wxss */
|
||||
.chat{
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background-color: #faf9fa;
|
||||
}
|
||||
.list{
|
||||
margin:20rpx 30rpx 0;
|
||||
height: 710rpx;
|
||||
background-color: #fff;
|
||||
font-size: 28rpx;
|
||||
padding:60rpx 40rpx 0;
|
||||
box-sizing: border-box;
|
||||
color:#000;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
.center{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 60rpx;
|
||||
}
|
||||
.money{
|
||||
margin-top: 60rpx;
|
||||
font-size: 48rpx !important;
|
||||
font-weight: 600;
|
||||
}
|
||||
.btn{
|
||||
width: 280rpx;
|
||||
height: 70rpx;
|
||||
background-color: #7bc27e;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-radius: 8rpx;
|
||||
color:#fff;
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
.flex{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
height: 80rpx;
|
||||
align-items: center;
|
||||
color:#000;
|
||||
}
|
||||
.second{
|
||||
margin-top: 30rpx;
|
||||
border-top:1px solid #eee;
|
||||
height: 110rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
93
pages/chatDetail/chatDetail.js
Normal file
93
pages/chatDetail/chatDetail.js
Normal file
@@ -0,0 +1,93 @@
|
||||
// pages/chatDetail/chatDetail.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
toPayment(){
|
||||
wx.navigateTo({
|
||||
url: '/pages/payment/payment',
|
||||
})
|
||||
},
|
||||
|
||||
//获取详情
|
||||
findWxPayResult(data){
|
||||
let reqDTO = {
|
||||
out_trade_no:data
|
||||
}
|
||||
wx.request({
|
||||
url: 'http://192.168.0.97:8085/api/wxpay/findWxPayResult',
|
||||
method:'POST',
|
||||
data:reqDTO,
|
||||
header:{
|
||||
'content-type':'application/json'
|
||||
},
|
||||
success: (res)=> {
|
||||
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
wx.setNavigationBarTitle({
|
||||
title: '门诊缴费详情'
|
||||
})
|
||||
this.findWxPayResult(options.id)
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
||||
4
pages/chatDetail/chatDetail.json
Normal file
4
pages/chatDetail/chatDetail.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarBackgroundColor": "#efedef"
|
||||
}
|
||||
49
pages/chatDetail/chatDetail.wxml
Normal file
49
pages/chatDetail/chatDetail.wxml
Normal file
@@ -0,0 +1,49 @@
|
||||
<!--pages/chatDetail/chatDetail.wxml-->
|
||||
<view class="detail">
|
||||
<scroll-view class="scroll" scroll-y>
|
||||
<view class="font">
|
||||
<view class="success">
|
||||
<van-icon name="passed" />
|
||||
<text>门诊缴费成功</text>
|
||||
</view>
|
||||
<view class="text">
|
||||
您已缴费成功,有取药,检验,检查等相关执行操作时,请前往对应的执行科室出示二维码扫码确认。
|
||||
</view>
|
||||
</view>
|
||||
<view class="picture">
|
||||
<view class="text">
|
||||
<text class="text1">就诊凭条</text>
|
||||
<text class="text2">凭以下二维码检查、检验、拿药</text>
|
||||
</view>
|
||||
<view class="img">tu</view>
|
||||
</view>
|
||||
<view class="list">
|
||||
<view class="list_item">
|
||||
<text class="list_text">医院类型</text>
|
||||
<text class="list_text1">私立医院</text>
|
||||
</view>
|
||||
<view class="list_item">
|
||||
<text class="list_text">医院名称</text>
|
||||
<text class="list_text1">新疆库尔勒妇幼保健院</text>
|
||||
</view>
|
||||
<view class="list_item">
|
||||
<text class="list_text">缴费时间</text>
|
||||
<text class="list_text1">2022-10-09 12:32:23</text>
|
||||
</view>
|
||||
<view class="list_item">
|
||||
<text class="list_text">就诊人</text>
|
||||
<text class="list_text1">张三丰</text>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
|
||||
<view class="bottom">
|
||||
<view class="arrow">
|
||||
<van-icon name="arrow-left" bindtap='toPayment'/>
|
||||
<view class="right">
|
||||
<van-icon name="arrow" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
104
pages/chatDetail/chatDetail.wxss
Normal file
104
pages/chatDetail/chatDetail.wxss
Normal file
@@ -0,0 +1,104 @@
|
||||
/* pages/chatDetail/chatDetail.wxss */
|
||||
.detail{
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background-color: #f9f7fa;
|
||||
}
|
||||
.font{
|
||||
width: 100%;
|
||||
height: 190rpx;
|
||||
padding:20rpx 20rpx 0;
|
||||
box-sizing: border-box;
|
||||
background-color: #fff;
|
||||
border-bottom:2rpx solid #eee;
|
||||
}
|
||||
.success{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 32rpx;
|
||||
margin-bottom: 20rpx;
|
||||
color:#abcac8;
|
||||
}
|
||||
.van-icon, .van-icon:before {
|
||||
font-size: 60rpx !important;
|
||||
margin-right: 8rpx;
|
||||
}
|
||||
.text{
|
||||
font-size: 24rpx;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
.text1{
|
||||
font-size: 32rpx;
|
||||
color:#000;
|
||||
}
|
||||
.text2{
|
||||
color:#e1be9f;
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
.picture{
|
||||
width: 100%;
|
||||
height: 580rpx;
|
||||
background-color: #f3f4fc;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
font-size: 24rpx;
|
||||
align-items: center;
|
||||
padding-bottom:40rpx;
|
||||
}
|
||||
.img{
|
||||
width: 540rpx;
|
||||
height: 500rpx;
|
||||
margin-top: 10rpx;
|
||||
background-color: pink;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.list{
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
padding:0 28rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.list_item{
|
||||
width: 100%;
|
||||
height: 80rpx;
|
||||
border-bottom:1px solid #eee;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.list_text{
|
||||
font-size: 30rpx;
|
||||
color:#000;
|
||||
}
|
||||
.list_text1{
|
||||
font-size: 26rpx;
|
||||
color:#666;
|
||||
}
|
||||
.bottom{
|
||||
width: 100%;
|
||||
height: 80rpx;
|
||||
position: fixed;
|
||||
bottom:100rpx;
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.arrow{
|
||||
width: 300rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.van-icon, .van-icon:before {
|
||||
font-size: 60rpx !important;
|
||||
}
|
||||
.right{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.right >van-icon{
|
||||
color:#e2e1e3;
|
||||
}
|
||||
.scroll{
|
||||
height: calc(100vh - 180rpx);
|
||||
}
|
||||
229
pages/checkout/checkout.js
Normal file
229
pages/checkout/checkout.js
Normal file
@@ -0,0 +1,229 @@
|
||||
var util = require('../../utils/util.js');
|
||||
var api = require('../../config/api.js');
|
||||
|
||||
var app = getApp();
|
||||
|
||||
Page({
|
||||
data: {
|
||||
isTipsShow: false, //控制确认提示信息对话框
|
||||
|
||||
//上一个页面带来的信息
|
||||
isShow: false,
|
||||
selectName: '',
|
||||
selectNationId: '',
|
||||
selectClassName: '',
|
||||
selectSchoolName: '',
|
||||
selectPatid: '',
|
||||
list: [], //成功开单信息
|
||||
listfail: [], //失败开单信息
|
||||
|
||||
hideStadndard: null,
|
||||
hideAddtion: null,
|
||||
checkStandardList: [],
|
||||
checkStandardContent: '',
|
||||
checkAddtionList: [],
|
||||
orderTotalPrice: 0.00, //基础总价
|
||||
orderTotalPriceAddtion: 0.00, //附加总价
|
||||
totalPrice: 0.00, //总价
|
||||
totalPriceDisp: '',
|
||||
message: ''
|
||||
},
|
||||
onLoad: function(options) {
|
||||
// 页面初始化 options为页面跳转所带来的参数
|
||||
var that = this;
|
||||
|
||||
that.setData({
|
||||
checkStandardList: app.globalData.gStandardList,
|
||||
checkStandardContent: app.globalData.gStandardContent,
|
||||
checkAddtionList: app.globalData.gAddtionList
|
||||
});
|
||||
|
||||
this.setData({
|
||||
selectName:options.name,
|
||||
selectNationId:options.nationid,
|
||||
selectClassName:options.classname,
|
||||
selectSchoolName:options.schoolname,
|
||||
selectPatid: options.patid
|
||||
})
|
||||
// console.log(this.data.checkStandardList);
|
||||
|
||||
var filterNum = this.data.checkStandardList.filter(function(person,index,arrs){
|
||||
return person.checked==true
|
||||
});
|
||||
if(filterNum.length == 0) {
|
||||
that.setData({
|
||||
hideStadndard: 0,
|
||||
checkStandardList: filterNum
|
||||
});
|
||||
}else{
|
||||
that.setData({
|
||||
hideStadndard: 1,
|
||||
checkStandardList: filterNum
|
||||
});
|
||||
}
|
||||
// console.log(this.data.hideStadndard);
|
||||
console.log("filterNum");
|
||||
console.log(filterNum);
|
||||
|
||||
var filterNum1 = this.data.checkAddtionList.filter(function(person,index,arrs){
|
||||
return person.checked==true
|
||||
});
|
||||
if(filterNum1.length == 0) {
|
||||
that.setData({
|
||||
hideAddtion: 0,
|
||||
checkAddtionList: filterNum1
|
||||
});
|
||||
}else{
|
||||
that.setData({
|
||||
hideAddtion: 1,
|
||||
checkAddtionList: filterNum1
|
||||
});
|
||||
}
|
||||
// console.log(this.data.hideAddtion);
|
||||
console.log("filterNum1");
|
||||
console.log(filterNum1);
|
||||
|
||||
//计算总金额
|
||||
this.data.checkStandardList.forEach((item) => {
|
||||
console.log(item);
|
||||
this.data.orderTotalPrice = this.data.orderTotalPrice + parseFloat(item.itemprice)*100;
|
||||
});
|
||||
console.log(this.data.orderTotalPrice/100);
|
||||
|
||||
this.data.checkAddtionList.forEach((item) => {
|
||||
console.log(item);
|
||||
this.data.orderTotalPriceAddtion = this.data.orderTotalPriceAddtion + parseFloat(item.itemprice)*100;
|
||||
});
|
||||
console.log(this.data.orderTotalPriceAddtion/100);
|
||||
|
||||
this.data.totalPrice = (this.data.orderTotalPrice + this.data.orderTotalPriceAddtion) / 100;
|
||||
|
||||
this.setData({
|
||||
totalPriceDisp: this.data.totalPrice.toString()
|
||||
});
|
||||
console.log(this.data.totalPriceDisp);
|
||||
|
||||
},
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
},
|
||||
//获取checkou信息
|
||||
getCheckoutInfo: function() {
|
||||
let that = this;
|
||||
util.request(api.CartCheckout, {
|
||||
cartId: that.data.cartId,
|
||||
addressId: that.data.addressId,
|
||||
couponId: that.data.couponId,
|
||||
userCouponId: that.data.userCouponId,
|
||||
grouponRulesId: that.data.grouponRulesId
|
||||
}).then(function(res) {
|
||||
if (res.errno === 0) {
|
||||
that.setData({
|
||||
checkedGoodsList: res.data.checkedGoodsList,
|
||||
checkedAddress: res.data.checkedAddress,
|
||||
availableCouponLength: res.data.availableCouponLength,
|
||||
actualPrice: res.data.actualPrice,
|
||||
couponPrice: res.data.couponPrice,
|
||||
grouponPrice: res.data.grouponPrice,
|
||||
freightPrice: res.data.freightPrice,
|
||||
goodsTotalPrice: res.data.goodsTotalPrice,
|
||||
orderTotalPrice: res.data.orderTotalPrice,
|
||||
addressId: res.data.addressId,
|
||||
couponId: res.data.couponId,
|
||||
userCouponId: res.data.userCouponId,
|
||||
grouponRulesId: res.data.grouponRulesId,
|
||||
});
|
||||
}
|
||||
wx.hideLoading();
|
||||
});
|
||||
},
|
||||
bindMessageInput: function(e) {
|
||||
this.setData({
|
||||
message: e.detail.value
|
||||
});
|
||||
},
|
||||
onReady: function() {
|
||||
// 页面渲染完成
|
||||
|
||||
},
|
||||
onShow: function() {
|
||||
// 页面显示
|
||||
// wx.showLoading({
|
||||
// title: '加载中...',
|
||||
// });
|
||||
|
||||
//this.getCheckoutInfo();
|
||||
|
||||
|
||||
|
||||
},
|
||||
onHide: function() {
|
||||
// 页面隐藏
|
||||
|
||||
},
|
||||
onUnload: function() {
|
||||
// 页面关闭
|
||||
|
||||
},
|
||||
onNavToJF: function() {
|
||||
// setTimeout(item => {
|
||||
// wx.navigateBack({
|
||||
// delta: 3 //返回上一级页面
|
||||
// })
|
||||
// },1000)
|
||||
wx.navigateBack({
|
||||
delta: 3 //返回上一级页面
|
||||
})
|
||||
|
||||
wx.navigateTo({
|
||||
url: '/pages/payment/payment',
|
||||
})
|
||||
},
|
||||
|
||||
onConfirmTips: function(){
|
||||
util.requestPost(api.orderinfo, {
|
||||
patid: this.data.selectPatid,
|
||||
name: this.data.selectName,
|
||||
className: this.data.selectClassName,
|
||||
schoolName: this.data.selectSchoolName,
|
||||
nationId: this.data.selectNationId,
|
||||
iteminfo: this.data.checkStandardList,
|
||||
itemkxinfo: this.data.checkAddtionList
|
||||
}).then(res => {
|
||||
console.log(res);
|
||||
if (res.errCode === '0') {
|
||||
this.setData({
|
||||
list: res.list,
|
||||
listfail: res.listF,
|
||||
isShow: true
|
||||
})
|
||||
// wx.showToast({
|
||||
// title: '开单成功',
|
||||
// icon:'success'
|
||||
// })
|
||||
|
||||
// setTimeout(item => {
|
||||
// wx.navigateBack({
|
||||
// delta: 3 //返回上一级页面
|
||||
// })
|
||||
// },1000)
|
||||
} else {
|
||||
util.showErrorToast(res.errmsg);
|
||||
}
|
||||
});
|
||||
},
|
||||
onCancelTips: function(){
|
||||
wx.navigateBack({
|
||||
delta: 1 //返回上一级页面
|
||||
})
|
||||
},
|
||||
submitOrder: function() {
|
||||
this.setData({
|
||||
isTipsShow: true
|
||||
});
|
||||
console.log("tips");
|
||||
}
|
||||
});
|
||||
3
pages/checkout/checkout.json
Normal file
3
pages/checkout/checkout.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
113
pages/checkout/checkout.wxml
Normal file
113
pages/checkout/checkout.wxml
Normal file
@@ -0,0 +1,113 @@
|
||||
<view class="container">
|
||||
|
||||
|
||||
<view class="message-box">
|
||||
<van-field
|
||||
value="{{ value }}"
|
||||
placeholder="请核对项目后,选择开单!成功后,请到门诊结算付款!"
|
||||
disabled
|
||||
/>
|
||||
</view>
|
||||
|
||||
<view class="tjinfo" >
|
||||
<!-- 默认160rpx 最多只能放6个汉字 -->
|
||||
<view class="tjinfo-left">学校:</view>
|
||||
<view class="tjinfo-middle">{{ selectSchoolName }}</view>
|
||||
</view>
|
||||
<view class="tjinfo" >
|
||||
<view class="tjinfo-left">班级:</view>
|
||||
<view class="tjinfo-middle">{{ selectClassName }}</view>
|
||||
</view>
|
||||
<view class="tjinfo" >
|
||||
<view class="tjinfo-left">姓名:</view>
|
||||
<view class="tjinfo-middle">{{ selectName }}</view>
|
||||
</view>
|
||||
|
||||
<!-- 分割线 -->
|
||||
<view class="view_fengexian">
|
||||
<view ></view>
|
||||
<!-- <text class="text_fengexian"></text> -->
|
||||
<view ></view>
|
||||
</view>
|
||||
|
||||
<view hidden="{{!hideStadndard}}">
|
||||
<view class="tjitem" >
|
||||
<view class="tjitem-list-wrap {{(iindex + 1) % 2 == 0 ? 'item-b' : ''}}" url="/pages/goods/goods?id={{iitem.id}}"
|
||||
wx:for="{{checkStandardList}}" wx:key="id" wx:for-item="iitem" wx:for-index="iindex">
|
||||
|
||||
<view class="tjitem-list-big" wx:if="{{iitem.checked}}">{{iitem.itemname}}</view>
|
||||
<view class="tjitem-right" wx:if="{{iitem.checked}}">¥{{iitem.itemprice}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tjitem" >
|
||||
<view class="tjitem-content"> {{checkStandardContent}} </view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 分割线 -->
|
||||
<view class="view_fengexian">
|
||||
<view ></view>
|
||||
<!-- <text class="text_fengexian"></text> -->
|
||||
<view ></view>
|
||||
</view>
|
||||
|
||||
<view hidden="{{!hideAddtion}}">
|
||||
|
||||
<view class="tjitem" >
|
||||
<view class="tjitem-left-header">可选项目</view>
|
||||
</view>
|
||||
<view class="tjitem-list-wrap {{(iindex + 1) % 2 == 0 ? 'item-b' : ''}}" url="/pages/goods/goods?id={{iitem.id}}"
|
||||
wx:for="{{checkAddtionList}}" wx:key="id" wx:for-item="iitem" wx:for-index="iindex">
|
||||
|
||||
<view class="tjitem-list" wx:if="{{iitem.checked}}">{{iitem.itemname}}</view>
|
||||
<view class="tjitem-right" wx:if="{{iitem.checked}}">¥{{iitem.itemprice}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<!-- 确保信息显示 -->
|
||||
<view class="area">
|
||||
<view class="area-header">
|
||||
<view class="area-header-cont">
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<van-dialog
|
||||
use-slot
|
||||
title="开单成功,去缴费!"
|
||||
bind:close="onNavToJF"
|
||||
id="van-dialog"
|
||||
confirm-button-text="去缴费"
|
||||
show="{{ isShow }}"
|
||||
>
|
||||
<!-- <scroll-view class="kdlist" wx:if="{{isShow == true}}" scroll-y> -->
|
||||
<scroll-view class="kdlist" scroll-y>
|
||||
<van-cell-group custom-class="valueleft">
|
||||
<van-cell wx:for="{{ list }}" wx:key="index" title="{{ item.itemname }}" title-width ="300rpx" value="{{ item.errMsg }}"/>
|
||||
<van-cell wx:for="{{ listfail }}" wx:key="index" title="{{ item.itemname }}" title-width ="300rpx" value="失败"/>
|
||||
</van-cell-group>
|
||||
</scroll-view>
|
||||
</van-dialog>
|
||||
|
||||
<van-dialog
|
||||
use-slot
|
||||
title="温馨提示"
|
||||
bind:confirm="onConfirmTips"
|
||||
bind:cancel="onCancelTips"
|
||||
id="van-dialog1"
|
||||
show-cancel-button
|
||||
cancel-button-text="返回"
|
||||
custom-class="tipsdialog"
|
||||
show="{{ isTipsShow }}"
|
||||
>
|
||||
<view class="wrapStu" >
|
||||
<text class="rwtips" space="ensp"> 请再次核对已选项目和价格,一旦点击“确认”后,所选项目无法取消,请仔细核对,如需修改,请按“返回”键后重新选择项目!</text>
|
||||
</view>
|
||||
</van-dialog>
|
||||
|
||||
<view class="order-total">
|
||||
<view class="l">实付:¥{{totalPriceDisp}}</view>
|
||||
<view class="r" bindtap="submitOrder">确认</view>
|
||||
</view>
|
||||
</view>
|
||||
564
pages/checkout/checkout.wxss
Normal file
564
pages/checkout/checkout.wxss
Normal file
@@ -0,0 +1,564 @@
|
||||
page {
|
||||
height: 100%;
|
||||
background: #f4f4f4;
|
||||
}
|
||||
.item{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
/* justify-content: space-between; */
|
||||
/* align-items: center; */
|
||||
border-bottom: 1rpx solid #d10707;
|
||||
}
|
||||
.kdlist{
|
||||
height: 600rpx;
|
||||
width: 500rpx;
|
||||
margin-left: 50rpx;
|
||||
margin-top: 30rpx;
|
||||
/* line-height: 120rpx; */
|
||||
/* border: 1rpx solid #6306f8; */
|
||||
}
|
||||
.rwtips{
|
||||
font-size: 30rpx;
|
||||
font-weight: bold;
|
||||
/* color: rgb(253, 6, 6); */
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 10rpx;
|
||||
margin-left: 20rpx;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.tipsdialog{
|
||||
color:rgb(253, 6, 6);
|
||||
font-size: 30rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.tjb-info-right{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
/* border: 1rpx solid #0e0af1; */
|
||||
|
||||
}
|
||||
.tjb-info-content{
|
||||
width: 220rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
margin-left: 50rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
|
||||
.tjinfo{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
/* border: 1rpx solid #0e0af1; */
|
||||
|
||||
}
|
||||
|
||||
.tjinfo-left{
|
||||
width: 160rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
margin-left: 50rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
.tjinfo-middle{
|
||||
flex: auto;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
|
||||
|
||||
.tjitem{
|
||||
height: 120rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
|
||||
}
|
||||
.tjitem-left-header{
|
||||
height: 100%;
|
||||
width: 300rpx;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
margin-left: 30rpx;
|
||||
line-height: 120rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
|
||||
.tjitem-left{
|
||||
height: 100%;
|
||||
width: 160rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
margin-left: 20rpx;
|
||||
line-height: 120rpx;
|
||||
/* border: 1rpx solid #85f10a; */
|
||||
}
|
||||
.tjitem-right{
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
margin-right: 50rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
.tjitem-content{
|
||||
height: 200rpx;
|
||||
width: 100%;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 50rpx;
|
||||
margin-left: 30rpx;
|
||||
margin-right: 50rpx;
|
||||
margin-top: 10rpx;
|
||||
/* border: 1rpx solid #340af1; */
|
||||
}
|
||||
|
||||
.view_fengexian {
|
||||
width: 96%;
|
||||
height: 20rpx;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0rpx 2% 0rpx 2%;
|
||||
}
|
||||
|
||||
/* 两个view的样式 */
|
||||
.view_fengexian view {
|
||||
width: 100%;
|
||||
height: 2rpx;
|
||||
/* background: linear-gradient(to right, #ead6ee, #a0f1ea); */
|
||||
background: rgb(241, 237, 237);
|
||||
}
|
||||
|
||||
/* 字体的样式 */
|
||||
.text_fengexian {
|
||||
font-size: 25rpx;
|
||||
color: rgb(253, 143, 143);
|
||||
margin: 0rpx 2% 0rpx 2%;
|
||||
}
|
||||
|
||||
|
||||
.tjitem-line{
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 10rpx;
|
||||
margin-left: 30rpx;
|
||||
/* border: 1rpx solid #340af1; */
|
||||
}
|
||||
|
||||
.tjitem-list-wrap{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-left: 30rpx;
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
/* border: 1rpx solid #5b0af1; */
|
||||
|
||||
}
|
||||
.tjitem-check{
|
||||
height: 100%;
|
||||
width: 50rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
margin-left: 50rpx;
|
||||
line-height: 80rpx;
|
||||
/* border: 1rpx solid #85f10a; */
|
||||
}
|
||||
.tjitem-list{
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
width: 200rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
/* border: 1rpx solid #85f10a; */
|
||||
}
|
||||
.tjitem-list-big{
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
width: 200rpx;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
/* border: 1rpx solid #85f10a; */
|
||||
}
|
||||
|
||||
.tjitem-check{
|
||||
height: 100%;
|
||||
width: 50rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
margin-left: 50rpx;
|
||||
line-height: 80rpx;
|
||||
/* border: 1rpx solid #85f10a; */
|
||||
}
|
||||
.tjitem-check-wrap{
|
||||
width: 50rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
margin-top: 20rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
|
||||
.tjitem-input{
|
||||
flex: 1;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 120rpx;
|
||||
margin-left: 30rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
.tjitem-inputf{
|
||||
flex: 1;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 120rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
.tjitem-inputs{
|
||||
display: flex !important;
|
||||
|
||||
}
|
||||
.tjitem-sr{
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.area{
|
||||
height: 100rpx;
|
||||
margin-bottom: 100rpx;
|
||||
position: relative;
|
||||
background: #f4f4f4;
|
||||
}
|
||||
|
||||
.address-box {
|
||||
width: 100%;
|
||||
height: 166.55rpx;
|
||||
background-size: 62.5rpx 10.5rpx;
|
||||
margin-bottom: 20rpx;
|
||||
padding-top: 10.5rpx;
|
||||
}
|
||||
|
||||
.address-item {
|
||||
display: flex;
|
||||
height: 155.55rpx;
|
||||
background: #fff;
|
||||
padding: 41.6rpx 0 41.6rpx 31.25rpx;
|
||||
}
|
||||
|
||||
.address-item.address-empty {
|
||||
line-height: 75rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.address-box .l {
|
||||
width: 125rpx;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.address-box .l .name {
|
||||
margin-left: 6.25rpx;
|
||||
margin-top: -7.25rpx;
|
||||
display: block;
|
||||
width: 125rpx;
|
||||
height: 43rpx;
|
||||
line-height: 43rpx;
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
margin-bottom: 5rpx;
|
||||
}
|
||||
|
||||
.address-box .l .default {
|
||||
margin-left: 6.25rpx;
|
||||
display: block;
|
||||
width: 62rpx;
|
||||
height: 33rpx;
|
||||
border-radius: 5rpx;
|
||||
border: 1px solid #b4282d;
|
||||
font-size: 20.5rpx;
|
||||
text-align: center;
|
||||
line-height: 29rpx;
|
||||
color: #b4282d;
|
||||
}
|
||||
|
||||
.address-box .m {
|
||||
flex: 1;
|
||||
height: 72.25rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.address-box .mobile {
|
||||
display: block;
|
||||
height: 29rpx;
|
||||
line-height: 29rpx;
|
||||
margin-bottom: 6.25rpx;
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.address-box .address {
|
||||
display: block;
|
||||
height: 37.5rpx;
|
||||
line-height: 37.5rpx;
|
||||
font-size: 25rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.address-box .r {
|
||||
width: 77rpx;
|
||||
height: 77rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.address-box .r image {
|
||||
width: 52.078rpx;
|
||||
height: 52.078rpx;
|
||||
}
|
||||
|
||||
.coupon-box {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.coupon-box .coupon-item {
|
||||
width: 100%;
|
||||
height: 108.3rpx;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
padding-left: 31.25rpx;
|
||||
}
|
||||
|
||||
.coupon-box .l {
|
||||
flex: 1;
|
||||
height: 43rpx;
|
||||
line-height: 43rpx;
|
||||
padding-top: 35rpx;
|
||||
}
|
||||
|
||||
.coupon-box .l .name {
|
||||
float: left;
|
||||
font-size: 30rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.coupon-box .l .txt {
|
||||
float: right;
|
||||
font-size: 30rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.coupon-box .r {
|
||||
margin-top: 15.5rpx;
|
||||
width: 77rpx;
|
||||
height: 77rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.coupon-box .r image {
|
||||
width: 52.078rpx;
|
||||
height: 52.078rpx;
|
||||
}
|
||||
|
||||
.message-box {
|
||||
margin-top: 20rpx;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
/* border: 1px solid rgb(226, 4, 4); */
|
||||
}
|
||||
|
||||
.message-box .message-item {
|
||||
height: 52.078rpx;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
margin-left: 31.25rpx;
|
||||
padding-right: 31.25rpx;
|
||||
padding-top: 26rpx;
|
||||
/* border: 1px solid rgb(226, 4, 4); */
|
||||
}
|
||||
|
||||
.order-box {
|
||||
margin-top: 20rpx;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.order-box .order-item {
|
||||
height: 104.3rpx;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
margin-left: 31.25rpx;
|
||||
padding-right: 31.25rpx;
|
||||
padding-top: 26rpx;
|
||||
border-bottom: 1px solid #d9d9d9;
|
||||
}
|
||||
|
||||
.order-box .order-item .l {
|
||||
float: left;
|
||||
height: 52rpx;
|
||||
width: 50%;
|
||||
line-height: 52rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.order-box .order-item .r {
|
||||
float: right;
|
||||
text-align: right;
|
||||
width: 50%;
|
||||
height: 52rpx;
|
||||
line-height: 52rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.order-box .order-item.no-border {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.goods-items {
|
||||
margin-top: 20rpx;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
padding-left: 31.25rpx;
|
||||
margin-bottom: 120rpx;
|
||||
}
|
||||
|
||||
.goods-items .item {
|
||||
height: 192rpx;
|
||||
padding-right: 31.25rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.goods-items .item.no-border {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.goods-items .item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.goods-items .img {
|
||||
height: 145.83rpx;
|
||||
width: 145.83rpx;
|
||||
background-color: #f4f4f4;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
|
||||
.goods-items .img image {
|
||||
height: 145.83rpx;
|
||||
width: 145.83rpx;
|
||||
}
|
||||
|
||||
.goods-items .info {
|
||||
flex: 1;
|
||||
height: 145.83rpx;
|
||||
padding-top: 5rpx;
|
||||
}
|
||||
|
||||
.goods-items .t {
|
||||
height: 33rpx;
|
||||
line-height: 33rpx;
|
||||
margin-bottom: 10rpx;
|
||||
overflow: hidden;
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.goods-items .t .name {
|
||||
display: block;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.goods-items .t .number {
|
||||
display: block;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.goods-items .m {
|
||||
height: 29rpx;
|
||||
overflow: hidden;
|
||||
line-height: 29rpx;
|
||||
margin-bottom: 25rpx;
|
||||
font-size: 25rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.goods-items .b {
|
||||
height: 41rpx;
|
||||
overflow: hidden;
|
||||
line-height: 41rpx;
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.order-total {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: 0rpx;
|
||||
height: 100rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.order-total .l {
|
||||
flex: 1;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
color: #7232dd;
|
||||
background: #fff;
|
||||
font-size: 33rpx;
|
||||
padding-left: 31.25rpx;
|
||||
border-top: 1rpx solid rgba(0, 0, 0, 0.2);
|
||||
border-bottom: 1rpx solid rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.order-total .r {
|
||||
width: 233rpx;
|
||||
height: 100rpx;
|
||||
background: #7232dd;
|
||||
border: 1px solid #7232dd;
|
||||
line-height: 100rpx;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
|
||||
219
pages/checkoutkf/checkoutkf.js
Normal file
219
pages/checkoutkf/checkoutkf.js
Normal file
@@ -0,0 +1,219 @@
|
||||
var util = require('../../utils/util.js');
|
||||
var api = require('../../config/api.js');
|
||||
|
||||
var app = getApp();
|
||||
|
||||
Page({
|
||||
data: {
|
||||
isTipsShow: false, //控制确认提示信息对话框
|
||||
|
||||
//上一个页面带来的信息
|
||||
isShow: false,
|
||||
selectName: '',
|
||||
selectNationId: '',
|
||||
selectClassName: '',
|
||||
selectSchoolName: '',
|
||||
selectPatid: '',
|
||||
list: [], //成功开单信息
|
||||
listfail: [], //失败开单信息
|
||||
|
||||
hideStadndard: null,
|
||||
hideAddtion: null,
|
||||
checkStandardList: [],
|
||||
checkStandardContent: '',
|
||||
checkAddtionList: [],
|
||||
orderTotalPrice: 0.00, //基础总价
|
||||
orderTotalPriceAddtion: 0.00, //附加总价
|
||||
totalPrice: 0.00, //总价
|
||||
totalPriceDisp: '',
|
||||
message: ''
|
||||
},
|
||||
onLoad: function(options) {
|
||||
// 页面初始化 options为页面跳转所带来的参数
|
||||
var that = this;
|
||||
|
||||
that.setData({
|
||||
checkStandardList: app.globalData.gStandardList,
|
||||
checkStandardContent: app.globalData.gStandardContent,
|
||||
checkAddtionList: app.globalData.gAddtionList
|
||||
});
|
||||
|
||||
this.setData({
|
||||
selectName:options.name,
|
||||
selectNationId:options.nationid,
|
||||
selectClassName:options.classname,
|
||||
selectSchoolName:options.schoolname,
|
||||
selectPatid: options.patid
|
||||
})
|
||||
// console.log(this.data.checkStandardList);
|
||||
|
||||
var filterNum = this.data.checkStandardList.filter(function(person,index,arrs){
|
||||
return person.checked==true
|
||||
});
|
||||
if(filterNum.length == 0) {
|
||||
that.setData({
|
||||
hideStadndard: 0,
|
||||
checkStandardList: filterNum
|
||||
});
|
||||
}else{
|
||||
that.setData({
|
||||
hideStadndard: 1,
|
||||
checkStandardList: filterNum
|
||||
});
|
||||
}
|
||||
// console.log(this.data.hideStadndard);
|
||||
console.log("filterNum");
|
||||
console.log(filterNum);
|
||||
|
||||
var filterNum1 = this.data.checkAddtionList.filter(function(person,index,arrs){
|
||||
return person.checked==true
|
||||
});
|
||||
if(filterNum1.length == 0) {
|
||||
that.setData({
|
||||
hideAddtion: 0,
|
||||
checkAddtionList: filterNum1
|
||||
});
|
||||
}else{
|
||||
that.setData({
|
||||
hideAddtion: 1,
|
||||
checkAddtionList: filterNum1
|
||||
});
|
||||
}
|
||||
// console.log(this.data.hideAddtion);
|
||||
console.log("filterNum1");
|
||||
console.log(filterNum1);
|
||||
|
||||
//计算总金额
|
||||
this.data.checkStandardList.forEach((item) => {
|
||||
console.log(item);
|
||||
this.data.orderTotalPrice = this.data.orderTotalPrice + parseFloat(item.itemprice)*100;
|
||||
});
|
||||
console.log(this.data.orderTotalPrice/100);
|
||||
|
||||
this.data.checkAddtionList.forEach((item) => {
|
||||
console.log(item);
|
||||
this.data.orderTotalPriceAddtion = this.data.orderTotalPriceAddtion + parseFloat(item.itemprice)*100;
|
||||
});
|
||||
console.log(this.data.orderTotalPriceAddtion/100);
|
||||
|
||||
this.data.totalPrice = (this.data.orderTotalPrice + this.data.orderTotalPriceAddtion) / 100;
|
||||
|
||||
this.setData({
|
||||
totalPriceDisp: this.data.totalPrice.toString()
|
||||
});
|
||||
console.log(this.data.totalPriceDisp);
|
||||
|
||||
},
|
||||
|
||||
//获取checkou信息
|
||||
getCheckoutInfo: function() {
|
||||
let that = this;
|
||||
util.request(api.kfCartCheckout, {
|
||||
cartId: that.data.cartId,
|
||||
addressId: that.data.addressId,
|
||||
couponId: that.data.couponId,
|
||||
userCouponId: that.data.userCouponId,
|
||||
grouponRulesId: that.data.grouponRulesId
|
||||
}).then(function(res) {
|
||||
if (res.errno === 0) {
|
||||
that.setData({
|
||||
checkedGoodsList: res.data.checkedGoodsList,
|
||||
checkedAddress: res.data.checkedAddress,
|
||||
availableCouponLength: res.data.availableCouponLength,
|
||||
actualPrice: res.data.actualPrice,
|
||||
couponPrice: res.data.couponPrice,
|
||||
grouponPrice: res.data.grouponPrice,
|
||||
freightPrice: res.data.freightPrice,
|
||||
goodsTotalPrice: res.data.goodsTotalPrice,
|
||||
orderTotalPrice: res.data.orderTotalPrice,
|
||||
addressId: res.data.addressId,
|
||||
couponId: res.data.couponId,
|
||||
userCouponId: res.data.userCouponId,
|
||||
grouponRulesId: res.data.grouponRulesId,
|
||||
});
|
||||
}
|
||||
wx.hideLoading();
|
||||
});
|
||||
},
|
||||
bindMessageInput: function(e) {
|
||||
this.setData({
|
||||
message: e.detail.value
|
||||
});
|
||||
},
|
||||
onReady: function() {
|
||||
// 页面渲染完成
|
||||
|
||||
},
|
||||
onShow: function() {
|
||||
// 页面显示
|
||||
// wx.showLoading({
|
||||
// title: '加载中...',
|
||||
// });
|
||||
|
||||
//this.getCheckoutInfo();
|
||||
|
||||
|
||||
|
||||
},
|
||||
onHide: function() {
|
||||
// 页面隐藏
|
||||
|
||||
},
|
||||
onUnload: function() {
|
||||
// 页面关闭
|
||||
|
||||
},
|
||||
onNavToJF: function() {
|
||||
wx.navigateBack({
|
||||
delta: 3 //返回上一级页面
|
||||
})
|
||||
|
||||
wx.navigateTo({
|
||||
url: '/pages/payment/payment',
|
||||
})
|
||||
},
|
||||
|
||||
onConfirmTips: function(){
|
||||
util.requestPost(api.kforderinfo, {
|
||||
patid: this.data.selectPatid,
|
||||
name: this.data.selectName,
|
||||
className: this.data.selectClassName,
|
||||
schoolName: this.data.selectSchoolName,
|
||||
nationId: this.data.selectNationId,
|
||||
iteminfo: this.data.checkStandardList,
|
||||
itemkxinfo: this.data.checkAddtionList
|
||||
}).then(res => {
|
||||
console.log(res);
|
||||
if (res.errCode === '0') {
|
||||
this.setData({
|
||||
list: res.list,
|
||||
listfail: res.listF,
|
||||
isShow: true
|
||||
})
|
||||
// wx.showToast({
|
||||
// title: '开单成功',
|
||||
// icon:'success'
|
||||
// })
|
||||
|
||||
// setTimeout(item => {
|
||||
// wx.navigateBack({
|
||||
// delta: 3 //返回上一级页面
|
||||
// })
|
||||
// },1000)
|
||||
} else {
|
||||
util.showErrorToast(res.errmsg);
|
||||
}
|
||||
});
|
||||
},
|
||||
onCancelTips: function(){
|
||||
wx.navigateBack({
|
||||
delta: 1 //返回上一级页面
|
||||
})
|
||||
},
|
||||
submitOrder: function() {
|
||||
this.setData({
|
||||
isTipsShow: true
|
||||
});
|
||||
console.log("tips");
|
||||
}
|
||||
});
|
||||
3
pages/checkoutkf/checkoutkf.json
Normal file
3
pages/checkoutkf/checkoutkf.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
91
pages/checkoutkf/checkoutkf.wxml
Normal file
91
pages/checkoutkf/checkoutkf.wxml
Normal file
@@ -0,0 +1,91 @@
|
||||
<view class="container">
|
||||
|
||||
|
||||
<view class="message-box">
|
||||
<van-field
|
||||
value="{{ value }}"
|
||||
placeholder="请核对项目后,选择开单!成功后,请到门诊结算付款!"
|
||||
disabled
|
||||
/>
|
||||
</view>
|
||||
|
||||
<view class="tjinfo" >
|
||||
<!-- 默认160rpx 最多只能放6个汉字 -->
|
||||
<view class="tjinfo-left">住址:</view>
|
||||
<view class="tjinfo-middle">{{ selectSchoolName }}</view>
|
||||
</view>
|
||||
<!-- <view class="tjinfo" >
|
||||
<view class="tjinfo-left">班级:</view>
|
||||
<view class="tjinfo-middle">{{ selectClassName }}</view>
|
||||
</view> -->
|
||||
<view class="tjinfo" >
|
||||
<view class="tjinfo-left">姓名:</view>
|
||||
<view class="tjinfo-middle">{{ selectName }}</view>
|
||||
</view>
|
||||
|
||||
<!-- 分割线 -->
|
||||
<view class="view_fengexian">
|
||||
<view ></view>
|
||||
<view ></view>
|
||||
</view>
|
||||
|
||||
<view hidden="{{!hideAddtion}}">
|
||||
|
||||
<view class="tjitem" >
|
||||
<view class="tjitem-left-header">康复项目</view>
|
||||
</view>
|
||||
<view class="tjitem-list-wrap {{(iindex + 1) % 2 == 0 ? 'item-b' : ''}}" url="/pages/goods/goods?id={{iitem.id}}"
|
||||
wx:for="{{checkAddtionList}}" wx:key="id" wx:for-item="iitem" wx:for-index="iindex">
|
||||
|
||||
<view class="tjitem-list" wx:if="{{iitem.checked}}">{{iitem.itemname}}</view>
|
||||
<view class="tjitem-right" wx:if="{{iitem.checked}}">¥{{iitem.itemprice}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<!-- 确保信息显示 -->
|
||||
<view class="area">
|
||||
<view class="area-header">
|
||||
<view class="area-header-cont">
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<van-dialog
|
||||
use-slot
|
||||
title="开单成功,去缴费!"
|
||||
bind:close="onNavToJF"
|
||||
id="van-dialog"
|
||||
confirm-button-text="去缴费"
|
||||
show="{{ isShow }}"
|
||||
>
|
||||
<!-- <scroll-view class="kdlist" wx:if="{{isShow == true}}" scroll-y> -->
|
||||
<scroll-view class="kdlist" scroll-y>
|
||||
<van-cell-group custom-class="valueleft">
|
||||
<van-cell wx:for="{{ list }}" wx:key="index" title="{{ item.itemname }}" title-width ="300rpx" value="{{ item.errMsg }}"/>
|
||||
<van-cell wx:for="{{ listfail }}" wx:key="index" title="{{ item.itemname }}" title-width ="300rpx" value="失败"/>
|
||||
</van-cell-group>
|
||||
</scroll-view>
|
||||
</van-dialog>
|
||||
|
||||
<van-dialog
|
||||
use-slot
|
||||
title="温馨提示"
|
||||
bind:confirm="onConfirmTips"
|
||||
bind:cancel="onCancelTips"
|
||||
id="van-dialog1"
|
||||
show-cancel-button
|
||||
cancel-button-text="返回"
|
||||
custom-class="tipsdialog"
|
||||
show="{{ isTipsShow }}"
|
||||
>
|
||||
<view class="wrapStu" >
|
||||
<text class="rwtips" space="ensp"> 请再次核对已选项目和价格,一旦点击“确认”后,所选项目无法取消,请仔细核对,如需修改,请按“返回”键后重新选择项目!</text>
|
||||
</view>
|
||||
</van-dialog>
|
||||
|
||||
<view class="order-total">
|
||||
<view class="l">实付:¥{{totalPriceDisp}}</view>
|
||||
<view class="r" bindtap="submitOrder">确认</view>
|
||||
</view>
|
||||
</view>
|
||||
564
pages/checkoutkf/checkoutkf.wxss
Normal file
564
pages/checkoutkf/checkoutkf.wxss
Normal file
@@ -0,0 +1,564 @@
|
||||
page {
|
||||
height: 100%;
|
||||
background: #f4f4f4;
|
||||
}
|
||||
.item{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
/* justify-content: space-between; */
|
||||
/* align-items: center; */
|
||||
border-bottom: 1rpx solid #d10707;
|
||||
}
|
||||
.kdlist{
|
||||
height: 600rpx;
|
||||
width: 500rpx;
|
||||
margin-left: 50rpx;
|
||||
margin-top: 30rpx;
|
||||
/* line-height: 120rpx; */
|
||||
/* border: 1rpx solid #6306f8; */
|
||||
}
|
||||
.rwtips{
|
||||
font-size: 30rpx;
|
||||
font-weight: bold;
|
||||
/* color: rgb(253, 6, 6); */
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 10rpx;
|
||||
margin-left: 20rpx;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.tipsdialog{
|
||||
color:rgb(253, 6, 6);
|
||||
font-size: 30rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.tjb-info-right{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
/* border: 1rpx solid #0e0af1; */
|
||||
|
||||
}
|
||||
.tjb-info-content{
|
||||
width: 220rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
margin-left: 50rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
|
||||
.tjinfo{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
/* border: 1rpx solid #0e0af1; */
|
||||
|
||||
}
|
||||
|
||||
.tjinfo-left{
|
||||
width: 160rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
margin-left: 50rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
.tjinfo-middle{
|
||||
flex: auto;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
|
||||
|
||||
.tjitem{
|
||||
height: 120rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
|
||||
}
|
||||
.tjitem-left-header{
|
||||
height: 100%;
|
||||
width: 300rpx;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
margin-left: 30rpx;
|
||||
line-height: 120rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
|
||||
.tjitem-left{
|
||||
height: 100%;
|
||||
width: 160rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
margin-left: 20rpx;
|
||||
line-height: 120rpx;
|
||||
/* border: 1rpx solid #85f10a; */
|
||||
}
|
||||
.tjitem-right{
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
margin-right: 50rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
.tjitem-content{
|
||||
height: 200rpx;
|
||||
width: 100%;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 50rpx;
|
||||
margin-left: 30rpx;
|
||||
margin-right: 50rpx;
|
||||
margin-top: 10rpx;
|
||||
/* border: 1rpx solid #340af1; */
|
||||
}
|
||||
|
||||
.view_fengexian {
|
||||
width: 96%;
|
||||
height: 20rpx;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0rpx 2% 0rpx 2%;
|
||||
}
|
||||
|
||||
/* 两个view的样式 */
|
||||
.view_fengexian view {
|
||||
width: 100%;
|
||||
height: 2rpx;
|
||||
/* background: linear-gradient(to right, #ead6ee, #a0f1ea); */
|
||||
background: rgb(241, 237, 237);
|
||||
}
|
||||
|
||||
/* 字体的样式 */
|
||||
.text_fengexian {
|
||||
font-size: 25rpx;
|
||||
color: rgb(253, 143, 143);
|
||||
margin: 0rpx 2% 0rpx 2%;
|
||||
}
|
||||
|
||||
|
||||
.tjitem-line{
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 10rpx;
|
||||
margin-left: 30rpx;
|
||||
/* border: 1rpx solid #340af1; */
|
||||
}
|
||||
|
||||
.tjitem-list-wrap{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-left: 30rpx;
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
/* border: 1rpx solid #5b0af1; */
|
||||
|
||||
}
|
||||
.tjitem-check{
|
||||
height: 100%;
|
||||
width: 50rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
margin-left: 50rpx;
|
||||
line-height: 80rpx;
|
||||
/* border: 1rpx solid #85f10a; */
|
||||
}
|
||||
.tjitem-list{
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
width: 200rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
/* border: 1rpx solid #85f10a; */
|
||||
}
|
||||
.tjitem-list-big{
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
width: 200rpx;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
/* border: 1rpx solid #85f10a; */
|
||||
}
|
||||
|
||||
.tjitem-check{
|
||||
height: 100%;
|
||||
width: 50rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
margin-left: 50rpx;
|
||||
line-height: 80rpx;
|
||||
/* border: 1rpx solid #85f10a; */
|
||||
}
|
||||
.tjitem-check-wrap{
|
||||
width: 50rpx;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
margin-top: 20rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
|
||||
.tjitem-input{
|
||||
flex: 1;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 120rpx;
|
||||
margin-left: 30rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
.tjitem-inputf{
|
||||
flex: 1;
|
||||
font-size: 25rpx;
|
||||
color: #333;
|
||||
line-height: 120rpx;
|
||||
/* border: 1rpx solid #f10a0a; */
|
||||
}
|
||||
.tjitem-inputs{
|
||||
display: flex !important;
|
||||
|
||||
}
|
||||
.tjitem-sr{
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.area{
|
||||
height: 100rpx;
|
||||
margin-bottom: 100rpx;
|
||||
position: relative;
|
||||
background: #f4f4f4;
|
||||
}
|
||||
|
||||
.address-box {
|
||||
width: 100%;
|
||||
height: 166.55rpx;
|
||||
background-size: 62.5rpx 10.5rpx;
|
||||
margin-bottom: 20rpx;
|
||||
padding-top: 10.5rpx;
|
||||
}
|
||||
|
||||
.address-item {
|
||||
display: flex;
|
||||
height: 155.55rpx;
|
||||
background: #fff;
|
||||
padding: 41.6rpx 0 41.6rpx 31.25rpx;
|
||||
}
|
||||
|
||||
.address-item.address-empty {
|
||||
line-height: 75rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.address-box .l {
|
||||
width: 125rpx;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.address-box .l .name {
|
||||
margin-left: 6.25rpx;
|
||||
margin-top: -7.25rpx;
|
||||
display: block;
|
||||
width: 125rpx;
|
||||
height: 43rpx;
|
||||
line-height: 43rpx;
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
margin-bottom: 5rpx;
|
||||
}
|
||||
|
||||
.address-box .l .default {
|
||||
margin-left: 6.25rpx;
|
||||
display: block;
|
||||
width: 62rpx;
|
||||
height: 33rpx;
|
||||
border-radius: 5rpx;
|
||||
border: 1px solid #b4282d;
|
||||
font-size: 20.5rpx;
|
||||
text-align: center;
|
||||
line-height: 29rpx;
|
||||
color: #b4282d;
|
||||
}
|
||||
|
||||
.address-box .m {
|
||||
flex: 1;
|
||||
height: 72.25rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.address-box .mobile {
|
||||
display: block;
|
||||
height: 29rpx;
|
||||
line-height: 29rpx;
|
||||
margin-bottom: 6.25rpx;
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.address-box .address {
|
||||
display: block;
|
||||
height: 37.5rpx;
|
||||
line-height: 37.5rpx;
|
||||
font-size: 25rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.address-box .r {
|
||||
width: 77rpx;
|
||||
height: 77rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.address-box .r image {
|
||||
width: 52.078rpx;
|
||||
height: 52.078rpx;
|
||||
}
|
||||
|
||||
.coupon-box {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.coupon-box .coupon-item {
|
||||
width: 100%;
|
||||
height: 108.3rpx;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
padding-left: 31.25rpx;
|
||||
}
|
||||
|
||||
.coupon-box .l {
|
||||
flex: 1;
|
||||
height: 43rpx;
|
||||
line-height: 43rpx;
|
||||
padding-top: 35rpx;
|
||||
}
|
||||
|
||||
.coupon-box .l .name {
|
||||
float: left;
|
||||
font-size: 30rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.coupon-box .l .txt {
|
||||
float: right;
|
||||
font-size: 30rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.coupon-box .r {
|
||||
margin-top: 15.5rpx;
|
||||
width: 77rpx;
|
||||
height: 77rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.coupon-box .r image {
|
||||
width: 52.078rpx;
|
||||
height: 52.078rpx;
|
||||
}
|
||||
|
||||
.message-box {
|
||||
margin-top: 20rpx;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
/* border: 1px solid rgb(226, 4, 4); */
|
||||
}
|
||||
|
||||
.message-box .message-item {
|
||||
height: 52.078rpx;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
margin-left: 31.25rpx;
|
||||
padding-right: 31.25rpx;
|
||||
padding-top: 26rpx;
|
||||
/* border: 1px solid rgb(226, 4, 4); */
|
||||
}
|
||||
|
||||
.order-box {
|
||||
margin-top: 20rpx;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.order-box .order-item {
|
||||
height: 104.3rpx;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
margin-left: 31.25rpx;
|
||||
padding-right: 31.25rpx;
|
||||
padding-top: 26rpx;
|
||||
border-bottom: 1px solid #d9d9d9;
|
||||
}
|
||||
|
||||
.order-box .order-item .l {
|
||||
float: left;
|
||||
height: 52rpx;
|
||||
width: 50%;
|
||||
line-height: 52rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.order-box .order-item .r {
|
||||
float: right;
|
||||
text-align: right;
|
||||
width: 50%;
|
||||
height: 52rpx;
|
||||
line-height: 52rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.order-box .order-item.no-border {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.goods-items {
|
||||
margin-top: 20rpx;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
padding-left: 31.25rpx;
|
||||
margin-bottom: 120rpx;
|
||||
}
|
||||
|
||||
.goods-items .item {
|
||||
height: 192rpx;
|
||||
padding-right: 31.25rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.goods-items .item.no-border {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.goods-items .item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.goods-items .img {
|
||||
height: 145.83rpx;
|
||||
width: 145.83rpx;
|
||||
background-color: #f4f4f4;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
|
||||
.goods-items .img image {
|
||||
height: 145.83rpx;
|
||||
width: 145.83rpx;
|
||||
}
|
||||
|
||||
.goods-items .info {
|
||||
flex: 1;
|
||||
height: 145.83rpx;
|
||||
padding-top: 5rpx;
|
||||
}
|
||||
|
||||
.goods-items .t {
|
||||
height: 33rpx;
|
||||
line-height: 33rpx;
|
||||
margin-bottom: 10rpx;
|
||||
overflow: hidden;
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.goods-items .t .name {
|
||||
display: block;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.goods-items .t .number {
|
||||
display: block;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.goods-items .m {
|
||||
height: 29rpx;
|
||||
overflow: hidden;
|
||||
line-height: 29rpx;
|
||||
margin-bottom: 25rpx;
|
||||
font-size: 25rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.goods-items .b {
|
||||
height: 41rpx;
|
||||
overflow: hidden;
|
||||
line-height: 41rpx;
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.order-total {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: 0rpx;
|
||||
height: 100rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.order-total .l {
|
||||
flex: 1;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
color: #7232dd;
|
||||
background: #fff;
|
||||
font-size: 33rpx;
|
||||
padding-left: 31.25rpx;
|
||||
border-top: 1rpx solid rgba(0, 0, 0, 0.2);
|
||||
border-bottom: 1rpx solid rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.order-total .r {
|
||||
width: 233rpx;
|
||||
height: 100rpx;
|
||||
background: #7232dd;
|
||||
border: 1px solid #7232dd;
|
||||
line-height: 100rpx;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
|
||||
187
pages/confirmation/confirmation.js
Normal file
187
pages/confirmation/confirmation.js
Normal file
@@ -0,0 +1,187 @@
|
||||
// pages/confirmation/confirmation.js
|
||||
var app = getApp()
|
||||
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
ksmc: '',
|
||||
date: '',
|
||||
date2: "",
|
||||
week: '',
|
||||
day: '',
|
||||
money: '',
|
||||
today: '',
|
||||
pbmxid: '',
|
||||
sfId: '',
|
||||
name: '',
|
||||
hosName: '',
|
||||
hosLocation: '',
|
||||
painId: '',
|
||||
ksmc: "",
|
||||
ksdm: '',
|
||||
todayStr: ''
|
||||
},
|
||||
naviToDes() {
|
||||
wx.navigateTo({
|
||||
url: "/pages/explain/explain",
|
||||
})
|
||||
},
|
||||
naviToDh() {
|
||||
wx.openLocation({
|
||||
latitude: app.globalData.lat,
|
||||
longitude: app.globalData.lon,
|
||||
scale: 12,
|
||||
name: app.globalData.hosName,
|
||||
address: app.globalData.hosLocation
|
||||
})
|
||||
},
|
||||
confirmApply() {
|
||||
let pbmxid = this.data.pbmxid
|
||||
console.log(wx.getStorageSync('cardNo'))
|
||||
wx.request({
|
||||
url: 'https://fy.btlsoln.com:8443/his/order?patid&pbmxid&czyh&yyhx&ksmc&ksdm&sjdjl&cardNo&patientName',
|
||||
method: "GET",
|
||||
data: {
|
||||
pbmxid: pbmxid,
|
||||
patid: this.data.painId,
|
||||
czyh: '01',
|
||||
yyhx: "0",
|
||||
ksmc: String(this.data.ksmc),
|
||||
ksdm: this.data.ksdm,
|
||||
sjdjl: this.data.date,
|
||||
jssj: this.data.date2,
|
||||
zxrq: this.data.zxrq,
|
||||
cardNo: wx.getStorageSync('cardNo'),
|
||||
patientName: wx.getStorageSync('trueName'),
|
||||
},
|
||||
header: {
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
success: (res) => {
|
||||
if (res.data.errCode == 0) {
|
||||
wx.setStorageSync('ksmc', this.data.ksmc)
|
||||
wx.setStorageSync('day', this.data.day)
|
||||
wx.setStorageSync('date', this.data.date)
|
||||
wx.setStorageSync('sjd', this.data.date + '-' + this.data.date2)
|
||||
wx.setStorageSync('today', this.data.today)
|
||||
wx.setStorageSync('money', this.data.money)
|
||||
wx.setStorageSync('sfId', this.data.sfId)
|
||||
wx.setStorageSync('name', this.data.name)
|
||||
wx.setStorageSync('name', this.data.name)
|
||||
wx.setStorageSync('xh', res.data.list[0].xh)
|
||||
wx.navigateTo({
|
||||
url: '/pages/resInformation/resInformation',
|
||||
})
|
||||
} else {
|
||||
wx.showToast({
|
||||
title: res.data.errMsg,
|
||||
icon: "none"
|
||||
})
|
||||
}
|
||||
},
|
||||
fail(err) {}
|
||||
})
|
||||
},
|
||||
initDate() {
|
||||
var myDate = new Date((new Date));
|
||||
var time = myDate.toJSON().substr(0, 10);
|
||||
var today = time.split('-').join("")
|
||||
this.setData({
|
||||
todayStr: today
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
this.initDate()
|
||||
let painId = wx.getStorageSync("painId")
|
||||
let name = wx.getStorageSync('trueName')
|
||||
let sfId = wx.getStorageSync('sfId1')
|
||||
let num = options.day
|
||||
let ksmc = options.ksmc
|
||||
let ksdm = options.ksdm
|
||||
var year = String(num).substr(0, 4)
|
||||
var month = String(num).substr(4, 5).substr(0, 2)
|
||||
var date = String(num).substr(6, 8)
|
||||
var result = year + '年' + month + '月' + date + '日'
|
||||
let num2 = options.today
|
||||
var year = String(num2).substr(0, 4)
|
||||
var month = String(num2).substr(5, 6).substr(0, 2)
|
||||
var date = String(num2).substr(8, 9)
|
||||
var result2 = year + '年' + month + '月' + date + '日'
|
||||
this.setData({
|
||||
ksmc: options.ksmc,
|
||||
date: options.date,
|
||||
date2: options.date2,
|
||||
week: options.week,
|
||||
money: options.num,
|
||||
pbmxid: options.pbmxid,
|
||||
zxrq: options.zxrq,
|
||||
day: result,
|
||||
today: result2,
|
||||
name: name,
|
||||
sfId: sfId,
|
||||
painId: painId,
|
||||
hosName: app.globalData.hosName,
|
||||
hosLocation: app.globalData.hosLocation,
|
||||
ksmc: ksmc,
|
||||
ksdm: ksdm
|
||||
})
|
||||
wx.setNavigationBarTitle({
|
||||
title: "确认预约信息"
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
||||
3
pages/confirmation/confirmation.json
Normal file
3
pages/confirmation/confirmation.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
53
pages/confirmation/confirmation.wxml
Normal file
53
pages/confirmation/confirmation.wxml
Normal file
@@ -0,0 +1,53 @@
|
||||
<!--pages/confirmation/confirmation.wxml-->
|
||||
<view class="main">
|
||||
<view class="wrap">
|
||||
<view class="item">
|
||||
<view class="left">就诊医院</view>
|
||||
<view class="right">{{hosName}}</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="left">医院地址</view>
|
||||
<view class="right">{{hosLocation}}<view class="icon" bindtap="naviToDh"></view></view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="left">就诊科室</view>
|
||||
<view class="right">{{ksmc}}</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="left">门诊时间</view>
|
||||
<view class="right">{{day}} {{week}}</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="left">候诊时间</view>
|
||||
<view class="right">{{date}}-{{date2}}</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="left">费用</view>
|
||||
<view class="right">
|
||||
<view class="je">¥{{money}}</view>
|
||||
<view class="des">(就诊时支付)</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="item">
|
||||
<view class="left">预约时间</view>
|
||||
<view class="right">{{today}}</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="wrap">
|
||||
<view class="item">
|
||||
<view class="left">就诊人</view>
|
||||
<view class="right">{{name}}</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="left">身份证号</view>
|
||||
<view class="right">{{sfId}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottom">
|
||||
<view class="msgWrap">
|
||||
<view class="t1">挂号前仔细阅读</view>
|
||||
<view class="t2" bindtap="naviToDes">《预约须知》</view>
|
||||
</view>
|
||||
<view class="btn" bindtap="confirmApply">确认预约</view>
|
||||
</view>
|
||||
</view>
|
||||
88
pages/confirmation/confirmation.wxss
Normal file
88
pages/confirmation/confirmation.wxss
Normal file
@@ -0,0 +1,88 @@
|
||||
/* pages/confirmation/confirmation.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;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
.icon{
|
||||
height: 50rpx;
|
||||
width: 50rpx;
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA49JREFUWEetV0uMFFUUPbd60I0Bumb4hs0MVd2Jxg+fBDf8EmAhfhaacScYg0O9mgFjcAEJARICCbAAZroKMMTPxii6cPwkiokoLoyBkMAGuhrBkECYmX49RDcwdF1TOky6Zl5Vve7h7brvueece9+3CE2MWf1XO3MGbQJREaClAHcCNARgGEDAwCCHY+dHe5/+S5eWdIAdA8HSukGbCbwJwMysHCI69MCoH/67pziSic0CtPvBQQbeB+OJLGw8zteYsa/mFj5Ly0vtQLsXDDLwSnPCcTSBtlWF1Z/EkWgg75d7iOnEdMQncjncJ93iXhWX0kDev/4ycfjNYxEfJwnrWDvaZ5+bzKk0oNn62wDujBMuALAwzTAD52rCXptpQKP620xGT81Z/G0j2XjeyQwj3VLYZxrzpnQg7wWfEPCWqhoGKjVh22mV5r0gIMBKwJyRwu5ONWD6wS0wFqkIDNDyEWFdTDPQ4VWWheALSRgp7FjRsR+zS+UXDKJLymSi76VjbdRZmKZf+Q7ML6mwbTNy84e2dN19FIsb6A/WGDn8nGDgQ+lY72oaOAXmLeppzD1fE12XmzbAwMGasHfpGMh7wQECdir3PYUrqk7xj6YNgOhj6Vhv6xgw/cpHYN6swo7lwjmNd0RsCszjwUy04Z5ahH6SwlqvZcCrnAV43RQs0R3pWLHzYso2NL3gBwAblPPHGKi5dl/qNiwF/UToTSjiNymslenbsHRtL8jYkyRiAK+NCHtQFe/wgldD4OukXOKwr+oWB1INdJy8uSCsj0X7OO1oPU2EX+p4eD4iy6FtJTNWA3gnSTw6xNr4wZJh95l/Ug1EQTOjCzrrYDKGwLurorB/6v8KtjmloafqdO8sgBdbEVPk/J7jWeuH3bmx6iNc4ntg9kB5Vc6gHxl4cjomCLhfD3nDaG/hV+W5kEZulq5vB4VHp2MAbLwn3cXHEhdmFnna7ZiVy8CnNWFHD9nEofUqNv3KZTA/myUYixNdkY71XFaOloGsK1YlonN1py7CyaRmqbwDRIezKvovzvyBdAtHdLBaHXhEZHrBlwBezyD+Sgr7DR3xpjowYaJU/hNEnUoB5hvSLXTpirdkYJ5fmTvGPPGiaRSbQTTvrmNF34rao6kpmOiCH3SD8Xl81eNN6dhfaCuPA1syEOW2exWfwVv/byOdqArLaVa8pSloFDG9cvQdACkKPa2IRzn/AmevNDA3aatcAAAAAElFTkSuQmCC);
|
||||
background-size: 100%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
.je{
|
||||
color: rgba(198,36,29);
|
||||
}
|
||||
.des{
|
||||
margin-left: 20rpx;
|
||||
font-size: 33rpx;
|
||||
color: #666;
|
||||
}
|
||||
.bottom{
|
||||
width: 90%;
|
||||
height: 200rpx;
|
||||
margin: 40rpx auto;
|
||||
}
|
||||
.msgWrap{
|
||||
height: 50rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.t1{
|
||||
font-size: 30rpx;
|
||||
color: rgb(165, 161, 161);
|
||||
}
|
||||
.t2{
|
||||
font-size: 32rpx;
|
||||
color: rgba(58,143,255);
|
||||
}
|
||||
.btn{
|
||||
height: 100rpx;
|
||||
margin-top: 50rpx;
|
||||
margin-bottom: 20rpx;
|
||||
width: 100%;
|
||||
background: rgba(0,110,255);
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
line-height: 100rpx;
|
||||
border-radius: 10rpx;
|
||||
font-size: 35rpx;
|
||||
letter-spacing: 5rpx;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
94
pages/department/department.js
Normal file
94
pages/department/department.js
Normal file
@@ -0,0 +1,94 @@
|
||||
// pages/department/department.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
curNav:1,
|
||||
curIndex:0,
|
||||
scrollTop:0,
|
||||
},
|
||||
|
||||
changeTab:function(e){
|
||||
let id = e.target.dataset.id,
|
||||
index = parseInt(e.target.dataset.index);
|
||||
// 把点击到的某一项,设为当前index
|
||||
this.setData({
|
||||
curNav: id,
|
||||
curIndex: index,
|
||||
})
|
||||
},
|
||||
|
||||
toDetail:function(e){
|
||||
console.log(e)
|
||||
const id = e.target.id;
|
||||
const title = e.target.dataset.title;
|
||||
|
||||
wx.navigateTo({
|
||||
url: '../register/register?id='+id+'&title='+title,
|
||||
success: function(res) {
|
||||
console.log(111)
|
||||
},
|
||||
fail:function(res){
|
||||
console.log(res)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
console.log(options)
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
||||
7
pages/department/department.json
Normal file
7
pages/department/department.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarBackgroundColor": "#fff",
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "科室列表",
|
||||
"backgroundColor": "#fff",
|
||||
"backgroundTextStyle": "light"
|
||||
}
|
||||
27
pages/department/department.wxml
Normal file
27
pages/department/department.wxml
Normal file
@@ -0,0 +1,27 @@
|
||||
<!--pages/department/department.wxml科室列表-->
|
||||
<view class="list">
|
||||
<scroll-view class='menu' scroll-y="true">
|
||||
<view class="cd {{curNav==item.id?'active' :''}}"
|
||||
bindtap="changeTab" wx:for="{{classifyList}}"
|
||||
wx:key="id" data-id="{{item.id}}"
|
||||
data-index="{{index}}">
|
||||
{{item.name}}
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
<scroll-view class="content" scroll-y="true" scroll-top="{{scrollTop}}">
|
||||
<view class="goods_con" wx:if="{{classifyList[curIndex].children}}">
|
||||
<block wx:for="{{classifyList[curIndex].children}}" wx:key="id">
|
||||
<view class="goodslist"
|
||||
bindtap="toDetail"
|
||||
id="{{item.id}}"
|
||||
data-title="{{item.title}}"
|
||||
>
|
||||
{{item.title}}
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
|
||||
<view class='nodata' wx:else>该分类暂无数据</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
60
pages/department/department.wxss
Normal file
60
pages/department/department.wxss
Normal file
@@ -0,0 +1,60 @@
|
||||
/* pages/department/department.wxss */
|
||||
page{
|
||||
background: #F1F7F5;
|
||||
}
|
||||
|
||||
.menu{
|
||||
font-size: 28rpx;
|
||||
color: #666;
|
||||
background: #F1F7F5;
|
||||
width: 206rpx;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 20rpx;
|
||||
bottom: 0;
|
||||
padding-bottom: 30rpx;
|
||||
}
|
||||
.cd{
|
||||
width: 200rpx;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
border-bottom: 1px solid #eee;
|
||||
border-left: 6rpx solid #F1F7F5;
|
||||
text-indent: 30rpx;
|
||||
}
|
||||
.content{
|
||||
width: 550rpx;
|
||||
background: #fff;
|
||||
position: absolute;
|
||||
top: 20rpx;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
}
|
||||
::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
color: transparent;
|
||||
}
|
||||
.active{
|
||||
width: 200rpx;
|
||||
background: #fff;
|
||||
border-left: 6rpx solid green;
|
||||
}
|
||||
.goods_con{
|
||||
margin-left: 30rpx;
|
||||
padding-bottom: 30rpx;
|
||||
}
|
||||
.goodslist{
|
||||
width: 100%;
|
||||
height:100rpx;
|
||||
line-height: 100rpx;
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
|
||||
.nodata{
|
||||
margin-top: 60rpx;
|
||||
text-align: center;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
85
pages/departmentChoose/departmentChoose.js
Normal file
85
pages/departmentChoose/departmentChoose.js
Normal file
@@ -0,0 +1,85 @@
|
||||
// pages/departmentChoose/departmentChoose.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
deptList: []
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
wx.setNavigationBarTitle({
|
||||
title: '选择部门',
|
||||
})
|
||||
},
|
||||
getDeptCategoryList() {
|
||||
wx.request({
|
||||
url: 'https://fy.btlsoln.com:8443/hisViewSearch/getHisDeptList',
|
||||
method: "GET",
|
||||
success: (res) => {
|
||||
console.log(res)
|
||||
this.setData({
|
||||
deptList: res.data.data
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
navigateToDept(val) {
|
||||
const deptId = val.currentTarget.dataset.ejks_id
|
||||
wx.navigateTo({
|
||||
url: '/pages/selectDepartment/selectDepartment?deptId=' + deptId,
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
this.getDeptCategoryList()
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
||||
3
pages/departmentChoose/departmentChoose.json
Normal file
3
pages/departmentChoose/departmentChoose.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
7
pages/departmentChoose/departmentChoose.wxml
Normal file
7
pages/departmentChoose/departmentChoose.wxml
Normal file
@@ -0,0 +1,7 @@
|
||||
<view class="main">
|
||||
<view class="container">
|
||||
<van-cell-group inset wx:for="{{deptList}}">
|
||||
<van-cell title="{{item.ejks_mc}}" is-link data-ejks_id="{{item.ejks_id}}" bindtap="navigateToDept" />
|
||||
</van-cell-group>
|
||||
</view>
|
||||
</view>
|
||||
1
pages/departmentChoose/departmentChoose.wxss
Normal file
1
pages/departmentChoose/departmentChoose.wxss
Normal file
@@ -0,0 +1 @@
|
||||
/* pages/departmentChoose/departmentChoose.wxss */
|
||||
231
pages/departmentMsg/departmentMsg.js
Normal file
231
pages/departmentMsg/departmentMsg.js
Normal file
@@ -0,0 +1,231 @@
|
||||
// pages/departmentMsg/departmentMsg.js
|
||||
// pages/articleDetails/articleDetails.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
minDate: '',
|
||||
maxDate: '',
|
||||
defaultDate: '',
|
||||
|
||||
selectDate: '',
|
||||
selectDept: '',
|
||||
|
||||
doctorList: [],
|
||||
|
||||
},
|
||||
// getWeek(date) {
|
||||
// let myDate = new Date(date);
|
||||
// let wk = myDate.getDay();
|
||||
// let yy = String(myDate.getFullYear());
|
||||
// let mm = myDate.getMonth() + 1;
|
||||
// let dd = String(
|
||||
// myDate.getDate() < 10 ? "0" + myDate.getDate() : myDate.getDate()
|
||||
// );
|
||||
// let hou = String(
|
||||
// myDate.getHours() < 10 ? "0" + myDate.getHours() : myDate.getHours()
|
||||
// );
|
||||
// let min = String(
|
||||
// myDate.getMinutes() < 10 ?
|
||||
// "0" + myDate.getMinutes() :
|
||||
// myDate.getMinutes()
|
||||
// );
|
||||
// let sec = String(
|
||||
// myDate.getSeconds() < 10 ?
|
||||
// "0" + myDate.getSeconds() :
|
||||
// myDate.getSeconds()
|
||||
// );
|
||||
// let weeks = [
|
||||
// "周日",
|
||||
// "周一",
|
||||
// "周二",
|
||||
// "周三",
|
||||
// "周四",
|
||||
// "周五",
|
||||
// "周六"
|
||||
// ];
|
||||
// let week = weeks[wk];
|
||||
// let nowDate;
|
||||
// let nowTime;
|
||||
// let nowWeek;
|
||||
// nowDate = yy + "-" + mm + "-" + dd;
|
||||
// nowTime = hou + ":" + min + ":" + sec;
|
||||
// nowWeek = week;
|
||||
// return week;
|
||||
// },
|
||||
formatDate(date) {
|
||||
date = new Date(date);
|
||||
let year = date.getFullYear(); //年
|
||||
let month = date.getMonth() + 1; //月
|
||||
let day = date.getDate(); //天数
|
||||
if (month >= 1 && month <= 9) {
|
||||
month = `0${month}`;
|
||||
}
|
||||
if (day >= 1 && day <= 9) {
|
||||
day = `0${day}`;
|
||||
}
|
||||
return `${year}${month}${day}`;
|
||||
},
|
||||
onConfirm(e) {
|
||||
this.setData({
|
||||
doctorList:[]
|
||||
})
|
||||
let str = this.formatDate(e.detail)
|
||||
this.setData({
|
||||
selectDate:str
|
||||
})
|
||||
wx.request({
|
||||
url: 'https://fy.btlsoln.com:8443/booking/getDoctorList?selectDate&selectKsdm',
|
||||
method: "GET",
|
||||
data: {
|
||||
selectDate: str,
|
||||
selectKsdm: this.data.selectDept
|
||||
},
|
||||
header: {
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
success: (res) => {
|
||||
// console.log(res, "获取医生信息")
|
||||
this.setData({
|
||||
doctorList: res.data.list
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
initData() {
|
||||
this.setData({
|
||||
doctorList:[]
|
||||
})
|
||||
var today= new Date()
|
||||
let str = this.formatDate(today)
|
||||
this.setData({
|
||||
selectDate:str
|
||||
})
|
||||
wx.request({
|
||||
url: 'https://fy.btlsoln.com:8443/booking/getDoctorList?selectDate&selectKsdm',
|
||||
method: "GET",
|
||||
data: {
|
||||
selectDate: str,
|
||||
selectKsdm: this.data.selectDept
|
||||
},
|
||||
header: {
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
success: (res) => {
|
||||
console.log(res)
|
||||
this.setData({
|
||||
doctorList: res.data.list
|
||||
})
|
||||
|
||||
}
|
||||
})
|
||||
},
|
||||
navigateToBooking(e){
|
||||
console.log(e)
|
||||
let a = e.currentTarget.dataset.item
|
||||
a.selectDate = this.data.selectDate
|
||||
wx.navigateTo({
|
||||
url: `/pages/bookingDetails/bookingDetails?item=${JSON.stringify(a)}`,
|
||||
})
|
||||
},
|
||||
// naviToyy(e) {
|
||||
// let pbmxid = e.currentTarget.dataset.item.pbmxid
|
||||
// let day = e.currentTarget.dataset.item.zxrq
|
||||
// let week = e.currentTarget.dataset.item.weekday
|
||||
// let date = e.currentTarget.dataset.item.kssj
|
||||
// let date2 = e.currentTarget.dataset.item.jssj
|
||||
// let zxrq = e.currentTarget.dataset.item.zxrq
|
||||
// let ksmc = this.data.ksmc
|
||||
// let ksdm = this.data.ksdm
|
||||
// let num = e.currentTarget.dataset.item.ghf + e.currentTarget.dataset.item.zlf
|
||||
// let today = this.data.today
|
||||
// var t1 = this.data.t1
|
||||
// var t2 = this.data.t2
|
||||
// if ((t2 - t1) / (24 * 3600 * 1000) > 30) {
|
||||
// wx.showToast({
|
||||
// title: '暂未开放预约',
|
||||
// icon: "error"
|
||||
// })
|
||||
// } else {
|
||||
// wx.navigateTo({
|
||||
// url: '/pages/confirmation/confirmation?pbmxid=' + pbmxid + '&day=' + day + '&week=' + week + '&date=' + date + '&ksmc=' + ksmc + '&num=' + num + '&ksdm=' + ksdm + '&today=' + today + '&date2=' + date2 + '&zxrq=' + zxrq,
|
||||
// })
|
||||
// }
|
||||
// },
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
this.setData({
|
||||
selectDept: options.deptId
|
||||
})
|
||||
this.initData()
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
var today = new Date(new Date().setHours(0, 0, 0, 0))
|
||||
var todayTime = new Date(new Date().setHours(0, 0, 0, 0))
|
||||
var weekend = today.setDate(today.getDate() + 6)
|
||||
this.setData({
|
||||
minDate: todayTime.valueOf(),
|
||||
maxDate: weekend,
|
||||
defaultDate: todayTime.valueOf()
|
||||
})
|
||||
// this.setData({
|
||||
// days:[this.getDays(0).substr(8,2), this.getDays(1).substr(8,2), this.getDays(2).substr(8,2), this.getDays(3).substr(8,2), this.getDays(4).substr(8,2), this.getDays(5).substr(8,2), this.getDays(6).substr(8,2)],
|
||||
// weeks:[this.getWeek(this.getDays(0)), this.getWeek(this.getDays(1)), this.getWeek(this.getDays(2)),
|
||||
// this.getWeek(this.getDays(3)), this.getWeek(this.getDays(4)), this.getWeek(this.getDays(5)), this.getWeek(this.getDays(6))
|
||||
// ],
|
||||
// today:this.getDays(0)
|
||||
// })
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
// console.log(this.data.ksdm,"ksdm")
|
||||
// let ksdm = this.data.ksdm
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
||||
5
pages/departmentMsg/departmentMsg.json
Normal file
5
pages/departmentMsg/departmentMsg.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"van-calendar": "@vant/weapp/calendar/index"
|
||||
}
|
||||
}
|
||||
17
pages/departmentMsg/departmentMsg.wxml
Normal file
17
pages/departmentMsg/departmentMsg.wxml
Normal file
@@ -0,0 +1,17 @@
|
||||
<!--pages/departmentMsg/departmentMsg.wxml-->
|
||||
<view class="main">
|
||||
<view class="content">
|
||||
<!-- <view class="item"> -->
|
||||
<van-calendar tyep="single" poppable="{{ false }}" show-confirm="{{ false }}" default-date="{{defaultDate}}" color="#07c160" class="calendar" min-date="{{minDate}}" max-date="{{maxDate}}" bind:select="onConfirm" />
|
||||
<scroll-view style='height:100%' scroll-y="true">
|
||||
<van-cell-group inset wx:for="{{doctorList}}">
|
||||
<van-cell label-class="textHidden" value="{{item.doctorzc}}" label="{{item.introduction}}" is-link center data-item="{{item}}" bindtap="navigateToBooking" >
|
||||
<view slot="title" class="name_title">
|
||||
<van-image width='50' height='60' round src="{{item.imageUrl}}"></van-image>
|
||||
<view>{{item.ysmc}}</view>
|
||||
</view>
|
||||
</van-cell>
|
||||
</van-cell-group>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
170
pages/departmentMsg/departmentMsg.wxss
Normal file
170
pages/departmentMsg/departmentMsg.wxss
Normal file
@@ -0,0 +1,170 @@
|
||||
/* pages/departmentMsg/departmentMsg.wxss */
|
||||
.banner {
|
||||
margin: 30rpx 0;
|
||||
width: 750rpx;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.content {
|
||||
height: 100%;
|
||||
width: 95%;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.item {
|
||||
height: 300rpx;
|
||||
width: 95%;
|
||||
border-radius: 5rpx;
|
||||
margin: 40rpx auto;
|
||||
box-shadow: 0px 0px 15rpx #e2e2e2;
|
||||
padding: 0 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.weeks {
|
||||
height: 120rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.item1 {
|
||||
height: 120rpx;
|
||||
width: 14%;
|
||||
text-align: center;
|
||||
font-size: 32rpx;
|
||||
color: #666;
|
||||
line-height: 120rpx;
|
||||
}
|
||||
|
||||
.days {
|
||||
height: 150rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.item2 {
|
||||
padding: 20rpx;
|
||||
font-size: 32rpx;
|
||||
text-align: center;
|
||||
border-radius: 50%;
|
||||
background: rgba(229, 241, 255);
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.active {
|
||||
background: rgba(0, 110, 255);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.listWrap {
|
||||
height: 100%;
|
||||
width: 95%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.item3 {
|
||||
height: 150rpx;
|
||||
width: 100%;
|
||||
border-radius: 5rpx;
|
||||
margin-bottom: 30rpx;
|
||||
box-shadow: 0px 0px 15rpx #e2e2e2;
|
||||
padding: 0 20rpx;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.zw {
|
||||
height: 150rpx;
|
||||
width: 100%;
|
||||
border-radius: 5rpx;
|
||||
margin-bottom: 30rpx;
|
||||
box-shadow: 0px 0px 15rpx #e2e2e2;
|
||||
padding: 0 20rpx;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #666;
|
||||
font-size: 35rpx;
|
||||
}
|
||||
|
||||
.date {
|
||||
width: 40%;
|
||||
color: #333;
|
||||
font-size: 38rpx;
|
||||
padding-left: 20rpx;
|
||||
}
|
||||
|
||||
.je {
|
||||
width: 35%;
|
||||
color: rgba(198, 36, 29);
|
||||
}
|
||||
|
||||
.yyNum {
|
||||
width: 25%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: rgba(0, 110, 255);
|
||||
color: #fff;
|
||||
font-size: 32rpx;
|
||||
padding: 5px;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
|
||||
.ml {
|
||||
margin-left: 5rpx;
|
||||
}
|
||||
|
||||
.yyNum2 {
|
||||
width: 25%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: rgba(242, 242, 242);
|
||||
color: #666666;
|
||||
font-size: 32rpx;
|
||||
padding: 5px;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
|
||||
.calendar {
|
||||
--calendar-height: 830rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.textHidden {
|
||||
display: -webkit-box;
|
||||
overflow: hidden;
|
||||
/*超出隐藏*/
|
||||
text-overflow: ellipsis;
|
||||
/*隐藏后添加省略号*/
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
/*想显示多少行*/
|
||||
}
|
||||
|
||||
.name_title {
|
||||
width: 35vw;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.titleClass {
|
||||
display: -webkit-box;
|
||||
overflow: visible;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
/*想显示多少行*/
|
||||
}
|
||||
86
pages/deptcount/deptcount.js
Normal file
86
pages/deptcount/deptcount.js
Normal file
@@ -0,0 +1,86 @@
|
||||
|
||||
var app = getApp();
|
||||
let common = require('../../config/common.js')
|
||||
var crypto = require('../../config/crypto.js')
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
url: 'https://fy.btlsoln.com:8090/#/dept?openid='
|
||||
|
||||
// url: 'https://nxwj.btlsoln.com:8090/#/dept?openid='
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
console.log(app.globalData.openId)
|
||||
if (app.globalData.openId == "" || app.globalData.openId == null) {
|
||||
common.checkGlobalOpenId().then(res => {
|
||||
// var result = crypto.AES_EN(res)
|
||||
this.setData({
|
||||
url: this.data.url + res
|
||||
})
|
||||
})
|
||||
} else {
|
||||
// var result = crypto.AES_EN(app.globalData.openId)
|
||||
this.setData({
|
||||
url: this.data.url + app.globalData.openId
|
||||
})
|
||||
}
|
||||
console.log(this.data.url)
|
||||
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
||||
3
pages/deptcount/deptcount.json
Normal file
3
pages/deptcount/deptcount.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
pages/deptcount/deptcount.wxml
Normal file
1
pages/deptcount/deptcount.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<web-view src="{{url}}"/>
|
||||
1
pages/deptcount/deptcount.wxss
Normal file
1
pages/deptcount/deptcount.wxss
Normal file
@@ -0,0 +1 @@
|
||||
/* pages/deptcount/deptcount.wxss */
|
||||
88
pages/explain/explain.js
Normal file
88
pages/explain/explain.js
Normal file
@@ -0,0 +1,88 @@
|
||||
// pages/explain/explain.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
content:[]
|
||||
},
|
||||
confirm(){
|
||||
wx.navigateBack({
|
||||
|
||||
})
|
||||
},
|
||||
getMsg(){
|
||||
wx.request({
|
||||
url:'https://fy.btlsoln.com:8443/findOrderNotice',
|
||||
method:"GET",
|
||||
data:{},
|
||||
header: {
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
success: (res)=> {
|
||||
console.log(res,"预约须知 ")
|
||||
this.setData({
|
||||
content:res.data.CONTENT
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
wx.setNavigationBarTitle({
|
||||
title: "预约须知"
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
this.getMsg()
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
||||
3
pages/explain/explain.json
Normal file
3
pages/explain/explain.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
9
pages/explain/explain.wxml
Normal file
9
pages/explain/explain.wxml
Normal file
@@ -0,0 +1,9 @@
|
||||
<!--pages/explain/explain.wxml-->
|
||||
<view class="main">
|
||||
<view class="wrap">
|
||||
<view class="item kg">
|
||||
<rich-text nodes="{{content}}"></rich-text>
|
||||
</view>
|
||||
<view class="btn" bindtap="confirm">确认</view>
|
||||
</view>
|
||||
</view>
|
||||
39
pages/explain/explain.wxss
Normal file
39
pages/explain/explain.wxss
Normal file
@@ -0,0 +1,39 @@
|
||||
/* pages/explain/explain.wxss */
|
||||
.main{
|
||||
width: 750rpx;
|
||||
height: 100vh;
|
||||
}
|
||||
.wrap{
|
||||
width: 90%;
|
||||
height: 100%;
|
||||
margin:30rpx auto;
|
||||
}
|
||||
.title{
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
width: 100%;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
}
|
||||
.item{
|
||||
width: 100%;
|
||||
font-size: 32rpx;
|
||||
color: #666;
|
||||
line-height: 50rpx;
|
||||
}
|
||||
.kg{
|
||||
text-indent: 64rpx;
|
||||
}
|
||||
.btn{
|
||||
height: 100rpx;
|
||||
margin-top: 50rpx;
|
||||
margin-bottom: 20rpx;
|
||||
width: 100%;
|
||||
background: rgba(0,110,255);
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
line-height: 100rpx;
|
||||
border-radius: 10rpx;
|
||||
font-size: 35rpx;
|
||||
letter-spacing: 5rpx;
|
||||
}
|
||||
160
pages/feedBack/feedBack.js
Normal file
160
pages/feedBack/feedBack.js
Normal file
@@ -0,0 +1,160 @@
|
||||
// pages/userMsgDel/userMsgDel.js
|
||||
var app = getApp()
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
show:false,
|
||||
typeList:[
|
||||
{name:'挂号相关',type:'0'},
|
||||
{name:'缴费相关',type:'1'},
|
||||
{name:'使用问题',type:'2'},
|
||||
],
|
||||
typeName:'',
|
||||
typeId:'',
|
||||
msgDes:'',
|
||||
yx:'',
|
||||
phone:''
|
||||
},
|
||||
save(){
|
||||
let yx = this.data.yx
|
||||
let phone = this.data.phone
|
||||
let type = this.data.typeId
|
||||
let msg = this.data.msgDes
|
||||
if(yx == '' &&phone ==''){
|
||||
wx.showModal({
|
||||
title: '',
|
||||
content: '至少输入一个联系方式,方便我们解决您的问题!',
|
||||
cancelText:"否",
|
||||
confirmText:'是',
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
}
|
||||
}
|
||||
})
|
||||
}else{
|
||||
wx.request({
|
||||
url:'https://fy.btlsoln.com:8443/problemFeedback?type&content&phone&email',
|
||||
method:"GET",
|
||||
data:{
|
||||
type:type,
|
||||
content:msg,
|
||||
phone:phone,
|
||||
email:yx
|
||||
},
|
||||
header: {
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
success: (res)=> {
|
||||
console.log(res,"提交反馈")
|
||||
if(res.data.errCode == 0){
|
||||
wx.showToast({
|
||||
title: '提交成功',
|
||||
icon: 'success',
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
setTimeout(item => {
|
||||
wx.navigateBack({
|
||||
delta: 1 //返回上一级页面
|
||||
})
|
||||
},1000)
|
||||
},
|
||||
fail (err) {
|
||||
console.error('失败', err)
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
showPop(){
|
||||
this.setData({ show: true });
|
||||
},
|
||||
onClose() {
|
||||
this.setData({ show: false, });
|
||||
},
|
||||
confirm(e){
|
||||
console.log(e.currentTarget.dataset.item)
|
||||
let item = e.currentTarget.dataset.item
|
||||
this.setData({
|
||||
show: false,
|
||||
typeName:item.name,
|
||||
typeId:item.type
|
||||
})
|
||||
},
|
||||
|
||||
msgDes:function(e){
|
||||
this.setData({
|
||||
msgDes:e.detail.value
|
||||
})
|
||||
},
|
||||
yx:function(e){
|
||||
this.setData({
|
||||
yx:e.detail.value
|
||||
})
|
||||
},
|
||||
phone:function(e){
|
||||
this.setData({
|
||||
phone:e.detail.value
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
wx.setNavigationBarTitle({
|
||||
title:'问题反馈'
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
||||
5
pages/feedBack/feedBack.json
Normal file
5
pages/feedBack/feedBack.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"van-popup": "@vant/weapp/popup/index"
|
||||
}
|
||||
}
|
||||
43
pages/feedBack/feedBack.wxml
Normal file
43
pages/feedBack/feedBack.wxml
Normal file
@@ -0,0 +1,43 @@
|
||||
<!--pages/userMsgDel/userMsgDel.wxml-->
|
||||
<view class="main">
|
||||
<view class="content">
|
||||
<view class="title">请认填写反馈信息</view>
|
||||
<view class="form">
|
||||
<view class="item">
|
||||
<view class="left">问题类型</view>
|
||||
<view class="input2" bindtap="showPop" wx:if="{{typeName == ''}}">请选择问题类型</view>
|
||||
<view class="input3" bindtap="showPop" wx:else>{{typeName}}</view>
|
||||
</view>
|
||||
<view class="item" >
|
||||
<view class="left">问题描述</view>
|
||||
<view class="input">
|
||||
<input class="sr" bindinput='msgDes' value="{{ msgDes }}" placeholder-class="placeholder" placeholder="请描述您的问题"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item" >
|
||||
<view class="left">联系邮箱</view>
|
||||
<view class="input">
|
||||
<input class="sr" bindinput='yx' value="{{ yx }}" placeholder-class="placeholder" placeholder="请输入您的联系邮箱"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item" >
|
||||
<view class="left">手机号码</view>
|
||||
<view class="input">
|
||||
<input class="sr" bindinput='phone' value="{{ phone }}" placeholder-class="placeholder" placeholder="请输入手机号" ></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="btn" bindtap="save">提交</view>
|
||||
</view>
|
||||
</view>
|
||||
<van-popup
|
||||
show="{{ show }}"
|
||||
round
|
||||
closeable
|
||||
position="bottom"
|
||||
bind:close="onClose">
|
||||
<view class="popWrap">
|
||||
<view class="title1">选择问题类型</view>
|
||||
<view class="msgItem" wx:for="{{typeList}}" wx:key="item" data-item="{{item}}" bindtap="confirm">{{item.name}}</view>
|
||||
</view>
|
||||
</van-popup>
|
||||
</view>
|
||||
140
pages/feedBack/feedBack.wxss
Normal file
140
pages/feedBack/feedBack.wxss
Normal file
@@ -0,0 +1,140 @@
|
||||
/* pages/userMsgDel/userMsgDel.wxss */
|
||||
.main{
|
||||
margin: 30rpx 0;
|
||||
width: 750rpx;
|
||||
}
|
||||
.content{
|
||||
height: 100%;
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.title{
|
||||
height: 120rpx;
|
||||
width: 100%;
|
||||
font-size: 33rpx;
|
||||
color: #666;
|
||||
line-height: 120rpx;
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
}
|
||||
.item{
|
||||
height: 120rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
}
|
||||
.left{
|
||||
height: 100%;
|
||||
width: 180rpx;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
line-height: 120rpx;
|
||||
}
|
||||
.input{
|
||||
flex: 1;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
line-height: 120rpx;
|
||||
}
|
||||
.input2{
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
font-size: 30rpx;
|
||||
color: #666;
|
||||
line-height: 120rpx;
|
||||
}
|
||||
.input3{
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
line-height: 120rpx;
|
||||
}
|
||||
.sr{
|
||||
border: 0;
|
||||
}
|
||||
.placeholder{
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.popWrap{
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 10rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.popWrap :last-child{
|
||||
border: none;
|
||||
}
|
||||
.title1{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
font-size: 33rpx;
|
||||
color: #666;
|
||||
line-height: 80rpx;
|
||||
text-align: center
|
||||
}
|
||||
.msgItem{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
text-align: center;
|
||||
line-height: 80rpx;
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
}
|
||||
.left1{
|
||||
height: 100%;
|
||||
width: 300rpx;
|
||||
font-size: 35rpx;
|
||||
color: #333;
|
||||
line-height: 120rpx;
|
||||
}
|
||||
.left1{
|
||||
height: 100%;
|
||||
width: 400rpx;
|
||||
}
|
||||
.switch{
|
||||
height: 100%;
|
||||
width: 100rpx;
|
||||
display:flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.msgDes{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
padding: 20rpx 15rpx;
|
||||
box-sizing: border-box;
|
||||
border-radius: 10rpx;
|
||||
margin-top: 10rpx;
|
||||
background: rgba(247,247,248);
|
||||
font-size: 30rpx;
|
||||
color: #666;
|
||||
line-height: 50rpx;
|
||||
}
|
||||
.btn{
|
||||
height: 100rpx;
|
||||
margin-top: 50rpx;
|
||||
width: 100%;
|
||||
background: rgba(0,110,255);
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
line-height: 100rpx;
|
||||
border-radius: 10rpx;
|
||||
font-size: 35rpx;
|
||||
letter-spacing: 5rpx;
|
||||
}
|
||||
.btn2{
|
||||
height: 100rpx;
|
||||
margin-top: 30rpx;
|
||||
margin-bottom: 20rpx;
|
||||
width: 100%;
|
||||
background: rgba(228,240,255);
|
||||
color: rgba(3,112,255);
|
||||
text-align: center;
|
||||
line-height: 100rpx;
|
||||
border-radius: 10rpx;
|
||||
font-size: 35rpx;
|
||||
letter-spacing: 5rpx;
|
||||
}
|
||||
243
pages/ghMsg/ghMsg.js
Normal file
243
pages/ghMsg/ghMsg.js
Normal file
@@ -0,0 +1,243 @@
|
||||
// pages/ghMsg/ghMsg.js
|
||||
var app = getApp()
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
ksmc:'',
|
||||
date:'',
|
||||
week:'',
|
||||
day:'',
|
||||
money:'',
|
||||
pbmxid:'',
|
||||
sfId:'',
|
||||
name:'',
|
||||
hosName:'',
|
||||
hosLocation:'',
|
||||
isShow:'true',
|
||||
id:'',
|
||||
yylsh:'',
|
||||
jlzt:'',
|
||||
xh:''
|
||||
},
|
||||
naviToDh(){
|
||||
wx.openLocation({
|
||||
latitude: app.globalData.lat,
|
||||
longitude: app.globalData.lon,
|
||||
scale:12,
|
||||
name:app.globalData.hosName,
|
||||
address:app.globalData.hosLocation
|
||||
})
|
||||
},
|
||||
cancel(){
|
||||
var _this = this;
|
||||
if(_this.data.id == 0){
|
||||
let yylsh = _this.data.xh
|
||||
wx.showModal({
|
||||
title: '',
|
||||
content: '确定取消这次预约吗?',
|
||||
cancelText:"否",
|
||||
confirmText:'是',
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
wx.request({
|
||||
url:'https://fy.btlsoln.com:8443/his/cancelOrder?yylsh',
|
||||
method:"GET",
|
||||
data:{
|
||||
yylsh:yylsh,
|
||||
},
|
||||
header: {
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
success: (res)=> {
|
||||
if(res.data.errCode == 0){
|
||||
wx.showToast({
|
||||
title: '取消成功',
|
||||
icon: 'success',
|
||||
duration: 2000
|
||||
})
|
||||
}else{
|
||||
wx.showToast({
|
||||
title: res.data.errMsg,
|
||||
icon: 'error',
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
setTimeout(item => {
|
||||
wx.switchTab({
|
||||
url: '/pages/index/index',
|
||||
})
|
||||
},1000)
|
||||
_this.setData({
|
||||
isShow:false
|
||||
})
|
||||
},
|
||||
fail (err) {
|
||||
console.error('失败', err)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}else{
|
||||
let yylsh = _this.data.yylsh
|
||||
wx.showModal({
|
||||
title: '',
|
||||
content: '确定取消这次预约吗?',
|
||||
cancelText:"否",
|
||||
confirmText:'是',
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
wx.request({
|
||||
url:'https://fy.btlsoln.com:8443/his/cancelOrder?yylsh',
|
||||
method:"GET",
|
||||
data:{
|
||||
yylsh:yylsh,
|
||||
},
|
||||
header: {
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
success: (res)=> {
|
||||
if(res.data.errCode == 0){
|
||||
wx.showToast({
|
||||
title: '取消成功',
|
||||
icon: 'success',
|
||||
duration: 2000
|
||||
})
|
||||
|
||||
}else{
|
||||
wx.showToast({
|
||||
title: res.data.errMsg,
|
||||
icon: 'error',
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
setTimeout(item => {
|
||||
wx.navigateBack({
|
||||
delta: 1 //返回上一级页面
|
||||
})
|
||||
},1000)
|
||||
_this.setData({
|
||||
isShow:false
|
||||
})
|
||||
},
|
||||
fail (err) {
|
||||
console.error('失败', err)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
back(){
|
||||
wx.switchTab({
|
||||
url: '/pages/index/index',
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
console.log(options,"999999")
|
||||
let id = options.stateId
|
||||
this.setData({
|
||||
id:id
|
||||
})
|
||||
let ksmc = options.ksmc
|
||||
let date = options.date
|
||||
let num = options.time
|
||||
let name = options.name
|
||||
let sfId = options.card
|
||||
let yylsh= options.yylsh
|
||||
let jlzt = options.jlzt
|
||||
// let sfId = options.name
|
||||
var year = String(num).substr(0,4)
|
||||
var month = String(num).substr(4,5).substr(0,2)
|
||||
var date1 = String(num).substr(6,7)
|
||||
var result2 = year+'年'+ month +'月'+date1+'日'
|
||||
var day = options.time
|
||||
var that = this
|
||||
if(id == 0){
|
||||
that.setData({
|
||||
hosName:app.globalData.hosName,
|
||||
hosLocation:app.globalData.hosLocation,
|
||||
ksmc:wx.getStorageSync('ksmc') ,
|
||||
day:wx.getStorageSync('day') ,
|
||||
date:wx.getStorageSync('sjd') ,
|
||||
money:wx.getStorageSync('money') ,
|
||||
sfId:wx.getStorageSync('sfId') ,
|
||||
name:wx.getStorageSync('name'),
|
||||
xh:wx.getStorageSync('xh')
|
||||
})
|
||||
}else{
|
||||
that.setData({
|
||||
hosName:app.globalData.hosName,
|
||||
hosLocation:app.globalData.hosLocation,
|
||||
ksmc:ksmc,
|
||||
date:date,
|
||||
day:day,
|
||||
name:name,
|
||||
sfId:sfId,
|
||||
yylsh:yylsh,
|
||||
jlzt:jlzt,
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
wx.setNavigationBarTitle({
|
||||
title: "预约就诊详情"
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
||||
5
pages/ghMsg/ghMsg.json
Normal file
5
pages/ghMsg/ghMsg.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
|
||||
}
|
||||
}
|
||||
60
pages/ghMsg/ghMsg.wxml
Normal file
60
pages/ghMsg/ghMsg.wxml
Normal file
@@ -0,0 +1,60 @@
|
||||
<view class="main">
|
||||
<view class="title" wx:if="{{jlzt == 0}}">
|
||||
<view class="icon2"></view>
|
||||
<view class="text">预约成功</view>
|
||||
</view>
|
||||
<view class="title" wx:elif="{{jlzt == 3}}">
|
||||
<view class="icon3"></view>
|
||||
<view class="text">已取消</view>
|
||||
</view>
|
||||
<view class="wrap">
|
||||
<view class="item">
|
||||
<view class="left">就诊医院</view>
|
||||
<view class="right">{{hosName}}</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="left">医院地址</view>
|
||||
<view class="right">{{hosLocation}}<view class="icon" bindtap="naviToDh"></view></view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="left">就诊科室</view>
|
||||
<view class="right">{{ksmc}}</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="left">门诊时间</view>
|
||||
<view class="right">{{day}} {{week}}</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="left">候诊时间</view>
|
||||
<view class="right">{{date}}</view>
|
||||
</view>
|
||||
<view class="item" wx:if="{{id == 1}}">
|
||||
<view class="left">费用</view>
|
||||
<view class="right">
|
||||
<view class="je">¥{{money}}</view>
|
||||
<view class="des">(就诊时支付)</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="item" wx:if="{{id == 1}}">
|
||||
<view class="left">预约时间</view>
|
||||
<view class="right">{{today}}</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="wrap">
|
||||
<view class="item">
|
||||
<view class="left">就诊人</view>
|
||||
<view class="right">{{name}}</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="left">身份证号</view>
|
||||
<view class="right">{{sfId}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottom" wx:if="{{isShow}}">
|
||||
<view class="btn" bindtap="cancel" wx:if="{{jlzt == 0}}">取消预约</view>
|
||||
<view class="btn2" wx:if="{{jlzt == 3}}">已取消</view>
|
||||
</view>
|
||||
<view class="bottom" wx:elf="{{jlzt == 3}}">
|
||||
<view class="btn3" bindtap="back">返回首页</view>
|
||||
</view>
|
||||
</view>
|
||||
147
pages/ghMsg/ghMsg.wxss
Normal file
147
pages/ghMsg/ghMsg.wxss
Normal file
File diff suppressed because one or more lines are too long
104
pages/healthEncyclopedia/healthEncyclopedia.js
Normal file
104
pages/healthEncyclopedia/healthEncyclopedia.js
Normal file
@@ -0,0 +1,104 @@
|
||||
// pages/healthEncyclopedia/healthEncyclopedia.js
|
||||
const app = getApp()
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
msgList:[],
|
||||
url:''
|
||||
},
|
||||
naviToMsg(e){
|
||||
console.log(e.currentTarget.dataset.item)
|
||||
let item = e.currentTarget.dataset.item
|
||||
let hosId = item.HOS_ARTICLE_ID
|
||||
wx.navigateTo({
|
||||
url: '/pages/articleDetails/articleDetails?hosId='+hosId,
|
||||
})
|
||||
},
|
||||
getList(){
|
||||
wx.request({
|
||||
url:'https://fy.btlsoln.com:8443/findHospitalArticle',
|
||||
// url:'http://sayetest.f3322.org:5000/findHospitalArticle',
|
||||
method:"GET",
|
||||
data:{},
|
||||
header: {
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
success: (res)=> {
|
||||
console.log(res,"健康百科")
|
||||
let data = res.data
|
||||
data.map((item,index) => {
|
||||
let str = item.IMG
|
||||
var html = str.replace("/showFile",'https://fy.btlsoln.com:8443/showFile')
|
||||
item.IMG = html
|
||||
return data
|
||||
})
|
||||
console.log(data,"新")
|
||||
this.setData({
|
||||
msgList:data
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
this.setData({
|
||||
url:app.globalData.url2
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
wx.setNavigationBarTitle({
|
||||
title: '健康百科'
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
this.getList()
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
||||
3
pages/healthEncyclopedia/healthEncyclopedia.json
Normal file
3
pages/healthEncyclopedia/healthEncyclopedia.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
11
pages/healthEncyclopedia/healthEncyclopedia.wxml
Normal file
11
pages/healthEncyclopedia/healthEncyclopedia.wxml
Normal file
@@ -0,0 +1,11 @@
|
||||
<!--pages/healthEncyclopedia/healthEncyclopedia.wxml-->
|
||||
<view class="banner">
|
||||
<view class="item" wx:for="{{msgList}}" wx:key="item" bindtap="naviToMsg" data-item="{{item}}">
|
||||
<view class="imgWrap">
|
||||
<image src="{{item.IMG}}"></image>
|
||||
</view>
|
||||
<view class="msgWrap" >
|
||||
<view class="title">{{item.TITLE}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
49
pages/healthEncyclopedia/healthEncyclopedia.wxss
Normal file
49
pages/healthEncyclopedia/healthEncyclopedia.wxss
Normal file
@@ -0,0 +1,49 @@
|
||||
/* pages/healthEncyclopedia/healthEncyclopedia.wxss */
|
||||
.banner{
|
||||
margin: 30rpx 0;
|
||||
width: 750rpx;
|
||||
}
|
||||
.item{
|
||||
height: 200rpx;
|
||||
width: 90%;
|
||||
border-radius: 5rpx;
|
||||
margin: 40rpx auto;
|
||||
box-shadow:0px 0px 15rpx #e2e2e2;
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.imgWrap{
|
||||
height: 100%;
|
||||
width: 35%;
|
||||
border-radius: 10rpx ;
|
||||
/* background: rgba(230,241,255); */
|
||||
}
|
||||
.imgWrap image{
|
||||
height: 100%;
|
||||
width:100%;
|
||||
border-radius: 15rpx;
|
||||
background-size: 100%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
.msgWrap{
|
||||
height: 100%;
|
||||
width: 60%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
.title{
|
||||
font-size:30rpx;
|
||||
color: #333;
|
||||
}
|
||||
.writer{
|
||||
display: flex;
|
||||
font-size: 25rpx;
|
||||
color: #666;
|
||||
}
|
||||
.ml{
|
||||
margin-left: 30rpx;
|
||||
}
|
||||
215
pages/historicalvisitrecords/historicalvisitrecords.js
Normal file
215
pages/historicalvisitrecords/historicalvisitrecords.js
Normal file
@@ -0,0 +1,215 @@
|
||||
// pages/historicalvisitrecords/historicalvisitrecords.js
|
||||
var app = getApp()
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
patientData: [],
|
||||
show: false,
|
||||
list: [],
|
||||
name: '',
|
||||
painId: '',
|
||||
relate: '',
|
||||
card: '', //sfz
|
||||
cardNum: '', //jzk
|
||||
cardType: '',
|
||||
loadingHidden: true,
|
||||
},
|
||||
showPop() {
|
||||
this.setData({
|
||||
show: true
|
||||
});
|
||||
},
|
||||
onClose() {
|
||||
this.setData({
|
||||
show: false
|
||||
});
|
||||
},
|
||||
async confirm(e) {
|
||||
console.log(e.currentTarget.dataset.item)
|
||||
let user = e.currentTarget.dataset.item
|
||||
this.setData({
|
||||
name: user.TRUE_NAME,
|
||||
painId: user.PATIENT_ID,
|
||||
relate: user.RELATE,
|
||||
card: user.ID_CARD,
|
||||
cardNum: user.MEDICAL_CARD,
|
||||
cardType: user.CARD_TYPE,
|
||||
show: false,
|
||||
loadingHidden: false,
|
||||
});
|
||||
await this.getPatientList()
|
||||
},
|
||||
getPatientList() {
|
||||
if (this.data.card && this.data.name) {
|
||||
this.setData({
|
||||
loadingHidden: false,
|
||||
})
|
||||
return new Promise((resolve, reject) => {
|
||||
wx.request({
|
||||
url: 'https://fy.btlsoln.com:8443/hisViewSearch/getHistoricalVisits',
|
||||
method: 'GET',
|
||||
data: {
|
||||
patientName: this.data.name,
|
||||
idCard: this.data.card,
|
||||
},
|
||||
success: (result) => {
|
||||
console.log(result)
|
||||
if (result.data.data == null) {
|
||||
wx.showToast({
|
||||
title: '未获取到信息',
|
||||
icon: 'error'
|
||||
})
|
||||
this.setData({
|
||||
patientData: [],
|
||||
loadingHidden: true,
|
||||
})
|
||||
} else {
|
||||
this.setData({
|
||||
loadingHidden: true,
|
||||
patientData: JSON.parse(result.data.data)
|
||||
})
|
||||
}
|
||||
resolve("ok")
|
||||
},
|
||||
|
||||
})
|
||||
})
|
||||
} else {
|
||||
wx.showModal({
|
||||
title: '',
|
||||
content: '您还未绑定就诊人,请先绑定就诊人信息!',
|
||||
cancelText: "否",
|
||||
confirmText: '是',
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
wx.navigateTo({
|
||||
url: '/pages/userMsgDel/userMsgDel?state=0',
|
||||
})
|
||||
} else {
|
||||
wx.switchTab({
|
||||
url: '/pages/index/index',
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
getPerList() {
|
||||
return new Promise((resolve, reject) => {
|
||||
wx.request({
|
||||
url: 'https://fy.btlsoln.com:8443/getPatientByOpenid?openid',
|
||||
method: "GET",
|
||||
data: {
|
||||
openid: app.globalData.openId
|
||||
},
|
||||
header: {
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
success: (res) => {
|
||||
let data = res.data
|
||||
console.log(data)
|
||||
data.map((item, index) => {
|
||||
if (item.TYPE == 0) {
|
||||
this.setData({
|
||||
name: item.TRUE_NAME,
|
||||
painId: item.PATIENT_ID,
|
||||
relate: item.RELATE,
|
||||
cardNum: item.MEDICAL_CARD,
|
||||
cardType: item.CARD_TYPE,
|
||||
card: item.ID_CARD
|
||||
})
|
||||
}
|
||||
})
|
||||
if (res.data.length > 0) {
|
||||
this.setData({
|
||||
list: data
|
||||
})
|
||||
} else {
|
||||
wx.showModal({
|
||||
title: '',
|
||||
content: '您还未绑定就诊人,请先绑定就诊人信息!',
|
||||
cancelText: "否",
|
||||
confirmText: '是',
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
wx.navigateTo({
|
||||
url: '/pages/userMsgDel/userMsgDel?state=0',
|
||||
})
|
||||
} else {
|
||||
wx.switchTab({
|
||||
url: '/pages/index/index',
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
resolve("ok");
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
async getInitData() {
|
||||
await this.getPerList()
|
||||
await this.getPatientList()
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
this.getInitData()
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
wx.setNavigationBarTitle({
|
||||
title: '历史就诊记录'
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
||||
3
pages/historicalvisitrecords/historicalvisitrecords.json
Normal file
3
pages/historicalvisitrecords/historicalvisitrecords.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
69
pages/historicalvisitrecords/historicalvisitrecords.wxml
Normal file
69
pages/historicalvisitrecords/historicalvisitrecords.wxml
Normal file
@@ -0,0 +1,69 @@
|
||||
<view class="main">
|
||||
<view class="content">
|
||||
<!-- 历史就诊就记录模块 -->
|
||||
<view class="item">
|
||||
<view class="up">
|
||||
<view class="name">{{name}}</view>
|
||||
<view class="msg">
|
||||
<view wx:if="{{relate == 0}}" class="t1">本人</view>
|
||||
<view wx:elif="{{relate == 1}}" class="t1">子女</view>
|
||||
<view wx:elif="{{relate == 2}}" class="t1">夫妻 </view>
|
||||
<view wx:elif="{{relate == 3}}" class="t1">父母 </view>
|
||||
<view wx:elif="{{relate == 4}}" class="t1">朋友 </view>
|
||||
<view class="icon" bindlongtap="qiehuan" bindtap="showPop"></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="down">
|
||||
<view>{{cardNum}}</view>
|
||||
<view>切换就诊人</view>
|
||||
</view>
|
||||
</view>
|
||||
<loading hidden="{{loadingHidden}}">加载中...</loading>
|
||||
<view wx:if="{{loadingHidden}}">
|
||||
<view class="historicalvisitsingle" wx:for="{{patientData}}" wx:key="index">
|
||||
<!-- 科室,医生,项目名称,项目时间 -->
|
||||
<view class="historicalvisitcol">
|
||||
<view class="historicalvisitcolheader">姓名:</view>
|
||||
<view class="historicalvisitcolend">{{item.patientName}}</view>
|
||||
</view>
|
||||
<view class="historicalvisitcol">
|
||||
<view class="historicalvisitcolheader">医生:</view>
|
||||
<view class="historicalvisitcolend">{{item.doctorName}}</view>
|
||||
</view>
|
||||
<view class="historicalvisitcol">
|
||||
<view class="historicalvisitcolheader">就诊科室:</view>
|
||||
<view class="historicalvisitcolend">{{item.deptName}}</view>
|
||||
</view>
|
||||
<view class="historicalvisitcol">
|
||||
<view class="historicalvisitcolheader">项目名称:</view>
|
||||
<view class="historicalvisitcolend">{{item.icdName}}</view>
|
||||
</view>
|
||||
<view class="historicalvisitcol">
|
||||
<view class="historicalvisitcolheader">项目时间:</view>
|
||||
<view class="historicalvisitcolend">{{item.registerDate}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<van-popup show="{{ show }}" round closeable position="bottom" bind:close="onClose">
|
||||
<view class="popWrap">
|
||||
<view class="title1">选择就诊人</view>
|
||||
<view class="userWrap">
|
||||
<view class="userItem" wx:for="{{list}}" wx:key="item" data-item="{{item}}" bindtap="confirm">
|
||||
<view class="msg1">
|
||||
<view class="up1">
|
||||
<view class="name1">{{item.TRUE_NAME}}</view>
|
||||
<view wx:if="{{item.RELATE == 0}}" class="guanxi1">本人</view>
|
||||
<view wx:elif="{{item.RELATE == 1}}" class="guanxi1">子女</view>
|
||||
<view wx:elif="{{item.RELATE == 2}}" class="guanxi1">夫妻 </view>
|
||||
<view wx:elif="{{item.RELATE == 3}}" class="guanxi1">父母 </view>
|
||||
<view wx:elif="{{item.RELATE == 4}}" class="guanxi1">朋友 </view>
|
||||
</view>
|
||||
<view class="down1">{{item.MEDICAL_CARD}}</view>
|
||||
</view>
|
||||
<view class="icon1">></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</van-popup>
|
||||
</view>
|
||||
177
pages/historicalvisitrecords/historicalvisitrecords.wxss
Normal file
177
pages/historicalvisitrecords/historicalvisitrecords.wxss
Normal file
@@ -0,0 +1,177 @@
|
||||
.main{
|
||||
margin: 30rpx 0;
|
||||
width: 750rpx;
|
||||
}
|
||||
.content{
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.historicalvisitContainer {
|
||||
width: 100vw;
|
||||
/* height: 100vh; */
|
||||
background-color: #f6f6f6;
|
||||
}
|
||||
|
||||
.historicalvisitsingle {
|
||||
width: 95vw;
|
||||
background-color: #ffffff;
|
||||
margin: 2vw 2vw 2vw 2vw;
|
||||
padding: 5rpx 5rpx 5rpx 5rpx;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
|
||||
.historicalvisitcol {
|
||||
display: flex;
|
||||
width: 100vw;
|
||||
/* justify-content: center; */
|
||||
align-items: center;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.historicalvisitcolheader {
|
||||
width: 48vw;
|
||||
height: 5vh;
|
||||
font-size: small;
|
||||
}
|
||||
|
||||
.historicalvisitcolend {
|
||||
width: 48vw;
|
||||
height: 5vh;
|
||||
font-size: small;
|
||||
}
|
||||
.item{
|
||||
height: 200rpx;
|
||||
width: 100%;
|
||||
border-radius: 5rpx;
|
||||
margin: 40rpx auto;
|
||||
box-shadow:0px 0px 5rpx #e2e2e2;
|
||||
background: rgba(245,249,255);
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.up{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.name{
|
||||
font-size: 30rpx;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
color: #333;
|
||||
}
|
||||
.t1{
|
||||
height: 50rpx;
|
||||
width: 130rpx;
|
||||
text-align: center;
|
||||
line-height: 50rpx;
|
||||
font-size:33rpx;
|
||||
border-radius: 25rpx;
|
||||
color: rgba(45,135,255);
|
||||
background: rgba(226,237,254);
|
||||
}
|
||||
.msg{
|
||||
flex: 1;
|
||||
height: 70rpx;
|
||||
line-height: 80rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.icon{
|
||||
height: 50rpx;
|
||||
width: 50rpx;
|
||||
padding: 10rpx;
|
||||
box-sizing: border-box;
|
||||
margin-right: 50rpx;
|
||||
border-radius: 50%;
|
||||
background-color: rgba(0,110,255);
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAZpJREFUaEPtV7tKBEEQrIoEf8Bc/AFzES8yEMFEEMFEBD9AMFVjwdhEzBTMhItMVMz9ATH3BwSzkoWLltu9me7hZlZnk022uuvRM80SA384cP6oAnInWBOoCTgdqCPkNNAN/98JSNoCsEfywG2lsYA5AUnrAF4nfa9Inhg5uGAmAZJWAby3Ol+QPHexMYCjBUhaAfBRAvmGQ5QASUsAvkohHyVA0iKA75LIBwuQtADgp0X+xTCyZgjJ0TTwzBGStAzg09w5EZDkVK69AiStAXhLxMFVJlqApF0AD66uCcFRAiRtTJ03cq5zH6J/5hkIKZLzmyogp/vBeyA3yb7+f3eEJKkg509JXkZt4oIEHJK87TKzc4QKEbBNcmw6A5Ke5zxC7eU5YsDizH6IJTV/cWctszZJPoUYmFVAB/kdko8h5LPugQ7y+yTvQ8lnE9BB/ojkTQz5bAKaxpKuARxPCPdelaZbKNYJy/eS7gCMSTZv05P1EJsYt0BVQAoXPTVqAh73UmBrAilc9NSoCXjcS4GtCaRw0VNj8An8AqTHZDFDvpKtAAAAAElFTkSuQmCC);
|
||||
background-size:100%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
.down{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
line-height: 80rpx;
|
||||
font-size: 30rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.popWrap{
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 10rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.title1{
|
||||
height: 100rpx;
|
||||
width: 100%;
|
||||
line-height: 100rpx;
|
||||
text-align: center;
|
||||
font-size: 33rpx;
|
||||
color: #333;
|
||||
}
|
||||
.userWrap{
|
||||
height: 100%;
|
||||
width: 95%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.userWrap :last-child{
|
||||
border-bottom: none;
|
||||
}
|
||||
.userItem{
|
||||
height: 160rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border-bottom: 1rpx solid #f8f8f8;
|
||||
}
|
||||
.msg1{
|
||||
height: 160rpx;
|
||||
width: 500rpx;
|
||||
}
|
||||
.up1{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center
|
||||
}
|
||||
.name1{
|
||||
font-size: 33rpx;
|
||||
height: 80rpx;
|
||||
color: #333;
|
||||
line-height: 80rpx;
|
||||
}
|
||||
.guanxi1{
|
||||
height: 60rpx;
|
||||
width: 120rpx;
|
||||
margin-left: 20rpx;
|
||||
background: rgba(228,240,255);
|
||||
border-radius: 30rpx;
|
||||
text-align: center;
|
||||
line-height: 80rpx;
|
||||
color: rgba(0,110,255);
|
||||
font-size: 32rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.down1{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
font-size: 33rpx;
|
||||
color: rgb(158, 154, 154);
|
||||
line-height: 80rpx;
|
||||
}
|
||||
.icon1{
|
||||
color: rgb(180, 179, 179);
|
||||
padding-right:15rpx ;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user