├── README.md ├── TRTCScenesDemo └── TUICallKit-WX-Demo │ ├── README.md │ ├── app.js │ ├── app.json │ ├── app.wxss │ ├── custom-tab-bar │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss │ ├── debug │ ├── GenerateTestUserSig.js │ └── lib-generate-test-usersig-es.min.js │ ├── lib │ └── aegis.js │ ├── package-lock.json │ ├── package.json │ ├── pages │ ├── Resources │ │ ├── avatar1_100.png │ │ ├── back.png │ │ ├── call.png │ │ ├── cancellation.svg │ │ ├── check.png │ │ ├── compass.png │ │ ├── hangup.png │ │ ├── icon │ │ │ ├── camera.png │ │ │ ├── check.png │ │ │ ├── compass.png │ │ │ ├── edit.png │ │ │ ├── home-light.png │ │ │ ├── home.png │ │ │ ├── logout.png │ │ │ ├── personal-light.png │ │ │ ├── personal.png │ │ │ ├── right.png │ │ │ ├── text.png │ │ │ └── warn.png │ │ ├── personal-bg.png │ │ ├── right.png │ │ ├── search.png │ │ ├── select.png │ │ └── selected.png │ ├── about │ │ ├── index.js │ │ ├── index.json │ │ ├── index.wxml │ │ └── index.wxss │ ├── audioCall │ │ ├── audioCall.js │ │ ├── audioCall.json │ │ ├── audioCall.wxml │ │ └── audioCall.wxss │ ├── audioGroupCall │ │ ├── audioGroupCall.js │ │ ├── audioGroupCall.json │ │ ├── audioGroupCall.wxml │ │ └── audioGroupCall.wxss │ ├── cancellation │ │ ├── index.js │ │ ├── index.json │ │ ├── index.wxml │ │ └── index.wxss │ ├── index │ │ ├── index.js │ │ ├── index.json │ │ ├── index.wxml │ │ └── index.wxss │ ├── login │ │ ├── login.js │ │ ├── login.json │ │ ├── login.wxml │ │ └── login.wxss │ ├── personal │ │ ├── personal.js │ │ ├── personal.json │ │ ├── personal.wxml │ │ └── personal.wxss │ ├── videoCall │ │ ├── videoCall.js │ │ ├── videoCall.json │ │ ├── videoCall.wxml │ │ └── videoCall.wxss │ └── videoGroupCall │ │ ├── videoGroupCall.js │ │ ├── videoGroupCall.json │ │ ├── videoGroupCall.wxml │ │ └── videoGroupCall.wxss │ └── sitemap.json ├── TRTCSimpleDemo ├── README.md ├── app.js ├── app.json ├── app.wxss ├── debug │ ├── GenerateTestUserSig.js │ └── lib-generate-test-usersig-es.min.js ├── doc │ ├── 小程序 trtc-wx.md │ └── 快速集成.md ├── pages │ ├── index │ │ ├── index.js │ │ ├── index.json │ │ ├── index.wxml │ │ ├── index.wxss │ │ └── user-unlogin.png │ ├── meeting │ │ ├── meeting.js │ │ ├── meeting.json │ │ ├── meeting.wxml │ │ ├── meeting.wxss │ │ └── room │ │ │ ├── room.js │ │ │ ├── room.json │ │ │ ├── room.wxml │ │ │ └── room.wxss │ ├── videocall │ │ ├── room │ │ │ ├── room.js │ │ │ ├── room.json │ │ │ ├── room.wxml │ │ │ └── room.wxss │ │ ├── videocall.js │ │ ├── videocall.json │ │ ├── videocall.wxml │ │ └── videocall.wxss │ └── voice-room │ │ ├── join-room │ │ ├── joinRoom.js │ │ ├── joinRoom.json │ │ ├── joinRoom.wxml │ │ └── joinRoom.wxss │ │ └── room │ │ ├── room.js │ │ ├── room.json │ │ ├── room.wxml │ │ └── room.wxss ├── project.config.json ├── sitemap.json ├── static │ ├── aegis.js │ ├── images │ │ ├── audio-active.png │ │ ├── audio-false.png │ │ ├── audio-true.png │ │ ├── avatar0_100.png │ │ ├── avatar1_100.png │ │ ├── avatar2_100.png │ │ ├── avatar3_100.png │ │ ├── avatar4_100.png │ │ ├── avatar5_100.png │ │ ├── avatar6_100.png │ │ ├── avatar7_100.png │ │ ├── back.png │ │ ├── beauty-false.png │ │ ├── beauty-true.png │ │ ├── beauty.png │ │ ├── call.png │ │ ├── camera-false.png │ │ ├── camera-true.png │ │ ├── camera.png │ │ ├── close-white-big.png │ │ ├── close-white.png │ │ ├── display-pause-false.png │ │ ├── display-pause-true.png │ │ ├── display-pause-white.png │ │ ├── display-play-false.png │ │ ├── display-play-true.png │ │ ├── display-play-white.png │ │ ├── doubleroom.png │ │ ├── fullscreen-white.png │ │ ├── fullscreen.png │ │ ├── hangup-red.png │ │ ├── hangup.png │ │ ├── im-disable.png │ │ ├── im-white.png │ │ ├── im.png │ │ ├── list-white.png │ │ ├── list.png │ │ ├── loading.png │ │ ├── logo.png │ │ ├── micro-open.png │ │ ├── more-disable.png │ │ ├── more-enable.png │ │ ├── more-white.png │ │ ├── multiroom.png │ │ ├── music-white.png │ │ ├── mute-camera-gray.png │ │ ├── mute-camera-white.png │ │ ├── mute-mic-gray.png │ │ ├── mute-mic-white.png │ │ ├── phone.png │ │ ├── setting-white.png │ │ ├── setting.png │ │ ├── slide-up.png │ │ ├── speaker-false.png │ │ ├── speaker-true.png │ │ ├── speaker-white.png │ │ └── switch.png │ └── trtc-wx.js └── utils │ └── common.js └── TRTCSimpleDemoUniApp ├── App.vue ├── REAMDE.md ├── debug ├── GenerateTestUserSig.js └── lib-generate-test-usersig-es.min.js ├── index.html ├── lib ├── aegis.js └── trtc-wx.js ├── main.js ├── manifest.json ├── pages.json ├── pages ├── index │ ├── index.scss │ └── index.vue ├── meeting-room │ ├── meeting-room-config.scss │ ├── meeting-room-config.vue │ ├── meeting-room.scss │ └── meeting-room.vue ├── video-call │ ├── video-call-config.scss │ ├── video-call-config.vue │ ├── video-call.scss │ └── video-call.vue └── voice-room │ ├── voice-room-config.scss │ ├── voice-room-config.vue │ ├── voice-room.scss │ └── voice-room.vue ├── static └── images │ ├── audio-active.png │ ├── audio-false.png │ ├── audio-true.png │ ├── avatar0_100.png │ ├── avatar1_100.png │ ├── avatar2_100.png │ ├── avatar3_100.png │ ├── avatar4_100.png │ ├── avatar5_100.png │ ├── avatar6_100.png │ ├── beauty-false.png │ ├── beauty-true.png │ ├── call.png │ ├── camera-false.png │ ├── camera-true.png │ ├── camera.png │ ├── default_avatar.png │ ├── doubleroom.png │ ├── hangup-red.png │ ├── hangup.png │ ├── list.png │ ├── loading.png │ ├── logo.png │ ├── micro-open.png │ ├── multiroom.png │ ├── mute-camera-white.png │ ├── mute-mic-white.png │ ├── speaker-false.png │ ├── speaker-true.png │ └── switch.png ├── style ├── index.scss └── settings │ └── variable.scss ├── uni.scss ├── uni_modules ├── uni-badge │ ├── changelog.md │ ├── components │ │ └── uni-badge │ │ │ └── uni-badge.vue │ ├── package.json │ └── readme.md ├── uni-calendar │ ├── changelog.md │ ├── components │ │ └── uni-calendar │ │ │ ├── calendar.js │ │ │ ├── i18n │ │ │ ├── en.json │ │ │ ├── index.js │ │ │ ├── zh-Hans.json │ │ │ └── zh-Hant.json │ │ │ ├── uni-calendar-item.vue │ │ │ ├── uni-calendar.vue │ │ │ └── util.js │ ├── package.json │ └── readme.md ├── uni-card │ ├── changelog.md │ ├── components │ │ └── uni-card │ │ │ └── uni-card.vue │ ├── package.json │ └── readme.md ├── uni-collapse │ ├── changelog.md │ ├── components │ │ ├── uni-collapse-item │ │ │ └── uni-collapse-item.vue │ │ └── uni-collapse │ │ │ └── uni-collapse.vue │ ├── package.json │ └── readme.md ├── uni-combox │ ├── changelog.md │ ├── components │ │ └── uni-combox │ │ │ └── uni-combox.vue │ ├── package.json │ └── readme.md ├── uni-countdown │ ├── changelog.md │ ├── components │ │ └── uni-countdown │ │ │ ├── i18n │ │ │ ├── en.json │ │ │ ├── index.js │ │ │ ├── zh-Hans.json │ │ │ └── zh-Hant.json │ │ │ └── uni-countdown.vue │ ├── package.json │ └── readme.md ├── uni-data-checkbox │ ├── changelog.md │ ├── components │ │ └── uni-data-checkbox │ │ │ └── uni-data-checkbox.vue │ ├── package.json │ └── readme.md ├── uni-data-picker │ ├── changelog.md │ ├── components │ │ ├── uni-data-picker │ │ │ ├── keypress.js │ │ │ └── uni-data-picker.vue │ │ └── uni-data-pickerview │ │ │ ├── uni-data-picker.js │ │ │ └── uni-data-pickerview.vue │ ├── package.json │ └── readme.md ├── uni-dateformat │ ├── changelog.md │ ├── components │ │ └── uni-dateformat │ │ │ ├── date-format.js │ │ │ └── uni-dateformat.vue │ ├── package.json │ └── readme.md ├── uni-datetime-picker │ ├── changelog.md │ ├── components │ │ └── uni-datetime-picker │ │ │ ├── calendar-item.vue │ │ │ ├── calendar.vue │ │ │ ├── i18n │ │ │ ├── en.json │ │ │ ├── index.js │ │ │ ├── zh-Hans.json │ │ │ └── zh-Hant.json │ │ │ ├── keypress.js │ │ │ ├── time-picker.vue │ │ │ ├── uni-datetime-picker.vue │ │ │ └── util.js │ ├── package.json │ └── readme.md ├── uni-drawer │ ├── changelog.md │ ├── components │ │ └── uni-drawer │ │ │ ├── keypress.js │ │ │ └── uni-drawer.vue │ ├── package.json │ └── readme.md ├── uni-easyinput │ ├── changelog.md │ ├── components │ │ └── uni-easyinput │ │ │ ├── common.js │ │ │ └── uni-easyinput.vue │ ├── package.json │ └── readme.md ├── uni-fab │ ├── changelog.md │ ├── components │ │ └── uni-fab │ │ │ └── uni-fab.vue │ ├── package.json │ └── readme.md ├── uni-fav │ ├── changelog.md │ ├── components │ │ └── uni-fav │ │ │ ├── i18n │ │ │ ├── en.json │ │ │ ├── index.js │ │ │ ├── zh-Hans.json │ │ │ └── zh-Hant.json │ │ │ └── uni-fav.vue │ ├── package.json │ └── readme.md ├── uni-file-picker │ ├── changelog.md │ ├── components │ │ └── uni-file-picker │ │ │ ├── choose-and-upload-file.js │ │ │ ├── uni-file-picker.vue │ │ │ ├── upload-file.vue │ │ │ ├── upload-image.vue │ │ │ └── utils.js │ ├── package.json │ └── readme.md ├── uni-forms │ ├── changelog.md │ ├── components │ │ ├── uni-forms-item │ │ │ └── uni-forms-item.vue │ │ └── uni-forms │ │ │ ├── uni-forms.vue │ │ │ └── validate.js │ ├── package.json │ └── readme.md ├── uni-goods-nav │ ├── changelog.md │ ├── components │ │ └── uni-goods-nav │ │ │ ├── i18n │ │ │ ├── en.json │ │ │ ├── index.js │ │ │ ├── zh-Hans.json │ │ │ └── zh-Hant.json │ │ │ └── uni-goods-nav.vue │ ├── package.json │ └── readme.md ├── uni-grid │ ├── changelog.md │ ├── components │ │ ├── uni-grid-item │ │ │ └── uni-grid-item.vue │ │ └── uni-grid │ │ │ └── uni-grid.vue │ ├── package.json │ └── readme.md ├── uni-group │ ├── changelog.md │ ├── components │ │ └── uni-group │ │ │ └── uni-group.vue │ ├── package.json │ └── readme.md ├── uni-icons │ ├── changelog.md │ ├── components │ │ └── uni-icons │ │ │ ├── icons.js │ │ │ ├── uni-icons.vue │ │ │ ├── uniicons.css │ │ │ └── uniicons.ttf │ ├── package.json │ └── readme.md ├── uni-indexed-list │ ├── changelog.md │ ├── components │ │ └── uni-indexed-list │ │ │ ├── uni-indexed-list-item.vue │ │ │ └── uni-indexed-list.vue │ ├── package.json │ └── readme.md ├── uni-link │ ├── changelog.md │ ├── components │ │ └── uni-link │ │ │ └── uni-link.vue │ ├── package.json │ └── readme.md ├── uni-list │ ├── changelog.md │ ├── components │ │ ├── uni-list-ad │ │ │ └── uni-list-ad.vue │ │ ├── uni-list-chat │ │ │ ├── uni-list-chat.scss │ │ │ └── uni-list-chat.vue │ │ ├── uni-list-item │ │ │ └── uni-list-item.vue │ │ └── uni-list │ │ │ ├── uni-list.vue │ │ │ ├── uni-refresh.vue │ │ │ └── uni-refresh.wxs │ ├── package.json │ └── readme.md ├── uni-load-more │ ├── changelog.md │ ├── components │ │ └── uni-load-more │ │ │ ├── i18n │ │ │ ├── en.json │ │ │ ├── index.js │ │ │ ├── zh-Hans.json │ │ │ └── zh-Hant.json │ │ │ └── uni-load-more.vue │ ├── package.json │ └── readme.md ├── uni-nav-bar │ ├── changelog.md │ ├── components │ │ └── uni-nav-bar │ │ │ ├── uni-nav-bar.vue │ │ │ └── uni-status-bar.vue │ ├── package.json │ └── readme.md ├── uni-notice-bar │ ├── changelog.md │ ├── components │ │ └── uni-notice-bar │ │ │ └── uni-notice-bar.vue │ ├── package.json │ └── readme.md ├── uni-number-box │ ├── changelog.md │ ├── components │ │ └── uni-number-box │ │ │ └── uni-number-box.vue │ ├── package.json │ └── readme.md ├── uni-pagination │ ├── changelog.md │ ├── components │ │ └── uni-pagination │ │ │ ├── i18n │ │ │ ├── en.json │ │ │ ├── es.json │ │ │ ├── fr.json │ │ │ ├── index.js │ │ │ ├── zh-Hans.json │ │ │ └── zh-Hant.json │ │ │ └── uni-pagination.vue │ ├── package.json │ └── readme.md ├── uni-popup │ ├── changelog.md │ ├── components │ │ ├── uni-popup-dialog │ │ │ ├── keypress.js │ │ │ └── uni-popup-dialog.vue │ │ ├── uni-popup-message │ │ │ └── uni-popup-message.vue │ │ ├── uni-popup-share │ │ │ └── uni-popup-share.vue │ │ └── uni-popup │ │ │ ├── i18n │ │ │ ├── en.json │ │ │ ├── index.js │ │ │ ├── zh-Hans.json │ │ │ └── zh-Hant.json │ │ │ ├── keypress.js │ │ │ ├── popup.js │ │ │ └── uni-popup.vue │ ├── package.json │ └── readme.md ├── uni-rate │ ├── changelog.md │ ├── components │ │ └── uni-rate │ │ │ └── uni-rate.vue │ ├── package.json │ └── readme.md ├── uni-row │ ├── changelog.md │ ├── components │ │ ├── uni-col │ │ │ └── uni-col.vue │ │ └── uni-row │ │ │ └── uni-row.vue │ ├── package.json │ └── readme.md ├── uni-scss │ ├── changelog.md │ ├── index.scss │ ├── package.json │ ├── readme.md │ ├── styles │ │ ├── index.scss │ │ ├── setting │ │ │ ├── _border.scss │ │ │ ├── _color.scss │ │ │ ├── _radius.scss │ │ │ ├── _space.scss │ │ │ ├── _styles.scss │ │ │ ├── _text.scss │ │ │ └── _variables.scss │ │ └── tools │ │ │ └── functions.scss │ ├── theme.scss │ └── variables.scss ├── uni-search-bar │ ├── changelog.md │ ├── components │ │ └── uni-search-bar │ │ │ ├── i18n │ │ │ ├── en.json │ │ │ ├── index.js │ │ │ ├── zh-Hans.json │ │ │ └── zh-Hant.json │ │ │ └── uni-search-bar.vue │ ├── package.json │ └── readme.md ├── uni-segmented-control │ ├── changelog.md │ ├── components │ │ └── uni-segmented-control │ │ │ └── uni-segmented-control.vue │ ├── package.json │ └── readme.md ├── uni-steps │ ├── changelog.md │ ├── components │ │ └── uni-steps │ │ │ └── uni-steps.vue │ ├── package.json │ └── readme.md ├── uni-swipe-action │ ├── changelog.md │ ├── components │ │ ├── uni-swipe-action-item │ │ │ ├── bindingx.js │ │ │ ├── isPC.js │ │ │ ├── mpalipay.js │ │ │ ├── mpother.js │ │ │ ├── mpwxs.js │ │ │ ├── render.js │ │ │ ├── uni-swipe-action-item.vue │ │ │ └── wx.wxs │ │ └── uni-swipe-action │ │ │ └── uni-swipe-action.vue │ ├── package.json │ └── readme.md ├── uni-swiper-dot │ ├── changelog.md │ ├── components │ │ └── uni-swiper-dot │ │ │ └── uni-swiper-dot.vue │ ├── package.json │ └── readme.md ├── uni-table │ ├── changelog.md │ ├── components │ │ ├── uni-table │ │ │ └── uni-table.vue │ │ ├── uni-tbody │ │ │ └── uni-tbody.vue │ │ ├── uni-td │ │ │ └── uni-td.vue │ │ ├── uni-th │ │ │ ├── filter-dropdown.vue │ │ │ └── uni-th.vue │ │ ├── uni-thead │ │ │ └── uni-thead.vue │ │ └── uni-tr │ │ │ ├── table-checkbox.vue │ │ │ └── uni-tr.vue │ ├── i18n │ │ ├── en.json │ │ ├── es.json │ │ ├── fr.json │ │ ├── index.js │ │ ├── zh-Hans.json │ │ └── zh-Hant.json │ ├── package.json │ └── readme.md ├── uni-tag │ ├── changelog.md │ ├── components │ │ └── uni-tag │ │ │ └── uni-tag.vue │ ├── package.json │ └── readme.md ├── uni-title │ ├── changelog.md │ ├── components │ │ └── uni-title │ │ │ └── uni-title.vue │ ├── package.json │ └── readme.md ├── uni-transition │ ├── changelog.md │ ├── components │ │ └── uni-transition │ │ │ ├── createAnimation.js │ │ │ └── uni-transition.vue │ ├── package.json │ └── readme.md └── uni-ui │ ├── changelog.md │ ├── components │ └── uni-ui │ │ └── uni-ui.vue │ ├── package.json │ └── readme.md └── utils ├── common.js └── const.js /README.md: -------------------------------------------------------------------------------- 1 | # 腾讯云实时音视频 TRTC SDK 2 | 3 | ## 产品介绍 4 | 5 | 腾讯实时音视频(Tencent Real-Time Communication,TRTC),将腾讯多年来在网络与音视频技术上的深度积累,以多人音视频通话和低延时互动直播两大场景化方案,通过腾讯云服务向开发者开放,致力于帮助开发者快速搭建低成本、低延时、高品质的音视频互动解决方案,[更多](https://cloud.tencent.com/document/product/647/16788)... 6 | 7 | > TRTC SDK 支持Web、Android、iOS、Windows以及Flutter、小程序等所有主流平台, [更多平台](https://github.com/LiteAVSDK?q=TRTC_&type=all&sort=)... 8 | 9 | 10 | 11 | ## 目录说明 12 | 13 | ```bash 14 | ├─ TRTCScenesDemo // TRTC 场景化方案示例代码 15 | | ├─ trtc-calling-miniapp // 演示 TRTC 双人语音通话与视频通话场景的事例代码 16 | ├─ TRTCSimpleDemo // TRTC 基础功能演示代码 17 | | ├─ pages // 微信小程序页面文件夹 18 | | | ├─ index // 首页 19 | | | ├─ meeting // 演示 TRTC 多人会议的示例代码 20 | | | ├─ videocall // 演示 TRTC 双人通话的示例代码 21 | | | ├─ voice-room // 演示 TRTC 语音聊天室的示例代码 22 | ├─ TRTCSimpleDemo[uni-app] // TRTC 基础功能演示代码uni-app版本 23 | | ├─ debug // 用于前端生成usersig 24 | | ├─ lib // 公用库 25 | | ├─ pages // 微信小程序页面文件夹 26 | | | ├─ index // 首页 27 | | | ├─ meeting-room // 演示 TRTC 多人会议的示例代码 28 | | | ├─ video-call // 演示 TRTC 双人通话的示例代码 29 | | | ├─ voice-room // 演示 TRTC 语音聊天室的示例代码 30 | | ├─ static // 静态文件 31 | | ├─ style // 公共样式文件 32 | | ├─ uni-modules // uni-app提供的第三方库 33 | | ├─ utils // utils 34 | ``` 35 | 36 | 37 | 38 | ## 联系我们 39 | - 如果你遇到了困难,可以先参阅 [常见问题](https://cloud.tencent.com/document/product/647/43018); 40 | 41 | - 如果你想了解TRTC SDK在复杂场景下的应用,可以参考[更多场景案例](https://cloud.tencent.com/document/product/647/57486); 42 | 43 | - 完整的 API 文档见 [SDK 的 API 文档](https://cloud.tencent.com/document/product/647/17018); 44 | - 如果需要售后技术支持, 你可以点击[这里](https://cloud.tencent.com/document/product/647/19906); 45 | - 如果发现了示例代码的 bug,欢迎提交 issue; 46 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/app.js: -------------------------------------------------------------------------------- 1 | import { genTestUserSig } from './debug/GenerateTestUserSig'; 2 | import Aegis from './lib/aegis'; 3 | import { CallManager } from './TUICallKit/serve/callManager'; 4 | const Signature = genTestUserSig(''); 5 | App({ 6 | onLaunch() { 7 | wx.$globalData = { 8 | userInfo: null, 9 | headerHeight: 0, 10 | statusBarHeight: 0, 11 | sdkAppID: Signature.sdkAppID, 12 | userID: '', 13 | userSig: '', 14 | token: '', 15 | expiresIn: '', 16 | phone: '', 17 | sessionID: '', 18 | }; 19 | this.aegisInit(); 20 | this.aegisReportEvent('onLaunch', 'onLaunch-success'); 21 | wx.CallManager = new CallManager(); 22 | }, 23 | aegisInit() { 24 | wx.aegis = new Aegis({ 25 | id: 'iHWefAYqxqlqtLQVcA', // 项目key 26 | reportApiSpeed: true, // 接口测速 27 | reportAssetSpeed: true, // 静态资源测速 28 | pagePerformance: true, // 开启页面测速 29 | }); 30 | }, 31 | aegisReportEvent(name, ext1) { 32 | if (!this.aegisReportEvent[name] || !this.aegisReportEvent[name][ext1]) { 33 | wx.aegis.reportEvent({ 34 | name, 35 | ext1, 36 | ext2: 'wxTUICallingExternal', 37 | ext3: genTestUserSig('').sdkAppID, 38 | }); 39 | if (typeof this.aegisReportEvent[name] !== 'object') { 40 | this.aegisReportEvent[name] = {}; 41 | } 42 | this.aegisReportEvent[name][ext1] = true; 43 | } 44 | }, 45 | }); 46 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "pages": [ 3 | "pages/login/login", 4 | "pages/videoCall/videoCall", 5 | "pages/personal/personal", 6 | "pages/index/index", 7 | "pages/audioCall/audioCall", 8 | "pages/cancellation/index", 9 | "pages/about/index", 10 | "pages/audioGroupCall/audioGroupCall", 11 | "pages/videoGroupCall/videoGroupCall", 12 | "TUICallKit/pages/globalCall/globalCall" 13 | ], 14 | "window": { 15 | "backgroundColor": "#888", 16 | "backgroundTextStyle": "dark", 17 | "navigationBarBackgroundColor": "#000", 18 | "navigationBarTitleText": "腾讯视频云", 19 | "navigationBarTextStyle": "black", 20 | "navigationStyle": "custom" 21 | }, 22 | "tabBar": { 23 | "custom": true, 24 | "selectedColor": "#dd8c00", 25 | "color": "#000000", 26 | "backgroundColor": "#f7f7f7", 27 | "list": [ 28 | { 29 | "pagePath": "pages/index/index", 30 | "text": "首页" 31 | }, 32 | { 33 | "pagePath": "pages/personal/personal", 34 | "text": "个人中心" 35 | } 36 | ] 37 | }, 38 | "usingComponents": { 39 | "tabBar": "custom-tab-bar/index" 40 | }, 41 | "style": "v2", 42 | "sitemapLocation": "sitemap.json" 43 | } 44 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/app.wxss: -------------------------------------------------------------------------------- 1 | /**app.wxss**/ 2 | .container { 3 | width: 100vw; 4 | height: 100vh; 5 | } 6 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/custom-tab-bar/index.js: -------------------------------------------------------------------------------- 1 | // custom-tab-Bar/index.js 2 | Component({ 3 | /** 4 | * 组件的属性列表 5 | */ 6 | properties: { 7 | 8 | }, 9 | 10 | /** 11 | * 组件的初始数据 12 | */ 13 | data: { 14 | selected: '-1', // 当前选中菜单项,第一个是0 15 | list: [ 16 | { 17 | pagePath: '/pages/index/index', 18 | text: '首页', 19 | iconPath: '/pages/Resources/icon/home.png', 20 | selectedIconPath: '/pages/Resources/icon/home-light.png', 21 | }, 22 | { 23 | pagePath: '/pages/personal/personal', 24 | text: '个人中心', 25 | iconPath: '/pages/Resources/icon/personal.png', 26 | selectedIconPath: '/pages/Resources/icon/personal-light.png', 27 | }, 28 | ], 29 | }, 30 | 31 | /** 32 | * 组件的方法列表 33 | */ 34 | methods: { 35 | _switchTab(e) { 36 | const _path = e.currentTarget.dataset.path; 37 | wx.switchTab({ url: _path }); 38 | }, 39 | }, 40 | 41 | pageLifetimes: { 42 | show() { 43 | 44 | }, 45 | hide() { 46 | // 页面被隐藏 47 | }, 48 | resize(size) { 49 | // 页面尺寸变化 50 | }, 51 | }, 52 | }); 53 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/custom-tab-bar/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/custom-tab-bar/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | {{ item.text }} 9 | 10 | 11 | 14 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/custom-tab-bar/index.wxss: -------------------------------------------------------------------------------- 1 | /* custom-tab-bar/index.wxss */ 2 | .custom-item-text { 3 | font-size: 10px; 4 | letter-spacing: 0; 5 | font-weight: 500; 6 | } 7 | .custom-tab{ 8 | position: absolute; 9 | z-index: 9; 10 | bottom: 0; 11 | left: 0; 12 | right: 0; 13 | padding-top: 16px; 14 | } 15 | 16 | .custom-tab .custom-box{ 17 | background: #FFFFFF; 18 | border-top: 1px solid #eeeeee; 19 | box-shadow: 0px 0px 8px 0px rgba(215, 215, 215, 0.5); 20 | display: flex; 21 | display: -webkit-box; 22 | display: -ms-flex; 23 | display: -webkit-flex; 24 | justify-content: center; 25 | align-items: center; 26 | text-align: center; 27 | cursor: pointer; 28 | -webkit-tap-highlight-color: rgba(255, 255, 255, 0); 29 | } 30 | .custom-tab .custom-box .custom-item{ 31 | padding: 8px 0; 32 | flex-grow: 1; 33 | flex-basis: 0; 34 | -webkit-flex-basis: 0; 35 | color: #C7CED7; 36 | } 37 | .custom-tab .custom-box .custom-item.active{ 38 | color: #007BFC; 39 | } 40 | .custom-tab .custom-box .custom-item .custom-item-image{ 41 | width: 22px; 42 | height: 22px; 43 | margin-bottom: 2rpx; 44 | display: inline-block; 45 | } 46 | 47 | .custom-logo { 48 | position: absolute; 49 | z-index: 100; 50 | top: 0; 51 | left: 0; 52 | right: 0; 53 | margin: 0 auto; 54 | width: 64px; 55 | height: 64px; 56 | border-radius: 64px; 57 | /* border-top: 1px solid #eeeeee;s */ 58 | background: #ffffff; 59 | display: flex; 60 | justify-content: center; 61 | align-items: center; 62 | } 63 | .custom-logo .custom-logo-image { 64 | width: 56px; 65 | height: 56px; 66 | 67 | } -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/debug/GenerateTestUserSig.js: -------------------------------------------------------------------------------- 1 | import LibGenerateTestUserSig from './lib-generate-test-usersig-es.min.js'; 2 | 3 | /** 4 | * 腾讯云 SDKAppId,需要替换为您自己账号下的 SDKAppId。 5 | * 6 | * 进入腾讯云实时音视频[控制台](https://console.cloud.tencent.com/rav ) 创建应用,即可看到 SDKAppId, 7 | * 它是腾讯云用于区分客户的唯一标识。 8 | */ 9 | const SDKAPPID = 0; 10 | 11 | 12 | /** 13 | * 签名过期时间,建议不要设置的过短 14 | *

