The statement

This is not an official nuggets mini-programAPPCorresponding official small program), completely for the third party developers to develop, only for learning exchange, prohibited for other purposes. To use the official version, visit nuggetsThe official website, or download the nuggets official APP, or visit the nuggets official other ways.

The applet allAPIBoth from nuggets officialswebWebsite and officialAndroidAPP(inwebGive priority to),UIcopyRefer to nuggets officialAndroidAPP (Ver 5.4.3). Partial static resources (icon, pictures, etc.) directly from nuggets officialsapkIt was handcuffed from the inside.

The code for this small program is open source,Click to view the source codeStar at will. You can also scan the small program code below to experience directly.

stakeholders

There is no

Sorry, I changed the name of the article

Maybe because of the name of the article, the article in a platform was judged as spam, and then, then, I changed the name…

The specific implementation

Some time ago wrote a simple small program QuietWeather, source code here, the specific implementation can be viewed in this article: two days of a weather application micro channel small program. But this nuggets small program and QuietWeather is completely not an order of magnitude, say that the specific implementation, days black, here directly on the effect, interested can view the source code. The actual experience can be scanned at 👆.

rendering

The corresponding page can open the nuggets official APP comparison

PC developer tool recording, there will be some lag

Article data entry adjustment, also retained animation, please ignore GIF stuck

To complete the degree

APP what’s inside is really many, including pages and interaction, to completely copy implementation does require some time and energy, such as UI is simple measurement + debugging to the naked eye, below is a list of pages and interactive completion, there should be only lists the most (or that sentence above, APP and it is what many), Unlisted, unimplemented follow-ups are implemented based on time and effort.

The actual completion degree should be based on the code (the online small program will also be updated continuously).

Page completion

Does not seem to supportmarkdownHow do I write my to-do list? QAQ

  • [x] start page
  • [x] Logon, logoff jump logic and page data refresh logic
  • [x] HOME, search, boiling point, small volume TAB refers to the drop-down, drop-down refresh
  • [x] POST, ENTRY (different article types) details page
  • [ ] HOME TAB
    • [x] home page
      • [X]
      • [x] Lower list
    • [] Tag display related
  • [] Search for TAB
    • [x] Top rotation
    • [X]
    • [] Search function related
    • [] It’s the hottest this week
    • [] Collection
      • []…
    • [] activities
      • []…
  • [] Boiling point TAB
    • [] to recommend
      • [x] top hot boiling point
      • [x] boiling point list
      • [x] boiling point details
    • [] the topic
    • [] dynamic
    • [] Release boiling point
  • [] TAB
    • [x] Small volume list
    • [] Volume details
  • [] My TAB
    • [] Personal homepage
      • [x] Article data
      • [] to edit
      • [] Follow, followed list
      • [x] dynamic pages
      • [x] boiling point
      • [x] Original article page
      • [x] collection
        • [] Collection details page
      • [X] Favorite article
      • [x] Tag of concern
        • [] TAB details page
    • [x] I like it
    • [x] collection
    • [] Pamphlets have been purchased
    • The boiling point of [x]
    • [x] articles read
    • [x] Label management
      • [x] Paid attention to the label
      • [x] All labels
        • [x] Recommended label
        • [x] All labels
    • [] Night mode
    • [X] Feedback (different from the official APP, here is a simple page about it)
    • [] set
      • []…
  • [x] login page
  • [] Registration page
  • [] Modify the password page
  • [x] Other completions…
  • [] Unfinished part…

Degree of interaction completion

Comments, messages, attention, add to the collection, like, publish boiling point and so on are not realized for the time being, because the APP is really a lot of things……

  • [] comments
  • [] to leave a message
  • [] attention
  • [] like
  • [] Unfinished part…

instructions

  • 1, words nuggetsAPIDomain name (level 2) is really much ah, small program background domain name whitelist can only match20It is now occupied16There you go. Feel completeFinish copyTo realize the nuggetsAPPVersion of the small program, the quota is not enough. If not, we’ll have to build oneserverThe agent;
  • 2. Only certain interfaces are availableAPPYes, the request field needs to followwebA slight adjustment of; Set corresponding parameters for individual interfacesheader;
  • 3. The article details page returns the entire articlehtmlThe format ofcontentThis is open sourcewxParseRich text parsing;
  • 4, due to the limitation of small program, third partyurlNot in thewebviewOpen, so the article inside the chain can point to open I lose;
  • 5, development, individual details need to pay a little attention to, such as: boiling pointtabPage, if it has slid to the top,onShowGet new data, otherwise, no refresh; When not logged in, home pageAPPThe API called isget_recommended_entry.Is lazyStill used in small programs for convenienceget_entry_by_timeline; The other is not a tautology, details can beView the source code;
  • 6, becauseAccount permissions and other issuesThere are someAPINeed to be in the right place at the right time, partiallyAPIThe returned data format is not available, so the corresponding page is not written, such as: system message page (there has been no system message recently);
  • 7, part of the data may not be completely covered, such as: the user message, currently listedcategorycollection,comment,follow,comment-like,pin-like,pin-comment, there may also be other message types, encountered will be filled; Dynamic pages, same problem; There may be other data that is not fully covered;
  • 8, click on some articles to enter the details page will promptillegal tokenThe request parameters need to be adjusted slightly, or the article type needs to be determined. Small problems like this will be adjusted and supplemented later;
  • 9. Mini-programs (not mini-games) lie in onesmallWord should be a condensed version of an application, not a rich and colorful oneAPP100%Copy version, so it will appear more bloated, should have herebut, the small program is only for the purpose of learning communication, so this problem is not within our consideration;
  • 10, login now only mobile phone number login, email login to forget, back to add;
  • I also have a dream of life;

Please indicate the source of reprint