[go: up one dir, main page]

TWI757743B - Mini program generation method and device - Google Patents

Mini program generation method and device Download PDF

Info

Publication number
TWI757743B
TWI757743B TW109116400A TW109116400A TWI757743B TW I757743 B TWI757743 B TW I757743B TW 109116400 A TW109116400 A TW 109116400A TW 109116400 A TW109116400 A TW 109116400A TW I757743 B TWI757743 B TW I757743B
Authority
TW
Taiwan
Prior art keywords
template
target
applet
component
module
Prior art date
Application number
TW109116400A
Other languages
Chinese (zh)
Other versions
TW202113586A (en
Inventor
狄群
Original Assignee
開曼群島商創新先進技術有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 開曼群島商創新先進技術有限公司 filed Critical 開曼群島商創新先進技術有限公司
Publication of TW202113586A publication Critical patent/TW202113586A/en
Application granted granted Critical
Publication of TWI757743B publication Critical patent/TWI757743B/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

本說明書實施例揭示了一種小程式產生方法以及裝置,透過在接收到範本選擇請求時,從範本資料庫中選擇目標範本,並透過接收針對所述目標範本的頁面配置資訊,根據所述頁面配置資訊對所述目標範本進行配置,可以快速地獲得目標小程式。The embodiments of the present specification disclose a method and apparatus for generating an applet, by selecting a target template from a template database when receiving a template selection request, and by receiving page configuration information for the target template, according to the page configuration The information configures the target template, and the target applet can be obtained quickly.

Description

小程式產生方法以及裝置Mini program generation method and device

本說明書實施例係有關電腦技術領域,尤其有關一種小程式產生方法以及裝置。 The embodiments of the present specification relate to the field of computer technology, and in particular, to a method and apparatus for generating a small program.

隨著移動終端處理速度的不斷提升,在移動終端中運行的應用程式也越來越多。透過應用程式可以高效、準確地完成對資料的運算處理,給人們的生活和工作帶來了極大的便利。應用程式需要下載和安裝,而小程式是一種不需要下載安裝即可使用的應用程式。對於用戶來說,小程式能夠節約使用時間成本和移動終端的儲存空間;對於開發者來說,小程式能夠節約開發和推廣成本。因此,小程式作為大型網際網路平台類產品的重要組成部分,未來將有較為廣闊的發展前景。 With the continuous improvement of the processing speed of the mobile terminal, there are more and more applications running in the mobile terminal. Through the application, the operation and processing of the data can be completed efficiently and accurately, which brings great convenience to people's life and work. An application needs to be downloaded and installed, and an applet is an application that can be used without downloading and installing. For users, mini programs can save time and storage space of mobile terminals; for developers, mini programs can save development and promotion costs. Therefore, as an important part of large-scale Internet platform products, Mini Programs will have relatively broad development prospects in the future.

本說明書實施例提供一種小程式產生方法以及裝置。 第一態樣,本說明書實施例提供一種小程式產生方法,包括: 接收範本選擇請求; 根據所述範本選擇請求從範本資料庫中選擇目標範本,所述範本資料庫用於儲存一個以上小程式範本; 接收針對所述目標範本的頁面配置資訊; 根據所述頁面配置資訊對所述目標範本進行配置,獲得目標小程式。 第二態樣,本說明書實施例提供一種小程式產生裝置,包括: 第一接收模組,用於接收範本選擇請求; 第一選擇模組,用於根據所述範本選擇請求從範本資料庫中選擇目標範本,所述範本資料庫用於儲存一個以上小程式範本; 第二接收模組,用於接收針對所述目標範本的頁面配置資訊; 配置模組,用於根據所述頁面配置資訊對所述目標範本進行配置,獲得目標小程式。 第三態樣,本說明書實施例提供一種伺服器,包括記憶體、處理器以及儲存在所述記憶體上並可在所述處理器上運行的電腦程式,所述處理器執行所述電腦程式時實現上述小程式產生方法的步驟。 第四態樣,本說明書實施例提供一種電腦可讀儲存媒體,其上儲存有電腦程式,所述電腦程式被處理器執行時實現上述小程式產生方法的步驟。 本說明書實施例有益效果如下: 本說明書實施例中,透過在接收到範本選擇請求時,從範本資料庫中選擇目標範本,並透過接收針對所述目標範本的頁面配置資訊,根據所述頁面配置資訊對所述目標範本進行配置,可以快速地獲得目標小程式。由於所述目標範本是預先創建好保存在所述範本資料庫中的,在小程式創建時只需要根據商家提供的頁面配置資訊進行頁面配置,因而在實現小程式的資料展示、樣式差異化等能力的同時,對於商家來說降低了小程式的開發難度,能夠快速地打造屬於商家自己的小程式,從而縮短了小程式的開發週期,降低了小程式的開發成本。 Embodiments of the present specification provide a method and apparatus for generating an applet. In a first aspect, an embodiment of this specification provides a method for generating a small program, including: receive template selection requests; selecting a target template from a template database for storing more than one applet template according to the template selection request; receive page configuration information for the target template; The target template is configured according to the page configuration information to obtain a target applet. In a second aspect, an embodiment of the present specification provides an apparatus for generating a small program, including: a first receiving module for receiving a template selection request; a first selection module, used for selecting a target template from a template database according to the template selection request, where the template database is used to store more than one applet template; a second receiving module, configured to receive page configuration information for the target template; The configuration module is used for configuring the target template according to the page configuration information to obtain the target applet. In a third aspect, an embodiment of this specification provides a server including a memory, a processor, and a computer program stored on the memory and running on the processor, and the processor executes the computer program When implementing the steps of the above-mentioned applet generating method. In a fourth aspect, an embodiment of the present specification provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned method for generating a small program are implemented. The beneficial effects of the embodiments of this specification are as follows: In the embodiment of this specification, when a template selection request is received, a target template is selected from the template database, and by receiving page configuration information for the target template, the target template is configured according to the page configuration information. , you can quickly get the target applet. Since the target template is pre-created and stored in the template database, when the applet is created, it is only necessary to configure the page according to the page configuration information provided by the merchant, thus realizing the data display and style differentiation of the applet, etc. At the same time, it reduces the difficulty of developing small programs for merchants, and can quickly create their own small programs, thereby shortening the development cycle of small programs and reducing the development cost of small programs.

為了更好地理解上述技術方案,下面透過圖式以及具體實施例對本說明書實施例的技術方案做詳細的說明,應當理解本說明書實施例以及實施例中的具體特徵是對本說明書實施例技術方案的詳細的說明,而不是對本說明書技術方案的限定,在不衝突的情況下,本說明書實施例以及實施例中的技術特徵可以相互組合。 第一態樣,本說明書實施例提供一種小程式產生方法。所述小程式產生方法應用於伺服器,所述伺服器可以是獨立的伺服器,也可以是由多個伺服器組成的伺服器集群。圖1是所述小程式產生方法的流程圖,所述小程式產生方法包括步驟S101至步驟S104。 步驟S101,接收範本選擇請求。 具體地,小程式是一種不需要下載和安裝就可以直接使用的應用程式,用戶可以透過掃描圖形碼(例如,二維碼或條碼等)或者透過搜尋引擎進行搜索就可以直接打開並使用小程式。本說明書實施例透過設置範本資料庫,在所述範本資料庫中儲存多個小程式範本供用戶選擇,其中,所述小程式範本為未進行頁面配置的小程式。所述範本選擇請求用於請求從所述範本資料庫中選擇目標範本,所述目標範本為用戶想要選擇的任意一個小程式範本。由於各個小程式範本具有不同的軟體架構,為對不同的小程式範本進行區分,可以預先為每個小程式範本設置對應的標識。因此,所述範本選擇請求可以包括所述目標範本的標識。 所述範本選擇請求可以由用戶透過終端設備的輸入裝置來產生,由所述終端設備發送給所述伺服器。所述終端設備可以為個人電腦、智慧型手機、平板電腦、桌上型電腦、一體式電腦等終端設備,所述輸入裝置可以為滑鼠、鍵盤、觸控螢幕或者語音輸入設備等。例如,若所述輸入裝置為滑鼠,可以透過所述終端設備的顯示裝置向用戶展示一個以上選擇按鈕,每個選擇按鈕對應一個小程式範本,當用戶採用滑鼠來點擊某個選擇按鈕時,即產生了該選擇按鈕對應的小程式範本對應的標識;又例如,若所述輸入裝置為鍵盤,可以透過所述終端設備的顯示裝置向用戶展示輸入區域,當用戶採用鍵盤在所述輸入區域輸入相應的選擇指令時,例如輸入“購物範本”、“加值範本”等選擇指令時,即產生了該選擇指令對應的小程式範本對應的標識。 步驟S102,根據所述範本選擇請求從範本資料庫中選擇目標範本,所述範本資料庫用於儲存一個以上小程式範本。 具體地,接收到所述範本選擇請求後,可以將所述目標範本對應的標識與所述範本資料庫中每個小程式範本對應的標識進行比對;若所述目標範本對應的標識與所述範本資料庫中某個小程式範本對應的標識匹配,則從所述範本資料庫中選擇該小程式範本作為所述目標範本。在本說明書實施例中,所述範本資料庫用於儲存一個以上小程式範本。需要說明的是,所述小程式範本可以由小程式開發方來開發,也可以由商家來開發,還可以由小程式開發方和商家來共同開發。 步驟S103,接收針對所述目標範本的頁面配置資訊。 具體地,所述頁面配置資訊用於確定目標小程式的頁面樣式,所述目標小程式為最終獲得的小程式,所述頁面樣式包括但不限於按鈕背景色、按鈕內容、視窗背景色、視窗內容、清單背景色以及清單內容等。所述頁面配置資訊的具體內容根據用戶實際需求來確定,本說明書實施例對此不進行限定。與所述範本選擇請求的產生類似,所述頁面配置資訊可以由用戶透過終端設備的輸入裝置來產生,所述輸入裝置可以為滑鼠、鍵盤、觸控螢幕或者語音輸入設備等。 例如,對於確定所述目標小程式的按鈕背景色、視窗背景色以及清單背景色等頁面樣式的頁面配置資訊,可以透過所述終端設備的顯示裝置向用戶展示需要配置的頁面樣式,每個頁面樣式對應多個配置選項。以頁面樣式為視窗背景色為例,該頁面樣式對應的多個配置選項可以為白色、紅色、黑色等顏色,當用戶採用滑鼠來點擊某個配置選項時,即產生了所述頁面配置資訊。又例如,對於確定所述目標小程式的按鈕內容、視窗內容以及清單內容等頁面樣式的頁面配置資訊,可以透過所述終端設備的顯示裝置向用戶展示需要配置的頁面樣式,每個頁面樣式對應一個輸入區域。以頁面樣式為視窗內容為例,當用戶在視窗內容對應的輸入區域輸入相關的文字時,即產生了所述頁面配置資訊。 步驟S104,根據所述頁面配置資訊對所述目標範本進行配置,獲得目標小程式。 在小程式開發過程中,程式都是以代碼的形式而存在的,所述目標範本也是以代碼的形式而存在。因此,在接收到所述頁面配置資訊後,將所述頁面配置資訊添加至所述目標範本中的預設位置,即完成了對所述目標範本的配置,獲得所述目標小程式。 本說明書實施例提供的小程式產生方法,由於所有小程式範本是預先創建好的,在小程式創建時只需要根據商家提供的頁面配置資訊來進行頁面配置,因而在實現小程式的資料展示、樣式差異化等能力的同時,對於商家來說降低了小程式的開發難度,能夠快速地打造屬於商家自己的小程式,從而縮短了小程式的開發週期,降低了小程式的開發成本。 在一種可選實現方式中,在所述獲得目標小程式之後,還包括:將所述目標小程式發布至小程式平台;或者,將所述目標小程式發送至終端設備。透過直接將所述目標小程式發布至小程式平台,可以由小程式開發方完成發布流程,適用於不具有開發能力的商家;而透過將所述目標小程式發送至終端設備,可以由具有開發能力的商家自己對所述目標小程式進行管理和發布。 在一種可選實現方式中,所述小程式範本可以透過圖2所示的流程獲得。 步驟S201,接收組件選擇請求。 具體地,小程式是由組件所構成,所述組件包括但不限於按鈕、輸入框、清單、彈出視窗以及日期選擇器等。每個組件可以單獨使用,也可以和其他組件組合起來共同使用。例如,按鈕可以根據用戶的點擊動作來打開一個清單。對於組成具有純介面的小程式範本的各個組件,其是單獨使用的。本說明書實施例透過設置組件資料庫,在所述組件資料庫中儲存多個組件供用戶選擇。所述組件選擇請求用於請求從所述組件資料庫中選擇目標組件,所述目標組件為用戶想要選擇的任意一個或多個組件。為對不同的組件進行區分,可以預先為每個組件設置對應的標識。因此,所述組件選擇請求可以包括所述目標組件的標識。 與所述範本選擇請求的產生類似,所述組件選擇請求可以由用戶透過終端設備的輸入裝置來產生,所述輸入裝置可以為滑鼠、鍵盤、觸控螢幕或者語音輸入設備等。例如,若所述輸入裝置為滑鼠,可以透過所述終端設備的顯示裝置向用戶展示一個以上選擇按鈕,每個選擇按鈕對應一個組件,當用戶採用滑鼠來點擊某個選擇按鈕時,即產生了該選擇按鈕對應的組件對應的標識;又例如,若所述輸入裝置為鍵盤,可以透過所述終端設備的顯示裝置向用戶展示輸入區域,當用戶採用鍵盤在所述輸入區域輸入相應的選擇指令時,例如輸入“按鈕”、“清單”等選擇指令時,即產生了該選擇指令對應的組件對應的標識。 步驟S202,根據所述組件選擇請求從組件資料庫中選擇目標組件,所述組件資料庫用於儲存一個以上組件。 具體地,接收到所述組件選擇請求後,可以將所述目標組件對應的標識與所述組件資料庫中每個組件對應的標識進行比對;若所述目標組件對應的標識與所述組件資料庫中某個組件對應的標識匹配,則從所述組件資料庫中選擇該組件作為所述目標組件。需要說明的是,所述一個以上組件可以由小程式開發方來開發,也可以由商家來開發。通常,一個小程式都是由一系列組件所構成,因此在創建小程式範本時也需要選擇多個組件。在一種可選實現方式中,可以透過多次重複執行步驟S201和步驟S202,每執行一次步驟S201和步驟S202就從所述組件資料庫中選擇一個相應的組件。在另一種可選實現方式中,所述組件選擇請求可以包括兩個以上組件對應的標識,根據兩個以上組件對應的標識,一次性地從所述組件資料庫中選擇兩個以上相應的組件,本說明書實施例對此不進行限定。 步驟S203,對所述目標組件進行組合,獲得具有純介面的小程式範本或者業務範本,其中,所述業務範本具有互動式介面。 不同組件在小程式介面所處的位置也是不一樣的,每個組件在小程式介面所處的位置可以在組件開發時預先進行設定。在對所述目標組件進行組合時,可以按照每個組件在小程式介面所處的位置進行組合。在一種可選實現方式中,在對所述目標組件進行組合時,還可以即時顯示所述小程式範本。透過即時顯示所述小程式範本,當用戶對所述組件的目前所處位置不滿意的時候,可以透過拖曳的方式來改變所述組件在小程式介面所處的位置。 進一步地,根據所述目標組件組合構成的小程式範本是否帶有業務流程,可以將所述小程式範本歸為兩類:一類是具有純介面的小程式範本,僅僅有視覺介面的呈現,組成所述具有純介面的小程式範本的各個組件之間無法建構關聯關係;另一類是業務範本,所述業務範本具有互動式介面,帶有業務流程,組成所述業務範本的各個組件之間可以建構關聯關係。 步驟S204,將所述具有純介面的小程式範本或者所述業務範本保存至所述範本資料庫。 所述具有純介面的小程式範本可以直接被選擇作為所述目標範本,而所述業務範本需要用戶把範本下載,自己增加業務屬性,例如增加介面資料請求、頁面跳轉等業務邏輯。因此,在一種可選實現方式中,所述小程式範本可以透過圖3所示的流程來獲得。 步驟S301,在將所述業務範本保存至所述範本資料庫之後,接收範本下載請求。 所述範本下載請求用於請求從所述範本資料庫中下載所述業務範本,與所述範本選擇請求類似,所述範本下載請求可以包括用戶想要下載的業務範本對應的標識。具體地,所述範本下載請求可以由用戶透過個人電腦、智慧型手機、平板電腦、桌上型電腦、一體式電腦等終端設備的輸入裝置來產生,所述輸入裝置可以為滑鼠、鍵盤、觸控螢幕或者語音輸入設備等。例如,若所述輸入裝置為滑鼠,可以透過所述終端設備的顯示裝置向用戶展示一個以上下載按鈕,每個下載按鈕對應一個業務範本,當用戶採用滑鼠來點擊某個選擇按鈕時,即產生了該選擇按鈕對應的業務範本對應的標識;又例如,若所述輸入裝置為鍵盤,可以透過所述終端設備的顯示裝置向用戶展示輸入區域,當用戶採用鍵盤在所述輸入區域輸入相應的下載指令時,例如輸入“購物範本”、“加值範本”等下載指令時,即產生了該選擇指令對應的業務範本對應的標識。 步驟S302,根據所述範本下載請求將所述業務範本發送給終端設備。 具體地,接收到所述範本下載請求後,可以將用戶想要下載的業務範本對應的標識與所述範本資料庫中每個小程式範本對應的標識進行比對;若用戶想要下載的業務範本的標識與所述範本資料庫中某個小程式範本對應的身份標識匹配,則從所述範本資料庫中選擇該小程式範本作為用戶想要下載的業務範本的標識,將所述業務範本發送給終端設備。 步驟S303,接收所述終端設備返回的調整後的業務範本,其中,所述調整後的業務範本是所述終端設備根據預設業務邏輯對所述業務範本中各個組件進行關聯而得到的。 由於各個組件可以根據用戶的操作指令執行相應的事件,因此每個組件都具有各自的基本邏輯功能。根據組件的基本邏輯功能,商家的開發人員可以根據需要小程式實現的功能,將組件之間的關係進行組合,也就是確定出各個組件之間的關聯關係。例如,針對購物小程式,涉及商品評價按鈕和評價輸入框等組件,當用戶想要對某個商品進行評價時,可以透過點擊商品評價按鈕,介面上就會出現評價輸入框,透過在所述評價輸入框內輸入評價內容,實現對商品的點評。由上述舉例可以看出,商品評價按鈕組件和評價輸入框組件之間存在關聯關係。對所述業務範本中各個組件進行關聯,就是將所述業務範本中各個組件的關聯關係產生邏輯代碼。本領域技術人員知曉如何建立各個組件之間的關聯關係,在此不再贅述。對所述業務範本中各個組件進行關聯後,就獲得了所述調整後的業務範本,所述終端設備將所述調整後的業務範本上傳至所述伺服器。 步驟S304,將所述調整後的業務範本保存至所述範本資料庫。 在一種可選實現方式中,在所述根據所述頁面配置資訊對所述目標範本進行配置時,還可以即時顯示所述目標小程式。圖4是所述即時顯示所述目標小程式的流程圖,所述即時顯示所述目標小程式包括步驟S401至步驟S405。 步驟S401,接收所述目標範本中各個組件對應的組件資訊。 在對所述目標範本進行配置的過程中,若用戶想要即時顯示所述目標小程式,可以透過終端設備向所述伺服器發送所述目標範本中各個組件對應的組件資訊,所述組件資訊通常組裝成json格式的字串傳輸。 步驟S402,根據所述組件資訊獲得所述目標範本中各個組件對應的組件代碼。 在接收到所述組件資訊後,由於所述組件資訊是json格式的字串,因而需要對json格式的字串進行解析,解析後獲得所述組件資訊。獲得所述組件資訊後,根據所述組件資訊拉取所述目標範本中各個組件對應的組件代碼。 步驟S403,將所述組件代碼封裝成應用程式。 在本實施例中,組件是透過react來開發,因而可以透過react來封裝編譯框架,將所述組件代碼封裝成一個小型的應用程式。 步驟S404,為所述應用程式產生URL位址。 封裝完成之後,啟動dev-server服務,產生一個本地服務,產生所述應用程式的URL位址。 步驟S405,將所述URL位址發送至終端設備,由所述終端設備根據所述URL位址來存取所述目標小程式對應的頁面。 將所述URL位址發送至終端設備後,用戶可以在本地存取所述目標小程式對應的頁面,實現所述目標小程式的即時顯示。 需要說明的是,本說明書實施例提供的小程式範本創建方法,組件的創建和範本的創建都是面向三方的,也就是說允許任何開發者、工程師以及營運人員來共同創建組件或者小程式範本,實現組件和小程式範本共用。 第二態樣,基於同樣的發明構思,本說明書實施例提供一種小程式產生裝置。所述小程式產生裝置包括: 第一接收模組,用於接收範本選擇請求; 第一選擇模組,用於根據所述範本選擇請求從範本資料庫中選擇目標範本,所述範本資料庫用於儲存一個以上小程式範本; 第二接收模組,用於接收針對所述目標範本的頁面配置資訊; 配置模組,用於根據所述頁面配置資訊對所述目標範本進行配置,獲得目標小程式。 在一種可選實現方式中,所述小程式產生裝置還包括: 第三接收模組,用於接收組件選擇請求; 第二選擇模組,用於根據所述組件選擇請求從組件資料庫中選擇目標組件,所述組件資料庫用於儲存一個以上組件; 組合模組,用於對所述目標組件進行組合,獲得具有純介面的小程式範本或者業務範本,其中,所述業務範本具有互動式介面; 第一保存模組,用於將所述具有純介面的小程式範本或者所述業務範本保存至所述範本資料庫。 在一種可選實現方式中,所述小程式產生裝置還包括: 第四接收模組,用於在將所述業務範本保存至所述範本資料庫之後,接收範本下載請求; 第一發送模組,用於根據所述範本下載請求將所述業務範本發送給終端設備; 第五接收模組,用於接收所述終端設備返回的調整後的業務範本,其中,所述調整後的業務範本是所述終端設備根據預設業務邏輯對所述業務範本中各個組件進行關聯而得到的; 第二保存模組,用於將所述調整後的業務範本保存至所述範本資料庫。 在一種可選實現方式中,所述小程式產生裝置還包括: 顯示模組,用於在所述根據所述頁面配置資訊對所述目標範本進行配置時,即時顯示所述目標小程式。 在一種可選實現方式中,所述顯示模組包括: 第六接收模組,用於接收所述目標範本中各個組件對應的組件資訊; 組件資訊獲得模組,用於根據所述組件資訊獲得所述目標範本中各個組件對應的組件代碼; 封裝模組,用於將所述組件代碼封裝成應用程式; 位址產生模組,用於為所述應用程式產生URL位址; 第二發送模組,用於將所述URL位址發送至終端設備,由所述終端設備根據所述URL位址來存取所述目標小程式對應的頁面。 在一種可選實現方式中,所述小程式產生裝置還包括: 發布模組,用於將所述目標小程式發布至小程式平台;或者, 第三發送模組,用於將所述目標小程式發送至終端設備。 第三態樣,基於與前述實施例中小程式產生方法同樣的發明構思,本說明書實施例還提供一種電腦設備,如圖5所示。所述電腦設備包括記憶體504、處理器502以及儲存在所述記憶體504上並可在所述處理器502上運行的電腦程式,所述處理器502執行所述電腦程式時實現前述實施例中小程式產生方法的步驟。 在圖5中,匯流排架構用匯流排500來代表,匯流排500可以包括任意數量的互聯的匯流排和橋,匯流排500將包括由處理器502代表的一個或多個處理器和記憶體504代表的記憶體的各種電路連結在一起。匯流排500還可以將諸如周邊設備、穩壓器和功率管理電路等之類的各種其他電路連結在一起,這些都是本領域所公知的,因此,本文不再對其進行進一步描述。匯流排介面505在匯流排500和接收器501和發送器503之間提供介面。接收器501和發送器503可以是同一個元件,即收發機,提供用於在傳輸媒體上與各種其他裝置通訊的單元。處理器502負責管理匯流排500和通常的處理,而記憶體504可以被用於儲存處理器502在執行操作時所使用的資料。 第四態樣,基於與前述實施例中小程式產生方法同樣的發明構思,本說明書實施例還提供一種電腦可讀儲存媒體,其上儲存有電腦程式,該程式被處理器執行時實現前述實施例中小程式產生方法的步驟。 本說明書是參照根據本說明書實施例的方法、設備(系統)、和電腦程式產品的流程圖和/或方塊圖來描述的。應理解可由電腦程式指令實現流程圖和/或方塊圖中的每一個流程和/或方塊、以及流程圖和/或方塊圖中的流程和/或方塊的結合。可提供這些電腦程式指令到通用電腦、專用電腦、嵌入式處理機或其他可編程資料處理設備的處理器以產生一個機器,使得透過電腦或其他可編程資料處理設備的處理器執行的指令產生用於實現在流程圖中的一個流程或多個流程和/或方塊圖中的一個方塊或多個方塊中指定的功能的設備。 這些電腦程式指令也可被儲存在能引導電腦或其他可編程資料處理設備以特定方式操作的電腦可讀記憶體中,使得儲存在該電腦可讀記憶體中的指令產生包括指令設備的製造品,該指令設備實現在流程圖中的一個流程或多個流程和/或方塊圖中的一個方塊或多個方塊中指定的功能。 這些電腦程式指令也可被裝載到電腦或其他可編程資料處理設備上,使得在電腦或其他可編程設備上執行一系列操作步驟以產生電腦實現的處理,從而在電腦或其他可編程設備上執行的指令提供用於實現在流程圖中的一個流程或多個流程和/或方塊圖中的一個方塊或多個方塊中指定的功能的步驟。 儘管已描述了本說明書的較佳實施例,但本領域內的技術人員一旦得知了基本創造性概念,則可對這些實施例作出另外的變更和修改。所以,所附申請專利範圍意欲解釋為包括較佳實施例以及落入本說明書範圍中的所有變更和修改。 顯然,本領域的技術人員可以對本說明書進行各種改動和變型而不脫離本說明書的精神和範圍。這樣,倘若本說明書的這些修改和變型屬於本說明書申請專利範圍及其等同技術的範圍之內,則本說明書也意圖包含這些改動和變型在內。 In order to better understand the above technical solutions, the technical solutions of the embodiments of this specification will be described in detail below through the drawings and specific examples. The detailed description is not intended to limit the technical solutions of the present specification, and the embodiments of the present specification and the technical features in the embodiments may be combined with each other under the condition of no conflict. In a first aspect, an embodiment of the present specification provides a method for generating an applet. The applet generating method is applied to a server, and the server may be an independent server or a server cluster composed of multiple servers. FIG. 1 is a flowchart of the applet generating method, and the applet generating method includes steps S101 to S104. Step S101, receiving a template selection request. Specifically, an applet is an application that can be used directly without downloading and installing. Users can directly open and use the applet by scanning a graphic code (for example, a QR code or barcode, etc.) or searching through a search engine. . In the embodiment of this specification, a template database is set, and a plurality of applet templates are stored in the template database for the user to select, wherein, the applet templates are the applet without page configuration. The template selection request is used for requesting to select a target template from the template database, where the target template is any applet template that the user wants to select. Since each applet template has a different software structure, in order to distinguish different applet templates, a corresponding identifier can be set for each applet template in advance. Accordingly, the template selection request may include an identification of the target template. The template selection request may be generated by a user through an input device of a terminal device, and sent by the terminal device to the server. The terminal device may be a personal computer, a smart phone, a tablet computer, a desktop computer, an all-in-one computer, etc., and the input device may be a mouse, a keyboard, a touch screen, or a voice input device. For example, if the input device is a mouse, more than one selection button can be displayed to the user through the display device of the terminal device, and each selection button corresponds to a small program template. When the user uses the mouse to click a selection button , that is, the identifier corresponding to the applet template corresponding to the selection button is generated; for another example, if the input device is a keyboard, the input area can be displayed to the user through the display device of the terminal device. When a corresponding selection command is input in the area, for example, when a selection command such as "shopping template" and "value-added template" is input, an identifier corresponding to the mini-program template corresponding to the selection command is generated. Step S102 , according to the template selection request, select a target template from a template database for storing more than one applet template. Specifically, after receiving the template selection request, the identifier corresponding to the target template can be compared with the identifier corresponding to each applet template in the template database; If the identifier corresponding to a certain applet template in the template database matches, the applet template is selected from the template database as the target template. In the embodiment of this specification, the template database is used to store more than one applet template. It should be noted that the mini-program template may be developed by the mini-program developer, or by the merchant, and may also be jointly developed by the mini-program developer and the merchant. Step S103, receiving page configuration information for the target template. Specifically, the page configuration information is used to determine the page style of the target applet, the target applet is the applet finally obtained, and the page style includes but is not limited to button background color, button content, window background color, window content, list background color, list content, etc. The specific content of the page configuration information is determined according to the actual needs of the user, which is not limited in the embodiment of this specification. Similar to the generation of the template selection request, the page configuration information may be generated by the user through an input device of the terminal device, and the input device may be a mouse, a keyboard, a touch screen or a voice input device. For example, for page configuration information that determines page styles such as the button background color, window background color, and list background color of the target applet, the page style to be configured can be displayed to the user through the display device of the terminal device. Styles correspond to multiple configuration options. Taking the page style as the background color of the window as an example, the multiple configuration options corresponding to the page style can be white, red, black, etc. When the user clicks a configuration option with the mouse, the page configuration information is generated. . For another example, for page configuration information that determines page styles such as button content, window content, and list content of the target applet, the page styles to be configured can be displayed to the user through the display device of the terminal device, and each page style corresponds to an input area. Taking the page style as the window content as an example, when the user inputs relevant text in the input area corresponding to the window content, the page configuration information is generated. Step S104, configure the target template according to the page configuration information to obtain a target applet. In the process of developing small programs, programs all exist in the form of codes, and the target templates also exist in the form of codes. Therefore, after the page configuration information is received, the page configuration information is added to the preset position in the target template, that is, the configuration of the target template is completed, and the target applet is obtained. In the mini-program generation method provided by the embodiments of this specification, since all mini-program templates are pre-created, the page configuration only needs to be performed according to the page configuration information provided by the merchant when the mini-program is created. At the same time, it reduces the difficulty of developing small programs for merchants, and can quickly create their own small programs, thereby shortening the development cycle of small programs and reducing the development cost of small programs. In an optional implementation manner, after the obtaining the target applet, the method further includes: publishing the target applet to the applet platform; or, sending the target applet to the terminal device. By directly releasing the target applet to the applet platform, the release process can be completed by the applet developer, which is suitable for merchants without development capabilities; The capable merchant manages and publishes the target applet by itself. In an optional implementation manner, the applet template can be obtained through the process shown in FIG. 2 . Step S201, receiving a component selection request. Specifically, the applet is composed of components, including but not limited to buttons, input boxes, lists, pop-up windows, and date pickers. Each component can be used alone or in combination with other components. For example, a button can open a list based on the user's click action. It is used separately for each component that composes an applet template with a pure interface. In the embodiment of the present specification, a component database is set up, and a plurality of components are stored in the component database for the user to select. The component selection request is used for requesting to select a target component from the component database, where the target component is any one or more components that the user wants to select. In order to distinguish different components, a corresponding identifier may be set for each component in advance. Accordingly, the component selection request may include the identification of the target component. Similar to the generation of the template selection request, the component selection request may be generated by the user through an input device of the terminal device, and the input device may be a mouse, a keyboard, a touch screen, or a voice input device. For example, if the input device is a mouse, more than one selection button can be displayed to the user through the display device of the terminal device, and each selection button corresponds to a component. The identification corresponding to the component corresponding to the selection button is generated; for another example, if the input device is a keyboard, the input area can be displayed to the user through the display device of the terminal device, and when the user uses the keyboard to input the corresponding When an instruction is selected, for example, when a selection instruction such as "button" or "list" is input, an identifier corresponding to the component corresponding to the selection instruction is generated. Step S202 , according to the component selection request, select a target component from a component database, where the component database is used to store more than one component. Specifically, after receiving the component selection request, the identifier corresponding to the target component may be compared with the identifier corresponding to each component in the component database; If the identifier corresponding to a certain component in the database matches, the component is selected from the component database as the target component. It should be noted that, the one or more components may be developed by the applet developer or by the merchant. Usually, an applet consists of a series of components, so you need to select multiple components when creating an applet template. In an optional implementation manner, steps S201 and S202 may be repeatedly performed for many times, and a corresponding component is selected from the component database each time steps S201 and S202 are performed. In another optional implementation, the component selection request may include identifiers corresponding to two or more components, and according to the identifiers corresponding to the two or more components, one or more corresponding components are selected from the component database at one time , which is not limited in the embodiments of the present specification. Step S203, combining the target components to obtain a small program template or a business template with a pure interface, wherein the business template has an interactive interface. The location of different components in the applet interface is also different, and the location of each component in the applet interface can be preset during component development. When the target components are combined, they can be combined according to the position of each component in the applet interface. In an optional implementation manner, when the target components are combined, the applet template can also be displayed immediately. By displaying the applet template in real time, when the user is not satisfied with the current location of the component, the location of the component on the applet interface can be changed by dragging. Further, according to whether the applet template formed by the combination of the target components has a business process, the applet templates can be classified into two categories: one is the applet template with a pure interface, only the presentation of the visual interface, the The various components of the applet template with a pure interface cannot establish an association relationship; the other type is a business template, which has an interactive interface and a business process. Build relationships. Step S204: Save the applet template with pure interface or the business template to the template database. The applet template with pure interface can be directly selected as the target template, and the business template requires the user to download the template and add business attributes by himself, such as adding business logic such as interface data request and page jumping. Therefore, in an optional implementation manner, the applet template can be obtained through the process shown in FIG. 3 . Step S301, after the service template is saved in the template database, a template download request is received. The template download request is used to request to download the service template from the template database. Similar to the template selection request, the template download request may include an identifier corresponding to the service template that the user wants to download. Specifically, the template download request may be generated by the user through an input device of a terminal device such as a personal computer, a smart phone, a tablet computer, a desktop computer, an all-in-one computer, etc. The input device may be a mouse, a keyboard, a Touch screen or voice input device, etc. For example, if the input device is a mouse, more than one download button can be displayed to the user through the display device of the terminal device, and each download button corresponds to a service template. When the user uses the mouse to click a certain selection button, That is, the identifier corresponding to the business template corresponding to the selection button is generated; for another example, if the input device is a keyboard, the input area can be displayed to the user through the display device of the terminal device, and when the user uses the keyboard to input in the input area When a corresponding download instruction is input, for example, when a download instruction such as "shopping template" and "value-added template" is input, an identifier corresponding to the business template corresponding to the selection instruction is generated. Step S302, sending the service profile to a terminal device according to the profile download request. Specifically, after receiving the template download request, the identifier corresponding to the service template the user wants to download can be compared with the identifier corresponding to each applet template in the template database; If the identifier of the template matches the identity identifier corresponding to a certain applet template in the template database, the applet template is selected from the template database as the identifier of the business template that the user wants to download, and the business template is sent to the end device. Step S303: Receive an adjusted service profile returned by the terminal device, wherein the adjusted service profile is obtained by the terminal device by associating components in the service profile according to preset service logic. Since each component can execute the corresponding event according to the user's operation instruction, each component has its own basic logic function. According to the basic logical functions of the components, the developer of the merchant can combine the relationship between the components according to the functions implemented by the applet, that is, determine the relationship between the components. For example, for the shopping applet, it involves components such as product evaluation buttons and evaluation input boxes. When a user wants to evaluate a product, he can click the product evaluation button, and an evaluation input box will appear on the interface. Enter the evaluation content in the evaluation input box to realize the comment on the product. It can be seen from the above example that there is an association relationship between the product evaluation button component and the evaluation input box component. Associating each component in the business template is to generate logic code from the association relationship of each component in the business template. Those skilled in the art know how to establish an association relationship between various components, which will not be repeated here. After associating each component in the service profile, the adjusted service profile is obtained, and the terminal device uploads the adjusted service profile to the server. Step S304, save the adjusted business template to the template database. In an optional implementation manner, when the target template is configured according to the page configuration information, the target applet may also be displayed in real time. FIG. 4 is a flowchart of the real-time display of the target applet, and the real-time display of the target applet includes steps S401 to S405 . Step S401, receiving component information corresponding to each component in the target template. In the process of configuring the target template, if the user wants to display the target applet in real time, he can send the component information corresponding to each component in the target template to the server through the terminal device. The component information Usually assembled into a string transmission in json format. Step S402, obtaining component codes corresponding to each component in the target template according to the component information. After the component information is received, since the component information is a string in json format, the string in json format needs to be parsed, and the component information is obtained after parsing. After the component information is obtained, the component codes corresponding to each component in the target template are pulled according to the component information. Step S403, encapsulating the component code into an application program. In this embodiment, the component is developed through react, so the compilation framework can be encapsulated through react, and the component code can be encapsulated into a small application program. Step S404, generating a URL address for the application. After the package is complete, start the dev-server service, generate a local service, and generate the URL address of the application. Step S405, sending the URL address to the terminal device, and the terminal device accesses the page corresponding to the target applet according to the URL address. After the URL address is sent to the terminal device, the user can access the page corresponding to the target applet locally, so as to realize the real-time display of the target applet. It should be noted that, in the method for creating a small program template provided by the embodiments of this specification, the creation of components and the creation of templates are oriented to three parties, that is to say, any developer, engineer, and operator are allowed to jointly create a component or a small program template , to realize the sharing of components and applet templates. In a second aspect, based on the same inventive concept, an embodiment of the present specification provides an apparatus for generating a small program. The applet generating device includes: a first receiving module for receiving a template selection request; a first selection module for selecting a target template from a template database according to the template selection request, and the template database uses for storing more than one applet template; a second receiving module for receiving page configuration information for the target template; a configuration module for configuring the target template according to the page configuration information to obtain the target template program. In an optional implementation manner, the applet generating apparatus further includes: a third receiving module, configured to receive a component selection request; a second selection module, configured to select from the component database according to the component selection request a target component, the component database is used to store more than one component; a combination module is used to combine the target components to obtain a small program template or a business template with a pure interface, wherein the business template has an interactive interface; a first saving module for saving the applet template with pure interface or the business template to the template database. In an optional implementation manner, the applet generating device further includes: a fourth receiving module, configured to receive a template download request after saving the service template in the template database; a first sending module , for sending the service profile to the terminal device according to the profile download request; a fifth receiving module, for receiving the adjusted service profile returned by the terminal device, wherein the adjusted service profile is The terminal device is obtained by associating each component in the service template according to the preset service logic; the second saving module is used for saving the adjusted service template to the template database. In an optional implementation manner, the applet generating device further includes: a display module, configured to display the target applet in real time when the target template is configured according to the page configuration information. In an optional implementation manner, the display module includes: a sixth receiving module for receiving component information corresponding to each component in the target template; a component information obtaining module for obtaining according to the component information Component codes corresponding to each component in the target template; an encapsulation module for encapsulating the component codes into an application program; an address generation module for generating a URL address for the application program; a second sending module group, for sending the URL address to the terminal device, and the terminal device accesses the page corresponding to the target applet according to the URL address. In an optional implementation manner, the applet generating apparatus further includes: a publishing module, configured to publish the target applet to the applet platform; or, a third sending module, configured to publish the target applet to the applet platform; The program is sent to the terminal device. In a third aspect, based on the same inventive concept as the applet generating method in the foregoing embodiment, an embodiment of the present specification further provides a computer device, as shown in FIG. 5 . The computer device includes a memory 504, a processor 502, and a computer program stored on the memory 504 and executable on the processor 502, and the processor 502 implements the foregoing embodiments when executing the computer program The steps of the small and medium program generation method. In FIG. 5 , the bus architecture is represented by bus 500 , which may include any number of interconnected buses and bridges, and which will include one or more processors and memory represented by processor 502 The various circuits of the memory represented by 504 are connected together. The bus bar 500 may also link together various other circuits such as peripherals, voltage regulators and power management circuits, etc., which are well known in the art and therefore will not be further described herein. The bus interface 505 provides an interface between the bus 500 and the receiver 501 and the transmitter 503 . The receiver 501 and the transmitter 503 may be the same element, a transceiver, providing a means for communicating with various other devices over the transmission medium. The processor 502 is responsible for managing the bus 500 and general processing, while the memory 504 may be used to store data used by the processor 502 in performing operations. In the fourth aspect, based on the same inventive concept as the method for generating the applet in the foregoing embodiment, the embodiment of this specification further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the foregoing embodiment is realized The steps of the small and medium program generation method. The specification is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the specification. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device generate the Means for implementing the functions specified in one or more of the flowcharts and/or one or more blocks in the block diagrams. These computer program instructions may also be stored in computer-readable memory capable of directing a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising the instruction device , the instruction device implements the functions specified in one or more of the flowcharts and/or one or more blocks in the block diagrams. These computer program instructions may also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on the computer or other programmable device to produce a computer-implemented process for execution on the computer or other programmable device The instructions provide steps for implementing the functions specified in one or more of the flowcharts and/or one or more blocks of the block diagrams. While the preferred embodiments of this specification have been described, additional changes and modifications to these embodiments may occur to those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiment and all changes and modifications that fall within the scope of this specification. Obviously, those skilled in the art can make various changes and modifications to this specification without departing from the spirit and scope of this specification. Thus, if these modifications and variations of the present specification fall within the scope of the patent application of the present specification and the scope of the technical equivalent thereof, the present specification is also intended to include these modifications and variations.

500:匯流排 501:接收器 502:處理器 503:發送器 504:記憶體 505:匯流排介面500: Busbar 501: Receiver 502: Processor 503: Transmitter 504: memory 505: Bus interface

[圖1]為本說明書實施例的小程式產生方法的流程圖; [圖2]為本說明書一種實施例的獲得小程式範本的流程圖; [圖3]為本說明書另一種實施例的獲得小程式範本的流程圖; [圖4]為本說明書實施例的即時顯示目標小程式的流程圖; [圖5]為本說明書實施例的伺服器的結構示意圖。 [Fig. 1] A flowchart of a method for generating a small program according to an embodiment of the present specification; [Fig. 2] A flow chart of obtaining a small program template according to an embodiment of the present specification; [Fig. 3] A flowchart of obtaining a small program template according to another embodiment of the present specification; [FIG. 4] A flowchart of a real-time display target applet according to an embodiment of the present specification; FIG. 5 is a schematic structural diagram of a server according to an embodiment of the present specification.

Claims (12)

一種小程式產生方法,包括:接收範本選擇請求;根據該範本選擇請求從範本資料庫中選擇目標範本,該範本資料庫用於儲存一個以上小程式範本;接收針對該目標範本的頁面配置資訊;根據該頁面配置資訊對該目標範本進行配置,獲得目標小程式;以及將該目標小程式發布至小程式平台;或者將該目標小程式發送至終端設備。 A method for generating an applet, comprising: receiving a template selection request; selecting a target template from a template database according to the template selection request, where the template database is used to store more than one applet template; receiving page configuration information for the target template; Configure the target template according to the page configuration information to obtain the target applet; publish the target applet to the applet platform; or send the target applet to the terminal device. 如請求項1所述的方法,該小程式範本透過以下步驟獲得:接收組件選擇請求;根據該組件選擇請求從組件資料庫中選擇目標組件,該組件資料庫用於儲存一個以上組件;對該目標組件進行組合,獲得具有純介面的小程式範本或者業務範本,其中,該業務範本具有互動式介面;以及將該具有純介面的小程式範本或者該業務範本保存至該範本資料庫。 According to the method of claim 1, the applet template is obtained through the following steps: receiving a component selection request; selecting a target component from a component database according to the component selection request, the component database is used to store more than one component; The target components are combined to obtain an applet template or a business template with a pure interface, wherein the business template has an interactive interface; and the applet template with a pure interface or the business template is saved to the template database. 如請求項2所述的方法,該小程式範本透過以下步驟獲得:在將該業務範本保存至該範本資料庫之後,接收範本下載請求; 根據該範本下載請求將該業務範本發送給終端設備;接收該終端設備返回的調整後的業務範本,其中,該調整後的業務範本是該終端設備根據預設業務邏輯對該業務範本中各個組件進行關聯而得到的;以及將該調整後的業務範本保存至該範本資料庫。 According to the method described in claim 2, the applet template is obtained through the following steps: after saving the business template to the template database, receiving a template download request; Send the service template to the terminal device according to the template download request; receive the adjusted service template returned by the terminal device, wherein the adjusted service template is the terminal device according to the preset service logic for each component in the service template obtained through association; and save the adjusted business template to the template database. 如請求項1所述的方法,在該根據該頁面配置資訊對該目標範本進行配置時,還包括:即時顯示該目標小程式。 The method according to claim 1, when configuring the target template according to the page configuration information, further comprising: displaying the target applet in real time. 如請求項4所述的方法,該即時顯示該目標小程式包括:接收該目標範本中各個組件對應的組件資訊;根據該組件資訊獲得該目標範本中各個組件對應的組件代碼;將該組件代碼封裝成應用程式;為該應用程式產生URL位址;以及將該URL位址發送至終端設備,由該終端設備根據該URL位址來存取該目標小程式對應的頁面。 According to the method of claim 4, the real-time display of the target applet comprises: receiving component information corresponding to each component in the target template; obtaining component codes corresponding to each component in the target template according to the component information; packaging into an application program; generating a URL address for the application program; and sending the URL address to a terminal device, and the terminal device accesses the page corresponding to the target applet according to the URL address. 一種小程式產生裝置,包括:第一接收模組,用於接收範本選擇請求;第一選擇模組,用於根據該範本選擇請求從範本資料庫中選擇目標範本,該範本資料庫用於儲存一個以上小程式範本;第二接收模組,用於接收針對該目標範本的頁面配置資訊; 配置模組,用於根據該頁面配置資訊對該目標範本進行配置,獲得目標小程式;以及發布模組,用於將該目標小程式發布至小程式平台;或者第三發送模組,用於將該目標小程式發送至終端設備。 A small program generating device, comprising: a first receiving module for receiving a template selection request; a first selection module for selecting a target template from a template database according to the template selection request, the template database being used for storing More than one applet template; the second receiving module is used to receive page configuration information for the target template; The configuration module is used to configure the target template according to the configuration information of the page to obtain the target applet; and the release module is used to publish the target applet to the applet platform; or the third sending module is used to Send the target applet to the terminal device. 如請求項6所述的裝置,還包括:第三接收模組,用於接收組件選擇請求;第二選擇模組,用於根據該組件選擇請求從組件資料庫中選擇目標組件,該組件資料庫用於儲存一個以上組件;組合模組,用於對該目標組件進行組合,獲得具有純介面的小程式範本或者業務範本,其中,該業務範本具有互動式介面;以及第一保存模組,用於將該具有純介面的小程式範本或者該業務範本保存至該範本資料庫。 The device according to claim 6, further comprising: a third receiving module for receiving a component selection request; a second selection module for selecting a target component from a component database according to the component selection request, the component data The library is used to store more than one component; the combination module is used to combine the target components to obtain a small program template or a business template with a pure interface, wherein the business template has an interactive interface; and a first save module, Used to save the applet template with pure interface or the business template to the template database. 如請求項7所述的裝置,還包括:第四接收模組,用於在將該業務範本保存至該範本資料庫之後,接收範本下載請求;第一發送模組,用於根據該範本下載請求將該業務範本發送給終端設備;第五接收模組,用於接收該終端設備返回的調整後的業務範本,其中,該調整後的業務範本是該終端設備根據預設業務邏輯對該業務範本中各個組件進行關聯而得到 的;以及第二保存模組,用於將該調整後的業務範本保存至該範本資料庫。 The device according to claim 7, further comprising: a fourth receiving module for receiving a template download request after saving the service template in the template database; a first sending module for downloading according to the template requesting to send the service profile to the terminal device; the fifth receiving module is configured to receive the adjusted service profile returned by the terminal device, wherein the adjusted service profile is the terminal device based on the preset service logic for the service The components in the template are associated with each other to get and a second saving module for saving the adjusted business template to the template database. 如請求項6所述的裝置,還包括:顯示模組,用於在該根據該頁面配置資訊對該目標範本進行配置時,即時顯示該目標小程式。 The device according to claim 6, further comprising: a display module for displaying the target applet in real time when the target template is configured according to the page configuration information. 如請求項9所述的裝置,該顯示模組包括:第六接收模組,用於接收該目標範本中各個組件對應的組件資訊;組件資訊獲得模組,用於根據該組件資訊獲得該目標範本中各個組件對應的組件代碼;封裝模組,用於將該組件代碼封裝成應用程式;位址產生模組,用於為該應用程式產生URL位址;以及第二發送模組,用於將該URL位址發送至終端設備,由該終端設備根據該URL位址來存取該目標小程式對應的頁面。 The device according to claim 9, wherein the display module comprises: a sixth receiving module for receiving component information corresponding to each component in the target template; a component information obtaining module for obtaining the target according to the component information The component code corresponding to each component in the template; the encapsulation module, which is used to encapsulate the component code into an application; the address generation module is used to generate a URL address for the application; and the second sending module is used to The URL address is sent to the terminal device, and the terminal device accesses the page corresponding to the target applet according to the URL address. 一種伺服器,包括記憶體、處理器以及儲存在該記憶體上並可在該處理器上運行的電腦程式,該處理器執行該電腦程式時實現如請求項1至5中任一項所述的小程式產生方法的步驟。 A server, comprising a memory, a processor, and a computer program stored on the memory and runnable on the processor, when the processor executes the computer program to achieve any one of claims 1 to 5 The steps of the applet generation method. 一種電腦可讀儲存媒體,其上儲存有電腦程式,該電腦程式被處理器執行時實現如請求項1至5中 任一項所述的小程式產生方法的步驟。 A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, realizes as in claim 1 to 5 The steps of any one of the mini-program generating methods.
TW109116400A 2019-09-17 2020-05-18 Mini program generation method and device TWI757743B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910875930.4 2019-09-17
CN201910875930.4A CN110727431A (en) 2019-09-17 2019-09-17 Applet generation method and apparatus

Publications (2)

Publication Number Publication Date
TW202113586A TW202113586A (en) 2021-04-01
TWI757743B true TWI757743B (en) 2022-03-11

Family

ID=69219074

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109116400A TWI757743B (en) 2019-09-17 2020-05-18 Mini program generation method and device

Country Status (3)

Country Link
CN (1) CN110727431A (en)
TW (1) TWI757743B (en)
WO (1) WO2021051913A1 (en)

Families Citing this family (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110727431A (en) * 2019-09-17 2020-01-24 阿里巴巴集团控股有限公司 Applet generation method and apparatus
CN111367523A (en) * 2020-03-16 2020-07-03 杭州涂鸦信息技术有限公司 Dynamic UI (user interface) matching method and system for small program
CN111338690A (en) * 2020-03-25 2020-06-26 北京顺达同行科技有限公司 Method and device for configuring pages of small program shop, computer equipment and storage medium
CN111506300A (en) * 2020-04-22 2020-08-07 上海极链网络科技有限公司 Applet generation method, device, equipment and storage medium
CN111580820B (en) * 2020-05-25 2023-09-15 泰康保险集团股份有限公司 Applet generation method and device
CN113778541A (en) * 2020-06-09 2021-12-10 腾讯科技(深圳)有限公司 A method, device, electronic device and storage medium for generating a small program
CN111708528A (en) * 2020-06-15 2020-09-25 中国建设银行股份有限公司 Method, device and equipment for generating small program and storage medium
JP2022542203A (en) 2020-06-28 2022-09-30 ベイジン バイドゥ ネットコム サイエンス テクノロジー カンパニー リミテッド Mini-program batch processing method, device, electronic device and readable storage medium
CN113760248B (en) * 2020-07-08 2025-01-14 北京沃东天骏信息技术有限公司 A method and device for generating an application program
CN113934412A (en) * 2020-07-14 2022-01-14 北京奇虎科技有限公司 Program generation method, device, equipment and storage medium
CN111966348A (en) * 2020-08-25 2020-11-20 浙江云蚁信息科技有限公司 One-key small program publishing system
CN112230915A (en) * 2020-09-07 2021-01-15 长沙市到家悠享家政服务有限公司 Page generation method and device and electronic equipment
CN112099789A (en) * 2020-09-08 2020-12-18 中国第一汽车股份有限公司 Human-computer interaction design method, device, equipment and storage medium
CN113761039B (en) * 2021-01-29 2025-02-21 北京沃东天骏信息技术有限公司 A method and device for processing information
CN113296828B (en) * 2021-05-26 2024-10-18 北京京东振世信息技术有限公司 Method, server and system for releasing application
CN113282291B (en) * 2021-06-10 2024-07-26 豆盟(北京)科技股份有限公司 Method, device, equipment and storage medium for generating applet
CN113419710B (en) * 2021-06-25 2024-03-15 北京悟空出行科技有限公司 Development method and device of applet, electronic equipment and medium
CN113687892B (en) * 2021-07-30 2024-05-03 阿里巴巴创新公司 Page processing method, device and computer program product
CN113783966B (en) * 2021-09-23 2023-01-03 北京火山引擎科技有限公司 Data transmission method and device, readable medium and electronic equipment
CN116069308A (en) * 2021-11-04 2023-05-05 腾讯科技(深圳)有限公司 Message configuration method and related device
CN114064015A (en) * 2021-11-04 2022-02-18 挂号网(杭州)科技有限公司 Component generation method and device, electronic equipment and storage medium
CN114398032B (en) * 2021-12-20 2022-08-09 北京时空墨科技有限公司 Program writing method, apparatus and medium
CN113961272B (en) * 2021-12-20 2022-04-01 咚咚来客(广州)信息技术有限公司 Personalized page display method and system
CN114546384B (en) * 2022-02-24 2024-07-09 盐城天眼察微科技有限公司 Page display system, page display method, readable storage medium and electronic equipment
CN114860238B (en) * 2022-05-06 2025-04-08 北京字节跳动网络技术有限公司 Page generation method and device and electronic equipment
CN115237959A (en) * 2022-08-10 2022-10-25 中国工商银行股份有限公司 Data processing method and device for outside cabinet cleaning equipment
CN115423335A (en) * 2022-09-14 2022-12-02 易纳购科技(北京)有限公司 Project creation method and device, storage medium and computer equipment
CN119415123B (en) * 2025-01-08 2025-04-22 南京爱福路汽车科技有限公司 Multi-business-state WeChat applet management method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201525737A (en) * 2013-12-31 2015-07-01 Univ Cheng Shiu Method for automatically generating website interactive program
TW201626249A (en) * 2014-09-15 2016-07-16 J2N 股份有限公司 Method, server and computer program for creation and provision of applications
US9524273B2 (en) * 2013-03-11 2016-12-20 Oracle International Corporation Method and system for generating a web page layout using nested drop zone widgets having different software functionalities
CN108762878A (en) * 2018-06-05 2018-11-06 广州视源电子科技股份有限公司 Application program interactive interface generation method, device, equipment and storage medium
CN109885291A (en) * 2019-01-25 2019-06-14 深圳市元征科技股份有限公司 A kind of code automatic generation method and code generator

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108132942A (en) * 2016-11-30 2018-06-08 北京国双科技有限公司 A kind of page generation method and terminal
CN106980504B (en) * 2017-03-28 2022-07-01 腾讯科技(深圳)有限公司 Application program development method and tool and equipment thereof
WO2019003252A1 (en) * 2017-06-30 2019-01-03 Ashish Belagali System for creating one or more deployable applications and source code thereof using reusable components and method therefor
CN107577459B (en) * 2017-08-21 2020-11-13 杰为软件系统(深圳)有限公司 Dragging type cross-platform application development system and method based on componentization
CN108196832A (en) * 2018-01-09 2018-06-22 安徽小马创意科技股份有限公司 It is a kind of to realize the method that wechat small routine is made to support the exploitation of Custom component formula
CN109213486A (en) * 2018-08-20 2019-01-15 北京百度网讯科技有限公司 Method and apparatus for generating customized visualization component
CN110058854B (en) * 2019-04-24 2021-10-12 上海连尚网络科技有限公司 Method, terminal device and computer-readable medium for generating application
CN110209388A (en) * 2019-05-29 2019-09-06 广州酷车信息科技有限公司 The generation method of applet file
CN110727431A (en) * 2019-09-17 2020-01-24 阿里巴巴集团控股有限公司 Applet generation method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9524273B2 (en) * 2013-03-11 2016-12-20 Oracle International Corporation Method and system for generating a web page layout using nested drop zone widgets having different software functionalities
TW201525737A (en) * 2013-12-31 2015-07-01 Univ Cheng Shiu Method for automatically generating website interactive program
TW201626249A (en) * 2014-09-15 2016-07-16 J2N 股份有限公司 Method, server and computer program for creation and provision of applications
CN108762878A (en) * 2018-06-05 2018-11-06 广州视源电子科技股份有限公司 Application program interactive interface generation method, device, equipment and storage medium
CN109885291A (en) * 2019-01-25 2019-06-14 深圳市元征科技股份有限公司 A kind of code automatic generation method and code generator

Also Published As

Publication number Publication date
TW202113586A (en) 2021-04-01
WO2021051913A1 (en) 2021-03-25
CN110727431A (en) 2020-01-24

Similar Documents

Publication Publication Date Title
TWI757743B (en) Mini program generation method and device
US10990644B2 (en) Systems and methods for contextual vocabularies and customer segmentation
US11797273B2 (en) System and method for enhancing component based development models with auto-wiring
US11132114B2 (en) Method and apparatus for generating customized visualization component
WO2020233048A1 (en) Customized software generation method and system, and electronic device and storage medium
CN112214210A (en) Logistics business rule engine and configuration method, device, device and storage medium thereof
JP2014514671A (en) System for generating personalized and customized mobile devices
CN112416328A (en) Multi-platform small program mall construction method, device, equipment and medium
CN109194714B (en) A copywriting push method, device, terminal device and storage medium
CN107479882A (en) Generating method, generating device, medium and electronic equipment of insurance application page
KR102268013B1 (en) Method, apparatus and computer readable recording medium of rroviding authoring platform for authoring augmented reality contents
CN114036439A (en) Website construction method, device, medium and electronic equipment
WO2017107851A1 (en) Method and device for releasing and updating desktop application component
CN109635211A (en) Promote the implementation method and server of the page
US11803523B2 (en) Ingesting and processing content types
CN118132056A (en) Page development method, device, equipment and storage medium
CN116521285A (en) Application trial method and device, electronic equipment and storage medium
CN114090002A (en) Front-end interface construction method and device, electronic equipment and storage medium
CN113791836A (en) Subprogram generation method and device, medium and electronic device
CN116909563A (en) Page generation method, terminal device and storage medium
CN117421002A (en) Development method and device of service function interface in warehouse logistics application software
CN106998350A (en) The method and system of framework are used based on the function items across user message
KR102047510B1 (en) Device management system and method
CN117608535A (en) Page development method, system, electronic equipment and storage medium
TW201828024A (en) Announcement, updating method, and device of desktop application component without the necessity to push the installation program of desktop application component to the terminal and require the user to proceed the installation operation

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees