This commit is contained in:
863620989 2025-04-28 14:08:00 +08:00
commit 58c72872c1
15 changed files with 111 additions and 26 deletions

View File

@ -61,10 +61,13 @@
</scroll-view>
</div>
<div class="divBottom">
<!-- <div class="divBottom">
<text class="b-btn-white" style="margin-right: 15px;" @click="refresh">刷新</text>
<text class="b-btn-blue" @click="completebatter">完成换电</text>
</div>
</div> -->
<view class="nav-panel">
<c-uni-goods-nav :fill="true" :options="[]" :buttonGroup="navButtonGroup" @buttonClick="navButtonClick" />
</view>
</template>
<script setup>
@ -76,6 +79,7 @@
import {
ref,
watch,
reactive,
onMounted
} from "vue";
import {
@ -251,6 +255,28 @@
}
})
}
const navButtonGroup = reactive([{
text: '刷新',
backgroundColor: '#0078D4',
color: '#fff',
disable: false
},{
text: '完成换电',
backgroundColor: '#0078D4',
color: '#fff',
disable: false
}]);
const navButtonClick = (e) =>{
const index = e.index;
if(index == 0){
refresh();
}
else if(index == 1){
completebatter();
}
}
</script>
<style scoped>
@ -280,4 +306,13 @@
width: 100%;
line-height: 55px;
}
.nav-panel{
position: fixed;
bottom: 0rpx;
width: 100%;
padding-bottom: 10px;
z-index: 999;
background-color:#fff;
}
</style>

View File

@ -175,7 +175,7 @@
});
const navButtonGroup = [{
text: '车辆详情',
backgroundColor: 'rgb(0,120,212)',
backgroundColor: '#0078D4',
color: "#fff"
}];

View File

@ -247,7 +247,7 @@
]);
const navButtonGroup = [{
text: '确认提交',
backgroundColor: 'rgb(0,120,212)',
backgroundColor: '#0078D4',
color: '#fff'
}];
const bikeCodeScanChange = (bikeCode) => {

View File

@ -340,11 +340,11 @@
});
const navButtonGroup = [{
text: '取消工单',
backgroundColor: 'rgb(0,120,212)',
backgroundColor: '#0078D4',
color: "#fff"
}, {
text: '处理完成',
backgroundColor: 'rgb(0,120,212)',
backgroundColor: '#0078D4',
color: "#fff"
}];

View File

@ -33,8 +33,8 @@
<view class="classimg" :class="item.key + '-' + icon.key ==isSeleid?`classimgsm`:``">
<!-- <image :src="icon.src" class="icon-image" /> -->
<uni-icons v-if="icon.customsrc" custom-prefix="iconfont" color="#1488f5" :type="icon.customsrc"
size="25"></uni-icons>
<uni-icons v-else color="#1488f5" :type="icon.src ? icon.src:'image'" size="25"></uni-icons>
size="28"></uni-icons>
<uni-icons v-else color="#1488f5" :type="icon.src ? icon.src:'image'" size="28"></uni-icons>
</view>
<view class="classimgwz">
{{ icon.name }}

View File

@ -211,7 +211,7 @@
]);
const navButtonGroup = [{
text: '确认提交',
backgroundColor: 'rgb(0,120,212)',
backgroundColor: '#0078D4',
color: '#fff'
}];
const bikeCodeScanChange = (bikeCode) => {

View File

@ -271,7 +271,7 @@
const navButtonGroup = [{
text: '提交',
backgroundColor: 'rgb(0,120,212)',
backgroundColor: '#0078D4',
color: '#fff'
}];
//

View File

@ -69,7 +69,7 @@
};
const navButtonGroup = [{
text: '确定绑定',
backgroundColor: 'rgb(0,120,212)',
backgroundColor: '#0078D4',
color: '#fff'
}];
//

View File

