Commit 1e7d6644 by liuquan

修改电子处方笺判断

parent 382d0c54
...@@ -877,6 +877,7 @@ Page({ ...@@ -877,6 +877,7 @@ Page({
*/ */
moreService: Util.debouce(function () { moreService: Util.debouce(function () {
var that = this; var that = this;
console.log("getCurrentPages",getCurrentPages())
if (!that.data.t_unionid || !that.data.doctorunitid || !that.data.t_openid) { if (!that.data.t_unionid || !that.data.doctorunitid || !that.data.t_openid) {
return; return;
} }
......
...@@ -24,8 +24,7 @@ Page({ ...@@ -24,8 +24,7 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () { onReady: function () {},
},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
...@@ -33,29 +32,29 @@ Page({ ...@@ -33,29 +32,29 @@ Page({
onShow: function () { onShow: function () {
var that = this; var that = this;
that.login = that.selectComponent("#login"); that.login = that.selectComponent("#login");
that.modal = that.selectComponent("#modal"); that.modal = that.selectComponent("#modal");
that.answer = that.selectComponent("#answer"); that.answer = that.selectComponent("#answer");
wx.login({ wx.login({
success: function (msg) { success: function (msg) {
Service.getOpenId(msg.code).then((res) => { Service.getOpenId(msg.code).then((res) => {
wx.setStorageSync('user', res) wx.setStorageSync('user', res)
return Service.getUserData(res.openid) return Service.getUserData(res.openid)
}).then((res) => { }).then((res) => {
wx.setStorageSync('data', res) wx.setStorageSync('data', res)
}) })
} }
}) })
this.getListUser(); this.getListUser();
}, },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function (res) { onShareAppMessage: function (res) {
return { return {
title: '请完善信息', title: '请完善信息',
path: 'packageA/patientList/patientList', path: 'packageA/patientList/patientList',
} }
},//判断是否是iPhonex }, //判断是否是iPhonex
checkModal() { checkModal() {
let that = this; let that = this;
wx.getSystemInfo({ wx.getSystemInfo({
...@@ -89,8 +88,8 @@ Page({ ...@@ -89,8 +88,8 @@ Page({
showview: true showview: true
}) })
} }
}).catch(err=>{ }).catch(err => {
console.log("userBuyInfoList",err) console.log("userBuyInfoList", err)
}) })
}, },
///新增用户信息 add lq dateTime 2020-03-23 ///新增用户信息 add lq dateTime 2020-03-23
...@@ -99,7 +98,6 @@ Page({ ...@@ -99,7 +98,6 @@ Page({
url: "/packageA/editUser/editUser?btid=''", url: "/packageA/editUser/editUser?btid=''",
}) })
}, },
//修改 //修改
navto: function (e) { navto: function (e) {
console.log(e.currentTarget.dataset.item) console.log(e.currentTarget.dataset.item)
...@@ -107,9 +105,9 @@ Page({ ...@@ -107,9 +105,9 @@ Page({
url: "/packageA/editUser/editUser?item=" + JSON.stringify(e.currentTarget.dataset.item) + "&btid=''", url: "/packageA/editUser/editUser?item=" + JSON.stringify(e.currentTarget.dataset.item) + "&btid=''",
}) })
}, },
//登陆后组件回调方法刷新当前页面 //登陆后组件回调方法刷新当前页面
_refreshEvent() { _refreshEvent() {
console.log("刷新"); console.log("刷新");
this.onShow(); this.onShow();
}, },
}) })
\ No newline at end of file
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
</view> </view>
<view class="hd-title"> <view class="hd-title">
<view>小懂健康互联网医院</view> <view>小懂健康互联网医院</view>
<view>电子处方笺</view> <view>{{list.prescription.length>5?'用药建议':'电子处方笺'}}</view>
</view> </view>
<view class="line1"></view> <view class="line1"></view>
<view class="diagnose"> <view class="diagnose">
......
...@@ -289,7 +289,7 @@ Page({ ...@@ -289,7 +289,7 @@ Page({
wx.hideLoading(); wx.hideLoading();
} else { } else {
let t_unionid = that.data.t_userInfo.unionid; let t_unionid = that.data.t_userInfo.unionid;
wx.navigateTo({ wx.reLaunch({
url: '/packageA/chat/chat?t_unionid=' + t_unionid + '&orderId=' + conductRes.data+'&groupID='+conductRes.chat_id, url: '/packageA/chat/chat?t_unionid=' + t_unionid + '&orderId=' + conductRes.data+'&groupID='+conductRes.chat_id,
}) })
wx.hideLoading(); wx.hideLoading();
......
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