Browse Source

add api

voice
刘嘉炜 4 years ago
parent
commit
71d1acf2a1
  1. 7
      src/js/api.js
  2. 20
      src/pages/write_off/search_result/search_result.vue

7
src/js/api.js

@ -66,6 +66,13 @@ API['venue'] = {
setStatus: `${ORIGIN}/admin/timeSelect/setStatus`, // 商家助手-占用场地列表
}
// 2.1 核销
API['writeOff'] = {
listVerifyRecord: `${ORIGIN}/admin/stadium/order/listVerifyRecord`, // 核销记录
assistantVerify: `${ORIGIN}/admin/stadium/order/assistantVerify`, // 商家助手-核销查询-核销
enterVerifyOrder: `${ORIGIN}/admin/stadium/order/enterVerifyOrder`, // 商家助手-核销查询-输入验证码
}
export default { ORIGIN, API };

20
src/pages/write_off/search_result/search_result.vue

@ -46,11 +46,29 @@
</template>
<script>
import util from '../../../utils/util'
import util from '../../../utils/util';
import { API } from '../../../js/api';
import { servers } from '../../../js/server';
export default {
onLoad(){
this.getList();
},
methods: {
toOperate(){
util.routeTo(`/pages/write_off/operate/operate`, 'nT');
},
getList(){
servers.get({
url: API.writeOff.listVerifyRecord,
data: {
brand_id: 63
},
failMsg: '加载失败!',
})
.then(res=>{
let _list = res.list || [];
console.warn(res, 'jijjjjjjjjj')
})
}
}
}

Loading…
Cancel
Save