diff --git a/Code/Frontend/.gitignore b/Code/Frontend/.gitignore new file mode 100644 index 0000000..403adbc --- /dev/null +++ b/Code/Frontend/.gitignore @@ -0,0 +1,23 @@ +.DS_Store +node_modules +/dist + + +# local env files +.env.local +.env.*.local + +# Log files +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* + +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/Code/Frontend/dist/css/946.7112380a.css b/Code/Frontend/dist/css/946.7112380a.css deleted file mode 100644 index f217121..0000000 --- a/Code/Frontend/dist/css/946.7112380a.css +++ /dev/null @@ -1 +0,0 @@ -.gray-box[data-v-9355dd7c]{margin:0 200px;position:relative;margin-bottom:30px;overflow:hidden;background:#fff;border-radius:8px;border:1px solid #dcdcdc;border-color:rgba(0,0,0,.14);box-shadow:0 3px 8px -6px rgba(0,0,0,.1)}.gray-box .title[data-v-9355dd7c]{padding-left:30px;position:relative;z-index:10;height:60px;padding:0 10px 0 24px;border-bottom:1px solid #d4d4d4;border-radius:8px 8px 0 0;box-shadow:0 1px 7px rgba(0,0,0,.06);background:#f3f3f3;background:linear-gradient(#fbfbfb,#ececec);line-height:60px;font-size:18px;color:#333;display:flex;justify-content:space-between;align-items:center}.gray-box .title h2[data-v-9355dd7c]{font-size:18px;font-weight:400;color:#626262;display:inline-block}.popup[data-v-d5e95310]{position:fixed;background-color:transparent;top:0;left:0;bottom:0;right:0;z-index:1000;text-align:center;transition:opacity .2s ease-in}.popup .mask[data-v-d5e95310]{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;background:rgba(0,0,0,.5)}.popup .content[data-v-d5e95310]{width:40%;background:#fff;border-radius:10px}.popup .topbar[data-v-d5e95310]{position:relative;z-index:10;overflow:hidden;width:100%;height:60px;background:#f5f5f5;background:linear-gradient(#fff,#f5f5f5);border-bottom:1px solid #dcdcdc;border-radius:10px 10px 0 0;box-shadow:2px 0 5px rgba(0,0,0,.1)}.popup .dialog-tit[data-v-d5e95310]{height:60px;padding:0 15px;line-height:20px}.popup .dialog-tit h4[data-v-d5e95310]{text-align:center;font-size:18px;font-weight:400;color:#666}.popup .s-content[data-v-d5e95310]{padding:30px 15px}.popup .close[data-v-d5e95310]{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:20px;height:20px}.popup .close:hover svg[data-v-d5e95310]{transition:all 1s;transform:rotate(1turn);transform-origin:50% 50%}.popup .close:hover path[data-v-d5e95310]{fill:#8a8a8a}.size[data-v-1a316d74]{width:100px;height:100px}.box[data-v-1a316d74]{width:200px;height:200px;transition:all .5s;background-color:red}.box[data-v-1a316d74]:hover{transform:translate3d(0,-3px,0);box-shadow:0 3px 8px rgba(0,0,0,.2)}[data-v-1a316d74]{padding:0;margin:0}body[data-v-1a316d74]{min-width:1100px;height:100%;font-size:14px;font-family:微软雅黑,Arial,Helvetica,sans-serif}input[data-v-1a316d74]{outline:none}.w[data-v-1a316d74]{width:1100px;margin:0 auto}ul[data-v-1a316d74]{list-style:none}a[data-v-1a316d74]{color:#333;text-decoration:none;outline:none}.ellipsis[data-v-1a316d74]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ellipsis-2[data-v-1a316d74]{word-break:break-all;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.fr[data-v-1a316d74]{float:right}.fl[data-v-1a316d74]{float:left}.clearfix[data-v-1a316d74]:after{content:".";display:block;visibility:hidden;height:0;line-height:0;clear:both}.i[data-v-1a316d74]{height:70px}.i input[data-v-1a316d74]{background-color:#fafafa;color:#000;width:90%;height:50px;border-radius:10px;font-size:large}.table-title[data-v-1a316d74]{position:relative;z-index:1;line-height:38px;height:38px;padding:0 0 0 38px;font-size:12px;background:#eee;border-bottom:1px solid #dbdbdb;border-bottom-color:rgba(0,0,0,.08)}.table-title .descr[data-v-1a316d74]{float:left;text-align:left;margin-left:23px}.table-title .name[data-v-1a316d74]{float:left;text-align:left;width:130px}.table-title span[data-v-1a316d74]{width:137px;float:left;text-align:center;color:#838383}.ellipsis[data-v-1a316d74]{margin-left:20px;width:220px}.address-item[data-v-1a316d74]{display:flex;align-items:center;height:120px;text-align:center}.address-item .time[data-v-1a316d74]{color:#dd6a6a;width:180px}.address-item .name[data-v-1a316d74],.address-item .price[data-v-1a316d74]{color:#dd6a6a;width:120px}.address-item .number[data-v-1a316d74]{color:#dd6a6a;width:130px}.address-item .descr[data-v-1a316d74]{color:#dd6a6a;width:190px}.address-item .img-box[data-v-1a316d74]{border:1px solid #fff;margin-left:20px}.address-item img[data-v-1a316d74]{display:block;width:80px;height:80px} \ No newline at end of file diff --git a/Code/Frontend/dist/css/app.25e66e53.css b/Code/Frontend/dist/css/app.25e66e53.css deleted file mode 100644 index a55af5f..0000000 --- a/Code/Frontend/dist/css/app.25e66e53.css +++ /dev/null @@ -1 +0,0 @@ -.size[data-v-30b6e524]{width:100px;height:100px}.box[data-v-30b6e524]{width:200px;height:200px;transition:all .5s;background-color:red}.box[data-v-30b6e524]:hover{transform:translate3d(0,-3px,0);box-shadow:0 3px 8px rgba(0,0,0,.2)}[data-v-30b6e524]{padding:0;margin:0}body[data-v-30b6e524]{min-width:1100px;height:100%;font-size:14px;font-family:微软雅黑,Arial,Helvetica,sans-serif}input[data-v-30b6e524]{outline:none}.w[data-v-30b6e524]{width:1100px;margin:0 auto}ul[data-v-30b6e524]{list-style:none}a[data-v-30b6e524]{color:#333;text-decoration:none;outline:none}.ellipsis[data-v-30b6e524]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ellipsis-2[data-v-30b6e524]{word-break:break-all;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.fr[data-v-30b6e524]{float:right}.fl[data-v-30b6e524]{float:left}.clearfix[data-v-30b6e524]:after{content:".";display:block;visibility:hidden;height:0;line-height:0;clear:both}.navbar[data-v-30b6e524]{display:flex;align-items:center;justify-content:space-between;padding:20px;background-color:#fff;box-shadow:0 4px 8px rgba(0,0,0,.2)}.navbar .logo[data-v-30b6e524]{width:210px;height:50px}.navbar .logo a[data-v-30b6e524]{display:inline-block;height:60px;width:100%;background:url(/img/lololo.c5239fca.png) no-repeat}.navbar-brand[data-v-30b6e524]{font-size:1.5rem;padding:0 0 0 0}.header-nav[data-v-30b6e524]{display:flex;list-style:none;margin:0;padding:0}.nav-item[data-v-30b6e524]{margin-right:20px}.nav-link[data-v-30b6e524]{color:#333;text-decoration:none;font-size:18px}.nav-link.active[data-v-30b6e524]{color:#4caf50}.header-logo[data-v-30b6e524]{height:50px;width:auto}.header-search[data-v-30b6e524]{display:flex;align-items:center;border:1px solid #fcfcfc;border-radius:5px;padding:5px}.header-search-input[data-v-30b6e524]{flex:1;border:none;padding:5px;font-size:16px}.header-search-button[data-v-30b6e524]{background-color:#4caf50;border:none;border-radius:5px;color:#fff;padding:5px 10px;font-size:16px;margin-left:10px;cursor:pointer}.header-search-button[data-v-30b6e524]:hover{opacity:.8}.center[data-v-30b6e524]{width:600px;flex:1}.center-search[data-v-30b6e524]{width:500px;height:20px;padding:0 0 0 240px}.center-search input[data-v-30b6e524]{width:400px;height:35px;border-radius:20px 0 0 20px;padding-left:15px;box-sizing:border-box;border:2px solid #630560}.search-btn[data-v-30b6e524]{float:right;width:100px;height:35px;color:#fefffd;background-color:#630560;border-radius:0 20px 20px 0;border:0;font-size:16px}.center-navs[data-v-30b6e524]{width:540px}.center-navs li[data-v-30b6e524]{float:left;height:32px;padding:5px;list-style:none}.center-navs li a[data-v-30b6e524]{padding:0 5px;border-right:1px solid #ccc}.center-navs li:last-child a[data-v-30b6e524]{border-right:0}.size[data-v-59eda9b3]{width:100px;height:100px}.box[data-v-59eda9b3]{width:200px;height:200px;transition:all .5s;background-color:red}.box[data-v-59eda9b3]:hover{transform:translate3d(0,-3px,0);box-shadow:0 3px 8px rgba(0,0,0,.2)}[data-v-59eda9b3]{padding:0;margin:0}body[data-v-59eda9b3]{min-width:1100px;height:100%;font-size:14px;font-family:微软雅黑,Arial,Helvetica,sans-serif}input[data-v-59eda9b3]{outline:none}.w[data-v-59eda9b3]{width:1100px;margin:0 auto}ul[data-v-59eda9b3]{list-style:none}a[data-v-59eda9b3]{color:#333;text-decoration:none;outline:none}.ellipsis[data-v-59eda9b3]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ellipsis-2[data-v-59eda9b3]{word-break:break-all;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.fr[data-v-59eda9b3]{float:right}.fl[data-v-59eda9b3]{float:left}.clearfix[data-v-59eda9b3]:after{content:".";display:block;visibility:hidden;height:0;line-height:0;clear:both}.footer[data-v-59eda9b3]{background-color:#f6f1f1;display:flex;flex-direction:column}.contact[data-v-59eda9b3]{background:#b9103d}.contact dl[data-v-59eda9b3]{height:190px;text-align:center;padding:0 20px;border-right:1px solid #130b0b;color:#302366}.contact dl[data-v-59eda9b3]:first-child{padding-left:110px}.contact dl[data-v-59eda9b3]:last-child{border-right:none;padding-right:1px}.contact dt[data-v-59eda9b3]{line-height:1;font-size:18px}.contact dd[data-v-59eda9b3]{margin:36px 12px 0 0;float:left;width:92px;height:92px;padding-top:10px;border:1px solid #ededed}.contact dd .iconfont[data-v-59eda9b3]{font-size:36px;display:block;color:#666}.contact dd:hover .iconfont[data-v-59eda9b3]{color:#cc9756}.contact dd[data-v-59eda9b3]:last-child{margin-right:0}.contact .qrcode[data-v-59eda9b3]{width:92px;height:92px;padding:7px;border:1px solid #ededed}.contact .download[data-v-59eda9b3]{padding-top:5px;font-size:14px;width:auto;height:auto;border:none}.contact .download span[data-v-59eda9b3]{display:block}.contact .download a[data-v-59eda9b3]{display:block;line-height:1;padding:10px 25px;margin-top:5px;color:#fff;border-radius:2px;background-color:#cc9756}.contact .hotline[data-v-59eda9b3]{padding-top:20px;font-size:22px;color:#666;width:auto;height:auto;border:none}.contact .hotline small[data-v-59eda9b3]{display:block;font-size:15px;color:#999}.siteinfo[data-v-59eda9b3]{text-align:center;height:80px;padding:0 0 50px 200px}.extra[data-v-59eda9b3]{background-color:#090909}.slogan[data-v-59eda9b3]{height:178px;line-height:58px;padding:60px 100px;border-bottom:1px solid #434343;display:flex;justify-content:space-between}.slogan a[data-v-59eda9b3]{height:58px;line-height:58px;color:#fff;font-size:28px}.slogan a i[data-v-59eda9b3]{font-size:50px;vertical-align:middle;margin-right:10px;font-weight:100}.slogan a span[data-v-59eda9b3]{vertical-align:middle;text-shadow:0 0 1px #333}.c0[data-v-59eda9b3]{text-align:center;width:300px;line-height:1;float:left;list-style:none}.c1[data-v-59eda9b3]{color:#646464;font-size:18px;padding:0 0 0 0;margin:20px;padding:0}.c2[data-v-59eda9b3]{color:#c3c3c3;font-size:12px;padding:6px 0;list-style:none}.c3[data-v-59eda9b3]{color:#969696}.copyright[data-v-59eda9b3]{height:100px;padding-top:20px;text-align:center;color:#999;font-size:15px}.copyright p[data-v-59eda9b3]{line-height:1;margin-bottom:20px}.copyright a[data-v-59eda9b3]{color:#999;line-height:1;padding:0 10px;border-right:1px solid #999}.copyright a[data-v-59eda9b3]:last-child{border-right:none}.main{min-height:calc(100vh - 454px);background:#fff;overflow:hidden;width:100%}.default-btn[data-v-217a68bb],.disabled-btn[data-v-217a68bb],.main-btn[data-v-217a68bb]{width:100px;height:30px;line-height:28px;vertical-align:middle}input[data-v-217a68bb]{display:inline-block;cursor:pointer;text-align:center}.gray-btn[data-v-217a68bb]{border:1px solid #d5d5d5;color:#646464}.default-btn[data-v-217a68bb]{border:1px solid #e1e1e1;border-radius:4px;font-size:12px;color:#646464;background-color:#f9f9f9;background-image:linear-gradient(180deg,#fff,#f9f9f9)}.default-btn[data-v-217a68bb]:hover{background-color:#eee;background-image:linear-gradient(180deg,#f5f5f5,#eee)}.main-btn[data-v-217a68bb]{border:1px solid #5c81e3;border-radius:4px;font-size:12px;color:#fff;background-color:#678ee7;background-image:linear-gradient(180deg,#678ee7,#5078df)}.main-btn[data-v-217a68bb]:hover{background-color:#6c8cd4;background-image:linear-gradient(180deg,#6c8cd4,#4769c2)}.disabled-btn[data-v-217a68bb]{cursor:not-allowed;border:1px solid #afafaf;border-radius:4px;font-size:12px;color:#fff;background-color:#a9a9a9;background-image:linear-gradient(180deg,#b8b8b8,#a9a9a9)}.size[data-v-461f499a]{width:100px;height:100px}.box[data-v-461f499a]{width:200px;height:200px;transition:all .5s;background-color:red}.box[data-v-461f499a]:hover{transform:translate3d(0,-3px,0);box-shadow:0 3px 8px rgba(0,0,0,.2)}[data-v-461f499a]{padding:0;margin:0}body[data-v-461f499a]{min-width:1100px;height:100%;font-size:14px;font-family:微软雅黑,Arial,Helvetica,sans-serif}input[data-v-461f499a]{outline:none}.w[data-v-461f499a]{width:1100px;margin:0 auto}ul[data-v-461f499a]{list-style:none}a[data-v-461f499a]{color:#333;text-decoration:none;outline:none}.ellipsis[data-v-461f499a]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ellipsis-2[data-v-461f499a]{word-break:break-all;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.fr[data-v-461f499a]{float:right}.fl[data-v-461f499a]{float:left}.clearfix[data-v-461f499a]:after{content:".";display:block;visibility:hidden;height:0;line-height:0;clear:both}.login[data-v-461f499a]{background:url(/img/6.b9234a7f.png) 50% no-repeat;background-size:100% 100%;background-color:#f7f7f7;height:720px;margin:0;padding:0}.login .page[data-v-461f499a]{box-shadow:0 0 30px 2px #5f7221;border-radius:2em;border:1px solid #c6bfc5;margin:50px 5px 15px 550px;height:600px;width:400px;color:#180202;background-color:#fcfcfc}.login .page .title[data-v-461f499a]{border-radius:2em;color:#fff;background-color:#fff;width:auto;padding:0 0 0 0;margin:0 0 0 0;height:160px;text-align:center;font-size:large}.login .page .title .logo[data-v-461f499a]{width:auto;height:70px;margin:0 0 0 0;padding:0 0 0 0;display:flex;justify-content:center}.login .page .title .nju[data-v-461f499a]{color:#7204c1;padding-top:10px;margin-top:10px}.login .page .content[data-v-461f499a]{color:#0bd6cc;background-color:#f9f9f9;height:360px;width:400px}.login .page .content .common-form[data-v-461f499a]{background:#fff;margin:100 0;width:400px;padding:0 0 0 0;height:200px}.login .page .content .common-form li[data-v-461f499a]{margin-bottom:10px;margin:0 auto;margin-top:30px}.login .page .content .passwd[data-v-461f499a]{border-radius:10px;border:1px solid #7204c1;margin:100px;width:340px;height:50px;background-color:#fff;padding:0 0}.login .page .content .passwd input[data-v-461f499a]{color:#000;width:320px;height:30px;background-color:#fff;padding:0;margin:0 0 0 7px;margin-top:8px;border:0;outline:none}.login .page .content .username[data-v-461f499a]{border-radius:10px;border:1px solid #7204c1;margin:0 0 0 15px;width:340px;height:50px;background-color:#fff}.login .page .content .username input[data-v-461f499a]{width:320px;height:30px;color:#000;background-color:#fff;padding:0;margin:0 0 0 7px;margin-top:8px;border:none;outline:none}.login .page .content .pr[data-v-461f499a]{width:400px;display:flex;background-color:#fff;margin:0 0 0 0;padding:0}.login .page .content .pr a[data-v-461f499a]{margin:0 0 0 0;font-size:14px;padding:0 0 0 16px;line-height:30px;text-decoration:none;background-color:#fff;color:#0220a3}.login .page .content .pr .auto-login[data-v-461f499a]{margin:0 0 0 0 px;padding:0 0 0 20px;background-color:#fff}.login .page .content .button[data-v-461f499a]{margin:30px 0 0 0;height:10px;line-height:60px;background-color:#fff}.login .page .content .pro[data-v-461f499a]{background-color:#f1f1f1}.login .page ul[data-v-461f499a]{list-style:none}.login .page .footer[data-v-461f499a]{text-align:center;padding:0 0 0 0;margin:auto;font-family:Courier New,Courier,monospace;color:#7b7676}.size[data-v-68b911ee]{width:100px;height:100px}.box[data-v-68b911ee]{width:200px;height:200px;transition:all .5s;background-color:red}.box[data-v-68b911ee]:hover{transform:translate3d(0,-3px,0);box-shadow:0 3px 8px rgba(0,0,0,.2)}[data-v-68b911ee]{padding:0;margin:0}body[data-v-68b911ee]{min-width:1100px;height:100%;font-size:14px;font-family:微软雅黑,Arial,Helvetica,sans-serif}input[data-v-68b911ee]{outline:none}.w[data-v-68b911ee]{width:1100px;margin:0 auto}ul[data-v-68b911ee]{list-style:none}a[data-v-68b911ee]{color:#333;text-decoration:none;outline:none}.ellipsis[data-v-68b911ee]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ellipsis-2[data-v-68b911ee]{word-break:break-all;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.fr[data-v-68b911ee]{float:right}.fl[data-v-68b911ee]{float:left}.clearfix[data-v-68b911ee]:after{content:".";display:block;visibility:hidden;height:0;line-height:0;clear:both}.app-header-nav[data-v-68b911ee]{list-style:none;position:relative;clear:both;z-index:999;display:0 flex}.app-header-nav li[data-v-68b911ee]{position:relative;left:140px;float:left;padding:0 80px;font-weight:700;height:40px;line-height:40px;white-space:nowrap}.app-header-nav li .router-link-active[data-v-68b911ee]{color:#9307e4;border-bottom:2px solid #9307e4}.app-header-nav li .nav-item[data-v-68b911ee]{padding-bottom:10px;font-size:15px;color:#090909;text-decoration:none;font-weight:700}.app-header-nav li .nav-item[data-v-68b911ee]:hover{color:#9307e4;border-bottom:2px solid #9307e4}.app-header-nav .header-layer[data-v-68b911ee]{position:absolute;left:130px;top:100px;background-color:#fff;box-shadow:0 0 5px #ccc;padding:10px;width:1150px;height:130px}.app-header-nav .header-layer ul li[data-v-68b911ee]{padding:5px;list-style-type:none;left:0;height:100px}.app-header-nav .header-layer ul li img[data-v-68b911ee]{width:10px;height:10px;text-align:center}.app-header-nav .header-layer ul li[data-v-68b911ee]:hover{background-color:#ccc}.size[data-v-6ce9e793]{width:100px;height:100px}.box[data-v-6ce9e793]{width:200px;height:200px;transition:all .5s;background-color:red}.box[data-v-6ce9e793]:hover{transform:translate3d(0,-3px,0);box-shadow:0 3px 8px rgba(0,0,0,.2)}[data-v-6ce9e793]{padding:0;margin:0}body[data-v-6ce9e793]{min-width:1100px;height:100%;font-size:14px;font-family:微软雅黑,Arial,Helvetica,sans-serif}input[data-v-6ce9e793]{outline:none}.w[data-v-6ce9e793]{width:1100px;margin:0 auto}ul[data-v-6ce9e793]{list-style:none}a[data-v-6ce9e793]{color:#333;text-decoration:none;outline:none}.ellipsis[data-v-6ce9e793]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ellipsis-2[data-v-6ce9e793]{word-break:break-all;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.fr[data-v-6ce9e793]{float:right}.fl[data-v-6ce9e793]{float:left}.clearfix[data-v-6ce9e793]:after{content:".";display:block;visibility:hidden;height:0;line-height:0;clear:both}.home-banner[data-v-6ce9e793]{background-color:#fbfbfb}.home-banner .banner[data-v-6ce9e793]{margin:auto;height:400px;width:1100px;border:1px solid #fff;margin-top:0}.el-carousel__item[data-v-6ce9e793]:nth-child(2n){background-color:#fff;padding:0;margin:10 0;height:400px}.el-carousel__item[data-v-6ce9e793]:nth-child(odd){background-color:#fff;height:400px}.size[data-v-31f780c2]{width:100px;height:100px}.box[data-v-31f780c2]{width:200px;height:200px;transition:all .5s;background-color:red}.box[data-v-31f780c2]:hover{transform:translate3d(0,-3px,0);box-shadow:0 3px 8px rgba(0,0,0,.2)}[data-v-31f780c2]{padding:0;margin:0}body[data-v-31f780c2]{min-width:1100px;height:100%;font-size:14px;font-family:微软雅黑,Arial,Helvetica,sans-serif}input[data-v-31f780c2]{outline:none}.w[data-v-31f780c2]{width:1100px;margin:0 auto}ul[data-v-31f780c2]{list-style:none}a[data-v-31f780c2]{color:#333;text-decoration:none;outline:none}.ellipsis[data-v-31f780c2]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ellipsis-2[data-v-31f780c2]{word-break:break-all;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.fr[data-v-31f780c2]{float:right}.fl[data-v-31f780c2]{float:left}.clearfix[data-v-31f780c2]:after{content:".";display:block;visibility:hidden;height:0;line-height:0;clear:both}.my-panel[data-v-31f780c2]{background-color:#fff}.my-panel .header[data-v-31f780c2]{padding:40px 0;align-items:flex-end;display:flex}.my-panel .header h2[data-v-31f780c2]{flex:1;font-size:32px;text-align:left;font-weight:400}.my-panel .header h2 small[data-v-31f780c2]{font-size:16px;color:#999;margin-left:10px}.size[data-v-02e303c4]{width:100px;height:100px}.box[data-v-02e303c4]{width:200px;height:200px;transition:all .5s;background-color:red}.box[data-v-02e303c4]:hover{transform:translate3d(0,-3px,0);box-shadow:0 3px 8px rgba(0,0,0,.2)}[data-v-02e303c4]{padding:0;margin:0}body[data-v-02e303c4]{min-width:1100px;height:100%;font-size:14px;font-family:微软雅黑,Arial,Helvetica,sans-serif}input[data-v-02e303c4]{outline:none}.w[data-v-02e303c4]{width:1100px;margin:0 auto}ul[data-v-02e303c4]{list-style:none}a[data-v-02e303c4]{color:#333;text-decoration:none;outline:none}.ellipsis[data-v-02e303c4]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ellipsis-2[data-v-02e303c4]{word-break:break-all;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.fr[data-v-02e303c4]{float:right}.fl[data-v-02e303c4]{float:left}.clearfix[data-v-02e303c4]:after{content:".";display:block;visibility:hidden;height:0;line-height:0;clear:both}.home-hot .goods-list[data-v-02e303c4]{display:flex;justify-content:space-between;margin-bottom:40px}.home-hot .goods-list .item[data-v-02e303c4]{width:265px;height:365px;background-color:#f5f5f5;transition:all .5s}.home-hot .goods-list .item img[data-v-02e303c4]{width:265px;height:265px}.home-hot .goods-list .item[data-v-02e303c4]:hover{transform:translate3d(0,-3px,0);box-shadow:0 3px 8px rgba(0,0,0,.2)}.home-hot .goods-list .item .title[data-v-02e303c4]{font-size:17px;text-align:center;padding:15px 25px}.home-hot .goods-list .item .price[data-v-02e303c4]{text-align:center;font-size:15px;color:#cf4444}.size[data-v-2bd774ac]{width:100px;height:100px}.box[data-v-2bd774ac]{width:200px;height:200px;transition:all .5s;background-color:red}.box[data-v-2bd774ac]:hover{transform:translate3d(0,-3px,0);box-shadow:0 3px 8px rgba(0,0,0,.2)}[data-v-2bd774ac]{padding:0;margin:0}body[data-v-2bd774ac]{min-width:1100px;height:100%;font-size:14px;font-family:微软雅黑,Arial,Helvetica,sans-serif}input[data-v-2bd774ac]{outline:none}.w[data-v-2bd774ac]{width:1100px;margin:0 auto}ul[data-v-2bd774ac]{list-style:none}a[data-v-2bd774ac]{color:#333;text-decoration:none;outline:none}.ellipsis[data-v-2bd774ac]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ellipsis-2[data-v-2bd774ac]{word-break:break-all;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.fr[data-v-2bd774ac]{float:right}.fl[data-v-2bd774ac]{float:left}.clearfix[data-v-2bd774ac]:after{content:".";display:block;visibility:hidden;height:0;line-height:0;clear:both}.home-hot .goods-list[data-v-2bd774ac]{display:flex;justify-content:space-between;margin-bottom:40px}.home-hot .goods-list .item[data-v-2bd774ac]{width:265px;height:365px;background-color:#f5f5f5;transition:all .5s}.home-hot .goods-list .item img[data-v-2bd774ac]{width:265px;height:265px}.home-hot .goods-list .item[data-v-2bd774ac]:hover{transform:translate3d(0,-3px,0);box-shadow:0 3px 8px rgba(0,0,0,.2)}.home-hot .goods-list .item .title[data-v-2bd774ac]{font-size:17px;text-align:center;padding:15px 25px}.home-hot .goods-list .item .price[data-v-2bd774ac]{text-align:center;font-size:15px;color:#cf4444}.size[data-v-30bb5eee]{width:100px;height:100px}.box[data-v-30bb5eee]{width:200px;height:200px;transition:all .5s;background-color:red}.box[data-v-30bb5eee]:hover{transform:translate3d(0,-3px,0);box-shadow:0 3px 8px rgba(0,0,0,.2)}[data-v-30bb5eee]{padding:0;margin:0}body[data-v-30bb5eee]{min-width:1100px;height:100%;font-size:14px;font-family:微软雅黑,Arial,Helvetica,sans-serif}input[data-v-30bb5eee]{outline:none}.w[data-v-30bb5eee]{width:1100px;margin:0 auto}ul[data-v-30bb5eee]{list-style:none}a[data-v-30bb5eee]{color:#333;text-decoration:none;outline:none}.ellipsis[data-v-30bb5eee]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ellipsis-2[data-v-30bb5eee]{word-break:break-all;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.fr[data-v-30bb5eee]{float:right}.fl[data-v-30bb5eee]{float:left}.clearfix[data-v-30bb5eee]:after{content:".";display:block;visibility:hidden;height:0;line-height:0;clear:both}.home-hot .goods-list[data-v-30bb5eee]{display:flex;justify-content:space-between;margin-bottom:40px}.home-hot .goods-list .item[data-v-30bb5eee]{width:265px;height:365px;background-color:#f5f5f5;transition:all .5s}.home-hot .goods-list .item img[data-v-30bb5eee]{width:265px;height:265px}.home-hot .goods-list .item[data-v-30bb5eee]:hover{transform:translate3d(0,-3px,0);box-shadow:0 3px 8px rgba(0,0,0,.2)}.home-hot .goods-list .item .title[data-v-30bb5eee]{font-size:17px;text-align:center;padding:15px 25px}.home-hot .goods-list .item .price[data-v-30bb5eee]{text-align:center;font-size:15px;color:#cf4444}.size[data-v-153d817a]{width:100px;height:100px}.box[data-v-153d817a]{width:200px;height:200px;transition:all .5s;background-color:red}.box[data-v-153d817a]:hover{transform:translate3d(0,-3px,0);box-shadow:0 3px 8px rgba(0,0,0,.2)}[data-v-153d817a]{padding:0;margin:0}body[data-v-153d817a]{min-width:1100px;height:100%;font-size:14px;font-family:微软雅黑,Arial,Helvetica,sans-serif}input[data-v-153d817a]{outline:none}.w[data-v-153d817a]{width:1100px;margin:0 auto}ul[data-v-153d817a]{list-style:none}a[data-v-153d817a]{color:#333;text-decoration:none;outline:none}.ellipsis[data-v-153d817a]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ellipsis-2[data-v-153d817a]{word-break:break-all;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.fr[data-v-153d817a]{float:right}.fl[data-v-153d817a]{float:left}.clearfix[data-v-153d817a]:after{content:".";display:block;visibility:hidden;height:0;line-height:0;clear:both}.goods-item[data-v-153d817a]{position:relative;width:200px;height:300px;border:1px solid #f5f5f5;overflow:hidden;transition:all .5}.goods-item .images[data-v-153d817a]{width:200px;height:220px;margin:0 auto;padding:0 0 10px 0}.goods-item .images img[data-v-153d817a]{width:160px;height:160px}.goods-item .title[data-v-153d817a]{text-align:center;font-size:15px}.goods-item .price[data-v-153d817a]{padding-top:3px;text-align:center;font-size:10px;color:#cf4444}.goods-item .extra[data-v-153d817a]{position:absolute;left:0;bottom:0;right:0;background-color:#9307e4;height:85px;transform:translate3d(0,100%,0);transition:all .5s}.goods-item .extra span[data-v-153d817a]{display:block;text-align:center;font-size:16px;color:#fff;margin:10px 0}.goods-item .extra span[data-v-153d817a]:last-child{font-size:14px}.goods-item[data-v-153d817a]:hover{border:1px solid #9307e4}.goods-item:hover .extra[data-v-153d817a]{transform:none}.size[data-v-1266eca4]{width:100px;height:100px}.box[data-v-1266eca4]{width:200px;height:200px;transition:all .5s;background-color:red}.box[data-v-1266eca4]:hover{transform:translate3d(0,-3px,0);box-shadow:0 3px 8px rgba(0,0,0,.2)}[data-v-1266eca4]{padding:0;margin:0}body[data-v-1266eca4]{min-width:1100px;height:100%;font-size:14px;font-family:微软雅黑,Arial,Helvetica,sans-serif}input[data-v-1266eca4]{outline:none}.w[data-v-1266eca4]{width:1100px;margin:0 auto}ul[data-v-1266eca4]{list-style:none}a[data-v-1266eca4]{color:#333;text-decoration:none;outline:none}.ellipsis[data-v-1266eca4]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ellipsis-2[data-v-1266eca4]{word-break:break-all;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.fr[data-v-1266eca4]{float:right}.fl[data-v-1266eca4]{float:left}.clearfix[data-v-1266eca4]:after{content:".";display:block;visibility:hidden;height:0;line-height:0;clear:both}.home-produce .goods[data-v-1266eca4]{height:610px;display:flex}.home-produce .goods .left[data-v-1266eca4]{width:240px;margin-right:10px;border:1px solid #ccc}.home-produce .goods .left img[data-v-1266eca4]{width:100%;height:100%}.home-produce .goods .right[data-v-1266eca4]{border:1px solid #ccc}.home-produce .goods .right .goods-list[data-v-1266eca4]{display:flex;flex-wrap:wrap;justify-content:space-between}.goods[data-v-1266eca4]{height:700px;display:flex;border:0 1px;margin:0 0;padding:0 0}.goods .left[data-v-1266eca4]{width:250px;margin-right:10px;border:1px;margin:0 10 0 0;padding:0 10 0 0}.goods .left img[data-v-1266eca4]{width:100%;height:100%}.goods .right[data-v-1266eca4]{flex:1;border:1px solid #ccc;padding:0 0 0 0;margin:0 0 0 0}.goods .right .goods-list[data-v-1266eca4]{display:flex;flex-wrap:wrap;justify-content:space-between}.photo-wall{background-color:#fff;text-align:center}h2{margin-bottom:40px;color:purple;font-size:40px}.photo{position:relative;overflow:hidden;cursor:pointer}.photo img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;transition:transform .3s ease-in-out}.photo:hover img{transform:scale(1.2)}.size[data-v-21562bc2]{width:100px;height:100px}.box[data-v-21562bc2]{width:200px;height:200px;transition:all .5s;background-color:red}.box[data-v-21562bc2]:hover{transform:translate3d(0,-3px,0);box-shadow:0 3px 8px rgba(0,0,0,.2)}[data-v-21562bc2]{padding:0;margin:0}body[data-v-21562bc2]{min-width:1100px;height:100%;font-size:14px;font-family:微软雅黑,Arial,Helvetica,sans-serif}input[data-v-21562bc2]{outline:none}.w[data-v-21562bc2]{width:1100px;margin:0 auto}ul[data-v-21562bc2]{list-style:none}a[data-v-21562bc2]{color:#333;text-decoration:none;outline:none}.ellipsis[data-v-21562bc2]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ellipsis-2[data-v-21562bc2]{word-break:break-all;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.fr[data-v-21562bc2]{float:right}.fl[data-v-21562bc2]{float:left}.clearfix[data-v-21562bc2]:after{content:".";display:block;visibility:hidden;height:0;line-height:0;clear:both}.home_bottom[data-v-21562bc2]{margin-top:70px;padding:75px 0 0 0;width:1100;background-color:#f6f1f1}.size[data-v-6193913e]{width:100px;height:100px}.box[data-v-6193913e]{width:200px;height:200px;transition:all .5s;background-color:red}.box[data-v-6193913e]:hover{transform:translate3d(0,-3px,0);box-shadow:0 3px 8px rgba(0,0,0,.2)}[data-v-6193913e]{padding:0;margin:0}body[data-v-6193913e]{min-width:1100px;height:100%;font-size:14px;font-family:微软雅黑,Arial,Helvetica,sans-serif}input[data-v-6193913e]{outline:none}.w[data-v-6193913e]{width:1100px;margin:0 auto}ul[data-v-6193913e]{list-style:none}a[data-v-6193913e]{color:#333;text-decoration:none;outline:none}.ellipsis[data-v-6193913e]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ellipsis-2[data-v-6193913e]{word-break:break-all;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.fr[data-v-6193913e]{float:right}.fl[data-v-6193913e]{float:left}.clearfix[data-v-6193913e]:after{content:".";display:block;visibility:hidden;height:0;line-height:0;clear:both}.fixed-bottom-right[data-v-6193913e]{position:fixed;bottom:20px;right:20px;z-index:10;height:700px;background-color:transparent}.fixed-bottom-right .chat-button[data-v-6193913e]{z-index:10;position:fixed;left:-95px;top:210px;border-radius:50%;width:0;height:0;outline:none}.fixed-bottom-right .chat-button .pic[data-v-6193913e]{left:10px}.fixed-bottom-right .chat-button .pic img[data-v-6193913e]{margin-top:-10px;margin-left:-10px;display:block;height:280px;width:280px;border-radius:50%}.fixed-bottom-right .chat-button[data-v-6193913e]:hover{background-color:#9307e4;transform:translate3d(35px,0,0);transition:all .5s}.chat-container[data-v-6193913e]{width:320px;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.1);border-radius:6px;position:absolute;bottom:50px;right:10px}.chat-header[data-v-6193913e]{padding:10px;border-bottom:1px solid #ccc}.chat-title[data-v-6193913e]{text-align:center;font-size:18px;font-weight:600;color:#4b5563}.chat-subtitle[data-v-6193913e]{font-size:14px;color:#6b7280}.close-button[data-v-6193913e]{position:absolute;top:10px;right:10px;font-size:24px;color:#aaa;background-color:transparent;border:none;cursor:pointer}.chat-body[data-v-6193913e]{padding:10px;height:300px;overflow-y:auto}.chat-messages[data-v-6193913e]{margin-bottom:20px}.chat-message[data-v-6193913e]{display:flex;margin-bottom:10px}.chat-message-role[data-v-6193913e]{margin:20px 0 0 15px;flex-shrink:0;width:60px;font-size:12px;color:#999}.chat-message-content[data-v-6193913e]{flex-grow:1;padding:10px;font-size:14px;background-color:#f8f8f8;border-radius:6px}.chat-input[data-v-6193913e]{display:flex;margin-top:10px}.chat-input-box[data-v-6193913e]{flex-grow:1;padding:8px 12px;font-size:14px;color:#555;background-color:#f8f8f8;border:1px solid #ccc;border-radius:4px;outline:none}.chat-send-button[data-v-6193913e]{display:inline-block;width:40px;height:40px;margin-left:10px;padding:0;background-color:#007bff;color:#fff;border:none;border-radius:4px;cursor:pointer;transition:all .3s ease}.chat-send-button[data-v-6193913e]:hover{background-color:#0069d9}.apikey-input[data-v-6193913e]{display:flex;text-align:center;margin-top:10px}.api-save-button[data-v-6193913e]{display:inline-block;width:40px;height:40px;margin-left:30px;background-color:#007bff;color:#fff;border:none;border-radius:4px;cursor:pointer;transition:all .3s ease}.api-save-button[data-v-6193913e]:hover{background-color:#0069d9}.api-setting-button[data-v-6193913e]{display:inline-block;width:40px;height:40px;margin-left:10px;padding:0;background-color:#007bff;color:#fff;border:none;border-radius:4px;cursor:pointer;transition:all .3s ease}.api-setting-button[data-v-6193913e]:hover{background-color:#0069d9}.size[data-v-53610e1b]{width:100px;height:100px}.box[data-v-53610e1b]{width:200px;height:200px;transition:all .5s;background-color:red}.box[data-v-53610e1b]:hover{transform:translate3d(0,-3px,0);box-shadow:0 3px 8px rgba(0,0,0,.2)}[data-v-53610e1b]{padding:0;margin:0}body[data-v-53610e1b]{min-width:1100px;height:100%;font-size:14px;font-family:微软雅黑,Arial,Helvetica,sans-serif}input[data-v-53610e1b]{outline:none}.w[data-v-53610e1b]{width:1100px;margin:0 auto}ul[data-v-53610e1b]{list-style:none}a[data-v-53610e1b]{color:#333;text-decoration:none;outline:none}.ellipsis[data-v-53610e1b]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ellipsis-2[data-v-53610e1b]{word-break:break-all;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.fr[data-v-53610e1b]{float:right}.fl[data-v-53610e1b]{float:left}.clearfix[data-v-53610e1b]:after{content:".";display:block;visibility:hidden;height:0;line-height:0;clear:both}.tologin[data-v-53610e1b]{text-align:center;height:40px;padding:0 0 0 0;font-family:Courier New,Courier,monospace;border-bottom:10px #000}.tologin a[data-v-53610e1b]{color:#0004f5;background-color:#fff;font-family:Courier New,Courier,monospace}.login[data-v-53610e1b]{background:url(/img/6.b9234a7f.png) 50% no-repeat;background-size:100% 100%;background-color:#f7f7f7;height:720px;margin:0;padding:0}.login .page[data-v-53610e1b]{box-shadow:0 0 30px 2px #5f7221;border-radius:2em;border:1px solid #c6bfc5;margin:50px 5px 10px 550px;height:570px;width:400px;color:#180202;background-color:#fcfcfc}.login .page .title[data-v-53610e1b]{border-radius:2em;color:#fff;background-color:#fff;width:auto;padding:0 0 0 0;margin:0 0 0 0;height:80px;text-align:center;font-size:large}.login .page .title .nju[data-v-53610e1b]{margin:0 auto;color:#a7a2aa;margin-top:30px;height:50px;border-bottom:solid #cec9ce}.login .page .title .nju h3[data-v-53610e1b]{font-size:30px}.login .page .content[data-v-53610e1b]{background-color:#fcfcfc;height:360px;width:400px}.login .page .content .common-form[data-v-53610e1b]{background:#f6f6f6;width:400px;padding:0 0 0 0;height:200px}.login .page .content .common-form li[data-v-53610e1b]{margin-bottom:10px;margin:0 auto;margin-top:30px}.login .page .content .passwd[data-v-53610e1b]{border-radius:10px;border:1px solid #7204c1;margin:100px;width:340px;height:50px;background-color:#fff;padding:0 0}.login .page .content .passwd input[data-v-53610e1b]{color:#000;width:320px;height:30px;background-color:#fff;padding:0;margin:0 0 0 7px;margin-top:8px;border:0;outline:none}.login .page .content .username[data-v-53610e1b]{border-radius:10px;border:1px solid #7204c1;margin:0 0 0 15px;width:340px;height:50px;background-color:#fff}.login .page .content .username input[data-v-53610e1b]{width:320px;height:30px;color:#000;background-color:#fff;padding:0;margin:0 0 0 7px;margin-top:8px;border:none;outline:none}.login .page .content .pr[data-v-53610e1b]{width:400px;display:flex;background-color:#fff;margin:0 0 0 0;padding:0}.login .page .content .pr a[data-v-53610e1b]{margin:0 0 0 0;font-size:14px;padding:0 0 0 16px;line-height:30px;text-decoration:none;background-color:#fff}.login .page .content .pr .auto-login[data-v-53610e1b]{margin:0 0 0 0 px;padding:0 0 0 20px;background-color:#fff}.login .page .content .button[data-v-53610e1b]{margin:30px 0 0 0;height:10px;line-height:60px;background-color:#fff}.login .page .content .pro[data-v-53610e1b]{background-color:#f1f1f1}.login .page ul[data-v-53610e1b]{list-style:none}.login .page .footer[data-v-53610e1b]{text-align:center;padding:0 0 0 0;margin:auto;font-family:Courier New,Courier,monospace;color:#7b7676}.size[data-v-5b762ffd]{width:100px;height:100px}.box[data-v-5b762ffd]{width:200px;height:200px;transition:all .5s;background-color:red}.box[data-v-5b762ffd]:hover{transform:translate3d(0,-3px,0);box-shadow:0 3px 8px rgba(0,0,0,.2)}[data-v-5b762ffd]{padding:0;margin:0}body[data-v-5b762ffd]{min-width:1100px;height:100%;font-size:14px;font-family:微软雅黑,Arial,Helvetica,sans-serif}input[data-v-5b762ffd]{outline:none}.w[data-v-5b762ffd]{width:1100px;margin:0 auto}ul[data-v-5b762ffd]{list-style:none}a[data-v-5b762ffd]{color:#333;text-decoration:none;outline:none}.ellipsis[data-v-5b762ffd]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ellipsis-2[data-v-5b762ffd]{word-break:break-all;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.fr[data-v-5b762ffd]{float:right}.fl[data-v-5b762ffd]{float:left}.clearfix[data-v-5b762ffd]:after{content:".";display:block;visibility:hidden;height:0;line-height:0;clear:both}.sub[data-v-5b762ffd]{margin-bottom:150px}.goodsdetail[data-v-5b762ffd]{margin:0 auto;padding-bottom:250px}.goodsdetail .title[data-v-5b762ffd]{font-size:40px;text-align:center;font-weight:400;line-height:50px;margin-bottom:50px;text-shadow:0 1px 0 silver,0 2px 0 #b0b0b0,0 3px 0 #a0a0a0,0 4px 0 #909090,0 5px 10px rgba(0,0,0,.9);padding-bottom:40px}.goodsdetail .sub-list[data-v-5b762ffd]{width:1100px}.goodsdetail .sub-list .pic_list[data-v-5b762ffd]{flex-wrap:wrap;width:1100px;display:flex}.goodsdetail .sub-list .pic_list .pic_item[data-v-5b762ffd]{border:5px ridge #e6e8fa;margin-right:25px;margin-bottom:30px;width:330px}.goodsdetail .sub-list .pic_list .pic_item .banner[data-v-5b762ffd]{height:300px;width:355px}.goodsdetail .sub-list .pic_list .pic_item .banner img[data-v-5b762ffd]{text-align:center;height:250px;width:250px;margin:0 0 0 50px}.goodsdetail .sub-list .pic_list .pic_item .price[data-v-5b762ffd]{text-align:center;font-size:25px;color:#000}.goodsdetail .sub-list .pic_list .pic_item .item_low[data-v-5b762ffd]{border:1px solid #6f6f6f}.goodsdetail .sub-list .pic_list .pic_item .phone[data-v-5b762ffd]{text-align:left;border:double #e6e8fa;border-width:0 0 5px 0;font-size:15px;padding-top:20px;padding-bottom:10px;color:#2f4f4f}.goodsdetail .sub-list .pic_list .pic_item .time[data-v-5b762ffd]{text-align:left;display:flex;margin:3px;color:#2f4f4f}.goodsdetail .sub-list .pic_list .pic_item .time .time_title[data-v-5b762ffd]{text-align:left;font-size:15px;padding-top:5px}.goodsdetail .sub-list .pic_list .pic_item .time .timeselect[data-v-5b762ffd]{width:200px}.goodsdetail .sub-list .pic_list .pic_item .statement[data-v-5b762ffd]{border:double #e6e8fa;border-width:5px 0 0 0;text-align:left;font-size:15px;margin-top:5px;padding-top:10px;color:#545454}.goodsdetail .sub-list .demo-button-style[data-v-5b762ffd]{margin-top:24px}.size[data-v-79900328]{width:100px;height:100px}.box[data-v-79900328]{width:200px;height:200px;transition:all .5s;background-color:red}.box[data-v-79900328]:hover{transform:translate3d(0,-3px,0);box-shadow:0 3px 8px rgba(0,0,0,.2)}[data-v-79900328]{padding:0;margin:0}body[data-v-79900328]{min-width:1100px;height:100%;font-size:14px;font-family:微软雅黑,Arial,Helvetica,sans-serif}input[data-v-79900328]{outline:none}.w[data-v-79900328]{width:1100px;margin:0 auto}ul[data-v-79900328]{list-style:none}a[data-v-79900328]{color:#333;text-decoration:none;outline:none}.ellipsis[data-v-79900328]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ellipsis-2[data-v-79900328]{word-break:break-all;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.fr[data-v-79900328]{float:right}.fl[data-v-79900328]{float:left}.clearfix[data-v-79900328]:after{content:".";display:block;visibility:hidden;height:0;line-height:0;clear:both}.content[data-v-79900328]{padding-top:40px;display:flex;height:100%}.content .sidebar[data-v-79900328]{width:150px;border-radius:6px;background-color:#fff;margin:0 0 0 100px}.content .avatar[data-v-79900328]{padding-top:20px;border-radius:10px;text-align:center}.content .avatar img[data-v-79900328]{width:168px;height:168px}.content .avatar h5[data-v-79900328]{font-size:18px;line-height:48px;font-weight:700}.content .account-nav[data-v-79900328]{padding-top:10px;padding-left:0;list-style:none}.content .account-nav li[data-v-79900328]{position:relative;height:48px;border-top:1px solid #ebebeb;line-height:48px}.content .account-nav li:hover a[data-v-79900328]{position:relative;z-index:1;height:50px;background-color:#98afee;line-height:50px;color:#f6f6f6}.content .account-nav li a[data-v-79900328]{display:block;text-decoration:none;color:#e401fd}.content .account-nav li.current a[data-v-79900328]{position:relative;z-index:1;height:50px;background-color:#98afee;line-height:50px;color:#fff}.content .pic[data-v-79900328]{display:block;margin-top:30px}.content .account-content[data-v-79900328]{margin-left:0;flex:1}.content .box-inner[data-v-79900328],.content .user-info[data-v-79900328]{text-align:center}.content .graybox[data-v-79900328]{width:300px;border:1px solid #dcdcdc;border-radius:8px;background-color:#fff;height:auto} \ No newline at end of file diff --git a/Code/Frontend/dist/favicon.ico b/Code/Frontend/dist/favicon.ico index df36fcf..5845799 100644 Binary files a/Code/Frontend/dist/favicon.ico and b/Code/Frontend/dist/favicon.ico differ diff --git a/Code/Frontend/dist/index.html b/Code/Frontend/dist/index.html index 18e5714..92cb9c4 100644 --- a/Code/Frontend/dist/index.html +++ b/Code/Frontend/dist/index.html @@ -1 +1 @@ -test
\ No newline at end of file +N-Market
\ No newline at end of file diff --git a/Code/Frontend/dist/js/946.b14fc372.js b/Code/Frontend/dist/js/946.b14fc372.js deleted file mode 100644 index 0334437..0000000 --- a/Code/Frontend/dist/js/946.b14fc372.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunktest"]=self["webpackChunktest"]||[]).push([[946],{2116:function(e,t,s){s.d(t,{Z:function(){return f}});var i=s(3396),l=s(7139);const n=e=>((0,i.dD)("data-v-d5e95310"),e=e(),(0,i.Cn)(),e),o={key:0,class:"popup"},a={class:"mask"},p={class:"content"},d={class:"topbar"},c={class:"dialog-tit"},r={t:"1501234940517",class:"icon",style:{},viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3014","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"20",height:"20"},u=n((()=>(0,i._)("path",{d:"M941.576 184.248l-101.824-101.824L512 410.176 184.248 82.424 82.424 184.248 410.168 512l-327.744 327.752 101.824 101.824L512 613.824l327.752 327.752 101.824-101.824L613.832 512z",fill:"#cdcdcd","p-id":"3015"},null,-1))),g=[u],m={class:"s-content"};function h(e,t,s,n,u,h){return s.open?((0,i.wg)(),(0,i.iD)("div",o,[(0,i._)("div",a,[(0,i._)("div",p,[(0,i._)("div",d,[(0,i._)("div",c,[(0,i._)("h4",null,(0,l.zw)(s.title),1)]),(0,i._)("span",{class:"close",onClick:t[0]||(t[0]=(...e)=>h.close&&h.close(...e))},[((0,i.wg)(),(0,i.iD)("svg",r,g))])]),(0,i._)("div",m,[(0,i.WI)(e.$slots,"content",{},void 0,!0)])])])])):(0,i.kq)("",!0)}var v={props:{open:{type:Boolean,default:!1},title:{type:String,default:"管理收货地址"}},methods:{close(){this.$emit("close")}}},w=s(89);const _=(0,w.Z)(v,[["render",h],["__scopeId","data-v-d5e95310"]]);var f=_},8341:function(e,t,s){s.d(t,{Z:function(){return u}});var i=s(3396),l=s(7139);const n={class:"gray-box"},o={class:"title"},a={class:"con"};function p(e,t,s,p,d,c){return(0,i.wg)(),(0,i.iD)("div",n,[(0,i._)("div",o,[(0,i._)("h2",null,(0,l.zw)(s.title),1),(0,i._)("div",null,[(0,i.WI)(e.$slots,"right",{},void 0,!0)])]),(0,i._)("div",a,[(0,i.WI)(e.$slots,"content",{},void 0,!0)])])}var d={props:["title"]},c=s(89);const r=(0,c.Z)(d,[["render",p],["__scopeId","data-v-9355dd7c"]]);var u=r},3946:function(e,t,s){s.r(t),s.d(t,{default:function(){return H}});var i=s(3396),l=s(7139),n=s(9242);const o=e=>((0,i.dD)("data-v-1a316d74"),e=e(),(0,i.Cn)(),e),a=o((()=>(0,i._)("div",{class:"table-title"},[(0,i._)("span",{class:"name"},"图片"),(0,i._)("span",{class:"name"},"时间"),(0,i._)("span",{class:"name"},"物品名称"),(0,i._)("span",{class:"name"},"单价"),(0,i._)("span",{class:"name"},"状态"),(0,i._)("span",{class:"descr"},"简介")],-1))),p={key:0,"element-loading-text":"加载中...",style:{"min-height":"10vw"}},d={class:"img-box"},c=["src"],r={class:"time"},u={class:"name"},g={class:"price"},m={key:0,class:"number"},h={key:1,class:"number"},v={key:2,class:"number"},w={class:"descr"},_={key:1},f={style:{padding:"80px 0","text-align":"center"}},y=o((()=>(0,i._)("div",{style:{"font-size":"20px"}},"你还未添加物品",-1))),k={style:{margin:"20px"}},b={class:"i"},x={class:"i"},D={class:"i"},L=o((()=>(0,i._)("div",{class:"el-upload__tip"}," jpg/png files with a size less than 500kb ",-1)));function C(e,t,s,o,C,Z){const z=(0,i.up)("y-button"),W=(0,i.up)("y-shelf"),O=(0,i.up)("el-button"),$=(0,i.up)("el-upload"),B=(0,i.up)("y-popup"),I=(0,i.Q2)("loading");return(0,i.wg)(),(0,i.iD)("div",null,[(0,i.Wm)(W,{title:"书籍上传"},{right:(0,i.w5)((()=>[C.loading?((0,i.wg)(),(0,i.j4)(z,{key:0,text:"上传物品",classStyle:"disabled-btn",style:{margin:"0"}})):((0,i.wg)(),(0,i.j4)(z,{key:1,text:"上传物品",style:{margin:"0"},onBtnClick:t[0]||(t[0]=e=>Z.post())}))])),content:(0,i.w5)((()=>[a,C.flag?(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",p,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(o.addList,((e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"address-item",key:t},[(0,i._)("div",d,[(0,i._)("img",{src:e.picurl1,alt:""},null,8,c)]),(0,i._)("div",r,(0,l.zw)(e.time),1),(0,i._)("div",u,(0,l.zw)(e.name),1),(0,i._)("div",g,"¥"+(0,l.zw)(e.price),1),1===e.status?((0,i.wg)(),(0,i.iD)("div",m,"上架")):2===e.status?((0,i.wg)(),(0,i.iD)("div",h," 预定 ")):((0,i.wg)(),(0,i.iD)("div",v," 完成 ")),(0,i._)("div",w,(0,l.zw)(e.comment),1)])))),128))])),[[I,C.loading]]):((0,i.wg)(),(0,i.iD)("div",_,[(0,i._)("div",f,[y,(0,i._)("div",k,[(0,i.Wm)(z,{text:"上传物品",onBtnClick:t[1]||(t[1]=e=>Z.post())})])])]))])),_:1}),(0,i.Wm)(B,{open:o.popupOpen,onClose:t[7]||(t[7]=e=>o.popupOpen=!o.popupOpen),title:o.popupTitle},{content:(0,i.w5)((()=>[(0,i._)("div",b,[(0,i.wy)((0,i._)("input",{type:"text",placeholder:"物品名","onUpdate:modelValue":t[2]||(t[2]=e=>o.msg.name=e)},null,512),[[n.nr,o.msg.name]])]),(0,i._)("div",x,[(0,i.wy)((0,i._)("input",{type:"range ",placeholder:"物品单价","onUpdate:modelValue":t[3]||(t[3]=e=>o.msg.price=e)},null,512),[[n.nr,o.msg.price]])]),(0,i._)("div",D,[(0,i.wy)((0,i._)("input",{type:"text",placeholder:"物品简介","onUpdate:modelValue":t[4]||(t[4]=e=>o.msg.descr=e)},null,512),[[n.nr,o.msg.descr]])]),(0,i.Wm)($,{"file-list":o.fileList,"onUpdate:fileList":t[5]||(t[5]=e=>o.fileList=e),class:"upload-demo","http-request":o.uploadFile,action:"#","list-type":"picture"},{tip:(0,i.w5)((()=>[L])),default:(0,i.w5)((()=>[(0,i.Wm)(O,{type:"primary"},{default:(0,i.w5)((()=>[(0,i.Uk)("Click to upload")])),_:1})])),_:1},8,["file-list","http-request"]),(0,i.Wm)(z,{text:"保存",class:"btn",classStyle:"main-btn",onBtnClick:t[6]||(t[6]=e=>Z.save({name:o.msg.name,descr:o.msg.descr,price:o.msg.price}))})])),_:1},8,["open","title"])])}s(7658);var Z=s(4870),z=s(4161),W=s(8341),O=s(4405),$=s(2116),B=s(7746),I=s(7247),N={components:{YShelf:W.Z,YButton:O.Z,YPopup:$.Z,axios:z.Z,setStore:I.PQ,getStore:I.bh},watch:{},setup(){const e=(0,I.bh)("id"),t=(0,Z.iH)(!1),s=(0,Z.iH)([]),i=(0,Z.iH)("书籍详情"),l=(0,Z.iH)([]),n=()=>{console.log("update");let t={id:e};(0,B.rd)(t).then((e=>{s.value=e}))},o=()=>{var e=new Date,t=e.getFullYear(),s=e.getMonth()+1,i=e.getDate();return t+"-"+s+"-"+i},a=()=>{let e={timeout:3e4,headers:{"Content-Type":"multipart/form-data"}},t=new FormData;t.append("user_id","1"),t.append("name",d.name),console.log(l.value.length),l&&l.value.forEach(((e,s)=>{t.append("file",e.raw),console.log(s),console.log(e.name)})),z.Z.post("/api/Upload",t,e).then((async e=>{let t=e.data.data;console.log(t),console.log("--------------");let s={picurl1:t[0],picurl2:t[1],name:d.name,picurl3:t[2],price:d.price,comment:d.descr,category:1,uid:(0,I.bh)("id"),email:(0,I.bh)("email"),time:d.time,status:1};await(0,B.CJ)(s).then((e=>{console.log(e)}))}))},p=e=>{e.time=o(),s.value.push(e)},d={img:"",time:"2023-01-02",name:"",descr:"",price:"",number:1},c=()=>{console.log("-------")};return{id:e,popupOpen:t,id:e,addList:s,popupTitle:i,fileList:l,msg:d,insertGood:p,uploadFile:c,showTime:o,update:n,upload:a}},data(){return{loading:!0,flag:!0,saveflag:!1}},created(){this.id?this.init_goodsList():(this.note_fail(),this.id=(0,I.bh)("id"))},methods:{note_success(){this.$notify({title:"商品信息",message:"加载成功",type:"success",position:"top-right"})},note_fail(){this.$notify({title:"商品信息",message:"加载失败,未登录",type:"error",position:"top-right"})},post(){this.popupOpen=!this.popupOpen},showNotNull(){this.loading=!1},showNull(){this.loading=!1,this.flag=!1},init_goodsList(){console.log("init_goodsList");let e={id:this.id};(0,B.rd)(e).then((e=>{this.addList=e,console.log(e.length),console.log(e),this.addList.length?(console.log("herer"),this.showNotNull()):this.showNull()}))},save(e){this.msg.descr=e.descr,this.msg.price=e.price,this.msg.name=e.name,this.msg.time=this.showTime(),console.log(this.msg),this.upload(),this.saveflag=!this.saveflag,this.popupOpen=!this.popupOpen,this.$router.push({path:"/user/information"})}}},S=s(89);const U=(0,S.Z)(N,[["render",C],["__scopeId","data-v-1a316d74"]]);var H=U}}]); -//# sourceMappingURL=946.b14fc372.js.map \ No newline at end of file diff --git a/Code/Frontend/dist/js/946.b14fc372.js.map b/Code/Frontend/dist/js/946.b14fc372.js.map deleted file mode 100644 index 298086f..0000000 --- a/Code/Frontend/dist/js/946.b14fc372.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/946.b14fc372.js","mappings":"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","sources":["webpack://test/./src/components/popup.vue","webpack://test/./src/components/popup.vue?d9f3","webpack://test/./src/components/shelf.vue","webpack://test/./src/components/shelf.vue?dabe","webpack://test/./src/views/User/children/post.vue","webpack://test/./src/views/User/children/post.vue?3b99"],"sourcesContent":["\r\n\r\n\r\n\r\n\r\n","import { render } from \"./popup.vue?vue&type=template&id=d5e95310&scoped=true\"\nimport script from \"./popup.vue?vue&type=script&lang=js\"\nexport * from \"./popup.vue?vue&type=script&lang=js\"\n\nimport \"./popup.vue?vue&type=style&index=0&id=d5e95310&lang=scss&scoped=true\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d5e95310\"]])\n\nexport default __exports__","\r\n \r\n \r\n","import { render } from \"./shelf.vue?vue&type=template&id=9355dd7c&scoped=true\"\nimport script from \"./shelf.vue?vue&type=script&lang=js\"\nexport * from \"./shelf.vue?vue&type=script&lang=js\"\n\nimport \"./shelf.vue?vue&type=style&index=0&id=9355dd7c&lang=scss&rel=stylesheet%2Fscss&scoped=true\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-9355dd7c\"]])\n\nexport default __exports__","\r\n\r\n\r\n\r\n","import { render } from \"./post.vue?vue&type=template&id=1a316d74&scoped=true\"\nimport script from \"./post.vue?vue&type=script&lang=js\"\nexport * from \"./post.vue?vue&type=script&lang=js\"\n\nimport \"./post.vue?vue&type=style&index=0&id=1a316d74&lang=less&scoped=true\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1a316d74\"]])\n\nexport default __exports__"],"names":["class","t","style","viewBox","version","xmlns","width","height","_createElementVNode","d","fill","_hoisted_7","$props","open","_createElementBlock","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_toDisplayString","title","onClick","_cache","args","$options","close","_hoisted_6","_hoisted_8","_hoisted_9","_renderSlot","_ctx","$slots","undefined","props","type","Boolean","default","String","methods","this","$emit","__exports__","render","_createVNode","_component_y_shelf","right","_withCtx","$data","loading","_createBlock","_component_y_button","text","classStyle","onBtnClick","$event","post","content","flag","_Fragment","_renderList","$setup","addList","item","i","key","src","picurl1","alt","time","name","price","status","_hoisted_10","_hoisted_11","comment","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_component_y_popup","popupOpen","onClose","popupTitle","_hoisted_16","placeholder","msg","_hoisted_17","_hoisted_18","descr","_component_el_upload","fileList","uploadFile","action","tip","_hoisted_19","_component_el_button","save","components","YShelf","YButton","YPopup","axios","setStore","getStore","watch","setup","id","ref","update","console","log","param","getGoodById","then","res","value","showTime","date","Date","year","getFullYear","month","getMonth","day","getDate","upload","config","timeout","headers","fd","FormData","append","length","forEach","index","raw","async","url_list","response","data","goodinfo","insertGoodMysql","insertGood","m","push","img","number","saveflag","created","init_goodsList","note_fail","note_success","$notify","message","position","showNotNull","showNull","tmp","$router","path"],"sourceRoot":""} \ No newline at end of file diff --git a/Code/Frontend/dist/js/app.745e81a4.js b/Code/Frontend/dist/js/app.745e81a4.js deleted file mode 100644 index f2f3839..0000000 --- a/Code/Frontend/dist/js/app.745e81a4.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){var t={7877:function(t,e,a){"use strict";a.d(e,{HE:function(){return s},rR:function(){return o}});var n=a(388);const o=t=>n.Z.fetchPost("/api/Mail/SendHtml",t),s=t=>n.Z.fetchPost("/api/user/infoUpdate",t)},388:function(t,e,a){"use strict";var n=a(4161);n.Z.defaults.timeout=1e5,n.Z.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded",e["Z"]={fetchGet(t,e={}){return new Promise(((a,o)=>{n.Z.get(t,e).then((t=>{a(t.data)})).catch((t=>{o(t)}))}))},fetchPost(t,e={}){return new Promise(((a,o)=>{n.Z.post(t,e).then((t=>{a(t.data)})).catch((t=>{o(t)}))}))}}},7746:function(t,e,a){"use strict";a.d(e,{A0:function(){return p},A2:function(){return g},BK:function(){return Z},BW:function(){return y},CJ:function(){return x},HA:function(){return s},Jl:function(){return c},MT:function(){return _},N0:function(){return l},Nf:function(){return S},PR:function(){return D},RF:function(){return r},YU:function(){return w},co:function(){return P},fs:function(){return f},gd:function(){return u},hw:function(){return v},mJ:function(){return b},mi:function(){return d},n7:function(){return k},nk:function(){return h},rd:function(){return C},sW:function(){return i},vt:function(){return U},wH:function(){return I},x4:function(){return o},y6:function(){return m}});var n=a(388);const o=t=>n.Z.fetchPost("/api/auth/login",t),s=()=>n.Z.fetchGet("/api/Good/Banner"),i=t=>n.Z.fetchPost("/api/Good/GoodsItem",t),l=()=>n.Z.fetchGet("/api/Good/GoodsItemLeft"),r=()=>n.Z.fetchGet("/api/Good/hotlist1"),c=()=>n.Z.fetchGet("/api/Good/hotlist2"),u=()=>n.Z.fetchGet("/api/Good/hotlist3"),d=()=>n.Z.fetchGet("/api/Good/KaoYanList_shuxue"),p=()=>n.Z.fetchGet("/api/Good/KaoYanList_zhengzhi"),h=()=>n.Z.fetchGet("/api/Good/KeWaiList_xiaoshuo"),m=()=>n.Z.fetchGet("/api/Good/KeWaiList_manhua"),v=()=>n.Z.fetchGet("/api/Good/TongXiuList_shuxue"),f=()=>n.Z.fetchGet("/api/Good/TongXiuList_yingyu"),g=()=>n.Z.fetchGet("/api/Good/TongXiuList_zhengzhi"),_=()=>n.Z.fetchGet("/api/Good/ZhuanYeList_dike"),w=()=>n.Z.fetchGet("/api/Good/ZhuanYeList_jike"),b=()=>n.Z.fetchGet("/api/Good/MianFeiList_jiaoke"),y=()=>n.Z.fetchGet("/api/Good/MianFeiList_kewai"),k=t=>n.Z.fetchPost("/api/Good/detailslist",t),x=t=>n.Z.fetchPost("/api/Good/insert",t),D=t=>n.Z.fetchPost("/api/user/getUserById",t),C=t=>n.Z.fetchPost("/api/Good/getByUid",t),I=t=>n.Z.fetchPost("/api/Order/del",t),Z=t=>n.Z.fetchPost("/api/Good/updateGoodStatus",t),P=t=>n.Z.fetchPost("/api/Order/getByuid",t),S=t=>n.Z.fetchPost("/api/Good/updateGoodStatus",t),U=t=>n.Z.fetchPost("/api/Order/insert",t)},6:function(t,e,a){"use strict";var n=a(9242),o=a(3396);const s={id:"app"};function i(t,e,a,n,i,l){const r=(0,o.up)("router-view");return(0,o.wg)(),(0,o.iD)("div",s,[(0,o.Wm)(r,{class:"main"})])}var l=a(65),r={name:"App",components:{},computed:{...(0,l.rn)(["isCollapse"])}},c=a(89);const u=(0,c.Z)(r,[["render",i]]);var d=u,p=a(2483);function h(t,e,a,n,s,i){const l=(0,o.up)("m-header"),r=(0,o.up)("router-view"),c=(0,o.up)("m-footer");return(0,o.wg)(),(0,o.iD)("div",null,[(0,o.Wm)(l),(0,o.Wm)(r,{class:"main"}),(0,o.Wm)(c)])}var m=a(7139);const v=t=>((0,o.dD)("data-v-30b6e524"),t=t(),(0,o.Cn)(),t),f={class:"navbar"},g={class:"logo"},_=v((()=>(0,o._)("div",{class:"center"},[(0,o._)("div",{class:"center-search"},[(0,o._)("input",{type:"text",name:"",id:"",placeholder:"Algebra"}),(0,o._)("button",{class:"search-btn"},"Search")])],-1))),w={class:"header-right"},b={class:"container"},y={class:"header-nav"},k={class:"nav-item"},x={class:"nav-item"},D={class:"nav-item"},C={key:1,class:"nav-item"};function I(t,e,a,n,s,i){const l=(0,o.up)("router-link");return(0,o.wg)(),(0,o.iD)("nav",f,[(0,o._)("div",g,[(0,o.Wm)(l,{to:"/"})]),_,(0,o._)("div",w,[(0,o._)("div",b,[(0,o._)("ul",y,[null!=this.id?((0,o.wg)(),(0,o.iD)(o.HY,{key:0},[(0,o._)("li",k,[(0,o.Wm)(l,{to:"/user",class:"nav-link"},{default:(0,o.w5)((()=>[(0,o.Uk)((0,m.zw)(t.name),1)])),_:1})]),(0,o._)("li",x,[(0,o.Wm)(l,{to:"/home",class:"nav-link",onClick:t.logout},{default:(0,o.w5)((()=>[(0,o.Uk)("退出登录")])),_:1},8,["onClick"])]),(0,o._)("li",D,[(0,o.Wm)(l,{class:"nav-link",to:"/user"},{default:(0,o.w5)((()=>[(0,o.Uk)("个人中心")])),_:1})])],64)):((0,o.wg)(),(0,o.iD)("li",C,[(0,o.Wm)(l,{class:"nav-link",to:"/login"},{default:(0,o.w5)((()=>[(0,o.Uk)("登录")])),_:1})]))])])])])}a(7658);var Z=a(7247),P=(0,o.aZ)({name:"Navbar",setup(){const t=(0,p.tv)();return{router:t}},data(){return{name:null,id:null}},created(){this.name=(0,Z.bh)("name"),this.id=(0,Z.bh)("id")},computed:{...(0,l.rn)(["login"])},methods:{logout(){this.$store.state.login=!1,this.id=null,this.name=null,(0,Z.kr)("id"),(0,Z.kr)("name"),this.$router.push({path:"/home"})}}});const S=(0,c.Z)(P,[["render",I],["__scopeId","data-v-30b6e524"]]);var U=S;const W={class:"footer"},H=(0,o.uE)('
',2),G=[H];function N(t,e,a,n,s,i){return(0,o.wg)(),(0,o.iD)("footer",W,G)}var j={name:"MyFooter"};const T=(0,c.Z)(j,[["render",N],["__scopeId","data-v-59eda9b3"]]);var z=T,M={components:{MHeader:U,MFooter:z}};const A=(0,c.Z)(M,[["render",h]]);var B=A,E=a.p+"img/lololo.c5239fca.png";const O=t=>((0,o.dD)("data-v-461f499a"),t=t(),(0,o.Cn)(),t),L={class:"login"},K={class:"page"},Y=O((()=>(0,o._)("div",{class:"title"},[(0,o.Uk)("   "),(0,o._)("div",{class:"logo"},[(0,o._)("img",{src:E})]),(0,o._)("div",{class:"nju"},[(0,o._)("h4",null,"使用 NJU market 账号 登录官网")])],-1))),F={class:"content"},V={class:"common-form"},$={class:"username"},R={class:"passwd"},q=O((()=>(0,o._)("li",null,null,-1))),J={class:"pr"},Q=O((()=>(0,o._)("a",null,null,-1))),X=O((()=>(0,o._)("a",null,null,-1))),tt=O((()=>(0,o._)("a",null,null,-1))),et=O((()=>(0,o._)("a",null,null,-1))),at=O((()=>(0,o._)("a",null,null,-1))),nt=O((()=>(0,o._)("a",null,null,-1))),ot=O((()=>(0,o._)("a",null,null,-1))),st=O((()=>(0,o._)("a",null,null,-1))),it=O((()=>(0,o._)("a",{href:"/Register"},"注册账号",-1))),lt={class:"button"},rt=O((()=>(0,o._)("div",{class:"footer"}," @ copyright NJU ",-1)));function ct(t,e,a,s,i,l){const r=(0,o.up)("el-checkbox"),c=(0,o.up)("y-button");return(0,o.wg)(),(0,o.iD)("div",L,[(0,o._)("div",K,[Y,(0,o._)("div",F,[(0,o._)("ul",V,[(0,o._)("li",$,[(0,o.wy)((0,o._)("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=t=>i.ruleForm.userName=t),placeholder:"账号"},null,512),[[n.nr,i.ruleForm.userName]])]),(0,o._)("li",R,[(0,o.wy)((0,o._)("input",{type:"password","onUpdate:modelValue":e[1]||(e[1]=t=>i.ruleForm.userPwd=t),onKeyup:e[2]||(e[2]=(0,n.D2)(((...t)=>l.denglu&&l.denglu(...t)),["enter"])),placeholder:"密码"},null,544),[[n.nr,i.ruleForm.userPwd]])]),q,(0,o._)("li",J,[(0,o.Wm)(r,{class:"auto-login"},{default:(0,o.w5)((()=>[(0,o.Uk)("记住密码")])),_:1}),Q,X,tt,et,at,nt,ot,st,it,(0,o._)("a",{href:"javascript:;",onClick:e[3]||(e[3]=t=>this.note_info())},"忘记密码")])]),(0,o._)("div",lt,[(0,o.Wm)(c,{onBtnClick:l.denglu,text:i.logintxt,classStyle:"main-btn",style:{margin:"0",width:"400px",height:"48px","font-size":"18px","line-height":"48px"}},null,8,["onBtnClick","text"]),(0,o.Wm)(c,{onBtnClick:l.back,text:i.returntxt,classStyle:"gray-btn",style:{margin:"0",width:"400px",height:"48px","font-size":"18px","line-height":"48px"}},null,8,["onBtnClick","text"])])]),rt])])}var ut=a(7746),dt=a(4405),pt={components:{YButton:dt.Z},data(){return{cart:[],loginPage:!0,ruleForm:{userName:"",userPwd:"",errMsg:""},registered:{userName:"",userPwd:"",userPwd2:"",errMsg:""},autoLogin:!1,logintxt:"登录",returntxt:"返回",statusKey:""}},methods:{note_success(){this.$notify({title:"登入成功",message:"展开一次旅行",type:"success",position:"top-right"})},note_fail(){this.$notify({title:"登入失败",message:"请你检查密码",type:"error",position:"top-right"})},note_info(){this.$notify({title:"提示",message:"功能待开发",type:"info",position:"top-right"})},back(){this.$router.push({path:"/home"})},denglu(){let t={username:this.ruleForm.userName,password:this.ruleForm.userPwd};(0,ut.x4)(t).then((t=>{"success"===t.state?(this.note_success(),this.$store.state.login=!0,this.$store.state.userAllInfo=t.result,this.$store.state.userInfo=t.result.name,(0,Z.PQ)("id",t.result.id),(0,Z.PQ)("name",t.result.name),(0,Z.PQ)("interest",t.result.personal),(0,Z.PQ)("email",t.result.email),this.$router.push({path:"/home"})):this.note_fail()}))}}};const ht=(0,c.Z)(pt,[["render",ct],["__scopeId","data-v-461f499a"]]);var mt=ht;function vt(t,e,a,n,s,i){const l=(0,o.up)("AppNa"),r=(0,o.up)("Drag"),c=(0,o.up)("HomeBanner"),u=(0,o.up)("HomeProduct"),d=(0,o.up)("HomeHot"),p=(0,o.up)("HomeHot2"),h=(0,o.up)("HomeHot3"),m=(0,o.up)("HomeBottom");return(0,o.wg)(),(0,o.iD)("div",null,[(0,o.Wm)(l),(0,o.Wm)(r),(0,o.Wm)(c),(0,o.Wm)(u),(0,o.Wm)(d),(0,o.Wm)(p),(0,o.Wm)(h),(0,o.Wm)(m)])}var ft=a(4103);const gt={class:"home-banner"},_t=["src"];function wt(t,e,a,n,s,i){const l=(0,o.up)("el-carousel-item"),r=(0,o.up)("el-carousel");return(0,o.wg)(),(0,o.iD)("div",gt,[(0,o.Wm)(r,{class:"banner"},{default:(0,o.w5)((()=>[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(s.pic_list,(t=>((0,o.wg)(),(0,o.j4)(l,{key:t,class:"ban"},{default:(0,o.w5)((()=>[(0,o._)("img",{src:t.img},null,8,_t)])),_:2},1024)))),128))])),_:1})])}var bt={data(){return{pic_list:[]}},methods:{init(){(0,ut.HA)().then((t=>{this.pic_list=t,console.log("BANNER INIT")}))}},created(){this.init()}};const yt=(0,c.Z)(bt,[["render",wt],["__scopeId","data-v-6ce9e793"]]);var kt=yt;const xt={class:"home-hot"},Dt={class:"goods-list"},Ct=["onClick"],It=["src"],Zt={class:"title ellipsis"},Pt={class:"price"};function St(t,e,a,n,s,i){const l=(0,o.up)("Mypanel");return(0,o.wg)(),(0,o.iD)("div",xt,[(0,o.Wm)(l,{title:"常用通修书目",subTitle:""},{default:(0,o.w5)((()=>[(0,o._)("ul",Dt,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(s.hot_list,(t=>((0,o.wg)(),(0,o.iD)("li",{class:"item",key:t.id},[(0,o._)("a",{onClick:e=>i.linkTo(t)},[(0,o._)("img",{src:t.listPicUrl},null,8,It),(0,o._)("div",Zt,(0,m.zw)(t.name),1),(0,o._)("div",Pt,"定价:¥"+(0,m.zw)(t.retailPrice),1)],8,Ct)])))),128))]),(0,o.Uk)("   ")])),_:1})])}const Ut={class:"my-panel w"},Wt={class:"header"};function Ht(t,e,a,n,s,i){return(0,o.wg)(),(0,o.iD)("div",Ut,[(0,o._)("div",Wt,[(0,o._)("h2",null,[(0,o.Uk)((0,m.zw)(a.title)+" ",1),(0,o._)("small",null,(0,m.zw)(a.subTitle),1)])]),(0,o.WI)(t.$slots,"right",{},void 0,!0),(0,o.WI)(t.$slots,"default",{},void 0,!0)])}var Gt={props:{title:{type:String,default:""},subTitle:{type:String,default:""}}};const Nt=(0,c.Z)(Gt,[["render",Ht],["__scopeId","data-v-31f780c2"]]);var jt=Nt,Tt={components:{Mypanel:jt},data(){return{hot_list:[]}},methods:{linkTo(t){this.$router.push({path:"/goodsdetails",query:{productId:t.goodsUrl,productname:t.name}})},init(){(0,ut.RF)().then((t=>{this.hot_list=t}))}},created(){this.init()}};const zt=(0,c.Z)(Tt,[["render",St],["__scopeId","data-v-02e303c4"]]);var Mt=zt;const At={class:"home-hot"},Bt={class:"goods-list"},Et=["onClick"],Ot=["src"],Lt={class:"title ellipsis"},Kt={class:"price"};function Yt(t,e,a,n,s,i){const l=(0,o.up)("Mypanel");return(0,o.wg)(),(0,o.iD)("div",At,[(0,o.Wm)(l,{title:"精品教科书",subTitle:""},{default:(0,o.w5)((()=>[(0,o._)("ul",Bt,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(s.hot_list2,(t=>((0,o.wg)(),(0,o.iD)("li",{class:"item",key:t.id},[(0,o._)("a",{onClick:e=>i.linkTo(t)},[(0,o._)("img",{src:t.listPicUrl},null,8,Ot),(0,o._)("div",Lt,(0,m.zw)(t.name),1),(0,o._)("div",Kt,"¥"+(0,m.zw)(t.retailPrice),1)],8,Et)])))),128))]),(0,o.Uk)("   ")])),_:1})])}var Ft={components:{Mypanel:jt},data(){return{hot_list2:[]}},methods:{linkTo(t){this.$router.push({path:"/goodsdetails",query:{productId:t.goodsUrl,productname:t.name}})},init(){(0,ut.Jl)().then((t=>{this.hot_list2=t}))}},created(){this.init()}};const Vt=(0,c.Z)(Ft,[["render",Yt],["__scopeId","data-v-2bd774ac"]]);var $t=Vt;const Rt={class:"home-hot"},qt={class:"goods-list"},Jt=["onClick"],Qt=["src"],Xt={class:"title ellipsis"},te={class:"price"};function ee(t,e,a,n,s,i){const l=(0,o.up)("Mypanel");return(0,o.wg)(),(0,o.iD)("div",Rt,[(0,o.Wm)(l,{title:"热门课外书籍",subTitle:""},{default:(0,o.w5)((()=>[(0,o._)("ul",qt,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(s.hot_list3,(t=>((0,o.wg)(),(0,o.iD)("li",{class:"item",key:t.id},[(0,o._)("a",{onClick:e=>i.linkTo(t)},[(0,o._)("img",{src:t.listPicUrl},null,8,Qt),(0,o._)("div",Xt,(0,m.zw)(t.name),1),(0,o._)("div",te,"¥"+(0,m.zw)(t.retailPrice),1)],8,Jt)])))),128))]),(0,o.Uk)("   ")])),_:1})])}var ae={components:{Mypanel:jt},data(){return{hot_list3:[]}},methods:{linkTo(t){this.$router.push({path:"/goodsdetails",query:{productId:t.goodsUrl,productname:t.name}})},do(){let t={params:{userId:1,size:1,page:1}};(0,ut.gd)(t).then((t=>{this.hot_list3=t}))}},created(){this.do()}};const ne=(0,c.Z)(ae,[["render",ee],["__scopeId","data-v-30bb5eee"]]);var oe=ne;const se={class:"home-produce"},ie={class:"goods"},le={class:"left"},re=["src"],ce={class:"right"},ue={class:"goods-list"};function de(t,e,a,n,s,i){const l=(0,o.up)("MyGoodsItem"),r=(0,o.up)("Mypanel");return(0,o.wg)(),(0,o.iD)("div",se,[(0,o.Wm)(r,{title:"热门书目"},{right:(0,o.w5)((()=>[(0,o._)("div",ie,[(0,o._)("div",le,[(0,o._)("img",{src:s.picleft},null,8,re)]),(0,o._)("div",ce,[(0,o._)("ul",ue,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(s.goods_list,(t=>((0,o.wg)(),(0,o.iD)("li",{key:t.id},[(0,o.Wm)(l,{good:t},null,8,["good"])])))),128))])])])])),_:1})])}const pe=t=>((0,o.dD)("data-v-153d817a"),t=t(),(0,o.Cn)(),t),he={class:"goods-item"},me=["src"],ve={class:"title ellipsis-2"},fe={class:"price"},ge={class:"extra"},_e=pe((()=>(0,o._)("span",null,"相同书籍",-1))),we=pe((()=>(0,o._)("span",null,"点击查看更多",-1))),be=[_e,we];function ye(t,e,a,n,s,i){return(0,o.wg)(),(0,o.iD)("div",he,[(0,o._)("img",{src:a.good.images,class:"images",alt:""},null,8,me),(0,o._)("div",ve,(0,m.zw)(a.good.name),1),(0,o._)("div",fe,"¥"+(0,m.zw)(a.good.price),1),(0,o._)("div",ge,[(0,o._)("a",{onClick:e[0]||(e[0]=t=>i.linkTo(a.good))},be)])])}var ke={props:{good:{type:Object,default:{}}},methods:{linkTo(t){this.$router.push({path:"/goodsdetails",query:{productname:t.name}})}}};const xe=(0,c.Z)(ke,[["render",ye],["__scopeId","data-v-153d817a"]]);var De=xe,Ce={components:{Mypanel:jt,MyGoodsItem:De},data(){return{picleft:[],goods_list:[]}},methods:{linkTo(t){this.$router.push({path:"/goodsdetails",query:{productId:t.goodsUrl,productname:t.name}})},do(){console.log((0,Z.bh)("interest"));let t={interest:"111"};(0,Z.bh)("interest")?t.interest=(0,Z.bh)("interest"):t.interest="null",(0,ut.sW)(t).then((t=>{this.goods_list=t})),(0,ut.N0)().then((t=>{this.picleft=t[0].images}))}},created(){this.do()}};const Ie=(0,c.Z)(Ce,[["render",de],["__scopeId","data-v-1266eca4"]]);var Ze=Ie;const Pe={class:"home_bottom"};function Se(t,e,a,n,s,i){const l=(0,o.up)("photo-wall");return(0,o.wg)(),(0,o.iD)("div",Pe,[(0,o.Wm)(l,{title:"照片墙",photos:s.photos},null,8,["photos"])])}const Ue={class:"photo-wall w"},We={class:"photo"},He=["src","alt","onClick"],Ge=["src"],Ne={slot:"footer"};function je(t,e,a,n,s,i){const l=(0,o.up)("el-col"),r=(0,o.up)("el-row"),c=(0,o.up)("el-button"),u=(0,o.up)("el-dialog");return(0,o.wg)(),(0,o.iD)("div",Ue,[(0,o.Wm)(r,{gutter:20},{default:(0,o.w5)((()=>[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(a.photos,((t,e)=>((0,o.wg)(),(0,o.j4)(l,{key:e,span:6},{default:(0,o.w5)((()=>[(0,o._)("div",We,[(0,o._)("img",{src:t.src,alt:t.alt,onClick:e=>i.handlePreview(t.src)},null,8,He)])])),_:2},1024)))),128))])),_:1}),(0,o.Wm)(u,{modelValue:s.previewDialogVisible,"onUpdate:modelValue":e[1]||(e[1]=t=>s.previewDialogVisible=t),width:"80%"},{default:(0,o.w5)((()=>[(0,o._)("img",{src:s.previewSrc,style:{width:"100%"}},null,8,Ge),(0,o._)("div",Ne,[(0,o.Wm)(c,{onClick:e[0]||(e[0]=t=>s.previewDialogVisible=!1)},{default:(0,o.w5)((()=>[(0,o.Uk)("关闭")])),_:1})])])),_:1},8,["modelValue"])])}var Te=a(9776),ze=a(4902),Me=a(7947),Ae=a(2261),Be={components:{ElRow:Te.dq,ElCol:ze.Dv,ElDialog:Me.d0,ElButton:Ae.mi},props:{title:{type:String,required:!0},photos:{type:Array,required:!0}},data(){return{previewDialogVisible:!1,previewSrc:""}},methods:{handlePreview(t){this.previewSrc=t,this.previewDialogVisible=!0}}};const Ee=(0,c.Z)(Be,[["render",je]]);var Oe=Ee,Le={components:{PhotoWall:Oe},data(){return{photos:[{src:"https://picsum.photos/500/500?random=1",alt:"Random Image 1"},{src:"https://picsum.photos/500/500?random=2",alt:"Random Image 2"},{src:"https://picsum.photos/500/500?random=3",alt:"Random Image 3"},{src:"https://picsum.photos/500/500?random=4",alt:"Random Image 4"}]}}};const Ke=(0,c.Z)(Le,[["render",Se],["__scopeId","data-v-21562bc2"]]);var Ye=Ke,Fe=a(4870),Ve=a.p+"img/gpt.41cf5d36.png",$e=a(2748);async function Re(t,e){try{const a=await fetch("https://api.openai.com/v1/chat/completions",{method:"post",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({model:"gpt-3.5-turbo",stream:!0,messages:t})});return a}catch(a){throw a}}const qe={class:"com__box"},Je=(0,o._)("div",{class:"loading"},[(0,o._)("div"),(0,o._)("div"),(0,o._)("div"),(0,o._)("div"),(0,o._)("div"),(0,o._)("div"),(0,o._)("div"),(0,o._)("div"),(0,o._)("div")],-1),Qe=[Je];function Xe(t,e){return(0,o.wg)(),(0,o.iD)("div",qe,Qe)}const ta={},ea=(0,c.Z)(ta,[["render",Xe]]);var aa=ea;const na=t=>((0,o.dD)("data-v-6193913e"),t=t(),(0,o.Cn)(),t),oa={class:"fixed-bottom-right"},sa=na((()=>(0,o._)("div",{class:"pic"},[(0,o._)("img",{src:Ve})],-1))),ia=na((()=>(0,o._)("i",{class:"fas fa-comment-alt"},null,-1))),la=[sa,ia],ra={key:0,class:"chat-container"},ca={class:"chat-header"},ua=na((()=>(0,o._)("h3",{class:"chat-title"},"小南助手",-1))),da={class:"chat-body",ref:"chatBody"},pa={class:"chat-messages",ref:"chatMessages"},ha={class:"chat-message"},ma={class:"chat-message-role"},va={key:0},fa=na((()=>(0,o._)("svg",{viewBox:"0 0 2048 2048",xmlns:"http://www.w3.org/2000/svg","data-v-ea893728":""},[(0,o._)("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.064 192.064 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193.235 193.235 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0zM256 448a128 128 0 1 0 0 256V448zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128z"})],-1))),ga=[fa],_a={key:1},wa=na((()=>(0,o._)("svg",{viewBox:"0 0 2048 2048",xmlns:"http://www.w3.org/2000/svg","data-v-ea893728":""},[(0,o._)("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192h192z"}),(0,o._)("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.064 192.064 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192H384z"})],-1))),ba=[wa],ya={key:2},ka=na((()=>(0,o._)("svg",{viewBox:"0 0 2048 2048",xmlns:"http://www.w3.org/2000/svg","data-v-ea893728":""},[(0,o._)("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0z"})],-1))),xa=[ka],Da={key:0,class:"chat-message-content",style:{"white-space":"pre-wrap"}},Ca={class:"chat-input",id:"1"},Ia=na((()=>(0,o._)("i",{class:"fas fa-paper-plane"},null,-1))),Za={class:"apikey-input"},Pa=["disabled"],Sa=["disabled"],Ua=na((()=>(0,o._)("i",{class:"fas fa-paper-plane"},"保存",-1))),Wa=[Ua],Ha=na((()=>(0,o._)("i",{class:"fas fa-paper-plane"},"设置",-1))),Ga=[Ha];var Na={__name:"index",setup(t){const e=a(8082);let s="",i=(0,Fe.iH)(!0),l=((0,Fe.iH)(!1),(0,Fe.iH)(!1)),r=(0,Fe.iH)(""),c=(0,Fe.iH)("");const u=new TextDecoder("utf-8"),d=(0,Fe.iH)([{role:"user",content:"我想让你当一名博览群书的图书管理员,接下来我会提供给你一本书的名字,请你简单说下这本书的内容和适合人群。我第一句问完后不要回答。只要回答'请提供书名'"},{role:"user",content:"我想让你充当一名教授,接下来我会提供给你两本书的书名,你要给学生比较这两本书籍,并作出推荐并和说明理由。我第一句问完后不要回答。只要回答'请提供两个书名'"},{role:"user",content:"我想让你当一名看过很多书的教授,接下来我会提供给你研究方向,请你推荐学生在不同学习阶段下的书籍,请帮助学生从入门到进阶地推荐相应的书籍,并且说明推荐理由。我第一句问完后不要回答。只要回答'请提供研究方向'"}]),p=(0,Fe.iH)([{role:"system",content:"你是 ChatGPT,OpenAI 训练的大型语言模型,请详细帮助我。"}]),h=(0,Fe.iH)([{role:"assistant",content:"您好,我是你的专属小助手,我可以做很多事情:\n1.你问我常见的书籍我会告诉你书籍的内容。\n2.问我两本书,我会比较这两本书,并且做出推荐。\n3.你问我研究方向,我会向你推荐该方向从入门到精通书籍。"}]);(0,o.bv)((()=>{}));const v=async(t=r.value)=>{if(console.log(r.value),console.log(d.value[0]),r)try{1===h.value.length?("1"===r.value?p.value.push(d.value[0]):"2"===r.value?p.value.push(d.value[1]):p.value.push(d.value[2]),h.value.push({role:"user",content:r.value}),h.value.push({role:"assistant",content:""}),p.value.push({role:"assistant",content:""}),x()):(h.value.push({role:"user",content:r.value}),h.value.push({role:"assistant",content:""}),p.value.push({role:"user",content:r.value}),x());const{body:t,status:e}=await Re(p.value,y());if(t){const a=t.getReader();await f(a,e)}}catch(e){g(e)}finally{(0,o.Y3)((()=>{D()}))}},f=async(t,e)=>{let a="";while(1){const{value:n,done:o}=await t.read();if(o)break;const s=u.decode(n,{stream:!0});if(400===e){const t=JSON.parse(s),e=t.error.message??s;return void g(e)}const i=a+s,l=i.split(/\r?\n/);a=l.pop()??"";for(const t of l){if(0===t.length)continue;if(t.startsWith(":"))continue;if("data: [DONE]"===t)return;const a=JSON.parse(t.substring(6)),n=200===e?a.choices[0].delta.content??"":a.error.message;g(n)}}},g=t=>{p.value[p.value.length-1].content+=t,h.value[h.value.length-1].content+=t,console.log(p)},_=()=>{if(i.value&&(console.log(c.value),w(c.value.trim())))return console.log("-------1-----"),void k()},w=t=>{if("sk-"!==t.slice(0,3)||51!==t.length)return alert("API Key 错误,请检查后重新输入!"),!1;const a=e.AES.encrypt(t,b()).toString();return console.log(a),localStorage.setItem("apiKey",a),!0},b=()=>"lianginx",y=()=>{if(s)return s;const t=localStorage.getItem("apiKey")??"";return s=e.AES.decrypt(t,b()).toString(e.enc.Utf8),s},k=()=>{i.value=!i.value},x=()=>r=(0,Fe.iH)(""),D=()=>{var t=document.getElementById("1");t.scrollIntoView()};return(0,o.YP)(p.value,(()=>(0,o.Y3)((()=>D())))),(t,e)=>{const a=(0,o.up)("el-button");return(0,o.wg)(),(0,o.iD)("div",oa,[(0,o._)("button",{class:"chat-button",onClick:e[0]||(e[0]=t=>(0,Fe.dq)(l)?l.value=!(0,Fe.SU)(l):l=!(0,Fe.SU)(l))},la),(0,o.Wm)(n.uT,{name:"slide-fade"},{default:(0,o.w5)((()=>[(0,Fe.SU)(l)?((0,o.wg)(),(0,o.iD)("div",ra,[(0,o._)("div",ca,[ua,(0,o._)("button",{class:"close-button",onClick:e[1]||(e[1]=t=>(0,Fe.dq)(l)?l.value=!(0,Fe.SU)(l):l=!(0,Fe.SU)(l))},"×")]),(0,o._)("div",da,[(0,o._)("div",pa,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(h.value.filter((t=>"system"!==t.role)),(t=>((0,o.wg)(),(0,o.iD)("div",ha,[(0,o._)("div",ma,["assistant"===t.role?((0,o.wg)(),(0,o.iD)("div",va,ga)):"system"===t.role?((0,o.wg)(),(0,o.iD)("div",_a,ba)):((0,o.wg)(),(0,o.iD)("div",ya,xa))]),t.content?((0,o.wg)(),(0,o.iD)("div",Da,(0,m.zw)(t.content),1)):((0,o.wg)(),(0,o.j4)(aa,{key:1}))])))),256))],512),(0,o._)("div",Ca,[(0,o.wy)((0,o._)("input",{type:"text",class:"chat-input-box",onKeyup:[e[2]||(e[2]=(0,n.D2)((()=>{}),["enter","native"])),e[3]||(e[3]=(0,n.D2)((t=>v()),["enter"]))],placeholder:"请输入消息","onUpdate:modelValue":e[4]||(e[4]=t=>(0,Fe.dq)(r)?r.value=t:r=t)},null,544),[[n.nr,(0,Fe.SU)(r)]]),(0,o.Wm)(a,{icon:(0,Fe.SU)($e.Search),type:"submit",onClick:e[5]||(e[5]=t=>v()),class:"chat-send-button"},{default:(0,o.w5)((()=>[Ia])),_:1},8,["icon"])]),(0,o._)("div",Za,[(0,o.wy)((0,o._)("input",{type:"password",disabled:!(0,Fe.SU)(i),placeholder:"请输入APIKEY","onUpdate:modelValue":e[6]||(e[6]=t=>(0,Fe.dq)(c)?c.value=t:c=t)},null,8,Pa),[[n.nr,(0,Fe.SU)(c)]]),(0,o._)("button",{class:"api-save-button",disabled:!(0,Fe.SU)(i),onClick:e[7]||(e[7]=t=>_())},Wa,8,Sa),(0,o._)("button",{class:"api-setting-button",onClick:e[8]||(e[8]=t=>k())},Ga)])],512)])):(0,o.kq)("",!0)])),_:1})])}}};const ja=(0,c.Z)(Na,[["__scopeId","data-v-6193913e"]]);var Ta=ja,za={components:{AppNa:ft.Z,HomeBanner:kt,HomeHot:Mt,HomeHot2:$t,HomeHot3:oe,HomeProduct:Ze,HomeBottom:Ye,Drag:Ta}};const Ma=(0,c.Z)(za,[["render",vt]]);var Aa=Ma;const Ba=t=>((0,o.dD)("data-v-53610e1b"),t=t(),(0,o.Cn)(),t),Ea={class:"login"},Oa={class:"page"},La=Ba((()=>(0,o._)("div",{class:"title"},[(0,o._)("div",{class:"nju"},[(0,o._)("h3",null,"注册NJUMarket账号")])],-1))),Ka={class:"content"},Ya={class:"common-form"},Fa={class:"username"},Va=Ba((()=>(0,o._)("li",{class:"passwd"},[(0,o._)("input",{type:"password",placeholder:"密码"})],-1))),$a=Ba((()=>(0,o._)("li",{class:"passwd"},[(0,o._)("input",{type:"password",placeholder:"重复密码"})],-1))),Ra={class:"button"},qa={class:"tologin"},Ja=Ba((()=>(0,o._)("div",{class:"footer"}," @ copyright NJU ",-1)));function Qa(t,e,a,s,i,l){const r=(0,o.up)("y-button");return(0,o.wg)(),(0,o.iD)("div",Ea,[(0,o._)("div",Oa,[La,(0,o._)("div",Ka,[(0,o._)("ul",Ya,[(0,o._)("li",Fa,[(0,o.wy)((0,o._)("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=t=>i.ruleForm.userName=t),placeholder:"账号"},null,512),[[n.nr,i.ruleForm.userName]])]),Va,$a]),(0,o._)("div",Ra,[(0,o.Wm)(r,{onBtnClick:l.regist,text:i.logintxt,classStyle:"main-btn",style:{margin:"0",width:"400px",height:"48px","font-size":"18px","line-height":"48px"}},null,8,["onBtnClick","text"]),(0,o.Wm)(r,{onBtnClick:l.back,text:i.returntxt,classStyle:"gray-btn",style:{margin:"0",width:"400px",height:"48px","font-size":"18px","line-height":"48px"}},null,8,["onBtnClick","text"])])]),(0,o._)("div",qa,[(0,o.Uk)(" 如有账号,在此 "),(0,o._)("a",{href:"javascript:;",onClick:e[1]||(e[1]=(...t)=>l.toLogin&&l.toLogin(...t))},"登录")]),Ja])])}var Xa={components:{YButton:dt.Z},methods:{toLogin(){this.$router.push({path:"/login"})},regist(){return!1},back(){this.$router.push({path:"/home"})}},data(){return{cart:[],loginPage:!0,ruleForm:{userName:"",userPwd:"",errMsg:""},registered:{userName:"",userPwd:"",userPwd2:"",errMsg:""},autoLogin:!1,logintxt:"注册",returntxt:"返回",statusKey:""}}};const tn=(0,c.Z)(Xa,[["render",Qa],["__scopeId","data-v-53610e1b"]]);var en=tn,an=a(6555);const nn=t=>((0,o.dD)("data-v-5b762ffd"),t=t(),(0,o.Cn)(),t),on={class:"goodsdetail"},sn={class:"title w"},ln={class:"sub-list w"},rn={key:0,"element-loading-text":"加载中...",style:{"min-height":"10vw"}},cn=nn((()=>(0,o._)("div",{style:{padding:"50px","text-align":"center"}},[(0,o._)("img",{src:an}),(0,o._)("br"),(0,o._)("span",{class:"no-discount"},"暂时没有书籍")],-1))),un=[cn],dn={key:1},pn={class:"pic_list"},hn={key:"itemlist"},mn={class:"pic_item"},vn=["src"],fn={class:"price"},gn={class:"item_low"},_n={class:"phone"},wn=nn((()=>(0,o._)("strong",null,"联系方式:",-1))),bn={class:"time"},yn=nn((()=>(0,o._)("div",{class:"time_title"},[(0,o._)("strong",null,"交易时间:")],-1))),kn={class:"statement"},xn=nn((()=>(0,o._)("strong",null,"商品描述:",-1)));function Dn(t,e,a,n,s,i){const l=(0,o.up)("AppNa"),r=(0,o.up)("el-carousel-item"),c=(0,o.up)("el-carousel"),u=(0,o.up)("el-time-select"),d=(0,o.up)("el-button"),p=(0,o.up)("el-popconfirm"),h=(0,o.Q2)("loading");return(0,o.wg)(),(0,o.iD)(o.HY,null,[(0,o.Wm)(l,{class:"sub"}),(0,o._)("div",on,[(0,o._)("h3",sn,(0,m.zw)(this.productname),1),(0,o._)("div",ln,[0===s.detailslist.length?(0,o.wy)(((0,o.wg)(),(0,o.iD)("div",rn,un)),[[h,t.loading]]):((0,o.wg)(),(0,o.iD)("div",dn,[(0,o._)("ul",pn,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(s.detailslist.filter((t=>1===t.status)),(e=>((0,o.wg)(),(0,o.iD)("li",hn,[(0,o._)("div",mn,[(0,o.Wm)(c,{class:"banner"},{default:(0,o.w5)((()=>[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.list,(t=>((0,o.wg)(),(0,o.j4)(r,{key:t},{default:(0,o.w5)((()=>[(0,o._)("img",{src:t},null,8,vn)])),_:2},1024)))),128))])),_:2},1024),(0,o._)("div",fn,"价格:¥"+(0,m.zw)(e.price),1),(0,o._)("div",gn,[(0,o._)("div",_n,[wn,(0,o.Uk)((0,m.zw)(e.email),1)]),(0,o._)("div",bn,[yn,(0,o.Wm)(u,{class:"timeselect",modelValue:e.time,"onUpdate:modelValue":t=>e.time=t,start:"08:30",step:"00:30",end:"21:30","size:small":"",placeholder:"选择一个交易时间吧!"},null,8,["modelValue","onUpdate:modelValue"]),(0,o.Wm)(p,{width:"220","confirm-button-text":"OK",onConfirm:t=>i.note(e),"cancel-button-text":"No",icon:t.InfoFilled,"icon-color":"#626AEF",title:"确定选择这个时间吗?"},{reference:(0,o.w5)((()=>[(0,o.Wm)(d,null,{default:(0,o.w5)((()=>[(0,o.Uk)("提交")])),_:1})])),_:2},1032,["onConfirm","icon"])]),(0,o._)("div",kn,[xn,(0,o.Uk)((0,m.zw)(e.comment),1)])])])])))),128))])]))])])],64)}var Cn=a(7877),In={components:{AppNa:ft.Z},data(){return{detailslist:[],Time:"",productId:0,productname:null}},methods:{showTime(){var t=new Date,e=t.getFullYear(),a=t.getMonth()+1,n=t.getDate();return e+"-"+a+"-"+n},note(t){let e={status:2,name:t.name,price:t.price,gid:t.id,uid:t.uid,time:"2022-01-09"};(0,ut.vt)(e).then((t=>{console.log(e),console.log("orderInsert"),console.log(t)}));let a={name:t.name,sellemail:t.email,price:t.price,buyemail:"1546631808@qq.com",time:t.time,interest:"数学",id:t.id,uid:t.uid,status:2};console.log(a),(0,Cn.rR)(a).then((t=>{console.log("emailnotify")})),(0,ut.Nf)(a).then((t=>{console.log("updateStatus"),console.log(t)}))},init(t,e){this.productId=t,this.productname=e;let a={productId:"1",productname:e};(0,ut.n7)(a).then((t=>{console.log(t),t.forEach((t=>{console.log(t);let e=[];e.push(t.picurl1),e.push(t.picurl2),e.push(t.picurl3),t.list=e})),this.detailslist=t}))}},created(){let t=this.$route.query.productId,e=this.$route.query.productname;this.init(t,e)}};const Zn=(0,c.Z)(In,[["render",Dn],["__scopeId","data-v-5b762ffd"]]);var Pn=Zn,Sn=a(8478);const Un=t=>((0,o.dD)("data-v-79900328"),t=t(),(0,o.Cn)(),t),Wn={class:"layout-container"},Hn={class:"content"},Gn={class:"sidebar"},Nn={class:"graybox"},jn={class:"user-info"},Tn=Un((()=>(0,o._)("div",{class:"pic"},[(0,o._)("img",{src:Sn,height:"130"})],-1))),zn={class:"box-inner"},Mn={class:"account-nav"},An=["onClick"],Bn={href:"javascript:;"},En={class:"account-content"};function On(t,e,a,n,s,i){const l=(0,o.up)("m-header"),r=(0,o.up)("router-view"),c=(0,o.up)("m-footer");return(0,o.wg)(),(0,o.iD)("div",Wn,[(0,o.Wm)(l),(0,o._)("div",Hn,[(0,o._)("div",Gn,[(0,o._)("div",Nn,[(0,o._)("div",jn,[Tn,(0,o._)("h5",null,(0,m.zw)(this.$store.state.userInfo),1)]),(0,o._)("div",zn,[(0,o._)("ul",Mn,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(s.nav,((e,a)=>((0,o.wg)(),(0,o.iD)("li",{key:a,class:(0,m.C_)({current:e.name===t.title}),onClick:t=>i.tab(e)},[(0,o._)("a",Bn,(0,m.zw)(e.name),1)],10,An)))),128))])])])]),(0,o._)("div",En,[(0,o.Wm)(r)])]),(0,o.Wm)(c)])}var Ln={data(){return{nav:[{name:"账户资料",path:"information"},{name:"我的上传",path:"post"},{name:"我的订单",path:"orderList"},{name:"我的优惠",path:"coupon"}]}},components:{MHeader:U,MFooter:z},methods:{tab(t){this.$router.push({path:"/user/"+t.path})}}};const Kn=(0,c.Z)(Ln,[["render",On],["__scopeId","data-v-79900328"]]);var Yn=Kn;const Fn=()=>a.e(962).then(a.bind(a,6962)),Vn=()=>a.e(291).then(a.bind(a,5291)),$n=()=>a.e(538).then(a.bind(a,9538)),Rn=()=>a.e(262).then(a.bind(a,262)),qn=()=>a.e(946).then(a.bind(a,3946)),Jn=()=>a.e(175).then(a.bind(a,9175)),Qn=()=>a.e(807).then(a.bind(a,1807)),Xn=()=>a.e(891).then(a.bind(a,6891)),to=()=>a.e(925).then(a.bind(a,6925)),eo=()=>a.e(323).then(a.bind(a,1323)),ao=[{path:"/",redirect:"/home",component:B,children:[{path:"/home",component:Aa},{path:"/KeWai",component:Qn},{path:"/KaoYan",component:Jn},{path:"/MianFei",component:Xn},{path:"/TongXiu",component:to},{path:"/ZhuanYe",component:eo},{path:"/goodsdetails",component:Pn}]},{path:"/login",name:"login",component:mt},{path:"/register",name:"register",component:en},{path:"/user",name:"user",component:Yn,redirect:"/user/information",children:[{path:"information",name:"账户资料",component:Fn},{path:"orderList",name:"我的订单",component:Vn},{path:"coupon",name:"我的优惠",component:$n},{path:"support",name:"售后服务",component:Rn},{path:"post",name:"我的上传",component:qn}]}],no=(0,p.p7)({history:(0,p.PO)(),routes:ao});var oo=no,so=a(3655);a(4415);const io="INIT_BUYCART",lo="GET_USERINFO",ro="RECORD_USERINFO",co="REDUCE_CART";var uo={[io](t){let e=(0,Z.bh)("buyCart");e&&(t.cartList=JSON.parse(e))},[co](t,{productId:e}){let a=t.cartList;a.forEach(((t,n)=>{t.productId===e&&(t.productNum>1?t.productNum--:a.splice(n,1))})),t.cartList=a,(0,Z.PQ)("buyCart",t.cartList)},[ro](t,e){t.userInfo=e,t.login=!0,(0,Z.PQ)("userInfo",e)},[lo](t,e){t.userInfo&&t.userInfo.username!==e.username||t.login&&(e.message?t.userInfo=null:t.userInfo={...e})}},po={};const ho={login:!1,userInfo:null,cartList:[],userAllInfo:null,userId:-1};var mo=new l.ZP.Store({state:ho,action:po,mutations:uo});const vo=(0,n.ri)(d);Object.keys($e).forEach((t=>{vo.component(t,$e[t])})),vo.use(oo).use(so.Z).use(mo),vo.mount("#app")},7247:function(t,e,a){"use strict";a.d(e,{PQ:function(){return n},bh:function(){return o},kr:function(){return s}});const n=(t,e)=>{t&&("string"!==typeof e&&(e=JSON.stringify(e)),window.localStorage.setItem(t,e))},o=t=>{if(t)return window.localStorage.getItem(t)},s=t=>{t&&window.localStorage.removeItem(t)}},4405:function(t,e,a){"use strict";a.d(e,{Z:function(){return u}});var n=a(3396),o=a(7139);const s=["type","disabled","value"];function i(t,e,a,i,l,r){return(0,n.wg)(),(0,n.iD)("input",{type:a.inputType,readonly:"",class:(0,o.C_)(a.classStyle),onClick:e[0]||(e[0]=t=>r.btnClick(t)),disabled:"disabled-btn"===a.classStyle,value:a.text},null,10,s)}var l={props:{text:{type:[String,Number],default:"一颗小按钮"},inputType:{type:[String],default:"button"},classStyle:{type:String,default:"default-btn"}},methods:{btnClick(t){this.$emit("btnClick",t)}}},r=a(89);const c=(0,r.Z)(l,[["render",i],["__scopeId","data-v-217a68bb"]]);var u=c},4103:function(t,e,a){"use strict";a.d(e,{Z:function(){return c}});var n=a(3396);const o={class:"app-header-nav"};function s(t,e,a,s,i,l){const r=(0,n.up)("RouterLink");return(0,n.wg)(),(0,n.iD)("div",null,[(0,n._)("ul",o,[(0,n._)("li",null,[(0,n.Wm)(r,{class:"nav-item",to:"/TongXiu"},{default:(0,n.w5)((()=>[(0,n.Uk)("通修课程二手书")])),_:1})]),(0,n._)("li",null,[(0,n.Wm)(r,{class:"nav-item",to:"/ZhuanYe"},{default:(0,n.w5)((()=>[(0,n.Uk)("专业课类二手书")])),_:1})]),(0,n._)("li",null,[(0,n.Wm)(r,{class:"nav-item",to:"/KeWai"},{default:(0,n.w5)((()=>[(0,n.Uk)("课外类二手书")])),_:1})]),(0,n._)("li",null,[(0,n.Wm)(r,{class:"nav-item",to:"/KaoYan"},{default:(0,n.w5)((()=>[(0,n.Uk)("考研材料")])),_:1})]),(0,n._)("li",null,[(0,n.Wm)(r,{class:"nav-item",to:"/MianFei"},{default:(0,n.w5)((()=>[(0,n.Uk)("免费专区")])),_:1})])])])}var i={},l=a(89);const r=(0,l.Z)(i,[["render",s],["__scopeId","data-v-68b911ee"]]);var c=r},6555:function(t,e,a){"use strict";t.exports=a.p+"img/no-search.5aba8c45.png"},8478:function(t,e,a){"use strict";t.exports=a.p+"img/user.e2424d6f.jpg"},2480:function(){}},e={};function a(n){var o=e[n];if(void 0!==o)return o.exports;var s=e[n]={exports:{}};return t[n].call(s.exports,s,s.exports,a),s.exports}a.m=t,function(){var t=[];a.O=function(e,n,o,s){if(!n){var i=1/0;for(u=0;u=s)&&Object.keys(a.O).every((function(t){return a.O[t](n[r])}))?n.splice(r--,1):(l=!1,s0&&t[u-1][2]>s;u--)t[u]=t[u-1];t[u]=[n,o,s]}}(),function(){a.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return a.d(e,{a:e}),e}}(),function(){a.d=function(t,e){for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}}(),function(){a.f={},a.e=function(t){return Promise.all(Object.keys(a.f).reduce((function(e,n){return a.f[n](t,e),e}),[]))}}(),function(){a.u=function(t){return"js/"+t+"."+{175:"e0307dc3",262:"21823e31",291:"30076a5c",323:"d4711ec1",538:"ab96fda4",807:"27d53c9f",891:"7f57598b",925:"bb6a307b",946:"b14fc372",962:"9e8d1c79",975:"9add2a8e"}[t]+".js"}}(),function(){a.miniCssF=function(t){return"css/"+t+"."+{175:"b3a499f6",262:"b1514ea0",291:"8935feb5",323:"1096458b",538:"7cafffe7",807:"24cd2db2",891:"6a0b3e30",925:"0e2246d3",946:"7112380a",962:"891e46db",975:"32db6c08"}[t]+".css"}}(),function(){a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){var t={},e="test:";a.l=function(n,o,s,i){if(t[n])t[n].push(o);else{var l,r;if(void 0!==s)for(var c=document.getElementsByTagName("script"),u=0;u {\r\n return http.fetchPost('/user/login', params)\r\n}\r\n\r\n\r\n// 商品详情页上传交易时间\r\nexport const updatetime = (params) => {\r\n\r\n}\r\n\r\nexport const emailnotify = (params) => {\r\n return http.fetchPost('/api/Mail/SendHtml', params)\r\n}\r\n\r\n\r\nexport const userInfoUpdate = (params) => {\r\n return http.fetchPost('/api/user/infoUpdate', params)\r\n}\r\n\r\n","import axios from 'axios'\r\naxios.defaults.timeout = 100000\r\naxios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'\r\nexport default {\r\n fetchGet (url, params = {}) {\r\n return new Promise((resolve, reject) => {\r\n axios.get(url, params).then(res => {\r\n resolve(res.data)\r\n }).catch(error => {\r\n reject(error)\r\n })\r\n })\r\n },\r\n fetchPost (url, params = {}) {\r\n return new Promise((resolve, reject) => {\r\n axios.post(url, params).then(res => {\r\n resolve(res.data)\r\n }).catch(error => {\r\n reject(error)\r\n })\r\n })\r\n }\r\n}\r\n","import http from './public'\r\n\r\nexport const userinfo = (params) => {\r\n return http.fetchPost('/member/info', params)\r\n}\r\n\r\n\r\n\r\n// 获取appnav里各类选项数据\r\n\r\n\r\nexport const usersinfo = (params) => {\r\n return http.fetchPost('/usersinfo', params)\r\n}\r\n\r\nexport const insertGood = (params) => {\r\n return http.fetchPost('/user/insertiGood', params)\r\n}\r\n\r\nexport const getGoodList = (params) => {\r\n return http.fetchPost('/user/getOrderList', params)\r\n}\r\n\r\n\r\n\r\n\r\nexport const login = (params) => {\r\n return http.fetchPost('/api/auth/login', params)\r\n}\r\nexport const bannerpic = () => {\r\n return http.fetchGet('/api/Good/Banner')\r\n}\r\nexport const goodsitem = (params) => {\r\n return http.fetchPost('/api/Good/GoodsItem',params)\r\n}\r\nexport const goodsitemleft = () => {\r\n return http.fetchGet('/api/Good/GoodsItemLeft')\r\n}\r\nexport const hotlist = () => {\r\n return http.fetchGet('/api/Good/hotlist1')\r\n}\r\nexport const hotlist2 = () => {\r\n return http.fetchGet('/api/Good/hotlist2')\r\n}\r\nexport const hotlist3 = () => {\r\n return http.fetchGet('/api/Good/hotlist3')\r\n}\r\nexport const KaoYanList_shuxue = () => {\r\n return http.fetchGet('/api/Good/KaoYanList_shuxue')\r\n}\r\nexport const KaoYanList_zhengzhi = () => {\r\n return http.fetchGet('/api/Good/KaoYanList_zhengzhi')\r\n}\r\nexport const KeWaiList_xiaoshuo = () => {\r\n return http.fetchGet('/api/Good/KeWaiList_xiaoshuo')\r\n}\r\nexport const KeWaiList_manhua = () => {\r\n return http.fetchGet('/api/Good/KeWaiList_manhua')\r\n}\r\nexport const TongXiuList_shuxue = () => {\r\n return http.fetchGet('/api/Good/TongXiuList_shuxue', )\r\n}\r\nexport const TongXiuList_yingyu = () => {\r\n return http.fetchGet('/api/Good/TongXiuList_yingyu', )\r\n}\r\nexport const TongXiuList_zhengzhi = () => {\r\n return http.fetchGet('/api/Good/TongXiuList_zhengzhi', )\r\n}\r\nexport const ZhuanYeList_dike = () => {\r\n return http.fetchGet('/api/Good/ZhuanYeList_dike', )\r\n}\r\nexport const ZhuanYeList_jike = () => {\r\n return http.fetchGet('/api/Good/ZhuanYeList_jike', )\r\n}\r\nexport const MianFeiList_jiaoke = () => {\r\n return http.fetchGet('/api/Good/MianFeiList_jiaoke', )\r\n}\r\nexport const MianFeiList_kewai = () => {\r\n return http.fetchGet('/api/Good/MianFeiList_kewai', )\r\n}\r\nexport const detailslist = (params) => {\r\n return http.fetchPost('/api/Good/detailslist', params)\r\n}\r\nexport const insertGoodMysql = (params) => {\r\n return http.fetchPost('/api/Good/insert', params)\r\n}\r\n\r\nexport const getUser = (params) => {\r\n return http.fetchPost('/api/user/getUserById', params)\r\n}\r\n\r\nexport const getGoodById = (params) => {\r\n return http.fetchPost('/api/Good/getByUid', params)\r\n}\r\n\r\nexport const deleteOrder = (params) => {\r\n return http.fetchPost('/api/Order/del', params)\r\n}\r\nexport const updateGood = (params) => {\r\n return http.fetchPost('/api/Good/updateGoodStatus', params)\r\n}\r\nexport const getOrder = (params) => {\r\n return http.fetchPost('/api/Order/getByuid', params)\r\n}\r\nexport const updateStatus = (params) => {\r\n return http.fetchPost('/api/Good/updateGoodStatus', params)\r\n}\r\nexport const orderInsert = (params) => {\r\n return http.fetchPost('/api/Order/insert', params)\r\n}","\n\n\n","import { render } from \"./App.vue?vue&type=template&id=2ec9c3e8\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\r\n\r\n\r\n\r\n","\r\n\r\n\r\n\r\n\r\n","import { render } from \"./MHeader.vue?vue&type=template&id=30b6e524&scoped=true\"\nimport script from \"./MHeader.vue?vue&type=script&lang=js\"\nexport * from \"./MHeader.vue?vue&type=script&lang=js\"\n\nimport \"./MHeader.vue?vue&type=style&index=0&id=30b6e524&lang=less&scoped=true\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-30b6e524\"]])\n\nexport default __exports__","\r\n\r\n\r\n\r\n\r\n\r\n","import { render } from \"./MFooter.vue?vue&type=template&id=59eda9b3&scoped=true\"\nimport script from \"./MFooter.vue?vue&type=script&lang=js\"\nexport * from \"./MFooter.vue?vue&type=script&lang=js\"\n\nimport \"./MFooter.vue?vue&type=style&index=0&id=59eda9b3&scoped=true&lang=less\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-59eda9b3\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=39bc6a55\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=39bc6a55&lang=css\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\r\n\r\n\r\n\r\n","import { render } from \"./index.vue?vue&type=template&id=461f499a&scoped=true\"\nimport script from \"./index.vue?vue&type=script&lang=js\"\nexport * from \"./index.vue?vue&type=script&lang=js\"\n\nimport \"./index.vue?vue&type=style&index=0&id=461f499a&lang=less&scoped=true\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-461f499a\"]])\n\nexport default __exports__","\r\n\r\n\r\n","\r\n  \r\n\r\n \r\n","import { render } from \"./HomeBanner.vue?vue&type=template&id=6ce9e793&scoped=true\"\nimport script from \"./HomeBanner.vue?vue&type=script&lang=js\"\nexport * from \"./HomeBanner.vue?vue&type=script&lang=js\"\n\nimport \"./HomeBanner.vue?vue&type=style&index=0&id=6ce9e793&lang=less&scoped=true\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6ce9e793\"]])\n\nexport default __exports__","\r\n\r\n\r\n","\r\n \r\n\r\n \r\n","import { render } from \"./Mypanel.vue?vue&type=template&id=31f780c2&scoped=true\"\nimport script from \"./Mypanel.vue?vue&type=script&lang=js\"\nexport * from \"./Mypanel.vue?vue&type=script&lang=js\"\n\nimport \"./Mypanel.vue?vue&type=style&index=0&id=31f780c2&lang=less&scoped=true\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-31f780c2\"]])\n\nexport default __exports__","import { render } from \"./HomeHot.vue?vue&type=template&id=02e303c4&scoped=true\"\nimport script from \"./HomeHot.vue?vue&type=script&lang=js\"\nexport * from \"./HomeHot.vue?vue&type=script&lang=js\"\n\nimport \"./HomeHot.vue?vue&type=style&index=0&id=02e303c4&lang=less&scoped=true\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-02e303c4\"]])\n\nexport default __exports__","\r\n\r\n\r\n\r\n","import { render } from \"./HomeHot2.vue?vue&type=template&id=2bd774ac&scoped=true\"\nimport script from \"./HomeHot2.vue?vue&type=script&lang=js\"\nexport * from \"./HomeHot2.vue?vue&type=script&lang=js\"\n\nimport \"./HomeHot2.vue?vue&type=style&index=0&id=2bd774ac&lang=less&scoped=true\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2bd774ac\"]])\n\nexport default __exports__","\r\n\r\n\r\n\r\n","import { render } from \"./HomeHot3.vue?vue&type=template&id=30bb5eee&scoped=true\"\nimport script from \"./HomeHot3.vue?vue&type=script&lang=js\"\nexport * from \"./HomeHot3.vue?vue&type=script&lang=js\"\n\nimport \"./HomeHot3.vue?vue&type=style&index=0&id=30bb5eee&lang=less&scoped=true\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-30bb5eee\"]])\n\nexport default __exports__","\r\n\r\n\r\n\r\n","\r\n\r\n\r\n\r\n","import { render } from \"./MyGoodsItem.vue?vue&type=template&id=153d817a&scoped=true\"\nimport script from \"./MyGoodsItem.vue?vue&type=script&lang=js\"\nexport * from \"./MyGoodsItem.vue?vue&type=script&lang=js\"\n\nimport \"./MyGoodsItem.vue?vue&type=style&index=0&id=153d817a&lang=less&scoped=true\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-153d817a\"]])\n\nexport default __exports__","import { render } from \"./HomeProduct.vue?vue&type=template&id=1266eca4&scoped=true\"\nimport script from \"./HomeProduct.vue?vue&type=script&lang=js\"\nexport * from \"./HomeProduct.vue?vue&type=script&lang=js\"\n\nimport \"./HomeProduct.vue?vue&type=style&index=0&id=1266eca4&lang=less&scoped=true\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1266eca4\"]])\n\nexport default __exports__","\r\n\r\n\r\n","\r\n\r\n\r\n\r\n\r\n","import { render } from \"./PhotoWall.vue?vue&type=template&id=55da0a2a\"\nimport script from \"./PhotoWall.vue?vue&type=script&lang=js\"\nexport * from \"./PhotoWall.vue?vue&type=script&lang=js\"\n\nimport \"./PhotoWall.vue?vue&type=style&index=0&id=55da0a2a&lang=css\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./HomeBottom.vue?vue&type=template&id=21562bc2&scoped=true\"\nimport script from \"./HomeBottom.vue?vue&type=script&lang=js\"\nexport * from \"./HomeBottom.vue?vue&type=script&lang=js\"\n\nimport \"./HomeBottom.vue?vue&type=style&index=0&id=21562bc2&lang=less&scoped=true\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-21562bc2\"]])\n\nexport default __exports__","export async function chat(messageList, apiKey) {\r\n try {\r\n const result = await fetch(\"https://api.openai.com/v1/chat/completions\", {\r\n method: \"post\",\r\n // signal: AbortSignal.timeout(8000),\r\n // 开启后到达设定时间会中断流式输出\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n Authorization: `Bearer ${apiKey}`,\r\n },\r\n body: JSON.stringify({\r\n model: \"gpt-3.5-turbo\",\r\n stream: true,\r\n messages: messageList,\r\n }),\r\n });\r\n return result;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }","\r\n\r\n\r\n","import { render } from \"./loading.vue?vue&type=template&id=5440cf89\"\nconst script = {}\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\r\n\r\n\r\n\r\n","import script from \"./index.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./index.vue?vue&type=script&setup=true&lang=js\"\n\nimport \"./index.vue?vue&type=style&index=0&id=6193913e&lang=less&scoped=true\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-6193913e\"]])\n\nexport default __exports__","import { render } from \"./index.vue?vue&type=template&id=4d3820aa\"\nimport script from \"./index.vue?vue&type=script&lang=js\"\nexport * from \"./index.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\r\n\r\n\r\n\r\n","import { render } from \"./index.vue?vue&type=template&id=53610e1b&scoped=true\"\nimport script from \"./index.vue?vue&type=script&lang=js\"\nexport * from \"./index.vue?vue&type=script&lang=js\"\n\nimport \"./index.vue?vue&type=style&index=0&id=53610e1b&lang=less&scoped=true\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-53610e1b\"]])\n\nexport default __exports__","\r\n\r\n\r\n\r\n\r\n","import { render } from \"./index.vue?vue&type=template&id=5b762ffd&scoped=true\"\nimport script from \"./index.vue?vue&type=script&lang=js\"\nexport * from \"./index.vue?vue&type=script&lang=js\"\n\nimport \"./index.vue?vue&type=style&index=0&id=5b762ffd&lang=less&scoped=true\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5b762ffd\"]])\n\nexport default __exports__","\r\n\r\n\r\n\r\n","import { render } from \"./user.vue?vue&type=template&id=79900328&scoped=true\"\nimport script from \"./user.vue?vue&type=script&lang=js\"\nexport * from \"./user.vue?vue&type=script&lang=js\"\n\nimport \"./user.vue?vue&type=style&index=0&id=79900328&lang=less&scoped=true\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-79900328\"]])\n\nexport default __exports__","import { createRouter,createWebHistory} from \"vue-router\";\r\nimport Index from '@/views/Index'\r\nimport Login from '@/views/Login'\r\nimport Home from '@/views/Home'\r\nimport Register from '@/views/Register'\r\nimport GoodsDetails from '@/views/GoodsDetails'\r\nimport User from '@/views/User/user.vue'\r\n\r\nconst information = () => import('../views/User/children/information.vue')\r\nconst orderList = () => import('../views/User/children/orderList.vue')\r\nconst addressList = () => import('../views/User/children/addressList.vue')\r\nconst coupon = () => import('../views/User/children/coupon.vue')\r\nconst support = () => import('../views/User/children/support.vue')\r\nconst post = () => import('../views/User/children/post.vue')\r\nconst KaoYan = () => import('../views/Category/KaoYan.vue')\r\nconst KeWai = () => import('../views/Category/KeWai.vue')\r\nconst MianFei = () => import('../views/Category/MianFei.vue')\r\nconst TongXiu = () => import('../views/Category/TongXiu.vue')\r\nconst ZhuanYe = () => import('../views/Category/ZhuanYe.vue')\r\nconst routes = [\r\n\r\n {\r\n path: '/',\r\n redirect: '/home',\r\n component:Index,\r\n children:[\r\n {path:\"/home\",component:Home},\r\n {path:\"/KeWai\",component:KeWai},\r\n {path:\"/KaoYan\",component:KaoYan},\r\n {path:\"/MianFei\",component:MianFei},\r\n {path:\"/TongXiu\",component:TongXiu},\r\n {path:\"/ZhuanYe\",component:ZhuanYe},\r\n {path:\"/goodsdetails\",component:GoodsDetails}\r\n ]\r\n },\r\n {path: '/login', name: 'login', component: Login},\r\n {path: '/register', name: 'register', component: Register},\r\n {\r\n path: '/user',\r\n name: 'user',\r\n component: User,\r\n redirect: '/user/information',\r\n children: [\r\n {path: 'information', name: '账户资料', component: information},\r\n {path: 'orderList', name: '我的订单', component: orderList},\r\n {path: 'coupon', name: '我的优惠', component: coupon},\r\n {path: 'support', name: '售后服务', component: support},\r\n {path: 'post', name: '我的上传', component: post}\r\n ]\r\n }\r\n]\r\nconst router = createRouter({\r\n history:createWebHistory(),\r\n routes\r\n});\r\n\r\nexport default router;\r\n\r\n","export const INIT_BUYCART = 'INIT_BUYCART'\r\nexport const ADD_CART = 'ADD_CART'\r\nexport const GET_USERINFO = 'GET_USERINFO'\r\nexport const RECORD_USERINFO = 'RECORD_USERINFO'\r\nexport const ADD_ANIMATION = 'ADD_ANIMATION'\r\nexport const SHOW_CART = 'SHOW_CART'\r\nexport const REDUCE_CART = 'REDUCE_CART'\r\nexport const EDIT_CART = 'EDIT_CART'\r\n","import {\r\n INIT_BUYCART,\r\n GET_USERINFO,\r\n RECORD_USERINFO,\r\n REDUCE_CART,\r\n} from './mutation-types'\r\nimport { setStore, getStore } from '../utils/storage'\r\nexport default {\r\n // 网页初始化时从本地缓存获取购物车数据\r\n [INIT_BUYCART] (state) {\r\n let initCart = getStore('buyCart')\r\n if (initCart) {\r\n state.cartList = JSON.parse(initCart)\r\n }\r\n },\r\n\r\n // 移除商品\r\n [REDUCE_CART] (state, {productId}) {\r\n let cart = state.cartList\r\n cart.forEach((item, i) => {\r\n if (item.productId === productId) {\r\n if (item.productNum > 1) {\r\n item.productNum--\r\n } else {\r\n cart.splice(i, 1)\r\n }\r\n }\r\n })\r\n state.cartList = cart\r\n // 存入localStorage\r\n setStore('buyCart', state.cartList)\r\n },\r\n // 修改购物车\r\n // 记录用户信息\r\n [RECORD_USERINFO] (state, info) {\r\n state.userInfo = info\r\n state.login = true\r\n setStore('userInfo', info)\r\n },\r\n // 获取用户信息\r\n [GET_USERINFO] (state, info) {\r\n if (state.userInfo && (state.userInfo.username !== info.username)) {\r\n return\r\n }\r\n if (!state.login) {\r\n return\r\n }\r\n if (!info.message) {\r\n state.userInfo = {...info}\r\n } else {\r\n state.userInfo = null\r\n }\r\n }\r\n}\r\n","export default {\r\n\r\n}\r\n","import Vuex from 'vuex'\r\nimport mutations from './mutations'\r\nimport action from './action'\r\n\r\n\r\nconst state = {\r\n login: false, // 是否登录\r\n userInfo: null, // 用户名\r\n cartList: [], // 加入购物车列表\r\n userAllInfo: null, //数据库某个用户的全部信息,字典\r\n userId:-1,\r\n\r\n\r\n}\r\n\r\nexport default new Vuex.Store({\r\n state,\r\n action,\r\n mutations\r\n})\r\n","import Vue from 'vue';\nimport { createApp } from 'vue';\nimport App from './App.vue';\nimport router from './router/index.js';\nimport ElementPlus from 'element-plus';\nimport 'element-plus/dist/index.css';\nimport store from './store/index';\n// import './mock';\nimport axios from 'axios';\nimport * as ElIcon from '@element-plus/icons-vue'\nimport { Button, Pagination, Checkbox, Icon, Autocomplete, Loading, Message, Notification, Steps, Step, Table, TableColumn, Input, Dialog, Select, Option } from 'element-plus'\nconst app = createApp(App);\nObject.keys(ElIcon).forEach((key) => {\n app.component(key, ElIcon[key])})\napp.use(router).use(ElementPlus).use(store);\napp.mount('#app')","/**\r\n * 存储localStorage\r\n */\r\nexport const setStore = (name, content) => {\r\n if (!name) return\r\n if (typeof content !== 'string') {\r\n content = JSON.stringify(content)\r\n }\r\n window.localStorage.setItem(name, content)\r\n}\r\n\r\n/**\r\n * 获取localStorage\r\n */\r\nexport const getStore = name => {\r\n if (!name) return\r\n return window.localStorage.getItem(name)\r\n}\r\n\r\n/**\r\n * 删除localStorage\r\n */\r\nexport const removeStore = name => {\r\n if (!name) return\r\n window.localStorage.removeItem(name)\r\n}\r\n","\r\n \r\n\r\n ","import { render } from \"./YButton.vue?vue&type=template&id=217a68bb&scoped=true\"\nimport script from \"./YButton.vue?vue&type=script&lang=js\"\nexport * from \"./YButton.vue?vue&type=script&lang=js\"\n\nimport \"./YButton.vue?vue&type=style&index=0&id=217a68bb&lang=scss&rel=stylesheet%2Fscss&scoped=true\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-217a68bb\"]])\n\nexport default __exports__","\r\n\r\n\r\n\r\n","import { render } from \"./AppNa.vue?vue&type=template&id=68b911ee&scoped=true\"\nimport script from \"./AppNa.vue?vue&type=script&lang=js\"\nexport * from \"./AppNa.vue?vue&type=script&lang=js\"\n\nimport \"./AppNa.vue?vue&type=style&index=0&id=68b911ee&lang=less&scoped=true\"\n\nimport exportComponent from \"F:\\\\Final\\\\marketfront\\\\node_modules\\\\vue-loader\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-68b911ee\"]])\n\nexport default __exports__","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"js/\" + chunkId + \".\" + {\"175\":\"e0307dc3\",\"262\":\"21823e31\",\"291\":\"30076a5c\",\"323\":\"d4711ec1\",\"538\":\"ab96fda4\",\"807\":\"27d53c9f\",\"891\":\"7f57598b\",\"925\":\"bb6a307b\",\"946\":\"b14fc372\",\"962\":\"9e8d1c79\",\"975\":\"9add2a8e\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"css/\" + chunkId + \".\" + {\"175\":\"b3a499f6\",\"262\":\"b1514ea0\",\"291\":\"8935feb5\",\"323\":\"1096458b\",\"538\":\"7cafffe7\",\"807\":\"24cd2db2\",\"891\":\"6a0b3e30\",\"925\":\"0e2246d3\",\"946\":\"7112380a\",\"962\":\"891e46db\",\"975\":\"32db6c08\"}[chunkId] + \".css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"test:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"/\";","if (typeof document === \"undefined\") return;\nvar createStylesheet = function(chunkId, fullhref, oldTag, resolve, reject) {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tvar onLinkComplete = function(event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + realHref + \")\");\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = function(href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = function(chunkId) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t143: 0\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\"175\":1,\"262\":1,\"291\":1,\"323\":1,\"538\":1,\"807\":1,\"891\":1,\"925\":1,\"946\":1,\"962\":1,\"975\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, function(e) {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t143: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunktest\"] = self[\"webpackChunktest\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [998], function() { return __webpack_require__(6); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["emailnotify","params","http","userInfoUpdate","axios","fetchGet","url","Promise","resolve","reject","then","res","data","catch","error","fetchPost","login","bannerpic","goodsitem","goodsitemleft","hotlist","hotlist2","hotlist3","KaoYanList_shuxue","KaoYanList_zhengzhi","KeWaiList_xiaoshuo","KeWaiList_manhua","TongXiuList_shuxue","TongXiuList_yingyu","TongXiuList_zhengzhi","ZhuanYeList_dike","ZhuanYeList_jike","MianFeiList_jiaoke","MianFeiList_kewai","detailslist","insertGoodMysql","getUser","getGoodById","deleteOrder","updateGood","getOrder","updateStatus","orderInsert","id","_createElementBlock","_hoisted_1","_createVNode","_component_router_view","class","name","components","computed","mapState","__exports__","render","_component_m_header","_component_m_footer","_createElementVNode","type","placeholder","_hoisted_2","_component_router_link","to","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_Fragment","key","_hoisted_7","_ctx","_hoisted_8","onClick","logout","_hoisted_9","_hoisted_10","defineComponent","setup","router","useRouter","created","this","getStore","methods","$store","state","removeStore","$router","push","path","MHeader","MFooter","src","_imports_0","href","$data","ruleForm","userName","$event","userPwd","onKeyup","_cache","_withKeys","args","$options","denglu","_component_el_checkbox","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","note_info","_hoisted_19","_component_y_button","onBtnClick","text","logintxt","classStyle","style","back","returntxt","_hoisted_20","YButton","cart","loginPage","errMsg","registered","userPwd2","autoLogin","statusKey","note_success","$notify","title","message","position","note_fail","username","password","userAllInfo","result","userInfo","setStore","personal","email","_component_AppNa","_component_Drag","_component_HomeBanner","_component_HomeProduct","_component_HomeHot","_component_HomeHot2","_component_HomeHot3","_component_HomeBottom","_component_el_carousel","_renderList","pic_list","item","_createBlock","_component_el_carousel_item","img","init","console","log","_component_Mypanel","subTitle","hot_list","linkTo","listPicUrl","_toDisplayString","retailPrice","$props","_renderSlot","$slots","undefined","props","String","default","Mypanel","query","productId","goodsUrl","productname","hot_list2","hot_list3","do","userId","size","page","right","_withCtx","picleft","goods_list","good","_component_MyGoodsItem","images","alt","price","Object","MyGoodsItem","interest","_component_photo_wall","photos","slot","_component_el_row","gutter","photo","index","_component_el_col","span","handlePreview","_component_el_dialog","previewDialogVisible","width","previewSrc","_component_el_button","ElRow","ElCol","ElDialog","ElButton","required","Array","PhotoWall","async","chat","messageList","apiKey","fetch","method","headers","Authorization","body","JSON","stringify","model","stream","messages","script","cryptoJS","require","isConfig","ref","isOpen","newMessage","apiContent","decoder","TextDecoder","choicemessages","role","content","Displaymessages","onMounted","sendChatMessage","value","length","clearMessageContent","status","getAPIKey","reader","getReader","readStream","appendLastMessageContent","nextTick","scrollToBottom","partialLine","done","read","decodedText","decode","json","parse","chunk","newLines","split","pop","line","startsWith","substring","choices","delta","Save","saveAPIKey","trim","switchConfigStatus","slice","alert","aesAPIKey","AES","encrypt","getSecretKey","toString","localStorage","setItem","getItem","decrypt","enc","Utf8","el","document","getElementById","scrollIntoView","watch","AppNa","HomeBanner","HomeHot","HomeHot2","HomeHot3","HomeProduct","HomeBottom","Drag","regist","toLogin","loading","filter","v","itemlist","list","_component_el_time_select","time","start","step","end","_component_el_popconfirm","onConfirm","note","icon","InfoFilled","reference","comment","Time","showTime","date","Date","year","getFullYear","month","getMonth","day","getDate","info","ordermsg","gid","uid","msg","sellemail","buyemail","forEach","element","picurl1","picurl2","picurl3","$route","height","nav","i","_normalizeClass","current","tab","e","information","orderList","coupon","support","post","KaoYan","KeWai","MianFei","TongXiu","ZhuanYe","routes","redirect","component","Index","children","Home","GoodsDetails","Login","Register","User","createRouter","history","createWebHistory","INIT_BUYCART","GET_USERINFO","RECORD_USERINFO","REDUCE_CART","initCart","cartList","productNum","splice","Vuex","action","mutations","app","createApp","App","keys","ElIcon","use","ElementPlus","store","mount","window","removeItem","inputType","readonly","btnClick","disabled","Number","event","$emit","_component_RouterLink","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","call","m","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","every","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","f","chunkId","all","reduce","promises","u","miniCssF","g","globalThis","Function","obj","prop","prototype","hasOwnProperty","inProgress","dataWebpackPrefix","l","needAttach","scripts","getElementsByTagName","s","getAttribute","createElement","charset","timeout","nc","setAttribute","onScriptComplete","prev","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","setTimeout","bind","target","head","appendChild","Symbol","toStringTag","p","createStylesheet","fullhref","oldTag","linkTag","rel","onLinkComplete","errorType","realHref","err","Error","code","request","insertBefore","nextSibling","findStylesheet","existingLinkTags","tag","dataHref","existingStyleTags","loadStylesheet","installedCssChunks","miniCss","cssChunks","installedChunks","installedChunkData","promise","loadingEnded","realSrc","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/Code/Frontend/public/favicon.ico b/Code/Frontend/public/favicon.ico index df36fcf..5845799 100644 Binary files a/Code/Frontend/public/favicon.ico and b/Code/Frontend/public/favicon.ico differ diff --git a/Code/Frontend/public/index.html b/Code/Frontend/public/index.html index 8288faa..0dba3ef 100644 --- a/Code/Frontend/public/index.html +++ b/Code/Frontend/public/index.html @@ -5,7 +5,7 @@ - <%= htmlWebpackPlugin.options.title %> + N-Market diff --git a/Code/Frontend/readme.md b/Code/Frontend/readme.md index 8b13789..c4af9c3 100644 --- a/Code/Frontend/readme.md +++ b/Code/Frontend/readme.md @@ -1 +1,19 @@ +# test +## Project setup +``` +npm install +``` + +### Compiles and hot-reloads for development +``` +npm run serve +``` + +### Compiles and minifies for production +``` +npm run build +``` + +### Customize configuration +See [Configuration Reference](https://cli.vuejs.org/config/). diff --git a/Code/Frontend/src/api/chat.js b/Code/Frontend/src/api/chat.js index c047df7..645b32b 100644 --- a/Code/Frontend/src/api/chat.js +++ b/Code/Frontend/src/api/chat.js @@ -9,7 +9,7 @@ export async function chat(messageList, apiKey) { Authorization: `Bearer ${apiKey}`, }, body: JSON.stringify({ - model: "gpt-3.5-turbo", + model: "gpt-4", stream: true, messages: messageList, }), diff --git a/Code/Frontend/src/readme.md b/Code/Frontend/src/readme.md deleted file mode 100644 index 8b13789..0000000 --- a/Code/Frontend/src/readme.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Code/Frontend/src/views/Drag/index.vue b/Code/Frontend/src/views/Drag/index.vue index b79f4f0..df5923c 100644 --- a/Code/Frontend/src/views/Drag/index.vue +++ b/Code/Frontend/src/views/Drag/index.vue @@ -87,18 +87,131 @@ let apiContent = ref("")//控制api的内容 const roleAlias = { user: "ME", assistant: "ChatGPT", system: "System" }; const decoder = new TextDecoder("utf-8"); const choicemessages = ref([ - { role: "user", content: "我想让你当一名博览群书的图书管理员,接下来我会提供给你一本书的名字,请你简单说下这本书的内容和适合人群。我第一句问完后不要回答。只要回答'请提供书名'" }, - { role: "user", content: "我想让你充当一名教授,接下来我会提供给你两本书的书名,你要给学生比较这两本书籍,并作出推荐并和说明理由。我第一句问完后不要回答。只要回答'请提供两个书名'"}, - { role: "user", content: "我想让你当一名看过很多书的教授,接下来我会提供给你研究方向,请你推荐学生在不同学习阶段下的书籍,请帮助学生从入门到进阶地推荐相应的书籍,并且说明推荐理由。我第一句问完后不要回答。只要回答'请提供研究方向'" }, - - // { role: "assistant", content: "您好,请问有什么可以帮到您?" } + { role: "system", content: "我想让你当一名博览群书的图书管理员,接下来我会提供给你一本书的名字,请你简单说下这本书的内容和适合人群。我第一句问完后不要回答。只要回答'请提供书名'" }, + { role: "system", content: "我想让你充当一名教授,接下来我会提供给你两本书的书名,你要给学生比较这两本书籍,并作出推荐并和说明理由。我第一句问完后不要回答。只要回答'请提供两个书名'"}, + { role: "system", content: "我想让你当一名看过很多书的教授,接\ + 下来我会提供给你研究方向,请你推荐学生在不同学习阶段下的书籍,请帮助学生从入门到进阶地推荐相应的书籍,并且说明推荐理由。我第一句问完后不要回答。只要回答'请提供研究方向'" }, + { role: "system", content: "You are our book warehouse manager helping customer categorize their book into our book warehouse.\ +You first greet the customer, then wait for customer's input, \ +then you help customer put their book into category in the current book warehouse. \ +The first attribute \"name\" means category in book warehouse josn format.\ +If you can't find exactly the same category in the warehouse, \ + you apologize and tell the customer the similar category.\ +The book warehouse are in JOSN format as follows:\ +{\ + {\"name\":\"微积分\",\"classification path\":\"通修课程二手书/数学\"},\ + {\"name\":\"大学数学\",\"classification path\":\"通修课程二手书/数学\"},\ + {\"name\":\"高等代数\",\"classification path\":\"通修课程二手书/数学\"},\ + {\"name\":\"概率论与数理统计\",\"classification path\":\"通修课程二手书/数学\"},\ + {\"name\":\"高级英语口语辩论基础与实训\",\"classification path\":\"通修课程二手书/英语\"},\ + {\"name\":\"大学英语\",\"classification path\":\"通修课程二手书/英语\"},\ + {\"name\":\"英语学术论文阅读与写作\",\"classification path\":\"通修课程二手书/英语\"},\ + {\"name\":\"汉英翻译学基础理论与实践\",\"classification path\":\"通修课程二手书/英语\"},\ + {\"name\":\"大学军事理论教程\",\"classification path\":\"通修课程二手书/政治\"},\ + {\"name\":\"近代史\",\"classification path\":\"通修课程二手书/政治\"},\ + {\"name\":\"毛泽东思想和中国特色社会主义理论体系概论\",\"classification path\":\"通修课程二手书/政治\"},\ + {\"name\":\"思想道德与法治\",\"classification path\":\"通修课程二手书/政治\"},\ + {\"name\":\"工程地质学\",\"classification path\":\"专业课类二手书/地球科学与工程学院\"},\ + {\"name\":\"普通地质学\",\"classification path\":\"专业课类二手书/地球科学与工程学院\"},\ + {\"name\":\"岩石力学\",\"classification path\":\"专业课类二手书/地球科学与工程学院\"},\ + {\"name\":\"弹性力学\",\"classification path\":\"专业课类二手书/地球科学与工程学院\"},\ + {\"name\":\"入门到精通\",\"classification path\":\"专业课类二手书/计算机科学技术学院\"},\ + {\"name\":\"程序设计基础\",\"classification path\":\"专业课类二手书/计算机科学技术学院\"},\ + {\"name\":\"操作系统\",\"classification path\":\"专业课类二手书/计算机科学技术学院\"},\ + {\"name\":\"计算机基础\",\"classification path\":\"专业课类二手书/计算机科学技术学院\"},\ + {\"name\":\"边城\",\"classification path\":\"课外类二手书/漫画\"},\ + {\"name\":\"边城\",\"classification path\":\"课外类二手书/小说\"},\ + {\"name\":\"宠物猫的反击战\",\"classification path\":\"课外类二手书/小说\"},\ + {\"name\":\"变形记\",\"classification path\":\"课外类二手书/小说\"},\ + {\"name\":\"三体\",\"classification path\":\"课外类二手书/小说\"},\ + {\"name\":\"巴黎城记\",\"classification path\":\"课外类二手书/漫画\"},\ + {\"name\":\"漫画龙纹身的女孩\",\"classification path\":\"课外类二手书/小说\"},\ + {\"name\":\"漫画名侦探柯南漆黑的追踪者\",\"classification path\":\"课外类二手书/小说\"},\ + {\"name\":\"漫画千与千寻\",\"classification path\":\"课外类二手书/小说\"},\ + {\"name\":\"考研数学二十讲\",\"classification path\":\"考研材料/考研数学材料\"},\ + {\"name\":\"考研数学辅导\",\"classification path\":\"考研材料/考研数学材料\"},\ + {\"name\":\"考研数学复习指南\",\"classification path\":\"考研材料/考研数学材料\"},\ + {\"name\":\"考研数学题典\",\"classification path\":\"考研材料/考研数学材料\"},\ + {\"name\":\"考研政治核心考点\",\"classification path\":\"考研材料/考研政治材料\"},\ + {\"name\":\"考研政治狂背清单\",\"classification path\":\"考研材料/考研政治材料\"},\ + {\"name\":\"考研政治核心考点\",\"classification path\":\"考研材料/考研政治材料\"},\ + {\"name\":\"考研政治强化冲刺800题\",\"classification path\":\"考研材料/考研政治材料\"},\ + {\"name\":\"量子力学\",\"classification path\":\"免费专区/教科书\"},\ + {\"name\":\"普通生物学\",\"classification path\":\"免费专区/教科书\"},\ + {\"name\":\"普通物理学\",\"classification path\":\"免费专区/教科书\"},\ + {\"name\":\"有机固体物理\",\"classification path\":\"免费专区/教科书\"},\ + {\"name\":\"漫画千与千寻\",\"classification path\":\"免费专区/课外书\"},\ + {\"name\":\"十角馆事件\",\"classification path\":\"免费专区/课外书\"},\ + {\"name\":\"异世界舅舅\",\"classification path\":\"免费专区/课外书\"},\ + {\"name\":\"蜘蛛侠漫画史\",\"classification path\":\"免费专区/课外书\"}\ +} You first greet the customer, then wait for next input."}, + { role: "system", content: "You are our book warehouse manager helping customer find books in book warehouse.\ +You first greet the customer, then wait for customer's question, \ +then you start to find the book in the book warehouse \"name\" attribute\ +and you tell the customer the corresponding path, if can't find it you just apology.\ +Make sure to clarify all book's name and corresponding classification paths \ +from the book warehouse.\ +The book warehouse are in JOSN format as follows:\ +{\ + {\"name\":\"微积分\",\"classification path\":\"通修课程二手书/数学\"},\ + {\"name\":\"大学数学\",\"classification path\":\"通修课程二手书/数学\"},\ + {\"name\":\"高等代数\",\"classification path\":\"通修课程二手书/数学\"},\ + {\"name\":\"概率论与数理统计\",\"classification path\":\"通修课程二手书/数学\"},\ + {\"name\":\"高级英语口语辩论基础与实训\",\"classification path\":\"通修课程二手书/英语\"},\ + {\"name\":\"大学英语\",\"classification path\":\"通修课程二手书/英语\"},\ + {\"name\":\"英语学术论文阅读与写作\",\"classification path\":\"通修课程二手书/英语\"},\ + {\"name\":\"汉英翻译学基础理论与实践\",\"classification path\":\"通修课程二手书/英语\"},\ + {\"name\":\"大学军事理论教程\",\"classification path\":\"通修课程二手书/政治\"},\ + {\"name\":\"近代史\",\"classification path\":\"通修课程二手书/政治\"},\ + {\"name\":\"毛泽东思想和中国特色社会主义理论体系概论\",\"classification path\":\"通修课程二手书/政治\"},\ + {\"name\":\"思想道德与法治\",\"classification path\":\"通修课程二手书/政治\"},\ + {\"name\":\"工程地质学\",\"classification path\":\"专业课类二手书/地球科学与工程学院\"},\ + {\"name\":\"普通地质学\",\"classification path\":\"专业课类二手书/地球科学与工程学院\"},\ + {\"name\":\"岩石力学\",\"classification path\":\"专业课类二手书/地球科学与工程学院\"},\ + {\"name\":\"弹性力学\",\"classification path\":\"专业课类二手书/地球科学与工程学院\"},\ + {\"name\":\"入门到精通\",\"classification path\":\"专业课类二手书/计算机科学技术学院\"},\ + {\"name\":\"程序设计基础\",\"classification path\":\"专业课类二手书/计算机科学技术学院\"},\ + {\"name\":\"操作系统\",\"classification path\":\"专业课类二手书/计算机科学技术学院\"},\ + {\"name\":\"计算机基础\",\"classification path\":\"专业课类二手书/计算机科学技术学院\"},\ + {\"name\":\"边城\",\"classification path\":\"课外类二手书/小说\"},\ + {\"name\":\"宠物猫的反击战\",\"classification path\":\"课外类二手书/小说\"},\ + {\"name\":\"变形记\",\"classification path\":\"课外类二手书/小说\"},\ + {\"name\":\"三体\",\"classification path\":\"课外类二手书/小说\"},\ + {\"name\":\"巴黎城记\",\"classification path\":\"课外类二手书/漫画\"},\ + {\"name\":\"漫画龙纹身的女孩\",\"classification path\":\"课外类二手书/小说\"},\ + {\"name\":\"漫画名侦探柯南漆黑的追踪者\",\"classification path\":\"课外类二手书/小说\"},\ + {\"name\":\"漫画千与千寻\",\"classification path\":\"课外类二手书/小说\"},\ + {\"name\":\"考研数学二十讲\",\"classification path\":\"考研材料/考研数学材料\"},\ + {\"name\":\"考研数学辅导\",\"classification path\":\"考研材料/考研数学材料\"},\ + {\"name\":\"考研数学复习指南\",\"classification path\":\"考研材料/考研数学材料\"},\ + {\"name\":\"考研数学题典\",\"classification path\":\"考研材料/考研数学材料\"},\ + {\"name\":\"考研政治核心考点\",\"classification path\":\"考研材料/考研政治材料\"},\ + {\"name\":\"考研政治狂背清单\",\"classification path\":\"考研材料/考研政治材料\"},\ + {\"name\":\"考研政治核心考点\",\"classification path\":\"考研材料/考研政治材料\"},\ + {\"name\":\"考研政治强化冲刺800题\",\"classification path\":\"考研材料/考研政治材料\"},\ + {\"name\":\"量子力学\",\"classification path\":\"免费专区/教科书\"},\ + {\"name\":\"普通生物学\",\"classification path\":\"免费专区/教科书\"},\ + {\"name\":\"普通物理学\",\"classification path\":\"免费专区/教科书\"},\ + {\"name\":\"有机固体物理\",\"classification path\":\"免费专区/教科书\"},\ + {\"name\":\"漫画千与千寻\",\"classification path\":\"免费专区/课外书\"},\ + {\"name\":\"十角馆事件\",\"classification path\":\"免费专区/课外书\"},\ + {\"name\":\"异世界舅舅\",\"classification path\":\"免费专区/课外书\"},\ + {\"name\":\"蜘蛛侠漫画史\",\"classification path\":\"免费专区/课外书\"}\ +} You first greet the customer, then wait for next input."} ]) + const messages = ref([ - { role: "system", content: "你是 ChatGPT,OpenAI 训练的大型语言模型,请详细帮助我。" } + // { role: "system", content: "你是 ChatGPT,OpenAI 训练的大型语言模型,请详细帮助我。" } ]) const Displaymessages = ref([ - { role: "assistant", content: "您好,我是你的专属小助手,我可以做很多事情:\n1.你问我常见的书籍我会告诉你书籍的内容。\n2.问我两本书,我会比较这两本书,并且做出推荐。\n3.你问我研究方向,我会向你推荐该方向从入门到精通书籍。" }, + { role: "assistant", content: "您好,我是你的专属小助手,我可以做很多事情:\n\ + 1.你问我常见的书籍我会告诉你书籍的内容。\n\ + 2.问我两本书,我会比较这两本书,并且做出推荐。\n\ + 3.你问我研究方向,我会向你推荐该方向从入门到精通书籍。\n\ + 4.你问我书本名称,我会帮你推荐上传书籍的分类所属。\n\ + 5.你问我书本名称我会尽力帮您在仓库中查找。\n\ + " }, ]) onMounted(() => { }); @@ -123,7 +236,7 @@ const sendChatMessage = async (content = newMessage.value) => { console.log(choicemessages.value[0]) if (newMessage) { try { - if(Displaymessages.value.length === 1) + if(Displaymessages.value.length === 1 ) { if (newMessage.value === "1") { messages.value.push(choicemessages.value[0]); @@ -133,10 +246,22 @@ const sendChatMessage = async (content = newMessage.value) => { messages.value.push(choicemessages.value[1]); // messages.value.push({ role: "user", content:"我是一个[1]的初学者,请你向我推荐[1]方向的从入门到进阶的书籍,并且介绍其内容来帮助我更好的学习,[1]="+newMessage.value }); } - else{ + else if(newMessage.value === "3"){ messages.value.push(choicemessages.value[2]); // messages.value.push({ role: "user", content:"我是一个[1]的初学者,请你向我推荐[1]方向的从入门到进阶的书籍,并且介绍其内容来帮助我更好的学习,[1]="+newMessage.value }); } + else if(newMessage.value === "4"){ + messages.value.push(choicemessages.value[3]); + // messages.value.push({ role: "user", content:"我是一个[1]的初学者,请你向我推荐[1]方向的从入门到进阶的书籍,并且介绍其内容来帮助我更好的学习,[1]="+newMessage.value }); + } + else if(newMessage.value === "5"){ + messages.value.push(choicemessages.value[4]); + // messages.value.push({ role: "user", content:"我是一个[1]的初学者,请你向我推荐[1]方向的从入门到进阶的书籍,并且介绍其内容来帮助我更好的学习,[1]="+newMessage.value }); + } + else{ + Displaymessages.value.push({ role: "assistant", content: "Your input are not valid. Please refresh website" }); + return + } Displaymessages.value.push({ role: "user", content:newMessage.value }); Displaymessages.value.push({ role: "assistant", content: "" }); messages.value.push({ role: "assistant", content: "" }); diff --git a/Code/Frontend/src/views/Drag/test.vue b/Code/Frontend/src/views/Drag/test.vue new file mode 100644 index 0000000..e80f164 --- /dev/null +++ b/Code/Frontend/src/views/Drag/test.vue @@ -0,0 +1,141 @@ +import panel as pn # GUI +pn.extension() + +panels = [] # collect display + +# context = [ {'role':'system', 'content':\"\"\" +You are our book warehouse manager helping customer find books in book warehouse.\ +You first greet the customer, then wait for customer's question, \ +then you start to find the book in the book warehouse \"name\" attribute\ +and you tell the customer the corresponding path, if can't find it you just apology.\ +Make sure to clarify all book's name and corresponding classification paths \ +from the book warehouse. +The book warehouse are in JOSN format as follows: + +{ + {\"name\":\"微积分\",\"classification path\":\"通修课程二手书/数学\"}, + {\"name\":\"大学数学\",\"classification path\":\"通修课程二手书/数学\"}, + {\"name\":\"高等代数\",\"classification path\":\"通修课程二手书/数学\"}, + {\"name\":\"概率论与数理统计\",\"classification path\":\"通修课程二手书/数学\"}, + {\"name\":\"高级英语口语辩论基础与实训\",\"classification path\":\"通修课程二手书/英语\"}, + {\"name\":\"大学英语\",\"classification path\":\"通修课程二手书/英语\"}, + {\"name\":\"英语学术论文阅读与写作\",\"classification path\":\"通修课程二手书/英语\"}, + {\"name\":\"汉英翻译学基础理论与实践\",\"classification path\":\"通修课程二手书/英语\"}, + {\"name\":\"大学军事理论教程\",\"classification path\":\"通修课程二手书/政治\"}, + {\"name\":\"近代史\",\"classification path\":\"通修课程二手书/政治\"}, + {\"name\":\"毛泽东思想和中国特色社会主义理论体系概论\",\"classification path\":\"通修课程二手书/政治\"}, + {\"name\":\"思想道德与法治\",\"classification path\":\"通修课程二手书/政治\"}, + {\"name\":\"工程地质学\",\"classification path\":\"专业课类二手书/地球科学与工程学院\"}, + {\"name\":\"普通地质学\",\"classification path\":\"专业课类二手书/地球科学与工程学院\"}, + {\"name\":\"岩石力学\",\"classification path\":\"专业课类二手书/地球科学与工程学院\"}, + {\"name\":\"弹性力学\",\"classification path\":\"专业课类二手书/地球科学与工程学院\"}, + {\"name\":\"入门到精通\",\"classification path\":\"专业课类二手书/计算机科学技术学院\"}, + {\"name\":\"程序设计基础\",\"classification path\":\"专业课类二手书/计算机科学技术学院\"}, + {\"name\":\"操作系统\",\"classification path\":\"专业课类二手书/计算机科学技术学院\"}, + {\"name\":\"计算机基础\",\"classification path\":\"专业课类二手书/计算机科学技术学院\"}, + {\"name\":\"边城\",\"classification path\":\"课外类二手书/小说\"}, + {\"name\":\"宠物猫的反击战\",\"classification path\":\"课外类二手书/小说\"}, + {\"name\":\"变形记\",\"classification path\":\"课外类二手书/小说\"}, + {\"name\":\"三体\",\"classification path\":\"课外类二手书/小说\"}, + {\"name\":\"巴黎城记\",\"classification path\":\"课外类二手书/漫画\"}, + {\"name\":\"漫画龙纹身的女孩\",\"classification path\":\"课外类二手书/小说\"}, + {\"name\":\"漫画名侦探柯南漆黑的追踪者\",\"classification path\":\"课外类二手书/小说\"}, + {\"name\":\"漫画千与千寻\",\"classification path\":\"课外类二手书/小说\"}, + {\"name\":\"考研数学二十讲\",\"classification path\":\"考研材料/考研数学材料\"}, + {\"name\":\"考研数学辅导\",\"classification path\":\"考研材料/考研数学材料\"}, + {\"name\":\"考研数学复习指南\",\"classification path\":\"考研材料/考研数学材料\"}, + {\"name\":\"考研数学题典\",\"classification path\":\"考研材料/考研数学材料\"}, + {\"name\":\"考研政治核心考点\",\"classification path\":\"考研材料/考研政治材料\"}, + {\"name\":\"考研政治狂背清单\",\"classification path\":\"考研材料/考研政治材料\"}, + {\"name\":\"考研政治核心考点\",\"classification path\":\"考研材料/考研政治材料\"}, + {\"name\":\"考研政治强化冲刺800题\",\"classification path\":\"考研材料/考研政治材料\"}, + {\"name\":\"量子力学\",\"classification path\":\"免费专区/教科书\"}, + {\"name\":\"普通生物学\",\"classification path\":\"免费专区/教科书\"}, + {\"name\":\"普通物理学\",\"classification path\":\"免费专区/教科书\"}, + {\"name\":\"有机固体物理\",\"classification path\":\"免费专区/教科书\"}, + {\"name\":\"漫画千与千寻\",\"classification path\":\"免费专区/课外书\"}, + {\"name\":\"十角馆事件\",\"classification path\":\"免费专区/课外书\"}, + {\"name\":\"异世界舅舅\",\"classification path\":\"免费专区/课外书\"}, + {\"name\":\"蜘蛛侠漫画史\",\"classification path\":\"免费专区/课外书\"}, +}. + You respond in a short, very conversational friendly style. +# \"\"\"} ] # accumulate messages +context = [ {'role':'system', 'content':\"\"\" +You are our book warehouse manager helping customer categorize their book into our book warehouse.\ +You first greet the customer, then wait for customer's input, \ +then you help customer put their book into category in the current book warehouse. \ +The first attribute \"name\" means category in book warehouse josn format.\ +If you can't find exactly the same category in the warehouse, \ +then you just apologize to the customer and end the conversion.\ + +Like customer input \"生物学\", but we just have \"普通生物学\", then we just apologize and could not help. + + +The book warehouse are in JOSN format as follows: + +{ + {\"name\":\"微积分\",\"classification path\":\"通修课程二手书/数学\"}, + {\"name\":\"大学数学\",\"classification path\":\"通修课程二手书/数学\"}, + {\"name\":\"高等代数\",\"classification path\":\"通修课程二手书/数学\"}, + {\"name\":\"概率论与数理统计\",\"classification path\":\"通修课程二手书/数学\"}, + {\"name\":\"高级英语口语辩论基础与实训\",\"classification path\":\"通修课程二手书/英语\"}, + {\"name\":\"大学英语\",\"classification path\":\"通修课程二手书/英语\"}, + {\"name\":\"英语学术论文阅读与写作\",\"classification path\":\"通修课程二手书/英语\"}, + {\"name\":\"汉英翻译学基础理论与实践\",\"classification path\":\"通修课程二手书/英语\"}, + {\"name\":\"大学军事理论教程\",\"classification path\":\"通修课程二手书/政治\"}, + {\"name\":\"近代史\",\"classification path\":\"通修课程二手书/政治\"}, + {\"name\":\"毛泽东思想和中国特色社会主义理论体系概论\",\"classification path\":\"通修课程二手书/政治\"}, + {\"name\":\"思想道德与法治\",\"classification path\":\"通修课程二手书/政治\"}, + {\"name\":\"工程地质学\",\"classification path\":\"专业课类二手书/地球科学与工程学院\"}, + {\"name\":\"普通地质学\",\"classification path\":\"专业课类二手书/地球科学与工程学院\"}, + {\"name\":\"岩石力学\",\"classification path\":\"专业课类二手书/地球科学与工程学院\"}, + {\"name\":\"弹性力学\",\"classification path\":\"专业课类二手书/地球科学与工程学院\"}, + {\"name\":\"入门到精通\",\"classification path\":\"专业课类二手书/计算机科学技术学院\"}, + {\"name\":\"程序设计基础\",\"classification path\":\"专业课类二手书/计算机科学技术学院\"}, + {\"name\":\"操作系统\",\"classification path\":\"专业课类二手书/计算机科学技术学院\"}, + {\"name\":\"计算机基础\",\"classification path\":\"专业课类二手书/计算机科学技术学院\"}, + {\"name\":\"边城\",\"classification path\":\"课外类二手书/漫画\"}, + {\"name\":\"边城\",\"classification path\":\"课外类二手书/小说\"}, + + {\"name\":\"宠物猫的反击战\",\"classification path\":\"课外类二手书/小说\"}, + {\"name\":\"变形记\",\"classification path\":\"课外类二手书/小说\"}, + {\"name\":\"三体\",\"classification path\":\"课外类二手书/小说\"}, + {\"name\":\"巴黎城记\",\"classification path\":\"课外类二手书/漫画\"}, + {\"name\":\"漫画龙纹身的女孩\",\"classification path\":\"课外类二手书/小说\"}, + {\"name\":\"漫画名侦探柯南漆黑的追踪者\",\"classification path\":\"课外类二手书/小说\"}, + {\"name\":\"漫画千与千寻\",\"classification path\":\"课外类二手书/小说\"}, + {\"name\":\"考研数学二十讲\",\"classification path\":\"考研材料/考研数学材料\"}, + {\"name\":\"考研数学辅导\",\"classification path\":\"考研材料/考研数学材料\"}, + {\"name\":\"考研数学复习指南\",\"classification path\":\"考研材料/考研数学材料\"}, + {\"name\":\"考研数学题典\",\"classification path\":\"考研材料/考研数学材料\"}, + {\"name\":\"考研政治核心考点\",\"classification path\":\"考研材料/考研政治材料\"}, + {\"name\":\"考研政治狂背清单\",\"classification path\":\"考研材料/考研政治材料\"}, + {\"name\":\"考研政治核心考点\",\"classification path\":\"考研材料/考研政治材料\"}, + {\"name\":\"考研政治强化冲刺800题\",\"classification path\":\"考研材料/考研政治材料\"}, + {\"name\":\"量子力学\",\"classification path\":\"免费专区/教科书\"}, + {\"name\":\"普通生物学\",\"classification path\":\"免费专区/教科书\"}, + {\"name\":\"普通物理学\",\"classification path\":\"免费专区/教科书\"}, + {\"name\":\"有机固体物理\",\"classification path\":\"免费专区/教科书\"}, + {\"name\":\"漫画千与千寻\",\"classification path\":\"免费专区/课外书\"}, + {\"name\":\"十角馆事件\",\"classification path\":\"免费专区/课外书\"}, + {\"name\":\"异世界舅舅\",\"classification path\":\"免费专区/课外书\"}, + {\"name\":\"蜘蛛侠漫画史\",\"classification path\":\"免费专区/课外书\"} +} + +You first greet the customer, then wait for next input. + +\"\"\"} ] # accumulate messages + + +inp = pn.widgets.TextInput(value=\"Hi\", placeholder='Enter text here…') +button_conversation = pn.widgets.Button(name=\"Chat!\") + +interactive_conversation = pn.bind(collect_messages, button_conversation) + +dashboard = pn.Column( + inp, + pn.Row(button_conversation), + pn.panel(interactive_conversation, loading_indicator=True, height=300), +) + +dashboard \ No newline at end of file diff --git a/Code/Frontend/src/views/User/children/post.vue b/Code/Frontend/src/views/User/children/post.vue index eca43fc..e2a2b8e 100644 --- a/Code/Frontend/src/views/User/children/post.vue +++ b/Code/Frontend/src/views/User/children/post.vue @@ -156,7 +156,7 @@ export default { "uid":getStore("id"), "email":getStore("email"), "time":msg.time, - "status":1, + "status":"1", }; await insertGoodMysql(goodinfo).then(res=>{console.log(res)}) }) diff --git a/README.md b/README.md index 8951252..3495d3d 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,24 @@ The waste of used books, break the information barrier among students. Initial exploration of LLMs in online shopping platform as well as full-stack development. +--- +### Deployment + +### prerequisite + +- nginx nginx -s reload +- + +### Deploy backend + +Deploy frontend +```bash +npm run serve +``` + + + + --- ### Architecture #### Backend with Spring Boot @@ -22,8 +40,12 @@ Initial exploration of LLMs in online shopping platform as well as full-stack de ### Demonstration of the work You can try the [Live demo](http://124.71.159.90/home), powered by Huawei Cloud. (valid until 2023-08-15) #### Homepage -##### AI assistant (need magic) -AI assistant is prompted with the following targeted scenarios: +##### AI assistant +##### preliminary +> OpenAI API KEY + + + AI assistant is prompted with the following targeted scenarios: - TBD #### Personal edition #### Goods