ソースを参照

2025-01-22 23:22

john 6 ヶ月 前
コミット
9564e95a9c
49 ファイル変更1650 行追加57 行削除
  1. BIN
      .DS_Store
  2. 2 1
      .obsidian/app.json
  3. 52 54
      .obsidian/workspace.json
  4. 15 1
      书签/前端.md
  5. BIN
      思维导图/CRM管理端设计.xmind
  6. BIN
      思维导图/KIP用户同步CRM无感支付订单.xmind
  7. BIN
      思维导图/S端更新月泊日期.xmind
  8. BIN
      思维导图/Tron现有功能模块.xmind
  9. BIN
      思维导图/VA.xmind
  10. BIN
      思维导图/VA的商户管理.xmind
  11. BIN
      思维导图/openId同步.xmind
  12. BIN
      思维导图/下单并支付.xmind
  13. BIN
      思维导图/临时停车首页功能球配置设计.xmind
  14. BIN
      思维导图/停车订单支付失败解锁优惠项目.xmind
  15. BIN
      思维导图/商户号.xmind
  16. BIN
      思维导图/无感临停支付|对于已开通无感支付用户,在场内缴费时给予提醒.xmind
  17. BIN
      思维导图/无感支付2.xmind
  18. BIN
      思维导图/查询缴费.xmind
  19. 57 0
      文档/临时停车H5.md
  20. 1 0
      未命名 2.canvas
  21. 1 0
      未命名 3.canvas
  22. 24 1
      每日工作笔记/2024-11-27.md
  23. 907 0
      每日工作笔记/2024-11-28.md
  24. 30 0
      每日工作笔记/2024-12-02.md
  25. 103 0
      每日工作笔记/2024-12-04.md
  26. 4 0
      每日工作笔记/2024-12-05.md
  27. 3 0
      每日工作笔记/2024-12-06.md
  28. 26 0
      每日工作笔记/2024-12-09.md
  29. 53 0
      每日工作笔记/2024-12-12.md
  30. 22 0
      每日工作笔记/2024-12-13.md
  31. 2 0
      每日工作笔记/2024-12-16.md
  32. 2 0
      每日工作笔记/2024-12-17.md
  33. 37 0
      每日工作笔记/2024-12-18.md
  34. 37 0
      每日工作笔记/2024-12-20.md
  35. 20 0
      每日工作笔记/2024-12-23.md
  36. 66 0
      每日工作笔记/2024-12-25.md
  37. 34 0
      每日工作笔记/2025-01-02.md
  38. 3 0
      每日工作笔记/2025-01-03.md
  39. 6 0
      每日工作笔记/2025-01-06.md
  40. 93 0
      每日工作笔记/2025-01-07.md
  41. 17 0
      每日工作笔记/2025-01-08.md
  42. 0 0
      每日工作笔记/2025-01-16.md
  43. 12 0
      每日工作笔记/2025-01-20.md
  44. 21 0
      每日工作笔记/2025-01-22.md
  45. BIN
      每日工作笔记/images/Pasted image 20241202155420.png
  46. BIN
      每日工作笔记/images/Pasted image 20241212101437.png
  47. BIN
      每日工作笔记/images/Pasted image 20241213131235.png
  48. BIN
      每日工作笔记/images/Pasted image 20250122231715.png
  49. BIN
      附件/download.pdf

BIN
.DS_Store


+ 2 - 1
.obsidian/app.json

@@ -12,5 +12,6 @@
   },
   "showUnsupportedFiles": true,
   "newFileLocation": "current",
-  "showLineNumber": true
+  "showLineNumber": true,
+  "tabSize": 2
 }

+ 52 - 54
.obsidian/workspace.json

