This commit is contained in:
wangweidong 2026-01-30 17:32:40 +08:00
parent a4e24d4993
commit 1252d9b212
13 changed files with 268 additions and 96 deletions

View File

@ -132,7 +132,7 @@ export default {
// clearInterval(this.timerTwo); // clearInterval(this.timerTwo);
// clearInterval(this.timer); // clearInterval(this.timer);
} }
if(flag == this.timeoutDuration){ if(flag >= this.timeoutDuration+2 && this.isDown == false){
clearInterval(this.timerTwo); clearInterval(this.timerTwo);
clearInterval(this.timer); clearInterval(this.timer);
this.$emit('timeend') this.$emit('timeend')

View File

@ -1,24 +1,33 @@
<template> <template>
<view v-if="flag"> <view v-if="flag">
<view class="fixed-card" :style="openleft?{}:{right:`-34vw`}"> <view class="fixed-card" :style="openleft?{}:{right:`-34vw`}">
<view class="btn les" @click="swip(-1)" v-if="plsbuy.length>1" > <view class="cardbg">
<image src="/static/index/newindex/states/cardbg.png" class="caimg"></image>
<view class="left-open" @click="openleft = !openleft">
<image class="open-img" :src="openleft?'/static/index/newindex/states/lesd.png':'/static/index/newindex/states/risd.png'" />
</view>
</view>
<view class="btn les" @click="swip(-1)" v-if="plsbuy.length>1">
<image class="pao-img" :src="`/static/index/newindex/states/ris.png`" <image class="pao-img" :src="`/static/index/newindex/states/ris.png`"
style="transform: rotate(180deg);" /> style="transform: rotate(180deg);" />
</view> </view>
<view class="btn ris" @click="swip(1)"v-if="plsbuy.length>1" > <view class="btn ris" @click="swip(1)" v-if="plsbuy.length>1">
<image class="pao-img" :src="`/static/index/newindex/states/ris.png`" /> <image class="pao-img" :src="`/static/index/newindex/states/ris.png`" />
</view> </view>
<view class="bots" v-if="plsbuy.length>1" > <view class="bots" v-if="plsbuy.length>1">
<view v-for="(v,i) in plsbuy" :key='i' :class="current==i?'dot':''"></view> <view v-for="(v,i) in plsbuy" :key='i' :class="current==i?'dot':''"
:style="v?.chaoshitime?'background:red':''" @click="change({detail:{current:i}})"></view>
</view> </view>
<swiper class="swiper" :circular="true" :indicator-dots="false" easing-function="easeInOutCubic" <swiper class="swiper" :circular="true" :indicator-dots="false" easing-function="easeInOutCubic"
:autoplay="false" :interval="3000" :duration="500" :current="current" @change="change"> :autoplay="false" :interval="3000" :duration="500" :current="current" @change="change">
<swiper-item v-for="(qcobj,i) in plsbuy" :key="i" class="swper"> <swiper-item v-for="(qcobj,i) in plsbuy" :key="i" class="swper">
<view class="fixed-card-left"> <view class="fixed-card-left">
<image class="card-left-img" v-if="qcobj.izPackage=='Y' "src="/static/zlb.png" mode="aspectFill" /> <image class="card-left-img" v-if="qcobj.izPackage=='Y' " src="/static/zlb.png"
<image class="card-left-img" v-if="qcobj.izPackage=='N'" :src="qcobj?.previewFile? serverUrl + qcobj?.previewFile: `/static/index/newindex/wendu/2.png`"
mode="aspectFill" /> mode="aspectFill" />
<view > <image class="card-left-img" v-if="qcobj.izPackage=='N'"
:src="qcobj?.previewFile? serverUrl + qcobj?.previewFile: `/static/index/newindex/wendu/2.png`"
mode="aspectFill" />
<view>
{{qcobj.directiveName}} {{qcobj.directiveName}}
</view> </view>
</view> </view>
@ -29,7 +38,8 @@
<!-- - {{qcobj.endTime?.slice(11, 16) }} --> <!-- - {{qcobj.endTime?.slice(11, 16) }} -->
</view> </view>
<view> <view>
<timeing v-if="current==i&&qcobj?.izStart=='Y'" :initTime="djstinme" :timeoutDuration="Number(qcobj.timeoutDuration)" @timeend="timeend"></timeing> <timeing v-if="current==i&&qcobj?.izStart=='Y'" :initTime="djstinme"
:timeoutDuration="Number(qcobj.timeoutDuration)*60" @timeend="timeend"></timeing>
</view> </view>
</view> </view>
<view class="names"> <view class="names">
@ -59,10 +69,7 @@
</swiper-item> </swiper-item>
</swiper> </swiper>
<view class="left-open" @click="openleft = !openleft">
<image :style="openleft?{}:{transform: `rotate(180deg)`}" class="open-img"
src="/static/index/newindex/leftmenu/openleft.png" />
</view>
</view> </view>
<tanchuang :show="open>0" font="是否结束服务指令?" @back="open = 0" @right="ends()"> </tanchuang> <tanchuang :show="open>0" font="是否结束服务指令?" @back="open = 0" @right="ends()"> </tanchuang>
@ -114,8 +121,10 @@
timeacde() timeacde()
} }
} }
const timeend = () =>{ const timeend = () => {
// //
console.log('倒计时到了')
plsbuy.value.splice(current.value, 1)
firstgetqueryCgdList() firstgetqueryCgdList()
} }
const djstinme = ref(0) const djstinme = ref(0)
@ -129,18 +138,36 @@
console.log(times, '当前时间戳') console.log(times, '当前时间戳')
console.log(Math.round(djs / 1000), '倒计时时间戳') console.log(Math.round(djs / 1000), '倒计时时间戳')
djstinme.value = Math.round(djs / 1000) djstinme.value = Math.round(djs / 1000)
if (djstinme.value < 0) {
plsbuy.value[current.value].chaoshitime = true
}
} }
const plsbuy = ref([]) const plsbuy = ref([])
const firstgetqueryCgdList = () => { const firstgetqueryCgdList = () => {
form.nuId=uni.getStorageSync('nuId');
queryOrderlist(form).then(res => { queryOrderlist(form).then(res => {
plsbuy.value = res.result.records plsbuy.value = res.result.records
if(plsbuy.value.length==0){
flag.value = false;
}
plsbuy.value.forEach((item, i) => { plsbuy.value.forEach((item, i) => {
console.log(item)
if (item.izStart == 'Y'&&flag.value == false) { if (item.izStart == 'Y' && flag.value == false) {
openleft.value = true; openleft.value = true;
flag.value = true; flag.value = true;
current.value = i; current.value = i;
change({detail:{current:current.value}}) if (current.value > plsbuy.value.length - 1) {
current.value += -1
change({ detail: { current: current.value } })
} else {
change({ detail: { current: current.value } })
}
}
let timestampMs = new Date(item.endTime).getTime();
let times = new Date().getTime();
let djs = timestampMs - times;
if (djs < 0) {
item.chaoshitime = true
} }
}) })
// clickLeftMenu(0,res.result.records[0]) // clickLeftMenu(0,res.result.records[0])
@ -208,23 +235,20 @@
<style lang="less" scoped> <style lang="less" scoped>
.left-open { .left-open {
position: absolute; position: absolute;
left: -1.5vw; left: 0.75vw;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
width: 3vw; width: 0.5vw;
height: 5vw; height: 1.5vw;
border: 1rpx solid #B8C4DA;
background-color: #F2F7FD;
z-index: 999; z-index: 999;
border-radius: 3vw;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
transition: all 0.5s ease; transition: all 0.5s ease;
.open-img { .open-img {
width: 3vw; width: 0.5vw;
height: 3vw; height: 1.5vw;
} }
} }
@ -234,17 +258,28 @@
top: 2vh; top: 2vh;
width: 35vw; width: 35vw;
height: 17.5vw; height: 17.5vw;
background-color: rgba(239, 246, 255, 0.95);
border-radius: 1.5vw; border-radius: 1.5vw;
border: 1rpx solid #638DFF;
box-shadow: 0 2rpx 6rpx #A0B9FF;
transition: all 0.5s ease; transition: all 0.5s ease;
z-index: 999; z-index: 999;
background:rgba(239, 246, 255, 0.6);
.cardbg {
width: 36.5vw;
height: 18.5vw;
position: absolute;
top: -0.5vw;
right: -0.5vw;
.caimg{
width: 100%;
height: 100%;
}
}
.bots { .bots {
width: 15vw; width: 15vw;
position: absolute; position: absolute;
height: 30rpx; height: 30rpx;
bottom: 1.6vw; bottom:2vw;
left: 0; left: 0;
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -265,10 +300,10 @@
.btn { .btn {
width: 2.4vw; width: 2.4vw;
height: 2.4vw; height: 2.4vw;
background: #F8F8F8;
border-radius: 50%; border-radius: 50%;
position: absolute; position: absolute;
top:6.4vw; top: 50%;
transform: translateY(-50%);
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
@ -287,10 +322,12 @@
.ris { .ris {
right: 0.5vw; right: 0.5vw;
} }
.swiper{
.swiper {
width: 100%; width: 100%;
height: 100%; height: 100%;
.swper{
.swper {
width: 100%; width: 100%;
height: 100%; height: 100%;
position: relative; position: relative;
@ -304,6 +341,8 @@
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
margin: 0 2vw; margin: 0 2vw;
position: relative;
top: -1vw;
.card-left-img { .card-left-img {
width: 9vw; width: 9vw;

View File

@ -2,8 +2,8 @@
"name" : "护理单元", "name" : "护理单元",
"appid" : "__UNI__FB2D473", "appid" : "__UNI__FB2D473",
"description" : "护理单元", "description" : "护理单元",
"versionName" : "1.0.027", "versionName" : "1.0.028",
"versionCode" : 10027, "versionCode" : 10028,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

View File

@ -279,7 +279,7 @@
<severcard ref="severcards"></severcard> <!-- <severcard ref="severcards"></severcard> -->
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@ -638,7 +638,6 @@
uni.setStorageSync('nuName', data.nuName); uni.setStorageSync('nuName', data.nuName);
uni.setStorageSync('elderId', data.elderInfo ? data.elderInfo?.id : null); uni.setStorageSync('elderId', data.elderInfo ? data.elderInfo?.id : null);
uni.setStorageSync('NUall', data); uni.setStorageSync('NUall', data);
severcards.value.firstgetqueryCgdList()
inits(data.nuId) inits(data.nuId)
hlylhq(data.nuId,data.elderInfo?.id) hlylhq(data.nuId,data.elderInfo?.id)
zlfunc(data.nuId,data.elderInfo?.id) zlfunc(data.nuId,data.elderInfo?.id)

View File

@ -1,6 +1,15 @@
<template> <template>
<view> <view>
<view class="swipeservwe"> <view class="swipeservwe">
<view class="swper" v-if="plsbuy.length==0">
<view class="photo-father">
<image class="big-img" style="width: 550rpx;top:30%;" :src="`/static/index/newindex/wendu/2.png`" mode="aspectFill"/>
<view class="juzhong" style=" filter:grayscale(60%)" >
<donghua :width="`1300rpx`" :height="`900rpx`" :links="blueArray" :playing="true" :loop="true"
:interval="120" />
</view>
</view>
</view>
<view class="btn les" @click="swip(-1)" v-if="plsbuy.length>1"> <view class="btn les" @click="swip(-1)" v-if="plsbuy.length>1">
<image class="pao-img" :src="`/static/index/newindex/states/ris.png`" <image class="pao-img" :src="`/static/index/newindex/states/ris.png`"
style="transform: rotate(180deg);" /> style="transform: rotate(180deg);" />
@ -9,7 +18,7 @@
<image class="pao-img" :src="`/static/index/newindex/states/ris.png`" /> <image class="pao-img" :src="`/static/index/newindex/states/ris.png`" />
</view> </view>
<view class="bots" v-if="plsbuy.length>1"> <view class="bots" v-if="plsbuy.length>1">
<view v-for="(v,i) in plsbuy" :key='i' :class="current==i?'dot':''"></view> <view v-for="(v,i) in plsbuy" :key='i' :class="current==i?'dot':''" :style="v?.chaoshitime?'background:red':''" @click="change({'detail':{'current':i}})"></view>
</view> </view>
<swiper class="swiper" :circular="true" :indicator-dots="false" easing-function="easeInOutCubic" <swiper class="swiper" :circular="true" :indicator-dots="false" easing-function="easeInOutCubic"
:autoplay="autoplay" :interval="3000" :duration="500" :current="current" @change="change"> :autoplay="autoplay" :interval="3000" :duration="500" :current="current" @change="change">
@ -20,9 +29,9 @@
<donghua :width="`1000rpx`" :height="`700rpx`" :links="blueArray" :playing="current==i" <donghua :width="`1000rpx`" :height="`700rpx`" :links="blueArray" :playing="current==i"
:loop="true" :interval="120" /> :loop="true" :interval="120" />
</view> </view>
<view class="timedjs"> <view class="timedjs" v-if="current==i&&indexmessage?.izStart=='Y'" >
<text>服务倒计时</text> <text>服务倒计时</text>
<timeing v-if="current==i&&indexmessage?.izStart=='Y'" :initTime="djstinme" :timeoutDuration="Number(indexmessage.timeoutDuration)" @timeend="timeend"></timeing> <timeing :initTime="djstinme" :timeoutDuration="Number(indexmessage.timeoutDuration)*60" @timeend="timeend"></timeing>
</view> </view>
<view class="weight-time"> <view class="weight-time">
<view> <view>
@ -44,13 +53,15 @@
</view> </view>
<view class="cardbox" v-if="indexmessage.izPackage=='Y'&&indexmessage?.izStart=='Y'||indexmessage.flag"> <view class="cardbox" v-if="indexmessage.izPackage=='Y'&&indexmessage?.izStart=='Y'||indexmessage.flag">
<scroll-view scroll-y="true" class="scrollcard" @touchmove.stop> <scroll-view scroll-y="true" class="scrollcard" @touchmove.stop>
<view class="itemcard" v-for="(v,i) in zlarr" :key='i' :class="v.flag?'act':''" @click="zldex(v)"> <view class="itemcard" v-for="(v,s) in indexmessage.servebao" :class="{'act':v.flag,'last':v.last}" :key='s' @click="zldex(v,indexmessage.servebao,s)">
<image :src="!v.flag?`/static/index/newindex/states/xs.png`:'/static/index/newindex/states/xsz.png'" /> <view class="brcard">
<text>强直屈曲洗手</text> <view class="bgs" v-if="v.last">
<view v-if="i>2">(大体重)</view> <image src="/static/index/newtarget.png" mode=""></image>
<!-- <image :src="fwzldex!=i?v.netImmediateFile:v.netPreviewFileSmall" mode="aspectFill"></image> </view>
<text >{{v.directiveName?.substring(0,4)}}</text> </view>
<view>{{v.directiveName?.substring(4,12)}}</view> --> <image :src="!v.flag? serverUrl + v.immediateFile: serverUrl + v.immediateFileFocus" />
<text>{{v.match[0]}}</text>
<view v-if="v.match[1]" style="position: relative;z-index: 2;">({{v.match[1]}})</view>
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
@ -107,14 +118,14 @@
</view> </view>
<view @click="errmsgclk(1,1,indexmessage)"> <view @click="errmsgclk(1,1,indexmessage)">
<view class="left-ball" <view class="left-ball"
:style="indexmessage?.mp3File!=''?' ':'opacity: 0.4'"> :style="indexmessage?.mp3File!=''&&indexmessage.izPackage!='Y'?' ':'opacity: 0.4'">
<image class="left-menu-img" <image class="left-menu-img"
:src="'/static/index/newindex/leftmenu/left'+1+'.png'" /> :src="'/static/index/newindex/leftmenu/left'+1+'.png'" />
</view> </view>
</view> </view>
<view @click="errmsgclk(2,1,indexmessage)" > <view @click="errmsgclk(2,1,indexmessage)" >
<view class="left-ball" <view class="left-ball"
:style="indexmessage?.mp4File!=''?' ':'opacity: 0.4'"> :style="indexmessage?.mp4File!=''&&indexmessage.izPackage!='Y'?' ':'opacity: 0.4'">
<image class="left-menu-img" <image class="left-menu-img"
:src="'/static/index/newindex/leftmenu/left'+2+'.png'" /> :src="'/static/index/newindex/leftmenu/left'+2+'.png'" />
</view> </view>
@ -141,7 +152,7 @@
</view> </view>
</view> </view>
<view style="margin:1.5vw 0;width:4vw;margin-left: 20rpx;" @click="zhixing(2,indexmessage)"> <view style="margin:1.5vw 0;width:4vw;margin-left: 20rpx;" @click="zhixing(2,indexmessage)">
<view class="white-circle"> <view class="white-circle" :style="indexmessage?.izStart=='Y'?'opacity: 0.4' : ''">
<image class="right-menu-img" :src="'/static/index/newindex/rightmenu/2.png'" /> <image class="right-menu-img" :src="'/static/index/newindex/rightmenu/2.png'" />
<view class="right-menu-name"> <view class="right-menu-name">
协助执行 协助执行
@ -255,10 +266,10 @@
</view> </view>
</view> </view>
<tanchuang :show="open==1" font="是否删除此图片" @back="open = 0" @right="del1()"> </tanchuang> <tanchuang :show="open==1" font="是否删除此图片" @back="open = 0" @right="del1()"> </tanchuang>
<errorshow :show="openerror" :font="errmsg" @close="openerror=false" style="left: 44%;"/>
<severcard ref="severcards" ></severcard>
<severcard ref="severcards" style="display: none;"></severcard>
</view> </view>
</template> </template>
@ -278,8 +289,13 @@
const serverpicUrl = ref(uni.getStorageSync('serverUrl') + '/sys/common/static/') const serverpicUrl = ref(uni.getStorageSync('serverUrl') + '/sys/common/static/')
const current = ref(0) const current = ref(0)
const autoplay = ref(false) const autoplay = ref(false)
const severcards = ref<InstanceType<typeof ChildComponent>>()
const init = (e) => { const init = (e) => {
firstgetqueryCgdList(e) firstgetqueryCgdList(e);
setTimeout(()=>{
console.log(111)
severcards.value.firstgetqueryCgdList()
},120)
} }
defineExpose({ defineExpose({
init init
@ -305,10 +321,14 @@
console.log(timestampMs,'结束时间戳') console.log(timestampMs,'结束时间戳')
console.log(times,'当前时间戳') console.log(times,'当前时间戳')
console.log(Math.round(djs/1000),'倒计时时间戳') console.log(Math.round(djs/1000),'倒计时时间戳')
djstinme.value = Math.round(djs/1000) djstinme.value = Math.round(djs/1000);
if(djstinme.value<0){
plsbuy.value[current.value].chaoshitime = true
}
} }
const timeend = () =>{ const timeend = () =>{
// //
plsbuy.value.splice(current.value,1)
firstgetqueryCgdList(form.nuId) firstgetqueryCgdList(form.nuId)
} }
const swip = (e) => { const swip = (e) => {
@ -337,11 +357,13 @@
const zdxzdex = ref(0) const zdxzdex = ref(0)
const zdxzarr = ref(0) const zdxzarr = ref(0)
const zhixing = (e,indexmessage) => { const zhixing = (e,indexmessage) => {
if (indexmessage.value?.izStart == 'Y' && e == 1) { if (indexmessage?.izStart == 'Y' ) {
uni.showToast({ errmsg.value = (e==1?"服务中不能转单执行!":'服务中不能协助执行!')
title: '服务中不能转单!', openerror.value = true
icon: 'none' return
}) }else{
errmsg.value ='敬请期待~'
openerror.value = true
return return
} }
queryEmpList({ id: uni.getStorageSync('userInfo').id }).then(res => { queryEmpList({ id: uni.getStorageSync('userInfo').id }).then(res => {
@ -446,6 +468,39 @@
} }
}) })
} }
}
function splitString(str) {
let result = [];
let remainingStr = str;
let regex = /([^(]*)[(]([^)]+)[)]/;
while (regex.test(remainingStr)) {
let match = remainingStr.match(regex);
if (match) {
//
if (match[1]?.trim()) {
result.push(match[1].trim());
}
if (match[2]?.trim()) {
result.push(match[2].trim());
}
remainingStr = remainingStr.replace(match[0], '')?.trim();
}
}
if (remainingStr?.trim()) {
result.push(remainingStr?.trim());
}
return result;
}
const clickLeftMenu = (index : any, item : object) => {
queryOrderInfoList({ mainId: item.id }).then(res => {
if (res.result.length > 0) {
res.result.forEach((item,i)=>{
item.flag = false;
item.match = splitString(item.directiveName)
})
plsbuy.value[index].servebao = res.result
}
})
} }
// const indexmessage = ref({}); // const indexmessage = ref({});
const firstgetqueryCgdList = (nuId) => { const firstgetqueryCgdList = (nuId) => {
@ -453,18 +508,27 @@
queryOrderList(form).then(res => { queryOrderList(form).then(res => {
console.log(res.result.records) console.log(res.result.records)
if (res.result.records.length > 0) { if (res.result.records.length > 0) {
res.result.records.forEach(item=>{ res.result.records.forEach((item,l)=>{
item.flag = false item.flag = false ;
item.servebao = [];
let timestampMs = new Date(item.endTime).getTime();
let times = new Date().getTime();
let djs = timestampMs - times;
if(djs<0){
item.chaoshitime = true
}
if(item.izPackage=='Y'){
clickLeftMenu(l,item)
}
}) })
plsbuy.value = res.result.records; plsbuy.value = res.result.records;
change({detail:{current:current.value}}) change({detail:{current:current.value}})
// indexmessage.value = res.result.records[0]
// clickLeftMenu(0,res.result.records[0])
} else { } else {
plsbuy.value = []; plsbuy.value = [];
} }
}) })
} }
const submit = () => { const submit = () => {
let sub = ""; let sub = "";
ilanarr.value.forEach(item => { ilanarr.value.forEach(item => {
@ -584,7 +648,6 @@
}); });
} }
} }
const severcards = ref<InstanceType<typeof ChildComponent>>()
const start = (v) => { const start = (v) => {
if (v.izStart != 'N') { return } if (v.izStart != 'N') { return }
startOrder({ id: v.id }).then(res => { startOrder({ id: v.id }).then(res => {
@ -592,6 +655,7 @@
if (res.success) { if (res.success) {
v.izStart = "Y"; v.izStart = "Y";
severcards.value.firstgetqueryCgdList() severcards.value.firstgetqueryCgdList()
timeacde()
} else { } else {
@ -611,7 +675,7 @@
if (res.success) { if (res.success) {
open.value = 0; open.value = 0;
endobj.value = {}; endobj.value = {};
// severcards.value.firstgetqueryCgdList() severcards.value.firstgetqueryCgdList()
firstgetqueryCgdList(uni.getStorageSync('nuId')) firstgetqueryCgdList(uni.getStorageSync('nuId'))
} else { } else {
@ -622,8 +686,28 @@
const errmsg = ref('') const errmsg = ref('')
const openerror = ref(false); const openerror = ref(false);
const errmsgclk = (e, k, indexmessage) => { const errmsgclk = (e, k, indexmessage) => {
console.log(e, k, indexmessage)
if (k == 1) { if (k == 1) {
if (indexmessage.value?.izStart == 'Y') { if(indexmessage.izPackage=='Y'&&e==0){
if(indexmessage.flag||indexmessage.izStart == 'Y'){
let last = indexmessage.servebao.find(item => item.last === true);
console.log(last)
if(!!last){
errmsg.value = last?.serviceContent==''?'暂无数据':last?.serviceContent
openerror.value = true;
}else{
errmsg.value = indexmessage?.serviceContent
openerror.value = true;
}
}else{
errmsg.value = indexmessage?.serviceContent
openerror.value = true;
}
}
if (indexmessage?.izStart == 'Y'&&indexmessage.izPackage!='Y') {
switch (e) { switch (e) {
case 0: case 0:
if (indexmessage?.serviceContent == '') { return } if (indexmessage?.serviceContent == '') { return }
@ -685,9 +769,33 @@
const fwzlindex = ref(0); const fwzlindex = ref(0);
const fwzldex = ref(-1); const fwzldex = ref(-1);
const fwzlarr = ref(0); const fwzlarr = ref(0);
const zlarr = ref([{ flag: false }, { flag: false }, { flag: false }, { flag: false }, { flag: false }, { flag: false }, { flag: false }, { flag: false }, { flag: false }]); const fwzlbobj = ref({})
const zldex = (e) => { const zldex = (e,f,k) => {
e.flag = !e.flag e.flag = !e.flag
if(e.flag){
e.last = true;
f.forEach((item,i)=>{
if(k!=i){
item.last = false;
}
})
}else{
if(e.last == false){return}
e.last = false;
let arr = []
f.forEach((item,i)=>{
if(item.flag){
arr.push(i)
}
})
if(arr.length==0){
}else{
f[arr[arr.length-1]].last = true;
fwzlbobj.value = f[arr.length-1]
}
}
} }
const base = genPaths( const base = genPaths(
@ -839,17 +947,18 @@
right: 1.5vw; right: 1.5vw;
} }
}
.swiper { .swiper {
width: 100%; width: 100%;
height: 100%; height: 100%;
}
.swper { .swper {
width: 100%; width: 100%;
height: 100%; height: 100%;
position: relative; position: relative;
} }
}
}
.lanbt { .lanbt {
width: 8.2vw; width: 8.2vw;
@ -917,7 +1026,7 @@
top: 15%; top: 15%;
left: 50%; left: 50%;
transform: translate(-50%, -25%); transform: translate(-50%, -25%);
z-index: -1; z-index: 1;
} }
.cardbox { .cardbox {
@ -948,17 +1057,18 @@
.itemcard { .itemcard {
width: 11.2vw; width: 11.2vw;
height: 8vw; height: 8vw;
background: rgba(255,255,255,0.5);
border-radius: 1.6vw;
margin: 1.2vw 1.5vw 0 0vw; margin: 1.2vw 1.5vw 0 0vw;
display: inline-block; display: inline-block;
border: 2rpx solid #DCDCDC;
text-align: center; text-align: center;
position: relative;
overflow: hidden;
image { image {
width: 3.3vw; width: 3.3vw;
height: 3.3vw; height: 3.3vw;
margin: 0.8vw auto 0vw; margin: 0.8vw auto 0vw;
position: relative;
z-index: 2;
} }
text { text {
@ -971,6 +1081,8 @@
width: 100%; width: 100%;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
position: relative;
z-index: 2;
} }
view { view {
@ -982,11 +1094,33 @@
} }
} }
.brcard{
width: 11.2vw;
height: 8vw;
border-radius: 1.6vw;
border: 2rpx solid #DCDCDC;
position: absolute;
top: 0vw;
bottom:0vw;
background: rgba(255,255,255,0.5);
z-index: 0;
}
.bgs{
width: 11.2vw;
height: 8vw;
position: absolute;
top: -1.05vw;
left:-0.15vw;
image{
width: 103%;
height: 105%;
}
}
.act { .act {
.brcard{
background: rgba(255,255,255,0.6); background: rgba(255,255,255,0.6);
border: 2rpx dashed #0089FE; border: 2rpx dashed #0089FE;
}
text, text,
view { view {
color: #017DE9; color: #017DE9;

View File

@ -137,7 +137,7 @@ export default {
// clearInterval(this.timerTwo); // clearInterval(this.timerTwo);
// clearInterval(this.timer); // clearInterval(this.timer);
} }
if(flag == this.timeoutDuration&&this.isDown == false){ if(flag >= this.timeoutDuration+2 && this.isDown == false){
clearInterval(this.timerTwo); clearInterval(this.timerTwo);
clearInterval(this.timer); clearInterval(this.timer);
this.$emit('timeend') this.$emit('timeend')

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -570,7 +570,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
) )
]); ]);
} }
const camera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/hldy_app_mini/pages/camera.nvue"]]); const camera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/项目/hldy_app_mini/pages/camera.nvue"]]);
export { export {
camera as default camera as default
}; };

View File

@ -578,7 +578,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
) )
]); ]);
} }
const fullcamera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/hldy_app_mini/pages/fullcamera.nvue"]]); const fullcamera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/项目/hldy_app_mini/pages/fullcamera.nvue"]]);
export { export {
fullcamera as default fullcamera as default
}; };