init version kelfy-mini for new gitea
This commit is contained in:
637
pages/record/record.js
Normal file
637
pages/record/record.js
Normal file
@@ -0,0 +1,637 @@
|
||||
// pages/record/record.js
|
||||
var app = getApp()
|
||||
let common = require('../../config/common.js')
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
list: [],
|
||||
yyList: [],
|
||||
jfList: [],
|
||||
czList: [],
|
||||
id: '', //1预约,2缴费,3充值
|
||||
title: '',
|
||||
show: false,
|
||||
show2: false,
|
||||
name: '',
|
||||
painId: '',
|
||||
relate: '',
|
||||
card: '', //sfz
|
||||
cardNum: '', //jzk
|
||||
cardType: '',
|
||||
ksrq: '',
|
||||
jsrq: '',
|
||||
date1: '', //弹框开始日期
|
||||
date2: "", //弹框结束日期
|
||||
date3: "", //按钮显示开始日期
|
||||
date4: "", //按钮显示结束日期
|
||||
agoStr: '',
|
||||
todayStr: '',
|
||||
isSel: "0",
|
||||
minDate: new Date(2010, 0, 1).getTime(),
|
||||
maxDate: new Date().getTime(),
|
||||
currentDate: "",
|
||||
loadingHidden: true,
|
||||
flag: '',
|
||||
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,
|
||||
agoStr: agoStr,
|
||||
todayStr: todayStr,
|
||||
})
|
||||
if (this.data.id == 2) {
|
||||
this.getJfList(agoStr, todayStr)
|
||||
} else if (this.data.id == 3) {
|
||||
this.getCzList(agoStr, todayStr)
|
||||
}
|
||||
},
|
||||
rqSel(e) {
|
||||
console.log(e.currentTarget.dataset.item.id)
|
||||
this.InitDays()
|
||||
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,
|
||||
})
|
||||
},
|
||||
getPerList() {
|
||||
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
|
||||
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
|
||||
})
|
||||
}
|
||||
})
|
||||
if (res.data.length > 0) {
|
||||
let id = this.data.id
|
||||
if (id == 1) {
|
||||
this.getYyList()
|
||||
} else if (id == 2) {
|
||||
this.getJfList()
|
||||
} else {
|
||||
this.getCzList()
|
||||
}
|
||||
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',
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
getYyList() {
|
||||
wx.request({
|
||||
url: 'https://fy.btlsoln.com:8443/his/getOrder?patid',
|
||||
method: "GET",
|
||||
data: {
|
||||
patid: this.data.painId
|
||||
// patid:wx.getStorageSync('painId')
|
||||
},
|
||||
header: {
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
success: (res) => {
|
||||
console.log(res, "预约")
|
||||
let that = this
|
||||
setTimeout(function () {
|
||||
let data = res.data.list
|
||||
data.map((item, index) => {
|
||||
let num = item.yyrq
|
||||
var year = String(num).substr(0, 4)
|
||||
var month = String(num).substr(4, 5).substr(0, 2)
|
||||
var date = String(num).substr(6, 7)
|
||||
item.yyrq = year + '年' + month + '月' + date + '日'
|
||||
return data
|
||||
})
|
||||
if (data == '') {
|
||||
that.setData({
|
||||
flag: false
|
||||
})
|
||||
} else {
|
||||
that.setData({
|
||||
flag: true,
|
||||
yyList: data,
|
||||
})
|
||||
}
|
||||
that.setData({
|
||||
loadingHidden: true
|
||||
});
|
||||
}, 500);
|
||||
}
|
||||
})
|
||||
},
|
||||
getJfList(ksrq, jsrq) {
|
||||
wx.request({
|
||||
url: 'https://fy.btlsoln.com:8443/his/getPayList?patid&ksrq&jsrq&czyh=00',
|
||||
method: "GET",
|
||||
data: {
|
||||
patid: this.data.painId,
|
||||
ksrq: ksrq,
|
||||
jsrq: jsrq
|
||||
},
|
||||
header: {
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
success: (res) => {
|
||||
let that = this
|
||||
setTimeout(function () {
|
||||
if (res.data.list == '') {
|
||||
that.setData({
|
||||
flag: false
|
||||
})
|
||||
} else {
|
||||
that.setData({
|
||||
jfList: res.data.list,
|
||||
flag: true
|
||||
})
|
||||
}
|
||||
that.setData({
|
||||
loadingHidden: true
|
||||
});
|
||||
}, 500);
|
||||
console.log(res, "缴费")
|
||||
}
|
||||
})
|
||||
},
|
||||
getCzList(ksrq, jsrq) {
|
||||
console.log(this.data.cardNum, "cardNumcardNumcardNum")
|
||||
wx.request({
|
||||
url: 'https://fy.btlsoln.com:8443/his/getRecharge?cardno&kssj&jssj&cardtype',
|
||||
method: "GET",
|
||||
data: {
|
||||
cardno: this.data.cardNum,
|
||||
kssj: ksrq,
|
||||
jssj: jsrq,
|
||||
cardtype: this.data.cardType
|
||||
},
|
||||
header: {
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
success: (res) => {
|
||||
let that = this
|
||||
setTimeout(function () {
|
||||
let data = res.data.list
|
||||
data.map((item, index) => {
|
||||
let num = item.lrrq
|
||||
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 h = String(num).substr(8, 9).substr(0, 2)
|
||||
var m = String(num).substr(10, 11).substr(0, 2)
|
||||
var s = String(num).substr(12, 13).substr(0, 2)
|
||||
item.lrrq = year + '/' + month + '/' + date + " " + h + ":" + m + ":" + s
|
||||
return data
|
||||
})
|
||||
if (data == '') {
|
||||
that.setData({
|
||||
flag: false
|
||||
})
|
||||
} else {
|
||||
that.setData({
|
||||
czList: data,
|
||||
flag: true
|
||||
})
|
||||
}
|
||||
console.log(data, "充值")
|
||||
that.setData({
|
||||
loadingHidden: true
|
||||
});
|
||||
}, 500);
|
||||
}
|
||||
})
|
||||
},
|
||||
dateSel() {
|
||||
this.setData({
|
||||
show2: true
|
||||
})
|
||||
},
|
||||
onClose2() {
|
||||
this.setData({
|
||||
show2: false
|
||||
})
|
||||
},
|
||||
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
|
||||
})
|
||||
},
|
||||
onConfirm2() {
|
||||
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({
|
||||
show2: false,
|
||||
date3: this.data.date1,
|
||||
date4: this.data.date2,
|
||||
curId: '',
|
||||
loadingHidden: false,
|
||||
});
|
||||
if (this.data.id == 2) {
|
||||
this.getJfList(ksrq, jsrq)
|
||||
} else if (this.data.id == 3) {
|
||||
this.getCzList(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
|
||||
})
|
||||
}
|
||||
},
|
||||
naviToMsg(e) {
|
||||
console.log(e, "挂号详情")
|
||||
let ksmc = e.currentTarget.dataset.item.yyksmc
|
||||
let date = e.currentTarget.dataset.item.sjd
|
||||
let time = e.currentTarget.dataset.item.yyrq
|
||||
let yylsh = e.currentTarget.dataset.item.yylsh
|
||||
let jlzt = e.currentTarget.dataset.item.jlzt
|
||||
let name = this.data.name
|
||||
let card = this.data.card
|
||||
wx.navigateTo({
|
||||
url: '/pages/ghMsg/ghMsg?ksmc=' + ksmc + '&date=' + date + '&time=' + time + '&name=' + name + '&card=' + card + '&yylsh=' + yylsh + '&jlzt=' + jlzt,
|
||||
})
|
||||
},
|
||||
showPop() {
|
||||
this.setData({
|
||||
show: true
|
||||
});
|
||||
},
|
||||
onClose() {
|
||||
this.setData({
|
||||
show: false
|
||||
});
|
||||
},
|
||||
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,
|
||||
});
|
||||
let ksrq = this.data.agoStr
|
||||
let jsrq = this.data.todayStr
|
||||
console.log(ksrq, jsrq, "11111111111")
|
||||
if (this.data.id == 1) {
|
||||
this.getYyList()
|
||||
} else if (this.data.id == 2) {
|
||||
this.getJfList(ksrq, jsrq)
|
||||
} else {
|
||||
this.getCzList(ksrq, jsrq)
|
||||
}
|
||||
},
|
||||
naviToJf(e) {
|
||||
console.log(e.currentTarget.dataset.item)
|
||||
let sjh = e.currentTarget.dataset.item.sjh
|
||||
let sflb = e.currentTarget.dataset.item.sflb
|
||||
let ksmc = e.currentTarget.dataset.item.ksmc
|
||||
let name = this.data.name
|
||||
let card = this.data.cardNum
|
||||
wx.navigateTo({
|
||||
url: '/pages/jfMsg/jfMsg?sjh=' + sjh + '&name=' + name + '&card=' + card + '&sflb=' + sflb + '&ksmc=' + ksmc,
|
||||
})
|
||||
},
|
||||
naviToCzMsg(e) {
|
||||
console.log(e.currentTarget.dataset.item)
|
||||
let hzxm = e.currentTarget.dataset.item.hzxm
|
||||
let sex = e.currentTarget.dataset.item.sex
|
||||
let cardtype = e.currentTarget.dataset.item.cardtype
|
||||
let cardno = e.currentTarget.dataset.item.cardno
|
||||
let jyje = e.currentTarget.dataset.item.jyje
|
||||
let lsh = e.currentTarget.dataset.item.lsh
|
||||
let fph = e.currentTarget.dataset.item.fph
|
||||
let lrrq = e.currentTarget.dataset.item.lrrq
|
||||
wx.navigateTo({
|
||||
url: '/pages/czMsg/czMsg?hzxm=' + hzxm + '&sex=' + sex + '&cardtype=' + cardtype + '&cardno=' + cardno + '&jyje=' + jyje +
|
||||
'&lsh=' + lsh + '&fph=' + fph + '&lrrq=' + lrrq,
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
if(app.globalData.openId == ""||app.globalData.openId==null){
|
||||
common.checkGlobalOpenId().then(res=>{
|
||||
console.log(res)
|
||||
app.globalData.openId = res
|
||||
this.getJfList()
|
||||
this.InitDays()
|
||||
this.getPerList()
|
||||
this.setData({
|
||||
// name:app.globalData.name,
|
||||
// painId:app.globalData.painId,
|
||||
// type:app.globalData.relate,
|
||||
// card:app.globalData.sfId,
|
||||
// cardNum:app.globalData.cardNum,
|
||||
// cardType:app.globalData.cardType,
|
||||
loadingHidden: false,
|
||||
})
|
||||
let id = options.id
|
||||
this.setData({
|
||||
id: id,
|
||||
})
|
||||
if (id == 1) {
|
||||
// this.getYyList()
|
||||
this.setData({
|
||||
title: "预约就诊记录"
|
||||
})
|
||||
} else if (id == 2) {
|
||||
// this.getJfList()
|
||||
this.setData({
|
||||
title: "门诊缴费记录"
|
||||
})
|
||||
} else {
|
||||
// this.getCzList()
|
||||
this.setData({
|
||||
title: "门诊充值记录"
|
||||
})
|
||||
}
|
||||
wx.setNavigationBarTitle({
|
||||
title: this.data.title
|
||||
})
|
||||
},
|
||||
err=>{
|
||||
//初始化失败,弹框提示
|
||||
})
|
||||
}else{
|
||||
this.getJfList()
|
||||
this.InitDays()
|
||||
this.getPerList()
|
||||
this.setData({
|
||||
// name:app.globalData.name,
|
||||
// painId:app.globalData.painId,
|
||||
// type:app.globalData.relate,
|
||||
// card:app.globalData.sfId,
|
||||
// cardNum:app.globalData.cardNum,
|
||||
// cardType:app.globalData.cardType,
|
||||
loadingHidden: false,
|
||||
})
|
||||
let id = options.id
|
||||
this.setData({
|
||||
id: id,
|
||||
})
|
||||
if (id == 1) {
|
||||
// this.getYyList()
|
||||
this.setData({
|
||||
title: "预约就诊记录"
|
||||
})
|
||||
} else if (id == 2) {
|
||||
// this.getJfList()
|
||||
this.setData({
|
||||
title: "门诊缴费记录"
|
||||
})
|
||||
} else {
|
||||
// this.getCzList()
|
||||
this.setData({
|
||||
title: "门诊充值记录"
|
||||
})
|
||||
}
|
||||
wx.setNavigationBarTitle({
|
||||
title: this.data.title
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
console.log()
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
let id = this.data.id
|
||||
console.log(id, "ididididi")
|
||||
if (id == 1) {
|
||||
this.getYyList()
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
||||
6
pages/record/record.json
Normal file
6
pages/record/record.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"van-popup": "@vant/weapp/popup/index",
|
||||
"van-datetime-picker": "@vant/weapp/datetime-picker/index"
|
||||
}
|
||||
}
|
||||
150
pages/record/record.wxml
Normal file
150
pages/record/record.wxml
Normal file
@@ -0,0 +1,150 @@
|
||||
<!--pages/record/record.wxml-->
|
||||
<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>
|
||||
<view class="btnWrap1" wx:if="{{id == 1}}">
|
||||
<view class="btn11">近一年</view>
|
||||
</view>
|
||||
<view class="btnWrap" wx:else="{{id == 2 || id == 3}}">
|
||||
<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="{{id == 1 && flag == true}}" class="item2" wx:for="{{yyList}}" wx:key="item" data-item="{{item}}" bindtap="naviToMsg">
|
||||
<view class="titleMsg">
|
||||
<view>{{item.yyksmc}}门诊</view>
|
||||
<view class="type" wx:if="{{item.jlzt == 0}}">预约成功</view>
|
||||
<view class="type1" wx:elif="{{item.jlzt == 3}}">已取消</view>
|
||||
</view>
|
||||
<view class="yymsg">
|
||||
<view class="msgItem">
|
||||
<view class="c1">就诊科室</view>
|
||||
<view class="c2">{{item.yyksmc}}</view>
|
||||
</view>
|
||||
<view class="msgItem">
|
||||
<view class="c1">预约日期</view>
|
||||
<view class="c2">{{item.yyrq}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:if="{{id == 2 && flag == true}}">
|
||||
<view class="item3 h1" wx:for="{{jfList}}" wx:key="item" data-item="{{item}}" bindtap="naviToJf">
|
||||
<view class="titleMsg">
|
||||
<view>{{item.sflb}}</view>
|
||||
<view class="type">{{item.jlzt}}</view>
|
||||
</view>
|
||||
<view class="msgItem1">
|
||||
<view class="msgItem1-left">
|
||||
<view class="jfItem">
|
||||
<view class="c1">科室名称</view>
|
||||
<view class="c2">{{item.ksmc}}</view>
|
||||
</view>
|
||||
<view class="jfItem">
|
||||
<view class="c1">病人类型</view>
|
||||
<view class="c2">{{item.brlx}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="msgItem1-right">¥{{item.fyze}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:if="{{id == 3 && flag == true}}">
|
||||
<view class="item3 h2" wx:for="{{czList}}" wx:key="item" data-item="{{item}}" bindtap="naviToCzMsg">
|
||||
<view class="msgItem1">
|
||||
<view class="msgItem1-left">
|
||||
<view class="jfItem">
|
||||
<view class="c1">交易类型</view>
|
||||
<view class="c2" wx:if="{{item.czlx == 0}}">预交金收</view>
|
||||
<view class="c2" wx:elif="{{item.czlx == 1}}">预交金红冲</view>
|
||||
<view class="c2" wx:elif="{{item.czlx == 2}}">预交金退款</view>
|
||||
<view class="c2" wx:elif="{{item.czlx == 3}}">扣卡</view>
|
||||
<view class="c2" wx:elif="{{item.czlx == 4}}">扣卡取消</view>
|
||||
</view>
|
||||
<view class="jfItem">
|
||||
<view class="c1">交易日期</view>
|
||||
<view class="c2">{{item.lrrq}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="msgItem1-right1">{{item.jyje}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zw" wx:elif="{{id == 1&&flag == false}}">暂无数据</view>
|
||||
<view class="zw" wx:elif="{{id == 2&&flag == false}}">暂无数据</view>
|
||||
<view class="zw" wx:elif="{{id == 3&&flag == false}}">暂无数据</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>
|
||||
<van-popup
|
||||
show="{{ show2 }}"
|
||||
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="onConfirm2"
|
||||
bind:cancel="onClose2"
|
||||
/>
|
||||
</van-popup>
|
||||
</view>
|
||||
396
pages/record/record.wxss
Normal file
396
pages/record/record.wxss
Normal file
@@ -0,0 +1,396 @@
|
||||
/* pages/record/record.wxss */
|
||||
.main{
|
||||
margin: 30rpx 0;
|
||||
width: 750rpx;
|
||||
}
|
||||
.content{
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
.msg{
|
||||
flex: 1;
|
||||
height: 70rpx;
|
||||
line-height: 80rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.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);
|
||||
}
|
||||
.mr{
|
||||
font-size: 30rpx;
|
||||
color: #666;
|
||||
}
|
||||
.down{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
line-height: 80rpx;
|
||||
font-size: 30rpx;
|
||||
color: #666;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
.btnWrap{
|
||||
height: 160rpx;
|
||||
width: 100%;
|
||||
}
|
||||
.btnWrap1{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.btn11{
|
||||
height: 60rpx;
|
||||
width: 160rpx;
|
||||
border-radius: 30rpx;
|
||||
text-align: center;
|
||||
line-height: 60rpx;
|
||||
font-size: 32rpx;
|
||||
color: #fff;
|
||||
background: rgba(0,110,255);
|
||||
}
|
||||
.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%;
|
||||
}
|
||||
.item2{
|
||||
height: 250rpx;
|
||||
width: 100%;
|
||||
border-radius: 5rpx;
|
||||
margin: 40rpx auto;
|
||||
box-shadow:0px 0px 15rpx #e2e2e2;
|
||||
padding:0 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.item3{
|
||||
width: 100%;
|
||||
border-radius: 5rpx;
|
||||
margin: 40rpx auto;
|
||||
box-shadow:0px 0px 15rpx #e2e2e2;
|
||||
padding:0 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.h1{
|
||||
height: 250rpx;
|
||||
}
|
||||
.h2{
|
||||
height: 150rpx;
|
||||
}
|
||||
.msgItem1{
|
||||
height: 150rpx;
|
||||
width: 100%;
|
||||
margin: 10rpx auto;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
}
|
||||
.msgItem1-left{
|
||||
height: 100%;
|
||||
width: 75%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
}
|
||||
.jfItem{
|
||||
height:60rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.msgItem1-right{
|
||||
height: 100%;
|
||||
width: 25%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: rgba(244,99,99);
|
||||
font-size: 35rpx;
|
||||
}
|
||||
.msgItem1-right1{
|
||||
height: 100%;
|
||||
width: 25%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: rgba(245,154,35);
|
||||
font-size: 35rpx;
|
||||
}
|
||||
|
||||
.titleMsg{
|
||||
height: 80rpx;
|
||||
width: 100%;
|
||||
font-size: 33rpx;
|
||||
color: #333;
|
||||
border-bottom: 2rpx solid #f8f8f8;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.type{
|
||||
font-size: 30rpx;
|
||||
color: rgba(52,120,247);
|
||||
}
|
||||
.type1{
|
||||
font-size: 30rpx;
|
||||
color: #999;
|
||||
}
|
||||
.yymsg{
|
||||
height: 120rpx;
|
||||
width: 100%;
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
.msgItem{
|
||||
height: 60rpx;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
/* justify-content: space-between; */
|
||||
align-items: center
|
||||
}
|
||||
|
||||
.c1{
|
||||
height: 60rpx;
|
||||
width: 120rpx;
|
||||
line-height: 60rpx;
|
||||
font-size: 30rpx;
|
||||
color: #666;
|
||||
text-align-last:justify;
|
||||
text-align:justify;
|
||||
text-justify:distribute-all-lines;
|
||||
}
|
||||
.c2{
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
margin-left: 30rpx;
|
||||
}
|
||||
|
||||
.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 ;
|
||||
}
|
||||
.zw{
|
||||
height: 250rpx;
|
||||
width: 100%;
|
||||
border-radius: 5rpx;
|
||||
margin: 40rpx auto;
|
||||
box-shadow:0px 0px 15rpx #e2e2e2;
|
||||
padding:0 30rpx;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 33rpx;
|
||||
color: #666;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
Reference in New Issue
Block a user