Browse Source

feat: openid逻辑修改

TIANYONG 4 months ago
parent
commit
4fa86c1d6c

+ 2 - 1
src/views/fill-questionnaire/index.module.less

@@ -12,7 +12,7 @@
   border-radius: 16px;
   border: 4px solid rgba(79,194,230,0.22);
   margin: 0 14px 20px;
-  padding: 15px 16px;
+  padding: 15px 16px 0;
   .formItem {
     margin-bottom: 24px;
     >p {
@@ -92,6 +92,7 @@
     .selectItem {
       display: flex;
       align-items: center;
+      margin-top: 16px;
       >div {
         display: flex;
         align-items: center;

+ 1 - 1
src/views/fill-questionnaire/index.tsx

@@ -653,7 +653,7 @@ export default defineComponent({
         </div>
 
         {/* 是否在微信中打开 */}
-        <OWxTip />
+        {/* <OWxTip /> */}
 
         {forms.imgCodeStatus ? (
           <MImgCode

+ 1 - 0
src/views/intention-questionnaire/index.module.less

@@ -128,6 +128,7 @@
     color: #777777;
     text-align: center;
     i {
+      font-weight: 500;
       color: #FF5A56;
       font-style: normal;
     }

+ 9 - 8
src/views/intention-questionnaire/index.tsx

@@ -35,18 +35,18 @@ export default defineComponent({
     const route = useRoute();
     const forms = reactive({
       loading: true,
-      code: null,
+      code: null as any,
       openId: '' as any,
       isPageHide: false,
       contentA: "<p><span style=\"color: rgb(0, 0, 0);\">一、请所有家长进行</span><span style=\"color: rgb(207, 19, 34);\">签到</span></p><p><span style=\"color: rgb(0, 0, 0);\">二、</span><span style=\"color: rgb(207, 19, 34);\">观看</span><span style=\"color: rgb(0, 0, 0);\">管乐团家长会议</span></p><p><span style=\"color: rgb(0, 0, 0);\"> 1、学校领导讲话(5分钟)</span></p><p><span style=\"color: rgb(0, 0, 0);\"> 2、基金会老师介绍乐团事项(20分钟)</span></p><p><span style=\"color: rgb(0, 0, 0);\"> *乐团组建背景及政策</span></p><p><span style=\"color: rgb(0, 0, 0);\"> *乐团发展规划与乐器知识讲解</span></p><p><span style=\"color: rgb(0, 0, 0);\"> *学校/基金会/家长各方职责与投入</span></p><p><span style=\"color: rgb(0, 0, 0);\"> *入团流程讲解</span></p><p><span style=\"color: rgb(0, 0, 0);\">三、请</span><span style=\"color: rgb(207, 19, 34);\">“有意向”</span><span style=\"color: rgb(0, 0, 0);\">让孩子加入乐团的家长点击</span><span style=\"color: rgb(207, 19, 34);\">“乐团报名”</span><span style=\"color: rgb(0, 0, 0);\">完成信息填报</span></p>", // 第一段
       contentB: "<p><span style=\"color: rgb(0, 0, 0);\">一、请所有家长进行</span><span style=\"color: rgb(207, 19, 34);\">签到</span></p><p><span style=\"color: rgb(0, 0, 0);\">二、</span><span style=\"color: rgb(207, 19, 34);\">观看</span><span style=\"color: rgb(0, 0, 0);\">管乐团家长会议</span></p><p><span style=\"color: rgb(0, 0, 0);\"> 1、学校领导讲话(5分钟)</span></p><p><span style=\"color: rgb(0, 0, 0);\"> 2、基金会老师介绍乐团事项(20分钟)</span></p><p><span style=\"color: rgb(0, 0, 0);\"> *乐团组建背景及政策</span></p><p><span style=\"color: rgb(0, 0, 0);\"> *乐团发展规划与乐器知识讲解</span></p><p><span style=\"color: rgb(0, 0, 0);\"> *学校/基金会/家长各方职责与投入</span></p><p><span style=\"color: rgb(0, 0, 0);\"> *入团流程讲解</span></p><p><span style=\"color: rgb(0, 0, 0);\">三、请</span><span style=\"color: rgb(207, 19, 34);\">“有意向”</span><span style=\"color: rgb(0, 0, 0);\">让孩子加入乐团的家长点击</span><span style=\"color: rgb(207, 19, 34);\">“乐团报名”</span><span style=\"color: rgb(0, 0, 0);\">完成信息填报</span></p>", // 第二段
       contentC: "<p><span style=\"color: rgb(0, 0, 0);\">一、请所有家长进行</span><span style=\"color: rgb(207, 19, 34);\">签到</span></p><p><span style=\"color: rgb(0, 0, 0);\">二、</span><span style=\"color: rgb(207, 19, 34);\">观看</span><span style=\"color: rgb(0, 0, 0);\">管乐团家长会议</span></p><p><span style=\"color: rgb(0, 0, 0);\"> 1、学校领导讲话(5分钟)</span></p><p><span style=\"color: rgb(0, 0, 0);\"> 2、基金会老师介绍乐团事项(20分钟)</span></p><p><span style=\"color: rgb(0, 0, 0);\"> *乐团组建背景及政策</span></p><p><span style=\"color: rgb(0, 0, 0);\"> *乐团发展规划与乐器知识讲解</span></p><p><span style=\"color: rgb(0, 0, 0);\"> *学校/基金会/家长各方职责与投入</span></p><p><span style=\"color: rgb(0, 0, 0);\"> *入团流程讲解</span></p><p><span style=\"color: rgb(0, 0, 0);\">三、请</span><span style=\"color: rgb(207, 19, 34);\">“有意向”</span><span style=\"color: rgb(0, 0, 0);\">让孩子加入乐团的家长点击</span><span style=\"color: rgb(207, 19, 34);\">“乐团报名”</span><span style=\"color: rgb(0, 0, 0);\">完成信息填报</span></p>", // 第三段
       contentD: "",
-      introductionVideo: "https://oss.dayaedu.com/ktyq/02/1739324017357.mp4",
+      introductionVideo: "https://oss.dayaedu.com/ktyq/02/1739345029052.mp4",
       introductionVideoTime: 117,
       coverImg: "https://oss.dayaedu.com/ktyq/02/1739324197269.png",
-      introductionVideo2: "https://oss.dayaedu.com/ktyq/02/1739324017357.mp4",
-      introductionVideoTime2: 117,
+      introductionVideo2: "https://oss.dayaedu.com/ktyq/02/1739345326291.mp4",
+      introductionVideoTime2: 111,
       coverImg2: "https://oss.dayaedu.com/ktyq/02/1739324215341.png",
       player1: null as any,
       player2: null as any,
@@ -70,6 +70,7 @@ export default defineComponent({
 
     onMounted(async () => {
       forms.meetingType = route.query.type || forms.meetingType;
+      forms.code = route.query.code || forms.code;
       nextTick(() => {
         const videoRef: any = document.querySelector('#register-video')
         const videoRef2: any = document.querySelector('#register-video2')
@@ -95,8 +96,8 @@ export default defineComponent({
           forms.contentB = data.contentB || forms.contentB
           forms.contentC = data.contentC || forms.contentC
           forms.contentD = data.contentD || forms.contentD
-          forms.openId = data.openId
-          sessionStorage.setItem('active-open-id', data.openId);
+          forms.openId = data.openId || forms.openId
+          sessionStorage.setItem('active-open-id', forms.openId);
         }
         
       } catch {
@@ -206,11 +207,11 @@ export default defineComponent({
         </div>
 
         {/* 是否在微信中打开 */}
-        <OWxTip />
+        {/* <OWxTip /> */}
 
 
         <div class={styles.bottomBtn}>
-          <p>在您了解上述内容后,<i>请点击下一步进行意见</i></p>
+          <p>在您了解上述内容后,<i>请点击下一步进行意见填写</i></p>
           <img class={styles.nextBtn} src={nextBtn} onClick={nextSkip} />
         </div>
       </div>