diff --git a/.gitignore b/.gitignore index 6cff6aa..3a1b60f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,6 @@ **/.user.ini houtai/runtime/ houtai/public/upload/ +houtai/.env +.env +**/.env diff --git a/docs/change-hapr191.md b/docs/change-hapr191.md index 2074f4d..f82a3d9 100755 --- a/docs/change-hapr191.md +++ b/docs/change-hapr191.md @@ -1,4 +1,8 @@ -新项目需要修改项: + +# 新公司(淮安鹏然商贸)项目的h5端(目录:h5) 修改任务 + +## 配置项修改 + 1.新项目公司名称,eg:鹏然商贸, 2.需要用公司名称的HTML十进制数字实体编码,修改wa_options表中name=system_config中的value值里的title信息, 3.相关配置项: @@ -10,10 +14,9 @@ F. **云服务器寄卖商城H5目录**:eg:/www/wwwroot/hapengran.com G. **云服务器寄卖商城后台目录**:eg:/www/wwwroot/admin.hapengran.com -4. 需要修改文件 +## 需要修改文件 **寄卖商城H5** - A. **static/configs.js** TITLE: '鹏然商贸', @@ -29,6 +32,8 @@ 第15行:https://jf.hapengran.com/?sn_id 第43行:https://jf.hapengran.com/?user_id= +## 相关文件 + +- company-info.md - diff --git a/docs/company-info.md b/docs/company-info.md index 7729c51..1a2cca1 100644 --- a/docs/company-info.md +++ b/docs/company-info.md @@ -3,6 +3,25 @@ host ip: 114.55.232.191 +### 数据库 wa_options(`name` = `system_config`) + +- 将 `value`(JSON)中的站点 **title** 改为公司名称的 **HTML 十进制实体**,例如展示「鹏然商贸」时使用:`鹏然商贸`(依次为:鹏 40527、然 28982、商 21830、贸 36152)。 +- 同步修改 JSON 内与各环境相关的 URL / 路径项,与下文部署信息一致(寄卖 API、后台、H5、积分商城域名及服务器目录等)。 + +### `h5/static/configs.js` 中与租户绑定的项 + +- **sn_id**、**appStr**:须与当前淮安鹏然环境一致(积分商城租户 / `wa_options` 与寄卖后台 `APP_SECRET` 等),**部署前在 CRM 或库中核对后替换**,不可沿用其他公司示例值。 + +| 配置项 | 示例 / 说明 | +|--------|-------------| +| A. 寄卖商城 API | `https://admin.hapengran.com/api` | +| B. 寄卖商城后台 | `https://admin.hapengran.com` | +| C. 寄卖 H5 | `https://hapengran.com/` | +| D. 积分商城 | `https://jf.hapengran.com` | +| E. 服务器积分商城目录 | `/www/wwwroot/jf.hapengran.com` | +| F. 服务器寄卖 H5 目录 | `/www/wwwroot/hapengran.com` | +| G. 服务器寄卖后台目录 | `/www/wwwroot/admin.hapengran.com` | + ### crmeb-front模块变更 - 1. profile: hapr191 diff --git a/h5/static/configs.js b/h5/static/configs.js index 884a151..c89b123 100755 --- a/h5/static/configs.js +++ b/h5/static/configs.js @@ -1,11 +1,12 @@ "use strict" const configs = { - TITLE: '博森元', - BASE_URL: 'https://shopadmin.bosenyuan.com/api', - IMG_URL: 'https://shopadmin.bosenyuan.com', - H5_URL: 'https://shop.bosenyuan.com/', + TITLE: '鹏然商贸', + BASE_URL: 'https://admin.hapengran.com/api', + IMG_URL: 'https://admin.hapengran.com', + H5_URL: 'https://hapengran.com/', contractPage: 10012, + // 须与积分商城 / wa_options 及寄卖后台 APP_SECRET 一致;上线淮安鹏然前请从后台同步替换,勿沿用其他租户。 sn_id: 1753363479, appStr: 'ZFyTNQTWEkCBczKzyUDJWE9Ecxtjjzwg', // appKey: , -} \ No newline at end of file +} diff --git a/h5/static/js/pages-personal-index.6f5415f9.js b/h5/static/js/pages-personal-index.6f5415f9.js index 60cf72c..0d56aad 100755 --- a/h5/static/js/pages-personal-index.6f5415f9.js +++ b/h5/static/js/pages-personal-index.6f5415f9.js @@ -263,11 +263,11 @@ })], 1), n("v-uni-view", { staticClass: "b-flex-col b-flex-x b-flex-space u-p-b-30 u-p-r-20", on: { - click: function(e) { + click: function(e) { // http://jf.suzhouyuqi.com/pages/integral/points?username= arguments[0] = e = t.$handleEvent(e), window.location.href = - "https://jf.bosenyuan.com/pages/integral/points?username=" + + "https://jf.hapengran.com/pages/integral/points?username=" + t.userInfo.mobile + "#/pages/integral/points" } } diff --git a/h5/static/js/pages-sub-pages-webview-index.1042489b.js b/h5/static/js/pages-sub-pages-webview-index.1042489b.js index 8f19c1a..99bb42f 100755 --- a/h5/static/js/pages-sub-pages-webview-index.1042489b.js +++ b/h5/static/js/pages-sub-pages-webview-index.1042489b.js @@ -12,7 +12,7 @@ o = { data: function() { return { - urlSrc: "https://jf.bosenyuan.com/?sn_id=".concat(uni.$sn_id), + urlSrc: "https://jf.hapengran.com/?sn_id=".concat(uni.$sn_id), passback: "" } }, @@ -40,7 +40,7 @@ void 0 === a ? void 0 : a.id, e.passback && setTimeout((function() { - window.location.href = "https://jf.bosenyuan.com/?user_id=" + e.passback + window.location.href = "https://jf.hapengran.com/?user_id=" + e.passback }), 200)); case 4: case "end":