Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-merchant-data
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b025d0fb
authored
Mar 22, 2019
by
liwk
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/glsx-web/glsx-oss-merchant-data
2 parents
6cdf509b
743c302f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
27 deletions
src/base.js
src/views/customer/businessDetails/index.vue
src/views/customer/businessList/index.vue
src/base.js
View file @
b025d0f
...
@@ -35,7 +35,19 @@ Vue.use(VeeValidate, {
...
@@ -35,7 +35,19 @@ Vue.use(VeeValidate, {
var
mixin
=
{
var
mixin
=
{
data
()
{
data
()
{
return
{
return
{
flag
:
true
flag
:
true
,
// paramsTrans: '',
/**
* 定义一个事件传输总线
* 提示:页面与子组件间的参数都可以用之来互相传递
* 如:
* this.$root.eventBus.$emit('params', {id:123});
*
this.$root.eventBus.$on('params', (params)=>{
console.log(params);
});
*/
eventBus
:
new
Vue
()
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -86,21 +98,10 @@ var mixin = {
...
@@ -86,21 +98,10 @@ var mixin = {
})
})
}
}
}
}
},
// getParamsTrans() {
data
()
{
// console.log(this.paramsTrans)
return
{
// return this.paramsTrans
/**
// }
* 定义一个事件传输总线
* 提示:页面与子组件间的参数都可以用之来互相传递
* 如:
* this.$root.eventBus.$emit('params', {id:123});
*
this.$root.eventBus.$on('params', (params)=>{
console.log(params);
});
*/
eventBus
:
new
Vue
()
}
}
}
}
}
const
URL
=
' http://192.168.3.171:7300/mock/5be17454f31545347559d499/config'
const
URL
=
' http://192.168.3.171:7300/mock/5be17454f31545347559d499/config'
...
...
src/views/customer/businessDetails/index.vue
View file @
b025d0f
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<gl-breadcrumb
separator=
'/'
>
<gl-breadcrumb
separator=
'/'
>
<gl-breadcrumb-item><a
href=
'#'
@
click=
'back'
>
商户列表
</a></gl-breadcrumb-item>
<gl-breadcrumb-item><a
href=
'#'
@
click=
'back'
>
商户列表
</a></gl-breadcrumb-item>
<gl-breadcrumb-item>
商户详情
</gl-breadcrumb-item>
<gl-breadcrumb-item>
商户详情
</gl-breadcrumb-item>
<gl-breadcrumb-item>
{{
nam
e
}}
</gl-breadcrumb-item>
<gl-breadcrumb-item>
{{
List
[
0
].
valu
e
}}
</gl-breadcrumb-item>
</gl-breadcrumb>
</gl-breadcrumb>
<!--
<gl-button
type=
'text'
@
click=
'back'
>
商户列表
</gl-button>
<!--
<gl-button
type=
'text'
@
click=
'back'
>
商户列表
</gl-button>
<span>
\ 商户详情 \
{{
name
}}
</span>
-->
<span>
\ 商户详情 \
{{
name
}}
</span>
-->
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
<
script
>
<
script
>
import
VueAMap
from
'vue-amap'
import
VueAMap
from
'vue-amap'
import
Vue
from
'vue'
import
Vue
from
'vue'
import
{
merchant
Persona
l
}
from
'@/api/index'
import
{
merchant
Detai
l
}
from
'@/api/index'
import
notice
from
'@/common/notice'
import
notice
from
'@/common/notice'
const
amapManager
=
new
VueAMap
.
AMapManager
()
const
amapManager
=
new
VueAMap
.
AMapManager
()
VueAMap
.
initAMapApiLoader
({
VueAMap
.
initAMapApiLoader
({
...
@@ -49,28 +49,36 @@ export default {
...
@@ -49,28 +49,36 @@ export default {
data
()
{
data
()
{
const
_this
=
this
const
_this
=
this
return
{
return
{
name
:
''
,
merchantId
:
''
,
activeName
:
'first'
,
activeName
:
'first'
,
merchantInfo
:
{},
List
:
[
List
:
[
{
{
name
:
'merchantName'
,
label
:
'商户名称'
,
label
:
'商户名称'
,
value
:
'深圳市安卓讯航科技有限公司'
value
:
'深圳市安卓讯航科技有限公司'
},
{
},
{
name
:
'merchantId'
,
label
:
'商户号'
,
label
:
'商户号'
,
value
:
'44186213'
value
:
'44186213'
},
{
},
{
name
:
'address'
,
label
:
'商户地址'
,
label
:
'商户地址'
,
value
:
'广东省深圳市南山区科兴科学园C3单元'
value
:
'广东省深圳市南山区科兴科学园C3单元'
},
{
},
{
name
:
'merchantChannelName'
,
label
:
'商户渠道'
,
label
:
'商户渠道'
,
value
:
'自有渠道'
value
:
'自有渠道'
},
{
},
{
name
:
'contactor'
,
label
:
'联系人'
,
label
:
'联系人'
,
value
:
'彭裕'
value
:
'彭裕'
},
{
},
{
name
:
'createTime'
,
label
:
'注册时间'
,
label
:
'注册时间'
,
value
:
'2018-03-16'
value
:
'2018-03-16'
},
{
},
{
name
:
'contactPhone'
,
label
:
'联系电话'
,
label
:
'联系电话'
,
value
:
'15999682114'
value
:
'15999682114'
},
{
},
{
...
@@ -78,9 +86,11 @@ export default {
...
@@ -78,9 +86,11 @@ export default {
value
:
'深圳市安卓讯航科技有限公司'
,
value
:
'深圳市安卓讯航科技有限公司'
,
isMap
:
true
isMap
:
true
},
{
},
{
name
:
'phone'
,
label
:
'服务电话'
,
label
:
'服务电话'
,
value
:
'0755-88888888'
value
:
'0755-88888888'
},
{
},
{
name
:
'email'
,
label
:
'邮箱'
,
label
:
'邮箱'
,
value
:
'GLSX@didihu.com'
value
:
'GLSX@didihu.com'
},
{
},
{
...
@@ -129,11 +139,16 @@ export default {
...
@@ -129,11 +139,16 @@ export default {
}
}
}
}
},
},
watch
:
{
merchantId
(
val
)
{
this
.
getStaffList
()
}
},
mounted
()
{
mounted
()
{
console
.
log
(
this
)
this
.
$root
.
eventBus
.
$on
(
'params'
,
(
params
)
=>
{
this
.
$root
.
eventBus
.
$on
(
'params'
,
(
params
)
=>
{
console
.
log
(
params
)
if
(
params
.
merchantId
!==
this
.
merchantId
)
{
this
.
name
=
params
.
name
this
.
merchantId
=
params
.
merchantId
}
})
})
// setTimeout(() => {
// setTimeout(() => {
// const theme = new this.$Theme()
// const theme = new this.$Theme()
...
@@ -168,13 +183,28 @@ export default {
...
@@ -168,13 +183,28 @@ export default {
handleClick
(
tab
,
event
)
{
handleClick
(
tab
,
event
)
{
console
.
log
(
tab
,
event
)
console
.
log
(
tab
,
event
)
},
},
// 员工信息-接口
// 员工信息-接口
--start
getStaffList
()
{
getStaffList
()
{
merchantPersonal
.
req
().
then
(
res
=>
{
merchantDetail
.
req
({
merchantId
:
this
.
merchantId
}).
then
(
res
=>
{
notice
.
okTips
(
res
)
this
.
merchantInfo
=
res
this
.
assignStaffInfo
()
notice
.
okTips
()
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
notice
.
errorTips
(
err
)
notice
.
errorTips
(
err
)
})
})
},
assignStaffInfo
()
{
console
.
log
(
this
.
merchantInfo
)
for
(
var
i
in
this
.
List
)
{
if
(
this
.
List
[
i
].
isMap
)
{
console
.
log
(
'000'
)
this
.
point
=
[
this
.
merchantInfo
.
lng
,
this
.
merchantId
.
lat
]
}
else
if
(
this
.
List
[
i
].
isImg
)
{
console
.
log
(
'000'
)
}
else
{
this
.
List
[
i
].
value
=
this
.
merchantInfo
[
this
.
List
[
i
].
name
]
}
}
}
}
}
}
}
}
...
...
src/views/customer/businessList/index.vue
View file @
b025d0f
...
@@ -128,8 +128,8 @@ export default {
...
@@ -128,8 +128,8 @@ export default {
label
:
'详情'
,
label
:
'详情'
,
type
:
'text'
,
type
:
'text'
,
callback
:
(
index
,
rows
)
=>
{
callback
:
(
index
,
rows
)
=>
{
const
url
=
encodeURI
(
`../../customer/businessDetails.html?id=
${
rows
[
index
].
merchantId
}
&name=
${
rows
[
index
].
merchantName
}
`
)
this
.
$root
.
to
([
'商户数据平台'
,
'商户数据平台'
,
'商户数据平台'
,
'业务管理'
,
'商户详情'
],
{
merchantId
:
rows
[
index
].
merchantId
}
)
location
.
href
=
url
// this.$root.getParamsTrans()
}
}
}]
}]
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment