更新记录

1.2.10(2021-07-27)

  • 增加h5绑定微信,
  • 优化多级分销
  • 优化微信提现
  • 增加拼团

1.2.9(2021-07-10)

  • 增加货到付款方式
  • 优化修改用户头像
  • 增加订单分成算法
查看更多

平台兼容性

阿里云 腾讯云
Vue App 微信小程序 支付宝小程序 百度小程序 字节小程序 QQ小程序 快应用
vue2 3.1.22 app-vue
H5-Safari Android Browser 微信浏览器(Android) QQ浏览器(Android) Chrome IE Edge Firefox PC-Safari
×

云函数类插件通用教程

使用云函数类插件的前提是:使用HBuilderX 2.9+


天天商城

基于uniapp+unicloud+uniId开发的多级分销电商系统,突破传统b2c运营模式,引入uniAd广告功能,实现0元可购物、积分+现金购物模式,玩一玩就能得到自己心仪的商品。
本系统支持一键发布到H5,Android,iOS,微信小程序等小程序系统

功能导读

图

安装步骤

在线安装(推荐):

  1. 在插件市场点击“导入插件并试用”或者购买源码授权版,
  2. 同意付费插件试用协议,
  3. 选择绑定的服务空间,
  4. 勾选部署云函数,初始化db_init后(全部勾选),点击“直接部署服务空间”,
  5. 如果有提示覆盖公共模块,点击“覆盖并重新部署”。
  6. 等待服务器自动执行安装操作

