Commit 1b0e07c5 by liwk

commit

1 parent 696948de
...@@ -12,7 +12,10 @@ export const orderApi = { ...@@ -12,7 +12,10 @@ export const orderApi = {
getHwAccount(data = {}) { getHwAccount(data = {}) {
return request(data, 'dj.api.get.equity.order.hw.account.balance.get') 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 = { // export const orderApi = {
// /**获取财务管理列表*/ // /**获取财务管理列表*/
......
...@@ -23,3 +23,24 @@ Date.prototype.format = function(fmt) { ...@@ -23,3 +23,24 @@ Date.prototype.format = function(fmt) {
} }
return fmt return fmt
} }
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 \ No newline at end of file
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import { orderApi } from '@api/api'
export default { export default {
name: '', name: '',
data () { data () {
...@@ -98,17 +99,13 @@ export default { ...@@ -98,17 +99,13 @@ export default {
btn: true btn: true
}, },
{ {
title: '渠道门店', title: '门店',
list: [ list: [
{ {
label: '关联门店', label: '关联门店',
key: '' key: ''
}, },
{ {
label: '所属渠道',
key: ''
},
{
label: '门店地址', label: '门店地址',
key: '' key: ''
}, },
...@@ -162,8 +159,15 @@ export default { ...@@ -162,8 +159,15 @@ export default {
} }
}, },
mounted () { mounted () {
this.getDetail()
}, },
methods: { methods: {
getDetail () {
orderApi.getOrderDetail(this.getParams()).then(({ code, data }) => {
console.log(data)
})
}
} }
} }
</script> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!