|
@@ -0,0 +1,137 @@
|
|
|
+import { css } from "@linaria/core";
|
|
|
+
|
|
|
+import { Button, Select } from "ant-design-vue";
|
|
|
+import { SearchOutlined } from "@ant-design/icons-vue";
|
|
|
+import { defineComponent, reactive } from "vue";
|
|
|
+import { any } from "vue-types";
|
|
|
+
|
|
|
+export default defineComponent({
|
|
|
+ props: {
|
|
|
+ record: any().isRequired,
|
|
|
+ },
|
|
|
+ setup(props, { slots }) {
|
|
|
+ // if (location.host == "www.infish.cn") {
|
|
|
+ // shareLink =
|
|
|
+ // location.origin +
|
|
|
+ // "/projects/queenshowv1/share.html?id=" +
|
|
|
+ // props.record._id;
|
|
|
+ // }
|
|
|
+
|
|
|
+ const state = reactive({
|
|
|
+ ...props.record,
|
|
|
+ });
|
|
|
+
|
|
|
+ const EmptyHistory = () => {
|
|
|
+ return (
|
|
|
+ <div
|
|
|
+ class={
|
|
|
+ "inline-flex flex-col items-center justify-center w-full h-full rounded-6px"
|
|
|
+ }
|
|
|
+ style={{ background: "#F1F2F4" }}
|
|
|
+ >
|
|
|
+ <div>
|
|
|
+ <img
|
|
|
+ width={86}
|
|
|
+ height={66}
|
|
|
+ src={require("@/assets/imgs/empty_history.png")}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div class={"text-12px mt-16px text-gray"}>暂无历史提交信息</div>
|
|
|
+ </div>
|
|
|
+ );
|
|
|
+ };
|
|
|
+ const EmptyCollection = () => {
|
|
|
+ return (
|
|
|
+ <div class={"text-center"}>
|
|
|
+ <div
|
|
|
+ class={
|
|
|
+ "w-full h-290px inline-flex flex-col items-center justify-center rounded-6px"
|
|
|
+ }
|
|
|
+ style={{ background: "#F1F2F4" }}
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ class={"object-contain"}
|
|
|
+ width={200}
|
|
|
+ height={142}
|
|
|
+ src={require("@/assets/imgs/404.png")}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div class={"text-12px mt-18px text-gray"}>
|
|
|
+ 请输入正确的大赛接收地址获取大赛信息
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ );
|
|
|
+ };
|
|
|
+
|
|
|
+ return () => {
|
|
|
+ return (
|
|
|
+ <div class={ModalStyle}>
|
|
|
+ <div class={"space-y-14px"}>
|
|
|
+ <div
|
|
|
+ class={"flex items-center bg-white px-30px py-18px rounded-6px"}
|
|
|
+ >
|
|
|
+ <div class={"text-16px"}>接收地址</div>
|
|
|
+ <div class={"flex-1 px-30px"}>
|
|
|
+ <Select class={"w-full"}></Select>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <Button type="primary" ghost icon={<SearchOutlined />}>
|
|
|
+ 查询
|
|
|
+ </Button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class={"bg-white px-30px py-20px"}>{EmptyCollection()}</div>
|
|
|
+ <div class={"flex items-center space-x-16px"}>
|
|
|
+ <div class={"flex-1 bg-white px-30px py-18px rounded-6px"}>
|
|
|
+ <div class={"text-16px"}>当前提交</div>
|
|
|
+ <div class={"mt-20px h-160px"}></div>
|
|
|
+ </div>
|
|
|
+ <div class={"flex-1 bg-white px-30px py-18px rounded-6px"}>
|
|
|
+ <div class={"text-16px"}>历史提交</div>
|
|
|
+ <div class={"mt-20px h-160px"}>{EmptyHistory()}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class={"text-center mt-24px"}>
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ ghost
|
|
|
+ size={"large"}
|
|
|
+ class={"w-240px"}
|
|
|
+ disabled={true}
|
|
|
+ >
|
|
|
+ 确认发送
|
|
|
+ </Button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ );
|
|
|
+ };
|
|
|
+ },
|
|
|
+});
|
|
|
+const ModalStyle = css`
|
|
|
+ color: #111;
|
|
|
+ .ant-select:not(.ant-select-customize-input) {
|
|
|
+ .ant-select-selector {
|
|
|
+ border-radius: 4px;
|
|
|
+ border-color: rgba(51, 51, 51, 0.3);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .ant-btn-background-ghost.ant-btn-primary {
|
|
|
+ border-radius: 4px;
|
|
|
+ background-color: rgba(255, 227, 178, 0.3);
|
|
|
+ }
|
|
|
+ .ant-btn-background-ghost.ant-btn-primary[disabled] {
|
|
|
+ color: #fff;
|
|
|
+ border-color: transparent;
|
|
|
+ background: #ccc;
|
|
|
+ text-shadow: none;
|
|
|
+ box-shadow: none;
|
|
|
+ &:hover {
|
|
|
+ color: #fff;
|
|
|
+ border-color: transparent;
|
|
|
+ background: #ccc;
|
|
|
+ text-shadow: none;
|
|
|
+ box-shadow: none;
|
|
|
+ }
|
|
|
+ }
|
|
|
+`;
|