diff --git a/package.json b/package.json index 8f1d24e7..683d09eb 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "@form-create/designer": "^3.1.0", "@form-create/element-ui": "^3.1.17", "@iconify/iconify": "^3.1.0", + "@videojs-player/vue": "^1.0.0", "@vueuse/core": "^9.13.0", "@wangeditor/editor": "^5.1.23", "@wangeditor/editor-for-vue": "^5.1.10", @@ -58,6 +59,7 @@ "qs": "^6.11.1", "steady-xml": "^0.1.0", "url": "^0.11.0", + "video.js": "^8.0.4", "vue": "3.2.47", "vue-i18n": "9.2.2", "vue-router": "^4.1.6", diff --git a/src/assets/imgs/profile.jpg b/src/assets/imgs/profile.jpg new file mode 100644 index 00000000..e4bcf879 Binary files /dev/null and b/src/assets/imgs/profile.jpg differ diff --git a/src/assets/imgs/wechat.png b/src/assets/imgs/wechat.png new file mode 100644 index 00000000..6afc5e41 Binary files /dev/null and b/src/assets/imgs/wechat.png differ diff --git a/src/views/mp/components/wx-material-select/main.vue b/src/views/mp/components/wx-material-select/main.vue new file mode 100644 index 00000000..26b747e2 --- /dev/null +++ b/src/views/mp/components/wx-material-select/main.vue @@ -0,0 +1,302 @@ + + + + + + diff --git a/src/views/mp/components/wx-msg/main.vue b/src/views/mp/components/wx-msg/main.vue index b514a73e..215b4f97 100644 --- a/src/views/mp/components/wx-msg/main.vue +++ b/src/views/mp/components/wx-msg/main.vue @@ -6,7 +6,7 @@ ② 代码优化,补充注释,提升阅读性 --> - --> +.select-item { + width: 280px; + padding: 10px; + margin: 0 auto 10px auto; + border: 1px solid #eaeaea; +} + +.select-item2 { + padding: 10px; + margin: 0 auto 10px auto; + border: 1px solid #eaeaea; +} + +.ope-row { + padding-top: 10px; + text-align: center; +} + +.input-margin-bottom { + margin-bottom: 2%; +} + +.item-name { + font-size: 12px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + text-align: center; +} + +.el-form-item__content { + line-height: unset !important; +} + +.col-select { + border: 1px solid rgb(234, 234, 234); + padding: 50px 0px; + height: 160px; + width: 49.5%; +} + +.col-select2 { + border: 1px solid rgb(234, 234, 234); + padding: 50px 0px; + height: 160px; +} + +.col-add { + border: 1px solid rgb(234, 234, 234); + padding: 50px 0px; + height: 160px; + width: 49.5%; + float: right; +} + +.avatar-uploader-icon { + border: 1px solid #d9d9d9; + font-size: 28px; + color: #8c939d; + width: 100px !important; + height: 100px !important; + line-height: 100px !important; + text-align: center; +} + +.material-img { + width: 100%; +} + +.thumb-div { + display: inline-block; + text-align: center; +} + +.item-infos { + width: 30%; + margin: auto; +} + diff --git a/src/views/mp/components/wx-video-play/main.vue b/src/views/mp/components/wx-video-play/main.vue index 880d10f8..7dc4347c 100644 --- a/src/views/mp/components/wx-video-play/main.vue +++ b/src/views/mp/components/wx-video-play/main.vue @@ -8,110 +8,78 @@ 存在的问题:mediaId 有效期是 3 天,超过时间后无法播放 2)重构后的做法:后端接收到微信公众号的视频消息后,将视频消息的 media_id 的文件内容保存到文件服务器中,这样前端可以直接使用 URL 播放。 ② 体验优化:弹窗关闭后,自动暂停视频的播放 + --> - diff --git a/src/views/mp/components/wx-voice-play/main.vue b/src/views/mp/components/wx-voice-play/main.vue index 3260fc05..9ec8e2e9 100644 --- a/src/views/mp/components/wx-voice-play/main.vue +++ b/src/views/mp/components/wx-voice-play/main.vue @@ -25,6 +25,7 @@