HBuilderXPackaging Tutorial

uniappDownload link for mobile source code

platformaddress
Giteehttps://gitee.com/zongzhige/shopxo-uniapp
GitHubhttps://github.com/gongfuxiang/shopxo-uniapp
Codinghttps://zongzhige.coding.net/public/shopxo/uniapp/git
GitCodehttps://gitcode.com/zongzhige/shopxo-uniapp
uni-apphttps://ext.dcloud.net.cn/plugin?id=6380


download HBuilderX tool

get intouniappDownload software from the official website https://www.dcloud.io/hbuilderx.html

Choose the official version to download based on your own operating system

QQ20250417-221737.png


HBuilderXAfter installation

We use hereuniappOne click import of plugin market https://ext.dcloud.net.cn/plugin?id=6380

You can also download compressed files through other platforms oruniappMarket download compressed file,Drag the decompressed directory intoHBuilderXYou can find it in the left column of the software

QQ20250417-222737.png


One click import、Confirm Import

choicevue2edition,The project name can also be modified by oneself,The directory where the import is stored can also be changed by oneself,Click to create

QQ20250417-223231.png


Modify interface address

App.vue In the file【Data interface request address and Static resource address】Change to your own mall address

Mini programs must adopt https agreement,The server-side needs to be configured properlysslsupport

If the built-in images on the page cannot be displayed,Can be added after the static resource address public/ ending,Or the server can public Set as root directory

Default name and description,You can also modify it to your own mall name and introduction

QQ20250417-224530.png


Name modification in configuration file

Click on the left pages.json file,In the content navigationBarTitleText Change the default name to your own mall name

QQ20250417-225236.png


Click on the left manifest.json file,Second column selection Basic configuration In the visualization on the right uniapp(appid) Click to get your ownappid

Bind yourself in the bottom left corner firstuniappAccount registered on the platform

QQ20250417-230039.png


Mini program packaging requires configurationappid

Secondary column selection【WeChat Mini Program Configuration】For example, our configuration here  Wechat applet、Other mini programs are also configured in this way

QQ20250417-230335.png


web/h5Packaging requires configuration

Secondary column selectionWeballocationAfter selecting the default name and map platform, configure it as your own map key

QQ20250417-231301.png


Click on the left template.h5.html file,Modify your own content【website address,keyword,describe

QQ20250417-231942.png


After configuration,Start packing

Click on the left App.vue after the document,Top clickissueSelect the platform that needs to be packaged later

QQ20250417-233005.png


For example, we choose here【Wechat applet】

You can also adjust the correct mini program again in the pop-up windowappid,Other mini programs follow this process

QQ20250417-233447.png


After successful compilation,Pay attention to the command line interface at the bottom

Open WeChat Mini Program Tool:Set at the top-security setting(Open Security)HBuilderXIt will automatically open the mini program tool to run,You can also manually import and run it in the following way。

Other Mini Program Tools:stayHBuilderXAfter the tool compilation is successful, the project needs to be manually imported and run,Source code location(shopxo-uniapp/unpackage/dist/build/xxx)Like WeChat Mini Programxxxthen it is(mp-weixin)。

web/h5:Then directly compile it【web or h5】Simply place the directory in the root directory of the server to access it,publicUnder the directory or at the same level,Then add the domain name and directory name to access it

QQ20250418-222046.png


  1. If you need to modify the color scheme of the mobile phone、use Default Theme Style This plugin is modified  https://store.shopxo.net/goods-254.html

  2. packAPPDetailed Tutorial  https://doc.chuyinshop.com/?g=Doc&m=Article&a=index&id=1


Warm prompt ×
The product has been successfully added to the shopping cart!
Shopping Cart Total 0 Items
GoCart
WeChat ×

Open WeChat,Click on the bottom“find”

use“scan”You can share the webpage to your friends

link ×
copy