Commit d754a9ac authored by wildfirecode13's avatar wildfirecode13

1

parent a238bd8a
No preview for this file type
No preview for this file type
......@@ -14,4 +14,4 @@ const apiList = Object.assign(Object.assign({}, capi), apicfg_1.default);
// 生成API
const API = generateAPI(apiList, request);
exports.default = API;
//# sourceMappingURL=api.js.map1
\ No newline at end of file
//# sourceMappingURL=api.js.map
\ No newline at end of file
......@@ -14,7 +14,6 @@ App({
activityId: "",
onLaunch(options) {
this.handleQuery(options.query || {});
console.log('onLauch')
},
onShow(options) {
// 从后台被 scheme 重新打开
......
{
"pages": ["pages/pagecanvas/pagecanvas", "pages/pagemycanvaspage/pagemycanvaspage"],
"pages": [
"pages/pagecanvas/pagecanvas",
"pages/pagefrontpage/pagefrontpage",
"pages/pagegamescene/pagegamescene"
],
"window": {
"enableSkia": "true",
"allowsBounceVertical":"NO"
......
.mycanvaspage {
.rulepanel {
top: 0rpx;
left: 0rpx;
width: 750rpx;
......@@ -6,7 +6,7 @@
display: block;
position: absolute;
}
.mycanvaspage .canvas {
.rulepanel .image2 {
width: 300rpx;
height: 300rpx;
opacity: 1;
......@@ -14,4 +14,5 @@
left: 0rpx;
top: 0rpx;
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
}
<view class="rulepanel ">
<image class="image2 " src={{resList['eb602b5e-fd36-4968-bed0-ec786cd8e1c0'].url}} />
</view>
\ No newline at end of file
'use strict';
import resList from '../../resconfig/resList';
Component({
props: {},
data: {},
methods: {},
onInit(props) {
this.setData({
resList: resList
});
}
});
\ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
.frontpage {
width: 750rpx;
height: 1624rpx;
display: block;
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
left: 228rpx;
top: 146rpx;
}
.frontpage .div {
width: 300rpx;
height: 300rpx;
opacity: 1;
display: block;
position: absolute;
background-color: #ff6600;
transform-origin: 0rpx 0rpx 0rpx;
top: 278rpx;
left: -142rpx;
}
.frontpage .image {
width: 276rpx;
height: 275rpx;
opacity: 1;
display: block;
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
left: -184rpx;
top: -134rpx;
}
<view class="frontpage ">
<view class="div " />
<image class="image " src={{resList['eb602b5e-fd36-4968-bed0-ec786cd8e1c0'].url}} />
</view>
\ No newline at end of file
......@@ -6,7 +6,7 @@ Page({
data: {},
onLoad(props) {
this.setData(this.data || {
this.setData({
resList: resList
});
}
......
.gamescene {
top: 0rpx;
left: 0rpx;
width: 750rpx;
height: 1624rpx;
display: block;
position: absolute;
}
.gamescene .gamecanvas {
width: 300rpx;
height: 300rpx;
opacity: 1;
display: block;
left: 0rpx;
top: 0rpx;
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
}
<view class="gamescene ">
<view>
<canvas id="canvas" type="2d" class="canvas" disable-scroll="true" onTouchStart="onMouseEvent" onTouchMove="onMouseEvent" onTouchEnd="onMouseEvent" onReady="onCanvasReady"></canvas>
</view>
</view>
\ No newline at end of file
'use strict';
import resList from '../../resconfig/resList'; //import API from '../../api';
Page({
data: {},
onLoad(props) {
this.setData({
resList: resList
});
}
});
\ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file
<view class="mycanvaspage">
<view>
<canvas id="canvas" type="2d" class="canvas" disable-scroll="true" onTouchStart="onMouseEvent" onTouchMove="onMouseEvent" onTouchEnd="onMouseEvent" onReady="onCanvasReady"></canvas>
</view>
</view>
\ No newline at end of file
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