diff --git a/project.private.config.json b/project.private.config.json index b6a6b04..e50f12a 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -9,13 +9,6 @@ "miniprogram": { "list": [ { - "name": "module1/pages/chatRoom/index", - "pathName": "module1/pages/chatRoom/index", - "query": "id=5", - "launchMode": "default", - "scene": null - }, - { "name": "聊天室", "pathName": "module1/pages/chatRoom/index", "query": "id=4", diff --git a/src/components/customAudioText/index.json b/src/components/customAudioText/index.json new file mode 100644 index 0000000..074f50b --- /dev/null +++ b/src/components/customAudioText/index.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "van-popup": "@vant/weapp/popup/index" + } +} diff --git a/src/components/customAudioText/index.scss b/src/components/customAudioText/index.scss new file mode 100644 index 0000000..1cacf6b --- /dev/null +++ b/src/components/customAudioText/index.scss @@ -0,0 +1,27 @@ +.audio-text { + width: 580rpx; + background-color: #f6f6f6; + padding: 0 32rpx; + box-sizing: border-box; + .title { + padding: 32rpx 0; + text-align: center; + font-size: 36rpx; + color: #1d2129; + font-weight: bold; + } + .container { + padding: 32rpx; + background-color: #fff; + border-radius: 16rpx; + font-size: 28rpx; + color: #858585; + line-height: 44rpx; + } + .copy { + padding: 32rpx; + font-size: 32rpx; + color: #00b4c5; + text-align: center; + } +} diff --git a/src/components/customAudioText/index.ts b/src/components/customAudioText/index.ts new file mode 100644 index 0000000..490562e --- /dev/null +++ b/src/components/customAudioText/index.ts @@ -0,0 +1,72 @@ +Component({ + // 组件选项 + options: { + multipleSlots: true, + }, + behaviors: [], + properties: { + url: { + type: String, + value: "", + }, + }, + // 组件数据 + data: { + isPageHidden: false, // 页面是否处于隐藏状态 + show: false, + text: "", + }, + // 数据监听器 + observers: {}, + // 组件方法 + methods: { + init() {}, + handleAudioText() { + this.setData({ + show: true, + }); + wx.ajax({ + method: "GET", + url: "?r=takeda/common/audio-url-to-text", + data: { + AudioUrl: this.data.url, + }, + }).then((res) => { + this.setData({ + show: true, + text: res.text, + }); + }); + }, + onClose() { + this.setData({ + show: false, + }); + }, + onCopy() { + this.setData({ + show: false, + }); + wx.setClipboardData({ + data: this.data.text, + success() { + wx.showToast({ + title: "复制成功", + icon: "success", + }); + }, + }); + }, + }, + // 组件生命周期 + lifetimes: { + created() {}, + attached() { + this.init(); + }, + ready() {}, + moved() {}, + detached() {}, + }, + definitionFilter() {}, +}); diff --git a/src/components/customAudioText/index.wxml b/src/components/customAudioText/index.wxml new file mode 100644 index 0000000..2b05327 --- /dev/null +++ b/src/components/customAudioText/index.wxml @@ -0,0 +1,11 @@ + + + + + + + 语音转化内容 + {{text}} + 复制 + + diff --git a/src/module1/pages/casesDetail/index.json b/src/module1/pages/casesDetail/index.json index d6c7a9f..947aeaf 100644 --- a/src/module1/pages/casesDetail/index.json +++ b/src/module1/pages/casesDetail/index.json @@ -5,6 +5,7 @@ "doctorAvatar": "/components/doctorAvatar/index", "van-dialog": "@vant/weapp/dialog/index", "customAudioBar": "/components/customAudioBar/index", - "van-icon": "@vant/weapp/icon/index" + "van-icon": "@vant/weapp/icon/index", + "customAudioText":"/components/customAudioText/index" } } diff --git a/src/module1/pages/casesDetail/index.wxml b/src/module1/pages/casesDetail/index.wxml index c4af3c1..4c5fd85 100644 --- a/src/module1/pages/casesDetail/index.wxml +++ b/src/module1/pages/casesDetail/index.wxml @@ -73,7 +73,7 @@ - 转文字 + 转文字 @@ -165,7 +165,7 @@ - 转文字 + 转文字 diff --git a/src/module1/pages/casesFeedback/index.json b/src/module1/pages/casesFeedback/index.json index f0d801d..786fe2d 100644 --- a/src/module1/pages/casesFeedback/index.json +++ b/src/module1/pages/casesFeedback/index.json @@ -6,6 +6,7 @@ "van-icon": "@vant/weapp/icon/index", "customRecord": "/components/customRecord/index", "customAudioBar": "/components/customAudioBar/index", - "van-popup": "@vant/weapp/popup/index" + "van-popup": "@vant/weapp/popup/index", + "customAudioText": "/components/customAudioText/index" } } diff --git a/src/module1/pages/casesFeedback/index.wxml b/src/module1/pages/casesFeedback/index.wxml index 08f8499..a93ef89 100644 --- a/src/module1/pages/casesFeedback/index.wxml +++ b/src/module1/pages/casesFeedback/index.wxml @@ -22,7 +22,7 @@ bind:tap="handleDelAudio" data-index="{{index}}" > - + 转文字 diff --git a/src/module1/pages/entryCases/index.json b/src/module1/pages/entryCases/index.json index bdaebb7..6ee613b 100644 --- a/src/module1/pages/entryCases/index.json +++ b/src/module1/pages/entryCases/index.json @@ -7,6 +7,7 @@ "customAudioBar": "/components/customAudioBar/index", "van-popup": "@vant/weapp/popup/index", "van-nav-bar": "@vant/weapp/nav-bar/index", - "van-toast": "@vant/weapp/toast/index" + "van-toast": "@vant/weapp/toast/index", + "customAudioText": "/components/customAudioText/index" } } diff --git a/src/module1/pages/entryCases/index.wxml b/src/module1/pages/entryCases/index.wxml index 9f6e9d9..23d7c56 100644 --- a/src/module1/pages/entryCases/index.wxml +++ b/src/module1/pages/entryCases/index.wxml @@ -49,7 +49,7 @@ bind:tap="handleDelAudio" data-index="{{index}}" > - + 转文字 @@ -125,7 +125,7 @@ 直接提交我的反馈信息 提交并邀约质控医生 - 病历公开(选择公开后,本科室医生均查看病历) + 病历公开(选择公开后,本科室医生均查看病历) diff --git a/src/module1/pages/login/index.wxml b/src/module1/pages/login/index.wxml index 89000e6..d1aba7f 100644 --- a/src/module1/pages/login/index.wxml +++ b/src/module1/pages/login/index.wxml @@ -37,7 +37,7 @@ 手机号快捷登录 - + 我已阅读并同意 《用户隐私协议》 diff --git a/src/module1/pages/org4/index.wxml b/src/module1/pages/org4/index.wxml index 1043729..80bd96f 100644 --- a/src/module1/pages/org4/index.wxml +++ b/src/module1/pages/org4/index.wxml @@ -15,11 +15,11 @@ {{doctorCount.TotalCount}} - 三级医生 + 质控医生 {{doctorCount.ThreeCount}} - 二级医生 + 核心医生 {{doctorCount.TwoCount}}