@ -112,7 +112,7 @@
const dataList = ref([]);
const navButtonGroup = [{
text: '新增入库',
backgroundColor: 'rgb(0,120,212)',
backgroundColor: '#0078D4',
color: '#fff'
}];
//
@ -407,7 +407,7 @@
.list-item{
padding: 15px 15px;
margin: 20px 10px;
margin: 3px 5px;
border: 1px solid #d6d4d4;
border-radius: 2px;
background-color: #fff;

View File

@ -116,7 +116,7 @@
const dataList = ref([]);
const navButtonGroup = [{
text: '新增出库',
backgroundColor: 'rgb(0,120,212)',
backgroundColor: '#0078D4',
color: '#fff'
}];
//
@ -338,7 +338,7 @@
.list-item{
padding: 15px 15px;
margin: 20px 10px;
margin: 3px 5px;
border: 1px solid #d6d4d4;
border-radius: 2px;
background-color: #fff;

View File

@ -133,7 +133,7 @@
const scroTop = ref(0);
const navButtonGroup = [{
text: '批量上架',
backgroundColor: 'rgb(0,120,212)',
backgroundColor: '#0078D4',
color: '#fff'
}];
//

View File

@ -118,11 +118,11 @@
const typepopup = ref("center");
const navButtonGroup = [{
text: '批量投放',
backgroundColor: 'rgb(0,120,212)',
backgroundColor: '#0078D4',
color: '#fff'
}, {
text: '批量下架',
backgroundColor: 'rgb(0,120,212)',
backgroundColor: '#0078D4',
color: '#fff'
}];
const searchValue = ref("")

View File

@ -32,3 +32,12 @@
font-size: 1rem;
color: black;
}
.nav-panel{
position: fixed;
bottom: 0rpx;
width: 100%;
padding-bottom: 10px;
z-index: 999;
background-color:#fff;
}

View File

@ -48,10 +48,12 @@
</uni-card>
</view>
<view style="position: absolute;bottom: 10px; width: 100%;padding:0px 15px;">
<!-- <button type="primary" @click="unbind">确定解绑</button> -->
<!-- <view style="position: absolute;bottom: 10px; width: 100%;padding:0px 15px;">
<div class="b-btn-blue" style="text-align: center;" @click="unbind">确定解绑</div>
</view>
</view> -->
</view>
<view class="nav-panel">
<c-uni-goods-nav :fill="true" :options="[]" :buttonGroup="navButtonGroup" @buttonClick="navButtonClick" />
</view>
</template>
@ -63,7 +65,13 @@
return {
colspan: [6, 17],
scancode:"",
arrData: []
arrData: [],
navButtonGroup:[{
text: '确定解绑',
backgroundColor: '#0078D4',
color: '#fff',
disable: false
}]
}
},
methods:{
@ -115,6 +123,12 @@
});
});
},
navButtonClick(e){
const index = e.index;
if(index == 0){
this.unbind();
}
}
}

View File

@ -39,15 +39,19 @@
</uni-forms-item>
</uni-forms>
</uni-section>
<view style="position: absolute;bottom: 10rpx; width: 100%;">
<!-- <view style="position: absolute;bottom: 10rpx; width: 100%;">
<button type="primary" @click="unUpdate">确定更换</button>
</view>
</view> -->
</view>
<view class="nav-panel">
<c-uni-goods-nav :fill="true" :options="[]" :buttonGroup="navButtonGroup" @buttonClick="navButtonClick" />
</view>
</template>
<script setup>
import {
ref
ref,
reactive
} from 'vue';
import * as api from '@/utils/api.js';
import dayjs from 'dayjs';
@ -95,12 +99,26 @@
if (res.confirm) {
api.callEbikeInfo("updateBikeQRCode", ebikeInfo.value).then((res) => {
ebikeInfo.value.ecuCode = res.data.ecuCode;
ebikeInfo.value.ecuCode = res.data.bikeId;
ebikeInfo.value.bikeId = res.data.bikeId;
});
}
}
});
}
const navButtonGroup = reactive([{
text: '确定更换',
backgroundColor: '#0078D4',
color: '#fff',
disable: false
}]);
const navButtonClick = (e) =>{
const index = e.index;
if(index == 0){
unUpdate();
}
}
</script>
<style>
@ -114,4 +132,13 @@
width: 100px !important;
/* 或者使用其他单位 */
}
.nav-panel{
position: fixed;
bottom: 0rpx;
width: 100%;
padding-bottom: 10px;
z-index: 999;
background-color:#fff;
}
</style>