Commit d3bfcf5f by liuquan

no message

parent 8dfbfbd2
......@@ -383,7 +383,7 @@ Page({
// hstr.push(healthcare[i].id);
// }
// }
let {unionid}=wx.getStorageSync('user');
let {unionid}=wx.getStorageSync('data');
let data = {
payid: that.data.list.payid,
patient_unionid: unionid,
......
......@@ -273,12 +273,18 @@ Page({
//保存
sava: Util.debouce(function () {
var that = this;
that.setData({
sava: false
})
if (that.data.name == "") {
wx.showModal({
title: '提示',
content: '请填写正确的姓名',
showCancel: false,
})
that.setData({
sava: true
})
return;
} else if (that.data.phone == "") {
wx.showModal({
......@@ -358,6 +364,9 @@ Page({
content: '请填写正确的出生年月',
showCancel: false,
})
that.setData({
sava: true
})
return;
} else if (that.data.GMSstate == 1 && that.data.GMSLength == 0) {
wx.showModal({
......@@ -365,6 +374,9 @@ Page({
content: '请填写过敏药物',
showCancel: false,
})
that.setData({
sava: true
})
return;
} else if (that.data.GWBSstate == 1 && that.data.GWBSLength == 0) {
wx.showModal({
......@@ -372,10 +384,13 @@ Page({
content: '请填写过往病史',
showCancel: false,
})
that.setData({
sava: true
})
return;
} else if (that.data.idCard != '') {
if (that.data.idType == 1 || that.data.idCard.substring(0, 2) == '65') {
var allData = wx.getStorageSync("data");
var allData = wx.getStorageSync("user");
var data
if (that.data.id == '') {
data = {
......@@ -615,10 +630,10 @@ Page({
})
}
} else {
var allData = wx.getStorageSync("data");
var {unionid} = wx.getStorageSync("data");
if (that.data.id == '') {
var data = {
unionid: allData.unionid,
unionid:unionid,
name: that.data.name,
card: that.data.idCard,
idType: that.data.idType,
......
......@@ -364,7 +364,7 @@ Page({
// hstr.push(healthcare[i].id);
// }
// }
let {unionid}=wx.getStorageSync('user');
let {unionid}=wx.getStorageSync('data');
let data = {
id: that.data.options.scene,
patient_unionid:unionid,
......
......@@ -351,16 +351,16 @@ Page({
prescriptionPay: function () {
let that = this;
let hstr = new Array();
let healthcare = that.data.list.healthcare;
for (let i = 0; i < healthcare.length; i++) {
if (healthcare[i].checked) {
hstr.push(healthcare[i].id);
}
}
let {unionid}=wx.getStorageSync('user');
// let healthcare = that.data.list.healthcare;
// for (let i = 0; i < healthcare.length; i++) {
// if (healthcare[i].checked) {
// hstr.push(healthcare[i].id);
// }
// }
let {unionid}=wx.getStorageSync('data');
let data = {
payid: that.data.list.payid,
patient_unionid: unionid,
patient_unionid:unionid,
modular: that.data.list.modular,
lastid: that.data.item.id,
address: that.data.receiveAddress.id,
......@@ -452,6 +452,17 @@ Page({
isBtnAsh: true
})
return;
default:
wx.hideLoading();
wx.showModal({
title: '提示',
showCancel: false,
content: res.msg,
})
that.setData({
isBtnAsh: true
})
return;
}
})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment