This commit is contained in:
yaosen 2024-07-01 18:41:28 +08:00
parent 401c734ab9
commit edd559bef9
31 changed files with 53 additions and 61 deletions

View File

@ -31,12 +31,14 @@
"normalize.css": "7.0.0",
"nprogress": "0.2.0",
"path-to-regexp": "2.4.0",
"quill": "^1.3.6",
"screenfull": "4.2.0",
"script-loader": "0.7.2",
"sortablejs": "1.8.4",
"tui-editor": "1.3.3",
"vue": "2.6.10",
"vue-count-to": "1.0.13",
"vue-quill-editor": "^3.0.6",
"vue-router": "3.0.2",
"vue-splitpane": "1.0.4",
"vuedraggable": "2.20.0",

View File

@ -5,7 +5,7 @@
<div class="problem_form">
<el-form :inline="true" ref="form" :model="dataForm" label-width="60px">
<el-form-item label="关键字:">
<el-input v-model="dataForm.keyword" placeholder="关键字" style="width: 400px;" class="filter-item" />
<el-input v-model="dataForm.keyword" placeholder="请输入搜索关键字" style="width: 400px;" class="filter-item" />
</el-form-item>
<el-form-item>
<el-button type="success" @click="onSubmit">查询</el-button>
@ -30,7 +30,6 @@
<div style="font-weight: 700;" class="desc" v-html="handleprant(list.title)"></div>
<div class="desc" v-html="handleprant(list.content)"></div>
</div>
</li>
</ul>
</div>
@ -40,6 +39,7 @@
<script>
import { getQaCityList, getQaList } from '@/api/qa'
export default {
data() {
return {
@ -53,10 +53,16 @@ export default {
},
created() {
getQaCityList().then(res => {
console.log(res)
this.getQaCityList = res.data
})
},
watch: {
'dataForm.keyword': function (newVal) {
if (newVal) {
this.onSubmit();
}
}
},
methods: {
handleQacityl(val) {
getQaList({ city_id: val }).then(res => {
@ -83,15 +89,6 @@ export default {
},
onSubmit() {
getQaList(this.dataForm).then(res => {
// this.getQaLists = res.data.data.map((item, index) => {
// if (this.dataForm.keyword) {
// let replaceReg = new RegExp(this.dataForm.keyword, "ig");
// let replaceString = `<span style="color: #fca104">${this.dataForm.keyword}</span>`;
// item.title = item.title.replace(replaceReg, replaceString);
// item.content = item.content.replace(replaceReg, replaceString);
// }
// return item
// });
this.getQaLists = res.data.data
})
}
@ -111,11 +108,9 @@ body{
margin: 0;
}
.desc_container {
& + .desc_container {
margin-top: 10px;
padding-top: 10px;
// border-top: 1px solid #333333;
}
.desc_title {
font-size: 18px;

View File

@ -13,7 +13,7 @@
<el-table v-loading="listLoading" :data="list" border fit highlight-current-row style="width: 100%">
<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">
<el-table-column align="center" label="标题" width="280" style="overflow: hidden;">
<template slot-scope="scope">
<div class="ellipsis-text">{{ scope.row.title }}</div>
</template>
@ -81,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-folder-add" style="font-size: 40px;color: #b4bccc" />
<i v-else class="el-icon-plus avatar-uploader-icon" />
</el-upload>
<span style="color: red">(请上传zip格式的文件图片)</span>
</el-form-item>
@ -93,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-folder-add" style="font-size: 40px;color: #b4bccc" />
<i v-else class="el-icon-plus avatar-uploader-icon" />
</el-upload>
<span style="color: red">(本行程请上传,ppt,word,pdf格式的文件)</span>
</el-form-item>
@ -377,9 +377,4 @@ export default {
line-height: 100px;
text-align: center;
}
.ellipsis-text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
</style>

View File

@ -248,7 +248,7 @@ class Douyin
public function _getRetriesLock(): bool
{
$pattern = 'php webman spider:';
$pattern = 'php webman spider:dy';
$maxProcesses = 24;
$this->_killMiddleProcesses($pattern, $maxProcesses);

File diff suppressed because one or more lines are too long

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-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 +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}
@font-face{font-family:PingFang;src:url(../../static/fonts/PingFang\ SC.212ada59.ttf);font-weight:400;font-style:normal}body[data-v-00bf6a18]{font-family:PingFang!important}.infinite-list[data-v-00bf6a18]{list-style-type:none;height:calc(100vh - 154px);padding:0;margin:0}.desc_container+.desc_container[data-v-00bf6a18]{margin-top:10px;padding-top:10px}.desc_container .desc_title[data-v-00bf6a18]{font-size:18px;font-weight:500;color:#333;line-height:25px;margin-bottom:10px}.desc_container .desc_content[data-v-00bf6a18]{font-size:14px;font-weight:300}.problem .problem_form[data-v-00bf6a18]{margin-top:10px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.problem .problem_container[data-v-00bf6a18],.problem .problem_form[data-v-00bf6a18]{display:-webkit-box;display:-ms-flexbox;display:flex}.problem .problem_container .problem_left[data-v-00bf6a18]{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-00bf6a18]{color:#fff;padding:10px 20px;cursor:pointer;text-align:center;background:#46a6ff;border-radius:10px}.problem .problem_container .problem_left .btn+.btn[data-v-00bf6a18]{margin-top:10px}.problem .problem_container .problem_right[data-v-00bf6a18]{width:100%;background:#fff;padding:0 20px}.problem .problem_container .problem_right .problem_right_container+.problem_right_container[data-v-00bf6a18]{margin-top:20px}.problem .problem_container .problem_right .problem_right_container .title[data-v-00bf6a18]{font-size:20px;font-weight:600;margin-bottom:10px;color:#46a6ff}.problem .problem_container .problem_right .problem_right_container .title[data-v-00bf6a18]>:first-child{margin-right:40px}.problem .problem_container .problem_right .problem_right_container .desc[data-v-00bf6a18]{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-9031ddc0],.qa-desc[data-v-9031ddc0]{display:-webkit-box;display:-ms-flexbox;display:flex}.mistake-left[data-v-9031ddc0]{width:90%}.mistake-right[data-v-9031ddc0]{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-9031ddc0]{position:relative;padding-bottom:60px}[data-v-9031ddc0].el-table--fit{padding-bottom:0!important}.el-table[data-v-9031ddc0],.filter-container[data-v-9031ddc0]{padding-bottom:52px}.mistake-btn[data-v-9031ddc0]{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-9031ddc0]{margin-left:10px}.avatar-uploader .el-upload[data-v-9031ddc0]{border:1px solid #131313;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar-uploader .el-upload[data-v-9031ddc0]:hover{border-color:#409eff}.avatar-uploader-icon[data-v-9031ddc0]{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

View File

@ -1 +0,0 @@
(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

View File

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7946ca5d"],{"01f8":function(t,i,a){"use strict";a("90dd")},"90dd":function(t,i,a){},e132:function(t,i,a){"use strict";a.r(i);var e=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("div",{staticClass:"problem"},[a("el-row",[a("el-col",{attrs:{span:24}},[a("div",{staticClass:"problem_form"},[a("el-form",{ref:"form",attrs:{inline:!0,model:t.dataForm,"label-width":"60px"}},[a("el-form-item",{attrs:{label:"关键字:"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"400px"},attrs:{placeholder:"请输入搜索关键字"},model:{value:t.dataForm.keyword,callback:function(i){t.$set(t.dataForm,"keyword",i)},expression:"dataForm.keyword"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"success"},on:{click:t.onSubmit}},[t._v("查询")])],1)],1)],1)])],1),a("div",{staticClass:"problem_container"},[a("div",{staticClass:"problem_left"},t._l(t.getQaCityList,(function(i){return a("div",{staticClass:"btn",on:{click:function(a){return t.handleQacityl(i.city_id)}}},[t._v(t._s(i.city_name))])})),0),a("div",{staticClass:"problem_right"},[a("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(i){return a("li",{staticClass:"problem_right_container"},[a("div",{staticClass:"title"},[a("span",{domProps:{innerHTML:t._s(t.handleprant(i.title))}}),a("el-button",{attrs:{type:"primary"},on:{click:function(a){return t.handleZip(i.img_zip)}}},[t._v("下载图片")]),a("el-button",{attrs:{type:"primary"},on:{click:function(a){return t.handleZip(i.trip_zip)}}},[t._v("下载行程")])],1),t._l(i.qaQuestions,(function(i){return a("div",{staticClass:"desc_container"},[a("div",{staticClass:"desc",staticStyle:{"font-weight":"700"},domProps:{innerHTML:t._s(t.handleprant(i.title))}}),a("div",{staticClass:"desc",domProps:{innerHTML:t._s(t.handleprant(i.content))}})])}))],2)})),0)])])],1)},n=[],s=(a("4d63"),a("ac1f"),a("2c3e"),a("25f0"),a("5319"),a("85a8")),o={data:function(){return{getQaCityList:[],getQaLists:[],dataForm:{keyword:"",city_id:""}}},created:function(){var t=this;Object(s["a"])().then((function(i){t.getQaCityList=i.data}))},watch:{"dataForm.keyword":function(t){t&&this.onSubmit()}},methods:{handleQacityl:function(t){var i=this;Object(s["b"])({city_id:t}).then((function(t){i.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 i=new RegExp(this.dataForm.keyword,"ig"),a='<span style="color: #fca104">'.concat(this.dataForm.keyword,"</span>");return t.replace(i,a)},onSubmit:function(){var t=this;Object(s["b"])(this.dataForm).then((function(i){t.getQaLists=i.data.data}))}}},r=o,l=(a("01f8"),a("2877")),c=Object(l["a"])(r,e,n,!1,null,"00bf6a18",null);i["default"]=c.exports}}]);

File diff suppressed because one or more lines are too long