12.6 sickdetail

This commit is contained in:
zoujiandong
2023-12-06 13:05:44 +08:00
parent a92f1621b1
commit fcd9d6ccad
26 changed files with 942 additions and 133 deletions
+20 -6
View File
@@ -14,6 +14,7 @@ Page({
message:'',
page:1,
currentId:'',
showRadio:true,
isLock:false,
per_page:10,
img_host:'https://oss.prod.applets.igandanyiyuan.com/applet/patient/static',
@@ -48,10 +49,11 @@ Page({
title: '删除成功',
icon:'none'
})
})
this.handleRefresher();
});
},
onChange(event) {
this.setData({
radio: event.detail,
});
@@ -108,10 +110,10 @@ Page({
url: '/pages/memberDetail/memberDetail',
})
}),
goMember:throttle(function(event){
let id=event.currentTarget.dataset.id;
goDetail:throttle(function(event){
let {id,index}=event.currentTarget.dataset;
app.method.navigateTo({
url: '/pages/memberDetail/memberDetail?family_id='+id,
url: '/pages/sickDetail/sickDetail?pathography_id='+id+"&index="+index,
})
}),
/**
@@ -121,6 +123,17 @@ Page({
this.setData({
family_id:options.family_id
})
if(options.showRadio){
this.setData({
showRadio:false
})
}else{
this.setData({
showRadio:true
})
}
this.handleFamily();
},
/**
@@ -137,7 +150,8 @@ Page({
this.setData({
img_host:app.hostConfig().imghost
});
this.handleFamily();
},
/**
+2 -2
View File
@@ -7,8 +7,8 @@
<van-swipe-cell right-width="{{ 65 }}" wx:for="{{list}}" wx:key="pathography_id" data-id="{{item.pathography_id}}" async-close bind:close="onDel">
<van-cell-group>
<view class="namecell" >
<van-radio right="leftcon" name="{{item.pathography_id}}" checked-color="#3CC7C0;"></van-radio>
<view class="rightcon">
<van-radio right="leftcon" name="{{item.pathography_id}}" checked-color="#3CC7C0;" wx:if="{{showRadio}}"></van-radio>
<view class="rightcon" bindtap="goDetail" data-id="{{item.pathography_id}}" data-index="{{index+1}}">
<view class="time">{{item.created_at}}</view>
<view class="disease">
<view > {{item.disease_class_name}}</view>