Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobao-mini-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
qinhaitao
taobao-mini-template
Commits
105bc537
Commit
105bc537
authored
Sep 07, 2021
by
mqf_0707
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新模版合并
parent
dee29676
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
default.js
c_client/config/default.js
+4
-4
app.config.js
c_client/src/app.config.js
+0
-1
comsTest.module.less
c_client/src/pages/packageComs/comsTest/comsTest.module.less
+2
-2
No files found.
c_client/config/default.js
View file @
105bc537
export
default
{
export
default
{
hasCanvas
:
tru
e
,
// 是否开启游戏模块自动注入dist
hasCanvas
:
fals
e
,
// 是否开启游戏模块自动注入dist
defaultPlugins
:
[
defaultPlugins
:
[
[
[
'@pluve/taro-plugin-mars'
,
// taro暂时未支持阿里小程序自定义插件 需要引用插件的页面需配置
'@pluve/taro-plugin-mars'
,
// taro暂时未支持阿里小程序自定义插件 需要引用插件的页面需配置
...
@@ -13,12 +13,12 @@ export default {
...
@@ -13,12 +13,12 @@ export default {
],
],
canvasPages
:
[
canvasPages
:
[
{
'root'
:
'pages/packageGame/game/game.json'
,
'comRoot'
:
'components/_miniprogram/canvasComp/canvasComp'
},
// 游戏组件
{
'root'
:
'pages/packageGame/game/game.json'
,
'comRoot'
:
'components/_miniprogram/canvasComp/canvasComp'
},
// 游戏组件
{
'root'
:
'pages/index/index.json'
,
'comRoot'
:
'components/_miniprogram/lottieAnimation/lottieAnimation'
}
// Lottie组件
//
{'root': 'pages/index/index.json', 'comRoot': 'components/_miniprogram/lottieAnimation/lottieAnimation'} // Lottie组件
],
// 引入cavas组件页面(更改canvas引用路径)
],
// 引入cavas组件页面(更改canvas引用路径)
canvasComps
:
[
// 拷贝相关页面和依赖到dist目录
canvasComps
:
[
// 拷贝相关页面和依赖到dist目录
{
from
:
'minigame/node_modules'
,
to
:
'dist/node_modules'
},
{
from
:
'minigame/node_modules'
,
to
:
'dist/node_modules'
},
{
from
:
'src/components/_miniprogram/canvasComp'
,
to
:
'dist/components/_miniprogram/canvasComp'
},
// 游戏组建引入
{
from
:
'src/components/_miniprogram/canvasComp'
,
to
:
'dist/components/_miniprogram/canvasComp'
},
// 游戏组建引入
{
from
:
'src/components/_miniprogram/lottieAnimation'
,
to
:
'dist/components/_miniprogram/lottieAnimation'
},
// lottie 动画组件
//
{ from: 'src/components/_miniprogram/lottieAnimation', to: 'dist/components/_miniprogram/lottieAnimation'}, // lottie 动画组件
{
from
:
'src/lottie'
,
to
:
'dist/lottie'
},
// lottie json文件
//
{ from: 'src/lottie', to: 'dist/lottie'},// lottie json文件
]
]
}
}
\ No newline at end of file
c_client/src/app.config.js
View file @
105bc537
export
default
{
export
default
{
pages
:
[
pages
:
[
'pages/index/index'
'pages/index/index'
// 'pages/preComp/preComp'
],
],
subPackages
:
[
subPackages
:
[
{
{
...
...
c_client/src/pages/packageComs/comsTest/comsTest.module.less
View file @
105bc537
...
@@ -22,9 +22,9 @@
...
@@ -22,9 +22,9 @@
}
}
.btn-one {
.btn-one {
.pre-btn();
.pre-btn();
top:
1
00px;
top:
2
00px;
}
}
.btn-two {
.btn-two {
.pre-btn();
.pre-btn();
top:
1
60px;
top:
2
60px;
}
}
\ 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