Commit f3fe375b authored by zhangjinzhou's avatar zhangjinzhou

Merge branch 'master' of gitlab2.dui88.com:wildfirecode13/icbcrpg into 引导选人load

# Conflicts:
#	project/src/pages/loading/loading.jsx
合并master
parents 2f12cdbd 9130af4d
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -16,7 +16,7 @@ class App extends Component { ...@@ -16,7 +16,7 @@ class App extends Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.state = { this.state = {
page: 'loading', page: 'detail',
}; };
} }
......
...@@ -16,6 +16,7 @@ class Detail2 extends Component { ...@@ -16,6 +16,7 @@ class Detail2 extends Component {
render() { render() {
return ( return (
<div className="detail2 " uuid="c5abc304-1a0b-4804-956a-d61c1d5b75ed"> <div className="detail2 " uuid="c5abc304-1a0b-4804-956a-d61c1d5b75ed">
<div className=""></div>
<img <img
className="detail2_bg " className="detail2_bg "
uuid="2b6c5d97-e458-42a0-b49b-49e9efc6abbc" uuid="2b6c5d97-e458-42a0-b49b-49e9efc6abbc"
......
.detail2 { .detail2 {
width: 750px; width: 100vw;
height: 1624px; height: 100vh;
opacity: 1;
position: absolute; position: absolute;
left: 0px; top: 0;
top: 0px; left: 0;
transform-origin: 0 0 0; overflow: hidden;
.detail2_bg { .detail2_bg {
width: 750px; width: 750px;
height: 1624px; height: 1624px;
position: absolute; position: absolute;
left: -2px;
top: 0px; top: 0px;
transform-origin: 0px 0px 0px; transform-origin: 0px 0px 0px;
} }
......
'use strict'; 'use strict';
import { appID } from 'duiba-utils'; import { appID } from 'duiba-utils';
import React, { Component } from 'react'; // import { Timer } from 'teddi'; import React, { Component } from 'react';
import { Timer } from 'teddi';
import resList from '../../resconfig/resList'; //import API from '../../api'; import resList from '../../resconfig/resList'; //import API from '../../api';
import API from '../../api'; import API from '../../api';
import './loading.less'; import './loading.less';
import { Aup } from '../../pop';
class Loading extends Component { class Loading extends Component {
constructor(props) { constructor(props) {
...@@ -21,19 +21,16 @@ class Loading extends Component { ...@@ -21,19 +21,16 @@ class Loading extends Component {
Promise.all([this.getCountdown(), API.getRule()]).then(([, res]) => { Promise.all([this.getCountdown(), API.getRule()]).then(([, res]) => {
this.oncomplete(res); this.oncomplete(res);
}); });
} }
getCountdown() { getCountdown() {
return new Promise((r) => { return new Promise((r) => {
// const delta = 30; const delta = 30;
// const timer = new Timer(1 * 30, 1000 / 30); const timer = new Timer(1 * 30, 1000 / 30);
// timer.on('timer', this.onupdate, this); timer.on('timer', this.onupdate, this);
// timer.on('complete', r, this); timer.on('complete', r, this);
// timer.start(); timer.start();
// r(); // r();
r()
}); });
} }
...@@ -45,8 +42,6 @@ class Loading extends Component { ...@@ -45,8 +42,6 @@ class Loading extends Component {
this.props.navigateTo('mainpage', { this.props.navigateTo('mainpage', {
info: res.data, info: res.data,
}); });
Aup.show('Select', {}, this);
} }
render() { render() {
......
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