Browse Source

添加限制

lex 1 year ago
parent
commit
8fc81847c4

+ 9 - 2
src/student/music-group/layout/login.tsx

@@ -47,7 +47,14 @@ export default defineComponent({
         '1656488025144713217',
         '1661221287237820418',
         '1661222465069686785',
-        '1714545500178460674'
+        '1714545500178460674',
+        '1715022312206573570',
+        '1715045889000656897',
+        '1715030463675944961',
+        '1715034224138985474',
+        '1715036209671098370',
+        '1715042256419889153',
+        '1715013540700561409'
       ]
     }
   },
@@ -93,7 +100,7 @@ export default defineComponent({
 
         if (!data.canSignUp) {
           this.showPopup = true
-          this.showPopupMessage = '学校已关闭'
+          this.showPopupMessage = '乐团报名时间已过,请等待通知'
         }
       } catch {
         //

+ 8 - 1
src/student/music-group/pre-apply/index.tsx

@@ -37,7 +37,14 @@ export default defineComponent({
       '1656488025144713217',
       '1661221287237820418',
       '1661222465069686785',
-      '1714545500178460674'
+      '1714545500178460674',
+      '1715022312206573570',
+      '1715045889000656897',
+      '1715030463675944961',
+      '1715034224138985474',
+      '1715036209671098370',
+      '1715042256419889153',
+      '1715013540700561409'
     ])
     console.log(
       '提示乐团报名失败',

+ 44 - 0
src/student/pre-register-active/index.module.less

@@ -126,4 +126,48 @@
     margin: 18px auto 0;
     border-radius: 50px;
   }
+}
+
+.wxPopupDialog {
+  // position: relative;
+  overflow: initial;
+  // margin-top: -160px;
+
+  &::before {
+    position: absolute;
+    content: ' ';
+    top: -73px;
+    left: 50%;
+    margin-left: -86px;
+    display: inline-block;
+    background: url('../music-group/pre-apply/images/wx-no-top.png') no-repeat top center;
+    background-size: contain;
+    width: 172px;
+    height: 154px;
+  }
+}
+
+.popupContainer {
+  background: url('../music-group/pre-apply/images/wx-no-bg.png') no-repeat top center;
+  background-size: cover;
+  border-radius: 20px;
+  overflow: hidden;
+  padding: 0 20px;
+
+  .title {
+    padding-top: 57px;
+    text-align: center;
+    font-size: 18px;
+    font-weight: 500;
+    color: #3b2300;
+  }
+
+  .popupTips {
+    padding-top: 12px;
+    padding-bottom: 47px;
+    text-align: center;
+    font-size: 15px;
+    color: #777777;
+    line-height: 21px;
+  }
 }

+ 34 - 1
src/student/pre-register-active/index.tsx

@@ -1,4 +1,4 @@
-import { defineComponent, onMounted, onUnmounted, reactive } from 'vue'
+import { defineComponent, onMounted, onUnmounted, reactive, ref } from 'vue'
 import styles from './index.module.less'
 import signinTips from './images/signin-tips.png'
 import { Button, CellGroup, Field, Picker, Popup, closeToast, showToast } from 'vant'
@@ -52,6 +52,18 @@ export default defineComponent({
       parentConferencesAgenda: ''
     })
 
+    const showPopup = ref(false)
+    const showPopupMessage = ref('')
+    const noPaymentList = [
+      '1715022312206573570',
+      '1715045889000656897',
+      '1715030463675944961',
+      '1715034224138985474',
+      '1715036209671098370',
+      '1715042256419889153',
+      '1715013540700561409'
+    ]
+
     const message = (value: string) => {
       if (!value) {
         return '请填写学生真实姓名'
@@ -189,6 +201,14 @@ export default defineComponent({
           forms.applyStatus = true
           return
         }
+
+        if (forms.orchestraId && noPaymentList.indexOf(forms.orchestraId as string) != -1) {
+          // 提示乐团报名失败
+          showPopupMessage.value = '二维码已过期'
+          showPopup.value = true
+          return
+        }
+
         const recordAdd = await request.post('/api-student/open/studentBrowseRecord/add', {
           data: {
             orchestraId: forms.orchestraId,
@@ -373,6 +393,19 @@ export default defineComponent({
             }}
           />
         </Popup>
+
+        <Popup
+          v-model:show={showPopup.value}
+          round
+          style={{ width: '88%' }}
+          closeOnClickOverlay={false}
+          class={styles.wxPopupDialog}
+        >
+          <div class={styles.popupContainer}>
+            <p class={styles.title}>温馨提示</p>
+            <p class={styles.popupTips} v-html={showPopupMessage.value}></p>
+          </div>
+        </Popup>
       </div>
     )
   }

+ 2 - 2
vite.config.ts

@@ -11,8 +11,8 @@ function resolve(dir: string) {
 }
 // https://vitejs.dev/config/
 // https://github.com/vitejs/vite/issues/1930 .env
-// const proxyUrl = 'https://online.lexiaoya.cn/'
-const proxyUrl = 'https://test.lexiaoya.cn/'
+const proxyUrl = 'https://online.lexiaoya.cn/'
+// const proxyUrl = 'https://test.lexiaoya.cn/'
 // const proxyUrl = 'https://dev.lexiaoya.cn/'
 // const proxyUrl = 'http://47.98.131.38:8989/'
 // const proxyUrl = 'http://192.168.3.20:8989/' // 邹旋