|
|
|
|
@ -17,6 +17,7 @@ const $store = useStore();
|
|
|
|
|
let topicList = ref([]); // 题目列表
|
|
|
|
|
let topicIndex = ref(0); // 题目索引
|
|
|
|
|
|
|
|
|
|
let question_count=ref(0);//题目总数
|
|
|
|
|
|
|
|
|
|
const tabPatients = () => {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
@ -28,10 +29,12 @@ const getmyddcSelect = async () => {
|
|
|
|
|
uni.showLoading();
|
|
|
|
|
const response = await $api("QuestionGetList", {
|
|
|
|
|
hospital_id: $store.save.hospital,
|
|
|
|
|
person:$store.user,
|
|
|
|
|
q_type: 2,
|
|
|
|
|
}); //目前请求的套餐 头的接口
|
|
|
|
|
$response(response, () => {
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
question_count.value=response.data.count
|
|
|
|
|
topicList.value = response.data.list.map((val) => {
|
|
|
|
|
let answer = val.type != 1 ? [] : ""
|
|
|
|
|
let content = val.content
|
|
|
|
|
@ -46,6 +49,18 @@ const getmyddcSelect = async () => {
|
|
|
|
|
content = ''
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(val.question=='请问您的性别'){
|
|
|
|
|
if($store.user.sex==1){
|
|
|
|
|
answer=['男性']
|
|
|
|
|
}
|
|
|
|
|
if($store.user.sex==2){
|
|
|
|
|
answer=['女性']
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if(val.question.includes('女性') && $store.user.sex==1){
|
|
|
|
|
answer=['不涉及']
|
|
|
|
|
}
|
|
|
|
|
return {
|
|
|
|
|
...val,
|
|
|
|
|
content: content,
|
|
|
|
|
@ -297,11 +312,11 @@ onShow(() => {
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="text-#0E0E0E mt-10rpx text-26rpx px-80rpx box-border text-right">
|
|
|
|
|
共 <text class="text-#239ea3">{{ topicList.length }}</text> 题
|
|
|
|
|
共 <text class="text-#239ea3">{{ question_count }}</text> 题
|
|
|
|
|
</view>
|
|
|
|
|
<view class="px-30rpx box-border mt-40rpx" v-if="topicList.length">
|
|
|
|
|
<view
|
|
|
|
|
v-for="(i,topicIndex) in topicList" :key="topicIndex"
|
|
|
|
|
v-for="(i,topicIndex) in topicList" :key="topicIndex" v-show="i.show"
|
|
|
|
|
class="bg-#fff mb-4 shadow-[0rpx_0rpx_10rpx_0rpx_rgba(0,0,0,0.04)] px-45rpx py40rpx box-border rounded-15rpx"
|
|
|
|
|
>
|
|
|
|
|
<view class="text-#000000 text-30rpx"
|
|
|
|
|
|