|
|
|
|
@ -88,6 +88,7 @@
|
|
|
|
|
buy_info.value.items.splice(key, 1)
|
|
|
|
|
BuyInfo()
|
|
|
|
|
}
|
|
|
|
|
let time_end=false
|
|
|
|
|
const next_text = ref('下一步')
|
|
|
|
|
const nextClick = (next = true, auto = false) => {
|
|
|
|
|
if (user_info.value.dev === 1) {
|
|
|
|
|
@ -97,19 +98,32 @@
|
|
|
|
|
if (tab_active.value !== 1 && next_text.value !== '下一步' && !auto) return
|
|
|
|
|
if (readme_config.value.time <= 0) {
|
|
|
|
|
next_text.value = '下一步'
|
|
|
|
|
if (next) toNext()
|
|
|
|
|
if (time_end==true) toNext()
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
tab_active.value=1
|
|
|
|
|
if (tab_active.value !== 1) {
|
|
|
|
|
uni.$lu.toast("请先阅读体检须知")
|
|
|
|
|
} else {
|
|
|
|
|
start_jishi()
|
|
|
|
|
next_text.value = `${readme_config.value.time}秒`
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const start_jishi=()=>{
|
|
|
|
|
if(next_text.value.indexOf('秒') != -1) return
|
|
|
|
|
var tt1=setInterval(() => {
|
|
|
|
|
readme_config.value.time--
|
|
|
|
|
if (tab_active.value === 1) nextClick(next, true)
|
|
|
|
|
next_text.value = `${readme_config.value.time}秒`
|
|
|
|
|
console.log(readme_config.value.time)
|
|
|
|
|
}, 1000)
|
|
|
|
|
setTimeout(function() {
|
|
|
|
|
clearInterval(tt1);
|
|
|
|
|
console.log('setInterval 已清除');
|
|
|
|
|
next_text.value = '下一步'
|
|
|
|
|
time_end=true
|
|
|
|
|
}, 5000);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const toNext = () => {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: '/pages/buy/check/check'
|
|
|
|
|
|