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
b33af83f
Commit
b33af83f
authored
Oct 21, 2020
by
程智春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公众号文章
parent
6650997c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
0 deletions
+54
-0
src/pages/wxArticle/index.vue
+45
-0
src/pages/wxArticle/main.js
+5
-0
src/pages/wxArticle/main.json
+4
-0
No files found.
src/pages/wxArticle/index.vue
0 → 100644
View file @
b33af83f
<!--
* @Author: your name
* @Date: 2020-10-21 09:51:48
* @LastEditTime: 2020-10-21 10:35:55
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \mayi-mp-shop\src\pages\wxArticle\index.vue
-->
<
template
>
<div>
<web-view
:src=
"link"
@
message=
"getMessage"
@
error=
"handleError"
@
load=
"handleLoad"
></web-view>
</div>
</
template
>
<
script
>
export
default
{
data
(){
return
{
link
:
''
}
},
onLoad
(
options
){
console
.
log
(
decodeURIComponent
(
options
.
link
),
'地址'
)
this
.
link
=
decodeURIComponent
(
options
.
link
)
},
methods
:
{
//加载成功
handleLoad
()
{
console
.
log
(
"网页加载成功"
);
},
handleError
(
data
)
{
wx
.
showLoading
({
title
:
"网页加载失败 请右上角刷新"
,
});
},
}
};
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
src/pages/wxArticle/main.js
0 → 100644
View file @
b33af83f
import
Vue
from
'vue'
import
App
from
'./index'
const
app
=
new
Vue
(
App
)
app
.
$mount
()
src/pages/wxArticle/main.json
0 → 100644
View file @
b33af83f
{
"navigationBarTitleText"
:
"文章"
}
\ No newline at end of file
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