|
@@ -37,7 +37,18 @@
|
|
|
/>
|
|
|
</n-space>
|
|
|
<n-space align="center" justify="center" style="padding: 20px">
|
|
|
- <n-button class="submit" size="large" type="primary">
|
|
|
+ <n-button
|
|
|
+ class="submit"
|
|
|
+ size="large"
|
|
|
+ :disabled="
|
|
|
+ feedBackContent.length === 0 ||
|
|
|
+ nickName.length === 0 ||
|
|
|
+ contact.length === 0 ||
|
|
|
+ verifyCode.length === 0
|
|
|
+ "
|
|
|
+ type="primary"
|
|
|
+ @click="submit"
|
|
|
+ >
|
|
|
提交
|
|
|
</n-button>
|
|
|
</n-space>
|
|
@@ -51,11 +62,13 @@
|
|
|
|
|
|
<script setup>
|
|
|
import { watchEffect, ref } from "vue";
|
|
|
-import { useFullscreen } from "@vueuse/core";
|
|
|
import subHeader from "../components/subHeader";
|
|
|
import sideMenu from "../components/sideMenu";
|
|
|
import heroSubTitle from "../components/heroSubTitle";
|
|
|
import { useInfoStore } from "../store/info";
|
|
|
+import { useRouter } from "vue-router";
|
|
|
+const router = useRouter();
|
|
|
+
|
|
|
const title = ref("detail");
|
|
|
const feedBackContent = ref("");
|
|
|
const nickName = ref("");
|
|
@@ -66,13 +79,22 @@ watchEffect(() => {
|
|
|
});
|
|
|
|
|
|
const submit = () => {
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ //to submit
|
|
|
+ const data = {
|
|
|
+ name: nickName.value,
|
|
|
+ content: feedBackContent.value,
|
|
|
+ contact: contact.value,
|
|
|
+ code: verifyCode.value,
|
|
|
+ };
|
|
|
+ console.log("data", data);
|
|
|
+ router.go(-1);
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+:deep(.n-input) {
|
|
|
+ font-size: 16px;
|
|
|
+}
|
|
|
.detail {
|
|
|
--main-show-case-background: #ddd5d5;
|
|
|
--main-detail-margin: 1.875rem;
|