更新 体检引导 刷新逻辑 优化

main
鹿和sa0ChunLuyu 1 year ago
parent 7803b6d3d3
commit ce5d5feb38

@ -6,7 +6,8 @@
* date2024年9月11日 19:24:50 * date2024年9月11日 19:24:50
*/ */
import { import {
ref ref,
nextTick
} from "vue"; } from "vue";
import { import {
$api, $api,
@ -25,6 +26,10 @@
type: String, type: String,
default: "0", default: "0",
}, },
test: {
type: String,
default: "0",
},
}); });
let erweima_popup = ref(null) let erweima_popup = ref(null)
const fenzhen_list = ref(false); const fenzhen_list = ref(false);
@ -57,16 +62,21 @@
checkTipShow(response.data.check_tip) checkTipShow(response.data.check_tip)
} }
if (fenzhen_active.value !== -1) { if (fenzhen_active.value !== -1) {
fenzhen_info.value = false
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')) {
!window.location.href.includes('192.168.31.84:5173')) { if (!window.location.href.includes('192.168.31.84:5173')) {
if (erweimaText.value == '') { if (erweimaText.value == '') {
getFenzhenList(false) getFenzhenList(false)
} }
} else {
if (Number($props.test) === 1) {
if (erweimaText.value == '') {
getFenzhenList(false)
}
}
}
} }
}, 1000 * 10) }, 1000 * 10)
}); });
@ -144,7 +154,10 @@
}); });
uni.hideLoading(); uni.hideLoading();
$response(response, () => { $response(response, () => {
fenzhen_info.value = false
nextTick(() => {
fenzhen_info.value = response.data; fenzhen_info.value = response.data;
})
}); });
}; };
@ -193,8 +206,8 @@
</view> </view>
<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)" class="absolute top-20rpx right-15rpx b-1 b-dashed b-#000 p-8rpx" <w-qrcode v-if="fenzhen_list.info.kahao" @click="erweima_click(fenzhen_list.info.kahao)"
:options="{ class="absolute top-20rpx right-15rpx b-1 b-dashed b-#000 p-8rpx" :options="{
level: 4, level: 4,
size: 130, size: 130,
code: fenzhen_list.info.kahao, code: fenzhen_list.info.kahao,

Loading…
Cancel
Save