Browse Source

录入病例提示

main
kola-web 3 months ago
parent
commit
0e4a914977
  1. 40
      src/custom-tab-bar/index.ts
  2. 2
      src/custom-tab-bar/index.wxml
  3. BIN
      src/images/icon-clsoe-green.png
  4. 1
      src/module1/pages/setInfo/index.ts
  5. 1
      src/module1/pages/setInfoResult/index.ts
  6. 1
      src/module1/pages/userInfo/index.ts
  7. 1
      src/pages/home/index.ts

40
src/custom-tab-bar/index.ts

@ -50,7 +50,21 @@ Component({
], ],
userInfo: {}, userInfo: {},
}, },
observers: {
userInfo(val) {
if (val.IsSuper === 0) {
this.getCaseTip();
}
},
},
lifetimes: {
attached() {
this.setData({
showEntryCase: false,
notice: false,
});
},
},
/** /**
* *
*/ */
@ -59,6 +73,7 @@ Component({
const { index } = e.currentTarget.dataset; const { index } = e.currentTarget.dataset;
const tab = this.data.tabbar[index]; const tab = this.data.tabbar[index];
if (tab.custom) { if (tab.custom) {
this.handleClsoeCaseTip();
wx.navigateTo({ wx.navigateTo({
url: tab.path, url: tab.path,
}); });
@ -68,5 +83,28 @@ Component({
}); });
} }
}, },
getCaseTip() {
wx.ajax({
method: "GET",
url: "?r=takeda/case/get-case-tip",
data: {},
}).then((res) => {
this.setData({
showEntryCase: res.tipStatus === 2,
});
});
},
handleClsoeCaseTip() {
this.setData({
showEntryCase: false,
});
wx.ajax({
method: "POST",
url: "?r=takeda/case/visit-case-tip",
data: {},
});
},
}, },
}); });
export {};

2
src/custom-tab-bar/index.wxml

@ -11,7 +11,7 @@
邀约合作医生一起讨论哦 邀约合作医生一起讨论哦
</view> </view>
<view class="pt-footer"> <view class="pt-footer">
<view class="cancel">跳过</view> <view class="cancel" catch:tap="handleClsoeCaseTip">跳过</view>
<view class="ok">去录入</view> <view class="ok">去录入</view>
</view> </view>
</view> </view>

BIN
src/images/icon-clsoe-green.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

1
src/module1/pages/setInfo/index.ts

@ -291,6 +291,7 @@ Page({
title: "确认退出登录?", title: "确认退出登录?",
success(res) { success(res) {
if (res.confirm) { if (res.confirm) {
app.globalData.isLogin = 0
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=takeda/account/reg-logout", url: "?r=takeda/account/reg-logout",

1
src/module1/pages/setInfoResult/index.ts

@ -45,6 +45,7 @@ Page({
title: "确认退出登录?", title: "确认退出登录?",
success(res) { success(res) {
if (res.confirm) { if (res.confirm) {
app.globalData.isLogin = 0
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=takeda/account/reg-logout", url: "?r=takeda/account/reg-logout",

1
src/module1/pages/userInfo/index.ts

@ -166,6 +166,7 @@ Page({
title: "确认退出登录?", title: "确认退出登录?",
success(res) { success(res) {
if (res.confirm) { if (res.confirm) {
app.globalData.isLogin = 0
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=takeda/account/reg-logout", url: "?r=takeda/account/reg-logout",

1
src/pages/home/index.ts

@ -30,7 +30,6 @@ Page({
app.getUserInfo(this, (userInfo) => { app.getUserInfo(this, (userInfo) => {
this.setData({ this.setData({
level: userInfo.IsSuper === 1 ? 4 : userInfo.DoctorLevel, level: userInfo.IsSuper === 1 ? 4 : userInfo.DoctorLevel,
// level: 3,
}); });
this.getTabBar().setData({ this.getTabBar().setData({
userInfo, userInfo,

Loading…
Cancel
Save