2 Star 2 Fork 2

不二云 / boolcms-module-webview

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README
MIT

准备工作

  • 1 VSCODE / WebStorm / HBuilderX 等IDE或者编辑器
  • 2 小程序开发者工具

环境配置

VSCODE / WebStorm

安装环境

npm install --registry="https://registry.npmmirror.com"

环境变量

设置 .env.* 内的环境变量

// API
VUE_APP_BASE_API = 'https://api.boolc.cn'
// 移动端要访问的首页地址 直接复制后台对应区域/商户地址即可
VUE_APP_TAKEOUT_H5_HOST = 'https://app.boolc.cn'

// 小程序APPID
VUE_APP_OF_WX_APP_ID = ''
// 加密后的小程序APPSECRET
VUE_APP_OF_WX_APP_SECRET = ''
// 是否为子商户小程序
VUE_APP_IS_SUB_APP = 1
// 服务商APPID
VUE_APP_SP_WX_APP_ID = ''
// 小程序授权码,请查看后台设置
VUE_APP_MP_WX_APP_ID = ''
// 字节/抖音小程序授权码,请查看后台设置
VUE_APP_MP_TT_APP_ID = ''
// 支付宝小程序授权码,请查看后台设置
VUE_APP_MP_ALI_APP_ID = ''

支付参数配置

根据 pages/order/pay 内的说明进行支付参数配置

编译小程序代码

npm run build:mp-weixin

HBuilderX

通过编辑器导入 src 文件夹

环境变量

设置 vue.config.js 内的环境变量

// API
process.env.VUE_APP_BASE_API = 'https://api.boolc.cn'
// 移动端要访问的首页地址 直接复制后台对应区域/商户地址即可
process.env.VUE_APP_TAKEOUT_H5_HOST = 'https://app.boolc.cn'
// 小程序APPID
process.env.VUE_APP_OF_WX_APP_ID = ''
// 加密后的小程序APPSECRET
process.env.VUE_APP_OF_WX_APP_SECRET = ''
// 是否为子商户小程序
process.env.VUE_APP_IS_SUB_APP = 1
// 服务商APPID
process.env.VUE_APP_SP_WX_APP_ID = ''
// 小程序授权码,请查看后台设置
process.env.VUE_APP_MP_WX_APP_ID = ''
// 字节/抖音小程序授权码,请查看后台设置
process.env.VUE_APP_MP_TT_APP_ID = ''
// 支付宝小程序授权码,请查看后台设置
process.env.VUE_APP_MP_ALI_APP_ID = ''

支付参数配置

根据 pages/order/pay 内的说明进行支付参数配置

上传代码

使用小程序开发者工具打开编译后的代码上传代码即可。

MIT License Copyright (c) 2022 Boolcms Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

微信小程序/字节跳动小程序内嵌H5支付。 expand collapse
JavaScript and 4 more languages
MIT
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
JavaScript
1
https://gitee.com/boolc/boolcms-module-webview.git
git@gitee.com:boolc/boolcms-module-webview.git
boolc
boolcms-module-webview
boolcms-module-webview
master

Search