Browse Source

feat: 202404301817

Joeshu 1 year ago
parent
commit
7ff19cdcb9

+ 0 - 22
.gitignore

@@ -1,22 +0,0 @@
-.DS_Store
-node_modules
-dist
-
-
-# local env files
-.env.local
-.env.*.local
-
-# Log files
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-pnpm-debug.log*
-
-# Editor directories and files
-.idea
-*.suo
-*.ntvs*
-*.njsproj
-*.sln
-*.sw?

+ 5 - 0
.idea/.gitignore

@@ -0,0 +1,5 @@
+# 默认忽略的文件
+/shelf/
+/workspace.xml
+# 基于编辑器的 HTTP 客户端请求
+/httpRequests/

+ 8 - 0
.idea/modules.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/.idea/work-doc.iml" filepath="$PROJECT_DIR$/.idea/work-doc.iml" />
+    </modules>
+  </component>
+</project>

+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
+  </component>
+</project>

+ 12 - 0
.idea/work-doc.iml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="WEB_MODULE" version="4">
+  <component name="NewModuleRootManager">
+    <content url="file://$MODULE_DIR$">
+      <excludeFolder url="file://$MODULE_DIR$/temp" />
+      <excludeFolder url="file://$MODULE_DIR$/.tmp" />
+      <excludeFolder url="file://$MODULE_DIR$/tmp" />
+    </content>
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 9 - 0
developer/uuid.js

@@ -0,0 +1,9 @@
+```
+# brower
+crypto.randomUUID()
+crypto.randomUUID().replace(/-/g,'')
+
+# node
+import { nanoid } from 'nanoid'
+model.id = nanoid() //=> "V1StGXR8_Z5jdHi6B-myT"
+```

+ 2 - 1
developer/移动端网页调试面板.md

@@ -3,11 +3,12 @@
 放在应用程序代码之前运行
 
 ```html
+<!-- 测试环境-调试 -->
 <script src="//unpkg.com/vconsole/dist/vconsole.min.js"></script>
 <script>
   var vConsole = new VConsole();
 </script>
-<!--  -->
+<!-- 测试环境-调试 -->
 <script src="//wx.palmnest.com/super_cloud/static/npm/vconsole/dist/vconsole.min.js"></script>
 <script>
   new VConsole();

+ 2 - 2
developer/获取全部storage.js

@@ -1,8 +1,8 @@
 const localStorageEntries = Object.entries(localStorage);
 const sessionStorageEntries = Object.entries(sessionStorage);
 
-console.log("localStorage entries:", localStorageEntries);
-console.log("sessionStorage entries:", sessionStorageEntries);
+console.log("localStorage entries:", JSON.stringify(localStorageEntries));
+console.log("sessionStorage entries:", JSON.stringify(sessionStorageEntries));
 
 localStorageEntries.forEach(([key, value]) => {
   localStorage.setItem(key, value);

+ 3 - 3
docs/oem/招商积余/招商积余.md

@@ -40,7 +40,7 @@ longmeizhen   Longmz-2024-01
 [微信端-h5 失物招领-前端项目](vue_college_wx)
 [微信端-h5 会议室-前端项目](wechat-vue-boardroom)
 
-- 客户
+- APP 
 
-[客户端-h5 页面-前端项目](superdesk-ui-h5/app-property)
-[客户端-h5 会议室-前端项目](https://gogs.superdesk.cn/superdesk-app-h5/app_meeting_h5.git)
+[APP 端-h5 页面-前端项目](superdesk-ui-h5/app-property)
+[APP 端-h5 会议室-前端项目](app_meeting_h5)

+ 4 - 2
docs/superDesk/开发指南.md

@@ -1,7 +1,7 @@
 ## 开发指南
 
 - 移动端 Web 应用使用 vue2,以 cloud_wallet 为模版,初始化项目
-- 移动端 Web 应用使用 vue3,以 entity_shop 为模版,初始化项目
+- 移动端 Web 应用使用 vue3,以 superdesk-ui-h5 为模版,初始化项目
 - 长期维护项目下的`@/utils`
 
 ```
@@ -12,7 +12,9 @@ getAPI 以上是通用的方法封装,以下根据实际项目写
 - 浮点数运算使用 decimal.js
 - 时间和日期计算使用 day.js
 
