报名小程序PowerActivity配置

https://github.com/zhihuliukanshan/PowerActivity/assets/100545532/9b3e2a3b-f810-4c1f-90d5-9596d99abbd3

导入代码后,需要配置的位置有:

1、miniprogram\setting\setting.js中的CLOUD_ID:

module.exports = {
	//### 环境相关 
	CLOUD_ID: 'cloud1-5goxxxxj622ecxxx', //云服务id ,本地测试环境 

	// #### 版本信息 
	VER: 'build 2023.06.01',
	COMPANY: '联系作者',

	// #### 系统参数 
	IS_SUB: false, //分包模式 
	IS_DEMO: false, //是否演示版  

	MOBILE_CHECK: false, //手机号码是否真实性校验


	//#################     
	IMG_UPLOAD_SIZE: 20, //图片上传大小M兆    

	// #### 缓存相关
	CACHE_IS_LIST: true, //列表是否缓存
	CACHE_LIST_TIME: 60 * 30, //列表缓存时间秒    

}

2、cloudfunctions\mcloud\config\config.js中的CLOUD_ID:

module.exports = {

	//### 环境相关 
	CLOUD_ID: 'cloud1-5goxxx4jxxxecxxx', //你的云环境id   

	// ##################################################################   
	COLLECTION_PRFIX: 'bx_',

	IS_DEMO: false, //是否演示版 (后台不可操作提交动作)  
	// ##################################################################
	// #### 调试相关 
	TEST_MODE: false, // 测试模式 涉及小程序码生成路径, 用以下 TEST_TOKEN_ID openid.. 
	TEST_TOKEN_ID: 'oD58U5Ej-gK0BjqSspqjQEPgXuQQ',
 

	// #### 内容安全
	CLIENT_CHECK_CONTENT: false, //前台图片文字是否校验
	ADMIN_CHECK_CONTENT: false, //后台图片文字是否校验     

	// ### 后台业务相关
	ADMIN_LOGIN_EXPIRE: 86400, //管理员token过期时间 (秒) 

	// ### 服务者相关
	WORK_LOGIN_EXPIRE: 86400, //服务者token过期时间 (秒) 
}

3、miniprogram\project.config.json中的"appid": 

{
  "appid": "wx6766fxxxxxf32xxx",
  "compileType": "miniprogram",
  "libVersion": "2.32.3",
  "packOptions": {
    "ignore": [],
    "include": []
  },
  "setting": {
    "coverView": true,
    "es6": true,
    "postcss": true,
    "minified": true,
    "enhance": true,
    "showShadowRootInWxmlPanel": true,
    "packNpmRelationList": [],
    "babelSetting": {
      "ignore": [],
      "disablePlugins": [],
      "outputPath": ""
    },
    "condition": false
  },
  "condition": {},
  "editorSetting": {
    "tabIndent": "insertSpaces",
    "tabSize": 2
  }
}

4、 project.config.json中的"appid": 

{
	"miniprogramRoot": "miniprogram/",
	"cloudfunctionRoot": "cloudfunctions/",
	"setting": {
		"urlCheck": false,
		"es6": true,
		"enhance": true,
		"postcss": true,
		"preloadBackgroundData": false,
		"minified": true,
		"newFeature": true,
		"coverView": true,
		"nodeModules": false,
		"autoAudits": false,
		"showShadowRootInWxmlPanel": true,
		"scopeDataCheck": false,
		"uglifyFileName": true,
		"checkInvalidKey": true,
		"checkSiteMap": true,
		"uploadWithSourceMap": true,
		"compileHotReLoad": false,
		"lazyloadPlaceholderEnable": false,
		"useMultiFrameRuntime": true,
		"babelSetting": {
			"ignore": [],
			"disablePlugins": [],
			"outputPath": ""
		},
		"useIsolateContext": true,
		"userConfirmedUseIsolateContext": true,
		"userConfirmedBundleSwitch": false,
		"packNpmManually": false,
		"packNpmRelationList": [],
		"minifyWXSS": true,
		"disableUseStrict": false,
		"minifyWXML": true,
		"showES6CompileOption": false,
		"useCompilerPlugins": false,
		"ignoreUploadUnusedFiles": true,
		"useStaticServer": true,
		"condition": false
	},
	"simulatorType": "wechat",
	"simulatorPluginLibVersion": {},
	"cloudfunctionTemplateRoot": "cloudfunctionTemplate/",
	"compileType": "miniprogram",
	"srcMiniprogramRoot": "miniprogram/",
	"editorSetting": {
		"tabIndent": "tab",
		"tabSize": 4
	},
	"description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
	"condition": {},
	"packOptions": {
		"ignore": [],
		"include": []
	},
	"appid": "wx6766xxxxxx32xxx"
}

5、cloudfunctions\project.config.json中的"appid": 

{
  "appid": "wx6766fxxxxxf32xxx",
  "compileType": "miniprogram",
  "libVersion": "2.32.3",
  "packOptions": {
    "ignore": [],
    "include": []
  },
  "setting": {
    "coverView": true,
    "es6": true,
    "postcss": true,
    "minified": true,
    "enhance": true,
    "showShadowRootInWxmlPanel": true,
    "packNpmRelationList": [],
    "babelSetting": {
      "ignore": [],
      "disablePlugins": [],
      "outputPath": ""
    },
    "condition": false
  },
  "condition": {},
  "editorSetting": {
    "tabIndent": "insertSpaces",
    "tabSize": 2
  }
}

遇到了不开源部分,提示:[活动报名]该功能暂不开放,如有需要请加作者微信:cclinux0730

代码缺失部分在:

cloudfunctions\mcloud\project\activitycomm\service\admin\admin_activity_service.js

上传头像:

miniprogram\projects\activitycomm\pages\my\edit\my_edit.js

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值