Compare commits

...

2 Commits

Author SHA1 Message Date
tangxinyue 9d14b1bb0d 修改package.json配置 2026-02-27 14:07:27 +08:00
tangxinyue 3da8a73f1d 机票时长默认自动计算,可修改 2026-02-27 10:04:19 +08:00
3 changed files with 6243 additions and 672 deletions

5978
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,20 +1,21 @@
{
"id": "lius-DomVideoPlayer",
"name": "video-player 视频播放器 html5视频播放器-解决频层级、覆盖",
"displayName": "video-player 视频播放器 html5视频播放器-解决频层级、覆盖",
"version": "2.0.0",
"description": "APP 项目中uniapp 提供的的 video 原生视频组件层级太高,难以遮挡;该视频播放器可以被其他元素进行覆盖、遮挡,页面具有更高的定制性。",
"keywords": [
"video-player",
"视频播放器",
"视频覆盖",
"视频层级",
"视频遮挡"
],
"dcloudext": {
"category": [
"前端组件",
"通用组件"
]
"name": "alipay-emulator",
"version": "1.0.0",
"description": "支付宝模拟器 UniApp 项目",
"scripts": {
"dev:h5": "uni",
"build:h5": "uni build"
},
"dependencies": {
"@dcloudio/uni-app": "^3.0.0-alpha-3060620230810001",
"@dcloudio/uni-h5": "^3.0.0-alpha-3060620230810001",
"crypto-js": "^4.2.0",
"lottie-web": "^5.13.0",
"uuid": "^9.0.1"
},
"devDependencies": {
"@dcloudio/uni-cli-shared": "^3.0.0-alpha-3060620230810001",
"@dcloudio/vite-plugin-uni": "^3.0.0-alpha-3060620230810001",
"vite": "^5.2.8"
}
}

View File

@ -86,10 +86,10 @@
<text class="label">到达机场</text>
<input class="input" v-model="ticketsInfo.flightInfo.endAirport" />
</view>
<!-- <view class="form-item">
<view class="form-item">
<text class="label">时长</text>
<input class="input" v-model="ticketsInfo.flightInfo.duration" placeholder="例: 2时5分" />
</view> -->
</view>
<view class="form-item">
<text class="label">机型</text>
<input class="input" v-model="ticketsInfo.flightInfo.aircraftType" />
@ -218,7 +218,8 @@
<text class="label">等级</text>
<view class="input"
:style="{ color: !ticketsInfo.ctripOrderInfo.level ? '#999' : '#333' }">
{{ getLevelLabel(ticketsInfo.ctripOrderInfo.level) || '请选择等级' }}</view>
{{ getLevelLabel(ticketsInfo.ctripOrderInfo.level) || '请选择等级' }}
</view>
</view>
</picker>
<view class="tips-container">
@ -256,8 +257,14 @@
<script setup>
import NavBar from '@/components/nav-bar/nav-bar.vue'
import { reactive, toRefs, onMounted } from 'vue';
import { onLoad } from '@dcloudio/uni-app';
import {
reactive,
toRefs,
onMounted
} from 'vue';
import {
onLoad
} from '@dcloudio/uni-app';
import defualtData from '@/pages/other/air-tickets/commom/defualt.json';
import airlineJson from '@/static/json/air-line.json';
@ -280,7 +287,11 @@ const data = reactive({
}
})
const { ticketsInfo, collapsed, dragInfo } = toRefs(data)
const {
ticketsInfo,
collapsed,
dragInfo
} = toRefs(data)
const onAirlineChange = (e) => {
const index = e.detail.value;
@ -292,8 +303,7 @@ const onAirlineChange = (e) => {
}
//
const ctripLevelList = [
{
const ctripLevelList = [{
label: "白银",
value: 1
},
@ -548,8 +558,12 @@ const onFlightDateChange = (e) => {
}
// Custom Time Picker Data
const hours = Array.from({ length: 24 }, (_, i) => i.toString().padStart(2, '0'));
const minutes = Array.from({ length: 60 }, (_, i) => i.toString().padStart(2, '0'));
const hours = Array.from({
length: 24
}, (_, i) => i.toString().padStart(2, '0'));
const minutes = Array.from({
length: 60
}, (_, i) => i.toString().padStart(2, '0'));
const timeRange = [hours, minutes];
const getTimeIndex = (timeStr) => {
@ -586,7 +600,11 @@ const updateDuration = () => {
const h = Math.floor(diffMin / 60)
const m = diffMin % 60
if (h > 0) {
ft.duration = `${h}${m}`
} else {
ft.duration = `${m}`
}
}
}
</script>