Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize background Management in the Development of Wechat Public platform

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article is about how to implement background management in the development of Wechat public platform. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

In the development of Wechat public platform, it is necessary to have a management background to manage various functions under the development mode. Corresponding to the functions of the official account, the functions to be managed are summarized as follows:

1. User management-save user openid and Wechat personal information (obtained by service number API), and associate with your own application system

2. User message record-users send all kinds of message records and menu click records. With these records, combined with customer service message interface and template message interface, the dialogue effect can be made and the user experience can be better.

3. Custom menu-edit management of custom menu, create and generate to Wechat

4. Keyword management-basic keywords, directly reply to picture and text messages or text messages, and those that are not in the keywords will be searched in the picture and text material library (micro website).

5. Picture and text material (or article management, micro-website management)-manage the picture-text material article. If there is a micro-website on the Wechat side, it is the micro-website management, manages the website content article, and uses it as the picture-text material at the same time.

6. Administrator-the administrator management function of this management background, which can be assigned according to permissions

7. WeChat Mall-the management of WeChat Mall is no different from that of PC Mall.

At present, the management background that I have been using is developed by MVC4.0. The whole project has only two main pages: list page and form page. Different functions of list page display different data, different functions of form page add and modify load different form data, and return through background code.

The overall menu is divided into the top and the left. Different administrators log in to load different menus, which are assigned by permissions:

Login:

Login succeeded:

Each top menu represents the distinction of major functions, and each left menu represents a list of functions in which other specific functions are included (add, modify, delete, disable, export data, create to Wechat, etc.).

The list page is similar to:

Public ActionResult Index (string tb) {if (! string.IsNullOrWhiteSpace (tb)) {string t = tb.ToLower (). Replace ("list", ""); dbHome = FContext.WeiXinDbContext () / /-load initialization, assignment-- Load () / / delete-if (Request.QueryString ["action"]! = null) {if (Request.QueryString ["action"] = = "delete") {if ("ttt" .Conception (t.ToLower () {} else {SoftDelete (Request.QueryString ["id"] T) } / /-return different list, search, Path-- switch (t.ToLower ()) {case "article": Article () Break; case "artsort": ArtSort (); break; case "region": Region (); break Case "offerpro": OfferPro (); break; case "offer": Offer (); break; case "orders": Order () Break; case "product": Product (); break; case "proattr": ProAttr (); break Case "prosort": ProSort (); break; case "user": User (); break; case "sysuser": SysUser () Break; case "keyword": KeyWord (); break; case "weiuser": WeiUser (); break Case "personalmenu": PersonalMenu (); break;} string strPage = Jun.Tools.Pager.PagerHtmlStr (pageSize, pageIndex, count, 8, "previous", "next", "...", "..."); ViewBag.Pager = strPage DbHome.Dispose (); return View ();} return View ();}

Pass different functional identifiers as parameters to the list page, and then execute different methods to return different json data and display the results; the list page also has a query function

Results:

The columns denote drop-down selections (select option). All the drop-down selections are similar. They write non-default select with p and css:

Other features in the list are found in the header of the list:

Click add to open the form page, add new data and edit modified data to share the same form. Use parameters to distinguish whether to modify or add, modify to load data, and add blank to add. Take, for example, adding graphics and text materials (articles on micro-websites):

Among them, the submit-return button is always fixed at the bottom and does not scroll with the scroll bar, whether the top checkbox function makes it slide left and right like a mobile phone.

The thumbnail is the small picture of the list page in the picture and text message. After clicking, the picture upload box will pop up:

After the upload is completed, the mouse can be placed on the button to preview

OK self-use Wechat public platform management background is like this, the whole feel at first glance that there are few functions, because the main framework only put a few commonly used list entries, a lot of functions hidden in the internal, screenshots are not involved, on this basis can do any management: mall (PC end or WeChat mall), corporate websites, news sites and so on. Follow-up plans to add customer service conversation management, that is, the combination of message recording and customer service, template interface to achieve the same effect as QQ chat.

Attach an order management section of the mall management in use (if you do a mall on Wechat, this is the management of the mall):

Thank you for reading! This is the end of the article on "how to achieve background management in the development of Wechat public platform". I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it out for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report