Browse Source

租售&储物打开柜子 api 区分

voice^2
刘嘉炜 4 years ago
parent
commit
715ffa70eb
  1. 3
      src/subpackage/device/js/device_api.js
  2. 11
      src/subpackage/device/pages/locker_manage/locker_manage.vue

3
src/subpackage/device/js/device_api.js

@ -14,7 +14,8 @@ export const DEVICE_API = {
leaseList:`${ORIGIN}/admin/stadium/lease/cabinet/list`, // 租售柜列表
lockerList:`${ORIGIN}/admin/stadium/locker/cabinet/list`, // 储物柜列表
leaseTest:`${ORIGIN}/admin/stadium/locker/cabinet/test`, // 储物柜打开
leaseTest:`${ORIGIN}/admin/stadium/lease/cabinet/test`, // 租售柜打开
lockerTest:`${ORIGIN}/admin/stadium/locker/cabinet/test`, // 储物柜打开
leaseReset:`${ORIGIN}/admin/stadium/locker/cabinet/reset`, // 储物柜补货

11
src/subpackage/device/pages/locker_manage/locker_manage.vue

@ -212,11 +212,20 @@ export default {
})
.catch(util.hideLoad)
},
//
// e.page_id == 8 ||  //
// e.page_id == 9 ||  //
getOpenApi(){
let { optionsQuery } = this;
if(optionsQuery.page_id == 8)return deviceApi.leaseTest;
if(optionsQuery.page_id == 9)return deviceApi.lockerTest;
},
openLockerReq(cabinet_ids){
let { curStoreInfo } = this;
util.showLoad();
return deviceServer.get({
url: deviceApi.leaseTest,
url: this.getOpenApi(),
data: {
brand_id: curStoreInfo.brand_id,
cabinet_ids: cabinet_ids,

Loading…
Cancel
Save