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
d0bd56ec
Commit
d0bd56ec
authored
Feb 01, 2024
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报错处理
parent
1f50d33a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/App.vue
+1
-1
src/pages/index/index.vue
+3
-1
No files found.
src/App.vue
View file @
d0bd56ec
...
...
@@ -87,7 +87,7 @@ export default {
await
this
.
getShopInfo
(
this
.
extConfig
);
// 页面配置信息
this
.
getThemePage
(
this
.
extConfig
);
//
this.getThemePage(this.extConfig);
let
mpApp
=
getApp
();
console
.
log
(
mpApp
,
"this.mpApp"
);
mpApp
.
getShopInfo
=
this
.
getShopInfo
...
...
src/pages/index/index.vue
View file @
d0bd56ec
...
...
@@ -476,7 +476,7 @@ export default {
// 商品分享进入 (卡片分享、扫码、点击小程序链接)
if
(
this
.
newPageUrl
.
includes
(
'/goods/'
)
&&
(
options
.
share
||
options
.
share_copy
))
{
log
.
info
(
"存入商品分享日志"
,
this
.
newPageUrl
);
this
.
saveSpokesmanShareGoodsLog
(
this
.
newPageUrl
);
this
.
saveSpokesmanShareGoodsLog
(
{
link
:
this
.
newPageUrl
,
type
:
2
}
);
}
this
.
init
();
},
...
...
@@ -487,6 +487,7 @@ export default {
},
methods
:
{
init
()
{
console
.
log
(
'index-init'
,
this
.
mpApp
.
globalData
.
pageList
);
if
(
!
this
.
mpApp
.
globalData
.
pageList
)
{
app
.
getThemePage
(
this
.
$store
.
state
.
extConfig
);
}
...
...
@@ -675,6 +676,7 @@ export default {
goods
.
saveSpokesmanShareGoodsLog
(
query
);
},
getQueryVariableNotNull
(
link
,
key
)
{
console
.
log
(
'getQueryVariableNotNull'
,
link
,
key
)
let
val
=
getQueryVariable
(
link
,
key
);
if
(
val
&&
val
!=
'undefined'
)
{
return
val
;
...
...
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