25 lines
587 B
JavaScript
25 lines
587 B
JavaScript
|
|
import * as api from "./api";
|
||
|
|
import {showModelMessage,showMessage} from "./tools";
|
||
|
|
|
||
|
|
//寻车铃声启动
|
||
|
|
export function checkEcuBells (item) {
|
||
|
|
const {ecuId,bikeId} = item;
|
||
|
|
if (!ecuId) {
|
||
|
|
showModelMessage("请先扫码车辆编号!");
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
uni.showLoading({
|
||
|
|
title:'正在操作'
|
||
|
|
});
|
||
|
|
api.callCoreApi('findEbike', {
|
||
|
|
ecuId,
|
||
|
|
bikeId
|
||
|
|
}, 'get').then(res => {
|
||
|
|
const {
|
||
|
|
code,
|
||
|
|
message
|
||
|
|
} = res;
|
||
|
|
uni.hideLoading();
|
||
|
|
showMessage('指令已下达','success',2000)
|
||
|
|
})
|
||
|
|
}
|