当前位置:网站首页>Develop small programs and official account from zero [phase II]

Develop small programs and official account from zero [phase II]

2022-06-23 18:54:00 sky-coder

The last issue mainly explained how to buy and choose linux System , And pagoda construction 、 Build the required development environment , And the front end of the applet ui Frame selection , Wechat public platform and applet backend api Model selection of access frame , And overall php Frame selection

You can search through wechat Invertebrate monster , Follow and view the developed finished products

First of all, from a small program framework

Because I didn't often develop small programs before , It can be said that I haven't developed a small program for a long time , So it can also be regarded as the initial development .
 
At that time, I always had many old small program rules in my mind , Without looking through the latest applet's partial invocation rules , On the small program design .
 
So when developing small programs , Many of the original design schemes are not feasible , Thus, many implementation methods and schemes have been changed .

The following is my advice for developing small programs :

When designing and developing small programs, you must carefully check the latest small program documentation , Avoid detours , Lead to repetitive work and implementation design .

Okay , No more nonsense , Let's start with our main content

Front end framework for small programs , I chose iview weapp frame .

Why use this framework ?

Because when I was developing the backend, I always used iview frame , So I chose it directly

Why use framework development ?

Because fast , You don't need much code , You can achieve what you want , At best, do some more css Fine tuning of

How does the framework work ?

In fact, the official has given a tutorial on how to use it , If you still don't understand , You can watch my next tutorial , Will teach you how to use in detail !

The small program page I made is very simple , Because I only developed this small program for the convenience of myself and my friends , Of course, it is also open to friends in need

Let me give you a brief look at the page of the small program :

At present, you can only see two and pages , One is the URL Analysis page , One is the file download page .

There is also a binding page , It is closed for the time being , Because there is no need to bind , So I won't show it to you for the time being .

First, the home page :

 Insert picture description here

The home page is actually very simple , It's just an announcement , A line of words , An input box , Add another button , Then the prompt text .

Doesn't it look very simple ? In this page, I introduced the public pages at the head and the tail respectively , Only the middle title 、 Text boxes and buttons are the contents of this page

The second page is the file download page , Pictured :

 Insert picture description here

It's also very simple. , Isn't it ? There is only one button to share the download

It's easy not to look at these two pages , But there are many logical designs , I have made many detours in the logical processing and implementation of these two pages

The page is simple , Use it directly ui Just fine tune the frame .

The main writing is in logic , for example :

  1. How to encapsulate the public request method
  2. How to verify an encryption request with the backend
  3. The specific use of applet functions
  4. How to design user interaction

There are many points to consider , I won't list them all , This issue mainly tells you about small programs ui frame 、 The page display of the small program I have made 、 What to pay attention to .

The main development content will start from the next phase
 
The tutorial will teach you :

  1. How to use and view applet calls and help documents
  2. How to use ui Component layout
  3. How to write wxss
  4. How to encapsulate functions ( My own way , Not necessarily )
  5. How to interact with the background
  6. How to formulate signature verification rules, etc
     
    The tutorial will continue to update , Like friends can continue to pay attention to me ~
原网站

版权声明
本文为[sky-coder]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206231752313095.html