Commit 1b0e07c5 by liwk

commit

1 parent 696948de
......@@ -12,7 +12,10 @@ export const orderApi = {
getHwAccount(data = {}) {
return request(data, 'dj.api.get.equity.order.hw.account.balance.get')
},
/**获取订单详情 */
getOrderDetail(data = {}) {
return request(data, 'dj.api.get.equity.order.detail.get')
},
}
// export const orderApi = {
// /**获取财务管理列表*/
......
......@@ -22,4 +22,25 @@ Date.prototype.format = function(fmt) {
}
}
return fmt
}
\ No newline at end of file
}
const getParams = (str = window.location.href) => {
let params = str.split('?')
if (params.length < 2) return {}
let param = params[1].split('&')
let obj = {}
for (let i = 0; i < param.length; i++) {
let paramsA = param[i].split('=')
let key = paramsA[0]
let value = paramsA[1]
obj[key] = value
}
return obj
}
import Vue from 'vue'
const utils = {
getParams,
}
Object.keys(utils).map(key => {
Vue.prototype[key] = utils[key]
})
\ No newline at end of file
......@@ -57,6 +57,7 @@
</template>
<script type='text/ecmascript-6'>
import { orderApi } from '@api/api'
export default {
name: '',
data () {
......@@ -98,17 +99,13 @@ export default {
btn: true
},
{
title: '渠道门店',
title: '门店',
list: [
{
label: '关联门店',
key: ''
},
{
label: '所属渠道',
key: ''
},
{
label: '门店地址',
key: ''
},
......@@ -162,8 +159,15 @@ export default {
}
},
mounted () {
this.getDetail()
},
methods: {
getDetail () {
orderApi.getOrderDetail(this.getParams()).then(({ code, data }) => {
console.log(data)
})
}
}
}
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!