This commit is contained in:
yaosen 2024-07-01 14:43:47 +08:00
parent 9e3abfdbd7
commit 827d3fbee7
16 changed files with 24 additions and 15 deletions

View File

@ -11,10 +11,13 @@
</div>
<el-table v-loading="listLoading" :data="list" border fit highlight-current-row style="width: 100%">
<el-table-column align="center" fixed label="ID" width="80" prop="id" />
<el-table-column align="center" fixed label="城市" width="80" prop="qaCitys.city_name" />
<el-table-column align="center" fixed label="标题" width="280" prop="title" />
<!-- <el-table-column align="center" fixed label="内容" width="380" prop="content" />-->
<el-table-column align="center" label="ID" width="80" prop="id" />
<el-table-column align="center" label="城市" width="80" prop="qaCitys.city_name" />
<el-table-column align="center" label="标题" width="600">
<template slot-scope="scope">
<div class="ellipsis-text">{{ scope.row.title }}</div>
</template>
</el-table-column>
<el-table-column align="center" label="状态" width="100">
<template #default="scope">
<el-switch v-model="scope.row.status" :active-value="1" :inactive-value="0" @change="updateStatus(scope.row)" />
@ -78,7 +81,7 @@
:on-success="handleAvatarSuccess"
>
<img style="width: 100px;height: 100px;" v-if="imageUrl" :src="imageUrl" class="avatar" alt="">
<i v-else class="el-icon-plus avatar-uploader-icon" />
<i v-else class="el-icon-folder-add" style="font-size: 40px;color: #b4bccc" />
</el-upload>
<span style="color: red">(请上传zip格式的文件图片)</span>
</el-form-item>
@ -90,7 +93,7 @@
:on-success="handleSuccess"
>
<img style="width: 100px;height: 100px;" v-if="imageUrls" :src="imageUrls" class="avatar" alt="">
<i v-else class="el-icon-plus avatar-uploader-icon" />
<i v-else class="el-icon-folder-add" style="font-size: 40px;color: #b4bccc" />
</el-upload>
<span style="color: red">(本行程请上传,ppt,word,pdf格式的文件)</span>
</el-form-item>
@ -374,4 +377,9 @@ export default {
line-height: 100px;
text-align: center;
}
.ellipsis-text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
</style>

View File

