7.14 提交

This commit is contained in:
zoujiandong
2025-07-14 17:16:32 +08:00
parent 5a56083d0c
commit c542b5e0ed
37 changed files with 1267 additions and 733 deletions
+59 -18
View File
@@ -3,7 +3,7 @@ const app=getApp();
import {throttle} from "../utils/util"
import {storeBindingsBehavior} from "mobx-miniprogram-bindings"
import {store} from '../store/store.js'
import {getExpertSign,getProjectStatus,getBankInfo,getfangxinSite} from "../api/api"
import {getExpertSign,getProjectStatus,getBankInfo,getfangxinSite,limitCount,getDeal} from "../api/api"
Component({
behaviors:[storeBindingsBehavior],
storeBindings:{
@@ -39,6 +39,8 @@ Component({
*/
data: {
isIos:false,
showAuth:false,
authMessage:'',
showAgree:false,
showCancel:true,
//active:'list',
@@ -63,9 +65,31 @@ Component({
* 组件的方法列表
*/
methods: {
handleGetDeal(){
getDeal().then(res=>{
this.setData({
authMessage:res,
showAuth:true
})
})
},
handleGetProjectStatus(){
getProjectStatus().then(res=>{
this.handleGetSign()
limitCount({
type:4
}).then(result=>{
if(result<4){
this.handleGetSign()
}else{
wx.showToast({
title: '每人参与病例征集不得超过20例',
})
}
})
}).catch((error)=>{
if(error.code==30007){
wx.showToast({
@@ -99,19 +123,33 @@ Component({
})
})
},
onConfirmAuth(){
this.setData({
showAuth:false
});
app.method.navigateTo({
url: '/case/pages/bankCard/bankCard',
})
},
onCancleAuth(){
this.setData({
showAuth:false
});
},
getBank(){
getBankInfo().then(res=>{
console.log(res)
if(!res){
wx.showToast({
title: '请先绑定信息',
icon:"none",
duration:3000
this.handleGetDeal();
// wx.showToast({
// title: '请先绑定信息',
// icon:"none",
// duration:3000
})
app.method.navigateTo({
url: '/case/pages/bankCard/bankCard',
})
// })
// app.method.navigateTo({
// url: '/case/pages/bankCard/bankCard',
// })
}else{
this.setData({
showAgree:true
@@ -135,6 +173,9 @@ Component({
}
}else{
// this.setData({
// showAgree:true
// })
this.getBank();
}
@@ -155,10 +196,10 @@ Component({
this.setData({
showAgree:false
});
this.getSite();
// app.method.navigateTo({
// url:'/case/pages/agreement/agreement'
// })
//this.getSite();
app.method.navigateTo({
url:'/case/pages/bankCard/bankCard'
})
},
onCancelAgree(){
this.setData({
@@ -166,10 +207,10 @@ Component({
})
},
goCreate:throttle(function(){
app.method.navigateTo({
url: '/case/pages/createCase/createCase',
})
//this.handleGetProjectStatus()
// app.method.navigateTo({
// url: '/case/pages/createCase/createCase',
// })
this.handleGetProjectStatus()
}),
onChange(event) {
this.updateActive(event.detail)
+2 -1
View File
@@ -22,4 +22,5 @@
</view>
<dialog showDialog="{{showAgree}}" showCancel="{{showCancel}}" bind:confirm="onConfirmAgree" bind:cancel="onCancelAgree" title="项目协议" confirmText="确定" message="创建病例前需签署《人工肝病例登记系统》电子协议书"></dialog>
<dialog showDialog="{{showDraft}}" title="注意" message="您已有一条草稿,是否去编辑?" confirmText="确定" bind:confirm="onConfirmDraft" bind:cancel="onCancelDraft"></dialog>
<dialog showDialog="{{showDraft}}" title="注意" message="您已有一条草稿,是否去编辑?" confirmText="确定" bind:confirm="onConfirmDraft" bind:cancel="onCancelDraft"></dialog>
<dialog showDialog="{{showAuth}}" bind:confirm="onConfirmAuth" bind:cancel="onCancelAuth" confirmText="去认证" showCancel="{{false}}" message="{{authMessage}}"></dialog>