9.17提交
This commit is contained in:
@@ -12,6 +12,7 @@ Page({
|
||||
editId:'',
|
||||
showDraft:true,
|
||||
reason:'',
|
||||
isLogin:false,
|
||||
status_title:'病例状态',
|
||||
casetype_title:'治疗类型',
|
||||
draftTime:'',
|
||||
@@ -470,8 +471,14 @@ getBank(){
|
||||
}
|
||||
let token = wx.getStorageSync(tokenStr);
|
||||
if(token){
|
||||
this.setData({
|
||||
isLogin:true
|
||||
})
|
||||
return true
|
||||
}else {
|
||||
this.setData({
|
||||
isLogin:false
|
||||
})
|
||||
return false
|
||||
}
|
||||
},
|
||||
@@ -481,9 +488,8 @@ getBank(){
|
||||
fields: [,"active"],
|
||||
actions: ["updateActive"],
|
||||
});
|
||||
if(this.isHasToken()){
|
||||
this.getAuthStatus();
|
||||
}
|
||||
this.isHasToken()
|
||||
this.getAuthStatus();
|
||||
|
||||
},
|
||||
onUnload() {
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
<image src="{{img_host+'/noCase.png'}}" class="nocase" />
|
||||
<view class="nodatatip">暂无病例,<text class="link" bind:tap="goCreate">点击创建病例</text></view>
|
||||
</view>
|
||||
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -112,6 +112,21 @@ Page({
|
||||
url: '/case/pages/bankCard/bankCard',
|
||||
})
|
||||
}),
|
||||
isHasToken(){
|
||||
let tokenStr=''
|
||||
const { envVersion } = wx.getAccountInfoSync().miniProgram;
|
||||
if(envVersion=="develop" || envVersion=="trial"){
|
||||
tokenStr="DEV_CASE_TOKEN"
|
||||
}else{
|
||||
tokenStr="PROD_CASE_TOKEN"
|
||||
}
|
||||
let token = wx.getStorageSync(tokenStr);
|
||||
if(token){
|
||||
return true
|
||||
}else {
|
||||
return false
|
||||
}
|
||||
},
|
||||
goDescription: throttle(function () {
|
||||
app.method.navigateTo({
|
||||
url: '/case/pages/agreement/agreement?type=description',
|
||||
@@ -191,7 +206,8 @@ Page({
|
||||
waitSubmitNum: 0
|
||||
})
|
||||
}
|
||||
this.handleGetInfo();
|
||||
|
||||
this.handleGetInfo();
|
||||
this.updateActive('center')
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user