15 | * 时间单位:秒 16 | * 默认时间:7 x 24 x 60 x 60 = 604800 = 7 天 17 | */ 18 | const EXPIRETIME = 604800; 19 | 20 | 21 | /** 22 | * 计算签名用的加密密钥,获取步骤如下: 23 | * 24 | * step1. 进入腾讯云实时音视频[控制台](https://console.cloud.tencent.com/rav ),如果还没有应用就创建一个, 25 | * step2. 单击“应用配置”进入基础配置页面,并进一步找到“帐号体系集成”部分。 26 | * step3. 点击“查看密钥”按钮,就可以看到计算 UserSig 使用的加密的密钥了,请将其拷贝并复制到如下的变量中 27 | * 28 | * 注意:该方案仅适用于调试Demo,正式上线前请将 UserSig 计算代码和密钥迁移到您的后台服务器上,以避免加密密钥泄露导致的流量盗用。 29 | * 文档:https://cloud.tencent.com/document/product/647/17275#Server 30 | */ 31 | const SECRETKEY = ''; 32 | 33 | /* 34 | * Module: GenerateTestUserSig 35 | * 36 | * Function: 用于生成测试用的 UserSig,UserSig 是腾讯云为其云服务设计的一种安全保护签名。 37 | * 其计算方法是对 SDKAppID、UserID 和 EXPIRETIME 进行加密,加密算法为 HMAC-SHA256。 38 | * 39 | * Attention: 请不要将如下代码发布到您的线上正式版本的 App 中,原因如下: 40 | * 41 | * 本文件中的代码虽然能够正确计算出 UserSig,但仅适合快速调通 SDK 的基本功能,不适合线上产品, 42 | * 这是因为客户端代码中的 SECRETKEY 很容易被反编译逆向破解,尤其是 Web 端的代码被破解的难度几乎为零。 43 | * 一旦您的密钥泄露,攻击者就可以计算出正确的 UserSig 来盗用您的腾讯云流量。 44 | * 45 | * 正确的做法是将 UserSig 的计算代码和加密密钥放在您的业务服务器上,然后由 App 按需向您的服务器获取实时算出的 UserSig。 46 | * 由于破解服务器的成本要高于破解客户端 App,所以服务器计算的方案能够更好地保护您的加密密钥。 47 | * 48 | * Reference:https://cloud.tencent.com/document/product/647/17275#Server 49 | */ 50 | function genTestUserSig(userID) { 51 | const generator = new LibGenerateTestUserSig(SDKAPPID, SECRETKEY, EXPIRETIME); 52 | const userSig = generator.genTestUserSig(userID); 53 | 54 | return { 55 | sdkAppID: SDKAPPID, 56 | userSig, 57 | }; 58 | } 59 | 60 | module.exports = { 61 | genTestUserSig, 62 | }; 63 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "scripts": { 3 | "build": "rollup -c build/rollup.prod.config.js", 4 | "pre-publish:call-kit": "npm run build && node ./scripts/callKit-npm.js", 5 | "publish:github-min": "npm run build && node build/createGitHubCode.js" 6 | }, 7 | "dependencies": { 8 | "@tencentcloud/call-uikit-wechat": "^1.3.0" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/avatar1_100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/avatar1_100.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/back.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/call.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/call.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/check.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/check.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/compass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/compass.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/hangup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/hangup.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/camera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/camera.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/check.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/check.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/compass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/compass.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/edit.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/home-light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/home-light.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/home.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/logout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/logout.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/personal-light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/personal-light.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/personal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/personal.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/right.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/text.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/warn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/icon/warn.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/personal-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/personal-bg.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/right.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/search.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/select.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCScenesDemo/TUICallKit-WX-Demo/pages/Resources/selected.png -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/about/index.js: -------------------------------------------------------------------------------- 1 | // pages/about/index.js 2 | Page({ 3 | 4 | /** 5 | * 页面的初始数据 6 | */ 7 | data: { 8 | list: [ 9 | { 10 | name: '应用版本', 11 | value: wx.getAccountInfoSync().miniProgram.version, 12 | }, 13 | { 14 | name: '注销账户', 15 | path: '../cancellation/index', 16 | }, 17 | ], 18 | }, 19 | 20 | /** 21 | * 生命周期函数--监听页面加载 22 | */ 23 | onLoad() { 24 | console.log(this.data.list); 25 | console.log('获取当前版本', wx.getAccountInfoSync()); 26 | }, 27 | 28 | /** 29 | * 生命周期函数--监听页面初次渲染完成 30 | */ 31 | onReady() { 32 | 33 | }, 34 | 35 | /** 36 | * 生命周期函数--监听页面显示 37 | */ 38 | onShow() { 39 | 40 | }, 41 | 42 | /** 43 | * 生命周期函数--监听页面隐藏 44 | */ 45 | onHide() { 46 | 47 | }, 48 | 49 | /** 50 | * 生命周期函数--监听页面卸载 51 | */ 52 | onUnload() { 53 | 54 | }, 55 | 56 | /** 57 | * 页面相关事件处理函数--监听用户下拉动作 58 | */ 59 | onPullDownRefresh() { 60 | 61 | }, 62 | 63 | /** 64 | * 页面上拉触底事件的处理函数 65 | */ 66 | onReachBottom() { 67 | 68 | }, 69 | 70 | /** 71 | * 用户点击右上角分享 72 | */ 73 | onShareAppMessage() { 74 | 75 | }, 76 | onBack() { 77 | wx.navigateBack({ 78 | delta: 1, 79 | }); 80 | }, 81 | // 路由跳转 82 | handleRouter(e) { 83 | const data = e.currentTarget.dataset.item; 84 | if (data.path) { 85 | wx.navigateTo({ url: `${data.path}` }); 86 | } 87 | }, 88 | }); 89 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/about/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": {} 3 | } -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/about/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 关于我们 5 | 6 | 7 | 8 | 9 | {{item.name}} 10 | 11 | 12 | {{item.value}} 13 | 14 | 15 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/about/index.wxss: -------------------------------------------------------------------------------- 1 | .container { 2 | padding: 20rpx 0; 3 | background: #FFFFFF; 4 | background-repeat:no-repeat; 5 | background-size: cover; 6 | width: 100vw; 7 | height: 100vh; 8 | display: flex; 9 | flex-direction: column; 10 | justify-content: flex-start; 11 | align-items: center; 12 | box-sizing: border-box; 13 | } 14 | 15 | .container .title{ 16 | position: relative; 17 | width: 100vw; 18 | font-size: 18px; 19 | color: #000000; 20 | letter-spacing: 0; 21 | text-align: center; 22 | line-height: 28px; 23 | font-weight: 600; 24 | margin-top: 3.8vh; 25 | padding: 1.2vh 0; 26 | } 27 | .btn-goback{ 28 | position: absolute; 29 | left: 2vw; 30 | top: 1.2vh; 31 | width: 8vw; 32 | height: 8vw; 33 | z-index: 9; 34 | } 35 | .list { 36 | width: 100%; 37 | box-sizing: border-box; 38 | padding: 0 20rpx; 39 | } 40 | .list-item{ 41 | display: flex; 42 | justify-content: space-between; 43 | align-items: center; 44 | padding: 24px 12px; 45 | border-bottom: 1px solid #eeeeee; 46 | } 47 | .list-item .aside-left { 48 | display: flex; 49 | align-items: center; 50 | } 51 | .list-item .aside-left .icon { 52 | width: 32px; 53 | height: 32px; 54 | } 55 | .list-item .aside-left text { 56 | padding: 0 12px; 57 | font-size: 16px; 58 | color: #333333; 59 | letter-spacing: 0; 60 | font-weight: 400; 61 | } 62 | .list-item .aside-right { 63 | width: 9px; 64 | height: 14px; 65 | } -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/audioCall/audioCall.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "TUICallKit": "/TUICallKit/TUICallKit" 4 | }, 5 | "navigationStyle": "custom", 6 | "disableScroll": true 7 | } 8 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/audioCall/audioCall.wxml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 语音通话 10 | 11 | 12 | 13 | 14 | 15 | 16 | 搜索 17 | 18 | 19 | 20 | 21 | {{config.userID}} 22 | 23 | 24 | 25 | 26 | 27 | 28 | {{ invitee.userID}} 29 | 30 | 呼叫 31 | 32 | 未查询到此用户 33 | 34 | 35 | 36 | 37 | 38 | 搜索添加已注册用户以发起通话 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/audioGroupCall/audioGroupCall.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "TUICalling": "/TUICallKit/TUICallKit" 4 | }, 5 | "navigationStyle": "custom", 6 | "disableScroll": true 7 | } 8 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/cancellation/index.js: -------------------------------------------------------------------------------- 1 | Page({ 2 | 3 | /** 4 | * 页面的初始数据 5 | */ 6 | data: { 7 | userId: wx.$globalData.userID, 8 | toggle: false, 9 | }, 10 | 11 | /** 12 | * 生命周期函数--监听页面加载 13 | */ 14 | onLoad() { 15 | this.setData({ 16 | userId: wx.$globalData.userID, 17 | }); 18 | }, 19 | 20 | /** 21 | * 生命周期函数--监听页面初次渲染完成 22 | */ 23 | onReady() { 24 | 25 | }, 26 | 27 | /** 28 | * 生命周期函数--监听页面显示 29 | */ 30 | onShow() { 31 | 32 | }, 33 | 34 | /** 35 | * 生命周期函数--监听页面隐藏 36 | */ 37 | onHide() { 38 | 39 | }, 40 | 41 | /** 42 | * 生命周期函数--监听页面卸载 43 | */ 44 | onUnload() { 45 | 46 | }, 47 | 48 | /** 49 | * 页面相关事件处理函数--监听用户下拉动作 50 | */ 51 | onPullDownRefresh() { 52 | 53 | }, 54 | 55 | /** 56 | * 页面上拉触底事件的处理函数 57 | */ 58 | onReachBottom() { 59 | 60 | }, 61 | 62 | /** 63 | * 用户点击右上角分享 64 | */ 65 | onShareAppMessage() { 66 | 67 | }, 68 | onBack() { 69 | wx.navigateBack({ 70 | delta: 1, 71 | }); 72 | }, 73 | handleCancellation() { 74 | this.setData({ 75 | toggle: true, 76 | }); 77 | }, 78 | close() { 79 | this.setData({ 80 | toggle: false, 81 | }); 82 | }, 83 | submit() { 84 | wx.clearStorage(); 85 | wx.redirectTo({ url: '../login/login' }); 86 | this.close(); 87 | }, 88 | }); 89 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/cancellation/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": {} 3 | } -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/cancellation/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 注销账号 5 | 6 | 7 | 8 | 9 | 注销后,您将无法使用当前账号,相关数据也将删除无法找回 10 | 11 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 确定要注销账户吗? 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/index/index.js: -------------------------------------------------------------------------------- 1 | // index.js 2 | Page({ 3 | data: { 4 | template: '1v1', 5 | headerHeight: wx.$globalData.headerHeight, 6 | statusBarHeight: wx.$globalData.statusBarHeight, 7 | entryInfos: [ 8 | { 9 | icon: 'https://web.sdk.qcloud.com/component/miniApp/resources/audio-card.png', 10 | title: '语音通话', 11 | desc: '丢包率70%仍可正常语音通话', 12 | navigateTo: '../audioCall/audioCall', 13 | }, 14 | { 15 | icon: 'https://web.sdk.qcloud.com/component/miniApp/resources/video-card.png', 16 | title: '视频通话', 17 | desc: '丢包率50%仍可正常视频通话', 18 | navigateTo: '../videoCall/videoCall', 19 | }, 20 | { 21 | icon: 'https://web.sdk.qcloud.com/component/miniApp/resources/audio-card.png', 22 | title: '多人语音通话', 23 | desc: '丢包率70%仍可正常语音通话', 24 | navigateTo: '../audioGroupCall/audioGroupCall', 25 | }, 26 | { 27 | icon: 'https://web.sdk.qcloud.com/component/miniApp/resources/video-card.png', 28 | title: '多人视频通话', 29 | desc: '丢包率50%仍可正常视频通话', 30 | navigateTo: '../videoGroupCall/videoGroupCall', 31 | }, 32 | ], 33 | }, 34 | 35 | onLoad() {}, 36 | selectTemplate(event) { 37 | console.log('index selectTemplate', event); 38 | this.setData({ 39 | template: event.detail.value, 40 | }); 41 | }, 42 | handleEntry(e) { 43 | const url = this.data.entryInfos[e.currentTarget.id].navigateTo; 44 | wx.navigateTo({ 45 | url, 46 | }); 47 | }, 48 | 49 | onShow() { 50 | if (typeof this.getTabBar === 'function' && this.getTabBar()) { 51 | this.getTabBar().setData({ selected: 0 }); 52 | } 53 | }, 54 | }); 55 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/index/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | }, 4 | "navigationStyle": "custom", 5 | "navigationBarTitleText": "TRTC", 6 | "navigationBarTextStyle": "black", 7 | "disableScroll": true 8 | } -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/index/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | TRTC 6 | 7 | 10 | 11 | 12 | 13 | 14 | {{item.title}} 15 | {{item.desc}} 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/index/index.wxss: -------------------------------------------------------------------------------- 1 | .container { 2 | /* background-image: url(https://mc.qcloudimg.com/static/img/7da57e0050d308e2e1b1e31afbc42929/bg.png); */ 3 | background: #F4F5F9; 4 | background-repeat:no-repeat; 5 | background-size: cover; 6 | width: 100vw; 7 | height: 100vh; 8 | display: flex; 9 | flex-direction: column; 10 | align-items: center; 11 | box-sizing: border-box; 12 | } 13 | 14 | .container .title{ 15 | position: relative; 16 | width: 100vw; 17 | font-size: 18px; 18 | color: #000000; 19 | letter-spacing: 0; 20 | text-align: center; 21 | line-height: 28px; 22 | font-weight: 600; 23 | background: #FFFFFF; 24 | margin-top: 3.8vh; 25 | padding: 1.2vh 0; 26 | } 27 | .tips { 28 | color: #ffffff; 29 | font-size: 12px; 30 | text-align: center; 31 | } 32 | .guide-box { 33 | width: 100vw; 34 | box-sizing: border-box; 35 | padding: 16px; 36 | display: flex; 37 | flex-direction: column; 38 | } 39 | .single-box { 40 | flex: 1; 41 | border-radius: 10px; 42 | background-color: #ffffff; 43 | margin-bottom: 16px; 44 | display: flex; 45 | align-items: center; 46 | } 47 | .icon { 48 | display: block; 49 | width: 180px; 50 | height: 144px; 51 | } 52 | .single-content { 53 | padding: 36px 30px 36px 20px; 54 | color: #333333; 55 | } 56 | .label { 57 | display: block; 58 | font-size: 18px; 59 | color: #333333; 60 | letter-spacing: 0; 61 | font-weight: 500; 62 | } 63 | .desc { 64 | display: block; 65 | font-size: 14px; 66 | color: #333333; 67 | letter-spacing: 0; 68 | font-weight: 500; 69 | } 70 | .logo-box { 71 | position: absolute; 72 | width: 100vw; 73 | bottom: 36rpx; 74 | text-align: center; 75 | } 76 | .logo { 77 | width: 160rpx; 78 | height: 44rpx; 79 | } 80 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/login/login.js: -------------------------------------------------------------------------------- 1 | import { genTestUserSig } from '../../debug/GenerateTestUserSig'; 2 | Page({ 3 | data: { 4 | userID: '', 5 | }, 6 | 7 | onLoad() { 8 | 9 | }, 10 | 11 | onShow() { 12 | 13 | }, 14 | 15 | onBack() { 16 | wx.navigateBack({ 17 | delta: 1, 18 | }); 19 | }, 20 | 21 | bindInputUserID(e) { 22 | this.setData({ 23 | userID: e.detail.value, 24 | }); 25 | }, 26 | 27 | login() { 28 | if (!this.data.userID) { 29 | wx.showToast({ 30 | title: '名称不能为空', 31 | icon: 'error', 32 | }); 33 | } else { 34 | wx.$globalData.userID = this.data.userID; 35 | const { userSig } = genTestUserSig(wx.$globalData.userID); 36 | wx.$globalData.userSig = userSig; 37 | wx.CallManager.init({ 38 | sdkAppID: wx.$globalData.sdkAppID, 39 | userID: wx.$globalData.userID, 40 | userSig: wx.$globalData.userSig, 41 | globalCallPagePath: 'TUICallKit/pages/globalCall/globalCall', 42 | }); 43 | wx.switchTab({ 44 | url: '../index/index', 45 | }); 46 | } 47 | }, 48 | }); 49 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/login/login.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": {}, 3 | "disableScroll": true 4 | } -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/login/login.wxml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/personal/personal.js: -------------------------------------------------------------------------------- 1 | // pages/personal/personal.js 2 | Page({ 3 | 4 | /** 5 | * 页面的初始数据 6 | */ 7 | data: { 8 | list: [ 9 | { 10 | icon: '../Resources/icon/text.png', 11 | name: '关于', 12 | path: '../about/index', 13 | extra: 1, 14 | }, 15 | { 16 | icon: '../Resources/icon/logout.png', 17 | name: '退出登录', 18 | path: '../login/login', 19 | extra: 3, 20 | }, 21 | ], 22 | userId: '', 23 | }, 24 | 25 | /** 26 | * 生命周期函数--监听页面加载 27 | */ 28 | onLoad() { 29 | 30 | }, 31 | 32 | /** 33 | * 生命周期函数--监听页面初次渲染完成 34 | */ 35 | onReady() { 36 | 37 | }, 38 | 39 | /** 40 | * 生命周期函数--监听页面显示 41 | */ 42 | onShow() { 43 | this.setData({ 44 | userId: wx.$globalData.userID, 45 | }); 46 | 47 | if (typeof this.getTabBar === 'function' && this.getTabBar()) { 48 | this.getTabBar().setData({ selected: 1 }); 49 | } 50 | }, 51 | 52 | /** 53 | * 生命周期函数--监听页面隐藏 54 | */ 55 | onHide() { 56 | 57 | }, 58 | 59 | /** 60 | * 生命周期函数--监听页面卸载 61 | */ 62 | onUnload() { 63 | 64 | }, 65 | 66 | /** 67 | * 页面相关事件处理函数--监听用户下拉动作 68 | */ 69 | onPullDownRefresh() { 70 | 71 | }, 72 | 73 | /** 74 | * 页面上拉触底事件的处理函数 75 | */ 76 | onReachBottom() { 77 | 78 | }, 79 | 80 | /** 81 | * 用户点击右上角分享 82 | */ 83 | onShareAppMessage() { 84 | 85 | }, 86 | 87 | // 路由跳转 88 | handleRouter(e) { 89 | const data = e.currentTarget.dataset.item; 90 | switch (data.extra) { 91 | case 1: 92 | wx.navigateTo({ url: `${data.path}` }); 93 | break; 94 | default: 95 | wx.clearStorage(); 96 | wx.$globalData = {}; 97 | wx.redirectTo({ url: `${data.path}` }); 98 | break; 99 | } 100 | }, 101 | }); 102 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/personal/personal.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": {} 3 | } -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/personal/personal.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 个人中心 7 | 8 | 9 | 10 | 11 | 12 | {{userId}} 13 | 14 | 15 | 16 | 17 | 18 | 19 | {{item.name}} 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/videoCall/videoCall.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "TUICallKit": "/TUICallKit/TUICallKit" 4 | }, 5 | "navigationStyle": "custom", 6 | "disableScroll": true 7 | } 8 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/videoCall/videoCall.wxml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 视频通话 11 | 12 | 13 | 14 | 15 | 16 | 17 | 搜索 18 | 19 | 20 | 21 | 22 | {{config.userID}} 23 | 24 | 25 | 26 | 27 | 28 | 29 | {{invitee.userID}} 30 | 31 | 呼叫 32 | 33 | 未查询到此用户 34 | 35 | 36 | 37 | 38 | 39 | 搜索添加已注册用户以发起通话 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/pages/videoGroupCall/videoGroupCall.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "TUICalling": "/TUICallKit/TUICallKit" 4 | }, 5 | "navigationStyle": "custom", 6 | "disableScroll": true 7 | } 8 | -------------------------------------------------------------------------------- /TRTCScenesDemo/TUICallKit-WX-Demo/sitemap.json: -------------------------------------------------------------------------------- 1 | { 2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html", 3 | "rules": [{ 4 | "action": "allow", 5 | "page": "*" 6 | }] 7 | } -------------------------------------------------------------------------------- /TRTCSimpleDemo/app.js: -------------------------------------------------------------------------------- 1 | // app.js 2 | import Aegis from './static/aegis' 3 | import {genTestUserSig} from './debug/GenerateTestUserSig' 4 | App({ 5 | onLaunch: function() { 6 | const { model, system, statusBarHeight } = wx.getSystemInfoSync() 7 | let headHeight 8 | if (/iphone\s{0,}x/i.test(model)) { 9 | headHeight = 88 10 | } else if (system.indexOf('Android') !== -1) { 11 | headHeight = 68 12 | } else { 13 | headHeight = 64 14 | } 15 | 16 | this.globalData.headerHeight = headHeight 17 | this.globalData.statusBarHeight = statusBarHeight 18 | this.aegisInit() 19 | this.aegisReportEvent('onLaunch', 'onLaunch-success') 20 | }, 21 | aegisInit() { 22 | wx.aegis = new Aegis({ 23 | id: 'iHWefAYqxqlqtLQVcA', // 项目key 24 | reportApiSpeed: true, // 接口测速 25 | reportAssetSpeed: true, // 静态资源测速 26 | pagePerformance: true, // 开启页面测速 27 | }); 28 | }, 29 | aegisReportEvent(name, ext1) { 30 | if(!this.aegisReportEvent[name]) { 31 | wx.aegis.reportEvent({ 32 | name, 33 | ext1, 34 | ext2: 'wxSimpleDemo', 35 | ext3: genTestUserSig('').sdkAppID, 36 | }) 37 | this.aegisReportEvent[name] = true 38 | } 39 | }, 40 | globalData: { 41 | headerHeight: 0, 42 | statusBarHeight: 0, 43 | }, 44 | }) 45 | -------------------------------------------------------------------------------- /TRTCSimpleDemo/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "pages": [ 3 | "pages/index/index", 4 | "pages/meeting/meeting", 5 | "pages/meeting/room/room", 6 | "pages/videocall/videocall", 7 | "pages/videocall/room/room", 8 | "pages/voice-room/join-room/joinRoom", 9 | "pages/voice-room/room/room" 10 | ], 11 | "window": { 12 | "backgroundColor": "#F6F6F6", 13 | "backgroundTextStyle": "light", 14 | "navigationBarBackgroundColor": "#F6F6F6", 15 | "navigationBarTitleText": "腾讯云实时音视频", 16 | "navigationBarTextStyle": "white", 17 | "navigationStyle": "custom" 18 | }, 19 | "sitemapLocation": "sitemap.json", 20 | "style": "v2" 21 | } 22 | -------------------------------------------------------------------------------- /TRTCSimpleDemo/app.wxss: -------------------------------------------------------------------------------- 1 | /**app.wxss**/ 2 | .container { 3 | display: flex; 4 | flex-direction: column; 5 | align-items: center; 6 | box-sizing: border-box; 7 | } 8 | 9 | button { 10 | background: initial; 11 | } 12 | 13 | button:focus{ 14 | outline: 0; 15 | } 16 | 17 | button::after{ 18 | border: none; 19 | } 20 | 21 | 22 | page { 23 | background: #f6f6f6; 24 | display: flex; 25 | flex-direction: column; 26 | justify-content: flex-start; 27 | } 28 | -------------------------------------------------------------------------------- /TRTCSimpleDemo/debug/GenerateTestUserSig.js: -------------------------------------------------------------------------------- 1 | import LibGenerateTestUserSig from './lib-generate-test-usersig-es.min.js' 2 | 3 | /** 4 | * 腾讯云 SDKAppId,需要替换为您自己账号下的 SDKAppId。 5 | * 6 | * 进入腾讯云实时音视频[控制台](https://console.cloud.tencent.com/rav ) 创建应用,即可看到 SDKAppId, 7 | * 它是腾讯云用于区分客户的唯一标识。 8 | */ 9 | const SDKAPPID = 0 10 | 11 | 12 | /** 13 | * 签名过期时间,建议不要设置的过短 14 | *

15 | * 时间单位:秒 16 | * 默认时间:7 x 24 x 60 x 60 = 604800 = 7 天 17 | */ 18 | const EXPIRETIME = 604800 19 | 20 | 21 | /** 22 | * 计算签名用的加密密钥,获取步骤如下: 23 | * 24 | * step1. 进入腾讯云实时音视频[控制台](https://console.cloud.tencent.com/rav ),如果还没有应用就创建一个, 25 | * step2. 单击“应用配置”进入基础配置页面,并进一步找到“帐号体系集成”部分。 26 | * step3. 点击“查看密钥”按钮,就可以看到计算 UserSig 使用的加密的密钥了,请将其拷贝并复制到如下的变量中 27 | * 28 | * 注意:该方案仅适用于调试Demo,正式上线前请将 UserSig 计算代码和密钥迁移到您的后台服务器上,以避免加密密钥泄露导致的流量盗用。 29 | * 文档:https://cloud.tencent.com/document/product/647/17275#Server 30 | */ 31 | const SECRETKEY = '' 32 | 33 | /* 34 | * Module: GenerateTestUserSig 35 | * 36 | * Function: 用于生成测试用的 UserSig,UserSig 是腾讯云为其云服务设计的一种安全保护签名。 37 | * 其计算方法是对 SDKAppID、UserID 和 EXPIRETIME 进行加密,加密算法为 HMAC-SHA256。 38 | * 39 | * Attention: 请不要将如下代码发布到您的线上正式版本的 App 中,原因如下: 40 | * 41 | * 本文件中的代码虽然能够正确计算出 UserSig,但仅适合快速调通 SDK 的基本功能,不适合线上产品, 42 | * 这是因为客户端代码中的 SECRETKEY 很容易被反编译逆向破解,尤其是 Web 端的代码被破解的难度几乎为零。 43 | * 一旦您的密钥泄露,攻击者就可以计算出正确的 UserSig 来盗用您的腾讯云流量。 44 | * 45 | * 正确的做法是将 UserSig 的计算代码和加密密钥放在您的业务服务器上,然后由 App 按需向您的服务器获取实时算出的 UserSig。 46 | * 由于破解服务器的成本要高于破解客户端 App,所以服务器计算的方案能够更好地保护您的加密密钥。 47 | * 48 | * Reference:https://cloud.tencent.com/document/product/647/17275#Server 49 | */ 50 | function genTestUserSig(userID) { 51 | const generator = new LibGenerateTestUserSig(SDKAPPID, SECRETKEY, EXPIRETIME) 52 | const userSig = generator.genTestUserSig(userID) 53 | 54 | return { 55 | sdkAppID: SDKAPPID, 56 | userSig: userSig, 57 | } 58 | } 59 | 60 | module.exports = { 61 | genTestUserSig, 62 | } 63 | -------------------------------------------------------------------------------- /TRTCSimpleDemo/pages/index/index.js: -------------------------------------------------------------------------------- 1 | // index.js 2 | // const app = getApp() 3 | const app = getApp() 4 | Page({ 5 | data: { 6 | headerHeight: app.globalData.headerHeight, 7 | statusBarHeight: app.globalData.statusBarHeight, 8 | entryInfos: [ 9 | { icon: '../../static/images/call.png', title: '语音聊天室', navigateTo: '../voice-room/join-room/joinRoom' }, 10 | { icon: '../../static/images/doubleroom.png', title: '双人通话', navigateTo: '../videocall/videocall' }, 11 | { icon: '../../static/images/multiroom.png', title: '多人会议', navigateTo: '../meeting/meeting' }, 12 | ], 13 | }, 14 | 15 | onLoad() { 16 | 17 | }, 18 | selectTemplate(event) { 19 | console.log('index selectTemplate', event) 20 | this.setData({ 21 | template: event.detail.value, 22 | }) 23 | }, 24 | handleEntry(e) { 25 | const url = this.data.entryInfos[e.currentTarget.id].navigateTo 26 | wx.navigateTo({ 27 | url, 28 | }) 29 | }, 30 | }) 31 | -------------------------------------------------------------------------------- /TRTCSimpleDemo/pages/index/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationStyle": "custom", 3 | "usingComponents": {}, 4 | "disableScroll": true 5 | } -------------------------------------------------------------------------------- /TRTCSimpleDemo/pages/index/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 腾讯实时音视频 5 | 6 | 7 | 以下将展示小程序实时音视频能力,由腾讯云提供技术支持 8 | 9 | 10 | 11 | 12 | {{item.title}} 13 | {{item.desc}} 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /TRTCSimpleDemo/pages/index/index.wxss: -------------------------------------------------------------------------------- 1 | /**index.wxss**/ 2 | 3 | .container { 4 | background-image: url(https://mc.qcloudimg.com/static/img/7da57e0050d308e2e1b1e31afbc42929/bg.png); 5 | background-color: #333; 6 | background-repeat:no-repeat; 7 | background-size: cover; 8 | width: 100vw; 9 | height: 100vh; 10 | display: flex; 11 | flex-direction: column; 12 | align-items: center; 13 | box-sizing: border-box; 14 | } 15 | 16 | .container .title{ 17 | color: #FFFFFF; 18 | padding-top: 65rpx; 19 | padding-bottom: 40rpx; 20 | line-height: 60rpx; 21 | } 22 | .tips { 23 | color: #ffffff; 24 | font-size: 12px; 25 | text-align: center; 26 | } 27 | .guide-box { 28 | display: flex; 29 | flex-wrap: wrap; 30 | text-align: center; 31 | padding: 100rpx 5vw; 32 | } 33 | .single-box { 34 | width: 35vw; 35 | height: 33vw; 36 | background-color: rgba(0, 0, 0, 0.55); 37 | text-align: center; 38 | vertical-align: top; 39 | margin: 5vw ; 40 | margin-bottom: 60rpx; 41 | } 42 | .icon { 43 | display: block; 44 | width: 72rpx; 45 | height: 72rpx; 46 | margin: 20px auto 0; 47 | } 48 | .label { 49 | display: block; 50 | margin-top: 10px; 51 | color: #CFE4FF; 52 | font-size: 28rpx; 53 | } 54 | .desc { 55 | display: block; 56 | margin-top: 2px; 57 | color: #CFE4FF; 58 | font-size: 28rpx; 59 | white-space: nowrap; 60 | } 61 | .logo-box { 62 | position: absolute; 63 | width: 100vw; 64 | bottom: 36rpx; 65 | text-align: center; 66 | } 67 | .logo { 68 | width: 160rpx; 69 | height: 44rpx; 70 | } 71 | -------------------------------------------------------------------------------- /TRTCSimpleDemo/pages/index/user-unlogin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/pages/index/user-unlogin.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/pages/meeting/meeting.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationStyle": "custom", 3 | "usingComponents": {}, 4 | "disableScroll": true 5 | } -------------------------------------------------------------------------------- /TRTCSimpleDemo/pages/meeting/meeting.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 多人会议 5 | 6 | 7 | 8 | 9 | 10 | 14 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /TRTCSimpleDemo/pages/meeting/meeting.wxss: -------------------------------------------------------------------------------- 1 | /**index.wxss**/ 2 | 3 | .trtc-demo-container { 4 | background-image: url(https://mc.qcloudimg.com/static/img/7da57e0050d308e2e1b1e31afbc42929/bg.png); 5 | background-color: #333; 6 | background-repeat:no-repeat; 7 | background-size: cover; 8 | width: 100vw; 9 | height: 100vh; 10 | display: flex; 11 | flex-direction: column; 12 | align-items: center; 13 | box-sizing: border-box; 14 | } 15 | .trtc-demo-container .title{ 16 | color: #FFFFFF; 17 | padding-top: 65rpx; 18 | line-height: 60rpx; 19 | } 20 | .trtc-demo-container .input-box { 21 | background-color: transparent; 22 | color: #ffffff; 23 | padding: 2vw 5vw 1vw; 24 | border-bottom: 1px solid #577785; 25 | margin: 100rpx 0 40rpx 0; 26 | text-align: center; 27 | box-sizing: border-box; 28 | width: 80vw; 29 | } 30 | .trtc-demo-container .input-box input{ 31 | font-size: 20px; 32 | } 33 | .choice-content { 34 | margin-top: 20rpx; 35 | width: 80vw; 36 | display: flex; 37 | flex-direction: row; 38 | justify-content: space-between; 39 | flex-wrap: wrap; 40 | font-size: 14px; 41 | color: #ffffff; 42 | } 43 | 44 | .choice-content switch { 45 | color: #006eff; 46 | transform:scale(0.8); 47 | } 48 | 49 | 50 | .bottom-btn { 51 | position: fixed; 52 | width: 100vw; 53 | text-align: center; 54 | bottom: 5vh; 55 | } 56 | .bottom-btn .btn{ 57 | width: 80%; 58 | background-color: #006eff; 59 | border-radius: 50px; 60 | color: #ffffff; 61 | } 62 | 63 | .close { 64 | position:absolute; 65 | padding-left:5vw; 66 | padding-right:5vw; 67 | width:50rpx; 68 | height:60rpx; 69 | } 70 | -------------------------------------------------------------------------------- /TRTCSimpleDemo/pages/meeting/room/room.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | }, 4 | "navigationStyle": "custom", 5 | "disableScroll": true 6 | } 7 | -------------------------------------------------------------------------------- /TRTCSimpleDemo/pages/videocall/room/room.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | }, 4 | "navigationStyle": "custom", 5 | "disableScroll": true 6 | } 7 | -------------------------------------------------------------------------------- /TRTCSimpleDemo/pages/videocall/videocall.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationStyle": "custom", 3 | "usingComponents": {}, 4 | "disableScroll": true 5 | } -------------------------------------------------------------------------------- /TRTCSimpleDemo/pages/videocall/videocall.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 双人通话 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /TRTCSimpleDemo/pages/videocall/videocall.wxss: -------------------------------------------------------------------------------- 1 | /**index.wxss**/ 2 | 3 | .trtc-demo-container { 4 | background-image: url(https://mc.qcloudimg.com/static/img/7da57e0050d308e2e1b1e31afbc42929/bg.png); 5 | background-color: #333; 6 | background-repeat:no-repeat; 7 | background-size: cover; 8 | width: 100vw; 9 | height: 100vh; 10 | display: flex; 11 | flex-direction: column; 12 | align-items: center; 13 | box-sizing: border-box; 14 | } 15 | .trtc-demo-container .title{ 16 | color: #FFFFFF; 17 | padding-top: 65rpx; 18 | line-height: 60rpx; 19 | } 20 | .trtc-demo-container .input-box { 21 | background-color: transparent; 22 | color: #ffffff; 23 | padding: 2vw 5vw 1vw; 24 | border-bottom: 1px solid #577785; 25 | margin: 100rpx 0 40rpx 0; 26 | text-align: center; 27 | box-sizing: border-box; 28 | width: 80vw; 29 | } 30 | .trtc-demo-container .input-box input{ 31 | font-size: 20px; 32 | } 33 | .choice-content { 34 | margin-top: 20rpx; 35 | width: 80vw; 36 | display: flex; 37 | flex-direction: row; 38 | justify-content: space-between; 39 | flex-wrap: wrap; 40 | font-size: 14px; 41 | color: #ffffff; 42 | } 43 | 44 | .choice-content switch { 45 | color: #006eff; 46 | transform:scale(0.8); 47 | } 48 | 49 | 50 | .bottom-btn { 51 | position: fixed; 52 | width: 100vw; 53 | text-align: center; 54 | bottom: 5vh; 55 | } 56 | .bottom-btn .btn{ 57 | width: 80%; 58 | background-color: #006eff; 59 | border-radius: 50px; 60 | color: #ffffff; 61 | } 62 | 63 | .close { 64 | position:absolute; 65 | padding-left:5vw; 66 | padding-right:5vw; 67 | width:50rpx; 68 | height:60rpx; 69 | } 70 | -------------------------------------------------------------------------------- /TRTCSimpleDemo/pages/voice-room/join-room/joinRoom.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationStyle": "custom", 3 | "usingComponents":{ 4 | }, 5 | "disableScroll": true 6 | } -------------------------------------------------------------------------------- /TRTCSimpleDemo/pages/voice-room/join-room/joinRoom.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 语音聊天室 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /TRTCSimpleDemo/pages/voice-room/room/room.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | }, 4 | "disableScroll": true 5 | } 6 | -------------------------------------------------------------------------------- /TRTCSimpleDemo/project.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "项目配置文件", 3 | "packOptions": { 4 | "ignore": [], 5 | "include": [] 6 | }, 7 | "setting": { 8 | "urlCheck": false, 9 | "es6": true, 10 | "enhance": false, 11 | "postcss": true, 12 | "preloadBackgroundData": false, 13 | "minified": true, 14 | "newFeature": true, 15 | "coverView": true, 16 | "nodeModules": false, 17 | "autoAudits": false, 18 | "showShadowRootInWxmlPanel": true, 19 | "scopeDataCheck": false, 20 | "uglifyFileName": false, 21 | "checkInvalidKey": true, 22 | "checkSiteMap": true, 23 | "uploadWithSourceMap": true, 24 | "compileHotReLoad": false, 25 | "lazyloadPlaceholderEnable": false, 26 | "useMultiFrameRuntime": true, 27 | "useApiHook": true, 28 | "useApiHostProcess": true, 29 | "babelSetting": { 30 | "ignore": [], 31 | "disablePlugins": [], 32 | "outputPath": "" 33 | }, 34 | "useIsolateContext": false, 35 | "userConfirmedBundleSwitch": false, 36 | "packNpmManually": false, 37 | "packNpmRelationList": [], 38 | "minifyWXSS": true, 39 | "disableUseStrict": false, 40 | "minifyWXML": true, 41 | "showES6CompileOption": false, 42 | "useCompilerPlugins": false, 43 | "ignoreUploadUnusedFiles": true 44 | }, 45 | "compileType": "miniprogram", 46 | "libVersion": "2.10.1", 47 | "appid": "", 48 | "projectname": "MiniProgram-TRTC", 49 | "simulatorType": "wechat", 50 | "simulatorPluginLibVersion": {}, 51 | "condition": {}, 52 | "editorSetting": { 53 | "tabIndent": "insertSpaces", 54 | "tabSize": 2 55 | } 56 | } -------------------------------------------------------------------------------- /TRTCSimpleDemo/sitemap.json: -------------------------------------------------------------------------------- 1 | { 2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html", 3 | "rules": [{ 4 | "action": "allow", 5 | "page": "*" 6 | }] 7 | } -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/audio-active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/audio-active.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/audio-false.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/audio-false.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/audio-true.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/audio-true.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/avatar0_100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/avatar0_100.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/avatar1_100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/avatar1_100.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/avatar2_100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/avatar2_100.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/avatar3_100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/avatar3_100.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/avatar4_100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/avatar4_100.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/avatar5_100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/avatar5_100.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/avatar6_100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/avatar6_100.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/avatar7_100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/avatar7_100.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/back.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/beauty-false.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/beauty-false.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/beauty-true.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/beauty-true.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/beauty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/beauty.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/call.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/call.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/camera-false.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/camera-false.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/camera-true.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/camera-true.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/camera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/camera.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/close-white-big.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/close-white-big.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/close-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/close-white.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/display-pause-false.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/display-pause-false.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/display-pause-true.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/display-pause-true.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/display-pause-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/display-pause-white.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/display-play-false.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/display-play-false.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/display-play-true.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/display-play-true.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/display-play-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/display-play-white.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/doubleroom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/doubleroom.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/fullscreen-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/fullscreen-white.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/fullscreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/fullscreen.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/hangup-red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/hangup-red.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/hangup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/hangup.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/im-disable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/im-disable.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/im-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/im-white.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/im.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/im.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/list-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/list-white.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/list.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/loading.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/logo.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/micro-open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/micro-open.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/more-disable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/more-disable.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/more-enable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/more-enable.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/more-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/more-white.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/multiroom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/multiroom.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/music-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/music-white.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/mute-camera-gray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/mute-camera-gray.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/mute-camera-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/mute-camera-white.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/mute-mic-gray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/mute-mic-gray.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/mute-mic-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/mute-mic-white.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/phone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/phone.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/setting-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/setting-white.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/setting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/setting.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/slide-up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/slide-up.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/speaker-false.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/speaker-false.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/speaker-true.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/speaker-true.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/speaker-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/speaker-white.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/static/images/switch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemo/static/images/switch.png -------------------------------------------------------------------------------- /TRTCSimpleDemo/utils/common.js: -------------------------------------------------------------------------------- 1 | export function randomUserID() { 2 | return new Date().getTime().toString(16).split('').reverse().join('') 3 | } 4 | export function randomRoomID() { 5 | return parseInt(Math.random() * 9999) 6 | } 7 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/App.vue: -------------------------------------------------------------------------------- 1 | 43 | 44 | 47 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/debug/GenerateTestUserSig.js: -------------------------------------------------------------------------------- 1 | import LibGenerateTestUserSig from './lib-generate-test-usersig-es.min.js' 2 | 3 | /** 4 | * 腾讯云 SDKAppId,需要替换为您自己账号下的 SDKAppId。 5 | * 6 | * 进入腾讯云实时音视频[控制台](https://console.cloud.tencent.com/rav ) 创建应用,即可看到 SDKAppId, 7 | * 它是腾讯云用于区分客户的唯一标识。 8 | */ 9 | const SDKAPPID = 0 10 | 11 | 12 | /** 13 | * 签名过期时间,建议不要设置的过短 14 | *

15 | * 时间单位:秒 16 | * 默认时间:7 x 24 x 60 x 60 = 604800 = 7 天 17 | */ 18 | const EXPIRETIME = 604800 19 | 20 | 21 | /** 22 | * 计算签名用的加密密钥,获取步骤如下: 23 | * 24 | * step1. 进入腾讯云实时音视频[控制台](https://console.cloud.tencent.com/rav ),如果还没有应用就创建一个, 25 | * step2. 单击“应用配置”进入基础配置页面,并进一步找到“帐号体系集成”部分。 26 | * step3. 点击“查看密钥”按钮,就可以看到计算 UserSig 使用的加密的密钥了,请将其拷贝并复制到如下的变量中 27 | * 28 | * 注意:该方案仅适用于调试Demo,正式上线前请将 UserSig 计算代码和密钥迁移到您的后台服务器上,以避免加密密钥泄露导致的流量盗用。 29 | * 文档:https://cloud.tencent.com/document/product/647/17275#Server 30 | */ 31 | const SECRETKEY = '' 32 | 33 | /* 34 | * Module: GenerateTestUserSig 35 | * 36 | * Function: 用于生成测试用的 wUserSig,UserSig 是腾讯云为其云服务设计的一种安全保护签名。 37 | * 其计算方法是对 SDKAppID、UserID 和 EXPIRETIME 进行加密,加密算法为 HMAC-SHA256。 38 | * 39 | * Attention: 请不要将如下代码发布到您的线上正式版本的 App 中,原因如下: 40 | * 41 | * 本文件中的代码虽然能够正确计算出 UserSig,但仅适合快速调通 SDK 的基本功能,不适合线上产品, 42 | * 这是因为客户端代码中的 SECRETKEY 很容易被反编译逆向破解,尤其是 Web 端的代码被破解的难度几乎为零。 43 | * 一旦您的密钥泄露,攻击者就可以计算出正确的 UserSig 来盗用您的腾讯云流量。 44 | * 45 | * 正确的做法是将 UserSig 的计算代码和加密密钥放在您的业务服务器上,然后由 App 按需向您的服务器获取实时算出的 UserSig。 46 | * 由于破解服务器的成本要高于破解客户端 App,所以服务器计算的方案能够更好地保护您的加密密钥。 47 | * 48 | * Reference:https://cloud.tencent.com/document/product/647/17275#Server 49 | */ 50 | function genTestUserSig(userID) { 51 | const generator = new LibGenerateTestUserSig(SDKAPPID, SECRETKEY, EXPIRETIME) 52 | const userSig = generator.genTestUserSig(userID) 53 | 54 | return { 55 | sdkAppID: SDKAPPID, 56 | userSig: userSig, 57 | } 58 | } 59 | 60 | module.exports = { 61 | genTestUserSig, 62 | } 63 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 |

18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/main.js: -------------------------------------------------------------------------------- 1 | import App from './App' 2 | 3 | // #ifndef VUE3 4 | import Vue from 'vue' 5 | 6 | 7 | 8 | Vue.config.productionTip = false 9 | App.mpType = 'app' 10 | const app = new Vue({ 11 | ...App 12 | }) 13 | app.$mount() 14 | // #endif 15 | 16 | // #ifdef VUE3 17 | import { createSSRApp } from 'vue' 18 | export function createApp() { 19 | const app = createSSRApp(App) 20 | return { 21 | app 22 | } 23 | } 24 | // #endif -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/pages.json: -------------------------------------------------------------------------------- 1 | { 2 | "pages": [ 3 | { 4 | "path": "pages/index/index", 5 | "style": { 6 | "navigationStyle": "custom" 7 | } 8 | }, 9 | { 10 | "path": "pages/voice-room/voice-room-config", 11 | "style": { 12 | "navigationBarTitleText": "语音聊天室-房间设置" 13 | } 14 | }, 15 | { 16 | "path": "pages/voice-room/voice-room", 17 | "style": { 18 | "navigationBarTitleText": "语音聊天室" 19 | } 20 | }, 21 | { 22 | "path": "pages/video-call/video-call-config", 23 | "style": { 24 | "navigationBarTitleText": "双人通话-房间设置" 25 | } 26 | }, 27 | { 28 | "path": "pages/video-call/video-call", 29 | "style": { 30 | "navigationBarTitleText": "双人通话" 31 | } 32 | }, 33 | { 34 | "path": "pages/meeting-room/meeting-room-config", 35 | "style": { 36 | "navigationBarTitleText": "多人会议-房间设置" 37 | } 38 | }, 39 | { 40 | "path": "pages/meeting-room/meeting-room", 41 | "style": { 42 | "navigationBarTitleText": "多人会议" 43 | } 44 | } 45 | ], 46 | "globalStyle": { 47 | "navigationBarTextStyle": "black", 48 | "navigationBarTitleText": "uni-app", 49 | "navigationBarBackgroundColor": "#F8F8F8", 50 | "backgroundColor": "#F8F8F8" 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/pages/index/index.scss: -------------------------------------------------------------------------------- 1 | @import "@/style/index"; 2 | 3 | $title-color: #ffffff; 4 | $label-text-color: #cfe4ff; 5 | 6 | .container { 7 | display: flex; 8 | flex-direction: column; 9 | align-items: center; 10 | 11 | .title { 12 | color: $title-color; 13 | padding-top: 65rpx; 14 | padding-bottom: 40rpx; 15 | line-height: 60rpx; 16 | } 17 | 18 | .tips { 19 | color: $title-color; 20 | font-size: 12px; 21 | text-align: center; 22 | } 23 | 24 | .guide-box { 25 | display: flex; 26 | flex-wrap: wrap; 27 | text-align: center; 28 | padding: 100rpx 5vw; 29 | } 30 | 31 | .single-box { 32 | width: 35vw; 33 | height: 33vw; 34 | background-color: rgba(0, 0, 0, 0.55); 35 | text-align: center; 36 | vertical-align: top; 37 | margin: 5vw; 38 | margin-bottom: 60rpx; 39 | } 40 | 41 | .icon { 42 | display: block; 43 | width: 72rpx; 44 | height: 72rpx; 45 | margin: 20px auto 0; 46 | } 47 | 48 | .label { 49 | display: block; 50 | margin-top: 10px; 51 | color: $label-text-color; 52 | font-size: 28rpx; 53 | } 54 | 55 | .desc { 56 | display: block; 57 | margin-top: 2px; 58 | color: $label-text-color; 59 | font-size: 24rpx; 60 | white-space: nowrap; 61 | } 62 | 63 | .logo-box { 64 | position: absolute; 65 | width: 100vw; 66 | bottom: 36rpx; 67 | text-align: center; 68 | } 69 | 70 | .logo { 71 | width: 160rpx; 72 | height: 44rpx; 73 | } 74 | } -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/pages/index/index.vue: -------------------------------------------------------------------------------- 1 | 18 | 19 | 58 | 61 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/pages/meeting-room/meeting-room-config.scss: -------------------------------------------------------------------------------- 1 | @import "@/style/index"; 2 | $font-color: #ffffff; 3 | .container { 4 | padding: 20% 10%; 5 | box-sizing: border-box; 6 | } 7 | .input-box { 8 | text-align: center; 9 | color: $font-color; 10 | .placeholder { 11 | color: #577785; 12 | } 13 | .input-row { 14 | display: flex; 15 | align-items: center; 16 | width: 100%; 17 | margin-bottom: 20%; 18 | .title { 19 | min-width: 90px; 20 | } 21 | input { 22 | border-bottom: 1px solid #577785; 23 | color: $font-color; 24 | width: 100%; 25 | } 26 | } 27 | 28 | } 29 | .options-box { 30 | color: $font-color; 31 | display: flex; 32 | justify-content: space-between; 33 | .options-row { 34 | display: flex; 35 | align-items: center; 36 | .title { 37 | margin-right: 12px; 38 | } 39 | } 40 | } 41 | .button-group { 42 | margin-top: 30%; 43 | button { 44 | background-color: $main-color; 45 | color: $font-color; 46 | } 47 | } -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/pages/video-call/video-call-config.scss: -------------------------------------------------------------------------------- 1 | @import "@/style/index"; 2 | $font-color: #ffffff; 3 | .container { 4 | padding: 20% 10%; 5 | box-sizing: border-box; 6 | } 7 | .input-box { 8 | text-align: center; 9 | color: $font-color; 10 | .placeholder { 11 | color: #577785; 12 | } 13 | .input-row { 14 | display: flex; 15 | align-items: center; 16 | width: 100%; 17 | margin-bottom: 20%; 18 | .title { 19 | min-width: 90px; 20 | } 21 | input { 22 | border-bottom: 1px solid #577785; 23 | color: $font-color; 24 | width: 100%; 25 | } 26 | } 27 | 28 | } 29 | .options-box { 30 | color: $font-color; 31 | display: flex; 32 | justify-content: space-between; 33 | .options-row { 34 | display: flex; 35 | align-items: center; 36 | .title { 37 | margin-right: 12px; 38 | } 39 | } 40 | } 41 | .button-group { 42 | margin-top: 30%; 43 | button { 44 | background-color: $main-color; 45 | color: $font-color; 46 | } 47 | } -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/pages/video-call/video-call-config.vue: -------------------------------------------------------------------------------- 1 | 18 | 19 | 57 | 60 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/pages/voice-room/voice-room-config.scss: -------------------------------------------------------------------------------- 1 | @import "@/style/index"; 2 | $font-color: #ffffff; 3 | .container { 4 | padding: 20% 10%; 5 | box-sizing: border-box; 6 | } 7 | .input-box { 8 | text-align: center; 9 | color: $font-color; 10 | .placeholder { 11 | color: #577785; 12 | } 13 | .input-row { 14 | display: flex; 15 | align-items: center; 16 | width: 100%; 17 | margin-bottom: 20%; 18 | .title { 19 | min-width: 90px; 20 | } 21 | input { 22 | border-bottom: 1px solid #577785; 23 | color: $font-color; 24 | width: 100%; 25 | } 26 | } 27 | 28 | } 29 | .radio-box { 30 | color: $font-color; 31 | display: flex; 32 | justify-content: space-between; 33 | .radio-row { 34 | display: flex; 35 | align-items: center; 36 | } 37 | } 38 | .button-group { 39 | margin-top: 30%; 40 | button { 41 | background-color: $main-color; 42 | color: $font-color; 43 | } 44 | } -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/pages/voice-room/voice-room.scss: -------------------------------------------------------------------------------- 1 | @import "@/style/index"; 2 | $font-color: #ffffff; 3 | 4 | .container { 5 | padding: 20% 0; 6 | box-sizing: border-box; 7 | color: $font-color; 8 | text-align: center; 9 | 10 | .user-seat-pusher { 11 | margin-bottom: 1rem; 12 | .nick { 13 | max-width: 100%; 14 | } 15 | } 16 | .user-container { 17 | display: flex; 18 | flex-direction: row; 19 | flex-wrap: wrap; 20 | justify-content: flex-start; 21 | text-align: center; 22 | 23 | .user-seat { 24 | text-align: center; 25 | flex: 33%; 26 | display: flex; 27 | flex-direction: column; 28 | align-items: center; 29 | margin-bottom: 1rem; 30 | } 31 | } 32 | .avatar { 33 | height: 4rem; 34 | width: 4rem; 35 | border-radius: 50%; 36 | background: #999; 37 | display: inline-block; 38 | 39 | image { 40 | height: 4rem; 41 | width: 4rem; 42 | border-radius: 50%; 43 | } 44 | } 45 | .nick { 46 | margin-top: 0.5rem; 47 | max-width: 7rem; 48 | overflow: hidden; 49 | text-overflow: ellipsis; 50 | white-space: nowrap; 51 | } 52 | 53 | .button-group { 54 | display: flex; 55 | flex-direction: row; 56 | justify-content: space-around; 57 | margin-top: 50%; 58 | .button-box { 59 | width: 3rem; 60 | height: 3rem; 61 | background-color: #ffffff; 62 | border-radius: 50%; 63 | display: flex; 64 | justify-content: center; 65 | align-items: center; 66 | .button-icon { 67 | width: 60%; 68 | height: 60%; 69 | } 70 | } 71 | } 72 | .live-pusher { 73 | visibility: hidden; 74 | } 75 | .live-player { 76 | visibility: hidden; 77 | height: 0; 78 | } 79 | } -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/audio-active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/audio-active.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/audio-false.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/audio-false.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/audio-true.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/audio-true.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/avatar0_100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/avatar0_100.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/avatar1_100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/avatar1_100.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/avatar2_100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/avatar2_100.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/avatar3_100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/avatar3_100.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/avatar4_100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/avatar4_100.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/avatar5_100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/avatar5_100.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/avatar6_100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/avatar6_100.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/beauty-false.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/beauty-false.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/beauty-true.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/beauty-true.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/call.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/call.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/camera-false.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/camera-false.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/camera-true.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/camera-true.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/camera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/camera.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/default_avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/default_avatar.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/doubleroom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/doubleroom.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/hangup-red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/hangup-red.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/hangup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/hangup.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/list.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/loading.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/logo.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/micro-open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/micro-open.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/multiroom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/multiroom.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/mute-camera-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/mute-camera-white.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/mute-mic-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/mute-mic-white.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/speaker-false.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/speaker-false.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/speaker-true.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/speaker-true.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/static/images/switch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/static/images/switch.png -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/style/index.scss: -------------------------------------------------------------------------------- 1 | @import './settings/variable.scss'; 2 | 3 | // 默认页面根节点容器样式 4 | .container { 5 | background-image: $background-image; 6 | background-size: cover; 7 | width: 100%; 8 | height: 100vh; 9 | } -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/style/settings/variable.scss: -------------------------------------------------------------------------------- 1 | // 行高 2 | $line-height-base: 1.5 !default; 3 | $line-height-lg: 2 !default; 4 | $line-height-sm: 1.25 !default; 5 | // 字体颜色 6 | $info: #17a2b8 !default; 7 | $danger: #dc3545 !default; 8 | 9 | // 字体大小 浏览器默认16px 10 | $font-size-base: 1rem !default; 11 | $font-size-lg: $font-size-base * 1.25 !default; 12 | $font-size-slg: $font-size-base * 1.75 !default; 13 | 14 | // 字重 15 | $font-weight-normal: 400 !default; 16 | $font-weight-bold: 600 !default; 17 | 18 | // 背景 19 | $background-image: url('https://mc.qcloudimg.com/static/img/7da57e0050d308e2e1b1e31afbc42929/bg.png'); 20 | 21 | // 主题颜色 22 | $main-color:#006eff -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * 这里是uni-app内置的常用样式变量 3 | * 4 | * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 5 | * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App 6 | * 7 | */ 8 | 9 | /** 10 | * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 11 | * 12 | * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 13 | */ 14 | 15 | /* 颜色变量 */ 16 | 17 | /* 行为相关颜色 */ 18 | $uni-color-primary: #007aff; 19 | $uni-color-success: #4cd964; 20 | $uni-color-warning: #f0ad4e; 21 | $uni-color-error: #dd524d; 22 | 23 | /* 文字基本颜色 */ 24 | $uni-text-color:#333;//基本色 25 | $uni-text-color-inverse:#fff;//反色 26 | $uni-text-color-grey:#999;//辅助灰色,如加载更多的提示信息 27 | $uni-text-color-placeholder: #808080; 28 | $uni-text-color-disable:#c0c0c0; 29 | 30 | /* 背景颜色 */ 31 | $uni-bg-color:#ffffff; 32 | $uni-bg-color-grey:#f8f8f8; 33 | $uni-bg-color-hover:#f1f1f1;//点击状态颜色 34 | $uni-bg-color-mask:rgba(0, 0, 0, 0.4);//遮罩颜色 35 | 36 | /* 边框颜色 */ 37 | $uni-border-color:#c8c7cc; 38 | 39 | /* 尺寸变量 */ 40 | 41 | /* 文字尺寸 */ 42 | $uni-font-size-sm:12px; 43 | $uni-font-size-base:14px; 44 | $uni-font-size-lg:16; 45 | 46 | /* 图片尺寸 */ 47 | $uni-img-size-sm:20px; 48 | $uni-img-size-base:26px; 49 | $uni-img-size-lg:40px; 50 | 51 | /* Border Radius */ 52 | $uni-border-radius-sm: 2px; 53 | $uni-border-radius-base: 3px; 54 | $uni-border-radius-lg: 6px; 55 | $uni-border-radius-circle: 50%; 56 | 57 | /* 水平间距 */ 58 | $uni-spacing-row-sm: 5px; 59 | $uni-spacing-row-base: 10px; 60 | $uni-spacing-row-lg: 15px; 61 | 62 | /* 垂直间距 */ 63 | $uni-spacing-col-sm: 4px; 64 | $uni-spacing-col-base: 8px; 65 | $uni-spacing-col-lg: 12px; 66 | 67 | /* 透明度 */ 68 | $uni-opacity-disabled: 0.3; // 组件禁用态的透明度 69 | 70 | /* 文章场景相关 */ 71 | $uni-color-title: #2C405A; // 文章标题颜色 72 | $uni-font-size-title:20px; 73 | $uni-color-subtitle: #555555; // 二级标题颜色 74 | $uni-font-size-subtitle:26px; 75 | $uni-color-paragraph: #3F536E; // 文章段落颜色 76 | $uni-font-size-paragraph:15px; 77 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-badge/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.0(2021-11-19) 2 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 3 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-badge](https://uniapp.dcloud.io/component/uniui/uni-badge) 4 | ## 1.1.7(2021-11-08) 5 | - 优化 升级ui 6 | - 修改 size 属性默认值调整为 small 7 | - 修改 type 属性,默认值调整为 error,info 替换 default 8 | ## 1.1.6(2021-09-22) 9 | - 修复 在字节小程序上样式不生效的 bug 10 | ## 1.1.5(2021-07-30) 11 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 12 | ## 1.1.4(2021-07-29) 13 | - 修复 去掉 nvue 不支持css 的 align-self 属性,nvue 下不暂支持 absolute 属性 14 | ## 1.1.3(2021-06-24) 15 | - 优化 示例项目 16 | ## 1.1.1(2021-05-12) 17 | - 新增 组件示例地址 18 | ## 1.1.0(2021-05-12) 19 | - 新增 uni-badge 的 absolute 属性,支持定位 20 | - 新增 uni-badge 的 offset 属性,支持定位偏移 21 | - 新增 uni-badge 的 is-dot 属性,支持仅显示有一个小点 22 | - 新增 uni-badge 的 max-num 属性,支持自定义封顶的数字值,超过 99 显示99+ 23 | - 优化 uni-badge 属性 custom-style, 支持以对象形式自定义样式 24 | ## 1.0.7(2021-05-07) 25 | - 修复 uni-badge 在 App 端,数字小于10时不是圆形的bug 26 | - 修复 uni-badge 在父元素不是 flex 布局时,宽度缩小的bug 27 | - 新增 uni-badge 属性 custom-style, 支持自定义样式 28 | ## 1.0.6(2021-02-04) 29 | - 调整为uni_modules目录规范 30 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-badge/readme.md: -------------------------------------------------------------------------------- 1 | ## Badge 数字角标 2 | > **组件名:uni-badge** 3 | > 代码块: `uBadge` 4 | 5 | 数字角标一般和其它控件(列表、9宫格等)配合使用,用于进行数量提示,默认为实心灰色背景, 6 | 7 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-badge) 8 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 9 | 10 | 11 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-calendar/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.4.5(2022-02-25) 2 | - 修复 条件编译 nvue 不支持的 css 样式 3 | ## 1.4.4(2022-02-25) 4 | - 修复 条件编译 nvue 不支持的 css 样式 5 | ## 1.4.3(2021-09-22) 6 | - 修复 startDate、 endDate 属性失效的 bug 7 | ## 1.4.2(2021-08-24) 8 | - 新增 支持国际化 9 | ## 1.4.1(2021-08-05) 10 | - 修复 弹出层被 tabbar 遮盖 bug 11 | ## 1.4.0(2021-07-30) 12 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 13 | ## 1.3.16(2021-05-12) 14 | - 新增 组件示例地址 15 | ## 1.3.15(2021-02-04) 16 | - 调整为uni_modules目录规范 17 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-calendar/components/uni-calendar/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-calender.ok": "ok", 3 | "uni-calender.cancel": "cancel", 4 | "uni-calender.today": "today", 5 | "uni-calender.MON": "MON", 6 | "uni-calender.TUE": "TUE", 7 | "uni-calender.WED": "WED", 8 | "uni-calender.THU": "THU", 9 | "uni-calender.FRI": "FRI", 10 | "uni-calender.SAT": "SAT", 11 | "uni-calender.SUN": "SUN" 12 | } 13 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-calendar/components/uni-calendar/i18n/index.js: -------------------------------------------------------------------------------- 1 | import en from './en.json' 2 | import zhHans from './zh-Hans.json' 3 | import zhHant from './zh-Hant.json' 4 | export default { 5 | en, 6 | 'zh-Hans': zhHans, 7 | 'zh-Hant': zhHant 8 | } 9 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hans.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-calender.ok": "确定", 3 | "uni-calender.cancel": "取消", 4 | "uni-calender.today": "今日", 5 | "uni-calender.SUN": "日", 6 | "uni-calender.MON": "一", 7 | "uni-calender.TUE": "二", 8 | "uni-calender.WED": "三", 9 | "uni-calender.THU": "四", 10 | "uni-calender.FRI": "五", 11 | "uni-calender.SAT": "六" 12 | } 13 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hant.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-calender.ok": "確定", 3 | "uni-calender.cancel": "取消", 4 | "uni-calender.today": "今日", 5 | "uni-calender.SUN": "日", 6 | "uni-calender.MON": "一", 7 | "uni-calender.TUE": "二", 8 | "uni-calender.WED": "三", 9 | "uni-calender.THU": "四", 10 | "uni-calender.FRI": "五", 11 | "uni-calender.SAT": "六" 12 | } 13 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-calendar/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-calendar", 3 | "displayName": "uni-calendar 日历", 4 | "version": "1.4.5", 5 | "description": "日历组件", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "日历", 10 | "", 11 | "打卡", 12 | "日历选择" 13 | ], 14 | "repository": "https://github.com/dcloudio/uni-ui", 15 | "engines": { 16 | "HBuilderX": "" 17 | }, 18 | "directories": { 19 | "example": "../../temps/example_temps" 20 | }, 21 | "dcloudext": { 22 | "category": [ 23 | "前端组件", 24 | "通用组件" 25 | ], 26 | "sale": { 27 | "regular": { 28 | "price": "0.00" 29 | }, 30 | "sourcecode": { 31 | "price": "0.00" 32 | } 33 | }, 34 | "contact": { 35 | "qq": "" 36 | }, 37 | "declaration": { 38 | "ads": "无", 39 | "data": "无", 40 | "permissions": "无" 41 | }, 42 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 43 | }, 44 | "uni_modules": { 45 | "dependencies": [], 46 | "encrypt": [], 47 | "platforms": { 48 | "cloud": { 49 | "tcb": "y", 50 | "aliyun": "y" 51 | }, 52 | "client": { 53 | "App": { 54 | "app-vue": "y", 55 | "app-nvue": "y" 56 | }, 57 | "H5-mobile": { 58 | "Safari": "y", 59 | "Android Browser": "y", 60 | "微信浏览器(Android)": "y", 61 | "QQ浏览器(Android)": "y" 62 | }, 63 | "H5-pc": { 64 | "Chrome": "y", 65 | "IE": "y", 66 | "Edge": "y", 67 | "Firefox": "y", 68 | "Safari": "y" 69 | }, 70 | "小程序": { 71 | "微信": "y", 72 | "阿里": "y", 73 | "百度": "y", 74 | "字节跳动": "y", 75 | "QQ": "y" 76 | }, 77 | "快应用": { 78 | "华为": "u", 79 | "联盟": "u" 80 | }, 81 | "Vue": { 82 | "vue2": "y", 83 | "vue3": "y" 84 | } 85 | } 86 | } 87 | } 88 | } -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-card/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.3.1(2021-12-20) 2 | - 修复 在vue页面下略缩图显示不正常的bug 3 | ## 1.3.0(2021-11-19) 4 | - 重构插槽的用法 ,header 替换为 title 5 | - 新增 actions 插槽 6 | - 新增 cover 封面图属性和插槽 7 | - 新增 padding 内容默认内边距离 8 | - 新增 margin 卡片默认外边距离 9 | - 新增 spacing 卡片默认内边距 10 | - 新增 shadow 卡片阴影属性 11 | - 取消 mode 属性,可使用组合插槽代替 12 | - 取消 note 属性 ,使用actions插槽代替 13 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 14 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-card](https://uniapp.dcloud.io/component/uniui/uni-card) 15 | ## 1.2.1(2021-07-30) 16 | - 优化 vue3下事件警告的问题 17 | ## 1.2.0(2021-07-13) 18 | - 组件兼容 vue3,如何创建vue3项目详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 19 | ## 1.1.8(2021-07-01) 20 | - 优化 图文卡片无图片加载时,提供占位图标 21 | - 新增 header 插槽,自定义卡片头部( 图文卡片 mode="style" 时,不支持) 22 | - 修复 thumbnail 不存在仍然占位的 bug 23 | ## 1.1.7(2021-05-12) 24 | - 新增 组件示例地址 25 | ## 1.1.6(2021-02-04) 26 | - 调整为uni_modules目录规范 27 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-card/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Card 卡片 4 | > **组件名:uni-card** 5 | > 代码块: `uCard` 6 | 7 | 卡片视图组件。 8 | 9 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-card) 10 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 11 | 12 | 13 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-collapse/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.4.3(2022-01-25) 2 | - 修复 初始化的时候 ,open 属性失效的bug 3 | ## 1.4.2(2022-01-21) 4 | - 修复 微信小程序resize后组件收起的bug 5 | ## 1.4.1(2021-11-22) 6 | - 修复 vue3中个别scss变量无法找到的问题 7 | ## 1.4.0(2021-11-19) 8 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 9 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-collapse](https://uniapp.dcloud.io/component/uniui/uni-collapse) 10 | ## 1.3.3(2021-08-17) 11 | - 优化 show-arrow 属性默认为true 12 | ## 1.3.2(2021-08-17) 13 | - 新增 show-arrow 属性,控制是否显示右侧箭头 14 | ## 1.3.1(2021-07-30) 15 | - 优化 vue3下小程序事件警告的问题 16 | ## 1.3.0(2021-07-30) 17 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 18 | ## 1.2.2(2021-07-21) 19 | - 修复 由1.2.0版本引起的 change 事件返回 undefined 的Bug 20 | ## 1.2.1(2021-07-21) 21 | - 优化 组件示例 22 | ## 1.2.0(2021-07-21) 23 | - 新增 组件折叠动画 24 | - 新增 value\v-model 属性 ,动态修改面板折叠状态 25 | - 新增 title 插槽 ,可定义面板标题 26 | - 新增 border 属性 ,显示隐藏面板内容分隔线 27 | - 新增 title-border 属性 ,显示隐藏面板标题分隔线 28 | - 修复 resize 方法失效的Bug 29 | - 修复 change 事件返回参数不正确的Bug 30 | - 优化 H5、App 平台自动更具内容更新高度,无需调用 reszie() 方法 31 | ## 1.1.7(2021-05-12) 32 | - 新增 组件示例地址 33 | ## 1.1.6(2021-02-05) 34 | - 优化 组件引用关系,通过uni_modules引用组件 35 | ## 1.1.5(2021-02-05) 36 | - 调整为uni_modules目录规范 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-collapse/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Collapse 折叠面板 4 | > **组件名:uni-collapse** 5 | > 代码块: `uCollapse` 6 | > 关联组件:`uni-collapse-item`、`uni-icons`。 7 | 8 | 9 | 折叠面板用来折叠/显示过长的内容或者是列表。通常是在多内容分类项使用,折叠不重要的内容,显示重要内容。点击可以展开折叠部分。 10 | 11 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-collapse) 12 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-combox/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.1(2021-11-23) 2 | - 优化 label、label-width 属性 3 | ## 1.0.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-combox](https://uniapp.dcloud.io/component/uniui/uni-combox) 6 | ## 0.1.0(2021-07-30) 7 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 8 | ## 0.0.6(2021-05-12) 9 | - 新增 组件示例地址 10 | ## 0.0.5(2021-04-21) 11 | - 优化 添加依赖 uni-icons, 导入后自动下载依赖 12 | ## 0.0.4(2021-02-05) 13 | - 优化 组件引用关系,通过uni_modules引用组件 14 | ## 0.0.3(2021-02-04) 15 | - 调整为uni_modules目录规范 16 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-combox/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Combox 组合框 4 | > **组件名:uni-combox** 5 | > 代码块: `uCombox` 6 | 7 | 8 | 组合框组件。 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-combox) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-countdown/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.2(2022-01-19) 2 | - 修复 在微信小程序中样式不生效的bug 3 | ## 1.2.1(2022-01-18) 4 | - 新增 update 方法 ,在动态更新时间后,刷新组件 5 | ## 1.2.0(2021-11-19) 6 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 7 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-countdown](https://uniapp.dcloud.io/component/uniui/uni-countdown) 8 | ## 1.1.3(2021-10-18) 9 | - 重构 10 | - 新增 font-size 支持自定义字体大小 11 | ## 1.1.2(2021-08-24) 12 | - 新增 支持国际化 13 | ## 1.1.1(2021-07-30) 14 | - 优化 vue3下小程序事件警告的问题 15 | ## 1.1.0(2021-07-30) 16 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 17 | ## 1.0.5(2021-06-18) 18 | - 修复 uni-countdown 重复赋值跳两秒的 bug 19 | ## 1.0.4(2021-05-12) 20 | - 新增 组件示例地址 21 | ## 1.0.3(2021-05-08) 22 | - 修复 uni-countdown 不能控制倒计时的 bug 23 | ## 1.0.2(2021-02-04) 24 | - 调整为uni_modules目录规范 25 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-countdown/components/uni-countdown/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-countdown.day": "day", 3 | "uni-countdown.h": "h", 4 | "uni-countdown.m": "m", 5 | "uni-countdown.s": "s" 6 | } 7 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-countdown/components/uni-countdown/i18n/index.js: -------------------------------------------------------------------------------- 1 | import en from './en.json' 2 | import zhHans from './zh-Hans.json' 3 | import zhHant from './zh-Hant.json' 4 | export default { 5 | en, 6 | 'zh-Hans': zhHans, 7 | 'zh-Hant': zhHant 8 | } 9 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-countdown/components/uni-countdown/i18n/zh-Hans.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-countdown.day": "天", 3 | "uni-countdown.h": "时", 4 | "uni-countdown.m": "分", 5 | "uni-countdown.s": "秒" 6 | } 7 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-countdown/components/uni-countdown/i18n/zh-Hant.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-countdown.day": "天", 3 | "uni-countdown.h": "時", 4 | "uni-countdown.m": "分", 5 | "uni-countdown.s": "秒" 6 | } 7 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-countdown/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## CountDown 倒计时 4 | > **组件名:uni-countdown** 5 | > 代码块: `uCountDown` 6 | 7 | 倒计时组件。 8 | 9 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-countdown) 10 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-data-checkbox/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.1(2022-02-07) 2 | - 修复 multiple 为 true 时,v-model 的值为 null 报错的 bug 3 | ## 1.0.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-data-checkbox](https://uniapp.dcloud.io/component/uniui/uni-data-checkbox) 6 | ## 0.2.5(2021-08-23) 7 | - 修复 在uni-forms中 modelValue 中不存在当前字段,当前字段必填写也不参与校验的问题 8 | ## 0.2.4(2021-08-17) 9 | - 修复 单选 list 模式下 ,icon 为 left 时,选中图标不显示的问题 10 | ## 0.2.3(2021-08-11) 11 | - 修复 在 uni-forms 中重置表单,错误信息无法清除的问题 12 | ## 0.2.2(2021-07-30) 13 | - 优化 在uni-forms组件,与label不对齐的问题 14 | ## 0.2.1(2021-07-27) 15 | - 修复 单选默认值为0不能选中的Bug 16 | ## 0.2.0(2021-07-13) 17 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 18 | ## 0.1.11(2021-07-06) 19 | - 优化 删除无用日志 20 | ## 0.1.10(2021-07-05) 21 | - 修复 由 0.1.9 引起的非 nvue 端图标不显示的问题 22 | ## 0.1.9(2021-07-05) 23 | - 修复 nvue 黑框样式问题 24 | ## 0.1.8(2021-06-28) 25 | - 修复 selectedTextColor 属性不生效的Bug 26 | ## 0.1.7(2021-06-02) 27 | - 新增 map 属性,可以方便映射text/value属性 28 | ## 0.1.6(2021-05-26) 29 | - 修复 不关联服务空间的情况下组件报错的Bug 30 | ## 0.1.5(2021-05-12) 31 | - 新增 组件示例地址 32 | ## 0.1.4(2021-04-09) 33 | - 修复 nvue 下无法选中的问题 34 | ## 0.1.3(2021-03-22) 35 | - 新增 disabled属性 36 | ## 0.1.2(2021-02-24) 37 | - 优化 默认颜色显示 38 | ## 0.1.1(2021-02-24) 39 | - 新增 支持nvue 40 | ## 0.1.0(2021-02-18) 41 | - “暂无数据”显示居中 42 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-data-checkbox/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## DataCheckbox 数据驱动的单选复选框 4 | > **组件名:uni-data-checkbox** 5 | > 代码块: `uDataCheckbox` 6 | 7 | 8 | 本组件是基于uni-app基础组件checkbox的封装。本组件要解决问题包括: 9 | 10 | 1. 数据绑定型组件:给本组件绑定一个data,会自动渲染一组候选内容。再以往,开发者需要编写不少代码实现类似功能 11 | 2. 自动的表单校验:组件绑定了data,且符合[uni-forms](https://ext.dcloud.net.cn/plugin?id=2773)组件的表单校验规范,搭配使用会自动实现表单校验 12 | 3. 本组件合并了单选多选 13 | 4. 本组件有若干风格选择,如普通的单选多选框、并列button风格、tag风格。开发者可以快速选择需要的风格。但作为一个封装组件,样式代码虽然不用自己写了,却会牺牲一定的样式自定义性 14 | 15 | 在uniCloud开发中,`DB Schema`中配置了enum枚举等类型后,在web控制台的[自动生成表单](https://uniapp.dcloud.io/uniCloud/schema?id=autocode)功能中,会自动生成``uni-data-checkbox``组件并绑定好data 16 | 17 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-data-checkbox) 18 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-data-picker/components/uni-data-picker/keypress.js: -------------------------------------------------------------------------------- 1 | // #ifdef H5 2 | export default { 3 | name: 'Keypress', 4 | props: { 5 | disable: { 6 | type: Boolean, 7 | default: false 8 | } 9 | }, 10 | mounted () { 11 | const keyNames = { 12 | esc: ['Esc', 'Escape'], 13 | tab: 'Tab', 14 | enter: 'Enter', 15 | space: [' ', 'Spacebar'], 16 | up: ['Up', 'ArrowUp'], 17 | left: ['Left', 'ArrowLeft'], 18 | right: ['Right', 'ArrowRight'], 19 | down: ['Down', 'ArrowDown'], 20 | delete: ['Backspace', 'Delete', 'Del'] 21 | } 22 | const listener = ($event) => { 23 | if (this.disable) { 24 | return 25 | } 26 | const keyName = Object.keys(keyNames).find(key => { 27 | const keyName = $event.key 28 | const value = keyNames[key] 29 | return value === keyName || (Array.isArray(value) && value.includes(keyName)) 30 | }) 31 | if (keyName) { 32 | // 避免和其他按键事件冲突 33 | setTimeout(() => { 34 | this.$emit(keyName, {}) 35 | }, 0) 36 | } 37 | } 38 | document.addEventListener('keyup', listener) 39 | this.$once('hook:beforeDestroy', () => { 40 | document.removeEventListener('keyup', listener) 41 | }) 42 | }, 43 | render: () => {} 44 | } 45 | // #endif 46 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-data-picker/readme.md: -------------------------------------------------------------------------------- 1 | ## DataPicker 级联选择 2 | > **组件名:uni-data-picker** 3 | > 代码块: `uDataPicker` 4 | > 关联组件:`uni-data-pickerview`、`uni-load-more`。 5 | 6 | 7 | `` 是一个选择类[datacom组件](https://uniapp.dcloud.net.cn/component/datacom)。 8 | 9 | 支持单列、和多列级联选择。列数没有限制,如果屏幕显示不全,顶部tab区域会左右滚动。 10 | 11 | 候选数据支持一次性加载完毕,也支持懒加载,比如示例图中,选择了“北京”后,动态加载北京的区县数据。 12 | 13 | `` 组件尤其适用于地址选择、分类选择等选择类。 14 | 15 | `` 支持本地数据、云端静态数据(json),uniCloud云数据库数据。 16 | 17 | `` 可以通过JQL直连uniCloud云数据库,配套[DB Schema](https://uniapp.dcloud.net.cn/uniCloud/schema),可在schema2code中自动生成前端页面,还支持服务器端校验。 18 | 19 | 在uniCloud数据表中新建表“uni-id-address”和“opendb-city-china”,这2个表的schema自带foreignKey关联。在“uni-id-address”表的表结构页面使用schema2code生成前端页面,会自动生成地址管理的维护页面,自动从“opendb-city-china”表包含的中国所有省市区信息里选择地址。 20 | 21 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-data-picker) 22 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-dateformat/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.0(2021-11-19) 2 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 3 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-dateformat](https://uniapp.dcloud.io/component/uniui/uni-dateformat) 4 | ## 0.0.5(2021-07-08) 5 | - 调整 默认时间不再是当前时间,而是显示'-'字符 6 | ## 0.0.4(2021-05-12) 7 | - 新增 组件示例地址 8 | ## 0.0.3(2021-02-04) 9 | - 调整为uni_modules目录规范 10 | - 修复 iOS 平台日期格式化出错的问题 11 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 85 | 86 | 89 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-dateformat/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ### DateFormat 日期格式化 4 | > **组件名:uni-dateformat** 5 | > 代码块: `uDateformat` 6 | 7 | 8 | 日期格式化组件。 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-dateformat) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-datetime-picker.selectDate": "select date", 3 | "uni-datetime-picker.selectTime": "select time", 4 | "uni-datetime-picker.selectDateTime": "select datetime", 5 | "uni-datetime-picker.startDate": "start date", 6 | "uni-datetime-picker.endDate": "end date", 7 | "uni-datetime-picker.startTime": "start time", 8 | "uni-datetime-picker.endTime": "end time", 9 | "uni-datetime-picker.ok": "ok", 10 | "uni-datetime-picker.clear": "clear", 11 | "uni-datetime-picker.cancel": "cancel", 12 | "uni-calender.MON": "MON", 13 | "uni-calender.TUE": "TUE", 14 | "uni-calender.WED": "WED", 15 | "uni-calender.THU": "THU", 16 | "uni-calender.FRI": "FRI", 17 | "uni-calender.SAT": "SAT", 18 | "uni-calender.SUN": "SUN" 19 | } 20 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js: -------------------------------------------------------------------------------- 1 | import en from './en.json' 2 | import zhHans from './zh-Hans.json' 3 | import zhHant from './zh-Hant.json' 4 | export default { 5 | en, 6 | 'zh-Hans': zhHans, 7 | 'zh-Hant': zhHant 8 | } 9 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-datetime-picker.selectDate": "选择日期", 3 | "uni-datetime-picker.selectTime": "选择时间", 4 | "uni-datetime-picker.selectDateTime": "选择日期时间", 5 | "uni-datetime-picker.startDate": "开始日期", 6 | "uni-datetime-picker.endDate": "结束日期", 7 | "uni-datetime-picker.startTime": "开始时间", 8 | "uni-datetime-picker.endTime": "结束时间", 9 | "uni-datetime-picker.ok": "确定", 10 | "uni-datetime-picker.clear": "清除", 11 | "uni-datetime-picker.cancel": "取消", 12 | "uni-calender.SUN": "日", 13 | "uni-calender.MON": "一", 14 | "uni-calender.TUE": "二", 15 | "uni-calender.WED": "三", 16 | "uni-calender.THU": "四", 17 | "uni-calender.FRI": "五", 18 | "uni-calender.SAT": "六" 19 | } 20 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-datetime-picker.selectDate": "選擇日期", 3 | "uni-datetime-picker.selectTime": "選擇時間", 4 | "uni-datetime-picker.selectDateTime": "選擇日期時間", 5 | "uni-datetime-picker.startDate": "開始日期", 6 | "uni-datetime-picker.endDate": "結束日期", 7 | "uni-datetime-picker.startTime": "開始时间", 8 | "uni-datetime-picker.endTime": "結束时间", 9 | "uni-datetime-picker.ok": "確定", 10 | "uni-datetime-picker.clear": "清除", 11 | "uni-datetime-picker.cancel": "取消", 12 | "uni-calender.SUN": "日", 13 | "uni-calender.MON": "一", 14 | "uni-calender.TUE": "二", 15 | "uni-calender.WED": "三", 16 | "uni-calender.THU": "四", 17 | "uni-calender.FRI": "五", 18 | "uni-calender.SAT": "六" 19 | } 20 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-datetime-picker/components/uni-datetime-picker/keypress.js: -------------------------------------------------------------------------------- 1 | // #ifdef H5 2 | export default { 3 | name: 'Keypress', 4 | props: { 5 | disable: { 6 | type: Boolean, 7 | default: false 8 | } 9 | }, 10 | mounted () { 11 | const keyNames = { 12 | esc: ['Esc', 'Escape'], 13 | tab: 'Tab', 14 | enter: 'Enter', 15 | space: [' ', 'Spacebar'], 16 | up: ['Up', 'ArrowUp'], 17 | left: ['Left', 'ArrowLeft'], 18 | right: ['Right', 'ArrowRight'], 19 | down: ['Down', 'ArrowDown'], 20 | delete: ['Backspace', 'Delete', 'Del'] 21 | } 22 | const listener = ($event) => { 23 | if (this.disable) { 24 | return 25 | } 26 | const keyName = Object.keys(keyNames).find(key => { 27 | const keyName = $event.key 28 | const value = keyNames[key] 29 | return value === keyName || (Array.isArray(value) && value.includes(keyName)) 30 | }) 31 | if (keyName) { 32 | // 避免和其他按键事件冲突 33 | setTimeout(() => { 34 | this.$emit(keyName, {}) 35 | }, 0) 36 | } 37 | } 38 | document.addEventListener('keyup', listener) 39 | this.$once('hook:beforeDestroy', () => { 40 | document.removeEventListener('keyup', listener) 41 | }) 42 | }, 43 | render: () => {} 44 | } 45 | // #endif -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-datetime-picker/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | > `重要通知:组件升级更新 2.0.0 后,支持日期+时间范围选择,组件 ui 将使用日历选择日期,ui 变化较大,同时支持 PC 和 移动端。此版本不向后兼容,不再支持单独的时间选择(type=time)及相关的 hide-second 属性(时间选可使用内置组件 picker)。若仍需使用旧版本,可在插件市场下载*非uni_modules版本*,旧版本将不再维护` 4 | 5 | ## DatetimePicker 时间选择器 6 | 7 | > **组件名:uni-datetime-picker** 8 | > 代码块: `uDatetimePicker` 9 | 10 | 11 | 该组件的优势是,支持**时间戳**输入和输出(起始时间、终止时间也支持时间戳),可**同时选择**日期和时间。 12 | 13 | 若只是需要单独选择日期和时间,不需要时间戳输入和输出,可使用原生的 picker 组件。 14 | 15 | **_点击 picker 默认值规则:_** 16 | 17 | - 若设置初始值 value, 会显示在 picker 显示框中 18 | - 若无初始值 value,则初始值 value 为当前本地时间 Date.now(), 但不会显示在 picker 显示框中 19 | 20 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-datetime-picker) 21 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-drawer/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.1(2021-11-22) 2 | - 修复 vue3中个别scss变量无法找到的问题 3 | ## 1.2.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-drawer](https://uniapp.dcloud.io/component/uniui/uni-drawer) 6 | ## 1.1.1(2021-07-30) 7 | - 优化 vue3下事件警告的问题 8 | ## 1.1.0(2021-07-13) 9 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 10 | ## 1.0.7(2021-05-12) 11 | - 新增 组件示例地址 12 | ## 1.0.6(2021-02-04) 13 | - 调整为uni_modules目录规范 14 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-drawer/components/uni-drawer/keypress.js: -------------------------------------------------------------------------------- 1 | // #ifdef H5 2 | export default { 3 | name: 'Keypress', 4 | props: { 5 | disable: { 6 | type: Boolean, 7 | default: false 8 | } 9 | }, 10 | mounted () { 11 | const keyNames = { 12 | esc: ['Esc', 'Escape'], 13 | tab: 'Tab', 14 | enter: 'Enter', 15 | space: [' ', 'Spacebar'], 16 | up: ['Up', 'ArrowUp'], 17 | left: ['Left', 'ArrowLeft'], 18 | right: ['Right', 'ArrowRight'], 19 | down: ['Down', 'ArrowDown'], 20 | delete: ['Backspace', 'Delete', 'Del'] 21 | } 22 | const listener = ($event) => { 23 | if (this.disable) { 24 | return 25 | } 26 | const keyName = Object.keys(keyNames).find(key => { 27 | const keyName = $event.key 28 | const value = keyNames[key] 29 | return value === keyName || (Array.isArray(value) && value.includes(keyName)) 30 | }) 31 | if (keyName) { 32 | // 避免和其他按键事件冲突 33 | setTimeout(() => { 34 | this.$emit(keyName, {}) 35 | }, 0) 36 | } 37 | } 38 | document.addEventListener('keyup', listener) 39 | // this.$once('hook:beforeDestroy', () => { 40 | // document.removeEventListener('keyup', listener) 41 | // }) 42 | }, 43 | render: () => {} 44 | } 45 | // #endif 46 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-drawer/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Drawer 抽屉 4 | > **组件名:uni-drawer** 5 | > 代码块: `uDrawer` 6 | 7 | 抽屉侧滑菜单。 8 | 9 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-drawer) 10 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-easyinput/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.5(2022-06-07) 2 | - 优化 clearable 显示策略 3 | ## 1.0.4(2022-06-07) 4 | - 优化 clearable 显示策略 5 | ## 1.0.3(2022-05-20) 6 | - 修复 关闭图标某些情况下无法取消的bug 7 | ## 1.0.2(2022-04-12) 8 | - 修复 默认值不生效的bug 9 | ## 1.0.1(2022-04-02) 10 | - 修复 value不能为0的bug 11 | ## 1.0.0(2021-11-19) 12 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 13 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-easyinput](https://uniapp.dcloud.io/component/uniui/uni-easyinput) 14 | ## 0.1.4(2021-08-20) 15 | - 修复 在 uni-forms 的动态表单中默认值校验不通过的 bug 16 | ## 0.1.3(2021-08-11) 17 | - 修复 在 uni-forms 中重置表单,错误信息无法清除的问题 18 | ## 0.1.2(2021-07-30) 19 | - 优化 vue3下事件警告的问题 20 | ## 0.1.1 21 | - 优化 errorMessage 属性支持 Boolean 类型 22 | ## 0.1.0(2021-07-13) 23 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 24 | ## 0.0.16(2021-06-29) 25 | - 修复 confirmType 属性(仅 type="text" 生效)导致多行文本框无法换行的 bug 26 | ## 0.0.15(2021-06-21) 27 | - 修复 passwordIcon 属性拼写错误的 bug 28 | ## 0.0.14(2021-06-18) 29 | - 新增 passwordIcon 属性,当type=password时是否显示小眼睛图标 30 | - 修复 confirmType 属性不生效的问题 31 | ## 0.0.13(2021-06-04) 32 | - 修复 disabled 状态可清出内容的 bug 33 | ## 0.0.12(2021-05-12) 34 | - 新增 组件示例地址 35 | ## 0.0.11(2021-05-07) 36 | - 修复 input-border 属性不生效的问题 37 | ## 0.0.10(2021-04-30) 38 | - 修复 ios 遮挡文字、显示一半的问题 39 | ## 0.0.9(2021-02-05) 40 | - 调整为uni_modules目录规范 41 | - 优化 兼容 nvue 页面 42 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-easyinput/components/uni-easyinput/common.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @desc 函数防抖 3 | * @param func 目标函数 4 | * @param wait 延迟执行毫秒数 5 | * @param immediate true - 立即执行, false - 延迟执行 6 | */ 7 | export const debounce = function(func, wait = 1000, immediate = true) { 8 | let timer; 9 | console.log(1); 10 | return function() { 11 | console.log(123); 12 | let context = this, 13 | args = arguments; 14 | if (timer) clearTimeout(timer); 15 | if (immediate) { 16 | let callNow = !timer; 17 | timer = setTimeout(() => { 18 | timer = null; 19 | }, wait); 20 | if (callNow) func.apply(context, args); 21 | } else { 22 | timer = setTimeout(() => { 23 | func.apply(context, args); 24 | }, wait) 25 | } 26 | } 27 | } 28 | /** 29 | * @desc 函数节流 30 | * @param func 函数 31 | * @param wait 延迟执行毫秒数 32 | * @param type 1 使用表时间戳,在时间段开始的时候触发 2 使用表定时器,在时间段结束的时候触发 33 | */ 34 | export const throttle = (func, wait = 1000, type = 1) => { 35 | let previous = 0; 36 | let timeout; 37 | return function() { 38 | let context = this; 39 | let args = arguments; 40 | if (type === 1) { 41 | let now = Date.now(); 42 | 43 | if (now - previous > wait) { 44 | func.apply(context, args); 45 | previous = now; 46 | } 47 | } else if (type === 2) { 48 | if (!timeout) { 49 | timeout = setTimeout(() => { 50 | timeout = null; 51 | func.apply(context, args) 52 | }, wait) 53 | } 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-easyinput/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ### Easyinput 增强输入框 4 | > **组件名:uni-easyinput** 5 | > 代码块: `uEasyinput` 6 | 7 | 8 | easyinput 组件是对原生input组件的增强 ,是专门为配合表单组件[uni-forms](https://ext.dcloud.net.cn/plugin?id=2773)而设计的,easyinput 内置了边框,图标等,同时包含 input 所有功能 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-easyinput) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-fab/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.2(2021-12-29) 2 | - 更新 组件依赖 3 | ## 1.2.1(2021-11-19) 4 | - 修复 阴影颜色不正确的bug 5 | ## 1.2.0(2021-11-19) 6 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 7 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-fab](https://uniapp.dcloud.io/component/uniui/uni-fab) 8 | ## 1.1.1(2021-11-09) 9 | - 新增 提供组件设计资源,组件样式调整 10 | ## 1.1.0(2021-07-30) 11 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 12 | ## 1.0.7(2021-05-12) 13 | - 新增 组件示例地址 14 | ## 1.0.6(2021-02-05) 15 | - 调整为uni_modules目录规范 16 | - 优化 按钮背景色调整 17 | - 优化 兼容pc端 18 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-fab/readme.md: -------------------------------------------------------------------------------- 1 | ## Fab 悬浮按钮 2 | > **组件名:uni-fab** 3 | > 代码块: `uFab` 4 | 5 | 6 | 点击可展开一个图形按钮菜单 7 | 8 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-fab) 9 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-fav/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.1(2022-05-30) 2 | - 新增 stat 属性 ,是否开启uni统计功能 3 | ## 1.2.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-fav](https://uniapp.dcloud.io/component/uniui/uni-fav) 6 | ## 1.1.1(2021-08-24) 7 | - 新增 支持国际化 8 | ## 1.1.0(2021-07-13) 9 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 10 | ## 1.0.6(2021-05-12) 11 | - 新增 组件示例地址 12 | ## 1.0.5(2021-04-21) 13 | - 优化 添加依赖 uni-icons, 导入后自动下载依赖 14 | ## 1.0.4(2021-02-05) 15 | - 优化 组件引用关系,通过uni_modules引用组件 16 | ## 1.0.3(2021-02-05) 17 | - 优化 组件引用关系,通过uni_modules引用组件 18 | ## 1.0.2(2021-02-05) 19 | - 调整为uni_modules目录规范 20 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-fav/components/uni-fav/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-fav.collect": "collect", 3 | "uni-fav.collected": "collected" 4 | } 5 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-fav/components/uni-fav/i18n/index.js: -------------------------------------------------------------------------------- 1 | import en from './en.json' 2 | import zhHans from './zh-Hans.json' 3 | import zhHant from './zh-Hant.json' 4 | export default { 5 | en, 6 | 'zh-Hans': zhHans, 7 | 'zh-Hant': zhHant 8 | } 9 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-fav/components/uni-fav/i18n/zh-Hans.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-fav.collect": "收藏", 3 | "uni-fav.collected": "已收藏" 4 | } 5 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-fav/components/uni-fav/i18n/zh-Hant.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-fav.collect": "收藏", 3 | "uni-fav.collected": "已收藏" 4 | } 5 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-fav/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Fav 收藏按钮 4 | > **组件名:uni-fav** 5 | > 代码块: `uFav` 6 | 7 | 用于收藏功能,可点击切换选中、不选中的状态。 8 | 9 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-fav) 10 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-file-picker/readme.md: -------------------------------------------------------------------------------- 1 | 2 | ## FilePicker 文件选择上传 3 | 4 | > **组件名:uni-file-picker** 5 | > 代码块: `uFilePicker` 6 | 7 | 8 | 文件选择上传组件,可以选择图片、视频等任意文件并上传到当前绑定的服务空间 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-file-picker) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-forms/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Forms 表单 4 | 5 | > **组件名:uni-forms** 6 | > 代码块: `uForms`、`uni-forms-item` 7 | > 关联组件:`uni-forms-item`、`uni-easyinput`、`uni-data-checkbox`、`uni-group`。 8 | 9 | 10 | uni-app的内置组件已经有了 `
`组件,用于提交表单内容。 11 | 12 | 然而几乎每个表单都需要做表单验证,为了方便做表单验证,减少重复开发,`uni ui` 又基于 ``组件封装了 ``组件,内置了表单验证功能。 13 | 14 | `` 提供了 `rules`属性来描述校验规则、``子组件来包裹具体的表单项,以及给原生或三方组件提供了 `binddata()` 来设置表单值。 15 | 16 | 每个要校验的表单项,不管input还是checkbox,都必须放在``组件中,且一个``组件只能放置一个表单项。 17 | 18 | ``组件内部预留了显示error message的区域,默认是在表单项的底部。 19 | 20 | 另外,``组件下面的各个表单项,可以通过``包裹为不同的分组。同一``下的不同表单项目将聚拢在一起,同其他group保持垂直间距。``仅影响视觉效果。 21 | 22 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-forms) 23 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-goods-nav/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.1(2022-05-30) 2 | - 新增 stat属性,是否开启uni统计功能 3 | ## 1.2.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-goods-nav](https://uniapp.dcloud.io/component/uniui/uni-goods-nav) 6 | ## 1.1.1(2021-08-24) 7 | - 新增 支持国际化 8 | ## 1.1.0(2021-07-13) 9 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 10 | ## 1.0.7(2021-05-12) 11 | - 新增 组件示例地址 12 | ## 1.0.6(2021-04-21) 13 | - 优化 添加依赖 uni-icons, 导入后自动下载依赖 14 | ## 1.0.5(2021-02-05) 15 | - 优化 组件引用关系,通过uni_modules引用组件 16 | 17 | ## 1.0.4(2021-02-05) 18 | - 调整为uni_modules目录规范 19 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-goods-nav.options.shop": "shop", 3 | "uni-goods-nav.options.cart": "cart", 4 | "uni-goods-nav.buttonGroup.addToCart": "add to cart", 5 | "uni-goods-nav.buttonGroup.buyNow": "buy now" 6 | } 7 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/index.js: -------------------------------------------------------------------------------- 1 | import en from './en.json' 2 | import zhHans from './zh-Hans.json' 3 | import zhHant from './zh-Hant.json' 4 | export default { 5 | en, 6 | 'zh-Hans': zhHans, 7 | 'zh-Hant': zhHant 8 | } 9 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/zh-Hans.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-goods-nav.options.shop": "店铺", 3 | "uni-goods-nav.options.cart": "购物车", 4 | "uni-goods-nav.buttonGroup.addToCart": "加入购物车", 5 | "uni-goods-nav.buttonGroup.buyNow": "立即购买" 6 | } 7 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/zh-Hant.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-goods-nav.options.shop": "店鋪", 3 | "uni-goods-nav.options.cart": "購物車", 4 | "uni-goods-nav.buttonGroup.addToCart": "加入購物車", 5 | "uni-goods-nav.buttonGroup.buyNow": "立即購買" 6 | } 7 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-goods-nav/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## GoodsNav 商品导航 4 | > **组件名:uni-goods-nav** 5 | > 代码块: `uGoodsNav` 6 | 7 | 商品加入购物车,立即购买等。 8 | 9 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-goods-nav) 10 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-grid/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.4.0(2021-11-19) 2 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 3 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-grid](https://uniapp.dcloud.io/component/uniui/uni-grid) 4 | ## 1.3.2(2021-11-09) 5 | - 新增 提供组件设计资源,组件样式调整 6 | ## 1.3.1(2021-07-30) 7 | - 优化 vue3下事件警告的问题 8 | ## 1.3.0(2021-07-13) 9 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 10 | ## 1.2.4(2021-05-12) 11 | - 新增 组件示例地址 12 | ## 1.2.3(2021-02-05) 13 | - 调整为uni_modules目录规范 14 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-grid/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Grid 宫格 4 | > **组件名:uni-grid** 5 | > 代码块: `uGrid` 6 | 7 | 8 | 宫格组件。 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-grid) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-group/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.2(2022-05-30) 2 | - 新增 stat属性,是否开启uni统计功能 3 | ## 1.2.1(2021-11-22) 4 | - 修复 vue3中某些scss变量无法找到的问题 5 | ## 1.2.0(2021-11-19) 6 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 7 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-group](https://uniapp.dcloud.io/component/uniui/uni-group) 8 | ## 1.1.7(2021-11-08) 9 | ## 1.1.0(2021-07-30) 10 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 11 | - 优化 组件文档 12 | ## 1.0.3(2021-05-12) 13 | - 新增 组件示例地址 14 | ## 1.0.2(2021-02-05) 15 | - 调整为uni_modules目录规范 16 | - 优化 兼容 nvue 页面 17 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-group/readme.md: -------------------------------------------------------------------------------- 1 | 2 | ## Group 分组 3 | > **组件名:uni-group** 4 | > 代码块: `uGroup` 5 | 6 | 分组组件可用于将组件分组,添加间隔,以产生明显的区块。 7 | 8 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-group) 9 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-icons/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.3.5(2022-01-24) 2 | - 优化 size 属性可以传入不带单位的字符串数值 3 | ## 1.3.4(2022-01-24) 4 | - 优化 size 支持其他单位 5 | ## 1.3.3(2022-01-17) 6 | - 修复 nvue 有些图标不显示的bug,兼容老版本图标 7 | ## 1.3.2(2021-12-01) 8 | - 优化 示例可复制图标名称 9 | ## 1.3.1(2021-11-23) 10 | - 优化 兼容旧组件 type 值 11 | ## 1.3.0(2021-11-19) 12 | - 新增 更多图标 13 | - 优化 自定义图标使用方式 14 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 15 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-icons](https://uniapp.dcloud.io/component/uniui/uni-icons) 16 | ## 1.1.7(2021-11-08) 17 | ## 1.2.0(2021-07-30) 18 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 19 | ## 1.1.5(2021-05-12) 20 | - 新增 组件示例地址 21 | ## 1.1.4(2021-02-05) 22 | - 调整为uni_modules目录规范 23 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-icons/components/uni-icons/uniicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiteAVSDK/Live_WXMini/43386063c50188ce1fa44ed283a852c1a818bf18/TRTCSimpleDemoUniApp/uni_modules/uni-icons/components/uni-icons/uniicons.ttf -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-icons/readme.md: -------------------------------------------------------------------------------- 1 | ## Icons 图标 2 | > **组件名:uni-icons** 3 | > 代码块: `uIcons` 4 | 5 | 用于展示 icons 图标 。 6 | 7 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-icons) 8 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 9 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-indexed-list/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.1(2021-11-22) 2 | - 修复 vue3中某些scss变量无法找到的问题 3 | ## 1.2.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-indexed-list](https://uniapp.dcloud.io/component/uniui/uni-indexed-list) 6 | ## 1.1.0(2021-07-30) 7 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 8 | ## 1.0.11(2021-05-12) 9 | - 新增 组件示例地址 10 | ## 1.0.10(2021-04-21) 11 | - 优化 添加依赖 uni-icons, 导入后自动下载依赖 12 | ## 1.0.9(2021-02-05) 13 | - 优化 组件引用关系,通过uni_modules引用组件 14 | 15 | ## 1.0.8(2021-02-05) 16 | - 调整为uni_modules目录规范 17 | - 新增 支持 PC 端 18 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-indexed-list/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## IndexedList 索引列表 4 | > **组件名:uni-indexed-list** 5 | > 代码块: `uIndexedList` 6 | 7 | 8 | 用于展示索引列表。 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-indexed-list) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 12 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-link/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.0(2021-11-19) 2 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 3 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-link](https://uniapp.dcloud.io/component/uniui/uni-link) 4 | ## 1.1.7(2021-11-08) 5 | ## 0.0.7(2021-09-03) 6 | - 修复 在 nvue 下不显示的 bug 7 | ## 0.0.6(2021-07-30) 8 | - 新增 支持自定义插槽 9 | ## 0.0.5(2021-06-21) 10 | - 新增 download 属性,H5平台下载文件名 11 | ## 0.0.4(2021-05-12) 12 | - 新增 组件示例地址 13 | ## 0.0.3(2021-03-09) 14 | - 新增 href 属性支持 tel:|mailto: 15 | 16 | ## 0.0.2(2021-02-05) 17 | - 调整为uni_modules目录规范 18 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-link/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Link 链接 4 | > **组件名:uni-link** 5 | > 代码块: `uLink` 6 | 7 | 8 | uni-link是一个外部网页超链接组件,在小程序内复制url,在app内打开外部浏览器,在h5端打开新网页。 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-link) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-list/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.1(2022-03-30) 2 | - 删除无用文件 3 | ## 1.2.0(2021-11-23) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-list](https://uniapp.dcloud.io/component/uniui/uni-list) 6 | ## 1.1.3(2021-08-30) 7 | - 修复 在vue3中to属性在发行应用的时候报错的bug 8 | ## 1.1.2(2021-07-30) 9 | - 优化 vue3下事件警告的问题 10 | ## 1.1.1(2021-07-21) 11 | - 修复 与其他组件嵌套使用时,点击失效的Bug 12 | ## 1.1.0(2021-07-13) 13 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 14 | ## 1.0.17(2021-05-12) 15 | - 新增 组件示例地址 16 | ## 1.0.16(2021-02-05) 17 | - 优化 组件引用关系,通过uni_modules引用组件 18 | ## 1.0.15(2021-02-05) 19 | - 调整为uni_modules目录规范 20 | - 修复 uni-list-chat 角标显示不正常的问题 21 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * 这里是 uni-list 组件内置的常用样式变量 3 | * 如果需要覆盖样式,这里提供了基本的组件样式变量,您可以尝试修改这里的变量,去完成样式替换,而不用去修改源码 4 | * 5 | */ 6 | 7 | // 背景色 8 | $background-color : #fff; 9 | // 分割线颜色 10 | $divide-line-color : #e5e5e5; 11 | 12 | // 默认头像大小,如需要修改此值,注意同步修改 js 中的值 const avatarWidth = xx ,目前只支持方形头像 13 | // nvue 页面不支持修改头像大小 14 | $avatar-width : 45px ; 15 | 16 | // 头像边框 17 | $avatar-border-radius: 5px; 18 | $avatar-border-color: #eee; 19 | $avatar-border-width: 1px; 20 | 21 | // 标题文字样式 22 | $title-size : 16px; 23 | $title-color : #3b4144; 24 | $title-weight : normal; 25 | 26 | // 描述文字样式 27 | $note-size : 12px; 28 | $note-color : #999; 29 | $note-weight : normal; 30 | 31 | // 右侧额外内容默认样式 32 | $right-text-size : 12px; 33 | $right-text-color : #999; 34 | $right-text-weight : normal; 35 | 36 | // 角标样式 37 | // nvue 页面不支持修改圆点位置以及大小 38 | // 角标在左侧时,角标的位置,默认为 0 ,负数左/下移动,正数右/上移动 39 | $badge-left: 0px; 40 | $badge-top: 0px; 41 | 42 | // 显示圆点时,圆点大小 43 | $dot-width: 10px; 44 | $dot-height: 10px; 45 | 46 | // 显示角标时,角标大小和字体大小 47 | $badge-size : 18px; 48 | $badge-font : 12px; 49 | // 显示角标时,角标前景色 50 | $badge-color : #fff; 51 | // 显示角标时,角标背景色 52 | $badge-background-color : #ff5a5f; 53 | // 显示角标时,角标左右间距 54 | $badge-space : 6px; 55 | 56 | // 状态样式 57 | // 选中颜色 58 | $hover : #f5f5f5; 59 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-list/components/uni-list/uni-refresh.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | 59 | 60 | 66 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-load-more/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.3.3(2022-01-20) 2 | - 新增 showText属性 ,是否显示文本 3 | ## 1.3.2(2022-01-19) 4 | - 修复 nvue 平台下不显示文本的bug 5 | ## 1.3.1(2022-01-19) 6 | - 修复 微信小程序平台样式选择器报警告的问题 7 | ## 1.3.0(2021-11-19) 8 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 9 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-load-more](https://uniapp.dcloud.io/component/uniui/uni-load-more) 10 | ## 1.2.1(2021-08-24) 11 | - 新增 支持国际化 12 | ## 1.2.0(2021-07-30) 13 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 14 | ## 1.1.8(2021-05-12) 15 | - 新增 组件示例地址 16 | ## 1.1.7(2021-03-30) 17 | - 修复 uni-load-more 在首页使用时,h5 平台报 'uni is not defined' 的 bug 18 | ## 1.1.6(2021-02-05) 19 | - 调整为uni_modules目录规范 20 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-load-more.contentdown": "Pull up to show more", 3 | "uni-load-more.contentrefresh": "loading...", 4 | "uni-load-more.contentnomore": "No more data" 5 | } 6 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js: -------------------------------------------------------------------------------- 1 | import en from './en.json' 2 | import zhHans from './zh-Hans.json' 3 | import zhHant from './zh-Hant.json' 4 | export default { 5 | en, 6 | 'zh-Hans': zhHans, 7 | 'zh-Hant': zhHant 8 | } 9 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-load-more.contentdown": "上拉显示更多", 3 | "uni-load-more.contentrefresh": "正在加载...", 4 | "uni-load-more.contentnomore": "没有更多数据了" 5 | } 6 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-load-more.contentdown": "上拉顯示更多", 3 | "uni-load-more.contentrefresh": "正在加載...", 4 | "uni-load-more.contentnomore": "沒有更多數據了" 5 | } 6 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-load-more/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ### LoadMore 加载更多 4 | > **组件名:uni-load-more** 5 | > 代码块: `uLoadMore` 6 | 7 | 8 | 用于列表中,做滚动加载使用,展示 loading 的各种状态。 9 | 10 | 11 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-load-more) 12 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 13 | 14 | 15 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-nav-bar/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.3.5(2022-05-24) 2 | - 新增 stat 属性 ,可开启统计title 上报 ,仅使用了title 属性且项目开启了uni统计生效 3 | ## 1.3.4(2022-01-24) 4 | - 更新 组件示例 5 | ## 1.3.3(2022-01-24) 6 | - 新增 left-width/right-width属性 ,可修改左右两侧的宽度 7 | ## 1.3.2(2022-01-18) 8 | - 修复 在vue下,标题不垂直居中的bug 9 | ## 1.3.1(2022-01-18) 10 | - 修复 height 属性类型错误 11 | ## 1.3.0(2022-01-18) 12 | - 新增 height 属性,可修改组件高度 13 | - 新增 dark 属性可可开启暗黑模式 14 | - 优化 标题字数过多显示省略号 15 | - 优化 插槽,插入内容可完全覆盖 16 | ## 1.2.1(2022-01-10) 17 | - 修复 color 属性不生效的bug 18 | ## 1.2.0(2021-11-19) 19 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 20 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-nav-bar](https://uniapp.dcloud.io/component/uniui/uni-nav-bar) 21 | ## 1.1.0(2021-07-30) 22 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 23 | ## 1.0.11(2021-05-12) 24 | - 新增 组件示例地址 25 | ## 1.0.10(2021-04-30) 26 | - 修复 在nvue下fixed为true,宽度不能撑满的Bug 27 | ## 1.0.9(2021-04-21) 28 | - 优化 添加依赖 uni-icons, 导入后自动下载依赖 29 | ## 1.0.8(2021-04-14) 30 | - uni-ui 修复 uni-nav-bar 当 fixed 属性为 true 时铺不满屏幕的 bug 31 | 32 | ## 1.0.7(2021-02-25) 33 | - 修复 easycom 下,找不到 uni-status-bar 的bug 34 | 35 | ## 1.0.6(2021-02-05) 36 | - 优化 组件引用关系,通过uni_modules引用组件 37 | 38 | ## 1.0.5(2021-02-05) 39 | - 调整为uni_modules目录规范 40 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-status-bar.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 20 | 21 | 28 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-nav-bar/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## NavBar 导航栏 4 | > **组件名:uni-nav-bar** 5 | > 代码块: `uNavBar` 6 | 7 | 导航栏组件,主要用于头部导航。 8 | 9 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-nav-bar) 10 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-notice-bar/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.0(2021-11-19) 2 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 3 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-notice-bar](https://uniapp.dcloud.io/component/uniui/uni-notice-bar) 4 | ## 1.1.1(2021-11-09) 5 | - 新增 提供组件设计资源,组件样式调整 6 | ## 1.1.0(2021-07-30) 7 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 8 | ## 1.0.9(2021-05-12) 9 | - 新增 组件示例地址 10 | ## 1.0.8(2021-04-21) 11 | - 优化 添加依赖 uni-icons, 导入后自动下载依赖 12 | ## 1.0.7(2021-02-05) 13 | - 优化 组件引用关系,通过uni_modules引用组件 14 | 15 | ## 1.0.6(2021-02-05) 16 | - 调整为uni_modules目录规范 17 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-notice-bar/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## NoticeBar 通告栏 4 | > **组件名:uni-notice-bar** 5 | > 代码块: `uNoticeBar` 6 | 7 | 8 | 通告栏组件 。 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-notice-bar) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 12 | 13 | 14 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-number-box/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.1(2021-11-22) 2 | - 修复 vue3中某些scss变量无法找到的问题 3 | ## 1.2.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-number-box](https://uniapp.dcloud.io/component/uniui/uni-number-box) 6 | ## 1.1.2(2021-11-09) 7 | - 新增 提供组件设计资源,组件样式调整 8 | ## 1.1.1(2021-07-30) 9 | - 优化 vue3下事件警告的问题 10 | ## 1.1.0(2021-07-13) 11 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 12 | ## 1.0.7(2021-05-12) 13 | - 新增 组件示例地址 14 | ## 1.0.6(2021-04-20) 15 | - 修复 uni-number-box 浮点数运算不精确的 bug 16 | - 修复 uni-number-box change 事件触发不正确的 bug 17 | - 新增 uni-number-box v-model 双向绑定 18 | ## 1.0.5(2021-02-05) 19 | - 调整为uni_modules目录规范 20 | 21 | ## 1.0.7(2021-02-05) 22 | - 调整为uni_modules目录规范 23 | - 新增 支持 v-model 24 | - 新增 支持 focus、blur 事件 25 | - 新增 支持 PC 端 26 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-number-box/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## NumberBox 数字输入框 4 | > **组件名:uni-number-box** 5 | > 代码块: `uNumberBox` 6 | 7 | 8 | 带加减按钮的数字输入框。 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-number-box) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 12 | 13 | 14 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-pagination/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.1(2021-11-22) 2 | - 修复 vue3中某些scss变量无法找到的问题 3 | ## 1.2.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-pagination](https://uniapp.dcloud.io/component/uniui/uni-pagination) 6 | ## 1.1.2(2021-10-08) 7 | - 修复 current 、value 属性未监听,导致高亮样式失效的 bug 8 | ## 1.1.1(2021-08-20) 9 | - 新增 支持国际化 10 | ## 1.1.0(2021-07-30) 11 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 12 | ## 1.0.7(2021-05-12) 13 | - 新增 组件示例地址 14 | ## 1.0.6(2021-04-12) 15 | - 新增 PC 和 移动端适配不同的 ui 16 | ## 1.0.5(2021-02-05) 17 | - 优化 组件引用关系,通过uni_modules引用组件 18 | 19 | ## 1.0.4(2021-02-05) 20 | - 调整为uni_modules目录规范 21 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-pagination/components/uni-pagination/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-pagination.prevText": "prev", 3 | "uni-pagination.nextText": "next" 4 | } 5 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-pagination/components/uni-pagination/i18n/es.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-pagination.prevText": "anterior", 3 | "uni-pagination.nextText": "próxima" 4 | } 5 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-pagination/components/uni-pagination/i18n/fr.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-pagination.prevText": "précédente", 3 | "uni-pagination.nextText": "suivante" 4 | } 5 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-pagination/components/uni-pagination/i18n/index.js: -------------------------------------------------------------------------------- 1 | import en from './en.json' 2 | import es from './es.json' 3 | import fr from './fr.json' 4 | import zhHans from './zh-Hans.json' 5 | import zhHant from './zh-Hant.json' 6 | export default { 7 | en, 8 | es, 9 | fr, 10 | 'zh-Hans': zhHans, 11 | 'zh-Hant': zhHant 12 | } 13 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-pagination/components/uni-pagination/i18n/zh-Hans.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-pagination.prevText": "上一页", 3 | "uni-pagination.nextText": "下一页" 4 | } 5 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-pagination/components/uni-pagination/i18n/zh-Hant.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-pagination.prevText": "上一頁", 3 | "uni-pagination.nextText": "下一頁" 4 | } 5 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-pagination/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Pagination 分页器 4 | > **组件名:uni-pagination** 5 | > 代码块: `uPagination` 6 | 7 | 8 | 分页器组件,用于展示页码、请求数据等。 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-pagination) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 12 | 13 | 14 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-popup/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.7.9(2022-04-02) 2 | - 修复 弹出层内部无法滚动的bug 3 | ## 1.7.8(2022-03-28) 4 | - 修复 小程序中高度错误的bug 5 | ## 1.7.7(2022-03-17) 6 | - 修复 快速调用open出现问题的Bug 7 | ## 1.7.6(2022-02-14) 8 | - 修复 safeArea 属性不能设置为false的bug 9 | ## 1.7.5(2022-01-19) 10 | - 修复 isMaskClick 失效的bug 11 | ## 1.7.4(2022-01-19) 12 | - 新增 cancelText \ confirmText 属性 ,可自定义文本 13 | - 新增 maskBackgroundColor 属性 ,可以修改蒙版颜色 14 | - 优化 maskClick属性 更新为 isMaskClick ,解决微信小程序警告的问题 15 | ## 1.7.3(2022-01-13) 16 | - 修复 设置 safeArea 属性不生效的bug 17 | ## 1.7.2(2021-11-26) 18 | - 优化 组件示例 19 | ## 1.7.1(2021-11-26) 20 | - 修复 vuedoc 文字错误 21 | ## 1.7.0(2021-11-19) 22 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 23 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-popup](https://uniapp.dcloud.io/component/uniui/uni-popup) 24 | ## 1.6.2(2021-08-24) 25 | - 新增 支持国际化 26 | ## 1.6.1(2021-07-30) 27 | - 优化 vue3下事件警告的问题 28 | ## 1.6.0(2021-07-13) 29 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 30 | ## 1.5.0(2021-06-23) 31 | - 新增 mask-click 遮罩层点击事件 32 | ## 1.4.5(2021-06-22) 33 | - 修复 nvue 平台中间弹出后,点击内容,再点击遮罩无法关闭的Bug 34 | ## 1.4.4(2021-06-18) 35 | - 修复 H5平台中间弹出后,点击内容,再点击遮罩无法关闭的Bug 36 | ## 1.4.3(2021-06-08) 37 | - 修复 错误的 watch 字段 38 | - 修复 safeArea 属性不生效的问题 39 | - 修复 点击内容,再点击遮罩无法关闭的Bug 40 | ## 1.4.2(2021-05-12) 41 | - 新增 组件示例地址 42 | ## 1.4.1(2021-04-29) 43 | - 修复 组件内放置 input 、textarea 组件,无法聚焦的问题 44 | ## 1.4.0 (2021-04-29) 45 | - 新增 type 属性的 left\right 值,支持左右弹出 46 | - 新增 open(String:type) 方法参数 ,可以省略 type 属性 ,直接传入类型打开指定弹窗 47 | - 新增 backgroundColor 属性,可定义主窗口背景色,默认不显示背景色 48 | - 新增 safeArea 属性,是否适配底部安全区 49 | - 修复 App\h5\微信小程序底部安全区占位不对的Bug 50 | - 修复 App 端弹出等待的Bug 51 | - 优化 提升低配设备性能,优化动画卡顿问题 52 | - 优化 更简单的组件自定义方式 53 | ## 1.2.9(2021-02-05) 54 | - 优化 组件引用关系,通过uni_modules引用组件 55 | ## 1.2.8(2021-02-05) 56 | - 调整为uni_modules目录规范 57 | ## 1.2.7(2021-02-05) 58 | - 调整为uni_modules目录规范 59 | - 新增 支持 PC 端 60 | - 新增 uni-popup-message 、uni-popup-dialog扩展组件支持 PC 端 61 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-popup/components/uni-popup-dialog/keypress.js: -------------------------------------------------------------------------------- 1 | // #ifdef H5 2 | export default { 3 | name: 'Keypress', 4 | props: { 5 | disable: { 6 | type: Boolean, 7 | default: false 8 | } 9 | }, 10 | mounted () { 11 | const keyNames = { 12 | esc: ['Esc', 'Escape'], 13 | tab: 'Tab', 14 | enter: 'Enter', 15 | space: [' ', 'Spacebar'], 16 | up: ['Up', 'ArrowUp'], 17 | left: ['Left', 'ArrowLeft'], 18 | right: ['Right', 'ArrowRight'], 19 | down: ['Down', 'ArrowDown'], 20 | delete: ['Backspace', 'Delete', 'Del'] 21 | } 22 | const listener = ($event) => { 23 | if (this.disable) { 24 | return 25 | } 26 | const keyName = Object.keys(keyNames).find(key => { 27 | const keyName = $event.key 28 | const value = keyNames[key] 29 | return value === keyName || (Array.isArray(value) && value.includes(keyName)) 30 | }) 31 | if (keyName) { 32 | // 避免和其他按键事件冲突 33 | setTimeout(() => { 34 | this.$emit(keyName, {}) 35 | }, 0) 36 | } 37 | } 38 | document.addEventListener('keyup', listener) 39 | this.$once('hook:beforeDestroy', () => { 40 | document.removeEventListener('keyup', listener) 41 | }) 42 | }, 43 | render: () => {} 44 | } 45 | // #endif 46 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-popup/components/uni-popup/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-popup.cancel": "cancel", 3 | "uni-popup.ok": "ok", 4 | "uni-popup.placeholder": "pleace enter", 5 | "uni-popup.title": "Hint", 6 | "uni-popup.shareTitle": "Share to" 7 | } 8 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-popup/components/uni-popup/i18n/index.js: -------------------------------------------------------------------------------- 1 | import en from './en.json' 2 | import zhHans from './zh-Hans.json' 3 | import zhHant from './zh-Hant.json' 4 | export default { 5 | en, 6 | 'zh-Hans': zhHans, 7 | 'zh-Hant': zhHant 8 | } 9 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hans.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-popup.cancel": "取消", 3 | "uni-popup.ok": "确定", 4 | "uni-popup.placeholder": "请输入", 5 | "uni-popup.title": "提示", 6 | "uni-popup.shareTitle": "分享到" 7 | } 8 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hant.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-popup.cancel": "取消", 3 | "uni-popup.ok": "確定", 4 | "uni-popup.placeholder": "請輸入", 5 | "uni-popup.title": "提示", 6 | "uni-popup.shareTitle": "分享到" 7 | } 8 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-popup/components/uni-popup/keypress.js: -------------------------------------------------------------------------------- 1 | // #ifdef H5 2 | export default { 3 | name: 'Keypress', 4 | props: { 5 | disable: { 6 | type: Boolean, 7 | default: false 8 | } 9 | }, 10 | mounted () { 11 | const keyNames = { 12 | esc: ['Esc', 'Escape'], 13 | tab: 'Tab', 14 | enter: 'Enter', 15 | space: [' ', 'Spacebar'], 16 | up: ['Up', 'ArrowUp'], 17 | left: ['Left', 'ArrowLeft'], 18 | right: ['Right', 'ArrowRight'], 19 | down: ['Down', 'ArrowDown'], 20 | delete: ['Backspace', 'Delete', 'Del'] 21 | } 22 | const listener = ($event) => { 23 | if (this.disable) { 24 | return 25 | } 26 | const keyName = Object.keys(keyNames).find(key => { 27 | const keyName = $event.key 28 | const value = keyNames[key] 29 | return value === keyName || (Array.isArray(value) && value.includes(keyName)) 30 | }) 31 | if (keyName) { 32 | // 避免和其他按键事件冲突 33 | setTimeout(() => { 34 | this.$emit(keyName, {}) 35 | }, 0) 36 | } 37 | } 38 | document.addEventListener('keyup', listener) 39 | // this.$once('hook:beforeDestroy', () => { 40 | // document.removeEventListener('keyup', listener) 41 | // }) 42 | }, 43 | render: () => {} 44 | } 45 | // #endif 46 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-popup/components/uni-popup/popup.js: -------------------------------------------------------------------------------- 1 | 2 | export default { 3 | data() { 4 | return { 5 | 6 | } 7 | }, 8 | created(){ 9 | this.popup = this.getParent() 10 | }, 11 | methods:{ 12 | /** 13 | * 获取父元素实例 14 | */ 15 | getParent(name = 'uniPopup') { 16 | let parent = this.$parent; 17 | let parentName = parent.$options.name; 18 | while (parentName !== name) { 19 | parent = parent.$parent; 20 | if (!parent) return false 21 | parentName = parent.$options.name; 22 | } 23 | return parent; 24 | }, 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-popup/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-popup", 3 | "displayName": "uni-popup 弹出层", 4 | "version": "1.7.9", 5 | "description": " Popup 组件,提供常用的弹层", 6 | "keywords": [ 7 | "uni-ui", 8 | "弹出层", 9 | "弹窗", 10 | "popup", 11 | "弹框" 12 | ], 13 | "repository": "https://github.com/dcloudio/uni-ui", 14 | "engines": { 15 | "HBuilderX": "" 16 | }, 17 | "directories": { 18 | "example": "../../temps/example_temps" 19 | }, 20 | "dcloudext": { 21 | "category": [ 22 | "前端组件", 23 | "通用组件" 24 | ], 25 | "sale": { 26 | "regular": { 27 | "price": "0.00" 28 | }, 29 | "sourcecode": { 30 | "price": "0.00" 31 | } 32 | }, 33 | "contact": { 34 | "qq": "" 35 | }, 36 | "declaration": { 37 | "ads": "无", 38 | "data": "无", 39 | "permissions": "无" 40 | }, 41 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 42 | }, 43 | "uni_modules": { 44 | "dependencies": [ 45 | "uni-scss", 46 | "uni-transition" 47 | ], 48 | "encrypt": [], 49 | "platforms": { 50 | "cloud": { 51 | "tcb": "y", 52 | "aliyun": "y" 53 | }, 54 | "client": { 55 | "App": { 56 | "app-vue": "y", 57 | "app-nvue": "y" 58 | }, 59 | "H5-mobile": { 60 | "Safari": "y", 61 | "Android Browser": "y", 62 | "微信浏览器(Android)": "y", 63 | "QQ浏览器(Android)": "y" 64 | }, 65 | "H5-pc": { 66 | "Chrome": "y", 67 | "IE": "y", 68 | "Edge": "y", 69 | "Firefox": "y", 70 | "Safari": "y" 71 | }, 72 | "小程序": { 73 | "微信": "y", 74 | "阿里": "y", 75 | "百度": "y", 76 | "字节跳动": "y", 77 | "QQ": "y" 78 | }, 79 | "快应用": { 80 | "华为": "u", 81 | "联盟": "u" 82 | }, 83 | "Vue": { 84 | "vue2": "y", 85 | "vue3": "y" 86 | } 87 | } 88 | } 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-popup/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Popup 弹出层 4 | > **组件名:uni-popup** 5 | > 代码块: `uPopup` 6 | > 关联组件:`uni-transition` 7 | 8 | 9 | 弹出层组件,在应用中弹出一个消息提示窗口、提示框等 10 | 11 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-popup) 12 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-rate/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.3.1(2022-02-25) 2 | - 修复 条件判断 `NaN` 错误的 bug 3 | ## 1.3.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-rate](https://uniapp.dcloud.io/component/uniui/uni-rate) 6 | ## 1.2.2(2021-09-10) 7 | - 优化 默认值修改为 0 颗星 8 | ## 1.2.1(2021-07-30) 9 | - 优化 vue3下事件警告的问题 10 | ## 1.2.0(2021-07-13) 11 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 12 | ## 1.1.2(2021-05-12) 13 | - 新增 组件示例地址 14 | ## 1.1.1(2021-04-21) 15 | - 修复 布局变化后 uni-rate 星星计算不准确的 bug 16 | - 优化 添加依赖 uni-icons, 导入 uni-rate 自动下载依赖 17 | ## 1.1.0(2021-04-16) 18 | - 修复 uni-rate 属性 margin 值为 string 组件失效的 bug 19 | 20 | ## 1.0.9(2021-02-05) 21 | - 优化 组件引用关系,通过uni_modules引用组件 22 | 23 | ## 1.0.8(2021-02-05) 24 | - 调整为uni_modules目录规范 25 | - 支持 pc 端 26 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-rate/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Rate 评分 4 | > **组件名:uni-rate** 5 | > 代码块: `uRate` 6 | > 关联组件:`uni-icons` 7 | 8 | 9 | 评分组件,多用于购买商品后,对商品进行评价等场景 10 | 11 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-rate) 12 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-row/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.0(2021-11-19) 2 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 3 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-row](https://uniapp.dcloud.io/component/uniui/uni-row) 4 | ## 0.1.0(2021-07-13) 5 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 6 | ## 0.0.4(2021-05-12) 7 | - 新增 组件示例地址 8 | ## 0.0.3(2021-02-05) 9 | - 调整为uni_modules目录规范 10 | - 新增uni-row组件 11 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-row/readme.md: -------------------------------------------------------------------------------- 1 | ## Layout 布局 2 | 3 | > **组件名 uni-row、uni-col** 4 | > 代码块: `uRow`、`uCol` 5 | 6 | 7 | 流式栅格系统,随着屏幕或视口分为 24 份,可以迅速简便地创建布局。 8 | 9 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-row) 10 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-scss/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.3(2022-01-21) 2 | - 优化 组件示例 3 | ## 1.0.2(2021-11-22) 4 | - 修复 / 符号在 vue 不同版本兼容问题引起的报错问题 5 | ## 1.0.1(2021-11-22) 6 | - 修复 vue3中scss语法兼容问题 7 | ## 1.0.0(2021-11-18) 8 | - init 9 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-scss/index.scss: -------------------------------------------------------------------------------- 1 | @import './styles/index.scss'; 2 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-scss/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-scss", 3 | "displayName": "uni-scss 辅助样式", 4 | "version": "1.0.3", 5 | "description": "uni-sass是uni-ui提供的一套全局样式 ,通过一些简单的类名和sass变量,实现简单的页面布局操作,比如颜色、边距、圆角等。", 6 | "keywords": [ 7 | "uni-scss", 8 | "uni-ui", 9 | "辅助样式" 10 | ], 11 | "repository": "https://github.com/dcloudio/uni-ui", 12 | "engines": { 13 | "HBuilderX": "^3.1.0" 14 | }, 15 | "dcloudext": { 16 | "category": [ 17 | "JS SDK", 18 | "通用 SDK" 19 | ], 20 | "sale": { 21 | "regular": { 22 | "price": "0.00" 23 | }, 24 | "sourcecode": { 25 | "price": "0.00" 26 | } 27 | }, 28 | "contact": { 29 | "qq": "" 30 | }, 31 | "declaration": { 32 | "ads": "无", 33 | "data": "无", 34 | "permissions": "无" 35 | }, 36 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 37 | }, 38 | "uni_modules": { 39 | "dependencies": [], 40 | "encrypt": [], 41 | "platforms": { 42 | "cloud": { 43 | "tcb": "y", 44 | "aliyun": "y" 45 | }, 46 | "client": { 47 | "App": { 48 | "app-vue": "y", 49 | "app-nvue": "u" 50 | }, 51 | "H5-mobile": { 52 | "Safari": "y", 53 | "Android Browser": "y", 54 | "微信浏览器(Android)": "y", 55 | "QQ浏览器(Android)": "y" 56 | }, 57 | "H5-pc": { 58 | "Chrome": "y", 59 | "IE": "y", 60 | "Edge": "y", 61 | "Firefox": "y", 62 | "Safari": "y" 63 | }, 64 | "小程序": { 65 | "微信": "y", 66 | "阿里": "y", 67 | "百度": "y", 68 | "字节跳动": "y", 69 | "QQ": "y" 70 | }, 71 | "快应用": { 72 | "华为": "n", 73 | "联盟": "n" 74 | }, 75 | "Vue": { 76 | "vue2": "y", 77 | "vue3": "y" 78 | } 79 | } 80 | } 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-scss/readme.md: -------------------------------------------------------------------------------- 1 | `uni-sass` 是 `uni-ui`提供的一套全局样式 ,通过一些简单的类名和`sass`变量,实现简单的页面布局操作,比如颜色、边距、圆角等。 2 | 3 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-sass) 4 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-scss/styles/index.scss: -------------------------------------------------------------------------------- 1 | @import './setting/_variables.scss'; 2 | @import './setting/_border.scss'; 3 | @import './setting/_color.scss'; 4 | @import './setting/_space.scss'; 5 | @import './setting/_radius.scss'; 6 | @import './setting/_text.scss'; 7 | @import './setting/_styles.scss'; 8 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-scss/styles/setting/_border.scss: -------------------------------------------------------------------------------- 1 | .uni-border { 2 | border: 1px $uni-border-1 solid; 3 | } -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-scss/styles/setting/_color.scss: -------------------------------------------------------------------------------- 1 | 2 | // TODO 暂时不需要 class ,需要用户使用变量实现 ,如果使用类名其实并不推荐 3 | // @mixin get-styles($k,$c) { 4 | // @if $k == size or $k == weight{ 5 | // font-#{$k}:#{$c} 6 | // }@else{ 7 | // #{$k}:#{$c} 8 | // } 9 | // } 10 | $uni-ui-color:( 11 | // 主色 12 | primary: $uni-primary, 13 | primary-disable: $uni-primary-disable, 14 | primary-light: $uni-primary-light, 15 | // 辅助色 16 | success: $uni-success, 17 | success-disable: $uni-success-disable, 18 | success-light: $uni-success-light, 19 | warning: $uni-warning, 20 | warning-disable: $uni-warning-disable, 21 | warning-light: $uni-warning-light, 22 | error: $uni-error, 23 | error-disable: $uni-error-disable, 24 | error-light: $uni-error-light, 25 | info: $uni-info, 26 | info-disable: $uni-info-disable, 27 | info-light: $uni-info-light, 28 | // 中性色 29 | main-color: $uni-main-color, 30 | base-color: $uni-base-color, 31 | secondary-color: $uni-secondary-color, 32 | extra-color: $uni-extra-color, 33 | // 背景色 34 | bg-color: $uni-bg-color, 35 | // 边框颜色 36 | border-1: $uni-border-1, 37 | border-2: $uni-border-2, 38 | border-3: $uni-border-3, 39 | border-4: $uni-border-4, 40 | // 黑色 41 | black:$uni-black, 42 | // 白色 43 | white:$uni-white, 44 | // 透明 45 | transparent:$uni-transparent 46 | ) !default; 47 | @each $key, $child in $uni-ui-color { 48 | .uni-#{"" + $key} { 49 | color: $child; 50 | } 51 | .uni-#{"" + $key}-bg { 52 | background-color: $child; 53 | } 54 | } 55 | .uni-shadow-sm { 56 | box-shadow: $uni-shadow-sm; 57 | } 58 | .uni-shadow-base { 59 | box-shadow: $uni-shadow-base; 60 | } 61 | .uni-shadow-lg { 62 | box-shadow: $uni-shadow-lg; 63 | } 64 | .uni-mask { 65 | background-color:$uni-mask; 66 | } 67 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-scss/styles/setting/_radius.scss: -------------------------------------------------------------------------------- 1 | @mixin radius($r,$d:null ,$important: false){ 2 | $radius-value:map-get($uni-radius, $r) if($important, !important, null); 3 | // Key exists within the $uni-radius variable 4 | @if (map-has-key($uni-radius, $r) and $d){ 5 | @if $d == t { 6 | border-top-left-radius:$radius-value; 7 | border-top-right-radius:$radius-value; 8 | }@else if $d == r { 9 | border-top-right-radius:$radius-value; 10 | border-bottom-right-radius:$radius-value; 11 | }@else if $d == b { 12 | border-bottom-left-radius:$radius-value; 13 | border-bottom-right-radius:$radius-value; 14 | }@else if $d == l { 15 | border-top-left-radius:$radius-value; 16 | border-bottom-left-radius:$radius-value; 17 | }@else if $d == tl { 18 | border-top-left-radius:$radius-value; 19 | }@else if $d == tr { 20 | border-top-right-radius:$radius-value; 21 | }@else if $d == br { 22 | border-bottom-right-radius:$radius-value; 23 | }@else if $d == bl { 24 | border-bottom-left-radius:$radius-value; 25 | } 26 | }@else{ 27 | border-radius:$radius-value; 28 | } 29 | } 30 | 31 | @each $key, $child in $uni-radius { 32 | @if($key){ 33 | .uni-radius-#{"" + $key} { 34 | @include radius($key) 35 | } 36 | }@else{ 37 | .uni-radius { 38 | @include radius($key) 39 | } 40 | } 41 | } 42 | 43 | @each $direction in t, r, b, l,tl, tr, br, bl { 44 | @each $key, $child in $uni-radius { 45 | @if($key){ 46 | .uni-radius-#{"" + $direction}-#{"" + $key} { 47 | @include radius($key,$direction,false) 48 | } 49 | }@else{ 50 | .uni-radius-#{$direction} { 51 | @include radius($key,$direction,false) 52 | } 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-scss/styles/setting/_space.scss: -------------------------------------------------------------------------------- 1 | 2 | @mixin fn($space,$direction,$size,$n) { 3 | @if $n { 4 | #{$space}-#{$direction}: #{$size*$uni-space-root}px 5 | } @else { 6 | #{$space}-#{$direction}: #{-$size*$uni-space-root}px 7 | } 8 | } 9 | @mixin get-styles($direction,$i,$space,$n){ 10 | @if $direction == t { 11 | @include fn($space, top,$i,$n); 12 | } 13 | @if $direction == r { 14 | @include fn($space, right,$i,$n); 15 | } 16 | @if $direction == b { 17 | @include fn($space, bottom,$i,$n); 18 | } 19 | @if $direction == l { 20 | @include fn($space, left,$i,$n); 21 | } 22 | @if $direction == x { 23 | @include fn($space, left,$i,$n); 24 | @include fn($space, right,$i,$n); 25 | } 26 | @if $direction == y { 27 | @include fn($space, top,$i,$n); 28 | @include fn($space, bottom,$i,$n); 29 | } 30 | @if $direction == a { 31 | @if $n { 32 | #{$space}:#{$i*$uni-space-root}px; 33 | } @else { 34 | #{$space}:#{-$i*$uni-space-root}px; 35 | } 36 | } 37 | } 38 | 39 | @each $orientation in m,p { 40 | $space: margin; 41 | @if $orientation == m { 42 | $space: margin; 43 | } @else { 44 | $space: padding; 45 | } 46 | @for $i from 0 through 16 { 47 | @each $direction in t, r, b, l, x, y, a { 48 | .uni-#{$orientation}#{$direction}-#{$i} { 49 | @include get-styles($direction,$i,$space,true); 50 | } 51 | .uni-#{$orientation}#{$direction}-n#{$i} { 52 | @include get-styles($direction,$i,$space,false); 53 | } 54 | } 55 | } 56 | } -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-scss/styles/setting/_text.scss: -------------------------------------------------------------------------------- 1 | @mixin get-styles($k,$c) { 2 | @if $k == size or $k == weight{ 3 | font-#{$k}:#{$c} 4 | }@else{ 5 | #{$k}:#{$c} 6 | } 7 | } 8 | 9 | @each $key, $child in $uni-headings { 10 | /* #ifndef APP-NVUE */ 11 | .uni-#{$key} { 12 | @each $k, $c in $child { 13 | @include get-styles($k,$c) 14 | } 15 | } 16 | /* #endif */ 17 | /* #ifdef APP-NVUE */ 18 | .container .uni-#{$key} { 19 | @each $k, $c in $child { 20 | @include get-styles($k,$c) 21 | } 22 | } 23 | /* #endif */ 24 | } 25 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-scss/styles/tools/functions.scss: -------------------------------------------------------------------------------- 1 | // 合并 map 2 | @function map-deep-merge($parent-map, $child-map){ 3 | $result: $parent-map; 4 | @each $key, $child in $child-map { 5 | $parent-has-key: map-has-key($result, $key); 6 | $parent-value: map-get($result, $key); 7 | $parent-type: type-of($parent-value); 8 | $child-type: type-of($child); 9 | $parent-is-map: $parent-type == map; 10 | $child-is-map: $child-type == map; 11 | 12 | @if (not $parent-has-key) or ($parent-type != $child-type) or (not ($parent-is-map and $child-is-map)){ 13 | $result: map-merge($result, ( $key: $child )); 14 | }@else { 15 | $result: map-merge($result, ( $key: map-deep-merge($parent-value, $child) )); 16 | } 17 | } 18 | @return $result; 19 | }; 20 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-scss/theme.scss: -------------------------------------------------------------------------------- 1 | // 间距基础倍数 2 | $uni-space-root: 2; 3 | // 边框半径默认值 4 | $uni-radius-root:5px; 5 | // 主色 6 | $uni-primary: #2979ff; 7 | // 辅助色 8 | $uni-success: #4cd964; 9 | // 警告色 10 | $uni-warning: #f0ad4e; 11 | // 错误色 12 | $uni-error: #dd524d; 13 | // 描述色 14 | $uni-info: #909399; 15 | // 中性色 16 | $uni-main-color: #303133; 17 | $uni-base-color: #606266; 18 | $uni-secondary-color: #909399; 19 | $uni-extra-color: #C0C4CC; 20 | // 背景色 21 | $uni-bg-color: #f5f5f5; 22 | // 边框颜色 23 | $uni-border-1: #DCDFE6; 24 | $uni-border-2: #E4E7ED; 25 | $uni-border-3: #EBEEF5; 26 | $uni-border-4: #F2F6FC; 27 | 28 | // 常规色 29 | $uni-black: #000000; 30 | $uni-white: #ffffff; 31 | $uni-transparent: rgba($color: #000000, $alpha: 0); 32 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-scss/variables.scss: -------------------------------------------------------------------------------- 1 | @import './styles/setting/_variables.scss'; 2 | // 间距基础倍数 3 | $uni-space-root: 2; 4 | // 边框半径默认值 5 | $uni-radius-root:5px; 6 | 7 | // 主色 8 | $uni-primary: #2979ff; 9 | $uni-primary-disable:mix(#fff,$uni-primary,50%); 10 | $uni-primary-light: mix(#fff,$uni-primary,80%); 11 | 12 | // 辅助色 13 | // 除了主色外的场景色,需要在不同的场景中使用(例如危险色表示危险的操作)。 14 | $uni-success: #18bc37; 15 | $uni-success-disable:mix(#fff,$uni-success,50%); 16 | $uni-success-light: mix(#fff,$uni-success,80%); 17 | 18 | $uni-warning: #f3a73f; 19 | $uni-warning-disable:mix(#fff,$uni-warning,50%); 20 | $uni-warning-light: mix(#fff,$uni-warning,80%); 21 | 22 | $uni-error: #e43d33; 23 | $uni-error-disable:mix(#fff,$uni-error,50%); 24 | $uni-error-light: mix(#fff,$uni-error,80%); 25 | 26 | $uni-info: #8f939c; 27 | $uni-info-disable:mix(#fff,$uni-info,50%); 28 | $uni-info-light: mix(#fff,$uni-info,80%); 29 | 30 | // 中性色 31 | // 中性色用于文本、背景和边框颜色。通过运用不同的中性色,来表现层次结构。 32 | $uni-main-color: #3a3a3a; // 主要文字 33 | $uni-base-color: #6a6a6a; // 常规文字 34 | $uni-secondary-color: #909399; // 次要文字 35 | $uni-extra-color: #c7c7c7; // 辅助说明 36 | 37 | // 边框颜色 38 | $uni-border-1: #F0F0F0; 39 | $uni-border-2: #EDEDED; 40 | $uni-border-3: #DCDCDC; 41 | $uni-border-4: #B9B9B9; 42 | 43 | // 常规色 44 | $uni-black: #000000; 45 | $uni-white: #ffffff; 46 | $uni-transparent: rgba($color: #000000, $alpha: 0); 47 | 48 | // 背景色 49 | $uni-bg-color: #f7f7f7; 50 | 51 | /* 水平间距 */ 52 | $uni-spacing-sm: 8px; 53 | $uni-spacing-base: 15px; 54 | $uni-spacing-lg: 30px; 55 | 56 | // 阴影 57 | $uni-shadow-sm:0 0 5px rgba($color: #d8d8d8, $alpha: 0.5); 58 | $uni-shadow-base:0 1px 8px 1px rgba($color: #a5a5a5, $alpha: 0.2); 59 | $uni-shadow-lg:0px 1px 10px 2px rgba($color: #a5a4a4, $alpha: 0.5); 60 | 61 | // 蒙版 62 | $uni-mask: rgba($color: #000000, $alpha: 0.4); 63 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-search-bar/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.3(2022-05-24) 2 | - 新增 readonly 属性,组件只读 3 | ## 1.2.2(2022-05-06) 4 | - 修复 vue3 input 事件不生效的bug 5 | ## 1.2.1(2022-05-06) 6 | - 修复 多余代码导致的bug 7 | ## 1.2.0(2021-11-19) 8 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 9 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-search-bar](https://uniapp.dcloud.io/component/uniui/uni-search-bar) 10 | ## 1.1.2(2021-08-30) 11 | - 修复 value 属性与 modelValue 属性不兼容的Bug 12 | ## 1.1.1(2021-08-24) 13 | - 新增 支持国际化 14 | ## 1.1.0(2021-07-30) 15 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 16 | ## 1.0.9(2021-05-12) 17 | - 新增 项目示例地址 18 | ## 1.0.8(2021-04-21) 19 | - 优化 添加依赖 uni-icons, 导入后自动下载依赖 20 | ## 1.0.7(2021-04-15) 21 | - uni-ui 新增 uni-search-bar 的 focus 事件 22 | 23 | ## 1.0.6(2021-02-05) 24 | - 优化 组件引用关系,通过uni_modules引用组件 25 | 26 | ## 1.0.5(2021-02-05) 27 | - 调整为uni_modules目录规范 28 | - 新增 支持双向绑定 29 | - 更改 input 事件的返回值,e={value:Number} --> e=value 30 | - 新增 支持图标插槽 31 | - 新增 支持 clear、blur 事件 32 | - 新增 支持 focus 属性 33 | - 去掉组件背景色 34 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-search-bar/components/uni-search-bar/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-search-bar.cancel": "cancel", 3 | "uni-search-bar.placeholder": "Search enter content" 4 | } -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-search-bar/components/uni-search-bar/i18n/index.js: -------------------------------------------------------------------------------- 1 | import en from './en.json' 2 | import zhHans from './zh-Hans.json' 3 | import zhHant from './zh-Hant.json' 4 | export default { 5 | en, 6 | 'zh-Hans': zhHans, 7 | 'zh-Hant': zhHant 8 | } 9 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hans.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-search-bar.cancel": "cancel", 3 | "uni-search-bar.placeholder": "请输入搜索内容" 4 | } 5 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hant.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-search-bar.cancel": "cancel", 3 | "uni-search-bar.placeholder": "請輸入搜索內容" 4 | } 5 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-search-bar/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## SearchBar 搜索栏 4 | 5 | > **组件名:uni-search-bar** 6 | > 代码块: `uSearchBar` 7 | 8 | 9 | 搜索栏组件 10 | 11 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-search-bar) 12 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 13 | 14 | 15 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-segmented-control/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.0(2021-11-19) 2 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 3 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-segmented-control](https://uniapp.dcloud.io/component/uniui/uni-segmented-control) 4 | ## 1.1.0(2021-07-30) 5 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 6 | ## 1.0.5(2021-05-12) 7 | - 新增 项目示例地址 8 | ## 1.0.4(2021-02-05) 9 | - 调整为uni_modules目录规范 10 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-segmented-control/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## SegmentedControl 分段器 4 | > **组件名:uni-segmented-control** 5 | > 代码块: `uSegmentedControl` 6 | 7 | 8 | 用作不同视图的显示 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-segmented-control) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 12 | 13 | 14 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-steps/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.1.1(2021-11-22) 2 | - 修复 vue3中某些scss变量无法找到的问题 3 | ## 1.1.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-steps](https://uniapp.dcloud.io/component/uniui/uni-steps) 6 | ## 1.0.8(2021-05-12) 7 | - 新增 项目示例地址 8 | ## 1.0.7(2021-05-06) 9 | - 修复 uni-steps 横向布局时,多行文字高度不合理的 bug 10 | ## 1.0.6(2021-04-21) 11 | - 优化 添加依赖 uni-icons, 导入后自动下载依赖 12 | ## 1.0.5(2021-02-05) 13 | - 优化 组件引用关系,通过uni_modules引用组件 14 | 15 | ## 1.0.4(2021-02-05) 16 | - 调整为uni_modules目录规范 17 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-steps/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Steps 步骤条 4 | > **组件名:uni-steps** 5 | > 代码块: `uSteps` 6 | 7 | 8 | 步骤条,常用于显示进度 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-steps) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 12 | 13 | 14 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-swipe-action/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.3.7(2022-06-06) 2 | - 修复 vue3 下使用组件不能正常运行的Bug 3 | ## 1.3.6(2022-05-31) 4 | - 修复 h5端点击click触发两次的Bug 5 | ## 1.3.5(2022-05-23) 6 | - 修复 isPC 找不到的Bug 7 | ## 1.3.4(2022-05-19) 8 | - 修复 在 nvue 下 disabled 失效的bug 9 | ## 1.3.3(2022-03-31) 10 | - 修复 按钮字体大小不能设置的bug 11 | ## 1.3.2(2022-03-16) 12 | - 修复 h5和app端下报el错误的bug 13 | ## 1.3.1(2022-03-07) 14 | - 修复 HBuilderX 1.4.X 版本中,h5和app端下报错的bug 15 | ## 1.3.0(2021-11-19) 16 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 17 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-swipe-action](https://uniapp.dcloud.io/component/uniui/uni-swipe-action) 18 | ## 1.2.4(2021-08-20) 19 | - 优化 close-all 方法 20 | ## 1.2.3(2021-08-20) 21 | - 新增 close-all 方法,关闭所有已打开的组件 22 | ## 1.2.2(2021-08-17) 23 | - 新增 resize() 方法,在非微信小程序、h5、app-vue端出现不能滑动的问题的时候,重置组件 24 | - 修复 app 端偶尔出现类似 Page[x][-x,xx;-x,xx,x,x-x] 的问题 25 | - 优化 微信小程序、h5、app-vue 滑动逻辑,避免出现动态新增组件后不能滑动的问题 26 | ## 1.2.1(2021-07-30) 27 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 28 | - 修复 跨页面修改组件数据 ,导致不能滑动的问题 29 | ## 1.1.10(2021-06-17) 30 | - 修复 按钮点击执行两次的bug 31 | ## 1.1.9(2021-05-12) 32 | - 新增 项目示例地址 33 | ## 1.1.8(2021-03-26) 34 | - 修复 微信小程序 nv_navigator is not defined 报错的bug 35 | ## 1.1.7(2021-02-05) 36 | - 调整为uni_modules目录规范 37 | - 新增 左侧滑动 38 | - 新增 插槽使用方式 39 | - 新增 threshold 属性,可以控制滑动缺省值 40 | - 优化 长列表滚动性能 41 | - 修复 滚动页面时触发组件滑动的Bug 42 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-swipe-action/components/uni-swipe-action-item/isPC.js: -------------------------------------------------------------------------------- 1 | export function isPC() { 2 | var userAgentInfo = navigator.userAgent; 3 | var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"]; 4 | var flag = true; 5 | for (let v = 0; v < Agents.length - 1; v++) { 6 | if (userAgentInfo.indexOf(Agents[v]) > 0) { 7 | flag = false; 8 | break; 9 | } 10 | } 11 | return flag; 12 | } 13 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpwxs.js: -------------------------------------------------------------------------------- 1 | let mpMixins = {} 2 | let is_pc = null 3 | // #ifdef H5 4 | import { 5 | isPC 6 | } from "./isPC" 7 | is_pc = isPC() 8 | // #endif 9 | // #ifdef APP-VUE|| MP-WEIXIN || H5 10 | 11 | mpMixins = { 12 | data() { 13 | return { 14 | is_show: 'none' 15 | } 16 | }, 17 | watch: { 18 | show(newVal) { 19 | this.is_show = this.show 20 | } 21 | }, 22 | created() { 23 | this.swipeaction = this.getSwipeAction() 24 | if (this.swipeaction.children !== undefined) { 25 | this.swipeaction.children.push(this) 26 | } 27 | }, 28 | mounted() { 29 | this.is_show = this.show 30 | }, 31 | methods: { 32 | // wxs 中调用 33 | closeSwipe(e) { 34 | if (!this.autoClose) return 35 | this.swipeaction.closeOther(this) 36 | }, 37 | 38 | change(e) { 39 | this.$emit('change', e.open) 40 | if (this.is_show !== e.open) { 41 | this.is_show = e.open 42 | } 43 | }, 44 | 45 | appTouchStart(e) { 46 | if (is_pc) return 47 | const { 48 | clientX 49 | } = e.changedTouches[0] 50 | this.clientX = clientX 51 | this.timestamp = new Date().getTime() 52 | }, 53 | appTouchEnd(e, index, item, position) { 54 | if (is_pc) return 55 | const { 56 | clientX 57 | } = e.changedTouches[0] 58 | // fixed by xxxx 模拟点击事件,解决 ios 13 点击区域错位的问题 59 | let diff = Math.abs(this.clientX - clientX) 60 | let time = (new Date().getTime()) - this.timestamp 61 | if (diff < 40 && time < 300) { 62 | this.$emit('click', { 63 | content: item, 64 | index, 65 | position 66 | }) 67 | } 68 | }, 69 | onClickForPC(index, item, position) { 70 | if (!is_pc) return 71 | // #ifdef H5 72 | this.$emit('click', { 73 | content: item, 74 | index, 75 | position 76 | }) 77 | // #endif 78 | } 79 | } 80 | } 81 | 82 | // #endif 83 | export default mpMixins 84 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-swipe-action/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-swipe-action", 3 | "displayName": "uni-swipe-action 滑动操作", 4 | "version": "1.3.7", 5 | "description": "SwipeAction 滑动操作操作组件", 6 | "keywords": [ 7 | "", 8 | "uni-ui", 9 | "uniui", 10 | "滑动删除", 11 | "侧滑删除" 12 | ], 13 | "repository": "https://github.com/dcloudio/uni-ui", 14 | "engines": { 15 | "HBuilderX": "" 16 | }, 17 | "directories": { 18 | "example": "../../temps/example_temps" 19 | }, 20 | "dcloudext": { 21 | "category": [ 22 | "前端组件", 23 | "通用组件" 24 | ], 25 | "sale": { 26 | "regular": { 27 | "price": "0.00" 28 | }, 29 | "sourcecode": { 30 | "price": "0.00" 31 | } 32 | }, 33 | "contact": { 34 | "qq": "" 35 | }, 36 | "declaration": { 37 | "ads": "无", 38 | "data": "无", 39 | "permissions": "无" 40 | }, 41 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 42 | }, 43 | "uni_modules": { 44 | "dependencies": ["uni-scss"], 45 | "encrypt": [], 46 | "platforms": { 47 | "cloud": { 48 | "tcb": "y", 49 | "aliyun": "y" 50 | }, 51 | "client": { 52 | "App": { 53 | "app-vue": "y", 54 | "app-nvue": "y" 55 | }, 56 | "H5-mobile": { 57 | "Safari": "y", 58 | "Android Browser": "y", 59 | "微信浏览器(Android)": "y", 60 | "QQ浏览器(Android)": "y" 61 | }, 62 | "H5-pc": { 63 | "Chrome": "y", 64 | "IE": "y", 65 | "Edge": "y", 66 | "Firefox": "y", 67 | "Safari": "y" 68 | }, 69 | "小程序": { 70 | "微信": "y", 71 | "阿里": "y", 72 | "百度": "y", 73 | "字节跳动": "y", 74 | "QQ": "y" 75 | }, 76 | "快应用": { 77 | "华为": "y", 78 | "联盟": "u" 79 | }, 80 | "Vue": { 81 | "vue2": "y", 82 | "vue3": "y" 83 | } 84 | } 85 | } 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-swipe-action/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## SwipeAction 滑动操作 4 | > **组件名:uni-swipe-action** 5 | > 代码块: `uSwipeAction`、`uSwipeActionItem` 6 | 7 | 8 | 通过滑动触发选项的容器 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-swipe-action) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-swiper-dot/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.0(2021-11-19) 2 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 3 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-swiper-dot](https://uniapp.dcloud.io/component/uniui/uni-swiper-dot) 4 | ## 1.1.0(2021-07-30) 5 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 6 | ## 1.0.6(2021-05-12) 7 | - 新增 示例地址 8 | - 修复 示例项目缺少组件的Bug 9 | ## 1.0.5(2021-02-05) 10 | - 调整为uni_modules目录规范 11 | - 新增 clickItem 事件,支持指示点控制轮播 12 | - 新增 支持 pc 可用 13 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-swiper-dot/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## SwiperDot 轮播图指示点 4 | > **组件名:uni-swiper-dot** 5 | > 代码块: `uSwiperDot` 6 | 7 | 8 | 自定义轮播图指示点 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-swiper-dot) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-table/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.1(2022-06-06) 2 | - 修复 微信小程序存在无使用组件的问题 3 | ## 1.2.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-table](https://uniapp.dcloud.io/component/uniui/uni-table) 6 | ## 1.1.0(2021-07-30) 7 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 8 | ## 1.0.7(2021-07-08) 9 | - 新增 uni-th 支持 date 日期筛选范围 10 | ## 1.0.6(2021-07-05) 11 | - 新增 uni-th 支持 range 筛选范围 12 | ## 1.0.5(2021-06-28) 13 | - 新增 uni-th 筛选功能 14 | ## 1.0.4(2021-05-12) 15 | - 新增 示例地址 16 | - 修复 示例项目缺少组件的Bug 17 | ## 1.0.3(2021-04-16) 18 | - 新增 sortable 属性,是否开启单列排序 19 | - 优化 表格多选逻辑 20 | ## 1.0.2(2021-03-22) 21 | - uni-tr 添加 disabled 属性,用于 type=selection 时,设置某行是否可由全选按钮控制 22 | ## 1.0.1(2021-02-05) 23 | - 调整为uni_modules目录规范 24 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-table/components/uni-tbody/uni-tbody.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | 27 | 28 | 30 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-table/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "filter-dropdown.reset": "Reset", 3 | "filter-dropdown.search": "Search", 4 | "filter-dropdown.submit": "Submit", 5 | "filter-dropdown.filter": "Filter", 6 | "filter-dropdown.gt": "Greater or equal to", 7 | "filter-dropdown.lt": "Less than or equal to", 8 | "filter-dropdown.date": "Date" 9 | } 10 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-table/i18n/es.json: -------------------------------------------------------------------------------- 1 | { 2 | "filter-dropdown.reset": "Reiniciar", 3 | "filter-dropdown.search": "Búsqueda", 4 | "filter-dropdown.submit": "Entregar", 5 | "filter-dropdown.filter": "Filtrar", 6 | "filter-dropdown.gt": "Mayor o igual a", 7 | "filter-dropdown.lt": "Menos que o igual a", 8 | "filter-dropdown.date": "Fecha" 9 | } 10 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-table/i18n/fr.json: -------------------------------------------------------------------------------- 1 | { 2 | "filter-dropdown.reset": "Réinitialiser", 3 | "filter-dropdown.search": "Chercher", 4 | "filter-dropdown.submit": "Soumettre", 5 | "filter-dropdown.filter": "Filtre", 6 | "filter-dropdown.gt": "Supérieur ou égal à", 7 | "filter-dropdown.lt": "Inférieur ou égal à", 8 | "filter-dropdown.date": "Date" 9 | } 10 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-table/i18n/index.js: -------------------------------------------------------------------------------- 1 | import en from './en.json' 2 | import es from './es.json' 3 | import fr from './fr.json' 4 | import zhHans from './zh-Hans.json' 5 | import zhHant from './zh-Hant.json' 6 | export default { 7 | en, 8 | es, 9 | fr, 10 | 'zh-Hans': zhHans, 11 | 'zh-Hant': zhHant 12 | } 13 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-table/i18n/zh-Hans.json: -------------------------------------------------------------------------------- 1 | { 2 | "filter-dropdown.reset": "重置", 3 | "filter-dropdown.search": "搜索", 4 | "filter-dropdown.submit": "确定", 5 | "filter-dropdown.filter": "筛选", 6 | "filter-dropdown.gt": "大于等于", 7 | "filter-dropdown.lt": "小于等于", 8 | "filter-dropdown.date": "日期范围" 9 | } 10 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-table/i18n/zh-Hant.json: -------------------------------------------------------------------------------- 1 | { 2 | "filter-dropdown.reset": "重置", 3 | "filter-dropdown.search": "搜索", 4 | "filter-dropdown.submit": "確定", 5 | "filter-dropdown.filter": "篩選", 6 | "filter-dropdown.gt": "大於等於", 7 | "filter-dropdown.lt": "小於等於", 8 | "filter-dropdown.date": "日期範圍" 9 | } 10 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-table/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Table 表单 4 | > 组件名:``uni-table``,代码块: `uTable`。 5 | 6 | 用于展示多条结构类似的数据 7 | 8 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-table) 9 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-tag/changelog.md: -------------------------------------------------------------------------------- 1 | ## 2.1.0(2021-11-19) 2 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 3 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-tag](https://uniapp.dcloud.io/component/uniui/uni-tag) 4 | ## 2.0.0(2021-11-09) 5 | - 新增 提供组件设计资源,组件样式调整 6 | - 移除 插槽 7 | - 移除 type 属性的 royal 选项 8 | ## 1.1.1(2021-08-11) 9 | - type 不是 default 时,size 为 small 字体大小显示不正确 10 | ## 1.1.0(2021-07-30) 11 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 12 | ## 1.0.7(2021-06-18) 13 | - 修复 uni-tag 在字节跳动小程序上 css 类名编译错误的 bug 14 | ## 1.0.6(2021-06-04) 15 | - 修复 未定义 sass 变量 "$uni-color-royal" 的bug 16 | ## 1.0.5(2021-05-10) 17 | - 修复 royal 类型无效的bug 18 | - 修复 uni-tag 宽度不自适应的bug 19 | - 新增 uni-tag 支持属性 custom-style 自定义样式 20 | ## 1.0.4(2021-02-05) 21 | - 调整为uni_modules目录规范 22 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-tag/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Tag 标签 4 | > **组件名:uni-tag** 5 | > 代码块: `uTag` 6 | 7 | 8 | 用于展示1个或多个文字标签,可点击切换选中、不选中的状态 。 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-tag) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 12 | 13 | 14 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-title/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.1.1(2022-05-19) 2 | - 修改组件描述 3 | ## 1.1.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-title](https://uniapp.dcloud.io/component/uniui/uni-title) 6 | ## 1.0.2(2021-05-12) 7 | - 新增 示例地址 8 | - 修复 示例项目缺少组件的Bug 9 | ## 1.0.1(2021-02-05) 10 | - 调整为uni_modules目录规范 11 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-title/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Title 标题 4 | > **组件名:uni-title** 5 | > 代码块: `uTitle` 6 | 7 | 8 | 章节标题,通常用于记录页面标题,使用当前组件,uni-app 如果开启统计,将会自动统计页面标题 。 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-title) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-transition/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.3.1(2021-11-23) 2 | - 修复 init 方法初始化问题 3 | ## 1.3.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-transition](https://uniapp.dcloud.io/component/uniui/uni-transition) 6 | ## 1.2.1(2021-09-27) 7 | - 修复 init 方法不生效的 Bug 8 | ## 1.2.0(2021-07-30) 9 | - 组件兼容 vue3,如何创建 vue3 项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 10 | ## 1.1.1(2021-05-12) 11 | - 新增 示例地址 12 | - 修复 示例项目缺少组件的 Bug 13 | ## 1.1.0(2021-04-22) 14 | - 新增 通过方法自定义动画 15 | - 新增 custom-class 非 NVUE 平台支持自定义 class 定制样式 16 | - 优化 动画触发逻辑,使动画更流畅 17 | - 优化 支持单独的动画类型 18 | - 优化 文档示例 19 | ## 1.0.2(2021-02-05) 20 | - 调整为 uni_modules 目录规范 21 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-transition/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Transition 过渡动画 4 | > **组件名:uni-transition** 5 | > 代码块: `uTransition` 6 | 7 | 8 | 元素过渡动画 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-transition) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/uni_modules/uni-ui/components/uni-ui/uni-ui.vue: -------------------------------------------------------------------------------- 1 | 4 | 6 | 8 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/utils/common.js: -------------------------------------------------------------------------------- 1 | function randomNumber(min, max) { 2 | return Math.floor(Math.random() * (max - min)) + min 3 | } 4 | function randomString() { 5 | return Math.random().toString(36) 6 | .slice(-6) 7 | } 8 | const getUserAvatarImage = index => `/static/images/avatar${index}_100.png` 9 | 10 | const getStaticImage = fileName => `/static/images/${fileName}.png` 11 | 12 | 13 | export { 14 | randomNumber, 15 | randomString, 16 | getUserAvatarImage, 17 | getStaticImage, 18 | } 19 | -------------------------------------------------------------------------------- /TRTCSimpleDemoUniApp/utils/const.js: -------------------------------------------------------------------------------- 1 | export const defaultAvatar = '/static/images/avatar0_100.png' 2 | export const getUserAvatarPrefix = index => `/static/images/avatar${index}_100.png` 3 | 4 | --------------------------------------------------------------------------------