Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
baa64377
Commit
baa64377
authored
Mar 11, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
85634937
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
141 additions
and
16 deletions
+141
-16
afterOrder.vue
src/pages/stuMan/coffeeManage/afterOrder.vue
+47
-0
index.vue
src/pages/stuMan/coffeeManage/index.vue
+37
-16
order.vue
src/pages/stuMan/coffeeManage/order.vue
+47
-0
routes.js
src/router/routes.js
+10
-0
No files found.
src/pages/stuMan/coffeeManage/afterOrder.vue
0 → 100644
View file @
baa64377
<
template
>
<div
class=
"page-body"
>
<!--
<iframe
ref=
"mainIframe"
:src=
"url"
class=
"coffee"
frameborder=
"0"
></iframe>
-->
</div>
</
template
>
<
script
>
export
default
{
meta
:
{
title
:
"商品管理"
},
data
()
{
return
{
url
:
`http://127.0.0.1:8080/#/`
//url:'http://mall.oytour.com/#/'
}
},
mounted
()
{
// let userinfo = JSON.parse(localStorage.getItem('loginUserInfo')).data
// let obj={
// token:userinfo.MallToken,
// Id:userinfo.Id,
// GroupId:userinfo.Group_Id,
// TenantId:userinfo.JHTenantId,
// }
// let jsonData=JSON.stringify(obj)
// const mapFrame = this.$refs.mainIframe
// if (mapFrame.attachEvent) { // 兼容浏览器判断
// mapFrame.attachEvent('onload', function () {
// const iframeWin = mapFrame.contentWindow
// iframeWin.postMessage(jsonData, '*')
// })
// } else {
// mapFrame.onload = function () {
// const iframeWin = mapFrame.contentWindow
// iframeWin.postMessage(jsonData, '*')
// }
// }
}
}
</
script
>
<
style
>
.coffee
{
width
:
100%
;
height
:
calc
(
100vh
-
120px
);
}
</
style
>
src/pages/stuMan/coffeeManage/index.vue
View file @
baa64377
<
template
>
<div
class=
"page-body"
>
<iframe
:src=
"url"
class=
"coffee"
frameborder=
"0"
></iframe>
</div>
<div
class=
"page-body"
>
<iframe
ref=
"mainIframe"
:src=
"url"
class=
"coffee"
frameborder=
"0"
></iframe>
</div>
</
template
>
<
script
>
export
default
{
export
default
{
meta
:
{
title
:
"商品管理"
},
data
()
{
return
{
url
:
`http://127.0.0.1:8080/#/coffeeManage/index?token=''`
}
return
{
url
:
`http://127.0.0.1:8080/#/coffeeManage/index`
//url:'http://mall.oytour.com/#/coffeeManage/index'
}
},
mounted
(){
let
userinfo
=
JSON
.
parse
(
localStorage
.
getItem
(
'loginUserInfo'
)).
data
this
.
url
=
"http://127.0.0.1:8080/#/coffeeManage/index?token="
+
userinfo
.
MallToken
mounted
()
{
let
userinfo
=
JSON
.
parse
(
localStorage
.
getItem
(
'loginUserInfo'
)).
data
let
obj
=
{
token
:
userinfo
.
MallToken
,
Id
:
userinfo
.
Id
,
GroupId
:
userinfo
.
Group_Id
,
TenantId
:
userinfo
.
JHTenantId
,
}
let
jsonData
=
JSON
.
stringify
(
obj
)
const
mapFrame
=
this
.
$refs
.
mainIframe
if
(
mapFrame
.
attachEvent
)
{
// 兼容浏览器判断
mapFrame
.
attachEvent
(
'onload'
,
function
()
{
const
iframeWin
=
mapFrame
.
contentWindow
iframeWin
.
postMessage
(
jsonData
,
'*'
)
})
}
else
{
mapFrame
.
onload
=
function
()
{
const
iframeWin
=
mapFrame
.
contentWindow
iframeWin
.
postMessage
(
jsonData
,
'*'
)
}
}
}
}
}
</
script
>
<
style
>
.coffee
{
width
:
100%
;
height
:
calc
(
100vh
-
120px
);
}
</
style
>
\ No newline at end of file
.coffee
{
width
:
100%
;
height
:
calc
(
100vh
-
120px
);
}
</
style
>
src/pages/stuMan/coffeeManage/order.vue
0 → 100644
View file @
baa64377
<
template
>
<div
class=
"page-body"
>
<iframe
ref=
"mainIframe"
:src=
"url"
class=
"coffee"
frameborder=
"0"
></iframe>
</div>
</
template
>
<
script
>
export
default
{
meta
:
{
title
:
"商品管理"
},
data
()
{
return
{
url
:
`http://127.0.0.1:8080/#/coffeeManage/order`
//url:'http://mall.oytour.com/#/coffeeManage/order'
}
},
mounted
()
{
let
userinfo
=
JSON
.
parse
(
localStorage
.
getItem
(
'loginUserInfo'
)).
data
let
obj
=
{
token
:
userinfo
.
MallToken
,
Id
:
userinfo
.
Id
,
GroupId
:
userinfo
.
Group_Id
,
TenantId
:
userinfo
.
JHTenantId
,
}
let
jsonData
=
JSON
.
stringify
(
obj
)
const
mapFrame
=
this
.
$refs
.
mainIframe
if
(
mapFrame
.
attachEvent
)
{
// 兼容浏览器判断
mapFrame
.
attachEvent
(
'onload'
,
function
()
{
const
iframeWin
=
mapFrame
.
contentWindow
iframeWin
.
postMessage
(
jsonData
,
'*'
)
})
}
else
{
mapFrame
.
onload
=
function
()
{
const
iframeWin
=
mapFrame
.
contentWindow
iframeWin
.
postMessage
(
jsonData
,
'*'
)
}
}
}
}
</
script
>
<
style
>
.coffee
{
width
:
100%
;
height
:
calc
(
100vh
-
120px
);
}
</
style
>
src/router/routes.js
View file @
baa64377
...
...
@@ -1517,6 +1517,16 @@ const routes = [{
component
:
()
=>
import
(
"pages/stuMan/coffeeManage/coffeeOrderList"
)
},
{
path
:
"/stuMan/coffeeManage/order"
,
//学管 订单列表
component
:
()
=>
import
(
"pages/stuMan/coffeeManage/order"
)
},
{
path
:
"/stuMan/coffeeManage/afterOrder"
,
//学管 售后订单列表
component
:
()
=>
import
(
"pages/stuMan/coffeeManage/afterOrder"
)
},
{
path
:
"/stuMan/activeList"
,
//学管 活动列表
component
:
()
=>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment