Forráskód Böngészése

Merge branch 'paino_change' into dev

lex 3 éve
szülő
commit
8c0f79ee13

+ 6 - 1
src/views/member-center/index.tsx

@@ -3,7 +3,7 @@ import { Button, Cell, Icon, Image, Popup, Toast } from 'vant'
 import { defineComponent } from 'vue'
 import styles from './index.module.less'
 import request from '@/helpers/request'
-import { state } from '@/state'
+import { setLogin, state } from '@/state'
 import iconStudent from '@common/images/icon_student.png'
 import iconTeacher from '@common/images/icon_teacher.png'
 import iconGift from './images/icon_gift.png'
@@ -65,6 +65,11 @@ export default defineComponent({
   },
   async mounted() {
     try {
+      const userInfo = await request.get('/api-student/student/queryUserInfo', {
+        initRequest: true // 初始化接口
+      })
+      setLogin(userInfo.data)
+
       const res = await request.post(
         `${this.apiSuffix}/memberPriceSettings/vipPermissions`
       )

+ 1 - 0
src/views/music/album-detail/index.tsx

@@ -37,6 +37,7 @@ export default defineComponent({
     const router = useRouter()
     const params = reactive({
       search: '',
+      relatedNum: 6, //相关专辑数
       page: 1,
       rows: 200
     })

+ 2 - 1
src/views/music/component/song/index.module.less

@@ -1,5 +1,5 @@
 .theSong {
-  padding: 0 10px;
+  padding-left: 10px;
   background-color: #fff;
   border-radius: 8px;
   box-shadow: 0px 2px 10px 0px rgba(229, 229, 229, 0.1);
@@ -99,6 +99,7 @@
   justify-content: center;
   width: 28px;
   height: 28px;
+  // padding-right: 10px;
 }
 
 .collection {