소스 검색

Update README.md

lex 2 년 전
부모
커밋
68fabff733
1개의 변경된 파일2개의 추가작업 그리고 54개의 파일을 삭제
  1. 2 54
      README.md

+ 2 - 54
README.md

@@ -43,7 +43,8 @@ See [Configuration Reference](https://vitejs.dev/config/).
 ```
 /src/student -- 学生端页面目录
 /src/teacher -- 老师端页面目录
-/src/views 两端共用页面,路由最好配置到 routes-common 文件中
+/src/manage  -- 管理端页面目录
+/src/views 三端共用页面,路由最好配置到 routes-common 文件中
 
 /src/components -- 公用组件
 1、图片上传
@@ -61,59 +62,6 @@ See [Configuration Reference](https://vitejs.dev/config/).
 1、所有的图片和视频尺寸统一 3:2
 2、所有的金额四舍五入保留两位小数, 所有的金额保留 2 位小数,有百分符
 
-### native-message api
-
-<!-- 选择文件 -->
-
-postMessage({ api: 'chooseFile', content: {
-type: 'img' | 'video' | 'file' | 'midi' | 'mp3' | 'xml',
-max: 1
-}}, (res) => {
-
-  <!-- fileUrl。 如果是视频 firstFrameImg -->
-
-})
-
-<!-- 进入直播间 -->
-
-postMessage({ api: 'joinLiveRoom', content: {
-roomId: 'xxx',
-teacherId: 'xxx'
-})
-
-<!-- 进入群聊天 -->
-
-postMessage({
-api: 'joinChatGroup',
-content: {
-type: 'multi', // single 单人 multi 多人
-id: item.id,
-role: 'STUDENT' || 'TEACHER'
-}
-})
-
-<!-- 拉起支付 -->
-
-postMessage({
-api: 'paymentOrder',
-content: {
-orderNo: this.orderInfo.orderNo,
-payInfo: `alipays://platformapi/startapp?saId=10000007&qrcode=${res.data.pay_info}`
-}
-})
-
-<!-- 原生导航是否显示 -->
-
-postMessage({api:'setBarStatus',content:{status:1}});
-
-<!-- 原生导航返回样式 -->
-
-postMessage({api:'backIconChange',content:{iconStyle:'black'}});
-
-<!-- 获取原生导航高度 -->
-
-postMessage({ api: 'getNavHeight' })
-
 ### 获取某个目录下面的图片对象
 
 export const getAssetsHomeFile = (fileName: string) => {