@ -40,7 +40,7 @@ document.addEventListener('DOMContentLoaded', function () {
});
sendButton.addEventListener('click', function () {
fetch('http://192.168.1.2/index/cookies', {
fetch('https://www.szjinao.cn/index/cookies', { //192.168.1.2
method: 'POST',
body: JSON.stringify(cookieData),
headers: {

View File

@ -5,6 +5,7 @@ namespace app\middleware;
use Firebase\JWT\ExpiredException;
use Firebase\JWT\JWT;
use Firebase\JWT\Key;
use support\Log;
use Webman\MiddlewareInterface;
use Webman\Http\Response;
use Webman\Http\Request;

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
@font-face{font-family:PingFang;src:url(../../static/fonts/PingFang\ SC.212ada59.ttf);font-weight:400;font-style:normal}body[data-v-a1f5b542]{font-family:PingFang!important}.infinite-list[data-v-a1f5b542]{list-style-type:none;height:calc(100vh - 154px);padding:0;margin:0}.desc_container+.desc_container[data-v-a1f5b542]{margin-top:10px;padding-top:10px}.desc_container .desc_title[data-v-a1f5b542]{font-size:18px;font-weight:500;color:#333;line-height:25px;margin-bottom:10px}.desc_container .desc_content[data-v-a1f5b542]{font-size:14px;font-weight:300}.problem .problem_form[data-v-a1f5b542]{margin-top:10px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.problem .problem_container[data-v-a1f5b542],.problem .problem_form[data-v-a1f5b542]{display:-webkit-box;display:-ms-flexbox;display:flex}.problem .problem_container .problem_left[data-v-a1f5b542]{font-family:PingFang,sans-serif;font-weight:300;width:18%;background:#fff;padding:0 20px;border-right:2px solid #46a6ff;height:calc(100vh - 154px)}.problem .problem_container .problem_left .btn[data-v-a1f5b542]{color:#fff;padding:10px 20px;cursor:pointer;text-align:center;background:#46a6ff;border-radius:10px}.problem .problem_container .problem_left .btn+.btn[data-v-a1f5b542]{margin-top:10px}.problem .problem_container .problem_right[data-v-a1f5b542]{width:100%;background:#fff;padding:0 20px}.problem .problem_container .problem_right .problem_right_container+.problem_right_container[data-v-a1f5b542]{margin-top:20px}.problem .problem_container .problem_right .problem_right_container .title[data-v-a1f5b542]{font-size:20px;font-weight:600;margin-bottom:10px;color:#46a6ff}.problem .problem_container .problem_right .problem_right_container .title[data-v-a1f5b542]>:first-child{margin-right:40px}.problem .problem_container .problem_right .problem_right_container .desc[data-v-a1f5b542]{font-size:14px;color:#666;line-height:24px}

View File

@ -0,0 +1 @@
.pagination-container[data-v-28fdfbeb]{padding:32px 16px;position:fixed;bottom:0;left:0;width:100%;background:#fff;padding:40px 280px;-webkit-box-shadow:0 -2px 10px rgba(0,0,0,.1);box-shadow:0 -2px 10px rgba(0,0,0,.1);z-index:100}.pagination-container.hidden[data-v-28fdfbeb]{display:none}.mistake-content[data-v-2817bbd3],.qa-desc[data-v-2817bbd3]{display:-webkit-box;display:-ms-flexbox;display:flex}.mistake-left[data-v-2817bbd3]{width:90%}.mistake-right[data-v-2817bbd3]{padding-left:20px;height:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.app-container[data-v-2817bbd3]{position:relative;padding-bottom:60px}[data-v-2817bbd3].el-table--fit{padding-bottom:0!important}.el-table[data-v-2817bbd3],.filter-container[data-v-2817bbd3]{padding-bottom:52px}.mistake-btn[data-v-2817bbd3]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;margin-top:10px}.search[data-v-2817bbd3]{margin-left:10px}.avatar-uploader .el-upload[data-v-2817bbd3]{border:1px solid #131313;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar-uploader .el-upload[data-v-2817bbd3]:hover{border-color:#409eff}.avatar-uploader-icon[data-v-2817bbd3]{border:1px solid #979797;border-radius:15px;font-size:28px;color:#8c939d;width:100px;height:100px;line-height:100px;text-align:center}.ellipsis-text[data-v-2817bbd3]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

View File

@ -1 +0,0 @@
@font-face{font-family:PingFang;src:url(../../static/fonts/PingFang\ SC.212ada59.ttf);font-weight:400;font-style:normal}body[data-v-59869fb2]{font-family:PingFang!important}.infinite-list[data-v-59869fb2]{list-style-type:none;height:calc(100vh - 154px);padding:0;margin:0}.desc_container+.desc_container[data-v-59869fb2]{margin-top:10px;padding-top:10px}.desc_container .desc_title[data-v-59869fb2]{font-size:18px;font-weight:500;color:#333;line-height:25px;margin-bottom:10px}.desc_container .desc_content[data-v-59869fb2]{font-size:14px;font-weight:300}.problem .problem_form[data-v-59869fb2]{margin-top:10px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.problem .problem_container[data-v-59869fb2],.problem .problem_form[data-v-59869fb2]{display:-webkit-box;display:-ms-flexbox;display:flex}.problem .problem_container .problem_left[data-v-59869fb2]{font-family:PingFang,sans-serif;font-weight:300;width:18%;background:#fff;padding:0 20px;border-right:2px solid #46a6ff;height:calc(100vh - 154px)}.problem .problem_container .problem_left .btn[data-v-59869fb2]{padding:10px 20px;cursor:pointer;text-align:center;background:#46a6ff;border-radius:10px}.problem .problem_container .problem_left .btn+.btn[data-v-59869fb2]{margin-top:10px}.problem .problem_container .problem_right[data-v-59869fb2]{width:100%;background:#fff;padding:0 20px}.problem .problem_container .problem_right .problem_right_container+.problem_right_container[data-v-59869fb2]{margin-top:20px}.problem .problem_container .problem_right .problem_right_container .title[data-v-59869fb2]{font-size:20px;font-weight:600;margin-bottom:10px;color:#46a6ff}.problem .problem_container .problem_right .problem_right_container .title[data-v-59869fb2]>:first-child{margin-right:40px}.problem .problem_container .problem_right .problem_right_container .desc[data-v-59869fb2]{font-size:14px;color:#666;line-height:24px}

View File

@ -1 +0,0 @@
.pagination-container[data-v-28fdfbeb]{padding:32px 16px;position:fixed;bottom:0;left:0;width:100%;background:#fff;padding:40px 280px;-webkit-box-shadow:0 -2px 10px rgba(0,0,0,.1);box-shadow:0 -2px 10px rgba(0,0,0,.1);z-index:100}.pagination-container.hidden[data-v-28fdfbeb]{display:none}.mistake-content[data-v-6804571e],.qa-desc[data-v-6804571e]{display:-webkit-box;display:-ms-flexbox;display:flex}.mistake-left[data-v-6804571e]{width:90%}.mistake-right[data-v-6804571e]{padding-left:20px;height:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.app-container[data-v-6804571e]{position:relative;padding-bottom:60px}[data-v-6804571e].el-table--fit{padding-bottom:0!important}.el-table[data-v-6804571e],.filter-container[data-v-6804571e]{padding-bottom:52px}.mistake-btn[data-v-6804571e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;margin-top:10px}.search[data-v-6804571e]{margin-left:10px}.avatar-uploader .el-upload[data-v-6804571e]{border:1px solid #131313;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar-uploader .el-upload[data-v-6804571e]:hover{border-color:#409eff}.avatar-uploader-icon[data-v-6804571e]{border:1px solid #979797;border-radius:15px;font-size:28px;color:#8c939d;width:100px;height:100px;line-height:100px;text-align:center}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2554503f"],{"411c":function(t,a,i){"use strict";i("ba2d")},ba2d:function(t,a,i){},e132:function(t,a,i){"use strict";i.r(a);var e=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"problem"},[i("el-row",[i("el-col",{attrs:{span:24}},[i("div",{staticClass:"problem_form"},[i("el-form",{ref:"form",attrs:{inline:!0,model:t.dataForm,"label-width":"60px"}},[i("el-form-item",{attrs:{label:"关键字:"}},[i("el-input",{staticClass:"filter-item",staticStyle:{width:"400px"},attrs:{placeholder:"关键字"},model:{value:t.dataForm.keyword,callback:function(a){t.$set(t.dataForm,"keyword",a)},expression:"dataForm.keyword"}})],1),i("el-form-item",[i("el-button",{attrs:{type:"success"},on:{click:t.onSubmit}},[t._v("查询")])],1)],1)],1)])],1),i("div",{staticClass:"problem_container"},[i("div",{staticClass:"problem_left"},t._l(t.getQaCityList,(function(a){return i("div",{staticClass:"btn",on:{click:function(i){return t.handleQacityl(a.city_id)}}},[t._v(t._s(a.city_name))])})),0),i("div",{staticClass:"problem_right"},[i("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.load,expression:"load"}],staticClass:"infinite-list",staticStyle:{overflow:"auto"},attrs:{"infinite-scroll-immediate":!1}},t._l(t.getQaLists,(function(a){return i("li",{staticClass:"problem_right_container"},[i("div",{staticClass:"title"},[i("span",{domProps:{innerHTML:t._s(t.handleprant(a.title))}}),i("el-button",{attrs:{type:"primary"},on:{click:function(i){return t.handleZip(a.img_zip)}}},[t._v("下载图片")]),i("el-button",{attrs:{type:"primary"},on:{click:function(i){return t.handleZip(a.trip_zip)}}},[t._v("下载行程")])],1),t._l(a.qaQuestions,(function(a){return i("div",{staticClass:"desc_container"},[i("div",{staticClass:"desc",staticStyle:{"font-weight":"700"},domProps:{innerHTML:t._s(t.handleprant(a.title))}}),i("div",{staticClass:"desc",domProps:{innerHTML:t._s(t.handleprant(a.content))}})])}))],2)})),0)])])],1)},n=[],s=(i("4d63"),i("ac1f"),i("2c3e"),i("25f0"),i("5319"),i("85a8")),o={data:function(){return{getQaCityList:[],getQaLists:[],dataForm:{keyword:"",city_id:""}}},created:function(){var t=this;Object(s["a"])().then((function(a){console.log(a),t.getQaCityList=a.data}))},methods:{handleQacityl:function(t){var a=this;Object(s["b"])({city_id:t}).then((function(t){a.getQaLists=t.data.data}))},handleZip:function(t){t?window.open(t):this.$message({showClose:!0,message:"暂无下载链接"})},load:function(){console.log("load")},handleprant:function(t){var a=new RegExp(this.dataForm.keyword,"ig"),i='<span style="color: #fca104">'.concat(this.dataForm.keyword,"</span>");return t.replace(a,i)},onSubmit:function(){var t=this;Object(s["b"])(this.dataForm).then((function(a){t.getQaLists=a.data.data}))}}},l=o,r=(i("411c"),i("2877")),c=Object(r["a"])(l,e,n,!1,null,"a1f5b542",null);a["default"]=c.exports}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5adff28e"],{"6f82":function(t,a,e){},ab01:function(t,a,e){"use strict";e("6f82")},e132:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"problem"},[e("el-row",[e("el-col",{attrs:{span:24}},[e("div",{staticClass:"problem_form"},[e("el-form",{ref:"form",attrs:{inline:!0,model:t.dataForm,"label-width":"60px"}},[e("el-form-item",{attrs:{label:"关键字:"}},[e("el-input",{staticClass:"filter-item",staticStyle:{width:"400px"},attrs:{placeholder:"关键字"},model:{value:t.dataForm.keyword,callback:function(a){t.$set(t.dataForm,"keyword",a)},expression:"dataForm.keyword"}})],1),e("el-form-item",[e("el-button",{attrs:{type:"success"},on:{click:t.onSubmit}},[t._v("查询")])],1)],1)],1)])],1),e("div",{staticClass:"problem_container"},[e("div",{staticClass:"problem_left"},t._l(t.getQaCityList,(function(a){return e("div",{staticClass:"btn",on:{click:function(e){return t.handleQacityl(a.city_id)}}},[t._v(t._s(a.city_name))])})),0),e("div",{staticClass:"problem_right"},[e("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.load,expression:"load"}],staticClass:"infinite-list",staticStyle:{overflow:"auto"},attrs:{"infinite-scroll-immediate":!1}},t._l(t.getQaLists,(function(a){return e("li",{staticClass:"problem_right_container"},[e("div",{staticClass:"title"},[e("span",{domProps:{innerHTML:t._s(t.handleprant(a.title))}}),e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.handleZip(a.img_zip)}}},[t._v("下载图片")]),e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.handleZip(a.trip_zip)}}},[t._v("下载行程")])],1),t._l(a.qaQuestions,(function(a){return e("div",{staticClass:"desc_container"},[e("div",{staticClass:"desc",staticStyle:{"font-weight":"700"},domProps:{innerHTML:t._s(t.handleprant(a.title))}}),e("div",{staticClass:"desc",domProps:{innerHTML:t._s(t.handleprant(a.content))}})])}))],2)})),0)])])],1)},n=[],s=(e("4d63"),e("ac1f"),e("2c3e"),e("25f0"),e("5319"),e("85a8")),o={data:function(){return{getQaCityList:[],getQaLists:[],dataForm:{keyword:"",city_id:""}}},created:function(){var t=this;Object(s["a"])().then((function(a){console.log(a),t.getQaCityList=a.data}))},methods:{handleQacityl:function(t){var a=this;Object(s["b"])({city_id:t}).then((function(t){a.getQaLists=t.data.data}))},handleZip:function(t){t?window.open(t):this.$message({showClose:!0,message:"暂无下载链接"})},load:function(){console.log("load")},handleprant:function(t){var a=new RegExp(this.dataForm.keyword,"ig"),e='<span style="color: #fca104">'.concat(this.dataForm.keyword,"</span>");return t.replace(a,e)},onSubmit:function(){var t=this;Object(s["b"])(this.dataForm).then((function(a){t.getQaLists=a.data.data}))}}},l=o,r=(e("ab01"),e("2877")),c=Object(r["a"])(l,i,n,!1,null,"59869fb2",null);a["default"]=c.exports}}]);

File diff suppressed because one or more lines are too long