|
|
|
@ -1,6 +1,6 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<view class="page-container">
|
|
|
|
<view class="page-container">
|
|
|
|
<AppTitleHeader title="模具查询" subTitle="请选择查询方式" />
|
|
|
|
<AppTitleHeader title="模具查询" subTitle="请选择查询方式" :showSubTitle="true" />
|
|
|
|
|
|
|
|
|
|
|
|
<view class="content-section">
|
|
|
|
<view class="content-section">
|
|
|
|
<view class="scan-section">
|
|
|
|
<view class="scan-section">
|
|
|
|
@ -48,23 +48,15 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<BottomActionBar :buttons="bottomButtons" @action="handleBottomAction" />
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
<script setup>
|
|
|
|
import { ref } from 'vue';
|
|
|
|
import { ref } from 'vue';
|
|
|
|
import AppTitleHeader from '@/components/common/AppTitleHeader.vue'
|
|
|
|
import AppTitleHeader from '@/components/common/AppTitleHeader.vue'
|
|
|
|
import BottomActionBar from '@/components/common/BottomActionBar.vue'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const moldCode = ref('');
|
|
|
|
const moldCode = ref('');
|
|
|
|
const isScanning = ref(false);
|
|
|
|
const isScanning = ref(false);
|
|
|
|
const bottomButtons = ref([{ text: '返回', type: 'default', key: 'back' }])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function goBack() {
|
|
|
|
|
|
|
|
uni.navigateBack();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function startScan() {
|
|
|
|
function startScan() {
|
|
|
|
if (isScanning.value) return;
|
|
|
|
if (isScanning.value) return;
|
|
|
|
|
|
|
|
|
|
|
|
@ -123,15 +115,6 @@ function navigateToDetail(id) {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function handleBottomAction(e) {
|
|
|
|
|
|
|
|
if (e && e.key === 'back') {
|
|
|
|
|
|
|
|
goBack()
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (e && e.index === 0) {
|
|
|
|
|
|
|
|
goBack()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@ -141,7 +124,7 @@ function handleBottomAction(e) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.content-section {
|
|
|
|
.content-section {
|
|
|
|
padding: 40rpx 30rpx 200rpx;
|
|
|
|
padding: 40rpx 30rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.scan-section {
|
|
|
|
.scan-section {
|
|
|
|
|