Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
my-record
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-02-07 16:23:41 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ef7824b5f8d2f1b64de25b5ecb6b8a179a0e1545
ef7824b5
1 parent
603c67d0
fix
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
82 additions
and
36 deletions
.env
.env.production
.gitignore
components.d.ts
package.json
src/App.vue
src/views/about.vue
src/views/h5-record.vue
.env
View file @
ef7824b
# port
VITE_PORT = 8
00
6
VITE_PORT = 8
21
6
# 反向代理服务器地址
VITE_PROXY_TARGET = http://
voice
.onwall.cn
VITE_PROXY_TARGET = http://
oa-dev
.onwall.cn
# API请求前缀
VITE_PROXY_PREFIX = /srv/
# 打包输出文件夹名称
VITE_OUTDIR =
voice
VITE_OUTDIR =
record_tools
# 是否开启调试
VITE_CONSOLE = 0
...
...
.env.production
View file @
ef7824b
# 资源公共路径
VITE_BASE = /f/
voice
/
VITE_BASE = /f/
record_tools
/
# 测试open-id
VITE_APP_OPENID =
VITE_APP_OPENID =
# B端账号
VITE_APP_ID =
VITE_APP_ID =
# 验证码
VITE_APP_PIN =
VITE_APP_PIN =
...
...
.gitignore
View file @
ef7824b
...
...
@@ -13,3 +13,4 @@ src/test/mocha/test.js
cypress.json
src/test
.idea
record_tools
...
...
components.d.ts
View file @
ef7824b
...
...
@@ -9,11 +9,8 @@ declare module 'vue' {
export
interface
GlobalComponents
{
RouterLink
:
typeof
import
(
'vue-router'
)[
'RouterLink'
]
RouterView
:
typeof
import
(
'vue-router'
)[
'RouterView'
]
VanButton
:
typeof
import
(
'vant/es'
)[
'Button'
]
VanCell
:
typeof
import
(
'vant/es'
)[
'Cell'
]
VanCellGroup
:
typeof
import
(
'vant/es'
)[
'CellGroup'
]
VanCol
:
typeof
import
(
'vant/es'
)[
'Col'
]
VanFloatingPanel
:
typeof
import
(
'vant/es'
)[
'FloatingPanel'
]
VanRow
:
typeof
import
(
'vant/es'
)[
'Row'
]
}
}
...
...
package.json
View file @
ef7824b
...
...
@@ -9,7 +9,16 @@
"build-watch"
:
"vite build --watch"
,
"build-ts"
:
"vue-tsc --noEmit && vite build"
,
"serve"
:
"vite preview"
,
"cypress:open"
:
"cypress open"
"cypress:open"
:
"cypress open"
,
"tar"
:
"tar -czvpf dist.tar.gz record_tools"
,
"build_tar"
:
"npm run build && npm run tar"
,
"scp-oa"
:
"scp dist.tar.gz itomix@ipadbiz.cn:/opt/oa/f/"
,
"dec-oa"
:
"ssh itomix@ipadbiz.cn 'cd /opt/oa/f/ && tar -xzvf dist.tar.gz && rm -rf dist.tar.gz'"
,
"scp-dev"
:
"scp dist.tar.gz itomix@ipadbiz.cn:/opt/space-dev/f"
,
"dec-dev"
:
"ssh itomix@ipadbiz.cn 'cd /opt/space-dev/f && tar -xzvf dist.tar.gz && rm -rf dist.tar.gz'"
,
"remove_tar"
:
"rm -rf dist.tar.gz"
,
"oa_upload"
:
"npm run build_tar && npm run scp-oa && npm run dec-oa && npm run remove_tar"
,
"dev_upload"
:
"npm run build_tar && npm run scp-dev && npm run dec-dev && npm run remove_tar"
},
"dependencies"
:
{
"@vitejs/plugin-legacy"
:
"^1.8.2"
,
...
...
src/App.vue
View file @
ef7824b
...
...
@@ -2,8 +2,8 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-26 23:52:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-0
1-02 13:59:58
* @FilePath: /
tswj
/src/App.vue
* @LastEditTime: 2024-0
2-07 12:07:15
* @FilePath: /
my-record
/src/App.vue
* @Description:
-->
<template>
...
...
@@ -24,9 +24,9 @@ import { setToastDefaultOptions } from 'vant';
// eslint-disable-next-line no-unused-vars
import vConsole from '@/utils/vconsole'
// 初始化WX环境
import wx from 'weixin-js-sdk'
import { wxJsAPI } from '@/api/wx/config'
import { apiList } from '@/api/wx/jsApiList.js'
//
import wx from 'weixin-js-sdk'
//
import { wxJsAPI } from '@/api/wx/config'
//
import { apiList } from '@/api/wx/jsApiList.js'
// 使用 include + pinia 状态管理动态缓存页面
const store = mainStore()
...
...
@@ -46,15 +46,15 @@ watchEffect(
// });
onMounted(async () => {
const { data } = await wxJsAPI();
data.jsApiList = apiList;
wx.config(data);
wx.ready(() => {
wx.showAllNonBaseMenuItem();
});
wx.error((err) => {
console.warn(err);
});
//
const { data } = await wxJsAPI();
//
data.jsApiList = apiList;
//
wx.config(data);
//
wx.ready(() => {
//
wx.showAllNonBaseMenuItem();
//
});
//
wx.error((err) => {
//
console.warn(err);
//
});
})
</script>
...
...
src/views/about.vue
View file @
ef7824b
<!--
* @Date: 2024-02-01 09:28:10
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-02-05 14:32:39
* @FilePath: /my-record/src/views/about.vue
* @Description: 文件描述
-->
<template>
<div class="">router test</div>
<div class="">router test
<!-- <div contenteditable="true" class="textarea" @input="input"></div> -->
<div class="line">123</div>
</div>
</template>
<script setup>
import { ref } from "vue";
const input = (e) => {
console.log(e.target.innerHTML);
};
</script>
<style lang="less" scoped>
.textarea {
width: 300px;
height: 150px;
border: 1px solid #ccc;
padding: 5px;
font-family: Arial, sans-serif;
font-size: 14px;
line-height: 1.5;
}
.line {
position: relative;
height: 1px;
}
.line::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background-color: black;
transform: scaleY(0.5);
}
</style>
...
...
src/views/h5-record.vue
View file @
ef7824b
<!--
* @Date: 2024-02-01 11:11:21
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-02-0
1 15:03:08
* @LastEditTime: 2024-02-0
7 16:22:39
* @FilePath: /my-record/src/views/h5-record.vue
* @Description: 文件描述
-->
...
...
@@ -23,15 +23,15 @@
<van-floating-panel>
<van-cell-group>
<van-cell title="打开录音,请求权限" @click.native="recOpen" />
<van-cell title="关闭录音,释放资源" @click.native="recClose" />
<van-cell title="录制" @click.native="recStart" />
<van-cell title="暂停" @click.native="recPause" />
<van-cell title="继续录音" @click.native="recResume" />
<van-cell title="停止录音" @click.native="recStop" />
<van-cell title="播放录音" @click.native="recPlayLast" />
<
van-cell title="下载录音" @click.native="recDownLast" /
>
<van-cell title="上传录音" @click.native="recUploadLast" />
<van-cell title="打开录音,请求权限"
icon="music-o"
@click.native="recOpen" />
<van-cell title="关闭录音,释放资源"
icon="close"
@click.native="recClose" />
<van-cell title="录制"
icon="volume-o"
@click.native="recStart" />
<van-cell title="暂停"
icon="pause-circle-o"
@click.native="recPause" />
<van-cell title="继续录音"
icon="revoke"
@click.native="recResume" />
<van-cell title="停止录音"
icon="stop-circle-o"
@click.native="recStop" />
<van-cell title="播放录音"
icon="play-circle-o"
@click.native="recPlayLast" />
<
!-- <van-cell title="下载录音" icon="down" @click.native="recDownLast" /> --
>
<van-cell title="上传录音"
icon="upgrade"
@click.native="recUploadLast" />
</van-cell-group>
</van-floating-panel>
...
...
Please
register
or
login
to post a comment