{{ i.nickname }}
@@ -33,7 +33,7 @@
import SlideItem from '@/components/slide/SlideItem.vue'
import { onMounted, onUnmounted, reactive, ref } from 'vue'
import bus, { EVENT_KEY } from '@/utils/bus'
-import Utils, { _checkImgUrl } from '@/utils'
+import { _checkImgUrl, _stop, _stopPropagation } from '@/utils'
import SlideList from './SlideList.vue'
import { recommendedVideo } from '@/api/videos'
import { useBaseStore } from '@/store/pinia'
@@ -46,10 +46,6 @@ const props = defineProps({
}
})
-function stop(e) {
- e.stopPropagation()
-}
-
const subTypeRef = ref(null)
const state = reactive({
index: 0,
@@ -61,7 +57,7 @@ const state = reactive({
})
function showSubType(e) {
- Utils.$stopPropagation(e)
+ _stopPropagation(e)
console.log('subTypeRef')
state.subTypeHeight = subTypeRef.value.getBoundingClientRect().height + 'px'
state.subTypeVisible = true
@@ -74,7 +70,7 @@ function pageClick(e) {
if (state.subTypeVisible) {
state.subTypeIsTop = state.subTypeVisible = false
bus.emit(EVENT_KEY.CLOSE_SUB_TYPE)
- Utils.$stopPropagation(e)
+ _stopPropagation(e)
}
}
diff --git a/src/pages/home/slide/SlideList.vue b/src/pages/home/slide/SlideList.vue
index f200c22..45a3393 100644
--- a/src/pages/home/slide/SlideList.vue
+++ b/src/pages/home/slide/SlideList.vue
@@ -103,11 +103,11 @@ async function getData(refresh = false) {
// function dislike() {
// listRef.value.dislike(state.list[1])
// state.list[state.index] = state.list[1]
-// $notice('操作成功,将减少此类视频的推荐')
+// _notice('操作成功,将减少此类视频的推荐')
// }
// function end() {
-// // this.$notice('暂时没有更多了')
+// // _notice('暂时没有更多了')
// }
function click(uniqueId) {
diff --git a/src/pages/login/OtherLogin.vue b/src/pages/login/OtherLogin.vue
index 5976349..7e36605 100644
--- a/src/pages/login/OtherLogin.vue
+++ b/src/pages/login/OtherLogin.vue
@@ -113,7 +113,7 @@ export default {
if (res) {
this.loading = true
setTimeout(() => {
- this.$nav('/login/verification-code')
+ this.$router.push('/login/verification-code')
}, 2000)
}
},
diff --git a/src/pages/login/RetrievePassword.vue b/src/pages/login/RetrievePassword.vue
index 6738c40..03d814d 100644
--- a/src/pages/login/RetrievePassword.vue
+++ b/src/pages/login/RetrievePassword.vue
@@ -69,6 +69,7 @@ import Check from '../../components/Check'
import LoginInput from './components/LoginInput'
import Tooltip from './components/Tooltip'
import Base from './Base'
+import { _hideLoading, _showConfirmDialog, _showLoading, _showNoticeDialog, _sleep } from '@/utils'
export default {
name: 'RetrievePassword',
@@ -100,13 +101,13 @@ export default {
},
methods: {
getVoiceCode() {
- return this.$showNoticeDialog(
+ return _showNoticeDialog(
'语音验证码',
'我们将以电话的方式告知你验证码,请注意接听',
'',
() => {
setTimeout(() => {
- this.$showConfirmDialog(
+ _showConfirmDialog(
'',
'您的手机可能由于空号/欠费/停机无法收到验证码,请恢复手机号状态,如果' +
'您因为换号无法收到验证码,可以尝试找回账号',
@@ -124,9 +125,9 @@ export default {
},
//TODO loading样式不对
async sendCode() {
- this.$showLoading()
- await this.$sleep(500)
- this.$hideLoading()
+ _showLoading()
+ await _sleep(500)
+ _hideLoading()
this.isSendVerificationCode = true
},
async login() {
diff --git a/src/pages/me/Me.less b/src/pages/me/Me.less
index d5bc981..d63255c 100644
--- a/src/pages/me/Me.less
+++ b/src/pages/me/Me.less
@@ -190,7 +190,8 @@
.poster {
border-radius: 4rem;
width: 100%;
- height: calc((100% - 34rem) / 3);
+ height: 130rem;
+ max-height: calc((100vw - 34rem) / 3);
display: block;
}
diff --git a/src/pages/me/Me.vue b/src/pages/me/Me.vue
index 5874e13..4486795 100644
--- a/src/pages/me/Me.vue
+++ b/src/pages/me/Me.vue
@@ -223,7 +223,7 @@
:key="j"
v-for="(i, j) in videos.collect.music.list.slice(0, 3)"
>
-
![]()
+
{{ i.name }}