如意宝

介绍:

  1. 超级App系列是在DiscuzX基础上开发,主要使用了用户系统以及一些基类,并不是为了增强DiscuzX的论坛系统,而是为了拓展DiscuzX而生
  2. 当前应用只是主插件,提供一些通用功能接口,后续会推出依赖当前插件的业务插件
  3. 整个软件架构设计是采用前后端分离,在应用中心安装的是后端,提供接口能力。而前端是不提供源代码的,需要在插件独立后台上传代码到指定平台(微信公众平台、支付宝开放平台等)或下载压缩后的代码包
  4. 目前先推出微信小程序端,小程序端是在插件独立后台授权上传代码包到微信公众平台

环境要求

大家尽量往高版本升级,低版本存在BUG等问题,现在DiscuzX也支持了Mysql8.0了,PHP也可以升级到7.0 PHP版本>=7.0 并支持curl扩展 Mysql=5.7 宽带建议 2M以上 服务器硬件建议:2G内存4核以上

小程序代码示例1

      
      import financeService from "./services/app/financeService";
      import userService from "./services/app/userService";
      import UserStore from "./stores/UserStore";
      require("dayjs/locale/zh-cn");

      // app.ts
      App({
        onLaunch() {
        userService.login().then((logged: boolean) => {
        if (logged) {
        userService.getSuperAppUser(UserStore.get("data")['uid']);
        userService.getCommunityUser(UserStore.get("data")['uid']);
        }
        });

        financeService.getSupportBanks();
        }
        });
    
    

小程序代码示例2

      
        {
          "pages": [
            "pages/index/index",
            "pages/community/index/index",
            "pages/user/signin/index/index",
            "pages/user/signin/account/login/index",
            "pages/user/signin/account/register/index",
            "pages/user/signin/bind/index",
            "pages/user/index/index",
            "pages/community/group/posts/index/index",
            "pages/community/group/profile/profile",
            "pages/community/group/members/members",
            "pages/community/group/posts/search/search",
            "pages/community/post/details/details",
            "pages/user/space/space",
            "pages/community/post/publish/publish",
            "pages/community/group/create/create",
            "pages/community/group/manage/index/index",
            "pages/user/finance/wallet/index/index",
            "pages/user/finance/wallet/bankCard/list/list",
            "pages/user/finance/wallet/bankCard/details/details",
            "pages/user/finance/wallet/bankCard/add/add",
            "pages/user/finance/wallet/collectMoneyQRCode/collectMoneyQRCode",
            "pages/user/finance/wallet/withdraw/records/records",
            "pages/user/finance/wallet/withdraw/apply/apply",
            "pages/user/finance/wallet/withdraw/details/details",
            "pages/user/finance/transaction/details/details",
            "pages/user/finance/transaction/list/list",
            "pages/community/group/my/my",
            "pages/user/setting/index/index",
            "pages/user/setting/associated/associated",
            "pages/user/message/list/list",
            "pages/user/message/details/details",
            "pages/community/group/list/list",
            "pages/community/post/tagged/tagged"
          ],
          "window": {
            "backgroundTextStyle": "light",
            "navigationBarBackgroundColor": "#fff",
            "navigationBarTitleText": "Weixin",
            "navigationBarTextStyle": "black",
            "navigationStyle": "custom",
            "backgroundColor": "#f2f5f7"
          },
          "style": "v2",
          "sitemapLocation": "sitemap.json",
          "useExtendedLib": {
            "weui": true
          },
          "lazyCodeLoading": "requiredComponents",
          "usingComponents": {
            "t-header-bar": "./Ruyi/MiniProgram/components/THeaderBar/THeaderBar",
            "t-navbar": "./Ruyi/MiniProgram/components/TNavbar/TNavbar",
            "t-common-container": "./Ruyi/MiniProgram/components/TCommonContainer/TCommonContainer",
            "t-full-screen-container": "./Ruyi/MiniProgram/components/TFullScreenContainer/TFullScreenContainer",
            "t-button": "./Ruyi/MiniProgram/components/TButton/TButton",
            "t-stats-number": "./Ruyi/MiniProgram/components/TStatsNumber/TStatsNumber",
            "t-textarea": "./Ruyi/MiniProgram/components/TTextarea/TTextarea",
            "t-modal": "./Ruyi/MiniProgram/components/TModal/TModal",
            "t-upload-media-list": "./Ruyi/MiniProgram/components/TUploadMediaList/TUploadMediaList",
            "t-form": "./Ruyi/MiniProgram/components/Form/TForm",
            "t-form-item": "./Ruyi/MiniProgram/components/Form/TFormItem/TFormItem",
            "t-cells": "./Ruyi/MiniProgram/components/TCells/TCells/TCells",
            "t-cell": "./Ruyi/MiniProgram/components/TCells/TCell/TCell",
            "t-cell-list": "./Ruyi/MiniProgram/components/TCells/TCellList/TCellList",
            "t-alert": "./Ruyi/MiniProgram/components/TAlert/TAlert",
            "r-empty": "./Ruyi/MiniProgram/components/REmpty/REmpty",
            "r-drawer": "./Ruyi/MiniProgram/components/RDrawer/RDrawer",
            "r-status": "./Ruyi/MiniProgram/components/RStatus/RStatus",
            "r-loading": "./Ruyi/MiniProgram/components/RLoading/RLoading",
            "panel": "./components/base/panel/panel",
            "panel-list": "./components/base/panelList/panelList",
            "amount": "./components/base/finance/amount/amount",
            "user-avatar": "./components/base/userAvatar/userAvatar",
            "image-view": "./components/base/ImageView/ImageView",
            "cells": "./components/base/Cells/Cells/Cells",
            "cell": "./components/base/Cells/Cell/Cell"
          },
          "tabBar": {
            "custom": true,
            "list": [
              {
                "pagePath": "pages/index/index",
                "text": "首页"
              },
              {
                "pagePath": "pages/community/index/index",
                "text": "圈子"
              },
              {
                "pagePath": "pages/user/index/index",
                "text": "我的"
              }
            ]
          },
          "miniApp": {
            "useAuthorizePage": true
          }
        }
    
    

小程序代码示例3

      
        /**app.wxss**/
        @import "./assets/wxss/common.wxss";
        @import "./assets/wxss/iconfont/antd/iconfont.wxss";
        @import "./assets/wxss/iconfont/taopiaopiao/iconfont.wxss";
        @import "./assets/wxss/iconfont/tmall/iconfont.wxss";
        @import "./assets/wxss/iconfont/taobao/iconfont.wxss";
        
        page {
          background: var(--page-background-color);
        }