WeChat applet cloud development - check-in applet

foreword

I used uniapp's cloud development before, and spent a week developing a small program for clocking in. Later, because there was no time to write on the background page, it was abandoned. When looking at the WeChat document this time, I found that WeChat cloud development has a content management function, which can save the work of writing the background. It happened to be studying front-end engineering recently. Combining some of the things I learned at work, I used WeChat cloud development to write a new one. Small program, by the way, use what you have learned recently.

Mini Program Introduction

The currently implemented functions are relatively simple, and only realize the countdown function of the postgraduate entrance examination, carousel image display, check-in release function, check-in record, and personal data management. The function is simple, mainly to familiarize yourself with the usage of cloud development. You can check the effect by searching " lend me a rubber duck " on WeChat .

ui framework

vant applet component library.

code introduction

Combined with what I learned at work, I repackaged the caching function and added the publish and subscribe function, but it was not used this time.

image.pngAnd the life cycle is rewritten and injected to ensure that the business code must be executed after the user information is obtained. Component encapsulates custom navBar and tabBar. At present, the functions of navBar are relatively simple, and can only meet simple usage requirements. If other requirements are encountered in the future, it will be improved.

source code

The source code is as follows, everyone is welcome to download, learn and communicate.
github .

Guess you like

Origin blog.csdn.net/qq_42944436/article/details/124020819