Maintenance has been stopped. Maintenance has been stopped. Maintenance has been stopped! ! ! ! !
fire-shop-lite is an e-commerce applet front-end open source project, developed based on wechat-app-mall.
Key features include:
1. Group fight
2. Bargain
3. Distribution
4. Product poster generation
5. Coupons
…
Domestic warehouse: Code Cloud Warehouse
Friends who do not have live broadcast permission can remove the live broadcast plug-in by themselves
1. Remove the live broadcast plug-in from app.json
"live-player-plugin": {
"version": "1.0.8",
"provider": "wx2b03c6e691cd7370"
}
2. Delete or comment out the live broadcast plug-in reference in pages/index/index.wxml
<navigator wx:if="{{aliveRooms.length> 0}}" url="plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id={{aliveRooms[0].roomid}}" class="live-ad padding-tb">
<image src="../../images/live_ad.png"></image>
</navigator>
Documentation Tutorial
WeChat e-commerce mini program EastWorld /wechat-app-mall
api factory applet interface SDK
Bright, highly saturated colors, ColorUI, a small program component library focusing on vision
Mini Program Poster Component - Generate posters for sharing in Moments and generate pictures
This project is a pure front-end project for a mini program mall. Due to limited manpower and energy, this project did not develop a supporting back-end system. Instead, it directly used the free interface and back-end provided by the api factory, which can fully meet all the functions of this project. need.
Register api factory
Log in to the backend, left menu "Factory Settings" --> "Data Clone" --> "Clone other people's data to me"
Fill in the other party’s merchant ID as 9436
Click "Clone Now", then log out of the background and log in again
You will immediately have initialized test data to facilitate your testing
This project uses the npm module. Please check "Use npm module" in the project settings.
This project uses syntax based on ES7, so please enable "enhanced compilation" in the development tools, otherwise the following error will be prompted:
thirdScriptError
sdk uncaught third Error
regeneratorRuntime is not defined
ReferenceError: regeneratorRuntime is not defined
If you do not see the "Enhanced Compilation" option in your development tools, please upgrade the development tools to the latest version.
1. Apply for a backend account/obtain an exclusive domain name
2. Open the mall module
3. Modify the config.js file in the root directory
module . exports = {
version : "2.0.0" ,
note : '增加拼团砍价和分销,优化UI' , // 这个为版本描述,无需修改
subDomain : "fireshop" , // 根据教程 https://www.yuque.com/apifm/doc/qr6l4m 查看你自己的 subDomain
shareProfile : '百款精品商品,总有一款适合您' , // 首页转发的时候话术
goodsDetailSkuShowType : 0 , // 0 为点击立即购买按钮后出现规格尺寸、数量的选择; 1为直接在商品详情页面显示规格尺寸、数量的选择,而不弹框
}
4. Set the legal server domain name of the mini program
5. Restart your mini program development tool and complete
6. How to manage the mini program startup image and the carousel banner image at the head of the homepage in the background
这两个功能都是使用后台 “系统设置” --> “banner” 管理功能来实现的;
后台发布banner的时候,自定义类型请分别填写 app 和 home
小程序会自动读取类型为 app 的banner图片作为启动展示图片;
小程序会自动读取类型为 home 的banner图片作为首页的轮播图;
7. If you need to use the poster sharing function (the poster needs to call the mini program user avatar), you need to add the domain name wx.qlogo.cn to the legal domain name of downloadFile.
8. How to use subscription messages (former template messages)? Please check out the tutorial for "api factory":
https://www.yuque.com/apifm/doc/sw1dg9
Log in to the backend, go to the left menu "System Settings" --> "System Parameters" menu; if you can't find this menu, it's because you haven't enabled the "System Parameter Settings" module yet, the left menu "System Settings" - -> "Module Management", enable the "System Parameter Settings" module, then F5 to refresh the web page
RECHARGE_OPEN (switch type)
During WeChat review, if your mini program has a recharge function, it will fail the review. Therefore, by default, the mini program will hide the recharge and withdrawal function. This parameter can be used to turn on the display of recharge and withdrawal.
ROLE_FOR_SHOP (switch type)
If you have multiple store functions, changing the function will enable the store administrator function. At that time, each store administrator will only be able to manage the products and orders placed in his own store, but will not be able to view and manage orders from other stores.
ALLOW_SELF_COLLECTION (switch type)
Whether to enable in-store pickup function (express delivery and in-store pickup customers can choose)
WITHDRAW_FEE_PERCENT (text parameter)
Withdrawal fee ratio, fill in 1 for 1%
free_shipping_for_purchases (text parameter)
Free shipping will be provided after the order amount is reached
mallName (text parameter)
Mini program name (mall name)
REGISTER_OPEN_SELLER (switch type)
Whether newly registered users will automatically become distributors. If this parameter is not turned on, distributors need to apply for it themselves and you will review it.
categoryLevel (text parameter)
The classification page displays the classification level. Optional parameters 1 and 2. When the value is 1, the product list is displayed directly on the right side. When the value is other, the second-level classification is displayed.
CATEGORY_BY_TAGS (switch type)
Whether to enable classification by tags. This parameter is valid when categoryLevel=1 and can be used in scenarios where a product belongs to multiple categories.
"Api Factory Three-Level Distribution Plug-in Usage Tutorial"
How to modify the title of the mini program mall?
Please check the mallName in the system settings above
"Unable to log in"/Token invalid?
Log in to the backend to publish your own products
How to add a link to Banner and click to open a product?
How to fill in the token when setting the appid, secret, WeChat payment merchant number and secret key in the factory backend?
Don’t fill in the token!
Don’t fill in the token!
Don’t fill in the token!
Say important things three times. This small program is not used. It is for service accounts, so please don’t fill in the blanks.
When paying on WeChat, a 50000 error message appears and the prepayment ID cannot be obtained.
This error is that the prepayment information of WeChat Pay cannot be obtained.
How to participate in the project?
Is there no place to fill in the shipping address when placing an order?
When setting the appid and secret in the background, the prompt is incorrect?
How to use the refund function?
How to set the amount of free shipping?
How to modify or close an order that will be automatically closed if it is not paid for more than 30 minutes?
Android can see the picture, but iOS phone cannot see the picture
This is a problem with the wxparse parser. Many people have been hit~
Just search globally and comment out console.dir
More questions?
Technical exchange QQ group 878573318 (password: fire-shop-lite) | Contact the author |
---|---|
WeChat Appreciation | Alipay tipping | Receive free Meituan Ele.me red envelopes |
---|---|---|