Commit dfc29d4a authored by wangxin's avatar wangxin

test_1

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