lex 2 anni fa
parent
commit
87091cb015

+ 1 - 1
public/project/initiation.html

@@ -385,7 +385,7 @@
             this.canSignUp = orchestraDetail.data.data.status
             if (orchestraDetail.data.data.status !== 'INITIATION_SURVEY') {
               vant.showToast('乐团启蒙阶段已结束')
-              // return
+              return
             }
           }
         } catch {

+ 10 - 10
public/project/preRegister.html

@@ -411,16 +411,6 @@
             }
           }
 
-          var orchestraDetail = await axios.get('/api-student/open/orchestra/detail/' + this.orchestraId)
-          if (orchestraDetail.data.code === 200) {
-            this.orchestraName = orchestraDetail.data.data.name || ''
-            this.canSignUp = orchestraDetail.data.data.status
-            if (orchestraDetail.data.data.status !== 'PRE_REGISTER') {
-              vant.showToast('乐团预报名阶段已结束')
-              // return
-            }
-          }
-
           var subjects = await axios.post('/api-student/open/orchestraSubjectConfig/pageByOrchestraId', {
             orchestraId: this.orchestraId,
             page: 1,
@@ -435,6 +425,16 @@
               })
             })
           }
+
+          var orchestraDetail = await axios.get('/api-student/open/orchestra/detail/' + this.orchestraId)
+          if (orchestraDetail.data.code === 200) {
+            this.orchestraName = orchestraDetail.data.data.name || ''
+            this.canSignUp = orchestraDetail.data.data.status
+            if (orchestraDetail.data.data.status !== 'PRE_REGISTER') {
+              vant.showToast('乐团预报名阶段已结束')
+              return
+            }
+          }
         } catch {
           vant.showDialog({
             message: '信息获取失败,请联系老师',

+ 7 - 0
src/views/information/help-center/index.module.less

@@ -23,6 +23,13 @@
       flex-shrink: 0;
     }
 
+    .bgImg {
+      background-color: #eaeaea;
+      background-repeat: no-repeat;
+      background-position: center;
+      background-image: url('../../mine-orchestra/images/icon-photo-default.png');
+    }
+
     .title {
       font-size: 14px;
       font-weight: 500;

+ 11 - 1
src/views/information/index.tsx

@@ -110,7 +110,17 @@ export default defineComponent({
                 }}
               >
                 {{
-                  icon: () => <Image src={item.coverImage} class={styles.img} fit="cover" />,
+                  icon: () => (
+                    <div
+                      class={[styles.img, styles.bgImg]}
+                      style={
+                        item.coverImage
+                          ? { backgroundImage: `url(${item.coverImage})`, backgroundSize: 'cover' }
+                          : ''
+                      }
+                    ></div>
+                  ),
+                  // <Image src={item.coverImage} class={styles.img} fit="cover" />,
                   title: () => (
                     <>
                       <div class={[styles.title, 'van-ellipsis']}>{item.title}</div>