Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
brandEventLibraryMiniProgram
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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
LinChengbiao
brandEventLibraryMiniProgram
Commits
1808bf4c
Commit
1808bf4c
authored
Sep 12, 2018
by
LinChengbiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme ...
parent
68f5dfd7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
README.md
+2
-0
No files found.
README.md
View file @
1808bf4c
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
*
**新增页面**
*
**新增页面**
*
`src/pages/temp.wpy`
文件为页面模板文件,新建页面直接复制这个然后修改就可以了。(一般情况下,改成如下形式就可以自由添加内容了)
*
`src/pages/temp.wpy`
文件为页面模板文件,新建页面直接复制这个然后修改就可以了。(一般情况下,改成如下形式就可以自由添加内容了)
```html
```html
<!-- 假如文件名是 test.wpy 则改成如下形式 -->
<!-- 假如文件名是 test.wpy 则改成如下形式 -->
<template>
<template>
...
@@ -41,6 +42,7 @@
...
@@ -41,6 +42,7 @@
.testWpy{}
.testWpy{}
</style>
</style>
```
```
*
新增的页面必须在
`src/app.wpy`
中配置路径,否则会报错。
*
新增的页面必须在
`src/app.wpy`
中配置路径,否则会报错。
*
需要注意
`页面`
和
`组件`
的声明方式有所不同:
*
需要注意
`页面`
和
`组件`
的声明方式有所不同:
*
页面声明
`export default class PageName extends wepy.page`
*
页面声明
`export default class PageName extends wepy.page`
...
...
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