更新 体检进度条 套餐有效期 showArea

main
鹿和sa0ChunLuyu 6 months ago
parent 6a48f7bdeb
commit 93c4bddc5d

@ -82,7 +82,7 @@ class HomeController extends Controller
'button' => [[[ 'button' => [[[
'message' => '', 'message' => '',
'name' => '报告解读预约', 'name' => '报告解读预约',
'jump' => 'XCX/pages/other/entry/index?path=/pages/outpatient/doctor-appointment/index&scene=1002&hospitalAreaId=6&departmentCode=A0030077&subDepartmentCode=4773794195699464904', 'jump' => 'XCX/pages/other/entry/index?path=/pages/outpatient/doctor-appointment/index&scene=1002&showArea=0&hospitalAreaId=6&departmentCode=A0030077&subDepartmentCode=4773794195699464904',
'icon' => '/assets/h5/a_jiedubaogao.png' 'icon' => '/assets/h5/a_jiedubaogao.png'
],[ ],[
'message' => '', 'message' => '',

@ -45,6 +45,19 @@
@click="saveInfo('客服电话')"> </el-button> @click="saveInfo('客服电话')"> </el-button>
</el-col> </el-col>
</el-row> </el-row>
<el-row style="padding:auto 20px;margin: auto 10px ;">
<el-col :span="8">
<el-form-item label="订单有效期">
<el-input-number size="large" v-model="configInfo." placeholder="客服电话"
style=" margin: auto 20px;" />
<span></span>
</el-form-item>
</el-col>
<el-col :span="4">
<el-button type="primary" size="large"
@click="saveInfo('订单有效期')"> </el-button>
</el-col>
</el-row>
<el-row style="padding:auto 20px;margin: auto 10px ;"> <el-row style="padding:auto 20px;margin: auto 10px ;">
<el-col :span="8"> <el-col :span="8">
<el-form-item label="H5价格筛选最大值"> <el-form-item label="H5价格筛选最大值">

@ -78,7 +78,7 @@ import TabBar from "@/common/TabBar.vue";
const tzroutes = (url) => { const tzroutes = (url) => {
if (url == 'bgjd') { if (url == 'bgjd') {
wx.miniProgram.navigateTo({ 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'
}) })
} }
// //

@ -31,7 +31,7 @@
default: "0", default: "0",
}, },
}); });
let tips_popup=ref(null) let tips_popup = ref(null)
let erweima_popup = ref(null) let erweima_popup = ref(null)
const fenzhen_list = ref(false); const fenzhen_list = ref(false);
const check_tip_show = ref(false); const check_tip_show = ref(false);
@ -69,22 +69,25 @@
//uni.hideLoading(); //uni.hideLoading();
$response(response, () => { $response(response, () => {
fenzhen_list.value = response.data; fenzhen_list.value = response.data;
timelineSet(fenzhen_list.value.list)
if (!check_tip_show.value) { if (!check_tip_show.value) {
checkTipShow(response.data.check_tip, response.data.info.tj_number) checkTipShow(response.data.check_tip, response.data.info.tj_number)
return false; if (!!check_tip_show.value) {
return
}
} }
if (fenzhen_active.value !== -1) { if (fenzhen_active.value !== -1) {
getFenzhenInfo(fenzhen_active.value) getFenzhenInfo(fenzhen_active.value)
} }
setTimeout(() => { setTimeout(() => {
if (!!window.location.href.includes('/pages/user/fenzhen/fenzhen')) { 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 == '') { if (erweimaText.value == '') {
getFenzhenList(false) getFenzhenList(false)
} }
} else { } else {
if (Number($props.test) === 1) { if (Number($props.test) === 1) {
if (erweimaText.value == '' ) { if (erweimaText.value == '') {
getFenzhenList(false) getFenzhenList(false)
} }
} }
@ -93,6 +96,28 @@
}, 1000 * 10) }, 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 = () => { const mountedAction = () => {
getFenzhenList(); getFenzhenList();
@ -124,14 +149,14 @@
}); });
}; };
const tipShowClick = () => { const tipShowClick = () => {
getTipContent(); getTipContent();
}; };
const toReport = () => { const toReport = () => {
wx.miniProgram.navigateTo({ 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'
}) })
} }
@ -184,18 +209,18 @@
erweimaText.value = '' erweimaText.value = ''
console.log(erweimaText.value) console.log(erweimaText.value)
} }
const tipsClose=()=>{ const tipsClose = () => {
tips_popup.value.close(); tips_popup.value.close();
tip_show.value = false; tip_show.value = false;
} }
const processString=(str, substring)=> { const processString = (str, substring) => {
const index = str.indexOf(substring); const index = str.indexOf(substring);
if(index !== -1) { if (index !== -1) {
// //
return str.substring(index + substring.length).trim(); return str.substring(index + substring.length).trim();
} }
return ""; // return ""; //
} }
onShow(() => { onShow(() => {
if (!!config_ref.value) { if (!!config_ref.value) {
mountedAction(); mountedAction();
@ -227,8 +252,8 @@
<view class="tip_dialog_text_wrapper" v-html="tip_content"></view> <view class="tip_dialog_text_wrapper" v-html="tip_content"></view>
</view> </view>
</view> </view>
</uni-popup> </uni-popup>
<view v-if="!!fenzhen_list"> <view v-if="!!fenzhen_list">
<view class="order_info_wrapper relative"> <view class="order_info_wrapper relative">
<w-qrcode v-if="fenzhen_list.info.kahao" @click="erweima_click(fenzhen_list.info.kahao)" <w-qrcode v-if="fenzhen_list.info.kahao" @click="erweima_click(fenzhen_list.info.kahao)"
@ -300,6 +325,12 @@
}}</view> }}</view>
<view class="tip_time_text_wrapper">分钟</view> <view class="tip_time_text_wrapper">分钟</view>
</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_box_wrapper">
<view class="tip_icon_wrapper"> <view class="tip_icon_wrapper">
<image src="@/static/assets/fenzhen/tip@2x.png"></image> <image src="@/static/assets/fenzhen/tip@2x.png"></image>
@ -313,7 +344,7 @@
<view class="time_line_box_wrapper"> <view class="time_line_box_wrapper">
<view v-for="(i, k) in fenzhen_list.list" :key="k"> <view v-for="(i, k) in fenzhen_list.list" :key="k">
<view class="time_line_item_wrapper" :class="[`time_line_item-${i.status}_wrapper`]"> <view class="time_line_item_wrapper" :class="[`time_line_item-${i.status}_wrapper`]">
<view class="time_line_item_time_wrapper" v-if="i.name!='体检结束'"> <view class="time_line_item_time_wrapper" v-if="i.name!='体检结束'">
<view v-if="!!i.time" class="time_line_item_time_value_wrapper">{{ <view v-if="!!i.time" class="time_line_item_time_value_wrapper">{{
i.time i.time
}}</view> }}</view>
@ -323,9 +354,9 @@
<view v-if="!!i.time" class="time_line_item_time_line_wrapper"></view> <view v-if="!!i.time" class="time_line_item_time_line_wrapper"></view>
<view v-if="!i.time" class="time_line_item_time_cover_wrapper"></view> <view v-if="!i.time" class="time_line_item_time_cover_wrapper"></view>
</view> </view>
<view class="time_line_item_content_wrapper" v-if="i.name!=''" > <view class="time_line_item_content_wrapper" v-if="i.name!='体检结束'">
<view class="time_line_item_triangle_wrapper" ></view> <view class="time_line_item_triangle_wrapper"></view>
<view class="time_line_item_flex_wrapper" v-if="i.name!='体检结束'"> <view class="time_line_item_flex_wrapper" v-if="i.name!='体检结束'">
<view class="time_line_item_title_wrapper">{{ k + 1 }}.{{ i.name }}</view> <view class="time_line_item_title_wrapper">{{ k + 1 }}.{{ i.name }}</view>
<view class="time_line_item_box_wrapper">{{ i.desc }}</view> <view class="time_line_item_box_wrapper">{{ i.desc }}</view>
</view> </view>
@ -378,6 +409,20 @@
</view> </view>
</template> </template>
<style scoped> <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 { .item_desc_wrapper {
font-size: 22rpx; font-size: 22rpx;
color: red; color: red;
@ -401,7 +446,7 @@
justify-content: end; justify-content: end;
} }
.report_button_wrapper { .report_button_wrapper {
width: 200rpx; width: 200rpx;
height: 60rpx; height: 60rpx;
background: #239ea3; background: #239ea3;

Loading…
Cancel
Save