Select the app development uniapp

July intend to do a simple app, before the company made a simple app when used Dcloud company mui, but because of uniapp just come out, chose mui. For uniapp of

understanding almost nothing.

Do app for me is almost zero basis, of course, the simpler the better able to complete the task.

At that time, understand Google's Flutter, it is developed for Dart, since me and my colleagues are feeling relatively high barriers to entry, add app development time compare with tight, so give up. Now Flutter relatively high frequency of updates, plus the support of Ali maker, before making app would be more tendencies.

Intended use mui, mui was due to performance issues also have been hesitant until you see uniappp again, to be the official "only to develop a code that can be published to IOS, Android, H5, and a variety of small programs (micro-channel / Alipay / Baidu / headlines / QQ / nails) and other platforms. ". At that time really it is attracted, which led into the pit start.

Briefly about the problems encountered in the development process:

1, the app onLaunch page life cycle can not jump, leading to login interception could not write the app onLaunch life cycle, only the first page is written pages.json the onLoad life cycle, can be achieved with the indirect, but not always in line with common sense.

If the official app onLaunch life cycle of the page jump if there is, then, using the timer delay in loading, but even log in to intercept the page jump or will execute in onLoad lifecycle pages.json the first page of the function, another official in onLaunch not support the life cycle of the page jump to do. (In fact, plus the delay can be achieved).

As of now or never figured in the end the line or not?

2, put on a github issue have been fruitless. . .

3, the so-called developing a code that can be published to multiple platforms, not what you thought it would be simple.

// #ifdef APP-PLUS

Andrews middle of writing native code

// # endif

own experience. . .

4. Eco-

official provided some components, but you certainly can not find the right components, then write it himself, and then to realize the function landscaping style, it can be hard on me.

If you want to have open source components vant that is certainly excellent.

5, development tools

used before HBuilder, for a real machine debugging quick to quit after the collapse of HBuilderX, this experience is bad enough, the key is a waste of time. ,

Say you so much good, but gitHub your star rising (more than 10,000 a), I hope you are getting well.

tips:

the line on the Android Market app development. ios Party has not requested, but I always wonder what would happen if the code is compiled into the IOS? Compiled into a micro-channel applet What happens? Today's headlines applet compiled into what will happen? Alipay small program compiled into what will happen? Compiled h5 I'm not worried.

If the compiler to micro-channel minor procedural issues are too much, I would definitely re-development of small micro-channel program, because I recently was doing micro letter applets, just used to practice hand.

2019-11-05 Update:

App chart needs an update, before use of echarts, the official recommended to upgrade to a custom mode (Hbuildx2.2.2 upgrade to 2.3.7), the official gives some upgrade suggestions and where it is needed to modify. According to the official program, echarts chart does not display an error after private letter forum administrator, the forum administrator reply recommended ucharts, you can understand the purpose, but the practice is really bad review. Look no upgrade documentation echarts alternative, into a recommended echarts.

Tucao: an open source software upgrades without regard to compatibility, sooner or later be abandoned.

2019-11-15 Update:

solve the app automatically log not return the correct data and load the home page of the issue.

pages.json first page put login, automatic logon onLoad login page. (If you have automatic logon token, not the user name password) This would solve the problem of execution main page main page before landing did not automatically return to its own request.

Flaw: Because automatic login is a login Jump to main, if the network is slow, then the page jump naked eye to see.

Additional login interception logic:

the system home page for the login, within login onLoad life cycle depending on whether there whether the token to determine the need for automatic login (username password success in exchange for token will be saved to the phone memory, the same Log the time will clear (refresh token request and other business failed when the error is cleared (such as device logged in, etc. in other devices))). After a successful login automatically jump to the mian, automatically jump to the login failed login (clears token), and then use the user name password.

Guess you like

Origin www.cnblogs.com/myskybeyond/p/11871771.html
Recommended