Commit dfc29d4a authored by wangxin's avatar wangxin

test_1

parent df20905f
......@@ -17,7 +17,7 @@
<button nz-button nzType="primary">添加选项</button>
</div>
<div style="width: 300px" align="center">
<div style="width: 300px; margin-top: 50px">
<span>图1: </span>
<app-upload-image-with-preview
[picUrl]="item.pic_url"
......
......@@ -45,6 +45,7 @@ cc.Class({
_mapScaleMin: null, // 场景中常用缩放(取大值)
_mapScaleMax: null, // 场景中常用缩放(取小值)
_cocosScale: null, // cocos 自缩放 (较少用到)
initSize() {
// 注意cc.winSize只有在适配后(修改fitHeight/fitWidth后)才能获取到正确的值,因此使用cc.getFrameSize()来获取初始的屏幕大小
let screen_size = cc.view.getFrameSize().width / cc.view.getFrameSize().height;
......@@ -84,10 +85,11 @@ cc.Class({
},
preloadItem() {
this.addPreloadImage();
this.addPreloadAudio();
this.addPreloadAnima();
this.preload();
// this.addPreloadImage();
// this.addPreloadAudio();
// this.addPreloadAnima();
// this.preload();
this.initView();
},
addPreloadImage() {
......@@ -120,7 +122,6 @@ cc.Class({
this.initData();
this.initAudio();
this.initView();
// this.initListener();
},
_cantouch: null,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment