Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
cbeeca88
Commit
cbeeca88
authored
Aug 10, 2022
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
直接进入订单详情
parent
4f267b7d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
src/pages/index/index.vue
+11
-3
src/pages/login/index.vue
+1
-1
No files found.
src/pages/index/index.vue
View file @
cbeeca88
<
template
>
<div>
<web-view
v-if=
"withoutScene"
:src=
"
p
ageUrl"
@
message=
"getMessage"
@
error=
"handleError"
@
load=
"handleLoad"
></web-view>
<web-view
v-if=
"withoutScene"
:src=
"
newP
ageUrl"
@
message=
"getMessage"
@
error=
"handleError"
@
load=
"handleLoad"
></web-view>
</div>
</
template
>
...
...
@@ -16,6 +16,7 @@ const { log } = app;
export
default
{
data
()
{
return
{
newPageUrl
:
""
,
code
:
''
,
shopId
:
this
.
$store
.
state
.
mixid
,
options
:
{},
...
...
@@ -65,8 +66,9 @@ export default {
if
(
wx
.
getStorageSync
(
"enterpriseAccount"
)){
this
.
params
+=
`&enterpriseAccount=
${
wx
.
getStorageSync
(
"enterpriseAccount"
)}
`
;
}
console
.
log
(
this
.
link
,
'======='
,
this
.
page
,
'++++++++++++++'
,
this
.
params
,
'************'
)
let
pageUrl1
=
(
this
.
page
.
startsWith
(
'http://'
)
||
this
.
page
.
startsWith
(
'https://'
))?
(
this
.
page
+
this
.
params
)
:
this
.
link
+
this
.
page
+
this
.
params
console
.
log
(
pageUrl1
,
'--------pageUrl1'
)
console
.
log
(
pageUrl1
,
'--------pageUrl1
--
'
)
let
pageUrl
=
forUrlAddKey
(
decodeURIComponent
(
pageUrl1
));
console
.
log
(
pageUrl
,
'--------pageUrl'
)
// let pageUrl = this.link+this.page+this.params;
...
...
@@ -75,6 +77,10 @@ export default {
},
watch
:
{
pageUrl
(
n
,
o
)
{
if
(
!
this
.
withoutScene
)
{
return
;
}
this
.
newPageUrl
=
this
.
pageUrl
;
// 进入直播页面调用不息屏api
console
.
log
(
this
.
pageUrl
,
this
.
pageUrl
.
includes
(
'/liveBroadcast/lived'
),
"this.pageUrl.includes('/liveBroadcast/lived')"
)
if
(
this
.
pageUrl
.
includes
(
'/liveBroadcast/lived'
)){
...
...
@@ -123,6 +129,7 @@ export default {
}
},
onLoad
(
options
)
{
console
.
log
(
options
,
'---options'
)
if
(
wx
.
getStorageSync
(
"sessionid"
))
{
//清空门店id
...
...
@@ -217,7 +224,8 @@ export default {
}
options
.
params
&&
(
this
.
params
+=
"&"
+
serialize
(
decodeURIComponent
(
options
.
params
)));
}
else
if
(
options
.
from
&&
options
.
from
==
"themeLink"
)
{
log
.
info
(
'options.from == "themeLink"'
)
log
.
info
(
'options.from == "themeLink'
)
console
.
log
(
'options.from == "themeLink'
)
// 多主题link
this
.
page
=
decodeURIComponent
(
options
.
backpath
);
this
.
params
+=
"&"
+
decodeURIComponent
(
options
.
params
);
...
...
src/pages/login/index.vue
View file @
cbeeca88
...
...
@@ -160,7 +160,7 @@ export default {
},
// 是否开启企业要货
whetherOpenEnterprisesWantGoods
(){
return
this
.
mpApp
.
globalData
.
shopInfo
.
whetherOpenEnterprisesWantGoods
==
1
?
1
:
0
return
this
.
mpApp
.
globalData
.
shopInfo
&&
this
.
mpApp
.
globalData
.
shopInfo
.
whetherOpenEnterprisesWantGoods
==
1
?
1
:
0
},
},
onShow
()
{
...
...
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