WXL (wul)
2 天以前 5df476ae693d7577c7a0031ae12c67558b9832a7
src/views/SatisfactionRelay.vue
@@ -20,10 +20,10 @@
</template>
<script>
import { scanGenerateSubtask } from '@/api/AiCentre/index';
import { scanGenerateSubtask } from "@/api/AiCentre/index";
export default {
  name: 'RelayPage',
  name: "RelayPage",
  created() {
    this.handleRedirect();
  },
@@ -31,27 +31,32 @@
    handleRedirect() {
      const { taskid, deptcode, leaveldeptcodes } = this.$route.query;
      if (!taskid) {
        this.$message.error('缺少任务标识,请重新扫码');
        this.$message.error("缺少任务标识,请重新扫码");
        return;
      }
      const params = {
        taskid: taskid,
        deptcode: deptcode ,
        leaveldeptcodes: leaveldeptcodes
        deptcode: deptcode,
        leaveldeptcodes: leaveldeptcodes,
      };
      scanGenerateSubtask(params).then(res => {
        return
        if (res.code === 200 ) {
          window.location.href = res.msg;
        } else {
          this.$message.error('获取问卷链接失败:' + (res.msg || '未知错误'));
        }
      }).catch(err => {
        console.error(err);
        this.$message.error('服务异常,请稍后重试');
      });
    }
  }
      scanGenerateSubtask(params)
        .then((res) => {
          console.log(res,'初始');
          if (res.code == 200) {
            console.log(res.msg);
            window.location.href = res.msg;
            console.log("window后");
          } else {
            this.$message.error("获取问卷链接失败:" + (res.msg || "未知错误"));
          }
        })
        .catch((err) => {
          console.error(err);
          this.$message.error("服务异常,请稍后重试");
        });
    },
  },
};
</script>
@@ -65,7 +70,8 @@
  margin: 0;
  padding: 20px;
  background: linear-gradient(145deg, #f5f9ff 0%, #e8f0fe 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}
/* 卡片容器 */
@@ -78,7 +84,7 @@
  -webkit-backdrop-filter: blur(10px);
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(64, 158, 255, 0.15),
              0 8px 20px rgba(0, 0, 0, 0.04);
    0 8px 20px rgba(0, 0, 0, 0.04);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
@@ -95,14 +101,14 @@
.spinner-dot {
  width: 14px;
  height: 14px;
  background: #409EFF;
  background: #409eff;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}
.spinner-dot:nth-child(1) {
  animation-delay: -0.32s;
  background: #409EFF;
  background: #409eff;
}
.spinner-dot:nth-child(2) {
@@ -116,7 +122,9 @@
}
@keyframes bounce {
  0%, 80%, 100% {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
@@ -156,14 +164,20 @@
.progress-fill {
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, #409EFF, #79bbff);
  background: linear-gradient(90deg, #409eff, #79bbff);
  border-radius: 4px;
  animation: progressMove 1.8s ease-in-out infinite alternate;
}
@keyframes progressMove {
  0% { transform: translateX(-10%); width: 40%; }
  100% { transform: translateX(10%); width: 80%; }
  0% {
    transform: translateX(-10%);
    width: 40%;
  }
  100% {
    transform: translateX(10%);
    width: 80%;
  }
}
/* 移动端适配 */