|
|
|
|
@ -69,16 +69,19 @@
|
|
|
|
|
//uni.hideLoading();
|
|
|
|
|
$response(response, () => {
|
|
|
|
|
fenzhen_list.value = response.data;
|
|
|
|
|
timelineSet(fenzhen_list.value.list)
|
|
|
|
|
if (!check_tip_show.value) {
|
|
|
|
|
checkTipShow(response.data.check_tip, response.data.info.tj_number)
|
|
|
|
|
return false;
|
|
|
|
|
if (!!check_tip_show.value) {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (fenzhen_active.value !== -1) {
|
|
|
|
|
getFenzhenInfo(fenzhen_active.value)
|
|
|
|
|
}
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
if (!!window.location.href.includes('/pages/user/fenzhen/fenzhen')) {
|
|
|
|
|
if (!window.location.href.includes('192.168.31.84:5173')) {
|
|
|
|
|
if (!window.location.href.includes('192.168.1.118:5173')) {
|
|
|
|
|
if (erweimaText.value == '') {
|
|
|
|
|
getFenzhenList(false)
|
|
|
|
|
}
|
|
|
|
|
@ -93,6 +96,28 @@
|
|
|
|
|
}, 1000 * 10)
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
const timeline_max = ref(0)
|
|
|
|
|
const timeline_now = ref(0)
|
|
|
|
|
const timeline_step = ref(0)
|
|
|
|
|
const timelineSet = (list) => {
|
|
|
|
|
let maxcount = 0
|
|
|
|
|
let nowcount = 0
|
|
|
|
|
for (let i in list) {
|
|
|
|
|
if (!!list[i]['time']) {
|
|
|
|
|
maxcount++
|
|
|
|
|
if (Number(list[i]['status']) === 4) {
|
|
|
|
|
nowcount++
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
timeline_max.value = maxcount
|
|
|
|
|
timeline_now.value = nowcount
|
|
|
|
|
if (!!maxcount && !!nowcount) {
|
|
|
|
|
timeline_step.value = (nowcount / maxcount) * 100
|
|
|
|
|
} else {
|
|
|
|
|
timeline_step.value = 0
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const mountedAction = () => {
|
|
|
|
|
getFenzhenList();
|
|
|
|
|
@ -131,7 +156,7 @@
|
|
|
|
|
|
|
|
|
|
const toReport = () => {
|
|
|
|
|
wx.miniProgram.navigateTo({
|
|
|
|
|
url: '/pages/other/entry/index?path=/pages/outpatient/doctor-appointment/index&scene=1002&hospitalAreaId=6&departmentCode=A0030077&subDepartmentCode=4773794195699464904'
|
|
|
|
|
url: '/pages/other/entry/index?path=/pages/outpatient/doctor-appointment/index&scene=1002&showArea=0&hospitalAreaId=6&departmentCode=A0030077&subDepartmentCode=4773794195699464904'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -300,6 +325,12 @@
|
|
|
|
|
}}</view>
|
|
|
|
|
<view class="tip_time_text_wrapper">分钟</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="timeline_wrapper">
|
|
|
|
|
<view class="timeline_in" :style="{
|
|
|
|
|
width : `${timeline_step}%`,
|
|
|
|
|
background : `${timeline_step>=100?'#239EA3':'#FF9900'}`,
|
|
|
|
|
}"></view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="tip_box_wrapper">
|
|
|
|
|
<view class="tip_icon_wrapper">
|
|
|
|
|
<image src="@/static/assets/fenzhen/tip@2x.png"></image>
|
|
|
|
|
@ -378,6 +409,20 @@
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
<style scoped>
|
|
|
|
|
.timeline_in {
|
|
|
|
|
height: 20rpx;
|
|
|
|
|
border-radius: 0 5rpx 5rpx 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.timeline_wrapper {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 20rpx;
|
|
|
|
|
background: #cccccc;
|
|
|
|
|
margin: 25rpx auto 0;
|
|
|
|
|
border-radius: 8rpx;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.item_desc_wrapper {
|
|
|
|
|
font-size: 22rpx;
|
|
|
|
|
color: red;
|
|
|
|
|
|