From 490382bb7c54fac93f66386f7396552d7d5e5574 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Tue, 25 Nov 2025 16:38:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../uview-ui/components/u-swiper/props.js | 5 + .../uview-ui/components/u-swiper/u-swiper.vue | 1 + pages/bd/bddetail.vue | 97 +- pages/bd/mine.vue | 17 +- pages/bd/record.vue | 8 +- pages/index/index.vue | 55 + pages/visit/addrecord.vue | 3415 ++++++++++------- pages/visit/detail.vue | 14 +- pages/visit/study.vue | 624 +-- pages/visit/tostudy.vue | 18 +- pages/visit/visithistory.vue | 6 +- 11 files changed, 2493 insertions(+), 1767 deletions(-) diff --git a/node_modules/uview-ui/components/u-swiper/props.js b/node_modules/uview-ui/components/u-swiper/props.js index bac6d31..fc7c7aa 100644 --- a/node_modules/uview-ui/components/u-swiper/props.js +++ b/node_modules/uview-ui/components/u-swiper/props.js @@ -120,6 +120,11 @@ export default { showTitle: { type: Boolean, default: uni.$u.props.swiper.showTitle + }, + // 视频全屏时的方向设置,参考小程序video组件direction属性 + videoDirection: { + type: [Number, String], + default: 0 } } } diff --git a/node_modules/uview-ui/components/u-swiper/u-swiper.vue b/node_modules/uview-ui/components/u-swiper/u-swiper.vue index 0cfb229..9e35392 100644 --- a/node_modules/uview-ui/components/u-swiper/u-swiper.vue +++ b/node_modules/uview-ui/components/u-swiper/u-swiper.vue @@ -58,6 +58,7 @@ v-if="getItemType(item) === 'video'" :id="`video-${index}`" :enable-progress-gesture="false" + :direction="videoDirection" :src="getSource(item)" :poster="getPoster(item)" :title="showTitle && $u.test.object(item) && item.title ? item.title : ''" diff --git a/pages/bd/bddetail.vue b/pages/bd/bddetail.vue index d278d4f..54059f1 100644 --- a/pages/bd/bddetail.vue +++ b/pages/bd/bddetail.vue @@ -1,4 +1,5 @@ - - \ No newline at end of file diff --git a/pages/visit/detail.vue b/pages/visit/detail.vue index fb7a7af..ee498c2 100644 --- a/pages/visit/detail.vue +++ b/pages/visit/detail.vue @@ -12,11 +12,15 @@ 访问日期:{{info.date}}{{ info.end_date?'至'+info.end_date:'' }} Visit Date: {{info.date}}{{ info.end_date?' to '+info.end_date:'' }} + + + 访问时间:{{info.time?info.time:''}} + Visit Time: {{info.time?info.time:''}} - + 施工时段:{{info.work_start_time}}至{{info.work_end_time}} @@ -136,7 +140,7 @@ + + + + + diff --git a/pages/visit/tostudy.vue b/pages/visit/tostudy.vue index c00ca35..809173d 100644 --- a/pages/visit/tostudy.vue +++ b/pages/visit/tostudy.vue @@ -66,6 +66,7 @@ }, data(){ return{ + canStudy:true, steps: [{ title: '填报\nRegistration' }, { @@ -75,7 +76,7 @@ }], stepActive: 0, form:{ - type:1, + type:2, name:'', idcard:'', mobile:'' @@ -114,13 +115,13 @@ }, typeList:[{ value:1, - text:'普通访客 / Regular Visitor' + text:'普通访客/General Visitor' },{ value:2, - text:'施工人员 / Construction Worker' + text:'施工人员/Construction Worker' },{ value:3, - text:'物流司机 / Logistics Driver' + text:'物流司机/Logistics Driver' }] } }, @@ -145,6 +146,10 @@ console.log('User rejected the privacy policy'); }, toUrl(){ + if(!this.canStudy){ + this.util.alert("目前您不需要参加培训 No training is required for you at this time") + return + } this.$refs['formdata'].validate().then(res => { uni.setStorageSync('studydata', this.form) uni.navigateTo({ @@ -157,6 +162,11 @@ changeType(e){ console.log(e) this.form.type = e + if(e==1||e==3){ + this.canStudy = false + return + } + this.canStudy = true this.isStudy() }, isStudy(){ diff --git a/pages/visit/visithistory.vue b/pages/visit/visithistory.vue index 05f35d0..65d87c4 100644 --- a/pages/visit/visithistory.vue +++ b/pages/visit/visithistory.vue @@ -18,9 +18,13 @@ 访问日期:{{item.date}}{{ item.end_date?'至'+item.end_date:'' }} Visit Date: {{item.date}}{{ item.end_date?' to '+item.end_date:'' }} - + + + 访问时间:{{info.time?info.time:''}} + Visit Time: {{info.time?info.time:''}}