|
@@ -0,0 +1,54 @@
|
|
|
+<template>
|
|
|
+ <div class="mmg">
|
|
|
+ <div class="input-with-select">
|
|
|
+ <el-input size="large" v-model="input2" style="width: 100%" placeholder="请输入关键字">
|
|
|
+ <template #append><div @click="submit">提交</div></template>
|
|
|
+ </el-input>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+<script setup>
|
|
|
+// import { onMounted, reactive } from "vue";
|
|
|
+// import { isIpad, isIpod, isIphone } from "../../utils/isTerminal";
|
|
|
+// console.log(window.$originData);
|
|
|
+/**
|
|
|
+ * window.$originData.orginParames.title 页面标题
|
|
|
+ * window.$originData.orginParames.parameters 固定参数值
|
|
|
+ * window.$originData.urlParames url参数
|
|
|
+ */
|
|
|
+import { submitworld } from '@/api/2023';
|
|
|
+import { ref } from 'vue';
|
|
|
+import { ElInput, ElMessage } from 'element-plus';
|
|
|
+import "element-plus/theme-chalk/base.css";
|
|
|
+import 'element-plus/theme-chalk/el-input.css';
|
|
|
+import 'element-plus/theme-chalk/el-message.css';
|
|
|
+
|
|
|
+const input2 = ref('');
|
|
|
+const submit = () => {
|
|
|
+ if(!input2.value) return ElMessage('请输入关键词')
|
|
|
+ const T = input2.value.replace(/\s+/g, '\n');
|
|
|
+ submitworld({ words: T }).then(r => {
|
|
|
+ ElMessage(r)
|
|
|
+ });
|
|
|
+};
|
|
|
+</script>
|
|
|
+<style lang="scss">
|
|
|
+.mmg {
|
|
|
+ width: 100vw;
|
|
|
+ height: 100vh;
|
|
|
+ padding-top: 30vh;
|
|
|
+
|
|
|
+ .input-with-select {
|
|
|
+ width: 60%;
|
|
|
+ margin: 0 auto;
|
|
|
+ display: block;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-input-group__append {
|
|
|
+ background-color: #0078d4;
|
|
|
+ color: #fff;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|