Showing
8 changed files
with
82 additions
and
36 deletions
| 1 | # port | 1 | # port |
| 2 | -VITE_PORT = 8006 | 2 | +VITE_PORT = 8216 |
| 3 | 3 | ||
| 4 | # 反向代理服务器地址 | 4 | # 反向代理服务器地址 |
| 5 | -VITE_PROXY_TARGET = http://voice.onwall.cn | 5 | +VITE_PROXY_TARGET = http://oa-dev.onwall.cn |
| 6 | 6 | ||
| 7 | # API请求前缀 | 7 | # API请求前缀 |
| 8 | VITE_PROXY_PREFIX = /srv/ | 8 | VITE_PROXY_PREFIX = /srv/ |
| 9 | 9 | ||
| 10 | # 打包输出文件夹名称 | 10 | # 打包输出文件夹名称 |
| 11 | -VITE_OUTDIR = voice | 11 | +VITE_OUTDIR = record_tools |
| 12 | 12 | ||
| 13 | # 是否开启调试 | 13 | # 是否开启调试 |
| 14 | VITE_CONSOLE = 0 | 14 | VITE_CONSOLE = 0 | ... | ... |
| ... | @@ -9,11 +9,8 @@ declare module 'vue' { | ... | @@ -9,11 +9,8 @@ declare module 'vue' { |
| 9 | export interface GlobalComponents { | 9 | export interface GlobalComponents { |
| 10 | RouterLink: typeof import('vue-router')['RouterLink'] | 10 | RouterLink: typeof import('vue-router')['RouterLink'] |
| 11 | RouterView: typeof import('vue-router')['RouterView'] | 11 | RouterView: typeof import('vue-router')['RouterView'] |
| 12 | - VanButton: typeof import('vant/es')['Button'] | ||
| 13 | VanCell: typeof import('vant/es')['Cell'] | 12 | VanCell: typeof import('vant/es')['Cell'] |
| 14 | VanCellGroup: typeof import('vant/es')['CellGroup'] | 13 | VanCellGroup: typeof import('vant/es')['CellGroup'] |
| 15 | - VanCol: typeof import('vant/es')['Col'] | ||
| 16 | VanFloatingPanel: typeof import('vant/es')['FloatingPanel'] | 14 | VanFloatingPanel: typeof import('vant/es')['FloatingPanel'] |
| 17 | - VanRow: typeof import('vant/es')['Row'] | ||
| 18 | } | 15 | } |
| 19 | } | 16 | } | ... | ... |
| ... | @@ -9,7 +9,16 @@ | ... | @@ -9,7 +9,16 @@ |
| 9 | "build-watch": "vite build --watch", | 9 | "build-watch": "vite build --watch", |
| 10 | "build-ts": "vue-tsc --noEmit && vite build", | 10 | "build-ts": "vue-tsc --noEmit && vite build", |
| 11 | "serve": "vite preview", | 11 | "serve": "vite preview", |
| 12 | - "cypress:open": "cypress open" | 12 | + "cypress:open": "cypress open", |
| 13 | + "tar": "tar -czvpf dist.tar.gz record_tools", | ||
| 14 | + "build_tar": "npm run build && npm run tar", | ||
| 15 | + "scp-oa": "scp dist.tar.gz itomix@ipadbiz.cn:/opt/oa/f/", | ||
| 16 | + "dec-oa": "ssh itomix@ipadbiz.cn 'cd /opt/oa/f/ && tar -xzvf dist.tar.gz && rm -rf dist.tar.gz'", | ||
| 17 | + "scp-dev": "scp dist.tar.gz itomix@ipadbiz.cn:/opt/space-dev/f", | ||
| 18 | + "dec-dev": "ssh itomix@ipadbiz.cn 'cd /opt/space-dev/f && tar -xzvf dist.tar.gz && rm -rf dist.tar.gz'", | ||
| 19 | + "remove_tar": "rm -rf dist.tar.gz", | ||
| 20 | + "oa_upload": "npm run build_tar && npm run scp-oa && npm run dec-oa && npm run remove_tar", | ||
| 21 | + "dev_upload": "npm run build_tar && npm run scp-dev && npm run dec-dev && npm run remove_tar" | ||
| 13 | }, | 22 | }, |
| 14 | "dependencies": { | 23 | "dependencies": { |
| 15 | "@vitejs/plugin-legacy": "^1.8.2", | 24 | "@vitejs/plugin-legacy": "^1.8.2", | ... | ... |
| ... | @@ -2,8 +2,8 @@ | ... | @@ -2,8 +2,8 @@ |
| 2 | * @Author: hookehuyr hookehuyr@gmail.com | 2 | * @Author: hookehuyr hookehuyr@gmail.com |
| 3 | * @Date: 2022-05-26 23:52:36 | 3 | * @Date: 2022-05-26 23:52:36 |
| 4 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 4 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 5 | - * @LastEditTime: 2024-01-02 13:59:58 | 5 | + * @LastEditTime: 2024-02-07 12:07:15 |
| 6 | - * @FilePath: /tswj/src/App.vue | 6 | + * @FilePath: /my-record/src/App.vue |
| 7 | * @Description: | 7 | * @Description: |
| 8 | --> | 8 | --> |
| 9 | <template> | 9 | <template> |
| ... | @@ -24,9 +24,9 @@ import { setToastDefaultOptions } from 'vant'; | ... | @@ -24,9 +24,9 @@ import { setToastDefaultOptions } from 'vant'; |
| 24 | // eslint-disable-next-line no-unused-vars | 24 | // eslint-disable-next-line no-unused-vars |
| 25 | import vConsole from '@/utils/vconsole' | 25 | import vConsole from '@/utils/vconsole' |
| 26 | // 初始化WX环境 | 26 | // 初始化WX环境 |
| 27 | -import wx from 'weixin-js-sdk' | 27 | +// import wx from 'weixin-js-sdk' |
| 28 | -import { wxJsAPI } from '@/api/wx/config' | 28 | +// import { wxJsAPI } from '@/api/wx/config' |
| 29 | -import { apiList } from '@/api/wx/jsApiList.js' | 29 | +// import { apiList } from '@/api/wx/jsApiList.js' |
| 30 | 30 | ||
| 31 | // 使用 include + pinia 状态管理动态缓存页面 | 31 | // 使用 include + pinia 状态管理动态缓存页面 |
| 32 | const store = mainStore() | 32 | const store = mainStore() |
| ... | @@ -46,15 +46,15 @@ watchEffect( | ... | @@ -46,15 +46,15 @@ watchEffect( |
| 46 | // }); | 46 | // }); |
| 47 | 47 | ||
| 48 | onMounted(async () => { | 48 | onMounted(async () => { |
| 49 | - const { data } = await wxJsAPI(); | 49 | + // const { data } = await wxJsAPI(); |
| 50 | - data.jsApiList = apiList; | 50 | + // data.jsApiList = apiList; |
| 51 | - wx.config(data); | 51 | + // wx.config(data); |
| 52 | - wx.ready(() => { | 52 | + // wx.ready(() => { |
| 53 | - wx.showAllNonBaseMenuItem(); | 53 | + // wx.showAllNonBaseMenuItem(); |
| 54 | - }); | 54 | + // }); |
| 55 | - wx.error((err) => { | 55 | + // wx.error((err) => { |
| 56 | - console.warn(err); | 56 | + // console.warn(err); |
| 57 | - }); | 57 | + // }); |
| 58 | }) | 58 | }) |
| 59 | </script> | 59 | </script> |
| 60 | 60 | ... | ... |
| 1 | +<!-- | ||
| 2 | + * @Date: 2024-02-01 09:28:10 | ||
| 3 | + * @LastEditors: hookehuyr hookehuyr@gmail.com | ||
| 4 | + * @LastEditTime: 2024-02-05 14:32:39 | ||
| 5 | + * @FilePath: /my-record/src/views/about.vue | ||
| 6 | + * @Description: 文件描述 | ||
| 7 | +--> | ||
| 1 | <template> | 8 | <template> |
| 2 | - <div class="">router test</div> | 9 | + <div class="">router test |
| 10 | + | ||
| 11 | + <!-- <div contenteditable="true" class="textarea" @input="input"></div> --> | ||
| 12 | + <div class="line">123</div> | ||
| 13 | + </div> | ||
| 3 | </template> | 14 | </template> |
| 4 | 15 | ||
| 5 | <script setup> | 16 | <script setup> |
| 17 | +import { ref } from "vue"; | ||
| 18 | +const input = (e) => { | ||
| 19 | + console.log(e.target.innerHTML); | ||
| 20 | +}; | ||
| 6 | </script> | 21 | </script> |
| 7 | 22 | ||
| 8 | <style lang="less" scoped> | 23 | <style lang="less" scoped> |
| 24 | +.textarea { | ||
| 25 | + width: 300px; | ||
| 26 | + height: 150px; | ||
| 27 | + border: 1px solid #ccc; | ||
| 28 | + padding: 5px; | ||
| 29 | + font-family: Arial, sans-serif; | ||
| 30 | + font-size: 14px; | ||
| 31 | + line-height: 1.5; | ||
| 32 | +} | ||
| 33 | +.line { | ||
| 34 | + position: relative; | ||
| 35 | + height: 1px; | ||
| 36 | +} | ||
| 37 | + | ||
| 38 | +.line::before { | ||
| 39 | + content: ""; | ||
| 40 | + position: absolute; | ||
| 41 | + top: 0; | ||
| 42 | + left: 0; | ||
| 43 | + right: 0; | ||
| 44 | + height: 1px; | ||
| 45 | + background-color: black; | ||
| 46 | + transform: scaleY(0.5); | ||
| 47 | +} | ||
| 9 | </style> | 48 | </style> | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-02-01 11:11:21 | 2 | * @Date: 2024-02-01 11:11:21 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-02-01 15:03:08 | 4 | + * @LastEditTime: 2024-02-07 16:22:39 |
| 5 | * @FilePath: /my-record/src/views/h5-record.vue | 5 | * @FilePath: /my-record/src/views/h5-record.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -23,15 +23,15 @@ | ... | @@ -23,15 +23,15 @@ |
| 23 | 23 | ||
| 24 | <van-floating-panel> | 24 | <van-floating-panel> |
| 25 | <van-cell-group> | 25 | <van-cell-group> |
| 26 | - <van-cell title="打开录音,请求权限" @click.native="recOpen" /> | 26 | + <van-cell title="打开录音,请求权限" icon="music-o" @click.native="recOpen" /> |
| 27 | - <van-cell title="关闭录音,释放资源" @click.native="recClose" /> | 27 | + <van-cell title="关闭录音,释放资源" icon="close" @click.native="recClose" /> |
| 28 | - <van-cell title="录制" @click.native="recStart" /> | 28 | + <van-cell title="录制" icon="volume-o" @click.native="recStart" /> |
| 29 | - <van-cell title="暂停" @click.native="recPause" /> | 29 | + <van-cell title="暂停" icon="pause-circle-o" @click.native="recPause" /> |
| 30 | - <van-cell title="继续录音" @click.native="recResume" /> | 30 | + <van-cell title="继续录音" icon="revoke" @click.native="recResume" /> |
| 31 | - <van-cell title="停止录音" @click.native="recStop" /> | 31 | + <van-cell title="停止录音" icon="stop-circle-o" @click.native="recStop" /> |
| 32 | - <van-cell title="播放录音" @click.native="recPlayLast" /> | 32 | + <van-cell title="播放录音" icon="play-circle-o" @click.native="recPlayLast" /> |
| 33 | - <van-cell title="下载录音" @click.native="recDownLast" /> | 33 | + <!-- <van-cell title="下载录音" icon="down" @click.native="recDownLast" /> --> |
| 34 | - <van-cell title="上传录音" @click.native="recUploadLast" /> | 34 | + <van-cell title="上传录音" icon="upgrade" @click.native="recUploadLast" /> |
| 35 | </van-cell-group> | 35 | </van-cell-group> |
| 36 | </van-floating-panel> | 36 | </van-floating-panel> |
| 37 | 37 | ... | ... |
-
Please register or login to post a comment