hookehuyr

fix

# port
VITE_PORT = 8006
VITE_PORT = 8216
# 反向代理服务器地址
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
......
# 资源公共路径
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 =
......
......@@ -13,3 +13,4 @@ src/test/mocha/test.js
cypress.json
src/test
.idea
record_tools
......
......@@ -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']
}
}
......
......@@ -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",
......
......@@ -2,8 +2,8 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-26 23:52:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-01-02 13:59:58
* @FilePath: /tswj/src/App.vue
* @LastEditTime: 2024-02-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>
......
<!--
* @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>
......
<!--
* @Date: 2024-02-01 11:11:21
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-02-01 15:03:08
* @LastEditTime: 2024-02-07 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>
......