@@ -4,21 +4,21 @@
     "type": "split",
     "children": [
       {
-        "id": "6d85aed08a29c470",
+        "id": "c8e90c6a98135c48",
         "type": "tabs",
         "children": [
           {
-            "id": "2a4bfb02df2a1104",
+            "id": "94cdc59294bf7b86",
             "type": "leaf",
             "state": {
               "type": "markdown",
               "state": {
-                "file": "每日工作笔记/2024-11-27.md",
+                "file": "每日工作笔记/2025-01-22.md",
                 "mode": "source",
                 "source": true
               },
               "icon": "lucide-file",
-              "title": "2024-11-27"
+              "title": "2025-01-22"
             }
           }
         ]
@@ -52,7 +52,7 @@
             "state": {
               "type": "search",
               "state": {
-                "query": "xlsx",
+                "query": "secret",
                 "matchingCase": true,
                 "explainSearch": false,
                 "collapseAll": false,
@@ -149,10 +149,10 @@
             "state": {
               "type": "outline",
               "state": {
-                "file": "文档/前海二维码映射.md"
+                "file": "每日工作笔记/2025-01-22.md"
               },
               "icon": "lucide-list",
-              "title": "前海二维码映射 的大纲"
+              "title": "2025-01-22 的大纲"
             }
           },
           {
@@ -170,8 +170,7 @@
       }
     ],
     "direction": "horizontal",
-    "width": 300,
-    "collapsed": true
+    "width": 300
   },
   "left-ribbon": {
     "hiddenItems": {
@@ -183,58 +182,57 @@
       "command-palette:打开命令面板": false
     }
   },
-  "active": "2a4bfb02df2a1104",
+  "active": "94cdc59294bf7b86",
   "lastOpenFiles": [
-    "每日工作笔记/2024-11-26.md",
-    "每日工作笔记/2024-11-27.md",
-    "思维导图/openId同步.xmind",
-    "思维导图/下单并支付.xmind",
-    "项目说明.md",
-    "每日工作笔记/2024-11-25.md",
-    "每日工作笔记/2024-11-21.md",
-    "任务/埋点改动.md",
-    "每日工作笔记/2024-09-03.md",
-    "书签/工作相关.md",
-    "每日工作笔记/2024-09-23.md",
-    "每日工作笔记/2024-09-18.md",
+    "每日工作笔记/未命名.md",
+    "每日工作笔记/2025-01-22.md",
+    "每日工作笔记/images/Pasted image 20250122231715.png",
+    "每日工作笔记/2025-01-20.md",
+    "每日工作笔记/2025-01-16.md",
+    "每日工作笔记/images/Pasted image 20250122223912.png",
+    "每日工作笔记/images/Pasted image 20250122222626.png",
+    "每日工作笔记/2025-01-08.md",
+    "每日工作笔记/2024-12-18.md",
+    "每日工作笔记/2024-12-20.md",
+    "每日工作笔记/2024-12-23.md",
+    "每日工作笔记/2025-01-02.md",
+    "每日工作笔记/2025-01-03.md",
+    "每日工作笔记/2025-01-06.md",
+    "每日工作笔记/2024-12-25.md",
+    "每日工作笔记/2025-01-07.md",
+    "每日工作笔记/2024-12-12.md",
+    "每日工作笔记/2024-12-16.md",
+    "每日工作笔记/2024-12-17.md",
+    "附件/download.pdf",
+    "思维导图/查询缴费.xmind",
+    "思维导图/Tron现有功能模块.xmind",
+    "思维导图/C端.xmind",
+    "思维导图/VA.xmind",
+    "思维导图/停车订单支付失败解锁优惠项目.xmind",
+    "工具/nginx/说明.md",
+    "工具/nginx/H5页面跳转.md",
+    "工具/python/说明.md",
+    "工具/node/yarn.md",
+    "未命名 3.canvas",
+    "文档/前海二维码映射.md",
+    "未命名 2.canvas",
+    "思维导图/临时停车首页功能球配置设计.xmind",
+    "书签/前端.md",
+    "每日工作笔记/2024-07-23.md",
+    "每日工作笔记/2024-07-22.md",
+    "每日工作笔记/2024-07-16.md",
+    "思维导图/VA的商户管理.xmind",
+    "思维导图/商户号.xmind",
+    "每日工作笔记/images/Pasted image 20241213131235.png",
+    "每日工作笔记/images/Pasted image 20241212101437.png",
+    "思维导图/CRM管理端设计.xmind",
+    "每日工作笔记/images/Pasted image 20241202155420.png",
     "未命名.canvas",
     "未命名 1.canvas",
-    "书签/接口文档.md",
-    "xcrm调用.md",
     "images/Pasted image 20241120154739.png",
-    "每日工作笔记/2024-11-20.md",
     "任务/images/Pasted image 20241119155655.png",
     "任务/images/Pasted image 20241119155605.png",
-    "任务/images",
-    "每日工作笔记/2024-11-19.md",
-    "每日工作笔记/2024-11-18.md",
-    "工具/nginx/说明.md",
-    "工具/nginx/H5页面跳转.md",
-    "文档/前海二维码映射.md",
-    "每日工作笔记/2024-11-11.md",
-    "每日工作笔记/2024-11-08.md",
-    "每日工作笔记/2024-11-07.md",
-    "文档/停车场入口二维码参数说明.md",
-    "任务/LBS颜色切换/微服务改造.md",
-    "文档/K+扫描 CRM无牌车出入场码.md",
-    "每日工作笔记/2023/2023-09-01.md",
-    "每日工作笔记/2023/2023-05-19.md",
     "文档/images/Pasted image 20241028164426.png",
-    "每日工作笔记/images/Pasted image 20241025164132.png",
-    "每日工作笔记/images/Pasted image 20241022095625.png",
-    "每日工作笔记/images/Pasted image 20241016141459.png",
-    "每日工作笔记/images/月泊退款改造.png",
-    "每日工作笔记/images/Pasted image 20240930114633.png",
-    "思维导图/月泊退款改造.xmind",
-    "待办事项/5K电子券使用上限.json",
-    "待办事项/5K电子券使用上限.md~",
-    "思维导图/用户使用停车系统.xmind",
-    "每日工作笔记/images/Pasted image 20240923115942.png",
-    "工具/macOS/brew 更新日志",
-    "思维导图/首页功能球.xmind",
-    "思维导图/无牌月租车出入场.xmind",
-    "未命名 3.canvas",
-    "未命名 2.canvas",
     "未命名 8.canvas",
     "未命名 20.canvas",
     "未命名 21.canvas",

+ 15 - 1
书签/前端.md

@@ -19,4 +19,18 @@ curl --location --request GET 'https://api.weixin.qq.com/cgi-bin/token?grant_typ
 --header 'Accept: */*' \
 --header 'Host: api.weixin.qq.com' \
 --header 'Connection: keep-alive'
-```
+```
+
+
+
+
+https://crm.kerryplus.com/open/api/1.0/interfaceController/getAccessToken
+
+KO
+true,password,Hafeng@2022,string,
+true,appid,wx2a1741f02f7bb650,string,
+
+
+CRM
+true,password,Hafeng@2022,string,
+true,appid,wxd830fe4d1e04988e,string,

BIN
思维导图/CRM管理端设计.xmind


BIN
思维导图/KIP用户同步CRM无感支付订单.xmind


BIN
思维导图/S端更新月泊日期.xmind


BIN
思维导图/Tron现有功能模块.xmind


BIN
思维导图/VA.xmind


BIN
思维导图/VA的商户管理.xmind


BIN
思维导图/openId同步.xmind


BIN
思维导图/下单并支付.xmind


BIN
思维导图/临时停车首页功能球配置设计.xmind


BIN
思维导图/停车订单支付失败解锁优惠项目.xmind


BIN
思维导图/商户号.xmind


BIN
思维导图/无感临停支付|对于已开通无感支付用户,在场内缴费时给予提醒.xmind


BIN
思维导图/无感支付2.xmind


BIN
思维导图/查询缴费.xmind


+ 57 - 0
文档/临时停车H5.md

@@ -0,0 +1,57 @@
+## 第三方小程序对接
+
+ETCP_AliPay_APPID: '2021001144643377',
+ETCP_APPID: 'wx192b7d2e8dcbefd0',
+KETUO_APPID: 'wx54e676273869baa6',
+const ETCP_APP_PATH = '/pages/pay/order-pay-open/main';
+const KETUO_APP_PATH = '/pages/transfer/transfer';
+const ETCP_APP_INVOICE_PATH = '/pages/invoice-fun/invoice-home/main';
+
+
+反向寻车: 深圳前海(crm小程序)、福州(crm小程序)
+ETCP小程序缴费: 北京(crm小程序、支付宝小程序)
+
+小程序支付
+
+无感支付: 微信, CRM小程序
+
+
+### 1、北京
+非0元支付的场景
+
+支付宝: 
+ETCP_AliPay_APPID(2021001144643377)、ETCP_APP_PATH(/pages/pay/order-pay-open/main)
+
+微信
+ETCP_APPID(wx192b7d2e8dcbefd0)
+ETCP_APP_PATH(/pages/pay/order-pay-open/main)
+
+
+### 2、深圳前海
+微信
+
+临时停车后端接口: parking/find-car-location/${carNum} 获取 必填参数
+接口参数转小程序跳转参数
+parkId--》lotId 停车场编号
+spaceNo--》parkNo 停车位编号
+vehicleNo--》carNo 车辆编号
+
+KETUO_APPID: wx54e676273869baa6(速停车:泊云速:科拓),
+const ETCP_APP_PATH = '/pages/pay/order-pay-open/main?lotId=《停车场编号》&parkNo=《停车位编号》&carNo=《车辆编号》';
+
+### 3、福州 榕城(江上图)
+反向寻车: 参数写死
+appId: 'wxc0d8a780faa4eaa6', (车呢:捷顺)
+path: 'pages/index/index?regionId=16631444069729358&beaconUUID=AB8190D5-D11E-4941-ACC4-42F30510B408',
+
+### 4、深圳建设广场
+无感停车:已上线
+反向寻车: 正在rollout中
+
+###  5、
+
+###  6、
+
+###  7、
+
+###  8、

+ 1 - 0
未命名 2.canvas

@@ -0,0 +1 @@
+{}

+ 1 - 0
未命名 3.canvas

@@ -0,0 +1 @@
+{}

+ 24 - 1
每日工作笔记/2024-11-27.md

@@ -11,4 +11,27 @@ https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx4f3d3a99672f1937&red
 
 
 
-https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx91379e685365e0e9&redirect_uri=https://m.kerryplus.com/tparking/jump-page-1.html&response_type=code&scope=snsapi_base&state=STATE&component_appid=wxc684d3448fdeb25a#wechat_redirect
+https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx91379e685365e0e9&redirect_uri=https://m.kerryplus.com/tparking/jump-page-1.html&response_type=code&scope=snsapi_base&state=STATE&component_appid=wxc684d3448fdeb25a#wechat_redirect
+
+
+
+https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx91379e685365e0e9&redirect_uri=https://qa-consumer.kerryplus.com/tparking/jump-page.html&response_type=code&scope=snsapi_base&state=STATE&component_appid=wxc684d3448fdeb25a#wechat_redirect
+
+[https://qa-crm.kerryplus.com/bkc/jump-page.html](https://qa-crm.kerryplus.com/bkc/jump-page.html "https://qa-crm.kerryplus.com/bkc/jump-page.html")
+
+https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx4f3d3a99672f1937&redirect_uri=https://qa-crm.kerryplus.com/bkc/jump-page.html&response_type=code&scope=snsapi_base&state=STATE&component_appid=wxc684d3448fdeb25a#wechat_redirect
+
+
+
+https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx4f3d3a99672f1937&redirect_uri=https://qa-consumer.kerryplus.com/tparking/jump-page.html&response_type=code&scope=snsapi_base&state=STATE&component_appid=wxc684d3448fdeb25a#wechat_redirect
+
+
+
+https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx91379e685365e0e9&redirect_uri=https://qa-crm.kerryplus.com/bkc/jump-page-1.html&response_type=code&scope=snsapi_base&state=STATE&component_appid=wxc684d3448fdeb25a#wechat_redirect
+
+
+https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${urlNow}&response_type=code&scope=${scope}&state=STATE&component_appid=${componentAppid}#wechat_redirect
+
+
+
+https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx91379e685365e0e9&redirect_uri=https://crm.kerryplus.com/bkc/jump-page.html&response_type=code&scope=snsapi_base&state=STATE&component_appid=wxc684d3448fdeb25a#wechat_redirect

+ 907 - 0
每日工作笔记/2024-11-28.md

@@ -0,0 +1,907 @@
+```
+import { mapState } from 'vuex';
+
+import uni from '@/utils/uniHooks';
+
+import {Toast} from 'vant';
+
+import {getPlatform, getAppIdByGroupIdAndMallId, isInWeixinH5} from '@/utils';
+
+import { debounce } from 'lodash'
+
+import dayjs from 'dayjs';
+
+import isSameOrAfter from 'dayjs/plugin/isSameOrAfter';
+
+import noCardPng from '@/pages/static/images/no-card.png'
+
+// 使用插件
+
+dayjs.extend(isSameOrAfter);
+
+  
+
+export default {
+
+data() {
+
+return {
+
+checkedCouponList: [],
+
+couponList: [],
+
+launchPath: '', // H5跳转CRM微信小程序
+
+envVersion: window.env === 'qa' ? 'trial' : 'release', // 所需跳转的小程序版本,合法值为:正式版release、开发版develop、体验版trial(支持的微信版本:iOS 8.0.18及以上、Android 8.0.19及以上)
+
+platform: getPlatform(),
+
+maxCouponFee: 0, // 计算优惠券已选的总金额
+
+remainPrice: 0, // 剩余可用优惠额度
+
+newAvailableDiscountFee: 0, // 可使用的电子券的优惠金额上限
+
+extraData: {},
+
+// 虚拟dom
+
+offset: 0,
+
+height: 0,
+
+rowHeight: 105,
+
+rowData: [...new Array(30)].map((i, index) => index),
+
+handleScrollDebounce: null,
+
+noCardPng
+
+};
+
+},
+
+computed: {
+
+...mapState({
+
+custTypeId: (state) => state.custTypeId,
+
+actualPayFee: (state) => state.order.actualPayFee,
+
+orderDetail: (state) => state.order.orderDetail,
+
+coupons: (state) => state.order.coupons,
+
+maxOneDayDiscountFee: (state) => state.order.maxOneDayDiscountFee, // 深圳单日单次使用上限
+
+usingTotalDiscount: (state) => state.order.usingTotalDiscount, // 当前已使用优惠
+
+availableDiscountFee: (state) => state.order.availableDiscountFee, // 当前已使用优惠
+
+unLimitWeekendPoints: (state) => state.order.unLimitWeekendPoints, // 新的积分上限, 默认为false(不开启), unLimitWeekendPoints: true # 开启无上限功能;   unLimitWeekendPoints: false # 关闭无上限功能;
+
+lbsId: (state) => state.lbsId, // 楼栋ID
+
+groupId: (state) => state.groupId, // 楼盘ID
+
+remainCoupons: (state) => state.order.remainCoupons, // 仅限杭州当前剩余可选电子券上限
+
+na buildingId: (state) => state.order.buildingId, // 当前车场id
+
+maxOneDayCoupons: (state) => state.order.maxOneDayCoupons,// 仅限杭州当日电子券可选上限
+
+paperDiscountFee: (state) => state.order.paperDiscountFee,// 纸质券的优惠金额
+
+}),
+
+totalFee() {
+
+return this?.orderDetail?.parkingRecord?.totalFee
+
+}
+
+},
+
+mounted() {
+
+this.height = window.document.documentElement.offsetHeight;
+
+if(!this.handleScrollDebounce) {
+
+this.handleScrollDebounce = debounce(this.handleScroll, 100)
+
+}
+
+window.addEventListener('scroll', this.handleScrollDebounce, false);
+
+this.pageInit();
+
+},
+
+methods: {
+
+handleScroll(e) {
+
+const scrollingElement = e.target.scrollingElement;
+
+const scrollTop = scrollingElement.scrollTop;
+
+const scrollHeight = scrollingElement.scrollHeight;
+
+const clientHeight = scrollingElement.clientHeight;
+
+// 计算是否已经滚动到底部
+
+const isAtBottom = scrollTop + clientHeight >= scrollHeight - this.rowHeight * 2;
+
+if (isAtBottom) {
+
+// 只有当滚动到底部时才进行计算
+
+if (!this.rowHeight && this.coupons.length) {
+
+this.rowHeight = scrollTop / (this.coupons.length === 20 ? 20 : this.coupons.length);
+
+}
+
+if (this.rowHeight > 100 && this.coupons.length > this.rowData.length) {
+
+const newRowDataCount = Math.round(scrollTop / this.rowHeight);
+
+if (newRowDataCount >= 20) {
+
+this.rowData = Array.from({length: this.rowData.length + 10}, (_, index) => index);
+
+}
+
+}
+
+setTimeout(() => {
+
+this.newGroupedCouponData()
+
+this.setAllDisabled()
+
+}, 100)
+
+}
+
+},
+
+pageInit() {
+
+const {parkInfo, parkingRecord} = this.orderDetail
+
+/*
+
+* 电子优惠券初始化逻辑(后端处理)
+
+*
+
+* 1、每次change之后,需要重新计算每个电子优惠券的逻辑
+
+* 2、superposition 叠加使用规则 (1不可叠加,2仅同类型可叠加,3可叠加);
+
+* */
+
+this.couponList = [...this.coupons];
+
+// 如果存在第三方车场优惠
+
+const {parkDiscount = 0} = parkingRecord
+
+this.remainPrice = this.usingTotalDiscount - this.paperDiscountFee - parkDiscount;
+
+if (this.isHaveDeiscountByBuildingId(this.buildingId, [ 'skc', 'tkc']) && this.orderDetail?.discountInfo?.points?.[0]?.discountFee) {
+
+this.remainPrice = this.remainPrice - this.orderDetail.discountInfo.points[0].discountFee
+
+}
+
+// 前海积分不参与当前电子券优惠上限 (福州、深圳建设广场)
+
+if (this.isHaveDeiscountByBuildingId(this.buildingId, [ 'qhkc', 'fzkc', 'szkp1' ]) && this.orderDetail.discountInfo?.points?.[0]?.discountFee) {
+
+this.remainPrice = this.remainPrice - this.orderDetail?.discountInfo?.points[0]?.discountFee
+
+}
+
+this.newAvailableDiscountFee = this.availableDiscountFee
+
+// console.log(878787, this.newAvailableDiscountFee);
+
+if (this.couponList.length) {
+
+this.couponList = this.couponList.map((elm, index) => {
+
+elm.disabled = true;
+
+const selected = elm.hasOwnProperty('selected') ? elm.selected : elm.defaultSelected;
+
+if (selected) {
+
+this.maxCouponFee = this.maxCouponFee + elm.discountFee;
+
+this.checkedCouponList.push(`coupon${index}`);
+
+elm.disabled = false;
+
+} else {
+
+// elm.disabled = !elm.defaultSelected
+
+}
+
+return elm;
+
+});
+
+if (!this.checkedCouponList.length) {
+
+this.couponList = this.couponList.map((elm) => {
+
+elm.disabled = false;
+
+return elm;
+
+});
+
+}
+
+this.$nextTick(() => {
+
+// 验证剩余优惠券是否可勾选(无需验证:后端已计算可勾选的优惠券) 4, 0, 1, 3, 10,
+
+this.newGroupedCouponData()
+
+this.setAllDisabled()
+
+if (this.isHaveDeiscountByBuildingId(this.buildingId, [ 'jakc', 'kcp', 'bkc', 'skc', 'qhkc', 'tkc', 'fzkc', 'szkp1' ])) {
+
+this.isDisabledByRule(this.couponList[0], 0, 'showMsg');
+
+}
+
+})
+
+}
+
+},
+
+item2Number(i) {
+
+return Number.parseInt(i.replace(/coupon/g, ''));
+
+},
+
+checkboxItemChange(name, index) {
+
+const coupon = this.couponList[index];
+
+if (coupon.disabled) {
+
+if (this.getAmountToBePaid() <= 0) {
+
+Toast('当前无需追加优惠')
+
+return;
+
+}
+
+setTimeout(() => {
+
+// 根据电子券规则判断是否可选
+
+this.isDisabledByRule(coupon, index);
+
+}, 100)
+
+return;
+
+}
+
+// 取消勾选时
+
+if (this.checkedCouponList.indexOf(name) > -1) {
+
+this.checkedCouponList = this.checkedCouponList.filter((i) => i !== name);
+
+this.remainPrice = this.remainPrice - this.couponList[index].discountFee
+
+this.newAvailableDiscountFee = this.newAvailableDiscountFee + this.couponList[index].discountFee
+
+this.newGroupedCouponData()
+
+this.setAllDisabled()
+
+this.isDisabledByRule(coupon, index, 'showMsg');
+
+return;
+
+}
+
+// 如果有选中项
+
+// 还需支付金额 = 总金额 - 优惠金额
+
+if (this.getAmountToBePaid() <= 0) {
+
+Toast('当前无需追加优惠')
+
+return;
+
+}
+
+const item = this.couponList[index];
+
+this.remainPrice = this.remainPrice + this.couponList[index].discountFee
+
+this.newAvailableDiscountFee = this.newAvailableDiscountFee - this.couponList[index].discountFee
+
+if (!item.disabled) {
+
+this.checkedCouponList.push(`coupon${index}`);
+
+}
+
+this.$nextTick(() => {
+
+this.newGroupedCouponData()
+
+this.setAllDisabled()
+
+this.isDisabledByRule(coupon, index, 'showMsg');
+
+})
+
+},
+
+// 获取还需支付金额
+
+getAmountToBePaid() {
+
+const { totalFee, paperDiscountFee, remainPrice, orderDetail } = this;
+
+let amountToBePaid = totalFee - paperDiscountFee - remainPrice;
+
+const discountFee = orderDetail.discountInfo?.points?.[0]?.discountFee || 0;
+
+// 需要处理的site
+
+if (this.isHaveDeiscountByBuildingId(this.buildingId, [ 'jakc', 'kcp', 'bkc', 'skc', 'qhkc', 'tkc', 'fzkc', 'szkp1' ]) && discountFee) {
+
+amountToBePaid -= discountFee;
+
+}
+
+return amountToBePaid;
+
+},
+
+// 针对达到优惠的上限制
+
+setAllDisabled() {
+
+const {parkInfo,parkingRule} = this.orderDetail
+
+const {maxOneTimeDiscountTime,oneTimeLimitation,oneDayLimitation,hourPrice,remainConsumeTime} = parkingRule
+
+// 设置深圳、福州的达到优惠金额的上限,置灰剩下未选择的金额
+
+if ( this.isHaveDeiscountByBuildingId(this.buildingId, [ 'jakc', 'kcp', 'bkc', 'skc', 'qhkc', 'tkc', 'fzkc', 'szkp1' ]) && this.remainPrice >= this.newAvailableDiscountFee) {
+
+this.couponList = this.couponList.map((elm,iemi) => {
+
+if ( !elm.disabled && this.checkedCouponList.indexOf(`coupon${iemi}`) < 0) {
+
+elm.disabled = true
+
+}
+
+return elm
+
+})
+
+return true
+
+}
+
+// 单日上限限制
+
+if ( oneDayLimitation && this.isHaveDeiscountByBuildingId(this.buildingId,[], [ 'jakc', 'kcp', 'bkc', 'skc', 'qhkc', 'tkc', 'fzkc', 'szkp1' ])) {
+
+const maxOneTimeDiscountFee = maxOneTimeDiscountTime * hourPrice
+
+const remainConsumeTimeFee = remainConsumeTime * hourPrice
+
+// 计算单日剩余 remainConsumeTime
+
+// 当前使用优惠 state.usingTotalDiscount
+
+// 判断符合上限
+
+if (this.remainPrice >= maxOneTimeDiscountFee) {
+
+this.couponList = this.couponList.map((elm, iemi) => {
+
+if (!elm.disabled && this.checkedCouponList.indexOf(`coupon${iemi}`) < 0) {
+
+elm.disabled = true
+
+}
+
+return elm
+
+})
+
+}
+
+}
+
+// 单次上限限制
+
+if ( oneTimeLimitation && this.isHaveDeiscountByBuildingId(this.buildingId, [], [ 'qhkc', 'tkc', 'fzkc', 'szkp1' ])) {
+
+const maxOneTimeDiscountFee = maxOneTimeDiscountTime * hourPrice
+
+// const remainConsumeTimeFee = remainConsumeTime * hourPrice
+
+// 计算单日剩余 remainConsumeTime
+
+// 当前使用优惠 state.usingTotalDiscount
+
+// 判断符合上限
+
+if (this.remainPrice >= maxOneTimeDiscountFee) {
+
+this.couponList = this.couponList.map((elm, iemi) => {
+
+if (!elm.disabled && this.checkedCouponList.indexOf(`coupon${iemi}`) < 0) {
+
+elm.disabled = true
+
+}
+
+return elm
+
+})
+
+}
+
+}
+
+// 杭州、福州、深圳前海 电子券选择上限判断 +天津 20240911
+
+if ( this.isHaveDeiscountByBuildingId(this.buildingId, [ 'jakc', 'kcp', 'hkc', 'bkc', 'skc', 'qhkc', 'tkc', 'kec', 'fzkc', 'ke3', 'szkp1', 'szkp1' ]) && this.checkedCouponList.length >= this.remainCoupons ) {
+
+this.couponList = this.couponList.map(( elm,iemi ) => {
+
+if ( !elm.disabled && this.checkedCouponList.indexOf(`coupon${ iemi }`) < 0 ) {
+
+elm.disabled = true
+
+}
+
+return elm
+
+})
+
+}
+
+return false
+
+},
+
+// 对不同类型的优惠券进行汇总统计
+
+newGroupedCouponData() {
+
+let couponList = [...this.couponList]; // 获取目前用户的电子券
+
+if (!this.checkedCouponList.length) {
+
+this.couponList = couponList.map(elm => {
+
+elm.disabled = elm?.status !== 'available' || !dayjs().isBefore(elm.expirationDate);
+
+return elm;
+
+})
+
+return
+
+}
+
+// 如果杭州、福州的使用券打到上限则不自动计算其余券是否可选 +天津 20240911
+
+if (this.checkedCouponList.length >= this.remainCoupons && this.isHaveDeiscountByBuildingId(this.buildingId, [ 'jakc', 'kcp', 'hkc', 'bkc', 'skc', 'qhkc', 'tkc', 'kec', 'fzkc', 'ke3', 'szkp1', 'szkp1' ])) {
+
+return
+
+}
+
+const index = this.item2Number(this.checkedCouponList[0])
+
+const item = this.couponList[index];
+
+const {superposition, limitCountPerOrder = 0, name} = item;
+
+switch (superposition) {
+
+case '1': // 不可叠加
+
+this.rowData.forEach((elmIndex) => {
+
+const elm = {
+
+...this.couponList[elmIndex]
+
+}
+
+if(elm.name) {
+
+this.$set(this.couponList, elmIndex , {
+
+...elm,
+
+disabled: elmIndex !== index
+
+})
+
+}
+
+})
+
+break;
+
+case '2': // 同类型可叠加
+
+// 找到
+
+this.rowData.map((elmIndex) => {
+
+const elm = {
+
+...this.couponList[elmIndex]
+
+}
+
+// 只有 status === 'available' 的才会赋值为 false
+
+elm.disabled = elm?.status !== 'available' || !dayjs().isBefore(elm.expirationDate); // 默认可选
+
+// 找到所以 superposition === 2 的同类型的券
+
+if (elm?.status === 'unavailable' || dayjs().isSameOrAfter(elm.expirationDate)) {
+
+// 这里是做一个阻断,就是避免程序往下执行,没有别的意思
+
+elm.disabled = true
+
+} else if (elm.superposition === superposition) { // 这里是找到一样类型的券
+
+const selectCouponIds = couponList.filter((iem, iemi) => iem.couponId === elm.couponId && this.checkedCouponList.indexOf(`coupon${iemi}`) > -1); // 筛选出相同批次(couponId一样)的电子券,并且是已经选中的
+
+if (elm.limitCountPerOrder > 1) { // 是否存在上限
+
+if (selectCouponIds.length >= elm.limitCountPerOrder) { // 如果这个批次的券已经选了一部分,并且超过了可选上限的话。
+
+elm.disabled = selectCouponIds.findIndex(iem => iem.code === elm.code) < 0 // 置灰剩余没有选中的电子券
+
+}
+
+} else if (elm.limitCountPerOrder === 0) { // 如果是 0 的话,则不做任何限制
+
+elm.disabled = false
+
+} else {
+
+elm.disabled = selectCouponIds.findIndex(iem => iem.code === elm.code) < 0 && selectCouponIds.length > 0 // 同类型可选的券,如果可选上限是1,就设为不可选择
+
+}
+
+} else {
+
+elm.disabled = true; // 非同批次的优惠券设置为不可选择
+
+}
+
+if(elm.name) {
+
+this.couponList[elmIndex] = {...elm}
+
+}
+
+})
+
+break;
+
+}
+
+},
+
+// 根据电子券规则判断是否可选
+
+isDisabledByRule(item, index, showMsg) {
+
+// 最高优先级,提示未生效的电子券
+
+if (item.status === 'unavailable' || dayjs().isSameOrAfter(item.expirationDate)) {
+
+return Toast({
+
+message: `当前电子券暂未生效,不可用`,
+
+className: "white-space",
+
+icon: 'none',
+
+});
+
+}
+
+// 电子券上限判断(杭州、福州)+天津 20240911
+
+if ( this.checkedCouponList.length >= this.remainCoupons && this.isHaveDeiscountByBuildingId(this.buildingId, [ 'jakc', 'kcp', 'hkc', 'bkc', 'skc', 'qhkc', 'tkc', 'kec', 'fzkc', 'ke3', 'szkp1', 'szkp1' ]) ) {
+
+if ( showMsg ) return true
+
+return Toast({
+
+message: `电子券每天最多可使用${this.maxOneDayCoupons}张`,
+
+className: "white-space",
+
+icon: 'none',
+
+});
+
+}
+
+// 浦东每次缴费超限控制、沈阳每日超限控制
+
+if (this.isHaveDeiscountByBuildingId(this.buildingId, [ 'jakc', 'kcp', 'bkc', 'skc', 'qhkc', 'tkc', 'fzkc', 'szkp1' ]) && this.crossMessage(showMsg)) {
+
+this.couponList = this.couponList.map((e, i) => {
+
+if (this.checkedCouponList.findIndex((c) => c === `coupon${i}`) === -1) {
+
+e.disabled = true;
+
+}
+
+return e
+
+});
+
+return;
+
+}
+
+// 选中状态赋值
+
+this.newGroupedCouponData();
+
+},
+
+// 是否选中
+
+isCheck(val) {
+
+return this.checkedCouponList.findIndex((e) => e == val) !== -1;
+
+},
+
+// 超限提示
+
+crossMessage(showMsg = '') {
+
+const {
+
+maxOneTimeDiscountTime,
+
+remainConsumeTime,
+
+hourPrice,
+
+oneTimeLimitation,
+
+oneDayLimitation,
+
+maxOneDayDiscountFee
+
+} = this.orderDetail.parkingRule;
+
+const {
+
+actualPayFee, // 应付金额
+
+} = this.orderDetail.parkingRecord;
+
+// 剩余可使用的优惠金额,支持动态计算; 优惠时长,不可能全部使用,不能超过车费减去优惠的金额;不能超过单次的应付金额
+
+let remainPrice = remainConsumeTime * hourPrice;
+
+if (this.isHaveDeiscountByBuildingId(this.buildingId, [ 'jakc', 'kcp', 'bkc', 'skc', 'qhkc', 'tkc', 'fzkc', 'szkp1' ])) {
+
+if (remainPrice - this.paperDiscountFee > actualPayFee) {
+
+remainPrice = actualPayFee;
+
+}
+
+}
+
+// 深圳超限处理 +天津 20240911
+
+if (this.isHaveDeiscountByBuildingId(this.buildingId, [ 'jakc', 'kcp', 'bkc', 'skc', 'qhkc', 'tkc', 'fzkc', 'szkp1' ]) && this.remainPrice >= this.availableDiscountFee) {
+
+if ( showMsg ) return true
+
+return Toast({
+
+message: `优惠券已达当日使用上限,不可再用`,
+
+className: "white-space",
+
+icon: 'none',
+
+});
+
+}
+
+// 单日上限 +天津20240911
+
+if (oneDayLimitation && this.remainPrice >= this.availableDiscountFee) {
+
+if (showMsg) return true
+
+return Toast({
+
+message: this.isHaveDeiscountByBuildingId(this.buildingId, [ 'jakc', 'kcp', 'bkc', 'skc', 'qhkc', 'tkc', 'fzkc', 'szkp1' ]) ? '当日优惠已达上限,不可再用' : `每日最高可抵扣${maxOneDayDiscountFee}元`,
+
+className: "white-space",
+
+icon: 'none',
+
+});
+
+}
+
+const maxOneTimeDiscountFee = maxOneTimeDiscountTime * hourPrice
+
+// 单次上限限制 +天津 20240911
+
+if ( oneTimeLimitation && this.isHaveDeiscountByBuildingId(this.buildingId, [], [ 'qhkc', 'tkc', 'fzkc', 'szkp1' ]) && this.remainPrice >= maxOneTimeDiscountFee) {
+
+  
+
+if ( showMsg ) return true
+
+return Toast({
+
+message: `超出抵扣上限,每次最高可抵扣${maxOneTimeDiscountTime}小时`,
+
+className: "white-space",
+
+icon: 'none',
+
+});
+
+}
+
+return false
+
+},
+
+// 确认
+
+confirm() {
+
+// 重新计算兑换券优惠
+
+const couponList = this.couponList.map((elm, index) => {
+
+elm.selected = false;
+
+if (this.checkedCouponList.indexOf(`coupon${index}`) > -1) {
+
+elm.selected = true;
+
+}
+
+return elm;
+
+});
+
+this.$store.dispatch('order/saveCouponMath', {
+
+couponList: couponList,
+
+callback: () => {
+
+this.$router.back();
+
+},
+
+});
+
+},
+
+// 跳转小程序
+
+navigateToMiniProgram() {
+
+// TODO 跳转小程序
+
+},
+
+// H5 跳转到小程序
+
+launchFn({appId, extInfo}) {
+
+this.$store.commit('cachedViews/DEL_CACHED_VIEW', {
+
+name: 'parkingFeeDetail',
+
+});
+
+this.$router.go(-2);
+
+},
+
+launchErrorFn({errMsg, appId, extInfo}) {
+
+// console.log('H5 跳转到 嘉里中心小程序: fail', JSON.stringify({ errMsg, appId, extInfo }));
+
+},
+
+onLaunchReady() {
+
+// console.log('H5 跳转到 嘉里中心小程序 的标签 渲染了');
+
+},
+
+},
+
+destroyed() {
+
+window.removeEventListener('scroll', this.handleScrollDebounce, 100);
+
+}
+
+};
+```
+
+
+
+
+https://qa-crm.kerryplus.com/bkc-jump-page-1.html
+https://crm.kerryplus.com/bkc-jump-page.html
+
+请帮忙将下面2个链接是指向   tron/temporary-parking-frontend 这个容器里面:
+
+https://crm.kerryplus.com/bkc/jump-page.html
+对应 tron/temporary-parking-frontend 容器中的 bkc/jump-page.html
+
+https://qa-crm.kerryplus.com/bkc/jump-page.html
+对应 tron/temporary-parking-frontend 容器中的 bkc/jump-page-1.html
+
+
+
+https://qa-consumer.kerryplus.com/tparking/jump-page.html](https://qa-consumer.kerryplus.com/tparking/jump-page.html "https://qa-consumer.kerryplus.com/tparking/jump-page.html
+
+
+
+[https://qa-crm.kerryplus.com/bkc/jump-page.html](https://qa-crm.kerryplus.com/bkc/jump-page.html "https://qa-crm.kerryplus.com/bkc/jump-page.html")
+
+
+
+https://qa-consumer.kerryplus.com/tparking/jump-page.html](https://qa-consumer.kerryplus.com/tparking/jump-page.html "https://qa-consumer.kerryplus.com/tparking/jump-page.html
+
+
+
+https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx91379e685365e0e9&redirect_uri=https://qa-consumer.kerryplus.com/tparking/jump-page.html&response_type=code&scope=snsapi_base&state=STATE&component_appid=wxc684d3448fdeb25a#wechat_redirect

+ 30 - 0
每日工作笔记/2024-12-02.md

@@ -0,0 +1,30 @@
+有一个数组, 如果是低于 5个的话,做切割, 如果是大于5个切小于10个,分成2个数组. 每组均分
+
+
+
+无感支付UI
+https://www.figma.com/file/tac9cTbRPJQLJ9h8sBa4pV?type=design&node-id=0%3A1&mode=dev
+
+
+
+![[Pasted image 20241202155420.png]]
+
+
+
+/parking-lots/lbs/{lbsId}
+
+
+是否支持无感支付     supportFrictionless
+无感支付商户号         merchantId
+无感支付子商户号      subMerchantId
+
+
+`/orders` 接口新增`orderType`返回
+`TEMP_PARKING`
+`FRICTIONLESS`
+
+
+新增接口`POST /user-bind-relation`,
+请求头中新增`appId`小程序id ,body中无参数
+
+

+ 103 - 0
每日工作笔记/2024-12-04.md

@@ -0,0 +1,103 @@
+1. 为什么鱼总是很聪明?因为它们在水里游泳时,能“水到渠成”。
+2. 有一天,书本和笔相遇了。书本说:“我有很多故事。”笔回答:“我有很多想法。”书本说:“那我们合作吧!”结果成了一本畅销书。
+3. 为什么骆驼不喜欢上网?因为它怕“卡”。
+4. 有一只鸭子走进药店,问:“你们有卖葡萄吗?”药剂师说:“没有。”鸭子又问:“那你们有卖葡萄吗?”药剂师说:“没有。”这只鸭子就这样问了十次,药剂师生气了:“如果你再问,我就把你放进锅里!”鸭子说:“那你们有卖锅吗?”
+5. 为什么香蕉从来不孤单?因为它总是和“果”友在一起。
+6. 有一天,两个土豆在路上走,突然一个被车撞了。另一个土豆说:“哎呀,真是个‘马铃’薯!”
+7. 一只牛和一只羊在聊天。牛说:“我很牛!”羊说:“我也不差,我是‘绵’羊!”
+8. 为什么幽灵总是很懒?因为它们喜欢“鬼混”。
+9. 有一只小鸟问另一只小鸟:“你为什么总是飞得那么高?”另一只小鸟回答:“因为我想上天!”
+10. 为什么蜗牛不喜欢打篮球?因为它总是“蜗”慢。
+11. 有一天,西瓜和橙子在一起。西瓜说:“我很甜!”橙子说:“我也很酸!”西瓜回答:“那我们一起做个沙拉吧!”
+12. 为什么鸡不喜欢去电影院?因为它不想“鸡”票。
+13. 一只猫和一只狗在比赛谁跑得快。猫说:“我比你快!”狗说:“你怎么知道?”猫回答:“因为我有‘喵’速!”
+14. 有一天,蚂蚁和大象一起走路。蚂蚁说:“我会爬树!”大象回答:“我会爬山!”蚂蚁问:“那你怎么爬的?”大象说:“我‘象’着爬!”
+15. 为什么电脑总是很冷?因为它有很多“风扇”。
+16. 有一只猪在路上走,突然摔倒了。它说:“哎呀,我的‘猪’脚!”
+17. 为什么海洋总是很深?因为它有很多“水”深。
+18. 有一天,兔子和乌龟比赛跑。兔子说:“我一定会赢!”乌龟回答:“慢慢来,‘乌’龟也能赢!”
+19. 为什么太阳总是很忙?因为它要“照”顾每一个人。
+20. 有一只老虎和一只狮子在聊天。老虎说:“我很凶猛!”狮子说:“我也不差,我是‘狮’子!”
+21. 为什么马总是很开心?因为它有很多“马”友。
+22. 有一天,苹果和梨在一起。苹果说:“我很圆!”梨回答:“我也很‘梨’!”
+23. 为什么树总是很高兴?因为它有很多“叶”子。
+24. 有一只猴子在树上摇摆,突然掉下来了。它说:“我‘猴’了!”
+25. 为什么草地总是很绿?因为它有很多“草”友。
+26. 一只小狗问:“为什么你总是叫我小狗?”小狗回答:“因为我喜欢‘汪’汪!”
+27. 有一天,星星和月亮在聊天。星星说:“我很闪亮!”月亮说:“我也很‘月’亮!”
+28. 为什么海豚总是很快乐?因为它喜欢“海”洋。
+29. 有一只青蛙在池塘里唱歌,突然被水花溅到了。它说:“我‘蛙’了!”
+30. 为什么蜂蜜总是很甜?因为它有很多“蜜”友。
+31. 一只小鸟问:“你会飞吗?”另一只小鸟回答:“当然会,我是‘鸟’人!”
+32. 有一天,番茄和黄瓜在一起。番茄说:“我很红!”黄瓜说:“我也很‘黄’!”
+33. 为什么草莓总是很受欢迎?因为它“莓”好!
+34. 一只小猪在梦里飞翔,醒来后说:“我‘猪’了一个好梦!”
+35. 有一天,狗和猫在一起。狗说:“我会看家!”猫回答:“我会‘喵’家!”
+36. 为什么水总是很清澈?因为它有很多“水”友。
+37. 有一只老鼠和一只猫在一起。老鼠说:“我很聪明!”猫说:“我也不差,我是‘猫’智!”
+38. 为什么鸡蛋总是很脆弱?因为它怕“碎”!
+39. 有一天,两个馒头在一起聊天。一个说:“我很白!”另一个说:“我也很‘馒’!”
+40. 为什么蜜蜂总是很忙?因为它要“蜂”蜜。
+41. 有一只小鸟和一只小虫在一起。小鸟说:“我会飞!”小虫说:“我会‘爬’!”
+42. 为什么龙虾总是很自信?因为它有“壳”气。
+43. 有一天,糖果和巧克力在一起。糖果说:“我很甜!”巧克力说:“我也很‘巧’!”
+44. 为什么牛奶总是很白?因为它有“乳”友。
+45. 一只小猪问:“你会跑吗?”另一只小猪回答:“当然会,我是‘猪’跑!”
+46. 有一天,米饭和面条在一起。米饭说:“我很饱!”面条说:“我也很‘面’!”
+47. 为什么草地总是很软?因为它有很多“草”友。
+48. 有一只小鱼在水里游,突然被水花溅到了。它说:“我‘鱼’了!”
+49. 为什么饼干总是很脆?因为它有很多“饼”友。
+50. 一只小猫问:“你会喵吗?”另一只小猫回答:“当然会,我是‘猫’人!”
+51. 有一天,胡萝卜和土豆在一起。胡萝卜说:“我很橙!”土豆说:“我也很‘土’!”
+52. 为什么苹果总是很圆?因为它有“果”友。
+53. 有一只小兔子问:“你会跳吗?”另一只小兔子回答:“当然会,我是‘兔’子!”
+54. 为什么火总是很热?因为它有“火”气。
+55. 有一天,巧克力和糖果在一起。巧克力说:“我很甜!”糖果说:“我也很‘糖’!”
+56. 为什么面包总是很香?因为它有“面”友。
+57. 一只小鸟问:“你会唱歌吗?”另一只小鸟回答:“当然会,我是‘鸟’人!”
+58. 有一天,西红柿和黄瓜在一起。西红柿说:“我很红!”黄瓜说:“我也很‘黄’!”
+59. 为什么牛总是很懒?因为它喜欢“牛”睡。
+60. 有一只小狗在梦里飞翔,醒来后说:“我‘狗’了一个好梦!”
+61. 为什么草莓总是很红?因为它有“莓”好!
+62. 有一天,香蕉和苹果在一起。香蕉说:“我很黄!”苹果说:“我也很‘果’!”
+63. 为什么海洋总是很蓝?因为它有“水”深。
+64. 有一只小猫和一只小狗在一起。小猫说:“我会抓老鼠!”小狗说:“我会‘汪’家!”
+65. 为什么巧克力总是很甜?因为它有“巧”友。
+66. 有一天,梨和桃在一起。梨说:“我很甜!”桃说:“我也很‘桃’!”
+67. 为什么雪总是很白?因为它有“雪”友。
+68. 有一只小猪在水里游泳,突然被水花溅到了。它说:“我‘猪’了!”
+69. 为什么西瓜总是很大?因为它有“果”友。
+70. 有一天,鸡和鸭在一起。鸡说:“我会下蛋!”鸭说:“我会‘嘎’!”
+
+71. 问:为什么苹果总是带着微笑?  
+    答:因为它们知道自己是“好果子”!:
+
+72. 有一天,两个饺子在一起聊天。一个说:“我很饱满!”另一个说:“我也很‘饺’!”
+73. 为什么鹦鹉总是喜欢模仿?因为它想“鹦”鹉自得。
+74. 一只小羊问:“你会咩吗?”另一只小羊回答:“当然会,我是‘羊’人!”
+75. 有一天,胡椒和盐在一起。胡椒说:“我很辣!”盐说:“我也很‘咸’!”
+76. 为什么面条总是很长?因为它有“面”友。
+77. 有一只小鸟在树上唱歌,突然掉下来了。它说:“我‘鸟’了!”
+78. 为什么西红柿总是很红?因为它有“果”友。
+79. 有一天,两个西瓜在一起聊天。一个说:“我很圆!”另一个说:“我也很‘瓜’!”
+80. 为什么草总是很绿?因为它有很多“草”友。
+81. 有一只小狗在梦里飞翔,醒来后说:“我‘狗’了一个好梦!”
+82. 为什么蜜蜂总是很忙?因为它要“蜂”蜜。
+83. 有一天,香蕉和橙子在一起。香蕉说:“我很黄!”橙子说:“我也很‘橙’!”
+84. 为什么熊猫总是很可爱?因为它有“熊”友。
+85. 有一只小猫和一只小狗在比赛。小猫说:“我更灵活!”小狗说:“我更忠诚!”
+86. 为什么水总是很清澈?因为它有“水”友。
+87. 有一天,苹果和桃子在一起。苹果说:“我很脆!”桃子说:“我也很‘桃’!”
+88. 为什么牛奶总是很白?因为它有“乳”友。
+89. 一只小鸟问:“你会飞吗?”另一只小鸟回答:“当然会,我是‘鸟’人!”
+90. 有一天,两个花生在一起。一个说:“我很坚果!”另一个说:“我也很‘花’!”
+91. 为什么鸡总是很忙?因为它要“下蛋”。
+92. 有一只小猪在水里游泳,突然被水花溅到了。它说:“我‘猪’了!”
+93. 为什么草莓总是很甜?因为它有“莓”好!
+94. 有一天,面包和牛奶在一起。面包说:“我很香!”牛奶说:“我也很‘乳’!”
+95. 为什么鱼总是很聪明?因为它在水里“游”来“游”去。
+96. 有一只小狗问:“你会汪吗?”另一只小狗回答:“当然会,我是‘狗’人!”
+97. 为什么巧克力总是很受欢迎?因为它“巧”妙!
+98. 有一天,葡萄和香蕉在一起。葡萄说:“我很小!”香蕉说:“我也很‘长’!”
+99. 为什么太阳总是很亮?因为它有“光”辉。
+100. 有一只小兔子问:“你会跳吗?”另一只小兔子回答:“当然会,我是‘兔’子!”

+ 4 - 0
每日工作笔记/2024-12-05.md

@@ -0,0 +1,4 @@
+openid=o7w8q4-uhXm--v_kw4fZgYg_Utf4&lbsId=8a888abd8ceb6c70018d117f469c0010&appid=wxd830fe4d1e04988e&type=asyncOrder
+
+
+pages/package-parkingFee/authCreditpay

+ 3 - 0
每日工作笔记/2024-12-06.md

@@ -0,0 +1,3 @@
+1、过了一下 已开通无感支付的场内缴费用户的提示方案
+2、在线db的查询记录触发原因
+3、无感支付的界面开发

+ 26 - 0
每日工作笔记/2024-12-09.md

@@ -0,0 +1,26 @@
+1、根本原因
+立方在停车场的服务, 遇到高并请求, 阻塞响应;
+
+某一次请求阻塞后续的请求, 找到这个 请求触发的时机
+
+3、异常处理流程
+找立方的人重启立方单点服务
+
+2、异常时间:
+2024-12-06: 9:00PM - 9:36PM
+
+1.6万次
+500
+
+250ms
+500ms
+750ms
+2000ms
+2000ms
+
+4、优化方案
+	a、立方服务优化
+	b、立方服务是否可以定时重启
+	c、临时停车减少请求数量
+
+5、是否重新梳理异常处理流程

+ 53 - 0
每日工作笔记/2024-12-12.md

@@ -0,0 +1,53 @@
+![[Pasted image 20241212101437.png]]
+
+
+ssh-keygen -t rsa -b 4096 -C "max.adolph.jp@outlook.com"
+
+
+
+max.adolph.jp@outlook.com
+
+
+https://github.com/maxVaJp/va_admin_frontend
+
+
+
+### github-key
+
+ssh-keygen -t rsa -b 4096 -C "big.bang.jp@outlook.com"
+
+第一项输入: github_va
+后面一直回车
+
+
+在 ~/.ssh/ 中添加文件 config(有这个文件就不用执行)
+在文件中添加 
+```
+#github
+Host github.com
+HostName github.com
+User git
+IdentityFile ~/.ssh/github_va
+```
+
+### 配置github中的 ssh
+cat ~/.ssh/github_va.pub
+
+### 下载
+git clone git@github.com:maxVaJp/va_admin_frontend.git
+git clone git@github.com:maxVaJp/va_admin_server.git
+
+
+### 以下必须执行
+配置仓库的提交人名称
+git config --global user.name "FIRST_NAME LAST_NAME"
+
+配置仓库的提交人邮箱
+git config --global user.email "MY_NAME@example.com"
+
+
+// oneTimeLimitation true   remainPrice 12  maxOneTimeDiscountFee = 24
+
+
+
+

+ 22 - 0
每日工作笔记/2024-12-13.md

@@ -0,0 +1,22 @@
+# 半岛铁盒F20多盘位机箱EATX全塔式NAS服务器HDD热拔插14硬盘电脑
+
+可开发票
+
+券后¥229
+
+优
+
+
+
+https://kerryprops.atlassian.net/browse/KIP-20204
+
+
+KIP-20204
+
+cancelLogin: '取消登录',
+
+parkingCancelLogin: '取消登录/注册',
+
+skipLogin: '不注册会员直接停车缴费(无会员优惠)'
+
+![[Pasted image 20241213131235.png]]

+ 2 - 0
每日工作笔记/2024-12-16.md

@@ -0,0 +1,2 @@
+无感支付联调
+parkingmallcode切换到buildingid

+ 2 - 0
每日工作笔记/2024-12-17.md

@@ -0,0 +1,2 @@
+# 研发人员Lily Wang,申请ARMS权限
+https://kerryprops.atlassian.net/browse/TIS-70844

+ 37 - 0
每日工作笔记/2024-12-18.md

@@ -0,0 +1,37 @@
+https://kerryprops.atlassian.net/browse/KIP-20314
+
+768px
+
+```
+1. ppId: "wxbcad394b3d99dac9", extraData: {…}}
+
+1. appId: "wxbcad394b3d99dac9"
+2. extraData:
+
+1. mchid: "1614886487"
+2. openid: "oudWQ5SCDElfn-IQH6eBR5JesOz4"
+3. plate_color: "BLUE"
+4. plate_number: "藏HHHHHH"
+5. sub_mchid: "1657126109"
+6. trade_scene: "PARKING"
+
+{
+	appId: "wxbcad394b3d99dac9",
+	extraData: {
+		mchid: "1614886487",
+		openid: "oudWQ5SCDElfn-IQH6eBR5JesOz4",
+		plate_color: "BLUE",
+		plate_number: "藏HHHHHH",
+		sub_mchid: "1657126109",
+		trade_scene: "PARKING",
+	}
+}
+```
+
+
+mchid=1614886487&sub_mchid=1657126109&openid=oudWQ5SCDElfn-IQH6eBR5JesOz4&plate_number=%E6%B5%99AFE7450&plate_color=GREEN
+
+
+1、上线前保证没有问题的主要功能;
+2、梳理验收流程;
+

+ 37 - 0
每日工作笔记/2024-12-20.md

@@ -0,0 +1,37 @@
+## 前端页面调整范围:
+
+### CRM小程序:
+
+1. 临时停车模式下的登录页面UI调整
+    
+2. 跳转微信车主服务小程序的中转小程序页面
+    
+
+### KerryPlus小程序:
+
+1. 临时停车模式下的登录页面UI调整
+    
+
+### 临时停车H5:
+
+1. 临时停车首页功能球处理逻辑调整;
+    
+2. 停车订单列表补充 无感支付详情调整车主服务小程序;
+    
+3. 增加无感支付开通入口;
+    
+4. 增加增加同步unionid和openid接口: /user-bind-relation;
+    
+5. 停车查询缴费页面增加无感车辆开通后的场内缴费提示
+    
+
+### crm管理端
+
+1. 停车订单报表页面: 展示无感支付订单类型
+    
+2. 停车首页功能管理页面: 增加无感支付功能球配置功能项;
+    
+
+@Anson Chen @Anson Chen @Yulia Liu 以上是无感支付上线的相关的修改内容.
+
+CC @Kai Chen @Lock Qiu

+ 20 - 0
每日工作笔记/2024-12-23.md

@@ -0,0 +1,20 @@
+pages.packageLogin.select.skipLogin
+
+pages.packageLogin.select.parkingCancelLogin
+
+
+
+
+https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx91379e685365e0e9&redirect_uri=https://sl-m.kerryplus.com/tparking/bkc/jump-page.html&response_type=code&scope=snsapi_base&state=STATE&component_appid=wxc684d3448fdeb25a#wechat_redirect
+
+
+
+
+
+https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx2bd99ca94d6acd7e&redirect_uri=https://lt-consumer.kerryplus.com/tparking/bkc/jump-page-1.html&response_type=code&scope=snsapi_base&state=STATE&component_appid=wx4f3d3a99672f1937#wechat_redirect
+
+
+
+登录地址: https://va.fusionpay.one/
+账户: test1224
+密码: 123456

+ 66 - 0
每日工作笔记/2024-12-25.md

@@ -0,0 +1,66 @@
+功能球
+
+1、停车券兑换: 当前小程序的页面 固定参数 没用开发时间
+2、无感支付: 纯入口 -> 我们自己的页面, 输入车牌  需要开发时间
+3、反向寻车 (FIND_CAR)
+- 直接跳转(福州的) 
+- 需要中间页面, 需要去掉接口查车辆在场记录(供应商科托不一样),承载(前海)
+4、其他
+
+
+
+```json
+{         
+	"code": "PAYMENT_RECORDS",         
+	"desc": "缴费记录",         
+	"enabled": true,         
+	"wxEnabled": true,         
+	"aliEnabled": true     
+	sort: int,
+	jump_type: 直接跳第三方小程序、当前小程序的页面
+	jump_type_params: {
+	 // 参数
+	 businessType: 'wxpayScoreDetail', 
+	 extraData: { 
+		 mch_id: '1230000109', 
+		 service_id: '88888888000011', 
+		 out_order_no: '1234323JKHDFE1243252', 
+		 timestamp: '1530097563', nonce_str: 'zyx53Nkey8o4bHpxTQvd8m7e92nG5mG2', sign_type: 'HMAC-SHA256', sign: '029B52F67573D7E3BE74904BF9AEA' },
+	}
+}, 
+```
+
+中转入口, 只开发开关
+
+
+```json
+[
+
+// 所有停车券兑换的跳转参数
+	{         
+		"code": "COUPON_EXCHANGE",         
+		"desc": "停车券兑换",     
+		"wxEnabled": true,         
+		"aliEnabled": true,
+		"jump_type": "currentPage",
+		"jump_type_params": {
+		    "path": "/pages/pointsMall/pointsMallNew?exchangeTypes=2"
+		}
+	},
+
+// 福州的反寻
+	{         
+		"code": "FIND_CAR",         
+		"desc": "反向寻车",     
+		"wxEnabled": true,         
+		"aliEnabled": false,
+		"jump_type": "thirdPartyApp",
+		"jump_type_params": {
+		    appId: 'wxc0d8a780faa4eaa6',
+			path: 'pages/index/index?regionId=16631444069729358&beaconUUID=AB8190D5-D11E-4941-ACC4-42F30510B408',
+			envVersion: 'release',
+		}
+	},
+
+]
+```

+ 34 - 0
每日工作笔记/2025-01-02.md

@@ -0,0 +1,34 @@
+1、 功能球跳转
+2、C端改造
+
+
+
+
+
+
+OpenSeadragon 的图片分块 配置是
+```
+Image: {
+
+xmlns: "http://schemas.microsoft.com/deepzoom/2008", //指令集
+
+Url: this.ImageServer + "/auction/images/" + this.ArtCode + "/", //图片库地址
+
+Format: "jpg", //切片格式
+
+Overlap: "1", //相邻图片重合的像素
+
+TileSize: "256", //单个切片(正方形)的边长
+
+Size: { //图片总大小
+
+Height: h,
+
+Width: w
+
+}
+
+},
+```
+
+如何计算出 需要下载 12

+ 3 - 0
每日工作笔记/2025-01-03.md

@@ -0,0 +1,3 @@
+pages/package-parkingFee/autoJump
+
+appId=wxd830fe4d1e04988e&path=%252Fpages%252Fpackage-parkingFee%252FparkingFeeWebViewLogin%253FparkingH5_redirect%253DparkingFindNcpCar%2526mallId%253D8a888abd8ceb6c70018d117f469c0010

+ 6 - 0
每日工作笔记/2025-01-06.md

@@ -0,0 +1,6 @@
+node
+Welcome to Node.js v14.21.3.
+Type ".help" for more information.
+> decodeURIComponent("https://login.microsoftonline.com/07c91b7d-9802-4b50-ba60-7bec58681fda/oauth2/v2.0/authorize?client_id=4196077a-9683-4316-8888-c4fac35ae2a4&scope=User.Read%20openid%20profile%20offline_access&redirect_uri=http%3A%2F%2Flocalhost%3A1024%2Flogin&client-request-id=6b95e7da-3d72-4d9b-8607-a3c8473cfb28&response_mode=fragment&response_type=code&x-client-SKU=msal.js.browser&x-client-VER=2.28.1&client_info=1&code_challenge=tT0wjj1lXYIFFCzoaFyhRr9iDep5rjsDi4M4HqT9Rug&code_challenge_method=S256&prompt=select_account&nonce=ae26f6ae-1bda-4ffe-a62b-877ee00c90f7&state=eyJpZCI6IjQ1MzI2MjY5LTlkODEtNDAzYy1hNmYzLWEyMDhiMjBmOWQ5NyIsIm1ldGEiOnsiaW50ZXJhY3Rpb25UeXBlIjoicmVkaXJlY3QifX0%3D")
+'https://login.microsoftonline.com/07c91b7d-9802-4b50-ba60-7bec58681fda/oauth2/v2.0/authorize?client_id=4196077a-9683-4316-8888-c4fac35ae2a4&scope=User.Read openid profile offline_access&redirect_uri=http://localhost:1024/login&client-request-id=6b95e7da-3d72-4d9b-8607-a3c8473cfb28&response_mode=fragment&response_type=code&x-client-SKU=msal.js.browser&x-client-VER=2.28.1&client_info=1&code_challenge=tT0wjj1lXYIFFCzoaFyhRr9iDep5rjsDi4M4HqT9Rug&code_challenge_method=S256&prompt=select_account&nonce=ae26f6ae-1bda-4ffe-a62b-877ee00c90f7&state=eyJpZCI6IjQ1MzI2MjY5LTlkODEtNDAzYy1hNmYzLWEyMDhiMjBmOWQ5NyIsIm1ldGEiOnsiaW50ZXJhY3Rpb25UeXBlIjoicmVkaXJlY3QifX0='
+>

+ 93 - 0
每日工作笔记/2025-01-07.md

@@ -0,0 +1,93 @@
+```json
+[
+
+// 所有停车券兑换的跳转参数
+	{         
+		"code": "COUPON_EXCHANGE",         
+		"desc": "停车券兑换",     
+		"wxEnabled": true,         
+		"aliEnabled": true,
+		"jump_type": "currentPage",
+		"jump_type_params": {
+		    "path": "/pages/pointsMall/pointsMallNew?exchangeTypes=2"
+		}
+	},
+
+// 福州的反寻
+	{         
+		"code": "FIND_CAR",         
+		"desc": "反向寻车",     
+		"wxEnabled": true,         
+		"aliEnabled": false,
+		"jump_type": "thirdPartyApp",
+		"jump_type_params": {
+		    appId: 'wxc0d8a780faa4eaa6',
+			path: 'pages/index/index?regionId=16631444069729358&beaconUUID=AB8190D5-D11E-4941-ACC4-42F30510B408',
+			envVersion: 'release',
+		}
+	},
+
+]
+```
+
+
+
+```json
+vm.dataFormnew.portalConfig = JSON.stringify(vm.dataFormnew.displayFunctionList.map(elm => {
+
+if(elm.code === "FIND_CAR") {
+
+return {
+
+"code": "FIND_CAR",
+
+"desc": "反向寻车",
+
+"wxEnabled": true,
+
+"aliEnabled": false,
+
+"jump_type": "thirdPartyApp",
+
+"jump_type_params": {
+
+appId: 'wxc0d8a780faa4eaa6',
+
+path: 'pages/index/index?regionId=16631444069729358&beaconUUID=AB8190D5-D11E-4941-ACC4-42F30510B408',
+
+envVersion: 'release',
+
+}
+
+}
+
+}
+
+if(elm.code === "COUPON_EXCHANGE") {
+
+return {
+
+"code": "COUPON_EXCHANGE",
+
+"desc": "停车券兑换",
+
+"wxEnabled": true,
+
+"aliEnabled": true,
+
+"jump_type": "currentPage",
+
+"jump_type_params": {
+
+"path": "/pages/pointsMall/pointsMallNew?exchangeTypes=2"
+
+}
+
+}
+
+}
+
+return elm
+
+}))
+```

+ 17 - 0
每日工作笔记/2025-01-08.md

@@ -0,0 +1,17 @@
+8a888a087cc59dc0017cc622f9ad0000
+
+
+8a8884e77cc9e70a017cca3e49c80007
+
+source_type=%25E9%25A6%2596%25E9%25A1%25B5&source_id=ball_02_03&source_name=ball&brandId=8a888a087cc59dc0017cc622f9ad0000&lbsId=8a8884e77cc9e70a017cca3e49c80007
+
+
+
+source_type=%25E9%25A6%2596%25E9%25A1%25B5&source_id=ball_02_03&source_name=ball&brandId=8a888a087cc59dc0017cc622f9ad0000&lbsId=8a8884e77cc9e70a017cca3e49c80007
+
+
+pages/package-parking/webview?source_type=%25E9%25A6%2596%25E9%25A1%25B5&source_id=ball_02_03&source_name=ball&brandId=8a888a087cc59dc0017cc622f9ad0000&lbsId=8a8884e77cc9e70a017cca3e49c80007
+
+
+
+https://va.fusionpay.one/api/admin/payment/rate/method?channel=SUNPAY&currency=TRC20&type=DEPOSIT

+ 0 - 0
每日工作笔记/2025-01-16.md


+ 12 - 0
每日工作笔记/2025-01-20.md

@@ -0,0 +1,12 @@
+docker run -p 61616:61616 -p 8161:8161 \
+           -v /Users/sysadmin/code/docker/activemq/conf \
+           -v /Users/sysadmin/code/docker/activemq/data:/opt/activemq/data \
+           rmohr/activemq
+
+
+PVS
+1、微信支付二维码生成接口
+2、pix支付二维码生成接口
+3、退款接口接口
+
+

+ 21 - 0
每日工作笔记/2025-01-22.md

@@ -0,0 +1,21 @@
+![[Pasted image 20250122231715.png]]
+
+openId=oudWQ5cy_NNco62obCQu42P1WEbQ 
+
+unionId=o5zJv5p7MiHwFXq9w72AN-iw_aL
+
+以下是根据 unionId查出来的信息
+
+kipuserId: 8aa880fd79f9d884017b7b9c388e0c97
+
+tenantId:  8aa880047ac37223017b5cddc1df06e1
+
+手机号: 18320858591
+
+用户名称: 姚偲
+
+对应的公司是: 爱客科技(深圳)有限公司,爱客壹商电子商务(深圳)有限公司
+
+办公地点:  深圳前海嘉里中心
+
+我推测这个人想白嫖停车费,但是试了这么久都没成功

BIN
每日工作笔记/images/Pasted image 20241202155420.png


BIN
每日工作笔记/images/Pasted image 20241212101437.png


BIN
每日工作笔记/images/Pasted image 20241213131235.png


BIN
每日工作笔记/images/Pasted image 20250122231715.png


BIN
附件/download.pdf