提交 f2bccce0 authored 作者: 翟畅's avatar 翟畅

zc更换域名以及修改bug

上级 2bbbd8c2
VUE_APP_URL = "http://test23.zhongdianyun.com"
VUE_APP_URL = "http://117.78.43.107"
VUE_APP_URL = "http://test23.zhongdianyun.com"
VUE_APP_URL = "http://117.78.43.107"
......@@ -21,7 +21,7 @@
<script type="text/javascript" src="http://api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.js"></script>
<script type="text/javascript" src="http://lbsyun.baidu.com/custom/stylelist.js"></script>
<script type="text/javascript">
(function () {var sUserAgent = navigator.userAgent;if (sUserAgent.indexOf('Android') > -1 || sUserAgent.indexOf('iPhone') > -1 || sUserAgent.indexOf('iPad') > -1 || sUserAgent.indexOf('iPod') > -1 || sUserAgent.indexOf('Symbian') > -1) {location.href = 'http://test23.zhongdianyun.com/h5';} else {}})();
(function () {var sUserAgent = navigator.userAgent;if (sUserAgent.indexOf('Android') > -1 || sUserAgent.indexOf('iPhone') > -1 || sUserAgent.indexOf('iPad') > -1 || sUserAgent.indexOf('iPod') > -1 || sUserAgent.indexOf('Symbian') > -1) {location.href = 'http://117.78.43.107/h5';} else {}})();
</script>
<style>
......
......@@ -28,7 +28,7 @@
let paySuccess = false
window.StaClass = function (params) {
let _this = this;
this.basePath = "http://test23.zhongdianyun.com/statistics/api/";
this.basePath = "http://117.78.43.107/statistics/api/";
this.debug = true;
this.explorer = getBrowser();
this.etype = getEquipment();
......
......@@ -125,7 +125,7 @@ export function collectDelAPI(data) { //取消收藏
export function saveAgreeAPI(data) { //提交意见反馈
return request({
url: `${requestPath.common}/message/save`,
url: `${requestPath.admin}/message/save`,
method: 'post',
data
})
......
......@@ -28,7 +28,8 @@ export default {
document.querySelector(".login_case").scrollIntoView({behavior: "smooth", block: "start", inline: "start"})
},
feedback(){
window.open(this.resourceLink + '/fg/index.html#/feedback')
this.$router.push({path:'/feedback'})
// window.open(this.resourceLink + '/fg/index.html#/feedback')
}
}
}
......
......@@ -23,9 +23,9 @@ Vue.config.productionTip = false;
Vue.use(ElementUI);
Vue.component("v-distpicker", VDistpicker);
Vue.prototype.$filePath = "http://test23.zhongdianyun.com/file/file/?fileName=";
Vue.prototype.$filePath = "http://117.78.43.107/file/file/?fileName=";
Vue.prototype.$linkToRsResource = (path)=>{
window.open('http://test23.zhongdianyun.com/fg/#' + path,'_blank') //资源库地址
window.open('http://117.78.43.107/fg/#' + path,'_blank') //资源库地址
};
import Bus from "@/utils/bus";
Vue.use(Bus);
......
......@@ -92,6 +92,12 @@ const routes = [
meta: { title: "与我同行-中国劳动社会保障出版社有限公司", name: "mine", shopBg: true, },
component: () => import("@/views/mine/index"),
},
{
path: "/feedback",
name: "feedback",
meta: { title: "意见反馈-中国劳动社会保障出版社有限公司", name: "feedback", shopBg: true, },
component: () => import("@/views/feedback/index"),
},
];
const router = new VueRouter({
......
<template>
<div>
<!-- 头部 -->
<com-head></com-head>
<!-- banner -->
<div class="bannerContent1">
<img src="@/assets/productsWorld/chanpin-banner.png" alt="">
</div>
<div class="box">
<div class="main">
<div class="title">意见反馈</div>
<div class="tip">
<img src="@/assets/index/ico-bianji.png">
<span>请留下您的宝贵意见,我们会努力改进。</span>
</div>
<div class="form_box">
<el-form ref="feedback" :rules="rules" :model="feedback" label-width="170px">
<!-- <el-form-item label="选择反馈类型:" class="name_item">
<el-select v-model="feedback.type" placeholder="请选择" class="sel">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item> -->
<el-form-item prop="content" label="反馈内容:">
<el-input type="textarea" style="height:200px;width: 930px;" resize="none" v-model="feedback.content" maxlength="300" show-word-limit></el-input>
</el-form-item>
<!-- <el-form-item prop="imgList" label="上传截图(选填):">
<el-upload :class="{hidePlay:feedback.imgList.length>2}" :action="`${fileUrl}upload`" list-type="picture-card" :file-list="playFileList" :on-success="handlePlaySuccess" :before-upload="beforeStoreCoverUpload" :on-remove="handlPlayRemove">
<i class="el-icon-plus"></i>
</el-upload>
</el-form-item> -->
<el-form-item prop="contactInformation" label="联系方式(选填):">
<el-input v-model.trim="feedback.contactInformation" style="width:350px" class="feedback_inp" placeholder="请输入手机号或QQ号"></el-input>
</el-form-item>
<el-form-item class="btn_box">
<el-button class="btn save" @click="feedbackSave" :loading='sending'>提交</el-button>
</el-form-item>
</el-form>
</div>
</div>
</div>
<com-foot></com-foot>
</div>
</template>
<script>
import comHeader from "@/components/comHeader.vue"
import comFooter from "@/components/comFooter.vue"
import {saveAgreeAPI} from '@/api/common'
import { fileUrl } from '@/utils/global'
export default {
name:'feedback',
components: {
comHead: comHeader,
comFoot: comFooter,
},
data() {
return {
fileUrl,
sending:false,
feedback:{
source:0,
type:0,
imgList:[]
},
playFileList:[],
options:[
{label:'功能问题',value:0},
{label:'内容问题',value:1},
{label:'需求建议',value:2},
{label:'其他',value:3},
],
rules:{
contactInformation: [
{ pattern: /^[0-9]*$/, message: '请输入正确的联系方式' }
],
content:[
{ required: true ,max: 300, min:5,message: '请输入5-300字的反馈内容' }
]
}
}
},
methods: {
feedbackSave(){
this.sending = true
this.$refs['feedback'].validate((valid) => {
if(valid){
saveAgreeAPI(this.feedback).then(res => {
if(res.data.code == 0){
this.$message.success('提交成功')
this.sending = false
this.playFileList = []
this.feedback = {
source:0,
type:0,
imgList:[]
}
this.$refs.feedback.resetFields()
}else{
this.$message.error(res.data.msg)
this.sending = false
}
})
}else{
this.$message.warning("有未通过的验证");
this.sending = false
}
})
},
handlePlaySuccess(response, file, fileList){
this.feedback.imgList=[];
fileList.map((item)=>{
this.feedback.imgList.push(item.response)
})
},
beforeStoreCoverUpload(file){
const isFile = file.type == 'image/jpeg' || file.type == 'image/jpg' || file.type == 'image/png' || file.type == 'image/bmp' || file.type == 'image/gif'
const isLimit = file.size / 1024 / 1024 < 2;
const imgLength = this.feedback.imgList.length < 3
if(!imgLength){
this.$message.error('图片最多可上传3张');
}else if (!isFile) {
this.$message.error('上传图片仅支持jpg、jpeg、png、gif、bmp格式!');
}else if (!isLimit) {
this.$message.error('上传图片大小不能超过2MB!');
}
return imgLength && isFile && isLimit;
},
handlPlayRemove(file, fileList){ // 图片集删除
this.feedback.imgList=[];
fileList.map((item)=>{
this.feedback.imgList.push(item.response)
})
},
},
};
</script>
<style lang="less" scoped>
.bannerContent1{
width: 100%;
height: 260px;
img{
width: 100%;
height: 100%;
}
}
.sel{
width: 380px;
}
.btn_box{
width: 970px;
text-align: center;
}
.save{
cursor: pointer;
width: 120px;
height: 42px;
display: inline-block;
margin: 60px auto 0;
line-height: 42px;
background: #1C52B7;
border-radius: 5px;
font-size: 16px;
font-family: Microsoft YaHei;
font-weight: bold;
color: #FFFFFF;
text-align: center;
padding: 0;
}
.hidePlay{
/deep/.el-upload--picture-card{
display: none;
}
}
/deep/.el-textarea__inner{
height: 200px;
width: 930px;
}
.form_box{
margin-top: 30px;
}
.box{
width: 100%;
height: 737px;
position: relative;
.main{
width: 1200px;
height: 867px;
background: #FFFFFF;
box-shadow: 0px 0px 22px 0px rgba(31, 31, 30, 0.12);
border-radius: 10px;
position: absolute;
top: -200px;
left: 50%;
transform: translateX(-50%);
box-sizing: border-box;
padding: 38px 30px;
.title{
padding-bottom: 24px;
font-size: 18px;
font-weight: bold;
color: #333333;
border-bottom: 1px solid #F2F2F2;
}
.tip{
display: flex;
justify-content: flex-start;
align-items: center;
font-size: 16px;
font-family: Microsoft YaHei;
font-weight: bold;
color: #333333;
padding-left: 52px;
margin-top: 74px;
img{
margin-right: 10px;
}
}
}
}
</style>
......@@ -440,8 +440,8 @@ export default {
this.bookProduceList = res.data.data[0].list.slice(0,6).reverse()
this.bookProduceList.map((item,index) => {
this.$set(item,'isShowLabel',false)
item.list = item.list.reverse()
if(item.showName == '数字产品'){
item.list = item.list.reverse()
this.digitalClassList = item.list
}
})
......
......@@ -170,7 +170,7 @@
</el-table-column>
</el-table>
<el-table :data="tableData4" style="width: 100%" cell-class-name="cellNameShow" :header-cell-style="{'background-color': '#4C4D51', 'color': '#fff', 'text-align':'center'}" v-if="currentTabName == '盗版举报'">
<el-table-column label="盗版举报信息">
<el-table-column label="盗版举报信息" width="600">
<template slot-scope="scope">
<span>{{scope.row.information}}</span>
</template>
......
......@@ -43,7 +43,7 @@
</div>
</div>
</div>
<div class="digitalProduceBottom">
<div class="digitalProduceBottom" v-if="recruitmentList && recruitmentList.length>0">
<div class="recruitmentCell" v-for="(item,index) in recruitmentList" :key="'re'+index" @click="toDetailPress(item)">
<div class="cellLeft">
<span class="bot"></span>
......@@ -54,6 +54,9 @@
</div>
</div>
</div>
<div class="digitalProduceBottom" v-else>
<p class="noneMessage">暂无数据</p>
</div>
</div>
</div>
......@@ -345,6 +348,14 @@ export default {
</script>
<style lang="less" scoped>
.noneMessage{
width: 100%;
height: auto;
color: #fff;
font-size: 16px;
text-align: center;
line-height: 50px;
}
.levitate{
position: fixed;
right: 30px;
......
......@@ -111,10 +111,17 @@ export default {
};
},
watch:{
'$route': 'getPath'
// '$route': 'getPath',
'$route.query'(){
this.currentType = this.$route.query.clickNum?this.$route.query.clickNum:1
this.listQuery.name = this.$route.query.name?this.$route.query.name:null
this.listQuery.bulletinColumnName = this.$route.query.bulletinColumnName?this.$route.query.bulletinColumnName:'人社要闻'
this.getPressNewsList()
},
},
created(){
this.currentType = this.$route.query.clickNum?this.$route.query.clickNum:1
this.listQuery.name = this.$route.query.name?this.$route.query.name:null
this.listQuery.bulletinColumnName = this.$route.query.bulletinColumnName?this.$route.query.bulletinColumnName:'人社要闻'
let self=this;
window.onscroll= function(){
......
......@@ -149,10 +149,10 @@
</div>
<div class="itemBottom1">点击进入验证</div>
</div>
<div class="bannerItem" @click="openUrl('/fg/mallIndex/index.html')">
<div class="bannerItem" @click="openUrl('/fg/index.html')">
<div class="itemTop">
<img src="@/assets/productsWorld/ico-search.png" alt="">
<span>产品检索</span>
<span>直通书城</span>
</div>
<div class="itemBottom2">点击进入</div>
</div>
......@@ -423,6 +423,9 @@ export default {
homeBookClassListAPI({name:'电子书分类'}).then((res) => {
if(res.data.code == 0){
this.classAllList = res.data.data[0].list.slice(0,6).reverse()
this.classAllList.map((item,index) => {
item.list = item.list.reverse()
})
}
})
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论