手动安装:

  1. 在插件市场点击“导入插件并试用”或者购买源码授权版,
  2. 同意付费插件试用协议,
  3. 选择绑定的服务空间,
  4. 点击跳过
  5. 继续导入HBuilderX(安装最新编辑器
  6. 编辑器提示新建项目
  7. uniCloud目录右键,运行云服务空间安装向导
  8. 选择第三步选择的云服务空间
  9. 下一步,并开始部署

系统参数配置

系统统一配置均依靠uni-config-center,原始目录是/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center 编辑器自动映射后uniCloud/cloudfunctions/common/uni-config-center

  • uni-config-center/uni-id/config.json
    • 可修改app、小程序appid登录配置;
    • 短信key和secret;
    • 一键登录key和secret
  • uni-config-center/tiantian-mall/config.json,
    • 可修改支付通知地址(domain);
    • 支付类型(payment)与参数;
    • 广告位(adConfig)配置;
    • 微信企业转账到零钱配置(transfers);
    • 短信登录模板id(service);
    • 推送配置(push);
    • 同城配送(delivery);
    • 快递配送(express);
    • 用户推荐团队(user);
    • 前端自定义参数(customer);
    • 前端分享(share);
    • 商城分成返利、积分等(mall)
  • uni-config-center/UNI9E9D6A0/config.json 如果一套后台,发布到多个应用,这个目录结构的参数,可以独立配置参数,与tiantian-mall/config.json合并,这里配置优先,可变参数例如:支付、广告

咨询与售后

  • 交流QQ群:298724327
  • 如您已购买本产品,联系作者QQ:343169893

柔然科技承接软件定制开发

测试与案例

测试地址

H5预览 http://tian.cqsort.com/
后台体验 http://tian.cqsort.com/admin/
账号:test
密码:123456

Android版 天天商城apk
扫码下载

客户案例

这有米二维码 惠民 惠民apk 惠民.apk

目录结构

    |-- App.vue
    |-- changelog.md
    |-- config.js
    |-- main.js
    |-- manifest.json
    |-- package-lock.json
    |-- package.json
    |-- pages.json
    |-- README.md
    |-- uni.scss
    |-- uni_modules.config.json
    |-- .hbuilderx
    |   |-- debug.config.json
    |   |-- launch.json
    |-- common
    |   |-- css
    |   |   |-- font_2479288_9cqg4e7ml9.css
    |   |   |-- github-markdown.css
    |   |   |-- style.scss
    |   |   |-- theme.scss
    |   |-- js
    |   |   |-- ad.js
    |   |   |-- cache.js
    |   |   |-- filter.js
    |   |   |-- form.js
    |   |   |-- marked.js
    |   |   |-- moments.js
    |   |   |-- uqrcode.js
    |   |   |-- util.js
    |   |-- mixin
    |       |-- ad.js
    |       |-- map.js
    |       |-- mixin.js
    |       |-- upload.js
    |       |-- share
    |           |-- mp.js
    |-- components
    |   |-- j-msg
    |   |   |-- j-msg.nvue
    |   |-- j-video
    |       |-- j-video.vue
    |-- data
    |   |-- app_qq_login.json
    |   |-- app_weibo_login.json
    |   |-- app_wx_login.json
    |   |-- ctx.json
    |-- js_sdk
    |   |-- implemented
    |   |   |-- h5.js
    |   |-- mall
    |   |   |-- interceptor.js
    |   |   |-- plugin.js
    |   |   |-- request.js
    |   |   |-- util.js
    |   |-- validator
    |       |-- tian-user-cashouts.js
    |       |-- uni-id-address.js
    |-- pages
    |   |-- address
    |   |   |-- add.vue
    |   |   |-- detail.vue
    |   |   |-- edit.vue
    |   |   |-- list.vue
    |   |-- admin
    |   |   |-- admin.vue
    |   |-- app
    |   |   |-- about.vue
    |   |   |-- article.vue
    |   |   |-- contact.vue
    |   |   |-- feedback.vue
    |   |   |-- pages.vue
    |   |   |-- share.vue
    |   |   |-- web.vue
    |   |-- index
    |   |   |-- agreement.vue
    |   |   |-- cart.vue
    |   |   |-- category.vue
    |   |   |-- index.vue
    |   |   |-- search.vue
    |   |   |-- user.vue
    |   |   |-- mixin
    |   |       |-- tabbar.js
    |   |-- login
    |   |   |-- login.vue
    |   |   |-- mixin
    |   |       |-- app.js
    |   |       |-- mp-alipay.js
    |   |       |-- mp-weixin.js
    |   |-- msg-center
    |   |   |-- msg-center.nvue
    |   |-- order
    |   |   |-- coupons.vue
    |   |   |-- create.vue
    |   |   |-- detail.vue
    |   |   |-- invoice.vue
    |   |   |-- message.vue
    |   |   |-- order.vue
    |   |-- product
    |   |   |-- detail.vue
    |   |   |-- favorite.vue
    |   |   |-- visite.vue
    |   |-- user
    |       |-- account.vue
    |       |-- achievement.vue
    |       |-- avatar.vue
    |       |-- balances.vue
    |       |-- cashout.vue
    |       |-- coupons.vue
    |       |-- info.vue
    |       |-- invite.vue
    |       |-- scores.vue
    |       |-- setinviter.vue
    |       |-- tasks.vue
    |       |-- score
    |       |   |-- cashout.vue
    |       |   |-- ranking.vue
    |       |   |-- transfer.vue
    |       |-- team
    |           |-- member.vue
    |           |-- team.vue
    |-- static
    |   |-- errorImage.jpg
    |   |-- loadingbg.jpg
    |   |-- logo.png
    |   |-- missing-face.png
    |   |-- play.png
    |   |-- font
    |   |   |-- iconfont.ttf
    |   |   |-- iconfont.woff
    |   |   |-- iconfont.woff2
    |   |-- images
    |   |   |-- invite.jpg
    |   |   |-- qrcode_bg.png
    |   |-- tab
    |       |-- tab-cart-current.png
    |       |-- tab-cart.png
    |       |-- tab-cate-current.png
    |       |-- tab-cate.png
    |       |-- tab-home-current.png
    |       |-- tab-home.png
    |       |-- tab-my-current.png
    |       |-- tab-my.png
    |       |-- tab-play-current.png
    |       |-- tab-play.png
    |       |-- tab_video.png
    |       |-- tab_video_current.png
    |-- store
    |   |-- index.js
    |   |-- modules
    |       |-- app.js
    |       |-- mall.js
    |       |-- user.js
    |-- uniCloud-aliyun
    |   |-- cloudfunctions
    |   |   |-- tiantian-day-cron
    |   |   |   |-- index.js
    |   |   |   |-- package-lock.json
    |   |   |   |-- package.json
    |   |   |   |-- util.js
    |   |   |-- tiantian-mall
    |   |   |   |-- config.js
    |   |   |   |-- index.js
    |   |   |   |-- package-lock.json
    |   |   |   |-- package.json
    |   |   |   |-- tiantian-mall.param.json
    |   |   |   |-- controller
    |   |   |   |   |-- app.js
    |   |   |   |   |-- payment.js
    |   |   |   |   |-- utils.js
    |   |   |   |   |-- admin
    |   |   |   |   |   |-- order.js
    |   |   |   |   |   |-- score_day_statistics.js
    |   |   |   |   |   |-- tian_user_cashouts.js
    |   |   |   |   |   |-- uni_id_score.js
    |   |   |   |   |   |-- user.js
    |   |   |   |   |-- mall
    |   |   |   |   |   |-- cart.js
    |   |   |   |   |   |-- express.js
    |   |   |   |   |   |-- goods.js
    |   |   |   |   |   |-- order.js
    |   |   |   |   |-- system
    |   |   |   |   |   |-- app.js
    |   |   |   |   |-- user
    |   |   |   |       |-- info.js
    |   |   |   |       |-- login.js
    |   |   |   |       |-- score.js
    |   |   |   |       |-- task.js
    |   |   |   |-- middleware
    |   |   |   |   |-- auth.js
    |   |   |   |   |-- cache.js
    |   |   |   |   |-- config.js
    |   |   |   |   |-- init.js
    |   |   |   |   |-- permission.js
    |   |   |   |-- service
    |   |   |       |-- util.js
    |   |   |       |-- expresses
    |   |   |       |   |-- kuai100.js
    |   |   |       |-- mall
    |   |   |       |   |-- cart.js
    |   |   |       |   |-- express.js
    |   |   |       |   |-- goods.js
    |   |   |       |   |-- order.js
    |   |   |       |-- order
    |   |   |       |   |-- mall.js
    |   |   |       |   |-- readme.md
    |   |   |       |-- payment
    |   |   |       |   |-- alipay.js
    |   |   |       |   |-- balance.js
    |   |   |       |   |-- delivery.js
    |   |   |       |   |-- readme.md
    |   |   |       |   |-- unipay.js
    |   |   |       |   |-- wxpay.js
    |   |   |       |-- system
    |   |   |       |   |-- app.js
    |   |   |       |-- task
    |   |   |       |   |-- article.js
    |   |   |       |-- user
    |   |   |           |-- address.js
    |   |   |           |-- order.js
    |   |   |           |-- repair.js
    |   |   |           |-- score.js
    |   |   |           |-- task.js
    |   |   |           |-- user.js
    |   |   |-- uni-clientDB-actions
    |   |       |-- backup.js
    |   |       |-- cart.js
    |   |       |-- cart_goods.js
    |   |       |-- check_goods_favorite.js
    |   |       |-- check_order.js
    |   |       |-- genId.js
    |   |       |-- goods_member.js
    |   |       |-- goods_skus.js
    |   |       |-- goods_visite.js
    |   |       |-- mobile.js
    |   |-- database
    |       |-- db_init.json
    |       |-- JQL查询.jql
    |       |-- mall-cart.jql
    |       |-- mall-categories.jql
    |       |-- mall-goods.jql
    |       |-- mall-sku.jql
    |       |-- news-article-read.jql
    |       |-- opendb-admin-menus.schema.json
    |       |-- opendb-city-china.schema.json
    |       |-- opendb-mall-goods-days.schema.json
    |       |-- opendb-verify-codes.schema.json
    |       |-- tian-identity.schema.json
    |       |-- tian-mall-coupon-users.schema.json
    |       |-- tian-mall-coupons.schema.json
    |       |-- tian-mall-orders-backup.schema.json
    |       |-- tian-mall-orders.schema.json
    |       |-- tian-mall-shops.schema.json
    |       |-- tian-page-components.schema.json
    |       |-- tian-pages.schema.json
    |       |-- tian-payment-types.schema.json
    |       |-- tian-user-cashouts.schema.json
    |       |-- uni-id-address.schema.json
    |       |-- uni-id-balances.schema.json
    |       |-- uni-id-base-order.schema.json
    |       |-- uni-id-log.schema.json
    |       |-- uni-id-permissions.schema.json
    |       |-- uni-id-roles.schema.json
    |       |-- uni-id-score-cashout.schema.json
    |       |-- uni-id-score-day-statistics.schema.json
    |       |-- uni-id-score-transfer.schema.json
    |       |-- uni-id-scores.schema.json
    |       |-- uni-id-task-log.schema.json
    |       |-- uni-id-task.schema.json
    |       |-- uni-id-users.schema.json
    |       |-- user-invite.jql
    |-- uni_modules
        |-- tian-article
        |   |-- changelog.md
        |   |-- package.json
        |   |-- pages.json
        |   |-- readme.md
        |   |-- components
        |   |   |-- tian-article
        |   |       |-- layouts.js
        |   |       |-- tian-article.vue
        |   |-- pages
        |   |   |-- article
        |   |       |-- detail.vue
        |   |-- uniCloud
        |       |-- cloudfunctions
        |       |   |-- uni-clientDB-actions
        |       |       |-- article_favorite.js
        |       |       |-- article_read.js
        |       |       |-- article_read_check.js
        |       |-- database
        |           |-- opendb-news-article-read.schema.json
        |           |-- opendb-news-articles.schema.json
        |           |-- opendb-news-categories.schema.json
        |           |-- opendb-news-comments.schema.json
        |           |-- opendb-news-favorite.schema.json
        |-- tian-banner
        |   |-- changelog.md
        |   |-- package.json
        |   |-- readme.md
        |   |-- components
        |   |   |-- tian-banner
        |   |       |-- tian-banner.vue
        |   |-- uniCloud
        |       |-- database
        |           |-- opendb-banner-category.schema.json
        |           |-- opendb-banner.schema.json
        |-- tian-empty
        |   |-- changelog.md
        |   |-- package.json
        |   |-- readme.md
        |   |-- components
        |       |-- tian-empty
        |           |-- tian-empty.vue
        |-- tian-express
        |   |-- changelog.md
        |   |-- package.json
        |   |-- readme.md
        |   |-- components
        |       |-- tian-express
        |       |   |-- express.js
        |       |   |-- tian-express.vue
        |       |-- tian-express-detail
        |           |-- tian-express-detail.vue
        |-- tian-grides
        |   |-- changelog.md
        |   |-- package.json
        |   |-- readme.md
        |   |-- components
        |       |-- tian-grides
        |           |-- tian-grides.vue
        |-- tian-icons
        |   |-- changelog.md
        |   |-- package.json
        |   |-- readme.md
        |   |-- components
        |       |-- tian-icons
        |           |-- tian-icons.vue
        |-- tian-mall
        |   |-- changelog.md
        |   |-- package.json
        |   |-- readme.md
        |   |-- components
        |   |   |-- tian-goods-join-list
        |   |   |   |-- tian-goods-join-list.vue
        |   |   |-- tian-goods-list
        |   |   |   |-- tian-goods-list.vue
        |   |   |-- tian-goods-nav
        |   |   |   |-- tian-goods-nav.vue
        |   |   |-- tian-goods-price
        |   |   |   |-- tian-goods-price.vue
        |   |   |-- tian-goods-sku
        |   |   |   |-- tian-goods-sku.vue
        |   |   |-- tian-mall
        |   |       |-- tian-mall.vue
        |   |-- uniCloud
        |       |-- database
        |           |-- opendb-mall-cart.schema.json
        |           |-- opendb-mall-categories.schema.json
        |           |-- opendb-mall-comments.schema.json
        |           |-- opendb-mall-express.schema.json
        |           |-- opendb-mall-goods-favorite.schema.json
        |           |-- opendb-mall-goods-visite.schema.json
        |           |-- opendb-mall-goods.schema.json
        |           |-- opendb-mall-sku.schema.json
        |-- tian-pages
        |   |-- changelog.md
        |   |-- package.json
        |   |-- readme.md
        |   |-- components
        |       |-- tian-pages
        |           |-- tian-pages.vue
        |-- tian-payment
        |   |-- changelog.md
        |   |-- package.json
        |   |-- readme.md
        |   |-- components
        |       |-- tian-payment
        |           |-- tian-payment.vue
        |-- tian-search-bar
        |   |-- changelog.md
        |   |-- package.json
        |   |-- readme.md
        |   |-- components
        |       |-- tian-search-bar
        |           |-- tian-search-bar.vue
        |-- tian-single-user
        |   |-- changelog.md
        |   |-- package.json
        |   |-- readme.md
        |   |-- components
        |       |-- tian-single-user
        |           |-- tian-single-user.vue
        |-- tian-skeleton
        |   |-- changelog.md
        |   |-- package.json
        |   |-- readme.md
        |   |-- components
        |       |-- tian-skeleton
        |           |-- tian-skeleton.vue
        |-- tian-tab-pages
        |   |-- changelog.md
        |   |-- package.json
        |   |-- readme.md
        |   |-- components
        |       |-- tian-tab-pages
        |           |-- tian-tab-pages.vue

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

插件不采集任何数据

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问