Commit d3399471 by 黄日华

增加引导语音

parent b308e370
src/assets/Vertical/guide.jpg

39.9 KB | W: | H:

src/assets/Vertical/guide.jpg

32.1 KB | W: | H:

src/assets/Vertical/guide.jpg
src/assets/Vertical/guide.jpg
src/assets/Vertical/guide.jpg
src/assets/Vertical/guide.jpg
  • 2-up
  • Swipe
  • Onion skin
...@@ -36,8 +36,6 @@ import {ossLink} from '../utils/config'; ...@@ -36,8 +36,6 @@ import {ossLink} from '../utils/config';
let pageSize = 8; // 分页大小 let pageSize = 8; // 分页大小
window.pageSize = pageSize; window.pageSize = pageSize;
// const wait = t => new Promise(resolve => setTimeout(resolve, t));
class VerticalPage extends Component { class VerticalPage extends Component {
state = { state = {
contact: '', contact: '',
...@@ -90,6 +88,10 @@ class VerticalPage extends Component { ...@@ -90,6 +88,10 @@ class VerticalPage extends Component {
await this.refreshLogo(); await this.refreshLogo();
} }
async componentDidMount() {
await this.listen();
}
initSetting = () => { initSetting = () => {
AutoClick.isSettingsOn().then(setting => { AutoClick.isSettingsOn().then(setting => {
if (!setting) this.setState({setting: true}); // 展示辅助按钮 if (!setting) this.setState({setting: true}); // 展示辅助按钮
...@@ -103,10 +105,6 @@ class VerticalPage extends Component { ...@@ -103,10 +105,6 @@ class VerticalPage extends Component {
await AutoClick.goSetting(); // 按钮跳转设置 await AutoClick.goSetting(); // 按钮跳转设置
}; };
async componentDidMount() {
this.listen();
}
listen = async () => { listen = async () => {
try { try {
while (!window.socket) { while (!window.socket) {
...@@ -1764,27 +1762,28 @@ const styles = { ...@@ -1764,27 +1762,28 @@ const styles = {
zIndex: 999999999999999, zIndex: 999999999999999,
elevation: 6, elevation: 6,
display: 'flex', display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
width: '100%', width: '100%',
height: '100%', height: '100%',
backgroundColor: '#0C0C0C', backgroundColor: '#0C0C0C',
}, },
guardModal_image: { guardModal_image: {
height: '65%', height: '60%',
width: '100%',
display: 'flex', display: 'flex',
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
}, },
Imageee: { Imageee: {
minHeight: '60%', height: '100%',
}, },
guardModal_button: { guardModal_button: {
height: '35%',
width: '100%', width: '100%',
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
justifyContent: 'center', justifyContent: 'flex-start',
alignItems: 'center', alignItems: 'center',
marginTop: '10%',
}, },
guardModal_button_call: { guardModal_button_call: {
backgroundColor: '#fc4000', backgroundColor: '#fc4000',
......
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