diff --git a/AGENTS.md b/AGENTS.md index 4f554db..8ab5ddc 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,7 +2,9 @@ ## 项目概述 -IGG4 重症肌无力(MG)患者社区微信小程序。两种用户角色:患者(loginType=1)和医生(loginType=2)。基于 TypeScript + SCSS 构建,无测试框架。 +愈见昕生(原 gMG给力加油站/重症肌无力加油站)— MG 患者社区微信小程序。两种用户角色:患者(loginType=1)和医生(loginType=2)。基于 TypeScript + SCSS 构建,无测试框架。 + +信达小程序项目位置 C:\Users\kola\project\xinda-miniprogram ### 技术栈 @@ -31,10 +33,43 @@ IGG4 重症肌无力(MG)患者社区微信小程序。两种用户角色: - **源码根目录**:`src/`(在 project.config.json 中设为 `miniprogramRoot`) - **入口**:`src/app.ts` + `src/app.json` - **路径别名**:`@/*` 映射到 `src/*`(tsconfig paths + app.json resolveAlias) -- **自定义 Page 包装器**:`src/utils/page.ts` 在 `app.ts` onLaunch 时全局替换 `Page()` — 注入 `imageUrl`/`Timestamp` 数据、滚动导航栏变色、默认分享行为、`handleMakePhoneCall`。所有页面都经过此包装器。 +- **自定义 Page 包装器**:`src/utils/page.ts` 在 `app.ts` onLaunch 时全局替换 `Page()` — 注入 `imageUrl`/`Timestamp`/`theme` 数据、滚动导航栏变色、默认分享行为、`handleMakePhoneCall`。所有页面都经过此包装器。 - **HTTP 请求**:`src/api/request.ts` 将 `wx.request` 封装为 `wx.ajax`(通过 `licia.curry` 柯里化基础 URL)。所有 API 调用使用 `wx.ajax()`,而非 `wx.request()`。自动在 header 和 body 中注入 `loginState`。 - **npm 包**:由微信开发者工具构建到 `src/miniprogram_npm/`(packNpmManually 配置)。不要直接编辑 miniprogram_npm。 +### 主题系统(DRUG / PATIENT) + +用药患者(VIP,UserType >= 4)使用紫色 DRUG 主题,非用药患者使用绿色 PATIENT 主题。 + +- **`app.getTheme()`**:异步获取用户主题,返回 `'DRUG'` 或 `'PATIENT'`。内部轮询等待 `userInfo` 加载完成。 +- **`page.ts` 全局注入**:在 `setImageParams` 中为所有非医生端页面注入 `data.theme`,初始值 `'PATIENT'`,异步通过 `getTheme()` 更新为 `'DRUG'`(如适用)。医生端页面不注入 `theme`。 +- **页面根元素 id**:所有患者端 WXML 页面根 `` 添加 `id="{{theme === 'DRUG' && 'drug-page'}}"`,用药患者时 id 为 `drug-page`,非用药患者时 id 为空。 +- **CSS 覆盖方式**:在 SCSS 中通过 `#drug-page` 选择器覆盖用药患者样式,无需修改原有绿色样式。 + +#### 用药患者(DRUG)主题色值 + +| 类型 | 色值 | +|------|------| +| 文字色 | `rgba(89, 86, 233, 1)` | +| 按钮渐变 | `linear-gradient(270deg, #5956E9 0%, #B384F4 100%)` | +| 浅色背景 | `rgba(89, 86, 233, 0.1)` | + +#### 主题使用示例(SCSS) + +```scss +.btn { background: #0eb66d; } +#drug-page .btn { background: linear-gradient(270deg, #5956E9 0%, #B384F4 100%); } + +.text { color: #0eb66d; } +#drug-page .text { color: rgba(89, 86, 233, 1); } +``` + +#### 主题使用示例(WXML) + +```xml + +``` + ### 登录与权限系统(app.ts) - **登录流程**:`onShow` → `startLogin()` → `wx.login` 获取 code → 后端 `init-login` 返回 `loginState` @@ -42,7 +77,7 @@ IGG4 重症肌无力(MG)患者社区微信小程序。两种用户角色: - 1:空白用户 → 跳转登录页 - 2:已注册用户 → 需完善资料 - 3:已确诊患者 → 需上传认证 - - 4:已用药患者(VIP)→ 完整权限 + - 4:已用药患者(VIP)→ 完整权限,使用 DRUG 主题 - **路由守卫**:`verifySys(pub)` 检查登录状态和角色,自动重定向: - 未登录 + 医生端页面 → 医生登录页 - 未登录 + 患者端页面 → 患者登录页(若 anyWhere 为 true 则"随便看看"模式) @@ -68,11 +103,27 @@ IGG4 重症肌无力(MG)患者社区微信小程序。两种用户角色: | 4 | `/pages/story/index` | 向往的生活 | | 5 | `/pages/my/index` | 我的 | -- 自定义 TabBar 使用 Vant `van-tabbar` 组件 +- **患者端 TabBar**(`src/custom-tab-bar/`):使用 Vant `van-tabbar` 组件,额外包含"用药提醒"自定义按钮(`item.custom=true`),仅 `theme === 'DRUG'` 时展示 +- **医生端 TabBar**(`src/doctor/components/tabbar/`):自定义组件(非 Vant),纯 HTML/CSS 实现 - Tab 4(向往的生活)在 `anyWhere` 为 true 时隐藏(浏览模式) - Tab 2(MG全知道)在 `config.picTextEbookStatus === 1` 时可能重定向到 webview - Tab 5(我的)需要 `permissionVerification(grade=2)` -- 主题支持:DRUG / PATIENT(当前始终解析为 PATIENT) +- 患者 TabBar 通过 `app.registerListener` 监听全局事件更新 `theme` + +### 医患互动消息类型 + +互动页面(`d_interactive`/`d_interactiveDoctor`/`interactivePatient`)仅支持以下消息类型: + +| msgContentType | 类型 | 说明 | +|----------------|------|------| +| 1 | 文本(患者发送) | 患者发送的标准消息 | +| 2 | 出诊时间 | 医生出诊时间信息 | +| 5 | 欢迎语 | 欢迎引导消息 | +| 10 | ADL | ADL 评估相关消息 | +| 11 | 文本(患者) | 患者文本消息 | +| 12 | 文本(医生自定义) | 医生自定义文本回复 | + +已移除的类型:audio(4)、info(6)、info(7)、referral(8)、referral-replay(9)。 ### HTTP 响应约定(api/request.ts) @@ -106,7 +157,8 @@ IGG4 重症肌无力(MG)患者社区微信小程序。两种用户角色: - **个人中心**:`my`、`mySave`、`personalInformation`、`changePhone`、`changeUser`、`cancellation` - **家庭**:`family`、`familyList`、`familyScan` - **医疗**:`hospital`、`doctor`、`doctorDetail`、`drugRecord`、`infusionCenter`、`nrdl`、`nrdlDetail`、`nrdlTable` -- **其他**:`thePublic`、`privacyAgreement`、`taskAgreement`、`comIns`、`signIn`、`smallPage`、`webview`、`referral`、`interactivePatient`、`demo` +- **互动**:`interactivePatient` +- **其他**:`thePublic`、`privacyAgreement`、`taskAgreement`、`comIns`、`signIn`、`smallPage`、`webview`、`referral`、`demo`、`qaForm` ### 医生端分包页面(src/doctor/) @@ -155,11 +207,17 @@ IGG4 重症肌无力(MG)患者社区微信小程序。两种用户角色: | `viewFile` | 文件查看 | | `viewVideo` | 视频播放器 | +### 医生端组件(src/doctor/components/) + +| 组件 | 说明 | +|------|------| +| `tabbar` | 医生端自定义 TabBar(非 Vant,纯 HTML/CSS) | + ## 工具函数(src/utils/) | 文件 | 说明 | |------|------| -| `page.ts` | Page() 全局替换:注入 imageUrl/Timestamp、滚动导航栏变色、默认分享、handleMakePhoneCall | +| `page.ts` | Page() 全局替换:注入 imageUrl/Timestamp/theme、滚动导航栏变色、默认分享、handleMakePhoneCall。医生端页面不注入 theme。 | | `util.ts` | formatTime、formatNumber、getCurrentPageUrl、getCurrentPageUrlWithArgs、parseScene | | `promisify.ts` | 基于 Proxy 的 wx API Promise 化(同步方法保留,异步方法返回 Promise) | | `watch.ts` | 基于 Object.defineProperty 的页面级数据监听(setWatcher) | @@ -169,7 +227,7 @@ IGG4 重症肌无力(MG)患者社区微信小程序。两种用户角色: ## 类型定义(typings/index.d.ts) -- `IAppOption` — App 实例接口,包含 globalData 结构和方法签名 +- `IAppOption` — App 实例接口,包含 globalData 结构和方法签名(含 `getTheme()`) - `IAgaxParams` — 扩展的请求选项,含 `showMsg`、`loading`、`isJSON` - `Response` — 通用 API 响应结构 - `globalSystemInfo` — 扩展的系统信息,含胶囊按钮位置 @@ -187,6 +245,7 @@ IGG4 重症肌无力(MG)患者社区微信小程序。两种用户角色: - 主包页面 → `pages` 数组 - 分包页面 → `subpackages` 中对应分包的 `pages` 数组 4. 如页面使用组件,在页面的 `index.json` 的 `usingComponents` 中注册 +5. **患者端页面**:根 `` 需添加 `id="{{theme === 'DRUG' && 'drug-page'}}"` 以支持 DRUG 主题覆盖 ### 新增组件 @@ -197,6 +256,7 @@ IGG4 重症肌无力(MG)患者社区微信小程序。两种用户角色: ## 关键约定 +- **品牌名称**:项目品牌名"愈见昕生",不再使用"重症肌无力加油站"或"gMG给力加油站" - **JSX/F2 图表**:Babel 插件 `@babel/plugin-transform-react-jsx`,`jsxImportSource: "@antv/f2"` — 页面中的 `.jsx` 文件使用 F2 图表语法,由 beforeCompile 脚本转译 - **微信全局变量**:`wx`、`App`、`Page`、`Component`、`getCurrentPages`、`getApp` 已在 ESLint globals 中声明 - **CSS 单位**:使用 `rpx`(微信响应式像素),布局中不用 `px` @@ -204,9 +264,11 @@ IGG4 重症肌无力(MG)患者社区微信小程序。两种用户角色: - **`noImplicitAny: false`** — 允许隐式 any - **`removeComments: true`**(tsconfig)— 编译输出移除注释 - **Prettier**:无分号、单引号、尾逗号、120 字符宽度;`.wxml` 按 HTML 解析,`.wxss` 按 CSS 解析,`.wxs` 按 babel 解析 -- **API URL 格式**:所有 API 调用使用 `?r=模块/动作` 格式(如 `?r=igg4/user/init-login`、`?r=igg4/account/info`) -- **默认分享**:患者端页面分享到 `/pages/index/index`,医生端页面分享到 `/doctor/pages/d_home/index`,标题:"重症肌无力加油站,重拾生活掌控感!" +- **API URL 格式**:所有 API 调用使用 `?r=模块/动作` 格式(如 `?r=zd/user/init-login`、`?r=zd/account/info`) +- **默认分享**:患者端页面分享到 `/pages/index/index`,医生端页面分享到 `/doctor/pages/d_home/index`,标题:"愈见昕生,重拾生活掌控感!" - **客服电话**:全局 `handleMakePhoneCall` 拨打 `4008102299` +- **医生端页面禁止调用 `getTheme()`**:`getTheme()` 仅在 `page.ts` 和患者端组件(如 `custom-tab-bar`)中使用 +- **患者端页面禁止重复调用 `getTheme()`**:`page.ts` 已全局注入 `theme`,页面中无需再次调用 ## 环境 / 部署 diff --git a/src/components/toast/index.scss b/src/components/toast/index.scss index f1d599c..62e0fb9 100644 --- a/src/components/toast/index.scss +++ b/src/components/toast/index.scss @@ -2431,7 +2431,7 @@ } .popup-patient-detail-safe-doctor { - .badge{ + .badge { position: relative; z-index: 1; display: block; @@ -2446,7 +2446,7 @@ width: 670rpx; box-sizing: border-box; border-radius: 24rpx; - background: linear-gradient(180deg, #E5FFF4 0%, #FFFFFF 22.89%, #FFFFFF 100%); + background: linear-gradient(180deg, #e5fff4 0%, #ffffff 22.89%, #ffffff 100%); .content { font-size: 36rpx; color: rgba(34, 34, 34, 1); @@ -3568,6 +3568,35 @@ } } +.popup-feedback { + .popup-container { + padding: 332rpx 0; + width: 630rpx; + height: 818rpx; + box-sizing: border-box; + .code { + display: block; + width: 310rpx; + height: 310rpx; + margin: 0 auto; + } + } +} +.popup-follow { + .popup-container { + padding: 316rpx 0; + width: 630rpx; + height: 814rpx; + box-sizing: border-box; + .code { + display: block; + width: 340rpx; + height: 340rpx; + margin: 0 auto; + } + } +} + .close { margin: 48rpx auto 0; display: block; diff --git a/src/components/toast/index.ts b/src/components/toast/index.ts index 90fedfc..1a03d9c 100644 --- a/src/components/toast/index.ts +++ b/src/components/toast/index.ts @@ -42,6 +42,12 @@ Component({ if (['storyLead', 'storyStar', 'storyShare'].includes(this.data.type)) { this.getSettingInfo() } + if (this.data.type === 'feedback') { + this.getFeedbackCode() + } + if (this.data.type === 'follow') { + this.getFollowCode() + } } this.setData({ userInfo: app.globalData.userInfo, @@ -61,6 +67,8 @@ Component({ userInfo: {}, openPatientList: {}, popup1Check1: false, + feedbackQrCode: '', + followQrCode: '', }, lifetimes: { attached() { @@ -134,6 +142,34 @@ Component({ }) }) }, + getFeedbackCode() { + wx.ajax({ + method: 'GET', + url: '?r=igg4/common/get-channel-wx-code', + data: { + ChannelType: '11', + Id: '', + }, + }).then((res) => { + this.setData({ + feedbackQrCode: res, + }) + }) + }, + getFollowCode() { + wx.ajax({ + method: 'GET', + url: '?r=igg4/common/get-channel-wx-code', + data: { + ChannelType: '11', + Id: '', + }, + }).then((res) => { + this.setData({ + followQrCode: res, + }) + }) + }, handleProtocolChange() { this.setData({ protocol: !this.data.protocol, diff --git a/src/components/toast/index.wxml b/src/components/toast/index.wxml index be7a272..1336281 100644 --- a/src/components/toast/index.wxml +++ b/src/components/toast/index.wxml @@ -660,14 +660,17 @@ - -
+ + 通过 「专属医生互动」 医生可远程关注您的健康状态啦 -
+
立即体验
+ + + + + + + + + + diff --git a/src/doctor/pages/d_interactiveDoctor/index.wxml b/src/doctor/pages/d_interactiveDoctor/index.wxml index 3b7459f..29b5426 100644 --- a/src/doctor/pages/d_interactiveDoctor/index.wxml +++ b/src/doctor/pages/d_interactiveDoctor/index.wxml @@ -77,7 +77,7 @@ - + {{customMessage || '输入文字'}} 快捷回复 diff --git a/src/doctor/pages/d_my/index.json b/src/doctor/pages/d_my/index.json index e516894..927c013 100644 --- a/src/doctor/pages/d_my/index.json +++ b/src/doctor/pages/d_my/index.json @@ -1,8 +1,10 @@ { "navigationBarTitleText": "我的", + "navigationBarBackgroundColor": "#F6F8F9", "usingComponents": { "van-icon": "@vant/weapp/icon/index", "tabbar": "../../components/tabbar/index", - "text-expandsion": "/components/text-expandsion/index" + "text-expandsion": "/components/text-expandsion/index", + "toast": "/components/toast/index" } } diff --git a/src/doctor/pages/d_my/index.scss b/src/doctor/pages/d_my/index.scss index 3619d97..2633360 100644 --- a/src/doctor/pages/d_my/index.scss +++ b/src/doctor/pages/d_my/index.scss @@ -1,5 +1,5 @@ page { - background: #f2f4f5; + background: #F6F8F9; padding-bottom: calc(140rpx + env(safe-area-inset-bottom)); } .page { diff --git a/src/doctor/pages/d_my/index.ts b/src/doctor/pages/d_my/index.ts index c6782bf..3b0e2b2 100644 --- a/src/doctor/pages/d_my/index.ts +++ b/src/doctor/pages/d_my/index.ts @@ -1,9 +1,12 @@ -const app = getApp() +const app = getApp() Page({ data: { doctor: {}, hospital: {}, + toastShow: false, + toastType: '', + toastParams: {}, }, onLoad() { const SystemInfo = app.globalSystemInfo @@ -66,14 +69,13 @@ Page({ }) }, handleFollow() { - wx.navigateTo({ - url: '/pages/thePublic/index', - }) + this.setData({ toastShow: true, toastType: 'follow', toastParams: { close: true } }) }, handleFeedback() { - wx.navigateTo({ - url: '/pages/comIns/index', - }) + this.setData({ toastShow: true, toastType: 'feedback', toastParams: { close: true } }) + }, + handleToastClose() { + this.setData({ toastShow: false, toastType: '' }) }, handleLogout() { wx.showModal({ diff --git a/src/doctor/pages/d_my/index.wxml b/src/doctor/pages/d_my/index.wxml index 22ef0f7..2f431e8 100644 --- a/src/doctor/pages/d_my/index.wxml +++ b/src/doctor/pages/d_my/index.wxml @@ -47,4 +47,11 @@ 退出登录 + + diff --git a/src/images/1/start.png b/src/images/1/start.png index 3685663..8f0ea64 100644 Binary files a/src/images/1/start.png and b/src/images/1/start.png differ diff --git a/src/images/bg27.png b/src/images/bg27.png new file mode 100644 index 0000000..8cf5081 Binary files /dev/null and b/src/images/bg27.png differ diff --git a/src/images/bg28.png b/src/images/bg28.png new file mode 100644 index 0000000..a8c57b3 Binary files /dev/null and b/src/images/bg28.png differ diff --git a/src/images/icon74.png b/src/images/icon74.png index f13b148..f279642 100644 Binary files a/src/images/icon74.png and b/src/images/icon74.png differ diff --git a/src/images/icon82.png b/src/images/icon82.png new file mode 100644 index 0000000..671b114 Binary files /dev/null and b/src/images/icon82.png differ diff --git a/src/images/icon83.png b/src/images/icon83.png new file mode 100644 index 0000000..671b114 Binary files /dev/null and b/src/images/icon83.png differ diff --git a/src/pages/enterInfo/index.wxml b/src/pages/enterInfo/index.wxml index ecfc320..8b67e66 100644 --- a/src/pages/enterInfo/index.wxml +++ b/src/pages/enterInfo/index.wxml @@ -1,4 +1,4 @@ - + @@ -27,17 +27,36 @@ 患者年龄 - 18岁以下 - 18岁-44岁 - 45岁-59岁 - 60岁-74岁 - 75岁以上 + {{"<40岁"}} + {{"40 - 49 岁"}} + {{"50 - 59 岁"}} + {{"60 - 69 岁"}} + {{"70 - 79 岁"}} + {{"≥80 岁"}} 从首次确诊IgG4相关性疾病,到现在多久了 - 6个月以内 - 6个月-3年 - 3年以上 + + 6个月以内 + + + 6个月-3年 + + + 3年以上 + 输入真实姓名,便于医生识别随访 diff --git a/src/pages/index/index.wxml b/src/pages/index/index.wxml index a536829..98db1e1 100644 --- a/src/pages/index/index.wxml +++ b/src/pages/index/index.wxml @@ -1,7 +1,7 @@ - + {{userInfo.PatientName || 'HI'}}, diff --git a/src/pages/interactivePatient/index.scss b/src/pages/interactivePatient/index.scss index d340755..e3249bd 100644 --- a/src/pages/interactivePatient/index.scss +++ b/src/pages/interactivePatient/index.scss @@ -125,7 +125,7 @@ page { margin-bottom: 32rpx; padding: 26rpx 32rpx; background-color: #fff; - border-radius: 0 32rpx 32rpx; + border-radius: 32rpx 32rpx; font-size: 36rpx; color: rgba(33, 33, 32, 1); white-space: pre-line; @@ -478,7 +478,7 @@ page { line-height: 64rpx; font-size: 32rpx; color: #ffffff; - background: #b982ff linear-gradient(197deg, #ffbcf9 0%, #b982ff 100%); + background: #0EB66D linear-gradient(to right, #0EB66D 0%, #00D277 100%); border-radius: 111rpx 111rpx 111rpx 111rpx; } } diff --git a/src/pages/interactivePatient/index.wxml b/src/pages/interactivePatient/index.wxml index 35686bf..3a8663b 100644 --- a/src/pages/interactivePatient/index.wxml +++ b/src/pages/interactivePatient/index.wxml @@ -100,11 +100,11 @@ - + {{customMessage || '输入您的问题'}} - {{doctorDetail.isOpenOneToOne == 1 ? '快捷提问':'请选择您要咨询的问题'}} + {{doctorDetail.isOpenOneToOne != 1 || true ? '快捷提问':'请选择您要咨询的问题'}} diff --git a/src/pages/liveDetail/index.scss b/src/pages/liveDetail/index.scss index 885ad23..1570128 100644 --- a/src/pages/liveDetail/index.scss +++ b/src/pages/liveDetail/index.scss @@ -32,23 +32,26 @@ page { min-height: calc(100vh - 480rpx); .module { margin-bottom: 24rpx; - padding: 34rpx 32rpx; border-radius: 24rpx; - border: 2rpx solid #ebecee; - box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(0, 0, 0, 0.05); - background-color: #fff; - > view:nth-of-type(2) { - margin-top: 30rpx; - } - .info { - display: flex; - align-items: center; - font-size: 36rpx; - color: rgba(34, 34, 34, 0.7); - .icon { - margin-right: 12rpx; - width: 32rpx; - height: 32rpx; + background: linear-gradient(0deg, #ffffff 0%, #f0fff8 100%); + .module-wrap { + padding: 34rpx 32rpx; + border-radius: 24rpx; + border: 2rpx solid #ebecee; + box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(0, 0, 0, 0.05); + > view:nth-of-type(2) { + margin-top: 30rpx; + } + .info { + display: flex; + align-items: center; + font-size: 36rpx; + color: rgba(34, 34, 34, 0.7); + .icon { + margin-right: 12rpx; + width: 32rpx; + height: 32rpx; + } } } } @@ -166,6 +169,9 @@ page { .c-title::before { background-color: rgba(89, 86, 233, 1); } + .module { + background: linear-gradient(0, #ffffff 0%, #fbf8ff 100%); + } .btn { background: linear-gradient(270deg, #5956e9 0%, #b384f4 100%); &.signed { diff --git a/src/pages/liveDetail/index.wxml b/src/pages/liveDetail/index.wxml index a091133..05e6f06 100644 --- a/src/pages/liveDetail/index.wxml +++ b/src/pages/liveDetail/index.wxml @@ -10,13 +10,20 @@ - 活动时间 {{detail.BeginTime}} + + 活动时间 {{detail.BeginTime}} + - - 主讲人:{{detail.MasterName}} {{detail.MasterTitle}} + + + 主讲人:{{detail.MasterName}} {{detail.MasterTitle}} + 活动介绍 diff --git a/src/pages/my/index.json b/src/pages/my/index.json index 3f64da1..3f1555a 100644 --- a/src/pages/my/index.json +++ b/src/pages/my/index.json @@ -3,6 +3,7 @@ "navigationStyle": "custom", "usingComponents": { "van-icon": "@vant/weapp/icon/index", + "toast": "/components/toast/index", "pageNavbar": "/components/pageNavbar/index", "van-switch": "@vant/weapp/switch/index" } diff --git a/src/pages/my/index.scss b/src/pages/my/index.scss index 807ea71..12de61d 100644 --- a/src/pages/my/index.scss +++ b/src/pages/my/index.scss @@ -135,8 +135,8 @@ page { border-radius: 24rpx; border: 2rpx solid rgba(235, 236, 238, 0.51); .icon { - width: 64rpx; - height: 64rpx; + width: 84rpx; + height: 84rpx; margin-right: 16rpx; } .name { @@ -191,6 +191,7 @@ page { } } + #drug-page { .day { color: rgba(34, 34, 34, 0.5); diff --git a/src/pages/my/index.ts b/src/pages/my/index.ts index 53f8c75..7cb7079 100644 --- a/src/pages/my/index.ts +++ b/src/pages/my/index.ts @@ -11,6 +11,9 @@ Page({ selfScore: { expire: {}, }, + toastShow: false, + toastType: '', + toastParams: {}, adlNewRecord: {} as any, }, @@ -129,4 +132,10 @@ Page({ url: '/pages/webview/index', }) }, + handleFeedback() { + this.setData({ toastShow: true, toastType: 'feedback', toastParams: { close: true } }) + }, + handleToastClose() { + this.setData({ toastShow: false, toastType: '' }) + }, }) diff --git a/src/pages/my/index.wxml b/src/pages/my/index.wxml index 5eb7929..22f5656 100644 --- a/src/pages/my/index.wxml +++ b/src/pages/my/index.wxml @@ -1,13 +1,13 @@ -