-## Git 提交规范
+## 代码提交规范
+
+Git commit 信息可参考[《约定式提交》文档](https://www.conventionalcommits.org/zh-hans/v1.0.0/),但不做强制要求。
 
 - `feat` 新功能
 - `fix` 修补 bug

+ 1 - 0
docs/superDesk/超级前台【MP-WEIXIN】/OEM_MarNew岛/2GbmmrjvQn.txt

@@ -0,0 +1 @@
+f81211a28e1c6451568b6a4188f26cec

+ 21 - 0
docs/superDesk/超级前台【MP-WEIXIN】/OEM_MarNew岛/README.md

@@ -0,0 +1,21 @@
+## 数字消费服务
+
+```
+小程序名称 数字消费服务
+原始ID gh_9b26264fddd0
+AppID(小程序ID) wxd49d797af0f84df8
+AppSecret(小程序密钥) 176f5a207151998946c540849d6118c1
+```
+
+## 提交审核
+
+### 测试备注(选填)
+
+请按照以下方式来验证:
+测试账号用户名:supermarnew
+测试账号密码:Super123
+测试登录流程方式:首页 - 选择登录方式【手机号、账号登录】- 切换为【账号和密码登录】- 输入用户名+密码 - 登录成功
+
+## 账号和密码登录
+
+supermarnew/Super123

+ 0 - 6
docs/superDesk/超级前台【MP-WEIXIN】/README.md

@@ -1,12 +1,6 @@
 ## git 仓库
 
 - superdesk-service-routine
-- 超级前台【分支: master】
-- 广电智慧楼宇【分支: guangdian】
-- 行政 E 家【分支: yidong】
-- 明喆服务【分支: mingzhe】
-- 重构版本【分支: main】
-- 北大深圳医院【分支: oem_bdszyy】
 
 ## 说明
 

+ 1 - 0
docs/superDesk/超级前台【MP-WEIXIN】/SERVICE_数字消费服务/4dPFvgeFDt.txt

@@ -0,0 +1 @@
+48183b1655f82c26f4950bb6eb955de1

+ 33 - 0
docs/superDesk/超级前台【MP-WEIXIN】/SERVICE_数字消费服务/README.md

@@ -0,0 +1,33 @@
+## 赣铁物业
+
+```
+小程序名称 蜜托邦会员管家
+原始ID gh_a1f3ba75e157
+AppID(小程序ID) wx600ff31f35bf7ca4
+AppSecret(小程序密钥) 04eeb6bfcacaaa29fe611a9b72bf7c0c
+```
+
+## 提交审核
+
+### 测试备注(选填)
+
+请按照以下方式来验证:
+测试账号用户名:superglyx
+测试账号密码:Super123
+测试登录流程方式:首页 - 选择登录方式【手机号、账号登录】- 切换为【账号和密码登录】- 输入用户名+密码 - 登录成功
+
+### 小程序订单中心path(选填)
+
+>你好,你的小程序为交易类,需在开发者后台「版本管理—提交审核——小程序订单中心path」设置订单中心页path,请设置后再提交代码审核。详情可参考:https://mp.weixin.qq.com/cgi-bin/announce?action=getannouncement&key=11669729383k7cis&version=1&lang=zh_CN&platform=2
+
+```
+pages/serviceOrder/index
+```
+
+## 账号和密码登录
+
+superglyx/Super123
+
+```
+https://zjh.suyo.tech;wss://zjh.suyo.tech;
+```

+ 59 - 14
docs/superDesk/超级前台【MP-WEIXIN】/快速访问/README.md

@@ -5,14 +5,7 @@
 ## 访问形式
 
 - [扫普通链接二维码打开小程序](https://developers.weixin.qq.com/miniprogram/introduction/qrcode.html)
-- [获取小程序页面小程序码](https://mp.weixin.qq.com/wxamp/wxaqrcode/weappcode)
-
-> 小程序管理后台 -> 工具 -> 生成小程序码
-
-```
-# 示例-跳转智慧访客
-pages/home/index?q=https%3A%2F%2Fsuperdesk.avic-s.com%2Fp%2Fz%2F%3Fp1%3D3101%26p2%3D627
-```
+- [扫小程序码打开小程序](https://mp.weixin.qq.com/wxamp/wxaqrcode/weappcode)
 
 ## 微信扫普通链接二维码进入说明
 
@@ -22,9 +15,9 @@ pages/home/index?q=https%3A%2F%2Fsuperdesk.avic-s.com%2Fp%2Fz%2F%3Fp1%3D3101%26p
 - 注意:只有微信后台配置过的完整链接,【测试范围-指定版本】才会生效
 - 注意:扫码进不去仔细看“文档-测试调试”(必须用这个人的微信账号登录一下开发者工具,然后扫一版开发版,这人才能扫测试外链进入小程序)
 
-## 前置准备
+### 前置准备
 
-1.  放置校验文件
+1. 放置校验文件
 
 ```
 服务器目录 /data/laimengfile/p
@@ -34,7 +27,7 @@ pages/home/index?q=https%3A%2F%2Fsuperdesk.avic-s.com%2Fp%2Fz%2F%3Fp1%3D3101%26p
 
 2.  [登录小程序后台-配置二维码规则](https://developers.weixin.qq.com/miniprogram/introduction/qrcode.html)
 
-## 二维码规则
+### 二维码规则
 
 ```
 # 链接规则
@@ -63,7 +56,7 @@ https://superdesk.avic-s.com/super_cloud/pcm/shortcut/e/
 
 ```
 
-## 友朋自取柜-开柜码
+### 友朋自取柜-开柜码
 
 ```
 # 链接规则
@@ -76,7 +69,7 @@ https://wx.palmnest.com/p/a/FfLVS2
 
 ```
 
-## 商户收款码
+### 商户收款码
 
 [商户管理-通用收款码-最终地址](https://superdesk.avic-s.com/super_cloud/wx/entity_shop/?orgId=1229&merchant_id=315FBDBD52DFBE879525FA59EA69E799&v=2024011214#/wxCashier)
 
@@ -89,7 +82,7 @@ https://superdesk.avic-s.com/p/d/?p=shskm&p1=1229&p4=315FBDBD52DFBE879525FA59EA6
 
 ```
 
-## 快速链接-跳转服务(h5)
+### 快速链接-指定项目、指定服务、追加参数
 
 [参数字段名参考-系统-生成快捷访问链接](https://wx.palmnest.com/super_cloud/backend/#/basesetting/auxiliaryManage/index)
 
@@ -164,3 +157,55 @@ https://superdesk.avic-s.com/p/{miniProgram}/?p=th_{thirdPartyCode}&p1={orgId}&p
 # ['p4','_s','extParam']-扩展参数
 
 ```
+
+## 微信扫小程序码进入说明
+
+### 生成说明
+
+> 小程序管理后台 -> 工具 -> 生成小程序码
+
+### 快速链接-指定项目、指定服务、追加参数
+
+```
+# 借用上面的链接规则`q=`实现
+https://superdesk.avic-s.com/p/z/?p={type}p1={orgId}&p2={serviceId}
+https://zzz.com/p/z/?p={type}p1={orgId}&p2={serviceId}
+
+# 示例-跳转智慧访客
+pages/home/index?q=https%3A%2F%2Fsuperdesk.avic-s.com%2Fp%2Fz%2F%3Fp1%3D3101%26p2%3D627
+```
+
+### 快速链接-指定 H5 页面
+
+> 业务流程路径:微信小程序-小程序首页-跳转 h5 页面
+
+```js
+import qs from "qs"; // 用于处理 url 参数
+
+let appid = "wx0324c5e054b2eb5e"; // 小程序的 appid
+let path = "/pages/home/index"; // 小程序页面的 path
+let query = {
+  url: "https://xxx", // 必填,业务方H5链接
+  p: "th_xxx", // 第三方必填,业务方标识
+  lowPower: "1", // 选填,操作权限(需要白名单用户传 0,需要登录传 1,不需要登录传 2)
+}; // 小程序的 query
+
+// 如果query是string类型,则需要先对参数进行 encodeURIComponent 编码
+let url = `${path}?${qs.stringify(query)}`; // 转成url参数形式,例如`/pages/home/index?url=https%3A%2F%2Fxxx&p=th_zsdjh&lowPower=1`
+// 小程序完整路径跳转
+wx.miniProgram.navigateTo({
+  url: url,
+});
+
+// 示例一:跳转到百度搜索页面-搜索微信小程序
+let path = "/pages/home/index"; // 小程序的页面 path
+let query = {
+  url: "https://www.baidu.com/s?wd=微信小程序",
+  p: "unknow",
+  lowPower: "1",
+};
+let url = `${path}?${qs.stringify(query)}`;
+wx.miniProgram.navigateTo({
+  url: url,
+});
+```

+ 14 - 0
docs/superDesk/超级前台【MP-WEIXIN】/快速访问/小程序启动页面说明.md

@@ -0,0 +1,14 @@
+# 小程序启动页面说明
+
+```
+
+# 普通链接二维码-小程序页面路径参数形式(q=)
+
+pages/home/index?q=xxx
+
+# 小程序码-小程序页面路径参数形式(url=)
+
+pages/home/index?url=xxx
+pages/home/index?url={url}&lowPower={lowPower}
+
+```

+ 0 - 13
docs/superDesk/超级前台【MP-WEIXIN】/快速访问/跳转内嵌H5.md

@@ -1,13 +0,0 @@
-- 小程序启动页面说明
-
-```
-
-# 普通链接二维码-小程序页面路径参数形式
-
-pages/home/index?q=xxx
-
-# 跳转内嵌 H5 页面-小程序页面路径参数形式
-
-pages/home/index?url=xxx
-
-```